diff --git a/.next/BUILD_ID b/.next/BUILD_ID index 2f748c5..32db91f 100644 --- a/.next/BUILD_ID +++ b/.next/BUILD_ID @@ -1 +1 @@ -lIlrIl8Q~DS1M0c3OvDaq \ No newline at end of file +MdYEkay1bViLxxtsssdFt \ No newline at end of file diff --git a/.next/build-manifest.json b/.next/build-manifest.json index d925e7d..de53b81 100644 --- a/.next/build-manifest.json +++ b/.next/build-manifest.json @@ -2,47 +2,44 @@ "devFiles": [], "pages": { "/_app": [ - "static/runtime/webpack-fe16071eecbc94b71bd0.js", - "static/chunks/commons.be3566392b121f4c3810.js", - "static/css/styles.e4072c36.chunk.css", - "static/chunks/styles.0a3c172918137cfae229.js", - "static/css/static/lIlrIl8Q~DS1M0c3OvDaq/pages/_app.js.970d9d14.chunk.css", - "static/runtime/main-90d05adf631f91fa8cca.js" + "static/runtime/webpack-d2e3d1ffeaa85b5443c6.js", + "static/chunks/commons.633cb95994571bd38b02.js", + "static/runtime/main-a0940d6708920bf8234a.js" ], "/edit": [ - "static/runtime/webpack-fe16071eecbc94b71bd0.js", - "static/chunks/commons.be3566392b121f4c3810.js", - "static/runtime/main-90d05adf631f91fa8cca.js" + "static/runtime/webpack-d2e3d1ffeaa85b5443c6.js", + "static/chunks/commons.633cb95994571bd38b02.js", + "static/runtime/main-a0940d6708920bf8234a.js" ], "/index": [ - "static/runtime/webpack-fe16071eecbc94b71bd0.js", - "static/chunks/commons.be3566392b121f4c3810.js", - "static/runtime/main-90d05adf631f91fa8cca.js" + "static/runtime/webpack-d2e3d1ffeaa85b5443c6.js", + "static/chunks/commons.633cb95994571bd38b02.js", + "static/runtime/main-a0940d6708920bf8234a.js" ], "/k": [ - "static/runtime/webpack-fe16071eecbc94b71bd0.js", - "static/chunks/commons.be3566392b121f4c3810.js", - "static/runtime/main-90d05adf631f91fa8cca.js" + "static/runtime/webpack-d2e3d1ffeaa85b5443c6.js", + "static/chunks/commons.633cb95994571bd38b02.js", + "static/runtime/main-a0940d6708920bf8234a.js" ], "/new": [ - "static/runtime/webpack-fe16071eecbc94b71bd0.js", - "static/chunks/commons.be3566392b121f4c3810.js", - "static/runtime/main-90d05adf631f91fa8cca.js" + "static/runtime/webpack-d2e3d1ffeaa85b5443c6.js", + "static/chunks/commons.633cb95994571bd38b02.js", + "static/runtime/main-a0940d6708920bf8234a.js" ], "/settings": [ - "static/runtime/webpack-fe16071eecbc94b71bd0.js", - "static/chunks/commons.be3566392b121f4c3810.js", - "static/runtime/main-90d05adf631f91fa8cca.js" + "static/runtime/webpack-d2e3d1ffeaa85b5443c6.js", + "static/chunks/commons.633cb95994571bd38b02.js", + "static/runtime/main-a0940d6708920bf8234a.js" ], "/_error": [ - "static/runtime/webpack-fe16071eecbc94b71bd0.js", - "static/chunks/commons.be3566392b121f4c3810.js", - "static/runtime/main-90d05adf631f91fa8cca.js" + "static/runtime/webpack-d2e3d1ffeaa85b5443c6.js", + "static/chunks/commons.633cb95994571bd38b02.js", + "static/runtime/main-a0940d6708920bf8234a.js" ], "/": [ - "static/runtime/webpack-fe16071eecbc94b71bd0.js", - "static/chunks/commons.be3566392b121f4c3810.js", - "static/runtime/main-90d05adf631f91fa8cca.js" + "static/runtime/webpack-d2e3d1ffeaa85b5443c6.js", + "static/chunks/commons.633cb95994571bd38b02.js", + "static/runtime/main-a0940d6708920bf8234a.js" ] } } \ No newline at end of file diff --git a/.next/react-loadable-manifest.json b/.next/react-loadable-manifest.json index 0f39ad8..a8d1a9c 100644 --- a/.next/react-loadable-manifest.json +++ b/.next/react-loadable-manifest.json @@ -1,2518 +1,2774 @@ { - "react": [ + "/Users/jj/dev/mykb/react": [ { "id": 0, "name": "./node_modules/react/index.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime/regenerator": [ + "/Users/jj/dev/mykb/glamor": [ { "id": 1, - "name": "./node_modules/@babel/runtime/regenerator/index.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/glamor/lib/index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../util/getUrl": [ + "/Users/jj/dev/mykb/@babel/runtime/regenerator": [ { "id": 2, - "name": "./util/getUrl.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime/regenerator/index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../../modules/_core": [ + "/Users/jj/dev/src/util/getUrl": [ { "id": 3, - "name": "./node_modules/core-js/library/modules/_core.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./src/util/getUrl.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime-corejs2/helpers/interopRequireDefault": [ + "/Users/jj/dev/modules/_core": [ { "id": 4, - "name": "./node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_core.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "prop-types": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/helpers/interopRequireDefault": [ { "id": 5, - "name": "./node_modules/prop-types/index.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_export": [ + "/Users/jj/dev/mykb/prop-types": [ { "id": 6, - "name": "./node_modules/core-js/library/modules/_export.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/prop-types/index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_global": [ + "/Users/jj/dev/mykb/theme": [ { "id": 7, - "name": "./node_modules/core-js/library/modules/_global.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./src/styles/theme.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../util/getJwt": [ + "/Users/jj/dev/mykb/_export": [ { "id": 8, - "name": "./util/getJwt.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_export.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "react-redux": [ + "/Users/jj/dev/mykb/_global": [ { "id": 9, - "name": "./node_modules/react-redux/es/index.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_global.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../redux/actions/userAct": [ + "/Users/jj/dev/mykb/_wks": [ { "id": 10, - "name": "./redux/actions/userAct.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_wks.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_wks": [ + "/Users/jj/dev/src/util/getJwt": [ { "id": 11, - "name": "./node_modules/core-js/library/modules/_wks.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./src/util/getJwt.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../util/mapUser": [ + "/Users/jj/dev/mykb/react-redux": [ { "id": 12, - "name": "./util/mapUser.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/react-redux/es/index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_is-object": [ + "/Users/jj/dev/src/redux/actions/userAct": [ { "id": 13, - "name": "./node_modules/core-js/library/modules/_is-object.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./src/redux/actions/userAct.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime-corejs2/helpers/classCallCheck": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/helpers/classCallCheck": [ { "id": 14, "name": "./node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime-corejs2/helpers/createClass": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/helpers/createClass": [ { "id": 15, "name": "./node_modules/@babel/runtime-corejs2/helpers/createClass.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "isomorphic-unfetch": [ + "/Users/jj/dev/src/util/mapUser": [ { "id": 16, - "name": "./node_modules/isomorphic-unfetch/browser.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./src/util/mapUser.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../comps/Page": [ + "/Users/jj/dev/mykb/_is-object": [ { "id": 17, - "name": "./comps/Page.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_is-object.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "next/router": [ + "/Users/jj/dev/mykb/isomorphic-unfetch": [ + { + "id": 18, + "name": "./node_modules/isomorphic-unfetch/browser.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/src/components/Page": [ { "id": 19, - "name": "./node_modules/next/router.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./src/components/Page.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_object-dp": [ + "/Users/jj/dev/mykb/_object-dp": [ { "id": 20, "name": "./node_modules/core-js/library/modules/_object-dp.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_an-object": [ - { - "id": 21, - "name": "./node_modules/core-js/library/modules/_an-object.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_descriptors": [ + "/Users/jj/dev/mykb/next/router": [ { "id": 22, - "name": "./node_modules/core-js/library/modules/_descriptors.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/next/router.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../comps/PaddedRow": [ + "/Users/jj/dev/mykb/_an-object": [ { "id": 23, - "name": "./comps/PaddedRow.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_an-object.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_ctx": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/helpers/defineProperty": [ { "id": 24, - "name": "./node_modules/core-js/library/modules/_ctx.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/helpers/defineProperty.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime-corejs2/helpers/defineProperty": [ + "/Users/jj/dev/mykb/_descriptors": [ { "id": 25, - "name": "./node_modules/@babel/runtime-corejs2/helpers/defineProperty.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_descriptors.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../redux/store": [ + "/Users/jj/dev/mykb/_ctx": [ { "id": 26, - "name": "./redux/store.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_ctx.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_fails": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/helpers/possibleConstructorReturn": [ { "id": 27, - "name": "./node_modules/core-js/library/modules/_fails.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/helpers/possibleConstructorReturn.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_hide": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/helpers/getPrototypeOf": [ { "id": 28, - "name": "./node_modules/core-js/library/modules/_hide.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime-corejs2/helpers/objectSpread": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/helpers/inherits": [ { "id": 29, - "name": "./node_modules/@babel/runtime-corejs2/helpers/objectSpread.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/helpers/inherits.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime-corejs2/helpers/possibleConstructorReturn": [ + "/Users/jj/dev/src/components/PaddedRow": [ { "id": 30, - "name": "./node_modules/@babel/runtime-corejs2/helpers/possibleConstructorReturn.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./src/components/PaddedRow.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime-corejs2/helpers/getPrototypeOf": [ + "/Users/jj/dev/src/redux/store": [ { "id": 31, - "name": "./node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./src/redux/store.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime-corejs2/helpers/inherits": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/helpers/interopRequireWildcard": [ { "id": 32, - "name": "./node_modules/@babel/runtime-corejs2/helpers/inherits.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../comps/Spinner": [ + "/Users/jj/dev/mykb/_fails": [ + { + "id": 33, + "name": "./node_modules/core-js/library/modules/_fails.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_hide": [ + { + "id": 34, + "name": "./node_modules/core-js/library/modules/_hide.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/@babel/runtime-corejs2/helpers/objectSpread": [ { "id": 35, - "name": "./comps/Spinner.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/helpers/objectSpread.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime-corejs2/helpers/interopRequireWildcard": [ + "/Users/jj/dev/modules/es6.string.iterator": [ { "id": 36, - "name": "./node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/es6.string.iterator.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_to-iobject": [ + "/Users/jj/dev/lib/utils": [ { "id": 37, - "name": "./node_modules/core-js/library/modules/_to-iobject.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/next/dist/lib/utils.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_has": [ - { - "id": 38, - "name": "./node_modules/core-js/library/modules/_has.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_a-function": [ - { - "id": 39, - "name": "./node_modules/core-js/library/modules/_a-function.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../helpers/typeof": [ + "/Users/jj/dev/src/components/Spinner": [ { "id": 40, - "name": "./node_modules/@babel/runtime-corejs2/helpers/typeof.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./src/components/Spinner.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../lib/utils": [ + "/Users/jj/dev/mykb/_to-iobject": [ { "id": 41, - "name": "./node_modules/next/dist/lib/utils.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_to-iobject.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_to-object": [ + "/Users/jj/dev/mykb/_has": [ + { + "id": 42, + "name": "./node_modules/core-js/library/modules/_has.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_a-function": [ { "id": 43, - "name": "./node_modules/core-js/library/modules/_to-object.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_a-function.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime-corejs2/core-js/promise": [ + "/Users/jj/dev/mykb/_to-object": [ { "id": 44, - "name": "./node_modules/@babel/runtime-corejs2/core-js/promise.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_to-object.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../modules/es6.string.iterator": [ + "/Users/jj/dev/mykb/_iterators": [ { "id": 45, - "name": "./node_modules/core-js/library/modules/es6.string.iterator.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_iterators.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_iterators": [ + "/Users/jj/dev/helpers/typeof": [ { "id": 46, - "name": "./node_modules/core-js/library/modules/_iterators.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/helpers/typeof.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "next/link": [ - { - "id": 47, - "name": "./node_modules/next/link.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "redux": [ + "/Users/jj/dev/mykb/_property-desc": [ { "id": 48, - "name": "./node_modules/redux/es/redux.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_property-desc.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_cof": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/core-js/promise": [ { "id": 49, - "name": "./node_modules/core-js/library/modules/_cof.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/core-js/promise.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_property-desc": [ + "/Users/jj/dev/modules/web.dom.iterable": [ { "id": 50, - "name": "./node_modules/core-js/library/modules/_property-desc.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/web.dom.iterable.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_library": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/core-js/set": [ { "id": 51, - "name": "./node_modules/core-js/library/modules/_library.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/core-js/set.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_set-to-string-tag": [ + "/Users/jj/dev/mykb/next/link": [ { "id": 52, - "name": "./node_modules/core-js/library/modules/_set-to-string-tag.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/next/link.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_object-keys": [ + "/Users/jj/dev/mykb/redux": [ { "id": 53, - "name": "./node_modules/core-js/library/modules/_object-keys.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/redux/es/redux.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_object-create": [ + "/Users/jj/dev/mykb/_cof": [ { "id": 54, - "name": "./node_modules/core-js/library/modules/_object-create.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_cof.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../core-js/object/keys": [ + "/Users/jj/dev/mykb/_library": [ { "id": 55, - "name": "./node_modules/@babel/runtime-corejs2/core-js/object/keys.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_library.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../modules/web.dom.iterable": [ + "/Users/jj/dev/mykb/_set-to-string-tag": [ { "id": 56, - "name": "./node_modules/core-js/library/modules/web.dom.iterable.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_set-to-string-tag.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_for-of": [ + "/Users/jj/dev/mykb/_object-keys": [ { "id": 57, - "name": "./node_modules/core-js/library/modules/_for-of.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_object-keys.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../lib/router": [ + "/Users/jj/dev/mykb/_to-length": [ { "id": 58, - "name": "./node_modules/next/dist/lib/router/index.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_to-length.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "url": [ + "/Users/jj/dev/mykb/_object-create": [ + { + "id": 59, + "name": "./node_modules/core-js/library/modules/_object-create.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/core-js/object/keys": [ { "id": 60, - "name": "./node_modules/url/url.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/core-js/object/keys.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_object-pie": [ + "/Users/jj/dev/mykb/_classof": [ + { + "id": 61, + "name": "./node_modules/core-js/library/modules/_classof.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_for-of": [ + { + "id": 62, + "name": "./node_modules/core-js/library/modules/_for-of.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/object-assign": [ { "id": 63, - "name": "./node_modules/core-js/library/modules/_object-pie.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/object-assign/index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../core-js/object/define-property": [ + "/Users/jj/dev/lib/router": [ { "id": 64, - "name": "./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/next/dist/lib/router/index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_uid": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/helpers/assertThisInitialized": [ { "id": 65, - "name": "./node_modules/core-js/library/modules/_uid.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/helpers/assertThisInitialized.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_to-length": [ + "/Users/jj/dev/mykb/css-in-js-utils/lib/isPrefixedValue": [ { "id": 66, - "name": "./node_modules/core-js/library/modules/_to-length.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/css-in-js-utils/lib/isPrefixedValue.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime-corejs2/regenerator": [ - { - "id": 67, - "name": "./node_modules/@babel/runtime-corejs2/regenerator/index.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "@babel/runtime-corejs2/helpers/asyncToGenerator": [ + "/Users/jj/dev/mykb/url": [ { "id": 68, - "name": "./node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/url/url.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_classof": [ - { - "id": 69, - "name": "./node_modules/core-js/library/modules/_classof.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "@babel/runtime-corejs2/core-js/set": [ - { - "id": 70, - "name": "./node_modules/@babel/runtime-corejs2/core-js/set.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./../node_modules/webpack/buildin/global.js": [ + "/Users/jj/dev/mykb/_object-pie": [ { "id": 71, - "name": "./node_modules/webpack/buildin/global.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_object-pie.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime-corejs2/core-js/object/assign": [ + "/Users/jj/dev/core-js/object/define-property": [ { "id": 72, - "name": "./node_modules/@babel/runtime-corejs2/core-js/object/assign.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "@babel/runtime-corejs2/helpers/assertThisInitialized": [ + "/Users/jj/dev/mykb/_uid": [ { "id": 73, - "name": "./node_modules/@babel/runtime-corejs2/helpers/assertThisInitialized.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/core-js/library/modules/_uid.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../lib/loadable": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/regenerator": [ { "id": 74, - "name": "./node_modules/next/dist/lib/loadable.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/regenerator/index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "invariant": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/helpers/asyncToGenerator": [ { "id": 75, - "name": "./node_modules/invariant/browser.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" + "name": "./node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./_iobject": [ - { - "id": 77, - "name": "./node_modules/core-js/library/modules/_iobject.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_defined": [ - { - "id": 78, - "name": "./node_modules/core-js/library/modules/_defined.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_object-gopd": [ - { - "id": 79, - "name": "./node_modules/core-js/library/modules/_object-gopd.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_to-primitive": [ - { - "id": 80, - "name": "./node_modules/core-js/library/modules/_to-primitive.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_dom-create": [ - { - "id": 81, - "name": "./node_modules/core-js/library/modules/_dom-create.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_object-sap": [ - { - "id": 82, - "name": "./node_modules/core-js/library/modules/_object-sap.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_meta": [ - { - "id": 83, - "name": "./node_modules/core-js/library/modules/_meta.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_shared": [ - { - "id": 84, - "name": "./node_modules/core-js/library/modules/_shared.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../../modules/_wks-ext": [ - { - "id": 85, - "name": "./node_modules/core-js/library/modules/_wks-ext.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_wks-define": [ - { - "id": 86, - "name": "./node_modules/core-js/library/modules/_wks-define.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_to-integer": [ - { - "id": 87, - "name": "./node_modules/core-js/library/modules/_to-integer.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_shared-key": [ - { - "id": 88, - "name": "./node_modules/core-js/library/modules/_shared-key.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_enum-bug-keys": [ - { - "id": 89, - "name": "./node_modules/core-js/library/modules/_enum-bug-keys.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_object-gops": [ - { - "id": 90, - "name": "./node_modules/core-js/library/modules/_object-gops.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_is-array": [ - { - "id": 91, - "name": "./node_modules/core-js/library/modules/_is-array.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../modules/es6.object.to-string": [ - { - "id": 92, - "name": "./node_modules/core-js/library/modules/es6.object.to-string.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_iter-define": [ - { - "id": 93, - "name": "./node_modules/core-js/library/modules/_iter-define.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_an-instance": [ - { - "id": 94, - "name": "./node_modules/core-js/library/modules/_an-instance.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./core.get-iterator-method": [ - { - "id": 95, - "name": "./node_modules/core-js/library/modules/core.get-iterator-method.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_new-promise-capability": [ - { - "id": 96, - "name": "./node_modules/core-js/library/modules/_new-promise-capability.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_redefine-all": [ - { - "id": 97, - "name": "./node_modules/core-js/library/modules/_redefine-all.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "@babel/runtime-corejs2/helpers/slicedToArray": [ - { - "id": 98, - "name": "./node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "@babel/runtime-corejs2/core-js/array/is-array": [ - { - "id": 99, - "name": "./node_modules/@babel/runtime-corejs2/core-js/array/is-array.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../lib/EventEmitter": [ - { - "id": 100, - "name": "./node_modules/next/dist/lib/EventEmitter.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "hoist-non-react-statics": [ - { - "id": 101, - "name": "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "symbol-observable": [ - { - "id": 103, - "name": "./node_modules/symbol-observable/es/index.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../core-js/object/get-own-property-descriptor": [ - { - "id": 104, - "name": "./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_ie8-dom-define": [ - { - "id": 105, - "name": "./node_modules/core-js/library/modules/_ie8-dom-define.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../../modules/es6.symbol": [ - { - "id": 106, - "name": "./node_modules/core-js/library/modules/es6.symbol.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_redefine": [ - { - "id": 107, - "name": "./node_modules/core-js/library/modules/_redefine.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_object-keys-internal": [ - { - "id": 108, - "name": "./node_modules/core-js/library/modules/_object-keys-internal.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_html": [ - { - "id": 109, - "name": "./node_modules/core-js/library/modules/_html.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_object-gopn": [ - { - "id": 110, - "name": "./node_modules/core-js/library/modules/_object-gopn.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "regenerator-runtime": [ - { - "id": 111, - "name": "./node_modules/regenerator-runtime/runtime-module.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_object-gpo": [ - { - "id": 112, - "name": "./node_modules/core-js/library/modules/_object-gpo.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_iter-step": [ - { - "id": 113, - "name": "./node_modules/core-js/library/modules/_iter-step.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_iter-call": [ - { - "id": 114, - "name": "./node_modules/core-js/library/modules/_iter-call.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_is-array-iter": [ - { - "id": 115, - "name": "./node_modules/core-js/library/modules/_is-array-iter.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_species-constructor": [ - { - "id": 116, - "name": "./node_modules/core-js/library/modules/_species-constructor.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_task": [ - { - "id": 117, - "name": "./node_modules/core-js/library/modules/_task.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_invoke": [ - { - "id": 118, - "name": "./node_modules/core-js/library/modules/_invoke.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_perform": [ - { - "id": 119, - "name": "./node_modules/core-js/library/modules/_perform.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_promise-resolve": [ - { - "id": 120, - "name": "./node_modules/core-js/library/modules/_promise-resolve.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_set-species": [ - { - "id": 121, - "name": "./node_modules/core-js/library/modules/_set-species.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_iter-detect": [ - { - "id": 122, - "name": "./node_modules/core-js/library/modules/_iter-detect.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "object-assign": [ - { - "id": 123, - "name": "./node_modules/object-assign/index.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./setPrototypeOf": [ - { - "id": 124, - "name": "./node_modules/@babel/runtime-corejs2/helpers/setPrototypeOf.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../core-js/object/set-prototype-of": [ - { - "id": 125, - "name": "./node_modules/@babel/runtime-corejs2/core-js/object/set-prototype-of.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_validate-collection": [ - { - "id": 126, - "name": "./node_modules/core-js/library/modules/_validate-collection.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./../../../webpack/buildin/module.js": [ - { - "id": 127, - "name": "./node_modules/webpack/buildin/module.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./shallow-equals": [ - { - "id": 128, - "name": "./node_modules/next/dist/lib/shallow-equals.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "unfetch": [ - { - "id": 129, - "name": "./node_modules/isomorphic-unfetch/node_modules/unfetch/dist/unfetch.es.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../util/keys": [ - { - "id": 130, - "name": "./util/keys.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./ponyfill.js": [ - { - "id": 131, - "name": "./node_modules/symbol-observable/es/ponyfill.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_freeGlobal.js": [ - { - "id": 132, - "name": "./node_modules/lodash-es/_freeGlobal.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./../../../process/browser.js": [ - { - "id": 134, - "name": "./node_modules/process/browser.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/object/get-own-property-descriptor": [ - { - "id": 137, - "name": "./node_modules/core-js/library/fn/object/get-own-property-descriptor.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../../modules/es6.object.get-own-property-descriptor": [ - { - "id": 138, - "name": "./node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/object/define-property": [ - { - "id": 139, - "name": "./node_modules/core-js/library/fn/object/define-property.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../../modules/es6.object.define-property": [ - { - "id": 140, - "name": "./node_modules/core-js/library/modules/es6.object.define-property.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../core-js/object/get-own-property-symbols": [ - { - "id": 142, - "name": "./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-symbols.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/object/get-own-property-symbols": [ - { - "id": 143, - "name": "./node_modules/core-js/library/fn/object/get-own-property-symbols.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_enum-keys": [ - { - "id": 144, - "name": "./node_modules/core-js/library/modules/_enum-keys.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_array-includes": [ - { - "id": 145, - "name": "./node_modules/core-js/library/modules/_array-includes.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_to-absolute-index": [ - { - "id": 146, - "name": "./node_modules/core-js/library/modules/_to-absolute-index.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_object-dps": [ - { - "id": 147, - "name": "./node_modules/core-js/library/modules/_object-dps.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_object-gopn-ext": [ - { - "id": 148, - "name": "./node_modules/core-js/library/modules/_object-gopn-ext.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/object/keys": [ - { - "id": 149, - "name": "./node_modules/core-js/library/fn/object/keys.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../../modules/es6.object.keys": [ - { - "id": 150, - "name": "./node_modules/core-js/library/modules/es6.object.keys.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./runtime": [ - { - "id": 151, - "name": "./node_modules/regenerator-runtime/runtime.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/promise": [ - { - "id": 152, - "name": "./node_modules/core-js/library/fn/promise.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_string-at": [ - { - "id": 153, - "name": "./node_modules/core-js/library/modules/_string-at.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_iter-create": [ - { - "id": 154, - "name": "./node_modules/core-js/library/modules/_iter-create.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./es6.array.iterator": [ - { - "id": 155, - "name": "./node_modules/core-js/library/modules/es6.array.iterator.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_add-to-unscopables": [ - { - "id": 156, - "name": "./node_modules/core-js/library/modules/_add-to-unscopables.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../modules/es6.promise": [ - { - "id": 157, - "name": "./node_modules/core-js/library/modules/es6.promise.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_microtask": [ - { - "id": 158, - "name": "./node_modules/core-js/library/modules/_microtask.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_user-agent": [ - { - "id": 159, - "name": "./node_modules/core-js/library/modules/_user-agent.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../modules/es7.promise.finally": [ - { - "id": 160, - "name": "./node_modules/core-js/library/modules/es7.promise.finally.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../modules/es7.promise.try": [ - { - "id": 161, - "name": "./node_modules/core-js/library/modules/es7.promise.try.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./arrayWithHoles": [ - { - "id": 162, - "name": "./node_modules/@babel/runtime-corejs2/helpers/arrayWithHoles.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/array/is-array": [ - { - "id": 163, - "name": "./node_modules/core-js/library/fn/array/is-array.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../../modules/es6.array.is-array": [ - { - "id": 164, - "name": "./node_modules/core-js/library/modules/es6.array.is-array.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./iterableToArrayLimit": [ - { - "id": 165, - "name": "./node_modules/@babel/runtime-corejs2/helpers/iterableToArrayLimit.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../core-js/get-iterator": [ - { - "id": 166, - "name": "./node_modules/@babel/runtime-corejs2/core-js/get-iterator.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/get-iterator": [ - { - "id": 167, - "name": "./node_modules/core-js/library/fn/get-iterator.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../modules/core.get-iterator": [ - { - "id": 168, - "name": "./node_modules/core-js/library/modules/core.get-iterator.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./nonIterableRest": [ - { - "id": 169, - "name": "./node_modules/@babel/runtime-corejs2/helpers/nonIterableRest.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./cjs/react.production.min.js": [ - { - "id": 170, - "name": "./node_modules/react/cjs/react.production.min.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "react-dom": [ - { - "id": 171, - "name": "./node_modules/react-dom/index.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./cjs/react-dom.production.min.js": [ - { - "id": 172, - "name": "./node_modules/react-dom/cjs/react-dom.production.min.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../core-js/symbol/iterator": [ - { - "id": 176, - "name": "./node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/symbol/iterator": [ - { - "id": 177, - "name": "./node_modules/core-js/library/fn/symbol/iterator.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../core-js/symbol": [ - { - "id": 178, - "name": "./node_modules/@babel/runtime-corejs2/core-js/symbol.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/symbol": [ - { - "id": 179, - "name": "./node_modules/core-js/library/fn/symbol/index.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../../modules/es7.symbol.async-iterator": [ - { - "id": 180, - "name": "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../../modules/es7.symbol.observable": [ - { - "id": 181, - "name": "./node_modules/core-js/library/modules/es7.symbol.observable.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "@babel/runtime-corejs2/helpers/construct": [ - { - "id": 182, - "name": "./node_modules/@babel/runtime-corejs2/helpers/construct.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../core-js/reflect/construct": [ - { - "id": 183, - "name": "./node_modules/@babel/runtime-corejs2/core-js/reflect/construct.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/reflect/construct": [ - { - "id": 184, - "name": "./node_modules/core-js/library/fn/reflect/construct.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../../modules/es6.reflect.construct": [ - { - "id": 185, - "name": "./node_modules/core-js/library/modules/es6.reflect.construct.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_bind": [ - { - "id": 186, - "name": "./node_modules/core-js/library/modules/_bind.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/object/set-prototype-of": [ - { - "id": 187, - "name": "./node_modules/core-js/library/fn/object/set-prototype-of.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../../modules/es6.object.set-prototype-of": [ - { - "id": 188, - "name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_set-proto": [ - { - "id": 189, - "name": "./node_modules/core-js/library/modules/_set-proto.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./router": [ - { - "id": 190, - "name": "./node_modules/next/dist/lib/router/router.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/set": [ - { - "id": 191, - "name": "./node_modules/core-js/library/fn/set.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../modules/es6.set": [ - { - "id": 192, - "name": "./node_modules/core-js/library/modules/es6.set.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_collection-strong": [ - { - "id": 193, - "name": "./node_modules/core-js/library/modules/_collection-strong.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_collection": [ - { - "id": 194, - "name": "./node_modules/core-js/library/modules/_collection.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_array-methods": [ - { - "id": 195, - "name": "./node_modules/core-js/library/modules/_array-methods.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_array-species-create": [ - { - "id": 196, - "name": "./node_modules/core-js/library/modules/_array-species-create.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_array-species-constructor": [ - { - "id": 197, - "name": "./node_modules/core-js/library/modules/_array-species-constructor.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../modules/es7.set.to-json": [ - { - "id": 198, - "name": "./node_modules/core-js/library/modules/es7.set.to-json.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_collection-to-json": [ - { - "id": 199, - "name": "./node_modules/core-js/library/modules/_collection-to-json.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_array-from-iterable": [ - { - "id": 200, - "name": "./node_modules/core-js/library/modules/_array-from-iterable.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../modules/es7.set.of": [ - { - "id": 201, - "name": "./node_modules/core-js/library/modules/es7.set.of.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_set-collection-of": [ - { - "id": 202, - "name": "./node_modules/core-js/library/modules/_set-collection-of.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../modules/es7.set.from": [ - { - "id": 203, - "name": "./node_modules/core-js/library/modules/es7.set.from.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_set-collection-from": [ - { - "id": 204, - "name": "./node_modules/core-js/library/modules/_set-collection-from.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "punycode": [ - { - "id": 205, - "name": "./node_modules/punycode/punycode.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./util": [ - { - "id": 206, - "name": "./node_modules/url/util.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "querystring": [ - { - "id": 207, - "name": "./node_modules/querystring-es3/index.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./decode": [ - { - "id": 208, - "name": "./node_modules/querystring-es3/decode.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - }, - { - "id": 312, - "name": "./node_modules/remark-parse/lib/decode.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./encode": [ - { - "id": 209, - "name": "./node_modules/querystring-es3/encode.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../p-queue": [ - { - "id": 210, - "name": "./node_modules/next/dist/lib/p-queue.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/object/assign": [ - { - "id": 211, - "name": "./node_modules/core-js/library/fn/object/assign.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../../modules/es6.object.assign": [ - { - "id": 212, - "name": "./node_modules/core-js/library/modules/es6.object.assign.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./_object-assign": [ - { - "id": 213, - "name": "./node_modules/core-js/library/modules/_object-assign.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./with-router": [ - { - "id": 214, - "name": "./node_modules/next/dist/lib/router/with-router.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../core-js/object/get-prototype-of": [ - { - "id": 215, - "name": "./node_modules/@babel/runtime-corejs2/core-js/object/get-prototype-of.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/object/get-prototype-of": [ - { - "id": 216, - "name": "./node_modules/core-js/library/fn/object/get-prototype-of.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../../modules/es6.object.get-prototype-of": [ - { - "id": 217, - "name": "./node_modules/core-js/library/modules/es6.object.get-prototype-of.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../core-js/object/create": [ - { - "id": 218, - "name": "./node_modules/@babel/runtime-corejs2/core-js/object/create.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/object/create": [ - { - "id": 219, - "name": "./node_modules/core-js/library/fn/object/create.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../../modules/es6.object.create": [ - { - "id": 220, - "name": "./node_modules/core-js/library/modules/es6.object.create.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./factoryWithThrowingShims": [ - { - "id": 221, - "name": "./node_modules/prop-types/factoryWithThrowingShims.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./lib/ReactPropTypesSecret": [ - { - "id": 222, - "name": "./node_modules/prop-types/lib/ReactPropTypesSecret.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "url-join": [ - { - "id": 231, - "name": "./node_modules/url-join/lib/url-join.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./../../webpack/buildin/harmony-module.js": [ - { - "id": 232, - "name": "./node_modules/webpack/buildin/harmony-module.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "./dist/lib/link": [ - { - "id": 239, - "name": "./node_modules/next/dist/lib/link.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "@babel/runtime-corejs2/core-js/json/stringify": [ - { - "id": 240, - "name": "./node_modules/@babel/runtime-corejs2/core-js/json/stringify.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "core-js/library/fn/json/stringify": [ - { - "id": 241, - "name": "./node_modules/core-js/library/fn/json/stringify.js", - "file": "static/chunks/commons.be3566392b121f4c3810.js", - "publicPath": "static/chunks/commons.be3566392b121f4c3810.js" - } - ], - "../comps/CodeMirror": [ + "/Users/jj/dev/mykb/core.get-iterator-method": [ { "id": 76, - "name": "./comps/CodeMirror.js", - "file": "static/chunks/10.92205884f2772342b0b5.js", - "publicPath": "static/chunks/10.92205884f2772342b0b5.js" + "name": "./node_modules/core-js/library/modules/core.get-iterator-method.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "codemirror": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/core-js/array/is-array": [ { - "id": 274, - "name": "./node_modules/codemirror/lib/codemirror.js", - "file": "static/chunks/10.92205884f2772342b0b5.js", - "publicPath": "static/chunks/10.92205884f2772342b0b5.js" + "id": 77, + "name": "./node_modules/@babel/runtime-corejs2/core-js/array/is-array.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "codemirror/mode/markdown/markdown": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/core-js/object/assign": [ { - "id": 289, - "name": "./node_modules/codemirror/mode/markdown/markdown.js", - "file": "static/chunks/10.92205884f2772342b0b5.js", - "publicPath": "static/chunks/10.92205884f2772342b0b5.js" + "id": 78, + "name": "./node_modules/@babel/runtime-corejs2/core-js/object/assign.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../xml/xml": [ + "/Users/jj/dev/lib/loadable": [ { - "id": 290, - "name": "./node_modules/codemirror/mode/xml/xml.js", - "file": "static/chunks/10.92205884f2772342b0b5.js", - "publicPath": "static/chunks/10.92205884f2772342b0b5.js" + "id": 79, + "name": "./node_modules/next/dist/lib/loadable.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../meta": [ + "/Users/jj/dev/mykb/invariant": [ { - "id": 291, - "name": "./node_modules/codemirror/mode/meta.js", - "file": "static/chunks/10.92205884f2772342b0b5.js", - "publicPath": "static/chunks/10.92205884f2772342b0b5.js" + "id": 80, + "name": "./node_modules/invariant/browser.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "is-whitespace-character": [ + "/Users/jj/dev/mykb/_iobject": [ { - "id": 271, - "name": "./node_modules/is-whitespace-character/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 81, + "name": "./node_modules/core-js/library/modules/_iobject.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "xtend": [ + "/Users/jj/dev/mykb/_defined": [ { - "id": 272, - "name": "./node_modules/xtend/immutable.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 82, + "name": "./node_modules/core-js/library/modules/_defined.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "trim": [ + "/Users/jj/dev/mykb/_object-gopd": [ { - "id": 273, - "name": "./node_modules/trim/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 83, + "name": "./node_modules/core-js/library/modules/_object-gopd.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "is-decimal": [ + "/Users/jj/dev/mykb/_to-primitive": [ { - "id": 275, - "name": "./node_modules/is-decimal/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 84, + "name": "./node_modules/core-js/library/modules/_to-primitive.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "unist-util-visit": [ + "/Users/jj/dev/mykb/_dom-create": [ { - "id": 276, - "name": "./node_modules/unist-util-visit/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 85, + "name": "./node_modules/core-js/library/modules/_dom-create.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "parse-entities": [ + "/Users/jj/dev/mykb/_object-sap": [ { - "id": 277, - "name": "./node_modules/parse-entities/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 86, + "name": "./node_modules/core-js/library/modules/_object-sap.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "repeat-string": [ + "/Users/jj/dev/mykb/_meta": [ { - "id": 278, - "name": "./node_modules/repeat-string/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 87, + "name": "./node_modules/core-js/library/modules/_meta.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "trim-trailing-lines": [ + "/Users/jj/dev/mykb/_shared": [ { - "id": 279, - "name": "./node_modules/trim-trailing-lines/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 88, + "name": "./node_modules/core-js/library/modules/_shared.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../util/interrupt": [ + "/Users/jj/modules/_wks-ext": [ { - "id": 280, - "name": "./node_modules/remark-parse/lib/util/interrupt.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 89, + "name": "./node_modules/core-js/library/modules/_wks-ext.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../util/normalize": [ + "/Users/jj/dev/mykb/_wks-define": [ { - "id": 281, - "name": "./node_modules/remark-parse/lib/util/normalize.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 90, + "name": "./node_modules/core-js/library/modules/_wks-define.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "path": [ + "/Users/jj/dev/mykb/_to-integer": [ { - "id": 282, - "name": "./node_modules/path-browserify/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 91, + "name": "./node_modules/core-js/library/modules/_to-integer.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "is-alphabetical": [ + "/Users/jj/dev/mykb/_shared-key": [ { - "id": 283, - "name": "./node_modules/is-alphabetical/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 92, + "name": "./node_modules/core-js/library/modules/_shared-key.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./defaults": [ + "/Users/jj/dev/mykb/_enum-bug-keys": [ { - "id": 284, - "name": "./node_modules/remark-parse/lib/defaults.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 93, + "name": "./node_modules/core-js/library/modules/_enum-bug-keys.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../util/get-indentation": [ + "/Users/jj/dev/mykb/_object-gops": [ { - "id": 285, - "name": "./node_modules/remark-parse/lib/util/get-indentation.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 94, + "name": "./node_modules/core-js/library/modules/_object-gops.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../util/html": [ + "/Users/jj/dev/mykb/_is-array": [ { - "id": 286, - "name": "./node_modules/remark-parse/lib/util/html.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 95, + "name": "./node_modules/core-js/library/modules/_is-array.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../locate/tag": [ + "/Users/jj/dev/modules/es6.object.to-string": [ { - "id": 287, - "name": "./node_modules/remark-parse/lib/locate/tag.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 96, + "name": "./node_modules/core-js/library/modules/es6.object.to-string.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../locate/link": [ + "/Users/jj/dev/mykb/_iter-define": [ { - "id": 288, - "name": "./node_modules/remark-parse/lib/locate/link.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 97, + "name": "./node_modules/core-js/library/modules/_iter-define.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "unified": [ + "/Users/jj/dev/mykb/_an-instance": [ { - "id": 292, - "name": "./node_modules/unified/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 98, + "name": "./node_modules/core-js/library/modules/_an-instance.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "extend": [ + "/Users/jj/dev/mykb/_iter-call": [ { - "id": 293, - "name": "./node_modules/extend/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 99, + "name": "./node_modules/core-js/library/modules/_iter-call.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "bail": [ + "/Users/jj/dev/mykb/_is-array-iter": [ { - "id": 294, - "name": "./node_modules/bail/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 100, + "name": "./node_modules/core-js/library/modules/_is-array-iter.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "vfile": [ + "/Users/jj/dev/mykb/_new-promise-capability": [ { - "id": 295, - "name": "./node_modules/vfile/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 101, + "name": "./node_modules/core-js/library/modules/_new-promise-capability.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "vfile-message": [ + "/Users/jj/dev/mykb/_redefine-all": [ { - "id": 296, - "name": "./node_modules/vfile-message/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 102, + "name": "./node_modules/core-js/library/modules/_redefine-all.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "unist-util-stringify-position": [ + "/Users/jj/dev/mykb/_iter-detect": [ { - "id": 297, - "name": "./node_modules/unist-util-stringify-position/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 103, + "name": "./node_modules/core-js/library/modules/_iter-detect.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./core.js": [ + "/Users/jj/dev/mykb/@babel/runtime-corejs2/helpers/slicedToArray": [ { - "id": 298, - "name": "./node_modules/vfile/core.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 104, + "name": "./node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "replace-ext": [ + "/Users/jj/dev/webpack/buildin/global.js": [ { - "id": 299, - "name": "./node_modules/replace-ext/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 105, + "name": "./node_modules/webpack/buildin/global.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "is-buffer": [ + "/Users/jj/dev/lib/EventEmitter": [ { - "id": 300, - "name": "./node_modules/is-buffer/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 106, + "name": "./node_modules/next/dist/lib/EventEmitter.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "trough": [ + "/Users/jj/dev/mykb/hoist-non-react-statics": [ { - "id": 301, - "name": "./node_modules/trough/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 120, + "name": "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./wrap.js": [ + "/Users/jj/dev/mykb/symbol-observable": [ { - "id": 302, - "name": "./node_modules/trough/wrap.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 121, + "name": "./node_modules/symbol-observable/es/index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "x-is-string": [ + "/Users/jj/dev/core-js/object/get-own-property-descriptor": [ { - "id": 303, - "name": "./node_modules/x-is-string/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 123, + "name": "./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "is-plain-obj": [ + "/Users/jj/dev/mykb/_ie8-dom-define": [ { - "id": 304, - "name": "./node_modules/is-plain-obj/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 124, + "name": "./node_modules/core-js/library/modules/_ie8-dom-define.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "remark-parse": [ + "/Users/jj/modules/es6.symbol": [ { - "id": 305, - "name": "./node_modules/remark-parse/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 125, + "name": "./node_modules/core-js/library/modules/es6.symbol.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "unherit": [ + "/Users/jj/dev/mykb/_redefine": [ { - "id": 306, - "name": "./node_modules/unherit/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 126, + "name": "./node_modules/core-js/library/modules/_redefine.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "inherits": [ + "/Users/jj/dev/mykb/_object-keys-internal": [ { - "id": 307, - "name": "./node_modules/inherits/inherits_browser.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 127, + "name": "./node_modules/core-js/library/modules/_object-keys-internal.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./lib/parser.js": [ + "/Users/jj/dev/mykb/_html": [ { - "id": 308, - "name": "./node_modules/remark-parse/lib/parser.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 128, + "name": "./node_modules/core-js/library/modules/_html.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "state-toggle": [ + "/Users/jj/dev/mykb/_object-gopn": [ { - "id": 309, - "name": "./node_modules/state-toggle/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 129, + "name": "./node_modules/core-js/library/modules/_object-gopn.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "vfile-location": [ + "/Users/jj/dev/mykb/regenerator-runtime": [ { - "id": 310, - "name": "./node_modules/vfile-location/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 130, + "name": "./node_modules/regenerator-runtime/runtime-module.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./unescape": [ + "/Users/jj/dev/mykb/_object-gpo": [ { - "id": 311, - "name": "./node_modules/remark-parse/lib/unescape.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 131, + "name": "./node_modules/core-js/library/modules/_object-gpo.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "character-entities": [ + "/Users/jj/dev/mykb/_iter-step": [ { - "id": 313, - "name": "./node_modules/character-entities/index.json", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 132, + "name": "./node_modules/core-js/library/modules/_iter-step.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "character-entities-legacy": [ + "/Users/jj/dev/mykb/_species-constructor": [ { - "id": 314, - "name": "./node_modules/character-entities-legacy/index.json", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 133, + "name": "./node_modules/core-js/library/modules/_species-constructor.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "character-reference-invalid": [ + "/Users/jj/dev/mykb/_task": [ { - "id": 315, - "name": "./node_modules/character-reference-invalid/index.json", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 134, + "name": "./node_modules/core-js/library/modules/_task.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "is-hexadecimal": [ + "/Users/jj/dev/mykb/_invoke": [ { - "id": 316, - "name": "./node_modules/is-hexadecimal/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 135, + "name": "./node_modules/core-js/library/modules/_invoke.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "is-alphanumerical": [ + "/Users/jj/dev/mykb/_perform": [ { - "id": 317, - "name": "./node_modules/is-alphanumerical/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 136, + "name": "./node_modules/core-js/library/modules/_perform.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./tokenizer": [ + "/Users/jj/dev/mykb/_promise-resolve": [ { - "id": 318, - "name": "./node_modules/remark-parse/lib/tokenizer.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 137, + "name": "./node_modules/core-js/library/modules/_promise-resolve.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./set-options": [ + "/Users/jj/dev/mykb/_set-species": [ { - "id": 319, - "name": "./node_modules/remark-parse/lib/set-options.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 138, + "name": "./node_modules/core-js/library/modules/_set-species.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "markdown-escapes": [ + "/Users/jj/dev/mykb/setPrototypeOf": [ { - "id": 320, - "name": "./node_modules/markdown-escapes/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 139, + "name": "./node_modules/@babel/runtime-corejs2/helpers/setPrototypeOf.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./block-elements.json": [ + "/Users/jj/dev/core-js/object/set-prototype-of": [ { - "id": 321, - "name": "./node_modules/remark-parse/lib/block-elements.json", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 140, + "name": "./node_modules/@babel/runtime-corejs2/core-js/object/set-prototype-of.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./parse": [ + "/Users/jj/dev/mykb/_validate-collection": [ { - "id": 322, - "name": "./node_modules/remark-parse/lib/parse.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 141, + "name": "./node_modules/core-js/library/modules/_validate-collection.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "unist-util-remove-position": [ + "/Users/webpack/buildin/module.js": [ { - "id": 323, - "name": "./node_modules/unist-util-remove-position/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 142, + "name": "./node_modules/webpack/buildin/module.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "unist-util-visit-parents": [ + "/Users/jj/dev/mykb/shallow-equals": [ { - "id": 324, - "name": "./node_modules/unist-util-visit/node_modules/unist-util-visit-parents/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 143, + "name": "./node_modules/next/dist/lib/shallow-equals.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/CSSPropertyOperations": [ + { + "id": 144, + "name": "./node_modules/glamor/lib/CSSPropertyOperations/index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/fbjs/lib/warning": [ + { + "id": 145, + "name": "./node_modules/fbjs/lib/warning.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/capitalizeString": [ + { + "id": 146, + "name": "./node_modules/inline-style-prefixer/utils/capitalizeString.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/unfetch": [ + { + "id": 147, + "name": "./node_modules/isomorphic-unfetch/node_modules/unfetch/dist/unfetch.es.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/util/keys": [ + { + "id": 148, + "name": "./src/util/keys.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/ponyfill.js": [ + { + "id": 150, + "name": "./node_modules/symbol-observable/es/ponyfill.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_freeGlobal.js": [ + { + "id": 151, + "name": "./node_modules/lodash-es/_freeGlobal.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/process/browser.js": [ + { + "id": 153, + "name": "./node_modules/process/browser.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/object/get-own-property-descriptor": [ + { + "id": 156, + "name": "./node_modules/core-js/library/fn/object/get-own-property-descriptor.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/modules/es6.object.get-own-property-descriptor": [ + { + "id": 157, + "name": "./node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/object/define-property": [ + { + "id": 158, + "name": "./node_modules/core-js/library/fn/object/define-property.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/modules/es6.object.define-property": [ + { + "id": 159, + "name": "./node_modules/core-js/library/modules/es6.object.define-property.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/core-js/object/get-own-property-symbols": [ + { + "id": 161, + "name": "./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-symbols.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/object/get-own-property-symbols": [ + { + "id": 162, + "name": "./node_modules/core-js/library/fn/object/get-own-property-symbols.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_enum-keys": [ + { + "id": 163, + "name": "./node_modules/core-js/library/modules/_enum-keys.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_array-includes": [ + { + "id": 164, + "name": "./node_modules/core-js/library/modules/_array-includes.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_to-absolute-index": [ + { + "id": 165, + "name": "./node_modules/core-js/library/modules/_to-absolute-index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_object-dps": [ + { + "id": 166, + "name": "./node_modules/core-js/library/modules/_object-dps.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_object-gopn-ext": [ + { + "id": 167, + "name": "./node_modules/core-js/library/modules/_object-gopn-ext.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/object/keys": [ + { + "id": 168, + "name": "./node_modules/core-js/library/fn/object/keys.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/modules/es6.object.keys": [ + { + "id": 169, + "name": "./node_modules/core-js/library/modules/es6.object.keys.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/runtime": [ + { + "id": 170, + "name": "./node_modules/regenerator-runtime/runtime.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/promise": [ + { + "id": 171, + "name": "./node_modules/core-js/library/fn/promise.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_string-at": [ + { + "id": 172, + "name": "./node_modules/core-js/library/modules/_string-at.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_iter-create": [ + { + "id": 173, + "name": "./node_modules/core-js/library/modules/_iter-create.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/es6.array.iterator": [ + { + "id": 174, + "name": "./node_modules/core-js/library/modules/es6.array.iterator.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_add-to-unscopables": [ + { + "id": 175, + "name": "./node_modules/core-js/library/modules/_add-to-unscopables.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/modules/es6.promise": [ + { + "id": 176, + "name": "./node_modules/core-js/library/modules/es6.promise.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_microtask": [ + { + "id": 177, + "name": "./node_modules/core-js/library/modules/_microtask.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_user-agent": [ + { + "id": 178, + "name": "./node_modules/core-js/library/modules/_user-agent.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/modules/es7.promise.finally": [ + { + "id": 179, + "name": "./node_modules/core-js/library/modules/es7.promise.finally.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/modules/es7.promise.try": [ + { + "id": 180, + "name": "./node_modules/core-js/library/modules/es7.promise.try.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/arrayWithHoles": [ + { + "id": 181, + "name": "./node_modules/@babel/runtime-corejs2/helpers/arrayWithHoles.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/array/is-array": [ + { + "id": 182, + "name": "./node_modules/core-js/library/fn/array/is-array.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/modules/es6.array.is-array": [ + { + "id": 183, + "name": "./node_modules/core-js/library/modules/es6.array.is-array.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/iterableToArrayLimit": [ + { + "id": 184, + "name": "./node_modules/@babel/runtime-corejs2/helpers/iterableToArrayLimit.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/core-js/get-iterator": [ + { + "id": 185, + "name": "./node_modules/@babel/runtime-corejs2/core-js/get-iterator.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/get-iterator": [ + { + "id": 186, + "name": "./node_modules/core-js/library/fn/get-iterator.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/modules/core.get-iterator": [ + { + "id": 187, + "name": "./node_modules/core-js/library/modules/core.get-iterator.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/nonIterableRest": [ + { + "id": 188, + "name": "./node_modules/@babel/runtime-corejs2/helpers/nonIterableRest.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/cjs/react.production.min.js": [ + { + "id": 189, + "name": "./node_modules/react/cjs/react.production.min.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/react-dom": [ + { + "id": 190, + "name": "./node_modules/react-dom/index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/cjs/react-dom.production.min.js": [ + { + "id": 191, + "name": "./node_modules/react-dom/cjs/react-dom.production.min.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/core-js/symbol/iterator": [ + { + "id": 195, + "name": "./node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/symbol/iterator": [ + { + "id": 196, + "name": "./node_modules/core-js/library/fn/symbol/iterator.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/core-js/symbol": [ + { + "id": 197, + "name": "./node_modules/@babel/runtime-corejs2/core-js/symbol.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/symbol": [ + { + "id": 198, + "name": "./node_modules/core-js/library/fn/symbol/index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/modules/es7.symbol.async-iterator": [ + { + "id": 199, + "name": "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/modules/es7.symbol.observable": [ + { + "id": 200, + "name": "./node_modules/core-js/library/modules/es7.symbol.observable.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/@babel/runtime-corejs2/helpers/construct": [ + { + "id": 201, + "name": "./node_modules/@babel/runtime-corejs2/helpers/construct.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/core-js/reflect/construct": [ + { + "id": 202, + "name": "./node_modules/@babel/runtime-corejs2/core-js/reflect/construct.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/reflect/construct": [ + { + "id": 203, + "name": "./node_modules/core-js/library/fn/reflect/construct.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/modules/es6.reflect.construct": [ + { + "id": 204, + "name": "./node_modules/core-js/library/modules/es6.reflect.construct.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_bind": [ + { + "id": 205, + "name": "./node_modules/core-js/library/modules/_bind.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/object/set-prototype-of": [ + { + "id": 206, + "name": "./node_modules/core-js/library/fn/object/set-prototype-of.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/modules/es6.object.set-prototype-of": [ + { + "id": 207, + "name": "./node_modules/core-js/library/modules/es6.object.set-prototype-of.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_set-proto": [ + { + "id": 208, + "name": "./node_modules/core-js/library/modules/_set-proto.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/router": [ + { + "id": 209, + "name": "./node_modules/next/dist/lib/router/router.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/set": [ + { + "id": 210, + "name": "./node_modules/core-js/library/fn/set.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/modules/es6.set": [ + { + "id": 211, + "name": "./node_modules/core-js/library/modules/es6.set.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_collection-strong": [ + { + "id": 212, + "name": "./node_modules/core-js/library/modules/_collection-strong.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_collection": [ + { + "id": 213, + "name": "./node_modules/core-js/library/modules/_collection.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_array-methods": [ + { + "id": 214, + "name": "./node_modules/core-js/library/modules/_array-methods.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_array-species-create": [ + { + "id": 215, + "name": "./node_modules/core-js/library/modules/_array-species-create.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_array-species-constructor": [ + { + "id": 216, + "name": "./node_modules/core-js/library/modules/_array-species-constructor.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/modules/es7.set.to-json": [ + { + "id": 217, + "name": "./node_modules/core-js/library/modules/es7.set.to-json.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_collection-to-json": [ + { + "id": 218, + "name": "./node_modules/core-js/library/modules/_collection-to-json.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_array-from-iterable": [ + { + "id": 219, + "name": "./node_modules/core-js/library/modules/_array-from-iterable.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/modules/es7.set.of": [ + { + "id": 220, + "name": "./node_modules/core-js/library/modules/es7.set.of.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_set-collection-of": [ + { + "id": 221, + "name": "./node_modules/core-js/library/modules/_set-collection-of.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/modules/es7.set.from": [ + { + "id": 222, + "name": "./node_modules/core-js/library/modules/es7.set.from.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/_set-collection-from": [ + { + "id": 223, + "name": "./node_modules/core-js/library/modules/_set-collection-from.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/punycode": [ + { + "id": 224, + "name": "./node_modules/punycode/punycode.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/util": [ + { + "id": 225, + "name": "./node_modules/url/util.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/querystring": [ + { + "id": 226, + "name": "./node_modules/querystring-es3/index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/decode": [ + { + "id": 227, + "name": "./node_modules/querystring-es3/decode.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" }, - { - "id": 362, - "name": "./node_modules/unist-util-visit-parents/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "unist-util-is": [ - { - "id": 325, - "name": "./node_modules/unist-util-is/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/newline": [ - { - "id": 326, - "name": "./node_modules/remark-parse/lib/tokenize/newline.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/code-indented": [ - { - "id": 327, - "name": "./node_modules/remark-parse/lib/tokenize/code-indented.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/code-fenced": [ - { - "id": 328, - "name": "./node_modules/remark-parse/lib/tokenize/code-fenced.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/blockquote": [ - { - "id": 329, - "name": "./node_modules/remark-parse/lib/tokenize/blockquote.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/heading-atx": [ - { - "id": 330, - "name": "./node_modules/remark-parse/lib/tokenize/heading-atx.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/thematic-break": [ - { - "id": 331, - "name": "./node_modules/remark-parse/lib/tokenize/thematic-break.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/list": [ - { - "id": 332, - "name": "./node_modules/remark-parse/lib/tokenize/list.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "../util/remove-indentation": [ - { - "id": 333, - "name": "./node_modules/remark-parse/lib/util/remove-indentation.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/heading-setext": [ - { - "id": 334, - "name": "./node_modules/remark-parse/lib/tokenize/heading-setext.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/html-block": [ - { - "id": 335, - "name": "./node_modules/remark-parse/lib/tokenize/html-block.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/footnote-definition": [ - { - "id": 336, - "name": "./node_modules/remark-parse/lib/tokenize/footnote-definition.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "collapse-white-space": [ - { - "id": 337, - "name": "./node_modules/collapse-white-space/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/definition": [ - { - "id": 338, - "name": "./node_modules/remark-parse/lib/tokenize/definition.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/table": [ - { - "id": 339, - "name": "./node_modules/remark-parse/lib/tokenize/table.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/paragraph": [ - { - "id": 340, - "name": "./node_modules/remark-parse/lib/tokenize/paragraph.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/escape": [ - { - "id": 341, - "name": "./node_modules/remark-parse/lib/tokenize/escape.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "../locate/escape": [ - { - "id": 342, - "name": "./node_modules/remark-parse/lib/locate/escape.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/auto-link": [ - { - "id": 343, - "name": "./node_modules/remark-parse/lib/tokenize/auto-link.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/url": [ { "id": 344, - "name": "./node_modules/remark-parse/lib/tokenize/url.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "name": "./node_modules/remark-parse/lib/decode.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" } ], - "../locate/url": [ + "/Users/jj/dev/mykb/encode": [ { - "id": 345, - "name": "./node_modules/remark-parse/lib/locate/url.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 228, + "name": "./node_modules/querystring-es3/encode.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./tokenize/html-inline": [ + "/Users/jj/dev/p-queue": [ { - "id": 346, - "name": "./node_modules/remark-parse/lib/tokenize/html-inline.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 229, + "name": "./node_modules/next/dist/lib/p-queue.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./tokenize/link": [ + "/Users/jj/dev/mykb/core-js/library/fn/object/assign": [ { - "id": 347, - "name": "./node_modules/remark-parse/lib/tokenize/link.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 230, + "name": "./node_modules/core-js/library/fn/object/assign.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./tokenize/reference": [ + "/Users/jj/modules/es6.object.assign": [ { - "id": 348, - "name": "./node_modules/remark-parse/lib/tokenize/reference.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 231, + "name": "./node_modules/core-js/library/modules/es6.object.assign.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "./tokenize/strong": [ + "/Users/jj/dev/mykb/_object-assign": [ { - "id": 349, - "name": "./node_modules/remark-parse/lib/tokenize/strong.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" + "id": 232, + "name": "./node_modules/core-js/library/modules/_object-assign.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "../locate/strong": [ - { - "id": 350, - "name": "./node_modules/remark-parse/lib/locate/strong.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/emphasis": [ - { - "id": 351, - "name": "./node_modules/remark-parse/lib/tokenize/emphasis.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "is-word-character": [ - { - "id": 352, - "name": "./node_modules/is-word-character/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "../locate/emphasis": [ - { - "id": 353, - "name": "./node_modules/remark-parse/lib/locate/emphasis.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/delete": [ - { - "id": 354, - "name": "./node_modules/remark-parse/lib/tokenize/delete.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "../locate/delete": [ - { - "id": 355, - "name": "./node_modules/remark-parse/lib/locate/delete.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/code-inline": [ - { - "id": 356, - "name": "./node_modules/remark-parse/lib/tokenize/code-inline.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "../locate/code-inline": [ - { - "id": 357, - "name": "./node_modules/remark-parse/lib/locate/code-inline.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/break": [ - { - "id": 358, - "name": "./node_modules/remark-parse/lib/tokenize/break.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "../locate/break": [ - { - "id": 359, - "name": "./node_modules/remark-parse/lib/locate/break.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./tokenize/text": [ - { - "id": 360, - "name": "./node_modules/remark-parse/lib/tokenize/text.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "mdast-add-list-metadata": [ - { - "id": 361, - "name": "./node_modules/mdast-add-list-metadata/index.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./plugins/naive-html": [ - { - "id": 363, - "name": "./node_modules/react-markdown/lib/plugins/naive-html.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./plugins/disallow-node": [ - { - "id": 364, - "name": "./node_modules/react-markdown/lib/plugins/disallow-node.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./ast-to-react": [ - { - "id": 365, - "name": "./node_modules/react-markdown/lib/ast-to-react.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./wrap-table-rows": [ - { - "id": 366, - "name": "./node_modules/react-markdown/lib/wrap-table-rows.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./get-definitions": [ - { - "id": 367, - "name": "./node_modules/react-markdown/lib/get-definitions.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./uriTransformer": [ - { - "id": 368, - "name": "./node_modules/react-markdown/lib/uriTransformer.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "./renderers": [ - { - "id": 369, - "name": "./node_modules/react-markdown/lib/renderers.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "react-markdown": [ - { - "id": 370, - "name": "./node_modules/react-markdown/lib/react-markdown.js", - "file": "static/chunks/11.7a232aeb103ef6f4d6d4.js", - "publicPath": "static/chunks/11.7a232aeb103ef6f4d6d4.js" - } - ], - "../styles/style.sass": [ + "/Users/jj/dev/mykb/with-router": [ { "id": 233, - "name": "./styles/style.sass", - "file": "static/chunks/styles.0a3c172918137cfae229.js", - "publicPath": "static/chunks/styles.0a3c172918137cfae229.js" + "name": "./node_modules/next/dist/lib/router/with-router.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" } ], - "undefined": [ + "/Users/jj/dev/core-js/object/get-prototype-of": [ + { + "id": 234, + "name": "./node_modules/@babel/runtime-corejs2/core-js/object/get-prototype-of.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/object/get-prototype-of": [ + { + "id": 235, + "name": "./node_modules/core-js/library/fn/object/get-prototype-of.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/modules/es6.object.get-prototype-of": [ { "id": 236, - "name": null, - "file": "static/chunks/styles.0a3c172918137cfae229.js", - "publicPath": "static/chunks/styles.0a3c172918137cfae229.js" + "name": "./node_modules/core-js/library/modules/es6.object.get-prototype-of.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/core-js/object/create": [ + { + "id": 237, + "name": "./node_modules/@babel/runtime-corejs2/core-js/object/create.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/object/create": [ + { + "id": 238, + "name": "./node_modules/core-js/library/fn/object/create.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/modules/es6.object.create": [ + { + "id": 239, + "name": "./node_modules/core-js/library/modules/es6.object.create.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/factoryWithThrowingShims": [ + { + "id": 240, + "name": "./node_modules/prop-types/factoryWithThrowingShims.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/lib/ReactPropTypesSecret": [ + { + "id": 241, + "name": "./node_modules/prop-types/lib/ReactPropTypesSecret.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/sheet.js": [ + { + "id": 247, + "name": "./node_modules/glamor/lib/sheet.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/fbjs/lib/camelizeStyleName": [ + { + "id": 248, + "name": "./node_modules/fbjs/lib/camelizeStyleName.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/camelize": [ + { + "id": 249, + "name": "./node_modules/fbjs/lib/camelize.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/dangerousStyleValue": [ + { + "id": 250, + "name": "./node_modules/glamor/lib/CSSPropertyOperations/dangerousStyleValue.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/CSSProperty": [ + { + "id": 251, + "name": "./node_modules/glamor/lib/CSSPropertyOperations/CSSProperty.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/emptyFunction": [ + { + "id": 252, + "name": "./node_modules/fbjs/lib/emptyFunction.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/fbjs/lib/hyphenateStyleName": [ + { + "id": 253, + "name": "./node_modules/fbjs/lib/hyphenateStyleName.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/hyphenate": [ + { + "id": 254, + "name": "./node_modules/fbjs/lib/hyphenate.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/fbjs/lib/memoizeStringOnly": [ + { + "id": 255, + "name": "./node_modules/fbjs/lib/memoizeStringOnly.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/clean.js": [ + { + "id": 256, + "name": "./node_modules/glamor/lib/clean.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/plugins": [ + { + "id": 257, + "name": "./node_modules/glamor/lib/plugins.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/prefixer": [ + { + "id": 258, + "name": "./node_modules/glamor/lib/prefixer.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/inline-style-prefixer/static/staticData": [ + { + "id": 259, + "name": "./node_modules/inline-style-prefixer/static/staticData.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/inline-style-prefixer/utils/prefixProperty": [ + { + "id": 260, + "name": "./node_modules/inline-style-prefixer/utils/prefixProperty.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/inline-style-prefixer/utils/prefixValue": [ + { + "id": 261, + "name": "./node_modules/inline-style-prefixer/utils/prefixValue.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/inline-style-prefixer/static/plugins/cursor": [ + { + "id": 262, + "name": "./node_modules/inline-style-prefixer/static/plugins/cursor.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/inline-style-prefixer/static/plugins/crossFade": [ + { + "id": 263, + "name": "./node_modules/inline-style-prefixer/static/plugins/crossFade.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/inline-style-prefixer/static/plugins/filter": [ + { + "id": 264, + "name": "./node_modules/inline-style-prefixer/static/plugins/filter.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/inline-style-prefixer/static/plugins/flex": [ + { + "id": 265, + "name": "./node_modules/inline-style-prefixer/static/plugins/flex.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/inline-style-prefixer/static/plugins/flexboxOld": [ + { + "id": 266, + "name": "./node_modules/inline-style-prefixer/static/plugins/flexboxOld.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/inline-style-prefixer/static/plugins/gradient": [ + { + "id": 267, + "name": "./node_modules/inline-style-prefixer/static/plugins/gradient.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/inline-style-prefixer/static/plugins/imageSet": [ + { + "id": 268, + "name": "./node_modules/inline-style-prefixer/static/plugins/imageSet.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/inline-style-prefixer/static/plugins/position": [ + { + "id": 269, + "name": "./node_modules/inline-style-prefixer/static/plugins/position.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/inline-style-prefixer/static/plugins/sizing": [ + { + "id": 270, + "name": "./node_modules/inline-style-prefixer/static/plugins/sizing.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/inline-style-prefixer/static/plugins/transition": [ + { + "id": 271, + "name": "./node_modules/inline-style-prefixer/static/plugins/transition.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/css-in-js-utils/lib/hyphenateProperty": [ + { + "id": 272, + "name": "./node_modules/css-in-js-utils/lib/hyphenateProperty.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/hyphenate-style-name": [ + { + "id": 273, + "name": "./node_modules/hyphenate-style-name/index.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/hash": [ + { + "id": 274, + "name": "./node_modules/glamor/lib/hash.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/url-join": [ + { + "id": 277, + "name": "./node_modules/url-join/lib/url-join.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/webpack/buildin/harmony-module.js": [ + { + "id": 278, + "name": "./node_modules/webpack/buildin/harmony-module.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/dist/lib/link": [ + { + "id": 283, + "name": "./node_modules/next/dist/lib/link.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/@babel/runtime-corejs2/core-js/json/stringify": [ + { + "id": 284, + "name": "./node_modules/@babel/runtime-corejs2/core-js/json/stringify.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/core-js/library/fn/json/stringify": [ + { + "id": 285, + "name": "./node_modules/core-js/library/fn/json/stringify.js", + "file": "static/chunks/commons.633cb95994571bd38b02.js", + "publicPath": "static/chunks/commons.633cb95994571bd38b02.js" + } + ], + "/Users/jj/dev/mykb/codemirror": [ + { + "id": 306, + "name": "./node_modules/codemirror/lib/codemirror.js", + "file": "static/chunks/10.f3cf60cf5842748e7db3.js", + "publicPath": "static/chunks/10.f3cf60cf5842748e7db3.js" + } + ], + "/Users/jj/dev/mykb/codemirror/mode/markdown/markdown": [ + { + "id": 321, + "name": "./node_modules/codemirror/mode/markdown/markdown.js", + "file": "static/chunks/10.f3cf60cf5842748e7db3.js", + "publicPath": "static/chunks/10.f3cf60cf5842748e7db3.js" + } + ], + "/Users/jj/dev/xml/xml": [ + { + "id": 322, + "name": "./node_modules/codemirror/mode/xml/xml.js", + "file": "static/chunks/10.f3cf60cf5842748e7db3.js", + "publicPath": "static/chunks/10.f3cf60cf5842748e7db3.js" + } + ], + "/Users/jj/dev/meta": [ + { + "id": 323, + "name": "./node_modules/codemirror/mode/meta.js", + "file": "static/chunks/10.f3cf60cf5842748e7db3.js", + "publicPath": "static/chunks/10.f3cf60cf5842748e7db3.js" + } + ], + "/Users/jj/dev/components/CodeMirror": [ + { + "id": 402, + "name": "./src/components/CodeMirror.js", + "file": "static/chunks/10.f3cf60cf5842748e7db3.js", + "publicPath": "static/chunks/10.f3cf60cf5842748e7db3.js" + } + ], + "/Users/jj/dev/mykb/is-whitespace-character": [ + { + "id": 303, + "name": "./node_modules/is-whitespace-character/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/xtend": [ + { + "id": 304, + "name": "./node_modules/xtend/immutable.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/trim": [ + { + "id": 305, + "name": "./node_modules/trim/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/is-decimal": [ + { + "id": 307, + "name": "./node_modules/is-decimal/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/unist-util-visit": [ + { + "id": 308, + "name": "./node_modules/unist-util-visit/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/parse-entities": [ + { + "id": 309, + "name": "./node_modules/parse-entities/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/repeat-string": [ + { + "id": 310, + "name": "./node_modules/repeat-string/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/trim-trailing-lines": [ + { + "id": 311, + "name": "./node_modules/trim-trailing-lines/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/util/interrupt": [ + { + "id": 312, + "name": "./node_modules/remark-parse/lib/util/interrupt.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/util/normalize": [ + { + "id": 313, + "name": "./node_modules/remark-parse/lib/util/normalize.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/path": [ + { + "id": 314, + "name": "./node_modules/path-browserify/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/is-alphabetical": [ + { + "id": 315, + "name": "./node_modules/is-alphabetical/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/defaults": [ + { + "id": 316, + "name": "./node_modules/remark-parse/lib/defaults.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/util/get-indentation": [ + { + "id": 317, + "name": "./node_modules/remark-parse/lib/util/get-indentation.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/util/html": [ + { + "id": 318, + "name": "./node_modules/remark-parse/lib/util/html.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/locate/tag": [ + { + "id": 319, + "name": "./node_modules/remark-parse/lib/locate/tag.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/locate/link": [ + { + "id": 320, + "name": "./node_modules/remark-parse/lib/locate/link.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/unified": [ + { + "id": 324, + "name": "./node_modules/unified/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/extend": [ + { + "id": 325, + "name": "./node_modules/extend/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/bail": [ + { + "id": 326, + "name": "./node_modules/bail/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/vfile": [ + { + "id": 327, + "name": "./node_modules/vfile/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/vfile-message": [ + { + "id": 328, + "name": "./node_modules/vfile-message/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/unist-util-stringify-position": [ + { + "id": 329, + "name": "./node_modules/unist-util-stringify-position/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/core.js": [ + { + "id": 330, + "name": "./node_modules/vfile/core.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/replace-ext": [ + { + "id": 331, + "name": "./node_modules/replace-ext/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/is-buffer": [ + { + "id": 332, + "name": "./node_modules/is-buffer/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/trough": [ + { + "id": 333, + "name": "./node_modules/trough/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/wrap.js": [ + { + "id": 334, + "name": "./node_modules/trough/wrap.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/x-is-string": [ + { + "id": 335, + "name": "./node_modules/x-is-string/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/is-plain-obj": [ + { + "id": 336, + "name": "./node_modules/is-plain-obj/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/remark-parse": [ + { + "id": 337, + "name": "./node_modules/remark-parse/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/unherit": [ + { + "id": 338, + "name": "./node_modules/unherit/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/inherits": [ + { + "id": 339, + "name": "./node_modules/inherits/inherits_browser.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/lib/parser.js": [ + { + "id": 340, + "name": "./node_modules/remark-parse/lib/parser.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/state-toggle": [ + { + "id": 341, + "name": "./node_modules/state-toggle/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/vfile-location": [ + { + "id": 342, + "name": "./node_modules/vfile-location/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/unescape": [ + { + "id": 343, + "name": "./node_modules/remark-parse/lib/unescape.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/character-entities": [ + { + "id": 345, + "name": "./node_modules/character-entities/index.json", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/character-entities-legacy": [ + { + "id": 346, + "name": "./node_modules/character-entities-legacy/index.json", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/character-reference-invalid": [ + { + "id": 347, + "name": "./node_modules/character-reference-invalid/index.json", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/is-hexadecimal": [ + { + "id": 348, + "name": "./node_modules/is-hexadecimal/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/is-alphanumerical": [ + { + "id": 349, + "name": "./node_modules/is-alphanumerical/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenizer": [ + { + "id": 350, + "name": "./node_modules/remark-parse/lib/tokenizer.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/set-options": [ + { + "id": 351, + "name": "./node_modules/remark-parse/lib/set-options.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/markdown-escapes": [ + { + "id": 352, + "name": "./node_modules/markdown-escapes/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/block-elements.json": [ + { + "id": 353, + "name": "./node_modules/remark-parse/lib/block-elements.json", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/parse": [ + { + "id": 354, + "name": "./node_modules/remark-parse/lib/parse.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/unist-util-remove-position": [ + { + "id": 355, + "name": "./node_modules/unist-util-remove-position/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/unist-util-visit-parents": [ + { + "id": 356, + "name": "./node_modules/unist-util-visit/node_modules/unist-util-visit-parents/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + }, + { + "id": 394, + "name": "./node_modules/unist-util-visit-parents/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/unist-util-is": [ + { + "id": 357, + "name": "./node_modules/unist-util-is/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/newline": [ + { + "id": 358, + "name": "./node_modules/remark-parse/lib/tokenize/newline.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/code-indented": [ + { + "id": 359, + "name": "./node_modules/remark-parse/lib/tokenize/code-indented.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/code-fenced": [ + { + "id": 360, + "name": "./node_modules/remark-parse/lib/tokenize/code-fenced.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/blockquote": [ + { + "id": 361, + "name": "./node_modules/remark-parse/lib/tokenize/blockquote.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/heading-atx": [ + { + "id": 362, + "name": "./node_modules/remark-parse/lib/tokenize/heading-atx.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/thematic-break": [ + { + "id": 363, + "name": "./node_modules/remark-parse/lib/tokenize/thematic-break.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/list": [ + { + "id": 364, + "name": "./node_modules/remark-parse/lib/tokenize/list.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/util/remove-indentation": [ + { + "id": 365, + "name": "./node_modules/remark-parse/lib/util/remove-indentation.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/heading-setext": [ + { + "id": 366, + "name": "./node_modules/remark-parse/lib/tokenize/heading-setext.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/html-block": [ + { + "id": 367, + "name": "./node_modules/remark-parse/lib/tokenize/html-block.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/footnote-definition": [ + { + "id": 368, + "name": "./node_modules/remark-parse/lib/tokenize/footnote-definition.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/collapse-white-space": [ + { + "id": 369, + "name": "./node_modules/collapse-white-space/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/definition": [ + { + "id": 370, + "name": "./node_modules/remark-parse/lib/tokenize/definition.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/table": [ + { + "id": 371, + "name": "./node_modules/remark-parse/lib/tokenize/table.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/paragraph": [ + { + "id": 372, + "name": "./node_modules/remark-parse/lib/tokenize/paragraph.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/escape": [ + { + "id": 373, + "name": "./node_modules/remark-parse/lib/tokenize/escape.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/locate/escape": [ + { + "id": 374, + "name": "./node_modules/remark-parse/lib/locate/escape.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/auto-link": [ + { + "id": 375, + "name": "./node_modules/remark-parse/lib/tokenize/auto-link.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/url": [ + { + "id": 376, + "name": "./node_modules/remark-parse/lib/tokenize/url.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/locate/url": [ + { + "id": 377, + "name": "./node_modules/remark-parse/lib/locate/url.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/html-inline": [ + { + "id": 378, + "name": "./node_modules/remark-parse/lib/tokenize/html-inline.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/link": [ + { + "id": 379, + "name": "./node_modules/remark-parse/lib/tokenize/link.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/reference": [ + { + "id": 380, + "name": "./node_modules/remark-parse/lib/tokenize/reference.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/strong": [ + { + "id": 381, + "name": "./node_modules/remark-parse/lib/tokenize/strong.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/locate/strong": [ + { + "id": 382, + "name": "./node_modules/remark-parse/lib/locate/strong.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/emphasis": [ + { + "id": 383, + "name": "./node_modules/remark-parse/lib/tokenize/emphasis.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/is-word-character": [ + { + "id": 384, + "name": "./node_modules/is-word-character/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/locate/emphasis": [ + { + "id": 385, + "name": "./node_modules/remark-parse/lib/locate/emphasis.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/delete": [ + { + "id": 386, + "name": "./node_modules/remark-parse/lib/tokenize/delete.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/locate/delete": [ + { + "id": 387, + "name": "./node_modules/remark-parse/lib/locate/delete.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/code-inline": [ + { + "id": 388, + "name": "./node_modules/remark-parse/lib/tokenize/code-inline.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/locate/code-inline": [ + { + "id": 389, + "name": "./node_modules/remark-parse/lib/locate/code-inline.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/break": [ + { + "id": 390, + "name": "./node_modules/remark-parse/lib/tokenize/break.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/locate/break": [ + { + "id": 391, + "name": "./node_modules/remark-parse/lib/locate/break.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/tokenize/text": [ + { + "id": 392, + "name": "./node_modules/remark-parse/lib/tokenize/text.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/mdast-add-list-metadata": [ + { + "id": 393, + "name": "./node_modules/mdast-add-list-metadata/index.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/plugins/naive-html": [ + { + "id": 395, + "name": "./node_modules/react-markdown/lib/plugins/naive-html.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/plugins/disallow-node": [ + { + "id": 396, + "name": "./node_modules/react-markdown/lib/plugins/disallow-node.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/ast-to-react": [ + { + "id": 397, + "name": "./node_modules/react-markdown/lib/ast-to-react.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/wrap-table-rows": [ + { + "id": 398, + "name": "./node_modules/react-markdown/lib/wrap-table-rows.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/get-definitions": [ + { + "id": 399, + "name": "./node_modules/react-markdown/lib/get-definitions.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/uriTransformer": [ + { + "id": 400, + "name": "./node_modules/react-markdown/lib/uriTransformer.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/renderers": [ + { + "id": 401, + "name": "./node_modules/react-markdown/lib/renderers.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" + } + ], + "/Users/jj/dev/mykb/react-markdown": [ + { + "id": 403, + "name": "./node_modules/react-markdown/lib/react-markdown.js", + "file": "static/chunks/11.08310eedac4f22e8acb3.js", + "publicPath": "static/chunks/11.08310eedac4f22e8acb3.js" } ] } \ No newline at end of file diff --git a/.next/records.json b/.next/records.json index 8693fd6..8844d80 100644 --- a/.next/records.json +++ b/.next/records.json @@ -1,404 +1,410 @@ { - "mini-css-extract-plugin node_modules/css-loader/index.js??ref--6-1!node_modules/sass-loader/lib/loader.js??ref--6-2!styles/style.sass": [ - { - "modules": { - "byIdentifier": { - "node_modules/css-loader/lib/css-base.js": 0, - "node_modules/css-loader/index.js??ref--6-1!node_modules/sass-loader/lib/loader.js??ref--6-2!styles/style.sass": 1, - "node_modules/css-loader/index.js??ref--6-1!node_modules/sass-loader/lib/loader.js??ref--6-2!node_modules/codemirror/lib/codemirror.css": 2, - "node_modules/css-loader/index.js??ref--6-1!node_modules/sass-loader/lib/loader.js??ref--6-2!node_modules/codemirror/theme/monokai.css": 3 - }, - "usedIds": { - "0": 0, - "1": 1, - "2": 2, - "3": 3 - } - }, - "chunks": { - "byName": { - "mini-css-extract-plugin": 0 - }, - "bySource": {}, - "usedIds": [ - 0 - ] - } - } - ], "modules": { "byIdentifier": { "node_modules/react/index.js": 0, - "node_modules/@babel/runtime/regenerator/index.js": 1, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!util/getUrl.js": 2, - "node_modules/core-js/library/modules/_core.js": 3, - "node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js": 4, - "node_modules/prop-types/index.js": 5, - "node_modules/core-js/library/modules/_export.js": 6, - "node_modules/core-js/library/modules/_global.js": 7, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!util/getJwt.js": 8, - "node_modules/react-redux/es/index.js 67b03e0c128d2b1ee84267ae4ef3254d": 9, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!redux/actions/userAct.js": 10, - "node_modules/core-js/library/modules/_wks.js": 11, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!util/mapUser.js": 12, - "node_modules/core-js/library/modules/_is-object.js": 13, + "node_modules/glamor/lib/index.js": 1, + "node_modules/@babel/runtime/regenerator/index.js": 2, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/util/getUrl.js": 3, + "node_modules/core-js/library/modules/_core.js": 4, + "node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js": 5, + "node_modules/prop-types/index.js": 6, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/styles/theme.js": 7, + "node_modules/core-js/library/modules/_export.js": 8, + "node_modules/core-js/library/modules/_global.js": 9, + "node_modules/core-js/library/modules/_wks.js": 10, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/util/getJwt.js": 11, + "node_modules/react-redux/es/index.js 67b03e0c128d2b1ee84267ae4ef3254d": 12, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/redux/actions/userAct.js": 13, "node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js": 14, "node_modules/@babel/runtime-corejs2/helpers/createClass.js": 15, - "node_modules/isomorphic-unfetch/browser.js": 16, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/Page.js 8245350fae66397bf5f4212c5f0830f5": 17, - "node_modules/next/dynamic.js": 18, - "node_modules/next/router.js": 19, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/util/mapUser.js": 16, + "node_modules/core-js/library/modules/_is-object.js": 17, + "node_modules/isomorphic-unfetch/browser.js": 18, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/Page.js 7cd3bec4a0252faf8f91892a2f798527": 19, "node_modules/core-js/library/modules/_object-dp.js": 20, - "node_modules/core-js/library/modules/_an-object.js": 21, - "node_modules/core-js/library/modules/_descriptors.js": 22, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/PaddedRow.js": 23, - "node_modules/core-js/library/modules/_ctx.js": 24, - "node_modules/@babel/runtime-corejs2/helpers/defineProperty.js": 25, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!redux/store.js 7cc7cd85ea10446cff073ac9df0a14ef": 26, - "node_modules/core-js/library/modules/_fails.js": 27, - "node_modules/core-js/library/modules/_hide.js": 28, - "node_modules/@babel/runtime-corejs2/helpers/objectSpread.js": 29, - "node_modules/@babel/runtime-corejs2/helpers/possibleConstructorReturn.js": 30, - "node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js": 31, - "node_modules/@babel/runtime-corejs2/helpers/inherits.js": 32, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!util/updStateFromId.js": 33, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/Markdown.js 2b6f97fce7c4009b6ee9a243ff44d63a": 34, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/Spinner.js": 35, - "node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js": 36, - "node_modules/core-js/library/modules/_to-iobject.js": 37, - "node_modules/core-js/library/modules/_has.js": 38, - "node_modules/core-js/library/modules/_a-function.js": 39, - "node_modules/@babel/runtime-corejs2/helpers/typeof.js": 40, - "node_modules/next/dist/lib/utils.js": 41, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!util/checkDirParts.js": 42, - "node_modules/core-js/library/modules/_to-object.js": 43, - "node_modules/@babel/runtime-corejs2/core-js/promise.js": 44, - "node_modules/core-js/library/modules/es6.string.iterator.js": 45, - "node_modules/core-js/library/modules/_iterators.js": 46, - "node_modules/next/link.js": 47, - "node_modules/redux/es/redux.js": 48, - "node_modules/core-js/library/modules/_cof.js": 49, - "node_modules/core-js/library/modules/_property-desc.js": 50, - "node_modules/core-js/library/modules/_library.js": 51, - "node_modules/core-js/library/modules/_set-to-string-tag.js": 52, - "node_modules/core-js/library/modules/_object-keys.js": 53, - "node_modules/core-js/library/modules/_object-create.js": 54, - "node_modules/@babel/runtime-corejs2/core-js/object/keys.js": 55, - "node_modules/core-js/library/modules/web.dom.iterable.js": 56, - "node_modules/core-js/library/modules/_for-of.js": 57, - "node_modules/next/dist/lib/router/index.js": 58, - "node_modules/next/dist/lib/dynamic.js": 59, - "node_modules/url/url.js": 60, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/MngDoc.js": 61, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/AddDoc.js": 62, - "node_modules/core-js/library/modules/_object-pie.js": 63, - "node_modules/@babel/runtime-corejs2/core-js/object/define-property.js": 64, - "node_modules/core-js/library/modules/_uid.js": 65, - "node_modules/core-js/library/modules/_to-length.js": 66, - "node_modules/@babel/runtime-corejs2/regenerator/index.js": 67, - "node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js": 68, - "node_modules/core-js/library/modules/_classof.js": 69, - "node_modules/@babel/runtime-corejs2/core-js/set.js": 70, - "node_modules/webpack/buildin/global.js": 71, - "node_modules/@babel/runtime-corejs2/core-js/object/assign.js": 72, - "node_modules/@babel/runtime-corejs2/helpers/assertThisInitialized.js": 73, - "node_modules/next/dist/lib/loadable.js": 74, - "node_modules/invariant/browser.js": 75, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/CodeMirror.js": 76, - "node_modules/core-js/library/modules/_iobject.js": 77, - "node_modules/core-js/library/modules/_defined.js": 78, - "node_modules/core-js/library/modules/_object-gopd.js": 79, - "node_modules/core-js/library/modules/_to-primitive.js": 80, - "node_modules/core-js/library/modules/_dom-create.js": 81, - "node_modules/core-js/library/modules/_object-sap.js": 82, - "node_modules/core-js/library/modules/_meta.js": 83, - "node_modules/core-js/library/modules/_shared.js": 84, - "node_modules/core-js/library/modules/_wks-ext.js": 85, - "node_modules/core-js/library/modules/_wks-define.js": 86, - "node_modules/core-js/library/modules/_to-integer.js": 87, - "node_modules/core-js/library/modules/_shared-key.js": 88, - "node_modules/core-js/library/modules/_enum-bug-keys.js": 89, - "node_modules/core-js/library/modules/_object-gops.js": 90, - "node_modules/core-js/library/modules/_is-array.js": 91, - "node_modules/core-js/library/modules/es6.object.to-string.js": 92, - "node_modules/core-js/library/modules/_iter-define.js": 93, - "node_modules/core-js/library/modules/_an-instance.js": 94, - "node_modules/core-js/library/modules/core.get-iterator-method.js": 95, - "node_modules/core-js/library/modules/_new-promise-capability.js": 96, - "node_modules/core-js/library/modules/_redefine-all.js": 97, - "node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js": 98, - "node_modules/@babel/runtime-corejs2/core-js/array/is-array.js": 99, - "node_modules/next/dist/lib/EventEmitter.js": 100, - "node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js": 101, - "node_modules/next/app.js": 102, - "node_modules/symbol-observable/es/index.js": 103, - "node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js": 104, - "node_modules/core-js/library/modules/_ie8-dom-define.js": 105, - "node_modules/core-js/library/modules/es6.symbol.js": 106, - "node_modules/core-js/library/modules/_redefine.js": 107, - "node_modules/core-js/library/modules/_object-keys-internal.js": 108, - "node_modules/core-js/library/modules/_html.js": 109, - "node_modules/core-js/library/modules/_object-gopn.js": 110, - "node_modules/regenerator-runtime/runtime-module.js": 111, - "node_modules/core-js/library/modules/_object-gpo.js": 112, - "node_modules/core-js/library/modules/_iter-step.js": 113, - "node_modules/core-js/library/modules/_iter-call.js": 114, - "node_modules/core-js/library/modules/_is-array-iter.js": 115, - "node_modules/core-js/library/modules/_species-constructor.js": 116, - "node_modules/core-js/library/modules/_task.js": 117, - "node_modules/core-js/library/modules/_invoke.js": 118, - "node_modules/core-js/library/modules/_perform.js": 119, - "node_modules/core-js/library/modules/_promise-resolve.js": 120, - "node_modules/core-js/library/modules/_set-species.js": 121, - "node_modules/core-js/library/modules/_iter-detect.js": 122, - "node_modules/object-assign/index.js": 123, - "node_modules/@babel/runtime-corejs2/helpers/setPrototypeOf.js": 124, - "node_modules/@babel/runtime-corejs2/core-js/object/set-prototype-of.js": 125, - "node_modules/core-js/library/modules/_validate-collection.js": 126, - "node_modules/webpack/buildin/module.js": 127, - "node_modules/next/dist/lib/shallow-equals.js": 128, - "node_modules/isomorphic-unfetch/node_modules/unfetch/dist/unfetch.es.js": 129, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!util/keys.js": 130, - "node_modules/symbol-observable/es/ponyfill.js": 131, - "node_modules/lodash-es/_freeGlobal.js": 132, - "node_modules/react-paginate/dist/index.js": 133, - "node_modules/process/browser.js": 134, - "multi node_modules/next/dist/client/next": 135, - "node_modules/next/dist/client/next.js": 136, - "node_modules/core-js/library/fn/object/get-own-property-descriptor.js": 137, - "node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js": 138, - "node_modules/core-js/library/fn/object/define-property.js": 139, - "node_modules/core-js/library/modules/es6.object.define-property.js": 140, - "node_modules/next/dist/client/index.js": 141, - "node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-symbols.js": 142, - "node_modules/core-js/library/fn/object/get-own-property-symbols.js": 143, - "node_modules/core-js/library/modules/_enum-keys.js": 144, - "node_modules/core-js/library/modules/_array-includes.js": 145, - "node_modules/core-js/library/modules/_to-absolute-index.js": 146, - "node_modules/core-js/library/modules/_object-dps.js": 147, - "node_modules/core-js/library/modules/_object-gopn-ext.js": 148, - "node_modules/core-js/library/fn/object/keys.js": 149, - "node_modules/core-js/library/modules/es6.object.keys.js": 150, - "node_modules/regenerator-runtime/runtime.js": 151, - "node_modules/core-js/library/fn/promise.js": 152, - "node_modules/core-js/library/modules/_string-at.js": 153, - "node_modules/core-js/library/modules/_iter-create.js": 154, - "node_modules/core-js/library/modules/es6.array.iterator.js": 155, - "node_modules/core-js/library/modules/_add-to-unscopables.js": 156, - "node_modules/core-js/library/modules/es6.promise.js": 157, - "node_modules/core-js/library/modules/_microtask.js": 158, - "node_modules/core-js/library/modules/_user-agent.js": 159, - "node_modules/core-js/library/modules/es7.promise.finally.js": 160, - "node_modules/core-js/library/modules/es7.promise.try.js": 161, - "node_modules/@babel/runtime-corejs2/helpers/arrayWithHoles.js": 162, - "node_modules/core-js/library/fn/array/is-array.js": 163, - "node_modules/core-js/library/modules/es6.array.is-array.js": 164, - "node_modules/@babel/runtime-corejs2/helpers/iterableToArrayLimit.js": 165, - "node_modules/@babel/runtime-corejs2/core-js/get-iterator.js": 166, - "node_modules/core-js/library/fn/get-iterator.js": 167, - "node_modules/core-js/library/modules/core.get-iterator.js": 168, - "node_modules/@babel/runtime-corejs2/helpers/nonIterableRest.js": 169, - "node_modules/react/cjs/react.production.min.js": 170, - "node_modules/react-dom/index.js": 171, - "node_modules/react-dom/cjs/react-dom.production.min.js": 172, - "node_modules/schedule/index.js": 173, - "node_modules/schedule/cjs/schedule.production.min.js": 174, - "node_modules/next/dist/client/head-manager.js": 175, - "node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js": 176, - "node_modules/core-js/library/fn/symbol/iterator.js": 177, - "node_modules/@babel/runtime-corejs2/core-js/symbol.js": 178, - "node_modules/core-js/library/fn/symbol/index.js": 179, - "node_modules/core-js/library/modules/es7.symbol.async-iterator.js": 180, - "node_modules/core-js/library/modules/es7.symbol.observable.js": 181, - "node_modules/@babel/runtime-corejs2/helpers/construct.js": 182, - "node_modules/@babel/runtime-corejs2/core-js/reflect/construct.js": 183, - "node_modules/core-js/library/fn/reflect/construct.js": 184, - "node_modules/core-js/library/modules/es6.reflect.construct.js": 185, - "node_modules/core-js/library/modules/_bind.js": 186, - "node_modules/core-js/library/fn/object/set-prototype-of.js": 187, - "node_modules/core-js/library/modules/es6.object.set-prototype-of.js": 188, - "node_modules/core-js/library/modules/_set-proto.js": 189, - "node_modules/next/dist/lib/router/router.js": 190, - "node_modules/core-js/library/fn/set.js": 191, - "node_modules/core-js/library/modules/es6.set.js": 192, - "node_modules/core-js/library/modules/_collection-strong.js": 193, - "node_modules/core-js/library/modules/_collection.js": 194, - "node_modules/core-js/library/modules/_array-methods.js": 195, - "node_modules/core-js/library/modules/_array-species-create.js": 196, - "node_modules/core-js/library/modules/_array-species-constructor.js": 197, - "node_modules/core-js/library/modules/es7.set.to-json.js": 198, - "node_modules/core-js/library/modules/_collection-to-json.js": 199, - "node_modules/core-js/library/modules/_array-from-iterable.js": 200, - "node_modules/core-js/library/modules/es7.set.of.js": 201, - "node_modules/core-js/library/modules/_set-collection-of.js": 202, - "node_modules/core-js/library/modules/es7.set.from.js": 203, - "node_modules/core-js/library/modules/_set-collection-from.js": 204, - "node_modules/punycode/punycode.js": 205, - "node_modules/url/util.js": 206, - "node_modules/querystring-es3/index.js": 207, - "node_modules/querystring-es3/decode.js": 208, - "node_modules/querystring-es3/encode.js": 209, - "node_modules/next/dist/lib/p-queue.js": 210, - "node_modules/core-js/library/fn/object/assign.js": 211, - "node_modules/core-js/library/modules/es6.object.assign.js": 212, - "node_modules/core-js/library/modules/_object-assign.js": 213, - "node_modules/next/dist/lib/router/with-router.js": 214, - "node_modules/@babel/runtime-corejs2/core-js/object/get-prototype-of.js": 215, - "node_modules/core-js/library/fn/object/get-prototype-of.js": 216, - "node_modules/core-js/library/modules/es6.object.get-prototype-of.js": 217, - "node_modules/@babel/runtime-corejs2/core-js/object/create.js": 218, - "node_modules/core-js/library/fn/object/create.js": 219, - "node_modules/core-js/library/modules/es6.object.create.js": 220, - "node_modules/prop-types/factoryWithThrowingShims.js": 221, - "node_modules/prop-types/lib/ReactPropTypesSecret.js": 222, - "node_modules/next/dist/lib/page-loader.js": 223, - "node_modules/next/dist/lib/asset.js": 224, - "node_modules/next/dist/lib/runtime-config.js": 225, - "node_modules/next/dist/client/error-boundary.js": 226, - "multi ./pages/_app.js": 227, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/_app.js": 228, - "node_modules/next/dist/lib/app.js": 229, - "node_modules/@babel/runtime-corejs2/helpers/extends.js": 230, - "node_modules/url-join/lib/url-join.js": 231, - "node_modules/webpack/buildin/harmony-module.js": 232, - "node_modules/mini-css-extract-plugin/dist/loader.js!node_modules/css-loader/index.js??ref--6-1!node_modules/sass-loader/lib/loader.js??ref--6-2!styles/style.sass": 233, - "css node_modules/css-loader/index.js??ref--6-1!node_modules/sass-loader/lib/loader.js??ref--6-2!node_modules/codemirror/lib/codemirror.css 0": 234, - "css node_modules/css-loader/index.js??ref--6-1!node_modules/sass-loader/lib/loader.js??ref--6-2!node_modules/codemirror/theme/monokai.css 0": 235, - "css node_modules/css-loader/index.js??ref--6-1!node_modules/sass-loader/lib/loader.js??ref--6-2!styles/style.sass 0": 236, - "multi ./pages/edit.js": 237, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/edit.js": 238, - "node_modules/next/dist/lib/link.js": 239, - "node_modules/@babel/runtime-corejs2/core-js/json/stringify.js": 240, - "node_modules/core-js/library/fn/json/stringify.js": 241, - "multi ./pages/index.js": 242, - "node_modules/react-paginate/dist/PaginationBoxView.js": 243, - "node_modules/react-paginate/dist/PageView.js": 244, - "node_modules/react-paginate/dist/BreakView.js": 245, - "multi ./pages/k.js": 246, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/k.js": 247, - "multi ./pages/new.js": 248, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/new.js": 249, - "multi ./pages/settings.js": 250, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/settings.js": 251, - "multi node_modules/next/dist/pages/_error.js": 252, - "node_modules/next/dist/pages/_error.js": 253, - "node_modules/next/error.js": 254, - "node_modules/next/dist/lib/error.js": 255, - "node_modules/http-status/lib/index.js": 256, - "node_modules/next/dist/lib/head.js": 257, - "node_modules/next/dist/lib/side-effect.js": 258, - "node_modules/@babel/runtime-corejs2/helpers/toConsumableArray.js": 259, - "node_modules/@babel/runtime-corejs2/helpers/arrayWithoutHoles.js": 260, - "node_modules/@babel/runtime-corejs2/helpers/iterableToArray.js": 261, - "node_modules/@babel/runtime-corejs2/core-js/array/from.js": 262, - "node_modules/core-js/library/fn/array/from.js": 263, - "node_modules/core-js/library/modules/es6.array.from.js": 264, - "node_modules/core-js/library/modules/_create-property.js": 265, - "node_modules/@babel/runtime-corejs2/core-js/is-iterable.js": 266, - "node_modules/core-js/library/fn/is-iterable.js": 267, - "node_modules/core-js/library/modules/core.is-iterable.js": 268, - "node_modules/@babel/runtime-corejs2/helpers/nonIterableSpread.js": 269, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/index.js 02f73884633e8b54d3220884b54a8b51": 270, - "node_modules/is-whitespace-character/index.js": 271, - "node_modules/xtend/immutable.js": 272, - "node_modules/trim/index.js": 273, - "node_modules/codemirror/lib/codemirror.js": 274, - "node_modules/is-decimal/index.js": 275, - "node_modules/unist-util-visit/index.js": 276, - "node_modules/parse-entities/index.js": 277, - "node_modules/repeat-string/index.js": 278, - "node_modules/trim-trailing-lines/index.js": 279, - "node_modules/remark-parse/lib/util/interrupt.js": 280, - "node_modules/remark-parse/lib/util/normalize.js": 281, - "node_modules/path-browserify/index.js": 282, - "node_modules/is-alphabetical/index.js": 283, - "node_modules/remark-parse/lib/defaults.js": 284, - "node_modules/remark-parse/lib/util/get-indentation.js": 285, - "node_modules/remark-parse/lib/util/html.js": 286, - "node_modules/remark-parse/lib/locate/tag.js": 287, - "node_modules/remark-parse/lib/locate/link.js": 288, - "node_modules/codemirror/mode/markdown/markdown.js": 289, - "node_modules/codemirror/mode/xml/xml.js": 290, - "node_modules/codemirror/mode/meta.js": 291, - "node_modules/unified/index.js": 292, - "node_modules/extend/index.js": 293, - "node_modules/bail/index.js": 294, - "node_modules/vfile/index.js": 295, - "node_modules/vfile-message/index.js": 296, - "node_modules/unist-util-stringify-position/index.js": 297, - "node_modules/vfile/core.js": 298, - "node_modules/replace-ext/index.js": 299, - "node_modules/is-buffer/index.js": 300, - "node_modules/trough/index.js": 301, - "node_modules/trough/wrap.js": 302, - "node_modules/x-is-string/index.js": 303, - "node_modules/is-plain-obj/index.js": 304, - "node_modules/remark-parse/index.js": 305, - "node_modules/unherit/index.js": 306, - "node_modules/inherits/inherits_browser.js": 307, - "node_modules/remark-parse/lib/parser.js": 308, - "node_modules/state-toggle/index.js": 309, - "node_modules/vfile-location/index.js": 310, - "node_modules/remark-parse/lib/unescape.js": 311, - "node_modules/remark-parse/lib/decode.js": 312, - "node_modules/character-entities/index.json": 313, - "node_modules/character-entities-legacy/index.json": 314, - "node_modules/character-reference-invalid/index.json": 315, - "node_modules/is-hexadecimal/index.js": 316, - "node_modules/is-alphanumerical/index.js": 317, - "node_modules/remark-parse/lib/tokenizer.js": 318, - "node_modules/remark-parse/lib/set-options.js": 319, - "node_modules/markdown-escapes/index.js": 320, - "node_modules/remark-parse/lib/block-elements.json": 321, - "node_modules/remark-parse/lib/parse.js": 322, - "node_modules/unist-util-remove-position/index.js": 323, - "node_modules/unist-util-visit/node_modules/unist-util-visit-parents/index.js": 324, - "node_modules/unist-util-is/index.js": 325, - "node_modules/remark-parse/lib/tokenize/newline.js": 326, - "node_modules/remark-parse/lib/tokenize/code-indented.js": 327, - "node_modules/remark-parse/lib/tokenize/code-fenced.js": 328, - "node_modules/remark-parse/lib/tokenize/blockquote.js": 329, - "node_modules/remark-parse/lib/tokenize/heading-atx.js": 330, - "node_modules/remark-parse/lib/tokenize/thematic-break.js": 331, - "node_modules/remark-parse/lib/tokenize/list.js": 332, - "node_modules/remark-parse/lib/util/remove-indentation.js": 333, - "node_modules/remark-parse/lib/tokenize/heading-setext.js": 334, - "node_modules/remark-parse/lib/tokenize/html-block.js": 335, - "node_modules/remark-parse/lib/tokenize/footnote-definition.js": 336, - "node_modules/collapse-white-space/index.js": 337, - "node_modules/remark-parse/lib/tokenize/definition.js": 338, - "node_modules/remark-parse/lib/tokenize/table.js": 339, - "node_modules/remark-parse/lib/tokenize/paragraph.js": 340, - "node_modules/remark-parse/lib/tokenize/escape.js": 341, - "node_modules/remark-parse/lib/locate/escape.js": 342, - "node_modules/remark-parse/lib/tokenize/auto-link.js": 343, - "node_modules/remark-parse/lib/tokenize/url.js": 344, - "node_modules/remark-parse/lib/locate/url.js": 345, - "node_modules/remark-parse/lib/tokenize/html-inline.js": 346, - "node_modules/remark-parse/lib/tokenize/link.js": 347, - "node_modules/remark-parse/lib/tokenize/reference.js": 348, - "node_modules/remark-parse/lib/tokenize/strong.js": 349, - "node_modules/remark-parse/lib/locate/strong.js": 350, - "node_modules/remark-parse/lib/tokenize/emphasis.js": 351, - "node_modules/is-word-character/index.js": 352, - "node_modules/remark-parse/lib/locate/emphasis.js": 353, - "node_modules/remark-parse/lib/tokenize/delete.js": 354, - "node_modules/remark-parse/lib/locate/delete.js": 355, - "node_modules/remark-parse/lib/tokenize/code-inline.js": 356, - "node_modules/remark-parse/lib/locate/code-inline.js": 357, - "node_modules/remark-parse/lib/tokenize/break.js": 358, - "node_modules/remark-parse/lib/locate/break.js": 359, - "node_modules/remark-parse/lib/tokenize/text.js": 360, - "node_modules/mdast-add-list-metadata/index.js": 361, - "node_modules/unist-util-visit-parents/index.js": 362, - "node_modules/react-markdown/lib/plugins/naive-html.js": 363, - "node_modules/react-markdown/lib/plugins/disallow-node.js": 364, - "node_modules/react-markdown/lib/ast-to-react.js": 365, - "node_modules/react-markdown/lib/wrap-table-rows.js": 366, - "node_modules/react-markdown/lib/get-definitions.js": 367, - "node_modules/react-markdown/lib/uriTransformer.js": 368, - "node_modules/react-markdown/lib/renderers.js": 369, - "node_modules/react-markdown/lib/react-markdown.js": 370 + "node_modules/next/dynamic.js": 21, + "node_modules/next/router.js": 22, + "node_modules/core-js/library/modules/_an-object.js": 23, + "node_modules/@babel/runtime-corejs2/helpers/defineProperty.js": 24, + "node_modules/core-js/library/modules/_descriptors.js": 25, + "node_modules/core-js/library/modules/_ctx.js": 26, + "node_modules/@babel/runtime-corejs2/helpers/possibleConstructorReturn.js": 27, + "node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js": 28, + "node_modules/@babel/runtime-corejs2/helpers/inherits.js": 29, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/PaddedRow.js": 30, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/redux/store.js 4e1280ed09dd33013b4dfa4dd70e85b4": 31, + "node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js": 32, + "node_modules/core-js/library/modules/_fails.js": 33, + "node_modules/core-js/library/modules/_hide.js": 34, + "node_modules/@babel/runtime-corejs2/helpers/objectSpread.js": 35, + "node_modules/core-js/library/modules/es6.string.iterator.js": 36, + "node_modules/next/dist/lib/utils.js": 37, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/util/updStateFromId.js": 38, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/Markdown.js d5b5492a768bba52c33c5b22a90aa8a1": 39, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/Spinner.js": 40, + "node_modules/core-js/library/modules/_to-iobject.js": 41, + "node_modules/core-js/library/modules/_has.js": 42, + "node_modules/core-js/library/modules/_a-function.js": 43, + "node_modules/core-js/library/modules/_to-object.js": 44, + "node_modules/core-js/library/modules/_iterators.js": 45, + "node_modules/@babel/runtime-corejs2/helpers/typeof.js": 46, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/util/checkDirParts.js": 47, + "node_modules/core-js/library/modules/_property-desc.js": 48, + "node_modules/@babel/runtime-corejs2/core-js/promise.js": 49, + "node_modules/core-js/library/modules/web.dom.iterable.js": 50, + "node_modules/@babel/runtime-corejs2/core-js/set.js": 51, + "node_modules/next/link.js": 52, + "node_modules/redux/es/redux.js": 53, + "node_modules/core-js/library/modules/_cof.js": 54, + "node_modules/core-js/library/modules/_library.js": 55, + "node_modules/core-js/library/modules/_set-to-string-tag.js": 56, + "node_modules/core-js/library/modules/_object-keys.js": 57, + "node_modules/core-js/library/modules/_to-length.js": 58, + "node_modules/core-js/library/modules/_object-create.js": 59, + "node_modules/@babel/runtime-corejs2/core-js/object/keys.js": 60, + "node_modules/core-js/library/modules/_classof.js": 61, + "node_modules/core-js/library/modules/_for-of.js": 62, + "node_modules/object-assign/index.js": 63, + "node_modules/next/dist/lib/router/index.js": 64, + "node_modules/@babel/runtime-corejs2/helpers/assertThisInitialized.js": 65, + "node_modules/css-in-js-utils/lib/isPrefixedValue.js": 66, + "node_modules/next/dist/lib/dynamic.js": 67, + "node_modules/url/url.js": 68, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/AddDoc.js": 69, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/MngDoc.js cfa406d5564443825298c8c4c761c7c2": 70, + "node_modules/core-js/library/modules/_object-pie.js": 71, + "node_modules/@babel/runtime-corejs2/core-js/object/define-property.js": 72, + "node_modules/core-js/library/modules/_uid.js": 73, + "node_modules/@babel/runtime-corejs2/regenerator/index.js": 74, + "node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js": 75, + "node_modules/core-js/library/modules/core.get-iterator-method.js": 76, + "node_modules/@babel/runtime-corejs2/core-js/array/is-array.js": 77, + "node_modules/@babel/runtime-corejs2/core-js/object/assign.js": 78, + "node_modules/next/dist/lib/loadable.js": 79, + "node_modules/invariant/browser.js": 80, + "node_modules/core-js/library/modules/_iobject.js": 81, + "node_modules/core-js/library/modules/_defined.js": 82, + "node_modules/core-js/library/modules/_object-gopd.js": 83, + "node_modules/core-js/library/modules/_to-primitive.js": 84, + "node_modules/core-js/library/modules/_dom-create.js": 85, + "node_modules/core-js/library/modules/_object-sap.js": 86, + "node_modules/core-js/library/modules/_meta.js": 87, + "node_modules/core-js/library/modules/_shared.js": 88, + "node_modules/core-js/library/modules/_wks-ext.js": 89, + "node_modules/core-js/library/modules/_wks-define.js": 90, + "node_modules/core-js/library/modules/_to-integer.js": 91, + "node_modules/core-js/library/modules/_shared-key.js": 92, + "node_modules/core-js/library/modules/_enum-bug-keys.js": 93, + "node_modules/core-js/library/modules/_object-gops.js": 94, + "node_modules/core-js/library/modules/_is-array.js": 95, + "node_modules/core-js/library/modules/es6.object.to-string.js": 96, + "node_modules/core-js/library/modules/_iter-define.js": 97, + "node_modules/core-js/library/modules/_an-instance.js": 98, + "node_modules/core-js/library/modules/_iter-call.js": 99, + "node_modules/core-js/library/modules/_is-array-iter.js": 100, + "node_modules/core-js/library/modules/_new-promise-capability.js": 101, + "node_modules/core-js/library/modules/_redefine-all.js": 102, + "node_modules/core-js/library/modules/_iter-detect.js": 103, + "node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js": 104, + "node_modules/webpack/buildin/global.js": 105, + "node_modules/next/dist/lib/EventEmitter.js": 106, + "node_modules/next/dist/lib/head.js": 107, + "node_modules/next/dist/lib/side-effect.js": 108, + "node_modules/@babel/runtime-corejs2/helpers/toConsumableArray.js": 109, + "node_modules/@babel/runtime-corejs2/helpers/arrayWithoutHoles.js": 110, + "node_modules/@babel/runtime-corejs2/helpers/iterableToArray.js": 111, + "node_modules/@babel/runtime-corejs2/core-js/array/from.js": 112, + "node_modules/core-js/library/fn/array/from.js": 113, + "node_modules/core-js/library/modules/es6.array.from.js": 114, + "node_modules/core-js/library/modules/_create-property.js": 115, + "node_modules/@babel/runtime-corejs2/core-js/is-iterable.js": 116, + "node_modules/core-js/library/fn/is-iterable.js": 117, + "node_modules/core-js/library/modules/core.is-iterable.js": 118, + "node_modules/@babel/runtime-corejs2/helpers/nonIterableSpread.js": 119, + "node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js": 120, + "node_modules/symbol-observable/es/index.js": 121, + "node_modules/next/app.js": 122, + "node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js": 123, + "node_modules/core-js/library/modules/_ie8-dom-define.js": 124, + "node_modules/core-js/library/modules/es6.symbol.js": 125, + "node_modules/core-js/library/modules/_redefine.js": 126, + "node_modules/core-js/library/modules/_object-keys-internal.js": 127, + "node_modules/core-js/library/modules/_html.js": 128, + "node_modules/core-js/library/modules/_object-gopn.js": 129, + "node_modules/regenerator-runtime/runtime-module.js": 130, + "node_modules/core-js/library/modules/_object-gpo.js": 131, + "node_modules/core-js/library/modules/_iter-step.js": 132, + "node_modules/core-js/library/modules/_species-constructor.js": 133, + "node_modules/core-js/library/modules/_task.js": 134, + "node_modules/core-js/library/modules/_invoke.js": 135, + "node_modules/core-js/library/modules/_perform.js": 136, + "node_modules/core-js/library/modules/_promise-resolve.js": 137, + "node_modules/core-js/library/modules/_set-species.js": 138, + "node_modules/@babel/runtime-corejs2/helpers/setPrototypeOf.js": 139, + "node_modules/@babel/runtime-corejs2/core-js/object/set-prototype-of.js": 140, + "node_modules/core-js/library/modules/_validate-collection.js": 141, + "node_modules/webpack/buildin/module.js": 142, + "node_modules/next/dist/lib/shallow-equals.js": 143, + "node_modules/glamor/lib/CSSPropertyOperations/index.js": 144, + "node_modules/fbjs/lib/warning.js": 145, + "node_modules/inline-style-prefixer/utils/capitalizeString.js": 146, + "node_modules/isomorphic-unfetch/node_modules/unfetch/dist/unfetch.es.js": 147, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/util/keys.js": 148, + "node_modules/next/head.js": 149, + "node_modules/symbol-observable/es/ponyfill.js": 150, + "node_modules/lodash-es/_freeGlobal.js": 151, + "node_modules/react-paginate/dist/index.js": 152, + "node_modules/process/browser.js": 153, + "multi node_modules/next/dist/client/next": 154, + "node_modules/next/dist/client/next.js": 155, + "node_modules/core-js/library/fn/object/get-own-property-descriptor.js": 156, + "node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js": 157, + "node_modules/core-js/library/fn/object/define-property.js": 158, + "node_modules/core-js/library/modules/es6.object.define-property.js": 159, + "node_modules/next/dist/client/index.js": 160, + "node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-symbols.js": 161, + "node_modules/core-js/library/fn/object/get-own-property-symbols.js": 162, + "node_modules/core-js/library/modules/_enum-keys.js": 163, + "node_modules/core-js/library/modules/_array-includes.js": 164, + "node_modules/core-js/library/modules/_to-absolute-index.js": 165, + "node_modules/core-js/library/modules/_object-dps.js": 166, + "node_modules/core-js/library/modules/_object-gopn-ext.js": 167, + "node_modules/core-js/library/fn/object/keys.js": 168, + "node_modules/core-js/library/modules/es6.object.keys.js": 169, + "node_modules/regenerator-runtime/runtime.js": 170, + "node_modules/core-js/library/fn/promise.js": 171, + "node_modules/core-js/library/modules/_string-at.js": 172, + "node_modules/core-js/library/modules/_iter-create.js": 173, + "node_modules/core-js/library/modules/es6.array.iterator.js": 174, + "node_modules/core-js/library/modules/_add-to-unscopables.js": 175, + "node_modules/core-js/library/modules/es6.promise.js": 176, + "node_modules/core-js/library/modules/_microtask.js": 177, + "node_modules/core-js/library/modules/_user-agent.js": 178, + "node_modules/core-js/library/modules/es7.promise.finally.js": 179, + "node_modules/core-js/library/modules/es7.promise.try.js": 180, + "node_modules/@babel/runtime-corejs2/helpers/arrayWithHoles.js": 181, + "node_modules/core-js/library/fn/array/is-array.js": 182, + "node_modules/core-js/library/modules/es6.array.is-array.js": 183, + "node_modules/@babel/runtime-corejs2/helpers/iterableToArrayLimit.js": 184, + "node_modules/@babel/runtime-corejs2/core-js/get-iterator.js": 185, + "node_modules/core-js/library/fn/get-iterator.js": 186, + "node_modules/core-js/library/modules/core.get-iterator.js": 187, + "node_modules/@babel/runtime-corejs2/helpers/nonIterableRest.js": 188, + "node_modules/react/cjs/react.production.min.js": 189, + "node_modules/react-dom/index.js": 190, + "node_modules/react-dom/cjs/react-dom.production.min.js": 191, + "node_modules/schedule/index.js": 192, + "node_modules/schedule/cjs/schedule.production.min.js": 193, + "node_modules/next/dist/client/head-manager.js": 194, + "node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js": 195, + "node_modules/core-js/library/fn/symbol/iterator.js": 196, + "node_modules/@babel/runtime-corejs2/core-js/symbol.js": 197, + "node_modules/core-js/library/fn/symbol/index.js": 198, + "node_modules/core-js/library/modules/es7.symbol.async-iterator.js": 199, + "node_modules/core-js/library/modules/es7.symbol.observable.js": 200, + "node_modules/@babel/runtime-corejs2/helpers/construct.js": 201, + "node_modules/@babel/runtime-corejs2/core-js/reflect/construct.js": 202, + "node_modules/core-js/library/fn/reflect/construct.js": 203, + "node_modules/core-js/library/modules/es6.reflect.construct.js": 204, + "node_modules/core-js/library/modules/_bind.js": 205, + "node_modules/core-js/library/fn/object/set-prototype-of.js": 206, + "node_modules/core-js/library/modules/es6.object.set-prototype-of.js": 207, + "node_modules/core-js/library/modules/_set-proto.js": 208, + "node_modules/next/dist/lib/router/router.js": 209, + "node_modules/core-js/library/fn/set.js": 210, + "node_modules/core-js/library/modules/es6.set.js": 211, + "node_modules/core-js/library/modules/_collection-strong.js": 212, + "node_modules/core-js/library/modules/_collection.js": 213, + "node_modules/core-js/library/modules/_array-methods.js": 214, + "node_modules/core-js/library/modules/_array-species-create.js": 215, + "node_modules/core-js/library/modules/_array-species-constructor.js": 216, + "node_modules/core-js/library/modules/es7.set.to-json.js": 217, + "node_modules/core-js/library/modules/_collection-to-json.js": 218, + "node_modules/core-js/library/modules/_array-from-iterable.js": 219, + "node_modules/core-js/library/modules/es7.set.of.js": 220, + "node_modules/core-js/library/modules/_set-collection-of.js": 221, + "node_modules/core-js/library/modules/es7.set.from.js": 222, + "node_modules/core-js/library/modules/_set-collection-from.js": 223, + "node_modules/punycode/punycode.js": 224, + "node_modules/url/util.js": 225, + "node_modules/querystring-es3/index.js": 226, + "node_modules/querystring-es3/decode.js": 227, + "node_modules/querystring-es3/encode.js": 228, + "node_modules/next/dist/lib/p-queue.js": 229, + "node_modules/core-js/library/fn/object/assign.js": 230, + "node_modules/core-js/library/modules/es6.object.assign.js": 231, + "node_modules/core-js/library/modules/_object-assign.js": 232, + "node_modules/next/dist/lib/router/with-router.js": 233, + "node_modules/@babel/runtime-corejs2/core-js/object/get-prototype-of.js": 234, + "node_modules/core-js/library/fn/object/get-prototype-of.js": 235, + "node_modules/core-js/library/modules/es6.object.get-prototype-of.js": 236, + "node_modules/@babel/runtime-corejs2/core-js/object/create.js": 237, + "node_modules/core-js/library/fn/object/create.js": 238, + "node_modules/core-js/library/modules/es6.object.create.js": 239, + "node_modules/prop-types/factoryWithThrowingShims.js": 240, + "node_modules/prop-types/lib/ReactPropTypesSecret.js": 241, + "node_modules/next/dist/lib/page-loader.js": 242, + "node_modules/next/dist/lib/asset.js": 243, + "node_modules/next/dist/lib/runtime-config.js": 244, + "node_modules/next/dist/client/error-boundary.js": 245, + "multi ./pages/_app.js": 246, + "node_modules/glamor/lib/sheet.js": 247, + "node_modules/fbjs/lib/camelizeStyleName.js": 248, + "node_modules/fbjs/lib/camelize.js": 249, + "node_modules/glamor/lib/CSSPropertyOperations/dangerousStyleValue.js": 250, + "node_modules/glamor/lib/CSSPropertyOperations/CSSProperty.js": 251, + "node_modules/fbjs/lib/emptyFunction.js": 252, + "node_modules/fbjs/lib/hyphenateStyleName.js": 253, + "node_modules/fbjs/lib/hyphenate.js": 254, + "node_modules/fbjs/lib/memoizeStringOnly.js": 255, + "node_modules/glamor/lib/clean.js": 256, + "node_modules/glamor/lib/plugins.js": 257, + "node_modules/glamor/lib/prefixer.js": 258, + "node_modules/inline-style-prefixer/static/staticData.js": 259, + "node_modules/inline-style-prefixer/utils/prefixProperty.js": 260, + "node_modules/inline-style-prefixer/utils/prefixValue.js": 261, + "node_modules/inline-style-prefixer/static/plugins/cursor.js": 262, + "node_modules/inline-style-prefixer/static/plugins/crossFade.js": 263, + "node_modules/inline-style-prefixer/static/plugins/filter.js": 264, + "node_modules/inline-style-prefixer/static/plugins/flex.js": 265, + "node_modules/inline-style-prefixer/static/plugins/flexboxOld.js": 266, + "node_modules/inline-style-prefixer/static/plugins/gradient.js": 267, + "node_modules/inline-style-prefixer/static/plugins/imageSet.js": 268, + "node_modules/inline-style-prefixer/static/plugins/position.js": 269, + "node_modules/inline-style-prefixer/static/plugins/sizing.js": 270, + "node_modules/inline-style-prefixer/static/plugins/transition.js": 271, + "node_modules/css-in-js-utils/lib/hyphenateProperty.js": 272, + "node_modules/hyphenate-style-name/index.js": 273, + "node_modules/glamor/lib/hash.js": 274, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/styles/milligram.js": 275, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/styles/Roboto.js": 276, + "node_modules/url-join/lib/url-join.js": 277, + "node_modules/webpack/buildin/harmony-module.js": 278, + "node_modules/next/dist/lib/app.js": 279, + "node_modules/@babel/runtime-corejs2/helpers/extends.js": 280, + "multi ./pages/edit.js": 281, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/edit.js": 282, + "node_modules/next/dist/lib/link.js": 283, + "node_modules/@babel/runtime-corejs2/core-js/json/stringify.js": 284, + "node_modules/core-js/library/fn/json/stringify.js": 285, + "multi ./pages/index.js": 286, + "node_modules/react-paginate/dist/PaginationBoxView.js": 287, + "node_modules/react-paginate/dist/PageView.js": 288, + "node_modules/react-paginate/dist/BreakView.js": 289, + "multi ./pages/k.js": 290, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/k.js": 291, + "multi ./pages/new.js": 292, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/new.js": 293, + "multi ./pages/settings.js": 294, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/settings.js": 295, + "multi node_modules/next/dist/pages/_error.js": 296, + "node_modules/next/dist/pages/_error.js": 297, + "node_modules/next/error.js": 298, + "node_modules/next/dist/lib/error.js": 299, + "node_modules/http-status/lib/index.js": 300, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/index.js 63f90c0b7addefbc51a5877f453fdcbd": 301, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/_app.js 1362119e6d3d895366421ac2b14cb639": 302, + "node_modules/is-whitespace-character/index.js": 303, + "node_modules/xtend/immutable.js": 304, + "node_modules/trim/index.js": 305, + "node_modules/codemirror/lib/codemirror.js": 306, + "node_modules/is-decimal/index.js": 307, + "node_modules/unist-util-visit/index.js": 308, + "node_modules/parse-entities/index.js": 309, + "node_modules/repeat-string/index.js": 310, + "node_modules/trim-trailing-lines/index.js": 311, + "node_modules/remark-parse/lib/util/interrupt.js": 312, + "node_modules/remark-parse/lib/util/normalize.js": 313, + "node_modules/path-browserify/index.js": 314, + "node_modules/is-alphabetical/index.js": 315, + "node_modules/remark-parse/lib/defaults.js": 316, + "node_modules/remark-parse/lib/util/get-indentation.js": 317, + "node_modules/remark-parse/lib/util/html.js": 318, + "node_modules/remark-parse/lib/locate/tag.js": 319, + "node_modules/remark-parse/lib/locate/link.js": 320, + "node_modules/codemirror/mode/markdown/markdown.js": 321, + "node_modules/codemirror/mode/xml/xml.js": 322, + "node_modules/codemirror/mode/meta.js": 323, + "node_modules/unified/index.js": 324, + "node_modules/extend/index.js": 325, + "node_modules/bail/index.js": 326, + "node_modules/vfile/index.js": 327, + "node_modules/vfile-message/index.js": 328, + "node_modules/unist-util-stringify-position/index.js": 329, + "node_modules/vfile/core.js": 330, + "node_modules/replace-ext/index.js": 331, + "node_modules/is-buffer/index.js": 332, + "node_modules/trough/index.js": 333, + "node_modules/trough/wrap.js": 334, + "node_modules/x-is-string/index.js": 335, + "node_modules/is-plain-obj/index.js": 336, + "node_modules/remark-parse/index.js": 337, + "node_modules/unherit/index.js": 338, + "node_modules/inherits/inherits_browser.js": 339, + "node_modules/remark-parse/lib/parser.js": 340, + "node_modules/state-toggle/index.js": 341, + "node_modules/vfile-location/index.js": 342, + "node_modules/remark-parse/lib/unescape.js": 343, + "node_modules/remark-parse/lib/decode.js": 344, + "node_modules/character-entities/index.json": 345, + "node_modules/character-entities-legacy/index.json": 346, + "node_modules/character-reference-invalid/index.json": 347, + "node_modules/is-hexadecimal/index.js": 348, + "node_modules/is-alphanumerical/index.js": 349, + "node_modules/remark-parse/lib/tokenizer.js": 350, + "node_modules/remark-parse/lib/set-options.js": 351, + "node_modules/markdown-escapes/index.js": 352, + "node_modules/remark-parse/lib/block-elements.json": 353, + "node_modules/remark-parse/lib/parse.js": 354, + "node_modules/unist-util-remove-position/index.js": 355, + "node_modules/unist-util-visit/node_modules/unist-util-visit-parents/index.js": 356, + "node_modules/unist-util-is/index.js": 357, + "node_modules/remark-parse/lib/tokenize/newline.js": 358, + "node_modules/remark-parse/lib/tokenize/code-indented.js": 359, + "node_modules/remark-parse/lib/tokenize/code-fenced.js": 360, + "node_modules/remark-parse/lib/tokenize/blockquote.js": 361, + "node_modules/remark-parse/lib/tokenize/heading-atx.js": 362, + "node_modules/remark-parse/lib/tokenize/thematic-break.js": 363, + "node_modules/remark-parse/lib/tokenize/list.js": 364, + "node_modules/remark-parse/lib/util/remove-indentation.js": 365, + "node_modules/remark-parse/lib/tokenize/heading-setext.js": 366, + "node_modules/remark-parse/lib/tokenize/html-block.js": 367, + "node_modules/remark-parse/lib/tokenize/footnote-definition.js": 368, + "node_modules/collapse-white-space/index.js": 369, + "node_modules/remark-parse/lib/tokenize/definition.js": 370, + "node_modules/remark-parse/lib/tokenize/table.js": 371, + "node_modules/remark-parse/lib/tokenize/paragraph.js": 372, + "node_modules/remark-parse/lib/tokenize/escape.js": 373, + "node_modules/remark-parse/lib/locate/escape.js": 374, + "node_modules/remark-parse/lib/tokenize/auto-link.js": 375, + "node_modules/remark-parse/lib/tokenize/url.js": 376, + "node_modules/remark-parse/lib/locate/url.js": 377, + "node_modules/remark-parse/lib/tokenize/html-inline.js": 378, + "node_modules/remark-parse/lib/tokenize/link.js": 379, + "node_modules/remark-parse/lib/tokenize/reference.js": 380, + "node_modules/remark-parse/lib/tokenize/strong.js": 381, + "node_modules/remark-parse/lib/locate/strong.js": 382, + "node_modules/remark-parse/lib/tokenize/emphasis.js": 383, + "node_modules/is-word-character/index.js": 384, + "node_modules/remark-parse/lib/locate/emphasis.js": 385, + "node_modules/remark-parse/lib/tokenize/delete.js": 386, + "node_modules/remark-parse/lib/locate/delete.js": 387, + "node_modules/remark-parse/lib/tokenize/code-inline.js": 388, + "node_modules/remark-parse/lib/locate/code-inline.js": 389, + "node_modules/remark-parse/lib/tokenize/break.js": 390, + "node_modules/remark-parse/lib/locate/break.js": 391, + "node_modules/remark-parse/lib/tokenize/text.js": 392, + "node_modules/mdast-add-list-metadata/index.js": 393, + "node_modules/unist-util-visit-parents/index.js": 394, + "node_modules/react-markdown/lib/plugins/naive-html.js": 395, + "node_modules/react-markdown/lib/plugins/disallow-node.js": 396, + "node_modules/react-markdown/lib/ast-to-react.js": 397, + "node_modules/react-markdown/lib/wrap-table-rows.js": 398, + "node_modules/react-markdown/lib/get-definitions.js": 399, + "node_modules/react-markdown/lib/uriTransformer.js": 400, + "node_modules/react-markdown/lib/renderers.js": 401, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/CodeMirror.js": 402, + "node_modules/react-markdown/lib/react-markdown.js": 403 }, "usedIds": { "0": 0, @@ -771,7 +777,40 @@ "367": 367, "368": 368, "369": 369, - "370": 370 + "370": 370, + "371": 371, + "372": 372, + "373": 373, + "374": 374, + "375": 375, + "376": 376, + "377": 377, + "378": 378, + "379": 379, + "380": 380, + "381": 381, + "382": 382, + "383": 383, + "384": 384, + "385": 385, + "386": 386, + "387": 387, + "388": 388, + "389": 389, + "390": 390, + "391": 391, + "392": 392, + "393": 393, + "394": 394, + "395": 395, + "396": 396, + "397": 397, + "398": 398, + "399": 399, + "400": 400, + "401": 401, + "402": 402, + "403": 403 } }, "chunks": { @@ -779,25 +818,23 @@ "commons": 0, "static/runtime/webpack.js": 1, "static/runtime/main.js": 2, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/_app.js": 3, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/edit.js": 4, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/index.js": 5, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/k.js": 6, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/new.js": 7, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/settings.js": 8, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/_error.js": 9, - "styles": 12 + "static/MdYEkay1bViLxxtsssdFt/pages/_app.js": 3, + "static/MdYEkay1bViLxxtsssdFt/pages/edit.js": 4, + "static/MdYEkay1bViLxxtsssdFt/pages/index.js": 5, + "static/MdYEkay1bViLxxtsssdFt/pages/k.js": 6, + "static/MdYEkay1bViLxxtsssdFt/pages/new.js": 7, + "static/MdYEkay1bViLxxtsssdFt/pages/settings.js": 8, + "static/MdYEkay1bViLxxtsssdFt/pages/_error.js": 9 }, "bySource": { - "0 node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/MngDoc.js ../comps/CodeMirror": 10, - "0 node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/Markdown.js react-markdown": 11 + "0 node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/MngDoc.js ../components/CodeMirror": 10, + "0 node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/Markdown.js react-markdown": 11 }, "usedIds": [ 0, 1, 10, 11, - 12, 2, 3, 4, diff --git a/.next/server/pages-manifest.json b/.next/server/pages-manifest.json index 4ff3d23..7c074fc 100644 --- a/.next/server/pages-manifest.json +++ b/.next/server/pages-manifest.json @@ -1 +1 @@ -{"/_app":"static/lIlrIl8Q~DS1M0c3OvDaq/pages/_app.js","/_document":"static/lIlrIl8Q~DS1M0c3OvDaq/pages/_document.js","/edit":"static/lIlrIl8Q~DS1M0c3OvDaq/pages/edit.js","/index":"static/lIlrIl8Q~DS1M0c3OvDaq/pages/index.js","/k":"static/lIlrIl8Q~DS1M0c3OvDaq/pages/k.js","/new":"static/lIlrIl8Q~DS1M0c3OvDaq/pages/new.js","/settings":"static/lIlrIl8Q~DS1M0c3OvDaq/pages/settings.js","/_error":"static/lIlrIl8Q~DS1M0c3OvDaq/pages/_error.js","/":"static/lIlrIl8Q~DS1M0c3OvDaq/pages/index.js"} \ No newline at end of file +{"/_app":"static/MdYEkay1bViLxxtsssdFt/pages/_app.js","/_document":"static/MdYEkay1bViLxxtsssdFt/pages/_document.js","/edit":"static/MdYEkay1bViLxxtsssdFt/pages/edit.js","/index":"static/MdYEkay1bViLxxtsssdFt/pages/index.js","/k":"static/MdYEkay1bViLxxtsssdFt/pages/k.js","/new":"static/MdYEkay1bViLxxtsssdFt/pages/new.js","/settings":"static/MdYEkay1bViLxxtsssdFt/pages/settings.js","/_error":"static/MdYEkay1bViLxxtsssdFt/pages/_error.js","/":"static/MdYEkay1bViLxxtsssdFt/pages/index.js"} \ No newline at end of file diff --git a/.next/server/records.json b/.next/server/records.json index 4368130..a471596 100644 --- a/.next/server/records.json +++ b/.next/server/records.json @@ -2,54 +2,59 @@ "modules": { "byIdentifier": { "external \"react\"": 0, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!util/getUrl.js": 1, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!redux/actions/userAct.js": 2, - "external \"@babel/runtime/regenerator\"": 3, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!redux/store.js 7cc7cd85ea10446cff073ac9df0a14ef": 4, - "external \"react-redux\"": 5, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!util/mapUser.js": 6, - "external \"isomorphic-unfetch\"": 7, - "external \"next/router\"": 8, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/PaddedRow.js": 9, - "external \"redux\"": 10, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/Spinner.js": 11, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!util/keys.js": 12, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!util/getJwt.js": 13, - "external \"next/link\"": 14, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/Page.js 8245350fae66397bf5f4212c5f0830f5": 15, - "external \"url\"": 16, - "external \"url-join\"": 17, - "external \"next/dynamic\"": 18, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!util/updStateFromId.js": 19, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/Markdown.js 2b6f97fce7c4009b6ee9a243ff44d63a": 20, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!util/checkDirParts.js": 21, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/CodeMirror.js": 22, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/MngDoc.js": 23, - "external \"codemirror\"": 24, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!comps/AddDoc.js": 25, - "external \"react-markdown\"": 26, - "external \"next/document\"": 27, - "external \"codemirror/mode/markdown/markdown\"": 28, - "external \"next/app\"": 29, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/util/getUrl.js": 1, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/redux/actions/userAct.js": 2, + "external \"glamor\"": 3, + "external \"@babel/runtime/regenerator\"": 4, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/styles/theme.js": 5, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/redux/store.js 4e1280ed09dd33013b4dfa4dd70e85b4": 6, + "external \"react-redux\"": 7, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/util/mapUser.js": 8, + "external \"isomorphic-unfetch\"": 9, + "external \"next/router\"": 10, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/PaddedRow.js": 11, + "external \"redux\"": 12, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/Spinner.js": 13, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/util/getJwt.js": 14, + "external \"next/link\"": 15, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/Page.js 7cd3bec4a0252faf8f91892a2f798527": 16, + "external \"url\"": 17, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/util/keys.js": 18, + "external \"url-join\"": 19, + "external \"next/dynamic\"": 20, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/util/updStateFromId.js": 21, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/Markdown.js d5b5492a768bba52c33c5b22a90aa8a1": 22, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/util/checkDirParts.js": 23, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/AddDoc.js": 24, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/MngDoc.js cfa406d5564443825298c8c4c761c7c2": 25, + "external \"next/document\"": 26, + "external \"next/app\"": 27, + "external \"next/head\"": 28, + "external \"glamor/server\"": 29, "external \"react-paginate\"": 30, - "multi ./pages/_app.js": 31, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/_app.js": 32, - "node_modules/ignore-loader/index.js!styles/style.sass": 33, - "multi ./pages/_document.js": 34, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/_document.js": 35, - "multi ./pages/edit.js": 36, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/edit.js": 37, - "multi ./pages/index.js": 38, - "multi ./pages/k.js": 39, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/k.js": 40, - "multi ./pages/new.js": 41, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/new.js": 42, - "multi ./pages/settings.js": 43, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/settings.js": 44, - "multi node_modules/next/dist/pages/_error.js": 45, - "node_modules/next/dist/pages/_error.js": 46, - "external \"next/error\"": 47, - "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/index.js 02f73884633e8b54d3220884b54a8b51": 48 + "external \"codemirror\"": 31, + "external \"codemirror/mode/markdown/markdown\"": 32, + "external \"react-markdown\"": 33, + "multi ./pages/_app.js": 34, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/styles/milligram.js": 35, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/styles/Roboto.js": 36, + "multi ./pages/_document.js": 37, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/_document.js": 38, + "multi ./pages/edit.js": 39, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/edit.js": 40, + "multi ./pages/index.js": 41, + "multi ./pages/k.js": 42, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/k.js": 43, + "multi ./pages/new.js": 44, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/new.js": 45, + "multi ./pages/settings.js": 46, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/settings.js": 47, + "multi node_modules/next/dist/pages/_error.js": 48, + "node_modules/next/dist/pages/_error.js": 49, + "external \"next/error\"": 50, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/index.js 63f90c0b7addefbc51a5877f453fdcbd": 51, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!pages/_app.js 1362119e6d3d895366421ac2b14cb639": 52, + "node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/CodeMirror.js": 53 }, "usedIds": { "0": 0, @@ -100,21 +105,28 @@ "45": 45, "46": 46, "47": 47, - "48": 48 + "48": 48, + "49": 49, + "50": 50, + "51": 51, + "52": 52, + "53": 53 } }, "chunks": { "byName": { - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/_app.js": 0, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/_document.js": 1, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/edit.js": 2, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/index.js": 3, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/k.js": 4, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/new.js": 5, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/settings.js": 6, - "static/lIlrIl8Q~DS1M0c3OvDaq/pages/_error.js": 7 + "static/MdYEkay1bViLxxtsssdFt/pages/_app.js": 0, + "static/MdYEkay1bViLxxtsssdFt/pages/_document.js": 1, + "static/MdYEkay1bViLxxtsssdFt/pages/edit.js": 2, + "static/MdYEkay1bViLxxtsssdFt/pages/index.js": 3, + "static/MdYEkay1bViLxxtsssdFt/pages/k.js": 4, + "static/MdYEkay1bViLxxtsssdFt/pages/new.js": 5, + "static/MdYEkay1bViLxxtsssdFt/pages/settings.js": 6, + "static/MdYEkay1bViLxxtsssdFt/pages/_error.js": 7 + }, + "bySource": { + "0 node_modules/next/dist/build/webpack/loaders/next-babel-loader.js??ref--4!src/components/MngDoc.js ../components/CodeMirror": 8 }, - "bySource": {}, "usedIds": [ 0, 1, @@ -123,7 +135,8 @@ 4, 5, 6, - 7 + 7, + 8 ] } } \ No newline at end of file diff --git a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/_app.js b/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/_app.js deleted file mode 100644 index ea81091..0000000 --- a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/_app.js +++ /dev/null @@ -1,603 +0,0 @@ -module.exports = -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = require('../../../ssr-module-cache.js'); -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete installedModules[moduleId]; -/******/ } -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 31); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -module.exports = require("react"); - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - -var url = __webpack_require__(16); - -var urljoin = __webpack_require__(17); - -module.exports = function (path, absolute) { - var _ref = typeof window === 'undefined' ? app.get('kbConf') : window.kbConf, - pathPrefix = _ref.pathPrefix; - - path = urljoin(pathPrefix, path); - if (!absolute) return path; // absolute should only be used during ssr - - return url.format({ - hostname: app.get('host'), - port: app.get('port'), - pathname: path, - protocol: 'http' - }); -}; - -/***/ }), -/* 2 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return SET_USER; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LOGIN_PENDING; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LOGIN_FAILED; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return LOGOUT; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return setUser; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return doLogout; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return doLogin; }); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_util_getUrl__WEBPACK_IMPORTED_MODULE_3__); - - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - // define action types - -var SET_USER = 'SET_USER'; -var LOGIN_PENDING = 'LOGIN_PENDING'; -var LOGIN_FAILED = 'LOGIN_FAILED'; -var LOGOUT = 'LOGOUT'; -var setUser = function setUser(user) { - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: SET_USER, - data: user - }); -}; // setUser - -var doLogout = function doLogout() { - if (typeof window !== 'undefined') { - window.localStorage.removeItem('jwt'); - document.cookie = 'jwt=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;'; - } - - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGOUT - }); -}; // doLogout - -function doLogin(_x, _x2, _x3) { - return _doLogin.apply(this, arguments); -} // doLogin - -function _doLogin() { - _doLogin = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(creds, jwt, noPend) { - var authReqOpts, authReqHead, authReqBody, authReq, authRes, error, _ref, accessToken, payload, _JSON$parse, userId, userReq, userRes; - - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - !noPend && _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_PENDING - }); - authReqOpts = { - method: 'POST', - credentials: 'include' - }; - authReqHead = { - headers: jwt ? { - Authorization: jwt - } : { - 'Content-Type': 'application/json' - } - }; - authReqBody = jwt ? null : { - body: JSON.stringify(_objectSpread({}, creds, { - strategy: 'local' - })) - }; - authReq = new Request(_util_getUrl__WEBPACK_IMPORTED_MODULE_3___default()('auth'), _objectSpread({}, authReqOpts, authReqHead, authReqBody)); - _context.next = 7; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default()(authReq).catch(function (err) { - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: err.message - }); - }); - - case 7: - authRes = _context.sent; - - if (authRes.ok) { - _context.next = 20; - break; - } - - _context.prev = 9; - _context.next = 12; - return authRes.json(); - - case 12: - error = _context.sent; - error = error.message; - _context.next = 19; - break; - - case 16: - _context.prev = 16; - _context.t0 = _context["catch"](9); - error = authRes.status === 429 ? 'Max login attempts reached' : 'An error occurred during login'; - - case 19: - return _context.abrupt("return", _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: error - })); - - case 20: - _context.next = 22; - return authRes.json(); - - case 22: - _ref = _context.sent; - accessToken = _ref.accessToken; - payload = accessToken.split('.')[1]; - _JSON$parse = JSON.parse(atob(payload)), userId = _JSON$parse.userId; - userReq = new Request(_util_getUrl__WEBPACK_IMPORTED_MODULE_3___default()("/users/".concat(userId)), { - headers: { - Authorization: accessToken - } - }); - _context.next = 29; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default()(userReq); - - case 29: - userRes = _context.sent; - - if (userRes.ok) { - _context.next = 32; - break; - } - - return _context.abrupt("return", _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: 'failed to get user' - })); - - case 32: - window.localStorage.setItem('jwt', accessToken); - _context.t1 = setUser; - _context.next = 36; - return userRes.json(); - - case 36: - _context.t2 = _context.sent; - (0, _context.t1)(_context.t2); - - case 38: - case "end": - return _context.stop(); - } - } - }, _callee, this, [[9, 16]]); - })); - return _doLogin.apply(this, arguments); -} - -/***/ }), -/* 3 */ -/***/ (function(module, exports) { - -module.exports = require("@babel/runtime/regenerator"); - -/***/ }), -/* 4 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "redux" -var external_redux_ = __webpack_require__(10); - -// EXTERNAL MODULE: ./redux/actions/userAct.js -var userAct = __webpack_require__(2); - -// CONCATENATED MODULE: ./redux/reducers/userRed.js -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - -var initState = { - setup: false, - _id: null, - email: null, - admin: null, - pending: false, - error: null -}; - -function user() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initState; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case userAct["d" /* SET_USER */]: - { - return _objectSpread({}, initState, action.data); - } - - case userAct["b" /* LOGIN_PENDING */]: - { - return _objectSpread({}, initState, { - pending: true - }); - } - - case userAct["a" /* LOGIN_FAILED */]: - { - return _objectSpread({}, state, { - pending: false, - error: action.data - }); - } - - case userAct["c" /* LOGOUT */]: - { - return initState; - } - - default: - return state; - } -} - -/* harmony default export */ var userRed = (user); -// CONCATENATED MODULE: ./redux/store.js - - -var middleware; - -if (false) { var logger; } - -var reducers = Object(external_redux_["combineReducers"])({ - user: userRed -}); -/* harmony default export */ var store = __webpack_exports__["a"] = (middleware ? Object(external_redux_["createStore"])(reducers, middleware) : Object(external_redux_["createStore"])(reducers)); - -/***/ }), -/* 5 */ -/***/ (function(module, exports) { - -module.exports = require("react-redux"); - -/***/ }), -/* 6 */, -/* 7 */ -/***/ (function(module, exports) { - -module.exports = require("isomorphic-unfetch"); - -/***/ }), -/* 8 */, -/* 9 */, -/* 10 */ -/***/ (function(module, exports) { - -module.exports = require("redux"); - -/***/ }), -/* 11 */, -/* 12 */, -/* 13 */, -/* 14 */, -/* 15 */, -/* 16 */ -/***/ (function(module, exports) { - -module.exports = require("url"); - -/***/ }), -/* 17 */ -/***/ (function(module, exports) { - -module.exports = require("url-join"); - -/***/ }), -/* 18 */, -/* 19 */, -/* 20 */, -/* 21 */, -/* 22 */, -/* 23 */, -/* 24 */, -/* 25 */, -/* 26 */, -/* 27 */, -/* 28 */, -/* 29 */ -/***/ (function(module, exports) { - -module.exports = require("next/app"); - -/***/ }), -/* 30 */, -/* 31 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(32); - - -/***/ }), -/* 32 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MyApp; }); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var next_app__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29); -/* harmony import */ var next_app__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_app__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _redux_store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4); -/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5); -/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_redux__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _redux_actions_userAct__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2); - - - -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - - - - // Don't load sass during ssr - -if (!global.kbConf) { - __webpack_require__(33); -} - -var ssr = typeof window === 'undefined'; - -var MyApp = -/*#__PURE__*/ -function (_App) { - _inherits(MyApp, _App); - - function MyApp() { - _classCallCheck(this, MyApp); - - return _possibleConstructorReturn(this, _getPrototypeOf(MyApp).apply(this, arguments)); - } - - _createClass(MyApp, [{ - key: "componentWillMount", - value: function componentWillMount() { - var _this$props = this.props, - user = _this$props.user, - setup = _this$props.setup; - Object(_redux_actions_userAct__WEBPACK_IMPORTED_MODULE_5__[/* setUser */ "g"])(_objectSpread({}, user, { - setup: setup - })); - - if (!ssr && !user.email) { - var jwt = window.localStorage.jwt; - if (jwt) Object(_redux_actions_userAct__WEBPACK_IMPORTED_MODULE_5__[/* doLogin */ "e"])(null, jwt, true); - } - } - }, { - key: "render", - value: function render() { - var _this$props2 = this.props, - Component = _this$props2.Component, - pageProps = _this$props2.pageProps; - return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react_redux__WEBPACK_IMPORTED_MODULE_4__["Provider"], { - store: _redux_store__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"] - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(next_app__WEBPACK_IMPORTED_MODULE_2__["Container"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Component, pageProps))); - } - }], [{ - key: "getInitialProps", - value: function () { - var _getInitialProps = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(_ref) { - var Component, ctx, user, setup, pageProps; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - Component = _ref.Component, ctx = _ref.ctx; - user = {}; - setup = false; - - if (ssr) { - user = ctx.req.user || {}; - setup = ctx.req.doSetup || false; - } - - pageProps = {}; - - if (!Component.getInitialProps) { - _context.next = 9; - break; - } - - _context.next = 8; - return Component.getInitialProps(ctx); - - case 8: - pageProps = _context.sent; - - case 9: - return _context.abrupt("return", { - Component: Component, - pageProps: pageProps, - user: user, - setup: setup - }); - - case 10: - case "end": - return _context.stop(); - } - } - }, _callee, this); - })); - - return function getInitialProps(_x) { - return _getInitialProps.apply(this, arguments); - }; - }() - }]); - - return MyApp; -}(next_app__WEBPACK_IMPORTED_MODULE_2___default.a); - - - -/***/ }), -/* 33 */ -/***/ (function(module, exports) { - - - -/***/ }) -/******/ ]); \ No newline at end of file diff --git a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/_document.js b/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/_document.js deleted file mode 100644 index d8e2e9e..0000000 --- a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/_document.js +++ /dev/null @@ -1,234 +0,0 @@ -module.exports = -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = require('../../../ssr-module-cache.js'); -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete installedModules[moduleId]; -/******/ } -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 34); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, exports) { - -module.exports = require("react"); - -/***/ }), - -/***/ 1: -/***/ (function(module, exports, __webpack_require__) { - -var url = __webpack_require__(16); - -var urljoin = __webpack_require__(17); - -module.exports = function (path, absolute) { - var _ref = typeof window === 'undefined' ? app.get('kbConf') : window.kbConf, - pathPrefix = _ref.pathPrefix; - - path = urljoin(pathPrefix, path); - if (!absolute) return path; // absolute should only be used during ssr - - return url.format({ - hostname: app.get('host'), - port: app.get('port'), - pathname: path, - protocol: 'http' - }); -}; - -/***/ }), - -/***/ 16: -/***/ (function(module, exports) { - -module.exports = require("url"); - -/***/ }), - -/***/ 17: -/***/ (function(module, exports) { - -module.exports = require("url-join"); - -/***/ }), - -/***/ 27: -/***/ (function(module, exports) { - -module.exports = require("next/document"); - -/***/ }), - -/***/ 34: -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(35); - - -/***/ }), - -/***/ 35: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MyDocument; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var next_document__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27); -/* harmony import */ var next_document__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_document__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_util_getUrl__WEBPACK_IMPORTED_MODULE_2__); - - -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - - - -var MyDocument = -/*#__PURE__*/ -function (_Document) { - _inherits(MyDocument, _Document); - - function MyDocument() { - _classCallCheck(this, MyDocument); - - return _possibleConstructorReturn(this, _getPrototypeOf(MyDocument).apply(this, arguments)); - } - - _createClass(MyDocument, [{ - key: "render", - value: function render() { - var favicon = _util_getUrl__WEBPACK_IMPORTED_MODULE_2___default()('favicon.ico'); - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("html", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(next_document__WEBPACK_IMPORTED_MODULE_1__["Head"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("meta", { - charSet: "utf-8" - }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("meta", { - name: "viewport", - content: "width=device-width, initial-scale=1, shrink-to-fit=no" - }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("link", { - rel: "shortcut icon", - href: favicon, - type: "image/x-icon" - }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("link", { - rel: "icon", - href: favicon, - type: "image/x-icon" - }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("title", null, "My Knowledge Base"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("script", { - dangerouslySetInnerHTML: { - __html: 'window.kbConf=' + JSON.stringify(app.get('kbConf')) - } - })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("body", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(next_document__WEBPACK_IMPORTED_MODULE_1__["Main"], null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(next_document__WEBPACK_IMPORTED_MODULE_1__["NextScript"], null))); - } - }]); - - return MyDocument; -}(next_document__WEBPACK_IMPORTED_MODULE_1___default.a); - - - -/***/ }) - -/******/ }); \ No newline at end of file diff --git a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/_error.js b/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/_error.js deleted file mode 100644 index 9252368..0000000 --- a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/_error.js +++ /dev/null @@ -1,119 +0,0 @@ -module.exports = -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = require('../../../ssr-module-cache.js'); -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete installedModules[moduleId]; -/******/ } -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 45); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 45: -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(46); - - -/***/ }), - -/***/ 46: -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(47) - - -/***/ }), - -/***/ 47: -/***/ (function(module, exports) { - -module.exports = require("next/error"); - -/***/ }) - -/******/ }); \ No newline at end of file diff --git a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/edit.js b/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/edit.js deleted file mode 100644 index 3121653..0000000 --- a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/edit.js +++ /dev/null @@ -1,2241 +0,0 @@ -module.exports = -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = require('../../../ssr-module-cache.js'); -/******/ -/******/ // object to store loaded chunks -/******/ // "0" means "already loaded" -/******/ var installedChunks = { -/******/ 2: 0 -/******/ }; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete installedModules[moduleId]; -/******/ } -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // uncaught error handler for webpack runtime -/******/ __webpack_require__.oe = function(err) { -/******/ process.nextTick(function() { -/******/ throw err; // catch this error by using import().catch() -/******/ }); -/******/ }; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 36); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -module.exports = require("react"); - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - -var url = __webpack_require__(16); - -var urljoin = __webpack_require__(17); - -module.exports = function (path, absolute) { - var _ref = typeof window === 'undefined' ? app.get('kbConf') : window.kbConf, - pathPrefix = _ref.pathPrefix; - - path = urljoin(pathPrefix, path); - if (!absolute) return path; // absolute should only be used during ssr - - return url.format({ - hostname: app.get('host'), - port: app.get('port'), - pathname: path, - protocol: 'http' - }); -}; - -/***/ }), -/* 2 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return SET_USER; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LOGIN_PENDING; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LOGIN_FAILED; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return LOGOUT; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return setUser; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return doLogout; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return doLogin; }); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_util_getUrl__WEBPACK_IMPORTED_MODULE_3__); - - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - // define action types - -var SET_USER = 'SET_USER'; -var LOGIN_PENDING = 'LOGIN_PENDING'; -var LOGIN_FAILED = 'LOGIN_FAILED'; -var LOGOUT = 'LOGOUT'; -var setUser = function setUser(user) { - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: SET_USER, - data: user - }); -}; // setUser - -var doLogout = function doLogout() { - if (typeof window !== 'undefined') { - window.localStorage.removeItem('jwt'); - document.cookie = 'jwt=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;'; - } - - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGOUT - }); -}; // doLogout - -function doLogin(_x, _x2, _x3) { - return _doLogin.apply(this, arguments); -} // doLogin - -function _doLogin() { - _doLogin = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(creds, jwt, noPend) { - var authReqOpts, authReqHead, authReqBody, authReq, authRes, error, _ref, accessToken, payload, _JSON$parse, userId, userReq, userRes; - - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - !noPend && _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_PENDING - }); - authReqOpts = { - method: 'POST', - credentials: 'include' - }; - authReqHead = { - headers: jwt ? { - Authorization: jwt - } : { - 'Content-Type': 'application/json' - } - }; - authReqBody = jwt ? null : { - body: JSON.stringify(_objectSpread({}, creds, { - strategy: 'local' - })) - }; - authReq = new Request(_util_getUrl__WEBPACK_IMPORTED_MODULE_3___default()('auth'), _objectSpread({}, authReqOpts, authReqHead, authReqBody)); - _context.next = 7; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default()(authReq).catch(function (err) { - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: err.message - }); - }); - - case 7: - authRes = _context.sent; - - if (authRes.ok) { - _context.next = 20; - break; - } - - _context.prev = 9; - _context.next = 12; - return authRes.json(); - - case 12: - error = _context.sent; - error = error.message; - _context.next = 19; - break; - - case 16: - _context.prev = 16; - _context.t0 = _context["catch"](9); - error = authRes.status === 429 ? 'Max login attempts reached' : 'An error occurred during login'; - - case 19: - return _context.abrupt("return", _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: error - })); - - case 20: - _context.next = 22; - return authRes.json(); - - case 22: - _ref = _context.sent; - accessToken = _ref.accessToken; - payload = accessToken.split('.')[1]; - _JSON$parse = JSON.parse(atob(payload)), userId = _JSON$parse.userId; - userReq = new Request(_util_getUrl__WEBPACK_IMPORTED_MODULE_3___default()("/users/".concat(userId)), { - headers: { - Authorization: accessToken - } - }); - _context.next = 29; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default()(userReq); - - case 29: - userRes = _context.sent; - - if (userRes.ok) { - _context.next = 32; - break; - } - - return _context.abrupt("return", _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: 'failed to get user' - })); - - case 32: - window.localStorage.setItem('jwt', accessToken); - _context.t1 = setUser; - _context.next = 36; - return userRes.json(); - - case 36: - _context.t2 = _context.sent; - (0, _context.t1)(_context.t2); - - case 38: - case "end": - return _context.stop(); - } - } - }, _callee, this, [[9, 16]]); - })); - return _doLogin.apply(this, arguments); -} - -/***/ }), -/* 3 */ -/***/ (function(module, exports) { - -module.exports = require("@babel/runtime/regenerator"); - -/***/ }), -/* 4 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "redux" -var external_redux_ = __webpack_require__(10); - -// EXTERNAL MODULE: ./redux/actions/userAct.js -var userAct = __webpack_require__(2); - -// CONCATENATED MODULE: ./redux/reducers/userRed.js -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - -var initState = { - setup: false, - _id: null, - email: null, - admin: null, - pending: false, - error: null -}; - -function user() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initState; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case userAct["d" /* SET_USER */]: - { - return _objectSpread({}, initState, action.data); - } - - case userAct["b" /* LOGIN_PENDING */]: - { - return _objectSpread({}, initState, { - pending: true - }); - } - - case userAct["a" /* LOGIN_FAILED */]: - { - return _objectSpread({}, state, { - pending: false, - error: action.data - }); - } - - case userAct["c" /* LOGOUT */]: - { - return initState; - } - - default: - return state; - } -} - -/* harmony default export */ var userRed = (user); -// CONCATENATED MODULE: ./redux/store.js - - -var middleware; - -if (false) { var logger; } - -var reducers = Object(external_redux_["combineReducers"])({ - user: userRed -}); -/* harmony default export */ var store = __webpack_exports__["a"] = (middleware ? Object(external_redux_["createStore"])(reducers, middleware) : Object(external_redux_["createStore"])(reducers)); - -/***/ }), -/* 5 */ -/***/ (function(module, exports) { - -module.exports = require("react-redux"); - -/***/ }), -/* 6 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony default export */ __webpack_exports__["a"] = (function (_ref) { - var user = _ref.user; - return { - user: user - }; -}); - -/***/ }), -/* 7 */ -/***/ (function(module, exports) { - -module.exports = require("isomorphic-unfetch"); - -/***/ }), -/* 8 */ -/***/ (function(module, exports) { - -module.exports = require("next/router"); - -/***/ }), -/* 9 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -var PaddedRow = function PaddedRow(_ref) { - var children = _ref.children, - amount = _ref.amount, - vCenter = _ref.vCenter; - amount = amount || 20; - - var PadItem = function PadItem() { - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { - className: 'column column-' + amount + ' nomob' - }); - }; - - var rowProps = { - className: 'row' - }; - if (vCenter) rowProps = { - className: 'row v-center' - };else rowProps = _objectSpread({}, rowProps, { - style: { - paddingTop: amount - } - }); - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", rowProps, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(PadItem, null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { - className: "column" - }, children), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(PadItem, null)); -}; - -/* harmony default export */ __webpack_exports__["a"] = (PaddedRow); - -/***/ }), -/* 10 */ -/***/ (function(module, exports) { - -module.exports = require("redux"); - -/***/ }), -/* 11 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - -var Spinner = function Spinner(props) { - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({ - className: "spinner" - }, props)); -}; - -/* harmony default export */ __webpack_exports__["a"] = (Spinner); - -/***/ }), -/* 12 */ -/***/ (function(module, exports) { - -module.exports = { - getKey: function getKey(e) { - return e.which || e.keyCode; - }, - isCtrlKey: function isCtrlKey(key) { - return key === 91 || key === 93 || key === 17; - } -}; - -/***/ }), -/* 13 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony default export */ __webpack_exports__["a"] = (function (req) { - if (req) return req.jwt; - - if (typeof window !== 'undefined') { - return window.localStorage.getItem('jwt'); - } -}); - -/***/ }), -/* 14 */ -/***/ (function(module, exports) { - -module.exports = require("next/link"); - -/***/ }), -/* 15 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(0); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); - -// EXTERNAL MODULE: external "react-redux" -var external_react_redux_ = __webpack_require__(5); - -// EXTERNAL MODULE: external "next/router" -var router_ = __webpack_require__(8); -var router_default = /*#__PURE__*/__webpack_require__.n(router_); - -// EXTERNAL MODULE: ./redux/actions/userAct.js -var userAct = __webpack_require__(2); - -// EXTERNAL MODULE: external "next/link" -var link_ = __webpack_require__(14); -var link_default = /*#__PURE__*/__webpack_require__.n(link_); - -// EXTERNAL MODULE: ./util/getUrl.js -var getUrl = __webpack_require__(1); -var getUrl_default = /*#__PURE__*/__webpack_require__.n(getUrl); - -// EXTERNAL MODULE: ./util/mapUser.js -var mapUser = __webpack_require__(6); - -// CONCATENATED MODULE: ./comps/Header.js -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - - -var Header_NavLink = function NavLink(_ref) { - var children = _ref.children, - href = _ref.href, - active = _ref.active; - var activeClass = active ? ' active' : ''; - return external_react_default.a.createElement(link_default.a, { - href: href, - as: getUrl_default()(href) - }, external_react_default.a.createElement("a", { - className: activeClass - }, children)); -}; - -var navItems = [['/', 'Home'], ['/new', 'New Doc'], ['/settings', 'Settings']]; - -var Header_Header = -/*#__PURE__*/ -function (_Component) { - _inherits(Header, _Component); - - function Header() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, Header); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Header)).call.apply(_getPrototypeOf2, [this].concat(args))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", { - open: false - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "hideNav", function () { - return _this.setState({ - open: false - }); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toggleNav", function () { - return _this.setState({ - open: !_this.state.open - }); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isActive", function (url) { - return getUrl_default()(_this.props.router.pathname) === getUrl_default()(url); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "logout", function (e) { - e.preventDefault(); - - _this.hideNav(); - - Object(userAct["f" /* doLogout */])(); - }); - - return _this; - } - - _createClass(Header, [{ - key: "render", - value: function render() { - var _this2 = this; - - var expandClass = this.state.open ? ' active' : ''; - var user = this.props.user; - return external_react_default.a.createElement("nav", { - className: "navbar", - role: "navigation", - "aria-label": "main navigation" - }, external_react_default.a.createElement("div", { - className: "navbar-brand" - }, external_react_default.a.createElement(Header_NavLink, { - href: "/" - }, external_react_default.a.createElement("h3", { - onClick: this.hideNav - }, "MYKB"))), !user.email ? null : [external_react_default.a.createElement("div", { - className: 'navbar-burger ' + expandClass, - onClick: this.toggleNav, - key: "burger" - }, external_react_default.a.createElement("div", null), external_react_default.a.createElement("div", null), external_react_default.a.createElement("div", null)), external_react_default.a.createElement("div", { - className: 'navbar-items' + expandClass, - key: "items" - }, navItems.map(function (item) { - return external_react_default.a.createElement(Header_NavLink, { - key: item[0], - href: item[0], - active: _this2.isActive(item[0]) - }, external_react_default.a.createElement("p", { - className: "item", - onClick: _this2.hideNav - }, item[1])); - }), external_react_default.a.createElement("a", { - href: "/logout", - onClick: this.logout - }, external_react_default.a.createElement("p", { - className: "item" - }, "Logout")))]); - } - }]); - - return Header; -}(external_react_["Component"]); - -/* harmony default export */ var comps_Header = (Object(router_["withRouter"])(Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Header_Header))); -// EXTERNAL MODULE: ./util/keys.js -var keys = __webpack_require__(12); - -// CONCATENATED MODULE: ./comps/KeyShortcuts.js -function KeyShortcuts_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { KeyShortcuts_typeof = function _typeof(obj) { return typeof obj; }; } else { KeyShortcuts_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return KeyShortcuts_typeof(obj); } - -function KeyShortcuts_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function KeyShortcuts_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function KeyShortcuts_createClass(Constructor, protoProps, staticProps) { if (protoProps) KeyShortcuts_defineProperties(Constructor.prototype, protoProps); if (staticProps) KeyShortcuts_defineProperties(Constructor, staticProps); return Constructor; } - -function KeyShortcuts_possibleConstructorReturn(self, call) { if (call && (KeyShortcuts_typeof(call) === "object" || typeof call === "function")) { return call; } return KeyShortcuts_assertThisInitialized(self); } - -function KeyShortcuts_getPrototypeOf(o) { KeyShortcuts_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return KeyShortcuts_getPrototypeOf(o); } - -function KeyShortcuts_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) KeyShortcuts_setPrototypeOf(subClass, superClass); } - -function KeyShortcuts_setPrototypeOf(o, p) { KeyShortcuts_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return KeyShortcuts_setPrototypeOf(o, p); } - -function KeyShortcuts_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function KeyShortcuts_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - -/* - keyboard shortcuts - g then h -> navigate home - g then n -> navigate to new doc - g then s -> navigate to settings - g then l -> logout - e (when on doc page) -> edit doc - / (when on home page) -> focus search - ctrl/cmd + enter -> submit new doc (handled in CodeMirror component) -*/ - -var keyToUrl = { - 72: '/', - 78: '/new', - 83: '/settings' -}; -var keyToEl = { - 69: { - sel: '#edit', - func: 'click' - }, - 191: { - sel: '.search', - func: 'focus' - } -}; - -var KeyShortcuts_KeyShortcuts = -/*#__PURE__*/ -function (_Component) { - KeyShortcuts_inherits(KeyShortcuts, _Component); - - function KeyShortcuts() { - var _getPrototypeOf2; - - var _this; - - KeyShortcuts_classCallCheck(this, KeyShortcuts); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = KeyShortcuts_possibleConstructorReturn(this, (_getPrototypeOf2 = KeyShortcuts_getPrototypeOf(KeyShortcuts)).call.apply(_getPrototypeOf2, [this].concat(args))); - - KeyShortcuts_defineProperty(KeyShortcuts_assertThisInitialized(KeyShortcuts_assertThisInitialized(_this)), "handleDown", function (e) { - var tag = e.target.tagName; - if (tag === 'INPUT' || tag === 'TEXTAREA') return; - var key = Object(keys["getKey"])(e); - - if (_this.prevKey === 71) { - // prev key was g - switch (key) { - case 72: - case 78: - case 83: - { - var url = keyToUrl[key]; - router_default.a.push(url, getUrl_default()(url)); - break; - } - - case 76: - { - setTimeout(userAct["f" /* doLogout */], 1); - break; - } - - default: - break; - } - } - - switch (key) { - case 69: - case 191: - { - var _keyToEl$key = keyToEl[key], - sel = _keyToEl$key.sel, - func = _keyToEl$key.func; - var el = document.querySelector(sel); - if (el) setTimeout(function () { - return el[func](); - }, 1); - break; - } - - default: - break; - } - - _this.prevKey = key; - }); - - KeyShortcuts_defineProperty(KeyShortcuts_assertThisInitialized(KeyShortcuts_assertThisInitialized(_this)), "render", function () { - return null; - }); - - return _this; - } - - KeyShortcuts_createClass(KeyShortcuts, [{ - key: "componentDidMount", - value: function componentDidMount() { - window.addEventListener('keydown', this.handleDown); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - window.removeEventListener('keydown', this.handleDown); - } - }]); - - return KeyShortcuts; -}(external_react_["Component"]); - -/* harmony default export */ var comps_KeyShortcuts = (KeyShortcuts_KeyShortcuts); -// CONCATENATED MODULE: ./comps/Footer.js - - -var Footer_Footer = function Footer() { - return external_react_default.a.createElement("footer", { - className: "footer" - }, external_react_default.a.createElement("p", null, "Powered by", ' ', external_react_default.a.createElement("a", { - href: "//github.com/ijjk/mykb", - target: "_blank", - rel: "noopener noreferrer" - }, "MYKB"))); -}; - -/* harmony default export */ var comps_Footer = (Footer_Footer); -// EXTERNAL MODULE: ./comps/Spinner.js -var Spinner = __webpack_require__(11); - -// EXTERNAL MODULE: ./comps/PaddedRow.js -var PaddedRow = __webpack_require__(9); - -// CONCATENATED MODULE: ./comps/Login.js -function Login_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Login_typeof = function _typeof(obj) { return typeof obj; }; } else { Login_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Login_typeof(obj); } - -function Login_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function Login_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function Login_createClass(Constructor, protoProps, staticProps) { if (protoProps) Login_defineProperties(Constructor.prototype, protoProps); if (staticProps) Login_defineProperties(Constructor, staticProps); return Constructor; } - -function Login_possibleConstructorReturn(self, call) { if (call && (Login_typeof(call) === "object" || typeof call === "function")) { return call; } return Login_assertThisInitialized(self); } - -function Login_getPrototypeOf(o) { Login_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return Login_getPrototypeOf(o); } - -function Login_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) Login_setPrototypeOf(subClass, superClass); } - -function Login_setPrototypeOf(o, p) { Login_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Login_setPrototypeOf(o, p); } - -function Login_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function Login_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - -var Login_Login = -/*#__PURE__*/ -function (_Component) { - Login_inherits(Login, _Component); - - function Login() { - var _getPrototypeOf2; - - var _this; - - Login_classCallCheck(this, Login); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = Login_possibleConstructorReturn(this, (_getPrototypeOf2 = Login_getPrototypeOf(Login)).call.apply(_getPrototypeOf2, [this].concat(args))); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "state", { - email: '', - pass: '' - }); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "updVal", function (e) { - var el = e.target; - var val = el.value; - - if (el.getAttribute('type') === 'email') { - return _this.setState({ - email: val - }); - } - - _this.setState({ - pass: val - }); - }); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "submit", function (e) { - var pending = _this.props.user.pending; - var _this$state = _this.state, - email = _this$state.email, - pass = _this$state.pass; - email = email.trim(); - pass = pass.trim(); - e.preventDefault(); - - if (pending || email.length === 0 || pass.length == 0) { - return; - } - - Object(userAct["e" /* doLogin */])({ - email: email, - password: pass - }); - }); - - return _this; - } - - Login_createClass(Login, [{ - key: "render", - value: function render() { - var _this$props$user = this.props.user, - pending = _this$props$user.pending, - error = _this$props$user.error; - return external_react_default.a.createElement("div", { - className: "container content" - }, external_react_default.a.createElement(PaddedRow["a" /* default */], { - amount: 25, - vCenter: true - }, external_react_default.a.createElement("h4", null, "Please login to continue"), external_react_default.a.createElement("form", { - noValidate: true - }, external_react_default.a.createElement("fieldset", null, external_react_default.a.createElement("label", { - htmlFor: "email" - }, "Email:"), external_react_default.a.createElement("input", { - type: "email", - id: "email", - name: "email", - autoFocus: true, - placeholder: "John@deux.com", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass" - }, "Pass:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass", - name: "password", - placeholder: "Super secret password...", - onChange: this.updVal - })), external_react_default.a.createElement("button", { - className: 'float-right' + (pending ? ' disabled' : ''), - onClick: this.submit - }, pending ? external_react_default.a.createElement(Spinner["a" /* default */], null) : 'Submit'), !error ? null : external_react_default.a.createElement("p", null, error)))); - } - }]); - - return Login; -}(external_react_["Component"]); - -/* harmony default export */ var comps_Login = (Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Login_Login)); -// CONCATENATED MODULE: ./comps/Setup.js -function Setup_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Setup_typeof = function _typeof(obj) { return typeof obj; }; } else { Setup_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Setup_typeof(obj); } - -function Setup_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function Setup_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function Setup_createClass(Constructor, protoProps, staticProps) { if (protoProps) Setup_defineProperties(Constructor.prototype, protoProps); if (staticProps) Setup_defineProperties(Constructor, staticProps); return Constructor; } - -function Setup_possibleConstructorReturn(self, call) { if (call && (Setup_typeof(call) === "object" || typeof call === "function")) { return call; } return Setup_assertThisInitialized(self); } - -function Setup_getPrototypeOf(o) { Setup_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return Setup_getPrototypeOf(o); } - -function Setup_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) Setup_setPrototypeOf(subClass, superClass); } - -function Setup_setPrototypeOf(o, p) { Setup_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Setup_setPrototypeOf(o, p); } - -function Setup_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function Setup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - -var Setup_Setup = -/*#__PURE__*/ -function (_Component) { - Setup_inherits(Setup, _Component); - - function Setup() { - var _getPrototypeOf2; - - var _this; - - Setup_classCallCheck(this, Setup); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = Setup_possibleConstructorReturn(this, (_getPrototypeOf2 = Setup_getPrototypeOf(Setup)).call.apply(_getPrototypeOf2, [this].concat(args))); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "state", { - email: '', - password: '', - confirmPass: '', - pending: false, - error: null - }); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "updVal", function (e) { - var el = e.target; - var key = 'email'; - if (el.id === 'pass') key = 'password';else if (el.id === 'pass2') key = 'confirmPass'; - var obj = {}; - obj[key] = el.value; - - _this.setState(obj); - }); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "submit", function (e) { - e.preventDefault(); - var _this$state = _this.state, - email = _this$state.email, - password = _this$state.password, - confirmPass = _this$state.confirmPass, - pending = _this$state.pending; - if (pending) return; - email = email.trim(); - password = password.trim(); - confirmPass = confirmPass.trim(); - var hasEmpty = [email, password, confirmPass].some(function (val) { - return val.length === 0; - }); - if (hasEmpty) return; - - if (password.toLowerCase() !== confirmPass.toLowerCase()) { - return _this.setState({ - error: "Passwords don't match" - }); - } - - _this.setState({ - pending: true, - error: null - }); - - var defaultErr = 'Could not create account'; - fetch(getUrl_default()('users'), { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify({ - email: email, - password: password, - admin: true - }) - }).then(function (res) { - if (res.ok) { - return Object(userAct["e" /* doLogin */])({ - email: email, - password: password - }, null, true); - } - - res.json().then(function (_ref) { - var message = _ref.message; - var error = message || defaultErr; - - _this.setState({ - pending: false, - error: error - }); - }); - }).catch(function (err) { - var error = err.message || defaultErr; - - _this.setState({ - pending: false, - error: error - }); - }); - }); - - return _this; - } - - Setup_createClass(Setup, [{ - key: "render", - value: function render() { - var _this$state2 = this.state, - pending = _this$state2.pending, - error = _this$state2.error; - return external_react_default.a.createElement("div", { - className: "container content" - }, external_react_default.a.createElement(PaddedRow["a" /* default */], { - amount: 25, - vCenter: true - }, external_react_default.a.createElement("div", { - className: "column" - }, external_react_default.a.createElement("h3", null, "Setup account"), external_react_default.a.createElement("form", { - noValidate: true - }, external_react_default.a.createElement("fieldset", null, external_react_default.a.createElement("label", { - htmlFor: "email" - }, "Email:"), external_react_default.a.createElement("input", { - type: "email", - autoFocus: true, - id: "email", - placeholder: "Your email (does't have to be actual email)", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass" - }, "Password:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass", - maxLength: 512, - placeholder: "A super secret password", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass2" - }, "Confirm Password:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass2", - maxLength: 512, - placeholder: "Confirm your super secret password", - onChange: this.updVal - }), external_react_default.a.createElement("button", { - className: "float-right", - onClick: this.submit - }, pending ? external_react_default.a.createElement(Spinner["a" /* default */], null) : 'Submit'), !error ? null : external_react_default.a.createElement("p", { - className: "danger" - }, error)))))); - } - }]); - - return Setup; -}(external_react_["Component"]); - - -// CONCATENATED MODULE: ./comps/Page.js - - - - - - - - - -var Page_Page = function Page(_ref) { - var user = _ref.user, - children = _ref.children; - return external_react_default.a.createElement("div", null, external_react_default.a.createElement(comps_Header, null), external_react_default.a.createElement(comps_KeyShortcuts, null), function () { - if (user.email) { - return external_react_default.a.createElement("div", { - className: "container content" - }, children); - } - - return user.setup ? external_react_default.a.createElement(Setup_Setup, null) : external_react_default.a.createElement(comps_Login, { - user: user - }); - }(), external_react_default.a.createElement(comps_Footer, null)); -}; - -/* harmony default export */ var comps_Page = __webpack_exports__["a"] = (Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Page_Page)); - -/***/ }), -/* 16 */ -/***/ (function(module, exports) { - -module.exports = require("url"); - -/***/ }), -/* 17 */ -/***/ (function(module, exports) { - -module.exports = require("url-join"); - -/***/ }), -/* 18 */ -/***/ (function(module, exports) { - -module.exports = require("next/dynamic"); - -/***/ }), -/* 19 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return updateStateFromId; }); -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function updateStateFromId(e) { - var el = e.target; - this.setState(_defineProperty({}, el.id, el.value)); -} - -/***/ }), -/* 20 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(0); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); - -// EXTERNAL MODULE: external "next/dynamic" -var dynamic_ = __webpack_require__(18); -var dynamic_default = /*#__PURE__*/__webpack_require__.n(dynamic_); - -// CONCATENATED MODULE: ./util/freezeSSR.js - - -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - -var freezeSSR_freezeSSR = function freezeSSR(selector) { - var FrozenSSR = function FrozenSSR() { - var __html = ''; - var props = {}; - - if (typeof document !== 'undefined') { - var el = document.querySelector(selector); - - if (el) { - __html = el.innerHTML; - el.getAttributeNames().forEach(function (attr) { - var attrKey = attr === 'class' ? 'className' : attr; - props[attrKey] = el.getAttribute(attr); - }); - } - } - - return external_react_default.a.createElement("div", _extends({}, props, { - dangerouslySetInnerHTML: { - __html: __html - } - })); - }; - - return { - loading: FrozenSSR - }; -}; - -/* harmony default export */ var util_freezeSSR = (freezeSSR_freezeSSR); -// CONCATENATED MODULE: ./comps/Markdown.js - - -function Markdown_extends() { Markdown_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Markdown_extends.apply(this, arguments); } - - - -var Markdown = dynamic_default()(Promise.resolve(/* import() */).then(__webpack_require__.t.bind(null, 26, 7)), util_freezeSSR('.Markdown')); - -var Markdown_link = function link(props) { - return external_react_default.a.createElement("a", Markdown_extends({}, props, { - target: "_blank", - rel: "noopener noreferrer" - })); -}; - -var renderers = { - link: Markdown_link -}; - -var Markdown_AddRenderers = function AddRenderers(_ref) { - var className = _ref.className, - source = _ref.source; - return external_react_default.a.createElement(Markdown, { - className: className, - source: source, - renderers: renderers - }); -}; - -/* harmony default export */ var comps_Markdown = __webpack_exports__["a"] = (Markdown_AddRenderers); - -/***/ }), -/* 21 */ -/***/ (function(module, exports) { - -var isOkDirPart = function isOkDirPart(str) { - if (str.length > 255 || str.length === 0) return false; - var end = str.length - 1; - - for (var i = 0; i < str.length; i++) { - var c = str.charCodeAt(i); - - if (!(c > 47 && c < 58) && // 0-9 - !(c > 64 && c < 91) && // A-Z - !(c > 96 && c < 123) && // a-z - !(c === 95) && !(c === 45) && // _ and - - !((c === 46 || c === 32) && // period or space if not first or last - i !== 0 && i !== end)) { - return false; - } - } - - return true; -}; - -module.exports = { - checkDir: function checkDir(dir) { - if (typeof dir !== 'string') return false; - dir = dir.trim(); - if (dir.length === 0) return 0; - - if (dir.indexOf('/') > -1) { - dir = dir.split('/').filter(function (p) { - return p.length !== 0; - }); - - if (dir.length === 1) { - if (!isOkDirPart(dir[0])) false; - dir = dir[0]; - } else if (dir.length === 0) { - dir = ''; - } else if (dir.some(function (part) { - return !isOkDirPart(part); - })) { - return false; - } - } else if (!isOkDirPart(dir)) { - return false; - } - - return Array.isArray(dir) ? dir.join('/') : dir; - }, - checkName: function checkName(name) { - if (typeof name !== 'string') return false; - name = name.trim(); - if (name.length === 0) return 0; - if (!isOkDirPart(name)) return false; - return name; - } -}; - -/***/ }), -/* 22 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CodeMirror; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var codemirror__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24); -/* harmony import */ var codemirror__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(codemirror__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _util_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12); -/* harmony import */ var _util_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_util_keys__WEBPACK_IMPORTED_MODULE_2__); -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - -if (typeof window !== 'undefined') { - __webpack_require__(28); -} - -var CodeMirror = -/*#__PURE__*/ -function (_Component) { - _inherits(CodeMirror, _Component); - - function CodeMirror() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, CodeMirror); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(CodeMirror)).call.apply(_getPrototypeOf2, [this].concat(args))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleChange", function () { - if (!_this.editor) return; - - var value = _this.editor.getValue(); - - if (value !== _this.props.value) { - _this.props.onChange && _this.props.onChange(value); - - if (_this.editor.getValue() !== _this.props.value) { - if (_this.state.isControlled) { - _this.editor.setValue(_this.props.value); - } else { - _this.props.value = value; - } - } - } - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "checkSubmit", function (cm, e) { - var key = Object(_util_keys__WEBPACK_IMPORTED_MODULE_2__["getKey"])(e); - - if (Object(_util_keys__WEBPACK_IMPORTED_MODULE_2__["isCtrlKey"])(key)) { - _this.ctrlKey = true; - } else if (key === 13 && _this.ctrlKey) { - _this.props.onSubmit(); - } - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleKeyUp", function (cm, e) { - if (Object(_util_keys__WEBPACK_IMPORTED_MODULE_2__["isCtrlKey"])(Object(_util_keys__WEBPACK_IMPORTED_MODULE_2__["getKey"])(e))) _this.ctrlKey = false; - }); - - return _this; - } - - _createClass(CodeMirror, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (typeof window === 'undefined') return; - this.editor = codemirror__WEBPACK_IMPORTED_MODULE_1___default.a.fromTextArea(this.textarea, this.props.options); - this.editor.on('change', this.handleChange); - - if (typeof this.props.onSubmit === 'function') { - this.editor.on('keydown', this.checkSubmit); - this.editor.on('keyup', this.handleKeyUp); - this.setupSubmitKey = true; - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.setupSubmitKey) { - this.editor.off('keydown', this.checkSubmit); - this.editor.off('keyup', this.handleKeyUp); - this.setupSubmitKey = false; - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - if (!this.editor || !this.props.value) return; - - if (this.editor.getValue() !== this.props.value) { - this.editor.setValue(this.props.value); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - value = _this$props.value, - className = _this$props.className, - onChange = _this$props.onChange; - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { - className: className - }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", _extends({ - value: value, - onChange: onChange - }, { - ref: function ref(el) { - return _this2.textarea = el; - } - }))); - } - }]); - - return CodeMirror; -}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]); - - - -/***/ }), -/* 23 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8); -/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18); -/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _comps_Page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15); -/* harmony import */ var _comps_Markdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20); -/* harmony import */ var _util_checkDirParts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(21); -/* harmony import */ var _util_checkDirParts__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_util_checkDirParts__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _util_updStateFromId__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(19); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_util_getUrl__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _util_getJwt__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(13); - - -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - - - - -var CodeMirrorSkel = function CodeMirrorSkel() { - return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "column" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("textarea", { - style: { - height: 'calc(300px - 1.2rem)', - margin: 0 - } - })); -}; - -var CodeMirror = next_dynamic__WEBPACK_IMPORTED_MODULE_3___default()(Promise.resolve(/* import() */).then(__webpack_require__.bind(null, 22)), { - loading: CodeMirrorSkel, - ssr: false, - loadableGenerated: { - webpack: function webpack() { - return [/*require.resolve*/(22)]; - }, - modules: ['../comps/CodeMirror'] - } -}); -var initState = { - name: '', - dir: '', - md: '## New Document!!', - editMode: false, - error: null, - pending: false -}; - -var MngDoc = -/*#__PURE__*/ -function (_Component) { - _inherits(MngDoc, _Component); - - function MngDoc() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, MngDoc); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MngDoc)).call.apply(_getPrototypeOf2, [this].concat(args))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", initState); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updVal", _util_updStateFromId__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"].bind(_assertThisInitialized(_assertThisInitialized(_this)))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updMd", function (md) { - return _this.setState({ - md: md - }); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "submit", - /*#__PURE__*/ - _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { - var _this$state, name, md, dir, editMode, data, doErr, dirErr, url, method, headers, numRemoved, dataKeys, res, _data, id; - - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _this$state = _this.state, name = _this$state.name, md = _this$state.md, dir = _this$state.dir, editMode = _this$state.editMode; - data = { - name: Object(_util_checkDirParts__WEBPACK_IMPORTED_MODULE_6__["checkName"])(name), - dir: Object(_util_checkDirParts__WEBPACK_IMPORTED_MODULE_6__["checkDir"])(dir), - md: md - }; - - doErr = function doErr(error) { - return _this.setState({ - pending: false, - error: error - }); - }; - - dirErr = 'can only contain A-Z, a-z, 0-9, -, or . and not start or end with .'; - - if (data.name) { - _context.next = 6; - break; - } - - return _context.abrupt("return", doErr('Document name ' + (data.name === 0 ? 'can not be empty' : dirErr))); - - case 6: - if (!(!data.dir && data.dir !== 0)) { - _context.next = 10; - break; - } - - return _context.abrupt("return", doErr('Directory ' + dirErr)); - - case 10: - if (data.dir === 0) { - data.dir = ''; - } - - case 11: - if (!(data.md.trim().length === 0)) { - _context.next = 13; - break; - } - - return _context.abrupt("return", doErr('Content can not be empty')); - - case 13: - url = _util_getUrl__WEBPACK_IMPORTED_MODULE_8___default()('docs'), method = 'POST', headers = { - Authorization: Object(_util_getJwt__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])(), - 'Content-Type': 'application/json' - }; - - if (!editMode) { - _context.next = 22; - break; - } - - numRemoved = 0; - dataKeys = Object.keys(data); - dataKeys.forEach(function (k) { - if (data[k] === _this.props.doc[k]) { - delete data[k]; - numRemoved++; - } - }); - - if (!(dataKeys.length === numRemoved)) { - _context.next = 20; - break; - } - - return _context.abrupt("return"); - - case 20: - url = _util_getUrl__WEBPACK_IMPORTED_MODULE_8___default()('docs/' + _this.props.doc.id); - method = 'PATCH'; - - case 22: - _this.setState({ - error: null, - pending: true - }); - - _context.next = 25; - return fetch(url, { - headers: headers, - method: method, - body: JSON.stringify(data) - }).catch(doErr); - - case 25: - res = _context.sent; - _context.prev = 26; - _context.next = 29; - return res.json(); - - case 29: - data = _context.sent; - _context.next = 35; - break; - - case 32: - _context.prev = 32; - _context.t0 = _context["catch"](26); - data = { - message: 'An error occurred submitting doc' - }; - - case 35: - if (!res.ok) { - _context.next = 38; - break; - } - - _data = data, id = _data.id; - return _context.abrupt("return", next_router__WEBPACK_IMPORTED_MODULE_2___default.a.push({ - pathname: '/k', - query: { - id: id - } - }, _util_getUrl__WEBPACK_IMPORTED_MODULE_8___default()("k/".concat(id)))); - - case 38: - doErr(data.message); - - case 39: - case "end": - return _context.stop(); - } - } - }, _callee, this, [[26, 32]]); - }))); - - return _this; - } - - _createClass(MngDoc, [{ - key: "render", - value: function render() { - var _this$state2 = this.state, - md = _this$state2.md, - dir = _this$state2.dir, - name = _this$state2.name, - error = _this$state2.error, - pending = _this$state2.pending; - var rowStyle = { - paddingTop: 10 - }; - return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_comps_Page__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "row fill", - style: rowStyle - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "column column-50" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_comps_Markdown__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], { - className: "fill Markdown", - source: md - })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "column column-50" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "row" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "column column-60" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", { - type: "text", - maxLength: 250, - placeholder: "New document name", - id: "name", - value: name, - onChange: this.updVal - })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "column" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", { - type: "text", - maxLength: 1024, - placeholder: "Subdirectory (optional)", - id: "dir", - value: dir, - onChange: this.updVal - }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "row" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(CodeMirror, { - value: md, - className: "column WrapCodeMirror", - onChange: this.updMd, - onSubmit: this.submit, - options: { - theme: 'monokai', - mode: 'markdown', - lineWrapping: true - } - })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "row", - style: { - marginTop: 5 - } - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "column" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", null, error), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", { - className: "float-right", - style: { - marginTop: 5 - }, - onClick: pending ? null : this.submit - }, "Submit")))))); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, prevState) { - var doc = nextProps.doc; - - if (doc && !prevState.didInit) { - var name = doc.name, - dir = doc.dir, - md = doc.md; - return { - name: name, - md: md, - dir: dir, - editMode: true, - didInit: true - }; - } else if (!prevState.didInit && prevState.id) { - return _objectSpread({}, initState, { - didInit: true - }); - } else if (!prevState.didInit) { - return { - didInit: true - }; - } - - return null; - } - }]); - - return MngDoc; -}(react__WEBPACK_IMPORTED_MODULE_1__["Component"]); - -/* harmony default export */ __webpack_exports__["a"] = (MngDoc); - -/***/ }), -/* 24 */ -/***/ (function(module, exports) { - -module.exports = require("codemirror"); - -/***/ }), -/* 25 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5); -/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_redux__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _util_mapUser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_util_getUrl__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _util_getJwt__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13); - - -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - - - - - -var getDoc = -/*#__PURE__*/ -function () { - var _ref = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(id, req) { - var found, doc, jwt, docRes; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - jwt = Object(_util_getJwt__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(req); - - if (jwt) { - _context.next = 3; - break; - } - - return _context.abrupt("return", { - found: found, - doc: doc, - id: id - }); - - case 3: - _context.next = 5; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_3___default()(_util_getUrl__WEBPACK_IMPORTED_MODULE_5___default()('docs/' + id, Boolean(req)), { - method: 'GET', - headers: { - Authorization: jwt - } - }); - - case 5: - docRes = _context.sent; - - if (!docRes.ok) { - _context.next = 11; - break; - } - - _context.next = 9; - return docRes.json(); - - case 9: - doc = _context.sent; - found = true; - - case 11: - return _context.abrupt("return", { - found: found, - doc: doc, - id: id - }); - - case 12: - case "end": - return _context.stop(); - } - } - }, _callee, this); - })); - - return function getDoc(_x, _x2) { - return _ref.apply(this, arguments); - }; -}(); - -/* harmony default export */ __webpack_exports__["a"] = (function (ComposedComponent) { - var DocComp = - /*#__PURE__*/ - function (_Component) { - _inherits(DocComp, _Component); - - function DocComp() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, DocComp); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DocComp)).call.apply(_getPrototypeOf2, [this].concat(args))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", { - found: false, - id: null, - doc: {} - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateDoc", - /*#__PURE__*/ - function () { - var _ref2 = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2(id) { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - _context2.t0 = _this; - _context2.next = 3; - return getDoc(id); - - case 3: - _context2.t1 = _context2.sent; - - _context2.t0.setState.call(_context2.t0, _context2.t1); - - case 5: - case "end": - return _context2.stop(); - } - } - }, _callee2, this); - })); - - return function (_x3) { - return _ref2.apply(this, arguments); - }; - }()); - - return _this; - } - - _createClass(DocComp, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.updateDoc(this.props.id); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props = this.props, - user = _this$props.user, - found = _this$props.found, - id = _this$props.id; - if (prevProps.user.email === user.email || found) return; - if (!user.email) return; - this.updateDoc(id); - } - }, { - key: "render", - value: function render() { - return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ComposedComponent, this.state); - } - }], [{ - key: "getInitialProps", - value: function () { - var _getInitialProps = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3(_ref3) { - var query, req; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { - while (1) { - switch (_context3.prev = _context3.next) { - case 0: - query = _ref3.query, req = _ref3.req; - _context3.next = 3; - return getDoc(query.id, req); - - case 3: - return _context3.abrupt("return", _context3.sent); - - case 4: - case "end": - return _context3.stop(); - } - } - }, _callee3, this); - })); - - return function getInitialProps(_x4) { - return _getInitialProps.apply(this, arguments); - }; - }() - }, { - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, prevState) { - var found = nextProps.found, - id = nextProps.id, - doc = nextProps.doc; - - if (prevState.found !== found && !prevState.didInit) { - return { - found: found, - id: id, - doc: doc, - didInit: true - }; - } - - return null; - } - }]); - - return DocComp; - }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]); - - return Object(react_redux__WEBPACK_IMPORTED_MODULE_2__["connect"])(_util_mapUser__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(DocComp); -}); - -/***/ }), -/* 26 */ -/***/ (function(module, exports) { - -module.exports = require("react-markdown"); - -/***/ }), -/* 27 */, -/* 28 */ -/***/ (function(module, exports) { - -module.exports = require("codemirror/mode/markdown/markdown"); - -/***/ }), -/* 29 */, -/* 30 */, -/* 31 */, -/* 32 */, -/* 33 */, -/* 34 */, -/* 35 */, -/* 36 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(37); - - -/***/ }), -/* 37 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _comps_Page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15); -/* harmony import */ var _comps_MngDoc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23); -/* harmony import */ var _comps_AddDoc__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25); -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - - - - - - -var Edit = -/*#__PURE__*/ -function (_Component) { - _inherits(Edit, _Component); - - function Edit() { - _classCallCheck(this, Edit); - - return _possibleConstructorReturn(this, _getPrototypeOf(Edit).apply(this, arguments)); - } - - _createClass(Edit, [{ - key: "render", - value: function render() { - var _this$props = this.props, - found = _this$props.found, - doc = _this$props.doc; - if (!found) return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_comps_Page__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h3", null, "Doc not found...")); - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_comps_MngDoc__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], { - doc: doc - }); - } - }]); - - return Edit; -}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]); - -/* harmony default export */ __webpack_exports__["default"] = (Object(_comps_AddDoc__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(Edit)); - -/***/ }) -/******/ ]); \ No newline at end of file diff --git a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/index.js b/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/index.js deleted file mode 100644 index 70a7423..0000000 --- a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/index.js +++ /dev/null @@ -1,1789 +0,0 @@ -module.exports = -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = require('../../../ssr-module-cache.js'); -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete installedModules[moduleId]; -/******/ } -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 38); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -module.exports = require("react"); - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - -var url = __webpack_require__(16); - -var urljoin = __webpack_require__(17); - -module.exports = function (path, absolute) { - var _ref = typeof window === 'undefined' ? app.get('kbConf') : window.kbConf, - pathPrefix = _ref.pathPrefix; - - path = urljoin(pathPrefix, path); - if (!absolute) return path; // absolute should only be used during ssr - - return url.format({ - hostname: app.get('host'), - port: app.get('port'), - pathname: path, - protocol: 'http' - }); -}; - -/***/ }), -/* 2 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return SET_USER; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LOGIN_PENDING; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LOGIN_FAILED; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return LOGOUT; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return setUser; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return doLogout; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return doLogin; }); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_util_getUrl__WEBPACK_IMPORTED_MODULE_3__); - - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - // define action types - -var SET_USER = 'SET_USER'; -var LOGIN_PENDING = 'LOGIN_PENDING'; -var LOGIN_FAILED = 'LOGIN_FAILED'; -var LOGOUT = 'LOGOUT'; -var setUser = function setUser(user) { - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: SET_USER, - data: user - }); -}; // setUser - -var doLogout = function doLogout() { - if (typeof window !== 'undefined') { - window.localStorage.removeItem('jwt'); - document.cookie = 'jwt=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;'; - } - - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGOUT - }); -}; // doLogout - -function doLogin(_x, _x2, _x3) { - return _doLogin.apply(this, arguments); -} // doLogin - -function _doLogin() { - _doLogin = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(creds, jwt, noPend) { - var authReqOpts, authReqHead, authReqBody, authReq, authRes, error, _ref, accessToken, payload, _JSON$parse, userId, userReq, userRes; - - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - !noPend && _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_PENDING - }); - authReqOpts = { - method: 'POST', - credentials: 'include' - }; - authReqHead = { - headers: jwt ? { - Authorization: jwt - } : { - 'Content-Type': 'application/json' - } - }; - authReqBody = jwt ? null : { - body: JSON.stringify(_objectSpread({}, creds, { - strategy: 'local' - })) - }; - authReq = new Request(_util_getUrl__WEBPACK_IMPORTED_MODULE_3___default()('auth'), _objectSpread({}, authReqOpts, authReqHead, authReqBody)); - _context.next = 7; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default()(authReq).catch(function (err) { - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: err.message - }); - }); - - case 7: - authRes = _context.sent; - - if (authRes.ok) { - _context.next = 20; - break; - } - - _context.prev = 9; - _context.next = 12; - return authRes.json(); - - case 12: - error = _context.sent; - error = error.message; - _context.next = 19; - break; - - case 16: - _context.prev = 16; - _context.t0 = _context["catch"](9); - error = authRes.status === 429 ? 'Max login attempts reached' : 'An error occurred during login'; - - case 19: - return _context.abrupt("return", _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: error - })); - - case 20: - _context.next = 22; - return authRes.json(); - - case 22: - _ref = _context.sent; - accessToken = _ref.accessToken; - payload = accessToken.split('.')[1]; - _JSON$parse = JSON.parse(atob(payload)), userId = _JSON$parse.userId; - userReq = new Request(_util_getUrl__WEBPACK_IMPORTED_MODULE_3___default()("/users/".concat(userId)), { - headers: { - Authorization: accessToken - } - }); - _context.next = 29; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default()(userReq); - - case 29: - userRes = _context.sent; - - if (userRes.ok) { - _context.next = 32; - break; - } - - return _context.abrupt("return", _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: 'failed to get user' - })); - - case 32: - window.localStorage.setItem('jwt', accessToken); - _context.t1 = setUser; - _context.next = 36; - return userRes.json(); - - case 36: - _context.t2 = _context.sent; - (0, _context.t1)(_context.t2); - - case 38: - case "end": - return _context.stop(); - } - } - }, _callee, this, [[9, 16]]); - })); - return _doLogin.apply(this, arguments); -} - -/***/ }), -/* 3 */ -/***/ (function(module, exports) { - -module.exports = require("@babel/runtime/regenerator"); - -/***/ }), -/* 4 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "redux" -var external_redux_ = __webpack_require__(10); - -// EXTERNAL MODULE: ./redux/actions/userAct.js -var userAct = __webpack_require__(2); - -// CONCATENATED MODULE: ./redux/reducers/userRed.js -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - -var initState = { - setup: false, - _id: null, - email: null, - admin: null, - pending: false, - error: null -}; - -function user() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initState; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case userAct["d" /* SET_USER */]: - { - return _objectSpread({}, initState, action.data); - } - - case userAct["b" /* LOGIN_PENDING */]: - { - return _objectSpread({}, initState, { - pending: true - }); - } - - case userAct["a" /* LOGIN_FAILED */]: - { - return _objectSpread({}, state, { - pending: false, - error: action.data - }); - } - - case userAct["c" /* LOGOUT */]: - { - return initState; - } - - default: - return state; - } -} - -/* harmony default export */ var userRed = (user); -// CONCATENATED MODULE: ./redux/store.js - - -var middleware; - -if (false) { var logger; } - -var reducers = Object(external_redux_["combineReducers"])({ - user: userRed -}); -/* harmony default export */ var store = __webpack_exports__["a"] = (middleware ? Object(external_redux_["createStore"])(reducers, middleware) : Object(external_redux_["createStore"])(reducers)); - -/***/ }), -/* 5 */ -/***/ (function(module, exports) { - -module.exports = require("react-redux"); - -/***/ }), -/* 6 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony default export */ __webpack_exports__["a"] = (function (_ref) { - var user = _ref.user; - return { - user: user - }; -}); - -/***/ }), -/* 7 */ -/***/ (function(module, exports) { - -module.exports = require("isomorphic-unfetch"); - -/***/ }), -/* 8 */ -/***/ (function(module, exports) { - -module.exports = require("next/router"); - -/***/ }), -/* 9 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -var PaddedRow = function PaddedRow(_ref) { - var children = _ref.children, - amount = _ref.amount, - vCenter = _ref.vCenter; - amount = amount || 20; - - var PadItem = function PadItem() { - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { - className: 'column column-' + amount + ' nomob' - }); - }; - - var rowProps = { - className: 'row' - }; - if (vCenter) rowProps = { - className: 'row v-center' - };else rowProps = _objectSpread({}, rowProps, { - style: { - paddingTop: amount - } - }); - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", rowProps, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(PadItem, null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { - className: "column" - }, children), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(PadItem, null)); -}; - -/* harmony default export */ __webpack_exports__["a"] = (PaddedRow); - -/***/ }), -/* 10 */ -/***/ (function(module, exports) { - -module.exports = require("redux"); - -/***/ }), -/* 11 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - -var Spinner = function Spinner(props) { - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({ - className: "spinner" - }, props)); -}; - -/* harmony default export */ __webpack_exports__["a"] = (Spinner); - -/***/ }), -/* 12 */ -/***/ (function(module, exports) { - -module.exports = { - getKey: function getKey(e) { - return e.which || e.keyCode; - }, - isCtrlKey: function isCtrlKey(key) { - return key === 91 || key === 93 || key === 17; - } -}; - -/***/ }), -/* 13 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony default export */ __webpack_exports__["a"] = (function (req) { - if (req) return req.jwt; - - if (typeof window !== 'undefined') { - return window.localStorage.getItem('jwt'); - } -}); - -/***/ }), -/* 14 */ -/***/ (function(module, exports) { - -module.exports = require("next/link"); - -/***/ }), -/* 15 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(0); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); - -// EXTERNAL MODULE: external "react-redux" -var external_react_redux_ = __webpack_require__(5); - -// EXTERNAL MODULE: external "next/router" -var router_ = __webpack_require__(8); -var router_default = /*#__PURE__*/__webpack_require__.n(router_); - -// EXTERNAL MODULE: ./redux/actions/userAct.js -var userAct = __webpack_require__(2); - -// EXTERNAL MODULE: external "next/link" -var link_ = __webpack_require__(14); -var link_default = /*#__PURE__*/__webpack_require__.n(link_); - -// EXTERNAL MODULE: ./util/getUrl.js -var getUrl = __webpack_require__(1); -var getUrl_default = /*#__PURE__*/__webpack_require__.n(getUrl); - -// EXTERNAL MODULE: ./util/mapUser.js -var mapUser = __webpack_require__(6); - -// CONCATENATED MODULE: ./comps/Header.js -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - - -var Header_NavLink = function NavLink(_ref) { - var children = _ref.children, - href = _ref.href, - active = _ref.active; - var activeClass = active ? ' active' : ''; - return external_react_default.a.createElement(link_default.a, { - href: href, - as: getUrl_default()(href) - }, external_react_default.a.createElement("a", { - className: activeClass - }, children)); -}; - -var navItems = [['/', 'Home'], ['/new', 'New Doc'], ['/settings', 'Settings']]; - -var Header_Header = -/*#__PURE__*/ -function (_Component) { - _inherits(Header, _Component); - - function Header() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, Header); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Header)).call.apply(_getPrototypeOf2, [this].concat(args))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", { - open: false - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "hideNav", function () { - return _this.setState({ - open: false - }); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toggleNav", function () { - return _this.setState({ - open: !_this.state.open - }); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isActive", function (url) { - return getUrl_default()(_this.props.router.pathname) === getUrl_default()(url); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "logout", function (e) { - e.preventDefault(); - - _this.hideNav(); - - Object(userAct["f" /* doLogout */])(); - }); - - return _this; - } - - _createClass(Header, [{ - key: "render", - value: function render() { - var _this2 = this; - - var expandClass = this.state.open ? ' active' : ''; - var user = this.props.user; - return external_react_default.a.createElement("nav", { - className: "navbar", - role: "navigation", - "aria-label": "main navigation" - }, external_react_default.a.createElement("div", { - className: "navbar-brand" - }, external_react_default.a.createElement(Header_NavLink, { - href: "/" - }, external_react_default.a.createElement("h3", { - onClick: this.hideNav - }, "MYKB"))), !user.email ? null : [external_react_default.a.createElement("div", { - className: 'navbar-burger ' + expandClass, - onClick: this.toggleNav, - key: "burger" - }, external_react_default.a.createElement("div", null), external_react_default.a.createElement("div", null), external_react_default.a.createElement("div", null)), external_react_default.a.createElement("div", { - className: 'navbar-items' + expandClass, - key: "items" - }, navItems.map(function (item) { - return external_react_default.a.createElement(Header_NavLink, { - key: item[0], - href: item[0], - active: _this2.isActive(item[0]) - }, external_react_default.a.createElement("p", { - className: "item", - onClick: _this2.hideNav - }, item[1])); - }), external_react_default.a.createElement("a", { - href: "/logout", - onClick: this.logout - }, external_react_default.a.createElement("p", { - className: "item" - }, "Logout")))]); - } - }]); - - return Header; -}(external_react_["Component"]); - -/* harmony default export */ var comps_Header = (Object(router_["withRouter"])(Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Header_Header))); -// EXTERNAL MODULE: ./util/keys.js -var keys = __webpack_require__(12); - -// CONCATENATED MODULE: ./comps/KeyShortcuts.js -function KeyShortcuts_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { KeyShortcuts_typeof = function _typeof(obj) { return typeof obj; }; } else { KeyShortcuts_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return KeyShortcuts_typeof(obj); } - -function KeyShortcuts_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function KeyShortcuts_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function KeyShortcuts_createClass(Constructor, protoProps, staticProps) { if (protoProps) KeyShortcuts_defineProperties(Constructor.prototype, protoProps); if (staticProps) KeyShortcuts_defineProperties(Constructor, staticProps); return Constructor; } - -function KeyShortcuts_possibleConstructorReturn(self, call) { if (call && (KeyShortcuts_typeof(call) === "object" || typeof call === "function")) { return call; } return KeyShortcuts_assertThisInitialized(self); } - -function KeyShortcuts_getPrototypeOf(o) { KeyShortcuts_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return KeyShortcuts_getPrototypeOf(o); } - -function KeyShortcuts_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) KeyShortcuts_setPrototypeOf(subClass, superClass); } - -function KeyShortcuts_setPrototypeOf(o, p) { KeyShortcuts_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return KeyShortcuts_setPrototypeOf(o, p); } - -function KeyShortcuts_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function KeyShortcuts_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - -/* - keyboard shortcuts - g then h -> navigate home - g then n -> navigate to new doc - g then s -> navigate to settings - g then l -> logout - e (when on doc page) -> edit doc - / (when on home page) -> focus search - ctrl/cmd + enter -> submit new doc (handled in CodeMirror component) -*/ - -var keyToUrl = { - 72: '/', - 78: '/new', - 83: '/settings' -}; -var keyToEl = { - 69: { - sel: '#edit', - func: 'click' - }, - 191: { - sel: '.search', - func: 'focus' - } -}; - -var KeyShortcuts_KeyShortcuts = -/*#__PURE__*/ -function (_Component) { - KeyShortcuts_inherits(KeyShortcuts, _Component); - - function KeyShortcuts() { - var _getPrototypeOf2; - - var _this; - - KeyShortcuts_classCallCheck(this, KeyShortcuts); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = KeyShortcuts_possibleConstructorReturn(this, (_getPrototypeOf2 = KeyShortcuts_getPrototypeOf(KeyShortcuts)).call.apply(_getPrototypeOf2, [this].concat(args))); - - KeyShortcuts_defineProperty(KeyShortcuts_assertThisInitialized(KeyShortcuts_assertThisInitialized(_this)), "handleDown", function (e) { - var tag = e.target.tagName; - if (tag === 'INPUT' || tag === 'TEXTAREA') return; - var key = Object(keys["getKey"])(e); - - if (_this.prevKey === 71) { - // prev key was g - switch (key) { - case 72: - case 78: - case 83: - { - var url = keyToUrl[key]; - router_default.a.push(url, getUrl_default()(url)); - break; - } - - case 76: - { - setTimeout(userAct["f" /* doLogout */], 1); - break; - } - - default: - break; - } - } - - switch (key) { - case 69: - case 191: - { - var _keyToEl$key = keyToEl[key], - sel = _keyToEl$key.sel, - func = _keyToEl$key.func; - var el = document.querySelector(sel); - if (el) setTimeout(function () { - return el[func](); - }, 1); - break; - } - - default: - break; - } - - _this.prevKey = key; - }); - - KeyShortcuts_defineProperty(KeyShortcuts_assertThisInitialized(KeyShortcuts_assertThisInitialized(_this)), "render", function () { - return null; - }); - - return _this; - } - - KeyShortcuts_createClass(KeyShortcuts, [{ - key: "componentDidMount", - value: function componentDidMount() { - window.addEventListener('keydown', this.handleDown); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - window.removeEventListener('keydown', this.handleDown); - } - }]); - - return KeyShortcuts; -}(external_react_["Component"]); - -/* harmony default export */ var comps_KeyShortcuts = (KeyShortcuts_KeyShortcuts); -// CONCATENATED MODULE: ./comps/Footer.js - - -var Footer_Footer = function Footer() { - return external_react_default.a.createElement("footer", { - className: "footer" - }, external_react_default.a.createElement("p", null, "Powered by", ' ', external_react_default.a.createElement("a", { - href: "//github.com/ijjk/mykb", - target: "_blank", - rel: "noopener noreferrer" - }, "MYKB"))); -}; - -/* harmony default export */ var comps_Footer = (Footer_Footer); -// EXTERNAL MODULE: ./comps/Spinner.js -var Spinner = __webpack_require__(11); - -// EXTERNAL MODULE: ./comps/PaddedRow.js -var PaddedRow = __webpack_require__(9); - -// CONCATENATED MODULE: ./comps/Login.js -function Login_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Login_typeof = function _typeof(obj) { return typeof obj; }; } else { Login_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Login_typeof(obj); } - -function Login_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function Login_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function Login_createClass(Constructor, protoProps, staticProps) { if (protoProps) Login_defineProperties(Constructor.prototype, protoProps); if (staticProps) Login_defineProperties(Constructor, staticProps); return Constructor; } - -function Login_possibleConstructorReturn(self, call) { if (call && (Login_typeof(call) === "object" || typeof call === "function")) { return call; } return Login_assertThisInitialized(self); } - -function Login_getPrototypeOf(o) { Login_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return Login_getPrototypeOf(o); } - -function Login_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) Login_setPrototypeOf(subClass, superClass); } - -function Login_setPrototypeOf(o, p) { Login_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Login_setPrototypeOf(o, p); } - -function Login_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function Login_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - -var Login_Login = -/*#__PURE__*/ -function (_Component) { - Login_inherits(Login, _Component); - - function Login() { - var _getPrototypeOf2; - - var _this; - - Login_classCallCheck(this, Login); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = Login_possibleConstructorReturn(this, (_getPrototypeOf2 = Login_getPrototypeOf(Login)).call.apply(_getPrototypeOf2, [this].concat(args))); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "state", { - email: '', - pass: '' - }); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "updVal", function (e) { - var el = e.target; - var val = el.value; - - if (el.getAttribute('type') === 'email') { - return _this.setState({ - email: val - }); - } - - _this.setState({ - pass: val - }); - }); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "submit", function (e) { - var pending = _this.props.user.pending; - var _this$state = _this.state, - email = _this$state.email, - pass = _this$state.pass; - email = email.trim(); - pass = pass.trim(); - e.preventDefault(); - - if (pending || email.length === 0 || pass.length == 0) { - return; - } - - Object(userAct["e" /* doLogin */])({ - email: email, - password: pass - }); - }); - - return _this; - } - - Login_createClass(Login, [{ - key: "render", - value: function render() { - var _this$props$user = this.props.user, - pending = _this$props$user.pending, - error = _this$props$user.error; - return external_react_default.a.createElement("div", { - className: "container content" - }, external_react_default.a.createElement(PaddedRow["a" /* default */], { - amount: 25, - vCenter: true - }, external_react_default.a.createElement("h4", null, "Please login to continue"), external_react_default.a.createElement("form", { - noValidate: true - }, external_react_default.a.createElement("fieldset", null, external_react_default.a.createElement("label", { - htmlFor: "email" - }, "Email:"), external_react_default.a.createElement("input", { - type: "email", - id: "email", - name: "email", - autoFocus: true, - placeholder: "John@deux.com", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass" - }, "Pass:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass", - name: "password", - placeholder: "Super secret password...", - onChange: this.updVal - })), external_react_default.a.createElement("button", { - className: 'float-right' + (pending ? ' disabled' : ''), - onClick: this.submit - }, pending ? external_react_default.a.createElement(Spinner["a" /* default */], null) : 'Submit'), !error ? null : external_react_default.a.createElement("p", null, error)))); - } - }]); - - return Login; -}(external_react_["Component"]); - -/* harmony default export */ var comps_Login = (Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Login_Login)); -// CONCATENATED MODULE: ./comps/Setup.js -function Setup_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Setup_typeof = function _typeof(obj) { return typeof obj; }; } else { Setup_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Setup_typeof(obj); } - -function Setup_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function Setup_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function Setup_createClass(Constructor, protoProps, staticProps) { if (protoProps) Setup_defineProperties(Constructor.prototype, protoProps); if (staticProps) Setup_defineProperties(Constructor, staticProps); return Constructor; } - -function Setup_possibleConstructorReturn(self, call) { if (call && (Setup_typeof(call) === "object" || typeof call === "function")) { return call; } return Setup_assertThisInitialized(self); } - -function Setup_getPrototypeOf(o) { Setup_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return Setup_getPrototypeOf(o); } - -function Setup_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) Setup_setPrototypeOf(subClass, superClass); } - -function Setup_setPrototypeOf(o, p) { Setup_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Setup_setPrototypeOf(o, p); } - -function Setup_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function Setup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - -var Setup_Setup = -/*#__PURE__*/ -function (_Component) { - Setup_inherits(Setup, _Component); - - function Setup() { - var _getPrototypeOf2; - - var _this; - - Setup_classCallCheck(this, Setup); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = Setup_possibleConstructorReturn(this, (_getPrototypeOf2 = Setup_getPrototypeOf(Setup)).call.apply(_getPrototypeOf2, [this].concat(args))); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "state", { - email: '', - password: '', - confirmPass: '', - pending: false, - error: null - }); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "updVal", function (e) { - var el = e.target; - var key = 'email'; - if (el.id === 'pass') key = 'password';else if (el.id === 'pass2') key = 'confirmPass'; - var obj = {}; - obj[key] = el.value; - - _this.setState(obj); - }); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "submit", function (e) { - e.preventDefault(); - var _this$state = _this.state, - email = _this$state.email, - password = _this$state.password, - confirmPass = _this$state.confirmPass, - pending = _this$state.pending; - if (pending) return; - email = email.trim(); - password = password.trim(); - confirmPass = confirmPass.trim(); - var hasEmpty = [email, password, confirmPass].some(function (val) { - return val.length === 0; - }); - if (hasEmpty) return; - - if (password.toLowerCase() !== confirmPass.toLowerCase()) { - return _this.setState({ - error: "Passwords don't match" - }); - } - - _this.setState({ - pending: true, - error: null - }); - - var defaultErr = 'Could not create account'; - fetch(getUrl_default()('users'), { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify({ - email: email, - password: password, - admin: true - }) - }).then(function (res) { - if (res.ok) { - return Object(userAct["e" /* doLogin */])({ - email: email, - password: password - }, null, true); - } - - res.json().then(function (_ref) { - var message = _ref.message; - var error = message || defaultErr; - - _this.setState({ - pending: false, - error: error - }); - }); - }).catch(function (err) { - var error = err.message || defaultErr; - - _this.setState({ - pending: false, - error: error - }); - }); - }); - - return _this; - } - - Setup_createClass(Setup, [{ - key: "render", - value: function render() { - var _this$state2 = this.state, - pending = _this$state2.pending, - error = _this$state2.error; - return external_react_default.a.createElement("div", { - className: "container content" - }, external_react_default.a.createElement(PaddedRow["a" /* default */], { - amount: 25, - vCenter: true - }, external_react_default.a.createElement("div", { - className: "column" - }, external_react_default.a.createElement("h3", null, "Setup account"), external_react_default.a.createElement("form", { - noValidate: true - }, external_react_default.a.createElement("fieldset", null, external_react_default.a.createElement("label", { - htmlFor: "email" - }, "Email:"), external_react_default.a.createElement("input", { - type: "email", - autoFocus: true, - id: "email", - placeholder: "Your email (does't have to be actual email)", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass" - }, "Password:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass", - maxLength: 512, - placeholder: "A super secret password", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass2" - }, "Confirm Password:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass2", - maxLength: 512, - placeholder: "Confirm your super secret password", - onChange: this.updVal - }), external_react_default.a.createElement("button", { - className: "float-right", - onClick: this.submit - }, pending ? external_react_default.a.createElement(Spinner["a" /* default */], null) : 'Submit'), !error ? null : external_react_default.a.createElement("p", { - className: "danger" - }, error)))))); - } - }]); - - return Setup; -}(external_react_["Component"]); - - -// CONCATENATED MODULE: ./comps/Page.js - - - - - - - - - -var Page_Page = function Page(_ref) { - var user = _ref.user, - children = _ref.children; - return external_react_default.a.createElement("div", null, external_react_default.a.createElement(comps_Header, null), external_react_default.a.createElement(comps_KeyShortcuts, null), function () { - if (user.email) { - return external_react_default.a.createElement("div", { - className: "container content" - }, children); - } - - return user.setup ? external_react_default.a.createElement(Setup_Setup, null) : external_react_default.a.createElement(comps_Login, { - user: user - }); - }(), external_react_default.a.createElement(comps_Footer, null)); -}; - -/* harmony default export */ var comps_Page = __webpack_exports__["a"] = (Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Page_Page)); - -/***/ }), -/* 16 */ -/***/ (function(module, exports) { - -module.exports = require("url"); - -/***/ }), -/* 17 */ -/***/ (function(module, exports) { - -module.exports = require("url-join"); - -/***/ }), -/* 18 */, -/* 19 */, -/* 20 */, -/* 21 */, -/* 22 */, -/* 23 */, -/* 24 */, -/* 25 */, -/* 26 */, -/* 27 */, -/* 28 */, -/* 29 */, -/* 30 */ -/***/ (function(module, exports) { - -module.exports = require("react-paginate"); - -/***/ }), -/* 31 */, -/* 32 */, -/* 33 */, -/* 34 */, -/* 35 */, -/* 36 */, -/* 37 */, -/* 38 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(48); - - -/***/ }), -/* 39 */, -/* 40 */, -/* 41 */, -/* 42 */, -/* 43 */, -/* 44 */, -/* 45 */, -/* 46 */, -/* 47 */, -/* 48 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); - -// EXTERNAL MODULE: external "@babel/runtime/regenerator" -var regenerator_ = __webpack_require__(3); -var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_); - -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(0); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); - -// EXTERNAL MODULE: external "react-redux" -var external_react_redux_ = __webpack_require__(5); - -// EXTERNAL MODULE: external "next/router" -var router_ = __webpack_require__(8); -var router_default = /*#__PURE__*/__webpack_require__.n(router_); - -// EXTERNAL MODULE: external "react-paginate" -var external_react_paginate_ = __webpack_require__(30); -var external_react_paginate_default = /*#__PURE__*/__webpack_require__.n(external_react_paginate_); - -// EXTERNAL MODULE: external "url" -var external_url_ = __webpack_require__(16); - -// EXTERNAL MODULE: ./comps/Page.js + 5 modules -var Page = __webpack_require__(15); - -// EXTERNAL MODULE: ./comps/PaddedRow.js -var PaddedRow = __webpack_require__(9); - -// EXTERNAL MODULE: ./comps/Spinner.js -var Spinner = __webpack_require__(11); - -// EXTERNAL MODULE: external "next/link" -var link_ = __webpack_require__(14); -var link_default = /*#__PURE__*/__webpack_require__.n(link_); - -// EXTERNAL MODULE: ./util/getUrl.js -var getUrl = __webpack_require__(1); -var getUrl_default = /*#__PURE__*/__webpack_require__.n(getUrl); - -// CONCATENATED MODULE: ./comps/DocItem.js - - - - -var DocItem_DocItem = function DocItem(_ref) { - var id = _ref.id, - name = _ref.name, - dir = _ref.dir, - updated = _ref.updated; - name = dir + (dir.length > 0 ? '/' : '') + name; - var as = getUrl_default()('k/' + id); - var href = { - pathname: '/k', - query: { - id: id - } - }; - return external_react_default.a.createElement("tr", null, external_react_default.a.createElement("td", null, external_react_default.a.createElement(link_default.a, { - href: href, - as: as - }, external_react_default.a.createElement("a", null, external_react_default.a.createElement("p", { - className: "noMargin" - }, name, external_react_default.a.createElement("span", { - className: "float-right" - }, new Date(updated).toLocaleDateString('en-US'))))))); -}; - -/* harmony default export */ var comps_DocItem = (DocItem_DocItem); -// EXTERNAL MODULE: external "isomorphic-unfetch" -var external_isomorphic_unfetch_ = __webpack_require__(7); -var external_isomorphic_unfetch_default = /*#__PURE__*/__webpack_require__.n(external_isomorphic_unfetch_); - -// CONCATENATED MODULE: ./util/parseSort.js -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -/* harmony default export */ var parseSort = (function (sort) { - var key, ascDesc; - - switch (_typeof(sort)) { - case 'object': - { - key = Object.keys(sort).pop(); - ascDesc = sort[key]; - break; - } - - case 'string': - { - var parts = sort.split(':'); - key = parts[0]; - ascDesc = parts[1]; - break; - } - - default: - break; - } - - return "$sort[".concat(key, "]=").concat(ascDesc); -}); -// EXTERNAL MODULE: ./util/getJwt.js -var getJwt = __webpack_require__(13); - -// CONCATENATED MODULE: ./util/getDocs.js - - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - -var $limit = 12; // number of docs per page - -var getDocs_select = ['id', 'name', 'updated', 'dir'].map(function (f, i) { - return _defineProperty({}, "$select[".concat(i, "]"), f); -}); -var getDocs = -/*#__PURE__*/ -function () { - var _ref2 = _asyncToGenerator( - /*#__PURE__*/ - regenerator_default.a.mark(function _callee(q, jwt) { - var docsRes, res, total, docs; - return regenerator_default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return external_isomorphic_unfetch_default()(getUrl_default()('docs', Boolean(jwt)) + q, { - headers: { - Authorization: jwt || Object(getJwt["a" /* default */])() - } - }).catch(function (_ref3) { - var message = _ref3.message; - return { - ok: false, - error: message - }; - }); - - case 2: - docsRes = _context.sent; - - if (!docsRes.ok) { - _context.next = 10; - break; - } - - _context.next = 6; - return docsRes.json(); - - case 6: - res = _context.sent; - total = res.total || 0; - docs = res.data || []; - return _context.abrupt("return", { - docs: docs, - total: total - }); - - case 10: - return _context.abrupt("return", { - total: 0, - docs: [], - error: docsRes.message - }); - - case 11: - case "end": - return _context.stop(); - } - } - }, _callee, this); - })); - - return function getDocs(_x, _x2) { - return _ref2.apply(this, arguments); - }; -}(); -var getDocs_buildQ = function buildQ(q) { - if (!q.$search) delete q.$search; - if (!q.$skip) delete q.$skip;else { - q.$skip = (q.$skip - 1) * $limit; - } - var $sort = parseSort(q.$sort ? q.$sort : 'updated:-1'); - delete q.$sort; - getDocs_select.forEach(function (sel) { - return q = _objectSpread({}, q, sel); - }); - q = _objectSpread({ - $limit: $limit - }, q); - var url = Object.keys(q).map(function (k) { - return "".concat(k, "=").concat(encodeURIComponent(q[k])); - }).join('&'); - url = "?".concat(url, "&").concat($sort); - return url; -}; -// EXTERNAL MODULE: ./util/mapUser.js -var mapUser = __webpack_require__(6); - -// CONCATENATED MODULE: ./pages/index.js - - -function pages_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { pages_typeof = function _typeof(obj) { return typeof obj; }; } else { pages_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return pages_typeof(obj); } - -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - -function pages_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { pages_defineProperty(target, key, source[key]); }); } return target; } - -function pages_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function pages_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { pages_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { pages_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (pages_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function pages_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - - - - - - - - -var pages_Index = -/*#__PURE__*/ -function (_Component) { - _inherits(Index, _Component); - - function Index() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, Index); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Index)).call.apply(_getPrototypeOf2, [this].concat(args))); - - pages_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", { - $sort: 'updated:-1', - $search: '', - page: 1, - pending: false, - error: null, - total: 0, - docs: [] - }); - - pages_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "pushQuery", function (query) { - return router_default.a.push({ - pathname: '/', - query: query - }, Object(external_url_["format"])({ - pathname: getUrl_default()('/'), - query: query - })); - }); - - pages_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updDocs", function (time, doSearch) { - clearTimeout(_this.docsTime); - _this.docsTime = setTimeout( - /*#__PURE__*/ - pages_asyncToGenerator( - /*#__PURE__*/ - regenerator_default.a.mark(function _callee() { - var _this$state, $sort, $search, page, query, q, data; - - return regenerator_default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _this$state = _this.state, $sort = _this$state.$sort, $search = _this$state.$search, page = _this$state.page; - - if (doSearch) { - query = { - search: $search - }; - if (!$search) delete query.search; - - _this.pushQuery(query); - } - - _this.setState({ - error: null - }); - - _this.docsTime = setTimeout(function () { - _this.setState({ - pending: true - }); - }, 125); - q = getDocs_buildQ({ - $search: $search, - $sort: $sort, - $skip: page - }); - _context.next = 7; - return getDocs(q); - - case 7: - data = _context.sent; - clearTimeout(_this.docsTime); - - _this.setState(pages_objectSpread({}, data, { - pending: false - })); - - case 10: - case "end": - return _context.stop(); - } - } - }, _callee, this); - })), time || 275); - }); - - pages_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updQuery", function (e) { - _this.setState(pages_defineProperty({}, e.target.id, e.target.value)); - - _this.updDocs(0, e.target.id === '$search'); - }); - - pages_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handlePage", function (_ref2) { - var selected = _ref2.selected; - var $search = _this.state.$search; - var page = selected + 1; - var query = {}; - - _this.setState({ - page: page - }); - - if (page > 1) query.page = page; - if ($search) query.search = $search; - - _this.pushQuery(query); - - _this.updDocs(1); - }); - - return _this; - } - - _createClass(Index, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.updDocs(1); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props = this.props, - user = _this$props.user, - docs = _this$props.docs; - if (prevProps.user.email === user.email) return; - if (user.email && docs.length === 0) this.updDocs(1); - } - }, { - key: "render", - value: function render() { - var _this$state2 = this.state, - $sort = _this$state2.$sort, - $search = _this$state2.$search, - pending = _this$state2.pending, - error = _this$state2.error, - docs = _this$state2.docs, - total = _this$state2.total, - page = _this$state2.page; - var pages = Math.ceil(total / $limit); - return external_react_default.a.createElement(Page["a" /* default */], null, external_react_default.a.createElement(PaddedRow["a" /* default */], null, external_react_default.a.createElement("input", { - type: "text", - placeholder: "Search knowledge base...", - maxLength: 128, - value: $search, - className: "search", - id: "$search", - onChange: this.updQuery - })), external_react_default.a.createElement(PaddedRow["a" /* default */], null, external_react_default.a.createElement("div", { - className: "inline", - style: { - width: '100%' - } - }, external_react_default.a.createElement("h4", { - className: "noMargin" - }, "Docs"), external_react_default.a.createElement("div", { - className: "float-right inline" - }, external_react_default.a.createElement("label", { - htmlFor: "sort" - }, "Sort: "), external_react_default.a.createElement("select", { - id: "$sort", - value: $sort, - onChange: this.updQuery, - style: { - width: 150 - } - }, external_react_default.a.createElement("option", { - value: "updated:-1" - }, 'Updated (new -> old)'), external_react_default.a.createElement("option", { - value: "updated:1" - }, 'Updated (old -> new)'), external_react_default.a.createElement("option", { - value: "created:-1" - }, 'Created (new -> old)'), external_react_default.a.createElement("option", { - value: "created:1" - }, 'Created (old -> new)'), external_react_default.a.createElement("option", { - value: "dirName:1" - }, 'Name (A -> Z)'), external_react_default.a.createElement("option", { - value: "dirName:-1" - }, 'Name (Z -> A)'))))), external_react_default.a.createElement(PaddedRow["a" /* default */], null, docs.length > 0 || error || pending ? null : external_react_default.a.createElement("p", null, "No docs found..."), !error ? null : external_react_default.a.createElement("p", null, error), !pending || error ? null : external_react_default.a.createElement(Spinner["a" /* default */], { - style: { - margin: '25px auto 0' - } - }), docs.length < 1 || pending || error ? null : external_react_default.a.createElement("div", null, external_react_default.a.createElement("table", null, external_react_default.a.createElement("thead", null, external_react_default.a.createElement("tr", null, external_react_default.a.createElement("th", null, "Doc ", external_react_default.a.createElement("span", { - className: "float-right" - }, "Modified")))), external_react_default.a.createElement("tbody", null, docs.map(function (doc) { - return external_react_default.a.createElement(comps_DocItem, _extends({}, doc, { - key: doc.id - })); - }))), pages < 2 ? null : external_react_default.a.createElement(external_react_paginate_default.a, { - pageCount: pages, - containerClassName: "paginate", - activeClassName: "active", - onPageChange: this.handlePage, - forcePage: page - 1 - })))); - } - }], [{ - key: "getInitialProps", - value: function () { - var _getInitialProps = pages_asyncToGenerator( - /*#__PURE__*/ - regenerator_default.a.mark(function _callee2(_ref3) { - var req, query, page, $search, jwt, q, data; - return regenerator_default.a.wrap(function _callee2$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - req = _ref3.req, query = _ref3.query; - page = 1, $search = ''; - - if (query) { - page = query.page || page; - $search = query.search || $search; - } - - jwt = Object(getJwt["a" /* default */])(req); - - if (jwt) { - _context2.next = 6; - break; - } - - return _context2.abrupt("return", { - total: 0, - docs: [] - }); - - case 6: - q = getDocs_buildQ({ - $search: $search, - $skip: page - }); - _context2.next = 9; - return getDocs(q, req ? jwt : false); - - case 9: - data = _context2.sent; - return _context2.abrupt("return", pages_objectSpread({}, data, { - page: page, - $search: $search - })); - - case 11: - case "end": - return _context2.stop(); - } - } - }, _callee2, this); - })); - - return function getInitialProps(_x) { - return _getInitialProps.apply(this, arguments); - }; - }() - }, { - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, prevState) { - var docs = nextProps.docs, - total = nextProps.total, - page = nextProps.page, - $search = nextProps.$search; - - if (!prevState.didInit && (page !== prevState.page || $search !== prevState.$search)) { - return { - total: total, - docs: docs, - page: page, - $search: $search, - pending: false, - didInit: true - }; - } - - return null; - } - }]); - - return Index; -}(external_react_["Component"]); - -/* harmony default export */ var pages_0 = __webpack_exports__["default"] = (Object(external_react_redux_["connect"])(mapUser["a" /* default */])(pages_Index)); - -/***/ }) -/******/ ]); \ No newline at end of file diff --git a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/k.js b/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/k.js deleted file mode 100644 index 2e142b3..0000000 --- a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/k.js +++ /dev/null @@ -1,1771 +0,0 @@ -module.exports = -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = require('../../../ssr-module-cache.js'); -/******/ -/******/ // object to store loaded chunks -/******/ // "0" means "already loaded" -/******/ var installedChunks = { -/******/ 4: 0 -/******/ }; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete installedModules[moduleId]; -/******/ } -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // uncaught error handler for webpack runtime -/******/ __webpack_require__.oe = function(err) { -/******/ process.nextTick(function() { -/******/ throw err; // catch this error by using import().catch() -/******/ }); -/******/ }; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 39); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -module.exports = require("react"); - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - -var url = __webpack_require__(16); - -var urljoin = __webpack_require__(17); - -module.exports = function (path, absolute) { - var _ref = typeof window === 'undefined' ? app.get('kbConf') : window.kbConf, - pathPrefix = _ref.pathPrefix; - - path = urljoin(pathPrefix, path); - if (!absolute) return path; // absolute should only be used during ssr - - return url.format({ - hostname: app.get('host'), - port: app.get('port'), - pathname: path, - protocol: 'http' - }); -}; - -/***/ }), -/* 2 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return SET_USER; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LOGIN_PENDING; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LOGIN_FAILED; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return LOGOUT; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return setUser; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return doLogout; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return doLogin; }); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_util_getUrl__WEBPACK_IMPORTED_MODULE_3__); - - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - // define action types - -var SET_USER = 'SET_USER'; -var LOGIN_PENDING = 'LOGIN_PENDING'; -var LOGIN_FAILED = 'LOGIN_FAILED'; -var LOGOUT = 'LOGOUT'; -var setUser = function setUser(user) { - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: SET_USER, - data: user - }); -}; // setUser - -var doLogout = function doLogout() { - if (typeof window !== 'undefined') { - window.localStorage.removeItem('jwt'); - document.cookie = 'jwt=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;'; - } - - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGOUT - }); -}; // doLogout - -function doLogin(_x, _x2, _x3) { - return _doLogin.apply(this, arguments); -} // doLogin - -function _doLogin() { - _doLogin = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(creds, jwt, noPend) { - var authReqOpts, authReqHead, authReqBody, authReq, authRes, error, _ref, accessToken, payload, _JSON$parse, userId, userReq, userRes; - - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - !noPend && _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_PENDING - }); - authReqOpts = { - method: 'POST', - credentials: 'include' - }; - authReqHead = { - headers: jwt ? { - Authorization: jwt - } : { - 'Content-Type': 'application/json' - } - }; - authReqBody = jwt ? null : { - body: JSON.stringify(_objectSpread({}, creds, { - strategy: 'local' - })) - }; - authReq = new Request(_util_getUrl__WEBPACK_IMPORTED_MODULE_3___default()('auth'), _objectSpread({}, authReqOpts, authReqHead, authReqBody)); - _context.next = 7; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default()(authReq).catch(function (err) { - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: err.message - }); - }); - - case 7: - authRes = _context.sent; - - if (authRes.ok) { - _context.next = 20; - break; - } - - _context.prev = 9; - _context.next = 12; - return authRes.json(); - - case 12: - error = _context.sent; - error = error.message; - _context.next = 19; - break; - - case 16: - _context.prev = 16; - _context.t0 = _context["catch"](9); - error = authRes.status === 429 ? 'Max login attempts reached' : 'An error occurred during login'; - - case 19: - return _context.abrupt("return", _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: error - })); - - case 20: - _context.next = 22; - return authRes.json(); - - case 22: - _ref = _context.sent; - accessToken = _ref.accessToken; - payload = accessToken.split('.')[1]; - _JSON$parse = JSON.parse(atob(payload)), userId = _JSON$parse.userId; - userReq = new Request(_util_getUrl__WEBPACK_IMPORTED_MODULE_3___default()("/users/".concat(userId)), { - headers: { - Authorization: accessToken - } - }); - _context.next = 29; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default()(userReq); - - case 29: - userRes = _context.sent; - - if (userRes.ok) { - _context.next = 32; - break; - } - - return _context.abrupt("return", _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: 'failed to get user' - })); - - case 32: - window.localStorage.setItem('jwt', accessToken); - _context.t1 = setUser; - _context.next = 36; - return userRes.json(); - - case 36: - _context.t2 = _context.sent; - (0, _context.t1)(_context.t2); - - case 38: - case "end": - return _context.stop(); - } - } - }, _callee, this, [[9, 16]]); - })); - return _doLogin.apply(this, arguments); -} - -/***/ }), -/* 3 */ -/***/ (function(module, exports) { - -module.exports = require("@babel/runtime/regenerator"); - -/***/ }), -/* 4 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "redux" -var external_redux_ = __webpack_require__(10); - -// EXTERNAL MODULE: ./redux/actions/userAct.js -var userAct = __webpack_require__(2); - -// CONCATENATED MODULE: ./redux/reducers/userRed.js -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - -var initState = { - setup: false, - _id: null, - email: null, - admin: null, - pending: false, - error: null -}; - -function user() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initState; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case userAct["d" /* SET_USER */]: - { - return _objectSpread({}, initState, action.data); - } - - case userAct["b" /* LOGIN_PENDING */]: - { - return _objectSpread({}, initState, { - pending: true - }); - } - - case userAct["a" /* LOGIN_FAILED */]: - { - return _objectSpread({}, state, { - pending: false, - error: action.data - }); - } - - case userAct["c" /* LOGOUT */]: - { - return initState; - } - - default: - return state; - } -} - -/* harmony default export */ var userRed = (user); -// CONCATENATED MODULE: ./redux/store.js - - -var middleware; - -if (false) { var logger; } - -var reducers = Object(external_redux_["combineReducers"])({ - user: userRed -}); -/* harmony default export */ var store = __webpack_exports__["a"] = (middleware ? Object(external_redux_["createStore"])(reducers, middleware) : Object(external_redux_["createStore"])(reducers)); - -/***/ }), -/* 5 */ -/***/ (function(module, exports) { - -module.exports = require("react-redux"); - -/***/ }), -/* 6 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony default export */ __webpack_exports__["a"] = (function (_ref) { - var user = _ref.user; - return { - user: user - }; -}); - -/***/ }), -/* 7 */ -/***/ (function(module, exports) { - -module.exports = require("isomorphic-unfetch"); - -/***/ }), -/* 8 */ -/***/ (function(module, exports) { - -module.exports = require("next/router"); - -/***/ }), -/* 9 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -var PaddedRow = function PaddedRow(_ref) { - var children = _ref.children, - amount = _ref.amount, - vCenter = _ref.vCenter; - amount = amount || 20; - - var PadItem = function PadItem() { - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { - className: 'column column-' + amount + ' nomob' - }); - }; - - var rowProps = { - className: 'row' - }; - if (vCenter) rowProps = { - className: 'row v-center' - };else rowProps = _objectSpread({}, rowProps, { - style: { - paddingTop: amount - } - }); - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", rowProps, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(PadItem, null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { - className: "column" - }, children), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(PadItem, null)); -}; - -/* harmony default export */ __webpack_exports__["a"] = (PaddedRow); - -/***/ }), -/* 10 */ -/***/ (function(module, exports) { - -module.exports = require("redux"); - -/***/ }), -/* 11 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - -var Spinner = function Spinner(props) { - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({ - className: "spinner" - }, props)); -}; - -/* harmony default export */ __webpack_exports__["a"] = (Spinner); - -/***/ }), -/* 12 */ -/***/ (function(module, exports) { - -module.exports = { - getKey: function getKey(e) { - return e.which || e.keyCode; - }, - isCtrlKey: function isCtrlKey(key) { - return key === 91 || key === 93 || key === 17; - } -}; - -/***/ }), -/* 13 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony default export */ __webpack_exports__["a"] = (function (req) { - if (req) return req.jwt; - - if (typeof window !== 'undefined') { - return window.localStorage.getItem('jwt'); - } -}); - -/***/ }), -/* 14 */ -/***/ (function(module, exports) { - -module.exports = require("next/link"); - -/***/ }), -/* 15 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(0); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); - -// EXTERNAL MODULE: external "react-redux" -var external_react_redux_ = __webpack_require__(5); - -// EXTERNAL MODULE: external "next/router" -var router_ = __webpack_require__(8); -var router_default = /*#__PURE__*/__webpack_require__.n(router_); - -// EXTERNAL MODULE: ./redux/actions/userAct.js -var userAct = __webpack_require__(2); - -// EXTERNAL MODULE: external "next/link" -var link_ = __webpack_require__(14); -var link_default = /*#__PURE__*/__webpack_require__.n(link_); - -// EXTERNAL MODULE: ./util/getUrl.js -var getUrl = __webpack_require__(1); -var getUrl_default = /*#__PURE__*/__webpack_require__.n(getUrl); - -// EXTERNAL MODULE: ./util/mapUser.js -var mapUser = __webpack_require__(6); - -// CONCATENATED MODULE: ./comps/Header.js -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - - -var Header_NavLink = function NavLink(_ref) { - var children = _ref.children, - href = _ref.href, - active = _ref.active; - var activeClass = active ? ' active' : ''; - return external_react_default.a.createElement(link_default.a, { - href: href, - as: getUrl_default()(href) - }, external_react_default.a.createElement("a", { - className: activeClass - }, children)); -}; - -var navItems = [['/', 'Home'], ['/new', 'New Doc'], ['/settings', 'Settings']]; - -var Header_Header = -/*#__PURE__*/ -function (_Component) { - _inherits(Header, _Component); - - function Header() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, Header); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Header)).call.apply(_getPrototypeOf2, [this].concat(args))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", { - open: false - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "hideNav", function () { - return _this.setState({ - open: false - }); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toggleNav", function () { - return _this.setState({ - open: !_this.state.open - }); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isActive", function (url) { - return getUrl_default()(_this.props.router.pathname) === getUrl_default()(url); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "logout", function (e) { - e.preventDefault(); - - _this.hideNav(); - - Object(userAct["f" /* doLogout */])(); - }); - - return _this; - } - - _createClass(Header, [{ - key: "render", - value: function render() { - var _this2 = this; - - var expandClass = this.state.open ? ' active' : ''; - var user = this.props.user; - return external_react_default.a.createElement("nav", { - className: "navbar", - role: "navigation", - "aria-label": "main navigation" - }, external_react_default.a.createElement("div", { - className: "navbar-brand" - }, external_react_default.a.createElement(Header_NavLink, { - href: "/" - }, external_react_default.a.createElement("h3", { - onClick: this.hideNav - }, "MYKB"))), !user.email ? null : [external_react_default.a.createElement("div", { - className: 'navbar-burger ' + expandClass, - onClick: this.toggleNav, - key: "burger" - }, external_react_default.a.createElement("div", null), external_react_default.a.createElement("div", null), external_react_default.a.createElement("div", null)), external_react_default.a.createElement("div", { - className: 'navbar-items' + expandClass, - key: "items" - }, navItems.map(function (item) { - return external_react_default.a.createElement(Header_NavLink, { - key: item[0], - href: item[0], - active: _this2.isActive(item[0]) - }, external_react_default.a.createElement("p", { - className: "item", - onClick: _this2.hideNav - }, item[1])); - }), external_react_default.a.createElement("a", { - href: "/logout", - onClick: this.logout - }, external_react_default.a.createElement("p", { - className: "item" - }, "Logout")))]); - } - }]); - - return Header; -}(external_react_["Component"]); - -/* harmony default export */ var comps_Header = (Object(router_["withRouter"])(Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Header_Header))); -// EXTERNAL MODULE: ./util/keys.js -var keys = __webpack_require__(12); - -// CONCATENATED MODULE: ./comps/KeyShortcuts.js -function KeyShortcuts_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { KeyShortcuts_typeof = function _typeof(obj) { return typeof obj; }; } else { KeyShortcuts_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return KeyShortcuts_typeof(obj); } - -function KeyShortcuts_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function KeyShortcuts_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function KeyShortcuts_createClass(Constructor, protoProps, staticProps) { if (protoProps) KeyShortcuts_defineProperties(Constructor.prototype, protoProps); if (staticProps) KeyShortcuts_defineProperties(Constructor, staticProps); return Constructor; } - -function KeyShortcuts_possibleConstructorReturn(self, call) { if (call && (KeyShortcuts_typeof(call) === "object" || typeof call === "function")) { return call; } return KeyShortcuts_assertThisInitialized(self); } - -function KeyShortcuts_getPrototypeOf(o) { KeyShortcuts_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return KeyShortcuts_getPrototypeOf(o); } - -function KeyShortcuts_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) KeyShortcuts_setPrototypeOf(subClass, superClass); } - -function KeyShortcuts_setPrototypeOf(o, p) { KeyShortcuts_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return KeyShortcuts_setPrototypeOf(o, p); } - -function KeyShortcuts_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function KeyShortcuts_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - -/* - keyboard shortcuts - g then h -> navigate home - g then n -> navigate to new doc - g then s -> navigate to settings - g then l -> logout - e (when on doc page) -> edit doc - / (when on home page) -> focus search - ctrl/cmd + enter -> submit new doc (handled in CodeMirror component) -*/ - -var keyToUrl = { - 72: '/', - 78: '/new', - 83: '/settings' -}; -var keyToEl = { - 69: { - sel: '#edit', - func: 'click' - }, - 191: { - sel: '.search', - func: 'focus' - } -}; - -var KeyShortcuts_KeyShortcuts = -/*#__PURE__*/ -function (_Component) { - KeyShortcuts_inherits(KeyShortcuts, _Component); - - function KeyShortcuts() { - var _getPrototypeOf2; - - var _this; - - KeyShortcuts_classCallCheck(this, KeyShortcuts); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = KeyShortcuts_possibleConstructorReturn(this, (_getPrototypeOf2 = KeyShortcuts_getPrototypeOf(KeyShortcuts)).call.apply(_getPrototypeOf2, [this].concat(args))); - - KeyShortcuts_defineProperty(KeyShortcuts_assertThisInitialized(KeyShortcuts_assertThisInitialized(_this)), "handleDown", function (e) { - var tag = e.target.tagName; - if (tag === 'INPUT' || tag === 'TEXTAREA') return; - var key = Object(keys["getKey"])(e); - - if (_this.prevKey === 71) { - // prev key was g - switch (key) { - case 72: - case 78: - case 83: - { - var url = keyToUrl[key]; - router_default.a.push(url, getUrl_default()(url)); - break; - } - - case 76: - { - setTimeout(userAct["f" /* doLogout */], 1); - break; - } - - default: - break; - } - } - - switch (key) { - case 69: - case 191: - { - var _keyToEl$key = keyToEl[key], - sel = _keyToEl$key.sel, - func = _keyToEl$key.func; - var el = document.querySelector(sel); - if (el) setTimeout(function () { - return el[func](); - }, 1); - break; - } - - default: - break; - } - - _this.prevKey = key; - }); - - KeyShortcuts_defineProperty(KeyShortcuts_assertThisInitialized(KeyShortcuts_assertThisInitialized(_this)), "render", function () { - return null; - }); - - return _this; - } - - KeyShortcuts_createClass(KeyShortcuts, [{ - key: "componentDidMount", - value: function componentDidMount() { - window.addEventListener('keydown', this.handleDown); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - window.removeEventListener('keydown', this.handleDown); - } - }]); - - return KeyShortcuts; -}(external_react_["Component"]); - -/* harmony default export */ var comps_KeyShortcuts = (KeyShortcuts_KeyShortcuts); -// CONCATENATED MODULE: ./comps/Footer.js - - -var Footer_Footer = function Footer() { - return external_react_default.a.createElement("footer", { - className: "footer" - }, external_react_default.a.createElement("p", null, "Powered by", ' ', external_react_default.a.createElement("a", { - href: "//github.com/ijjk/mykb", - target: "_blank", - rel: "noopener noreferrer" - }, "MYKB"))); -}; - -/* harmony default export */ var comps_Footer = (Footer_Footer); -// EXTERNAL MODULE: ./comps/Spinner.js -var Spinner = __webpack_require__(11); - -// EXTERNAL MODULE: ./comps/PaddedRow.js -var PaddedRow = __webpack_require__(9); - -// CONCATENATED MODULE: ./comps/Login.js -function Login_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Login_typeof = function _typeof(obj) { return typeof obj; }; } else { Login_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Login_typeof(obj); } - -function Login_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function Login_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function Login_createClass(Constructor, protoProps, staticProps) { if (protoProps) Login_defineProperties(Constructor.prototype, protoProps); if (staticProps) Login_defineProperties(Constructor, staticProps); return Constructor; } - -function Login_possibleConstructorReturn(self, call) { if (call && (Login_typeof(call) === "object" || typeof call === "function")) { return call; } return Login_assertThisInitialized(self); } - -function Login_getPrototypeOf(o) { Login_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return Login_getPrototypeOf(o); } - -function Login_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) Login_setPrototypeOf(subClass, superClass); } - -function Login_setPrototypeOf(o, p) { Login_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Login_setPrototypeOf(o, p); } - -function Login_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function Login_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - -var Login_Login = -/*#__PURE__*/ -function (_Component) { - Login_inherits(Login, _Component); - - function Login() { - var _getPrototypeOf2; - - var _this; - - Login_classCallCheck(this, Login); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = Login_possibleConstructorReturn(this, (_getPrototypeOf2 = Login_getPrototypeOf(Login)).call.apply(_getPrototypeOf2, [this].concat(args))); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "state", { - email: '', - pass: '' - }); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "updVal", function (e) { - var el = e.target; - var val = el.value; - - if (el.getAttribute('type') === 'email') { - return _this.setState({ - email: val - }); - } - - _this.setState({ - pass: val - }); - }); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "submit", function (e) { - var pending = _this.props.user.pending; - var _this$state = _this.state, - email = _this$state.email, - pass = _this$state.pass; - email = email.trim(); - pass = pass.trim(); - e.preventDefault(); - - if (pending || email.length === 0 || pass.length == 0) { - return; - } - - Object(userAct["e" /* doLogin */])({ - email: email, - password: pass - }); - }); - - return _this; - } - - Login_createClass(Login, [{ - key: "render", - value: function render() { - var _this$props$user = this.props.user, - pending = _this$props$user.pending, - error = _this$props$user.error; - return external_react_default.a.createElement("div", { - className: "container content" - }, external_react_default.a.createElement(PaddedRow["a" /* default */], { - amount: 25, - vCenter: true - }, external_react_default.a.createElement("h4", null, "Please login to continue"), external_react_default.a.createElement("form", { - noValidate: true - }, external_react_default.a.createElement("fieldset", null, external_react_default.a.createElement("label", { - htmlFor: "email" - }, "Email:"), external_react_default.a.createElement("input", { - type: "email", - id: "email", - name: "email", - autoFocus: true, - placeholder: "John@deux.com", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass" - }, "Pass:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass", - name: "password", - placeholder: "Super secret password...", - onChange: this.updVal - })), external_react_default.a.createElement("button", { - className: 'float-right' + (pending ? ' disabled' : ''), - onClick: this.submit - }, pending ? external_react_default.a.createElement(Spinner["a" /* default */], null) : 'Submit'), !error ? null : external_react_default.a.createElement("p", null, error)))); - } - }]); - - return Login; -}(external_react_["Component"]); - -/* harmony default export */ var comps_Login = (Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Login_Login)); -// CONCATENATED MODULE: ./comps/Setup.js -function Setup_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Setup_typeof = function _typeof(obj) { return typeof obj; }; } else { Setup_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Setup_typeof(obj); } - -function Setup_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function Setup_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function Setup_createClass(Constructor, protoProps, staticProps) { if (protoProps) Setup_defineProperties(Constructor.prototype, protoProps); if (staticProps) Setup_defineProperties(Constructor, staticProps); return Constructor; } - -function Setup_possibleConstructorReturn(self, call) { if (call && (Setup_typeof(call) === "object" || typeof call === "function")) { return call; } return Setup_assertThisInitialized(self); } - -function Setup_getPrototypeOf(o) { Setup_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return Setup_getPrototypeOf(o); } - -function Setup_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) Setup_setPrototypeOf(subClass, superClass); } - -function Setup_setPrototypeOf(o, p) { Setup_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Setup_setPrototypeOf(o, p); } - -function Setup_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function Setup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - -var Setup_Setup = -/*#__PURE__*/ -function (_Component) { - Setup_inherits(Setup, _Component); - - function Setup() { - var _getPrototypeOf2; - - var _this; - - Setup_classCallCheck(this, Setup); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = Setup_possibleConstructorReturn(this, (_getPrototypeOf2 = Setup_getPrototypeOf(Setup)).call.apply(_getPrototypeOf2, [this].concat(args))); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "state", { - email: '', - password: '', - confirmPass: '', - pending: false, - error: null - }); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "updVal", function (e) { - var el = e.target; - var key = 'email'; - if (el.id === 'pass') key = 'password';else if (el.id === 'pass2') key = 'confirmPass'; - var obj = {}; - obj[key] = el.value; - - _this.setState(obj); - }); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "submit", function (e) { - e.preventDefault(); - var _this$state = _this.state, - email = _this$state.email, - password = _this$state.password, - confirmPass = _this$state.confirmPass, - pending = _this$state.pending; - if (pending) return; - email = email.trim(); - password = password.trim(); - confirmPass = confirmPass.trim(); - var hasEmpty = [email, password, confirmPass].some(function (val) { - return val.length === 0; - }); - if (hasEmpty) return; - - if (password.toLowerCase() !== confirmPass.toLowerCase()) { - return _this.setState({ - error: "Passwords don't match" - }); - } - - _this.setState({ - pending: true, - error: null - }); - - var defaultErr = 'Could not create account'; - fetch(getUrl_default()('users'), { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify({ - email: email, - password: password, - admin: true - }) - }).then(function (res) { - if (res.ok) { - return Object(userAct["e" /* doLogin */])({ - email: email, - password: password - }, null, true); - } - - res.json().then(function (_ref) { - var message = _ref.message; - var error = message || defaultErr; - - _this.setState({ - pending: false, - error: error - }); - }); - }).catch(function (err) { - var error = err.message || defaultErr; - - _this.setState({ - pending: false, - error: error - }); - }); - }); - - return _this; - } - - Setup_createClass(Setup, [{ - key: "render", - value: function render() { - var _this$state2 = this.state, - pending = _this$state2.pending, - error = _this$state2.error; - return external_react_default.a.createElement("div", { - className: "container content" - }, external_react_default.a.createElement(PaddedRow["a" /* default */], { - amount: 25, - vCenter: true - }, external_react_default.a.createElement("div", { - className: "column" - }, external_react_default.a.createElement("h3", null, "Setup account"), external_react_default.a.createElement("form", { - noValidate: true - }, external_react_default.a.createElement("fieldset", null, external_react_default.a.createElement("label", { - htmlFor: "email" - }, "Email:"), external_react_default.a.createElement("input", { - type: "email", - autoFocus: true, - id: "email", - placeholder: "Your email (does't have to be actual email)", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass" - }, "Password:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass", - maxLength: 512, - placeholder: "A super secret password", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass2" - }, "Confirm Password:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass2", - maxLength: 512, - placeholder: "Confirm your super secret password", - onChange: this.updVal - }), external_react_default.a.createElement("button", { - className: "float-right", - onClick: this.submit - }, pending ? external_react_default.a.createElement(Spinner["a" /* default */], null) : 'Submit'), !error ? null : external_react_default.a.createElement("p", { - className: "danger" - }, error)))))); - } - }]); - - return Setup; -}(external_react_["Component"]); - - -// CONCATENATED MODULE: ./comps/Page.js - - - - - - - - - -var Page_Page = function Page(_ref) { - var user = _ref.user, - children = _ref.children; - return external_react_default.a.createElement("div", null, external_react_default.a.createElement(comps_Header, null), external_react_default.a.createElement(comps_KeyShortcuts, null), function () { - if (user.email) { - return external_react_default.a.createElement("div", { - className: "container content" - }, children); - } - - return user.setup ? external_react_default.a.createElement(Setup_Setup, null) : external_react_default.a.createElement(comps_Login, { - user: user - }); - }(), external_react_default.a.createElement(comps_Footer, null)); -}; - -/* harmony default export */ var comps_Page = __webpack_exports__["a"] = (Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Page_Page)); - -/***/ }), -/* 16 */ -/***/ (function(module, exports) { - -module.exports = require("url"); - -/***/ }), -/* 17 */ -/***/ (function(module, exports) { - -module.exports = require("url-join"); - -/***/ }), -/* 18 */ -/***/ (function(module, exports) { - -module.exports = require("next/dynamic"); - -/***/ }), -/* 19 */, -/* 20 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(0); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); - -// EXTERNAL MODULE: external "next/dynamic" -var dynamic_ = __webpack_require__(18); -var dynamic_default = /*#__PURE__*/__webpack_require__.n(dynamic_); - -// CONCATENATED MODULE: ./util/freezeSSR.js - - -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - -var freezeSSR_freezeSSR = function freezeSSR(selector) { - var FrozenSSR = function FrozenSSR() { - var __html = ''; - var props = {}; - - if (typeof document !== 'undefined') { - var el = document.querySelector(selector); - - if (el) { - __html = el.innerHTML; - el.getAttributeNames().forEach(function (attr) { - var attrKey = attr === 'class' ? 'className' : attr; - props[attrKey] = el.getAttribute(attr); - }); - } - } - - return external_react_default.a.createElement("div", _extends({}, props, { - dangerouslySetInnerHTML: { - __html: __html - } - })); - }; - - return { - loading: FrozenSSR - }; -}; - -/* harmony default export */ var util_freezeSSR = (freezeSSR_freezeSSR); -// CONCATENATED MODULE: ./comps/Markdown.js - - -function Markdown_extends() { Markdown_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Markdown_extends.apply(this, arguments); } - - - -var Markdown = dynamic_default()(Promise.resolve(/* import() */).then(__webpack_require__.t.bind(null, 26, 7)), util_freezeSSR('.Markdown')); - -var Markdown_link = function link(props) { - return external_react_default.a.createElement("a", Markdown_extends({}, props, { - target: "_blank", - rel: "noopener noreferrer" - })); -}; - -var renderers = { - link: Markdown_link -}; - -var Markdown_AddRenderers = function AddRenderers(_ref) { - var className = _ref.className, - source = _ref.source; - return external_react_default.a.createElement(Markdown, { - className: className, - source: source, - renderers: renderers - }); -}; - -/* harmony default export */ var comps_Markdown = __webpack_exports__["a"] = (Markdown_AddRenderers); - -/***/ }), -/* 21 */, -/* 22 */, -/* 23 */, -/* 24 */, -/* 25 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5); -/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_redux__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _util_mapUser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_util_getUrl__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _util_getJwt__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13); - - -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - - - - - -var getDoc = -/*#__PURE__*/ -function () { - var _ref = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(id, req) { - var found, doc, jwt, docRes; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - jwt = Object(_util_getJwt__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(req); - - if (jwt) { - _context.next = 3; - break; - } - - return _context.abrupt("return", { - found: found, - doc: doc, - id: id - }); - - case 3: - _context.next = 5; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_3___default()(_util_getUrl__WEBPACK_IMPORTED_MODULE_5___default()('docs/' + id, Boolean(req)), { - method: 'GET', - headers: { - Authorization: jwt - } - }); - - case 5: - docRes = _context.sent; - - if (!docRes.ok) { - _context.next = 11; - break; - } - - _context.next = 9; - return docRes.json(); - - case 9: - doc = _context.sent; - found = true; - - case 11: - return _context.abrupt("return", { - found: found, - doc: doc, - id: id - }); - - case 12: - case "end": - return _context.stop(); - } - } - }, _callee, this); - })); - - return function getDoc(_x, _x2) { - return _ref.apply(this, arguments); - }; -}(); - -/* harmony default export */ __webpack_exports__["a"] = (function (ComposedComponent) { - var DocComp = - /*#__PURE__*/ - function (_Component) { - _inherits(DocComp, _Component); - - function DocComp() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, DocComp); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DocComp)).call.apply(_getPrototypeOf2, [this].concat(args))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", { - found: false, - id: null, - doc: {} - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateDoc", - /*#__PURE__*/ - function () { - var _ref2 = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2(id) { - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - _context2.t0 = _this; - _context2.next = 3; - return getDoc(id); - - case 3: - _context2.t1 = _context2.sent; - - _context2.t0.setState.call(_context2.t0, _context2.t1); - - case 5: - case "end": - return _context2.stop(); - } - } - }, _callee2, this); - })); - - return function (_x3) { - return _ref2.apply(this, arguments); - }; - }()); - - return _this; - } - - _createClass(DocComp, [{ - key: "componentDidMount", - value: function componentDidMount() { - this.updateDoc(this.props.id); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps) { - var _this$props = this.props, - user = _this$props.user, - found = _this$props.found, - id = _this$props.id; - if (prevProps.user.email === user.email || found) return; - if (!user.email) return; - this.updateDoc(id); - } - }, { - key: "render", - value: function render() { - return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ComposedComponent, this.state); - } - }], [{ - key: "getInitialProps", - value: function () { - var _getInitialProps = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3(_ref3) { - var query, req; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) { - while (1) { - switch (_context3.prev = _context3.next) { - case 0: - query = _ref3.query, req = _ref3.req; - _context3.next = 3; - return getDoc(query.id, req); - - case 3: - return _context3.abrupt("return", _context3.sent); - - case 4: - case "end": - return _context3.stop(); - } - } - }, _callee3, this); - })); - - return function getInitialProps(_x4) { - return _getInitialProps.apply(this, arguments); - }; - }() - }, { - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, prevState) { - var found = nextProps.found, - id = nextProps.id, - doc = nextProps.doc; - - if (prevState.found !== found && !prevState.didInit) { - return { - found: found, - id: id, - doc: doc, - didInit: true - }; - } - - return null; - } - }]); - - return DocComp; - }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]); - - return Object(react_redux__WEBPACK_IMPORTED_MODULE_2__["connect"])(_util_mapUser__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(DocComp); -}); - -/***/ }), -/* 26 */ -/***/ (function(module, exports) { - -module.exports = require("react-markdown"); - -/***/ }), -/* 27 */, -/* 28 */, -/* 29 */, -/* 30 */, -/* 31 */, -/* 32 */, -/* 33 */, -/* 34 */, -/* 35 */, -/* 36 */, -/* 37 */, -/* 38 */, -/* 39 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(40); - - -/***/ }), -/* 40 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); -/* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8); -/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _comps_Page__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15); -/* harmony import */ var _comps_Markdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(20); -/* harmony import */ var _comps_AddDoc__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(25); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_util_getUrl__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _util_getJwt__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(13); - - -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - - - - -var k = -/*#__PURE__*/ -function (_Component) { - _inherits(k, _Component); - - function k() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, k); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(k)).call.apply(_getPrototypeOf2, [this].concat(args))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "delete", - /*#__PURE__*/ - _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { - var sure, del, data; - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - sure = window.confirm('Are you sure you want to delete this doc? This can not be undone.'); - - if (sure) { - _context.next = 3; - break; - } - - return _context.abrupt("return"); - - case 3: - _context.next = 5; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_4___default()(_util_getUrl__WEBPACK_IMPORTED_MODULE_8___default()('docs/' + _this.props.id), { - headers: { - Authorization: Object(_util_getJwt__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])() - }, - method: 'DELETE' - }).catch(function (_ref2) { - var message = _ref2.message; - return { - ok: false, - message: message - }; - }); - - case 5: - del = _context.sent; - - if (!del.ok) { - _context.next = 10; - break; - } - - next_router__WEBPACK_IMPORTED_MODULE_3___default.a.push('/', _util_getUrl__WEBPACK_IMPORTED_MODULE_8___default()('/')); - _context.next = 16; - break; - - case 10: - if (del.message) { - _context.next = 15; - break; - } - - _context.next = 13; - return del.json(); - - case 13: - data = _context.sent; - del.message = data.message; - - case 15: - window.alert("Could not delete doc, ".concat(del.message)); - - case 16: - case "end": - return _context.stop(); - } - } - }, _callee, this); - }))); - - return _this; - } - - _createClass(k, [{ - key: "render", - value: function render() { - var _this$props = this.props, - found = _this$props.found, - id = _this$props.id, - doc = _this$props.doc; - if (!found) return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_comps_Page__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h3", null, "Doc not found...")); - return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_comps_Page__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h5", { - style: { - marginBottom: '1rem' - } - }, doc.dir, doc.dir.length > 0 ? '/' : '', doc.name, ' - ', react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(next_link__WEBPACK_IMPORTED_MODULE_2___default.a, { - as: _util_getUrl__WEBPACK_IMPORTED_MODULE_8___default()('edit/' + id), - href: { - pathname: '/edit', - query: { - id: id - } - } - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("a", { - id: "edit" - }, "edit")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", { - className: "float-right", - onClick: this.delete, - style: { - margin: '5px 0 0' - } - }, "Delete")), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_comps_Markdown__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], { - source: doc.md, - className: "Markdown" - })); - } - }]); - - return k; -}(react__WEBPACK_IMPORTED_MODULE_1__["Component"]); - -/* harmony default export */ __webpack_exports__["default"] = (Object(_comps_AddDoc__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"])(k)); - -/***/ }) -/******/ ]); \ No newline at end of file diff --git a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/new.js b/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/new.js deleted file mode 100644 index 5d001c5..0000000 --- a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/new.js +++ /dev/null @@ -1,1939 +0,0 @@ -module.exports = -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = require('../../../ssr-module-cache.js'); -/******/ -/******/ // object to store loaded chunks -/******/ // "0" means "already loaded" -/******/ var installedChunks = { -/******/ 5: 0 -/******/ }; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete installedModules[moduleId]; -/******/ } -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // uncaught error handler for webpack runtime -/******/ __webpack_require__.oe = function(err) { -/******/ process.nextTick(function() { -/******/ throw err; // catch this error by using import().catch() -/******/ }); -/******/ }; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 41); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -module.exports = require("react"); - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - -var url = __webpack_require__(16); - -var urljoin = __webpack_require__(17); - -module.exports = function (path, absolute) { - var _ref = typeof window === 'undefined' ? app.get('kbConf') : window.kbConf, - pathPrefix = _ref.pathPrefix; - - path = urljoin(pathPrefix, path); - if (!absolute) return path; // absolute should only be used during ssr - - return url.format({ - hostname: app.get('host'), - port: app.get('port'), - pathname: path, - protocol: 'http' - }); -}; - -/***/ }), -/* 2 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return SET_USER; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LOGIN_PENDING; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LOGIN_FAILED; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return LOGOUT; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return setUser; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return doLogout; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return doLogin; }); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_util_getUrl__WEBPACK_IMPORTED_MODULE_3__); - - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - // define action types - -var SET_USER = 'SET_USER'; -var LOGIN_PENDING = 'LOGIN_PENDING'; -var LOGIN_FAILED = 'LOGIN_FAILED'; -var LOGOUT = 'LOGOUT'; -var setUser = function setUser(user) { - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: SET_USER, - data: user - }); -}; // setUser - -var doLogout = function doLogout() { - if (typeof window !== 'undefined') { - window.localStorage.removeItem('jwt'); - document.cookie = 'jwt=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;'; - } - - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGOUT - }); -}; // doLogout - -function doLogin(_x, _x2, _x3) { - return _doLogin.apply(this, arguments); -} // doLogin - -function _doLogin() { - _doLogin = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(creds, jwt, noPend) { - var authReqOpts, authReqHead, authReqBody, authReq, authRes, error, _ref, accessToken, payload, _JSON$parse, userId, userReq, userRes; - - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - !noPend && _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_PENDING - }); - authReqOpts = { - method: 'POST', - credentials: 'include' - }; - authReqHead = { - headers: jwt ? { - Authorization: jwt - } : { - 'Content-Type': 'application/json' - } - }; - authReqBody = jwt ? null : { - body: JSON.stringify(_objectSpread({}, creds, { - strategy: 'local' - })) - }; - authReq = new Request(_util_getUrl__WEBPACK_IMPORTED_MODULE_3___default()('auth'), _objectSpread({}, authReqOpts, authReqHead, authReqBody)); - _context.next = 7; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default()(authReq).catch(function (err) { - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: err.message - }); - }); - - case 7: - authRes = _context.sent; - - if (authRes.ok) { - _context.next = 20; - break; - } - - _context.prev = 9; - _context.next = 12; - return authRes.json(); - - case 12: - error = _context.sent; - error = error.message; - _context.next = 19; - break; - - case 16: - _context.prev = 16; - _context.t0 = _context["catch"](9); - error = authRes.status === 429 ? 'Max login attempts reached' : 'An error occurred during login'; - - case 19: - return _context.abrupt("return", _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: error - })); - - case 20: - _context.next = 22; - return authRes.json(); - - case 22: - _ref = _context.sent; - accessToken = _ref.accessToken; - payload = accessToken.split('.')[1]; - _JSON$parse = JSON.parse(atob(payload)), userId = _JSON$parse.userId; - userReq = new Request(_util_getUrl__WEBPACK_IMPORTED_MODULE_3___default()("/users/".concat(userId)), { - headers: { - Authorization: accessToken - } - }); - _context.next = 29; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default()(userReq); - - case 29: - userRes = _context.sent; - - if (userRes.ok) { - _context.next = 32; - break; - } - - return _context.abrupt("return", _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: 'failed to get user' - })); - - case 32: - window.localStorage.setItem('jwt', accessToken); - _context.t1 = setUser; - _context.next = 36; - return userRes.json(); - - case 36: - _context.t2 = _context.sent; - (0, _context.t1)(_context.t2); - - case 38: - case "end": - return _context.stop(); - } - } - }, _callee, this, [[9, 16]]); - })); - return _doLogin.apply(this, arguments); -} - -/***/ }), -/* 3 */ -/***/ (function(module, exports) { - -module.exports = require("@babel/runtime/regenerator"); - -/***/ }), -/* 4 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "redux" -var external_redux_ = __webpack_require__(10); - -// EXTERNAL MODULE: ./redux/actions/userAct.js -var userAct = __webpack_require__(2); - -// CONCATENATED MODULE: ./redux/reducers/userRed.js -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - -var initState = { - setup: false, - _id: null, - email: null, - admin: null, - pending: false, - error: null -}; - -function user() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initState; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case userAct["d" /* SET_USER */]: - { - return _objectSpread({}, initState, action.data); - } - - case userAct["b" /* LOGIN_PENDING */]: - { - return _objectSpread({}, initState, { - pending: true - }); - } - - case userAct["a" /* LOGIN_FAILED */]: - { - return _objectSpread({}, state, { - pending: false, - error: action.data - }); - } - - case userAct["c" /* LOGOUT */]: - { - return initState; - } - - default: - return state; - } -} - -/* harmony default export */ var userRed = (user); -// CONCATENATED MODULE: ./redux/store.js - - -var middleware; - -if (false) { var logger; } - -var reducers = Object(external_redux_["combineReducers"])({ - user: userRed -}); -/* harmony default export */ var store = __webpack_exports__["a"] = (middleware ? Object(external_redux_["createStore"])(reducers, middleware) : Object(external_redux_["createStore"])(reducers)); - -/***/ }), -/* 5 */ -/***/ (function(module, exports) { - -module.exports = require("react-redux"); - -/***/ }), -/* 6 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony default export */ __webpack_exports__["a"] = (function (_ref) { - var user = _ref.user; - return { - user: user - }; -}); - -/***/ }), -/* 7 */ -/***/ (function(module, exports) { - -module.exports = require("isomorphic-unfetch"); - -/***/ }), -/* 8 */ -/***/ (function(module, exports) { - -module.exports = require("next/router"); - -/***/ }), -/* 9 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -var PaddedRow = function PaddedRow(_ref) { - var children = _ref.children, - amount = _ref.amount, - vCenter = _ref.vCenter; - amount = amount || 20; - - var PadItem = function PadItem() { - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { - className: 'column column-' + amount + ' nomob' - }); - }; - - var rowProps = { - className: 'row' - }; - if (vCenter) rowProps = { - className: 'row v-center' - };else rowProps = _objectSpread({}, rowProps, { - style: { - paddingTop: amount - } - }); - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", rowProps, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(PadItem, null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { - className: "column" - }, children), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(PadItem, null)); -}; - -/* harmony default export */ __webpack_exports__["a"] = (PaddedRow); - -/***/ }), -/* 10 */ -/***/ (function(module, exports) { - -module.exports = require("redux"); - -/***/ }), -/* 11 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - -var Spinner = function Spinner(props) { - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({ - className: "spinner" - }, props)); -}; - -/* harmony default export */ __webpack_exports__["a"] = (Spinner); - -/***/ }), -/* 12 */ -/***/ (function(module, exports) { - -module.exports = { - getKey: function getKey(e) { - return e.which || e.keyCode; - }, - isCtrlKey: function isCtrlKey(key) { - return key === 91 || key === 93 || key === 17; - } -}; - -/***/ }), -/* 13 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony default export */ __webpack_exports__["a"] = (function (req) { - if (req) return req.jwt; - - if (typeof window !== 'undefined') { - return window.localStorage.getItem('jwt'); - } -}); - -/***/ }), -/* 14 */ -/***/ (function(module, exports) { - -module.exports = require("next/link"); - -/***/ }), -/* 15 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(0); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); - -// EXTERNAL MODULE: external "react-redux" -var external_react_redux_ = __webpack_require__(5); - -// EXTERNAL MODULE: external "next/router" -var router_ = __webpack_require__(8); -var router_default = /*#__PURE__*/__webpack_require__.n(router_); - -// EXTERNAL MODULE: ./redux/actions/userAct.js -var userAct = __webpack_require__(2); - -// EXTERNAL MODULE: external "next/link" -var link_ = __webpack_require__(14); -var link_default = /*#__PURE__*/__webpack_require__.n(link_); - -// EXTERNAL MODULE: ./util/getUrl.js -var getUrl = __webpack_require__(1); -var getUrl_default = /*#__PURE__*/__webpack_require__.n(getUrl); - -// EXTERNAL MODULE: ./util/mapUser.js -var mapUser = __webpack_require__(6); - -// CONCATENATED MODULE: ./comps/Header.js -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - - -var Header_NavLink = function NavLink(_ref) { - var children = _ref.children, - href = _ref.href, - active = _ref.active; - var activeClass = active ? ' active' : ''; - return external_react_default.a.createElement(link_default.a, { - href: href, - as: getUrl_default()(href) - }, external_react_default.a.createElement("a", { - className: activeClass - }, children)); -}; - -var navItems = [['/', 'Home'], ['/new', 'New Doc'], ['/settings', 'Settings']]; - -var Header_Header = -/*#__PURE__*/ -function (_Component) { - _inherits(Header, _Component); - - function Header() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, Header); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Header)).call.apply(_getPrototypeOf2, [this].concat(args))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", { - open: false - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "hideNav", function () { - return _this.setState({ - open: false - }); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toggleNav", function () { - return _this.setState({ - open: !_this.state.open - }); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isActive", function (url) { - return getUrl_default()(_this.props.router.pathname) === getUrl_default()(url); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "logout", function (e) { - e.preventDefault(); - - _this.hideNav(); - - Object(userAct["f" /* doLogout */])(); - }); - - return _this; - } - - _createClass(Header, [{ - key: "render", - value: function render() { - var _this2 = this; - - var expandClass = this.state.open ? ' active' : ''; - var user = this.props.user; - return external_react_default.a.createElement("nav", { - className: "navbar", - role: "navigation", - "aria-label": "main navigation" - }, external_react_default.a.createElement("div", { - className: "navbar-brand" - }, external_react_default.a.createElement(Header_NavLink, { - href: "/" - }, external_react_default.a.createElement("h3", { - onClick: this.hideNav - }, "MYKB"))), !user.email ? null : [external_react_default.a.createElement("div", { - className: 'navbar-burger ' + expandClass, - onClick: this.toggleNav, - key: "burger" - }, external_react_default.a.createElement("div", null), external_react_default.a.createElement("div", null), external_react_default.a.createElement("div", null)), external_react_default.a.createElement("div", { - className: 'navbar-items' + expandClass, - key: "items" - }, navItems.map(function (item) { - return external_react_default.a.createElement(Header_NavLink, { - key: item[0], - href: item[0], - active: _this2.isActive(item[0]) - }, external_react_default.a.createElement("p", { - className: "item", - onClick: _this2.hideNav - }, item[1])); - }), external_react_default.a.createElement("a", { - href: "/logout", - onClick: this.logout - }, external_react_default.a.createElement("p", { - className: "item" - }, "Logout")))]); - } - }]); - - return Header; -}(external_react_["Component"]); - -/* harmony default export */ var comps_Header = (Object(router_["withRouter"])(Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Header_Header))); -// EXTERNAL MODULE: ./util/keys.js -var keys = __webpack_require__(12); - -// CONCATENATED MODULE: ./comps/KeyShortcuts.js -function KeyShortcuts_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { KeyShortcuts_typeof = function _typeof(obj) { return typeof obj; }; } else { KeyShortcuts_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return KeyShortcuts_typeof(obj); } - -function KeyShortcuts_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function KeyShortcuts_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function KeyShortcuts_createClass(Constructor, protoProps, staticProps) { if (protoProps) KeyShortcuts_defineProperties(Constructor.prototype, protoProps); if (staticProps) KeyShortcuts_defineProperties(Constructor, staticProps); return Constructor; } - -function KeyShortcuts_possibleConstructorReturn(self, call) { if (call && (KeyShortcuts_typeof(call) === "object" || typeof call === "function")) { return call; } return KeyShortcuts_assertThisInitialized(self); } - -function KeyShortcuts_getPrototypeOf(o) { KeyShortcuts_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return KeyShortcuts_getPrototypeOf(o); } - -function KeyShortcuts_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) KeyShortcuts_setPrototypeOf(subClass, superClass); } - -function KeyShortcuts_setPrototypeOf(o, p) { KeyShortcuts_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return KeyShortcuts_setPrototypeOf(o, p); } - -function KeyShortcuts_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function KeyShortcuts_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - -/* - keyboard shortcuts - g then h -> navigate home - g then n -> navigate to new doc - g then s -> navigate to settings - g then l -> logout - e (when on doc page) -> edit doc - / (when on home page) -> focus search - ctrl/cmd + enter -> submit new doc (handled in CodeMirror component) -*/ - -var keyToUrl = { - 72: '/', - 78: '/new', - 83: '/settings' -}; -var keyToEl = { - 69: { - sel: '#edit', - func: 'click' - }, - 191: { - sel: '.search', - func: 'focus' - } -}; - -var KeyShortcuts_KeyShortcuts = -/*#__PURE__*/ -function (_Component) { - KeyShortcuts_inherits(KeyShortcuts, _Component); - - function KeyShortcuts() { - var _getPrototypeOf2; - - var _this; - - KeyShortcuts_classCallCheck(this, KeyShortcuts); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = KeyShortcuts_possibleConstructorReturn(this, (_getPrototypeOf2 = KeyShortcuts_getPrototypeOf(KeyShortcuts)).call.apply(_getPrototypeOf2, [this].concat(args))); - - KeyShortcuts_defineProperty(KeyShortcuts_assertThisInitialized(KeyShortcuts_assertThisInitialized(_this)), "handleDown", function (e) { - var tag = e.target.tagName; - if (tag === 'INPUT' || tag === 'TEXTAREA') return; - var key = Object(keys["getKey"])(e); - - if (_this.prevKey === 71) { - // prev key was g - switch (key) { - case 72: - case 78: - case 83: - { - var url = keyToUrl[key]; - router_default.a.push(url, getUrl_default()(url)); - break; - } - - case 76: - { - setTimeout(userAct["f" /* doLogout */], 1); - break; - } - - default: - break; - } - } - - switch (key) { - case 69: - case 191: - { - var _keyToEl$key = keyToEl[key], - sel = _keyToEl$key.sel, - func = _keyToEl$key.func; - var el = document.querySelector(sel); - if (el) setTimeout(function () { - return el[func](); - }, 1); - break; - } - - default: - break; - } - - _this.prevKey = key; - }); - - KeyShortcuts_defineProperty(KeyShortcuts_assertThisInitialized(KeyShortcuts_assertThisInitialized(_this)), "render", function () { - return null; - }); - - return _this; - } - - KeyShortcuts_createClass(KeyShortcuts, [{ - key: "componentDidMount", - value: function componentDidMount() { - window.addEventListener('keydown', this.handleDown); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - window.removeEventListener('keydown', this.handleDown); - } - }]); - - return KeyShortcuts; -}(external_react_["Component"]); - -/* harmony default export */ var comps_KeyShortcuts = (KeyShortcuts_KeyShortcuts); -// CONCATENATED MODULE: ./comps/Footer.js - - -var Footer_Footer = function Footer() { - return external_react_default.a.createElement("footer", { - className: "footer" - }, external_react_default.a.createElement("p", null, "Powered by", ' ', external_react_default.a.createElement("a", { - href: "//github.com/ijjk/mykb", - target: "_blank", - rel: "noopener noreferrer" - }, "MYKB"))); -}; - -/* harmony default export */ var comps_Footer = (Footer_Footer); -// EXTERNAL MODULE: ./comps/Spinner.js -var Spinner = __webpack_require__(11); - -// EXTERNAL MODULE: ./comps/PaddedRow.js -var PaddedRow = __webpack_require__(9); - -// CONCATENATED MODULE: ./comps/Login.js -function Login_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Login_typeof = function _typeof(obj) { return typeof obj; }; } else { Login_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Login_typeof(obj); } - -function Login_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function Login_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function Login_createClass(Constructor, protoProps, staticProps) { if (protoProps) Login_defineProperties(Constructor.prototype, protoProps); if (staticProps) Login_defineProperties(Constructor, staticProps); return Constructor; } - -function Login_possibleConstructorReturn(self, call) { if (call && (Login_typeof(call) === "object" || typeof call === "function")) { return call; } return Login_assertThisInitialized(self); } - -function Login_getPrototypeOf(o) { Login_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return Login_getPrototypeOf(o); } - -function Login_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) Login_setPrototypeOf(subClass, superClass); } - -function Login_setPrototypeOf(o, p) { Login_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Login_setPrototypeOf(o, p); } - -function Login_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function Login_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - -var Login_Login = -/*#__PURE__*/ -function (_Component) { - Login_inherits(Login, _Component); - - function Login() { - var _getPrototypeOf2; - - var _this; - - Login_classCallCheck(this, Login); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = Login_possibleConstructorReturn(this, (_getPrototypeOf2 = Login_getPrototypeOf(Login)).call.apply(_getPrototypeOf2, [this].concat(args))); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "state", { - email: '', - pass: '' - }); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "updVal", function (e) { - var el = e.target; - var val = el.value; - - if (el.getAttribute('type') === 'email') { - return _this.setState({ - email: val - }); - } - - _this.setState({ - pass: val - }); - }); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "submit", function (e) { - var pending = _this.props.user.pending; - var _this$state = _this.state, - email = _this$state.email, - pass = _this$state.pass; - email = email.trim(); - pass = pass.trim(); - e.preventDefault(); - - if (pending || email.length === 0 || pass.length == 0) { - return; - } - - Object(userAct["e" /* doLogin */])({ - email: email, - password: pass - }); - }); - - return _this; - } - - Login_createClass(Login, [{ - key: "render", - value: function render() { - var _this$props$user = this.props.user, - pending = _this$props$user.pending, - error = _this$props$user.error; - return external_react_default.a.createElement("div", { - className: "container content" - }, external_react_default.a.createElement(PaddedRow["a" /* default */], { - amount: 25, - vCenter: true - }, external_react_default.a.createElement("h4", null, "Please login to continue"), external_react_default.a.createElement("form", { - noValidate: true - }, external_react_default.a.createElement("fieldset", null, external_react_default.a.createElement("label", { - htmlFor: "email" - }, "Email:"), external_react_default.a.createElement("input", { - type: "email", - id: "email", - name: "email", - autoFocus: true, - placeholder: "John@deux.com", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass" - }, "Pass:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass", - name: "password", - placeholder: "Super secret password...", - onChange: this.updVal - })), external_react_default.a.createElement("button", { - className: 'float-right' + (pending ? ' disabled' : ''), - onClick: this.submit - }, pending ? external_react_default.a.createElement(Spinner["a" /* default */], null) : 'Submit'), !error ? null : external_react_default.a.createElement("p", null, error)))); - } - }]); - - return Login; -}(external_react_["Component"]); - -/* harmony default export */ var comps_Login = (Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Login_Login)); -// CONCATENATED MODULE: ./comps/Setup.js -function Setup_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Setup_typeof = function _typeof(obj) { return typeof obj; }; } else { Setup_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Setup_typeof(obj); } - -function Setup_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function Setup_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function Setup_createClass(Constructor, protoProps, staticProps) { if (protoProps) Setup_defineProperties(Constructor.prototype, protoProps); if (staticProps) Setup_defineProperties(Constructor, staticProps); return Constructor; } - -function Setup_possibleConstructorReturn(self, call) { if (call && (Setup_typeof(call) === "object" || typeof call === "function")) { return call; } return Setup_assertThisInitialized(self); } - -function Setup_getPrototypeOf(o) { Setup_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return Setup_getPrototypeOf(o); } - -function Setup_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) Setup_setPrototypeOf(subClass, superClass); } - -function Setup_setPrototypeOf(o, p) { Setup_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Setup_setPrototypeOf(o, p); } - -function Setup_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function Setup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - -var Setup_Setup = -/*#__PURE__*/ -function (_Component) { - Setup_inherits(Setup, _Component); - - function Setup() { - var _getPrototypeOf2; - - var _this; - - Setup_classCallCheck(this, Setup); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = Setup_possibleConstructorReturn(this, (_getPrototypeOf2 = Setup_getPrototypeOf(Setup)).call.apply(_getPrototypeOf2, [this].concat(args))); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "state", { - email: '', - password: '', - confirmPass: '', - pending: false, - error: null - }); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "updVal", function (e) { - var el = e.target; - var key = 'email'; - if (el.id === 'pass') key = 'password';else if (el.id === 'pass2') key = 'confirmPass'; - var obj = {}; - obj[key] = el.value; - - _this.setState(obj); - }); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "submit", function (e) { - e.preventDefault(); - var _this$state = _this.state, - email = _this$state.email, - password = _this$state.password, - confirmPass = _this$state.confirmPass, - pending = _this$state.pending; - if (pending) return; - email = email.trim(); - password = password.trim(); - confirmPass = confirmPass.trim(); - var hasEmpty = [email, password, confirmPass].some(function (val) { - return val.length === 0; - }); - if (hasEmpty) return; - - if (password.toLowerCase() !== confirmPass.toLowerCase()) { - return _this.setState({ - error: "Passwords don't match" - }); - } - - _this.setState({ - pending: true, - error: null - }); - - var defaultErr = 'Could not create account'; - fetch(getUrl_default()('users'), { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify({ - email: email, - password: password, - admin: true - }) - }).then(function (res) { - if (res.ok) { - return Object(userAct["e" /* doLogin */])({ - email: email, - password: password - }, null, true); - } - - res.json().then(function (_ref) { - var message = _ref.message; - var error = message || defaultErr; - - _this.setState({ - pending: false, - error: error - }); - }); - }).catch(function (err) { - var error = err.message || defaultErr; - - _this.setState({ - pending: false, - error: error - }); - }); - }); - - return _this; - } - - Setup_createClass(Setup, [{ - key: "render", - value: function render() { - var _this$state2 = this.state, - pending = _this$state2.pending, - error = _this$state2.error; - return external_react_default.a.createElement("div", { - className: "container content" - }, external_react_default.a.createElement(PaddedRow["a" /* default */], { - amount: 25, - vCenter: true - }, external_react_default.a.createElement("div", { - className: "column" - }, external_react_default.a.createElement("h3", null, "Setup account"), external_react_default.a.createElement("form", { - noValidate: true - }, external_react_default.a.createElement("fieldset", null, external_react_default.a.createElement("label", { - htmlFor: "email" - }, "Email:"), external_react_default.a.createElement("input", { - type: "email", - autoFocus: true, - id: "email", - placeholder: "Your email (does't have to be actual email)", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass" - }, "Password:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass", - maxLength: 512, - placeholder: "A super secret password", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass2" - }, "Confirm Password:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass2", - maxLength: 512, - placeholder: "Confirm your super secret password", - onChange: this.updVal - }), external_react_default.a.createElement("button", { - className: "float-right", - onClick: this.submit - }, pending ? external_react_default.a.createElement(Spinner["a" /* default */], null) : 'Submit'), !error ? null : external_react_default.a.createElement("p", { - className: "danger" - }, error)))))); - } - }]); - - return Setup; -}(external_react_["Component"]); - - -// CONCATENATED MODULE: ./comps/Page.js - - - - - - - - - -var Page_Page = function Page(_ref) { - var user = _ref.user, - children = _ref.children; - return external_react_default.a.createElement("div", null, external_react_default.a.createElement(comps_Header, null), external_react_default.a.createElement(comps_KeyShortcuts, null), function () { - if (user.email) { - return external_react_default.a.createElement("div", { - className: "container content" - }, children); - } - - return user.setup ? external_react_default.a.createElement(Setup_Setup, null) : external_react_default.a.createElement(comps_Login, { - user: user - }); - }(), external_react_default.a.createElement(comps_Footer, null)); -}; - -/* harmony default export */ var comps_Page = __webpack_exports__["a"] = (Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Page_Page)); - -/***/ }), -/* 16 */ -/***/ (function(module, exports) { - -module.exports = require("url"); - -/***/ }), -/* 17 */ -/***/ (function(module, exports) { - -module.exports = require("url-join"); - -/***/ }), -/* 18 */ -/***/ (function(module, exports) { - -module.exports = require("next/dynamic"); - -/***/ }), -/* 19 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return updateStateFromId; }); -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function updateStateFromId(e) { - var el = e.target; - this.setState(_defineProperty({}, el.id, el.value)); -} - -/***/ }), -/* 20 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(0); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); - -// EXTERNAL MODULE: external "next/dynamic" -var dynamic_ = __webpack_require__(18); -var dynamic_default = /*#__PURE__*/__webpack_require__.n(dynamic_); - -// CONCATENATED MODULE: ./util/freezeSSR.js - - -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - -var freezeSSR_freezeSSR = function freezeSSR(selector) { - var FrozenSSR = function FrozenSSR() { - var __html = ''; - var props = {}; - - if (typeof document !== 'undefined') { - var el = document.querySelector(selector); - - if (el) { - __html = el.innerHTML; - el.getAttributeNames().forEach(function (attr) { - var attrKey = attr === 'class' ? 'className' : attr; - props[attrKey] = el.getAttribute(attr); - }); - } - } - - return external_react_default.a.createElement("div", _extends({}, props, { - dangerouslySetInnerHTML: { - __html: __html - } - })); - }; - - return { - loading: FrozenSSR - }; -}; - -/* harmony default export */ var util_freezeSSR = (freezeSSR_freezeSSR); -// CONCATENATED MODULE: ./comps/Markdown.js - - -function Markdown_extends() { Markdown_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Markdown_extends.apply(this, arguments); } - - - -var Markdown = dynamic_default()(Promise.resolve(/* import() */).then(__webpack_require__.t.bind(null, 26, 7)), util_freezeSSR('.Markdown')); - -var Markdown_link = function link(props) { - return external_react_default.a.createElement("a", Markdown_extends({}, props, { - target: "_blank", - rel: "noopener noreferrer" - })); -}; - -var renderers = { - link: Markdown_link -}; - -var Markdown_AddRenderers = function AddRenderers(_ref) { - var className = _ref.className, - source = _ref.source; - return external_react_default.a.createElement(Markdown, { - className: className, - source: source, - renderers: renderers - }); -}; - -/* harmony default export */ var comps_Markdown = __webpack_exports__["a"] = (Markdown_AddRenderers); - -/***/ }), -/* 21 */ -/***/ (function(module, exports) { - -var isOkDirPart = function isOkDirPart(str) { - if (str.length > 255 || str.length === 0) return false; - var end = str.length - 1; - - for (var i = 0; i < str.length; i++) { - var c = str.charCodeAt(i); - - if (!(c > 47 && c < 58) && // 0-9 - !(c > 64 && c < 91) && // A-Z - !(c > 96 && c < 123) && // a-z - !(c === 95) && !(c === 45) && // _ and - - !((c === 46 || c === 32) && // period or space if not first or last - i !== 0 && i !== end)) { - return false; - } - } - - return true; -}; - -module.exports = { - checkDir: function checkDir(dir) { - if (typeof dir !== 'string') return false; - dir = dir.trim(); - if (dir.length === 0) return 0; - - if (dir.indexOf('/') > -1) { - dir = dir.split('/').filter(function (p) { - return p.length !== 0; - }); - - if (dir.length === 1) { - if (!isOkDirPart(dir[0])) false; - dir = dir[0]; - } else if (dir.length === 0) { - dir = ''; - } else if (dir.some(function (part) { - return !isOkDirPart(part); - })) { - return false; - } - } else if (!isOkDirPart(dir)) { - return false; - } - - return Array.isArray(dir) ? dir.join('/') : dir; - }, - checkName: function checkName(name) { - if (typeof name !== 'string') return false; - name = name.trim(); - if (name.length === 0) return 0; - if (!isOkDirPart(name)) return false; - return name; - } -}; - -/***/ }), -/* 22 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CodeMirror; }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var codemirror__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24); -/* harmony import */ var codemirror__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(codemirror__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _util_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12); -/* harmony import */ var _util_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_util_keys__WEBPACK_IMPORTED_MODULE_2__); -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - -if (typeof window !== 'undefined') { - __webpack_require__(28); -} - -var CodeMirror = -/*#__PURE__*/ -function (_Component) { - _inherits(CodeMirror, _Component); - - function CodeMirror() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, CodeMirror); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(CodeMirror)).call.apply(_getPrototypeOf2, [this].concat(args))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleChange", function () { - if (!_this.editor) return; - - var value = _this.editor.getValue(); - - if (value !== _this.props.value) { - _this.props.onChange && _this.props.onChange(value); - - if (_this.editor.getValue() !== _this.props.value) { - if (_this.state.isControlled) { - _this.editor.setValue(_this.props.value); - } else { - _this.props.value = value; - } - } - } - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "checkSubmit", function (cm, e) { - var key = Object(_util_keys__WEBPACK_IMPORTED_MODULE_2__["getKey"])(e); - - if (Object(_util_keys__WEBPACK_IMPORTED_MODULE_2__["isCtrlKey"])(key)) { - _this.ctrlKey = true; - } else if (key === 13 && _this.ctrlKey) { - _this.props.onSubmit(); - } - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleKeyUp", function (cm, e) { - if (Object(_util_keys__WEBPACK_IMPORTED_MODULE_2__["isCtrlKey"])(Object(_util_keys__WEBPACK_IMPORTED_MODULE_2__["getKey"])(e))) _this.ctrlKey = false; - }); - - return _this; - } - - _createClass(CodeMirror, [{ - key: "componentDidMount", - value: function componentDidMount() { - if (typeof window === 'undefined') return; - this.editor = codemirror__WEBPACK_IMPORTED_MODULE_1___default.a.fromTextArea(this.textarea, this.props.options); - this.editor.on('change', this.handleChange); - - if (typeof this.props.onSubmit === 'function') { - this.editor.on('keydown', this.checkSubmit); - this.editor.on('keyup', this.handleKeyUp); - this.setupSubmitKey = true; - } - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - if (this.setupSubmitKey) { - this.editor.off('keydown', this.checkSubmit); - this.editor.off('keyup', this.handleKeyUp); - this.setupSubmitKey = false; - } - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate() { - if (!this.editor || !this.props.value) return; - - if (this.editor.getValue() !== this.props.value) { - this.editor.setValue(this.props.value); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var _this$props = this.props, - value = _this$props.value, - className = _this$props.className, - onChange = _this$props.onChange; - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { - className: className - }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("textarea", _extends({ - value: value, - onChange: onChange - }, { - ref: function ref(el) { - return _this2.textarea = el; - } - }))); - } - }]); - - return CodeMirror; -}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]); - - - -/***/ }), -/* 23 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8); -/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18); -/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _comps_Page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15); -/* harmony import */ var _comps_Markdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20); -/* harmony import */ var _util_checkDirParts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(21); -/* harmony import */ var _util_checkDirParts__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_util_checkDirParts__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _util_updStateFromId__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(19); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_util_getUrl__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _util_getJwt__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(13); - - -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - - - - -var CodeMirrorSkel = function CodeMirrorSkel() { - return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "column" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("textarea", { - style: { - height: 'calc(300px - 1.2rem)', - margin: 0 - } - })); -}; - -var CodeMirror = next_dynamic__WEBPACK_IMPORTED_MODULE_3___default()(Promise.resolve(/* import() */).then(__webpack_require__.bind(null, 22)), { - loading: CodeMirrorSkel, - ssr: false, - loadableGenerated: { - webpack: function webpack() { - return [/*require.resolve*/(22)]; - }, - modules: ['../comps/CodeMirror'] - } -}); -var initState = { - name: '', - dir: '', - md: '## New Document!!', - editMode: false, - error: null, - pending: false -}; - -var MngDoc = -/*#__PURE__*/ -function (_Component) { - _inherits(MngDoc, _Component); - - function MngDoc() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, MngDoc); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MngDoc)).call.apply(_getPrototypeOf2, [this].concat(args))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", initState); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updVal", _util_updStateFromId__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"].bind(_assertThisInitialized(_assertThisInitialized(_this)))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updMd", function (md) { - return _this.setState({ - md: md - }); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "submit", - /*#__PURE__*/ - _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() { - var _this$state, name, md, dir, editMode, data, doErr, dirErr, url, method, headers, numRemoved, dataKeys, res, _data, id; - - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _this$state = _this.state, name = _this$state.name, md = _this$state.md, dir = _this$state.dir, editMode = _this$state.editMode; - data = { - name: Object(_util_checkDirParts__WEBPACK_IMPORTED_MODULE_6__["checkName"])(name), - dir: Object(_util_checkDirParts__WEBPACK_IMPORTED_MODULE_6__["checkDir"])(dir), - md: md - }; - - doErr = function doErr(error) { - return _this.setState({ - pending: false, - error: error - }); - }; - - dirErr = 'can only contain A-Z, a-z, 0-9, -, or . and not start or end with .'; - - if (data.name) { - _context.next = 6; - break; - } - - return _context.abrupt("return", doErr('Document name ' + (data.name === 0 ? 'can not be empty' : dirErr))); - - case 6: - if (!(!data.dir && data.dir !== 0)) { - _context.next = 10; - break; - } - - return _context.abrupt("return", doErr('Directory ' + dirErr)); - - case 10: - if (data.dir === 0) { - data.dir = ''; - } - - case 11: - if (!(data.md.trim().length === 0)) { - _context.next = 13; - break; - } - - return _context.abrupt("return", doErr('Content can not be empty')); - - case 13: - url = _util_getUrl__WEBPACK_IMPORTED_MODULE_8___default()('docs'), method = 'POST', headers = { - Authorization: Object(_util_getJwt__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"])(), - 'Content-Type': 'application/json' - }; - - if (!editMode) { - _context.next = 22; - break; - } - - numRemoved = 0; - dataKeys = Object.keys(data); - dataKeys.forEach(function (k) { - if (data[k] === _this.props.doc[k]) { - delete data[k]; - numRemoved++; - } - }); - - if (!(dataKeys.length === numRemoved)) { - _context.next = 20; - break; - } - - return _context.abrupt("return"); - - case 20: - url = _util_getUrl__WEBPACK_IMPORTED_MODULE_8___default()('docs/' + _this.props.doc.id); - method = 'PATCH'; - - case 22: - _this.setState({ - error: null, - pending: true - }); - - _context.next = 25; - return fetch(url, { - headers: headers, - method: method, - body: JSON.stringify(data) - }).catch(doErr); - - case 25: - res = _context.sent; - _context.prev = 26; - _context.next = 29; - return res.json(); - - case 29: - data = _context.sent; - _context.next = 35; - break; - - case 32: - _context.prev = 32; - _context.t0 = _context["catch"](26); - data = { - message: 'An error occurred submitting doc' - }; - - case 35: - if (!res.ok) { - _context.next = 38; - break; - } - - _data = data, id = _data.id; - return _context.abrupt("return", next_router__WEBPACK_IMPORTED_MODULE_2___default.a.push({ - pathname: '/k', - query: { - id: id - } - }, _util_getUrl__WEBPACK_IMPORTED_MODULE_8___default()("k/".concat(id)))); - - case 38: - doErr(data.message); - - case 39: - case "end": - return _context.stop(); - } - } - }, _callee, this, [[26, 32]]); - }))); - - return _this; - } - - _createClass(MngDoc, [{ - key: "render", - value: function render() { - var _this$state2 = this.state, - md = _this$state2.md, - dir = _this$state2.dir, - name = _this$state2.name, - error = _this$state2.error, - pending = _this$state2.pending; - var rowStyle = { - paddingTop: 10 - }; - return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_comps_Page__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "row fill", - style: rowStyle - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "column column-50" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_comps_Markdown__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], { - className: "fill Markdown", - source: md - })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "column column-50" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "row" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "column column-60" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", { - type: "text", - maxLength: 250, - placeholder: "New document name", - id: "name", - value: name, - onChange: this.updVal - })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "column" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", { - type: "text", - maxLength: 1024, - placeholder: "Subdirectory (optional)", - id: "dir", - value: dir, - onChange: this.updVal - }))), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "row" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(CodeMirror, { - value: md, - className: "column WrapCodeMirror", - onChange: this.updMd, - onSubmit: this.submit, - options: { - theme: 'monokai', - mode: 'markdown', - lineWrapping: true - } - })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "row", - style: { - marginTop: 5 - } - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { - className: "column" - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", null, error), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", { - className: "float-right", - style: { - marginTop: 5 - }, - onClick: pending ? null : this.submit - }, "Submit")))))); - } - }], [{ - key: "getDerivedStateFromProps", - value: function getDerivedStateFromProps(nextProps, prevState) { - var doc = nextProps.doc; - - if (doc && !prevState.didInit) { - var name = doc.name, - dir = doc.dir, - md = doc.md; - return { - name: name, - md: md, - dir: dir, - editMode: true, - didInit: true - }; - } else if (!prevState.didInit && prevState.id) { - return _objectSpread({}, initState, { - didInit: true - }); - } else if (!prevState.didInit) { - return { - didInit: true - }; - } - - return null; - } - }]); - - return MngDoc; -}(react__WEBPACK_IMPORTED_MODULE_1__["Component"]); - -/* harmony default export */ __webpack_exports__["a"] = (MngDoc); - -/***/ }), -/* 24 */ -/***/ (function(module, exports) { - -module.exports = require("codemirror"); - -/***/ }), -/* 25 */, -/* 26 */ -/***/ (function(module, exports) { - -module.exports = require("react-markdown"); - -/***/ }), -/* 27 */, -/* 28 */ -/***/ (function(module, exports) { - -module.exports = require("codemirror/mode/markdown/markdown"); - -/***/ }), -/* 29 */, -/* 30 */, -/* 31 */, -/* 32 */, -/* 33 */, -/* 34 */, -/* 35 */, -/* 36 */, -/* 37 */, -/* 38 */, -/* 39 */, -/* 40 */, -/* 41 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(42); - - -/***/ }), -/* 42 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _comps_MngDoc__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23); - -/* harmony default export */ __webpack_exports__["default"] = (_comps_MngDoc__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]); - -/***/ }) -/******/ ]); \ No newline at end of file diff --git a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/settings.js b/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/settings.js deleted file mode 100644 index 2d5239b..0000000 --- a/.next/server/static/lIlrIl8Q~DS1M0c3OvDaq/pages/settings.js +++ /dev/null @@ -1,1522 +0,0 @@ -module.exports = -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = require('../../../ssr-module-cache.js'); -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete installedModules[moduleId]; -/******/ } -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 43); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -module.exports = require("react"); - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - -var url = __webpack_require__(16); - -var urljoin = __webpack_require__(17); - -module.exports = function (path, absolute) { - var _ref = typeof window === 'undefined' ? app.get('kbConf') : window.kbConf, - pathPrefix = _ref.pathPrefix; - - path = urljoin(pathPrefix, path); - if (!absolute) return path; // absolute should only be used during ssr - - return url.format({ - hostname: app.get('host'), - port: app.get('port'), - pathname: path, - protocol: 'http' - }); -}; - -/***/ }), -/* 2 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return SET_USER; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LOGIN_PENDING; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LOGIN_FAILED; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return LOGOUT; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return setUser; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return doLogout; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return doLogin; }); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_util_getUrl__WEBPACK_IMPORTED_MODULE_3__); - - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - - - - // define action types - -var SET_USER = 'SET_USER'; -var LOGIN_PENDING = 'LOGIN_PENDING'; -var LOGIN_FAILED = 'LOGIN_FAILED'; -var LOGOUT = 'LOGOUT'; -var setUser = function setUser(user) { - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: SET_USER, - data: user - }); -}; // setUser - -var doLogout = function doLogout() { - if (typeof window !== 'undefined') { - window.localStorage.removeItem('jwt'); - document.cookie = 'jwt=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;'; - } - - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGOUT - }); -}; // doLogout - -function doLogin(_x, _x2, _x3) { - return _doLogin.apply(this, arguments); -} // doLogin - -function _doLogin() { - _doLogin = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(creds, jwt, noPend) { - var authReqOpts, authReqHead, authReqBody, authReq, authRes, error, _ref, accessToken, payload, _JSON$parse, userId, userReq, userRes; - - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - !noPend && _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_PENDING - }); - authReqOpts = { - method: 'POST', - credentials: 'include' - }; - authReqHead = { - headers: jwt ? { - Authorization: jwt - } : { - 'Content-Type': 'application/json' - } - }; - authReqBody = jwt ? null : { - body: JSON.stringify(_objectSpread({}, creds, { - strategy: 'local' - })) - }; - authReq = new Request(_util_getUrl__WEBPACK_IMPORTED_MODULE_3___default()('auth'), _objectSpread({}, authReqOpts, authReqHead, authReqBody)); - _context.next = 7; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default()(authReq).catch(function (err) { - _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: err.message - }); - }); - - case 7: - authRes = _context.sent; - - if (authRes.ok) { - _context.next = 20; - break; - } - - _context.prev = 9; - _context.next = 12; - return authRes.json(); - - case 12: - error = _context.sent; - error = error.message; - _context.next = 19; - break; - - case 16: - _context.prev = 16; - _context.t0 = _context["catch"](9); - error = authRes.status === 429 ? 'Max login attempts reached' : 'An error occurred during login'; - - case 19: - return _context.abrupt("return", _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: error - })); - - case 20: - _context.next = 22; - return authRes.json(); - - case 22: - _ref = _context.sent; - accessToken = _ref.accessToken; - payload = accessToken.split('.')[1]; - _JSON$parse = JSON.parse(atob(payload)), userId = _JSON$parse.userId; - userReq = new Request(_util_getUrl__WEBPACK_IMPORTED_MODULE_3___default()("/users/".concat(userId)), { - headers: { - Authorization: accessToken - } - }); - _context.next = 29; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_1___default()(userReq); - - case 29: - userRes = _context.sent; - - if (userRes.ok) { - _context.next = 32; - break; - } - - return _context.abrupt("return", _store__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"].dispatch({ - type: LOGIN_FAILED, - data: 'failed to get user' - })); - - case 32: - window.localStorage.setItem('jwt', accessToken); - _context.t1 = setUser; - _context.next = 36; - return userRes.json(); - - case 36: - _context.t2 = _context.sent; - (0, _context.t1)(_context.t2); - - case 38: - case "end": - return _context.stop(); - } - } - }, _callee, this, [[9, 16]]); - })); - return _doLogin.apply(this, arguments); -} - -/***/ }), -/* 3 */ -/***/ (function(module, exports) { - -module.exports = require("@babel/runtime/regenerator"); - -/***/ }), -/* 4 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "redux" -var external_redux_ = __webpack_require__(10); - -// EXTERNAL MODULE: ./redux/actions/userAct.js -var userAct = __webpack_require__(2); - -// CONCATENATED MODULE: ./redux/reducers/userRed.js -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - -var initState = { - setup: false, - _id: null, - email: null, - admin: null, - pending: false, - error: null -}; - -function user() { - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initState; - var action = arguments.length > 1 ? arguments[1] : undefined; - - switch (action.type) { - case userAct["d" /* SET_USER */]: - { - return _objectSpread({}, initState, action.data); - } - - case userAct["b" /* LOGIN_PENDING */]: - { - return _objectSpread({}, initState, { - pending: true - }); - } - - case userAct["a" /* LOGIN_FAILED */]: - { - return _objectSpread({}, state, { - pending: false, - error: action.data - }); - } - - case userAct["c" /* LOGOUT */]: - { - return initState; - } - - default: - return state; - } -} - -/* harmony default export */ var userRed = (user); -// CONCATENATED MODULE: ./redux/store.js - - -var middleware; - -if (false) { var logger; } - -var reducers = Object(external_redux_["combineReducers"])({ - user: userRed -}); -/* harmony default export */ var store = __webpack_exports__["a"] = (middleware ? Object(external_redux_["createStore"])(reducers, middleware) : Object(external_redux_["createStore"])(reducers)); - -/***/ }), -/* 5 */ -/***/ (function(module, exports) { - -module.exports = require("react-redux"); - -/***/ }), -/* 6 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony default export */ __webpack_exports__["a"] = (function (_ref) { - var user = _ref.user; - return { - user: user - }; -}); - -/***/ }), -/* 7 */ -/***/ (function(module, exports) { - -module.exports = require("isomorphic-unfetch"); - -/***/ }), -/* 8 */ -/***/ (function(module, exports) { - -module.exports = require("next/router"); - -/***/ }), -/* 9 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -var PaddedRow = function PaddedRow(_ref) { - var children = _ref.children, - amount = _ref.amount, - vCenter = _ref.vCenter; - amount = amount || 20; - - var PadItem = function PadItem() { - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { - className: 'column column-' + amount + ' nomob' - }); - }; - - var rowProps = { - className: 'row' - }; - if (vCenter) rowProps = { - className: 'row v-center' - };else rowProps = _objectSpread({}, rowProps, { - style: { - paddingTop: amount - } - }); - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", rowProps, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(PadItem, null), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { - className: "column" - }, children), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(PadItem, null)); -}; - -/* harmony default export */ __webpack_exports__["a"] = (PaddedRow); - -/***/ }), -/* 10 */ -/***/ (function(module, exports) { - -module.exports = require("redux"); - -/***/ }), -/* 11 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - -var Spinner = function Spinner(props) { - return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({ - className: "spinner" - }, props)); -}; - -/* harmony default export */ __webpack_exports__["a"] = (Spinner); - -/***/ }), -/* 12 */ -/***/ (function(module, exports) { - -module.exports = { - getKey: function getKey(e) { - return e.which || e.keyCode; - }, - isCtrlKey: function isCtrlKey(key) { - return key === 91 || key === 93 || key === 17; - } -}; - -/***/ }), -/* 13 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony default export */ __webpack_exports__["a"] = (function (req) { - if (req) return req.jwt; - - if (typeof window !== 'undefined') { - return window.localStorage.getItem('jwt'); - } -}); - -/***/ }), -/* 14 */ -/***/ (function(module, exports) { - -module.exports = require("next/link"); - -/***/ }), -/* 15 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(0); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); - -// EXTERNAL MODULE: external "react-redux" -var external_react_redux_ = __webpack_require__(5); - -// EXTERNAL MODULE: external "next/router" -var router_ = __webpack_require__(8); -var router_default = /*#__PURE__*/__webpack_require__.n(router_); - -// EXTERNAL MODULE: ./redux/actions/userAct.js -var userAct = __webpack_require__(2); - -// EXTERNAL MODULE: external "next/link" -var link_ = __webpack_require__(14); -var link_default = /*#__PURE__*/__webpack_require__.n(link_); - -// EXTERNAL MODULE: ./util/getUrl.js -var getUrl = __webpack_require__(1); -var getUrl_default = /*#__PURE__*/__webpack_require__.n(getUrl); - -// EXTERNAL MODULE: ./util/mapUser.js -var mapUser = __webpack_require__(6); - -// CONCATENATED MODULE: ./comps/Header.js -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - - -var Header_NavLink = function NavLink(_ref) { - var children = _ref.children, - href = _ref.href, - active = _ref.active; - var activeClass = active ? ' active' : ''; - return external_react_default.a.createElement(link_default.a, { - href: href, - as: getUrl_default()(href) - }, external_react_default.a.createElement("a", { - className: activeClass - }, children)); -}; - -var navItems = [['/', 'Home'], ['/new', 'New Doc'], ['/settings', 'Settings']]; - -var Header_Header = -/*#__PURE__*/ -function (_Component) { - _inherits(Header, _Component); - - function Header() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, Header); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Header)).call.apply(_getPrototypeOf2, [this].concat(args))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", { - open: false - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "hideNav", function () { - return _this.setState({ - open: false - }); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toggleNav", function () { - return _this.setState({ - open: !_this.state.open - }); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isActive", function (url) { - return getUrl_default()(_this.props.router.pathname) === getUrl_default()(url); - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "logout", function (e) { - e.preventDefault(); - - _this.hideNav(); - - Object(userAct["f" /* doLogout */])(); - }); - - return _this; - } - - _createClass(Header, [{ - key: "render", - value: function render() { - var _this2 = this; - - var expandClass = this.state.open ? ' active' : ''; - var user = this.props.user; - return external_react_default.a.createElement("nav", { - className: "navbar", - role: "navigation", - "aria-label": "main navigation" - }, external_react_default.a.createElement("div", { - className: "navbar-brand" - }, external_react_default.a.createElement(Header_NavLink, { - href: "/" - }, external_react_default.a.createElement("h3", { - onClick: this.hideNav - }, "MYKB"))), !user.email ? null : [external_react_default.a.createElement("div", { - className: 'navbar-burger ' + expandClass, - onClick: this.toggleNav, - key: "burger" - }, external_react_default.a.createElement("div", null), external_react_default.a.createElement("div", null), external_react_default.a.createElement("div", null)), external_react_default.a.createElement("div", { - className: 'navbar-items' + expandClass, - key: "items" - }, navItems.map(function (item) { - return external_react_default.a.createElement(Header_NavLink, { - key: item[0], - href: item[0], - active: _this2.isActive(item[0]) - }, external_react_default.a.createElement("p", { - className: "item", - onClick: _this2.hideNav - }, item[1])); - }), external_react_default.a.createElement("a", { - href: "/logout", - onClick: this.logout - }, external_react_default.a.createElement("p", { - className: "item" - }, "Logout")))]); - } - }]); - - return Header; -}(external_react_["Component"]); - -/* harmony default export */ var comps_Header = (Object(router_["withRouter"])(Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Header_Header))); -// EXTERNAL MODULE: ./util/keys.js -var keys = __webpack_require__(12); - -// CONCATENATED MODULE: ./comps/KeyShortcuts.js -function KeyShortcuts_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { KeyShortcuts_typeof = function _typeof(obj) { return typeof obj; }; } else { KeyShortcuts_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return KeyShortcuts_typeof(obj); } - -function KeyShortcuts_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function KeyShortcuts_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function KeyShortcuts_createClass(Constructor, protoProps, staticProps) { if (protoProps) KeyShortcuts_defineProperties(Constructor.prototype, protoProps); if (staticProps) KeyShortcuts_defineProperties(Constructor, staticProps); return Constructor; } - -function KeyShortcuts_possibleConstructorReturn(self, call) { if (call && (KeyShortcuts_typeof(call) === "object" || typeof call === "function")) { return call; } return KeyShortcuts_assertThisInitialized(self); } - -function KeyShortcuts_getPrototypeOf(o) { KeyShortcuts_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return KeyShortcuts_getPrototypeOf(o); } - -function KeyShortcuts_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) KeyShortcuts_setPrototypeOf(subClass, superClass); } - -function KeyShortcuts_setPrototypeOf(o, p) { KeyShortcuts_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return KeyShortcuts_setPrototypeOf(o, p); } - -function KeyShortcuts_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function KeyShortcuts_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - -/* - keyboard shortcuts - g then h -> navigate home - g then n -> navigate to new doc - g then s -> navigate to settings - g then l -> logout - e (when on doc page) -> edit doc - / (when on home page) -> focus search - ctrl/cmd + enter -> submit new doc (handled in CodeMirror component) -*/ - -var keyToUrl = { - 72: '/', - 78: '/new', - 83: '/settings' -}; -var keyToEl = { - 69: { - sel: '#edit', - func: 'click' - }, - 191: { - sel: '.search', - func: 'focus' - } -}; - -var KeyShortcuts_KeyShortcuts = -/*#__PURE__*/ -function (_Component) { - KeyShortcuts_inherits(KeyShortcuts, _Component); - - function KeyShortcuts() { - var _getPrototypeOf2; - - var _this; - - KeyShortcuts_classCallCheck(this, KeyShortcuts); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = KeyShortcuts_possibleConstructorReturn(this, (_getPrototypeOf2 = KeyShortcuts_getPrototypeOf(KeyShortcuts)).call.apply(_getPrototypeOf2, [this].concat(args))); - - KeyShortcuts_defineProperty(KeyShortcuts_assertThisInitialized(KeyShortcuts_assertThisInitialized(_this)), "handleDown", function (e) { - var tag = e.target.tagName; - if (tag === 'INPUT' || tag === 'TEXTAREA') return; - var key = Object(keys["getKey"])(e); - - if (_this.prevKey === 71) { - // prev key was g - switch (key) { - case 72: - case 78: - case 83: - { - var url = keyToUrl[key]; - router_default.a.push(url, getUrl_default()(url)); - break; - } - - case 76: - { - setTimeout(userAct["f" /* doLogout */], 1); - break; - } - - default: - break; - } - } - - switch (key) { - case 69: - case 191: - { - var _keyToEl$key = keyToEl[key], - sel = _keyToEl$key.sel, - func = _keyToEl$key.func; - var el = document.querySelector(sel); - if (el) setTimeout(function () { - return el[func](); - }, 1); - break; - } - - default: - break; - } - - _this.prevKey = key; - }); - - KeyShortcuts_defineProperty(KeyShortcuts_assertThisInitialized(KeyShortcuts_assertThisInitialized(_this)), "render", function () { - return null; - }); - - return _this; - } - - KeyShortcuts_createClass(KeyShortcuts, [{ - key: "componentDidMount", - value: function componentDidMount() { - window.addEventListener('keydown', this.handleDown); - } - }, { - key: "componentWillUnmount", - value: function componentWillUnmount() { - window.removeEventListener('keydown', this.handleDown); - } - }]); - - return KeyShortcuts; -}(external_react_["Component"]); - -/* harmony default export */ var comps_KeyShortcuts = (KeyShortcuts_KeyShortcuts); -// CONCATENATED MODULE: ./comps/Footer.js - - -var Footer_Footer = function Footer() { - return external_react_default.a.createElement("footer", { - className: "footer" - }, external_react_default.a.createElement("p", null, "Powered by", ' ', external_react_default.a.createElement("a", { - href: "//github.com/ijjk/mykb", - target: "_blank", - rel: "noopener noreferrer" - }, "MYKB"))); -}; - -/* harmony default export */ var comps_Footer = (Footer_Footer); -// EXTERNAL MODULE: ./comps/Spinner.js -var Spinner = __webpack_require__(11); - -// EXTERNAL MODULE: ./comps/PaddedRow.js -var PaddedRow = __webpack_require__(9); - -// CONCATENATED MODULE: ./comps/Login.js -function Login_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Login_typeof = function _typeof(obj) { return typeof obj; }; } else { Login_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Login_typeof(obj); } - -function Login_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function Login_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function Login_createClass(Constructor, protoProps, staticProps) { if (protoProps) Login_defineProperties(Constructor.prototype, protoProps); if (staticProps) Login_defineProperties(Constructor, staticProps); return Constructor; } - -function Login_possibleConstructorReturn(self, call) { if (call && (Login_typeof(call) === "object" || typeof call === "function")) { return call; } return Login_assertThisInitialized(self); } - -function Login_getPrototypeOf(o) { Login_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return Login_getPrototypeOf(o); } - -function Login_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) Login_setPrototypeOf(subClass, superClass); } - -function Login_setPrototypeOf(o, p) { Login_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Login_setPrototypeOf(o, p); } - -function Login_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function Login_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - -var Login_Login = -/*#__PURE__*/ -function (_Component) { - Login_inherits(Login, _Component); - - function Login() { - var _getPrototypeOf2; - - var _this; - - Login_classCallCheck(this, Login); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = Login_possibleConstructorReturn(this, (_getPrototypeOf2 = Login_getPrototypeOf(Login)).call.apply(_getPrototypeOf2, [this].concat(args))); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "state", { - email: '', - pass: '' - }); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "updVal", function (e) { - var el = e.target; - var val = el.value; - - if (el.getAttribute('type') === 'email') { - return _this.setState({ - email: val - }); - } - - _this.setState({ - pass: val - }); - }); - - Login_defineProperty(Login_assertThisInitialized(Login_assertThisInitialized(_this)), "submit", function (e) { - var pending = _this.props.user.pending; - var _this$state = _this.state, - email = _this$state.email, - pass = _this$state.pass; - email = email.trim(); - pass = pass.trim(); - e.preventDefault(); - - if (pending || email.length === 0 || pass.length == 0) { - return; - } - - Object(userAct["e" /* doLogin */])({ - email: email, - password: pass - }); - }); - - return _this; - } - - Login_createClass(Login, [{ - key: "render", - value: function render() { - var _this$props$user = this.props.user, - pending = _this$props$user.pending, - error = _this$props$user.error; - return external_react_default.a.createElement("div", { - className: "container content" - }, external_react_default.a.createElement(PaddedRow["a" /* default */], { - amount: 25, - vCenter: true - }, external_react_default.a.createElement("h4", null, "Please login to continue"), external_react_default.a.createElement("form", { - noValidate: true - }, external_react_default.a.createElement("fieldset", null, external_react_default.a.createElement("label", { - htmlFor: "email" - }, "Email:"), external_react_default.a.createElement("input", { - type: "email", - id: "email", - name: "email", - autoFocus: true, - placeholder: "John@deux.com", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass" - }, "Pass:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass", - name: "password", - placeholder: "Super secret password...", - onChange: this.updVal - })), external_react_default.a.createElement("button", { - className: 'float-right' + (pending ? ' disabled' : ''), - onClick: this.submit - }, pending ? external_react_default.a.createElement(Spinner["a" /* default */], null) : 'Submit'), !error ? null : external_react_default.a.createElement("p", null, error)))); - } - }]); - - return Login; -}(external_react_["Component"]); - -/* harmony default export */ var comps_Login = (Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Login_Login)); -// CONCATENATED MODULE: ./comps/Setup.js -function Setup_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { Setup_typeof = function _typeof(obj) { return typeof obj; }; } else { Setup_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return Setup_typeof(obj); } - -function Setup_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function Setup_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function Setup_createClass(Constructor, protoProps, staticProps) { if (protoProps) Setup_defineProperties(Constructor.prototype, protoProps); if (staticProps) Setup_defineProperties(Constructor, staticProps); return Constructor; } - -function Setup_possibleConstructorReturn(self, call) { if (call && (Setup_typeof(call) === "object" || typeof call === "function")) { return call; } return Setup_assertThisInitialized(self); } - -function Setup_getPrototypeOf(o) { Setup_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return Setup_getPrototypeOf(o); } - -function Setup_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) Setup_setPrototypeOf(subClass, superClass); } - -function Setup_setPrototypeOf(o, p) { Setup_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return Setup_setPrototypeOf(o, p); } - -function Setup_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function Setup_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - -var Setup_Setup = -/*#__PURE__*/ -function (_Component) { - Setup_inherits(Setup, _Component); - - function Setup() { - var _getPrototypeOf2; - - var _this; - - Setup_classCallCheck(this, Setup); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = Setup_possibleConstructorReturn(this, (_getPrototypeOf2 = Setup_getPrototypeOf(Setup)).call.apply(_getPrototypeOf2, [this].concat(args))); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "state", { - email: '', - password: '', - confirmPass: '', - pending: false, - error: null - }); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "updVal", function (e) { - var el = e.target; - var key = 'email'; - if (el.id === 'pass') key = 'password';else if (el.id === 'pass2') key = 'confirmPass'; - var obj = {}; - obj[key] = el.value; - - _this.setState(obj); - }); - - Setup_defineProperty(Setup_assertThisInitialized(Setup_assertThisInitialized(_this)), "submit", function (e) { - e.preventDefault(); - var _this$state = _this.state, - email = _this$state.email, - password = _this$state.password, - confirmPass = _this$state.confirmPass, - pending = _this$state.pending; - if (pending) return; - email = email.trim(); - password = password.trim(); - confirmPass = confirmPass.trim(); - var hasEmpty = [email, password, confirmPass].some(function (val) { - return val.length === 0; - }); - if (hasEmpty) return; - - if (password.toLowerCase() !== confirmPass.toLowerCase()) { - return _this.setState({ - error: "Passwords don't match" - }); - } - - _this.setState({ - pending: true, - error: null - }); - - var defaultErr = 'Could not create account'; - fetch(getUrl_default()('users'), { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify({ - email: email, - password: password, - admin: true - }) - }).then(function (res) { - if (res.ok) { - return Object(userAct["e" /* doLogin */])({ - email: email, - password: password - }, null, true); - } - - res.json().then(function (_ref) { - var message = _ref.message; - var error = message || defaultErr; - - _this.setState({ - pending: false, - error: error - }); - }); - }).catch(function (err) { - var error = err.message || defaultErr; - - _this.setState({ - pending: false, - error: error - }); - }); - }); - - return _this; - } - - Setup_createClass(Setup, [{ - key: "render", - value: function render() { - var _this$state2 = this.state, - pending = _this$state2.pending, - error = _this$state2.error; - return external_react_default.a.createElement("div", { - className: "container content" - }, external_react_default.a.createElement(PaddedRow["a" /* default */], { - amount: 25, - vCenter: true - }, external_react_default.a.createElement("div", { - className: "column" - }, external_react_default.a.createElement("h3", null, "Setup account"), external_react_default.a.createElement("form", { - noValidate: true - }, external_react_default.a.createElement("fieldset", null, external_react_default.a.createElement("label", { - htmlFor: "email" - }, "Email:"), external_react_default.a.createElement("input", { - type: "email", - autoFocus: true, - id: "email", - placeholder: "Your email (does't have to be actual email)", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass" - }, "Password:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass", - maxLength: 512, - placeholder: "A super secret password", - onChange: this.updVal - }), external_react_default.a.createElement("label", { - htmlFor: "pass2" - }, "Confirm Password:"), external_react_default.a.createElement("input", { - type: "password", - id: "pass2", - maxLength: 512, - placeholder: "Confirm your super secret password", - onChange: this.updVal - }), external_react_default.a.createElement("button", { - className: "float-right", - onClick: this.submit - }, pending ? external_react_default.a.createElement(Spinner["a" /* default */], null) : 'Submit'), !error ? null : external_react_default.a.createElement("p", { - className: "danger" - }, error)))))); - } - }]); - - return Setup; -}(external_react_["Component"]); - - -// CONCATENATED MODULE: ./comps/Page.js - - - - - - - - - -var Page_Page = function Page(_ref) { - var user = _ref.user, - children = _ref.children; - return external_react_default.a.createElement("div", null, external_react_default.a.createElement(comps_Header, null), external_react_default.a.createElement(comps_KeyShortcuts, null), function () { - if (user.email) { - return external_react_default.a.createElement("div", { - className: "container content" - }, children); - } - - return user.setup ? external_react_default.a.createElement(Setup_Setup, null) : external_react_default.a.createElement(comps_Login, { - user: user - }); - }(), external_react_default.a.createElement(comps_Footer, null)); -}; - -/* harmony default export */ var comps_Page = __webpack_exports__["a"] = (Object(external_react_redux_["connect"])(mapUser["a" /* default */])(Page_Page)); - -/***/ }), -/* 16 */ -/***/ (function(module, exports) { - -module.exports = require("url"); - -/***/ }), -/* 17 */ -/***/ (function(module, exports) { - -module.exports = require("url-join"); - -/***/ }), -/* 18 */, -/* 19 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return updateStateFromId; }); -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function updateStateFromId(e) { - var el = e.target; - this.setState(_defineProperty({}, el.id, el.value)); -} - -/***/ }), -/* 20 */, -/* 21 */, -/* 22 */, -/* 23 */, -/* 24 */, -/* 25 */, -/* 26 */, -/* 27 */, -/* 28 */, -/* 29 */, -/* 30 */, -/* 31 */, -/* 32 */, -/* 33 */, -/* 34 */, -/* 35 */, -/* 36 */, -/* 37 */, -/* 38 */, -/* 39 */, -/* 40 */, -/* 41 */, -/* 42 */, -/* 43 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(44); - - -/***/ }), -/* 44 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); -/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5); -/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_redux__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7); -/* harmony import */ var isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _comps_Page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15); -/* harmony import */ var _comps_PaddedRow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9); -/* harmony import */ var _comps_Spinner__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(11); -/* harmony import */ var _util_updStateFromId__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(19); -/* harmony import */ var _util_mapUser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1); -/* harmony import */ var _util_getUrl__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_util_getUrl__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var _util_getJwt__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(13); - - -function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } - -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } - -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } - -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - - - - - - - - - - - -var Settings = -/*#__PURE__*/ -function (_Component) { - _inherits(Settings, _Component); - - function Settings() { - var _getPrototypeOf2; - - var _this; - - _classCallCheck(this, Settings); - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Settings)).call.apply(_getPrototypeOf2, [this].concat(args))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", { - pending: false, - passErr: null, - curPass: '', - newPass: '', - confPass: '' - }); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updVal", _util_updStateFromId__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"].bind(_assertThisInitialized(_assertThisInitialized(_this)))); - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "submit", - /*#__PURE__*/ - function () { - var _ref = _asyncToGenerator( - /*#__PURE__*/ - _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(e) { - var _this$state, pending, curPass, newPass, confPass, _this$props$user, email, _id, doErr, vals, keys, i, key, val, updRes, message, data; - - return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - e.preventDefault(); - _this$state = _this.state, pending = _this$state.pending, curPass = _this$state.curPass, newPass = _this$state.newPass, confPass = _this$state.confPass; - _this$props$user = _this.props.user, email = _this$props$user.email, _id = _this$props$user._id; - - if (!pending) { - _context.next = 5; - break; - } - - return _context.abrupt("return"); - - case 5: - doErr = function doErr(passErr) { - return _this.setState({ - pending: false, - passErr: passErr - }); - }; - - vals = { - 'Current password': curPass, - 'New password': newPass, - 'Confirm new password': confPass - }; - keys = Object.keys(vals); - i = 0; - - case 9: - if (!(i < keys.length)) { - _context.next = 16; - break; - } - - key = keys[i], val = vals[key]; - - if (!(val.length === 0)) { - _context.next = 13; - break; - } - - return _context.abrupt("return", doErr("".concat(key, " is required"))); - - case 13: - i++; - _context.next = 9; - break; - - case 16: - if (!(newPass !== confPass)) { - _context.next = 18; - break; - } - - return _context.abrupt("return", doErr("New passwords don't match")); - - case 18: - _this.setState({ - passErr: null, - pending: true - }); - - _context.next = 21; - return isomorphic_unfetch__WEBPACK_IMPORTED_MODULE_3___default()(_util_getUrl__WEBPACK_IMPORTED_MODULE_9___default()('users/' + _id), { - method: 'PATCH', - headers: { - 'Content-Type': 'application/json', - Authorization: Object(_util_getJwt__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"])() - }, - body: JSON.stringify({ - email: email, - password: curPass, - newPassword: newPass - }) - }).catch(doErr); - - case 21: - updRes = _context.sent; - - if (!updRes.ok) { - _context.next = 26; - break; - } - - _this.setState({ - curPass: '', - newPass: '', - confPass: '', - passErr: 'Password updated successfully', - pending: false - }); - - _context.next = 38; - break; - - case 26: - message = 'failed to update password'; - _context.prev = 27; - _context.next = 30; - return updRes.json(); - - case 30: - data = _context.sent; - message = data.message || message; - _context.next = 37; - break; - - case 34: - _context.prev = 34; - _context.t0 = _context["catch"](27); - doErr(_context.t0.message); - - case 37: - doErr(message); - - case 38: - case "end": - return _context.stop(); - } - } - }, _callee, this, [[27, 34]]); - })); - - return function (_x) { - return _ref.apply(this, arguments); - }; - }()); - - return _this; - } - - _createClass(Settings, [{ - key: "render", - value: function render() { - var _this$state2 = this.state, - pending = _this$state2.pending, - passErr = _this$state2.passErr, - curPass = _this$state2.curPass, - newPass = _this$state2.newPass, - confPass = _this$state2.confPass; - return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_comps_Page__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"], null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_comps_PaddedRow__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], { - amount: 25 - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h3", null, "Account settings"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("hr", null), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("form", { - noValidate: true, - style: { - padding: '0 0 45px' - } - }, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("h4", null, "Change password"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("fieldset", null, react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", { - htmlFor: "curPass" - }, "Current Password"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", { - type: "password", - id: "curPass", - onChange: this.updVal, - placeholder: "Current super secret password...", - value: curPass - }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", { - htmlFor: "newPass" - }, "New Password"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", { - type: "password", - id: "newPass", - onChange: this.updVal, - placeholder: "New super secret password...", - value: newPass - }), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("label", { - htmlFor: "confPass" - }, "Confirm New Password"), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", { - type: "password", - id: "confPass", - onChange: this.updVal, - placeholder: "Confirm new super secret password...", - value: confPass - })), react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("button", { - onClick: this.submit, - className: 'float-right' + (pending ? ' disabled' : '') - }, pending ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_comps_Spinner__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], null) : 'Submit'), !passErr ? null : react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("p", null, passErr)))); - } - }]); - - return Settings; -}(react__WEBPACK_IMPORTED_MODULE_1__["Component"]); - -/* harmony default export */ __webpack_exports__["default"] = (Object(react_redux__WEBPACK_IMPORTED_MODULE_2__["connect"])(_util_mapUser__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"])(Settings)); - -/***/ }) -/******/ ]); \ No newline at end of file diff --git a/.next/static/chunks/10.92205884f2772342b0b5.js b/.next/static/chunks/10.92205884f2772342b0b5.js deleted file mode 100644 index fb05db2..0000000 --- a/.next/static/chunks/10.92205884f2772342b0b5.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{274:function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),l=r||i||o,a=l&&(r?document.documentMode||6:+(o||i)[1]),s=!o&&/WebKit\//.test(e),u=s&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),h=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),m=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),x=m||/Mac/.test(t),y=/\bCrOS\b/.test(e),b=/win/i.test(t),w=h&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(h=!1,s=!0);var k=x&&(u||h&&(null==w||w<12.11)),C=n||l&&a>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var L,T=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function M(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function N(e,t){return M(e).appendChild(t)}function O(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=n-l%n,o=a+1}}m?E=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:l&&(E=function(e){try{e.select()}catch(e){}});var R=function(){this.id=null};function B(e,t){for(var n=0;n=t)return r+Math.min(l,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var _=[""];function $(e){for(;_.length<=e;)_.push(X(_)+" ");return _[e]}function X(e){return e[e.length-1]}function Y(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||Q.test(e))}function te(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ee(e))||t.test(e):ee(e)}function ne(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var re=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&re.test(e)}function oe(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function ae(e,t,r){var i=this;this.input=r,i.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=A("div",null,"CodeMirror-code"),i.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=O("div",null,"CodeMirror-cursors"),i.measure=O("div",null,"CodeMirror-measure"),i.lineMeasure=O("div",null,"CodeMirror-measure"),i.lineSpace=A("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=A("div",[i.lineSpace],"CodeMirror-lines");i.mover=O("div",[o],null,"position: relative"),i.sizer=O("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=O("div",null,null,"position: absolute; height: "+j+"px; width: 1px;"),i.gutters=O("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=O("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=O("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),l&&a<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),s||n&&v||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,r.init(i)}function se(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?ge(n,se(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?ge(e.line,t):n<0?ge(e.line,0):e}(t,se(e,t.line).text.length)}function Se(e,t){for(var n=[],r=0;r=t:o.to>t);(r||(r=[])).push(new Me(l,o.from,s?null:o.to))}}return r}(n,i,l),s=function(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(a||o.from==t&&"bookmark"==l.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var b=0;bt)&&(!n||Pe(n,o.marker)<0)&&(n=o.marker)}return n}function je(e,t,n,r,i){var o=se(e,t),l=Te&&o.markedSpans;if(l)for(var a=0;a=0&&h<=0||c<=0&&h>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ve(u.to,n)>=0:ve(u.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ve(u.from,r)<=0:ve(u.from,r)<0)))return!0}}}function qe(e){for(var t;t=ze(e);)e=t.find(-1,!0).line;return e}function Ge(e,t){var n=se(e,t),r=qe(n);return n==r?t:fe(r)}function Ue(e,t){if(t>e.lastLine())return t;var n,r=se(e,t);if(!Ke(e,r))return t;for(;n=Re(r);)r=n.find(1,!0).line;return fe(r)+1}function Ke(e,t){var n=Te&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Ye=null;function Je(e,t,n){var r;Ye=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:Ye=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:Ye=i)}return null!=r?r:Ye}var Ze=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,l=/[1n]/;function a(e,t,n){this.level=e,this.from=t,this.to=n}return function(s,u){var c,h="ltr"==u?"L":"R";if(0==s.length||"ltr"==u&&!n.test(s))return!1;for(var f=s.length,d=[],p=0;p-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function it(e,t){var n=nt(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function st(e){e.prototype.on=function(e,t){tt(this,e,t)},e.prototype.off=function(e,t){rt(this,e,t)}}function ut(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ct(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ht(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ft(e){ut(e),ct(e)}function dt(e){return e.target||e.srcElement}function pt(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),x&&e.ctrlKey&&1==t&&(t=3),t}var mt,gt,vt=function(){if(l&&a<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function xt(e){if(null==mt){var t=O("span","​");N(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(mt=t.offsetWidth<=1&&t.offsetHeight>2&&!(l&&a<8))}var n=mt?O("span","​"):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function yt(e){if(null!=gt)return gt;var t=N(e,document.createTextNode("AخA")),n=L(t,0,1).getBoundingClientRect(),r=L(t,1,2).getBoundingClientRect();return M(e),!(!n||n.left==n.right)&&(gt=r.right-n.right<3)}var bt,wt=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),l=o.indexOf("\r");-1!=l?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},kt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ct="oncopy"in(bt=O("div"))||(bt.setAttribute("oncopy","return;"),"function"==typeof bt.oncopy),St=null,Lt={},Tt={};function Mt(e){if("string"==typeof e&&Tt.hasOwnProperty(e))e=Tt[e];else if(e&&"string"==typeof e.name&&Tt.hasOwnProperty(e.name)){var t=Tt[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Mt("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Mt("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Nt(e,t){t=Mt(t);var n=Lt[t.name];if(!n)return Nt(e,"text/plain");var r=n(e,t);if(Ot.hasOwnProperty(t.name)){var i=Ot[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var Ot={};function At(e,t){var n=Ot.hasOwnProperty(e)?Ot[e]:Ot[e]={};I(t,n)}function Dt(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Wt(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ht(e,t,n){return!e.startState||e.startState(t,n)}var Ft=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Ft.prototype.eol=function(){return this.pos>=this.string.length},Ft.prototype.sol=function(){return this.pos==this.lineStart},Ft.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ft.prototype.next=function(){if(this.post},Ft.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ft.prototype.skipToEnd=function(){this.pos=this.string.length},Ft.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ft.prototype.backUp=function(e){this.pos-=e},Ft.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(i(o)==i(e))return!1!==t&&(this.pos+=e.length),!0},Ft.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ft.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ft.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ft.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Et=function(e,t){this.state=e,this.lookAhead=t},Pt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function It(e,t,n,r){var i=[e.state.modeGen],o={};Vt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var l=n.state,a=function(r){n.baseTokens=i;var a=e.state.overlays[r],s=1,u=0;n.state=!0,Vt(e,t.text,a.mode,n,function(e,t){for(var n=s;ue&&i.splice(s,1,e,i[s+1],r),s+=2,u=Math.min(e,r)}if(t)if(a.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&Dt(e.doc.mode,r.state),o=It(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Rt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Pt(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,l=n?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>l;--a){if(a<=o.first)return o.first;var s=se(o,a-1),u=s.stateAfter;if(u&&(!n||a+(u instanceof Et?u.lookAhead:0)<=o.modeFrontier))return a;var c=z(s.text,null,e.options.tabSize);(null==i||r>c)&&(i=a-1,r=c)}return i}(e,t,n),l=o>r.first&&se(r,o-1).stateAfter,a=l?Pt.fromSaved(r,l,o):new Pt(r,Ht(r.mode),o);return r.iter(o,t,function(n){Bt(e,n.text,a);var r=a.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}Pt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Pt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Pt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pt.fromSaved=function(e,t,n){return t instanceof Et?new Pt(e,Dt(e.mode,t.state),n,t.lookAhead):new Pt(e,Dt(e.mode,t),n)},Pt.prototype.save=function(e){var t=!1!==e?Dt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Et(t,this.maxLookAhead):t};var Gt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ut(e,t,n,r){var i,o=e.doc,l=o.mode;t=Ce(o,t);var a,s=se(o,t.line),u=Rt(e,t.line,n),c=new Ft(s.text,e.options.tabSize,u);for(r&&(a=[]);(r||c.pose.options.maxHighlightLength?(a=!1,l&&Bt(e,t,r,h.pos),h.pos=t.length,s=null):s=Kt(qt(n,h,r.state,f),o),f){var d=f[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!a||c!=s){for(;u1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&h.from<=u);f++);if(h.to>=c)return e(n,r,i,o,l,a,s);e(n,r.slice(0,h.to-u),i,o,null,a,s),o=null,r=r.slice(h.to-u),u=h.to}}}function nn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function rn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var l,a,s,u,c,h,f,d=i.length,p=0,m=1,g="",v=0;;){if(v==p){s=u=c=h=a="",f=null,v=1/0;for(var x=[],y=void 0,b=0;bp||k.collapsed&&w.to==p&&w.from==p)?(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,u=""),k.className&&(s+=" "+k.className),k.css&&(a=(a?a+";":"")+k.css),k.startStyle&&w.from==p&&(c+=" "+k.startStyle),k.endStyle&&w.to==v&&(y||(y=[])).push(k.endStyle,w.to),k.title&&!h&&(h=k.title),k.collapsed&&(!f||Pe(f.marker,k)<0)&&(f=w)):w.from>p&&v>w.from&&(v=w.from)}if(y)for(var C=0;C=d)break;for(var L=Math.min(d,v);;){if(g){var T=p+g.length;if(!f){var M=T>L?g.slice(0,L-p):g;t.addToken(t,M,l?l+s:s,c,p+M.length==v?u:"",h,a)}if(T>=L){g=g.slice(L-p),p=L;break}p=T,c=""}g=i.slice(o,o=n[m++]),l=Jt(n[m++],t.cm.options)}}else for(var N=1;Nn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Dn(e,t,n,r){return Fn(e,Hn(e,t),n,r)}function Wn(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=In(t.map,n,r),s=o.node,u=o.start,c=o.end,h=o.collapse;if(3==s.nodeType){for(var f=0;f<4;f++){for(;u&&ie(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var d;u>0&&(h=r="right"),i=e.options.lineWrapping&&(d=s.getClientRects()).length>1?d["right"==r?d.length-1:0]:s.getBoundingClientRect()}if(l&&a<9&&!u&&(!i||!i.left&&!i.right)){var p=s.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+rr(e.display),top:p.top,bottom:p.bottom}:Pn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,x=t.view.measure.heights,y=0;yt)&&(i=(o=s-a)-1,t>=s&&(l="right")),null!=i){if(r=e[u+2],a==s&&n==(r.insertLeft?"left":"right")&&(l=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],l="left";if("right"==n&&i==s-a)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function Rn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l("before"==u?s-1:s,"before"==u);function c(e,t,n){var r=a[t],i=1==r.level;return l(n?e-1:e,i!=n)}var h=Je(a,s,u),f=Ye,d=c(s,h,"before"==u);return null!=f&&(d.other=c(s,f,"before"!=u)),d}function Xn(e,t){var n=0;t=Ce(e.doc,t),e.options.lineWrapping||(n=rr(e.display)*t.ch);var r=se(e.doc,t.line),i=_e(r)+Sn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Yn(e,t,n,r,i){var o=ge(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function Jn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Yn(r.first,0,null,!0,-1);var i=de(r,n),o=r.first+r.size-1;if(i>o)return Yn(r.first+r.size-1,se(r,o).text.length,null,!0,1);t<0&&(t=0);for(var l=se(r,i);;){var a=tr(e,l,i,t,n),s=Be(l,a.ch+(a.xRel>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=se(r,i=u.line)}}function Zn(e,t,n,r){r-=Un(t);var i=t.text.length,o=le(function(t){return Fn(e,n,t-1).bottom<=r},i,0);return i=le(function(t){return Fn(e,n,t).top>r},o,i),{begin:o,end:i}}function Qn(e,t,n,r){n||(n=Hn(e,t));var i=Kn(e,t,Fn(e,n,r),"line").top;return Zn(e,t,n,i)}function er(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function tr(e,t,n,r,i){i-=_e(t);var o=Hn(e,t),l=Un(t),a=0,s=t.text.length,u=!0,c=Qe(t,e.doc.direction);if(c){var h=(e.options.lineWrapping?function(e,t,n,r,i,o,l){var a=Zn(e,t,r,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,h=null,f=0;f=u||d.to<=s)){var p=1!=d.level,m=Fn(e,r,p?Math.min(u,d.to)-1:Math.max(s,d.from)).right,g=mg)&&(c=d,h=g)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}:function(e,t,n,r,i,o,l){var a=le(function(a){var s=i[a],u=1!=s.level;return er($n(e,ge(n,u?s.to:s.from,u?"before":"after"),"line",t,r),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var u=1!=s.level,c=$n(e,ge(n,u?s.from:s.to,u?"after":"before"),"line",t,r);er(c,o,l,!0)&&c.top>l&&(s=i[a-1])}return s})(e,t,n,o,c,r,i);u=1!=h.level,a=u?h.from:h.to-1,s=u?h.to:h.from-1}var f,d,p=null,m=null,g=le(function(t){var n=Fn(e,o,t);return n.top+=l,n.bottom+=l,!!er(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,m=n),!0)},a,s),v=!1;if(m){var x=r-m.left=b.bottom}return g=oe(t.text,g,1),Yn(n,g,d,v,r-f)}function nr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==En){En=O("pre");for(var t=0;t<49;++t)En.appendChild(document.createTextNode("x")),En.appendChild(O("br"));En.appendChild(document.createTextNode("x"))}N(e.measure,En);var n=En.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),M(e.measure),n||1}function rr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t]);N(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ir(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l)n[e.options.gutters[l]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[l]]=o.clientWidth;return{fixedPos:or(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function or(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function lr(e){var t=nr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/rr(e.display)-3);return function(i){if(Ke(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r=e.display.viewTo||a.to().linet||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),1==l.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,function(e,t,i,h){var g="ltr"==i,v=d(e,g?"left":"right"),x=d(t-1,g?"right":"left"),y=null==n&&0==e,b=null==r&&t==f,w=0==h,k=!m||h==m.length-1;if(x.top-v.top<=3){var C=(u?y:b)&&w,S=(u?b:y)&&k,L=C?a:(g?v:x).left,T=S?s:(g?x:v).right;c(L,v.top,T-L,v.bottom)}else{var M,N,O,A;g?(M=u&&y&&w?a:v.left,N=u?s:p(e,i,"before"),O=u?a:p(t,i,"after"),A=u&&b&&k?s:x.right):(M=u?p(e,i,"before"):a,N=!u&&y&&w?s:v.right,O=!u&&b&&k?a:x.left,A=u?p(t,i,"after"):s),c(M,v.top,N-M,v.bottom),v.bottom0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function gr(e){e.state.focused||(e.display.input.focus(),xr(e))}function vr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,yr(e))},100)}function xr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(it(e,"focus",e,t),e.state.focused=!0,H(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),mr(e))}function yr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(it(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function br(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||c<-.005)&&(he(i.line,o),wr(i.line),i.rest))for(var h=0;h=l&&(o=de(t,_e(se(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function Cr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=or(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",l=0;lo&&(t.bottom=t.top+o);var a=e.doc.height+Ln(n),s=t.topa-r;if(t.topi+o){var c=Math.min(t.top,(u?a:t.bottom)-o);c!=i&&(l.scrollTop=c)}var h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,f=Nn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>f;return d&&(t.right=t.left+f),t.left<10?l.scrollLeft=0:t.leftf+h-3&&(l.scrollLeft=t.right+(d?0:10)-f),l}function Tr(e,t){null!=t&&(Or(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Mr(e){Or(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Nr(e,t,n){null==t&&null==n||Or(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Or(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Xn(e,t.from),r=Xn(e,t.to);Ar(e,n,r,t.margin)}}function Ar(e,t,n,r){var i=Lr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Nr(e,i.scrollLeft,i.scrollTop)}function Dr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||si(e,{top:t}),Wr(e,t,!0),n&&si(e),ri(e,100))}function Wr(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Hr(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Cr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Fr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ln(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Mn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Er=function(e,t,n){this.cm=n;var r=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),tt(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),tt(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,l&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Er.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Er.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Er.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Er.prototype.zeroWidthHack=function(){var e=x&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},Er.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,function r(){var i=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,r)})},Er.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Pr=function(){};function Ir(e,t){t||(t=Fr(e));var n=e.display.barWidth,r=e.display.barHeight;zr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&br(e),zr(e,Fr(e)),n=e.display.barWidth,r=e.display.barHeight}function zr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Pr.prototype.update=function(){return{bottom:0,right:0}},Pr.prototype.setScrollLeft=function(){},Pr.prototype.setScrollTop=function(){},Pr.prototype.clear=function(){};var Rr={native:Er,null:Pr};function Br(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Rr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),tt(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Hr(e,t):Dr(e,t)},e),e.display.scrollbars.addClass&&H(e.display.wrapper,e.display.scrollbars.addClass)}var jr=0;function qr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++jr},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Gr(e){var t=e.curOp;!function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Kr(e){var t=e.cm,n=t.display;e.updatedDisplay&&br(t),e.barMeasure=Fr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Dn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Mn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Nn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Vr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft1&&(l=!0)),null!=u.scrollLeft&&(Hr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(l=!0)),!l)break}return i}(t,Ce(r,e.scrollToPos.from),Ce(r,e.scrollToPos.to),e.scrollToPos.margin);!function(e,t){if(!ot(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=O("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Sn(e.display))+"px;\n height: "+(t.bottom-t.top+Mn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,i)}var o=e.maybeHiddenMarkers,l=e.maybeUnhiddenMarkers;if(o)for(var a=0;at)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Te&&Ge(e.doc,t)i.viewFrom?ei(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)ei(e);else if(t<=i.viewFrom){var o=ti(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):ei(e)}else if(n>=i.viewTo){var l=ti(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):ei(e)}else{var a=ti(e,t,t,-1),s=ti(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(ln(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):ei(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[ur(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==B(l,n)&&l.push(n)}}}function ei(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ti(e,t,n,r){var i,o=ur(e,t),l=e.display.view;if(!Te||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var a=e.display.viewFrom,s=0;s0){if(o==l.length-1)return null;i=a+l[o].size-t,o++}else i=a-t;t+=i,n+=i}for(;Ge(e.doc,n)!=n;){if(o==(r<0?0:l.length-1))return null;n+=r*l[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function ni(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Rt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?Dt(t.mode,r.state):null,s=It(e,o,r,!0);a&&(r.state=a),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var h=!l||l.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!h&&fn)return ri(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&$r(e,function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==ni(e))return!1;Sr(e)&&(ei(e),t.dims=ir(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroml&&n.viewTo-l<20&&(l=Math.min(i,n.viewTo)),Te&&(o=Ge(e.doc,o),l=Ue(e.doc,l));var a=o!=n.viewFrom||l!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=ln(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=ln(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,ur(e,n)))),r.viewTo=n}(e,o,l),n.viewOffset=_e(se(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=ni(e);if(!a&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=W();if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,l=o.firstChild;function a(t){var n=t.nextSibling;return s&&x&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,h=0;h-1&&(d=!1),hn(e,f,c,n)),d&&(M(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(me(e.options,c)))),l=f.node.nextSibling}else{var p=xn(e,f,c,n);o.insertBefore(p,l)}c+=f.size}for(;l;)l=a(l)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=W()&&(e.activeElt.focus(),e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),M(n.cursorDiv),M(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function ai(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Nn(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Ln(e.display)-On(e),n.top)}),t.visible=kr(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&li(e,t);r=!1){br(e);var i=Fr(e);cr(e),Ir(e,i),ci(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function si(e,t){var n=new oi(e,t);if(li(e,n)){br(e),ai(e,n);var r=Fr(e);cr(e),Ir(e,r),ci(e,r),n.finish()}}function ui(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function ci(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Mn(e)+"px"}function hi(e){var t=e.display.gutters,n=e.options.gutters;M(t);for(var r=0;r-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}oi.prototype.signal=function(e,t){at(e,t)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var e=0;ea.clientWidth,c=a.scrollHeight>a.clientHeight;if(i&&u||o&&c){if(o&&x&&s)e:for(var f=t.target,d=l.view;f!=a;f=f.parentNode)for(var p=0;p=0&&ve(e,r.to())<=0)return n}return-1};var yi=function(e,t){this.anchor=e,this.head=t};function bi(e,t){var n=e[t];e.sort(function(e,t){return ve(e.from(),t.from())}),t=B(e,n);for(var r=1;r=0){var l=we(o.from(),i.from()),a=be(o.to(),i.to()),s=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new yi(s?a:l,s?l:a))}}return new xi(e,t)}function wi(e,t){return new xi([new yi(e,t||e)],0)}function ki(e){return e.text?ge(e.from.line+e.text.length-1,X(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ci(e,t){if(ve(e,t.from)<0)return e;if(ve(e,t.to)<=0)return ki(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ki(t).ch-t.to.ch),ge(n,r)}function Si(e,t){for(var n=[],r=0;r1&&e.remove(a.line+1,p-1),e.insert(a.line+1,v)}un(e,"change",e,t)}function Ai(e,t,n){!function e(r,i,o){if(r.linked)for(var l=0;la-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Ei(e.done),X(e.done)):e.done.length&&!X(e.done).ranges?X(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),X(e.done)):void 0}(i,i.lastOp==r)))l=X(o.changes),0==ve(t.from,t.to)&&0==ve(t.from,l.to)?l.to=ki(t):o.changes.push(Fi(e,t));else{var s=X(i.done);for(s&&s.ranges||zi(e.sel,i.done),o={changes:[Fi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,l||it(e,"historyAdded")}function Ii(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,X(i.done),t))?i.done[i.done.length-1]=t:zi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ei(i.undone)}function zi(e,t){var n=X(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ri(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Bi(e){if(!e)return null;for(var t,n=0;n-1&&(X(a)[h]=u[h],delete u[h])}}}return r}function Gi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ve(t,i)<0;o!=ve(n,i)<0?(i=t,t=n):o!=ve(t,n)<0&&(t=n)}return new yi(i,t)}return new yi(n||t,t)}function Ui(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Xi(e,new xi([Gi(e.sel.primary(),t,n,i)],0),r)}function Ki(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(i&&(it(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!s.atomic)continue;if(n){var u=s.find(r<0?1:-1),c=void 0;if((r<0?s.inclusiveRight:s.inclusiveLeft)&&(u=no(e,u,-r,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(c=ve(u,n))&&(r<0?c<0:c>0))return eo(e,u,t,r,i)}var h=s.find(r<0?-1:1);return(r<0?s.inclusiveLeft:s.inclusiveRight)&&(h=no(e,h,r,h.line==t.line?o:null)),h?eo(e,h,t,r,i):null}}return t}function to(e,t,n,r,i){var o=r||1,l=eo(e,t,n,o,i)||!i&&eo(e,t,n,o,!0)||eo(e,t,n,-o,i)||!i&&eo(e,t,n,-o,!0);return l||(e.cantEdit=!0,ge(e.first,0))}function no(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?Ce(e,ge(t.line-1)):null:n>0&&t.ch==(r||se(e,t.line)).text.length?t.line0)){var c=[s,1],h=ve(u.from,a.from),f=ve(u.to,a.to);(h<0||!l.inclusiveLeft&&!h)&&c.push({from:u.from,to:a.from}),(f>0||!l.inclusiveRight&&!f)&&c.push({from:a.to,to:u.to}),i.splice.apply(i,c),s+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)lo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else lo(e,t)}}function lo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ve(t.from,t.to)){var n=Si(e,t);Pi(e,t,n,e.cm?e.cm.curOp.id:NaN),uo(e,t,n,Ae(e,t));var r=[];Ai(e,function(e,n){n||-1!=B(r,e.history)||(po(e.history,t),r.push(e.history)),uo(e,t,null,Ae(e,t))})}}function ao(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,l=e.sel,a="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u=0;--d){var p=f(d);if(p)return p.v}}}}function so(e,t){if(0!=t&&(e.first+=t,e.sel=new xi(Y(e.sel.ranges,function(e){return new yi(ge(e.anchor.line+t,e.anchor.ch),ge(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Zr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ge(o,se(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ue(e,t.from,t.to),n||(n=Si(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=fe(qe(se(r,o.line))),r.iter(s,l.line+1,function(e){if(e==i.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&<(e),Oi(r,t,n,lr(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(e){var t=$e(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=se(e,r).stateAfter;if(i&&(!(i instanceof Et)||r+i.lookAhead1||!(this.children[0]instanceof go))){var a=[];this.collapse(a),this.children=[new go(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==l&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(je(e,t.line,t,n,o)||t.line!=n.line&&je(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Te=!0}o.addToHistory&&Pi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a,s=t.line,u=e.cm;if(e.iter(s,n.line+1,function(e){u&&o.collapsed&&!u.options.lineWrapping&&qe(e)==u.display.maxLine&&(a=!0),o.collapsed&&s!=t.line&&he(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Me(o,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Ke(e,t)&&he(t,0)}),o.clearOnEnter&&tt(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Le=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++bo,o.atomic=!0),u){if(a&&(u.curOp.updateMaxLine=!0),o.collapsed)Zr(u,t.line,n.line+1);else if(o.className||o.title||o.startStyle||o.endStyle||o.css)for(var c=t.line;c<=n.line;c++)Qr(u,c,"text");o.atomic&&Zi(u.doc),un(u,"markerAdded",u,o)}return o}wo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&qr(e),at(this,"clear")){var n=this.find();n&&un(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Zr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Zi(e.doc)),e&&un(e,"markerCleared",e,this,r,i),t&&Gr(e),this.parent&&this.parent.clear()}},wo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;s--)oo(this,r[s]);a?$i(this,a):this.cm&&Mr(this.cm)}),undo:Jr(function(){ao(this,"undo")}),redo:Jr(function(){ao(this,"redo")}),undoSelection:Jr(function(){ao(this,"undo",!0)}),redoSelection:Jr(function(){ao(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=Ce(this,e),t=Ce(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),Ce(this,ge(n,t))},indexFromPos:function(e){var t=(e=Ce(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var c=e.dataTransfer.getData("Text");if(c){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Yi(t.doc,wi(n,n)),h)for(var f=0;f=0;t--)co(e.doc,"",r[t].from,r[t].to,"+delete");Mr(e)})}function $o(e,t,n){var r=oe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Xo(e,t,n){var r=$o(e,t.ch,n);return null==r?null:new ge(t.line,r,n<0?"after":"before")}function Yo(e,t,n,r,i){if(e){var o=Qe(n,t.doc.direction);if(o){var l,a=i<0?X(o):o[0],s=i<0==(1==a.level),u=s?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var c=Hn(t,n);l=i<0?n.text.length-1:0;var h=Fn(t,c,l).top;l=le(function(e){return Fn(t,c,e).top==h},i<0==(1==a.level)?a.from:a.to-1,l),"before"==u&&(l=$o(n,l,1))}else l=i<0?a.to:a.from;return new ge(r,l,u)}}return new ge(r,i<0?n.text.length:0,i<0?"before":"after")}Ro.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ro.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ro.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ro.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ro.default=x?Ro.macDefault:Ro.pcDefault;var Jo={selectAll:ro,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return _o(e,function(t){if(t.empty()){var n=se(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new ge(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ge(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=se(e.doc,i.line-1).text;l&&(i=new ge(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),ge(i.line-1,l.length-1),i,"+transpose"))}n.push(new yi(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return $r(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(ve((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(ve(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=Xr(e,function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,rt(i.wrapper.ownerDocument,"mouseup",u),rt(i.wrapper.ownerDocument,"mousemove",c),rt(i.scroller,"dragstart",h),rt(i.scroller,"drop",u),o||(ut(t),r.addNew||Ui(e.doc,n,null,null,r.extend),s||l&&9==a?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},h=function(){return o=!0};s&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),tt(i.wrapper.ownerDocument,"mouseup",u),tt(i.wrapper.ownerDocument,"mousemove",c),tt(i.scroller,"dragstart",h),tt(i.scroller,"drop",u),vr(e),setTimeout(function(){return i.input.focus()},20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;ut(t);var l,a,s=o.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(n),l=a>-1?u[a]:new yi(n,n)):(l=o.sel.primary(),a=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(l=new yi(n,n)),n=sr(e,t,!0,!0),a=-1;else{var c=dl(e,n,r.unit);l=r.extend?Gi(l,c.anchor,c.head,r.extend):c}r.addNew?-1==a?(a=u.length,Xi(o,bi(u.concat([l]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&"char"==r.unit&&!r.extend?(Xi(o,bi(u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):Vi(o,a,l,U):(a=0,Xi(o,new xi([l],0),U),s=o.sel);var h=n;function f(t){if(0!=ve(h,t))if(h=t,"rectangle"==r.unit){for(var i=[],u=e.options.tabSize,c=z(se(o,n.line).text,n.ch,u),f=z(se(o,t.line).text,t.ch,u),d=Math.min(c,f),p=Math.max(c,f),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=se(o,m).text,x=V(v,d,u);d==p?i.push(new yi(ge(m,x),ge(m,x))):v.length>x&&i.push(new yi(ge(m,x),ge(m,V(v,p,u))))}i.length||i.push(new yi(n,n)),Xi(o,bi(s.ranges.slice(0,a).concat(i),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,b=l,w=dl(e,t,r.unit),k=b.anchor;ve(w.anchor,k)>0?(y=w.head,k=we(b.from(),w.anchor)):(y=w.anchor,k=be(b.to(),w.head));var C=s.ranges.slice(0);C[a]=function(e,t){var n=t.anchor,r=t.head,i=se(e.doc,n.line);if(0==ve(n,r)&&n.sticky==r.sticky)return t;var o=Qe(i);if(!o)return t;var l=Je(o,n.ch,n.sticky),a=o[l];if(a.from!=n.ch&&a.to!=n.ch)return t;var s,u=l+(a.from==n.ch==(1!=a.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=Je(o,r.ch,r.sticky),h=c-l||(r.ch-n.ch)*(1==a.level?-1:1);s=c==u-1||c==u?h<0:h>0}var f=o[u+(s?-1:0)],d=s==(1==f.level),p=d?f.from:f.to,m=d?"after":"before";return n.ch==p&&n.sticky==m?t:new yi(new ge(n.line,p,m),r)}(e,new yi(Ce(o,k),y)),Xi(o,bi(C,a),U)}}var d=i.wrapper.getBoundingClientRect(),p=0;function m(t){e.state.selectingText=!1,p=1/0,ut(t),i.input.focus(),rt(i.wrapper.ownerDocument,"mousemove",g),rt(i.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var g=Xr(e,function(t){0!==t.buttons&&pt(t)?function t(n){var l=++p,a=sr(e,n,!0,"rectangle"==r.unit);if(a)if(0!=ve(a,h)){e.curOp.focus=W(),f(a);var s=kr(i,o);(a.line>=s.to||a.lined.bottom?20:0;u&&setTimeout(Xr(e,function(){p==l&&(i.scroller.scrollTop+=u,t(n))}),50)}}(t):m(t)}),v=Xr(e,m);e.state.selectingText=v,tt(i.wrapper.ownerDocument,"mousemove",g),tt(i.wrapper.ownerDocument,"mouseup",v)}(e,r,t,o)}(t,i,o,e):dt(e)==n.scroller&&ut(e):2==r?(i&&Ui(t.doc,i),setTimeout(function(){return n.input.focus()},20)):3==r&&(C?gl(t,e):vr(t)))}}}function dl(e,t,n){if("char"==n)return new yi(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new yi(ge(t.line,0),Ce(e.doc,ge(t.line+1,0)));var r=n(e,t);return new yi(r.from,r.to)}function pl(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ut(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!at(e,n))return ht(t);o-=a.top-l.viewOffset;for(var s=0;s=i){var c=de(e.doc,o),h=e.options.gutters[s];return it(e,n,e,c,h,t),ht(t)}}}function ml(e,t){return pl(e,t,"gutterClick",!0)}function gl(e,t){Cn(e.display,t)||vl(e,t)||ot(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function vl(e,t){return!!at(e,"gutterContextMenu")&&pl(e,t,"gutterContextMenu",!1)}function xl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),jn(e)}hl.prototype.compare=function(e,t,n){return this.time+400>e&&0==ve(t,this.pos)&&n==this.button};var yl={toString:function(){return"CodeMirror.Init"}},bl={},wl={};function kl(e){hi(e),Zr(e),Cr(e)}function Cl(e,t,n){var r=n&&n!=yl;if(!t!=!r){var i=e.display.dragFunctions,o=t?tt:rt;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Sl(e){e.options.lineWrapping?(H(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),Xe(e)),ar(e),Zr(e),jn(e),setTimeout(function(){return Ir(e)},100)}function Ll(e,t){var n=this;if(!(this instanceof Ll))return new Ll(e,t);this.options=t=t?I(t):{},I(bl,t,!1),fi(t);var r=t.value;"string"==typeof r?r=new Mo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ll.inputStyles[t.inputStyle](this),o=this.display=new ae(e,r,i);for(var u in o.wrapper.CodeMirror=this,hi(this),xl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Br(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),l&&a<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(e){var t=e.display;tt(t.scroller,"mousedown",Xr(e,fl)),tt(t.scroller,"dblclick",l&&a<11?Xr(e,function(t){if(!ot(e,t)){var n=sr(e,t);if(n&&!ml(e,t)&&!Cn(e.display,t)){ut(t);var r=e.findWordAt(n);Ui(e.doc,r.anchor,r.head)}}}):function(t){return ot(e,t)||ut(t)}),C||tt(t.scroller,"contextmenu",function(t){return gl(e,t)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}tt(t.scroller,"touchstart",function(i){if(!ot(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!ml(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),tt(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),tt(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!Cn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var l,a=e.coordsChar(t.activeTouch,"page");l=!r.prev||o(r,r.prev)?new yi(a,a):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(a):new yi(ge(a.line,0),Ce(e.doc,ge(a.line+1,0))),e.setSelection(l.anchor,l.head),e.focus(),ut(n)}i()}),tt(t.scroller,"touchcancel",i),tt(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Dr(e,t.scroller.scrollTop),Hr(e,t.scroller.scrollLeft,!0),it(e,"scroll",e))}),tt(t.scroller,"mousewheel",function(t){return vi(e,t)}),tt(t.scroller,"DOMMouseScroll",function(t){return vi(e,t)}),tt(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){ot(e,t)||ft(t)},over:function(t){ot(e,t)||(function(e,t){var n=sr(e,t);if(n){var r=document.createDocumentFragment();fr(e,n,r),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),N(e.display.dragCursor,r)}}(e,t),ft(t))},start:function(t){return function(e,t){if(l&&(!e.state.draggingText||+new Date-No<100))ft(t);else if(!ot(e,t)&&!Cn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),h&&n.parentNode.removeChild(n)}}(e,t)},drop:Xr(e,Oo),leave:function(t){ot(e,t)||Ao(e)}};var s=t.input.getField();tt(s,"keyup",function(t){return al.call(e,t)}),tt(s,"keydown",Xr(e,ll)),tt(s,"keypress",Xr(e,sl)),tt(s,"focus",function(t){return xr(e,t)}),tt(s,"blur",function(t){return yr(e,t)})}(this),Ho(),qr(this),this.curOp.forceUpdate=!0,Di(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout(P(xr,this),20):yr(this),wl)wl.hasOwnProperty(u)&&wl[u](n,t[u],yl);Sr(this),t.finishInit&&t.finishInit(this);for(var c=0;c150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?z(se(o,t-1).text,null,l):0:"add"==n?u=s+e.options.indentUnit:"subtract"==n?u=s-e.options.indentUnit:"number"==typeof n&&(u=s+n),u=Math.max(0,u);var h="",f=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/l);d;--d)f+=l,h+="\t";if(f1)if(Nl&&Nl.text.join("\n")==t){if(r.ranges.length%Nl.text.length==0){u=[];for(var c=0;c=0;h--){var f=r.ranges[h],d=f.from(),p=f.to();f.empty()&&(n&&n>0?d=ge(d.line,d.ch-n):e.state.overwrite&&!a?p=ge(p.line,Math.min(se(o,p.line).text.length,p.ch+X(s).length)):Nl&&Nl.lineWise&&Nl.text.join("\n")==t&&(d=p=ge(d.line,0))),l=e.curOp.updateInput;var m={from:d,to:p,text:u?u[h%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming?"cut":"+input")};oo(e.doc,m),un(e,"inputRead",e,m)}t&&!a&&Wl(e,t),Mr(e),e.curOp.updateInput=l,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Dl(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||$r(t,function(){return Al(t,n,0,null,"paste")}),!0}function Wl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=Ml(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(se(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Ml(e,i.head.line,"smart"));l&&un(e,"electricInput",e,i.head.line)}}}function Hl(e){for(var t=[],n=[],r=0;r=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=Je(i,n.ch,n.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(r>0?l.to>n.ch:l.from=l.from&&f>=c.begin)){var d=h?"before":"after";return new ge(n.line,f,d)}}var p=function(e,t,r){for(var o=function(e,t){return t?new ge(n.line,s(e,1),"before"):new ge(n.line,e,"after")};e>=0&&e0==(1!=l.level),u=a?r.begin:s(r.end,-1);if(l.from<=u&&u0?c.end:s(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=p(r>0?0:i.length-1,r,u(g)))?null:m}(e.cm,a,t,n):Xo(a,t,n))){if(r||((l=t.line+n)=e.first+e.size||(t=new ge(l,t.ch,t.sticky),!(a=se(e,l)))))return!1;t=Yo(i,e.cm,a,t.line,n)}else t=o;return!0}if("char"==r)s();else if("column"==r)s(!0);else if("word"==r||"group"==r)for(var u=null,c="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||s(!f);f=!1){var d=a.text.charAt(t.ch)||"\n",p=te(d,h)?"w":c&&"\n"==d?"n":!c||/\s/.test(d)?null:"p";if(!c||f||p||(p="s"),u&&u!=p){n<0&&(n=1,s(),t.sticky="after");break}if(p&&(u=p),n>0&&!s(!f))break}var m=to(e,t,o,l,!0);return xe(o,m)&&(m.hitSide=!0),m}function Il(e,t,n,r){var i,o,l=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*nr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Jn(e,a,i)).outside;){if(n<0?i<=0:i>=l.height){o.hitSide=!0;break}i+=5*n}return o}var zl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Rl(e,t){var n=Wn(e,t.line);if(!n||n.hidden)return null;var r=se(e.doc,t.line),i=An(n,r,t.line),o=Qe(r,e.doc.direction),l="left";if(o){var a=Je(o,t.ch);l=a%2?"right":"left"}var s=In(i.map,t.ch,l);return s.offset="right"==s.collapse?s.end:s.start,s}function Bl(e,t){return t&&(e.bad=!0),e}function jl(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Bl(e.clipPos(ge(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&Rl(t,i)||{node:s[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(l=ge(l.line-1,se(r.doc,l.line-1).length)),a.ch==se(r.doc,a.line).text.length&&a.linei.viewTo-1)return!1;l.line==i.viewFrom||0==(e=ur(r,l.line))?(t=fe(i.view[0].line),n=i.view[0].node):(t=fe(i.view[e].line),n=i.view[e-1].node.nextSibling);var s,u,c=ur(r,a.line);if(c==i.view.length-1?(s=i.viewTo-1,u=i.lineDiv.lastChild):(s=fe(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var h=r.doc.splitLines(function(e,t,n,r,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(){l&&(o+=a,s&&(o+=a),l=s=!1)}function c(e){e&&(u(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,f=t.getAttribute("cm-marker");if(f){var d=e.findMarks(ge(r,0),ge(i+1,0),(g=+f,function(e){return e.id==g}));return void(d.length&&(o=d[0].find(0))&&c(ue(e.doc,o.from,o.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&u();for(var m=0;m1&&f.length>1;)if(X(h)==X(f))h.pop(),f.pop(),s--;else{if(h[0]!=f[0])break;h.shift(),f.shift(),t++}for(var d=0,p=0,m=h[0],g=f[0],v=Math.min(m.length,g.length);dl.ch&&x.charCodeAt(x.length-p-1)==y.charCodeAt(y.length-p-1);)d--,p++;h[h.length-1]=x.slice(0,x.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var w=ge(t,d),k=ge(s,f.length?X(f).length-p:0);return h.length>1||h[0]||ve(w,k)?(co(r.doc,h,w,k,"+input"),!0):void 0},zl.prototype.ensurePolled=function(){this.forceCompositionEnd()},zl.prototype.reset=function(){this.forceCompositionEnd()},zl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},zl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},zl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||$r(this.cm,function(){return Zr(e.cm)})},zl.prototype.setUneditable=function(e){e.contentEditable="false"},zl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Xr(this.cm,Al)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},zl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},zl.prototype.onContextMenu=function(){},zl.prototype.resetPosition=function(){},zl.prototype.needsContentAttribute=!0;var Gl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};Gl.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ot(r,e)){if(r.somethingSelected())Ol({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Hl(r);Ol({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,G):(n.prevInput="",i.value=t.text.join("\n"),E(i))}"cut"==e.type&&(r.state.cutIncoming=!0)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),tt(i,"input",function(){l&&a>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),tt(i,"paste",function(e){ot(r,e)||Dl(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),tt(i,"cut",o),tt(i,"copy",o),tt(e.scroller,"paste",function(t){Cn(e,t)||ot(r,t)||(r.state.pasteIncoming=!0,n.focus())}),tt(e.lineSpace,"selectstart",function(t){Cn(e,t)||ut(t)}),tt(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),tt(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Gl.prototype.createField=function(e){this.wrapper=El(),this.textarea=this.wrapper.firstChild},Gl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=hr(e);if(e.options.moveInputWithCursor){var i=$n(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return r},Gl.prototype.showSelection=function(e){var t=this.cm,n=t.display;N(n.cursorDiv,e.cursors),N(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Gl.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&E(this.textarea),l&&a>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",l&&a>=9&&(this.hasSelection=null))}},Gl.prototype.getField=function(){return this.textarea},Gl.prototype.supportsTouch=function(){return!1},Gl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||W()!=this.textarea))try{this.textarea.focus()}catch(e){}},Gl.prototype.blur=function(){this.textarea.blur()},Gl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Gl.prototype.receivedFocus=function(){this.slowPoll()},Gl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Gl.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Gl.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||kt(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(l&&a>=9&&this.hasSelection===i||x&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,u=Math.min(r.length,i.length);s1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Gl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Gl.prototype.onKeyPress=function(){l&&a>=9&&(this.hasSelection=null),this.fastPoll()},Gl.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea,o=sr(n,e),u=r.scroller.scrollTop;if(o&&!h){var c=n.options.resetSelectionOnContextMenu;c&&-1==n.doc.sel.contains(o)&&Xr(n,Xi)(n.doc,wi(o),G);var f=i.style.cssText,d=t.wrapper.style.cssText;t.wrapper.style.cssText="position: absolute";var p,m=t.wrapper.getBoundingClientRect();if(i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(l?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(p=window.scrollY),r.input.focus(),s&&window.scrollTo(null,p),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=!0,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),l&&a>=9&&v(),C){ft(e);var g=function(){rt(window,"mouseup",g),setTimeout(x,20)};tt(window,"mouseup",g)}else setTimeout(x,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function x(){if(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=f,l&&a<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart){(!l||l&&a<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Xr(n,ro)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Gl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Gl.prototype.setUneditable=function(){},Gl.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=yl&&i(e,t,n)}:i)}e.defineOption=n,e.Init=yl,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Ti(e)},!0),n("indentUnit",2,Ti,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Mi(e),jn(e),Zr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ge(r,o))}r++});for(var i=n.length-1;i>=0;i--)co(e.doc,t,n[i],ge(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=yl&&e.refresh()}),n("specialCharPlaceholder",Qt,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("rtlMoveVisually",!b),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){xl(e),kl(e)},!0),n("keyMap","default",function(e,t,n){var r=Vo(t),i=n!=yl&&Vo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Sl,!0),n("gutters",[],function(e){fi(e.options),kl(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?or(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Ir(e)},!0),n("scrollbarStyle","native",function(e){Br(e),Ir(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e){fi(e.options),kl(e)},!0),n("firstLineNumber",1,kl,!0),n("lineNumberFormatter",function(e){return e},kl,!0),n("showCursorWhenSelecting",!1,cr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("readOnly",!1,function(e,t){"nocursor"==t&&(yr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,Cl),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,cr,!0),n("singleCursorHeightPerLine",!0,cr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Mi,!0),n("addModeClass",!1,Mi,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,Mi,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(Ll),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Xr(this,t[e])(this,n,i),it(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Vo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Ml(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Mr(this));else{var o=i.from(),l=i.to(),a=Math.max(n,o.line);n=Math.min(this.lastLine(),l.line-(l.ch?0:1))+1;for(var s=a;s0&&Vi(this.doc,r,new yi(o,u[r].to()),G)}}}),getTokenAt:function(e,t){return Ut(this,e,t)},getLineTokens:function(e,t){return Ut(this,ge(e),t,!0)},getTokenTypeAt:function(e){e=Ce(this.doc,e);var t,n=zt(this,se(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var l=r+i>>1;if((l?n[2*l-1]:0)>=o)i=l;else{if(!(n[2*l+1]o&&(e=o,i=!0),r=se(this.doc,e)}else r=e;return Kn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-_e(r):0)},defaultTextHeight:function(){return nr(this.display)},defaultCharWidth:function(){return rr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,l,a,s=this.display,u=(e=$n(this,Ce(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==r)u=e.top;else if("above"==r||"near"==r){var h=Math.max(s.wrapper.clientHeight,this.doc.height),f=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>h)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=h&&(u=e.bottom),c+t.offsetWidth>f&&(c=f-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(o=this,l={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(a=Lr(o,l)).scrollTop&&Dr(o,a.scrollTop),null!=a.scrollLeft&&Hr(o,a.scrollLeft))},triggerOnKeyDown:Yr(ll),triggerOnKeyPress:Yr(sl),triggerOnKeyUp:al,triggerOnMouseDown:Yr(fl),execCommand:function(e){if(Jo.hasOwnProperty(e))return Jo[e].call(null,this)},triggerElectric:Yr(function(e){Wl(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=Ce(this.doc,e),l=0;l0&&a(n.charAt(r-1));)--r;for(;i.5)&&ar(this),it(this,"refresh",this)}),swapDoc:Yr(function(e){var t=this.doc;return t.cm=null,Di(this,e),jn(this),this.display.input.reset(),Nr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,un(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},st(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Ll);var Ul,Kl="iter insert remove copy getEditor constructor".split(" ");for(var Vl in Mo.prototype)Mo.prototype.hasOwnProperty(Vl)&&B(Kl,Vl)<0&&(Ll.prototype[Vl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Mo.prototype[Vl]));return st(Mo),Ll.inputStyles={textarea:Gl,contenteditable:zl},Ll.defineMode=function(e){Ll.defaults.mode||"null"==e||(Ll.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Lt[e]=t}.apply(this,arguments)},Ll.defineMIME=function(e,t){Tt[e]=t},Ll.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ll.defineMIME("text/plain","null"),Ll.defineExtension=function(e,t){Ll.prototype[e]=t},Ll.defineDocExtension=function(e,t){Mo.prototype[e]=t},Ll.fromTextArea=function(e,t){if((t=t?I(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=W();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(tt(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=l}}catch(e){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(rt(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var a=Ll(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a},(Ul=Ll).off=rt,Ul.on=tt,Ul.wheelEventPixels=gi,Ul.Doc=Mo,Ul.splitLines=wt,Ul.countColumn=z,Ul.findColumn=V,Ul.isWordChar=ee,Ul.Pass=q,Ul.signal=it,Ul.Line=_t,Ul.changeEnd=ki,Ul.scrollbarModel=Rr,Ul.Pos=ge,Ul.cmpPos=ve,Ul.modes=Lt,Ul.mimeModes=Tt,Ul.resolveMode=Mt,Ul.getMode=Nt,Ul.modeExtensions=Ot,Ul.extendMode=At,Ul.copyState=Dt,Ul.startState=Ht,Ul.innerMode=Wt,Ul.commands=Jo,Ul.keyMap=Ro,Ul.keyName=Ko,Ul.isModifierKey=Go,Ul.lookupKey=qo,Ul.normalizeKeyMap=jo,Ul.StringStream=Ft,Ul.SharedTextMarker=Co,Ul.TextMarker=wo,Ul.LineWidget=xo,Ul.e_preventDefault=ut,Ul.e_stopPropagation=ct,Ul.e_stop=ft,Ul.addClass=H,Ul.contains=D,Ul.rmClass=T,Ul.keyNames=Eo,Ll.version="5.40.2",Ll}()},289:function(e,t,n){!function(e){"use strict";e.defineMode("markdown",function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var l in o)o.hasOwnProperty(l)&&n.tokenTypeOverrides[l]&&(o[l]=n.tokenTypeOverrides[l]);var a=/^([*\-_])(?:\s*\1){2,}\s*$/,s=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,c=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,h=/^ *(?:\={1,}|-{1,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,d=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,p=/^\s*\[[^\]]+?\]:.*$/,m=/[!\"#$%&\'()*+,\-\.\/:;<=>?@\[\\\]^_`{|}~—]/;function g(e,t,n){return t.f=t.inline=n,n(e,t)}function v(e,t,n){return t.f=t.block=n,n(e,t)}function x(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==b){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=S,t.block=y,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function y(r,i){var l,f=r.column()===i.indentation,m=!(l=i.prevLine.stream)||!/\S/.test(l.string),v=i.indentedCode,x=i.prevLine.hr,y=!1!==i.list,b=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var C=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,y)){for(i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,i.list=null;C=4&&(v||i.prevLine.fencedCodeEnd||i.prevLine.header||m))return r.skipToEnd(),i.indentedCode=!0,o.code;if(r.eatSpace())return null;if(f&&i.indentation<=b&&(T=r.match(c))&&T[1].length<=6)return i.quote=0,i.header=T[1].length,i.thisLine.header=!0,n.highlightFormatting&&(i.formatting="header"),i.f=i.inline,k(i);if(i.indentation<=b&&r.eat(">"))return i.quote=f?1:i.quote+1,n.highlightFormatting&&(i.formatting="quote"),r.eatSpace(),k(i);if(!L&&!i.setext&&f&&i.indentation<=b&&(T=r.match(s))){var M=T[1]?"ol":"ul";return i.indentation=C+r.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),n.taskLists&&r.match(u,!1)&&(i.taskList=!0),i.f=i.inline,n.highlightFormatting&&(i.formatting=["list","list-"+M]),k(i)}return f&&i.indentation<=b&&(T=r.match(d,!0))?(i.quote=0,i.fencedEndRE=new RegExp(T[1]+"+ *$"),i.localMode=n.fencedCodeBlockHighlighting&&function(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}(T[2]),i.localMode&&(i.localState=e.startState(i.localMode)),i.f=i.block=w,n.highlightFormatting&&(i.formatting="code-block"),i.code=-1,k(i)):i.setext||!(S&&y||i.quote||!1!==i.list||i.code||L||p.test(r.string))&&(T=r.lookAhead(1))&&(T=T.match(h))?(i.setext?(i.header=i.setext,i.setext=0,r.skipToEnd(),n.highlightFormatting&&(i.formatting="header")):(i.header="="==T[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,k(i)):L?(r.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,o.hr):"["===r.peek()?g(r,i,N):g(r,i,i.inline)}function b(t,n){var o=r.token(t,n.htmlState);if(!i){var l=e.innerMode(r,n.htmlState);("xml"==l.mode.name&&null===l.state.tagStart&&!l.state.context&&l.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=S,n.block=y,n.htmlState=null)}return o}function w(e,t){var r,i=t.listStack[t.listStack.length-1]||0,l=t.indentation=e.quote?t.push(o.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(o.linkHref,"url"):(e.strong&&t.push(o.strong),e.em&&t.push(o.em),e.strikethrough&&t.push(o.strikethrough),e.emoji&&t.push(o.emoji),e.linkText&&t.push(o.linkText),e.code&&t.push(o.code),e.image&&t.push(o.image),e.imageAltText&&t.push(o.imageAltText,"link"),e.imageMarker&&t.push(o.imageMarker)),e.header&&t.push(o.header,o.header+"-"+e.header),e.quote&&(t.push(o.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(o.quote+"-"+e.quote):t.push(o.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(o.list2):t.push(o.list3):t.push(o.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function C(e,t){if(e.match(f,!0))return k(t)}function S(t,i){var l=i.text(t,i);if(void 0!==l)return l;if(i.list)return i.list=null,k(i);if(i.taskList){var a=" "===t.match(u,!0)[1];return a?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,k(i)}if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),k(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var c=s;"("===s&&(c=")");var h="^\\s*(?:[^"+(c=(c+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+c;if(t.match(new RegExp(h),!0))return o.linkHref}if("`"===s){var f=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var d=t.current().length;if(0!=i.code||i.quote&&1!=d){if(d==i.code){var p=k(i);return i.code=0,p}return i.formatting=f,k(i)}return i.code=d,k(i)}if(i.code)return k(i);if("\\"===s&&(t.next(),n.highlightFormatting)){var g=k(i),x=o.formatting+"-escape";return g?g+" "+x:x}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),k(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),k(i);if("]"===s&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");var g=k(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=T,g}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)?k(i):(i.linkText=!0,n.highlightFormatting&&(i.formatting="link"),k(i));if("]"===s&&i.linkText){n.highlightFormatting&&(i.formatting="link");var g=k(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?T:S,g}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=L,n.highlightFormatting&&(i.formatting="link");var g=k(i);return g?g+=" ":g="",g+o.linkInline}if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=L,n.highlightFormatting&&(i.formatting="link");var g=k(i);return g?g+=" ":g="",g+o.linkEmail}if(n.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var y=t.string.indexOf(">",t.pos);if(-1!=y){var w=t.string.substring(t.start,y);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(w)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),v(t,i,b)}if(n.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var C=1,M=1==t.pos?" ":t.string.charAt(t.pos-2);C<3&&t.eat(s);)C++;var N=t.peek()||" ",O=!/\s/.test(N)&&(!m.test(N)||/\s/.test(M)||m.test(M)),A=!/\s/.test(M)&&(!m.test(M)||/\s/.test(N)||m.test(N)),D=null,W=null;if(C%2&&(i.em||!O||"*"!==s&&A&&!m.test(M)?i.em!=s||!A||"*"!==s&&O&&!m.test(N)||(D=!1):D=!0),C>1&&(i.strong||!O||"*"!==s&&A&&!m.test(M)?i.strong!=s||!A||"*"!==s&&O&&!m.test(N)||(W=!1):W=!0),null!=W||null!=D){n.highlightFormatting&&(i.formatting=null==D?"strong":null==W?"em":"strong em"),!0===D&&(i.em=s),!0===W&&(i.strong=s);var p=k(i);return!1===D&&(i.em=!1),!1===W&&(i.strong=!1),p}}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return k(i);t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough){n.highlightFormatting&&(i.formatting="strikethrough");var p=k(i);return i.strikethrough=!1,p}if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),k(i)}else if(" "===s&&t.match(/^~~/,!0)){if(" "===t.peek())return k(i);t.backUp(2)}if(n.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var H=k(i);return i.emoji=!1,H}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),k(i)}function L(e,t){var r=e.next();if(">"===r){t.f=t.inline=S,n.highlightFormatting&&(t.formatting="link");var i=k(t);return i?i+=" ":i="",i+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function T(e,t){if(e.eatSpace())return null;var r,i=e.next();return"("===i||"["===i?(t.f=t.inline=(r="("===i?")":"]",function(e,t){var i=e.next();if(i===r){t.f=t.inline=S,n.highlightFormatting&&(t.formatting="link-string");var o=k(t);return t.linkHref=!1,o}return e.match(M[r]),t.linkHref=!0,k(t)}),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,k(t)):"error"}var M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=O,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,k(t)):g(e,t,S)}function O(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=A,n.highlightFormatting&&(t.formatting="link");var r=k(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function A(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=S,o.linkHref+" url")}var D={startState:function(){return{f:y,prevLine:{stream:null},thisLine:{stream:null},block:y,htmlState:null,indentation:0,inline:S,text:C,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return x(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=b)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==b?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:D}},indent:function(t,n,i){return t.block==b&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:x,getType:k,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return D},"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}(n(274),n(290),n(291))},290:function(e,t,n){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,i){var o,l,a=r.indentUnit,s={},u=i.htmlMode?t:n;for(var c in u)s[c]=u[c];for(var c in i)s[c]=i[c];function h(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(d("atom","]]>")):null:e.match("--")?n(d("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(function e(t){return function(n,r){for(var i;null!=(i=n.next());){if("<"==i)return r.tokenize=e(t+1),r.tokenize(n,r);if(">"==i){if(1==t){r.tokenize=h;break}return r.tokenize=e(t-1),r.tokenize(n,r)}}return"meta"}}(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=d("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function f(e,t){var n,r,i=e.next();if(">"==i||"/"==i&&e.eat(">"))return t.tokenize=h,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){t.tokenize=h,t.state=v,t.tagName=t.tagStart=null;var l=t.tokenize(e,t);return l?l+" tag error":"tag error"}return/[\'\"]/.test(i)?(t.tokenize=(n=i,(r=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=f;break}return"string"}).isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=h;break}n.next()}return e}}function p(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(s.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function m(e){e.context&&(e.context=e.context.prev)}function g(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!s.contextGrabbers.hasOwnProperty(n)||!s.contextGrabbers[n].hasOwnProperty(t))return;m(e)}}function v(e,t,n){return"openTag"==e?(n.tagStart=t.column(),x):"closeTag"==e?y:v}function x(e,t,n){return"word"==e?(n.tagName=t.current(),l="tag",k):s.allowMissingTagName&&"endTag"==e?(l="tag bracket",k(e,0,n)):(l="error",x)}function y(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&s.implicitlyClosed.hasOwnProperty(n.context.tagName)&&m(n),n.context&&n.context.tagName==r||!1===s.matchClosing?(l="tag",b):(l="tag error",w)}return s.allowMissingTagName&&"endTag"==e?(l="tag bracket",b(e,0,n)):(l="error",w)}function b(e,t,n){return"endTag"!=e?(l="error",b):(m(n),v)}function w(e,t,n){return l="error",b(e,0,n)}function k(e,t,n){if("word"==e)return l="attribute",C;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||s.autoSelfClosers.hasOwnProperty(r)?g(n,r):(g(n,r),n.context=new p(n,r,i==n.indented)),v}return l="error",k}function C(e,t,n){return"equals"==e?S:(s.allowMissing||(l="error"),k(e,0,n))}function S(e,t,n){return"string"==e?L:"word"==e&&s.allowUnquoted?(l="string",k):(l="error",k(e,0,n))}function L(e,t,n){return"string"==e?L:k(e,0,n)}return h.isInText=!0,{startState:function(e){var t={tokenize:h,state:v,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(l=null,t.state=t.state(o||n,e,t),l&&(n="error"==l?n+" error":l)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+a;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=h)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==s.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+a*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(e){e.state==S&&(e.state=k)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(274))},291:function(e,t,n){!function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var t=0;t-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n=48&&e<=57}},function(r,e,t){"use strict";r.exports=c;var n=t(324),i=n.CONTINUE,o=n.SKIP,a=n.EXIT;function c(r,e,t,i){"function"==typeof e&&"function"!=typeof t&&(i=t,t=e,e=null),n(r,e,function(r,e){var n=e[e.length-1],i=n?n.children.indexOf(r):null;return t(r,i,n)},i)}c.CONTINUE=i,c.SKIP=o,c.EXIT=a},function(r,e,t){"use strict";var n=t(313),i=t(314),o=t(315),a=t(275),c=t(316),s=t(317);r.exports=function(r,e){var t,a,c={};e||(e={});for(a in p)t=e[a],c[a]=null==t?p[a]:t;(c.position.indent||c.position.start)&&(c.indent=c.position.indent||[],c.position=c.position.start);return function(r,e){var t,a,c,p,T,O,S,D,N,C,R,I,B,U,j,P,z,H,V=e.additional,G=e.nonTerminated,M=e.text,_=e.reference,F=e.warning,Z=e.textContext,J=e.referenceContext,Y=e.warningContext,$=e.position,K=e.indent||[],Q=r.length,X=0,W=-1,rr=$.column||1,er=$.line||1,tr="",nr=[];j=or(),S=F?function(r,e){var t=or();t.column+=e,t.offset+=e,F.call(Y,E[r],t,r)}:f,X--,Q++;for(;++X=55296&&ir<=57343||ir>1114111?(S(q,z),T="�"):T in o?(S(x,z),T=o[T]):(N="",L(T)&&S(x,z),T>65535&&(N+=u((T-=65536)>>>10|55296),T=56320|1023&T),T=N+u(T))):B!==h&&S(k,z)),T?(cr(),j=or(),X=H-1,rr+=H-I+1,nr.push(T),(P=or()).offset++,_&&_.call(J,T,{start:j,end:P},r.slice(I-1,H)),j=P):(c=r.slice(I-1,H),tr+=c,rr+=c.length,X=H-1)}var ir;return nr.join("");function or(){return{line:er,column:rr,offset:X+($.offset||0)}}function ar(e){return r.charAt(e)}function cr(){tr&&(nr.push(tr),M&&M.call(Z,tr,{start:j,end:or()}),tr="")}}(r,c)};var l={}.hasOwnProperty,u=String.fromCharCode,f=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},h="named",d="hexadecimal",g="decimal",m={};m[d]=16,m[g]=10;var v={};v[h]=s,v[g]=a,v[d]=c;var b=1,y=2,w=3,k=4,A=5,x=6,q=7,E={};function L(r){return r>=1&&r<=8||11===r||r>=13&&r<=31||r>=127&&r<=159||r>=64976&&r<=65007||65535==(65535&r)||65534==(65535&r)}E[b]="Named character references must be terminated by a semicolon",E[y]="Numeric character references must be terminated by a semicolon",E[w]="Named character references cannot be empty",E[k]="Numeric character references cannot be empty",E[A]="Named character references must be known",E[x]="Numeric character references cannot be disallowed",E[q]="Numeric character references cannot be outside the permissible Unicode range"},function(r,e,t){"use strict"; -/*! - * repeat-string - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - */var n,i="";r.exports=function(r,e){if("string"!=typeof r)throw new TypeError("expected a string");if(1===e)return r;if(2===e)return r+r;var t=r.length*e;if(n!==r||void 0===n)n=r,i="";else if(i.length>=t)return i.substr(0,t);for(;t>i.length&&e>1;)1&e&&(i+=r),e>>=1,r+=r;return i=(i+=r).substr(0,t)}},function(r,e,t){"use strict";r.exports=function(r){var e=String(r),t=e.length;for(;e.charAt(--t)===n;);return e.slice(0,t+1)};var n="\n"},function(r,e,t){"use strict";r.exports=function(r,e,t,n){var i,o,a,c,s,l,u=["pedantic","commonmark"],f=u.length,p=r.length,h=-1;for(;++h=0;n--){var i=r[n];"."===i?r.splice(n,1):".."===i?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t--;t)r.unshift("..");return r}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(r){return n.exec(r).slice(1)};function o(r,e){if(r.filter)return r.filter(e);for(var t=[],n=0;n=-1&&!n;i--){var a=i>=0?arguments[i]:r.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,n="/"===a.charAt(0))}return(n?"/":"")+(e=t(o(e.split("/"),function(r){return!!r}),!n).join("/"))||"."},e.normalize=function(r){var n=e.isAbsolute(r),i="/"===a(r,-1);return(r=t(o(r.split("/"),function(r){return!!r}),!n).join("/"))||n||(r="."),r&&i&&(r+="/"),(n?"/":"")+r},e.isAbsolute=function(r){return"/"===r.charAt(0)},e.join=function(){var r=Array.prototype.slice.call(arguments,0);return e.normalize(o(r,function(r,e){if("string"!=typeof r)throw new TypeError("Arguments to path.join must be strings");return r}).join("/"))},e.relative=function(r,t){function n(r){for(var e=0;e=0&&""===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=e.resolve(r).substr(1),t=e.resolve(t).substr(1);for(var i=n(r.split("/")),o=n(t.split("/")),a=Math.min(i.length,o.length),c=a,s=0;s=97&&e<=122||e>=65&&e<=90}},function(r,e,t){"use strict";r.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:t(321)}},function(r,e,t){"use strict";r.exports=function(r){var e,t=0,i=0,o=r.charAt(t),a={};for(;o in n;)e=n[o],i+=e,e>1&&(i=Math.floor(i/e)*e),a[i]=t,o=r.charAt(++t);return{indent:i,stops:a}};var n={" ":1,"\t":4}},function(r,e,t){"use strict";var n="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";e.openCloseTag=new RegExp("^(?:"+n+"|"+i+")"),e.tag=new RegExp("^(?:"+n+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)")},function(r,e,t){"use strict";r.exports=function(r,e){return r.indexOf("<",e)}},function(r,e,t){"use strict";r.exports=function(r,e){var t=r.indexOf("[",e),n=r.indexOf("![",e);if(-1===n)return t;return t - * @license MIT - */ -r.exports=function(r){return null!=r&&(t(r)||function(r){return"function"==typeof r.readFloatLE&&"function"==typeof r.slice&&t(r.slice(0,0))}(r)||!!r._isBuffer)}},function(r,e,t){"use strict";var n=t(302);r.exports=o,o.wrap=n;var i=[].slice;function o(){var r=[],e={run:function(){var e=-1,t=i.call(arguments,0,-1),o=arguments[arguments.length-1];if("function"!=typeof o)throw new Error("Expected function as last argument, not "+o);(function a(c){var s=r[++e];var l=i.call(arguments,0);var u=l.slice(1);var f=t.length;var p=-1;if(c)return void o(c);for(;++pa.length;c&&a.push(i);try{e=r.apply(null,a)}catch(r){if(c&&t)throw r;return i(r)}c||(e&&"function"==typeof e.then?e.then(o,i):e instanceof Error?i(e):o(e))};function i(){t||(t=!0,e.apply(null,arguments))}function o(r){i(null,r)}}},function(r,e){var t=Object.prototype.toString;r.exports=function(r){return"[object String]"===t.call(r)}},function(r,e,t){"use strict";var n=Object.prototype.toString;r.exports=function(r){var e;return"[object Object]"===n.call(r)&&(null===(e=Object.getPrototypeOf(r))||e===Object.getPrototypeOf({}))}},function(r,e,t){"use strict";var n=t(306),i=t(272),o=t(308);function a(r){var e=n(o);e.prototype.options=i(e.prototype.options,this.data("settings"),r),this.Parser=e}r.exports=a,a.Parser=o},function(r,e,t){"use strict";var n=t(272),i=t(307);r.exports=function(r){var e,t,o;for(t in i(c,r),i(a,c),e=c.prototype)(o=e[t])&&"object"==typeof o&&(e[t]="concat"in o?o.concat():n(o));return c;function a(e){return r.apply(this,e)}function c(){return this instanceof c?r.apply(this,arguments):new a(arguments)}}},function(r,e){"function"==typeof Object.create?r.exports=function(r,e){r.super_=e,r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:r.exports=function(r,e){r.super_=e;var t=function(){};t.prototype=e.prototype,r.prototype=new t,r.prototype.constructor=r}},function(r,e,t){"use strict";var n=t(272),i=t(309),o=t(310),a=t(311),c=t(312),s=t(318);function l(r,e){this.file=e,this.offset={},this.options=n(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=o(e).toOffset,this.unescape=a(this,"escape"),this.decode=c(this)}r.exports=l;var u=l.prototype;function f(r){var e,t=[];for(e in r)t.push(e);return t}u.setOptions=t(319),u.parse=t(322),u.options=t(284),u.exitStart=i("atStart",!0),u.enterList=i("inList",!1),u.enterLink=i("inLink",!1),u.enterBlock=i("inBlock",!1),u.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],u.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],u.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],u.blockTokenizers={newline:t(326),indentedCode:t(327),fencedCode:t(328),blockquote:t(329),atxHeading:t(330),thematicBreak:t(331),list:t(332),setextHeading:t(334),html:t(335),footnote:t(336),definition:t(338),table:t(339),paragraph:t(340)},u.inlineTokenizers={escape:t(341),autoLink:t(343),url:t(344),html:t(346),link:t(347),reference:t(348),strong:t(349),emphasis:t(351),deletion:t(354),code:t(356),break:t(358),text:t(360)},u.blockMethods=f(u.blockTokenizers),u.inlineMethods=f(u.inlineTokenizers),u.tokenizeBlock=s("block"),u.tokenizeInline=s("inline"),u.tokenizeFactory=s},function(r,e,t){"use strict";r.exports=function(r,e,t){return function(){var n=t||this,i=n[r];return n[r]=!e,function(){n[r]=i}}}},function(r,e,t){"use strict";r.exports=function(r){var e=function(r){var e=[],t=r.indexOf("\n");for(;-1!==t;)e.push(t+1),t=r.indexOf("\n",t+1);return e.push(r.length+1),e}(String(r));return{toPosition:function(r){return function(e){var t=-1,n=r.length;if(e<0)return{};for(;++te)return{line:t+1,column:e-(r[t-1]||0)+1,offset:e};return{}}}(e),toOffset:function(r){return function(e){var t=e&&e.line,n=e&&e.column;if(!isNaN(t)&&!isNaN(n)&&t-1 in r)return(r[t-2]||0)+n-1||0;return-1}}(e)}}},function(r,e,t){"use strict";r.exports=function(r,e){return function(t){var n,i=0,o=t.indexOf("\\"),a=r[e],c=[];for(;-1!==o;)c.push(t.slice(i,o)),i=o+1,(n=t.charAt(i))&&-1!==a.indexOf(n)||c.push("\\"),o=t.indexOf("\\",i);return c.push(t.slice(i)),c.join("")}}},function(r,e,t){"use strict";var n=t(272),i=t(277);r.exports=function(r){return o.raw=function(r,o,a){return i(r,n(a,{position:e(o),warning:t}))},o;function e(e){for(var t=r.offset,n=e.line,i=[];++n&&n in t;)i.push((t[n]||0)+1);return{start:e,indent:i}}function t(e,t,n){3!==n&&r.file.message(e,t)}function o(n,o,a){i(n,{position:e(o),warning:t,text:a,reference:a,textContext:r,referenceContext:r})}}},function(r){r.exports={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"⁡",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"⁣",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"­",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(r){r.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(r){r.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}},function(r,e,t){"use strict";r.exports=function(r){var e="string"==typeof r?r.charCodeAt(0):r;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}},function(r,e,t){"use strict";var n=t(283),i=t(275);r.exports=function(r){return n(r)||i(r)}},function(r,e,t){"use strict";r.exports=function(r){return function(e,t){var o,a,c,s,l,u,f=this,p=f.offset,h=[],d=f[r+"Methods"],g=f[r+"Tokenizers"],m=t.line,v=t.column;if(!e)return h;k.now=y,k.file=f.file,b("");for(;e;){for(o=-1,a=d.length,l=!1;++o"],i=n.concat(["~","|"]),o=i.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function a(r){var e=r||{};return e.commonmark?o:e.gfm?i:n}a.default=n,a.gfm=i,a.commonmark=o},function(r){r.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(r,e,t){"use strict";var n=t(272),i=t(323);r.exports=function(){var r,e=String(this.file),t={line:1,column:1,offset:0},c=n(t);65279===(e=e.replace(a,o)).charCodeAt(0)&&(e=e.slice(1),c.column++,c.offset++);r={type:"root",children:this.tokenizeBlock(e,c),position:{start:t,end:this.eof||n(t)}},this.options.position||i(r,!0);return r};var o="\n",a=/\r\n|\r/g},function(r,e,t){"use strict";var n=t(276);function i(r){delete r.position}function o(r){r.position=void 0}r.exports=function(r,e){return n(r,e?i:o),r}},function(r,e,t){"use strict";r.exports=a;var n=t(325),i="skip",o=!1;function a(r,e,t,a){function c(r,s,l){var u;return(e&&!n(e,r,s,l[l.length-1]||null)||(u=t(r,l))!==o)&&r.children&&u!==i&&function(r,e){var t,n,i=a?-1:1,s=(a?r.length:-1)+i;for(;s>-1&&s=u)){for(g="";qc)return;if(!u||!f.pedantic&&e.charAt(h+1)===a)return;p=e.length+1,l="";for(;++h=l&&(!u||u===n)?(m+=h,!!t||r(m)({type:"thematicBreak"})):void 0;h+=u}};var n="\n",i="\t",o=" ",a="*",c="_",s="-",l=3},function(r,e,t){"use strict";var n=t(273),i=t(278),o=t(275),a=t(285),c=t(333),s=t(280);r.exports=function(r,e,t){var i,a,c,g,v,b,y,w,k,L,T,O,S,D,N,C,R,I,B,U,j,P,z,H,V=this.options.commonmark,G=this.options.pedantic,M=this.blockTokenizers,_=this.interruptList,F=0,Z=e.length,J=null,Y=0;for(;F=m)return;if(g=e.charAt(F),i=V?q:x,!0===A[g])v=g,c=!1;else{for(c=!0,a="";F=m&&(H=!0),R&&Y>=R.indent&&(H=!0),g=e.charAt(F),k=null,!H){if(!0===A[g])k=g,F++,Y++;else{for(a="";F=R.indent||Y>m):H=!0,w=!1,F=y;if(T=e.slice(y,b),L=y===F?T:e.slice(F,b),(k===l||k===u||k===f)&&M.thematicBreak.call(this,r,T,!0))break;if(O=S,S=!n(L).length,H&&R)R.value=R.value.concat(C,T),N=N.concat(C,T),C=[];else if(w)0!==C.length&&(R.value.push(""),R.trail=C.concat()),R={value:[T],indent:Y,trail:[]},D.push(R),N=N.concat(C,T),C=[];else if(S){if(O)break;C.push(T)}else{if(O)break;if(s(_,M,this,[r,T,!0]))break;R.value=R.value.concat(C,T),N=N.concat(C,T),C=[]}F=b+1}j=r(N.join(h)).reset({type:"list",ordered:c,start:J,loose:null,children:[]}),I=this.enterList(),B=this.enterBlock(),U=!1,F=-1,Z=D.length;for(;++F0&&l.indent=a){g--;break}m+=u}s="",l="";for(;++g|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(n.source+"\\s*$"),/^$/,!1]];for(;vz){if(B1&&(L?(k+=E.slice(0,E.length-1),E=E.charAt(E.length-1)):(k+=E,E="")),R=r.now(),r(k)({type:"tableCell",children:this.tokenizeInline(S,R)},A)),r(E+L),E="",S=""}else if(E&&(S+=E,E=""),S+=L,L===i&&b!==x-2&&(S+=U.charAt(b+1),b++),L===o){for(N=1;U.charAt(b+1)===L;)S+=L,b++,N++;C?N>=C&&(C=0):C=N}D=!1,b++}else S?E+=L:r(L),b++;I||r(u+y)}return P};var i="\\",o="`",a="-",c="|",s=":",l=" ",u="\n",f="\t",p=1,h=2,d="left",g="center",m="right",v=null},function(r,e,t){"use strict";var n=t(273),i=t(275),o=t(279),a=t(280);r.exports=function(r,e,t){var f,p,h,d,g,m=this.options,v=m.commonmark,b=m.gfm,y=this.blockTokenizers,w=this.interruptParagraph,k=e.indexOf(c),A=e.length;for(;k=u){k=e.indexOf(c,k+1);continue}}if(p=e.slice(k+1),a(w,y,this,[r,p,!0]))break;if(y.list.call(this,r,p,!0)&&(this.inList||v||b&&!i(n.left(p).charAt(0))))break;if(f=k,-1!==(k=e.indexOf(c,k+1))&&""===n(e.slice(f,k))){k=f;break}}if(p=e.slice(0,k),""===n(p))return r(p),null;if(t)return!0;return g=r.now(),p=o(p),r(p)({type:"paragraph",children:this.tokenizeInline(p,g)})};var c="\n",s="\t",l=" ",u=4},function(r,e,t){"use strict";var n=t(342);function i(r,e,t){var n,i;if("\\"===e.charAt(0)&&(n=e.charAt(1),-1!==this.escape.indexOf(n)))return!!t||(i="\n"===n?{type:"break"}:{type:"text",value:n},r("\\"+n)(i))}r.exports=i,i.locator=n},function(r,e,t){"use strict";r.exports=function(r,e){return r.indexOf("\\",e)}},function(r,e,t){"use strict";var n=t(271),i=t(277),o=t(287);r.exports=p,p.locator=o,p.notInLink=!0;var a="<",c=">",s="@",l="/",u="mailto:",f=u.length;function p(r,e,t){var o,p,h,d,g,m,v,b,y,w,k;if(e.charAt(0)===a){for(this,o="",p=e.length,h=0,d="",m=!1,v="",h++,o=a;h/i;function s(r,e,t){var i,s,l=e.length;if(!("<"!==e.charAt(0)||l<3)&&(i=e.charAt(1),(n(i)||"?"===i||"!"===i||"/"===i)&&(s=e.match(o))))return!!t||(s=s[0],!this.inLink&&a.test(s)?this.inLink=!0:this.inLink&&c.test(s)&&(this.inLink=!1),r(s)({type:"html",value:s}))}},function(r,e,t){"use strict";var n=t(271),i=t(288);r.exports=m,m.locator=i;var o={}.hasOwnProperty,a="\\",c="[",s="]",l="(",u=")",f="<",p=">",h="`",d={'"':'"',"'":"'"},g={};function m(r,e,t){var i,m,v,b,y,w,k,A,x,q,E,L,T,O,S,D,N,C,R,I="",B=0,U=e.charAt(0),j=this.options.pedantic,P=this.options.commonmark,z=this.options.gfm;if("!"===U&&(x=!0,I=U,U=e.charAt(++B)),U===c&&(x||!this.inLink)){for(I+=U,S="",B++,L=e.length,O=0,(N=r.now()).column+=B,N.offset+=B;B=v&&(v=0):v=m}else if(U===a)B++,w+=e.charAt(B);else if(v&&!z||U!==c){if((!v||z)&&U===s){if(!O){if(!j)for(;Be&&" "===r.charAt(t-1);)t--;return t}},function(r,e,t){"use strict";r.exports=function(r,e,t){var n,i,o,a,c,s,l,u,f,p;if(t)return!0;n=this.inlineMethods,a=n.length,i=this.inlineTokenizers,o=-1,f=e.length;for(;++o$/i,a=/^<(\/?)([a-z]+)\s*>$/;r.exports=function(r){var e=void 0,t=void 0;return n(r,"html",function(r,n,c){t!==c&&(e=[],t=c);var s=function(r){var e=r.value.match(o);return!!e&&e[1]}(r);if(s)return c.children.splice(n,1,{type:i,tag:s,position:r.position}),!0;var l=function(r,e){var t=r.value.match(a);return!!t&&{tag:t[2],opening:!t[1],node:r}}(r);if(!l)return!0;var u=function(r,e){var t=r.length;for(;t--;)if(r[t].tag===e)return r.splice(t,1)[0];return!1}(e,l.tag);return u?c.children.splice(n,0,function(r,e,t){var n=t.children.indexOf(r.node),o=t.children.indexOf(e.node),a=t.children.splice(n,o-n+1).slice(1,-1);return{type:i,children:a,tag:r.tag,position:{start:r.node.position.start,end:e.node.position.end,indent:[]}}}(l,u,c)):l.opening||e.push(l),!0},!0),r}},function(r,e,t){"use strict";var n=t(276);function i(r,e,t,n){if("remove"===n)t.children.splice(e,1);else if("unwrap"===n){var i=[e,1];r.children&&(i=i.concat(r.children)),Array.prototype.splice.apply(t.children,i)}}e.ofType=function(r,e){return function(e){return r.forEach(function(r){return n(e,r,t,!0)}),e};function t(r,t,n){n&&i(r,t,n,e)}},e.ifNotMatch=function(r,e){return function(r){return n(r,t,!0),r};function t(t,n,o){o&&!r(t,n,o)&&i(t,n,o,e)}}},function(r,e,t){"use strict";var n=t(0),i=t(272);function o(r,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=e.renderers[r.type],l=r.position.start,u=[r.type,l.line,l.column].join("-");if("text"===r.type)return s?s(r.value,u):r.value;if("function"!=typeof s&&"string"!=typeof s&&!function(r){return n.Fragment&&n.Fragment===r}(s))throw new Error("Renderer for type `"+r.type+"` not defined or is not renderable");var f=function(r,e,t,n,c,s){var l={key:e},u="string"==typeof n;t.sourcePos&&r.position&&(l["data-sourcepos"]=[(f=r.position).start.line,":",f.start.column,"-",f.end.line,":",f.end.column].map(String).join(""));var f;t.rawSourcePos&&!u&&(l.sourcePosition=r.position);t.includeNodeIndex&&c.node&&c.node.children&&!u&&(l.index=c.node.children.indexOf(r),l.parentChildCount=c.node.children.length);var p=null!==r.identifier&&void 0!==r.identifier?t.definitions[r.identifier]||{}:null;switch(r.type){case"root":a(l,{className:t.className});break;case"heading":l.level=r.depth;break;case"list":l.start=r.start,l.ordered=r.ordered,l.tight=!r.loose,l.depth=r.depth;break;case"listItem":l.checked=r.checked,l.tight=!r.loose,l.ordered=r.ordered,l.index=r.index,l.children=(l.tight?function(r){return r.children.reduce(function(r,e){return r.concat("paragraph"===e.type?e.children||[]:[e])},[])}(r):r.children).map(function(e,n){return o(e,t,{node:r,props:l},n)});break;case"definition":a(l,{identifier:r.identifier,title:r.title,url:r.url});break;case"code":a(l,{language:r.lang&&r.lang.split(/\s/,1)[0]});break;case"inlineCode":l.children=r.value,l.inline=!0;break;case"link":a(l,{title:r.title||void 0,target:"function"==typeof t.linkTarget?t.linkTarget(r.url,r.children,r.title):t.linkTarget,href:t.transformLinkUri?t.transformLinkUri(r.url,r.children,r.title):r.url});break;case"image":a(l,{alt:r.alt||void 0,title:r.title||void 0,src:t.transformImageUri?t.transformImageUri(r.url,r.children,r.title,r.alt):r.url});break;case"linkReference":a(l,i(p,{href:t.transformLinkUri?t.transformLinkUri(p.href):p.href}));break;case"imageReference":a(l,{src:t.transformImageUri&&p.href?t.transformImageUri(p.href,r.children,p.title,r.alt):p.href,title:p.title||void 0,alt:r.alt||void 0});break;case"table":case"tableHead":case"tableBody":l.columnAlignment=r.align;break;case"tableRow":l.isHeader="tableHead"===c.node.type,l.columnAlignment=c.props.columnAlignment;break;case"tableCell":a(l,{isHeader:c.props.isHeader,align:c.props.columnAlignment[s]});break;case"virtualHtml":l.tag=r.tag;break;case"html":l.isBlock=r.position.start.line!==r.position.end.line,l.escapeHtml=t.escapeHtml,l.skipHtml=t.skipHtml;break;default:a(l,i(r,{type:void 0,position:void 0,children:void 0}))}!u&&r.value&&(l.value=r.value);return l}(r,u,e,s,t,c);return n.createElement(s,f,f.children||r.children&&r.children.map(function(t,n){return o(t,e,{node:r,props:f},n)})||void 0)}function a(r,e){for(var t in e)void 0!==e[t]&&(r[t]=e[t])}r.exports=o},function(r,e,t){"use strict";var n=t(276);function i(r){var e=r.children;r.children=[{type:"tableHead",align:r.align,children:[e[0]],position:e[0].position}],e.length>1&&r.children.push({type:"tableBody",align:r.align,children:e.slice(1),position:{start:e[1].position.start,end:e[e.length-1].position.end}})}r.exports=function(r){return n(r,"table",i),r}},function(r,e,t){"use strict";r.exports=function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e.children||[]).reduce(function(e,t){return"definition"===t.type&&(e[t.identifier]={href:t.url,title:t.title}),r(t,e)},t)}},function(r,e,t){"use strict";var n=["http","https","mailto","tel"];r.exports=function(r){var e=(r||"").trim(),t=e.charAt(0);if("#"===t||"/"===t)return e;var i=e.indexOf(":");if(-1===i)return e;for(var o=n.length,a=-1;++aa?e:-1!==(a=e.indexOf("#"))&&i>a?e:"javascript:void(0)"}},function(r,e,t){"use strict";var n=t(272),i=t(0).createElement;function o(r,e){return i(r,a(e),e.children)}function a(r){return r["data-sourcepos"]?{"data-sourcepos":r["data-sourcepos"]}:{}}r.exports={root:"div",break:"br",paragraph:"p",emphasis:"em",strong:"strong",thematicBreak:"hr",blockquote:"blockquote",delete:"del",link:"a",image:"img",linkReference:"a",imageReference:"img",table:o.bind(null,"table"),tableHead:o.bind(null,"thead"),tableBody:o.bind(null,"tbody"),tableRow:o.bind(null,"tr"),tableCell:function(r){var e=r.align?{textAlign:r.align}:void 0,t=a(r);return i(r.isHeader?"th":"td",e?n({style:e},t):t,r.children)},list:function(r){var e=a(r);null!==r.start&&1!==r.start&&(e.start=r.start.toString());return i(r.ordered?"ol":"ul",e,r.children)},listItem:function(r){var e=null;if(null!==r.checked){var t=r.checked;e=i("input",{type:"checkbox",checked:t,readOnly:!0})}return i("li",a(r),e,r.children)},definition:function(){return null},heading:function(r){return i("h"+r.level,a(r),r.children)},inlineCode:function(r){return i("code",a(r),r.children)},code:function(r){var e=r.language&&"language-"+r.language,t=i("code",e?{className:e}:null,r.value);return i("pre",a(r),t)},html:function(r){if(r.skipHtml)return null;var e=r.isBlock?"div":"span";if(r.escapeHtml)return i(e,null,r.value);var t={dangerouslySetInnerHTML:{__html:r.value}};return i(e,t)},virtualHtml:function(r){return i(r.tag,a(r),r.children)}}},function(r,e,t){"use strict";var n=t(272),i=t(292),o=t(305),a=t(5),c=t(361),s=t(363),l=t(364),u=t(365),f=t(366),p=t(367),h=t(368),d=t(369),g=Object.keys(d),m=function(r){var e=r.source||r.children||"";if(r.allowedTypes&&r.disallowedTypes)throw new Error("Only one of `allowedTypes` and `disallowedTypes` should be defined");var t=n(d,r.renderers),a=[o].concat(r.plugins||[]).reduce(v,i()).parse(e),h=n(r,{renderers:t,definitions:p(a)}),m=function(r){var e=[f,c()],t=r.disallowedTypes;r.allowedTypes&&(t=g.filter(function(e){return"root"!==e&&-1===r.allowedTypes.indexOf(e)}));var n=r.unwrapDisallowed?"unwrap":"remove";t&&t.length>0&&e.push(l.ofType(t,n));r.allowNode&&e.push(l.ifNotMatch(r.allowNode,n));r.escapeHtml||r.skipHtml||e.push(s);return r.astPlugins?e.concat(r.astPlugins):e}(r).reduce(function(r,e){return e(r,h)},a);return u(m,h)};function v(r,e){return Array.isArray(e)?r.use.apply(r,function(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||t+"Subscription",o=function(e){function o(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i[t]=n.store,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),o.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},o.prototype.render=function(){return r.Children.only(this.props.children)},o}(r.Component);return o.propTypes={store:u.isRequired,children:i.a.element.isRequired},o.childContextTypes=((e={})[t]=u.isRequired,e[n]=a,e),o}(),c=n(101),s=n.n(c),f=n(75),p=n.n(f);var d=null,h={notify:function(){}};var m=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=h}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=d,e=d},notify:function(){for(var n=e=t,r=0;r1&&void 0!==arguments[1]?arguments[1]:{},i=o.getDisplayName,l=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,c=o.methodName,f=void 0===c?"connectAdvanced":c,d=o.renderCountProp,h=void 0===d?void 0:d,w=o.shouldHandleStateChanges,x=void 0===w||w,k=o.storeKey,_=void 0===k?"store":k,E=o.withRef,S=void 0!==E&&E,O=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),C=_+"Subscription",P=y++,T=((t={})[_]=u,t[C]=a,t),j=((n={})[C]=a,n);return function(t){p()("function"==typeof t,"You must pass a component to the function returned by "+f+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=l(n),i=v({},O,{getDisplayName:l,methodName:f,renderCountProp:h,shouldHandleStateChanges:x,storeKey:_,withRef:S,displayName:o,wrappedComponentName:n,WrappedComponent:t}),a=function(n){function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return r.version=P,r.state={},r.renderCount=0,r.store=e[_]||t[_],r.propsMode=Boolean(e[_]),r.setWrappedInstance=r.setWrappedInstance.bind(r),p()(r.store,'Could not find "'+_+'" in either the context or props of "'+o+'". Either wrap the root component in a , or explicitly pass "'+_+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[C]=t||this.context[C],e},a.prototype.componentDidMount=function(){x&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},a.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=b,this.store=null,this.selector.run=b,this.selector.shouldComponentUpdate=!1},a.prototype.getWrappedInstance=function(){return p()(S,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+f+"() call."),this.wrappedInstance},a.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},a.prototype.initSelector=function(){var t=e(this.store.dispatch,i);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.prototype.initSubscription=function(){if(x){var e=(this.propsMode?this.props:this.context)[C];this.subscription=new m(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},a.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.prototype.addExtraProps=function(e){if(!(S||h||this.propsMode&&this.subscription))return e;var t=v({},e);return S&&(t.ref=this.setWrappedInstance),h&&(t[h]=this.renderCount++),this.propsMode&&this.subscription&&(t[C]=this.subscription),t},a.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(r.createElement)(t,this.addExtraProps(e.props))},a}(r.Component);return a.WrappedComponent=t,a.displayName=o,a.childContextTypes=j,a.contextTypes=T,a.propTypes=T,s()(a,t)}}var x=Object.prototype.hasOwnProperty;function k(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function _(e,t){if(k(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),u=r(e,i),l=o(e,i);return(i.pure?q:z)(a,u,l,e,i)}var V=Object.assign||function(e){for(var t=1;t=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function H(e,t){return e===t}var $=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?w:t,r=e.mapStateToPropsFactories,o=void 0===r?M:r,i=e.mapDispatchToPropsFactories,a=void 0===i?A:i,u=e.mergePropsFactories,l=void 0===u?F:u,c=e.selectorFactory,s=void 0===c?W:c;return function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=i.pure,c=void 0===u||u,f=i.areStatesEqual,p=void 0===f?H:f,d=i.areOwnPropsEqual,h=void 0===d?_:d,m=i.areStatePropsEqual,v=void 0===m?_:m,y=i.areMergedPropsEqual,g=void 0===y?_:y,b=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=B(e,o,"mapStateToProps"),x=B(t,a,"mapDispatchToProps"),k=B(r,l,"mergeProps");return n(s,V({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:x,initMergeProps:k,pure:c,areStatesEqual:p,areOwnPropsEqual:h,areStatePropsEqual:v,areMergedPropsEqual:g},b))}}();n.d(t,"a",function(){return l}),n.d(t,"b",function(){return $})},function(e,t,n){"use strict";n.d(t,"d",function(){return d}),n.d(t,"b",function(){return h}),n.d(t,"a",function(){return m}),n.d(t,"c",function(){return v}),n.d(t,"g",function(){return y}),n.d(t,"f",function(){return g}),n.d(t,"e",function(){return b});var r=n(1),o=n.n(r),i=n(16),a=n.n(i),u=n(26),l=n(2),c=n.n(l);function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.d:return i({},u,t.data);case o.b:return i({},u,{pending:!0});case o.a:return i({},e,{pending:!1,error:t.data});case o.c:return u;default:return e}},c=Object(r.b)({user:l});t.a=Object(r.c)(c)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(20),o=n(50);e.exports=n(22)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(104),o=n(142),i=n(55),a=n(25);e.exports=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:1;0===n?console.log(t):console.error(t);e.exit(n)},t.getDisplayName=a,t.isResSent=u,t.loadGetInitialProps=function(e,t){return l.apply(this,arguments)},t.getLocationOrigin=c,t.getURL=function(){var e=window.location.href,t=c();return e.substring(t.length)};var o=r(n(67)),i=r(n(68));r(n(72));function a(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function l(){return(l=(0,i.default)(o.default.mark(function e(t,n){var r,i,l;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.next=5;break;case 5:if(t.getInitialProps){e.next=7;break}return e.abrupt("return",{});case 7:return e.next=9,t.getInitialProps(n);case 9:if(r=e.sent,!n.res||!u(n.res)){e.next=12;break}return e.abrupt("return",r);case 12:if(r){e.next=16;break}throw i=a(t),l='"'.concat(i,'.getInitialProps()" should resolve to an object. But found "').concat(r,'" instead.'),new Error(l);case 16:return e.abrupt("return",r);case 17:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function c(){var e=window.location,t=e.protocol,n=e.hostname,r=e.port;return"".concat(t,"//").concat(n).concat(r?":"+r:"")}}).call(this,n(134))},,function(e,t,n){var r=n(78);e.exports=function(e){return Object(r(e))}},function(e,t,n){e.exports=n(152)},function(e,t,n){"use strict";var r=n(153)(!0);n(93)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){e.exports={}},function(e,t,n){e.exports=n(239)},function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"b",function(){return c}),n.d(t,"a",function(){return f});var r=n(103),o={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.assign;function a(e){if("object"!==(void 0===e?"undefined":i(e))||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var l;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,s=t,f=[],p=f,d=!1;function h(){p===f&&(p=f.slice())}function m(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function v(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return h(),p.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,h();var n=p.indexOf(e);p.splice(n,1)}}}function y(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,s=c(s,e)}finally{d=!1}for(var t=f=p,n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(u)throw u;for(var r=!1,o={},i=0;idocument.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[a]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t,n){e.exports=n(149)},function(e,t,n){n(155);for(var r=n(7),o=n(28),i=n(46),a=n(11)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;lb;b++)if((v=t?g(a(h=e[b])[0],h[1]):g(e[b]))===c||v===s)return v}else for(m=y.call(e);!(h=m.next()).done;)if((v=o(m,g,h.value,t))===c||v===s)return v}).BREAK=c,t.RETURN=s},function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t._rewriteUrlForNextExport=function(e){var t=e.split("#"),n=(0,a.default)(t,2)[1],r=(e=e.replace(/#.*/,"")).split("?"),o=(0,a.default)(r,2),i=o[0],u=o[1],l=i=i.replace(/\/$/,"");/\.[^\/]+\/?$/.test(i)||(l="".concat(i,"/"));u&&(l="".concat(l,"?").concat(u));n&&(l="".concat(l,"#").concat(n));return l},t.makePublicRouterInstance=function(e){for(var t={},n=0;n",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(c),f=["%","/","?",";","#"].concat(s),p=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(207);function b(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),u=-1!==i&&i127?I+="x":I+=R[L];if(!I.match(d)){var M=j.slice(0,C),U=j.slice(C+1),D=R.match(h);D&&(M.push(D[1]),U.unshift(D[2])),U.length&&(b="/"+U.join(".")+b),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+F,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[k])for(C=0,N=s.length;C0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=_.slice(-1)[0],O=(n.host||e.host||_.length>1)&&("."===S||".."===S)||""===S,C=0,P=_.length;P>=0;P--)"."===(S=_[P])?_.splice(P,1):".."===S?(_.splice(P,1),C++):C&&(_.splice(P,1),C--);if(!x&&!k)for(;C--;C)_.unshift("..");!x||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),O&&"/"!==_.join("/").substr(-1)&&_.push("");var T,j=""===_[0]||_[0]&&"/"===_[0].charAt(0);E&&(n.hostname=n.host=j?"":_.length?_.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(x=x||n.host&&_.length)&&!j&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},,,function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){e.exports=n(139)},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(87),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){e.exports=n(111)},function(e,t,n){var r=n(44);function o(e,t,n,o,i,a,u){try{var l=e[a](u),c=l.value}catch(e){return void n(e)}l.done?t(c):r.resolve(c).then(o,i)}e.exports=function(e){return function(){var t=this,n=arguments;return new r(function(r,i){var a=e.apply(t,n);function u(e){o(a,r,i,u,l,"next",e)}function l(e){o(a,r,i,u,l,"throw",e)}u(void 0)})}}},function(e,t,n){var r=n(49),o=n(11)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){e.exports=n(191)},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){e.exports=n(211)},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";var r=n(4),o=r(n(99)),i=r(n(14)),a=r(n(15)),u=r(n(30)),l=r(n(31)),c=r(n(32)),s=r(n(73)),f=r(n(25)),p=r(n(72)),d=r(n(44)),h=r(n(55)),m=r(n(0)),v=r(n(5)),y=[],g=[];function b(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(function(e){return n.loading=!1,n.loaded=e,e}).catch(function(e){throw n.loading=!1,n.error=e,e}),n}function w(e){var t={loading:!1,loaded:{},error:null},n=[];try{(0,h.default)(e).forEach(function(r){var o=b(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then(function(e){t.loaded[r]=e}).catch(function(e){t.error=e})})}catch(e){t.error=e}return t.promise=d.default.all(n).then(function(e){return t.loading=!1,e}).catch(function(e){throw t.loading=!1,e}),t}function x(e,t){return m.default.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function k(e,t){var n,r,d=(0,p.default)({loader:null,loading:null,delay:200,timeout:null,render:x,webpack:null,modules:null},t),h=null;function b(){return h||(h=e(d.loader)),h.promise}return y.push(b),"function"==typeof d.webpack&&g.push(function(){return b()}),r=n=function(t){function n(t){var r;return(0,i.default)(this,n),r=(0,u.default)(this,(0,l.default)(n).call(this,t)),(0,f.default)((0,s.default)((0,s.default)(r)),"retry",function(){r.setState({error:null,loading:!0,timedOut:!1}),h=e(d.loader),r._loadModule()}),b(),r.state={error:h.error,pastDelay:!1,timedOut:!1,loading:h.loading,loaded:h.loaded},r}return(0,c.default)(n,t),(0,a.default)(n,[{key:"componentWillMount",value:function(){this._mounted=!0,this._loadModule()}},{key:"_loadModule",value:function(){var e=this;if(this.context.loadable&&(0,o.default)(d.modules)&&d.modules.forEach(function(t){e.context.loadable.report(t)}),h.loading){"number"==typeof d.delay&&(0===d.delay?this.setState({pastDelay:!0}):this._delay=setTimeout(function(){e.setState({pastDelay:!0})},d.delay)),"number"==typeof d.timeout&&(this._timeout=setTimeout(function(){e.setState({timedOut:!0})},d.timeout));var t=function(){e._mounted&&(e.setState({error:h.error,loaded:h.loaded,loading:h.loading}),e._clearTimeouts())};h.promise.then(function(){t()}).catch(function(e){t()})}}},{key:"componentWillUnmount",value:function(){this._mounted=!1,this._clearTimeouts()}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"render",value:function(){return this.state.loading||this.state.error?m.default.createElement(d.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?d.render(this.state.loaded,this.props):null}}],[{key:"preload",value:function(){return b()}}]),n}(m.default.Component),(0,f.default)(n,"contextTypes",{loadable:v.default.shape({report:v.default.func.isRequired})}),r}function _(e){return k(b,e)}function E(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return d.default.all(t).then(function(){if(e.length)return E(e)})}_.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return k(w,e)},_.preloadAll=function(){return new d.default(function(e,t){E(y).then(e,t)})},_.preloadReady=function(){return new d.default(function(e,t){E(g).then(e,e)})},e.exports=_},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,u){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,u],s=0;(l=new Error(t.replace(/%s/g,function(){return c[s++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},,function(e,t,n){var r=n(49);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(63),o=n(50),i=n(37),a=n(80),u=n(38),l=n(105),c=Object.getOwnPropertyDescriptor;t.f=n(22)?c:function(e,t){if(e=i(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(13);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(13),o=n(7).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(6),o=n(3),i=n(27);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(65)("meta"),o=n(13),i=n(38),a=n(20).f,u=0,l=Object.isExtensible||function(){return!0},c=!n(27)(function(){return l(Object.preventExtensions({}))}),s=function(e){a(e,r,{value:{i:"O"+ ++u,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";s(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;s(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&l(e)&&!i(e,r)&&s(e),e}}},function(e,t,n){var r=n(3),o=n(7),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(51)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){t.f=n(11)},function(e,t,n){var r=n(7),o=n(3),i=n(51),a=n(85),u=n(20).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:a.f(e)})}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(84)("keys"),o=n(65);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(49);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t){},function(e,t,n){"use strict";var r=n(51),o=n(6),i=n(107),a=n(28),u=n(46),l=n(154),c=n(52),s=n(112),f=n(11)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,m,v,y){l(n,t,h);var g,b,w,x=function(e){if(!p&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",_="values"==m,E=!1,S=e.prototype,O=S[f]||S["@@iterator"]||m&&S[m],C=O||x(m),P=m?_?x("entries"):C:void 0,T="Array"==t&&S.entries||O;if(T&&(w=s(T.call(new e)))!==Object.prototype&&w.next&&(c(w,k,!0),r||"function"==typeof w[f]||a(w,f,d)),_&&O&&"values"!==O.name&&(E=!0,C=function(){return O.call(this)}),r&&!y||!p&&!E&&S[f]||a(S,f,C),u[t]=C,u[k]=d,m)if(g={values:_?C:x("values"),keys:v?C:x("keys"),entries:P},y)for(b in g)b in S||i(S,b,g[b]);else o(o.P+o.F*(p||E),t,g);return g}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(69),o=n(11)("iterator"),i=n(46);e.exports=n(3).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(39);function o(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new o(e)}},function(e,t,n){var r=n(28);e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},function(e,t,n){var r=n(162),o=n(165),i=n(169);e.exports=function(e,t){return r(e)||o(e,t)||i()}},function(e,t,n){e.exports=n(163)},function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(70)),i=r(n(14)),a=r(n(15)),u=r(n(25)),l=function(){function e(){(0,i.default)(this,e),(0,u.default)(this,"listeners",{})}return(0,a.default)(e,[{key:"on",value:function(e,t){if(this.listeners[e]||(this.listeners[e]=new o.default),this.listeners[e].has(t))throw new Error("The listener already exising in event: ".concat(e));return this.listeners[e].add(t),this}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;ro;)K(e,n=r[o++],t[n]);return e},Q=function(e){var t=M.call(this,e=x(e,!0));return!(this===z&&o(D,e)&&!o(F,e))&&(!(t||!o(this,e)||!o(D,e)||o(this,L)&&this[L][e])||t)},Y=function(e,t){if(e=w(e),t=x(t,!0),e!==z||!o(D,t)||o(F,t)){var n=P(e,t);return!n||!o(D,t)||o(e,L)&&e[L][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=j(w(e)),r=[],i=0;n.length>i;)o(D,t=n[i++])||t==L||t==l||r.push(t);return r},X=function(e){for(var t,n=e===z,r=j(n?F:w(e)),i=[],a=0;r.length>a;)!o(D,t=r[a++])||n&&!o(z,t)||i.push(D[t]);return i};q||(u((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===z&&t.call(F,n),o(this,L)&&o(this[L],e)&&(this[L][e]=!1),B(this,e,k(1,n))};return i&&V&&B(z,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),S.f=Y,O.f=K,n(110).f=E.f=J,n(63).f=Q,n(90).f=X,i&&!n(51)&&u(z,"propertyIsEnumerable",Q,!0),h.f=function(e){return H(d(e))}),a(a.G+a.W+a.F*!q,{Symbol:N});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)d(Z[ee++]);for(var te=C(d.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return o(U,e+="")?U[e]:U[e]=N(e)},keyFor:function(e){if(!$(e))throw TypeError(e+" is not a symbol!");for(var t in U)if(U[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!q,"Object",{create:function(e,t){return void 0===t?_(e):G(_(e),t)},defineProperty:K,defineProperties:G,getOwnPropertyDescriptor:Y,getOwnPropertyNames:J,getOwnPropertySymbols:X}),R&&a(a.S+a.F*(!q||c(function(){var e=N();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!$(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!$(t))return t}),r[1]=t,I.apply(R,r)}}),N.prototype[A]||n(28)(N.prototype,A,N.prototype.valueOf),f(N,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){e.exports=n(28)},function(e,t,n){var r=n(38),o=n(37),i=n(145)(!1),a=n(88)("IE_PROTO");e.exports=function(e,t){var n,u=o(e),l=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;t.length>l;)r(u,n=t[l++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(7).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(108),o=n(89).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=function(){return this||"object"==typeof self&&self}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(151),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t,n){var r=n(38),o=n(43),i=n(88)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(21);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(46),o=n(11)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(21),o=n(39),i=n(11)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r,o,i,a=n(24),u=n(118),l=n(109),c=n(81),s=n(7),f=s.process,p=s.setImmediate,d=s.clearImmediate,h=s.MessageChannel,m=s.Dispatch,v=0,y={},g=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},b=function(e){g.call(e.data)};p&&d||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return y[++v]=function(){u("function"==typeof e?e:Function(e),t)},r(v),v},d=function(e){delete y[e]},"process"==n(49)(f)?r=function(e){f.nextTick(a(g,e,1))}:m&&m.now?r=function(e){m.now(a(g,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(e){s.postMessage(e+"","*")},s.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),g.call(e)}}:function(e){setTimeout(a(g,e,1),0)}),e.exports={set:p,clear:d}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(21),o=n(13),i=n(96);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(7),o=n(3),i=n(20),a=n(22),u=n(11)("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];a&&t&&!t[u]&&i.f(t,u,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(11)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l1)for(var n=1;nc;)l.call(e,a=u[c++])&&t.push(a);return t}},function(e,t,n){var r=n(37),o=n(66),i=n(146);e.exports=function(e){return function(t,n,a){var u,l=r(t),c=o(l.length),s=i(a,c);if(e&&n!=n){for(;c>s;)if((u=l[s++])!=u)return!0}else for(;c>s;s++)if((e||s in l)&&l[s]===n)return e||s||0;return!e&&-1}}},function(e,t,n){var r=n(87),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(20),o=n(21),i=n(53);e.exports=n(22)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),u=a.length,l=0;u>l;)r.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var r=n(37),o=n(110).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){n(150),e.exports=n(3).Object.keys},function(e,t,n){var r=n(43),o=n(53);n(82)("keys",function(){return function(e){return o(r(e))}})},function(e,t){!function(t){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag",c="object"==typeof e,s=t.regeneratorRuntime;if(s)c&&(e.exports=s);else{(s=t.regeneratorRuntime=c?e.exports:{}).wrap=w;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",m={},v={};v[a]=function(){return this};var y=Object.getPrototypeOf,g=y&&y(y(N([])));g&&g!==r&&o.call(g,a)&&(v=g);var b=E.prototype=k.prototype=Object.create(v);_.prototype=b.constructor=E,E.constructor=_,E[l]=_.displayName="GeneratorFunction",s.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},s.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(b),e},s.awrap=function(e){return{__await:e}},S(O.prototype),O.prototype[u]=function(){return this},s.AsyncIterator=O,s.async=function(e,t,n,r){var o=new O(w(e,t,n,r));return s.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},S(b),b[l]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},s.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},s.values=N,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return u.type="throw",u.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:N(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function w(e,t,n,r){var o=t&&t.prototype instanceof k?t:k,i=Object.create(o.prototype),a=new j(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return R()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=C(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=x(e,t,n);if("normal"===l.type){if(r=n.done?h:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function x(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function k(){}function _(){}function E(){}function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function O(e){var t;this._invoke=function(n,r){function i(){return new Promise(function(t,i){!function t(n,r,i,a){var u=x(e[n],e,r);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(c).then(function(e){l.value=e,i(l)},function(e){return t("throw",e,i,a)})}a(u.arg)}(n,r,t,i)})}return t=t?t.then(i,i):i()}}function C(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,C(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=x(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function N(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=c?e?"":void 0:(i=u.charCodeAt(l))<55296||i>56319||l+1===c||(a=u.charCodeAt(l+1))<56320||a>57343?e?u.charAt(l):i:e?u.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(54),o=n(50),i=n(52),a={};n(28)(a,n(11)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){"use strict";var r=n(156),o=n(113),i=n(46),a=n(37);e.exports=n(93)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r,o,i,a,u=n(51),l=n(7),c=n(24),s=n(69),f=n(6),p=n(13),d=n(39),h=n(94),m=n(57),v=n(116),y=n(117).set,g=n(158)(),b=n(96),w=n(119),x=n(159),k=n(120),_=l.TypeError,E=l.process,S=E&&E.versions,O=S&&S.v8||"",C=l.Promise,P="process"==s(E),T=function(){},j=o=b.f,N=!!function(){try{var e=C.resolve(1),t=(e.constructor={})[n(11)("species")]=function(e){e(T,T)};return(P||"function"==typeof PromiseRejectionEvent)&&e.then(T)instanceof t&&0!==O.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(e){}}(),R=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},I=function(e,t){if(!e._n){e._n=!0;var n=e._c;g(function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,u=o?t.ok:t.fail,l=t.resolve,c=t.reject,s=t.domain;try{u?(o||(2==e._h&&M(e),e._h=1),!0===u?n=r:(s&&s.enter(),n=u(r),s&&(s.exit(),a=!0)),n===t.promise?c(_("Promise-chain cycle")):(i=R(n))?i.call(n,l,c):l(n)):c(r)}catch(e){s&&!a&&s.exit(),c(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&L(e)})}},L=function(e){y.call(l,function(){var t,n,r,o=e._v,i=A(e);if(i&&(t=w(function(){P?E.emit("unhandledRejection",o,e):(n=l.onunhandledrejection)?n({promise:e,reason:o}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=P||A(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},A=function(e){return 1!==e._h&&0===(e._a||e._c).length},M=function(e){y.call(l,function(){var t;P?E.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},U=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),I(t,!0))},D=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw _("Promise can't be resolved itself");(t=R(e))?g(function(){var r={_w:n,_d:!1};try{t.call(e,c(D,r,1),c(U,r,1))}catch(e){U.call(r,e)}}):(n._v=e,n._s=1,I(n,!1))}catch(e){U.call({_w:n,_d:!1},e)}}};N||(C=function(e){h(this,C,"Promise","_h"),d(e),r.call(this);try{e(c(D,this,1),c(U,this,1))}catch(e){U.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(97)(C.prototype,{then:function(e,t){var n=j(v(this,C));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=P?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=c(D,e,1),this.reject=c(U,e,1)},b.f=j=function(e){return e===C||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!N,{Promise:C}),n(52)(C,"Promise"),n(121)("Promise"),a=n(3).Promise,f(f.S+f.F*!N,"Promise",{reject:function(e){var t=j(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(u||!N),"Promise",{resolve:function(e){return k(u&&this===a?C:this,e)}}),f(f.S+f.F*!(N&&n(122)(function(e){C.all(e).catch(T)})),"Promise",{all:function(e){var t=this,n=j(t),r=n.resolve,o=n.reject,i=w(function(){var n=[],i=0,a=1;m(e,!1,function(e){var u=i++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[u]=e,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=j(t),r=n.reject,o=w(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(e,t,n){var r=n(7),o=n(117).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,l="process"==n(49)(a);e.exports=function(){var e,t,n,c=function(){var r,o;for(l&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var s=u.resolve(void 0);n=function(){s.then(c)}}else n=function(){o.call(r,c)};else{var f=!0,p=document.createTextNode("");new i(c).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t,n){var r=n(7).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){"use strict";var r=n(6),o=n(3),i=n(7),a=n(116),u=n(120);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then(function(){return n})}:e,n?function(n){return u(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var r=n(6),o=n(96),i=n(119);r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){var r=n(99);e.exports=function(e){if(r(e))return e}},function(e,t,n){n(164),e.exports=n(3).Array.isArray},function(e,t,n){var r=n(6);r(r.S,"Array",{isArray:n(91)})},function(e,t,n){var r=n(166);e.exports=function(e,t){var n=[],o=!0,i=!1,a=void 0;try{for(var u,l=r(e);!(o=(u=l.next()).done)&&(n.push(u.value),!t||n.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}return n}},function(e,t,n){e.exports=n(167)},function(e,t,n){n(56),n(45),e.exports=n(168)},function(e,t,n){var r=n(21),o=n(95);e.exports=n(3).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){"use strict"; -/** @license React v16.5.2 - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r=n(123),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112;o&&Symbol.for("react.placeholder");var h="function"==typeof Symbol&&Symbol.iterator;function m(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;rP.length&&P.push(e)}function N(e,t,n){return null==e?0:function e(t,n,r,o){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var l=!1;if(null===t)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case a:l=!0}}if(l)return r(o,t,""===n?"."+R(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;cthis.eventPool.length&&this.eventPool.push(e)}function de(e){e.eventPool=[],e.getPooled=fe,e.release=pe}o(se.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=le)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=le)},persist:function(){this.isPersistent=le},isPersistent:ce,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ce,this._dispatchInstances=this._dispatchListeners=null}}),se.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},se.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,de(n),n},de(se);var he=se.extend({data:null}),me=se.extend({data:null}),ve=[9,13,27,32],ye=K&&"CompositionEvent"in window,ge=null;K&&"documentMode"in document&&(ge=document.documentMode);var be=K&&"TextEvent"in window&&!ge,we=K&&(!ye||ge&&8=ge),xe=String.fromCharCode(32),ke={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},_e=!1;function Ee(e,t){switch(e){case"keyup":return-1!==ve.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Se(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Oe=!1;var Ce={eventTypes:ke,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(ye)e:{switch(e){case"compositionstart":o=ke.compositionStart;break e;case"compositionend":o=ke.compositionEnd;break e;case"compositionupdate":o=ke.compositionUpdate;break e}o=void 0}else Oe?Ee(e,n)&&(o=ke.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=ke.compositionStart);return o?(we&&"ko"!==n.locale&&(Oe||o!==ke.compositionStart?o===ke.compositionEnd&&Oe&&(i=ue()):(ie="value"in(oe=r)?oe.value:oe.textContent,Oe=!0)),o=he.getPooled(o,t,n,r),i?o.data=i:null!==(i=Se(n))&&(o.data=i),$(o),i=o):i=null,(e=be?function(e,t){switch(e){case"compositionend":return Se(t);case"keypress":return 32!==t.which?null:(_e=!0,xe);case"textInput":return(e=t.data)===xe&&_e?null:e;default:return null}}(e,n):function(e,t){if(Oe)return"compositionend"===e||!ye&&Ee(e,t)?(e=ue(),ae=ie=oe=null,Oe=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1