1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 14:28:04 +00:00
_/docs/_next/static/runtime/main-a88012f1833bc2d88746.js
2020-02-08 20:38:00 +09:00

1 line
No EOL
13 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{"+plK":function(e,t,r){r("ApPD"),e.exports=r("WEpk").Object.getPrototypeOf},"/+P4":function(e,t,r){var n=r("Bhuq"),a=r("TRZx");function o(t){return e.exports=o=a?n:function(e){return e.__proto__||n(e)},o(t)}e.exports=o},ApPD:function(e,t,r){var n=r("JB68"),a=r("U+KD");r("zn7N")("getPrototypeOf",(function(){return function(e){return a(n(e))}}))},BMP1:function(e,t,r){"use strict";var n=r("5Uuq")(r("IKlv"));window.next=n,(0,n.default)().catch((function(e){console.error(e.message+"\n"+e.stack)}))},Bhuq:function(e,t,r){e.exports=r("+plK")},DqTX:function(e,t,r){"use strict";var n=r("eVuF"),a=r("/HRN"),o=r("WaGi");t.__esModule=!0,t.default=void 0;var i={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},u=function(){function e(){var t=this;a(this,e),this.updateHead=function(e){var r=t.updatePromise=n.resolve().then((function(){r===t.updatePromise&&(t.updatePromise=null,t.doUpdateHead(e))}))},this.updatePromise=null}return o(e,[{key:"doUpdateHead",value:function(e){var t=this,r={};e.forEach((function(e){var t=r[e.type]||[];t.push(e),r[e.type]=t})),this.updateTitle(r.title?r.title[0]:null);["meta","base","link","style","script"].forEach((function(e){t.updateElements(e,r[e]||[])}))}},{key:"updateTitle",value:function(e){var t="";if(e){var r=e.props.children;t="string"===typeof r?r:r.join("")}t!==document.title&&(document.title=t)}},{key:"updateElements",value:function(e,t){var r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]");for(var a=Number(n.content),o=[],i=0,u=n.previousElementSibling;i<a;i++,u=u.previousElementSibling)u.tagName.toLowerCase()===e&&o.push(u);var s=t.map(c).filter((function(e){for(var t=0,r=o.length;t<r;t++){if(o[t].isEqualNode(e))return o.splice(t,1),!1}return!0}));o.forEach((function(e){return e.parentNode.removeChild(e)})),s.forEach((function(e){return r.insertBefore(e,n)})),n.content=(a-o.length+s.length).toString()}}]),e}();function c(e){var t=e.type,r=e.props,n=document.createElement(t);for(var a in r)if(r.hasOwnProperty(a)&&"children"!==a&&"dangerouslySetInnerHTML"!==a){var o=i[a]||a.toLowerCase();n.setAttribute(o,r[a])}var u=r.children,c=r.dangerouslySetInnerHTML;return c?n.innerHTML=c.__html||"":u&&(n.textContent="string"===typeof u?u:u.join("")),n}t.default=u},FYa8:function(e,t,r){"use strict";var n=r("hfKm"),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};n(t,"__esModule",{value:!0});var o=a(r("q1tI"));t.HeadManagerContext=o.createContext(null)},IKlv:function(e,t,r){"use strict";var n=r("ln6h"),a=(r("eVuF"),r("/HRN")),o=r("WaGi"),i=r("ZDA2"),u=r("/+P4"),c=r("N9n2"),s=r("8+Nu"),p=r("5Uuq"),f=r("KI45");t.__esModule=!0,t.render=V,t.renderError=W,t.default=t.emitter=t.router=t.version=void 0;var l=f(r("htGi")),d=(f(r("5Uuq")),f(r("q1tI"))),h=f(r("i8i4")),m=f(r("DqTX")),v=r("nOHt"),g=f(r("dZ6Y")),y=r("g/15"),E=f(r("zmvN")),_=p(r("yLiY")),w=r("FYa8"),x=r("qOIg"),b=r("s4NR"),P=r("/jkW");window.Promise||(window.Promise=r("eVuF"));var R=JSON.parse(document.getElementById("__NEXT_DATA__").textContent);window.__NEXT_DATA__=R;t.version="9.2.1";var N=R.props,C=R.err,k=R.page,T=R.query,I=R.buildId,S=R.assetPrefix,A=R.runtimeConfig,D=R.dynamicIds,q=S||"";r.p=q+"/_next/",_.setConfig({serverRuntimeConfig:{},publicRuntimeConfig:A||{}});var j=(0,y.getURL)(),B=new E.default(I,q),M=function(e){var t=s(e,2),r=t[0],n=t[1];return B.registerPage(r,n)};window.__NEXT_P&&window.__NEXT_P.map(M),window.__NEXT_P=[],window.__NEXT_P.push=M;var H,L,O,U,F,K,X=new m.default,G=document.getElementById("__next");t.router=L;var Y=function(e){function t(){return a(this,t),i(this,u(t).apply(this,arguments))}return c(t,e),o(t,[{key:"componentDidCatch",value:function(e,t){this.props.fn(e,t)}},{key:"componentDidMount",value:function(){this.scrollToHash(),(R.nextExport&&((0,P.isDynamicRoute)(L.pathname)||location.search)||U&&U.__N_SSG&&location.search)&&L.replace(L.pathname+"?"+(0,b.stringify)((0,l.default)({},L.query,{},(0,b.parse)(location.search.substr(1)))),j,{_h:1,shallow:!0})}},{key:"componentDidUpdate",value:function(){this.scrollToHash()}},{key:"scrollToHash",value:function(){var e=location.hash;if(e=e&&e.substring(1)){var t=document.getElementById(e);t&&setTimeout((function(){return t.scrollIntoView()}),0)}}},{key:"render",value:function(){return this.props.children}}]),t}(d.default.Component),Z=(0,g.default)();t.emitter=Z;function V(e){return n.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.err){t.next=4;break}return t.next=3,n.awrap(W(e));case 3:return t.abrupt("return");case 4:return t.prev=4,t.next=7,n.awrap(ne(e));case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(4),t.next=13,n.awrap(W((0,l.default)({},e,{err:t.t0})));case 13:case"end":return t.stop()}}),null,null,[[4,9]])}function W(e){var t,r,a,o,i;return n.async((function(u){for(;;)switch(u.prev=u.next){case 0:t=e.App,r=e.err,u.next=3;break;case 3:return console.error(r),u.next=7,n.awrap(B.loadPage("/_error"));case 7:if(O=u.sent,a=re(t),o={Component:O,AppTree:a,router:L,ctx:{err:r,pathname:k,query:T,asPath:j,AppTree:a}},!e.props){u.next=14;break}u.t0=e.props,u.next=17;break;case 14:return u.next=16,n.awrap((0,y.loadGetInitialProps)(t,o));case 16:u.t0=u.sent;case 17:return i=u.t0,u.next=20,n.awrap(ne((0,l.default)({},e,{err:r,Component:O,props:i})));case 20:case"end":return u.stop()}}))}t.default=function(e){var r,a,o,i;return n.async((function(u){for(;;)switch(u.prev=u.next){case 0:return(void 0===e?{}:e).webpackHMR,u.next=4,n.awrap(B.loadPageScript("/_app"));case 4:return r=u.sent,a=r.page,o=r.mod,F=a,o&&o.unstable_onPerformanceData&&(K=function(e){var t=e.name,r=e.startTime,n=e.value,a=e.duration;o.unstable_onPerformanceData({name:t,startTime:r,value:n,duration:a})}),i=C,u.prev=10,u.next=13,n.awrap(B.loadPage(k));case 13:U=u.sent,u.next=18;break;case 18:u.next=23;break;case 20:u.prev=20,u.t0=u.catch(10),i=u.t0;case 23:if(!window.__NEXT_PRELOADREADY){u.next=26;break}return u.next=26,n.awrap(window.__NEXT_PRELOADREADY(D));case 26:return t.router=L=(0,v.createRouter)(k,T,j,{initialProps:N,pageLoader:B,App:F,Component:U,wrapApp:re,err:i,subscription:function(e,t){V({App:t,Component:e.Component,props:e.props,err:e.err})}}),V({App:F,Component:U,props:N,err:i}),u.abrupt("return",Z);case 32:u.next=34;break;case 34:case"end":return u.stop()}}),null,null,[[10,20]])};var $="function"===typeof h.default.hydrate;function J(e,t){if(y.ST&&performance.mark("beforeRender"),$?(h.default.hydrate(e,t,z),$=!1):h.default.render(e,t,Q),K&&y.ST)try{new PerformanceObserver((function(e){e.getEntries().forEach(K)})).observe({type:"paint",buffered:!0})}catch(r){window.addEventListener("load",(function(){performance.getEntriesByType("paint").forEach(K)}))}}function z(){y.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),K&&(performance.getEntriesByName("Next.js-hydration").forEach(K),performance.getEntriesByName("beforeRender").forEach(K)),ee())}function Q(){if(y.ST){performance.mark("afterRender");var 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"),K&&(performance.getEntriesByName("Next.js-render").forEach(K),performance.getEntriesByName("Next.js-route-change-to-render").forEach(K)),ee())}}function ee(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach((function(e){return performance.clearMarks(e)})),["Next.js-before-hydration","Next.js-hydration","Next.js-route-change-to-render","Next.js-render"].forEach((function(e){return performance.clearMeasures(e)}))}function te(e){var t=e.children;return d.default.createElement(Y,{fn:function(e){return W({App:F,err:e}).catch((function(e){return console.error("Error rendering page: ",e)}))}},d.default.createElement(x.RouterContext.Provider,{value:(0,v.makePublicRouterInstance)(L)},d.default.createElement(w.HeadManagerContext.Provider,{value:X.updateHead},t)))}var re=function(e){return function(t){var r=(0,l.default)({},t,{Component:U,err:C,router:L});return d.default.createElement(te,null,d.default.createElement(e,r))}};function ne(e){var t,r,a,o,i,u,c,s,p,f,h;return n.async((function(m){for(;;)switch(m.prev=m.next){case 0:if(t=e.App,r=e.Component,a=e.props,o=e.err,a||!r||r===O||H.Component!==O){m.next=8;break}return u=(i=L).pathname,c=i.query,s=i.asPath,p=re(t),f={router:L,AppTree:p,Component:O,ctx:{err:o,pathname:u,query:c,asPath:s,AppTree:p}},m.next=7,n.awrap((0,y.loadGetInitialProps)(t,f));case 7:a=m.sent;case 8:r=r||H.Component,a=a||H.props,h=(0,l.default)({},a,{Component:r,err:o,router:L}),H=h,Z.emit("before-reactdom-render",{Component:r,ErrorComponent:O,appProps:h}),J(d.default.createElement(te,null,d.default.createElement(t,h)),G),Z.emit("after-reactdom-render",{Component:r,ErrorComponent:O,appProps:h});case 16:case"end":return m.stop()}}))}},K47E:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},N9n2:function(e,t,r){var n=r("SqZg"),a=r("vjea");e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=n(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}},ZDA2:function(e,t,r){var n=r("iZP3"),a=r("K47E");e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!==typeof t?a(e):t}},htGi:function(e,t,r){var n=r("UXZV");function a(){return e.exports=a=n||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}e.exports=a},yLiY:function(e,t,r){"use strict";var n;r("hfKm")(t,"__esModule",{value:!0}),t.default=function(){return n},t.setConfig=function(e){n=e}},zmvN:function(e,t,r){"use strict";var n=r("/HRN"),a=r("WaGi"),o=r("eVuF"),i=r("KI45");t.__esModule=!0,t.default=void 0;var u=i(r("dZ6Y"));function c(e,t){try{return document.createElement("link").relList.supports(e)}catch(r){}}var s=c("preload")&&!c("prefetch")?"preload":"prefetch";document.createElement("script");function p(e){if("/"!==e[0])throw new Error('Route name should start with a "/", got "'+e+'"');return"/"===(e=e.replace(/\/index$/,"/"))?e:e.replace(/\/$/,"")}function f(e,t,r){return new o((function(n,a,o){(o=document.createElement("link")).crossOrigin=void 0,o.href=e,o.rel=t,r&&(o.as=r),o.onload=n,o.onerror=a,document.head.appendChild(o)}))}var l=function(){function e(t,r){n(this,e),this.buildId=t,this.assetPrefix=r,this.pageCache={},this.pageRegisterEvents=(0,u.default)(),this.loadingRoutes={},this.promisedBuildManifest=new o((function(e){window.__BUILD_MANIFEST?e(window.__BUILD_MANIFEST):window.__BUILD_MANIFEST_CB=function(){e(window.__BUILD_MANIFEST)}}))}return a(e,[{key:"getDependencies",value:function(e){var t=this;return this.promisedBuildManifest.then((function(r){return r[e]&&r[e].map((function(e){return t.assetPrefix+"/_next/"+encodeURI(e)}))||[]}))}},{key:"loadPage",value:function(e){return this.loadPageScript(e).then((function(e){return e.page}))}},{key:"loadPageScript",value:function(e){var t=this;return e=p(e),new o((function(r,n){var a=t.pageCache[e];if(a){var o=a.error,i=a.page,u=a.mod;o?n(o):r({page:i,mod:u})}else t.pageRegisterEvents.on(e,(function a(o){var i=o.error,u=o.page,c=o.mod;t.pageRegisterEvents.off(e,a),delete t.loadingRoutes[e],i?n(i):r({page:u,mod:c})})),document.querySelector('script[data-next-page="'+e+'"]')||t.loadingRoutes[e]||(t.loadingRoutes[e]=!0,t.getDependencies(e).then((function(r){r.forEach((function(r){/\.js$/.test(r)&&!document.querySelector('script[src^="'+r+'"]')&&t.loadScript(r,e,!1),/\.css$/.test(r)&&!document.querySelector('link[rel=stylesheet][href^="'+r+'"]')&&f(r,"stylesheet").catch((function(){}))})),t.loadRoute(e)})))}))}},{key:"loadRoute",value:function(e){var t="/"===(e=p(e))?"/index.js":e+".js",r=this.assetPrefix+"/_next/static/"+encodeURIComponent(this.buildId)+"/pages"+encodeURI(t);this.loadScript(r,e,!0)}},{key:"loadScript",value:function(e,t,r){var n=this,a=document.createElement("script");a.crossOrigin=void 0,a.src=e,a.onerror=function(){var r=new Error("Error loading script "+e);r.code="PAGE_LOAD_ERROR",n.pageRegisterEvents.emit(t,{error:r})},document.body.appendChild(a)}},{key:"registerPage",value:function(e,t){var r=this;!function(){try{var n=t(),a={page:n.default||n,mod:n};r.pageCache[e]=a,r.pageRegisterEvents.emit(e,a)}catch(o){r.pageCache[e]={error:o},r.pageRegisterEvents.emit(e,{error:o})}}()}},{key:"prefetch",value:function(e,t){var r,n,a=this;if((r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType)))return o.resolve();if(t)n=e;else{var i=("/"===(e=p(e))?"/index":e)+".js";0,n=this.assetPrefix+"/_next/static/"+encodeURIComponent(this.buildId)+"/pages"+encodeURI(i)}return o.all(document.querySelector('link[rel="'+s+'"][href^="'+n+'"], script[data-next-page="'+e+'"]')?[]:[f(n,s,n.match(/\.css$/)?"style":"script"),!t&&this.getDependencies(e).then((function(e){return o.all(e.map((function(e){return a.prefetch(e,!0)})))}))]).then((function(){}),(function(){}))}}]),e}();t.default=l}},[["BMP1",0,2,1,3,4]]]);