Files
2026-11-16 01:39:59 +07:00

1 line
39 KiB
Plaintext

(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{"+lvF":function(t,e,r){t.exports=r("VTer")("native-function-to-string",Function.toString)},"+oT+":function(t,e,r){var n=r("eVuF");function o(t,e,r,o,a,i,u){try{var c=t[i](u),l=c.value}catch(f){return void r(f)}c.done?e(l):n.resolve(l).then(o,a)}t.exports=function(t){return function(){var e=this,r=arguments;return new n(function(n,a){var i=t.apply(e,r);function u(t){o(i,n,a,u,c,"next",t)}function c(t){o(i,n,a,u,c,"throw",t)}u(void 0)})}}},"0/R4":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"0KLy":function(t,e,r){"use strict";var n=r("KI45"),o=r("pbKT"),a=r("p0XB"),i=r("XVgq"),u=r("Z7t5"),c=r("d04V"),l=n(r("p0XB")),f=n(r("0iUn")),s=n(r("sLSF")),p=n(r("Tit0")),d=n(r("MI3g")),h=n(r("a7VT")),v=n(r("UXZV")),y=n(r("eVuF")),g=n(r("pLtp"));function m(t){var e=function(){if("undefined"===typeof Reflect||!o)return!1;if(o.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(o(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=(0,h.default)(t);if(e){var a=(0,h.default)(this).constructor;r=o(n,arguments,a)}else r=n.apply(this,arguments);return(0,d.default)(this,r)}}function w(t,e){var r="undefined"!==typeof u&&t[i]||t["@@iterator"];if(!r){if(a(t)||(r=function(t,e){if(!t)return;if("string"===typeof t)return x(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return c(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x(t,e)}(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=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 l,f=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return f=t.done,t},e:function(t){s=!0,l=t},f:function(){try{f||null==r.return||r.return()}finally{if(s)throw l}}}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var _=function(t){return t&&t.__esModule?t:{default:t}};(0,n(r("hfKm")).default)(e,"__esModule",{value:!0});var E=_(r("q1tI")),b=r("Q0KE"),k=[],L=[],P=!1;function T(t){var e=t(),r={loading:!0,loaded:null,error:null};return r.promise=e.then(function(t){return r.loading=!1,r.loaded=t,t}).catch(function(t){throw r.loading=!1,r.error=t,t}),r}function C(t){var e={loading:!1,loaded:{},error:null},r=[];try{(0,g.default)(t).forEach(function(n){var o=T(t[n]);o.loading?e.loading=!0:(e.loaded[n]=o.loaded,e.error=o.error),r.push(o.promise),o.promise.then(function(t){e.loaded[n]=t}).catch(function(t){e.error=t})})}catch(n){e.error=n}return e.promise=y.default.all(r).then(function(t){return e.loading=!1,t}).catch(function(t){throw e.loading=!1,t}),e}function S(t,e){return E.default.createElement((r=t)&&r.__esModule?r.default:r,e);var r}function I(t,e){var r,n=(0,v.default)({loader:null,loading:null,delay:200,timeout:null,render:S,webpack:null,modules:null},e),o=null;function a(){return o||(o=t(n.loader)),o.promise}if(!P&&"function"===typeof n.webpack){var i=n.webpack();L.push(function(t){var e,r=w(i);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(-1!==t.indexOf(n))return a()}}catch(o){r.e(o)}finally{r.f()}})}return(r=function(e){(0,p.default)(i,e);var r=m(i);function i(e){var u;return(0,f.default)(this,i),(u=r.call(this,e)).retry=function(){u.setState({error:null,loading:!0,timedOut:!1}),o=t(n.loader),u._loadModule()},a(),u.state={error:o.error,pastDelay:!1,timedOut:!1,loading:o.loading,loaded:o.loaded},u}return(0,s.default)(i,[{key:"componentWillMount",value:function(){this._mounted=!0,this._loadModule()}},{key:"_loadModule",value:function(){var t=this;if(this.context&&(0,l.default)(n.modules)&&n.modules.forEach(function(e){t.context(e)}),o.loading){"number"===typeof n.delay&&(0===n.delay?this.setState({pastDelay:!0}):this._delay=setTimeout(function(){t.setState({pastDelay:!0})},n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout(function(){t.setState({timedOut:!0})},n.timeout));var e=function(){t._mounted&&(t.setState({error:o.error,loaded:o.loaded,loading:o.loading}),t._clearTimeouts())};o.promise.then(function(){e()}).catch(function(t){e()})}}},{key:"componentWillUnmount",value:function(){this._mounted=!1,this._clearTimeouts()}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"render",value:function(){return this.state.loading||this.state.error?E.default.createElement(n.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?n.render(this.state.loaded,this.props):null}}],[{key:"preload",value:function(){return a()}}]),i}(E.default.Component)).contextType=b.LoadableContext,r}function R(t){return I(T,t)}function O(t,e){for(var r=[];t.length;){var n=t.pop();r.push(n(e))}return y.default.all(r).then(function(){if(t.length)return O(t,e)})}R.Map=function(t){if("function"!==typeof t.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return I(C,t)},R.preloadAll=function(){return new y.default(function(t,e){O(k).then(t,e)})},R.preloadReady=function(t){return new y.default(function(e){var r=function(){return P=!0,e()};O(L,t).then(r,r)})},e.default=R},"2OiF":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},3:function(t,e,r){r("yj7C"),t.exports=r("BMP1")},"4R4u":function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"91GP":function(t,e,r){var n=r("XKFU");n(n.S+n.F,"Object",{assign:r("czNK")})},BMP1:function(t,e,r){"use strict";var n=r("5Uuq")(r("IKlv"));window.next=n,(0,n.default)().catch(function(t){console.error(t.message+"\n"+t.stack)})},DVgA:function(t,e,r){var n=r("zhAb"),o=r("4R4u");t.exports=Object.keys||function(t){return n(t,o)}},DqTX:function(t,e,r){"use strict";var n=r("KI45"),o=n(r("0iUn")),a=n(r("sLSF")),i=r("KI45");e.__esModule=!0,e.default=void 0;var u=i(r("eVuF")),c={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},l=function(){function t(){var e=this;(0,o.default)(this,t),this.updateHead=function(t){var r=e.updatePromise=u.default.resolve().then(function(){r===e.updatePromise&&(e.updatePromise=null,e.doUpdateHead(t))})},this.updatePromise=null}return(0,a.default)(t,[{key:"doUpdateHead",value:function(t){var e=this,r={};t.forEach(function(t){var e=r[t.type]||[];e.push(t),r[t.type]=e}),this.updateTitle(r.title?r.title[0]:null);["meta","base","link","style","script"].forEach(function(t){e.updateElements(t,r[t]||[])})}},{key:"updateTitle",value:function(t){var e="";if(t){var r=t.props.children;e="string"===typeof r?r:r.join("")}e!==document.title&&(document.title=e)}},{key:"updateElements",value:function(t,e){var r=document.getElementsByTagName("head")[0],n=Array.prototype.slice.call(r.querySelectorAll(t+".next-head")),o=e.map(f).filter(function(t){for(var e=0,r=n.length;e<r;e++){if(n[e].isEqualNode(t))return n.splice(e,1),!1}return!0});n.forEach(function(t){return t.parentNode.removeChild(t)}),o.forEach(function(t){return r.appendChild(t)})}}]),t}();function f(t){var e=t.type,r=t.props,n=document.createElement(e);for(var o in r)if(r.hasOwnProperty(o)&&"children"!==o&&"dangerouslySetInnerHTML"!==o){var a=c[o]||o.toLowerCase();n.setAttribute(a,r[o])}var i=r.children,u=r.dangerouslySetInnerHTML;return u?n.innerHTML=u.__html||"":i&&(n.textContent="string"===typeof i?i:i.join("")),n}e.default=l},"E+zq":function(t,e,r){var n=r("yxVf"),o=r("Jes0");t.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(t))}},HohS:function(t,e,r){"use strict";var n;(0,r("KI45")(r("hfKm")).default)(e,"__esModule",{value:!0}),e.default=function(){return n},e.setConfig=function(t){n=t}},IKlv:function(t,e,r){"use strict";var n=r("KI45"),o=r("eVuF"),a=r("TRZx"),i=r("Bhuq"),u=r("SqZg"),c=r("Z7t5"),l=r("hfKm"),f=r("pbKT"),s=n(r("0iUn")),p=n(r("sLSF")),d=n(r("Tit0")),h=n(r("MI3g")),v=n(r("a7VT")),y=n(r("doui"));function g(){g=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,f=l||function(t,e,r){t[e]=r.value},s="function"==typeof c?c:{},p=s.iterator||"@@iterator",d=s.asyncIterator||"@@asyncIterator",h=s.toStringTag||"@@toStringTag";function v(t,e,r){return l(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{v({},"")}catch(t){v=function(t,e,r){return t[e]=r}}function y(t,e,r,n){var o=e&&e.prototype instanceof k?e:k,a=u(o.prototype),i=new q(n||[]);return f(a,"_invoke",{value:O(t,r,i)}),a}function m(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=y;var w="suspendedStart",x="suspendedYield",_="executing",E="completed",b={};function k(){}function L(){}function P(){}var T={};v(T,p,function(){return this});var C=i&&i(i(N([])));C&&C!==r&&n.call(C,p)&&(T=C);var S=P.prototype=k.prototype=u(T);function I(t){["next","throw","return"].forEach(function(e){v(t,e,function(t){return this._invoke(e,t)})})}function R(t,e){function r(o,a,i,u){var c=m(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,i,u)},function(t){r("throw",t,i,u)}):e.resolve(f).then(function(t){l.value=t,i(l)},function(t){return r("throw",t,i,u)})}u(c.arg)}var o;f(this,"_invoke",{value:function(t,n){function a(){return new e(function(e,o){r(t,n,e,o)})}return o=o?o.then(a,a):a()}})}function O(e,r,n){var o=w;return function(a,i){if(o===_)throw new Error("Generator is already running");if(o===E){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var c=j(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===w)throw o=E,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=_;var l=m(e,r,n);if("normal"===l.type){if(o=n.done?E:x,l.arg===b)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=E,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var a=m(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,b;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function q(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[p];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return L.prototype=P,f(S,"constructor",{value:P,configurable:!0}),f(P,"constructor",{value:L,configurable:!0}),L.displayName=v(P,h,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===L||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return a?a(t,P):(t.__proto__=P,v(t,h,"GeneratorFunction")),t.prototype=u(S),t},e.awrap=function(t){return{__await:t}},I(R.prototype),v(R.prototype,d,function(){return this}),e.AsyncIterator=R,e.async=function(t,r,n,a,i){void 0===i&&(i=o);var u=new R(y(t,r,n,a),i);return e.isGeneratorFunction(r)?u:u.next().then(function(t){return t.done?t.value:u.next()})},I(S),v(S,h,"Generator"),v(S,p,function(){return this}),v(S,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,q.prototype={constructor:q,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=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"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),b}},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;F(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function m(t){var e=function(){if("undefined"===typeof Reflect||!f)return!1;if(f.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(f(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=(0,v.default)(t);if(e){var o=(0,v.default)(this).constructor;r=f(n,arguments,o)}else r=n.apply(this,arguments);return(0,h.default)(this,r)}}var w=r("5Uuq"),x=r("KI45");e.__esModule=!0,e.render=st,e.renderError=dt,e.default=e.emitter=e.ErrorComponent=e.router=e.dataManager=void 0;var _=x(r("+oT+")),E=x(r("htGi")),b=x(r("eVuF")),k=w(r("q1tI")),L=x(r("i8i4")),P=x(r("DqTX")),T=r("nOHt"),C=x(r("kiME")),S=r("Bu4q"),I=x(r("zmvN")),R=w(r("PBx+")),O=x(r("0KLy")),j=r("IClC"),M=r("qS9g"),F=r("9EOK"),q=r("cuFY"),N=r("s4NR"),A=r("kcOw");window.Promise||(window.Promise=b.default);var D=JSON.parse(document.getElementById("__NEXT_DATA__").textContent);window.__NEXT_DATA__=D;var K=D.props,B=D.err,U=D.page,V=D.query,G=D.buildId,X=D.dynamicBuildId,H=D.assetPrefix,z=D.runtimeConfig,Y=D.dynamicIds,Z=JSON.parse(window.__NEXT_DATA__.dataManager),J=new q.DataManager(Z);e.dataManager=J;var W=H||"";r.p=W+"/_next/",R.setConfig({serverRuntimeConfig:{},publicRuntimeConfig:z});var Q=(0,S.getURL)(),$=new I.default(G,W),tt=function(t){var e=(0,y.default)(t,2),r=e[0],n=e[1];return $.registerPage(r,n)};window.__NEXT_P&&window.__NEXT_P.map(tt),window.__NEXT_P=[],window.__NEXT_P.push=tt;var et,rt,nt,ot,at,it=new P.default,ut=document.getElementById("__next");e.router=rt,e.ErrorComponent=nt;var ct=function(t){(0,d.default)(r,t);var e=m(r);function r(){return(0,s.default)(this,r),e.apply(this,arguments)}return(0,p.default)(r,[{key:"componentDidCatch",value:function(t,e){this.props.fn(t,e)}},{key:"componentDidMount",value:function(){this.scrollToHash(),D.nextExport&&((0,A.isDynamicRoute)(rt.pathname)||window.location.search)&&rt.replace(rt.pathname+"?"+(0,N.stringify)((0,E.default)({},rt.query,(0,N.parse)(window.location.search.substr(1)))),Q)}},{key:"componentDidUpdate",value:function(){this.scrollToHash()}},{key:"scrollToHash",value:function(){var t=window.location.hash;if(t=t&&t.substring(1)){var e=document.getElementById(t);e&&setTimeout(function(){return e.scrollIntoView()},0)}}},{key:"render",value:function(){return this.props.children}}]),r}(k.default.Component),lt=(0,C.default)();e.emitter=lt;var ft=function(){var t=(0,_.default)(g().mark(function t(r){var n;return g().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(void 0===r?{}:r).webpackHMR,t.next=4,$.loadPage("/_app");case 4:return at=t.sent,n=B,t.prev=6,t.next=9,$.loadPage(U);case 9:ot=t.sent,t.next=14;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(6),n=t.t0;case 19:return t.next=21,O.default.preloadReady(Y||[]);case 21:return!0===X&&$.onDynamicBuildId(),e.router=rt=(0,T.createRouter)(U,V,Q,{initialProps:K,pageLoader:$,App:at,Component:ot,err:n,subscription:function(t,e){st({App:e,Component:t.Component,props:t.props,err:t.err,emitter:lt})}}),st({App:at,Component:ot,props:K,err:n,emitter:lt}),t.abrupt("return",lt);case 25:case"end":return t.stop()}},t,null,[[6,16]])}));return function(e){return t.apply(this,arguments)}}();function st(t){return pt.apply(this,arguments)}function pt(){return(pt=(0,_.default)(g().mark(function t(e){return g().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.err){t.next=4;break}return t.next=3,dt(e);case 3:return t.abrupt("return");case 4:return t.prev=4,t.next=7,gt(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(4),t.next=13,dt((0,E.default)({},e,{err:t.t0}));case 13:case"end":return t.stop()}},t,null,[[4,9]])}))).apply(this,arguments)}function dt(t){return ht.apply(this,arguments)}function ht(){return(ht=(0,_.default)(g().mark(function t(r){var n,o,a;return g().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=r.App,o=r.err,t.next=3;break;case 3:return console.error(o),t.next=6,$.loadPage("/_error");case 6:if(e.ErrorComponent=nt=t.sent,!r.props){t.next=11;break}t.t0=r.props,t.next=14;break;case 11:return t.next=13,(0,S.loadGetInitialProps)(n,{Component:nt,router:rt,ctx:{err:o,pathname:U,query:V,asPath:Q}});case 13:t.t0=t.sent;case 14:return a=t.t0,t.next=17,gt((0,E.default)({},r,{err:o,Component:nt,props:a}));case 17:case"end":return t.stop()}},t)}))).apply(this,arguments)}e.default=ft;var vt="function"===typeof L.default.hydrate;function yt(t){var e=t.children;return k.default.createElement(ct,{fn:function(t){return dt({App:at,err:t}).catch(function(t){return console.error("Error rendering page: ",t)})}},k.default.createElement(k.Suspense,{fallback:k.default.createElement("div",null,"Loading...")},k.default.createElement(F.RouterContext.Provider,{value:(0,T.makePublicRouterInstance)(rt)},k.default.createElement(M.DataManagerContext.Provider,{value:J},k.default.createElement(j.HeadManagerContext.Provider,{value:it.updateHead},e)))))}function gt(t){return mt.apply(this,arguments)}function mt(){return(mt=(0,_.default)(g().mark(function t(e){var r,n,o,a,i,u,c,l,f;return g().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.App,n=e.Component,o=e.props,a=e.err,o||!n||n===nt||et.Component!==nt){t.next=6;break}return u=(i=rt).pathname,c=i.query,l=i.asPath,t.next=5,(0,S.loadGetInitialProps)(r,{Component:n,router:rt,ctx:{err:a,pathname:u,query:c,asPath:l}});case 5:o=t.sent;case 6:n=n||et.Component,o=o||et.props,f=(0,E.default)({Component:n,err:a,router:rt},o),et=f,lt.emit("before-reactdom-render",{Component:n,ErrorComponent:nt,appProps:f}),s=k.default.createElement(yt,null,k.default.createElement(r,f)),p=ut,vt?(L.default.hydrate(s,p),vt=!1):L.default.render(s,p),lt.emit("after-reactdom-render",{Component:n,ErrorComponent:nt,appProps:f});case 13:case"end":return t.stop()}var s,p},t)}))).apply(this,arguments)}},Igp0:function(t,e,r){var n=r("Y7ZC");n(n.P,"String",{repeat:r("zPkg")})},Iw71:function(t,e,r){var n=r("0/R4"),o=r("dyZX").document,a=n(o)&&n(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},JiEa:function(t,e){e.f=Object.getOwnPropertySymbols},KroJ:function(t,e,r){var n=r("dyZX"),o=r("Mukb"),a=r("aagx"),i=r("ylqs")("src"),u=r("+lvF"),c=(""+u).split("toString");r("g3g5").inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,r,u){var l="function"==typeof r;l&&(a(r,"name")||o(r,"name",e)),t[e]!==r&&(l&&(a(r,i)||o(r,i,t[e]?""+t[e]:c.join(String(e)))),t===n?t[e]=r:u?t[e]?t[e]=r:o(t,e,r):(delete t[e],o(t,e,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[i]||u.call(this)})},LQAc:function(t,e){t.exports=!1},LZWt:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},Mukb:function(t,e,r){var n=r("hswa"),o=r("RjD/");t.exports=r("nh4g")?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},NK4f:function(t,e,r){r("91GP"),t.exports=r("g3g5").Object.assign},"PBx+":function(t,e,r){t.exports=r("HohS")},Q0KE:function(t,e,r){"use strict";var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};(0,r("KI45")(r("hfKm")).default)(e,"__esModule",{value:!0});var o=n(r("q1tI"));e.LoadableContext=o.createContext(null)},RYi7:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},"RjD/":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"S/j/":function(t,e,r){var n=r("vhPU");t.exports=function(t){return Object(n(t))}},U9vQ:function(t,e,r){var n=r("UWiX")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,!"/./"[t](e)}catch(o){}}return!0}},UqcF:function(t,e){e.f={}.propertyIsEnumerable},VTer:function(t,e,r){var n=r("g3g5"),o=r("dyZX"),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r("LQAc")?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},Vbjw:function(t,e,r){r("Igp0"),t.exports=r("bmVo")("String").repeat},XKFU:function(t,e,r){var n=r("dyZX"),o=r("g3g5"),a=r("Mukb"),i=r("KroJ"),u=r("m0Pp"),c=function(t,e,r){var l,f,s,p,d=t&c.F,h=t&c.G,v=t&c.S,y=t&c.P,g=t&c.B,m=h?n:v?n[e]||(n[e]={}):(n[e]||{}).prototype,w=h?o:o[e]||(o[e]={}),x=w.prototype||(w.prototype={});for(l in h&&(r=e),r)s=((f=!d&&m&&void 0!==m[l])?m:r)[l],p=g&&f?u(s,n):y&&"function"==typeof s?u(Function.call,s):s,m&&i(m,l,s,t&c.U),w[l]!=s&&a(w,l,p),y&&x[l]!=s&&(x[l]=s)};n.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},YTvA:function(t,e,r){var n=r("VTer")("keys"),o=r("ylqs");t.exports=function(t){return n[t]||(n[t]=o(t))}},Ymqv:function(t,e,r){var n=r("LZWt");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},aCFV:function(t,e,r){r("siR7"),t.exports=r("bmVo")("String").includes},aCFj:function(t,e,r){var n=r("Ymqv"),o=r("vhPU");t.exports=function(t){return n(o(t))}},aagx:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},apmT:function(t,e,r){var n=r("0/R4");t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},bmVo:function(t,e,r){var n=r("WEpk");t.exports=function(t){var e=n[t];return e.virtual||e.prototype}},cuFY:function(t,e,r){"use strict";var n=r("KI45"),o=n(r("LX0d")),a=n(r("0iUn")),i=n(r("sLSF"));(0,n(r("hfKm")).default)(e,"__esModule",{value:!0});var u=function(){function t(e){(0,a.default)(this,t),this.data=new o.default(e)}return(0,i.default)(t,[{key:"getData",value:function(){return this.data}},{key:"get",value:function(t){return this.data.get(t)}},{key:"set",value:function(t,e){this.data.set(t,e)}},{key:"overwrite",value:function(t){this.data=new o.default(t)}}]),t}();e.DataManager=u},czNK:function(t,e,r){"use strict";var n=r("nh4g"),o=r("DVgA"),a=r("JiEa"),i=r("UqcF"),u=r("S/j/"),c=r("Ymqv"),l=Object.assign;t.exports=!l||r("eeVq")(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=l({},t)[r]||Object.keys(l({},e)).join("")!=n})?function(t,e){for(var r=u(t),l=arguments.length,f=1,s=a.f,p=i.f;l>f;)for(var d,h=c(arguments[f++]),v=s?o(h).concat(s(h)):o(h),y=v.length,g=0;y>g;)d=v[g++],n&&!p.call(h,d)||(r[d]=h[d]);return r}:l},"d/Gc":function(t,e,r){var n=r("RYi7"),o=Math.max,a=Math.min;t.exports=function(t,e){return(t=n(t))<0?o(t+e,0):a(t,e)}},dyZX:function(t,e,r){var n=t.exports=window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},eeVq:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},g3g5:function(t,e){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},hswa:function(t,e,r){var n=r("y3w9"),o=r("xpql"),a=r("apmT"),i=Object.defineProperty;e.f=r("nh4g")?Object.defineProperty:function(t,e,r){if(n(t),e=a(e,!0),n(r),o)try{return i(t,e,r)}catch(u){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},lBon:function(t,e,r){"use strict";r.r(e),e.default=function(t,e){return e=e||{},new Promise(function(r,n){var o=new XMLHttpRequest,a=[],i=[],u={},c=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(JSON.parse(o.responseText))},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:c,headers:{keys:function(){return a},entries:function(){return i},get:function(t){return u[t.toLowerCase()]},has:function(t){return t.toLowerCase()in u}}}};for(var l in o.open(e.method||"get",t,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(t,e,r){a.push(e=e.toLowerCase()),i.push([e,r]),u[e]=u[e]?u[e]+","+r:r}),r(c())},o.onerror=n,o.withCredentials="include"==e.credentials,e.headers)o.setRequestHeader(l,e.headers[l]);o.send(e.body||null)})}},m0Pp:function(t,e,r){var n=r("2OiF");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},ne8i:function(t,e,r){var n=r("RYi7"),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},nh4g:function(t,e,r){t.exports=!r("eeVq")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},qS9g:function(t,e,r){"use strict";var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};(0,r("KI45")(r("hfKm")).default)(e,"__esModule",{value:!0});var o=n(r("q1tI"));e.DataManagerContext=o.createContext(null)},siR7:function(t,e,r){"use strict";var n=r("Y7ZC"),o=r("E+zq");n(n.P+n.F*r("U9vQ")("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},vhPU:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},w2a5:function(t,e,r){var n=r("aCFj"),o=r("ne8i"),a=r("d/Gc");t.exports=function(t){return function(e,r,i){var u,c=n(e),l=o(c.length),f=a(i,l);if(t&&r!=r){for(;l>f;)if((u=c[f++])!=u)return!0}else for(;l>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}}},xpql:function(t,e,r){t.exports=!r("nh4g")&&!r("eeVq")(function(){return 7!=Object.defineProperty(r("Iw71")("div"),"a",{get:function(){return 7}}).a})},y3w9:function(t,e,r){var n=r("0/R4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},yj7C:function(t,e,r){"use strict";r.r(e);var n=r("aCFV"),o=r.n(n),a=r("Vbjw"),i=r.n(a),u=r("NK4f"),c=r.n(u);String.prototype.includes=o.a,String.prototype.repeat=i.a,String.prototype.assign=c.a},ylqs:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},yxVf:function(t,e,r){var n=r("93I4"),o=r("a0xu"),a=r("UWiX")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},zPkg:function(t,e,r){"use strict";var n=r("Ojgd"),o=r("Jes0");t.exports=function(t){var e=String(o(this)),r="",a=n(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(r+=e);return r}},zhAb:function(t,e,r){var n=r("aagx"),o=r("aCFj"),a=r("w2a5")(!1),i=r("YTvA")("IE_PROTO");t.exports=function(t,e){var r,u=o(t),c=0,l=[];for(r in u)r!=i&&n(u,r)&&l.push(r);for(;e.length>c;)n(u,r=e[c++])&&(~a(l,r)||l.push(r));return l}},zmvN:function(t,e,r){"use strict";var n=r("KI45"),o=r("eVuF"),a=r("TRZx"),i=r("Bhuq"),u=r("SqZg"),c=r("Z7t5"),l=r("hfKm"),f=n(r("0iUn")),s=n(r("sLSF"));function p(){p=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,f=l||function(t,e,r){t[e]=r.value},s="function"==typeof c?c:{},d=s.iterator||"@@iterator",h=s.asyncIterator||"@@asyncIterator",v=s.toStringTag||"@@toStringTag";function y(t,e,r){return l(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{y({},"")}catch(t){y=function(t,e,r){return t[e]=r}}function g(t,e,r,n){var o=e&&e.prototype instanceof k?e:k,a=u(o.prototype),i=new q(n||[]);return f(a,"_invoke",{value:O(t,r,i)}),a}function m(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=g;var w="suspendedStart",x="suspendedYield",_="executing",E="completed",b={};function k(){}function L(){}function P(){}var T={};y(T,d,function(){return this});var C=i&&i(i(N([])));C&&C!==r&&n.call(C,d)&&(T=C);var S=P.prototype=k.prototype=u(T);function I(t){["next","throw","return"].forEach(function(e){y(t,e,function(t){return this._invoke(e,t)})})}function R(t,e){function r(o,a,i,u){var c=m(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,i,u)},function(t){r("throw",t,i,u)}):e.resolve(f).then(function(t){l.value=t,i(l)},function(t){return r("throw",t,i,u)})}u(c.arg)}var o;f(this,"_invoke",{value:function(t,n){function a(){return new e(function(e,o){r(t,n,e,o)})}return o=o?o.then(a,a):a()}})}function O(e,r,n){var o=w;return function(a,i){if(o===_)throw new Error("Generator is already running");if(o===E){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var c=j(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===w)throw o=E,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=_;var l=m(e,r,n);if("normal"===l.type){if(o=n.done?E:x,l.arg===b)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=E,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var a=m(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,b;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function q(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[d];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return L.prototype=P,f(S,"constructor",{value:P,configurable:!0}),f(P,"constructor",{value:L,configurable:!0}),L.displayName=y(P,v,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===L||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return a?a(t,P):(t.__proto__=P,y(t,v,"GeneratorFunction")),t.prototype=u(S),t},e.awrap=function(t){return{__await:t}},I(R.prototype),y(R.prototype,h,function(){return this}),e.AsyncIterator=R,e.async=function(t,r,n,a,i){void 0===i&&(i=o);var u=new R(g(t,r,n,a),i);return e.isGeneratorFunction(r)?u:u.next().then(function(t){return t.done?t.value:u.next()})},I(S),y(S,v,"Generator"),y(S,d,function(){return this}),y(S,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,q.prototype={constructor:q,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=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"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),b}},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;F(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}var d=r("KI45");e.__esModule=!0,e.default=void 0;var h=d(r("+oT+")),v=d(r("eVuF")),y=d(r("ttDY")),g=d(r("kiME")),m=d(r("lBon"));var w=function(t){if(!t||!t.supports)return!1;try{return t.supports("preload")}catch(e){return!1}}(document.createElement("link").relList),x=function(){function t(e,r){(0,f.default)(this,t),this.buildId=e,this.assetPrefix=r,this.pageCache={},this.prefetchCache=new y.default,this.pageRegisterEvents=(0,g.default)(),this.loadingRoutes={},this.promisedBuildId=v.default.resolve()}return(0,s.default)(t,[{key:"normalizeRoute",value:function(t){if("/"!==t[0])throw new Error('Route name should start with a "/", got "'+t+'"');return"/"===(t=t.replace(/\/index$/,"/"))?t:t.replace(/\/$/,"")}},{key:"loadPage",value:function(t){var e=this;return t=this.normalizeRoute(t),new v.default(function(r,n){var o=e.pageCache[t];if(o){var a=o.error,i=o.page;a?n(a):r(i)}else e.pageRegisterEvents.on(t,function o(a){var i=a.error,u=a.page;e.pageRegisterEvents.off(t,o),delete e.loadingRoutes[t],i?n(i):r(u)}),document.getElementById("__NEXT_PAGE__"+t)||e.loadingRoutes[t]||(e.loadScript(t),e.loadingRoutes[t]=!0)})}},{key:"onDynamicBuildId",value:function(){var t=this;this.promisedBuildId=new v.default(function(e){(0,m.default)(t.assetPrefix+"/_next/static/HEAD_BUILD_ID").then(function(t){if(t.ok)return t;var e=new Error("Failed to fetch HEAD buildId");throw e.res=t,e}).then(function(t){return t.text()}).then(function(e){t.buildId=e.trim()}).catch(function(){console.warn("Failed to load BUILD_ID from server. The following client-side page transition will likely 404 and cause a SSR.\nhttp://err.sh/zeit/next.js/head-build-id")}).then(e,e)})}},{key:"loadScript",value:function(t){var e=this;return(0,h.default)(p().mark(function r(){var n,o,a;return p().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.promisedBuildId;case 2:t=e.normalizeRoute(t),n="/"===t?"/index.js":t+".js",o=document.createElement("script"),a=e.assetPrefix+"/_next/static/"+encodeURIComponent(e.buildId)+"/pages"+n,o.crossOrigin=void 0,o.src=a,o.onerror=function(){var r=new Error("Error loading script "+a);r.code="PAGE_LOAD_ERROR",e.pageRegisterEvents.emit(t,{error:r})},document.body.appendChild(o);case 10:case"end":return r.stop()}},r)}))()}},{key:"registerPage",value:function(t,e){var r=this;!function(){try{var n=e(),o=n.error,a=n.page;r.pageCache[t]={error:o,page:a},r.pageRegisterEvents.emit(t,{error:o,page:a})}catch(o){r.pageCache[t]={error:o},r.pageRegisterEvents.emit(t,{error:o})}}()}},{key:"prefetch",value:function(t){var e=this;return(0,h.default)(p().mark(function r(){var n,o;return p().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(t=e.normalizeRoute(t),n=("/"===t?"/index":t)+".js",!e.prefetchCache.has(n)&&!document.getElementById("__NEXT_PAGE__"+t)){r.next=4;break}return r.abrupt("return");case 4:if(e.prefetchCache.add(n),!("connection"in navigator)){r.next=8;break}if(-1===(navigator.connection.effectiveType||"").indexOf("2g")&&!navigator.connection.saveData){r.next=8;break}return r.abrupt("return");case 8:if(!w){r.next=18;break}return r.next=11,e.promisedBuildId;case 11:return(o=document.createElement("link")).rel="preload",o.crossOrigin=void 0,o.href=e.assetPrefix+"/_next/static/"+encodeURIComponent(e.buildId)+"/pages"+n,o.as="script",document.head.appendChild(o),r.abrupt("return");case 18:if("complete"!==document.readyState){r.next=22;break}return r.abrupt("return",e.loadPage(t).catch(function(){}));case 22:return r.abrupt("return",new v.default(function(r){window.addEventListener("load",function(){e.loadPage(t).then(function(){return r()},function(){return r()})})}));case 23:case"end":return r.stop()}},r)}))()}},{key:"clearCache",value:function(t){t=this.normalizeRoute(t),delete this.pageCache[t],delete this.loadingRoutes[t];var e=document.getElementById("__NEXT_PAGE__"+t);e&&e.parentNode.removeChild(e)}}]),t}();e.default=x}},[[3,1,0]]]);