tethysfaceid
Version:
1 lines • 29.7 kB
JavaScript
(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[3],{"/jkW":function(e,t,r){"use strict";t.__esModule=!0,t.isDynamicRoute=function(e){return n.test(e)};var n=/\/\[[^/]+?\](?=\/|$)/},"0Bsm":function(e,t,r){"use strict";var n=r("TqRt");t.__esModule=!0,t.default=function(e){function t(t){return a.default.createElement(e,Object.assign({router:(0,o.useRouter)()},t))}t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,!1;return t};var a=n(r("q1tI")),o=r("nOHt")},"3WeD":function(e,t,r){"use strict";var n=r("J4zp");function a(e){return"string"===typeof e||"number"===typeof e&&!isNaN(e)||"boolean"===typeof e?String(e):""}t.__esModule=!0,t.searchParamsToUrlQuery=function(e){var t={};return e.forEach((function(e,r){"undefined"===typeof t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]})),t},t.urlQueryToSearchParams=function(e){var t=new URLSearchParams;return Object.entries(e).forEach((function(e){var r=n(e,2),o=r[0],i=r[1];Array.isArray(i)?i.forEach((function(e){return t.append(o,a(e))})):t.set(o,a(i))})),t},t.assign=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach((function(t){Array.from(t.keys()).forEach((function(t){return e.delete(t)})),t.forEach((function(t,r){return e.append(r,t)}))})),e}},"3wub":function(e,t,r){"use strict";t.__esModule=!0,t.normalizeLocalePath=function(e,t){var r,n=e.split("/");return(t||[]).some((function(t){return n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)})),{pathname:e,detectedLocale:r}}},"6D7l":function(e,t,r){"use strict";t.__esModule=!0,t.formatUrl=function(e){var t=e.auth,r=e.hostname,a=e.protocol||"",i=e.pathname||"",s=e.hash||"",u=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?"[".concat(r,"]"):r),e.port&&(c+=":"+e.port));u&&"object"===typeof u&&(u=String(n.urlQueryToSearchParams(u)));var l=e.search||u&&"?".concat(u)||"";a&&":"!==a.substr(-1)&&(a+=":");e.slashes||(!a||o.test(a))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c="");s&&"#"!==s[0]&&(s="#"+s);l&&"?"!==l[0]&&(l="?"+l);return i=i.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),"".concat(a).concat(c).concat(i).concat(l).concat(s)};var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r("3WeD"));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}var o=/https?|ftp|gopher|file/},Lab5:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index".concat(e):"".concat(e);return r+t}},Nh2W:function(e,t,r){"use strict";var n=r("o0o1"),a=r("J4zp"),o=r("yXPU"),i=r("TqRt");t.__esModule=!0,t.markAssetError=h,t.isAssetError=function(e){return e&&l in e},t.getClientBuildManifest=p,t.default=void 0;i(r("Lab5"));var s=i(r("0G5g"));function u(e,t,r){var n,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);var o=new Promise((function(e){n=e}));return t.set(e,a={resolve:n,future:o}),r?r().then((function(e){return n(e),e})):o}var c=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(t){return!1}}();var l=Symbol("ASSET_LOAD_ERROR");function h(e){return Object.defineProperty(e,l,{})}function f(e,t){return new Promise((function(r,n){return(0,s.default)((function(){return setTimeout((function(){return n(t)}),e)}))}))}function p(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);var e=new Promise((function(e){var t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=function(){e(self.__BUILD_MANIFEST),t&&t()}}));return Promise.race([e,f(3800,h(new Error("Failed to load client build manifest")))])}function d(e,t){return p().then((function(r){if(!(t in r))throw h(new Error("Failed to lookup route: ".concat(t)));var n=r[t].map((function(t){return e+"/_next/"+encodeURI(t)}));return{scripts:n.filter((function(e){return e.endsWith(".js")})),css:n.filter((function(e){return e.endsWith(".css")}))}}))}var v=function(e){var t=new Map,r=new Map,i=new Map,l=new Map;function p(e){var t=r.get(e);return t||(document.querySelector('script[src^="'.concat(e,'"]'))?Promise.resolve():(r.set(e,t=function(e,t){return new Promise((function(r,n){(t=document.createElement("script")).onload=r,t.onerror=function(){return n(h(new Error("Failed to load script: ".concat(e))))},t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)}))}(e)),t))}function v(e){var t=i.get(e);return t||(i.set(e,t=fetch(e).then((function(t){if(!t.ok)throw new Error("Failed to load stylesheet: ".concat(e));return t.text().then((function(t){return{href:e,content:t}}))})).catch((function(e){throw h(e)}))),t)}return{whenEntrypoint:function(e){return u(e,t)},onEntrypoint:function(e,r){Promise.resolve(r).then((function(e){return e()})).then((function(e){return{component:e&&e.default||e,exports:e}}),(function(e){return{error:e}})).then((function(r){var n=t.get(e);t.set(e,r),n&&"resolve"in n&&n.resolve(r)}))},loadRoute:function(r){var i=this;return u(r,l,o(n.mark((function o(){var s,u,c,l,m,g,y,_;return n.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,d(e,r);case 3:return s=n.sent,u=s.scripts,c=s.css,n.next=8,Promise.all([t.has(r)?[]:Promise.all(u.map(p)),Promise.all(c.map(v))]);case 8:return l=n.sent,m=a(l,2),g=m[1],n.next=13,Promise.race([i.whenEntrypoint(r),f(3800,h(new Error("Route did not complete loading: ".concat(r))))]);case 13:return y=n.sent,_=Object.assign({styles:g},y),n.abrupt("return","error"in y?y:_);case 18:return n.prev=18,n.t0=n.catch(0),n.abrupt("return",{error:n.t0});case 21:case"end":return n.stop()}}),o,null,[[0,18]])}))))},prefetch:function(t){var r,n=this;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():d(e,t).then((function(e){return Promise.all(c?e.scripts.map((function(e){return t=e,r="script",new Promise((function(e,a){if(document.querySelector('link[rel="prefetch"][href^="'.concat(t,'"]')))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=a,n.href=t,document.head.appendChild(n)}));var t,r,n})):[])})).then((function(){(0,s.default)((function(){return n.loadRoute(t)}))})).catch((function(){}))}}};t.default=v},Qetd:function(e,t,r){"use strict";var n=Object.assign.bind(Object);e.exports=n,e.exports.default=e.exports},S3md:function(e,t,r){},W8MJ:function(e,t){function r(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)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},"X24+":function(e,t,r){"use strict";function n(e){return e.endsWith("/")&&"/"!==e?e.slice(0,-1):e}t.__esModule=!0,t.removePathTrailingSlash=n,t.normalizePathTrailingSlash=void 0;var a=n;t.normalizePathTrailingSlash=a},YTqd:function(e,t,r){"use strict";t.__esModule=!0,t.getRouteRegex=function(e){var t=(e.replace(/\/$/,"")||"/").slice(1).split("/"),r={},n=1,a=t.map((function(e){if(e.startsWith("[")&&e.endsWith("]")){var t=function(e){var t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));var r=e.startsWith("...");r&&(e=e.slice(3));return{key:e,repeat:r,optional:t}}(e.slice(1,-1)),a=t.key,o=t.optional,i=t.repeat;return r[a]={pos:n++,repeat:i,optional:o},i?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}return"/".concat(e.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&"))})).join("");0;return{re:new RegExp("^".concat(a,"(?:/)?$")),groups:r}}},dZ6Y:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(){var e=Object.create(null);return{on:function(t,r){(e[t]||(e[t]=[])).push(r)},off:function(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];(e[t]||[]).slice().map((function(e){e.apply(void 0,n)}))}}}},elyg:function(e,t,r){"use strict";var n=r("J4zp"),a=r("o0o1"),o=r("yXPU"),i=r("lwsE"),s=r("W8MJ");t.__esModule=!0,t.addLocale=w,t.delLocale=S,t.hasBasePath=P,t.addBasePath=k,t.delBasePath=x,t.isLocalURL=R,t.interpolateAs=E,t.resolveHref=L,t.default=void 0;var u=r("X24+"),c=r("Nh2W"),l=r("wkBG"),h=_(r("dZ6Y")),f=r("g/15"),p=_(r("fcRV")),d=r("/jkW"),v=r("hS4m"),m=r("3WeD"),g=(_(r("S3md")),r("gguc")),y=r("YTqd");function _(e){return e&&e.__esModule?e:{default:e}}function b(){return Object.assign(new Error("Route Cancelled"),{cancelled:!0})}function w(e,t,r){return e}function S(e,t){return e}function P(e){return""===e||e.startsWith("/")}function k(e){return function(e,t){return t&&e.startsWith("/")?"/"===e?(0,u.normalizePathTrailingSlash)(t):"".concat(t).concat(e):e}(e,"")}function x(e){return e.slice("".length)||"/"}function R(e){if(e.startsWith("/"))return!0;try{var t=(0,f.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&P(r.pathname)}catch(n){return!1}}function E(e,t,r){var n="",a=(0,y.getRouteRegex)(e),o=a.groups,i=(t!==e?(0,g.getRouteMatcher)(a)(t):"")||r;n=e;var s=Object.keys(o);return s.every((function(e){var t=i[e]||"",r=o[e],a=r.repeat,s=r.optional,u="[".concat(a?"...":"").concat(e,"]");return s&&(u="".concat(t?"":"/","[").concat(u,"]")),a&&!Array.isArray(t)&&(t=[t]),(s||e in i)&&(n=n.replace(u,a?t.map(p.default).join("/"):(0,p.default)(t))||"/")}))||(n=""),{params:s,result:n}}function C(e,t){var r={};return Object.keys(e).forEach((function(n){t.includes(n)||(r[n]=e[n])})),r}function L(e,t,r){var n=new URL(e,"http://n"),a="string"===typeof t?t:(0,f.formatWithValidation)(t);if(!R(a))return r?[a]:a;try{var o=new URL(a,n);o.pathname=(0,u.normalizePathTrailingSlash)(o.pathname);var i="";if((0,d.isDynamicRoute)(o.pathname)&&o.searchParams&&r){var s=(0,m.searchParamsToUrlQuery)(o.searchParams),c=E(o.pathname,o.pathname,s),l=c.result,h=c.params;l&&(i=(0,f.formatWithValidation)({pathname:l,hash:o.hash,query:C(s,h)}))}var p=o.origin===n.origin?o.href.slice(o.origin.length):o.href;return r?[p,i||p]:p}catch(v){return r?[a]:a}}function O(e,t,r){return{url:k(L(e.pathname,t)),as:r?k(L(e.pathname,r)):r}}function I(e,t){return function e(t,r){return fetch(t,{credentials:"same-origin"}).then((function(n){if(!n.ok){if(r>1&&n.status>=500)return e(t,r-1);if(404===n.status)throw new Error("SSG Data NOT_FOUND");throw new Error("Failed to load static props")}return n.json()}))}(e,t?3:1).catch((function(e){throw t||(0,c.markAssetError)(e),e}))}var T=function(){function e(t,r,n,a){var o=this,s=a.initialProps,c=a.pageLoader,l=a.App,h=a.wrapApp,p=a.Component,m=a.err,g=a.subscription,y=a.isFallback,_=a.locale;a.locales,a.defaultLocale;i(this,e),this.route=void 0,this.pathname=void 0,this.query=void 0,this.asPath=void 0,this.basePath=void 0,this.components=void 0,this.sdc={},this.sub=void 0,this.clc=void 0,this.pageLoader=void 0,this._bps=void 0,this.events=void 0,this._wrapApp=void 0,this.isSsr=void 0,this.isFallback=void 0,this._inFlightRoute=void 0,this._shallow=void 0,this.locale=void 0,this.locales=void 0,this.defaultLocale=void 0,this.onPopState=function(e){var t=e.state;if(t){if(t.__N){var r=t.url,n=t.as,a=t.options,i=(0,v.parseRelativeUrl)(r).pathname;o.isSsr&&n===o.asPath&&i===o.pathname||o._bps&&!o._bps(t)||o.change("replaceState",r,n,Object.assign({},a,{shallow:a.shallow&&o._shallow,locale:a.locale||o.defaultLocale}))}}else{var s=o.pathname,u=o.query;o.changeState("replaceState",(0,f.formatWithValidation)({pathname:k(s),query:u}),(0,f.getURL)())}},this.route=(0,u.removePathTrailingSlash)(t),this.components={},"/_error"!==t&&(this.components[this.route]={Component:p,initial:!0,props:s,err:m,__N_SSG:s&&s.__N_SSG,__N_SSP:s&&s.__N_SSP}),this.components["/_app"]={Component:l,styleSheets:[]},this.events=e.events,this.pageLoader=c,this.pathname=t,this.query=r,this.asPath=(0,d.isDynamicRoute)(t)&&__NEXT_DATA__.autoExport?t:n,this.basePath="",this.sub=g,this.clc=null,this._wrapApp=h,this.isSsr=!0,this.isFallback=y,"//"!==n.substr(0,2)&&this.changeState("replaceState",(0,f.formatWithValidation)({pathname:k(t),query:r}),(0,f.getURL)(),{locale:_}),window.addEventListener("popstate",this.onPopState)}return s(e,[{key:"reload",value:function(){window.location.reload()}},{key:"back",value:function(){window.history.back()}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=O(this,e,t);return e=n.url,t=n.as,this.change("pushState",e,t,r)}},{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=O(this,e,t);return e=n.url,t=n.as,this.change("replaceState",e,t,r)}},{key:"change",value:function(){var t=o(a.mark((function t(r,n,o,i){var s,l,h,p,m,_,b,L,I,T,A,U,M,j,D,N,W,q,F,B,G,H,V,z,X,J,$,Q,Y;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(R(n)){t.next=3;break}return window.location.href=n,t.abrupt("return",!1);case 3:s=i.locale!==this.locale,t.next=15;break;case 15:if(i._h||(this.isSsr=!1),f.ST&&performance.mark("routeChange"),this._inFlightRoute&&this.abortComponentLoad(this._inFlightRoute),o=k(w(P(o)?x(o):o,i.locale,this.defaultLocale)),l=S(P(o)?x(o):o,this.locale),this._inFlightRoute=o,i._h||!this.onlyAHashChange(l)){t.next=29;break}return this.asPath=l,e.events.emit("hashChangeStart",o),this.changeState(r,n,o,i),this.scrollToHash(l),this.notify(this.components[this.route]),e.events.emit("hashChangeComplete",o),t.abrupt("return",!0);case 29:return h=(0,v.parseRelativeUrl)(n),m=(p=h).pathname,_=p.query,t.prev=31,t.next=34,this.pageLoader.getPageList();case 34:return b=t.sent,t.next=37,(0,c.getClientBuildManifest)();case 37:L=t.sent,L.__rewrites,t.next=45;break;case 41:return t.prev=41,t.t0=t.catch(31),window.location.href=o,t.abrupt("return",!1);case 45:if((h=this._resolveHref(h,b)).pathname!==m&&(m=h.pathname,n=(0,f.formatWithValidation)(h)),m=m?(0,u.removePathTrailingSlash)(x(m)):m,this.urlIsNew(l)||s||(r="replaceState"),I=(0,u.removePathTrailingSlash)(m),T=i.shallow,A=void 0!==T&&T,U=S(x(U=o),this.locale),!(0,d.isDynamicRoute)(I)){t.next=69;break}if(M=(0,v.parseRelativeUrl)(U),j=M.pathname,D=(0,y.getRouteRegex)(I),N=(0,g.getRouteMatcher)(D)(j),q=(W=I===j)?E(I,j,_):{},N&&(!W||q.result)){t.next=68;break}if(!((F=Object.keys(D.groups).filter((function(e){return!_[e]}))).length>0)){t.next=66;break}throw new Error((W?"The provided `href` (".concat(n,") value is missing query values (").concat(F.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat(j,") is incompatible with the `href` value (").concat(I,"). "))+"Read more: https://err.sh/vercel/next.js/".concat(W?"href-interpolation-failed":"incompatible-href-as"));case 66:t.next=69;break;case 68:W?o=(0,f.formatWithValidation)(Object.assign({},M,{pathname:q.result,query:C(_,q.params)})):Object.assign(_,N);case 69:return e.events.emit("routeChangeStart",o),t.prev=70,t.next=73,this.getRouteInfo(I,m,_,o,A);case 73:if(B=t.sent,G=B.error,H=B.props,V=B.__N_SSG,z=B.__N_SSP,!((V||z)&&H&&H.pageProps&&H.pageProps.__N_REDIRECT)){t.next=85;break}if(!(X=H.pageProps.__N_REDIRECT).startsWith("/")){t.next=83;break}if(J=(0,v.parseRelativeUrl)(X),this._resolveHref(J,b,!1),!b.includes(J.pathname)){t.next=83;break}return $=O(this,X,X),Q=$.url,Y=$.as,t.abrupt("return",this.change(r,Q,Y,i));case 83:return window.location.href=X,t.abrupt("return",new Promise((function(){})));case 85:return e.events.emit("beforeHistoryChange",o),this.changeState(r,n,o,i),t.next=90,this.set(I,m,_,l,B).catch((function(e){if(!e.cancelled)throw e;G=G||e}));case 90:if(!G){t.next=93;break}throw e.events.emit("routeChangeError",G,l),G;case 93:return e.events.emit("routeChangeComplete",o),t.abrupt("return",!0);case 99:if(t.prev=99,t.t1=t.catch(70),!t.t1.cancelled){t.next=103;break}return t.abrupt("return",!1);case 103:throw t.t1;case 104:case"end":return t.stop()}}),t,this,[[31,41],[70,99]])})));return function(e,r,n,a){return t.apply(this,arguments)}}()},{key:"changeState",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"pushState"===e&&(0,f.getURL)()===r||(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0},"",r))}},{key:"handleRouteInfoError",value:function(){var t=o(a.mark((function t(r,n,o,i,s){var u,l,h,f,p,d,v,m;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.cancelled){t.next=2;break}throw r;case 2:if(!(0,c.isAssetError)(r)&&!s){t.next=6;break}throw e.events.emit("routeChangeError",r,i),window.location.href=i,b();case 6:if(t.prev=6,!(f="SSG Data NOT_FOUND"===r.message)){t.next=24;break}return t.prev=9,t.next=12,this.fetchComponent("/404");case 12:if(d=t.sent,u=d.page,l=d.styleSheets,!(p=d.mod)||!p.__N_SSG){t.next=20;break}return t.next=19,this._getStaticData(this.pageLoader.getDataHref("/404","/404",!0,this.locale));case 19:h=t.sent;case 20:t.next=24;break;case 22:t.prev=22,t.t0=t.catch(9);case 24:if("undefined"!==typeof u&&"undefined"!==typeof l){t.next=31;break}return t.next=28,this.fetchComponent("/_error");case 28:v=t.sent,u=v.page,l=v.styleSheets;case 31:if((m={props:h,Component:u,styleSheets:l,err:f?void 0:r,error:f?void 0:r}).props){t.next=43;break}return t.prev=33,t.next=36,this.getInitialProps(u,{err:r,pathname:n,query:o});case 36:m.props=t.sent,t.next=43;break;case 39:t.prev=39,t.t1=t.catch(33),console.error("Error in error page `getInitialProps`: ",t.t1),m.props={};case 43:return t.abrupt("return",m);case 46:return t.prev=46,t.t2=t.catch(6),t.abrupt("return",this.handleRouteInfoError(t.t2,n,o,i,!0));case 49:case"end":return t.stop()}}),t,this,[[6,46],[9,22],[33,39]])})));return function(e,r,n,a,o){return t.apply(this,arguments)}}()},{key:"getRouteInfo",value:function(){var e=o(a.mark((function e(t,r,n,o){var i,s,u,c,l,h,p,d,v,m=this,g=arguments;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=g.length>4&&void 0!==g[4]&&g[4],e.prev=1,s=this.components[t],!i||!s||this.route!==t){e.next=5;break}return e.abrupt("return",s);case 5:if(!(u=s&&"initial"in s?void 0:s)){e.next=10;break}e.t0=u,e.next=13;break;case 10:return e.next=12,this.fetchComponent(t).then((function(e){return{Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP}}));case 12:e.t0=e.sent;case 13:c=e.t0,l=c.Component,h=c.__N_SSG,p=c.__N_SSP,e.next=19;break;case 19:return(h||p)&&(d=this.pageLoader.getDataHref((0,f.formatWithValidation)({pathname:r,query:n}),x(o),h,this.locale)),e.next=22,this._getData((function(){return h?m._getStaticData(d):p?m._getServerData(d):m.getInitialProps(l,{pathname:r,query:n,asPath:o})}));case 22:return v=e.sent,c.props=v,this.components[t]=c,e.abrupt("return",c);case 28:return e.prev=28,e.t1=e.catch(1),e.abrupt("return",this.handleRouteInfoError(e.t1,r,n,o));case 31:case"end":return e.stop()}}),e,this,[[1,28]])})));return function(t,r,n,a){return e.apply(this,arguments)}}()},{key:"set",value:function(e,t,r,n,a){return this.isFallback=!1,this.route=e,this.pathname=t,this.query=r,this.asPath=n,this.notify(a)}},{key:"beforePopState",value:function(e){this._bps=e}},{key:"onlyAHashChange",value:function(e){if(!this.asPath)return!1;var t=this.asPath.split("#"),r=n(t,2),a=r[0],o=r[1],i=e.split("#"),s=n(i,2),u=s[0],c=s[1];return!(!c||a!==u||o!==c)||a===u&&o!==c}},{key:"scrollToHash",value:function(e){var t=e.split("#"),r=n(t,2)[1];if(""!==r){var a=document.getElementById(r);if(a)a.scrollIntoView();else{var o=document.getElementsByName(r)[0];o&&o.scrollIntoView()}}else window.scrollTo(0,0)}},{key:"urlIsNew",value:function(e){return this.asPath!==e}},{key:"_resolveHref",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e.pathname,a=(0,u.removePathTrailingSlash)((0,l.denormalizePagePath)(r?x(n):n));return"/404"===a||"/_error"===a||t.includes(a)||t.some((function(t){if((0,d.isDynamicRoute)(t)&&(0,y.getRouteRegex)(t).re.test(a))return e.pathname=r?k(t):t,!0})),e}},{key:"prefetch",value:function(){var e=o(a.mark((function e(t){var r,n,o,i,s,c,l=this,h=arguments;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=h.length>1&&void 0!==h[1]?h[1]:t,n=h.length>2&&void 0!==h[2]?h[2]:{},o=(0,v.parseRelativeUrl)(t),i=o.pathname,e.next=7,this.pageLoader.getPageList();case 7:s=e.sent,(o=this._resolveHref(o,s,!1)).pathname!==i&&(i=o.pathname,t=(0,f.formatWithValidation)(o)),e.next=12;break;case 12:return c=(0,u.removePathTrailingSlash)(i),e.next=15,Promise.all([this.pageLoader._isSsg(t).then((function(e){return!!e&&l._getStaticData(l.pageLoader.getDataHref(t,r,!0,"undefined"!==typeof n.locale?n.locale:l.locale))})),this.pageLoader[n.priority?"loadPage":"prefetch"](c)]);case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"fetchComponent",value:function(){var e=o(a.mark((function e(t){var r,n,o,i;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!1,n=this.clc=function(){r=!0},e.next=4,this.pageLoader.loadPage(t);case 4:if(o=e.sent,!r){e.next=9;break}throw(i=new Error('Abort fetching component for route: "'.concat(t,'"'))).cancelled=!0,i;case 9:return n===this.clc&&(this.clc=null),e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_getData",value:function(e){var t=this,r=!1,n=function(){r=!0};return this.clc=n,e().then((function(e){if(n===t.clc&&(t.clc=null),r){var a=new Error("Loading initial props cancelled");throw a.cancelled=!0,a}return e}))}},{key:"_getStaticData",value:function(e){var t=this,r=new URL(e,window.location.href).href;return this.sdc[r]?Promise.resolve(this.sdc[r]):I(e,this.isSsr).then((function(e){return t.sdc[r]=e,e}))}},{key:"_getServerData",value:function(e){return I(e,this.isSsr)}},{key:"getInitialProps",value:function(e,t){var r=this.components["/_app"].Component,n=this._wrapApp(r);return t.AppTree=n,(0,f.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}},{key:"abortComponentLoad",value:function(t){this.clc&&(e.events.emit("routeChangeError",b(),t),this.clc(),this.clc=null)}},{key:"notify",value:function(e){return this.sub(e,this.components["/_app"].Component)}}]),e}();t.default=T,T.events=(0,h.default)()},fcRV:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){return e.replace(/[/#?]/g,(function(e){return encodeURIComponent(e)}))}},"g/15":function(e,t,r){"use strict";var n=r("o0o1"),a=r("yXPU");t.__esModule=!0,t.execOnce=function(e){var t,r=!1;return function(){return r||(r=!0,t=e.apply(void 0,arguments)),t}},t.getLocationOrigin=i,t.getURL=function(){var e=window.location.href,t=i();return e.substring(t.length)},t.getDisplayName=s,t.isResSent=u,t.loadGetInitialProps=c,t.formatWithValidation=function(e){0;return(0,o.formatUrl)(e)},t.ST=t.SP=t.urlObjectKeys=void 0;var o=r("6D7l");function i(){var e=window.location,t=e.protocol,r=e.hostname,n=e.port;return"".concat(t,"//").concat(r).concat(n?":"+n:"")}function s(e){return"string"===typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e,t){return l.apply(this,arguments)}function l(){return(l=a(n.mark((function e(t,r){var a,o,i;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=4;break;case 4:if(a=r.res||r.ctx&&r.ctx.res,t.getInitialProps){e.next=12;break}if(!r.ctx||!r.Component){e.next=11;break}return e.next=9,c(r.Component,r.ctx);case 9:return e.t0=e.sent,e.abrupt("return",{pageProps:e.t0});case 11:return e.abrupt("return",{});case 12:return e.next=14,t.getInitialProps(r);case 14:if(o=e.sent,!a||!u(a)){e.next=17;break}return e.abrupt("return",o);case 17:if(o){e.next=20;break}throw i='"'.concat(s(t),'.getInitialProps()" should resolve to an object. But found "').concat(o,'" instead.'),new Error(i);case 20:return e.abrupt("return",o);case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];var h="undefined"!==typeof performance;t.SP=h;var f=h&&"function"===typeof performance.mark&&"function"===typeof performance.measure;t.ST=f},gguc:function(e,t,r){"use strict";t.__esModule=!0,t.getRouteMatcher=function(e){var t=e.re,r=e.groups;return function(e){var n=t.exec(e);if(!n)return!1;var a=function(e){try{return decodeURIComponent(e)}catch(r){var t=new Error("failed to decode param");throw t.code="DECODE_FAILED",t}},o={};return Object.keys(r).forEach((function(e){var t=r[e],i=n[t.pos];void 0!==i&&(o[e]=~i.indexOf("/")?i.split("/").map((function(e){return a(e)})):t.repeat?[a(i)]:a(i))})),o}}},hS4m:function(e,t,r){"use strict";t.__esModule=!0,t.parseRelativeUrl=function(e,t){var r=new URL((0,n.getLocationOrigin)()),o=t?new URL(t,r):r,i=new URL(e,o),s=i.pathname,u=i.searchParams,c=i.search,l=i.hash,h=i.href;if(i.origin!==r.origin)throw new Error("invariant: invalid relative URL");return{pathname:s,query:(0,a.searchParamsToUrlQuery)(u),search:c,hash:l,href:h.slice(r.origin.length)}};var n=r("g/15"),a=r("3WeD")},lwsE:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},nOHt:function(e,t,r){"use strict";var n=r("sXyB");function a(e,t){var r;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw i}}}}function o(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}var i=r("284h"),s=r("TqRt");t.__esModule=!0,t.useRouter=function(){return u.default.useContext(l.RouterContext)},t.makePublicRouterInstance=function(e){var t,r=e,n={},o=a(p);try{for(o.s();!(t=o.n()).done;){var i=t.value;"object"!==typeof r[i]?n[i]=r[i]:n[i]=Object.assign(Array.isArray(r[i])?[]:{},r[i])}}catch(s){o.e(s)}finally{o.f()}return n.events=c.default.events,d.forEach((function(e){n[e]=function(){return r[e].apply(r,arguments)}})),n},t.createRouter=t.withRouter=t.default=void 0;var u=s(r("q1tI")),c=i(r("elyg"));t.Router=c.default,t.NextRouter=c.NextRouter;var l=r("qOIg"),h=s(r("0Bsm"));t.withRouter=h.default;var f={router:null,readyCallbacks:[],ready:function(e){if(this.router)return e();this.readyCallbacks.push(e)}},p=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale"],d=["push","replace","reload","back","prefetch","beforePopState"];function v(){if(!f.router){throw new Error('No router instance found.\nYou should only use "next/router" inside the client side of your app.\n')}return f.router}Object.defineProperty(f,"events",{get:function(){return c.default.events}}),p.forEach((function(e){Object.defineProperty(f,e,{get:function(){return v()[e]}})})),d.forEach((function(e){f[e]=function(){var t=v();return t[e].apply(t,arguments)}})),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach((function(e){f.ready((function(){c.default.events.on(e,(function(){var t="on".concat(e.charAt(0).toUpperCase()).concat(e.substring(1)),r=f;if(r[t])try{r[t].apply(r,arguments)}catch(n){console.error("Error when running the Router event: ".concat(t)),console.error("".concat(n.message,"\n").concat(n.stack))}}))}))}));var m=f;t.default=m;t.createRouter=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return f.router=n(c.default,t),f.readyCallbacks.forEach((function(e){return e()})),f.readyCallbacks=[],f.router}},qOIg:function(e,t,r){"use strict";var n;t.__esModule=!0,t.RouterContext=void 0;var a=((n=r("q1tI"))&&n.__esModule?n:{default:n}).default.createContext(null);t.RouterContext=a},sXyB:function(e,t,r){var n=r("SksO"),a=r("b48C");function o(t,r,i){return a()?e.exports=o=Reflect.construct:e.exports=o=function(e,t,r){var a=[null];a.push.apply(a,t);var o=new(Function.bind.apply(e,a));return r&&n(o,r.prototype),o},o.apply(null,arguments)}e.exports=o},wkBG:function(e,t,r){"use strict";function n(e){return e.replace(/\\/g,"/")}t.__esModule=!0,t.normalizePathSep=n,t.denormalizePagePath=function(e){(e=n(e)).startsWith("/index/")?e=e.slice(6):"/index"===e&&(e="/");return e}},yXPU:function(e,t){function r(e,t,r,n,a,o,i){try{var s=e[o](i),u=s.value}catch(c){return void r(c)}s.done?t(u):Promise.resolve(u).then(n,a)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var i=e.apply(t,n);function s(e){r(i,a,o,s,u,"next",e)}function u(e){r(i,a,o,s,u,"throw",e)}s(void 0)}))}}}}]);