-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-index-js-e58c36e5909f3898e6fa.js
2 lines (2 loc) · 13.1 KB
/
component---src-pages-index-js-e58c36e5909f3898e6fa.js
1
2
"use strict";(self.webpackChunkmy_gatsby_site=self.webpackChunkmy_gatsby_site||[]).push([[293],{2729:function(e){const t=/[\p{Lu}]/u,a=/[\p{Ll}]/u,n=/^[\p{Lu}](?![\p{Lu}])/gu,r=/([\p{Alpha}\p{N}_]|$)/u,s=/[_.\- ]+/,i=new RegExp("^"+s.source),l=new RegExp(s.source+r.source,"gu"),o=new RegExp("\\d+"+r.source,"gu"),c=(e,r)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(r={pascalCase:!1,preserveConsecutiveUppercase:!1,...r},0===(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length)return"";const s=!1===r.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(r.locale),c=!1===r.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(r.locale);if(1===e.length)return r.pascalCase?c(e):s(e);return e!==s(e)&&(e=((e,n,r)=>{let s=!1,i=!1,l=!1;for(let o=0;o<e.length;o++){const c=e[o];s&&t.test(c)?(e=e.slice(0,o)+"-"+e.slice(o),s=!1,l=i,i=!0,o++):i&&l&&a.test(c)?(e=e.slice(0,o-1)+"-"+e.slice(o-1),l=i,i=!1,s=!0):(s=n(c)===c&&r(c)!==c,l=i,i=r(c)===c&&n(c)!==c)}return e})(e,s,c)),e=e.replace(i,""),e=r.preserveConsecutiveUppercase?((e,t)=>(n.lastIndex=0,e.replace(n,(e=>t(e)))))(e,s):s(e),r.pascalCase&&(e=c(e.charAt(0))+e.slice(1)),((e,t)=>(l.lastIndex=0,o.lastIndex=0,e.replace(l,((e,a)=>t(a))).replace(o,(e=>t(e)))))(e,c)};e.exports=c,e.exports.default=c},2532:function(e,t,a){a.d(t,{L:function(){return g},M:function(){return N},P:function(){return E},S:function(){return H},_:function(){return l},a:function(){return i},b:function(){return u},g:function(){return d},h:function(){return o}});var n=a(6540),r=(a(2729),a(5556)),s=a.n(r);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},i.apply(this,arguments)}function l(e,t){if(null==e)return{};var a,n,r={},s=Object.keys(e);for(n=0;n<s.length;n++)t.indexOf(a=s[n])>=0||(r[a]=e[a]);return r}const o=()=>"undefined"!=typeof HTMLImageElement&&"loading"in HTMLImageElement.prototype;function c(e,t,a){const n={};let r="gatsby-image-wrapper";return"fixed"===a?(n.width=e,n.height=t):"constrained"===a&&(r="gatsby-image-wrapper gatsby-image-wrapper-constrained"),{className:r,"data-gatsby-image-wrapper":"",style:n}}function u(e,t,a,n,r){return void 0===r&&(r={}),i({},a,{loading:n,shouldLoad:e,"data-main-image":"",style:i({},r,{opacity:t?1:0})})}function d(e,t,a,n,r,s,l,o){const c={};s&&(c.backgroundColor=s,"fixed"===a?(c.width=n,c.height=r,c.backgroundColor=s,c.position="relative"):("constrained"===a||"fullWidth"===a)&&(c.position="absolute",c.top=0,c.left=0,c.bottom=0,c.right=0)),l&&(c.objectFit=l),o&&(c.objectPosition=o);const u=i({},e,{"aria-hidden":!0,"data-placeholder-image":"",style:i({opacity:t?0:1,transition:"opacity 500ms linear"},c)});return u}const m=["children"],p=function(e){let{layout:t,width:a,height:r}=e;return"fullWidth"===t?n.createElement("div",{"aria-hidden":!0,style:{paddingTop:r/a*100+"%"}}):"constrained"===t?n.createElement("div",{style:{maxWidth:a,display:"block"}},n.createElement("img",{alt:"",role:"presentation","aria-hidden":"true",src:`data:image/svg+xml;charset=utf-8,%3Csvg%20height='${r}'%20width='${a}'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%3E%3C/svg%3E`,style:{maxWidth:"100%",display:"block",position:"static"}})):null},g=function(e){let{children:t}=e,a=l(e,m);return n.createElement(n.Fragment,null,n.createElement(p,i({},a)),t,null)},h=["src","srcSet","loading","alt","shouldLoad"],f=["fallback","sources","shouldLoad"],y=function(e){let{src:t,srcSet:a,loading:r,alt:s="",shouldLoad:o}=e,c=l(e,h);return n.createElement("img",i({},c,{decoding:"async",loading:r,src:o?t:void 0,"data-src":o?void 0:t,srcSet:o?a:void 0,"data-srcset":o?void 0:a,alt:s}))},b=function(e){let{fallback:t,sources:a=[],shouldLoad:r=!0}=e,s=l(e,f);const o=s.sizes||(null==t?void 0:t.sizes),c=n.createElement(y,i({},s,t,{sizes:o,shouldLoad:r}));return a.length?n.createElement("picture",null,a.map((e=>{let{media:t,srcSet:a,type:s}=e;return n.createElement("source",{key:`${t}-${s}-${a}`,type:s,media:t,srcSet:r?a:void 0,"data-srcset":r?void 0:a,sizes:o})})),c):c};var v;y.propTypes={src:r.string.isRequired,alt:r.string.isRequired,sizes:r.string,srcSet:r.string,shouldLoad:r.bool},b.displayName="Picture",b.propTypes={alt:r.string.isRequired,shouldLoad:r.bool,fallback:r.exact({src:r.string.isRequired,srcSet:r.string,sizes:r.string}),sources:r.arrayOf(r.oneOfType([r.exact({media:r.string.isRequired,type:r.string,sizes:r.string,srcSet:r.string.isRequired}),r.exact({media:r.string,type:r.string.isRequired,sizes:r.string,srcSet:r.string.isRequired})]))};const w=["fallback"],E=function(e){let{fallback:t}=e,a=l(e,w);return t?n.createElement(b,i({},a,{fallback:{src:t},"aria-hidden":!0,alt:""})):n.createElement("div",i({},a))};E.displayName="Placeholder",E.propTypes={fallback:r.string,sources:null==(v=b.propTypes)?void 0:v.sources,alt:function(e,t,a){return e[t]?new Error(`Invalid prop \`${t}\` supplied to \`${a}\`. Validation failed.`):null}};const N=function(e){return n.createElement(n.Fragment,null,n.createElement(b,i({},e)),n.createElement("noscript",null,n.createElement(b,i({},e,{shouldLoad:!0}))))};N.displayName="MainImage",N.propTypes=b.propTypes;const k=["as","className","class","style","image","loading","imgClassName","imgStyle","backgroundColor","objectFit","objectPosition"],L=["style","className"],S=e=>e.replace(/\n/g,""),C=function(e,t,a){for(var n=arguments.length,r=new Array(n>3?n-3:0),i=3;i<n;i++)r[i-3]=arguments[i];return e.alt||""===e.alt?s().string.apply(s(),[e,t,a].concat(r)):new Error(`The "alt" prop is required in ${a}. If the image is purely presentational then pass an empty string: e.g. alt="". Learn more: https://a11y-style-guide.com/style-guide/section-media.html`)},x={image:s().object.isRequired,alt:C},T=["as","image","style","backgroundColor","className","class","onStartLoad","onLoad","onError"],I=["style","className"],_=new Set;let j,$;const O=function(e){let{as:t="div",image:r,style:s,backgroundColor:u,className:d,class:m,onStartLoad:p,onLoad:g,onError:h}=e,f=l(e,T);const{width:y,height:b,layout:v}=r,w=c(y,b,v),{style:E,className:N}=w,k=l(w,I),L=(0,n.useRef)(),S=(0,n.useMemo)((()=>JSON.stringify(r.images)),[r.images]);m&&(d=m);const C=function(e,t,a){let n="";return"fullWidth"===e&&(n=`<div aria-hidden="true" style="padding-top: ${a/t*100}%;"></div>`),"constrained"===e&&(n=`<div style="max-width: ${t}px; display: block;"><img alt="" role="presentation" aria-hidden="true" src="data:image/svg+xml;charset=utf-8,%3Csvg%20height='${a}'%20width='${t}'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%3E%3C/svg%3E" style="max-width: 100%; display: block; position: static;"></div>`),n}(v,y,b);return(0,n.useEffect)((()=>{j||(j=a.e(108).then(a.bind(a,1108)).then((e=>{let{renderImageToString:t,swapPlaceholderImage:a}=e;return $=t,{renderImageToString:t,swapPlaceholderImage:a}})));const e=L.current.querySelector("[data-gatsby-image-ssr]");if(e&&o())return e.complete?(null==p||p({wasCached:!0}),null==g||g({wasCached:!0}),setTimeout((()=>{e.removeAttribute("data-gatsby-image-ssr")}),0)):(null==p||p({wasCached:!0}),e.addEventListener("load",(function t(){e.removeEventListener("load",t),null==g||g({wasCached:!0}),setTimeout((()=>{e.removeAttribute("data-gatsby-image-ssr")}),0)}))),void _.add(S);if($&&_.has(S))return;let t,n;return j.then((e=>{let{renderImageToString:a,swapPlaceholderImage:l}=e;L.current&&(L.current.innerHTML=a(i({isLoading:!0,isLoaded:_.has(S),image:r},f)),_.has(S)||(t=requestAnimationFrame((()=>{L.current&&(n=l(L.current,S,_,s,p,g,h))}))))})),()=>{t&&cancelAnimationFrame(t),n&&n()}}),[r]),(0,n.useLayoutEffect)((()=>{_.has(S)&&$&&(L.current.innerHTML=$(i({isLoading:_.has(S),isLoaded:_.has(S),image:r},f)),null==p||p({wasCached:!0}),null==g||g({wasCached:!0}))}),[r]),(0,n.createElement)(t,i({},k,{style:i({},E,s,{backgroundColor:u}),className:`${N}${d?` ${d}`:""}`,ref:L,dangerouslySetInnerHTML:{__html:C},suppressHydrationWarning:!0}))},A=(0,n.memo)((function(e){return e.image?(0,n.createElement)(O,e):null}));A.propTypes=x,A.displayName="GatsbyImage";const R=["src","__imageData","__error","width","height","aspectRatio","tracedSVGOptions","placeholder","formats","quality","transformOptions","jpgOptions","pngOptions","webpOptions","avifOptions","blurredOptions","breakpoints","outputPixelDensities"];function q(e){return function(t){let{src:a,__imageData:r,__error:s}=t,o=l(t,R);return s&&console.warn(s),r?n.createElement(e,i({image:r},o)):(console.warn("Image not loaded",a),null)}}const P=q((function(e){let{as:t="div",className:a,class:r,style:s,image:o,loading:m="lazy",imgClassName:p,imgStyle:h,backgroundColor:f,objectFit:y,objectPosition:b}=e,v=l(e,k);if(!o)return console.warn("[gatsby-plugin-image] Missing image prop"),null;r&&(a=r),h=i({objectFit:y,objectPosition:b,backgroundColor:f},h);const{width:w,height:C,layout:x,images:T,placeholder:I,backgroundColor:_}=o,j=c(w,C,x),{style:$,className:O}=j,A=l(j,L),R={fallback:void 0,sources:[]};return T.fallback&&(R.fallback=i({},T.fallback,{srcSet:T.fallback.srcSet?S(T.fallback.srcSet):void 0})),T.sources&&(R.sources=T.sources.map((e=>i({},e,{srcSet:S(e.srcSet)})))),n.createElement(t,i({},A,{style:i({},$,s,{backgroundColor:f}),className:`${O}${a?` ${a}`:""}`}),n.createElement(g,{layout:x,width:w,height:C},n.createElement(E,i({},d(I,!1,x,w,C,_,y,b))),n.createElement(N,i({"data-gatsby-image-ssr":"",className:p},v,u("eager"===m,!1,R,m,h)))))})),M=function(e,t){for(var a=arguments.length,n=new Array(a>2?a-2:0),r=2;r<a;r++)n[r-2]=arguments[r];return"fullWidth"!==e.layout||"width"!==t&&"height"!==t||!e[t]?s().number.apply(s(),[e,t].concat(n)):new Error(`"${t}" ${e[t]} may not be passed when layout is fullWidth.`)},z=new Set(["fixed","fullWidth","constrained"]),J={src:s().string.isRequired,alt:C,width:M,height:M,sizes:s().string,layout:e=>{if(void 0!==e.layout&&!z.has(e.layout))return new Error(`Invalid value ${e.layout}" provided for prop "layout". Defaulting to "constrained". Valid values are "fixed", "fullWidth" or "constrained".`)}};P.displayName="StaticImage",P.propTypes=J;const H=q(A);H.displayName="StaticImage",H.propTypes=J},4920:function(e,t,a){var n=a(6540),r=a(4810),s=a(9216);t.A=e=>{let{pageTitle:t,children:a}=e;return n.createElement("div",{className:s.container},n.createElement("nav",null,n.createElement("ul",{className:s.navLinks},n.createElement("li",{className:s.navLinkItem},n.createElement(r.N_,{to:"/",className:s.navLinkText},"Home")),n.createElement("li",{className:s.navLinkItem},n.createElement(r.N_,{to:"/about",className:s.navLinkText},"About")),n.createElement("li",{className:s.navLinkItem},n.createElement(r.N_,{to:"/blog",className:s.navLinkText},"Blog")),n.createElement("li",{className:s.navLinkItem},n.createElement(r.N_,{to:"/projects",className:s.navLinkText},"Projects")),n.createElement("li",{className:s.navLinkItem},n.createElement("a",{href:"https://github.com/StephenTMao",className:s.navLinkText},"Github")))),n.createElement("main",null,n.createElement("h1",{className:s.heading},t),a))}},9639:function(e,t,a){a.r(t),a.d(t,{Head:function(){return l}});var n=a(6540),r=a(4920),s=a(2532),i=a(9216);const l=()=>n.createElement("title",null,"Home Page");t.default=()=>n.createElement(r.A,{pageTitle:"Stephen Mao"},n.createElement(s.S,{alt:"me lol",src:"../images/stmaoJN-S23-cropped.jpg",class:i.CC,__imageData:a(5027)}),n.createElement("p",null,"Hi! I'm Stephen Mao, a computer science and mathematics undergraduate at Carnegie Mellon University. "),n.createElement("p",null,"I'm glad you're here, and I hope you enjoy your stay! "),n.createElement("p",null,"Contact me at",n.createElement("span",{class:i.c4},n.createElement("i",null," firstname"),".",n.createElement("i",null,"ascii84"),".",n.createElement("i",null,"lastname"),"@gmail.com")),n.createElement("p",null,'Just fill in the appropriate values (in between the ".")!',n.createElement("sup",null,n.createElement("a",{href:"#1"},"1"))),n.createElement("p",{id:"1",class:i.jC},n.createElement("sup",null,"1"),n.createElement("span",{class:i.Us},"I hope and pray in a future without spam")))},9216:function(e,t,a){a.d(t,{CC:function(){return i},Us:function(){return r},c4:function(){return n},jC:function(){return s}});var n="layout-module--bluetext--573d8",r="layout-module--footnote_body--fed5d",s="layout-module--footnote_definition--3a79c",i="layout-module--foreground_img--3fb37"},5027:function(e){e.exports=JSON.parse('{"layout":"constrained","backgroundColor":"#f8f8f8","images":{"fallback":{"src":"/static/131ccea2e2867e39d07a67b77d8f7778/3817b/stmaoJN-S23-cropped.jpg","srcSet":"/static/131ccea2e2867e39d07a67b77d8f7778/afdec/stmaoJN-S23-cropped.jpg 996w,\\n/static/131ccea2e2867e39d07a67b77d8f7778/bb730/stmaoJN-S23-cropped.jpg 1993w,\\n/static/131ccea2e2867e39d07a67b77d8f7778/3817b/stmaoJN-S23-cropped.jpg 3985w","sizes":"(min-width: 3985px) 3985px, 100vw"},"sources":[{"srcSet":"/static/131ccea2e2867e39d07a67b77d8f7778/4f49f/stmaoJN-S23-cropped.webp 996w,\\n/static/131ccea2e2867e39d07a67b77d8f7778/10dc6/stmaoJN-S23-cropped.webp 1993w,\\n/static/131ccea2e2867e39d07a67b77d8f7778/f085d/stmaoJN-S23-cropped.webp 3985w","type":"image/webp","sizes":"(min-width: 3985px) 3985px, 100vw"}]},"width":3985,"height":4000}')}}]);
//# sourceMappingURL=component---src-pages-index-js-e58c36e5909f3898e6fa.js.map