(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[351],{7228:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0;e&&r&&e(r)}))}),t);return u.set(e,r={id:e,observer:o,elements:n}),r}(r),o=n.id,a=n.observer,i=n.elements;return i.set(t,e),a.observe(t),function(){i.delete(t),a.unobserve(t),0===i.size&&(a.disconnect(),u.delete(o))}}(t,(function(t){return t&&h(t)}),{rootMargin:e}))}),[r,e,f]);return(0,o.useEffect)((function(){if(!i&&!f){var t=(0,a.requestIdleCallback)((function(){return h(!0)}));return function(){return(0,a.cancelIdleCallback)(t)}}}),[f]),[p,f]};var o=r(7294),a=r(8391),i="undefined"!==typeof IntersectionObserver;var u=new Map},3168:function(t,e,r){"use strict";var n=r(5318);e.__esModule=!0,e.default=function(t){function e(e){return o.default.createElement(t,Object.assign({router:(0,a.useRouter)()},e))}e.getInitialProps=t.getInitialProps,e.origGetInitialProps=t.origGetInitialProps,!1;return e};var o=n(r(7294)),a=r(2441)},3367:function(t,e,r){"use strict";var n;e.__esModule=!0,e.AmpStateContext=void 0;var o=((n=r(7294))&&n.__esModule?n:{default:n}).default.createContext({});e.AmpStateContext=o},7845:function(t,e,r){"use strict";e.__esModule=!0,e.isInAmpMode=i,e.useAmp=function(){return i(o.default.useContext(a.AmpStateContext))};var n,o=(n=r(7294))&&n.__esModule?n:{default:n},a=r(3367);function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.ampFirst,r=void 0!==e&&e,n=t.hybrid,o=void 0!==n&&n,a=t.hasQuery,i=void 0!==a&&a;return r||o&&i}},4287:function(t,e,r){"use strict";var n;e.__esModule=!0,e.HeadManagerContext=void 0;var o=((n=r(7294))&&n.__esModule?n:{default:n}).default.createContext({});e.HeadManagerContext=o},7947:function(t,e,r){"use strict";r(9713);e.default=void 0;var n,o=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==typeof t&&"function"!==typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var a=n?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=t[o]}r.default=t,e&&e.set(t,r);return r}(r(7294)),a=(n=r(617))&&n.__esModule?n:{default:n},i=r(3367),u=r(4287),c=r(7845);function s(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function l(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[o.default.createElement("meta",{charSet:"utf-8"})];return t||e.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),e}function f(t,e){return"string"===typeof e||"number"===typeof e?t:e.type===o.default.Fragment?t.concat(o.default.Children.toArray(e.props.children).reduce((function(t,e){return"string"===typeof e||"number"===typeof e?t:t.concat(e)}),[])):t.concat(e)}var h=["name","httpEquiv","charSet","itemProp"];function p(t,e){return t.reduce((function(t,e){var r=o.default.Children.toArray(e.props.children);return t.concat(r)}),[]).reduce(f,[]).reverse().concat(l(e.inAmpMode)).filter(function(){var t=new Set,e=new Set,r=new Set,n={};return function(o){var a=!0,i=!1;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){i=!0;var u=o.key.slice(o.key.indexOf("$")+1);t.has(u)?a=!1:t.add(u)}switch(o.type){case"title":case"base":e.has(o.type)?a=!1:e.add(o.type);break;case"meta":for(var c=0,s=h.length;c=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r>>0,1)},emit:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o-1||r>-1)&&(t=t.substring(0,e>-1?e:r)),t}function C(t){return(t=E(t))===x||t.startsWith("/")}function O(t){return P(t,x)}function R(t){return(t=t.slice(x.length)).startsWith("/")||(t="/".concat(t)),t}function j(t){if(t.startsWith("/")||t.startsWith("#"))return!0;try{var e=(0,d.getLocationOrigin)(),r=new URL(t,e);return r.origin===e&&C(r.pathname)}catch(n){return!1}}function T(t,e,r){var n="",o=(0,w.getRouteRegex)(t),a=o.groups,i=(e!==t?(0,b.getRouteMatcher)(o)(e):"")||r;n=t;var u=Object.keys(a);return u.every((function(t){var e=i[t]||"",r=a[t],o=r.repeat,u=r.optional,c="[".concat(o?"...":"").concat(t,"]");return u&&(c="".concat(e?"":"/","[").concat(c,"]")),o&&!Array.isArray(e)&&(e=[e]),(u||t in i)&&(n=n.replace(c,o?e.map((function(t){return encodeURIComponent(t)})).join("/"):encodeURIComponent(e))||"/")}))||(n=""),{params:u,result:n}}function A(t,e){var r={};return Object.keys(t).forEach((function(n){e.includes(n)||(r[n]=t[n])})),r}function M(t,e,r){var n=new URL(t,"http://n"),o="string"===typeof e?e:(0,d.formatWithValidation)(e);if(!j(o))return r?[o]:o;try{var a=new URL(o,n);a.pathname=(0,s.normalizePathTrailingSlash)(a.pathname);var i="";if((0,v.isDynamicRoute)(a.pathname)&&a.searchParams&&r){var u=(0,m.searchParamsToUrlQuery)(a.searchParams),c=T(a.pathname,a.pathname,u),l=c.result,f=c.params;l&&(i=(0,d.formatWithValidation)({pathname:l,hash:a.hash,query:A(u,f)}))}var h=a.origin===n.origin?a.href.slice(a.origin.length):a.href;return r?[h,i||h]:h}catch(p){return r?[o]:o}}function I(t){var e=(0,d.getLocationOrigin)();return t.startsWith(e)?t.substring(e.length):t}function D(t,e,r){var n=M(t.pathname,e,!0),o=u(n,2),a=o[0],i=o[1],c=(0,d.getLocationOrigin)(),s=a.startsWith(c),l=i&&i.startsWith(c);a=I(a),i=i?I(i):i;var f=s?a:O(a),h=r?I(M(t.pathname,r)):i||a;return{url:f,as:l?h:O(h)}}function N(t,e){var r=(0,s.removePathTrailingSlash)((0,f.denormalizePagePath)(t));return"/404"===r||"/_error"===r?t:(e.includes(r)||e.some((function(e){if((0,v.isDynamicRoute)(e)&&(0,w.getRouteRegex)(e).re.test(r))return t=e,!0})),(0,s.removePathTrailingSlash)(t))}var U=Symbol("SSG_DATA_NOT_FOUND");function W(t,e){return fetch(t,{credentials:"same-origin"}).then((function(r){if(!r.ok){if(e>1&&r.status>=500)return W(t,e-1);if(404===r.status)return r.json().then((function(t){if(t.notFound)return{notFound:U};throw new Error("Failed to load static props")}));throw new Error("Failed to load static props")}return r.json()}))}function F(t,e){return W(t,e?3:1).catch((function(t){throw e||(0,l.markAssetError)(t),t}))}var q=function(){function t(e,r,n,o){var i=this,u=o.initialProps,l=o.pageLoader,f=o.App,h=o.wrapApp,p=o.Component,m=o.err,g=o.subscription,b=o.isFallback,w=o.locale,_=o.locales,k=o.defaultLocale,P=o.domainLocales,S=o.isPreview;a(this,t),this.route=void 0,this.pathname=void 0,this.query=void 0,this.asPath=void 0,this.basePath=void 0,this.components=void 0,this.sdc={},this.sdr={},this.sub=void 0,this.clc=void 0,this.pageLoader=void 0,this._bps=void 0,this.events=void 0,this._wrapApp=void 0,this.isSsr=void 0,this.isFallback=void 0,this._inFlightRoute=void 0,this._shallow=void 0,this.locale=void 0,this.locales=void 0,this.defaultLocale=void 0,this.domainLocales=void 0,this.isReady=void 0,this.isPreview=void 0,this.isLocaleDomain=void 0,this._idx=0,this.onPopState=function(t){var e=t.state;if(e){if(e.__N){var r=e.url,n=e.as,o=e.options,a=e.idx;i._idx=a;var u=(0,y.parseRelativeUrl)(r).pathname;i.isSsr&&n===i.asPath&&u===i.pathname||i._bps&&!i._bps(e)||i.change("replaceState",r,n,Object.assign({},o,{shallow:o.shallow&&i._shallow,locale:o.locale||i.defaultLocale}),undefined)}}else{var c=i.pathname,s=i.query;i.changeState("replaceState",(0,d.formatWithValidation)({pathname:O(c),query:s}),(0,d.getURL)())}},this.route=(0,s.removePathTrailingSlash)(e),this.components={},"/_error"!==e&&(this.components[this.route]={Component:p,initial:!0,props:u,err:m,__N_SSG:u&&u.__N_SSG,__N_SSP:u&&u.__N_SSP}),this.components["/_app"]={Component:f,styleSheets:[]},this.events=t.events,this.pageLoader=l,this.pathname=e,this.query=r;var L=(0,v.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;this.asPath=L?e:n,this.basePath=x,this.sub=g,this.clc=null,this._wrapApp=h,this.isSsr=!0,this.isFallback=b,this.isReady=!(!self.__NEXT_DATA__.gssp&&!self.__NEXT_DATA__.gip&&(L||self.location.search)),this.isPreview=!!S,this.isLocaleDomain=!1,this.locale=w,this.locales=_,this.defaultLocale=k,this.domainLocales=P,this.isLocaleDomain=!!c(P,self.location.hostname),"//"!==n.substr(0,2)&&this.changeState("replaceState",(0,d.formatWithValidation)({pathname:O(e),query:r}),(0,d.getURL)(),{locale:w}),window.addEventListener("popstate",this.onPopState)}return i(t,[{key:"reload",value:function(){window.location.reload()}},{key:"back",value:function(){window.history.back()}},{key:"push",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=D(this,t,e);return t=n.url,e=n.as,this.change("pushState",t,e,r)}},{key:"replace",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=D(this,t,e);return t=n.url,e=n.as,this.change("replaceState",t,e,r)}},{key:"change",value:function(){var e=o(n.mark((function e(r,o,a,i,u){var f,p,m,g,_,x,k,P,E,M,I,W,F,q,B,H,G,Z,V,z,$,K,Q,Y,X,J,tt,et,rt,nt,ot,at,it,ut,ct,st,lt,ft,ht,pt;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(j(o)){e.next=3;break}return window.location.href=o,e.abrupt("return",!1);case 3:if(i._h&&(this.isReady=!0),i.scroll=!(null!=(f=i.scroll)&&!f),p=i.locale!==this.locale,this.locale=!1===i.locale?this.defaultLocale:i.locale||this.locale,"undefined"===typeof i.locale&&(i.locale=this.locale),m=(0,y.parseRelativeUrl)(C(a)?R(a):a),(g=(0,h.normalizeLocalePath)(m.pathname,this.locales)).detectedLocale&&(this.locale=g.detectedLocale,m.pathname=O(m.pathname),a=(0,d.formatWithValidation)(m),o=O((0,h.normalizeLocalePath)(C(o)?R(o):o,this.locales).pathname)),_=!1,null!=(x=this.locales)&&x.includes(this.locale)||(m.pathname=S(m.pathname,this.locale),window.location.href=(0,d.formatWithValidation)(m),_=!0),k=c(this.domainLocales,void 0,this.locale),!_&&k&&this.isLocaleDomain&&self.location.hostname!==k.domain&&(P=R(a),window.location.href="http".concat(k.http?"":"s","://").concat(k.domain).concat(O("".concat(this.locale===k.defaultLocale?"":"/".concat(this.locale)).concat("/"===P?"":P)||"/")),_=!0),!_){e.next=18;break}return e.abrupt("return",new Promise((function(){})));case 18:if(i._h||(this.isSsr=!1),d.ST&&performance.mark("routeChange"),E=i.shallow,M={shallow:void 0!==E&&E},this._inFlightRoute&&this.abortComponentLoad(this._inFlightRoute,M),a=O(S(C(a)?R(a):a,i.locale,this.defaultLocale)),I=L(C(a)?R(a):a,this.locale),this._inFlightRoute=a,i._h||!this.onlyAHashChange(I)){e.next=34;break}return this.asPath=I,t.events.emit("hashChangeStart",a,M),this.changeState(r,o,a,i),this.scrollToHash(I),this.notify(this.components[this.route],null),t.events.emit("hashChangeComplete",a,M),e.abrupt("return",!0);case 34:return W=(0,y.parseRelativeUrl)(o),F=W.pathname,q=W.query,e.prev=36,e.next=39,this.pageLoader.getPageList();case 39:return B=e.sent,e.next=42,(0,l.getClientBuildManifest)();case 42:H=e.sent,H.__rewrites,e.next=50;break;case 46:return e.prev=46,e.t0=e.catch(36),window.location.href=a,e.abrupt("return",!1);case 50:if(this.urlIsNew(I)||p||(r="replaceState"),G=a,"/_error"!==(F=F?(0,s.removePathTrailingSlash)(R(F)):F)&&(W.pathname=N(F,B),W.pathname!==F&&(F=W.pathname,o=(0,d.formatWithValidation)(W))),Z=(0,s.removePathTrailingSlash)(F),j(a)){e.next=60;break}e.next=58;break;case 58:return window.location.href=a,e.abrupt("return",!1);case 60:if(G=L(R(G),this.locale),!(0,v.isDynamicRoute)(Z)){e.next=76;break}if(V=(0,y.parseRelativeUrl)(G),z=V.pathname,$=(0,w.getRouteRegex)(Z),K=(0,b.getRouteMatcher)($)(z),Y=(Q=Z===z)?T(Z,z,q):{},K&&(!Q||Y.result)){e.next=75;break}if(!((X=Object.keys($.groups).filter((function(t){return!q[t]}))).length>0)){e.next=73;break}throw new Error((Q?"The provided `href` (".concat(o,") value is missing query values (").concat(X.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat(z,") is incompatible with the `href` value (").concat(Z,"). "))+"Read more: https://nextjs.org/docs/messages/".concat(Q?"href-interpolation-failed":"incompatible-href-as"));case 73:e.next=76;break;case 75:Q?a=(0,d.formatWithValidation)(Object.assign({},V,{pathname:Y.result,query:A(q,Y.params)})):Object.assign(q,K);case 76:return t.events.emit("routeChangeStart",a,M),e.prev=77,e.next=80,this.getRouteInfo(Z,F,q,a,G,M);case 80:if(et=e.sent,nt=(rt=et).error,ot=rt.props,at=rt.__N_SSG,it=rt.__N_SSP,!at&&!it||!ot){e.next=107;break}if(!ot.pageProps||!ot.pageProps.__N_REDIRECT){e.next=93;break}if(!(ut=ot.pageProps.__N_REDIRECT).startsWith("/")){e.next=91;break}if((ct=(0,y.parseRelativeUrl)(ut)).pathname=N(ct.pathname,B),!B.includes(ct.pathname)){e.next=91;break}return st=D(this,ut,ut),lt=st.url,ft=st.as,e.abrupt("return",this.change(r,lt,ft,i));case 91:return window.location.href=ut,e.abrupt("return",new Promise((function(){})));case 93:if(this.isPreview=!!ot.__N_PREVIEW,ot.notFound!==U){e.next=107;break}return e.prev=95,e.next=98,this.fetchComponent("/404");case 98:ht="/404",e.next=104;break;case 101:e.prev=101,e.t1=e.catch(95),ht="/_error";case 104:return e.next=106,this.getRouteInfo(ht,ht,q,a,G,{shallow:!1});case 106:et=e.sent;case 107:return t.events.emit("beforeHistoryChange",a,M),this.changeState(r,o,a,i),pt=i.shallow&&this.route===Z,i._h&&"/_error"===F&&500===(null==(J=self.__NEXT_DATA__.props)||null==(tt=J.pageProps)?void 0:tt.statusCode)&&null!=ot&&ot.pageProps&&(ot.pageProps.statusCode=500),e.next=114,this.set(Z,F,q,I,et,u||(pt||!i.scroll?null:{x:0,y:0})).catch((function(t){if(!t.cancelled)throw t;nt=nt||t}));case 114:if(!nt){e.next=117;break}throw t.events.emit("routeChangeError",nt,I,M),nt;case 117:return this.locale&&(document.documentElement.lang=this.locale),t.events.emit("routeChangeComplete",a,M),e.abrupt("return",!0);case 122:if(e.prev=122,e.t2=e.catch(77),!e.t2.cancelled){e.next=126;break}return e.abrupt("return",!1);case 126:throw e.t2;case 127:case"end":return e.stop()}}),e,this,[[36,46],[77,122],[95,101]])})));return function(t,r,n,o,a){return e.apply(this,arguments)}}()},{key:"changeState",value:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"pushState"===t&&(0,d.getURL)()===r||(this._shallow=n.shallow,window.history[t]({url:e,as:r,options:n,__N:!0,idx:this._idx="pushState"!==t?this._idx:this._idx+1},"",r))}},{key:"handleRouteInfoError",value:function(){var e=o(n.mark((function e(r,o,a,i,u,c){var s,f,h,p;return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.cancelled){e.next=2;break}throw r;case 2:if(!(0,l.isAssetError)(r)&&!c){e.next=6;break}throw t.events.emit("routeChangeError",r,i,u),window.location.href=i,k();case 6:if(e.prev=6,"undefined"!==typeof s&&"undefined"!==typeof f){e.next=14;break}return e.next=11,this.fetchComponent("/_error");case 11:h=e.sent,s=h.page,f=h.styleSheets;case 14:if((p={props:undefined,Component:s,styleSheets:f,err:r,error:r}).props){e.next=26;break}return e.prev=16,e.next=19,this.getInitialProps(s,{err:r,pathname:o,query:a});case 19:p.props=e.sent,e.next=26;break;case 22:e.prev=22,e.t0=e.catch(16),console.error("Error in error page `getInitialProps`: ",e.t0),p.props={};case 26:return e.abrupt("return",p);case 29:return e.prev=29,e.t1=e.catch(6),e.abrupt("return",this.handleRouteInfoError(e.t1,o,a,i,u,!0));case 32:case"end":return e.stop()}}),e,this,[[6,29],[16,22]])})));return function(t,r,n,o,a,i){return e.apply(this,arguments)}}()},{key:"getRouteInfo",value:function(){var t=o(n.mark((function t(e,r,o,a,i,u){var c,s,l,f,h,p,v,y,m=this;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,c=this.components[e],!u.shallow||!c||this.route!==e){t.next=4;break}return t.abrupt("return",c);case 4:if(!(s=c&&"initial"in c?void 0:c)){t.next=9;break}t.t0=s,t.next=12;break;case 9:return t.next=11,this.fetchComponent(e).then((function(t){return{Component:t.page,styleSheets:t.styleSheets,__N_SSG:t.mod.__N_SSG,__N_SSP:t.mod.__N_SSP}}));case 11:t.t0=t.sent;case 12:l=t.t0,f=l.Component,h=l.__N_SSG,p=l.__N_SSP,t.next=18;break;case 18:return(h||p)&&(v=this.pageLoader.getDataHref((0,d.formatWithValidation)({pathname:r,query:o}),i,h,this.locale)),t.next=21,this._getData((function(){return h?m._getStaticData(v):p?m._getServerData(v):m.getInitialProps(f,{pathname:r,query:o,asPath:a})}));case 21:return y=t.sent,l.props=y,this.components[e]=l,t.abrupt("return",l);case 27:return t.prev=27,t.t1=t.catch(0),t.abrupt("return",this.handleRouteInfoError(t.t1,r,o,a,u));case 30:case"end":return t.stop()}}),t,this,[[0,27]])})));return function(e,r,n,o,a,i){return t.apply(this,arguments)}}()},{key:"set",value:function(t,e,r,n,o,a){return this.isFallback=!1,this.route=t,this.pathname=e,this.query=r,this.asPath=n,this.notify(o,a)}},{key:"beforePopState",value:function(t){this._bps=t}},{key:"onlyAHashChange",value:function(t){if(!this.asPath)return!1;var e=this.asPath.split("#"),r=u(e,2),n=r[0],o=r[1],a=t.split("#"),i=u(a,2),c=i[0],s=i[1];return!(!s||n!==c||o!==s)||n===c&&o!==s}},{key:"scrollToHash",value:function(t){var e=t.split("#"),r=u(e,2)[1];if(""!==r&&"top"!==r){var n=document.getElementById(r);if(n)n.scrollIntoView();else{var o=document.getElementsByName(r)[0];o&&o.scrollIntoView()}}else window.scrollTo(0,0)}},{key:"urlIsNew",value:function(t){return this.asPath!==t}},{key:"prefetch",value:function(){var t=o(n.mark((function t(e){var r,o,a,i,u,c,l,f,p,v,m,b,w=this,_=arguments;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=_.length>1&&void 0!==_[1]?_[1]:e,o=_.length>2&&void 0!==_[2]?_[2]:{},a=(0,y.parseRelativeUrl)(e),i=a.pathname,!1===o.locale&&(i=(0,h.normalizeLocalePath)(i,this.locales).pathname,a.pathname=i,e=(0,d.formatWithValidation)(a),u=(0,y.parseRelativeUrl)(r),c=(0,h.normalizeLocalePath)(u.pathname,this.locales),u.pathname=c.pathname,o.locale=c.detectedLocale||this.defaultLocale,r=(0,d.formatWithValidation)(u)),t.next=7,this.pageLoader.getPageList();case 7:l=t.sent,f=r,t.next=19;break;case 12:v=t.sent,p=v.__rewrites,m=(0,g.default)(O(S(r,this.locale)),l,p,a.query,(function(t){return N(t,l)}),this.locales),f=L(R(m.asPath),this.locale),m.matchedPage&&m.resolvedHref&&(i=m.resolvedHref,a.pathname=i,e=(0,d.formatWithValidation)(a)),t.next=21;break;case 19:a.pathname=N(a.pathname,l),a.pathname!==i&&(i=a.pathname,e=(0,d.formatWithValidation)(a));case 21:b=(0,s.removePathTrailingSlash)(i),t.next=24;break;case 24:return t.next=26,Promise.all([this.pageLoader._isSsg(b).then((function(t){return!!t&&w._getStaticData(w.pageLoader.getDataHref(e,f,!0,"undefined"!==typeof o.locale?o.locale:w.locale))})),this.pageLoader[o.priority?"loadPage":"prefetch"](b)]);case 26:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"fetchComponent",value:function(){var t=o(n.mark((function t(e){var r,o,a,i;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=!1,o=this.clc=function(){r=!0},t.next=4,this.pageLoader.loadPage(e);case 4:if(a=t.sent,!r){t.next=9;break}throw(i=new Error('Abort fetching component for route: "'.concat(e,'"'))).cancelled=!0,i;case 9:return o===this.clc&&(this.clc=null),t.abrupt("return",a);case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_getData",value:function(t){var e=this,r=!1,n=function(){r=!0};return this.clc=n,t().then((function(t){if(n===e.clc&&(e.clc=null),r){var o=new Error("Loading initial props cancelled");throw o.cancelled=!0,o}return t}))}},{key:"_getStaticData",value:function(t){var e=this,r=new URL(t,window.location.href).href;return!this.isPreview&&this.sdc[r]?Promise.resolve(this.sdc[r]):F(t,this.isSsr).then((function(t){return e.sdc[r]=t,t}))}},{key:"_getServerData",value:function(t){var e=this,r=new URL(t,window.location.href).href;return this.sdr[r]?this.sdr[r]:this.sdr[r]=F(t,this.isSsr).then((function(t){return delete e.sdr[r],t})).catch((function(t){throw delete e.sdr[r],t}))}},{key:"getInitialProps",value:function(t,e){var r=this.components["/_app"].Component,n=this._wrapApp(r);return e.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:t,router:this,ctx:e})}},{key:"abortComponentLoad",value:function(e,r){this.clc&&(t.events.emit("routeChangeError",k(),e,r),this.clc(),this.clc=null)}},{key:"notify",value:function(t,e){return this.sub(t,this.components["/_app"].Component,e)}}]),t}();e.default=q,q.events=(0,p.default)()},7687:function(t,e,r){"use strict";e.__esModule=!0,e.formatUrl=function(t){var e=t.auth,r=t.hostname,o=t.protocol||"",i=t.pathname||"",u=t.hash||"",c=t.query||"",s=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?s=e+t.host:r&&(s=e+(~r.indexOf(":")?"[".concat(r,"]"):r),t.port&&(s+=":"+t.port));c&&"object"===typeof c&&(c=String(n.urlQueryToSearchParams(c)));var l=t.search||c&&"?".concat(c)||"";o&&":"!==o.substr(-1)&&(o+=":");t.slashes||(!o||a.test(o))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s="");u&&"#"!==u[0]&&(u="#"+u);l&&"?"!==l[0]&&(l="?"+l);return i=i.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),"".concat(o).concat(s).concat(i).concat(l).concat(u)};var n=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==typeof t&&"function"!==typeof t)return{default:t};var e=o();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var i=n?Object.getOwnPropertyDescriptor(t,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=t[a]}r.default=t,e&&e.set(t,r);return r}(r(4915));function o(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return o=function(){return t},t}var a=/https?|ftp|gopher|file/},7892:function(t,e){"use strict";e.__esModule=!0,e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="/"===t?"/index":/^\/index(\/|$)/.test(t)?"/index".concat(t):"".concat(t);return r+e}},3288:function(t,e){"use strict";e.__esModule=!0,e.isDynamicRoute=function(t){return r.test(t)};var r=/\/\[[^/]+?\](?=\/|$)/},4436:function(t,e,r){"use strict";e.__esModule=!0,e.parseRelativeUrl=function(t,e){var r=new URL((0,n.getLocationOrigin)()),a=e?new URL(e,r):r,i=new URL(t,a),u=i.pathname,c=i.searchParams,s=i.search,l=i.hash,f=i.href;if(i.origin!==r.origin)throw new Error("invariant: invalid relative URL, router received ".concat(t));return{pathname:u,query:(0,o.searchParamsToUrlQuery)(c),search:s,hash:l,href:f.slice(r.origin.length)}};var n=r(3937),o=r(4915)},4915:function(t,e,r){"use strict";var n=r(3038);function o(t){return"string"===typeof t||"number"===typeof t&&!isNaN(t)||"boolean"===typeof t?String(t):""}e.__esModule=!0,e.searchParamsToUrlQuery=function(t){var e={};return t.forEach((function(t,r){"undefined"===typeof e[r]?e[r]=t:Array.isArray(e[r])?e[r].push(t):e[r]=[e[r],t]})),e},e.urlQueryToSearchParams=function(t){var e=new URLSearchParams;return Object.entries(t).forEach((function(t){var r=n(t,2),a=r[0],i=r[1];Array.isArray(i)?i.forEach((function(t){return e.append(a,o(t))})):e.set(a,o(i))})),e},e.assign=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n1&&void 0!==u[1]?u[1]:{},n=s(s({},{headers:{"Content-Type":"application/json"}}),r),a=l(e),t.next=6,fetch(a,n);case 6:if((i=t.sent).ok){t.next=10;break}throw console.error(i.statusText),new Error("An error occured please try again");case 10:return t.next=12,i.json();case 12:return t.abrupt("return",t.sent);case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(t){return d.apply(this,arguments)}function d(){return(d=(0,i.Z)(o().mark((function t(e){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f("/global?_locale=".concat(e));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var v=!0;u.env.RUNTIME_APP_ENV},7367:function(t,e,r){"use strict";r.d(e,{iZ:function(){return a},ij:function(){return u}});var n=r(3391),o=r(3025);function a(t){return null==t?null:o.yv||t.startsWith("http")||t.startsWith("//")||r.g.__isStorybook?t:"svg"===t.split(".")[1]?"/api/svg".concat(t):"/api".concat(t)}function i(t){return"object"===typeof t&&null!==t&&"mime"in t&&"url"in t&&"alternativeText"in t}function u(t){return"object"!==typeof t||null===t?[]:i(t)?[t]:Array.isArray(t)?t.flatMap((function(t){return u(t)})):Object.entries(t).flatMap((function(t){var e=(0,n.Z)(t,2);e[0];return u(e[1])}))}},488:function(t){t.exports={buttonLinkParent:"styles_buttonLinkParent__2Pq_c",button:"styles_button__2YU_O",buttonBlue:"styles_buttonBlue__2KWmp",buttonBlueHighlight:"styles_buttonBlueHighlight__3T7aC",buttonBlueDark:"styles_buttonBlueDark__3u2eF",buttonGreen:"styles_buttonGreen__3GR6S",buttonTransparent:"styles_buttonTransparent__1Y5Re"}},9320:function(t,e){"use strict";function r(t){return t.replace(/\\/g,"/")}e.__esModule=!0,e.normalizePathSep=r,e.denormalizePagePath=function(t){(t=r(t)).startsWith("/index/")?t=t.slice(6):"/index"===t&&(t="/");return t}},9008:function(t,e,r){t.exports=r(7947)},1664:function(t,e,r){t.exports=r(6071)},1163:function(t,e,r){t.exports=r(2441)},4155:function(t){var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"===typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],s=!1,l=-1;function f(){s&&u&&(s=!1,u.length?c=u.concat(c):l=-1,c.length&&h())}function h(){if(!s){var t=i(f);s=!0;for(var e=c.length;e;){for(u=c,c=[];++l1)for(var r=1;r=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},4453:function(){}}]);