(this["webpackJsonpnebula-blog-app"]=this["webpackJsonpnebula-blog-app"]||[]).push([[0],{188:function(e,t,n){"use strict";n.r(t);var a=n(0),i=n(1),r=n.n(i),c=n(70),s=n.n(c),o=(n(83),n(84),n(20)),u=n(2),l=n(26),d=n.n(l);var h,j=function(){return Object(a.jsxs)("div",{className:d.a.Logo,children:[Object(a.jsx)("div",{className:d.a.Background,style:{background:"url(".concat("","/img/nebula.jpg)")}}),Object(a.jsx)("div",{className:d.a.Clouds,style:{background:"url(".concat("","/img/clouds.png)")}})]})},b=n(39),f=n.n(b);!function(e){e.NebulaGray="#424242",e.NebulaLightGray="#dbdbdb",e.NebulaDarkGray="#262626",e.White="#ffffff"}(h||(h={}));var p=h,v=n(71),O=n.n(v);function m(e){var t=e.label,n=e.path;return Object(a.jsx)("span",{className:O.a.Link,children:Object(a.jsx)(o.b,{to:n,children:t})})}function x(e){var t=e.items,n=void 0===t?[]:t;return Object(a.jsxs)("div",{children:[Object(a.jsx)(j,{}),Object(a.jsx)("nav",{children:Object(a.jsx)("ul",{className:f.a.List,children:n.map((function(e){return Object(a.jsx)("li",{className:f.a.Item,style:{color:p.NebulaGray},children:Object(a.jsx)(m,{label:e.label,path:e.path})},e.label)}))})})]})}var g=n(42),_=n.n(g),y=n(5),w=n(17),k=function(){function e(){Object(y.a)(this,e)}return Object(w.a)(e,null,[{key:"getRandomNumber",value:function(e,t){var n=Math.ceil(e),a=Math.floor(t);return Math.floor(Math.random()*(a-n)+n)}},{key:"parseNumber",value:function(e){return e?parseInt(e,10):0}}]),e}();function C(){var e=["".concat("","/profile/munan.jpg"),"".concat("","/profile/back.jpg"),"".concat("","/profile/birthday.gif")],t=e[k.getRandomNumber(0,e.length)];return Object(a.jsxs)("div",{children:[Object(a.jsx)("div",{className:_.a.ImgWrap,children:Object(a.jsx)("img",{src:t,alt:"birthday"})}),Object(a.jsx)("div",{className:_.a.Profile,children:Object(a.jsxs)("ul",{children:[Object(a.jsx)("li",{children:" \uac15\uc9c0\ud604 "}),Object(a.jsx)("li",{children:" rednebula01018@gmail.com "}),Object(a.jsx)("li",{children:Object(a.jsx)("br",{})}),Object(a.jsx)("li",{children:" \ub9d8\ud3b8\ud55c\uc138\uc0c1, Cofounder \uac1c\ubc1c\ud30c\ud2b8\uc7a5, (2016 -) "}),Object(a.jsx)("li",{children:" LG CNS, Software Engineer Intern, (2016) "}),Object(a.jsx)("li",{children:"Defense Communication Command Force, Software Developer, (2012 - 2014)"}),Object(a.jsx)("li",{children:"Korea University, Computer Science and Engineering, Brain and Cognitive Science, (2010 - 2016)"})]})})]})}var N=n(9),L=n.n(N),B=n(14),W=n(18),A=n(27),T=n.n(A);var D=function(e){var t=e.children;return Object(a.jsx)("h3",{children:t})},I=n(73),S=n.n(I);var R=function(e){var t=e.children;return Object(a.jsx)("p",{className:S.a.Caption,children:t})};var G=function(e){var t=e.date;return Object(a.jsx)("span",{children:t.toLocaleDateString()})};var P=function(e){var t=e.articles;return Object(a.jsx)("div",{className:T.a.Wrap,children:t.map((function(e){return Object(a.jsxs)("div",{className:T.a.Item,children:[Object(a.jsx)("a",{href:"/articles/".concat(e.id),children:Object(a.jsx)(D,{children:e.title})}),Object(a.jsx)("div",{className:T.a.CreateDate,children:Object(a.jsx)(R,{children:Object(a.jsx)(G,{date:e.createdAt})})})]},e.id)}))})};function H(e){var t=e.repository,n=Object(i.useState)([]),r=Object(W.a)(n,2),c=r[0],s=r[1];return Object(i.useEffect)((function(){function e(){return(e=Object(B.a)(L.a.mark((function e(){var n;return L.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.get();case 2:n=e.sent,s(n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),0===c.length?null:Object(a.jsx)(a.Fragment,{children:Object(a.jsx)(P,{articles:c})})}var F=n(28),M=n.n(F);function E(){return Object(a.jsx)("div",{className:M.a.Wrap,children:Object(a.jsx)("div",{className:M.a.BackgroundWrap,children:Object(a.jsx)("img",{src:"".concat("","/img/home-nebula-1.png"),alt:"home",className:M.a.BackGroundImage})})})}var q=n(74),J=n.n(q),V=function(){function e(t,n,a){Object(y.a)(this,e),this.boundWidth=t,this.boundHeight=n,this.x=0,this.y=0,this.len=0,this.speed=0,this.size=0,this.wait=0,this.active=!1,a&&(this.wait=a),this.reset()}return Object(w.a)(e,[{key:"isOut",value:function(){return this.x<0||this.y>=this.boundHeight}},{key:"update",value:function(){this.active?(this.x-=this.speed,this.y+=this.speed,this.isOut()&&this.reset()):this.wait<(new Date).getTime()&&(this.active=!0)}},{key:"reset",value:function(){this.x=Math.random()*this.boundWidth,this.y=0,this.len=80*Math.random()+10,this.speed=8*Math.random(),this.size=Math.random()+.1,this.wait=this.wait||(new Date).getTime()+3e3*Math.random()+500,this.active=!1}}]),e}();function z(e,t,n,a,i,r){var c=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];e.beginPath(),e.moveTo(t+r,n),e.lineTo(t+a-r,n),e.quadraticCurveTo(t+a,n,t+a,n+r),e.lineTo(t+a,n+i-r),e.quadraticCurveTo(t+a,n+i,t+a-r,n+i),e.lineTo(t+r,n+i),e.quadraticCurveTo(t,n+i,t,n+i-r),e.lineTo(t,n+r),e.quadraticCurveTo(t,n,t+r,n),e.closePath(),c&&e.fill(),s&&e.stroke()}var X=function(){var e=window.innerWidth,t=document.body.offsetHeight||window.innerHeight,n=Object(i.useRef)(null),r=Object(i.useState)([new V(e,t,0),new V(e,t,6e3),new V(e,t,12e3),new V(e,t,18e3),new V(e,t,24e3),new V(e,t,3e4)]),c=Object(W.a)(r,1)[0],s=function(n,a,i,r){var c=r.length;for(!function(e){var t=e.getBoundingClientRect(),n=t.width,a=t.height;if(e.width!==n||e.height!==a){var i=window.devicePixelRatio,r=void 0===i?1:i,c=e.getContext("2d");return e.width=n*r,e.height=a*r,c.scale(r,r),!0}}(a),n.fillStyle=p.White,n.fillRect(0,0,e,t),n.fillStyle=p.NebulaLightGray,n.shadowBlur=100,n.shadowColor=p.NebulaGray;c--;)r[c].update(),r[c].active&&!r[c].isOut()&&(n.fillStyle=p.NebulaDarkGray,n.strokeStyle=p.NebulaLightGray,n.lineWidth=r[c].size,n.beginPath(),n.moveTo(r[c].x,r[c].y),n.lineTo(r[c].x+r[c].len,r[c].y-r[c].len),n.stroke(),n.fillStyle=p.NebulaLightGray,n.shadowBlur=100,n.shadowColor=p.NebulaGray,z(n,r[c].x-1.5,r[c].y-1.5,3,3,1.5))};return Object(i.useEffect)((function(){var e,t=n.current;if(t){var a=t.getContext("2d");!function n(){s(a,t,0,c),e=window.requestAnimationFrame(n)}()}return function(){window.cancelAnimationFrame(e)}}),[s]),Object(a.jsx)("canvas",{ref:n,className:J.a.Canvas})};var Y=function(e){var t=e.children;return Object(a.jsx)("h1",{style:{marginTop:40,marginBottom:40},children:t})};function K(){return Object(a.jsx)(a.Fragment,{children:Object(a.jsx)(Y,{children:"\uc874\uc7ac\ud558\uc9c0 \uc54a\ub294 \ud398\uc774\uc9c0\uc785\ub2c8\ub2e4."})})}var U=n(75),Q=n.n(U),Z=n(43),$=n.n(Z);var ee=function(e){var t=e.title,n=e.contents,r=e.id;return Object(i.useEffect)((function(){try{FB.XFBML.parse()}catch(e){console.error(e)}}),[]),Object(a.jsxs)("div",{children:[Object(a.jsxs)(Y,{children:[" ",t," "]}),Object(a.jsx)(Q.a,{className:$.a.Wrap,children:n}),Object(a.jsx)("div",{className:$.a.Comment,children:Object(a.jsx)("div",{className:"fb-comments","data-href":"https://orangenebula.io/articles/".concat(r),"data-width":"100%","data-numposts":"5"})})]})};function te(e){var t=e.repository,n=Object(i.useState)(null),r=Object(W.a)(n,2),c=r[0],s=r[1],o=Object(u.f)(),l=Object(u.g)().id;return Object(i.useEffect)((function(){function e(){return(e=Object(B.a)(L.a.mark((function e(){var n;return L.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.find(k.parseNumber(l));case 2:(n=e.sent)||o.push("/notfound"),s(n);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}c||function(){e.apply(this,arguments)}()})),Object(a.jsxs)(a.Fragment,{children:[!c&&Object(a.jsx)("span",{children:" \ub85c\ub529\uc911 "}),c&&Object(a.jsx)(ee,{title:c.title,contents:c.contents,id:c.id})]})}var ne=n(77),ae=n(76),ie=n(44),re=n.n(ie),ce=function e(t,n,a,i,r){Object(y.a)(this,e),this.id=t,this.title=n,this.contents=a,this.updatedAt=r,this.createdAt=void 0,this.createdAt=i||new Date},se=function e(t,n,a,i){Object(y.a)(this,e),this.id=t,this.title=n,this.createdAt=a,this.url=i},oe=function(e){Object(ne.a)(n,e);var t=Object(ae.a)(n);function n(){return Object(y.a)(this,n),t.apply(this,arguments)}return Object(w.a)(n,[{key:"get",value:function(){var e=Object(B.a)(L.a.mark((function e(){var t,n;return L.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,re()("".concat("","/articles/index.json"));case 2:return t=e.sent,n=t.data,e.abrupt("return",n.articles.sort((function(e,t){return e.id