@data-fair/dev-server 1.0.3 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -1,9 +1,9 @@
1
1
  <!doctype html>
2
2
  <html>
3
3
  <head>
4
- <title>DataFair - Dev server</title><meta data-n-head="1" charset="utf-8"><meta data-n-head="1" name="viewport" content="width=device-width,initial-scale=1"><meta data-n-head="1" data-hid="application" name="application-name" content="DataFair - Dev server"><meta data-n-head="1" data-hid="description" name="description" content="A development server for optimal development experience of data-fair applications."><meta data-n-head="1" data-hid="robots" name="robots" content="noindex"><link data-n-head="1" rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap"><link data-n-head="1" rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"><link rel="preload" href="/_nuxt/9c94168.js" as="script"><link rel="preload" href="/_nuxt/d0fe889.js" as="script"><link rel="preload" href="/_nuxt/dd24b1d.js" as="script"><link rel="preload" href="/_nuxt/6550560.js" as="script">
4
+ <title>DataFair - Dev server</title><meta data-n-head="1" charset="utf-8"><meta data-n-head="1" name="viewport" content="width=device-width,initial-scale=1"><meta data-n-head="1" data-hid="application" name="application-name" content="DataFair - Dev server"><meta data-n-head="1" data-hid="description" name="description" content="A development server for optimal development experience of data-fair applications."><meta data-n-head="1" data-hid="robots" name="robots" content="noindex"><link data-n-head="1" rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap"><link data-n-head="1" rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"><link rel="preload" href="/_nuxt/afe309f.js" as="script"><link rel="preload" href="/_nuxt/04fc13d.js" as="script"><link rel="preload" href="/_nuxt/13c55a4.js" as="script"><link rel="preload" href="/_nuxt/a928dea.js" as="script">
5
5
  </head>
6
6
  <body>
7
- <div id="__nuxt"><style>#nuxt-loading{background:#fff;visibility:hidden;opacity:0;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center;flex-direction:column;animation:nuxtLoadingIn 10s ease;-webkit-animation:nuxtLoadingIn 10s ease;animation-fill-mode:forwards;overflow:hidden}@keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}@-webkit-keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}#nuxt-loading>div,#nuxt-loading>div:after{border-radius:50%;width:5rem;height:5rem}#nuxt-loading>div{font-size:10px;position:relative;text-indent:-9999em;border:.5rem solid #f5f5f5;border-left:.5rem solid #000;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:nuxtLoading 1.1s infinite linear;animation:nuxtLoading 1.1s infinite linear}#nuxt-loading.error>div{border-left:.5rem solid #ff4500;animation-duration:5s}@-webkit-keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}</style><script>window.addEventListener("error",function(){var e=document.getElementById("nuxt-loading");e&&(e.className+=" error")})</script><div id="nuxt-loading" aria-live="polite" role="status"><div>Loading...</div></div></div><script>window.__NUXT__={config:{}}</script>
8
- <script src="/_nuxt/9c94168.js"></script><script src="/_nuxt/d0fe889.js"></script><script src="/_nuxt/dd24b1d.js"></script><script src="/_nuxt/6550560.js"></script></body>
7
+ <div id="__nuxt"><style>#nuxt-loading{background:#fff;visibility:hidden;opacity:0;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center;flex-direction:column;animation:nuxtLoadingIn 10s ease;-webkit-animation:nuxtLoadingIn 10s ease;animation-fill-mode:forwards;overflow:hidden}@keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}@-webkit-keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}#nuxt-loading>div,#nuxt-loading>div:after{border-radius:50%;width:5rem;height:5rem}#nuxt-loading>div{font-size:10px;position:relative;text-indent:-9999em;border:.5rem solid #f5f5f5;border-left:.5rem solid #000;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:nuxtLoading 1.1s infinite linear;animation:nuxtLoading 1.1s infinite linear}#nuxt-loading.error>div{border-left:.5rem solid #ff4500;animation-duration:5s}@-webkit-keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}</style><script>window.addEventListener("error",function(){var e=document.getElementById("nuxt-loading");e&&(e.className+=" error")})</script><div id="nuxt-loading" aria-live="polite" role="status"><div>Loading...</div></div></div><script>window.__NUXT__={config:{_app:{basePath:"/",assetsPath:"/_nuxt/",cdnURL:null}}}</script>
8
+ <script src="/_nuxt/afe309f.js"></script><script src="/_nuxt/04fc13d.js"></script><script src="/_nuxt/13c55a4.js"></script><script src="/_nuxt/a928dea.js"></script></body>
9
9
  </html>
package/nuxt.config.js CHANGED
@@ -5,10 +5,27 @@ if (process.argv.slice(-1)[0] === 'generate') {
5
5
  config = nuxtConfigInject.prepare(config)
6
6
  }
7
7
 
8
+ const locales = ['en', 'fr']
9
+
8
10
  module.exports = {
9
- mode: 'spa',
11
+ ssr: false,
12
+ components: true,
10
13
  srcDir: 'public/',
11
- modules: ['@nuxtjs/axios'],
14
+ telemetry: false,
15
+ modules: ['@nuxtjs/axios', ['@nuxtjs/i18n', {
16
+ seo: false,
17
+ locales,
18
+ defaultLocale: 'en',
19
+ vueI18nLoader: true,
20
+ strategy: 'no_prefix',
21
+ detectBrowserLanguage: {
22
+ useCookie: true,
23
+ cookieKey: 'i18n_lang'
24
+ },
25
+ vueI18n: {
26
+ fallbackLocale: 'en'
27
+ }
28
+ }]],
12
29
  axios: {
13
30
  browserBaseURL: 'http://localhost:5888/data-fair'
14
31
  },
@@ -24,7 +41,7 @@ module.exports = {
24
41
  }
25
42
  }
26
43
  },
27
- env: { app: config.app, dataFair: config.dataFair },
44
+ env: { app: config.app, dataFair: config.dataFair, iframeLog: config.iframeLog, locales },
28
45
  head: {
29
46
  title: 'DataFair - Dev server',
30
47
  meta: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/dev-server",
3
- "version": "1.0.3",
3
+ "version": "1.3.0",
4
4
  "description": "A development server for optimal development experience of data-fair applications.",
5
5
  "main": "server/index.js",
6
6
  "bin": {
@@ -26,47 +26,61 @@
26
26
  "url": "https://github.com/koumoul-dev/df-dev-server/issues"
27
27
  },
28
28
  "homepage": "https://github.com/koumoul-dev/df-dev-server#readme",
29
+ "eslintConfig": {
30
+ "root": true,
31
+ "env": {
32
+ "node": true
33
+ },
34
+ "extends": [
35
+ "plugin:vue/essential",
36
+ "eslint:recommended",
37
+ "standard",
38
+ "plugin:vue/recommended"
39
+ ],
40
+ "rules": {
41
+ "vue/no-v-html": "off",
42
+ "vue/multi-word-component-names": "off"
43
+ }
44
+ },
29
45
  "dependencies": {
30
46
  "@koumoul/nuxt-config-inject": "^0.4.4",
31
- "@koumoul/vjsf": "^2.1.3",
32
- "ajv": "^6.12.0",
33
- "body-parser": "^1.19.0",
47
+ "@koumoul/vjsf": "^2.9.0",
48
+ "ajv": "^8.8.2",
49
+ "ajv-i18n": "^4.2.0",
50
+ "body-parser": "^1.19.1",
34
51
  "chalk": "^3.0.0",
35
- "config": "^3.2.4",
52
+ "config": "^3.3.6",
36
53
  "cors": "^2.8.5",
37
- "dot-prop": "^6.0.0",
54
+ "dot-prop": "^6.0.1",
38
55
  "dotenv": "^10.0.0",
39
56
  "escape-string-regexp": "^2.0.0",
40
57
  "event-to-promise": "^0.8.0",
41
- "express": "^4.17.1",
42
- "fs-extra": "^8.1.0",
43
- "http-proxy-middleware": "^0.20.0",
44
- "open": "^7.0.0",
58
+ "express": "^4.17.2",
59
+ "fs-extra": "^10.0.0",
60
+ "http-proxy-middleware": "^2.0.1",
61
+ "open": "^8.4.0",
45
62
  "parse5": "^6.0.1",
46
63
  "tree-kill": "^1.2.2",
47
- "ws": "^7.3.0"
64
+ "ws": "^8.3.0"
48
65
  },
49
66
  "devDependencies": {
50
- "@koumoul/v-iframe": "^0.2.3",
51
- "@nuxtjs/axios": "^5.12.5",
52
- "@nuxtjs/vuetify": "^1.11.3",
53
- "babel-eslint": "^10.1.0",
54
- "cross-env": "^6.0.3",
55
- "eslint": "^6.8.0",
56
- "eslint-config-standard": "^14.1.1",
57
- "eslint-friendly-formatter": "^4.0.1",
58
- "eslint-loader": "^3.0.4",
59
- "eslint-plugin-import": "^2.22.1",
60
- "eslint-plugin-node": "^10.0.0",
61
- "eslint-plugin-promise": "^4.2.1",
62
- "eslint-plugin-standard": "^4.1.0",
63
- "eslint-plugin-vue": "^6.2.2",
64
- "eslint-plugin-vuetify": "^1.0.0-beta.7",
67
+ "@babel/eslint-parser": "^7.16.0",
68
+ "@koumoul/v-iframe": "^0.9.1",
69
+ "@nuxtjs/axios": "^5.13.6",
70
+ "@nuxtjs/i18n": "^7.2.0",
71
+ "@nuxtjs/vuetify": "^1.12.3",
72
+ "cross-env": "^7.0.3",
73
+ "eslint": "^7.12.1",
74
+ "eslint-config-standard": "^16.0.3",
75
+ "eslint-plugin-import": "^2.25.2",
76
+ "eslint-plugin-node": "^11.1.0",
77
+ "eslint-plugin-promise": "^5.1.1",
78
+ "eslint-plugin-vue": "^8.0.3",
65
79
  "http-server": "^0.12.3",
66
- "iframe-resizer": "^4.3.1",
67
- "nodemon": "^2.0.7",
68
- "nuxt": "^2.14.12",
80
+ "iframe-resizer": "^4.3.2",
81
+ "nodemon": "^2.0.15",
82
+ "nuxt": "^2.15.8",
69
83
  "reconnecting-websocket": "^4.4.0",
70
- "vuetify": "^2.4.11"
84
+ "vuetify": "^2.6.1"
71
85
  }
72
86
  }
package/server/app.js CHANGED
@@ -7,7 +7,7 @@ const config = require('config')
7
7
  const eventToPromise = require('event-to-promise')
8
8
  const http = require('http')
9
9
  const fs = require('fs-extra')
10
- const proxy = require('http-proxy-middleware')
10
+ const { createProxyMiddleware } = require('http-proxy-middleware')
11
11
  const cors = require('cors')
12
12
  const open = require('open')
13
13
  const kill = require('tree-kill')
@@ -25,7 +25,7 @@ wss.on('connection', (_ws) => {
25
25
  if (ws) ws.terminate()
26
26
  ws = _ws
27
27
 
28
- ws.on('message', function incoming(message) {
28
+ ws.on('message', function incoming (message) {
29
29
  if (!message.includes('"pong"')) console.log('received: %s', message)
30
30
  })
31
31
  ws.send(JSON.stringify({ type: 'ping' }))
@@ -53,7 +53,7 @@ app.post('/config/error', (req, res) => {
53
53
 
54
54
  // re-expose the application performing similar modifications to the body as data-fair
55
55
  const appUrl = new URL(config.app.url)
56
- app.use('/app', proxy({
56
+ app.use('/app', createProxyMiddleware({
57
57
  target: appUrl.origin,
58
58
  pathRewrite: { '^/app': appUrl.pathname === '/' ? '' : appUrl.pathname },
59
59
  secure: false,
@@ -151,14 +151,14 @@ setTimeout(function() {
151
151
 
152
152
  // re-expose a data-fair instance to access datasets, etc.
153
153
  const dfUrl = new URL(config.dataFair.url)
154
- app.use('/data-fair', proxy({
154
+ app.use('/data-fair', createProxyMiddleware({
155
155
  target: dfUrl.origin,
156
156
  pathRewrite: { '^/data-fair': dfUrl.pathname },
157
157
  secure: false,
158
158
  changeOrigin: true,
159
159
  ws: true,
160
160
  selfHandleResponse: true, // so that the onProxyRes takes care of sending the response
161
- onProxyReq(proxyReq) {
161
+ onProxyReq (proxyReq) {
162
162
  // no gzip so that we can process the content
163
163
  proxyReq.setHeader('accept-encoding', 'identity')
164
164
  proxyReq.setHeader('cookie', '')
@@ -218,7 +218,7 @@ exports.run = async () => {
218
218
  return server
219
219
  }
220
220
 
221
- exports.stop = async() => {
221
+ exports.stop = async () => {
222
222
  if (spawnedDevSrc) kill(spawnedDevSrc.pid)
223
223
  if (ws) ws.terminate()
224
224
  server.close()
package/.eslintrc.js DELETED
@@ -1,31 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- parserOptions: {
4
- parser: 'babel-eslint',
5
- sourceType: 'module'
6
- },
7
- extends: [
8
- // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
9
- 'standard',
10
- // https://github.com/vuejs/eslint-plugin-vue,
11
- 'plugin:vue/recommended'
12
- ],
13
- plugins: [],
14
- // add your custom rules here
15
- rules: {
16
- // allow paren-less arrow functions
17
- 'arrow-parens': 0,
18
- // allow async-await
19
- 'generator-star-spacing': 0,
20
- // allow debugger during development
21
- 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
22
- // This rule is required because atom vue-format package remove the space
23
- 'space-before-function-paren': 0,
24
- // Turn off vuejs rules, not because ther are not good, but mostly because
25
- // they are very present in initial code base.. Maybe we should clean that up someday..
26
- 'vue/max-attributes-per-line': 'off',
27
- 'vue/require-prop-types': 'off',
28
- 'no-new': 'off',
29
- 'no-template-curly-in-string': 'off'
30
- }
31
- }
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1:function(t,e,n){"use strict";n.d(e,"k",(function(){return x})),n.d(e,"m",(function(){return w})),n.d(e,"l",(function(){return _})),n.d(e,"e",(function(){return O})),n.d(e,"b",(function(){return $})),n.d(e,"s",(function(){return j})),n.d(e,"g",(function(){return C})),n.d(e,"h",(function(){return k})),n.d(e,"d",(function(){return S})),n.d(e,"r",(function(){return E})),n.d(e,"j",(function(){return A})),n.d(e,"t",(function(){return P})),n.d(e,"o",(function(){return N})),n.d(e,"q",(function(){return D})),n.d(e,"f",(function(){return I})),n.d(e,"c",(function(){return L})),n.d(e,"i",(function(){return F})),n.d(e,"p",(function(){return M})),n.d(e,"a",(function(){return J})),n.d(e,"n",(function(){return V})),n.d(e,"u",(function(){return X}));n(31),n(42),n(23),n(43),n(56),n(57),n(51),n(76);var r=n(20),o=(n(13),n(14),n(180),n(128),n(52),n(44),n(60),n(11)),c=(n(41),n(28),n(26),n(6)),f=n(4),l=(n(16),n(2),n(182),n(0)),h=n(68);function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function m(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){Object(c.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function v(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,f=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){f=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw o}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function x(t){l.a.config.errorHandler&&l.a.config.errorHandler(t)}function w(t){return t.then((function(t){return t.default||t}))}function _(t){return t.$options&&"function"==typeof t.$options.fetch&&!t.$options.fetch.length}function O(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.$children||[],o=v(r);try{for(o.s();!(e=o.n()).done;){var c=e.value;c.$fetch?n.push(c):c.$children&&O(c,n)}}catch(t){o.e(t)}finally{o.f()}return n}function $(t,e){if(e||!t.options.__hasNuxtData){var n=t.options._originDataFn||t.options.data||function(){return{}};t.options._originDataFn=n,t.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),m(m({},data),e)},t.options.__hasNuxtData=!0,t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data)}}function j(t){return t.options&&t._Ctor===t||(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=l.a.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file)),t}function C(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],t.matched.map((function(t,r){return Object.keys(t[n]).map((function(o){return e&&e.push(r),t[n][o]}))})))}function k(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return C(t,e,"instances")}function S(t,e){return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).reduce((function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r}),[])})))}function E(t,e){return Promise.all(S(t,function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n,r,o,c){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof n||n.options){t.next=4;break}return t.next=3,n();case 3:n=t.sent;case 4:return o.components[c]=n=j(n),t.abrupt("return","function"==typeof e?e(n,r,o,c):n);case 6:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}()))}function A(t){return R.apply(this,arguments)}function R(){return(R=Object(o.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,E(e);case 4:return t.abrupt("return",m(m({},e),{},{meta:C(e).map((function(t,n){return m(m({},t.options.meta),(e.matched[n]||{}).meta)}))}));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function P(t,e){return T.apply(this,arguments)}function T(){return(T=Object(o.a)(regeneratorRuntime.mark((function t(e,n){var o,c,l,h;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.context||(e.context={isStatic:!0,isDev:!1,isHMR:!1,app:e,payload:n.payload,error:n.error,base:"/",env:{app:{url:"http://STARTCONFIGALIAS-string-app.url-ENDCONFIGALIAS"},dataFair:{url:"https://STARTCONFIGALIAS-string-dataFair.url-ENDCONFIGALIAS",owner:{type:"STARTCONFIGALIAS-string-dataFair.owner.type-ENDCONFIGALIAS",id:"STARTCONFIGALIAS-string-dataFair.owner.id-ENDCONFIGALIAS"},apiKey:"STARTCONFIGALIAS-string-dataFair.apiKey-ENDCONFIGALIAS"}}},n.ssrContext&&(e.context.ssrContext=n.ssrContext),e.context.redirect=function(t,path,n){if(t){e.context._redirected=!0;var o=Object(r.a)(path);if("number"==typeof t||"undefined"!==o&&"object"!==o||(n=path||{},path=t,o=Object(r.a)(path),t=302),"object"===o&&(path=e.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=H(path,n),window.location.replace(path),new Error("ERR_REDIRECT");e.context.next({path:path,query:n,status:t})}},e.context.nuxtState=window.__NUXT__),t.next=3,Promise.all([A(n.route),A(n.from)]);case 3:o=t.sent,c=Object(f.a)(o,2),l=c[0],h=c[1],n.route&&(e.context.route=l),n.from&&(e.context.from=h),e.context.next=n.next,e.context._redirected=!1,e.context._errored=!1,e.context.isHMR=!1,e.context.params=e.context.route.params||{},e.context.query=e.context.route.query||{};case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function N(t,e){return!t.length||e._redirected||e._errored?Promise.resolve():D(t[0],e).then((function(){return N(t.slice(1),e)}))}function D(t,e){var n;return(n=2===t.length?new Promise((function(n){t(e,(function(t,data){t&&e.error(t),n(data=data||{})}))})):t(e))&&n instanceof Promise&&"function"==typeof n.then?n:Promise.resolve(n)}function I(base,t){if("hash"===t)return window.location.hash.replace(/^#\//,"");base=decodeURI(base).slice(0,-1);var path=decodeURI(window.location.pathname);base&&path.startsWith(base)&&(path=path.slice(base.length));var e=(path||"/")+window.location.search+window.location.hash;return Object(h.b)(e)}function L(t,e){return function(t,e){for(var n=new Array(t.length),i=0;i<t.length;i++)"object"===Object(r.a)(t[i])&&(n[i]=new RegExp("^(?:"+t[i].pattern+")$",z(e)));return function(e,r){for(var path="",data=e||{},o=(r||{}).pretty?B:encodeURIComponent,c=0;c<t.length;c++){var f=t[c];if("string"!=typeof f){var l=data[f.name||"pathMatch"],h=void 0;if(null==l){if(f.optional){f.partial&&(path+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(Array.isArray(l)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var d=0;d<l.length;d++){if(h=o(l[d]),!n[c].test(h))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(h)+"`");path+=(0===d?f.prefix:f.delimiter)+h}}else{if(h=f.asterisk?B(l,!0):o(l),!n[c].test(h))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+h+'"');path+=f.prefix+h}}else path+=f}return path}}(function(t,e){var n,r=[],o=0,c=0,path="",f=e&&e.delimiter||"/";for(;null!=(n=U.exec(t));){var l=n[0],h=n[1],d=n.index;if(path+=t.slice(c,d),c=d+l.length,h)path+=h[1];else{var m=t[c],v=n[2],y=n[3],x=n[4],w=n[5],_=n[6],O=n[7];path&&(r.push(path),path="");var $=null!=v&&null!=m&&m!==v,j="+"===_||"*"===_,C="?"===_||"*"===_,k=n[2]||f,pattern=x||w;r.push({name:y||o++,prefix:v||"",delimiter:k,optional:C,repeat:j,partial:$,asterisk:Boolean(O),pattern:pattern?G(pattern):O?".*":"[^"+K(k)+"]+?"})}}c<t.length&&(path+=t.substr(c));path&&r.push(path);return r}(t,e),e)}function F(t,e){var n={},r=m(m({},t),e);for(var o in r)String(t[o])!==String(e[o])&&(n[o]=!0);return n}function M(t){var e;if(t.message||"string"==typeof t)e=t.message||t;else try{e=JSON.stringify(t,null,2)}catch(n){e="[".concat(t.constructor.name,"]")}return m(m({},t),{},{message:e,statusCode:t.statusCode||t.status||t.response&&t.response.status||500})}window.onNuxtReadyCbs=[],window.onNuxtReady=function(t){window.onNuxtReadyCbs.push(t)};var U=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function B(t,e){var n=e?/[?#]/g:/[/?#]/g;return encodeURI(t).replace(n,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function K(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function G(t){return t.replace(/([=!:$/()])/g,"\\$1")}function z(t){return t&&t.sensitive?"":"i"}function H(t,e){var n,r=t.indexOf("://");-1!==r?(n=t.substring(0,r),t=t.substring(r+3)):t.startsWith("//")&&(t=t.substring(2));var o,c=t.split("/"),l=(n?n+"://":"//")+c.shift(),path=c.join("/");if(""===path&&1===c.length&&(l+="/"),2===(c=path.split("#")).length){var h=c,d=Object(f.a)(h,2);path=d[0],o=d[1]}return l+=path?"/"+path:"",e&&"{}"!==JSON.stringify(e)&&(l+=(2===t.split("?").length?"&":"?")+function(t){return Object.keys(t).sort().map((function(e){var n=t[e];return null==n?"":Array.isArray(n)?n.slice().map((function(t){return[e,"=",t].join("")})).join("&"):e+"="+n})).filter(Boolean).join("&")}(e)),l+=o?"#"+o:""}function J(t,e,n){t.$options[e]||(t.$options[e]=[]),t.$options[e].includes(n)||t.$options[e].push(n)}function Q(path){return path.replace(/\/+$/,"")||"/"}function V(t,e){return Q(t)===Q(e)}function X(t){try{window.history.scrollRestoration=t}catch(t){}}},132:function(t,e,n){var content=n(186);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(50).default)("72daabed",content,!0,{sourceMap:!1})},133:function(t,e,n){var content=n(188);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(50).default)("3191d5ad",content,!0,{sourceMap:!1})},134:function(t,e,n){var content=n(190);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(50).default)("60109ccc",content,!0,{sourceMap:!1})},148:function(t,e,n){"use strict";n(2),n(60);var r=n(11),o=n(0),c=n(1),f=window.__NUXT__;function l(){if(!this._hydrated)return this.$fetch()}function h(){if((t=this).$vnode&&t.$vnode.elm&&t.$vnode.elm.dataset&&t.$vnode.elm.dataset.fetchKey){var t;this._hydrated=!0,this._fetchKey=+this.$vnode.elm.dataset.fetchKey;var data=f.fetch[this._fetchKey];if(data&&data._error)this.$fetchState.error=data._error;else for(var e in data)o.a.set(this.$data,e,data[e])}}function d(){var t=this;return this._fetchPromise||(this._fetchPromise=m.call(this).then((function(){delete t._fetchPromise}))),this._fetchPromise}function m(){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(regeneratorRuntime.mark((function t(){var e,n,r,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,e=null,n=Date.now(),t.prev=6,t.next=9,this.$options.fetch.call(this);case 9:t.next=15;break;case 11:t.prev=11,t.t0=t.catch(6),e=Object(c.p)(t.t0);case 15:if(!((r=this._fetchDelay-(Date.now()-n))>0)){t.next=19;break}return t.next=19,new Promise((function(t){return setTimeout(t,r)}));case 19:this.$fetchState.error=e,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return t.stop()}}),t,this,[[6,11]])})))).apply(this,arguments)}e.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.a.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=d.bind(this),Object(c.a)(this,"created",h),Object(c.a)(this,"beforeMount",l))}}},163:function(t,e,n){t.exports=n(164)},164:function(t,e,n){"use strict";n.r(e),function(t){n(42),n(23),n(43),n(13),n(14),n(41);var e=n(20),r=(n(60),n(72),n(11)),o=(n(56),n(57),n(16),n(2),n(28),n(26),n(122),n(173),n(176),n(178),n(0)),c=n(144),f=n(97),l=n(1),h=n(32),d=n(148),m=n(85);function v(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,f=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){f=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw o}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}o.a.__nuxt__fetch__mixin__||(o.a.mixin(d.a),o.a.__nuxt__fetch__mixin__=!0),o.a.component(m.a.name,m.a),o.a.component("NLink",m.a),t.fetch||(t.fetch=c.a);var x,w,_=[],O=window.__NUXT__||{};Object.assign(o.a.config,{silent:!0,performance:!1});var $=o.a.config.errorHandler||console.error;function j(t,e,n){for(var r=function(component){var t=function(component,t){if(!component||!component.options||!component.options[t])return{};var option=component.options[t];if("function"==typeof option){for(var e=arguments.length,n=new Array(e>2?e-2:0),r=2;r<e;r++)n[r-2]=arguments[r];return option.apply(void 0,n)}return option}(component,"transition",e,n)||{};return"string"==typeof t?{name:t}:t},o=n?Object(l.g)(n):[],c=Math.max(t.length,o.length),f=[],h=function(i){var e=Object.assign({},r(t[i])),n=Object.assign({},r(o[i]));Object.keys(e).filter((function(t){return void 0!==e[t]&&!t.toLowerCase().includes("leave")})).forEach((function(t){n[t]=e[t]})),f.push(n)},i=0;i<c;i++)h(i);return f}function C(t,e,n){return k.apply(this,arguments)}function k(){return(k=Object(r.a)(regeneratorRuntime.mark((function t(e,n,r){var o,c,f,h,d=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._routeChanged=Boolean(x.nuxt.err)||n.name!==e.name,this._paramChanged=!this._routeChanged&&n.path!==e.path,this._queryChanged=!this._paramChanged&&n.fullPath!==e.fullPath,this._diffQuery=this._queryChanged?Object(l.i)(e.query,n.query):[],(this._routeChanged||this._paramChanged)&&this.$loading.start&&!this.$loading.manual&&this.$loading.start(),t.prev=5,!this._queryChanged){t.next=12;break}return t.next=9,Object(l.r)(e,(function(t,e){return{Component:t,instance:e}}));case 9:o=t.sent,o.some((function(t){var r=t.Component,o=t.instance,c=r.options.watchQuery;return!0===c||(Array.isArray(c)?c.some((function(t){return d._diffQuery[t]})):"function"==typeof c&&c.apply(o,[e.query,n.query]))}))&&this.$loading.start&&!this.$loading.manual&&this.$loading.start();case 12:r(),t.next=26;break;case 15:if(t.prev=15,t.t0=t.catch(5),c=t.t0||{},f=c.statusCode||c.status||c.response&&c.response.status||500,h=c.message||"",!/^Loading( CSS)? chunk (\d)+ failed\./.test(h)){t.next=23;break}return window.location.reload(!0),t.abrupt("return");case 23:this.error({statusCode:f,message:h}),this.$nuxt.$emit("routeChanged",e,n,c),r();case 26:case"end":return t.stop()}}),t,this,[[5,15]])})))).apply(this,arguments)}function S(t,e){return O.serverRendered&&e&&Object(l.b)(t,e),t._Ctor=t,t}function E(t){var path=Object(l.f)(t.options.base,t.options.mode);return Object(l.d)(t.match(path),function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e,n,r,o,c){var f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e||e.options){t.next=4;break}return t.next=3,e();case 3:e=t.sent;case 4:return f=S(Object(l.s)(e),O.data?O.data[c]:null),r.components[o]=f,t.abrupt("return",f);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r,o,c){return t.apply(this,arguments)}}())}function A(t,e,n){var r=this,o=[],c=!1;if(void 0!==n&&(o=[],(n=Object(l.s)(n)).options.middleware&&(o=o.concat(n.options.middleware)),t.forEach((function(t){t.options.middleware&&(o=o.concat(t.options.middleware))}))),o=o.map((function(t){return"function"==typeof t?t:("function"!=typeof f.a[t]&&(c=!0,r.error({statusCode:500,message:"Unknown middleware "+t})),f.a[t])})),!c)return Object(l.o)(o,e)}function R(t,e,n){return P.apply(this,arguments)}function P(){return(P=Object(r.a)(regeneratorRuntime.mark((function t(e,n,o){var c,f,d,m,y,w,O,$,C,k,S,E,R,P,T,N=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){t.next=2;break}return t.abrupt("return",o());case 2:return!1,e===n?(_=[],!0):(c=[],_=Object(l.g)(n,c).map((function(t,i){return Object(l.c)(n.matched[c[i]].path)(n.params)}))),f=!1,d=function(path){n.path===path.path&&N.$loading.finish&&N.$loading.finish(),n.path!==path.path&&N.$loading.pause&&N.$loading.pause(),f||(f=!0,o(path))},t.next=8,Object(l.t)(x,{route:e,from:n,next:d.bind(this)});case 8:if(this._dateLastError=x.nuxt.dateErr,this._hadError=Boolean(x.nuxt.err),m=[],(y=Object(l.g)(e,m)).length){t.next=27;break}return t.next=15,A.call(this,y,x.context);case 15:if(!f){t.next=17;break}return t.abrupt("return");case 17:return w=(h.a.options||h.a).layout,t.next=20,this.loadLayout("function"==typeof w?w.call(h.a,x.context):w);case 20:return O=t.sent,t.next=23,A.call(this,y,x.context,O);case 23:if(!f){t.next=25;break}return t.abrupt("return");case 25:return x.context.error({statusCode:404,message:"This page could not be found"}),t.abrupt("return",o());case 27:return y.forEach((function(t){t._Ctor&&t._Ctor.options&&(t.options.asyncData=t._Ctor.options.asyncData,t.options.fetch=t._Ctor.options.fetch)})),this.setTransitions(j(y,e,n)),t.prev=29,t.next=32,A.call(this,y,x.context);case 32:if(!f){t.next=34;break}return t.abrupt("return");case 34:if(!x.context._errored){t.next=36;break}return t.abrupt("return",o());case 36:return"function"==typeof($=y[0].options.layout)&&($=$(x.context)),t.next=40,this.loadLayout($);case 40:return $=t.sent,t.next=43,A.call(this,y,x.context,$);case 43:if(!f){t.next=45;break}return t.abrupt("return");case 45:if(!x.context._errored){t.next=47;break}return t.abrupt("return",o());case 47:C=!0,t.prev=48,k=v(y),t.prev=50,k.s();case 52:if((S=k.n()).done){t.next=63;break}if("function"==typeof(E=S.value).options.validate){t.next=56;break}return t.abrupt("continue",61);case 56:return t.next=58,E.options.validate(x.context);case 58:if(C=t.sent){t.next=61;break}return t.abrupt("break",63);case 61:t.next=52;break;case 63:t.next=68;break;case 65:t.prev=65,t.t0=t.catch(50),k.e(t.t0);case 68:return t.prev=68,k.f(),t.finish(68);case 71:t.next=77;break;case 73:return t.prev=73,t.t1=t.catch(48),this.error({statusCode:t.t1.statusCode||"500",message:t.t1.message}),t.abrupt("return",o());case 77:if(C){t.next=80;break}return this.error({statusCode:404,message:"This page could not be found"}),t.abrupt("return",o());case 80:return t.next=82,Promise.all(y.map(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(r,i){var o,c,f,h,d,v,y,w,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r._path=Object(l.c)(e.matched[m[i]].path)(e.params),r._dataRefresh=!1,o=r._path!==_[i],N._routeChanged&&o?r._dataRefresh=!0:N._paramChanged&&o?(c=r.options.watchParam,r._dataRefresh=!1!==c):N._queryChanged&&(!0===(f=r.options.watchQuery)?r._dataRefresh=!0:Array.isArray(f)?r._dataRefresh=f.some((function(t){return N._diffQuery[t]})):"function"==typeof f&&(R||(R=Object(l.h)(e)),r._dataRefresh=f.apply(R[i],[e.query,n.query]))),N._hadError||!N._isMounted||r._dataRefresh){t.next=6;break}return t.abrupt("return");case 6:return h=[],d=r.options.asyncData&&"function"==typeof r.options.asyncData,v=Boolean(r.options.fetch)&&r.options.fetch.length,y=d&&v?30:45,d&&((w=Object(l.q)(r.options.asyncData,x.context)).then((function(t){Object(l.b)(r,t),N.$loading.increase&&N.$loading.increase(y)})),h.push(w)),N.$loading.manual=!1===r.options.loading,v&&((p=r.options.fetch(x.context))&&(p instanceof Promise||"function"==typeof p.then)||(p=Promise.resolve(p)),p.then((function(t){N.$loading.increase&&N.$loading.increase(y)})),h.push(p)),t.abrupt("return",Promise.all(h));case 14:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()));case 82:f||(this.$loading.finish&&!this.$loading.manual&&this.$loading.finish(),o()),t.next=99;break;case 85:if(t.prev=85,t.t2=t.catch(29),"ERR_REDIRECT"!==(P=t.t2||{}).message){t.next=90;break}return t.abrupt("return",this.$nuxt.$emit("routeChanged",e,n,P));case 90:return _=[],Object(l.k)(P),"function"==typeof(T=(h.a.options||h.a).layout)&&(T=T(x.context)),t.next=96,this.loadLayout(T);case 96:this.error(P),this.$nuxt.$emit("routeChanged",e,n,P),o();case 99:case"end":return t.stop()}}),t,this,[[29,85],[48,73],[50,65,68,71]])})))).apply(this,arguments)}function T(t,n){Object(l.d)(t,(function(t,n,r,c){return"object"!==Object(e.a)(t)||t.options||((t=o.a.extend(t))._Ctor=t,r.components[c]=t),t}))}function N(t){var e=Boolean(this.$options.nuxt.err);this._hadError&&this._dateLastError===this.$options.nuxt.dateErr&&(e=!1);var n=e?(h.a.options||h.a).layout:t.matched[0].components.default.options.layout;"function"==typeof n&&(n=n(x.context)),this.setLayout(n)}function D(t){t._hadError&&t._dateLastError===t.$options.nuxt.dateErr&&t.error()}function I(t,e){var n=this;if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){var r=Object(l.h)(t),c=Object(l.g)(t),f=!1;o.a.nextTick((function(){r.forEach((function(t,i){if(t&&!t._isDestroyed&&t.constructor._dataRefresh&&c[i]===t.constructor&&!0!==t.$vnode.data.keepAlive&&"function"==typeof t.constructor.options.data){var e=t.constructor.options.data.call(t);for(var n in e)o.a.set(t.$data,n,e[n]);f=!0}})),f&&window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),D(n)}))}}function L(t){window.onNuxtReadyCbs.forEach((function(e){"function"==typeof e&&e(t)})),"function"==typeof window._onNuxtLoaded&&window._onNuxtLoaded(t),w.afterEach((function(e,n){o.a.nextTick((function(){return t.$nuxt.$emit("routeChanged",e,n)}))}))}function F(){return(F=Object(r.a)(regeneratorRuntime.mark((function t(e){var n,r,c,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x=e.app,w=e.router,n=new o.a(x),r=function(){n.$mount("#__nuxt"),w.afterEach(T),w.afterEach(N.bind(n)),w.afterEach(I.bind(n)),o.a.nextTick((function(){L(n)}))},t.next=6,Promise.all(E(w));case 6:if(c=t.sent,n.setTransitions=n.$options.nuxt.setTransitions.bind(n),c.length&&(n.setTransitions(j(c,w.currentRoute)),_=w.currentRoute.matched.map((function(t){return Object(l.c)(t.path)(w.currentRoute.params)}))),n.$loading={},O.error&&n.error(O.error),w.beforeEach(C.bind(n)),w.beforeEach(R.bind(n)),!O.serverRendered||!Object(l.n)(O.routePath,n.context.route.path)){t.next=15;break}return t.abrupt("return",r());case 15:return f=function(){T(w.currentRoute,w.currentRoute),N.call(n,w.currentRoute),D(n),r()},t.next=18,new Promise((function(t){return setTimeout(t,0)}));case 18:R.call(n,w.currentRoute,w.currentRoute,(function(path){if(path){var t=w.afterEach((function(e,n){t(),f()}));w.push(path,void 0,(function(t){t&&$(t)}))}else f()}));case 19:case"end":return t.stop()}}),t)})))).apply(this,arguments)}Object(h.b)(null,O.config).then((function(t){return F.apply(this,arguments)})).catch($)}.call(this,n(58))},185:function(t,e,n){"use strict";n(132)},186:function(t,e,n){(e=n(49)(!1)).push([t.i,".__nuxt-error-page{padding:1rem;background:#f7f8fb;color:#47494e;text-align:center;display:flex;justify-content:center;align-items:center;flex-direction:column;font-family:sans-serif;font-weight:100!important;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;position:absolute;top:0;left:0;right:0;bottom:0}.__nuxt-error-page .error{max-width:450px}.__nuxt-error-page .title{font-size:1.5rem;margin-top:15px;color:#47494e;margin-bottom:8px}.__nuxt-error-page .description{color:#7f828b;line-height:21px;margin-bottom:10px}.__nuxt-error-page a{color:#7f828b!important;text-decoration:none}.__nuxt-error-page .logo{position:fixed;left:12px;bottom:12px}",""]),t.exports=e},187:function(t,e,n){"use strict";n(133)},188:function(t,e,n){(e=n(49)(!1)).push([t.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;opacity:1;transition:width .1s,opacity .4s;background-color:#000;z-index:999999}.nuxt-progress.nuxt-progress-notransition{transition:none}.nuxt-progress-failed{background-color:red}",""]),t.exports=e},189:function(t,e,n){"use strict";n(134)},190:function(t,e,n){(e=n(49)(!1)).push([t.i,'body .v-application{font-family:"Nunito",sans-serif}',""]),t.exports=e},32:function(t,e,n){"use strict";n.d(e,"b",(function(){return vt})),n.d(e,"a",(function(){return A}));n(31),n(23),n(16),n(28),n(2),n(60);var r=n(11),o=n(6),c=(n(26),n(0)),f=n(145),l=n(98),h=n.n(l),d=n(55),m=n.n(d),v=n(70),y=n(68),x=n(1);"scrollRestoration"in window.history&&(Object(x.u)("manual"),window.addEventListener("beforeunload",(function(){Object(x.u)("auto")})),window.addEventListener("load",(function(){Object(x.u)("manual")})));var w=function(){},_=v.a.prototype.push;v.a.prototype.push=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w,n=arguments.length>2?arguments[2]:void 0;return _.call(this,t,e,n)},c.a.use(v.a);var O={mode:"history",base:"/",linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:function(t,e,n){var r=!1,o=Object(x.g)(t);(o.some((function(t){return t.options.scrollToTop}))||o.length<2&&o.every((function(t){return!1!==t.options.scrollToTop})))&&(r={x:0,y:0}),n&&(r=n);var c=window.$nuxt;return(t.path===e.path&&t.hash!==e.hash||t===e)&&c.$nextTick((function(){return c.$emit("triggerScroll")})),new Promise((function(e){c.$once("triggerScroll",(function(){if(t.hash){var n=t.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(n="#"+window.CSS.escape(n.substr(1)));try{document.querySelector(n)&&(r={selector:n})}catch(t){console.warn("Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).")}}e(r)}))}))},routes:[{path:"/",component:function(){return Object(x.m)(Promise.all([n.e(5),n.e(2)]).then(n.bind(null,552)))},name:"index"}],fallback:!1};function $(){var t=new v.a(O),e=t.resolve.bind(t);return t.resolve=function(t,n,r){"string"==typeof t&&(t=Object(y.b)(t));var o=e(t,n,r);return o&&o.resolved&&o.resolved.query&&function(t){for(var e in t)"string"==typeof t[e]&&(t[e]=Object(y.a)(t[e]))}(o.resolved.query),o},t}var j={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(t,e){var n=e.parent,data=e.data,r=e.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,f=n.$nuxt.nuxt.transitions,l=n.$nuxt.nuxt.defaultTransition,h=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&h++,n=n.$parent;data.nuxtChildDepth=h;var d=f[h]||l,m={};C.forEach((function(t){void 0!==d[t]&&(m[t]=d[t])}));var v={};k.forEach((function(t){"function"==typeof d[t]&&(v[t]=d[t].bind(c))}));var y=v.beforeEnter;if(v.beforeEnter=function(t){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),y)return y.call(c,t)},!1===d.css){var x=v.leave;(!x||x.length<2)&&(v.leave=function(t,e){x&&x.call(c,t),c.$nextTick(e)})}var w=o("routerView",data);return r.keepAlive&&(w=o("keep-alive",{props:r.keepAliveProps},[w])),o("transition",{props:m,on:v},[w])}},C=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],k=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],S={name:"NuxtError",props:{error:{type:Object,default:null}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}},head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0"}]}}},E=(n(185),n(54)),A=Object(E.a)(S,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"__nuxt-error-page"},[n("div",{staticClass:"error"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[n("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t._v(" "),n("div",{staticClass:"title"},[t._v(t._s(t.message))]),t._v(" "),404===t.statusCode?n("p",{staticClass:"description"},[void 0===t.$route?n("a",{staticClass:"error-link",attrs:{href:"/"}}):n("NuxtLink",{staticClass:"error-link",attrs:{to:"/"}},[t._v("Back to the home page")])],1):t._e(),t._v(" "),t._m(0)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logo"},[e("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt")])])}],!1,null,null,null).exports,R=(n(13),n(14),n(44),n(4)),P={name:"Nuxt",components:{NuxtChild:j,NuxtError:A},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(t){this.displayingNuxtError&&(this.errorFromNuxtError=t,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(x.c)(this.$route.matched[0].path)(this.$route.params);var t=Object(R.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){var e=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return e.errorFromNuxtError=!1})),t("div",{},[t("h2","An error occurred while showing the error page"),t("p","Unfortunately an error occurred and while showing the error page another error occurred"),t("p","Error details: ".concat(this.errorFromNuxtError.toString())),t("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return e.displayingNuxtError=!1})),t(A,{props:{error:this.nuxt.err}})):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}},T=(n(42),n(43),n(41),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return t.startTimer()}),this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),setTimeout((function(){t.show=!1,t.$nextTick((function(){t.percent=0,t.reversed=!1}))}),500),this},fail:function(t){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100||t.percent<=0)&&(t.skipTimerCount=1,t.reversed=!t.reversed))}),100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}}),N=(n(187),Object(E.a)(T,void 0,void 0,!1,null,null,null).exports),D={},I=(n(189),n(102)),L=n.n(I),F=n(226),M=n(227),U=Object(E.a)(D,(function(){var t=this.$createElement,e=this._self._c||t;return e("v-app",[e("v-content",[e("nuxt")],1)],1)}),[],!1,null,null,null),B=U.exports;function K(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,f=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){f=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw o}}}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}L()(U,{VApp:F.a,VContent:M.a});var z={_default:Object(x.s)(B)},H={render:function(t,e){var n=t("NuxtLoading",{ref:"loading"}),r=t(this.layout||"nuxt"),o=t("div",{domProps:{id:"__layout"},key:this.layoutName},[r]),c=t("transition",{props:{name:"layout",mode:"out-in"},on:{beforeEnter:function(t){window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")}))}}},[o]);return t("div",{domProps:{id:"__nuxt"}},[n,c])},data:function(){return{isOnline:!0,layout:null,layoutName:"",nbFetching:0}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){this.$root.$options.$nuxt=this,window.$nuxt=this,this.refreshOnlineStatus(),window.addEventListener("online",this.refreshOnlineStatus),window.addEventListener("offline",this.refreshOnlineStatus),this.error=this.nuxt.error,this.context=this.$options.context},mounted:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$loading=t.$refs.loading;case 1:case"end":return e.stop()}}),e)})))()},watch:{"nuxt.err":"errorChanged"},computed:{isOffline:function(){return!this.isOnline},isFetching:function(){return this.nbFetching>0},isPreview:function(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=Object(x.h)(t.$route)).length){e.next=3;break}return e.abrupt("return");case 3:return t.$loading.start(),r=n.map((function(e){var p=[];if(e.$options.fetch&&e.$options.fetch.length&&p.push(Object(x.q)(e.$options.fetch,t.context)),e.$fetch)p.push(e.$fetch());else{var n,r=K(Object(x.e)(e.$vnode.componentInstance));try{for(r.s();!(n=r.n()).done;){var component=n.value;p.push(component.$fetch())}}catch(t){r.e(t)}finally{r.f()}}return e.$options.asyncData&&p.push(Object(x.q)(e.$options.asyncData,t.context).then((function(t){for(var n in t)c.a.set(e.$data,n,t[n])}))),Promise.all(p)})),e.prev=5,e.next=8,Promise.all(r);case 8:e.next=15;break;case 10:e.prev=10,e.t0=e.catch(5),t.$loading.fail(e.t0),Object(x.k)(e.t0),t.error(e.t0);case 15:t.$loading.finish();case 16:case"end":return e.stop()}}),e,null,[[5,10]])})))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var t=(A.options||A).layout;"function"==typeof t&&(t=t(this.context)),this.setLayout(t)}},setLayout:function(t){return t&&z["_"+t]||(t="default"),this.layoutName=t,this.layout=z["_"+t],this.layout},loadLayout:function(t){return t&&z["_"+t]||(t="default"),Promise.resolve(z["_"+t])}},components:{NuxtLoading:N}},J=n(69),Q={theme:{themes:{light:{primary:"#1E88E5",accent:"#F57C00",warning:"#F57C00"}}}};c.a.use(J.a,{});var V=function(t){var e="function"==typeof Q?Q(t):Q;e.icons=e.icons||{},e.icons.iconfont="mdi";var n=new J.a(e);t.app.vuetify=n,t.$vuetify=n.framework},X=n(71),W=n.n(X),Y=n(147),Z=n.n(Y);function tt(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function et(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?tt(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):tt(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function nt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return ot(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ot(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,f=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){f=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw o}}}}function ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}for(var it={setBaseURL:function(t){this.defaults.baseURL=t},setHeader:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",o=nt(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;if(!e)return void delete this.defaults.headers[c][t];this.defaults.headers[c][t]=e}}catch(t){o.e(t)}finally{o.f()}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use((function(e){return t(e)||e}))},onResponse:function(t){this.interceptors.response.use((function(e){return t(e)||e}))},onRequestError:function(t){this.interceptors.request.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onResponseError:function(t){this.interceptors.response.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onError:function(t){this.onRequestError(t),this.onResponseError(t)},create:function(t){return ct(Z()(t,this.defaults))}},at=function(){var t=ut[st];it["$"+t]=function(){return this[t].apply(this,arguments).then((function(t){return t&&t.data}))}},st=0,ut=["request","delete","get","head","options","post","put","patch"];st<ut.length;st++)at();var ct=function(t){var e=W.a.create(t);return e.CancelToken=W.a.CancelToken,e.isCancel=W.a.isCancel,function(t){for(var e in it)t[e]=it[e].bind(t)}(e),e.onRequest((function(t){t.headers=et(et({},e.defaults.headers.common),t.headers)})),ft(e),e},ft=function(t){var e={finish:function(){},start:function(){},fail:function(){},set:function(){}},n=function(){var t="undefined"!=typeof window&&window.$nuxt;return t&&t.$loading&&t.$loading.set?t.$loading:e},r=0;t.onRequest((function(t){t&&!1===t.progress||r++})),t.onResponse((function(t){t&&t.config&&!1===t.config.progress||--r<=0&&(r=0,n().finish())})),t.onError((function(t){t&&t.config&&!1===t.config.progress||(r--,W.a.isCancel(t)?r<=0&&(r=0,n().finish()):(n().fail(),n().finish()))}));var o=function(t){if(r&&t.total){var progress=100*t.loaded/(t.total*r);n().set(Math.min(100,progress))}};t.defaults.onUploadProgress=o,t.defaults.onDownloadProgress=o},lt=function(t,e){var n=t.$config&&t.$config.axios||{},r=n.browserBaseURL||n.baseURL||"http://localhost:5888/data-fair";var o=ct({baseURL:r,headers:{common:{Accept:"application/json, text/plain, */*"},delete:{},get:{},head:{},post:{},put:{},patch:{}}});t.$axios=o,e("axios",o)};function pt(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function ht(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?pt(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):pt(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}c.a.component(h.a.name,h.a),c.a.component(m.a.name,ht(ht({},m.a),{},{render:function(t,e){return m.a._warned||(m.a._warned=!0,console.warn("<no-ssr> has been deprecated and will be removed in Nuxt 3, please use <client-only> instead")),m.a.render(t,e)}})),c.a.component(j.name,j),c.a.component("NChild",j),c.a.component(P.name,P),Object.defineProperty(c.a.prototype,"$nuxt",{get:function(){return this.$root.$options.$nuxt},configurable:!0}),c.a.use(f.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var mt={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};function vt(t){return yt.apply(this,arguments)}function yt(){return(yt=Object(r.a)(regeneratorRuntime.mark((function t(e){var n,r,o,f,l,path,h,d=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject('".concat(t,"', value) has no value provided"));o[t="$"+t]=e,o.context[t]||(o.context[t]=e);var n="__nuxt_"+t+"_installed__";c.a[n]||(c.a[n]=!0,c.a.use((function(){Object.prototype.hasOwnProperty.call(c.a.prototype,t)||Object.defineProperty(c.a.prototype,t,{get:function(){return this.$root.$options[t]}})})))},n=d.length>1&&void 0!==d[1]?d[1]:{},t.next=4,$();case 4:return r=t.sent,o=ht({head:{title:"DataFair - Dev server",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"application",name:"application-name",content:"DataFair - Dev server"},{hid:"description",name:"description",content:"A development server for optimal development experience of data-fair applications."},{hid:"robots",name:"robots",content:"noindex"}],link:[{rel:"stylesheet",type:"text/css",href:"https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap"},{rel:"stylesheet",type:"text/css",href:"https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"}],style:[],script:[]},router:r,nuxt:{defaultTransition:mt,transitions:[mt],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map((function(t){return t=t?"string"==typeof t?Object.assign({},mt,{name:t}):Object.assign({},mt,t):mt})),this.$options.nuxt.transitions=t,t},err:null,dateErr:null,error:function(t){t=t||null,o.context._errored=Boolean(t),t=t?Object(x.p)(t):null;var n=o.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=t,e&&(e.nuxt.error=t),t}}},H),f=e?e.next:function(t){return o.router.push(t)},e?l=r.resolve(e.url).route:(path=Object(x.f)(r.options.base,r.options.mode),l=r.resolve(path).route),t.next=10,Object(x.t)(o,{route:l,next:f,error:o.nuxt.error.bind(o),payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,ssrContext:e});case 10:return h("config",n),o.context.enablePreview=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o.previewData=Object.assign({},t),h("preview",t)},t.next=15,V(o.context);case 15:return t.next=18,lt(o.context,h);case 18:o.context.enablePreview=function(){console.warn("You cannot call enablePreview() outside a plugin.")},t.next=22;break;case 22:return t.abrupt("return",{app:o,router:r});case 23:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},85:function(t,e,n){"use strict";n(16),n(42),n(23),n(41),n(43),n(26),n(13),n(14),n(2),n(56),n(57);var r=n(0);function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,f=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return f=t.done,t},e:function(t){l=!0,o=t},f:function(){try{f||null==n.return||n.return()}finally{if(l)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var f=window.requestIdleCallback||function(t){var e=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})}),1)},l=window.cancelIdleCallback||function(t){clearTimeout(t)},h=window.IntersectionObserver&&new window.IntersectionObserver((function(t){t.forEach((function(t){var e=t.intersectionRatio,link=t.target;e<=0||link.__prefetch()}))}));e.a={name:"NuxtLink",extends:r.a.component("RouterLink"),props:{prefetch:{type:Boolean,default:!0},noPrefetch:{type:Boolean,default:!1}},mounted:function(){this.prefetch&&!this.noPrefetch&&(this.handleId=f(this.observe,{timeout:2e3}))},beforeDestroy:function(){l(this.handleId),this.__observed&&(h.unobserve(this.$el),delete this.$el.__prefetch)},methods:{observe:function(){h&&this.shouldPrefetch()&&(this.$el.__prefetch=this.prefetchLink.bind(this),h.observe(this.$el),this.__observed=!0)},shouldPrefetch:function(){return this.getPrefetchComponents().length>0},canPrefetch:function(){var t=navigator.connection;return!(this.$nuxt.isOffline||t&&((t.effectiveType||"").includes("2g")||t.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(t){return t.components.default})).filter((function(t){return"function"==typeof t&&!t.options&&!t.__prefetched}))},prefetchLink:function(){if(this.canPrefetch()){h.unobserve(this.$el);var t,e=o(this.getPrefetchComponents());try{for(e.s();!(t=e.n()).done;){var n=t.value,r=n();r instanceof Promise&&r.catch((function(){})),n.__prefetched=!0}}catch(t){e.e(t)}finally{e.f()}}}}}},97:function(t,e,n){"use strict";e.a={}}},[[163,3,1,4]]]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{552:function(e,r,t){"use strict";t.r(r);t(31),t(23),t(16),t(28),t(2);var n=t(6),o=(t(60),t(11)),c=t(310),l=t(539),d=(t(438),t(440),t(532)),v=t.n(d),f=(t(534),t(307)),m={components:{VIframe:f.a},data:function(){return{dialog:!1}}},h=t(54),w=t(102),y=t.n(w),x=t(308),_=t(286),O=t(254),C=t(553),component=Object(h.a)(m,(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("v-dialog",{attrs:{scrollable:"","max-width":"500px"},scopedSlots:e._u([{key:"activator",fn:function(r){var n=r.on;return[t("v-btn",e._g({attrs:{color:"primary",text:""}},n),[e._v("\n Simulate screenshot\n ")])]}}]),model:{value:e.dialog,callback:function(r){e.dialog=r},expression:"dialog"}},[e._v(" "),t("v-card",[t("v-card-title",{attrs:{"primary-title":""}},[e._v("\n Screenshot simulation\n ")]),e._v(" "),t("v-card-text",[t("p",[e._v("The screenshot will be rendered in a box of 800x450 pixels.")]),e._v(" "),t("p",[e._v('For guidance look for messages prefixed with "[capture]" in your browser developper\'s console.')]),e._v(" "),e.dialog?t("v-iframe",{staticStyle:{border:"1px solid grey"},attrs:{width:"800",height:"450",src:"http://localhost:5888/app?capture=true"}}):e._e()],1)],1)],1)}),[],!1,null,"f98b3ebc",null),S=component.exports;function k(object,e){var r=Object.keys(object);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(object);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),r.push.apply(r,t)}return r}y()(component,{VBtn:x.a,VCard:_.a,VCardText:O.b,VCardTitle:O.c,VDialog:C.a});var V=new(t(297));V.addFormat("hexcolor",/^#[0-9A-Fa-f]{6,8}$/);var I={components:{VIframe:f.a,VJsf:l.a,ScreenshotSimulation:S},data:function(){return{error:null,schema:null,dataFair:null,editConfig:null,showPreview:!0,compileError:null,formValid:!1}},computed:{options:function(){return{context:{owner:this.dataFair&&this.dataFair.owner},locale:"fr",rootDisplay:"expansion-panels",expansionPanelsProps:{value:0,hover:!0},dialogProps:{maxWidth:500,overlayOpacity:0},arrayItemCardProps:{outlined:!0,tile:!0},dialogCardProps:{outlined:!0}}},validationErrors:function(){if(this.schema&&this.schemaValidate)return!this.schemaValidate(this.editConfig)&&this.schemaValidate.errors}},created:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.dataFair={url:"https://STARTCONFIGALIAS-string-dataFair.url-ENDCONFIGALIAS",owner:{type:"STARTCONFIGALIAS-string-dataFair.owner.type-ENDCONFIGALIAS",id:"STARTCONFIGALIAS-string-dataFair.owner.id-ENDCONFIGALIAS"},apiKey:"STARTCONFIGALIAS-string-dataFair.apiKey-ENDCONFIGALIAS"},r.next=3,e.$axios.$get("http://localhost:5888/config");case 3:e.editConfig=r.sent,e.fetchSchema();case 5:case"end":return r.stop()}}),r)})))()},mounted:function(){var e=this;console.log("connect to to ws://localhost:5888"),this.socketDevServer=new c.a("ws://localhost:5888"),this.socketDevServer.onopen=function(){e.socketDevServer.onmessage=function(r){var data=JSON.parse(r.data);"app-error"===data.type&&(e.error=data.data.message),"ping"===data.type&&e.socketDevServer.send(JSON.stringify({type:"pong"}))}},window.addEventListener("message",(function(r){console.log("received message from iframe",r.data),"set-config"===r.data.type&&(e.editConfig=v.a.set(function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?k(Object(source),!0).forEach((function(r){Object(n.a)(e,r,source[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):k(Object(source)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(source,r))}))}return e}({},e.editConfig),r.data.content.field,r.data.content.value))}))},destroyed:function(){console.log("destroyed"),this.socketDevServer&&this.socketDevServer.close()},methods:{empty:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.editConfig=null,r.next=3,e.save({});case 3:e.editConfig={};case 4:case"end":return r.stop()}}),r)})))()},validate:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.$refs.form.validate()&&(e.save(e.editConfig),e.error=null);case 1:case"end":return r.stop()}}),r)})))()},save:function(e){var r=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.$axios.$put("http://localhost:5888/config",e);case 2:return t.next=4,r.reloadIframe();case 4:case"end":return t.stop()}}),t)})))()},fetchSchema:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.schema=null,r.next=3,e.$axios.$get("http://localhost:5888/app/config-schema.json");case 3:e.schema=r.sent,e.schema["x-display"]="tabs";try{e.schemaValidate=V.compile(e.schema),e.compileError=null}catch(r){console.error(r),e.compileError=r.message}case 6:case"end":return r.stop()}}),r)})))()},reloadIframe:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.showPreview=!1,r.next=3,new Promise((function(e){return setTimeout(e,10)}));case 3:e.showPreview=!0;case 4:case"end":return r.stop()}}),r)})))()}}},j=t(554),A=t(548),F=t(555),E=t(551),P=t(280),R=t(549),D=t(550),N=Object(h.a)(I,(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("v-container",{staticClass:"pt-4",attrs:{fluid:""}},[t("v-row",[t("v-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e.error?t("v-alert",{attrs:{color:"error"}},[e._v("\n "+e._s(e.error.message||e.error)+"\n ")]):e._e(),e._v(" "),t("v-row",{staticClass:"mb-2"},[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{fab:"",dark:"",small:"",color:"primary"},on:{click:e.fetchSchema}},[t("v-icon",{attrs:{dark:""}},[e._v("\n mdi-refresh\n ")])],1)],1),e._v(" "),t("v-form",{ref:"form",model:{value:e.formValid,callback:function(r){e.formValid=r},expression:"formValid"}},[t("v-alert",{attrs:{value:!!e.compileError,type:"error"}},[e._v("\n "+e._s(e.compileError)+"\n ")]),e._v(" "),t("v-alert",{attrs:{value:!!e.validationErrors&&e.formValid,type:"error"}},[e._v("\n Formulaire valide pourtant le modèle ne respecte pas le schéma:\n "),t("p",[e._v(e._s(e.validationErrors))])]),e._v(" "),e.schema&&e.editConfig?t("v-jsf",{attrs:{schema:e.schema,options:e.options},on:{change:e.validate},model:{value:e.editConfig,callback:function(r){e.editConfig=r},expression:"editConfig"}}):e._e()],1),e._v(" "),t("v-row",{staticClass:"mt-2"},[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{color:"warning"},on:{click:e.empty}},[e._v("\n Empty\n ")])],1)],1),e._v(" "),t("v-col",{attrs:{xs:"12",md:"6",lg:"8"}},[t("v-row",{staticClass:"mb-2"},[t("v-spacer"),e._v(" "),t("screenshot-simulation"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{fab:"",dark:"",small:"",color:"primary"},on:{click:e.reloadIframe}},[t("v-icon",{attrs:{dark:""}},[e._v("\n mdi-refresh\n ")])],1)],1),e._v(" "),t("v-card",[e.showPreview?t("v-iframe",{attrs:{src:"http://localhost:5888/app?draft=true"}}):e._e()],1)],1)],1)],1)}),[],!1,null,"20070d74",null);r.default=N.exports;y()(N,{VAlert:j.a,VBtn:x.a,VCard:_.a,VCol:A.a,VContainer:F.a,VForm:E.a,VIcon:P.a,VRow:R.a,VSpacer:D.a})}}]);