diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-31 17:04:04 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-31 17:04:04 +0200 |
commit | 05cbc50ef707e9ac10dc02c56acbb954ffbb3e24 (patch) | |
tree | ae5b39e300757bce577ccf98a7583a256ad9046e /out/_next/static/chunks | |
parent | 0c4f21f00de62cd839dda7888cef7a28aaa041e7 (diff) |
added pwa compatibility
Diffstat (limited to 'out/_next/static/chunks')
-rw-r--r-- | out/_next/static/chunks/906-f789bd1954ec4d176da1.js (renamed from out/_next/static/chunks/906-7b9696c9b17c64b94384.js) | 2 | ||||
-rw-r--r-- | out/_next/static/chunks/main-1b0f1fd287f08bad6012.js (renamed from out/_next/static/chunks/main-a3a79aff3ff232b41814.js) | 705 | ||||
-rw-r--r-- | out/_next/static/chunks/pages/_app-fbd69a3b63bd43d7f1b0.js (renamed from out/_next/static/chunks/pages/_app-6ba3a11e93bdf6a85175.js) | 4 |
3 files changed, 539 insertions, 172 deletions
diff --git a/out/_next/static/chunks/906-7b9696c9b17c64b94384.js b/out/_next/static/chunks/906-f789bd1954ec4d176da1.js index 9374272..14110fc 100644 --- a/out/_next/static/chunks/906-7b9696c9b17c64b94384.js +++ b/out/_next/static/chunks/906-f789bd1954ec4d176da1.js @@ -6449,7 +6449,7 @@ l = (0, i.lw)(u, (e, t) => (0, r.isStyleProp)(t)), c = (0, o.Pu)(t, e), d = Object.assign({}, a, c, (0, i.YU)(l), s), - f = (0, r.iv)(d)(e.theme) + f = (0, r.css)(d)(e.theme) return n ? [f, n] : f } })({ baseStyle: a }) diff --git a/out/_next/static/chunks/main-a3a79aff3ff232b41814.js b/out/_next/static/chunks/main-1b0f1fd287f08bad6012.js index 14231de..fa9a977 100644 --- a/out/_next/static/chunks/main-a3a79aff3ff232b41814.js +++ b/out/_next/static/chunks/main-1b0f1fd287f08bad6012.js @@ -324,6 +324,371 @@ ) }) }, + 9204: function () { + 'use strict' + try { + self['workbox:window:6.1.5'] && _() + } catch (e) {} + function e(e, t) { + return new Promise(function (r) { + var n = new MessageChannel() + ;(n.port1.onmessage = function (e) { + r(e.data) + }), + e.postMessage(t, [n.port2]) + }) + } + function t(e, t) { + for (var r = 0; r < t.length; r++) { + var n = t[r] + ;(n.enumerable = n.enumerable || !1), + (n.configurable = !0), + 'value' in n && (n.writable = !0), + Object.defineProperty(e, n.key, n) + } + } + function r(e, t) { + ;(null == t || t > e.length) && (t = e.length) + for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r] + return n + } + function n(e, t) { + var n + if ('undefined' == typeof Symbol || null == e[Symbol.iterator]) { + if ( + Array.isArray(e) || + (n = (function (e, t) { + if (e) { + if ('string' == typeof e) return r(e, t) + var n = Object.prototype.toString.call(e).slice(8, -1) + return ( + 'Object' === n && e.constructor && (n = e.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(e) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? r(e, t) + : void 0 + ) + } + })(e)) || + (t && e && 'number' == typeof e.length) + ) { + n && (e = n) + var o = 0 + return function () { + return o >= e.length ? { done: !0 } : { done: !1, value: e[o++] } + } + } + throw new TypeError( + 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ) + } + return (n = e[Symbol.iterator]()).next.bind(n) + } + try { + self['workbox:core:6.1.5'] && _() + } catch (e) {} + var o = function () { + var e = this + this.promise = new Promise(function (t, r) { + ;(e.resolve = t), (e.reject = r) + }) + } + function a(e, t) { + var r = location.href + return new URL(e, r).href === new URL(t, r).href + } + var i = function (e, t) { + ;(this.type = e), Object.assign(this, t) + } + function u(e, t, r) { + return r ? (t ? t(e) : e) : ((e && e.then) || (e = Promise.resolve(e)), t ? e.then(t) : e) + } + function c() {} + var s = { type: 'SKIP_WAITING' } + function l(e, t) { + if (!t) return e && e.then ? e.then(c) : Promise.resolve() + } + var f = (function (r) { + var n, c + function f(e, t) { + var n, c + return ( + void 0 === t && (t = {}), + ((n = r.call(this) || this).nn = {}), + (n.tn = 0), + (n.rn = new o()), + (n.en = new o()), + (n.on = new o()), + (n.un = 0), + (n.an = new Set()), + (n.cn = function () { + var e = n.fn, + t = e.installing + n.tn > 0 || !a(t.scriptURL, n.sn) || performance.now() > n.un + 6e4 + ? ((n.vn = t), e.removeEventListener('updatefound', n.cn)) + : ((n.hn = t), n.an.add(t), n.rn.resolve(t)), + ++n.tn, + t.addEventListener('statechange', n.ln) + }), + (n.ln = function (e) { + var t = n.fn, + r = e.target, + o = r.state, + a = r === n.vn, + u = { sw: r, isExternal: a, originalEvent: e } + !a && n.mn && (u.isUpdate = !0), + n.dispatchEvent(new i(o, u)), + 'installed' === o + ? (n.wn = self.setTimeout(function () { + 'installed' === o && t.waiting === r && n.dispatchEvent(new i('waiting', u)) + }, 200)) + : 'activating' === o && (clearTimeout(n.wn), a || n.en.resolve(r)) + }), + (n.dn = function (e) { + var t = n.hn, + r = t !== navigator.serviceWorker.controller + n.dispatchEvent( + new i('controlling', { isExternal: r, originalEvent: e, sw: t, isUpdate: n.mn }), + ), + r || n.on.resolve(t) + }), + (n.gn = + ((c = function (e) { + var t = e.data, + r = e.source + return u(n.getSW(), function () { + n.an.has(r) && + n.dispatchEvent(new i('message', { data: t, sw: r, originalEvent: e })) + }) + }), + function () { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t] + try { + return Promise.resolve(c.apply(this, e)) + } catch (e) { + return Promise.reject(e) + } + })), + (n.sn = e), + (n.nn = t), + navigator.serviceWorker.addEventListener('message', n.gn), + n + ) + } + ;(c = r), + ((n = f).prototype = Object.create(c.prototype)), + (n.prototype.constructor = n), + (n.__proto__ = c) + var h, + p, + d = f.prototype + return ( + (d.register = function (e) { + var t = (void 0 === e ? {} : e).immediate, + r = void 0 !== t && t + try { + var n = this + return (function (e, t) { + var r = e() + return r && r.then ? r.then(t) : t() + })( + function () { + if (!r && 'complete' !== document.readyState) + return l( + new Promise(function (e) { + return window.addEventListener('load', e) + }), + ) + }, + function () { + return ( + (n.mn = Boolean(navigator.serviceWorker.controller)), + (n.yn = n.pn()), + u(n.bn(), function (e) { + ;(n.fn = e), + n.yn && + ((n.hn = n.yn), + n.en.resolve(n.yn), + n.on.resolve(n.yn), + n.yn.addEventListener('statechange', n.ln, { once: !0 })) + var t = n.fn.waiting + return ( + t && + a(t.scriptURL, n.sn) && + ((n.hn = t), + Promise.resolve() + .then(function () { + n.dispatchEvent( + new i('waiting', { sw: t, wasWaitingBeforeRegister: !0 }), + ) + }) + .then(function () {})), + n.hn && (n.rn.resolve(n.hn), n.an.add(n.hn)), + n.fn.addEventListener('updatefound', n.cn), + navigator.serviceWorker.addEventListener('controllerchange', n.dn, { + once: !0, + }), + n.fn + ) + }) + ) + }, + ) + } catch (e) { + return Promise.reject(e) + } + }), + (d.update = function () { + try { + return this.fn ? l(this.fn.update()) : void 0 + } catch (e) { + return Promise.reject(e) + } + }), + (d.getSW = function () { + return void 0 !== this.hn ? Promise.resolve(this.hn) : this.rn.promise + }), + (d.messageSW = function (t) { + try { + return u(this.getSW(), function (r) { + return e(r, t) + }) + } catch (e) { + return Promise.reject(e) + } + }), + (d.messageSkipWaiting = function () { + this.fn && this.fn.waiting && e(this.fn.waiting, s) + }), + (d.pn = function () { + var e = navigator.serviceWorker.controller + return e && a(e.scriptURL, this.sn) ? e : void 0 + }), + (d.bn = function () { + try { + var e = this + return (function (e, t) { + try { + var r = e() + } catch (e) { + return t(e) + } + return r && r.then ? r.then(void 0, t) : r + })( + function () { + return u(navigator.serviceWorker.register(e.sn, e.nn), function (t) { + return (e.un = performance.now()), t + }) + }, + function (e) { + throw e + }, + ) + } catch (e) { + return Promise.reject(e) + } + }), + (h = f), + (p = [ + { + key: 'active', + get: function () { + return this.en.promise + }, + }, + { + key: 'controlling', + get: function () { + return this.on.promise + }, + }, + ]) && t(h.prototype, p), + f + ) + })( + (function () { + function e() { + this.Pn = new Map() + } + var t = e.prototype + return ( + (t.addEventListener = function (e, t) { + this.Sn(e).add(t) + }), + (t.removeEventListener = function (e, t) { + this.Sn(e).delete(t) + }), + (t.dispatchEvent = function (e) { + e.target = this + for (var t, r = n(this.Sn(e.type)); !(t = r()).done; ) (0, t.value)(e) + }), + (t.Sn = function (e) { + return this.Pn.has(e) || this.Pn.set(e, new Set()), this.Pn.get(e) + }), + e + ) + })(), + ) + if ( + 'undefined' !== typeof window && + 'serviceWorker' in navigator && + 'undefined' !== typeof caches + ) { + caches.has('start-url').then(function (e) { + e || caches.open('start-url').then((e) => e.put('/', new Response('', { status: 200 }))) + }), + (window.workbox = new f('/sw.js', { scope: '/' })), + window.workbox.addEventListener('installed', async ({ isUpdate: e }) => { + if (!e) { + const e = await caches.open('start-url'), + t = await fetch('/') + let r = t + t.redirected && + (r = new Response(t.body, { status: 200, statusText: 'OK', headers: t.headers })), + await e.put('/', r) + } + }), + window.workbox.addEventListener('installed', async () => { + const e = window.performance + .getEntriesByType('resource') + .map((e) => e.name) + .filter( + (e) => + e.startsWith(`${window.location.origin}/_next/data/`) && e.endsWith('.json'), + ), + t = await caches.open('next-data') + e.forEach((e) => t.add(e)) + }), + window.workbox.register() + { + const e = function (e) { + if (window.navigator.onLine) + return '/' === e + ? fetch('/').then(function (e) { + return e.redirected + ? Promise.resolve() + : caches.open('start-url').then((t) => t.put('/', e)) + }) + : void 0 + }, + t = history.pushState + history.pushState = function () { + t.apply(history, arguments), e(arguments[2]) + } + const r = history.replaceState + ;(history.replaceState = function () { + r.apply(history, arguments), e(arguments[2]) + }), + window.addEventListener('online', () => { + e(window.location.pathname) + }) + } + window.addEventListener('online', () => { + location.reload() + }) + } + }, 6792: function (e, t) { 'use strict' ;(t.__esModule = !0), @@ -462,9 +827,9 @@ m = p(r(3935)), y = r(1165), g = p(r(8119)), - b = r(6171), - _ = r(9414), - w = r(8073), + w = r(6171), + b = r(9414), + _ = r(8073), x = h(r(8187)), S = h(r(3584)), E = r(4755), @@ -481,14 +846,14 @@ return [].slice.call(e) }, I = A.props, - M = A.err, - N = A.page, - j = A.query, + j = A.err, + M = A.page, + N = A.query, D = A.buildId, F = A.assetPrefix, U = A.runtimeConfig, - q = A.dynamicIds, - W = A.isFallback, + W = A.dynamicIds, + q = A.isFallback, B = A.locale, H = A.locales, G = A.domainLocales, @@ -498,7 +863,7 @@ ;(r.p = ''.concat(z, '/_next/')), S.setConfig({ serverRuntimeConfig: {}, publicRuntimeConfig: U || {} }) var $ = (0, E.getURL)() - ;((0, _.hasBasePath)($) && ($ = (0, _.delBasePath)($)), A.scriptLoader) && + ;((0, b.hasBasePath)($) && ($ = (0, b.delBasePath)($)), A.scriptLoader) && (0, r(7926).initScriptLoader)(A.scriptLoader) var Q = new L.default(D, z), Y = function (e) { @@ -515,13 +880,13 @@ }), (window.__NEXT_P = []), (window.__NEXT_P.push = Y) - var J, - K, + var K, + J, Z, ee, te = (0, k.default)(), re = document.getElementById('__next') - t.router = K + t.router = J var ne, oe = (function (e) { u(r, e) @@ -541,25 +906,25 @@ key: 'componentDidMount', value: function () { this.scrollToHash(), - !K.isSsr || - '/404' === N || - ('/_error' === N && I && I.pageProps && 404 === I.pageProps.statusCode) || + !J.isSsr || + '/404' === M || + ('/_error' === M && I && I.pageProps && 404 === I.pageProps.statusCode) || !( - W || - (A.nextExport && ((0, w.isDynamicRoute)(K.pathname) || location.search)) || + q || + (A.nextExport && ((0, _.isDynamicRoute)(J.pathname) || location.search)) || (I && I.__N_SSG && location.search) ) || - K.replace( - K.pathname + + J.replace( + J.pathname + '?' + String( x.assign( - x.urlQueryToSearchParams(K.query), + x.urlQueryToSearchParams(J.query), new URLSearchParams(location.search), ), ), $, - { _h: 1, shallow: !W }, + { _h: 1, shallow: !q }, ) }, }, @@ -611,7 +976,7 @@ case 0: return ( s.length > 0 && void 0 !== s[0] ? s[0] : {}, - (r = M), + (r = j), (e.prev = 3), (e.next = 6), Q.routeLoader.whenEntrypoint('/_app') @@ -652,7 +1017,7 @@ (e.next = 16) break case 16: - return (e.next = 18), Q.routeLoader.whenEntrypoint(N) + return (e.next = 18), Q.routeLoader.whenEntrypoint(M) case 18: e.t0 = e.sent case 19: @@ -674,18 +1039,18 @@ e.next = 36 break } - return (e.next = 36), window.__NEXT_PRELOADREADY(q) + return (e.next = 36), window.__NEXT_PRELOADREADY(W) case 36: return ( - (t.router = K = - (0, T.createRouter)(N, j, $, { + (t.router = J = + (0, T.createRouter)(M, N, $, { initialProps: I, pageLoader: Q, App: Z, Component: ne, wrapApp: me, err: r, - isFallback: Boolean(W), + isFallback: Boolean(q), subscription: function (e, t, r) { return ue(Object.assign({}, e, { App: t, scroll: r })) }, @@ -770,8 +1135,8 @@ u = { Component: o, AppTree: i, - router: K, - ctx: { err: r, pathname: N, query: j, asPath: $, AppTree: i }, + router: J, + ctx: { err: r, pathname: M, query: N, asPath: $, AppTree: i }, } return Promise.resolve(e.props ? e.props : (0, E.loadGetInitialProps)(t, u)).then( function (t) { @@ -824,8 +1189,8 @@ }, }, v.default.createElement( - b.RouterContext.Provider, - { value: (0, T.makePublicRouterInstance)(K) }, + w.RouterContext.Provider, + { value: (0, T.makePublicRouterInstance)(J) }, v.default.createElement(y.HeadManagerContext.Provider, { value: te }, t), ), ) @@ -833,7 +1198,7 @@ var ve, me = function (e) { return function (t) { - var r = (0, d.default)({}, t, { Component: ne, err: M, router: K }) + var r = (0, d.default)({}, t, { Component: ne, err: j, router: J }) return v.default.createElement(de, null, v.default.createElement(e, r)) } } @@ -844,17 +1209,17 @@ o = e.err, a = 'initial' in e ? void 0 : e.styleSheets ;(r = r || ve.Component), (n = n || ve.props) - var i = (0, d.default)({}, n, { Component: r, err: o, router: K }) + var i = (0, d.default)({}, n, { Component: r, err: o, router: J }) ve = i var u, c = !1, s = new Promise(function (e, t) { - J && J(), + K && K(), (u = function () { - ;(J = null), e() + ;(K = null), e() }), - (J = function () { - ;(c = !0), (J = null) + (K = function () { + ;(c = !0), (K = null) var e = new Error('Cancel rendering route') ;(e.cancelled = !0), t(e) }) @@ -888,7 +1253,7 @@ var f = v.default.createElement( v.default.Fragment, null, - v.default.createElement(be, { + v.default.createElement(we, { callback: function () { if (a && !c) { for ( @@ -961,7 +1326,7 @@ r ) } - function be(e) { + function we(e) { var t = e.callback return ( v.default.useLayoutEffect( @@ -1700,12 +2065,12 @@ ? (v.textContent = 'string' === typeof c ? c : Array.isArray(c) ? c.join('') : '') : t && (v.src = t) for (var y = 0, g = Object.entries(e); y < g.length; y++) { - var b = n(g[y], 2), - _ = b[0], - w = b[1] - if (void 0 !== w && !p.includes(_)) { - var x = s.DOMAttributeNames[_] || _.toLowerCase() - v.setAttribute(x, w) + var w = n(g[y], 2), + b = w[0], + _ = w[1] + if (void 0 !== _ && !p.includes(b)) { + var x = s.DOMAttributeNames[b] || b.toLowerCase() + v.setAttribute(x, _) } } document.body.appendChild(v) @@ -1853,69 +2218,69 @@ 0 return !1 }), - (t.addLocale = w), - (t.delLocale = x), - (t.hasBasePath = E), - (t.addBasePath = P), - (t.delBasePath = k), - (t.isLocalURL = L), - (t.interpolateAs = R), - (t.resolveHref = T), + (t.addLocale = x), + (t.delLocale = S), + (t.hasBasePath = P), + (t.addBasePath = k), + (t.delBasePath = L), + (t.isLocalURL = R), + (t.interpolateAs = C), + (t.resolveHref = A), (t.default = void 0) var c = r(5965), s = r(1392), l = r(9320), - f = (r(6813), b(r(8119))), + f = (r(6813), w(r(8119))), h = r(4755), p = r(8073), d = r(3900), v = r(8187), - m = b(r(4453)), + m = w(r(4453)), y = r(8085), g = r(4550) - function b(e) { + function w(e) { return e && e.__esModule ? e : { default: e } } - function _() { + function b() { return Object.assign(new Error('Route Cancelled'), { cancelled: !0 }) } - function w(e, t, r) { + function x(e, t, r) { return e } - function x(e, t) { + function S(e, t) { return e } - function S(e) { + function E(e) { var t = e.indexOf('?'), r = e.indexOf('#') return (t > -1 || r > -1) && (e = e.substring(0, t > -1 ? t : r)), e } - function E(e) { - return '' === (e = S(e)) || e.startsWith('/') - } function P(e) { + return '' === (e = E(e)) || e.startsWith('/') + } + function k(e) { return (function (e, t) { return t && e.startsWith('/') ? '/' === e ? (0, c.normalizePathTrailingSlash)(t) - : ''.concat(t).concat('/' === S(e) ? e.substring(1) : e) + : ''.concat(t).concat('/' === E(e) ? e.substring(1) : e) : e })(e, '') } - function k(e) { + function L(e) { return (e = e.slice(''.length)).startsWith('/') || (e = '/'.concat(e)), e } - function L(e) { + function R(e) { if (e.startsWith('/') || e.startsWith('#') || e.startsWith('?')) return !0 try { var t = (0, h.getLocationOrigin)(), r = new URL(e, t) - return r.origin === t && E(r.pathname) - } catch (n) { + return r.origin === t && P(r.pathname) + } catch (_) { return !1 } } - function R(e, t, r) { + function C(e, t, r) { var n = '', o = (0, g.getRouteRegex)(e), a = o.groups, @@ -1949,7 +2314,7 @@ { params: u, result: n } ) } - function C(e, t) { + function T(e, t) { var r = {} return ( Object.keys(e).forEach(function (n) { @@ -1958,50 +2323,50 @@ r ) } - function T(e, t, r) { + function A(e, t, r) { var n, o = 'string' === typeof t ? t : (0, h.formatWithValidation)(t) try { n = new URL(o.startsWith('#') ? e.asPath : e.pathname, 'http://n') - } catch (m) { + } catch (_) { n = new URL('/', 'http://n') } - if (!L(o)) return r ? [o] : o + if (!R(o)) return r ? [o] : o try { var a = new URL(o, n) a.pathname = (0, c.normalizePathTrailingSlash)(a.pathname) var i = '' if ((0, p.isDynamicRoute)(a.pathname) && a.searchParams && r) { var u = (0, v.searchParamsToUrlQuery)(a.searchParams), - s = R(a.pathname, a.pathname, u), + s = C(a.pathname, a.pathname, u), l = s.result, f = s.params - l && (i = (0, h.formatWithValidation)({ pathname: l, hash: a.hash, query: C(u, f) })) + l && (i = (0, h.formatWithValidation)({ pathname: l, hash: a.hash, query: T(u, f) })) } var d = a.origin === n.origin ? a.href.slice(a.origin.length) : a.href return r ? [d, i || d] : d - } catch (m) { + } catch (_) { return r ? [o] : o } } - function A(e) { + function O(e) { var t = (0, h.getLocationOrigin)() return e.startsWith(t) ? e.substring(t.length) : e } - function O(e, t, r) { - var n = T(e, t, !0), + function I(e, t, r) { + var n = A(e, t, !0), o = u(n, 2), a = o[0], i = o[1], c = (0, h.getLocationOrigin)(), s = a.startsWith(c), l = i && i.startsWith(c) - ;(a = A(a)), (i = i ? A(i) : i) - var f = s ? a : P(a), - p = r ? A(T(e, r)) : i || a - return { url: f, as: l ? p : P(p) } + ;(a = O(a)), (i = i ? O(i) : i) + var f = s ? a : k(a), + p = r ? O(A(e, r)) : i || a + return { url: f, as: l ? p : k(p) } } - function I(e, t) { + function j(e, t) { var r = (0, c.removePathTrailingSlash)((0, l.denormalizePagePath)(e)) return '/404' === r || '/_error' === r ? e @@ -2027,12 +2392,12 @@ return r.json() }) } - function j(e, t) { + function D(e, t) { return N(e, t ? 3 : 1).catch(function (e) { throw (t || (0, s.markAssetError)(e), e) }) } - var D = (function () { + var F = (function () { function e(t, r, n, o) { var i = this, u = o.initialProps, @@ -2043,8 +2408,8 @@ m = o.err, y = o.subscription, g = o.isFallback, - b = o.locale, - _ = (o.locales, o.defaultLocale, o.domainLocales, o.isPreview) + w = o.locale, + b = (o.locales, o.defaultLocale, o.domainLocales, o.isPreview) a(this, e), (this.route = void 0), (this.pathname = void 0), @@ -2100,7 +2465,7 @@ s = i.query i.changeState( 'replaceState', - (0, h.formatWithValidation)({ pathname: P(c), query: s }), + (0, h.formatWithValidation)({ pathname: k(c), query: s }), (0, h.getURL)(), ) } @@ -2121,9 +2486,9 @@ (this.pageLoader = s), (this.pathname = t), (this.query = r) - var w = (0, p.isDynamicRoute)(t) && self.__NEXT_DATA__.autoExport + var _ = (0, p.isDynamicRoute)(t) && self.__NEXT_DATA__.autoExport if ( - ((this.asPath = w ? t : n), + ((this.asPath = _ ? t : n), (this.basePath = ''), (this.sub = y), (this.clc = null), @@ -2133,17 +2498,17 @@ (this.isReady = !( !self.__NEXT_DATA__.gssp && !self.__NEXT_DATA__.gip && - (w || self.location.search) + (_ || self.location.search) )), - (this.isPreview = !!_), + (this.isPreview = !!b), (this.isLocaleDomain = !1), '//' !== n.substr(0, 2)) ) { - var x = { locale: b } + var x = { locale: w } ;(x._shouldResolveHref = n !== t), this.changeState( 'replaceState', - (0, h.formatWithValidation)({ pathname: P(t), query: r }), + (0, h.formatWithValidation)({ pathname: k(t), query: r }), (0, h.getURL)(), x, ) @@ -2168,7 +2533,7 @@ key: 'push', value: function (e, t) { var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {} - var n = O(this, e, t) + var n = I(this, e, t) return (e = n.url), (t = n.as), this.change('pushState', e, t, r) }, }, @@ -2176,7 +2541,7 @@ key: 'replace', value: function (e, t) { var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, - n = O(this, e, t) + n = I(this, e, t) return (e = n.url), (t = n.as), this.change('replaceState', e, t, r) }, }, @@ -2189,18 +2554,18 @@ f, v, m, + w, b, _, - S, - T, + E, A, + O, N, - j, D, F, U, - q, W, + q, B, H, G, @@ -2210,8 +2575,8 @@ $, Q, Y, - J, K, + J, Z, ee, te, @@ -2227,7 +2592,7 @@ for (;;) switch ((t.prev = t.next)) { case 0: - if (L(o)) { + if (R(o)) { t.next = 3 break } @@ -2246,28 +2611,28 @@ (m = { shallow: void 0 !== v && v }), this._inFlightRoute && this.abortComponentLoad(this._inFlightRoute, m), - (a = P(w(E(a) ? k(a) : a, i.locale, this.defaultLocale))), - (b = x(E(a) ? k(a) : a, this.locale)), + (a = k(x(P(a) ? L(a) : a, i.locale, this.defaultLocale))), + (w = S(P(a) ? L(a) : a, this.locale)), (this._inFlightRoute = a), - i._h || !this.onlyAHashChange(b)) + i._h || !this.onlyAHashChange(w)) ) { t.next = 34 break } return ( - (this.asPath = b), + (this.asPath = w), e.events.emit('hashChangeStart', a, m), this.changeState(r, o, a, i), - this.scrollToHash(b), + this.scrollToHash(w), this.notify(this.components[this.route], null), e.events.emit('hashChangeComplete', a, m), t.abrupt('return', !0) ) case 34: return ( - (_ = (0, d.parseRelativeUrl)(o)), - (S = _.pathname), - (T = _.query), + (b = (0, d.parseRelativeUrl)(o)), + (_ = b.pathname), + (E = b.query), (t.prev = 36), (t.next = 39), this.pageLoader.getPageList() @@ -2275,7 +2640,7 @@ case 39: return (A = t.sent), (t.next = 42), (0, s.getClientBuildManifest)() case 42: - ;(N = t.sent), N.__rewrites, (t.next = 50) + ;(O = t.sent), O.__rewrites, (t.next = 50) break case 46: return ( @@ -2286,19 +2651,19 @@ ) case 50: if ( - (this.urlIsNew(b) || f || (r = 'replaceState'), - (j = a), - (S = S ? (0, c.removePathTrailingSlash)(k(S)) : S), + (this.urlIsNew(w) || f || (r = 'replaceState'), + (N = a), + (_ = _ ? (0, c.removePathTrailingSlash)(L(_)) : _), l && - '/_error' !== S && + '/_error' !== _ && ((i._shouldResolveHref = !0), - (_.pathname = I(S, A)), - _.pathname !== S && - ((S = _.pathname), - (_.pathname = P(S)), - (o = (0, h.formatWithValidation)(_)))), - (D = (0, c.removePathTrailingSlash)(S)), - L(a)) + (b.pathname = j(_, A)), + b.pathname !== _ && + ((_ = b.pathname), + (b.pathname = k(_)), + (o = (0, h.formatWithValidation)(b)))), + (D = (0, c.removePathTrailingSlash)(_)), + R(a)) ) { t.next = 60 break @@ -2308,25 +2673,25 @@ case 58: return (window.location.href = a), t.abrupt('return', !1) case 60: - if (((j = x(k(j), this.locale)), !(0, p.isDynamicRoute)(D))) { + if (((N = S(L(N), this.locale)), !(0, p.isDynamicRoute)(D))) { t.next = 76 break } if ( - ((F = (0, d.parseRelativeUrl)(j)), + ((F = (0, d.parseRelativeUrl)(N)), (U = F.pathname), - (q = (0, g.getRouteRegex)(D)), - (W = (0, y.getRouteMatcher)(q)(U)), - (H = (B = D === U) ? R(D, U, T) : {}), - W && (!B || H.result)) + (W = (0, g.getRouteRegex)(D)), + (q = (0, y.getRouteMatcher)(W)(U)), + (H = (B = D === U) ? C(D, U, E) : {}), + q && (!B || H.result)) ) { t.next = 75 break } if ( !( - (G = Object.keys(q.groups).filter(function (e) { - return !T[e] + (G = Object.keys(W.groups).filter(function (e) { + return !E[e] })).length > 0 ) ) { @@ -2353,40 +2718,40 @@ ? (a = (0, h.formatWithValidation)( Object.assign({}, F, { pathname: H.result, - query: C(T, H.params), + query: T(E, H.params), }), )) - : Object.assign(T, W) + : Object.assign(E, q) case 76: return ( e.events.emit('routeChangeStart', a, m), (t.prev = 77), (t.next = 80), - this.getRouteInfo(D, S, T, a, j, m) + this.getRouteInfo(D, _, E, a, N, m) ) case 80: if ( (($ = t.sent), (Y = (Q = $).error), - (J = Q.props), - (K = Q.__N_SSG), + (K = Q.props), + (J = Q.__N_SSG), (Z = Q.__N_SSP), - (!K && !Z) || !J) + (!J && !Z) || !K) ) { t.next = 106 break } - if (!J.pageProps || !J.pageProps.__N_REDIRECT) { + if (!K.pageProps || !K.pageProps.__N_REDIRECT) { t.next = 92 break } - if (!(ee = J.pageProps.__N_REDIRECT).startsWith('/')) { + if (!(ee = K.pageProps.__N_REDIRECT).startsWith('/')) { t.next = 90 break } return ( - ((te = (0, d.parseRelativeUrl)(ee)).pathname = I(te.pathname, A)), - (re = O(this, ee, ee)), + ((te = (0, d.parseRelativeUrl)(ee)).pathname = j(te.pathname, A)), + (re = I(this, ee, ee)), (ne = re.url), (oe = re.as), t.abrupt('return', this.change(r, ne, oe, i)) @@ -2397,7 +2762,7 @@ t.abrupt('return', new Promise(function () {})) ) case 92: - if (((this.isPreview = !!J.__N_PREVIEW), J.notFound !== M)) { + if (((this.isPreview = !!K.__N_PREVIEW), K.notFound !== M)) { t.next = 106 break } @@ -2409,7 +2774,7 @@ ;(t.prev = 100), (t.t1 = t.catch(94)), (ae = '/_error') case 103: return ( - (t.next = 105), this.getRouteInfo(ae, ae, T, a, j, { shallow: !1 }) + (t.next = 105), this.getRouteInfo(ae, ae, E, a, N, { shallow: !1 }) ) case 105: $ = t.sent @@ -2418,20 +2783,20 @@ e.events.emit('beforeHistoryChange', a, m), this.changeState(r, o, a, i), i._h && - '/_error' === S && + '/_error' === _ && 500 === (null == (V = self.__NEXT_DATA__.props) || null == (X = V.pageProps) ? void 0 : X.statusCode) && - null != J && - J.pageProps && - (J.pageProps.statusCode = 500), + null != K && + K.pageProps && + (K.pageProps.statusCode = 500), (ie = i.shallow && this.route === D), (ue = null != (z = i.scroll) ? z : !ie), (ce = ue ? { x: 0, y: 0 } : null), (t.next = 115), - this.set(D, S, T, b, $, null != u ? u : ce).catch(function (e) { + this.set(D, _, E, w, $, null != u ? u : ce).catch(function (e) { if (!e.cancelled) throw e Y = Y || e }) @@ -2441,7 +2806,7 @@ t.next = 118 break } - throw (e.events.emit('routeChangeError', Y, b, m), Y) + throw (e.events.emit('routeChangeError', Y, w, m), Y) case 118: return ( e.events.emit('routeChangeComplete', a, m), t.abrupt('return', !0) @@ -2517,7 +2882,7 @@ throw ( (e.events.emit('routeChangeError', r, i, u), (window.location.href = i), - _()) + b()) ) case 6: if ( @@ -2784,16 +3149,16 @@ ;(f = e.sent), (l = f.__rewrites), (p = (0, m.default)( - P(w(r, this.locale)), + k(x(r, this.locale)), u, l, a.query, function (e) { - return I(e, u) + return j(e, u) }, this.locales, )), - (s = x(k(p.asPath), this.locale)), + (s = S(L(p.asPath), this.locale)), p.matchedPage && p.resolvedHref && ((i = p.resolvedHref), @@ -2802,7 +3167,7 @@ (e.next = 21) break case 19: - ;(a.pathname = I(a.pathname, u)), + ;(a.pathname = j(a.pathname, u)), a.pathname !== i && ((i = a.pathname), (a.pathname = i), @@ -2920,7 +3285,7 @@ r = new URL(e, window.location.href).href return !this.isPreview && this.sdc[r] ? Promise.resolve(this.sdc[r]) - : j(e, this.isSsr).then(function (e) { + : D(e, this.isSsr).then(function (e) { return (t.sdc[r] = e), e }) }, @@ -2932,7 +3297,7 @@ r = new URL(e, window.location.href).href return this.sdr[r] ? this.sdr[r] - : (this.sdr[r] = j(e, this.isSsr) + : (this.sdr[r] = D(e, this.isSsr) .then(function (e) { return delete t.sdr[r], e }) @@ -2956,7 +3321,7 @@ key: 'abortComponentLoad', value: function (t, r) { this.clc && - (e.events.emit('routeChangeError', _(), t, r), this.clc(), (this.clc = null)) + (e.events.emit('routeChangeError', b(), t, r), this.clc(), (this.clc = null)) }, }, { @@ -2969,7 +3334,7 @@ e ) })() - ;(t.default = D), (D.events = (0, f.default)()) + ;(t.default = F), (F.events = (0, f.default)()) }, 2960: function (e, t, r) { 'use strict' @@ -3139,7 +3504,7 @@ var o = function (e) { try { return decodeURIComponent(e) - } catch (r) { + } catch (_) { var t = new Error('failed to decode param') throw ((t.code = 'DECODE_FAILED'), t) } @@ -3645,14 +4010,14 @@ function m() {} function y() {} function g() {} - var b = {} - b[a] = function () { + var w = {} + w[a] = function () { return this } - var _ = Object.getPrototypeOf, - w = _ && _(_(C([]))) - w && w !== r && n.call(w, a) && (b = w) - var x = (g.prototype = m.prototype = Object.create(b)) + var b = Object.getPrototypeOf, + _ = b && b(b(C([]))) + _ && _ !== r && n.call(_, a) && (w = _) + var x = (g.prototype = m.prototype = Object.create(w)) function S(e) { ;['next', 'throw', 'return'].forEach(function (t) { c(e, t, function (e) { @@ -3942,11 +4307,13 @@ 4453: function () {}, }, function (e) { + var t = function (t) { + return e((e.s = t)) + } e.O(0, [774], function () { - return (t = 457), e((e.s = t)) - var t + return t(9204), t(457) }) - var t = e.O() - _N_E = t + var r = e.O() + _N_E = r }, ]) diff --git a/out/_next/static/chunks/pages/_app-6ba3a11e93bdf6a85175.js b/out/_next/static/chunks/pages/_app-fbd69a3b63bd43d7f1b0.js index a3444a1..4a96a67 100644 --- a/out/_next/static/chunks/pages/_app-6ba3a11e93bdf6a85175.js +++ b/out/_next/static/chunks/pages/_app-fbd69a3b63bd43d7f1b0.js @@ -1446,7 +1446,7 @@ 9421: function (r, e, t) { 'use strict' t.d(e, { - iv: function () { + css: function () { return n.i }, isStyleProp: function () { @@ -1716,7 +1716,7 @@ styles: (e) => { var t = (0, a.Wf)(e, 'styles.global'), n = (0, i.Pu)(t, { theme: e, colorMode: r }) - if (n) return (0, o.iv)(n)(e) + if (n) return (0, o.css)(n)(e) }, }) } |