text: (window.webpackJsonp=window.webpackJsonp||[]).push([[7],{175:function(e,t,n){"use strict";n.r(t);var a,r=n(244),o=n.n(r),i=n(0),c=n.n(i),u=n(187),s=n(197),l=n(183),d=function(e){var t=e.title,n=e.category,a=e.selectCategory;return c.a.createElement("li",{className:"item",role:"tab","aria-selected":n===t?"true":"false"},c.a.createElement("div",{onClick:function(){return a(t)}},t))},f=n(180),m=(n(170),function(e){var t=e.categories,n=e.category,a=e.selectCategory;return c.a.createElement("ul",{className:"category-container",role:"tablist",id:"category",style:{margin:"0 -"+Object(f.a)(.75)}},c.a.createElement(d,{title:"All",category:n,selectCategory:a}),t.map(function(e,t){return c.a.createElement(d,{key:t,title:e,category:n,selectCategory:a})}))}),h=(n(171),c.a.memo(function(e){var t=e.children;return c.a.createElement("div",{className:"thumbnail-container"},t)})),g=n(176),p=(n(38),n(36),n(181)),v="#___gatsby",b="observed",E="visible",y="20px",w=.8;function A(e){return e.filter(function(e){return e.isIntersecting}).forEach(function(e){var t=e.target;return p.a(t,E)})}function k(){return p.e("."+b).forEach(function(e){return a.observe(e)})}function x(){if(!a)throw Error("Not found IntersectionObserver instance");return Promise.resolve(a.disconnect())}n(172);var S=function(e){var t=e.node;return c.a.createElement(g.a,{className:"thumbnail "+b,to:t.fields.slug},c.a.createElement("div",{key:t.fields.slug},c.a.createElement("h3",null,t.frontmatter.title||t.fields.slug),c.a.createElement("p",{dangerouslySetInnerHTML:{__html:t.excerpt}})))},C=n(178),I=function(e){var t=e.posts,n=e.countOfInitialPost,a=e.count,r=e.category,o=Object(i.useMemo)(function(){return t.filter(function(e){var t=e.node;return r===C.a.ALL||t.frontmatter.category===r}).slice(0,a*n)});return c.a.createElement(h,null,o.map(function(e,t){var n=e.node;return c.a.createElement(S,{node:n,key:"item_"+t})}))},O=n(202),N=n(216),H=n.n(N);function L(e){return!e||e==={}}function M(e,t){if(!L(e)){var n=e.getItem(t);if(n)return JSON.parse(n)}}function R(e,t,n){if(!L(e))return e.setItem(t,JSON.stringify(n))}var F="undefined"!=typeof window?window:{},B=F.localStorage,T=F.sessionStorage,j=H()(R,T),z=H()(M,T),D=(H()(R,B),H()(M,B),"__felog_session_storage_key__");n.d(t,"pageQuery",function(){return J});t.default=function(e){var t,n=e.data,r=e.location,d=(t=1,z(D+"/count")||t),f=function(e){return z(D+"/category")||e}(C.a.ALL),h=Object(i.useState)(d),g=h[0],b=h[1],E=Object(i.useRef)(g),S=Object(i.useState)(f),N=S[0],H=S[1],L=n.site.siteMetadata,M=L.configs.countOfInitialPost,R=n.allMarkdownRemark.edges,F=o()(R.map(function(e){return e.node.frontmatter.category}));Object(i.useEffect)(function(){return window.addEventListener("scroll",B,{passive:!1}),a=new IntersectionObserver(A,{root:p.d(v),rootMargin:y,threshold:w}),k(),O.c(),function(){window.removeEventListener("scroll",B,{passive:!1}),x().then(function(){return a=null}),O.a()}},[]),Object(i.useEffect)(function(){E.current=g,x().then(k),j(D+"/count",g),function(e){j(D+"/category",e)}(N)});var B=function(){var e=window.scrollY+window.innerHeight,t=function(){return function(e){return p.c()-e}(e)<80};return function(e,t){var n=t.dismissCondition,a=void 0===n?function(){return!1}:n,r=t.triggerCondition,o=void 0===r?function(){return!0}:r;if(!e)throw Error("Invalid required arguments");var i=!1;return function(){if(!i)return i=!0,requestAnimationFrame(function(){if(!a())return o()?(i=!1,e()):void 0;i=!1})}}(function(){return b(function(e){return e+1})},{dismissCondition:function(){return!t()},triggerCondition:function(){return t()&&R.length>E.current*M}})()};return c.a.createElement(u.a,{location:r,title:L.title},c.a.createElement(l.a,{title:C.c,keywords:L.keywords}),c.a.createElement(s.a,null),c.a.createElement(m,{categories:F,category:N,selectCategory:function(e){H(e),O.b(316)}}),c.a.createElement(I,{posts:R,countOfInitialPost:M,count:g,category:N}))};var J="751586297"},176:function(e,t,n){"use strict";n.d(t,"b",function(){return l});var a=n(0),r=n.n(a),o=n(4),i=n.n(o),c=n(33),u=n.n(c);n.d(t,"a",function(){return u.a});n(179);var s=r.a.createContext({}),l=function(e){return r.a.createElement(s.Consumer,null,function(t){return e.data||t[e.query]&&t[e.query].data?(e.render||e.children)(e.data?e.data.data:t[e.query].data):r.a.createElement("div",null,"Loading (StaticQuery)")})};l.propTypes={data:i.a.object,query:i.a.string.isRequired,render:i.a.func,children:i.a.func}},178:function(e,t,n){"use strict";var a={ALL:"All"},r={LIGHT:"light",DARK:"dark"};n.d(t,"c",function(){return"Home"}),n.d(t,"a",function(){return a}),n.d(t,"d",function(){return r}),n.d(t,"b",function(){return"en"})},179:function(e,t,n){var a;e.exports=(a=n(182))&&a.default||a},180:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var a=n(188),r=n.n(a),o=n(189),i=n.n(o);i.a.overrideThemeStyles=function(){return{a:{boxShadow:"none",textDecoration:"none",color:"#0687f0"},"a.gatsby-resp-image-link":{boxShadow:"none",textDecoration:"none"},"a:hover":{textDecoration:"none"},h1:{fontWeight:800,lineHeight:1.2,fontFamily:"Catamaran"},h2:{fontWeight:700,lineHeight:1.2,marginTop:"56px",marginBottom:"20px",fontFamily:"Catamaran"},ul:{marginBottom:"6px"},li:{marginBottom:"2px"}}};var c=new r.a(i.a);var u=c.rhythm;c.scale},181:function(e,t,n){"use strict";n.d(t,"e",function(){return a}),n.d(t,"d",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return c}),n.d(t,"g",function(){return u}),n.d(t,"f",function(){return s}),n.d(t,"c",function(){return l});var a=function(e){return document.querySelectorAll(e)},r=function(e){return document.querySelector(e)},o=function(e,t){return e.classList.add(t)},i=function(){return r("body")},c=function(e){return o(i(),e)},u=function(e){return function(e,t){return e.classList.remove(t)}(i(),e)},s=function(e){return function(e,t){return e.classList.contains(t)}(i(),e)},l=function(){return document.documentElement.offsetHeight}},182:function(e,t,n){"use strict";n.r(t);n(34);var a=n(0),r=n.n(a),o=n(4),i=n.n(o),c=n(55),u=n(2),s=function(e){var t=e.location,n=u.default.getResourcesForPathnameSync(t.pathname);return r.a.createElement(c.a,Object.assign({location:t,pageResources:n},n.json))};s.propTypes={location:i.a.shape({pathname:i.a.string.isRequired}).isRequired},t.default=s},183:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var a=n(184),r=n(0),o=n.n(r),i=n(4),c=n.n(i),u=n(196),s=n.n(u),l=n(176);function d(e){var t=e.description,n=e.lang,r=e.meta,i=e.keywords,c=e.title;return o.a.createElement(l.b,{query:f,render:function(e){var a=t||e.site.siteMetadata.description;return o.a.createElement(s.a,{htmlAttributes:{lang:n},title:c,titleTemplate:"%s | "+e.site.siteMetadata.title,meta:[{name:"description",content:a},{property:"og:title",content:c},{property:"og:description",content:a},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:creator",content:e.site.siteMetadata.author},{name:"twitter:title",content:c},{name:"twitter:description",content:a}].concat(i.length>0?{name:"keywords",content:i.join(", ")}:[]).concat(r)})},data:a})}d.defaultProps={lang:"en",meta:[],keywords:[]},d.propTypes={description:c.a.string,lang:c.a.string,meta:c.a.array,keywords:c.a.arrayOf(c.a.string),title:c.a.string.isRequired};var f="1025518380"},184:function(e){e.exports={data:{site:{siteMetadata:{title:"Zero1's Note",description:"Blog posted about ...",author:"[Zero1"}}}}},187:function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(176),i=(n(153),function(){return r.a.createElement("a",{href:"https://github.com/JaeYeopHan/felog",className:"github","aria-label":"GitHub"},r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},r.a.createElement("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})))}),c=(n(154),function(e){var t=e.title,n=e.location,a=e.rootPath,c=n.pathname===a;return r.a.createElement("div",{className:"top"},!c&&r.a.createElement(o.a,{to:"/",className:"link"},t),r.a.createElement(i,null))}),u=(n(155),function(e){var t=e.title,n=e.location,a=e.rootPath;return n.pathname===a&&r.a.createElement("h1",{className:"home-header"},r.a.createElement(o.a,{to:"/",className:"link"},t))}),s=n(195),l=n.n(s),d=n(181),f=n(178);n(156);var m=function(){var e=Object(a.useState)(!1),t=e[0],n=e[1],o=function(e){var t=function(e){return e?f.d.DARK:f.d.LIGHT}(e);n(e),function(e){switch(e){case f.d.LIGHT:d.b(f.d.LIGHT),d.g(f.d.DARK);break;case f.d.DARK:d.b(f.d.DARK),d.g(f.d.LIGHT)}}(t)};return Object(a.useEffect)(function(){var e=d.f(f.d.DARK);o(e)},[]),r.a.createElement("div",{className:"switch-container"},r.a.createElement("label",{htmlFor:"normal-switch"},r.a.createElement(l.a,{onChange:o,checked:t,id:"normal-switch",height:24,width:48,checkedIcon:r.a.createElement("div",{className:"icon checkedIcon"},"D"),uncheckedIcon:r.a.createElement("div",{className:"icon uncheckedIcon"},"L"),offColor:"#d9dfe2",offHandleColor:"#fff",onColor:"#999",onHandleColor:"#282c35"})))},h=(n(157),function(){return r.a.createElement("footer",{className:"footer"},"©",r.a.createElement("a",{href:"https://github.com/JaeYeopHan"},"Jbee"),", Built with"," ",r.a.createElement("a",{href:"https://github.com/JaeYeopHan/gatsby-starter-bee"},"Gatsby-starter-bee"))}),g=n(180);n(158);n.d(t,"a",function(){return p});var p=function(e){var t=e.location,n=e.title,a=e.children;return r.a.createElement(r.a.Fragment,null,r.a.createElement(c,{title:n,location:t,rootPath:"/"}),r.a.createElement("div",{style:{marginLeft:"auto",marginRight:"auto",maxWidth:Object(g.a)(24),padding:Object(g.a)(1.5)+" "+Object(g.a)(.75)}},r.a.createElement(m,null),r.a.createElement(u,{title:n,location:t,rootPath:"/"}),a,r.a.createElement(h,null)))}},197:function(e,t,n){"use strict";n.d(t,"a",function(){return s});n(198);var a=n(200),r=n(0),o=n.n(r),i=n(176),c=n(201),u=n.n(c),s=(n(159),function(){return o.a.createElement(i.b,{query:l,render:function(e){var t=e.site.siteMetadata,n=t.author,a=t.social,r=t.introduction;return o.a.createElement("div",{className:"bio"},o.a.createElement("div",{className:"author"},o.a.createElement("div",{className:"author-description"},o.a.createElement(u.a,{className:"author-image",fixed:e.avatar.childImageSharp.fixed,alt:n,style:{borderRadius:"100%"}}),o.a.createElement("div",{className:"author-name"},o.a.createElement("span",{className:"author-name-prefix"},"Written by"),o.a.createElement(i.a,{to:"/about",className:"author-name-content"},o.a.createElement("span",null,"@",n)),o.a.createElement("div",{className:"author-introduction"},r),o.a.createElement("p",{className:"author-socials"},a.github&&o.a.createElement("a",{href:"https://github.com/"+a.github},"GitHub"),a.medium&&o.a.createElement("a",{href:"https://medium.com/"+a.medium},"Medium"),a.twitter&&o.a.createElement("a",{href:"https://twitter.com/"+a.twitter},"Twitter"),a.facebook&&o.a.createElement("a",{href:"https://www.facebook.com/"+a.facebook},"Facebook"))))))},data:a})}),l="1177532027"},200:function(e){e.exports={data:{avatar:{childImageSharp:{fixed:{base64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAPCAIAAABr+ngCAAAACXBIWXMAAAsSAAALEgHS3X78AAADJUlEQVQozxVS22scZRwd3/yTpK2XJx8EhWqpRKPENktMs26zl2ya7M7MzszO5ZvrN9997skmpmksQSVVG0ILCqElxtIXIZiWCn3wQSgEfK4TOJyX3++cA4cjKSgaQL/GagRuBaDvgyXX6oFxFxhtS+t7hoK9tqMt2loHjDuuueiYHeC0gdu2bQnmLEoxzLEvIsAihwauiB0GHRq5PHZ4bJHApqFFfAsDiwAD2Xo81mJ9BDUpXRNJxfJJsn67LDbSbJ2LitIckQzhFOKac0IyQgvOylSsF7zKWMHOkVMpr1BWoKrCW9v5zo74dptnVZzkkKWhSKHIQpb6NAmo8FlyDp4FLA14HrEUSuUaK0qcl6SoSFXiqoBFHooEMG4T7pxraos0FhlKCpLkJM2RqMWJV1+l2rvOEWnIEpenHk/OA2vmwuO1mFtEOIg5mAGcuEh4JAlJAnECiYgkymxMTEIdRCyIjBjpCOuYjhF1KHM4B5xZjBmMaoLplBmYGojoMdEjbEgMa4zoGOsEGxiNcayjSI3DAQwHCI0QHsd13xgI5gkKBLU5tTixKDJQrEkCjgSUU6zyWBFYzbhRFUFRt0VdCrV6AYG3GoZyFI0iaBBsM2ITZCI4RpEh7W6wnTUy4aCMRxQsp7EC5NZm5prqSko0CuWw3o7T9+xujXpBMBziSEFQ9T1Z2hTm7oQcP7z35NcDVVMvXrowc/kDOJbfe/t9X2nvlm79cLvwSmYm8SgES761yOCQxzKJBtLh3uTolztnp8ev/zk53P/+3UsXW1c/Er4lvfHmBDn/PTs++e3e88f3nz26/9fhz3tbWF6+Nliev7PODn7clp4+vPvkYOfF0f7fR/vPH/2Uh6byTWOTB+9ceKvxxWcv/3hwdnp0dvr7q5PH//55+PTB3QkeOYOv9zbCHypPGq1ed7UmsnvCX3FHzQk2tri5QXRPad1qNVy1+V3m7G2iCdGzYDDsfKX2ZrV+w1iZG3a/lObnPlzufd5auNJtTy3Mf3Kj8fHKzZml5tRgcVruzXQWPm02rii969Zwvt+a7t6YVpdmF65dbs9Nyd3Z/wFbkvbQmaC5FgAAAABJRU5ErkJggg==",width:72,height:72,src:"/static/edd376b69dcb197ba3a021f9e5667718/f53aa/profile.png",srcSet:"/static/edd376b69dcb197ba3a021f9e5667718/f53aa/profile.png 1x,\n/static/edd376b69dcb197ba3a021f9e5667718/0ccf0/profile.png 1.5x,\n/static/edd376b69dcb197ba3a021f9e5667718/34113/profile.png 2x,\n/static/edd376b69dcb197ba3a021f9e5667718/5584e/profile.png 3x"}}},site:{siteMetadata:{author:"[Zero1",introduction:"This blog is for that I organize what I study and my thinking, feeling and experience.",social:{twitter:"",github:"https://github.com/2Zero1",medium:"",facebook:""}}}}}},202:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return u});var a,r=n(203),o=n.n(r);function i(){return a=new o.a('a[href*="#"]',{speed:500,speedAsDuration:!0})}function c(){if(!a)throw Error("Not founded SmoothScroll instance");return a.destroy(),a=null}function u(e){if(!a)throw Error("Not founded SmoothScroll instance");return a.animateScroll(e),a}}}]);
  //# sourceMappingURL=component---src-pages-index-js-a2ee29a22cd86ee8d098.js.map