diff --git "a/out/_next/static/chunks/main-986581bd9aadbb64.js" "b/out/_next/static/chunks/main-986581bd9aadbb64.js" new file mode 100644--- /dev/null +++ "b/out/_next/static/chunks/main-986581bd9aadbb64.js" @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{1226:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce((function(e,t){return e[t[0]]=t[1],e}),{})})},5706:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return o}});const r=n(5967),a=n(5381);function o(e,t){return(0,a.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,"/staticspaceiframe/matthoffner/open-codetree/out"))}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},395:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});n(5381);const r=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{const t={};e.forEach((e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}const n=t[e.type]||[];n.push(e),t[e.type]=n}));const n=t.title?t.title[0]:null;let r="";if(n){const{children:e}=n.props;r="string"===typeof e?e:Array.isArray(e)?e.join(""):""}r!==document.title&&(document.title=r),["meta","base","link","style","script"].forEach((e=>{o(e,t[e]||[])}))}}}o=(e,t)=>{const n=document.getElementsByTagName("head")[0],o=n.querySelector("meta[name=next-head-count]");const l=Number(o.content),i=[];for(let r=0,a=o.previousElementSibling;r{for(let t=0,n=i.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),s.forEach((e=>n.insertBefore(e,o))),o.content=(l-i.length+s.length).toString()},("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2489:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8640);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{version:function(){return L},router:function(){return T},emitter:function(){return I},initialize:function(){return X},hydrate:function(){return ce}});const a=n(9758);n(1226);const o=a._(n(8025)),l=a._(n(7016)),i=n(1625),u=a._(n(4512)),s=n(1931),c=n(7973),f=n(5449),d=n(3133),p=n(1512),h=n(7052),m=n(9317),g=a._(n(5541)),y=a._(n(5105)),v=a._(n(1134)),b=n(7548),w=n(9231),_=n(267),S=n(1111),P=n(803),k=n(6613),E=n(2165),x=n(9424),C=n(6079),O=a._(n(9938)),R=e=>t=>e(t)+"",N=n.u;n.u=R(N);const M=n.k;n.k=R(M);const j=n.miniCssF;n.miniCssF=R(j);const L="13.4.12";let T;const I=(0,u.default)(),A=e=>[].slice.call(e);let z,D,F,U,B,H,W,q,V,$,Q,K=!1;self.__next_require__=n;class G extends o.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),T.isSsr&&(z.isFallback||z.nextExport&&((0,f.isDynamicRoute)(T.pathname)||location.search||K)||z.props&&z.props.__N_SSG&&(location.search||K))&&T.replace(T.pathname+"?"+String((0,d.assign)((0,d.urlQueryToSearchParams)(T.query),new URLSearchParams(location.search))),F,{_h:1,shallow:!z.isFallback&&!K}).catch((e=>{if(!e.cancelled)throw e}))}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(e=e&&e.substring(1),!e)return;const t=document.getElementById(e);t&&setTimeout((()=>t.scrollIntoView()),0)}render(){return this.props.children}}async function X(e){void 0===e&&(e={}),z=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=z,D=z.defaultLocale;const t=z.assetPrefix||"";if(n.p=t+"/_next/",(0,p.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:z.runtimeConfig||{}}),F=(0,h.getURL)(),(0,k.hasBasePath)(F)&&(F=(0,P.removeBasePath)(F)),z.scriptLoader){const{initScriptLoader:e}=n(9279);e(z.scriptLoader)}U=new y.default(z.buildId,t);const r=e=>{let[t,n]=e;return U.routeLoader.onEntrypoint(t,n)};return window.__NEXT_P&&window.__NEXT_P.map((e=>setTimeout((()=>r(e)),0))),window.__NEXT_P=[],window.__NEXT_P.push=r,H=(0,g.default)(),H.getIsSsr=()=>T.isSsr,B=document.getElementById("__next"),{assetPrefix:t}}function Y(e,t){return o.default.createElement(e,t)}function J(e){let{children:t}=e;const n=o.default.useMemo((()=>(0,x.adaptForAppRouterInstance)(T)),[]);var r;return o.default.createElement(G,{fn:e=>ee({App:V,err:e}).catch((e=>console.error("Error rendering page: ",e)))},o.default.createElement(E.AppRouterContext.Provider,{value:n},o.default.createElement(C.SearchParamsContext.Provider,{value:(0,x.adaptForSearchParams)(T)},o.default.createElement(x.PathnameContextProviderAdapter,{router:T,isAutoExport:null!=(r=self.__NEXT_DATA__.autoExport)&&r},o.default.createElement(s.RouterContext.Provider,{value:(0,w.makePublicRouterInstance)(T)},o.default.createElement(i.HeadManagerContext.Provider,{value:H},o.default.createElement(S.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/staticspaceiframe/matthoffner/open-codetree/out/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}},t)))))))}const Z=e=>t=>{const n={...t,Component:Q,err:z.err,router:T};return o.default.createElement(J,null,Y(e,n))};function ee(e){let{App:t,err:a}=e;return console.error(a),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),U.loadPage("/_error").then((a=>{let{page:o,styleSheets:l}=a;return(null==W?void 0:W.Component)===o?Promise.resolve().then((()=>r._(n(4385)))).then((a=>Promise.resolve().then((()=>r._(n(3728)))).then((n=>(t=n.default,e.App=t,a))))).then((e=>({ErrorComponent:e.default,styleSheets:[]}))):{ErrorComponent:o,styleSheets:l}})).then((n=>{let{ErrorComponent:r,styleSheets:o}=n;var l;const i=Z(t),u={Component:r,AppTree:i,router:T,ctx:{err:a,pathname:z.page,query:z.query,asPath:F,AppTree:i}};return Promise.resolve((null==(l=e.props)?void 0:l.err)?e.props:(0,h.loadGetInitialProps)(t,u)).then((t=>ue({...e,err:a,Component:r,styleSheets:o,props:t})))}))}function te(e){let{callback:t}=e;return o.default.useLayoutEffect((()=>t()),[t]),null}let ne=null,re=!0;function ae(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach((e=>performance.clearMarks(e)))}function oe(){h.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),$&&performance.getEntriesByName("Next.js-hydration").forEach($),ae())}function le(){if(!h.ST)return;performance.mark("afterRender");const e=performance.getEntriesByName("routeChange","mark");e.length&&(performance.measure("Next.js-route-change-to-render",e[0].name,"beforeRender"),performance.measure("Next.js-render","beforeRender","afterRender"),$&&(performance.getEntriesByName("Next.js-render").forEach($),performance.getEntriesByName("Next.js-route-change-to-render").forEach($)),ae(),["Next.js-route-change-to-render","Next.js-render"].forEach((e=>performance.clearMeasures(e))))}function ie(e){let{callbacks:t,children:n}=e;return o.default.useLayoutEffect((()=>t.forEach((e=>e()))),[t]),o.default.useEffect((()=>{(0,v.default)($)}),[]),n}function ue(e){let{App:t,Component:n,props:r,err:a}=e,i="initial"in e?void 0:e.styleSheets;n=n||W.Component,r=r||W.props;const u={...r,Component:n,err:a,router:T};W=u;let s,f=!1;const d=new Promise(((e,t)=>{q&&q(),s=()=>{q=null,e()},q=()=>{f=!0,q=null;const e=new Error("Cancel rendering route");e.cancelled=!0,t(e)}}));function p(){s()}!function(){if(!i)return!1;const e=A(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map((e=>e.getAttribute("data-n-href")))),n=document.querySelector("noscript[data-n-css]"),r=null==n?void 0:n.getAttribute("data-n-css");i.forEach((e=>{let{href:n,text:a}=e;if(!t.has(n)){const e=document.createElement("style");e.setAttribute("data-n-href",n),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(a))}}))}();const g=o.default.createElement(o.default.Fragment,null,o.default.createElement(te,{callback:function(){if(i&&!f){const e=new Set(i.map((e=>e.href))),t=A(document.querySelectorAll("style[data-n-href]")),n=t.map((e=>e.getAttribute("data-n-href")));for(let a=0;a{let{href:t}=e;const n=document.querySelector('style[data-n-href="'+t+'"]');n&&(r.parentNode.insertBefore(n,r.nextSibling),r=n)})),A(document.querySelectorAll("link[data-n-p]")).forEach((e=>{e.parentNode.removeChild(e)}))}if(e.scroll){const{x:t,y:n}=e.scroll;(0,c.handleSmoothScroll)((()=>{window.scrollTo(t,n)}))}}}),o.default.createElement(J,null,Y(t,u),o.default.createElement(m.Portal,{type:"next-route-announcer"},o.default.createElement(b.RouteAnnouncer,null))));return function(e,t){h.ST&&performance.mark("beforeRender");const n=t(re?oe:le);ne?(0,o.default.startTransition)((()=>{ne.render(n)})):(ne=l.default.hydrateRoot(e,n,{onRecoverableError:O.default}),re=!1)}(B,(e=>o.default.createElement(ie,{callbacks:[e,p]},g))),d}async function se(e){if(e.err)await ee(e);else try{await ue(e)}catch(t){const n=(0,_.getProperError)(t);if(n.cancelled)throw n;0,await ee({...e,err:n})}}async function ce(e){let t=z.err;try{const e=await U.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;const{component:t,exports:n}=e;V=t,n&&n.reportWebVitals&&($=e=>{let{id:t,name:r,startTime:a,value:o,duration:l,entryType:i,entries:u,attribution:s}=e;const c=Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12);let f;u&&u.length&&(f=u[0].startTime);const d={id:t||c,name:r,startTime:a||f,value:null==o?l:o,label:"mark"===i||"measure"===i?"custom":"web-vital"};s&&(d.attribution=s),n.reportWebVitals(d)});const r=await U.routeLoader.whenEntrypoint(z.page);if("error"in r)throw r.error;Q=r.component}catch(r){t=(0,_.getProperError)(r)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(z.dynamicIds),T=(0,w.createRouter)(z.page,z.query,F,{initialProps:z.props,pageLoader:U,App:V,Component:Q,wrapApp:Z,err:t,isFallback:Boolean(z.isFallback),subscription:(e,t,n)=>se(Object.assign({},e,{App:t,scroll:n})),locale:z.locale,locales:z.locales,defaultLocale:D,domainLocales:z.domainLocales,isPreview:z.isPreview}),K=await T._initialMatchesMiddlewarePromise;const n={App:V,initial:!0,Component:Q,props:z.props,err:t};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),se(n)}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9312:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2489);window.next={version:r.version,get router(){return r.router},emitter:r.emitter},(0,r.initialize)({}).then((()=>(0,r.hydrate)())).catch(console.error),("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5381:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=n(4457),a=n(758),o=e=>{if(!e.startsWith("/"))return e;const{pathname:t,query:n,hash:o}=(0,a.parsePath)(e);return""+(0,r.removeTrailingSlash)(t)+n+o};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});const r=n(9629);function a(e){const t="function"===typeof reportError?reportError:e=>{window.console.error(e)};e.digest!==r.NEXT_DYNAMIC_NO_SSR_CODE&&t(e)}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5105:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});const r=n(9758),a=n(5706),o=n(5104),l=r._(n(4346)),i=n(395),u=n(5449),s=n(2738),c=n(4457),f=n(1795);class d{getPageList(){return(0,f.getClientBuildManifest)().then((e=>e.sortedPages))}getMiddleware(){{const e=[];return window.__MIDDLEWARE_MATCHERS=e||void 0,window.__MIDDLEWARE_MATCHERS}}getDataHref(e){const{asPath:t,href:n,locale:r}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(n),{pathname:h}=(0,s.parseRelativeUrl)(t),m=(0,c.removeTrailingSlash)(f);if("/"!==m[0])throw new Error('Route name should start with a "/", got "'+m+'"');return(e=>{const t=(0,l.default)((0,c.removeTrailingSlash)((0,i.addLocale)(e,r)),".json");return(0,a.addBasePath)("/_next/data/"+this.buildId+t+p,!0)})(e.skipInterpolation?h:(0,u.isDynamicRoute)(m)?(0,o.interpolateAs)(f,h,d).result:m)}_isSsg(e){return this.promisedSsgManifest.then((t=>t.has(e)))}loadPage(e){return this.routeLoader.loadRoute(e).then((e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map((e=>({href:e.href,text:e.content})))};throw e.error}))}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise((e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}}))}}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1134:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});const r=["CLS","FCP","FID","INP","LCP","TTFB"];location.href;let a,o=!1;function l(e){a&&a(e)}const i=e=>{if(a=e,o)return;o=!0;for(const a of r)try{let e;0,e||(e=n(9556)),e["on"+a](l)}catch(t){console.warn("Failed to track "+a+" web-vital",t)}};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9317:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return o}});const r=n(8025),a=n(5776),o=e=>{let{children:t,type:n}=e;const[o,l]=(0,r.useState)(null);return(0,r.useEffect)((()=>{const e=document.createElement(n);return document.body.appendChild(e),l(e),()=>{document.body.removeChild(e)}}),[n]),o?(0,a.createPortal)(t,o):null};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},803:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return r}});n(6613);function r(e){return(e=e.slice("/staticspaceiframe/matthoffner/open-codetree/out".length)).startsWith("/")||(e="/"+e),e}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7047:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return r}});n(758);function r(e,t){return e}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2490:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return r}});const n="undefined"!==typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)},r="undefined"!==typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7548:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RouteAnnouncer:function(){return l},default:function(){return i}});const r=n(9758)._(n(8025)),a=n(9231),o={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},l=()=>{const{asPath:e}=(0,a.useRouter)(),[t,n]=r.default.useState(""),l=r.default.useRef(e);return r.default.useEffect((()=>{if(l.current!==e)if(l.current=e,document.title)n(document.title);else{const r=document.querySelector("h1");var t;const a=null!=(t=null==r?void 0:r.innerText)?t:null==r?void 0:r.textContent;n(a||e)}}),[e]),r.default.createElement("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:o},t)},i=l;("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1795:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{markAssetError:function(){return i},isAssetError:function(){return u},getClientBuildManifest:function(){return f},createRouteLoader:function(){return p}});n(4346);const r=n(253),a=n(2490);function o(e,t,n){let r,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);const o=new Promise((e=>{r=e}));return t.set(e,a={resolve:r,future:o}),n?n().then((e=>(r(e),e))).catch((n=>{throw t.delete(e),n})):o}const l=Symbol("ASSET_LOAD_ERROR");function i(e){return Object.defineProperty(e,l,{})}function u(e){return e&&l in e}const s=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(t){return!1}}();function c(e,t,n){return new Promise(((r,o)=>{let l=!1;e.then((e=>{l=!0,r(e)})).catch(o),(0,a.requestIdleCallback)((()=>setTimeout((()=>{l||o(n)}),t)))}))}function f(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);return c(new Promise((e=>{const t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}})),3800,i(new Error("Failed to load client build manifest")))}function d(e,t){return f().then((n=>{if(!(t in n))throw i(new Error("Failed to lookup route: "+t));const a=n[t].map((t=>e+"/_next/"+encodeURI(t)));return{scripts:a.filter((e=>e.endsWith(".js"))).map((e=>(0,r.__unsafeCreateTrustedScriptURL)(e)+"")),css:a.filter((e=>e.endsWith(".css"))).map((e=>e+""))}}))}function p(e){const t=new Map,n=new Map,r=new Map,l=new Map;function u(e){{let t=n.get(e.toString());return t||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(n.set(e.toString(),t=function(e,t){return new Promise(((n,r)=>{(t=document.createElement("script")).onload=n,t.onerror=()=>r(i(new Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)}))}(e)),t))}}function f(e){let t=r.get(e);return t||(r.set(e,t=fetch(e).then((t=>{if(!t.ok)throw new Error("Failed to load stylesheet: "+e);return t.text().then((t=>({href:e,content:t})))})).catch((e=>{throw i(e)}))),t)}return{whenEntrypoint:e=>o(e,t),onEntrypoint(e,n){(n?Promise.resolve().then((()=>n())).then((e=>({component:e&&e.default||e,exports:e})),(e=>({error:e}))):Promise.resolve(void 0)).then((n=>{const r=t.get(e);r&&"resolve"in r?n&&(t.set(e,n),r.resolve(n)):(n?t.set(e,n):t.delete(e),l.delete(e))}))},loadRoute(n,r){return o(n,l,(()=>c(d(e,n).then((e=>{let{scripts:r,css:a}=e;return Promise.all([t.has(n)?[]:Promise.all(r.map(u)),Promise.all(a.map(f))])})).then((e=>this.whenEntrypoint(n).then((t=>({entrypoint:t,styles:e[1]}))))),3800,i(new Error("Route did not complete loading: "+n))).then((e=>{let{entrypoint:t,styles:n}=e;const r=Object.assign({styles:n},t);return"error"in t?t:r})).catch((e=>{if(r)throw e;return{error:e}})).finally((()=>{}))))},prefetch(t){let n;return(n=navigator.connection)&&(n.saveData||/2g/.test(n.effectiveType))?Promise.resolve():d(e,t).then((e=>Promise.all(s?e.scripts.map((e=>{return t=e.toString(),n="script",new Promise(((e,a)=>{const o='\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]';if(document.querySelector(o))return e();r=document.createElement("link"),n&&(r.as=n),r.rel="prefetch",r.crossOrigin=void 0,r.onload=e,r.onerror=()=>a(i(new Error("Failed to prefetch: "+t))),r.href=t,document.head.appendChild(r)}));var t,n,r})):[]))).then((()=>{(0,a.requestIdleCallback)((()=>this.loadRoute(t,!0).catch((()=>{}))))})).catch((()=>{}))}}}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9231:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Router:function(){return o.default},default:function(){return p},withRouter:function(){return u.default},useRouter:function(){return h},createRouter:function(){return m},makePublicRouterInstance:function(){return g}});const r=n(9758),a=r._(n(8025)),o=r._(n(8459)),l=n(1931),i=r._(n(267)),u=r._(n(322)),s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!s.router){throw new Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n')}return s.router}Object.defineProperty(s,"events",{get:()=>o.default.events}),c.forEach((e=>{Object.defineProperty(s,e,{get:()=>d()[e]})})),f.forEach((e=>{s[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{s.ready((()=>{o.default.events.on(e,(function(){for(var t=arguments.length,n=new Array(t),r=0;re())),s.readyCallbacks=[],s.router}function g(e){const t=e,n={};for(const r of c)"object"!==typeof t[r]?n[r]=t[r]:n[r]=Object.assign(Array.isArray(t[r])?[]:{},t[r]);return n.events=o.default.events,f.forEach((e=>{n[e]=function(){for(var n=arguments.length,r=new Array(n),a=0;a{const{src:t,id:n,onLoad:r=(()=>{}),onReady:a=null,dangerouslySetInnerHTML:l,children:i="",strategy:s="afterInteractive",onError:p,stylesheets:h}=e,m=n||t;if(m&&f.has(m))return;if(c.has(t))return f.add(m),void c.get(t).then(r,p);const g=()=>{a&&a(),f.add(m)},y=document.createElement("script"),v=new Promise(((e,t)=>{y.addEventListener("load",(function(t){e(),r&&r.call(this,t),g()})),y.addEventListener("error",(function(e){t(e)}))})).catch((function(e){p&&p(e)}));l?(y.innerHTML=l.__html||"",g()):i?(y.textContent="string"===typeof i?i:Array.isArray(i)?i.join(""):"",g()):t&&(y.src=t,c.set(t,v));for(const[o,c]of Object.entries(e)){if(void 0===c||d.includes(o))continue;const e=u.DOMAttributeNames[o]||o.toLowerCase();y.setAttribute(e,c)}"worker"===s&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",s),h&&(e=>{if(o.default.preinit)e.forEach((e=>{o.default.preinit(e,{as:"style"})}));else{let t=document.head;e.forEach((e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)}))}})(h),document.body.appendChild(y)};function h(e){const{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",(()=>{(0,s.requestIdleCallback)((()=>p(e)))})):p(e)}function m(e){e.forEach(h),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach((e=>{const t=e.id||e.getAttribute("src");f.add(t)}))}function g(e){const{id:t,src:n="",onLoad:r=(()=>{}),onReady:a=null,strategy:u="afterInteractive",onError:c,stylesheets:d,...h}=e,{updateScripts:m,scripts:g,getIsSsr:y,appDir:v,nonce:b}=(0,l.useContext)(i.HeadManagerContext),w=(0,l.useRef)(!1);(0,l.useEffect)((()=>{const e=t||n;w.current||(a&&e&&f.has(e)&&a(),w.current=!0)}),[a,t,n]);const _=(0,l.useRef)(!1);if((0,l.useEffect)((()=>{_.current||("afterInteractive"===u?p(e):"lazyOnload"===u&&function(e){"complete"===document.readyState?(0,s.requestIdleCallback)((()=>p(e))):window.addEventListener("load",(()=>{(0,s.requestIdleCallback)((()=>p(e)))}))}(e),_.current=!0)}),[e,u]),"beforeInteractive"!==u&&"worker"!==u||(m?(g[u]=(g[u]||[]).concat([{id:t,src:n,onLoad:r,onReady:a,onError:c,...h}]),m(g)):y&&y()?f.add(t||n):y&&!y()&&p(e)),v){if(d&&d.forEach((e=>{o.default.preinit(e,{as:"style"})})),"beforeInteractive"===u)return n?(o.default.preload(n,h.integrity?{as:"script",integrity:h.integrity}:{as:"script"}),l.default.createElement("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n])+")"}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),l.default.createElement("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...h}])+")"}}));"afterInteractive"===u&&n&&o.default.preload(n,h.integrity?{as:"script",integrity:h.integrity}:{as:"script"})}return null}Object.defineProperty(g,"__nextScript",{value:!0});const y=g;("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},253:function(e,t){"use strict";let n;function r(e){var t;return(null==(t=function(){var e;return"undefined"===typeof n&&(n=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null),n}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return r}}),("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},322:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});const r=n(9758)._(n(8025)),a=n(9231);function o(e){function t(t){return r.default.createElement(e,{router:(0,a.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3728:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});const r=n(9758)._(n(8025)),a=n(7052);async function o(e){let{Component:t,ctx:n}=e;return{pageProps:await(0,a.loadGetInitialProps)(t,n)}}class l extends r.default.Component{render(){const{Component:e,pageProps:t}=this.props;return r.default.createElement(e,t)}}l.origGetInitialProps=o,l.getInitialProps=o,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4385:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});const r=n(9758),a=r._(n(8025)),o=r._(n(8191)),l={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function i(e){let{res:t,err:n}=e;return{statusCode:t&&t.statusCode?t.statusCode:n?n.statusCode:404}}const u={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class s extends a.default.Component{render(){const{statusCode:e,withDarkMode:t=!0}=this.props,n=this.props.title||l[e]||"An unexpected error has occurred";return a.default.createElement("div",{style:u.error},a.default.createElement(o.default,null,a.default.createElement("title",null,e?e+": "+n:"Application error: a client-side exception has occurred")),a.default.createElement("div",{style:u.desc},a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?a.default.createElement("h1",{className:"next-error-h1",style:u.h1},e):null,a.default.createElement("div",{style:u.wrap},a.default.createElement("h2",{style:u.h2},this.props.title||e?n:a.default.createElement(a.default.Fragment,null,"Application error: a client-side exception has occurred (see the browser console for more information)"),"."))))}}s.displayName="ErrorPage",s.getInitialProps=i,s.origGetInitialProps=i,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},633:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});const r=n(9758)._(n(8025)).default.createContext({})},5730:function(e,t){"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},2165:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{CacheStates:function(){return a},AppRouterContext:function(){return o},LayoutRouterContext:function(){return l},GlobalLayoutRouterContext:function(){return i},TemplateContext:function(){return u}});const r=n(9758)._(n(8025));var a;!function(e){e.LAZY_INITIALIZED="LAZYINITIALIZED",e.DATA_FETCH="DATAFETCH",e.READY="READY"}(a||(a={}));const o=r.default.createContext(null),l=r.default.createContext(null),i=r.default.createContext(null),u=r.default.createContext(null)},7125:function(e,t){"use strict";function n(e){let t=0;for(let n=0;n>>13,t=Math.imul(t,1540483477)}return t>>>0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=.01);const n=new r(e.length,t);for(const r of e)n.add(r);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach((e=>{this.bitArray[e]=1}))}contains(e){return this.getHashValues(e).every((e=>this.bitArray[e]))}getHashValues(e){const t=[];for(let r=1;r<=this.numHashes;r++){const a=n(""+e+r)%this.numBits;t.push(a)}return t}constructor(e,t){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-e*Math.log(t)/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=new Array(this.numBits).fill(0)}}},8685:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return a}});const n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function a(e){return n.test(e)?e.replace(r,"\\$&"):e}},1625:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return r}});const r=n(9758)._(n(8025)).default.createContext({})},8191:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultHead:function(){return s},default:function(){return p}});const r=n(9758),a=n(8640)._(n(8025)),o=r._(n(4574)),l=n(633),i=n(1625),u=n(5730);n(5774);function s(e){void 0===e&&(e=!1);const t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function c(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce(((e,t)=>"string"===typeof t||"number"===typeof t?e:e.concat(t)),[])):e.concat(t)}const f=["name","httpEquiv","charSet","itemProp"];function d(e,t){const{inAmpMode:n}=t;return e.reduce(c,[]).reverse().concat(s(n).reverse()).filter(function(){const e=new Set,t=new Set,n=new Set,r={};return a=>{let o=!0,l=!1;if(a.key&&"number"!==typeof a.key&&a.key.indexOf("$")>0){l=!0;const t=a.key.slice(a.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(a.type){case"title":case"base":t.has(a.type)?o=!1:t.add(a.type);break;case"meta":for(let e=0,t=f.length;e{const r=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((t=>e.props.href.startsWith(t)))){const t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:r})}))}const p=function(e){let{children:t}=e;const n=(0,a.useContext)(l.AmpStateContext),r=(0,a.useContext)(i.HeadManagerContext);return a.default.createElement(o.default,{reduceComponentsToState:d,headManager:r,inAmpMode:(0,u.isInAmpMode)(n)},t)};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6079:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{SearchParamsContext:function(){return a},PathnameContext:function(){return o}});const r=n(8025),a=(0,r.createContext)(null),o=(0,r.createContext)(null)},3163:function(e,t){"use strict";function n(e,t){let n;const r=e.split("/");return(t||[]).some((t=>!(!r[1]||r[1].toLowerCase()!==t.toLowerCase())&&(n=t,r.splice(1,1),e=r.join("/")||"/",!0))),{pathname:e,detectedLocale:n}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}})},1111:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});const r=n(9758)._(n(8025)),a=n(9865),o=r.default.createContext(a.imageConfigDefault)},9865:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});const n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},3093:function(e,t){"use strict";function n(e){return Object.prototype.toString.call(e)}function r(e){if("[object Object]"!==n(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getObjectClassLabel:function(){return n},isPlainObject:function(){return r}})},9629:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NEXT_DYNAMIC_NO_SSR_CODE",{enumerable:!0,get:function(){return n}});const n="NEXT_DYNAMIC_NO_SSR_CODE"},4512:function(e,t){"use strict";function n(){const e=Object.create(null);return{on(t,n){(e[t]||(e[t]=[])).push(n)},off(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{e(...r)}))}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},3669:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return o}});const r=n(1147),a=n(5687);function o(e){let t=(0,a.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,r.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},1531:function(e,t){"use strict";function n(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},5687:function(e,t){"use strict";function n(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return n}})},1931:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});const r=n(9758)._(n(8025)).default.createContext(null)},9424:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{adaptForAppRouterInstance:function(){return l},adaptForSearchParams:function(){return i},PathnameContextProviderAdapter:function(){return u}});const r=n(8640)._(n(8025)),a=n(6079),o=n(1147);function l(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},push(t,n){let{scroll:r}=void 0===n?{}:n;e.push(t,void 0,{scroll:r})},replace(t,n){let{scroll:r}=void 0===n?{}:n;e.replace(t,void 0,{scroll:r})},prefetch(t){e.prefetch(t)}}}function i(e){return e.isReady&&e.query?function(e){const t=new URLSearchParams;for(const[n,r]of Object.entries(e))if(Array.isArray(r))for(const e of r)t.append(n,e);else"undefined"!==typeof r&&t.append(n,r);return t}(e.query):new URLSearchParams}function u(e){let{children:t,router:n,...l}=e;const i=(0,r.useRef)(l.isAutoExport),u=(0,r.useMemo)((()=>{const e=i.current;if(e&&(i.current=!1),(0,o.isDynamicRoute)(n.pathname)){if(n.isFallback)return null;if(e&&!n.isReady)return null}let t;try{t=new URL(n.asPath,"http://f")}catch(r){return"/"}return t.pathname}),[n.asPath,n.isFallback,n.isReady,n.pathname]);return r.default.createElement(a.PathnameContext.Provider,{value:u},t)}},8459:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return Q},matchesMiddleware:function(){return I},createKey:function(){return q}});const r=n(9758),a=n(8640),o=n(4457),l=n(1795),i=n(9279),u=a._(n(267)),s=n(3669),c=n(3163),f=r._(n(4512)),d=n(7052),p=n(5449),h=n(2738),m=(n(2153),n(4275)),g=n(2686),y=n(8408),v=(n(6849),n(758)),b=n(395),w=n(7047),_=n(803),S=n(5706),P=n(6613),k=n(6481),E=n(5131),x=n(9770),C=n(7572),O=n(451),R=n(2721),N=n(9072),M=n(3367),j=n(5104),L=n(7973);function T(){return Object.assign(new Error("Route Cancelled"),{cancelled:!0})}async function I(e){const t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;const{pathname:n}=(0,v.parsePath)(e.asPath),r=(0,P.hasBasePath)(n)?(0,_.removeBasePath)(n):n,a=(0,S.addBasePath)((0,b.addLocale)(r,e.locale));return t.some((e=>new RegExp(e.regexp).test(a)))}function A(e){const t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function z(e,t,n){let[r,a]=(0,M.resolveHref)(e,t,!0);const o=(0,d.getLocationOrigin)(),l=r.startsWith(o),i=a&&a.startsWith(o);r=A(r),a=a?A(a):a;const u=l?r:(0,S.addBasePath)(r),s=n?A((0,M.resolveHref)(e,n)):a||r;return{url:u,as:i?s:(0,S.addBasePath)(s)}}function D(e,t){const n=(0,o.removeTrailingSlash)((0,s.denormalizePagePath)(e));return"/404"===n||"/_error"===n?e:(t.includes(n)||t.some((t=>{if((0,p.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(n))return e=t,!0})),(0,o.removeTrailingSlash)(e))}async function F(e){if(!(await I(e))||!e.fetchData)return null;try{const t=await e.fetchData(),n=await function(e,t,n){const r={basePath:n.router.basePath,i18n:{locales:n.router.locales},trailingSlash:Boolean(!1)},a=t.headers.get("x-nextjs-rewrite");let i=a||t.headers.get("x-nextjs-matched-path");const u=t.headers.get("x-matched-path");if(!u||i||u.includes("__next_data_catchall")||u.includes("/_error")||u.includes("/404")||(i=u),i){if(i.startsWith("/")){const t=(0,h.parseRelativeUrl)(i),u=(0,E.getNextPathnameInfo)(t.pathname,{nextConfig:r,parseData:!0});let s=(0,o.removeTrailingSlash)(u.pathname);return Promise.all([n.router.pageLoader.getPageList(),(0,l.getClientBuildManifest)()]).then((o=>{let[l,{__rewrites:i}]=o,f=(0,b.addLocale)(u.pathname,u.locale);if((0,p.isDynamicRoute)(f)||!a&&l.includes((0,c.normalizeLocalePath)((0,_.removeBasePath)(f),n.router.locales).pathname)){const n=(0,E.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:r,parseData:!0});f=(0,S.addBasePath)(n.pathname),t.pathname=f}if(!l.includes(s)){const e=D(s,l);e!==s&&(s=e)}const d=l.includes(s)?s:D((0,c.normalizeLocalePath)((0,_.removeBasePath)(t.pathname),n.router.locales).pathname,l);if((0,p.isDynamicRoute)(d)){const e=(0,m.getRouteMatcher)((0,g.getRouteRegex)(d))(f);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}}))}const t=(0,v.parsePath)(e),u=(0,x.formatNextPathnameInfo)({...(0,E.getNextPathnameInfo)(t.pathname,{nextConfig:r,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:""+u+t.query+t.hash})}const s=t.headers.get("x-nextjs-redirect");if(s){if(s.startsWith("/")){const e=(0,v.parsePath)(s),t=(0,x.formatNextPathnameInfo)({...(0,E.getNextPathnameInfo)(e.pathname,{nextConfig:r,parseData:!0}),defaultLocale:n.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:s})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:n}}catch(t){return null}}const U=Symbol("SSG_DATA_NOT_FOUND");function B(e,t,n){return fetch(e,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then((r=>!r.ok&&t>1&&r.status>=500?B(e,t-1,n):r))}function H(e){try{return JSON.parse(e)}catch(t){return null}}function W(e){let{dataHref:t,inflightCache:n,isPrefetch:r,hasMiddleware:a,isServerRender:o,parseJSON:i,persistCache:u,isBackground:s,unstable_skipClientCache:c}=e;const{href:f}=new URL(t,window.location.href);var d;const p=e=>B(t,o?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&a?{"x-middleware-prefetch":"1"}:{}),method:null!=(d=null==e?void 0:e.method)?d:"GET"}).then((n=>n.ok&&"HEAD"===(null==e?void 0:e.method)?{dataHref:t,response:n,text:"",json:{},cacheKey:f}:n.text().then((e=>{if(!n.ok){if(a&&[301,302,307,308].includes(n.status))return{dataHref:t,response:n,text:e,json:{},cacheKey:f};var r;if(404===n.status)if(null==(r=H(e))?void 0:r.notFound)return{dataHref:t,json:{notFound:U},response:n,text:e,cacheKey:f};const i=new Error("Failed to load static props");throw o||(0,l.markAssetError)(i),i}return{dataHref:t,json:i?H(e):null,response:n,text:e,cacheKey:f}})))).then((e=>(u&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[f],e))).catch((e=>{throw c||delete n[f],"Failed to fetch"!==e.message&&"NetworkError when attempting to fetch resource."!==e.message&&"Load failed"!==e.message||(0,l.markAssetError)(e),e}));return c&&u?p({}).then((e=>(n[f]=Promise.resolve(e),e))):void 0!==n[f]?n[f]:n[f]=p(s?{method:"HEAD"}:{})}function q(){return Math.random().toString(36).slice(2,10)}function V(e){let{url:t,router:n}=e;if(t===(0,S.addBasePath)((0,b.addLocale)(n.asPath,n.locale)))throw new Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}const $=e=>{let{route:t,router:n}=e,r=!1;const a=n.clc=()=>{r=!0};return()=>{if(r){const e=new Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}a===n.clc&&(n.clc=null)}};class Q{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,n){return void 0===n&&(n={}),({url:e,as:t}=z(this,e,t)),this.change("pushState",e,t,n)}replace(e,t,n){return void 0===n&&(n={}),({url:e,as:t}=z(this,e,t)),this.change("replaceState",e,t,n)}async _bfl(e,t,n,r){{let u=!1,s=!1;for(const c of[e,t])if(c){const t=(0,o.removeTrailingSlash)(new URL(c,"http://n").pathname),f=(0,S.addBasePath)((0,b.addLocale)(t,n||this.locale));if(t!==(0,o.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var a,l;u=u||!!(null==(a=this._bfl_s)?void 0:a.contains(t))||!!(null==(l=this._bfl_s)?void 0:l.contains(f));for(const e of[t,f]){const t=e.split("/");for(let e=0;!s&&e{})))}}}return!1}async change(e,t,n,r,a){var s;if(!(0,O.isLocalURL)(t))return V({url:t,router:this}),!1;const c=1===r._h;c||r.shallow||await this._bfl(n,void 0,r.locale);let f=c||r._shouldResolveHref||(0,v.parsePath)(t).pathname===(0,v.parsePath)(n).pathname;const k={...this.state},E=!0!==this.isReady;this.isReady=!0;const x=this.isSsr;if(c||(this.isSsr=!1),c&&this.clc)return!1;const R=k.locale;d.ST&&performance.mark("routeChange");const{shallow:M=!1,scroll:L=!0}=r,A={shallow:M};this._inFlightRoute&&this.clc&&(x||Q.events.emit("routeChangeError",T(),this._inFlightRoute,A),this.clc(),this.clc=null),n=(0,S.addBasePath)((0,b.addLocale)((0,P.hasBasePath)(n)?(0,_.removeBasePath)(n):n,r.locale,this.defaultLocale));const F=(0,w.removeLocale)((0,P.hasBasePath)(n)?(0,_.removeBasePath)(n):n,k.locale);this._inFlightRoute=n;const B=R!==k.locale;if(!c&&this.onlyAHashChange(F)&&!B){k.asPath=F,Q.events.emit("hashChangeStart",n,A),this.changeState(e,t,n,{...r,scroll:!1}),L&&this.scrollToHash(F);try{await this.set(k,this.components[k.route],null)}catch(ce){throw(0,u.default)(ce)&&ce.cancelled&&Q.events.emit("routeChangeError",ce,F,A),ce}return Q.events.emit("hashChangeComplete",n,A),!0}let H,W,q=(0,h.parseRelativeUrl)(t),{pathname:$,query:K}=q;if(null==(s=this.components[$])?void 0:s.__appRouter)return V({url:n,router:this}),new Promise((()=>{}));try{[H,{__rewrites:W}]=await Promise.all([this.pageLoader.getPageList(),(0,l.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(ce){return V({url:n,router:this}),!1}this.urlIsNew(F)||B||(e="replaceState");let G=n;$=$?(0,o.removeTrailingSlash)((0,_.removeBasePath)($)):$;let X=(0,o.removeTrailingSlash)($);const Y=n.startsWith("/")&&(0,h.parseRelativeUrl)(n).pathname,J=!(!Y||X===Y||(0,p.isDynamicRoute)(X)&&(0,m.getRouteMatcher)((0,g.getRouteRegex)(X))(Y)),Z=!r.shallow&&await I({asPath:n,locale:k.locale,router:this});if(c&&Z&&(f=!1),f&&"/_error"!==$&&(r._shouldResolveHref=!0,q.pathname=D($,H),q.pathname!==$&&($=q.pathname,q.pathname=(0,S.addBasePath)($),Z||(t=(0,y.formatWithValidation)(q)))),!(0,O.isLocalURL)(n))return V({url:n,router:this}),!1;G=(0,w.removeLocale)((0,_.removeBasePath)(G),k.locale),X=(0,o.removeTrailingSlash)($);let ee=!1;if((0,p.isDynamicRoute)(X)){const e=(0,h.parseRelativeUrl)(G),r=e.pathname,a=(0,g.getRouteRegex)(X);ee=(0,m.getRouteMatcher)(a)(r);const o=X===r,l=o?(0,j.interpolateAs)(X,r,K):{};if(!ee||o&&!l.result){const e=Object.keys(a.groups).filter((e=>!K[e]&&!a.groups[e].optional));if(e.length>0&&!Z)throw new Error((o?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+r+") is incompatible with the `href` value ("+X+"). ")+"Read more: https://nextjs.org/docs/messages/"+(o?"href-interpolation-failed":"incompatible-href-as"))}else o?n=(0,y.formatWithValidation)(Object.assign({},e,{pathname:l.result,query:(0,N.omit)(K,l.params)})):Object.assign(K,ee)}c||Q.events.emit("routeChangeStart",n,A);const te="/404"===this.pathname||"/_error"===this.pathname;try{var ne,re,ae;let o=await this.getRouteInfo({route:X,pathname:$,query:K,as:n,resolvedAs:G,routeProps:A,locale:k.locale,isPreview:k.isPreview,hasMiddleware:Z,unstable_skipClientCache:r.unstable_skipClientCache,isQueryUpdating:c&&!this.isFallback,isMiddlewareRewrite:J});if(c||r.shallow||await this._bfl(n,"resolvedAs"in o?o.resolvedAs:void 0,k.locale),"route"in o&&Z){$=o.route||X,X=$,A.shallow||(K=Object.assign({},o.query||{},K));const e=(0,P.hasBasePath)(q.pathname)?(0,_.removeBasePath)(q.pathname):q.pathname;if(ee&&$!==e&&Object.keys(ee).forEach((e=>{ee&&K[e]===ee[e]&&delete K[e]})),(0,p.isDynamicRoute)($)){let e=!A.shallow&&o.resolvedAs?o.resolvedAs:(0,S.addBasePath)((0,b.addLocale)(new URL(n,location.href).pathname,k.locale),!0);(0,P.hasBasePath)(e)&&(e=(0,_.removeBasePath)(e));const t=(0,g.getRouteRegex)($),r=(0,m.getRouteMatcher)(t)(new URL(e,location.href).pathname);r&&Object.assign(K,r)}}if("type"in o)return"redirect-internal"===o.type?this.change(e,o.newUrl,o.newAs,r):(V({url:o.destination,router:this}),new Promise((()=>{})));const l=o.Component;if(l&&l.unstable_scriptLoader){[].concat(l.unstable_scriptLoader()).forEach((e=>{(0,i.handleClientScriptLoad)(e.props)}))}if((o.__N_SSG||o.__N_SSP)&&o.props){if(o.props.pageProps&&o.props.pageProps.__N_REDIRECT){r.locale=!1;const t=o.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==o.props.pageProps.__N_REDIRECT_BASE_PATH){const n=(0,h.parseRelativeUrl)(t);n.pathname=D(n.pathname,H);const{url:a,as:o}=z(this,t,t);return this.change(e,a,o,r)}return V({url:t,router:this}),new Promise((()=>{}))}if(k.isPreview=!!o.props.__N_PREVIEW,o.props.notFound===U){let e;try{await this.fetchComponent("/404"),e="/404"}catch(fe){e="/_error"}if(o=await this.getRouteInfo({route:e,pathname:e,query:K,as:n,resolvedAs:G,routeProps:{shallow:!1},locale:k.locale,isPreview:k.isPreview,isNotFound:!0}),"type"in o)throw new Error("Unexpected middleware effect on /404")}}var oe;c&&"/_error"===this.pathname&&500===(null==(ne=self.__NEXT_DATA__.props)||null==(re=ne.pageProps)?void 0:re.statusCode)&&(null==(ae=o.props)?void 0:ae.pageProps)&&(o.props.pageProps.statusCode=500);const s=r.shallow&&k.route===(null!=(oe=o.route)?oe:X);var le;const f=null!=(le=r.scroll)?le:!c&&!s,d=f?{x:0,y:0}:null,y=null!=a?a:d,v={...k,route:X,pathname:$,query:K,asPath:F,isFallback:!1};if(c&&te){var ie,ue,se;if(o=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:K,as:n,resolvedAs:G,routeProps:{shallow:!1},locale:k.locale,isPreview:k.isPreview,isQueryUpdating:c&&!this.isFallback}),"type"in o)throw new Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&500===(null==(ie=self.__NEXT_DATA__.props)||null==(ue=ie.pageProps)?void 0:ue.statusCode)&&(null==(se=o.props)?void 0:se.pageProps)&&(o.props.pageProps.statusCode=500);try{await this.set(v,o,y)}catch(ce){throw(0,u.default)(ce)&&ce.cancelled&&Q.events.emit("routeChangeError",ce,F,A),ce}return!0}Q.events.emit("beforeHistoryChange",n,A),this.changeState(e,t,n,r);if(!(c&&!y&&!E&&!B&&(0,C.compareRouterStates)(v,this.state))){try{await this.set(v,o,y)}catch(de){if(!de.cancelled)throw de;o.error=o.error||de}if(o.error)throw c||Q.events.emit("routeChangeError",o.error,F,A),o.error;0,c||Q.events.emit("routeChangeComplete",n,A);const e=/#.+$/;f&&e.test(n)&&this.scrollToHash(n)}return!0}catch(ce){if((0,u.default)(ce)&&ce.cancelled)return!1;throw ce}}changeState(e,t,n,r){void 0===r&&(r={}),"pushState"===e&&(0,d.getURL)()===n||(this._shallow=r.shallow,window.history[e]({url:t,as:n,options:r,__N:!0,key:this._key="pushState"!==e?this._key:q()},"",n))}async handleRouteInfoError(e,t,n,r,a,o){if(console.error(e),e.cancelled)throw e;if((0,l.isAssetError)(e)||o)throw Q.events.emit("routeChangeError",e,r,a),V({url:r,router:this}),T();try{let r;const{page:a,styleSheets:o}=await this.fetchComponent("/_error"),l={props:r,Component:a,styleSheets:o,err:e,error:e};if(!l.props)try{l.props=await this.getInitialProps(a,{err:e,pathname:t,query:n})}catch(i){console.error("Error in error page `getInitialProps`: ",i),l.props={}}return l}catch(s){return this.handleRouteInfoError((0,u.default)(s)?s:new Error(s+""),t,n,r,a,!0)}}async getRouteInfo(e){let{route:t,pathname:n,query:r,as:a,resolvedAs:l,routeProps:i,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:m,isNotFound:g}=e,v=t;try{var b,w,S,P;const e=$({route:v,router:this});let t=this.components[v];if(i.shallow&&t&&this.route===v)return t;f&&(t=void 0);let u=t&&!("initial"in t)?t:void 0;const E=h,x={dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:n,query:r}),skipInterpolation:!0,asPath:g?"/404":l,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:E?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:E};let C=h&&!m?null:await F({fetchData:()=>W(x),asPath:g?"/404":l,locale:s,router:this}).catch((e=>{if(h)return null;throw e}));if(!C||"/_error"!==n&&"/404"!==n||(C.effect=void 0),h&&(C?C.json=self.__NEXT_DATA__.props:C={json:self.__NEXT_DATA__.props}),e(),"redirect-internal"===(null==C||null==(b=C.effect)?void 0:b.type)||"redirect-external"===(null==C||null==(w=C.effect)?void 0:w.type))return C.effect;if("rewrite"===(null==C||null==(S=C.effect)?void 0:S.type)){const e=(0,o.removeTrailingSlash)(C.effect.resolvedHref),a=await this.pageLoader.getPageList();if((!h||a.includes(e))&&(v=e,n=C.effect.resolvedHref,r={...r,...C.effect.parsedAs.query},l=(0,_.removeBasePath)((0,c.normalizeLocalePath)(C.effect.parsedAs.pathname,this.locales).pathname),t=this.components[v],i.shallow&&t&&this.route===v&&!f))return{...t,route:v}}if((0,k.isAPIRoute)(v))return V({url:a,router:this}),new Promise((()=>{}));const O=u||await this.fetchComponent(v).then((e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})));0;const R=null==C||null==(P=C.response)?void 0:P.headers.get("x-middleware-skip"),N=O.__N_SSG||O.__N_SSP;R&&(null==C?void 0:C.dataHref)&&delete this.sdc[C.dataHref];const{props:M,cacheKey:j}=await this._getData((async()=>{if(N){if((null==C?void 0:C.json)&&!R)return{cacheKey:C.cacheKey,props:C.json};const e=(null==C?void 0:C.dataHref)?C.dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:n,query:r}),asPath:l,locale:s}),t=await W({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:R?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(O.Component,{pathname:n,query:r,asPath:a,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}}));return O.__N_SSP&&x.dataHref&&j&&delete this.sdc[j],this.isPreview||!O.__N_SSG||h||W(Object.assign({},x,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch((()=>{})),M.pageProps=Object.assign({},M.pageProps),O.props=M,O.route=v,O.query=r,O.resolvedAs=l,this.components[v]=O,O}catch(E){return this.handleRouteInfoError((0,u.getProperError)(E),n,r,a,i)}}set(e,t,n){return this.state=e,this.sub(t,this.components["/_app"].Component,n)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;const[t,n]=this.asPath.split("#"),[r,a]=e.split("#");return!(!a||t!==r||n!==a)||t===r&&n!==a}scrollToHash(e){const[,t=""]=e.split("#");(0,L.handleSmoothScroll)((()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);const e=decodeURIComponent(t),n=document.getElementById(e);if(n)return void n.scrollIntoView();const r=document.getElementsByName(e)[0];r&&r.scrollIntoView()}),{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,n){if(void 0===t&&(t=e),void 0===n&&(n={}),(0,R.isBot)(window.navigator.userAgent))return;let r=(0,h.parseRelativeUrl)(e);const a=r.pathname;let{pathname:l,query:i}=r;const u=l;const s=await this.pageLoader.getPageList();let c=t;const f="undefined"!==typeof n.locale?n.locale||void 0:this.locale,d=await I({asPath:t,locale:f,router:this});r.pathname=D(r.pathname,s),(0,p.isDynamicRoute)(r.pathname)&&(l=r.pathname,r.pathname=l,Object.assign(i,(0,m.getRouteMatcher)((0,g.getRouteRegex)(r.pathname))((0,v.parsePath)(t).pathname)||{}),d||(e=(0,y.formatWithValidation)(r)));const b=await F({fetchData:()=>W({dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:u,query:i}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if("rewrite"===(null==b?void 0:b.effect.type)&&(r.pathname=b.effect.resolvedHref,l=b.effect.resolvedHref,i={...i,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,y.formatWithValidation)(r)),"redirect-external"===(null==b?void 0:b.effect.type))return;const w=(0,o.removeTrailingSlash)(l);await this._bfl(t,c,n.locale,!0)&&(this.components[a]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(w).then((t=>!!t&&W({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:n.unstable_skipClientCache||n.priority&&!0}).then((()=>!1)).catch((()=>!1)))),this.pageLoader[n.priority?"loadPage":"prefetch"](w)])}async fetchComponent(e){const t=$({route:e,router:this});try{const n=await this.pageLoader.loadPage(e);return t(),n}catch(n){throw t(),n}}_getData(e){let t=!1;const n=()=>{t=!0};return this.clc=n,e().then((e=>{if(n===this.clc&&(this.clc=null),t){const e=new Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e}))}_getFlightData(e){return W({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then((e=>{let{text:t}=e;return{data:t}}))}getInitialProps(e,t){const{Component:n}=this.components["/_app"],r=this._wrapApp(n);return t.AppTree=r,(0,d.loadGetInitialProps)(n,{AppTree:r,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:a,pageLoader:l,App:i,wrapApp:u,Component:s,err:c,subscription:f,isFallback:m,locale:g,locales:v,defaultLocale:b,domainLocales:w,isPreview:_}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=q(),this.onPopState=e=>{const{isFirstPopStateEvent:t}=this;this.isFirstPopStateEvent=!1;const n=e.state;if(!n){const{pathname:e,query:t}=this;return void this.changeState("replaceState",(0,y.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),(0,d.getURL)())}if(n.__NA)return void window.location.reload();if(!n.__N)return;if(t&&this.locale===n.options.locale&&n.as===this.asPath)return;const{url:r,as:a,options:o,key:l}=n;this._key=l;const{pathname:i}=(0,h.parseRelativeUrl)(r);this.isSsr&&a===(0,S.addBasePath)(this.asPath)&&i===(0,S.addBasePath)(this.pathname)||this._bps&&!this._bps(n)||this.change("replaceState",r,a,Object.assign({},o,{shallow:o.shallow&&this._shallow,locale:o.locale||this.defaultLocale,_h:0}),undefined)};const P=(0,o.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[P]={Component:s,initial:!0,props:a,err:c,__N_SSG:a&&a.__N_SSG,__N_SSP:a&&a.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]};{const{BloomFilter:e}=n(7125),t={numItems:0,errorRate:.01,numBits:0,numHashes:null,bitArray:[]},r={numItems:0,errorRate:.01,numBits:0,numHashes:null,bitArray:[]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==r?void 0:r.numHashes)&&(this._bfl_d=new e(r.numItems,r.errorRate),this._bfl_d.import(r))}this.events=Q.events,this.pageLoader=l;const k=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="/staticspaceiframe/matthoffner/open-codetree/out",this.sub=f,this.clc=null,this._wrapApp=u,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!k&&!self.location.search),this.state={route:P,pathname:e,query:t,asPath:k?e:r,isPreview:!!_,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){const n={locale:g},a=(0,d.getURL)();this._initialMatchesMiddlewarePromise=I({router:this,locale:g,asPath:a}).then((o=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",o?a:(0,y.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),a,n),o)))}window.addEventListener("popstate",this.onPopState)}}Q.events=(0,f.default)()},3121:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}});const r=n(5967),a=n(754);function o(e,t,n,o){if(!t||t===n)return e;const l=e.toLowerCase();if(!o){if((0,a.pathHasPrefix)(l,"/api"))return e;if((0,a.pathHasPrefix)(l,"/"+t.toLowerCase()))return e}return(0,r.addPathPrefix)(e,"/"+t)}},5967:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return a}});const r=n(758);function a(e,t){if(!e.startsWith("/")||!t)return e;const{pathname:n,query:a,hash:o}=(0,r.parsePath)(e);return""+t+n+a+o}},3264:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return a}});const r=n(758);function a(e,t){if(!e.startsWith("/")||!t)return e;const{pathname:n,query:a,hash:o}=(0,r.parsePath)(e);return""+n+t+a+o}},4804:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return a},normalizeRscPath:function(){return o}});const r=n(1531);function a(e){return(0,r.ensureLeadingSlash)(e.split("/").reduce(((e,t,n,r)=>t?"("===t[0]&&t.endsWith(")")||"@"===t[0]?e:"page"!==t&&"route"!==t||n!==r.length-1?e+"/"+t:e:e),""))}function o(e,t){return t?e.replace(/\.rsc($|\?)/,"$1"):e}},7572:function(e,t){"use strict";function n(e,t){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=n.length;r--;){const a=n[r];if("query"===a){const n=Object.keys(e.query);if(n.length!==Object.keys(t.query).length)return!1;for(let r=n.length;r--;){const a=n[r];if(!t.query.hasOwnProperty(a)||e.query[a]!==t.query[a])return!1}}else if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return n}})},9770:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return i}});const r=n(4457),a=n(5967),o=n(3264),l=n(3121);function i(e){let t=(0,l.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return!e.buildId&&e.trailingSlash||(t=(0,r.removeTrailingSlash)(t)),e.buildId&&(t=(0,o.addPathSuffix)((0,a.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,a.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,o.addPathSuffix)(t,"/"):(0,r.removeTrailingSlash)(t)}},8408:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return o},urlObjectKeys:function(){return l},formatWithValidation:function(){return i}});const r=n(8640)._(n(3133)),a=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,o=e.protocol||"",l=e.pathname||"",i=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:n&&(s=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(s+=":"+e.port)),u&&"object"===typeof u&&(u=String(r.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||a.test(o))&&!1!==s?(s="//"+(s||""),l&&"/"!==l[0]&&(l="/"+l)):s||(s=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),l=l.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),""+o+s+l+c+i}const l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function i(e){return o(e)}},4346:function(e,t){"use strict";function n(e,t){void 0===t&&(t="");return("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:""+e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},5131:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return l}});const r=n(3163),a=n(7357),o=n(754);function l(e,t){var n;const{basePath:l,i18n:i,trailingSlash:u}=null!=(n=t.nextConfig)?n:{},s={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):u};if(l&&(0,o.pathHasPrefix)(s.pathname,l)&&(s.pathname=(0,a.removePathPrefix)(s.pathname,l),s.basePath=l),!0===t.parseData&&s.pathname.startsWith("/_next/data/")&&s.pathname.endsWith(".json")){const e=s.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),t=e[0];s.pathname="index"!==e[1]?"/"+e.slice(1).join("/"):"/",s.buildId=t}if(t.i18nProvider){const e=t.i18nProvider.analyze(s.pathname);var c;s.locale=e.detectedLocale,s.pathname=null!=(c=e.pathname)?c:s.pathname}else if(i){const e=(0,r.normalizeLocalePath)(s.pathname,i.locales);var f;s.locale=e.detectedLocale,s.pathname=null!=(f=e.pathname)?f:s.pathname}return s}},7973:function(e,t){"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange)return void e();const n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return n}})},1147:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return a.isDynamicRoute}});const r=n(2844),a=n(5449)},5104:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});const r=n(4275),a=n(2686);function o(e,t,n){let o="";const l=(0,a.getRouteRegex)(e),i=l.groups,u=(t!==e?(0,r.getRouteMatcher)(l)(t):"")||n;o=e;const s=Object.keys(i);return s.every((e=>{let t=u[e]||"";const{repeat:n,optional:r}=i[e];let a="["+(n?"...":"")+e+"]";return r&&(a=(t?"":"/")+"["+a+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in u)&&(o=o.replace(a,n?t.map((e=>encodeURIComponent(e))).join("/"):encodeURIComponent(t))||"/")}))||(o=""),{params:s,result:o}}},2721:function(e,t){"use strict";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}})},5449:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const n=/\/\[[^/]+?\](?=\/|$)/;function r(e){return n.test(e)}},451:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});const r=n(7052),a=n(6613);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{const t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,a.hasBasePath)(n.pathname)}catch(t){return!1}}},9072:function(e,t){"use strict";function n(e,t){const n={};return Object.keys(e).forEach((r=>{t.includes(r)||(n[r]=e[r])})),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},758:function(e,t){"use strict";function n(e){const t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return n}})},2738:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return o}});const r=n(7052),a=n(3133);function o(e,t){const n=new URL((0,r.getLocationOrigin)()),o=t?new URL(t,n):e.startsWith(".")?new URL(window.location.href):n,{pathname:l,searchParams:i,search:u,hash:s,href:c,origin:f}=new URL(e,o);if(f!==n.origin)throw new Error("invariant: invalid relative URL, router received "+e);return{pathname:l,query:(0,a.searchParamsToUrlQuery)(i),search:u,hash:s,href:c.slice(n.origin.length)}}},754:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return a}});const r=n(758);function a(e,t){if("string"!==typeof e)return!1;const{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+"/")}},3133:function(e,t){"use strict";function n(e){const t={};return e.forEach(((e,n)=>{"undefined"===typeof t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]})),t}function r(e){return"string"===typeof e||"number"===typeof e&&!isNaN(e)||"boolean"===typeof e?String(e):""}function a(e){const t=new URLSearchParams;return Object.entries(e).forEach((e=>{let[n,a]=e;Array.isArray(a)?a.forEach((e=>t.append(n,r(e)))):t.set(n,r(a))})),t}function o(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach((t=>e.delete(t))),t.forEach(((t,n)=>e.append(n,t)))})),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return a},assign:function(){return o}})},7357:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return a}});const r=n(754);function a(e,t){if(!(0,r.pathHasPrefix)(e,t))return e;const n=e.slice(t.length);return n.startsWith("/")?n:"/"+n}},4457:function(e,t){"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},3367:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});const r=n(3133),a=n(8408),o=n(9072),l=n(7052),i=n(5381),u=n(451),s=n(5449),c=n(5104);function f(e,t,n){let f,d="string"===typeof t?t:(0,a.formatWithValidation)(t);const p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?")[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const t=(0,l.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(d))return n?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(m){f=new URL("/","http://n")}try{const e=new URL(d,f);e.pathname=(0,i.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&n){const n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:l,params:i}=(0,c.interpolateAs)(e.pathname,e.pathname,n);l&&(t=(0,a.formatWithValidation)({pathname:l,hash:e.hash,query:(0,o.omit)(n,i)}))}const l=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[l,t||l]:l}catch(m){return n?[d]:d}}},4275:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return a}});const r=n(7052);function a(e){let{re:t,groups:n}=e;return e=>{const a=t.exec(e);if(!a)return!1;const o=e=>{try{return decodeURIComponent(e)}catch(t){throw new r.DecodeError("failed to decode param")}},l={};return Object.keys(n).forEach((e=>{const t=n[e],r=a[t.pos];void 0!==r&&(l[e]=~r.indexOf("/")?r.split("/").map((e=>o(e))):t.repeat?[o(r)]:o(r))})),l}}},2686:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return d}});const r=n(4856),a=n(8685),o=n(4457);function l(e){const t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));const n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function i(e){const t=(0,o.removeTrailingSlash)(e).slice(1).split("/"),n={};let i=1;return{parameterizedRoute:t.map((e=>{const t=r.INTERCEPTION_ROUTE_MARKERS.find((t=>e.startsWith(t))),o=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&o){const{key:e,optional:r,repeat:u}=l(o[1]);return n[e]={pos:i++,repeat:u,optional:r},"/"+(0,a.escapeStringRegexp)(t)+"([^/]+?)"}if(o){const{key:e,repeat:t,optional:r}=l(o[1]);return n[e]={pos:i++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}return"/"+(0,a.escapeStringRegexp)(e)})).join(""),groups:n}}function u(e){const{parameterizedRoute:t,groups:n}=i(e);return{re:new RegExp("^"+t+"(?:/)?$"),groups:n}}function s(e){let{segment:t,routeKeys:n,keyPrefix:r}=e;const a=function(){let e=97,t=1;return()=>{let n="";for(let r=0;r122&&(t++,e=97);return n}}(),{key:o,optional:i,repeat:u}=l(t);let s=o.replace(/\W/g,"");r&&(s=""+r+s);let c=!1;return(0===s.length||s.length>30)&&(c=!0),isNaN(parseInt(s.slice(0,1)))||(c=!0),c&&(s=a()),n[s]=r?""+r+o:""+o,u?i?"(?:/(?<"+s+">.+?))?":"/(?<"+s+">.+?)":"/(?<"+s+">[^/]+?)"}function c(e,t){const n=(0,o.removeTrailingSlash)(e).slice(1).split("/"),l={};return{namedParameterizedRoute:n.map((e=>{const n=r.INTERCEPTION_ROUTE_MARKERS.some((t=>e.startsWith(t))),o=e.match(/\[((?:\[.*\])|.+)\]/);return n&&o?s({segment:o[1],routeKeys:l,keyPrefix:t?"nxtI":void 0}):o?s({segment:o[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,a.escapeStringRegexp)(e)})).join(""),routeKeys:l}}function f(e,t){const n=c(e,t);return{...u(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function d(e,t){const{parameterizedRoute:n}=i(e),{catchAll:r=!0}=t;if("/"===n){return{namedRegex:"^/"+(r?".*":"")+"$"}}const{namedParameterizedRoute:a}=c(e,!1);return{namedRegex:"^"+a+(r?"(?:(/.*)?)":"")+"$"}}},2844:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");const t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);const n=t.map((t=>this.children.get(t)._smoosh(""+e+t+"/"))).reduce(((e,t)=>[...e,...t]),[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){const t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length)return void(this.placeholder=!1);if(r)throw new Error("Catch-all must be the last part of the URL.");let a=e[0];if(a.startsWith("[")&&a.endsWith("]")){let o=a.slice(1,-1),l=!1;if(o.startsWith("[")&&o.endsWith("]")&&(o=o.slice(1,-1),l=!0),o.startsWith("...")&&(o=o.substring(3),r=!0),o.startsWith("[")||o.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+o+"').");if(o.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+o+"').");function i(e,n){if(null!==e&&e!==n)throw new Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach((e=>{if(e===n)throw new Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===a.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')})),t.push(n)}if(r)if(l){if(null!=this.restSlugName)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');i(this.optionalRestSlugName,o),this.optionalRestSlugName=o,a="[[...]]"}else{if(null!=this.optionalRestSlugName)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');i(this.restSlugName,o),this.restSlugName=o,a="[...]"}else{if(l)throw new Error('Optional route parameters are not yet supported ("'+e[0]+'").');i(this.slugName,o),this.slugName=o,a="[]"}}this.children.has(a)||this.children.set(a,new n),this.children.get(a)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){const t=new n;return e.forEach((e=>t.insert(e))),t.smoosh()}},1512:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return r},setConfig:function(){return a}});const r=()=>n;function a(e){n=e}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4574:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});const r=n(8640)._(n(8025)),a=r.useLayoutEffect,o=r.useEffect;function l(e){const{headManager:t,reduceComponentsToState:n}=e;function l(){if(t&&t.mountedInstances){const a=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(a,e))}}return a((()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}})),a((()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)}))),o((()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)}))),null}},7052:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return o},getLocationOrigin:function(){return l},getURL:function(){return i},getDisplayName:function(){return u},isResSent:function(){return s},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return p},DecodeError:function(){return h},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return y},MiddlewareNotFoundError:function(){return v},stringifyError:function(){return b}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,a=new Array(r),o=0;oa.test(e);function l(){const{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function i(){const{href:e}=window.location,t=l();return e.substring(t.length)}function u(e){return"string"===typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){const t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){const n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};const r=await e.getInitialProps(t);if(n&&s(n))return r;if(!r){const t='"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.';throw new Error(t)}return r}const d="undefined"!==typeof performance,p=d&&["mark","measure","getEntriesByName"].every((e=>"function"===typeof performance[e]));class h extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},5774:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},9556:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}};"undefined"!==typeof t&&(t.ab="//");var n={};t.r(n),t.d(n,{getCLS:function(){return P},getFCP:function(){return w},getFID:function(){return N},getINP:function(){return B},getLCP:function(){return W},getTTFB:function(){return V},onCLS:function(){return P},onFCP:function(){return w},onFID:function(){return N},onINP:function(){return B},onLCP:function(){return W},onTTFB:function(){return V}});var r,a,o,l,i,u=-1,s=function(e){addEventListener("pageshow",(function(t){t.persisted&&(u=t.timeStamp,e(t))}),!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},f=function(){var e=c();return e&&e.activationStart||0},d=function(e,t){var n=c(),r="navigate";return u>=0?r="back-forward-cache":n&&(r=document.prerendering||f()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},p=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},h=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},m=function(e,t,n,r){var a,o;return function(l){t.value>=0&&(l||r)&&((o=t.value-(a||0))||void 0===a)&&(a=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},g=-1,y=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},v=function(){h((function(e){var t=e.timeStamp;g=t}),!0)},b=function(){return g<0&&(g=y(),v(),s((function(){setTimeout((function(){g=y(),v()}),0)}))),{get firstHiddenTime(){return g}}},w=function(e,t){t=t||{};var n,r=[1800,3e3],a=b(),o=d("FCP"),l=function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(u&&u.disconnect(),e.startTime-1&&e(t)},o=d("CLS",0),l=0,i=[],u=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=i[0],n=i[i.length-1];l&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(l+=e.value,i.push(e)):(l=e.value,i=[e]),l>o.value&&(o.value=l,o.entries=i,r())}}))},c=p("layout-shift",u);c&&(r=m(a,o,n,t.reportAllChanges),h((function(){u(c.takeRecords()),r(!0)})),s((function(){l=0,S=-1,o=d("CLS",0),r=m(a,o,n,t.reportAllChanges)})))},k={passive:!0,capture:!0},E=new Date,x=function(e,t){r||(r=t,a=e,o=new Date,R(removeEventListener),C())},C=function(){if(a>=0&&a1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){x(e,t),a()},r=function(){a()},a=function(){removeEventListener("pointerup",n,k),removeEventListener("pointercancel",r,k)};addEventListener("pointerup",n,k),addEventListener("pointercancel",r,k)}(t,e):x(t,e)}},R=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,O,k)}))},N=function(e,t){t=t||{};var n,o=[100,300],i=b(),u=d("FID"),c=function(e){e.startTimet.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};F[r.id]=r,D.push(r)}D.sort((function(e,t){return t.latency-e.latency})),D.splice(10).forEach((function(e){delete F[e.id]}))}},B=function(e,t){t=t||{};var n=[200,500];"interactionCount"in performance||i||(i=p("event",T,{type:"event",buffered:!0,durationThreshold:0}));var r,a=d("INP"),o=function(e){e.forEach((function(e){e.interactionId&&U(e),"first-input"===e.entryType&&!D.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&U(e)}));var t,n=(t=Math.min(D.length-1,Math.floor(z()/50)),D[t]);n&&n.latency!==a.value&&(a.value=n.latency,a.entries=n.entries,r())},l=p("event",o,{durationThreshold:t.durationThreshold||40});r=m(e,a,n,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),h((function(){o(l.takeRecords()),a.value<0&&z()>0&&(a.value=0,a.entries=[]),r(!0)})),s((function(){D=[],A=I(),a=d("INP"),r=m(e,a,n,t.reportAllChanges)})))},H={},W=function(e,t){t=t||{};var n,r=[2500,4e3],a=b(),o=d("LCP"),l=function(e){var t=e[e.length-1];if(t){var r=t.startTime-f();rperformance.now())return;r.entries=[o],a(!0),s((function(){r=d("TTFB",0),(a=m(e,r,n,t.reportAllChanges))(!0)}))}}))};e.exports=n}()},6481:function(e,t){"use strict";function n(e){return"/api"===e||Boolean(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return n}})},267:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return a},getProperError:function(){return o}});const r=n(3093);function a(e){return"object"===typeof e&&null!==e&&"name"in e&&"message"in e}function o(e){return a(e)?e:new Error((0,r.isPlainObject)(e)?JSON.stringify(e):e+"")}},4856:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return a},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return l}});const r=n(4804),a=["(..)(..)","(.)","(..)","(...)"];function o(e){return void 0!==e.split("/").find((e=>a.find((t=>e.startsWith(t)))))}function l(e){let t,n,o;for(const r of e.split("/"))if(n=a.find((e=>r.startsWith(e))),n){[t,o]=e.split(n,2);break}if(!t||!n||!o)throw new Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,r.normalizeAppPath)(t),n){case"(.)":o="/"===t?`/${o}`:t+"/"+o;break;case"(..)":if("/"===t)throw new Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);o=t.split("/").slice(0,-1).concat(o).join("/");break;case"(...)":o="/"+o;break;case"(..)(..)":const n=t.split("/");if(n.length<=2)throw new Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);o=n.slice(0,-2).concat(o).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:o}}},3438:function(e,t,n){"use strict";var r=n(8025),a=n(2363);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n