diff --git a/.htaccess b/.htaccess deleted file mode 100644 index e487510..0000000 --- a/.htaccess +++ /dev/null @@ -1,29 +0,0 @@ -RewriteEngine on -RewriteBase / - -# Redirect www to non www -RewriteCond %{HTTP_HOST} ^www.adamgraham.io -RewriteRule (.*) http://adamgraham.io/$1 [R=301,L] - -# Redirect http to https -RewriteCond %{HTTPS} off -RewriteCond %{HTTP_HOST} ^adamgraham.io -RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] -#Header always set Content-Security-Policy "upgrade-insecure-requests;" - -# Remove trailing slashes -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^(.*)/$ /$1 [L,R=301] - -# Redirect all file requests to index.html (SPA) -# RewriteCond %{REQUEST_FILENAME} !-f -# RewriteCond %{REQUEST_FILENAME} !-d -# RewriteRule (.*) index.html [QSA,L] - -# Redirect directories -RewriteRule ^game/(.*)$ /games [R=301,L] -RewriteRule ^website/(.*)$ /websites [R=301,L] -RewriteRule ^presentation/(.*)$ /presentations [R=301,L] - -# Redirect home on 404 -ErrorDocument 404 / diff --git a/.nojekyll b/.nojekyll deleted file mode 100644 index e69de29..0000000 diff --git a/00b1e3a505bf683606152336fa813a9ebca105c7-695a712967cdc6157f90.js b/00b1e3a505bf683606152336fa813a9ebca105c7-42769f3b58a9d4e2e7f7.js similarity index 94% rename from 00b1e3a505bf683606152336fa813a9ebca105c7-695a712967cdc6157f90.js rename to 00b1e3a505bf683606152336fa813a9ebca105c7-42769f3b58a9d4e2e7f7.js index d5b8b65..ec50d6c 100644 --- a/00b1e3a505bf683606152336fa813a9ebca105c7-695a712967cdc6157f90.js +++ b/00b1e3a505bf683606152336fa813a9ebca105c7-42769f3b58a9d4e2e7f7.js @@ -1,2 +1,3 @@ -(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[128],{8828:function(e){"use strict";e.exports=Object.assign},8305:function(e,t,n){"use strict";n.d(t,{oY:function(){return ze},zr:function(){return Ze}});var r=n(3892),a=n(6942),i=n.n(a),o=n(6540),l=n(8007);function c(e){return e&&"undefined"!=typeof sessionStorage&&Number.parseInt(sessionStorage.getItem(e+"-slide"))||0}const s=(e,t,n,r)=>(0,o.useMemo)((()=>({category:e,gallery:t,slideIndex:n,currentSlide:t[n],setSlideIndex:n=>{n=Math.min(Math.max(n,0),t.length-1),function(e,t){e&&"undefined"!=typeof sessionStorage&&sessionStorage.setItem(e+"-slide",t)}(e,n),r(n),(0,l.navigate)("/"+e)}})),[e,t,n]);var u=(0,o.createContext)({category:"",gallery:[],slideIndex:0,currentSlide:null,setSlideIndex:()=>{}}),m=n(5556),d=n.n(m);const g=d().shape({sharp:d().shape({original:d().shape({src:d().string.isRequired,width:d().number,height:d().number})})});d().shape({category:d().string.isRequired,date:d().string,description:d().string,description_short:d().string,id:d().string.isRequired,image:g.isRequired,imageAltText:d().string,imageBorder:d().string,title:d().string.isRequired});var p=e=>{let{className:t,slide:n}=e;const a="undefined"!=typeof navigator&&!navigator.onLine,c="/"+n.category+"/"+n.id;return o.createElement("div",{className:i()("slide",t)},o.createElement("div",{className:"slide__image-wrapper"},o.createElement(r.N_,{ElementType:l.Link,to:c,unstyled:!0},o.createElement(r.vb,{alt:n.imageAltText||"",animated:!1,className:i()("slide__image",{["slide__image--border-"+n.imageBorder]:n.imageBorder}),width:n.image.sharp.original.width,height:n.image.sharp.original.height,src:n.image.sharp.original.src,showLoadingSpinner:!a}))),o.createElement("div",{className:"slide__text-wrapper"},o.createElement("div",{className:"slide__text-container"},o.createElement("p",{className:"eyebrow"},n.date),o.createElement("h1",{className:"h3"},n.title),o.createElement("p",null,n.description_short||n.description),o.createElement(r.N_,{ElementType:l.Link,to:c,unstyled:!0},o.createElement(r.$n,{size:r.$n.size.small},"More Details")))))};var f={chevronLeft:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD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LTVoMTB2LTJIM3Yyem0wLTd2MmgxM1Y2SDN6bTE4IDkuNTlMMTcuNDIgMTIgMjEgOC40MSAxOS41OSA3bC01IDUgNSA1TDIxIDE1LjU5eiIvPjwvc3ZnPg=="};var y=e=>{let{className:t}=e;const n=(0,o.useContext)(u),a=(0,r.Ub)("(max-width: 1365px)");return o.createElement("article",{className:i()("gallery",{"gallery--vertical-layout":a},t)},o.createElement("button",{"aria-label":"Previous Slide",className:"gallery__button left",disabled:n.slideIndex<=0,onClick:()=>n.setSlideIndex(n.slideIndex-1)},n.slideIndex>0&&o.createElement("img",{alt:"",src:f.chevronLeft})),o.createElement("div",{className:"gallery__slides"},n.currentSlide&&o.createElement(p,{slide:n.currentSlide})),o.createElement("button",{"aria-label":"Next Slide",className:"gallery__button right",disabled:n.slideIndex>=n.gallery.length-1,onClick:()=>n.setSlideIndex(n.slideIndex+1)},n.slideIndexe.toUpperCase()))}var I=e=>{let{location:t,menuType:n,setMenuType:a}=e;const i=(0,o.useContext)(u),c=n===v,s=n===T;return o.createElement("header",{className:"app-menu__header"},o.createElement("div",null,o.createElement(r.N_,{className:"logo h4",ElementType:l.Link,to:"/",unstyled:!0},"Adam Graham"),void 0===i.slideIndex&&!fullscreen&&o.createElement(r.N_,{className:"app-menu__page-title h4 display-none margin-bottom-none",ElementType:l.Link,to:"/"+category,unstyled:!0},w(category)),void 0!==i.slideIndex&&o.createElement("div",{className:"app-menu__slide-buttons display-none",style:{marginLeft:"-8px"}},o.createElement("button",{"aria-label":"Previous Slide",disabled:i.slideIndex<=0,onClick:()=>i.setSlideIndex(i.slideIndex-1)},o.createElement("img",{alt:"",src:f.chevronLeft})),o.createElement("button",{"aria-label":"Next Slide",className:"margin-left-md",disabled:i.slideIndex>=i.gallery.length-1,onClick:()=>i.setSlideIndex(i.slideIndex+1)},o.createElement("img",{alt:"",src:f.chevronRight}))),o.createElement(r.jq,{links:h,LinkElementType:l.Link,location:t})),o.createElement("div",null,o.createElement(r.U1,{className:"margin-left-md margin-right-md",iconSize:20,iconInnerPadding:10,links:b}),o.createElement("button",{"aria-label":s?"Hide Gallery":"Show Gallery",className:"app-menu__gallery-button margin-left-xl",onClick:()=>a(s?E:T)},o.createElement("img",{alt:"",src:s?f.galleryOpen:f.gallery})),o.createElement("button",{"aria-label":c?"Close Menu":"Open Menu",className:"app-menu__menu-button margin-left-xl",onClick:()=>a(c?E:v)},o.createElement("img",{alt:"",src:c?f.menuOpen:f.menu}))))};var M=e=>{let{onSelect:t,open:n}=e;const r=(0,o.useContext)(u);return o.createElement("div",{"aria-hidden":!n,className:i()("app-menu__gallery-view",{open:n})},o.createElement("div",{className:"app-menu__gallery"},r.gallery.map(((e,a)=>o.createElement("button",{"aria-disabled":!n,"aria-label":e.title,className:"app-menu__thumbnail",disabled:!n,key:e.id,onClick:()=>{r.setSlideIndex(a),t(a)}},o.createElement("img",{alt:e.imageAltText||"",className:i()("img-fluid","app-menu__thumbnail-image",{["app-menu__thumbnail-image--border-"+e.imageBorder]:e.imageBorder}),width:e.image.sharp.original.width,height:e.image.sharp.original.height,src:e.image.sharp.original.src}))))))};var S=e=>{let{onLink:t,open:n}=e;return o.createElement("div",{"aria-hidden":!n,className:i()("app-menu__menu-view",{open:n})},o.createElement("ul",{className:"app-menu__nav-list"},h.map((e=>o.createElement("li",{key:e.to},o.createElement(r.N_,{activeClassName:"","aria-disabled":!n,"aria-label":e.name,disabled:!n,ElementType:e.ElementType||l.Link,external:e.external,onClick:t,tabIndex:n?0:-1,to:e.to,unstyled:!0},e.name))))))};var N,C,A,j,x=e=>{let{location:t}=e;const{0:n,1:a}=(0,o.useState)(E),l=n!==E,c=n===v,s=n===T,u=(0,o.useCallback)((()=>{a(E)}),[]);return(0,r.ln)(l,!0),o.createElement("div",{className:i()("app-menu",{"app-menu--fullscreen":l})},o.createElement("div",{className:"app-menu__container"},o.createElement(I,{location:t,menuType:n,setMenuType:a}),o.createElement("div",{className:"app-menu__body"},o.createElement(S,{onLink:u,open:c}),o.createElement(M,{onSelect:u,open:s}))))},L=n(2098),k=n.n(L),O=n(115),D=n.n(O),_=n(8828),P=n.n(_),z="bodyAttributes",H="htmlAttributes",Z="titleAttributes",R={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},B=(Object.keys(R).map((function(e){return R[e]})),"charset"),Y="cssText",G="href",U="http-equiv",W="innerHTML",q="itemprop",V="name",F="property",K="rel",Q="src",X="target",J={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},$="defaultTitle",ee="defer",te="encodeSpecialCharacters",ne="onChangeClientState",re="titleTemplate",ae=Object.keys(J).reduce((function(e,t){return e[J[t]]=t,e}),{}),ie=[R.NOSCRIPT,R.SCRIPT,R.STYLE],oe="data-react-helmet",le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},me=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},de=function(e){var t=he(e,R.TITLE),n=he(e,re);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=he(e,$);return t||r||void 0},ge=function(e){return he(e,ne)||function(){}},pe=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return se({},e,t)}),{})},fe=function(e,t){return t.filter((function(e){return void 0!==e[R.BASE]})).map((function(e){return e[R.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},be=(N=Date.now(),function(e){var t=Date.now();t-N>16?(N=t,e(t)):setTimeout((function(){be(e)}),0)}),Ee=function(e){return clearTimeout(e)},ve="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||be:n.g.requestAnimationFrame||be,Te="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Ee:n.g.cancelAnimationFrame||Ee,we=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Ie=null,Me=function(e,t){var n=e.baseTag,r=e.bodyAttributes,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,l=e.noscriptTags,c=e.onChangeClientState,s=e.scriptTags,u=e.styleTags,m=e.title,d=e.titleAttributes;Ce(R.BODY,r),Ce(R.HTML,a),Ne(m,d);var g={baseTag:Ae(R.BASE,n),linkTags:Ae(R.LINK,i),metaTags:Ae(R.META,o),noscriptTags:Ae(R.NOSCRIPT,l),scriptTags:Ae(R.SCRIPT,s),styleTags:Ae(R.STYLE,u)},p={},f={};Object.keys(g).forEach((function(e){var t=g[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(f[e]=g[e].oldTags)})),t&&t(),c(e,p,f)},Se=function(e){return Array.isArray(e)?e.join(""):e},Ne=function(e,t){void 0!==e&&document.title!==e&&(document.title=Se(e)),Ce(R.TITLE,t)},Ce=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(oe),a=r?r.split(","):[],i=[].concat(a),o=Object.keys(t),l=0;l=0;m--)n.removeAttribute(i[m]);a.length===i.length?n.removeAttribute(oe):n.getAttribute(oe)!==o.join(",")&&n.setAttribute(oe,o.join(","))}},Ae=function(e,t){var n=document.head||document.querySelector(R.HEAD),r=n.querySelectorAll(e+"["+oe+"]"),a=Array.prototype.slice.call(r),i=[],o=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===W)n.innerHTML=t.innerHTML;else if(r===Y)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var l=void 0===t[r]?"":t[r];n.setAttribute(r,l)}n.setAttribute(oe,"true"),a.some((function(e,t){return o=t,n.isEqualNode(e)}))?a.splice(o,1):i.push(n)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:a,newTags:i}},je=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[J[n]||n]=e[n],t}),t)},Le=function(e,t,n){switch(e){case R.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[oe]=!0,a=xe(n,r),[o.createElement(R.TITLE,a,e)];var e,n,r,a},toString:function(){return function(e,t,n,r){var a=je(n),i=Se(t);return a?"<"+e+" "+oe+'="true" '+a+">"+me(i,r)+"":"<"+e+" "+oe+'="true">'+me(i,r)+""}(e,t.title,t.titleAttributes,n)}};case z:case H:return{toComponent:function(){return xe(t)},toString:function(){return je(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,a=((r={key:n})[oe]=!0,r);return Object.keys(t).forEach((function(e){var n=J[e]||e;if(n===W||n===Y){var r=t.innerHTML||t.cssText;a.dangerouslySetInnerHTML={__html:r}}else a[n]=t[e]})),o.createElement(e,a)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!(e===W||e===Y)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+me(r[t],n)+'"';return e?e+" "+a:a}),""),i=r.innerHTML||r.cssText||"",o=-1===ie.indexOf(e);return t+"<"+e+" "+oe+'="true" '+a+(o?"/>":">"+i+"")}),"")}(e,t,n)}}}},ke=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,l=e.noscriptTags,c=e.scriptTags,s=e.styleTags,u=e.title,m=void 0===u?"":u,d=e.titleAttributes;return{base:Le(R.BASE,t,r),bodyAttributes:Le(z,n,r),htmlAttributes:Le(H,a,r),link:Le(R.LINK,i,r),meta:Le(R.META,o,r),noscript:Le(R.NOSCRIPT,l,r),script:Le(R.SCRIPT,c,r),style:Le(R.STYLE,s,r),title:Le(R.TITLE,{title:m,titleAttributes:d},r)}},Oe=k()((function(e){return{baseTag:fe([G,X],e),bodyAttributes:pe(z,e),defer:he(e,ee),encode:he(e,te),htmlAttributes:pe(H,e),linkTags:ye(R.LINK,[K,G],e),metaTags:ye(R.META,[V,B,U,F,q],e),noscriptTags:ye(R.NOSCRIPT,[W],e),onChangeClientState:ge(e),scriptTags:ye(R.SCRIPT,[Q,W],e),styleTags:ye(R.STYLE,[Y],e),title:de(e),titleAttributes:pe(Z,e)}}),(function(e){Ie&&Te(Ie),e.defer?Ie=ve((function(){Me(e,(function(){Ie=null}))})):(Me(e),Ie=null)}),ke)((function(){return null})),De=(C=Oe,j=A=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!D()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case R.SCRIPT:case R.NOSCRIPT:return{innerHTML:t};case R.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,a=e.newChildProps,i=e.nestedChildren;return se({},r,((t={})[n.type]=[].concat(r[n.type]||[],[se({},a,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,i=e.newChildProps,o=e.nestedChildren;switch(r.type){case R.TITLE:return se({},a,((t={})[r.type]=o,t.titleAttributes=se({},i),t));case R.BODY:return se({},a,{bodyAttributes:se({},i)});case R.HTML:return se({},a,{htmlAttributes:se({},i)})}return se({},a,((n={})[r.type]=se({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=se({},t);return Object.keys(e).forEach((function(t){var r;n=se({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return o.Children.forEach(e,(function(e){if(e&&e.props){var a=e.props,i=a.children,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[ae[n]||n]=e[n],t}),t)}(ue(a,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case R.LINK:case R.META:case R.NOSCRIPT:case R.SCRIPT:case R.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:o,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:o,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=ue(e,["children"]),r=se({},n);return t&&(r=this.mapChildrenToProps(t,r)),o.createElement(C,r)},ce(t,null,[{key:"canUseDOM",set:function(e){C.canUseDOM=e}}]),t}(o.Component),A.propTypes={base:d().object,bodyAttributes:d().object,children:d().oneOfType([d().arrayOf(d().node),d().node]),defaultTitle:d().string,defer:d().bool,encodeSpecialCharacters:d().bool,htmlAttributes:d().object,link:d().arrayOf(d().object),meta:d().arrayOf(d().object),noscript:d().arrayOf(d().object),onChangeClientState:d().func,script:d().arrayOf(d().object),style:d().arrayOf(d().object),title:d().string,titleAttributes:d().object,titleTemplate:d().string},A.defaultProps={defer:!0,encodeSpecialCharacters:!0},A.peek=C.peek,A.rewind=function(){var e=C.rewind();return e||(e=ke({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},j);De.renderStatic=De.rewind;var _e=e=>{const t=(0,l.useStaticQuery)("1995548873"),{metadata:n}=t.site,r={...n,...e};return o.createElement(De,null,o.createElement("title",null,r.title),o.createElement("meta",{name:"description",content:r.description}),r.image&&o.createElement("meta",{name:"image",content:r.image}),r.url&&o.createElement("meta",{property:"og:url",content:r.url}),o.createElement("meta",{property:"og:type",content:"website"}),o.createElement("meta",{property:"og:title",content:r.title}),o.createElement("meta",{property:"og:description",content:r.description}),r.image&&o.createElement("meta",{property:"og:image",content:r.image}),o.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),o.createElement("meta",{name:"twitter:creator",content:"@zigurous"}),o.createElement("meta",{name:"twitter:title",content:r.title}),o.createElement("meta",{name:"twitter:description",content:r.description}),r.image&&o.createElement("meta",{name:"twitter:image",content:r.image}))};var Pe=e=>{let{children:t,className:n,id:r,location:a,metadata:l}=e;return o.createElement("div",{className:"app","data-theme":"dark"},o.createElement(_e,l),o.createElement("main",{className:i()("page",n),id:r},t),o.createElement(x,{location:a}))};var ze=e=>{let{category:t,gallery:n,location:r}=e;const{0:a,1:i}=(0,o.useState)(c(t)),l=s(t,n,a,i);return o.createElement(u.Provider,{value:l},o.createElement(Pe,{id:t,location:r,metadata:{url:"https://adamgraham.io/"+t,title:"Adam Graham • "+w(t)}},o.createElement(y,null)))};d().shape({buttons:d().arrayOf(d().shape({name:d().string.isRequired,link:d().string.isRequired,icon:d().string})),category:d().string.isRequired,date:d().string,description:d().string,description_short:d().string,description_long:d().arrayOf(d().string),details:d().arrayOf(d().shape({key:d().string.isRequired,value:d().string.isRequired})),id:d().string.isRequired,image:g.isRequired,sections:d().arrayOf(d().shape({title:d().string,link:d().string,mainImage:g,mainVideo:d().string,paragraphs:d().arrayOf(d().string),gallery:d().arrayOf(g),videos:d().arrayOf(d().string)})),title:d().string.isRequired});var He=e=>{let{className:t,project:n}=e;return o.createElement("article",{className:i()("project","container-md",t)},o.createElement("section",null,o.createElement("h1",null,n.title)),o.createElement("section",null,n.description&&o.createElement("p",null,n.description),n.description_long&&n.description_long.map((e=>o.createElement("p",{key:e},e)))),n.details&&o.createElement("section",null,o.createElement("p",{className:"font-sm"},n.details.map(((e,t)=>o.createElement(o.Fragment,{key:e.key},0!==t&&o.createElement("br",null),o.createElement("em",null,e.key)," ",e.value))))),n.buttons&&o.createElement("section",null,o.createElement(r.e2,null,n.buttons.map((e=>o.createElement(r.N_,{external:!0,to:e.link,key:e.name,unstyled:!0},o.createElement(r.$n,{icon:e.icon&&"left",iconName:e.icon,size:r.$n.size.small},e.name)))))),n.sections&&n.sections.map(((e,t)=>o.createElement("section",{key:"section-"+t},e.title&&o.createElement("p",{className:"font-lg"},e.link?o.createElement(r.N_,{external:!0,href:e.link},o.createElement("b",null,e.title)):o.createElement("b",null,e.title)),e.mainImage&&o.createElement(r.vb,{alt:n.title+" Screenshot",width:e.mainImage.sharp.original.width,height:e.mainImage.sharp.original.height,src:e.mainImage.sharp.original.src}),e.mainVideo&&o.createElement(r.QN,{origin:"https://adamgraham.io",videoId:e.mainVideo}),e.paragraphs&&e.paragraphs.map(((e,n)=>o.createElement("p",{className:"font-sm",key:"section-"+t+"-paragraph-"+n},e))),e.gallery&&o.createElement(r.i_,{images:e.gallery.map((e=>({width:e.sharp.original.width,height:e.sharp.original.height,src:e.sharp.original.src}))),minWidth:128}),e.videos&&e.videos.map((e=>o.createElement(r.QN,{className:"margin-bottom-lg",key:e,origin:"https://adamgraham.io",videoId:e})))))))};var Ze=e=>{let{category:t,gallery:n,location:r,project:a}=e;const{0:i,1:l}=(0,o.useState)(c(t)),m=s(t,n,i,l);return o.createElement(u.Provider,{value:m},o.createElement(Pe,{id:a.id,location:r,metadata:{url:"https://adamgraham.io/"+a.category+"/"+a.id,title:"Adam Graham • "+a.title,description:a.description_short||a.description,image:a.image&&a.image.sharp.original.src}},o.createElement(He,{project:a})))}},115:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var l,c,s,u;if(Array.isArray(e)){if((l=e.length)!=o.length)return!1;for(c=l;0!=c--;)if(!i(e[c],o[c]))return!1;return!0}if(n&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!o.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!i(c.value[1],o.get(c.value[0])))return!1;return!0}if(r&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!o.has(c.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((l=e.length)!=o.length)return!1;for(c=l;0!=c--;)if(e[c]!==o[c])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof o.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof o.toString)return e.toString()===o.toString();if((l=(s=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(c=l;0!=c--;)if(!Object.prototype.hasOwnProperty.call(o,s[c]))return!1;if(t&&e instanceof Element)return!1;for(c=l;0!=c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!e.$$typeof)&&!i(e[s[c]],o[s[c]]))return!1;return!0}return e!=e&&o!=o}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},2098:function(e,t,n){"use strict";var r,a=n(6540),i=(r=a)&&"object"==typeof r&&"default"in r?r.default:r;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c,s=[];function u(){c=e(s.map((function(e){return e.props}))),m.canUseDOM?t(c):n&&(c=n(c))}var m=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.peek=function(){return c},a.rewind=function(){if(a.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,s=[],e};var o=a.prototype;return o.UNSAFE_componentWillMount=function(){s.push(this),u()},o.componentDidUpdate=function(){u()},o.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),u()},o.render=function(){return i.createElement(r,this.props)},a}(a.PureComponent);return o(m,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),o(m,"canUseDOM",l),m}}}}]); -//# sourceMappingURL=00b1e3a505bf683606152336fa813a9ebca105c7-695a712967cdc6157f90.js.map \ No newline at end of file +/*! For license information please see 00b1e3a505bf683606152336fa813a9ebca105c7-42769f3b58a9d4e2e7f7.js.LICENSE.txt */ +(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[128],{8828:function(e){"use strict";e.exports=Object.assign},8305:function(e,t,n){"use strict";n.d(t,{oY:function(){return ze},zr:function(){return Ze}});var r=n(6304),a=n(6942),i=n.n(a),o=n(6540),l=n(8007);function c(e){return e&&"undefined"!=typeof sessionStorage&&Number.parseInt(sessionStorage.getItem(e+"-slide"))||0}const s=(e,t,n,r)=>(0,o.useMemo)((()=>({category:e,gallery:t,slideIndex:n,currentSlide:t[n],setSlideIndex:n=>{n=Math.min(Math.max(n,0),t.length-1),function(e,t){e&&"undefined"!=typeof sessionStorage&&sessionStorage.setItem(e+"-slide",t)}(e,n),r(n),(0,l.navigate)("/"+e)}})),[e,t,n]);var u=(0,o.createContext)({category:"",gallery:[],slideIndex:0,currentSlide:null,setSlideIndex:()=>{}}),m=n(5556),d=n.n(m);const g=d().shape({sharp:d().shape({original:d().shape({src:d().string.isRequired,width:d().number,height:d().number})})});d().shape({category:d().string.isRequired,date:d().string,description:d().string,description_short:d().string,id:d().string.isRequired,image:g.isRequired,imageAltText:d().string,imageBorder:d().string,title:d().string.isRequired});var p=e=>{let{className:t,slide:n}=e;const a="undefined"!=typeof navigator&&!navigator.onLine,c="/"+n.category+"/"+n.id;return o.createElement("div",{className:i()("slide",t)},o.createElement("div",{className:"slide__image-wrapper"},o.createElement(r.N_,{ElementType:l.Link,to:c,unstyled:!0},o.createElement(r.vb,{alt:n.imageAltText||"",animated:!1,className:i()("slide__image",{["slide__image--border-"+n.imageBorder]:n.imageBorder}),width:n.image.sharp.original.width,height:n.image.sharp.original.height,src:n.image.sharp.original.src,showLoadingSpinner:!a}))),o.createElement("div",{className:"slide__text-wrapper"},o.createElement("div",{className:"slide__text-container"},o.createElement("p",{className:"eyebrow"},n.date),o.createElement("h1",{className:"h3"},n.title),o.createElement("p",null,n.description_short||n.description),o.createElement(r.N_,{ElementType:l.Link,to:c,unstyled:!0},o.createElement(r.$n,{size:r.$n.size.small},"More Details")))))};var f={chevronLeft:"data:image/svg+xml;base64,PHN2ZyB4bW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TAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTMgMThoMTN2LTJIM3Yyem0wLTVoMTB2LTJIM3Yyem0wLTd2MmgxM1Y2SDN6bTE4IDkuNTlMMTcuNDIgMTIgMjEgOC40MSAxOS41OSA3bC01IDUgNSA1TDIxIDE1LjU5eiIvPjwvc3ZnPg=="};var y=e=>{let{className:t}=e;const n=(0,o.useContext)(u),a=(0,r.Ub)("(max-width: 1365px)");return o.createElement("article",{className:i()("gallery",{"gallery--vertical-layout":a},t)},o.createElement("button",{"aria-label":"Previous Slide",className:"gallery__button left",disabled:n.slideIndex<=0,onClick:()=>n.setSlideIndex(n.slideIndex-1)},n.slideIndex>0&&o.createElement("img",{alt:"",src:f.chevronLeft})),o.createElement("div",{className:"gallery__slides"},n.currentSlide&&o.createElement(p,{slide:n.currentSlide})),o.createElement("button",{"aria-label":"Next Slide",className:"gallery__button right",disabled:n.slideIndex>=n.gallery.length-1,onClick:()=>n.setSlideIndex(n.slideIndex+1)},n.slideIndexe.toUpperCase()))}var I=e=>{let{location:t,menuType:n,setMenuType:a}=e;const i=(0,o.useContext)(u),c=n===E,s=n===T;return o.createElement("header",{className:"app-menu__header"},o.createElement("div",null,o.createElement(r.N_,{className:"logo h4",ElementType:l.Link,to:"/",unstyled:!0},"Adam Graham"),void 0===i.slideIndex&&!fullscreen&&o.createElement(r.N_,{className:"app-menu__page-title h4 display-none margin-bottom-none",ElementType:l.Link,to:"/"+category,unstyled:!0},w(category)),void 0!==i.slideIndex&&o.createElement("div",{className:"app-menu__slide-buttons display-none",style:{marginLeft:"-8px"}},o.createElement("button",{"aria-label":"Previous Slide",disabled:i.slideIndex<=0,onClick:()=>i.setSlideIndex(i.slideIndex-1)},o.createElement("img",{alt:"",src:f.chevronLeft})),o.createElement("button",{"aria-label":"Next Slide",className:"margin-left-md",disabled:i.slideIndex>=i.gallery.length-1,onClick:()=>i.setSlideIndex(i.slideIndex+1)},o.createElement("img",{alt:"",src:f.chevronRight}))),o.createElement(r.jq,{links:h,LinkElementType:l.Link,location:t})),o.createElement("div",null,o.createElement(r.U1,{className:"margin-left-md margin-right-md",iconSize:20,iconInnerPadding:10,links:b}),o.createElement("button",{"aria-label":s?"Hide Gallery":"Show Gallery",className:"app-menu__gallery-button margin-left-xl",onClick:()=>a(s?v:T)},o.createElement("img",{alt:"",src:s?f.galleryOpen:f.gallery})),o.createElement("button",{"aria-label":c?"Close Menu":"Open Menu",className:"app-menu__menu-button margin-left-xl",onClick:()=>a(c?v:E)},o.createElement("img",{alt:"",src:c?f.menuOpen:f.menu}))))};var M=e=>{let{onSelect:t,open:n}=e;const r=(0,o.useContext)(u);return o.createElement("div",{"aria-hidden":!n,className:i()("app-menu__gallery-view",{open:n})},o.createElement("div",{className:"app-menu__gallery"},r.gallery.map(((e,a)=>o.createElement("button",{"aria-disabled":!n,"aria-label":e.title,className:"app-menu__thumbnail",disabled:!n,key:e.id,onClick:()=>{r.setSlideIndex(a),t(a)}},o.createElement("img",{alt:e.imageAltText||"",className:i()("img-fluid","app-menu__thumbnail-image",{["app-menu__thumbnail-image--border-"+e.imageBorder]:e.imageBorder}),width:e.image.sharp.original.width,height:e.image.sharp.original.height,src:e.image.sharp.original.src}))))))};var S=e=>{let{onLink:t,open:n}=e;return o.createElement("div",{"aria-hidden":!n,className:i()("app-menu__menu-view",{open:n})},o.createElement("ul",{className:"app-menu__nav-list"},h.map((e=>o.createElement("li",{key:e.to},o.createElement(r.N_,{activeClassName:"","aria-disabled":!n,"aria-label":e.name,disabled:!n,ElementType:e.ElementType||l.Link,external:e.external,onClick:t,tabIndex:n?0:-1,to:e.to,unstyled:!0},e.name))))))};var N,C,A,j,x=e=>{let{location:t}=e;const{0:n,1:a}=(0,o.useState)(v),l=n!==v,c=n===E,s=n===T,u=(0,o.useCallback)((()=>{a(v)}),[]);return(0,r.ln)(l,!0),o.createElement("div",{className:i()("app-menu",{"app-menu--fullscreen":l})},o.createElement("div",{className:"app-menu__container"},o.createElement(I,{location:t,menuType:n,setMenuType:a}),o.createElement("div",{className:"app-menu__body"},o.createElement(S,{onLink:u,open:c}),o.createElement(M,{onSelect:u,open:s}))))},L=n(2098),k=n.n(L),O=n(115),D=n.n(O),_=n(8828),P=n.n(_),z="bodyAttributes",H="htmlAttributes",Z="titleAttributes",R={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},B=(Object.keys(R).map((function(e){return R[e]})),"charset"),Y="cssText",G="href",U="http-equiv",W="innerHTML",q="itemprop",V="name",F="property",K="rel",Q="src",X="target",J={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},$="defaultTitle",ee="defer",te="encodeSpecialCharacters",ne="onChangeClientState",re="titleTemplate",ae=Object.keys(J).reduce((function(e,t){return e[J[t]]=t,e}),{}),ie=[R.NOSCRIPT,R.SCRIPT,R.STYLE],oe="data-react-helmet",le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},me=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},de=function(e){var t=he(e,R.TITLE),n=he(e,re);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=he(e,$);return t||r||void 0},ge=function(e){return he(e,ne)||function(){}},pe=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return se({},e,t)}),{})},fe=function(e,t){return t.filter((function(e){return void 0!==e[R.BASE]})).map((function(e){return e[R.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},be=(N=Date.now(),function(e){var t=Date.now();t-N>16?(N=t,e(t)):setTimeout((function(){be(e)}),0)}),ve=function(e){return clearTimeout(e)},Ee="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||be:n.g.requestAnimationFrame||be,Te="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||ve:n.g.cancelAnimationFrame||ve,we=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Ie=null,Me=function(e,t){var n=e.baseTag,r=e.bodyAttributes,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,l=e.noscriptTags,c=e.onChangeClientState,s=e.scriptTags,u=e.styleTags,m=e.title,d=e.titleAttributes;Ce(R.BODY,r),Ce(R.HTML,a),Ne(m,d);var g={baseTag:Ae(R.BASE,n),linkTags:Ae(R.LINK,i),metaTags:Ae(R.META,o),noscriptTags:Ae(R.NOSCRIPT,l),scriptTags:Ae(R.SCRIPT,s),styleTags:Ae(R.STYLE,u)},p={},f={};Object.keys(g).forEach((function(e){var t=g[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(f[e]=g[e].oldTags)})),t&&t(),c(e,p,f)},Se=function(e){return Array.isArray(e)?e.join(""):e},Ne=function(e,t){void 0!==e&&document.title!==e&&(document.title=Se(e)),Ce(R.TITLE,t)},Ce=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(oe),a=r?r.split(","):[],i=[].concat(a),o=Object.keys(t),l=0;l=0;m--)n.removeAttribute(i[m]);a.length===i.length?n.removeAttribute(oe):n.getAttribute(oe)!==o.join(",")&&n.setAttribute(oe,o.join(","))}},Ae=function(e,t){var n=document.head||document.querySelector(R.HEAD),r=n.querySelectorAll(e+"["+oe+"]"),a=Array.prototype.slice.call(r),i=[],o=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===W)n.innerHTML=t.innerHTML;else if(r===Y)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var l=void 0===t[r]?"":t[r];n.setAttribute(r,l)}n.setAttribute(oe,"true"),a.some((function(e,t){return o=t,n.isEqualNode(e)}))?a.splice(o,1):i.push(n)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:a,newTags:i}},je=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[J[n]||n]=e[n],t}),t)},Le=function(e,t,n){switch(e){case R.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[oe]=!0,a=xe(n,r),[o.createElement(R.TITLE,a,e)];var e,n,r,a},toString:function(){return function(e,t,n,r){var a=je(n),i=Se(t);return a?"<"+e+" "+oe+'="true" '+a+">"+me(i,r)+"":"<"+e+" "+oe+'="true">'+me(i,r)+""}(e,t.title,t.titleAttributes,n)}};case z:case H:return{toComponent:function(){return xe(t)},toString:function(){return je(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,a=((r={key:n})[oe]=!0,r);return Object.keys(t).forEach((function(e){var n=J[e]||e;if(n===W||n===Y){var r=t.innerHTML||t.cssText;a.dangerouslySetInnerHTML={__html:r}}else a[n]=t[e]})),o.createElement(e,a)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!(e===W||e===Y)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+me(r[t],n)+'"';return e?e+" "+a:a}),""),i=r.innerHTML||r.cssText||"",o=-1===ie.indexOf(e);return t+"<"+e+" "+oe+'="true" '+a+(o?"/>":">"+i+"")}),"")}(e,t,n)}}}},ke=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,l=e.noscriptTags,c=e.scriptTags,s=e.styleTags,u=e.title,m=void 0===u?"":u,d=e.titleAttributes;return{base:Le(R.BASE,t,r),bodyAttributes:Le(z,n,r),htmlAttributes:Le(H,a,r),link:Le(R.LINK,i,r),meta:Le(R.META,o,r),noscript:Le(R.NOSCRIPT,l,r),script:Le(R.SCRIPT,c,r),style:Le(R.STYLE,s,r),title:Le(R.TITLE,{title:m,titleAttributes:d},r)}},Oe=k()((function(e){return{baseTag:fe([G,X],e),bodyAttributes:pe(z,e),defer:he(e,ee),encode:he(e,te),htmlAttributes:pe(H,e),linkTags:ye(R.LINK,[K,G],e),metaTags:ye(R.META,[V,B,U,F,q],e),noscriptTags:ye(R.NOSCRIPT,[W],e),onChangeClientState:ge(e),scriptTags:ye(R.SCRIPT,[Q,W],e),styleTags:ye(R.STYLE,[Y],e),title:de(e),titleAttributes:pe(Z,e)}}),(function(e){Ie&&Te(Ie),e.defer?Ie=Ee((function(){Me(e,(function(){Ie=null}))})):(Me(e),Ie=null)}),ke)((function(){return null})),De=(C=Oe,j=A=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!D()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case R.SCRIPT:case R.NOSCRIPT:return{innerHTML:t};case R.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,a=e.newChildProps,i=e.nestedChildren;return se({},r,((t={})[n.type]=[].concat(r[n.type]||[],[se({},a,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,i=e.newChildProps,o=e.nestedChildren;switch(r.type){case R.TITLE:return se({},a,((t={})[r.type]=o,t.titleAttributes=se({},i),t));case R.BODY:return se({},a,{bodyAttributes:se({},i)});case R.HTML:return se({},a,{htmlAttributes:se({},i)})}return se({},a,((n={})[r.type]=se({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=se({},t);return Object.keys(e).forEach((function(t){var r;n=se({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return o.Children.forEach(e,(function(e){if(e&&e.props){var a=e.props,i=a.children,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[ae[n]||n]=e[n],t}),t)}(ue(a,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case R.LINK:case R.META:case R.NOSCRIPT:case R.SCRIPT:case R.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:o,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:o,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=ue(e,["children"]),r=se({},n);return t&&(r=this.mapChildrenToProps(t,r)),o.createElement(C,r)},ce(t,null,[{key:"canUseDOM",set:function(e){C.canUseDOM=e}}]),t}(o.Component),A.propTypes={base:d().object,bodyAttributes:d().object,children:d().oneOfType([d().arrayOf(d().node),d().node]),defaultTitle:d().string,defer:d().bool,encodeSpecialCharacters:d().bool,htmlAttributes:d().object,link:d().arrayOf(d().object),meta:d().arrayOf(d().object),noscript:d().arrayOf(d().object),onChangeClientState:d().func,script:d().arrayOf(d().object),style:d().arrayOf(d().object),title:d().string,titleAttributes:d().object,titleTemplate:d().string},A.defaultProps={defer:!0,encodeSpecialCharacters:!0},A.peek=C.peek,A.rewind=function(){var e=C.rewind();return e||(e=ke({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},j);De.renderStatic=De.rewind;var _e=e=>{const t=(0,l.useStaticQuery)("1995548873"),{metadata:n}=t.site,r={...n,...e};return o.createElement(De,null,o.createElement("title",null,r.title),o.createElement("meta",{name:"description",content:r.description}),r.image&&o.createElement("meta",{name:"image",content:r.image}),r.url&&o.createElement("meta",{property:"og:url",content:r.url}),o.createElement("meta",{property:"og:type",content:"website"}),o.createElement("meta",{property:"og:title",content:r.title}),o.createElement("meta",{property:"og:description",content:r.description}),r.image&&o.createElement("meta",{property:"og:image",content:r.image}),o.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),o.createElement("meta",{name:"twitter:creator",content:"@zigurous"}),o.createElement("meta",{name:"twitter:title",content:r.title}),o.createElement("meta",{name:"twitter:description",content:r.description}),r.image&&o.createElement("meta",{name:"twitter:image",content:r.image}))};var Pe=e=>{let{children:t,className:n,id:r,location:a,metadata:l}=e;return o.createElement("div",{className:"app","data-theme":"dark"},o.createElement(_e,l),o.createElement("main",{className:i()("page",n),id:r},t),o.createElement(x,{location:a}))};var ze=e=>{let{category:t,gallery:n,location:r}=e;const{0:a,1:i}=(0,o.useState)(c(t)),l=s(t,n,a,i);return o.createElement(u.Provider,{value:l},o.createElement(Pe,{id:t,location:r,metadata:{url:"https://adamgraham.io/"+t,title:"Adam Graham • "+w(t)}},o.createElement(y,null)))};d().shape({buttons:d().arrayOf(d().shape({name:d().string.isRequired,link:d().string.isRequired,icon:d().string})),category:d().string.isRequired,date:d().string,description:d().string,description_short:d().string,description_long:d().arrayOf(d().string),details:d().arrayOf(d().shape({key:d().string.isRequired,value:d().string.isRequired})),id:d().string.isRequired,image:g.isRequired,sections:d().arrayOf(d().shape({title:d().string,link:d().string,mainImage:g,mainVideo:d().string,paragraphs:d().arrayOf(d().string),gallery:d().arrayOf(g),videos:d().arrayOf(d().string)})),title:d().string.isRequired});var He=e=>{let{className:t,project:n}=e;return o.createElement("article",{className:i()("project","container-md",t)},o.createElement("section",null,o.createElement("h1",null,n.title)),o.createElement("section",null,n.description&&o.createElement("p",null,n.description),n.description_long&&n.description_long.map((e=>o.createElement("p",{key:e},e)))),n.details&&o.createElement("section",null,o.createElement("p",{className:"font-sm"},n.details.map(((e,t)=>o.createElement(o.Fragment,{key:e.key},0!==t&&o.createElement("br",null),o.createElement("em",null,e.key)," ",e.value))))),n.buttons&&o.createElement("section",null,o.createElement(r.e2,null,n.buttons.map((e=>o.createElement(r.N_,{external:!0,to:e.link,key:e.name,unstyled:!0},o.createElement(r.$n,{icon:e.icon&&"left",iconName:e.icon,size:r.$n.size.small},e.name)))))),n.sections&&n.sections.map(((e,t)=>o.createElement("section",{key:"section-"+t},e.title&&o.createElement("p",{className:"font-lg"},e.link?o.createElement(r.N_,{external:!0,href:e.link},o.createElement("b",null,e.title)):o.createElement("b",null,e.title)),e.mainImage&&o.createElement(r.vb,{alt:n.title+" Screenshot",width:e.mainImage.sharp.original.width,height:e.mainImage.sharp.original.height,src:e.mainImage.sharp.original.src}),e.mainVideo&&o.createElement(r.QN,{origin:"https://adamgraham.io",videoId:e.mainVideo}),e.paragraphs&&e.paragraphs.map(((e,n)=>o.createElement("p",{className:"font-sm",key:"section-"+t+"-paragraph-"+n},e))),e.gallery&&o.createElement(r.i_,{images:e.gallery.map((e=>({width:e.sharp.original.width,height:e.sharp.original.height,src:e.sharp.original.src}))),minWidth:128}),e.videos&&e.videos.map((e=>o.createElement(r.QN,{className:"margin-bottom-lg",key:e,origin:"https://adamgraham.io",videoId:e})))))))};var Ze=e=>{let{category:t,gallery:n,location:r,project:a}=e;const{0:i,1:l}=(0,o.useState)(c(t)),m=s(t,n,i,l);return o.createElement(u.Provider,{value:m},o.createElement(Pe,{id:a.id,location:r,metadata:{url:"https://adamgraham.io/"+a.category+"/"+a.id,title:"Adam Graham • "+a.title,description:a.description_short||a.description,image:a.image&&a.image.sharp.original.src}},o.createElement(He,{project:a})))}},115:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var l,c,s,u;if(Array.isArray(e)){if((l=e.length)!=o.length)return!1;for(c=l;0!=c--;)if(!i(e[c],o[c]))return!1;return!0}if(n&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!o.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!i(c.value[1],o.get(c.value[0])))return!1;return!0}if(r&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!o.has(c.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((l=e.length)!=o.length)return!1;for(c=l;0!=c--;)if(e[c]!==o[c])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof o.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof o.toString)return e.toString()===o.toString();if((l=(s=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(c=l;0!=c--;)if(!Object.prototype.hasOwnProperty.call(o,s[c]))return!1;if(t&&e instanceof Element)return!1;for(c=l;0!=c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!e.$$typeof)&&!i(e[s[c]],o[s[c]]))return!1;return!0}return e!=e&&o!=o}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},2098:function(e,t,n){"use strict";var r,a=n(6540),i=(r=a)&&"object"==typeof r&&"default"in r?r.default:r;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c,s=[];function u(){c=e(s.map((function(e){return e.props}))),m.canUseDOM?t(c):n&&(c=n(c))}var m=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.peek=function(){return c},a.rewind=function(){if(a.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,s=[],e};var o=a.prototype;return o.UNSAFE_componentWillMount=function(){s.push(this),u()},o.componentDidUpdate=function(){u()},o.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),u()},o.render=function(){return i.createElement(r,this.props)},a}(a.PureComponent);return o(m,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),o(m,"canUseDOM",l),m}}},6942:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t {\r\n return useMemo(\r\n () => ({\r\n category,\r\n gallery,\r\n slideIndex,\r\n currentSlide: gallery[slideIndex],\r\n setSlideIndex: (index) => {\r\n index = Math.min(Math.max(index, 0), gallery.length - 1);\r\n setSessionIndex(category, index);\r\n setSlideIndex(index);\r\n navigate(`/${category}`);\r\n },\r\n }),\r\n [category, gallery, slideIndex]\r\n );\r\n};\r\n\r\nconst GalleryContext = createContext({\r\n category: '',\r\n gallery: [],\r\n slideIndex: 0,\r\n currentSlide: null,\r\n setSlideIndex: () => {},\r\n});\r\n\r\nexport default GalleryContext;\r\n","import PropTypes from 'prop-types';\r\n\r\nexport const ImageProps = PropTypes.shape({\r\n sharp: PropTypes.shape({\r\n original: PropTypes.shape({\r\n src: PropTypes.string.isRequired,\r\n width: PropTypes.number,\r\n height: PropTypes.number,\r\n }),\r\n }),\r\n});\r\n","import { Button, Link, ProgressiveImage } from '@zigurous/react-components';\r\nimport classNames from 'classnames';\r\nimport { Link as GatsbyLink } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ImageProps } from '../types/image';\r\nimport '../styles/slide.css';\r\n\r\nconst Slide = ({ className, slide }) => {\r\n const offline = typeof navigator !== 'undefined' && !navigator.onLine;\r\n const projectPath = `/${slide.category}/${slide.id}`;\r\n return (\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n

{slide.date}

\r\n

{slide.title}

\r\n

{slide.description_short || slide.description}

\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport const SlideProps = PropTypes.shape({\r\n category: PropTypes.string.isRequired,\r\n date: PropTypes.string,\r\n description: PropTypes.string,\r\n description_short: PropTypes.string,\r\n id: PropTypes.string.isRequired,\r\n image: ImageProps.isRequired,\r\n imageAltText: PropTypes.string,\r\n imageBorder: PropTypes.string,\r\n title: PropTypes.string.isRequired,\r\n});\r\n\r\nSlide.propTypes = {\r\n className: PropTypes.string,\r\n slide: SlideProps,\r\n};\r\n\r\nexport default Slide;\r\n","import chevronLeftIcon from './images/icons/chevron-left.svg';\r\nimport chevronRightIcon from './images/icons/chevron-right.svg';\r\nimport galleryIcon from './images/icons/fullscreen.svg';\r\nimport galleryOpenIcon from './images/icons/fullscreen-exit.svg';\r\nimport menuIcon from './images/icons/menu.svg';\r\nimport menuOpenIcon from './images/icons/menu-open.svg';\r\n\r\nconst icons = {\r\n chevronLeft: chevronLeftIcon,\r\n chevronRight: chevronRightIcon,\r\n gallery: galleryIcon,\r\n galleryOpen: galleryOpenIcon,\r\n menu: menuIcon,\r\n menuOpen: menuOpenIcon,\r\n};\r\n\r\nexport default icons;\r\n","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjQ4cHgiIGhlaWdodD0iNDhweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTE0LjcxIDYuNzFjLS4zOS0uMzktMS4wMi0uMzktMS40MSAwTDguNzEgMTEuM2MtLjM5LjM5LS4zOSAxLjAyIDAgMS40MWw0LjU5IDQuNTljLjM5LjM5IDEuMDIuMzkgMS40MSAwIC4zOS0uMzkuMzktMS4wMiAwLTEuNDFMMTAuODMgMTJsMy44OC0zLjg4Yy4zOS0uMzkuMzgtMS4wMyAwLTEuNDF6Ii8+PC9zdmc+\"","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjQ4cHgiIGhlaWdodD0iNDhweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTkuMjkgNi43MWMtLjM5LjM5LS4zOSAxLjAyIDAgMS40MUwxMy4xNyAxMmwtMy44OCAzLjg4Yy0uMzkuMzktLjM5IDEuMDIgMCAxLjQxLjM5LjM5IDEuMDIuMzkgMS40MSAwbDQuNTktNC41OWMuMzktLjM5LjM5LTEuMDIgMC0xLjQxTDEwLjcgNi43Yy0uMzgtLjM4LTEuMDItLjM4LTEuNDEuMDF6Ii8+PC9zdmc+\"","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjM2cHgiIGhlaWdodD0iMzZweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik03IDE0SDV2NWg1di0ySDd2LTN6bS0yLTRoMlY3aDNWNUg1djV6bTEyIDdoLTN2Mmg1di01aC0ydjN6TTE0IDV2MmgzdjNoMlY1aC01eiIvPjwvc3ZnPg==\"","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjM2cHgiIGhlaWdodD0iMzZweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik01IDE2aDN2M2gydi01SDV2MnptMy04SDV2Mmg1VjVIOHYzem02IDExaDJ2LTNoM3YtMmgtNXY1em0yLTExVjVoLTJ2NWg1VjhoLTN6Ii8+PC9zdmc+\"","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjM2cHgiIGhlaWdodD0iMzZweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0zIDE4aDE4di0ySDN2MnptMC01aDE4di0ySDN2MnptMC03djJoMThWNkgzeiIvPjwvc3ZnPg==\"","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjM2cHgiIGhlaWdodD0iMzZweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTMgMThoMTN2LTJIM3Yyem0wLTVoMTB2LTJIM3Yyem0wLTd2MmgxM1Y2SDN6bTE4IDkuNTlMMTcuNDIgMTIgMjEgOC40MSAxOS41OSA3bC01IDUgNSA1TDIxIDE1LjU5eiIvPjwvc3ZnPg==\"","import { useMediaQuery } from '@zigurous/react-components';\r\nimport classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useContext } from 'react';\r\nimport GalleryContext from './GalleryContext';\r\nimport Slide from './Slide';\r\nimport icons from '../icons';\r\nimport '../styles/gallery.css';\r\n\r\nconst Gallery = ({ className }) => {\r\n const context = useContext(GalleryContext);\r\n const verticalLayout = useMediaQuery('(max-width: 1365px)');\r\n return (\r\n \r\n context.setSlideIndex(context.slideIndex - 1)}\r\n >\r\n {context.slideIndex > 0 && \"\"}\r\n \r\n
\r\n {context.currentSlide && }\r\n
\r\n = context.gallery.length - 1}\r\n onClick={() => context.setSlideIndex(context.slideIndex + 1)}\r\n >\r\n {context.slideIndex < context.gallery.length - 1 && (\r\n \"\"\r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nGallery.propTypes = {\r\n className: PropTypes.string,\r\n};\r\n\r\nexport default Gallery;\r\n","export const navLinks = [\r\n {\r\n name: 'Games',\r\n to: '/games',\r\n },\r\n {\r\n name: 'Visual Art',\r\n to: '/art',\r\n },\r\n {\r\n name: 'Web Design',\r\n to: '/websites',\r\n },\r\n {\r\n name: 'Emerging Tech',\r\n to: '/tech',\r\n },\r\n {\r\n name: 'Presentations',\r\n to: '/presentations',\r\n },\r\n {\r\n name: 'Software',\r\n to: 'https://github.com/adamgraham',\r\n rightIcon: 'open_in_new',\r\n ElementType: 'a',\r\n external: true,\r\n },\r\n];\r\n\r\nexport const socialLinks = [\r\n {\r\n key: 'github',\r\n name: 'GitHub',\r\n url: 'https://github.com/adamgraham',\r\n },\r\n {\r\n key: 'linkedIn',\r\n name: 'LinkedIn',\r\n url: 'https://www.linkedin.com/in/adamzigurous',\r\n },\r\n {\r\n key: 'instagram',\r\n name: 'Instagram',\r\n url: 'http://instagram.com/adam.zigurous',\r\n },\r\n {\r\n key: 'twitter',\r\n name: 'Twitter',\r\n url: 'https://twitter.com/Zigurous',\r\n },\r\n {\r\n key: 'email',\r\n name: 'Email',\r\n url: 'mailto:adam@zigurous.com',\r\n },\r\n];\r\n","export const MENU_TYPE_NONE = 'none';\r\nexport const MENU_TYPE_LIST = 'list';\r\nexport const MENU_TYPE_GALLERY = 'gallery';\r\n","export function titleCase(title) {\r\n return title.replace(/\\b\\w/g, (l) => l.toUpperCase());\r\n}\r\n","import { Link, NavBar, SocialNavLinks } from '@zigurous/react-components';\r\nimport { Link as GatsbyLink } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useContext } from 'react';\r\nimport GalleryContext from './GalleryContext';\r\nimport icons from '../icons';\r\nimport { navLinks, socialLinks } from '../links';\r\nimport { MENU_TYPE_GALLERY, MENU_TYPE_LIST, MENU_TYPE_NONE } from '../types/menu'; // prettier-ignore\r\nimport { titleCase } from '../utils/formatting';\r\n\r\nconst MenuBar = ({ location, menuType, setMenuType }) => {\r\n const context = useContext(GalleryContext);\r\n const showMenu = menuType === MENU_TYPE_LIST;\r\n const showGallery = menuType === MENU_TYPE_GALLERY;\r\n return (\r\n
\r\n
\r\n \r\n Adam Graham\r\n \r\n {context.slideIndex === undefined && !fullscreen && (\r\n \r\n {titleCase(category)}\r\n \r\n )}\r\n {context.slideIndex !== undefined && (\r\n \r\n context.setSlideIndex(context.slideIndex - 1)}\r\n >\r\n \"\"\r\n \r\n = context.gallery.length - 1}\r\n onClick={() => context.setSlideIndex(context.slideIndex + 1)}\r\n >\r\n \"\"\r\n \r\n
\r\n )}\r\n \r\n \r\n
\r\n \r\n \r\n setMenuType(showGallery ? MENU_TYPE_NONE : MENU_TYPE_GALLERY)\r\n }\r\n >\r\n \"\"\r\n \r\n \r\n setMenuType(showMenu ? MENU_TYPE_NONE : MENU_TYPE_LIST)\r\n }\r\n >\r\n \"\"\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nMenuBar.propTypes = {\r\n location: PropTypes.object,\r\n menuType: PropTypes.oneOf([\r\n MENU_TYPE_NONE,\r\n MENU_TYPE_LIST,\r\n MENU_TYPE_GALLERY,\r\n ]),\r\n setMenuType: PropTypes.func,\r\n};\r\n\r\nexport default MenuBar;\r\n","import classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useContext } from 'react';\r\nimport GalleryContext from './GalleryContext';\r\n\r\nconst MenuGallery = ({ onSelect, open }) => {\r\n const context = useContext(GalleryContext);\r\n return (\r\n \r\n
\r\n {context.gallery.map((slide, index) => (\r\n {\r\n context.setSlideIndex(index);\r\n onSelect(index);\r\n }}\r\n >\r\n \r\n \r\n ))}\r\n
\r\n \r\n );\r\n};\r\n\r\nMenuGallery.propTypes = {\r\n onSelect: PropTypes.func,\r\n open: PropTypes.bool,\r\n};\r\n\r\nexport default MenuGallery;\r\n","import { Link } from '@zigurous/react-components';\r\nimport classNames from 'classnames';\r\nimport { Link as GatsbyLink } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { navLinks } from '../links';\r\n\r\nconst MenuList = ({ onLink, open }) => {\r\n return (\r\n \r\n
    \r\n {navLinks.map((link) => (\r\n
  • \r\n \r\n {link.name}\r\n \r\n
  • \r\n ))}\r\n
\r\n \r\n );\r\n};\r\n\r\nMenuList.propTypes = {\r\n onLink: PropTypes.func,\r\n open: PropTypes.bool,\r\n};\r\n\r\nexport default MenuList;\r\n","import { useModalOverlay } from '@zigurous/react-components';\r\nimport classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useCallback, useState } from 'react';\r\nimport MenuBar from './MenuBar';\r\nimport MenuGallery from './MenuGallery';\r\nimport MenuList from './MenuList';\r\nimport { MENU_TYPE_GALLERY, MENU_TYPE_LIST, MENU_TYPE_NONE } from '../types/menu'; // prettier-ignore\r\nimport '../styles/menu.css';\r\n\r\nconst Menu = ({ location }) => {\r\n const [menuType, setMenuType] = useState(MENU_TYPE_NONE);\r\n const fullscreen = menuType !== MENU_TYPE_NONE;\r\n const listOpen = menuType === MENU_TYPE_LIST;\r\n const galleryOpen = menuType === MENU_TYPE_GALLERY;\r\n\r\n const closeMenu = useCallback(() => {\r\n setMenuType(MENU_TYPE_NONE);\r\n }, []);\r\n\r\n useModalOverlay(fullscreen, true);\r\n\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nMenu.propTypes = {\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Menu;\r\n","import PropTypes from 'prop-types';\nimport withSideEffect from 'react-side-effect';\nimport isEqual from 'react-fast-compare';\nimport React from 'react';\nimport objectAssign from 'object-assign';\n\nvar ATTRIBUTE_NAMES = {\n BODY: \"bodyAttributes\",\n HTML: \"htmlAttributes\",\n TITLE: \"titleAttributes\"\n};\n\nvar TAG_NAMES = {\n BASE: \"base\",\n BODY: \"body\",\n HEAD: \"head\",\n HTML: \"html\",\n LINK: \"link\",\n META: \"meta\",\n NOSCRIPT: \"noscript\",\n SCRIPT: \"script\",\n STYLE: \"style\",\n TITLE: \"title\"\n};\n\nvar VALID_TAG_NAMES = Object.keys(TAG_NAMES).map(function (name) {\n return TAG_NAMES[name];\n});\n\nvar TAG_PROPERTIES = {\n CHARSET: \"charset\",\n CSS_TEXT: \"cssText\",\n HREF: \"href\",\n HTTPEQUIV: \"http-equiv\",\n INNER_HTML: \"innerHTML\",\n ITEM_PROP: \"itemprop\",\n NAME: \"name\",\n PROPERTY: \"property\",\n REL: \"rel\",\n SRC: \"src\",\n TARGET: \"target\"\n};\n\nvar REACT_TAG_MAP = {\n accesskey: \"accessKey\",\n charset: \"charSet\",\n class: \"className\",\n contenteditable: \"contentEditable\",\n contextmenu: \"contextMenu\",\n \"http-equiv\": \"httpEquiv\",\n itemprop: \"itemProp\",\n tabindex: \"tabIndex\"\n};\n\nvar HELMET_PROPS = {\n DEFAULT_TITLE: \"defaultTitle\",\n DEFER: \"defer\",\n ENCODE_SPECIAL_CHARACTERS: \"encodeSpecialCharacters\",\n ON_CHANGE_CLIENT_STATE: \"onChangeClientState\",\n TITLE_TEMPLATE: \"titleTemplate\"\n};\n\nvar HTML_TAG_MAP = Object.keys(REACT_TAG_MAP).reduce(function (obj, key) {\n obj[REACT_TAG_MAP[key]] = key;\n return obj;\n}, {});\n\nvar SELF_CLOSING_TAGS = [TAG_NAMES.NOSCRIPT, TAG_NAMES.SCRIPT, TAG_NAMES.STYLE];\n\nvar HELMET_ATTRIBUTE = \"data-react-helmet\";\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nvar inherits = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\nvar objectWithoutProperties = function (obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n};\n\nvar possibleConstructorReturn = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n};\n\nvar encodeSpecialCharacters = function encodeSpecialCharacters(str) {\n var encode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (encode === false) {\n return String(str);\n }\n\n return String(str).replace(/&/g, \"&\").replace(//g, \">\").replace(/\"/g, \""\").replace(/'/g, \"'\");\n};\n\nvar getTitleFromPropsList = function getTitleFromPropsList(propsList) {\n var innermostTitle = getInnermostProperty(propsList, TAG_NAMES.TITLE);\n var innermostTemplate = getInnermostProperty(propsList, HELMET_PROPS.TITLE_TEMPLATE);\n\n if (innermostTemplate && innermostTitle) {\n // use function arg to avoid need to escape $ characters\n return innermostTemplate.replace(/%s/g, function () {\n return Array.isArray(innermostTitle) ? innermostTitle.join(\"\") : innermostTitle;\n });\n }\n\n var innermostDefaultTitle = getInnermostProperty(propsList, HELMET_PROPS.DEFAULT_TITLE);\n\n return innermostTitle || innermostDefaultTitle || undefined;\n};\n\nvar getOnChangeClientState = function getOnChangeClientState(propsList) {\n return getInnermostProperty(propsList, HELMET_PROPS.ON_CHANGE_CLIENT_STATE) || function () {};\n};\n\nvar getAttributesFromPropsList = function getAttributesFromPropsList(tagType, propsList) {\n return propsList.filter(function (props) {\n return typeof props[tagType] !== \"undefined\";\n }).map(function (props) {\n return props[tagType];\n }).reduce(function (tagAttrs, current) {\n return _extends({}, tagAttrs, current);\n }, {});\n};\n\nvar getBaseTagFromPropsList = function getBaseTagFromPropsList(primaryAttributes, propsList) {\n return propsList.filter(function (props) {\n return typeof props[TAG_NAMES.BASE] !== \"undefined\";\n }).map(function (props) {\n return props[TAG_NAMES.BASE];\n }).reverse().reduce(function (innermostBaseTag, tag) {\n if (!innermostBaseTag.length) {\n var keys = Object.keys(tag);\n\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var lowerCaseAttributeKey = attributeKey.toLowerCase();\n\n if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && tag[lowerCaseAttributeKey]) {\n return innermostBaseTag.concat(tag);\n }\n }\n }\n\n return innermostBaseTag;\n }, []);\n};\n\nvar getTagsFromPropsList = function getTagsFromPropsList(tagName, primaryAttributes, propsList) {\n // Calculate list of tags, giving priority innermost component (end of the propslist)\n var approvedSeenTags = {};\n\n return propsList.filter(function (props) {\n if (Array.isArray(props[tagName])) {\n return true;\n }\n if (typeof props[tagName] !== \"undefined\") {\n warn(\"Helmet: \" + tagName + \" should be of type \\\"Array\\\". Instead found type \\\"\" + _typeof(props[tagName]) + \"\\\"\");\n }\n return false;\n }).map(function (props) {\n return props[tagName];\n }).reverse().reduce(function (approvedTags, instanceTags) {\n var instanceSeenTags = {};\n\n instanceTags.filter(function (tag) {\n var primaryAttributeKey = void 0;\n var keys = Object.keys(tag);\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var lowerCaseAttributeKey = attributeKey.toLowerCase();\n\n // Special rule with link tags, since rel and href are both primary tags, rel takes priority\n if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && !(primaryAttributeKey === TAG_PROPERTIES.REL && tag[primaryAttributeKey].toLowerCase() === \"canonical\") && !(lowerCaseAttributeKey === TAG_PROPERTIES.REL && tag[lowerCaseAttributeKey].toLowerCase() === \"stylesheet\")) {\n primaryAttributeKey = lowerCaseAttributeKey;\n }\n // Special case for innerHTML which doesn't work lowercased\n if (primaryAttributes.indexOf(attributeKey) !== -1 && (attributeKey === TAG_PROPERTIES.INNER_HTML || attributeKey === TAG_PROPERTIES.CSS_TEXT || attributeKey === TAG_PROPERTIES.ITEM_PROP)) {\n primaryAttributeKey = attributeKey;\n }\n }\n\n if (!primaryAttributeKey || !tag[primaryAttributeKey]) {\n return false;\n }\n\n var value = tag[primaryAttributeKey].toLowerCase();\n\n if (!approvedSeenTags[primaryAttributeKey]) {\n approvedSeenTags[primaryAttributeKey] = {};\n }\n\n if (!instanceSeenTags[primaryAttributeKey]) {\n instanceSeenTags[primaryAttributeKey] = {};\n }\n\n if (!approvedSeenTags[primaryAttributeKey][value]) {\n instanceSeenTags[primaryAttributeKey][value] = true;\n return true;\n }\n\n return false;\n }).reverse().forEach(function (tag) {\n return approvedTags.push(tag);\n });\n\n // Update seen tags with tags from this instance\n var keys = Object.keys(instanceSeenTags);\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var tagUnion = objectAssign({}, approvedSeenTags[attributeKey], instanceSeenTags[attributeKey]);\n\n approvedSeenTags[attributeKey] = tagUnion;\n }\n\n return approvedTags;\n }, []).reverse();\n};\n\nvar getInnermostProperty = function getInnermostProperty(propsList, property) {\n for (var i = propsList.length - 1; i >= 0; i--) {\n var props = propsList[i];\n\n if (props.hasOwnProperty(property)) {\n return props[property];\n }\n }\n\n return null;\n};\n\nvar reducePropsToState = function reducePropsToState(propsList) {\n return {\n baseTag: getBaseTagFromPropsList([TAG_PROPERTIES.HREF, TAG_PROPERTIES.TARGET], propsList),\n bodyAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY, propsList),\n defer: getInnermostProperty(propsList, HELMET_PROPS.DEFER),\n encode: getInnermostProperty(propsList, HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),\n htmlAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML, propsList),\n linkTags: getTagsFromPropsList(TAG_NAMES.LINK, [TAG_PROPERTIES.REL, TAG_PROPERTIES.HREF], propsList),\n metaTags: getTagsFromPropsList(TAG_NAMES.META, [TAG_PROPERTIES.NAME, TAG_PROPERTIES.CHARSET, TAG_PROPERTIES.HTTPEQUIV, TAG_PROPERTIES.PROPERTY, TAG_PROPERTIES.ITEM_PROP], propsList),\n noscriptTags: getTagsFromPropsList(TAG_NAMES.NOSCRIPT, [TAG_PROPERTIES.INNER_HTML], propsList),\n onChangeClientState: getOnChangeClientState(propsList),\n scriptTags: getTagsFromPropsList(TAG_NAMES.SCRIPT, [TAG_PROPERTIES.SRC, TAG_PROPERTIES.INNER_HTML], propsList),\n styleTags: getTagsFromPropsList(TAG_NAMES.STYLE, [TAG_PROPERTIES.CSS_TEXT], propsList),\n title: getTitleFromPropsList(propsList),\n titleAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE, propsList)\n };\n};\n\nvar rafPolyfill = function () {\n var clock = Date.now();\n\n return function (callback) {\n var currentTime = Date.now();\n\n if (currentTime - clock > 16) {\n clock = currentTime;\n callback(currentTime);\n } else {\n setTimeout(function () {\n rafPolyfill(callback);\n }, 0);\n }\n };\n}();\n\nvar cafPolyfill = function cafPolyfill(id) {\n return clearTimeout(id);\n};\n\nvar requestAnimationFrame = typeof window !== \"undefined\" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || rafPolyfill : global.requestAnimationFrame || rafPolyfill;\n\nvar cancelAnimationFrame = typeof window !== \"undefined\" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || cafPolyfill : global.cancelAnimationFrame || cafPolyfill;\n\nvar warn = function warn(msg) {\n return console && typeof console.warn === \"function\" && console.warn(msg);\n};\n\nvar _helmetCallback = null;\n\nvar handleClientStateChange = function handleClientStateChange(newState) {\n if (_helmetCallback) {\n cancelAnimationFrame(_helmetCallback);\n }\n\n if (newState.defer) {\n _helmetCallback = requestAnimationFrame(function () {\n commitTagChanges(newState, function () {\n _helmetCallback = null;\n });\n });\n } else {\n commitTagChanges(newState);\n _helmetCallback = null;\n }\n};\n\nvar commitTagChanges = function commitTagChanges(newState, cb) {\n var baseTag = newState.baseTag,\n bodyAttributes = newState.bodyAttributes,\n htmlAttributes = newState.htmlAttributes,\n linkTags = newState.linkTags,\n metaTags = newState.metaTags,\n noscriptTags = newState.noscriptTags,\n onChangeClientState = newState.onChangeClientState,\n scriptTags = newState.scriptTags,\n styleTags = newState.styleTags,\n title = newState.title,\n titleAttributes = newState.titleAttributes;\n\n updateAttributes(TAG_NAMES.BODY, bodyAttributes);\n updateAttributes(TAG_NAMES.HTML, htmlAttributes);\n\n updateTitle(title, titleAttributes);\n\n var tagUpdates = {\n baseTag: updateTags(TAG_NAMES.BASE, baseTag),\n linkTags: updateTags(TAG_NAMES.LINK, linkTags),\n metaTags: updateTags(TAG_NAMES.META, metaTags),\n noscriptTags: updateTags(TAG_NAMES.NOSCRIPT, noscriptTags),\n scriptTags: updateTags(TAG_NAMES.SCRIPT, scriptTags),\n styleTags: updateTags(TAG_NAMES.STYLE, styleTags)\n };\n\n var addedTags = {};\n var removedTags = {};\n\n Object.keys(tagUpdates).forEach(function (tagType) {\n var _tagUpdates$tagType = tagUpdates[tagType],\n newTags = _tagUpdates$tagType.newTags,\n oldTags = _tagUpdates$tagType.oldTags;\n\n\n if (newTags.length) {\n addedTags[tagType] = newTags;\n }\n if (oldTags.length) {\n removedTags[tagType] = tagUpdates[tagType].oldTags;\n }\n });\n\n cb && cb();\n\n onChangeClientState(newState, addedTags, removedTags);\n};\n\nvar flattenArray = function flattenArray(possibleArray) {\n return Array.isArray(possibleArray) ? possibleArray.join(\"\") : possibleArray;\n};\n\nvar updateTitle = function updateTitle(title, attributes) {\n if (typeof title !== \"undefined\" && document.title !== title) {\n document.title = flattenArray(title);\n }\n\n updateAttributes(TAG_NAMES.TITLE, attributes);\n};\n\nvar updateAttributes = function updateAttributes(tagName, attributes) {\n var elementTag = document.getElementsByTagName(tagName)[0];\n\n if (!elementTag) {\n return;\n }\n\n var helmetAttributeString = elementTag.getAttribute(HELMET_ATTRIBUTE);\n var helmetAttributes = helmetAttributeString ? helmetAttributeString.split(\",\") : [];\n var attributesToRemove = [].concat(helmetAttributes);\n var attributeKeys = Object.keys(attributes);\n\n for (var i = 0; i < attributeKeys.length; i++) {\n var attribute = attributeKeys[i];\n var value = attributes[attribute] || \"\";\n\n if (elementTag.getAttribute(attribute) !== value) {\n elementTag.setAttribute(attribute, value);\n }\n\n if (helmetAttributes.indexOf(attribute) === -1) {\n helmetAttributes.push(attribute);\n }\n\n var indexToSave = attributesToRemove.indexOf(attribute);\n if (indexToSave !== -1) {\n attributesToRemove.splice(indexToSave, 1);\n }\n }\n\n for (var _i = attributesToRemove.length - 1; _i >= 0; _i--) {\n elementTag.removeAttribute(attributesToRemove[_i]);\n }\n\n if (helmetAttributes.length === attributesToRemove.length) {\n elementTag.removeAttribute(HELMET_ATTRIBUTE);\n } else if (elementTag.getAttribute(HELMET_ATTRIBUTE) !== attributeKeys.join(\",\")) {\n elementTag.setAttribute(HELMET_ATTRIBUTE, attributeKeys.join(\",\"));\n }\n};\n\nvar updateTags = function updateTags(type, tags) {\n var headElement = document.head || document.querySelector(TAG_NAMES.HEAD);\n var tagNodes = headElement.querySelectorAll(type + \"[\" + HELMET_ATTRIBUTE + \"]\");\n var oldTags = Array.prototype.slice.call(tagNodes);\n var newTags = [];\n var indexToDelete = void 0;\n\n if (tags && tags.length) {\n tags.forEach(function (tag) {\n var newElement = document.createElement(type);\n\n for (var attribute in tag) {\n if (tag.hasOwnProperty(attribute)) {\n if (attribute === TAG_PROPERTIES.INNER_HTML) {\n newElement.innerHTML = tag.innerHTML;\n } else if (attribute === TAG_PROPERTIES.CSS_TEXT) {\n if (newElement.styleSheet) {\n newElement.styleSheet.cssText = tag.cssText;\n } else {\n newElement.appendChild(document.createTextNode(tag.cssText));\n }\n } else {\n var value = typeof tag[attribute] === \"undefined\" ? \"\" : tag[attribute];\n newElement.setAttribute(attribute, value);\n }\n }\n }\n\n newElement.setAttribute(HELMET_ATTRIBUTE, \"true\");\n\n // Remove a duplicate tag from domTagstoRemove, so it isn't cleared.\n if (oldTags.some(function (existingTag, index) {\n indexToDelete = index;\n return newElement.isEqualNode(existingTag);\n })) {\n oldTags.splice(indexToDelete, 1);\n } else {\n newTags.push(newElement);\n }\n });\n }\n\n oldTags.forEach(function (tag) {\n return tag.parentNode.removeChild(tag);\n });\n newTags.forEach(function (tag) {\n return headElement.appendChild(tag);\n });\n\n return {\n oldTags: oldTags,\n newTags: newTags\n };\n};\n\nvar generateElementAttributesAsString = function generateElementAttributesAsString(attributes) {\n return Object.keys(attributes).reduce(function (str, key) {\n var attr = typeof attributes[key] !== \"undefined\" ? key + \"=\\\"\" + attributes[key] + \"\\\"\" : \"\" + key;\n return str ? str + \" \" + attr : attr;\n }, \"\");\n};\n\nvar generateTitleAsString = function generateTitleAsString(type, title, attributes, encode) {\n var attributeString = generateElementAttributesAsString(attributes);\n var flattenedTitle = flattenArray(title);\n return attributeString ? \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\" \" + attributeString + \">\" + encodeSpecialCharacters(flattenedTitle, encode) + \"\" : \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\">\" + encodeSpecialCharacters(flattenedTitle, encode) + \"\";\n};\n\nvar generateTagsAsString = function generateTagsAsString(type, tags, encode) {\n return tags.reduce(function (str, tag) {\n var attributeHtml = Object.keys(tag).filter(function (attribute) {\n return !(attribute === TAG_PROPERTIES.INNER_HTML || attribute === TAG_PROPERTIES.CSS_TEXT);\n }).reduce(function (string, attribute) {\n var attr = typeof tag[attribute] === \"undefined\" ? attribute : attribute + \"=\\\"\" + encodeSpecialCharacters(tag[attribute], encode) + \"\\\"\";\n return string ? string + \" \" + attr : attr;\n }, \"\");\n\n var tagContent = tag.innerHTML || tag.cssText || \"\";\n\n var isSelfClosing = SELF_CLOSING_TAGS.indexOf(type) === -1;\n\n return str + \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\" \" + attributeHtml + (isSelfClosing ? \"/>\" : \">\" + tagContent + \"\");\n }, \"\");\n};\n\nvar convertElementAttributestoReactProps = function convertElementAttributestoReactProps(attributes) {\n var initProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return Object.keys(attributes).reduce(function (obj, key) {\n obj[REACT_TAG_MAP[key] || key] = attributes[key];\n return obj;\n }, initProps);\n};\n\nvar convertReactPropstoHtmlAttributes = function convertReactPropstoHtmlAttributes(props) {\n var initAttributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return Object.keys(props).reduce(function (obj, key) {\n obj[HTML_TAG_MAP[key] || key] = props[key];\n return obj;\n }, initAttributes);\n};\n\nvar generateTitleAsReactComponent = function generateTitleAsReactComponent(type, title, attributes) {\n var _initProps;\n\n // assigning into an array to define toString function on it\n var initProps = (_initProps = {\n key: title\n }, _initProps[HELMET_ATTRIBUTE] = true, _initProps);\n var props = convertElementAttributestoReactProps(attributes, initProps);\n\n return [React.createElement(TAG_NAMES.TITLE, props, title)];\n};\n\nvar generateTagsAsReactComponent = function generateTagsAsReactComponent(type, tags) {\n return tags.map(function (tag, i) {\n var _mappedTag;\n\n var mappedTag = (_mappedTag = {\n key: i\n }, _mappedTag[HELMET_ATTRIBUTE] = true, _mappedTag);\n\n Object.keys(tag).forEach(function (attribute) {\n var mappedAttribute = REACT_TAG_MAP[attribute] || attribute;\n\n if (mappedAttribute === TAG_PROPERTIES.INNER_HTML || mappedAttribute === TAG_PROPERTIES.CSS_TEXT) {\n var content = tag.innerHTML || tag.cssText;\n mappedTag.dangerouslySetInnerHTML = { __html: content };\n } else {\n mappedTag[mappedAttribute] = tag[attribute];\n }\n });\n\n return React.createElement(type, mappedTag);\n });\n};\n\nvar getMethodsForTag = function getMethodsForTag(type, tags, encode) {\n switch (type) {\n case TAG_NAMES.TITLE:\n return {\n toComponent: function toComponent() {\n return generateTitleAsReactComponent(type, tags.title, tags.titleAttributes, encode);\n },\n toString: function toString() {\n return generateTitleAsString(type, tags.title, tags.titleAttributes, encode);\n }\n };\n case ATTRIBUTE_NAMES.BODY:\n case ATTRIBUTE_NAMES.HTML:\n return {\n toComponent: function toComponent() {\n return convertElementAttributestoReactProps(tags);\n },\n toString: function toString() {\n return generateElementAttributesAsString(tags);\n }\n };\n default:\n return {\n toComponent: function toComponent() {\n return generateTagsAsReactComponent(type, tags);\n },\n toString: function toString() {\n return generateTagsAsString(type, tags, encode);\n }\n };\n }\n};\n\nvar mapStateOnServer = function mapStateOnServer(_ref) {\n var baseTag = _ref.baseTag,\n bodyAttributes = _ref.bodyAttributes,\n encode = _ref.encode,\n htmlAttributes = _ref.htmlAttributes,\n linkTags = _ref.linkTags,\n metaTags = _ref.metaTags,\n noscriptTags = _ref.noscriptTags,\n scriptTags = _ref.scriptTags,\n styleTags = _ref.styleTags,\n _ref$title = _ref.title,\n title = _ref$title === undefined ? \"\" : _ref$title,\n titleAttributes = _ref.titleAttributes;\n return {\n base: getMethodsForTag(TAG_NAMES.BASE, baseTag, encode),\n bodyAttributes: getMethodsForTag(ATTRIBUTE_NAMES.BODY, bodyAttributes, encode),\n htmlAttributes: getMethodsForTag(ATTRIBUTE_NAMES.HTML, htmlAttributes, encode),\n link: getMethodsForTag(TAG_NAMES.LINK, linkTags, encode),\n meta: getMethodsForTag(TAG_NAMES.META, metaTags, encode),\n noscript: getMethodsForTag(TAG_NAMES.NOSCRIPT, noscriptTags, encode),\n script: getMethodsForTag(TAG_NAMES.SCRIPT, scriptTags, encode),\n style: getMethodsForTag(TAG_NAMES.STYLE, styleTags, encode),\n title: getMethodsForTag(TAG_NAMES.TITLE, { title: title, titleAttributes: titleAttributes }, encode)\n };\n};\n\nvar Helmet = function Helmet(Component) {\n var _class, _temp;\n\n return _temp = _class = function (_React$Component) {\n inherits(HelmetWrapper, _React$Component);\n\n function HelmetWrapper() {\n classCallCheck(this, HelmetWrapper);\n return possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n HelmetWrapper.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return !isEqual(this.props, nextProps);\n };\n\n HelmetWrapper.prototype.mapNestedChildrenToProps = function mapNestedChildrenToProps(child, nestedChildren) {\n if (!nestedChildren) {\n return null;\n }\n\n switch (child.type) {\n case TAG_NAMES.SCRIPT:\n case TAG_NAMES.NOSCRIPT:\n return {\n innerHTML: nestedChildren\n };\n\n case TAG_NAMES.STYLE:\n return {\n cssText: nestedChildren\n };\n }\n\n throw new Error(\"<\" + child.type + \" /> elements are self-closing and can not contain children. Refer to our API for more information.\");\n };\n\n HelmetWrapper.prototype.flattenArrayTypeChildren = function flattenArrayTypeChildren(_ref) {\n var _babelHelpers$extends;\n\n var child = _ref.child,\n arrayTypeChildren = _ref.arrayTypeChildren,\n newChildProps = _ref.newChildProps,\n nestedChildren = _ref.nestedChildren;\n\n return _extends({}, arrayTypeChildren, (_babelHelpers$extends = {}, _babelHelpers$extends[child.type] = [].concat(arrayTypeChildren[child.type] || [], [_extends({}, newChildProps, this.mapNestedChildrenToProps(child, nestedChildren))]), _babelHelpers$extends));\n };\n\n HelmetWrapper.prototype.mapObjectTypeChildren = function mapObjectTypeChildren(_ref2) {\n var _babelHelpers$extends2, _babelHelpers$extends3;\n\n var child = _ref2.child,\n newProps = _ref2.newProps,\n newChildProps = _ref2.newChildProps,\n nestedChildren = _ref2.nestedChildren;\n\n switch (child.type) {\n case TAG_NAMES.TITLE:\n return _extends({}, newProps, (_babelHelpers$extends2 = {}, _babelHelpers$extends2[child.type] = nestedChildren, _babelHelpers$extends2.titleAttributes = _extends({}, newChildProps), _babelHelpers$extends2));\n\n case TAG_NAMES.BODY:\n return _extends({}, newProps, {\n bodyAttributes: _extends({}, newChildProps)\n });\n\n case TAG_NAMES.HTML:\n return _extends({}, newProps, {\n htmlAttributes: _extends({}, newChildProps)\n });\n }\n\n return _extends({}, newProps, (_babelHelpers$extends3 = {}, _babelHelpers$extends3[child.type] = _extends({}, newChildProps), _babelHelpers$extends3));\n };\n\n HelmetWrapper.prototype.mapArrayTypeChildrenToProps = function mapArrayTypeChildrenToProps(arrayTypeChildren, newProps) {\n var newFlattenedProps = _extends({}, newProps);\n\n Object.keys(arrayTypeChildren).forEach(function (arrayChildName) {\n var _babelHelpers$extends4;\n\n newFlattenedProps = _extends({}, newFlattenedProps, (_babelHelpers$extends4 = {}, _babelHelpers$extends4[arrayChildName] = arrayTypeChildren[arrayChildName], _babelHelpers$extends4));\n });\n\n return newFlattenedProps;\n };\n\n HelmetWrapper.prototype.warnOnInvalidChildren = function warnOnInvalidChildren(child, nestedChildren) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!VALID_TAG_NAMES.some(function (name) {\n return child.type === name;\n })) {\n if (typeof child.type === \"function\") {\n return warn(\"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.\");\n }\n\n return warn(\"Only elements types \" + VALID_TAG_NAMES.join(\", \") + \" are allowed. Helmet does not support rendering <\" + child.type + \"> elements. Refer to our API for more information.\");\n }\n\n if (nestedChildren && typeof nestedChildren !== \"string\" && (!Array.isArray(nestedChildren) || nestedChildren.some(function (nestedChild) {\n return typeof nestedChild !== \"string\";\n }))) {\n throw new Error(\"Helmet expects a string as a child of <\" + child.type + \">. Did you forget to wrap your children in braces? ( <\" + child.type + \">{``} ) Refer to our API for more information.\");\n }\n }\n\n return true;\n };\n\n HelmetWrapper.prototype.mapChildrenToProps = function mapChildrenToProps(children, newProps) {\n var _this2 = this;\n\n var arrayTypeChildren = {};\n\n React.Children.forEach(children, function (child) {\n if (!child || !child.props) {\n return;\n }\n\n var _child$props = child.props,\n nestedChildren = _child$props.children,\n childProps = objectWithoutProperties(_child$props, [\"children\"]);\n\n var newChildProps = convertReactPropstoHtmlAttributes(childProps);\n\n _this2.warnOnInvalidChildren(child, nestedChildren);\n\n switch (child.type) {\n case TAG_NAMES.LINK:\n case TAG_NAMES.META:\n case TAG_NAMES.NOSCRIPT:\n case TAG_NAMES.SCRIPT:\n case TAG_NAMES.STYLE:\n arrayTypeChildren = _this2.flattenArrayTypeChildren({\n child: child,\n arrayTypeChildren: arrayTypeChildren,\n newChildProps: newChildProps,\n nestedChildren: nestedChildren\n });\n break;\n\n default:\n newProps = _this2.mapObjectTypeChildren({\n child: child,\n newProps: newProps,\n newChildProps: newChildProps,\n nestedChildren: nestedChildren\n });\n break;\n }\n });\n\n newProps = this.mapArrayTypeChildrenToProps(arrayTypeChildren, newProps);\n return newProps;\n };\n\n HelmetWrapper.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n props = objectWithoutProperties(_props, [\"children\"]);\n\n var newProps = _extends({}, props);\n\n if (children) {\n newProps = this.mapChildrenToProps(children, newProps);\n }\n\n return React.createElement(Component, newProps);\n };\n\n createClass(HelmetWrapper, null, [{\n key: \"canUseDOM\",\n\n\n // Component.peek comes from react-side-effect:\n // For testing, you may use a static peek() method available on the returned component.\n // It lets you get the current state without resetting the mounted instance stack.\n // Don’t use it for anything other than testing.\n\n /**\n * @param {Object} base: {\"target\": \"_blank\", \"href\": \"http://mysite.com/\"}\n * @param {Object} bodyAttributes: {\"className\": \"root\"}\n * @param {String} defaultTitle: \"Default Title\"\n * @param {Boolean} defer: true\n * @param {Boolean} encodeSpecialCharacters: true\n * @param {Object} htmlAttributes: {\"lang\": \"en\", \"amp\": undefined}\n * @param {Array} link: [{\"rel\": \"canonical\", \"href\": \"http://mysite.com/example\"}]\n * @param {Array} meta: [{\"name\": \"description\", \"content\": \"Test description\"}]\n * @param {Array} noscript: [{\"innerHTML\": \" console.log(newState)\"\n * @param {Array} script: [{\"type\": \"text/javascript\", \"src\": \"http://mysite.com/js/test.js\"}]\n * @param {Array} style: [{\"type\": \"text/css\", \"cssText\": \"div { display: block; color: blue; }\"}]\n * @param {String} title: \"Title\"\n * @param {Object} titleAttributes: {\"itemprop\": \"name\"}\n * @param {String} titleTemplate: \"MySite.com - %s\"\n */\n set: function set$$1(canUseDOM) {\n Component.canUseDOM = canUseDOM;\n }\n }]);\n return HelmetWrapper;\n }(React.Component), _class.propTypes = {\n base: PropTypes.object,\n bodyAttributes: PropTypes.object,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n defaultTitle: PropTypes.string,\n defer: PropTypes.bool,\n encodeSpecialCharacters: PropTypes.bool,\n htmlAttributes: PropTypes.object,\n link: PropTypes.arrayOf(PropTypes.object),\n meta: PropTypes.arrayOf(PropTypes.object),\n noscript: PropTypes.arrayOf(PropTypes.object),\n onChangeClientState: PropTypes.func,\n script: PropTypes.arrayOf(PropTypes.object),\n style: PropTypes.arrayOf(PropTypes.object),\n title: PropTypes.string,\n titleAttributes: PropTypes.object,\n titleTemplate: PropTypes.string\n }, _class.defaultProps = {\n defer: true,\n encodeSpecialCharacters: true\n }, _class.peek = Component.peek, _class.rewind = function () {\n var mappedState = Component.rewind();\n if (!mappedState) {\n // provide fallback if mappedState is undefined\n mappedState = mapStateOnServer({\n baseTag: [],\n bodyAttributes: {},\n encodeSpecialCharacters: true,\n htmlAttributes: {},\n linkTags: [],\n metaTags: [],\n noscriptTags: [],\n scriptTags: [],\n styleTags: [],\n title: \"\",\n titleAttributes: {}\n });\n }\n\n return mappedState;\n }, _temp;\n};\n\nvar NullComponent = function NullComponent() {\n return null;\n};\n\nvar HelmetSideEffects = withSideEffect(reducePropsToState, handleClientStateChange, mapStateOnServer)(NullComponent);\n\nvar HelmetExport = Helmet(HelmetSideEffects);\nHelmetExport.renderStatic = HelmetExport.rewind;\n\nexport default HelmetExport;\nexport { HelmetExport as Helmet };\n","import { graphql, useStaticQuery } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport * as React from 'react';\r\nimport { Helmet } from 'react-helmet';\r\n\r\nconst query = graphql`\r\n query Metadata {\r\n site {\r\n metadata: siteMetadata {\r\n title\r\n description\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Metadata = (props) => {\r\n const queryData = useStaticQuery(query);\r\n const { metadata: siteMetadata } = queryData.site;\r\n const metadata = { ...siteMetadata, ...props };\r\n return (\r\n \r\n {/* General tags */}\r\n {metadata.title}\r\n \r\n {metadata.image && }\r\n\r\n {/* Open Graph tags */}\r\n {metadata.url && }\r\n \r\n \r\n \r\n {metadata.image && }\r\n\r\n {/* Twitter Card tags */}\r\n \r\n \r\n \r\n \r\n {metadata.image && }\r\n \r\n );\r\n};\r\n\r\nMetadata.propTypes = {\r\n description: PropTypes.string,\r\n image: PropTypes.string,\r\n title: PropTypes.string,\r\n url: PropTypes.string,\r\n};\r\n\r\nexport default Metadata;\r\n","import classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport Menu from './Menu';\r\nimport Metadata from './Metadata';\r\n\r\nconst Page = ({ children, className, id, location, metadata }) => (\r\n
\r\n \r\n
\r\n {children}\r\n
\r\n \r\n
\r\n);\r\n\r\nPage.propTypes = {\r\n children: PropTypes.node,\r\n className: PropTypes.string,\r\n id: PropTypes.string,\r\n location: PropTypes.object,\r\n metadata: PropTypes.object,\r\n};\r\n\r\nexport default Page;\r\n","import PropTypes from 'prop-types';\r\nimport React, { useState } from 'react';\r\nimport Gallery from './Gallery';\r\nimport GalleryContext, { useContext } from './GalleryContext';\r\nimport Page from './Page';\r\nimport { SlideProps } from './Slide';\r\nimport { titleCase } from '../utils/formatting';\r\nimport { getSessionIndex } from '../utils/session';\r\n\r\nconst GalleryPage = ({ category, gallery, location }) => {\r\n const [slideIndex, setSlideIndex] = useState(getSessionIndex(category));\r\n const context = useContext(category, gallery, slideIndex, setSlideIndex);\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nGalleryPage.propTypes = {\r\n category: PropTypes.string,\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default GalleryPage;\r\n","import { Button, ButtonGroup, EmbeddedYouTube, ImageGallery, Link, ProgressiveImage } from '@zigurous/react-components'; // prettier-ignore\r\nimport classNames from 'classnames';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ImageProps } from '../types/image';\r\nimport '../styles/project.css';\r\n\r\nconst Project = ({ className, project }) => (\r\n
\r\n
\r\n

{project.title}

\r\n
\r\n
\r\n {project.description &&

{project.description}

}\r\n {project.description_long &&\r\n project.description_long.map((description) => (\r\n

{description}

\r\n ))}\r\n
\r\n {project.details && (\r\n
\r\n

\r\n {project.details.map((detail, index) => (\r\n \r\n {index !== 0 &&
}\r\n {detail.key} {detail.value}\r\n
\r\n ))}\r\n

\r\n
\r\n )}\r\n {project.buttons && (\r\n
\r\n \r\n {project.buttons.map((button) => (\r\n \r\n \r\n {button.name}\r\n \r\n \r\n ))}\r\n \r\n
\r\n )}\r\n {project.sections &&\r\n project.sections.map((section, index) => (\r\n
\r\n {section.title && (\r\n

\r\n {section.link ? (\r\n \r\n {section.title}\r\n \r\n ) : (\r\n {section.title}\r\n )}\r\n

\r\n )}\r\n {section.mainImage && (\r\n \r\n )}\r\n {section.mainVideo && (\r\n \r\n )}\r\n {section.paragraphs &&\r\n section.paragraphs.map((paragraph, paragraphIndex) => (\r\n \r\n {paragraph}\r\n

\r\n ))}\r\n {section.gallery && (\r\n ({\r\n width: image.sharp.original.width,\r\n height: image.sharp.original.height,\r\n src: image.sharp.original.src,\r\n }))}\r\n minWidth={128}\r\n />\r\n )}\r\n {section.videos &&\r\n section.videos.map((video) => (\r\n \r\n ))}\r\n
\r\n ))}\r\n
\r\n);\r\n\r\nexport const ProjectProps = PropTypes.shape({\r\n buttons: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n name: PropTypes.string.isRequired,\r\n link: PropTypes.string.isRequired,\r\n icon: PropTypes.string,\r\n })\r\n ),\r\n category: PropTypes.string.isRequired,\r\n date: PropTypes.string,\r\n description: PropTypes.string,\r\n description_short: PropTypes.string,\r\n description_long: PropTypes.arrayOf(PropTypes.string),\r\n details: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n key: PropTypes.string.isRequired,\r\n value: PropTypes.string.isRequired,\r\n })\r\n ),\r\n id: PropTypes.string.isRequired,\r\n image: ImageProps.isRequired,\r\n sections: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n title: PropTypes.string,\r\n link: PropTypes.string,\r\n mainImage: ImageProps,\r\n mainVideo: PropTypes.string,\r\n paragraphs: PropTypes.arrayOf(PropTypes.string),\r\n gallery: PropTypes.arrayOf(ImageProps),\r\n videos: PropTypes.arrayOf(PropTypes.string),\r\n })\r\n ),\r\n title: PropTypes.string.isRequired,\r\n});\r\n\r\nProject.propTypes = {\r\n className: PropTypes.string,\r\n project: ProjectProps,\r\n};\r\n\r\nexport default Project;\r\n","import PropTypes from 'prop-types';\r\nimport React, { useState } from 'react';\r\nimport GalleryContext, { useContext } from './GalleryContext';\r\nimport Page from './Page';\r\nimport Project, { ProjectProps } from './Project';\r\nimport { SlideProps } from './Slide';\r\nimport { getSessionIndex } from '../utils/session';\r\n\r\nconst ProjectPage = ({ category, gallery, location, project }) => {\r\n const [slideIndex, setSlideIndex] = useState(getSessionIndex(category));\r\n const context = useContext(category, gallery, slideIndex, setSlideIndex);\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nProjectPage.propTypes = {\r\n category: PropTypes.string,\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n location: PropTypes.object,\r\n project: ProjectProps,\r\n};\r\n\r\nexport default ProjectPage;\r\n","/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */\n\nvar hasElementType = typeof Element !== 'undefined';\nvar hasMap = typeof Map === 'function';\nvar hasSet = typeof Set === 'function';\nvar hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;\n\n// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js\n\nfunction equal(a, b) {\n // START: fast-deep-equal es6/index.js 3.1.3\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n // START: Modifications:\n // 1. Extra `has &&` helpers in initial condition allow es6 code\n // to co-exist with es5.\n // 2. Replace `for of` with es5 compliant iteration using `for`.\n // Basically, take:\n //\n // ```js\n // for (i of a.entries())\n // if (!b.has(i[0])) return false;\n // ```\n //\n // ... and convert to:\n //\n // ```js\n // it = a.entries();\n // while (!(i = it.next()).done)\n // if (!b.has(i.value[0])) return false;\n // ```\n //\n // **Note**: `i` access switches to `i.value`.\n var it;\n if (hasMap && (a instanceof Map) && (b instanceof Map)) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!b.has(i.value[0])) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!equal(i.value[1], b.get(i.value[0]))) return false;\n return true;\n }\n\n if (hasSet && (a instanceof Set) && (b instanceof Set)) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!b.has(i.value[0])) return false;\n return true;\n }\n // END: Modifications\n\n if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (a[i] !== b[i]) return false;\n return true;\n }\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n // START: Modifications:\n // Apply guards for `Object.create(null)` handling. See:\n // - https://github.com/FormidableLabs/react-fast-compare/issues/64\n // - https://github.com/epoberezkin/fast-deep-equal/issues/49\n if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString();\n // END: Modifications\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n // END: fast-deep-equal\n\n // START: react-fast-compare\n // custom handling for DOM elements\n if (hasElementType && a instanceof Element) return false;\n\n // custom handling for React/Preact\n for (i = length; i-- !== 0;) {\n if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner\n // Preact-specific: avoid traversing Preact elements' __v and __o\n // __v = $_original / $_vnode\n // __o = $_owner\n // These properties contain circular references and are not needed when\n // comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of elements\n\n continue;\n }\n\n // all other properties should be traversed as usual\n if (!equal(a[keys[i]], b[keys[i]])) return false;\n }\n // END: react-fast-compare\n\n // START: fast-deep-equal\n return true;\n }\n\n return a !== a && b !== b;\n}\n// end fast-deep-equal\n\nmodule.exports = function isEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if (((error.message || '').match(/stack|recursion/i))) {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('react-fast-compare cannot handle circular refs');\n return false;\n }\n // some other error. we should definitely know about these\n throw error;\n }\n};\n","'use strict';\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar React = require('react');\nvar React__default = _interopDefault(React);\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nfunction withSideEffect(reducePropsToState, handleStateChangeOnClient, mapStateOnServer) {\n if (typeof reducePropsToState !== 'function') {\n throw new Error('Expected reducePropsToState to be a function.');\n }\n\n if (typeof handleStateChangeOnClient !== 'function') {\n throw new Error('Expected handleStateChangeOnClient to be a function.');\n }\n\n if (typeof mapStateOnServer !== 'undefined' && typeof mapStateOnServer !== 'function') {\n throw new Error('Expected mapStateOnServer to either be undefined or a function.');\n }\n\n function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n }\n\n return function wrap(WrappedComponent) {\n if (typeof WrappedComponent !== 'function') {\n throw new Error('Expected WrappedComponent to be a React component.');\n }\n\n var mountedInstances = [];\n var state;\n\n function emitChange() {\n state = reducePropsToState(mountedInstances.map(function (instance) {\n return instance.props;\n }));\n\n if (SideEffect.canUseDOM) {\n handleStateChangeOnClient(state);\n } else if (mapStateOnServer) {\n state = mapStateOnServer(state);\n }\n }\n\n var SideEffect =\n /*#__PURE__*/\n function (_PureComponent) {\n _inheritsLoose(SideEffect, _PureComponent);\n\n function SideEffect() {\n return _PureComponent.apply(this, arguments) || this;\n }\n\n // Try to use displayName of wrapped component\n // Expose canUseDOM so tests can monkeypatch it\n SideEffect.peek = function peek() {\n return state;\n };\n\n SideEffect.rewind = function rewind() {\n if (SideEffect.canUseDOM) {\n throw new Error('You may only call rewind() on the server. Call peek() to read the current state.');\n }\n\n var recordedState = state;\n state = undefined;\n mountedInstances = [];\n return recordedState;\n };\n\n var _proto = SideEffect.prototype;\n\n _proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() {\n mountedInstances.push(this);\n emitChange();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n emitChange();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var index = mountedInstances.indexOf(this);\n mountedInstances.splice(index, 1);\n emitChange();\n };\n\n _proto.render = function render() {\n return React__default.createElement(WrappedComponent, this.props);\n };\n\n return SideEffect;\n }(React.PureComponent);\n\n _defineProperty(SideEffect, \"displayName\", \"SideEffect(\" + getDisplayName(WrappedComponent) + \")\");\n\n _defineProperty(SideEffect, \"canUseDOM\", canUseDOM);\n\n return SideEffect;\n };\n}\n\nmodule.exports = withSideEffect;\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["module","exports","Object","assign","getSessionIndex","category","sessionStorage","Number","parseInt","getItem","useContext","gallery","slideIndex","setSlideIndex","useMemo","currentSlide","index","Math","min","max","length","setItem","setSessionIndex","navigate","createContext","ImageProps","PropTypes","sharp","original","src","isRequired","width","height","date","description","description_short","id","image","imageAltText","imageBorder","title","_ref","className","slide","offline","navigator","onLine","projectPath","React","classNames","Link","ElementType","GatsbyLink","to","unstyled","ProgressiveImage","alt","animated","showLoadingSpinner","Button","size","small","chevronLeft","chevronRight","galleryOpen","menu","menuOpen","context","GalleryContext","verticalLayout","useMediaQuery","disabled","onClick","icons","Slide","navLinks","name","rightIcon","external","socialLinks","key","url","MENU_TYPE_NONE","MENU_TYPE_LIST","MENU_TYPE_GALLERY","titleCase","replace","l","toUpperCase","location","menuType","setMenuType","showMenu","showGallery","undefined","fullscreen","style","marginLeft","NavBar","links","LinkElementType","SocialNavLinks","iconSize","iconInnerPadding","onSelect","open","map","onLink","link","activeClassName","tabIndex","clock","Component","_class","_temp","useState","listOpen","closeMenu","useCallback","useModalOverlay","MenuBar","MenuList","MenuGallery","ATTRIBUTE_NAMES","TAG_NAMES","BASE","BODY","HEAD","HTML","LINK","META","NOSCRIPT","SCRIPT","STYLE","TITLE","TAG_PROPERTIES","keys","REACT_TAG_MAP","accesskey","charset","class","contenteditable","contextmenu","itemprop","tabindex","HELMET_PROPS","HTML_TAG_MAP","reduce","obj","SELF_CLOSING_TAGS","HELMET_ATTRIBUTE","_typeof","Symbol","iterator","constructor","prototype","createClass","defineProperties","target","props","i","descriptor","enumerable","configurable","writable","defineProperty","Constructor","protoProps","staticProps","_extends","arguments","source","hasOwnProperty","call","objectWithoutProperties","indexOf","encodeSpecialCharacters","str","String","getTitleFromPropsList","propsList","innermostTitle","getInnermostProperty","innermostTemplate","Array","isArray","join","innermostDefaultTitle","getOnChangeClientState","getAttributesFromPropsList","tagType","filter","tagAttrs","current","getBaseTagFromPropsList","primaryAttributes","reverse","innermostBaseTag","tag","lowerCaseAttributeKey","toLowerCase","concat","getTagsFromPropsList","tagName","approvedSeenTags","warn","approvedTags","instanceTags","instanceSeenTags","primaryAttributeKey","attributeKey","value","forEach","push","tagUnion","property","rafPolyfill","Date","now","callback","currentTime","setTimeout","cafPolyfill","clearTimeout","requestAnimationFrame","window","bind","webkitRequestAnimationFrame","mozRequestAnimationFrame","g","cancelAnimationFrame","webkitCancelAnimationFrame","mozCancelAnimationFrame","msg","console","_helmetCallback","commitTagChanges","newState","cb","baseTag","bodyAttributes","htmlAttributes","linkTags","metaTags","noscriptTags","onChangeClientState","scriptTags","styleTags","titleAttributes","updateAttributes","updateTitle","tagUpdates","updateTags","addedTags","removedTags","_tagUpdates$tagType","newTags","oldTags","flattenArray","possibleArray","attributes","document","elementTag","getElementsByTagName","helmetAttributeString","getAttribute","helmetAttributes","split","attributesToRemove","attributeKeys","attribute","setAttribute","indexToSave","splice","_i","removeAttribute","type","tags","headElement","head","querySelector","tagNodes","querySelectorAll","slice","indexToDelete","newElement","createElement","innerHTML","styleSheet","cssText","appendChild","createTextNode","some","existingTag","isEqualNode","parentNode","removeChild","generateElementAttributesAsString","attr","convertElementAttributestoReactProps","initProps","getMethodsForTag","encode","toComponent","_initProps","toString","attributeString","flattenedTitle","generateTitleAsString","_mappedTag","mappedTag","mappedAttribute","content","dangerouslySetInnerHTML","__html","generateTagsAsReactComponent","attributeHtml","string","tagContent","isSelfClosing","generateTagsAsString","mapStateOnServer","_ref$title","base","meta","noscript","script","HelmetSideEffects","defer","HelmetExport","_React$Component","HelmetWrapper","instance","TypeError","classCallCheck","this","self","ReferenceError","possibleConstructorReturn","apply","subClass","superClass","create","setPrototypeOf","__proto__","inherits","shouldComponentUpdate","nextProps","mapNestedChildrenToProps","child","nestedChildren","Error","flattenArrayTypeChildren","_babelHelpers$extends","arrayTypeChildren","newChildProps","mapObjectTypeChildren","_ref2","_babelHelpers$extends2","_babelHelpers$extends3","newProps","mapArrayTypeChildrenToProps","newFlattenedProps","arrayChildName","_babelHelpers$extends4","warnOnInvalidChildren","mapChildrenToProps","children","_this2","_child$props","initAttributes","convertReactPropstoHtmlAttributes","render","_props","set","canUseDOM","propTypes","defaultTitle","titleTemplate","defaultProps","peek","rewind","mappedState","renderStatic","queryData","useStaticQuery","metadata","siteMetadata","site","Helmet","Metadata","Menu","Provider","Page","Gallery","buttons","icon","description_long","details","sections","mainImage","mainVideo","paragraphs","videos","project","detail","ButtonGroup","button","iconName","section","href","EmbeddedYouTube","origin","videoId","paragraph","paragraphIndex","ImageGallery","images","minWidth","video","Project","hasElementType","Element","hasMap","Map","hasSet","Set","hasArrayBuffer","ArrayBuffer","isView","equal","a","b","it","entries","next","done","has","get","RegExp","flags","valueOf","$$typeof","error","message","match","ex","React__default","_defineProperty","reducePropsToState","handleStateChangeOnClient","WrappedComponent","state","mountedInstances","emitChange","SideEffect","_PureComponent","recordedState","_proto","UNSAFE_componentWillMount","componentDidUpdate","componentWillUnmount","PureComponent","displayName","getDisplayName","hasOwn","classes","arg","appendClass","parseValue","includes","newClass","default"],"sourceRoot":""} \ No newline at end of file diff --git a/00b1e3a505bf683606152336fa813a9ebca105c7-695a712967cdc6157f90.js.map b/00b1e3a505bf683606152336fa813a9ebca105c7-695a712967cdc6157f90.js.map deleted file mode 100644 index f3d4dc2..0000000 --- a/00b1e3a505bf683606152336fa813a9ebca105c7-695a712967cdc6157f90.js.map +++ /dev/null @@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B,IAAI0G,EAAgBL,EAGpB,OAFAA,OAAQtW,EACRuW,EAAmB,GACZI,CACT,EAEA,IAAIC,EAASH,EAAW5S,UAqBxB,OAnBA+S,EAAOC,0BAA4B,WACjCN,EAAiBhP,KAAK0H,MACtBuH,GACF,EAEAI,EAAOE,mBAAqB,WAC1BN,GACF,EAEAI,EAAOG,qBAAuB,WAC5B,IAAI7b,EAAQqb,EAAiBtR,QAAQgK,MACrCsH,EAAiBpL,OAAOjQ,EAAO,GAC/Bsb,GACF,EAEAI,EAAOtF,OAAS,WACd,OAAO2E,EAAejK,cAAcqK,EAAkBpH,KAAKhL,MAC7D,EAEOwS,CACT,CA9CA,CA8CEvZ,EAAM8Z,eAMR,OAJAd,EAAgBO,EAAY,cAAe,cA1E7C,SAAwBJ,GACtB,OAAOA,EAAiBY,aAAeZ,EAAiBvX,MAAQ,WAClE,CAwE6DoY,CAAeb,GAAoB,KAE9FH,EAAgBO,EAAY,YAAahF,GAElCgF,CACT,CACF,C","sources":["webpack://@adamgraham/portfolio/./node_modules/gatsby/dist/internal-plugins/bundle-optimisations/polyfills/object-assign.js","webpack://@adamgraham/portfolio/./src/utils/session.js","webpack://@adamgraham/portfolio/./src/components/GalleryContext.js","webpack://@adamgraham/portfolio/./src/types/image.js","webpack://@adamgraham/portfolio/./src/components/Slide.js","webpack://@adamgraham/portfolio/./src/icons.js","webpack://@adamgraham/portfolio/./src/images/icons/chevron-left.svg","webpack://@adamgraham/portfolio/./src/images/icons/chevron-right.svg","webpack://@adamgraham/portfolio/./src/images/icons/fullscreen.svg","webpack://@adamgraham/portfolio/./src/images/icons/fullscreen-exit.svg","webpack://@adamgraham/portfolio/./src/images/icons/menu.svg","webpack://@adamgraham/portfolio/./src/images/icons/menu-open.svg","webpack://@adamgraham/portfolio/./src/components/Gallery.js","webpack://@adamgraham/portfolio/./src/links.js","webpack://@adamgraham/portfolio/./src/types/menu.js","webpack://@adamgraham/portfolio/./src/utils/formatting.js","webpack://@adamgraham/portfolio/./src/components/MenuBar.js","webpack://@adamgraham/portfolio/./src/components/MenuGallery.js","webpack://@adamgraham/portfolio/./src/components/MenuList.js","webpack://@adamgraham/portfolio/./src/components/Menu.js","webpack://@adamgraham/portfolio/./node_modules/react-helmet/es/Helmet.js","webpack://@adamgraham/portfolio/./src/components/Metadata.js","webpack://@adamgraham/portfolio/./src/components/Page.js","webpack://@adamgraham/portfolio/./src/components/GalleryPage.js","webpack://@adamgraham/portfolio/./src/components/Project.js","webpack://@adamgraham/portfolio/./src/components/ProjectPage.js","webpack://@adamgraham/portfolio/./node_modules/react-fast-compare/index.js","webpack://@adamgraham/portfolio/./node_modules/react-side-effect/lib/index.js"],"sourcesContent":["\"use strict\";\n\nmodule.exports = Object.assign;\n//# sourceMappingURL=object-assign.js.map","export function getSessionIndex(category) {\n if (category && typeof sessionStorage !== 'undefined') {\n return Number.parseInt(sessionStorage.getItem(`${category}-slide`)) || 0;\n } else {\n return 0;\n }\n}\n\nexport function setSessionIndex(category, slideIndex) {\n if (category && typeof sessionStorage !== 'undefined') {\n sessionStorage.setItem(`${category}-slide`, slideIndex);\n }\n}\n","import { navigate } from 'gatsby';\nimport { createContext, useMemo } from 'react';\nimport { setSessionIndex } from '../utils/session';\n\nexport const useContext = (category, gallery, slideIndex, setSlideIndex) => {\n return useMemo(\n () => ({\n category,\n gallery,\n slideIndex,\n currentSlide: gallery[slideIndex],\n setSlideIndex: (index) => {\n index = Math.min(Math.max(index, 0), gallery.length - 1);\n setSessionIndex(category, index);\n setSlideIndex(index);\n navigate(`/${category}`);\n },\n }),\n [category, gallery, slideIndex]\n );\n};\n\nconst GalleryContext = createContext({\n category: '',\n gallery: [],\n slideIndex: 0,\n currentSlide: null,\n setSlideIndex: () => {},\n});\n\nexport default GalleryContext;\n","import PropTypes from 'prop-types';\n\nexport const ImageProps = PropTypes.shape({\n sharp: PropTypes.shape({\n original: PropTypes.shape({\n src: PropTypes.string.isRequired,\n width: PropTypes.number,\n height: PropTypes.number,\n }),\n }),\n});\n","import { Button, Link, ProgressiveImage } from '@zigurous/react-components';\nimport classNames from 'classnames';\nimport { Link as GatsbyLink } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { ImageProps } from '../types/image';\nimport '../styles/slide.css';\n\nconst Slide = ({ className, slide }) => {\n const offline = typeof navigator !== 'undefined' && !navigator.onLine;\n const projectPath = `/${slide.category}/${slide.id}`;\n return (\n
\n
\n \n \n \n
\n
\n
\n

{slide.date}

\n

{slide.title}

\n

{slide.description_short || slide.description}

\n \n \n \n
\n
\n
\n );\n};\n\nexport const SlideProps = PropTypes.shape({\n category: PropTypes.string.isRequired,\n date: PropTypes.string,\n description: PropTypes.string,\n description_short: PropTypes.string,\n id: PropTypes.string.isRequired,\n image: ImageProps.isRequired,\n imageAltText: PropTypes.string,\n imageBorder: PropTypes.string,\n title: PropTypes.string.isRequired,\n});\n\nSlide.propTypes = {\n className: PropTypes.string,\n slide: SlideProps,\n};\n\nexport default Slide;\n","import chevronLeftIcon from './images/icons/chevron-left.svg';\nimport chevronRightIcon from './images/icons/chevron-right.svg';\nimport galleryIcon from './images/icons/fullscreen.svg';\nimport galleryOpenIcon from './images/icons/fullscreen-exit.svg';\nimport menuIcon from './images/icons/menu.svg';\nimport menuOpenIcon from './images/icons/menu-open.svg';\n\nconst icons = {\n chevronLeft: chevronLeftIcon,\n chevronRight: chevronRightIcon,\n gallery: galleryIcon,\n galleryOpen: galleryOpenIcon,\n menu: menuIcon,\n menuOpen: menuOpenIcon,\n};\n\nexport default icons;\n","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjQ4cHgiIGhlaWdodD0iNDhweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTE0LjcxID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export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjM2cHgiIGhlaWdodD0iMzZweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik01IDE2aDN2M2gydi01SDV2MnptMy04SDV2Mmg1VjVIOHYzem02IDExaDJ2LTNoM3YtMmgtNXY1em0yLTExVjVoLTJ2NWg1VjhoLTN6Ii8+PC9zdmc+\"","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjM2cHgiIGhlaWdodD0iMzZweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPjxwYXRoIGQ9Ik0zIDE4aDE4di0ySDN2MnptMC01aDE4di0ySDN2MnptMC03djJoMThWNkgzeiIvPjwvc3ZnPg==\"","export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjg3KSIgd2lkdGg9IjM2cHgiIGhlaWdodD0iMzZweCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTMgMThoMTN2LTJIM3Yyem0wLTVoMTB2LTJIM3Yyem0wLTd2MmgxM1Y2SDN6bTE4IDkuNTlMMTcuNDIgMTIgMjEgOC40MSAxOS41OSA3bC01IDUgNSA1TDIxIDE1LjU5eiIvPjwvc3ZnPg==\"","import { useMediaQuery } from '@zigurous/react-components';\nimport classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport React, { useContext } from 'react';\nimport GalleryContext from './GalleryContext';\nimport Slide from './Slide';\nimport icons from '../icons';\nimport '../styles/gallery.css';\n\nconst Gallery = ({ className }) => {\n const context = useContext(GalleryContext);\n const verticalLayout = useMediaQuery('(max-width: 1365px)');\n return (\n \n context.setSlideIndex(context.slideIndex - 1)}\n >\n {context.slideIndex > 0 && \"\"}\n \n
\n {context.currentSlide && }\n
\n = context.gallery.length - 1}\n onClick={() => context.setSlideIndex(context.slideIndex + 1)}\n >\n {context.slideIndex < context.gallery.length - 1 && (\n \"\"\n )}\n \n \n );\n};\n\nGallery.propTypes = {\n className: PropTypes.string,\n};\n\nexport default Gallery;\n","export const navLinks = [\n {\n name: 'Games',\n to: '/games',\n },\n {\n name: 'Visual Art',\n to: '/art',\n },\n {\n name: 'Web Design',\n to: '/websites',\n },\n {\n name: 'Emerging Tech',\n to: '/tech',\n },\n {\n name: 'Presentations',\n to: '/presentations',\n },\n {\n name: 'Software',\n to: 'https://github.com/adamgraham',\n rightIcon: 'open_in_new',\n ElementType: 'a',\n external: true,\n },\n];\n\nexport const socialLinks = [\n {\n key: 'github',\n name: 'GitHub',\n url: 'https://github.com/adamgraham',\n },\n {\n key: 'linkedIn',\n name: 'LinkedIn',\n url: 'https://www.linkedin.com/in/adamzigurous',\n },\n {\n key: 'instagram',\n name: 'Instagram',\n url: 'http://instagram.com/adam.zigurous',\n },\n {\n key: 'twitter',\n name: 'Twitter',\n url: 'https://twitter.com/Zigurous',\n },\n {\n key: 'email',\n name: 'Email',\n url: 'mailto:adam@zigurous.com',\n },\n];\n","export const MENU_TYPE_NONE = 'none';\nexport const MENU_TYPE_LIST = 'list';\nexport const MENU_TYPE_GALLERY = 'gallery';\n","export function titleCase(title) {\n return title.replace(/\\b\\w/g, (l) => l.toUpperCase());\n}\n","import { Link, NavBar, SocialNavLinks } from '@zigurous/react-components';\nimport { Link as GatsbyLink } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React, { useContext } from 'react';\nimport GalleryContext from './GalleryContext';\nimport icons from '../icons';\nimport { navLinks, socialLinks } from '../links';\nimport { MENU_TYPE_GALLERY, MENU_TYPE_LIST, MENU_TYPE_NONE } from '../types/menu'; // prettier-ignore\nimport { titleCase } from '../utils/formatting';\n\nconst MenuBar = ({ location, menuType, setMenuType }) => {\n const context = useContext(GalleryContext);\n const showMenu = menuType === MENU_TYPE_LIST;\n const showGallery = menuType === MENU_TYPE_GALLERY;\n return (\n
\n
\n \n Adam Graham\n \n {context.slideIndex === undefined && !fullscreen && (\n \n {titleCase(category)}\n \n )}\n {context.slideIndex !== undefined && (\n \n context.setSlideIndex(context.slideIndex - 1)}\n >\n \"\"\n \n = context.gallery.length - 1}\n onClick={() => context.setSlideIndex(context.slideIndex + 1)}\n >\n \"\"\n \n
\n )}\n \n \n
\n \n \n setMenuType(showGallery ? MENU_TYPE_NONE : MENU_TYPE_GALLERY)\n }\n >\n \"\"\n \n \n setMenuType(showMenu ? MENU_TYPE_NONE : MENU_TYPE_LIST)\n }\n >\n \"\"\n \n
\n
\n );\n};\n\nMenuBar.propTypes = {\n location: PropTypes.object,\n menuType: PropTypes.oneOf([\n MENU_TYPE_NONE,\n MENU_TYPE_LIST,\n MENU_TYPE_GALLERY,\n ]),\n setMenuType: PropTypes.func,\n};\n\nexport default MenuBar;\n","import classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport React, { useContext } from 'react';\nimport GalleryContext from './GalleryContext';\n\nconst MenuGallery = ({ onSelect, open }) => {\n const context = useContext(GalleryContext);\n return (\n \n
\n {context.gallery.map((slide, index) => (\n {\n context.setSlideIndex(index);\n onSelect(index);\n }}\n >\n \n \n ))}\n
\n \n );\n};\n\nMenuGallery.propTypes = {\n onSelect: PropTypes.func,\n open: PropTypes.bool,\n};\n\nexport default MenuGallery;\n","import { Link } from '@zigurous/react-components';\nimport classNames from 'classnames';\nimport { Link as GatsbyLink } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { navLinks } from '../links';\n\nconst MenuList = ({ onLink, open }) => {\n return (\n \n
    \n {navLinks.map((link) => (\n
  • \n \n {link.name}\n \n
  • \n ))}\n
\n \n );\n};\n\nMenuList.propTypes = {\n onLink: PropTypes.func,\n open: PropTypes.bool,\n};\n\nexport default MenuList;\n","import { useModalOverlay } from '@zigurous/react-components';\nimport classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport React, { useCallback, useState } from 'react';\nimport MenuBar from './MenuBar';\nimport MenuGallery from './MenuGallery';\nimport MenuList from './MenuList';\nimport { MENU_TYPE_GALLERY, MENU_TYPE_LIST, MENU_TYPE_NONE } from '../types/menu'; // prettier-ignore\nimport '../styles/menu.css';\n\nconst Menu = ({ location }) => {\n const [menuType, setMenuType] = useState(MENU_TYPE_NONE);\n const fullscreen = menuType !== MENU_TYPE_NONE;\n const listOpen = menuType === MENU_TYPE_LIST;\n const galleryOpen = menuType === MENU_TYPE_GALLERY;\n\n const closeMenu = useCallback(() => {\n setMenuType(MENU_TYPE_NONE);\n }, []);\n\n useModalOverlay(fullscreen, true);\n\n return (\n \n
\n \n
\n \n \n
\n
\n \n );\n};\n\nMenu.propTypes = {\n location: PropTypes.object,\n};\n\nexport default Menu;\n","import PropTypes from 'prop-types';\nimport withSideEffect from 'react-side-effect';\nimport isEqual from 'react-fast-compare';\nimport React from 'react';\nimport objectAssign from 'object-assign';\n\nvar ATTRIBUTE_NAMES = {\n BODY: \"bodyAttributes\",\n HTML: \"htmlAttributes\",\n TITLE: \"titleAttributes\"\n};\n\nvar TAG_NAMES = {\n BASE: \"base\",\n BODY: \"body\",\n HEAD: \"head\",\n HTML: \"html\",\n LINK: \"link\",\n META: \"meta\",\n NOSCRIPT: \"noscript\",\n SCRIPT: \"script\",\n STYLE: \"style\",\n TITLE: \"title\"\n};\n\nvar VALID_TAG_NAMES = Object.keys(TAG_NAMES).map(function (name) {\n return TAG_NAMES[name];\n});\n\nvar TAG_PROPERTIES = {\n CHARSET: \"charset\",\n CSS_TEXT: \"cssText\",\n HREF: \"href\",\n HTTPEQUIV: \"http-equiv\",\n INNER_HTML: \"innerHTML\",\n ITEM_PROP: \"itemprop\",\n NAME: \"name\",\n PROPERTY: \"property\",\n REL: \"rel\",\n SRC: \"src\",\n TARGET: \"target\"\n};\n\nvar REACT_TAG_MAP = {\n accesskey: \"accessKey\",\n charset: \"charSet\",\n class: \"className\",\n contenteditable: \"contentEditable\",\n contextmenu: \"contextMenu\",\n \"http-equiv\": \"httpEquiv\",\n itemprop: \"itemProp\",\n tabindex: \"tabIndex\"\n};\n\nvar HELMET_PROPS = {\n DEFAULT_TITLE: \"defaultTitle\",\n DEFER: \"defer\",\n ENCODE_SPECIAL_CHARACTERS: \"encodeSpecialCharacters\",\n ON_CHANGE_CLIENT_STATE: \"onChangeClientState\",\n TITLE_TEMPLATE: \"titleTemplate\"\n};\n\nvar HTML_TAG_MAP = Object.keys(REACT_TAG_MAP).reduce(function (obj, key) {\n obj[REACT_TAG_MAP[key]] = key;\n return obj;\n}, {});\n\nvar SELF_CLOSING_TAGS = [TAG_NAMES.NOSCRIPT, TAG_NAMES.SCRIPT, TAG_NAMES.STYLE];\n\nvar HELMET_ATTRIBUTE = \"data-react-helmet\";\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nvar inherits = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\nvar objectWithoutProperties = function (obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n};\n\nvar possibleConstructorReturn = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n};\n\nvar encodeSpecialCharacters = function encodeSpecialCharacters(str) {\n var encode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n if (encode === false) {\n return String(str);\n }\n\n return String(str).replace(/&/g, \"&\").replace(//g, \">\").replace(/\"/g, \""\").replace(/'/g, \"'\");\n};\n\nvar getTitleFromPropsList = function getTitleFromPropsList(propsList) {\n var innermostTitle = getInnermostProperty(propsList, TAG_NAMES.TITLE);\n var innermostTemplate = getInnermostProperty(propsList, HELMET_PROPS.TITLE_TEMPLATE);\n\n if (innermostTemplate && innermostTitle) {\n // use function arg to avoid need to escape $ characters\n return innermostTemplate.replace(/%s/g, function () {\n return Array.isArray(innermostTitle) ? innermostTitle.join(\"\") : innermostTitle;\n });\n }\n\n var innermostDefaultTitle = getInnermostProperty(propsList, HELMET_PROPS.DEFAULT_TITLE);\n\n return innermostTitle || innermostDefaultTitle || undefined;\n};\n\nvar getOnChangeClientState = function getOnChangeClientState(propsList) {\n return getInnermostProperty(propsList, HELMET_PROPS.ON_CHANGE_CLIENT_STATE) || function () {};\n};\n\nvar getAttributesFromPropsList = function getAttributesFromPropsList(tagType, propsList) {\n return propsList.filter(function (props) {\n return typeof props[tagType] !== \"undefined\";\n }).map(function (props) {\n return props[tagType];\n }).reduce(function (tagAttrs, current) {\n return _extends({}, tagAttrs, current);\n }, {});\n};\n\nvar getBaseTagFromPropsList = function getBaseTagFromPropsList(primaryAttributes, propsList) {\n return propsList.filter(function (props) {\n return typeof props[TAG_NAMES.BASE] !== \"undefined\";\n }).map(function (props) {\n return props[TAG_NAMES.BASE];\n }).reverse().reduce(function (innermostBaseTag, tag) {\n if (!innermostBaseTag.length) {\n var keys = Object.keys(tag);\n\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var lowerCaseAttributeKey = attributeKey.toLowerCase();\n\n if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && tag[lowerCaseAttributeKey]) {\n return innermostBaseTag.concat(tag);\n }\n }\n }\n\n return innermostBaseTag;\n }, []);\n};\n\nvar getTagsFromPropsList = function getTagsFromPropsList(tagName, primaryAttributes, propsList) {\n // Calculate list of tags, giving priority innermost component (end of the propslist)\n var approvedSeenTags = {};\n\n return propsList.filter(function (props) {\n if (Array.isArray(props[tagName])) {\n return true;\n }\n if (typeof props[tagName] !== \"undefined\") {\n warn(\"Helmet: \" + tagName + \" should be of type \\\"Array\\\". Instead found type \\\"\" + _typeof(props[tagName]) + \"\\\"\");\n }\n return false;\n }).map(function (props) {\n return props[tagName];\n }).reverse().reduce(function (approvedTags, instanceTags) {\n var instanceSeenTags = {};\n\n instanceTags.filter(function (tag) {\n var primaryAttributeKey = void 0;\n var keys = Object.keys(tag);\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var lowerCaseAttributeKey = attributeKey.toLowerCase();\n\n // Special rule with link tags, since rel and href are both primary tags, rel takes priority\n if (primaryAttributes.indexOf(lowerCaseAttributeKey) !== -1 && !(primaryAttributeKey === TAG_PROPERTIES.REL && tag[primaryAttributeKey].toLowerCase() === \"canonical\") && !(lowerCaseAttributeKey === TAG_PROPERTIES.REL && tag[lowerCaseAttributeKey].toLowerCase() === \"stylesheet\")) {\n primaryAttributeKey = lowerCaseAttributeKey;\n }\n // Special case for innerHTML which doesn't work lowercased\n if (primaryAttributes.indexOf(attributeKey) !== -1 && (attributeKey === TAG_PROPERTIES.INNER_HTML || attributeKey === TAG_PROPERTIES.CSS_TEXT || attributeKey === TAG_PROPERTIES.ITEM_PROP)) {\n primaryAttributeKey = attributeKey;\n }\n }\n\n if (!primaryAttributeKey || !tag[primaryAttributeKey]) {\n return false;\n }\n\n var value = tag[primaryAttributeKey].toLowerCase();\n\n if (!approvedSeenTags[primaryAttributeKey]) {\n approvedSeenTags[primaryAttributeKey] = {};\n }\n\n if (!instanceSeenTags[primaryAttributeKey]) {\n instanceSeenTags[primaryAttributeKey] = {};\n }\n\n if (!approvedSeenTags[primaryAttributeKey][value]) {\n instanceSeenTags[primaryAttributeKey][value] = true;\n return true;\n }\n\n return false;\n }).reverse().forEach(function (tag) {\n return approvedTags.push(tag);\n });\n\n // Update seen tags with tags from this instance\n var keys = Object.keys(instanceSeenTags);\n for (var i = 0; i < keys.length; i++) {\n var attributeKey = keys[i];\n var tagUnion = objectAssign({}, approvedSeenTags[attributeKey], instanceSeenTags[attributeKey]);\n\n approvedSeenTags[attributeKey] = tagUnion;\n }\n\n return approvedTags;\n }, []).reverse();\n};\n\nvar getInnermostProperty = function getInnermostProperty(propsList, property) {\n for (var i = propsList.length - 1; i >= 0; i--) {\n var props = propsList[i];\n\n if (props.hasOwnProperty(property)) {\n return props[property];\n }\n }\n\n return null;\n};\n\nvar reducePropsToState = function reducePropsToState(propsList) {\n return {\n baseTag: getBaseTagFromPropsList([TAG_PROPERTIES.HREF, TAG_PROPERTIES.TARGET], propsList),\n bodyAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY, propsList),\n defer: getInnermostProperty(propsList, HELMET_PROPS.DEFER),\n encode: getInnermostProperty(propsList, HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),\n htmlAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML, propsList),\n linkTags: getTagsFromPropsList(TAG_NAMES.LINK, [TAG_PROPERTIES.REL, TAG_PROPERTIES.HREF], propsList),\n metaTags: getTagsFromPropsList(TAG_NAMES.META, [TAG_PROPERTIES.NAME, TAG_PROPERTIES.CHARSET, TAG_PROPERTIES.HTTPEQUIV, TAG_PROPERTIES.PROPERTY, TAG_PROPERTIES.ITEM_PROP], propsList),\n noscriptTags: getTagsFromPropsList(TAG_NAMES.NOSCRIPT, [TAG_PROPERTIES.INNER_HTML], propsList),\n onChangeClientState: getOnChangeClientState(propsList),\n scriptTags: getTagsFromPropsList(TAG_NAMES.SCRIPT, [TAG_PROPERTIES.SRC, TAG_PROPERTIES.INNER_HTML], propsList),\n styleTags: getTagsFromPropsList(TAG_NAMES.STYLE, [TAG_PROPERTIES.CSS_TEXT], propsList),\n title: getTitleFromPropsList(propsList),\n titleAttributes: getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE, propsList)\n };\n};\n\nvar rafPolyfill = function () {\n var clock = Date.now();\n\n return function (callback) {\n var currentTime = Date.now();\n\n if (currentTime - clock > 16) {\n clock = currentTime;\n callback(currentTime);\n } else {\n setTimeout(function () {\n rafPolyfill(callback);\n }, 0);\n }\n };\n}();\n\nvar cafPolyfill = function cafPolyfill(id) {\n return clearTimeout(id);\n};\n\nvar requestAnimationFrame = typeof window !== \"undefined\" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || rafPolyfill : global.requestAnimationFrame || rafPolyfill;\n\nvar cancelAnimationFrame = typeof window !== \"undefined\" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || cafPolyfill : global.cancelAnimationFrame || cafPolyfill;\n\nvar warn = function warn(msg) {\n return console && typeof console.warn === \"function\" && console.warn(msg);\n};\n\nvar _helmetCallback = null;\n\nvar handleClientStateChange = function handleClientStateChange(newState) {\n if (_helmetCallback) {\n cancelAnimationFrame(_helmetCallback);\n }\n\n if (newState.defer) {\n _helmetCallback = requestAnimationFrame(function () {\n commitTagChanges(newState, function () {\n _helmetCallback = null;\n });\n });\n } else {\n commitTagChanges(newState);\n _helmetCallback = null;\n }\n};\n\nvar commitTagChanges = function commitTagChanges(newState, cb) {\n var baseTag = newState.baseTag,\n bodyAttributes = newState.bodyAttributes,\n htmlAttributes = newState.htmlAttributes,\n linkTags = newState.linkTags,\n metaTags = newState.metaTags,\n noscriptTags = newState.noscriptTags,\n onChangeClientState = newState.onChangeClientState,\n scriptTags = newState.scriptTags,\n styleTags = newState.styleTags,\n title = newState.title,\n titleAttributes = newState.titleAttributes;\n\n updateAttributes(TAG_NAMES.BODY, bodyAttributes);\n updateAttributes(TAG_NAMES.HTML, htmlAttributes);\n\n updateTitle(title, titleAttributes);\n\n var tagUpdates = {\n baseTag: updateTags(TAG_NAMES.BASE, baseTag),\n linkTags: updateTags(TAG_NAMES.LINK, linkTags),\n metaTags: updateTags(TAG_NAMES.META, metaTags),\n noscriptTags: updateTags(TAG_NAMES.NOSCRIPT, noscriptTags),\n scriptTags: updateTags(TAG_NAMES.SCRIPT, scriptTags),\n styleTags: updateTags(TAG_NAMES.STYLE, styleTags)\n };\n\n var addedTags = {};\n var removedTags = {};\n\n Object.keys(tagUpdates).forEach(function (tagType) {\n var _tagUpdates$tagType = tagUpdates[tagType],\n newTags = _tagUpdates$tagType.newTags,\n oldTags = _tagUpdates$tagType.oldTags;\n\n\n if (newTags.length) {\n addedTags[tagType] = newTags;\n }\n if (oldTags.length) {\n removedTags[tagType] = tagUpdates[tagType].oldTags;\n }\n });\n\n cb && cb();\n\n onChangeClientState(newState, addedTags, removedTags);\n};\n\nvar flattenArray = function flattenArray(possibleArray) {\n return Array.isArray(possibleArray) ? possibleArray.join(\"\") : possibleArray;\n};\n\nvar updateTitle = function updateTitle(title, attributes) {\n if (typeof title !== \"undefined\" && document.title !== title) {\n document.title = flattenArray(title);\n }\n\n updateAttributes(TAG_NAMES.TITLE, attributes);\n};\n\nvar updateAttributes = function updateAttributes(tagName, attributes) {\n var elementTag = document.getElementsByTagName(tagName)[0];\n\n if (!elementTag) {\n return;\n }\n\n var helmetAttributeString = elementTag.getAttribute(HELMET_ATTRIBUTE);\n var helmetAttributes = helmetAttributeString ? helmetAttributeString.split(\",\") : [];\n var attributesToRemove = [].concat(helmetAttributes);\n var attributeKeys = Object.keys(attributes);\n\n for (var i = 0; i < attributeKeys.length; i++) {\n var attribute = attributeKeys[i];\n var value = attributes[attribute] || \"\";\n\n if (elementTag.getAttribute(attribute) !== value) {\n elementTag.setAttribute(attribute, value);\n }\n\n if (helmetAttributes.indexOf(attribute) === -1) {\n helmetAttributes.push(attribute);\n }\n\n var indexToSave = attributesToRemove.indexOf(attribute);\n if (indexToSave !== -1) {\n attributesToRemove.splice(indexToSave, 1);\n }\n }\n\n for (var _i = attributesToRemove.length - 1; _i >= 0; _i--) {\n elementTag.removeAttribute(attributesToRemove[_i]);\n }\n\n if (helmetAttributes.length === attributesToRemove.length) {\n elementTag.removeAttribute(HELMET_ATTRIBUTE);\n } else if (elementTag.getAttribute(HELMET_ATTRIBUTE) !== attributeKeys.join(\",\")) {\n elementTag.setAttribute(HELMET_ATTRIBUTE, attributeKeys.join(\",\"));\n }\n};\n\nvar updateTags = function updateTags(type, tags) {\n var headElement = document.head || document.querySelector(TAG_NAMES.HEAD);\n var tagNodes = headElement.querySelectorAll(type + \"[\" + HELMET_ATTRIBUTE + \"]\");\n var oldTags = Array.prototype.slice.call(tagNodes);\n var newTags = [];\n var indexToDelete = void 0;\n\n if (tags && tags.length) {\n tags.forEach(function (tag) {\n var newElement = document.createElement(type);\n\n for (var attribute in tag) {\n if (tag.hasOwnProperty(attribute)) {\n if (attribute === TAG_PROPERTIES.INNER_HTML) {\n newElement.innerHTML = tag.innerHTML;\n } else if (attribute === TAG_PROPERTIES.CSS_TEXT) {\n if (newElement.styleSheet) {\n newElement.styleSheet.cssText = tag.cssText;\n } else {\n newElement.appendChild(document.createTextNode(tag.cssText));\n }\n } else {\n var value = typeof tag[attribute] === \"undefined\" ? \"\" : tag[attribute];\n newElement.setAttribute(attribute, value);\n }\n }\n }\n\n newElement.setAttribute(HELMET_ATTRIBUTE, \"true\");\n\n // Remove a duplicate tag from domTagstoRemove, so it isn't cleared.\n if (oldTags.some(function (existingTag, index) {\n indexToDelete = index;\n return newElement.isEqualNode(existingTag);\n })) {\n oldTags.splice(indexToDelete, 1);\n } else {\n newTags.push(newElement);\n }\n });\n }\n\n oldTags.forEach(function (tag) {\n return tag.parentNode.removeChild(tag);\n });\n newTags.forEach(function (tag) {\n return headElement.appendChild(tag);\n });\n\n return {\n oldTags: oldTags,\n newTags: newTags\n };\n};\n\nvar generateElementAttributesAsString = function generateElementAttributesAsString(attributes) {\n return Object.keys(attributes).reduce(function (str, key) {\n var attr = typeof attributes[key] !== \"undefined\" ? key + \"=\\\"\" + attributes[key] + \"\\\"\" : \"\" + key;\n return str ? str + \" \" + attr : attr;\n }, \"\");\n};\n\nvar generateTitleAsString = function generateTitleAsString(type, title, attributes, encode) {\n var attributeString = generateElementAttributesAsString(attributes);\n var flattenedTitle = flattenArray(title);\n return attributeString ? \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\" \" + attributeString + \">\" + encodeSpecialCharacters(flattenedTitle, encode) + \"\" : \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\">\" + encodeSpecialCharacters(flattenedTitle, encode) + \"\";\n};\n\nvar generateTagsAsString = function generateTagsAsString(type, tags, encode) {\n return tags.reduce(function (str, tag) {\n var attributeHtml = Object.keys(tag).filter(function (attribute) {\n return !(attribute === TAG_PROPERTIES.INNER_HTML || attribute === TAG_PROPERTIES.CSS_TEXT);\n }).reduce(function (string, attribute) {\n var attr = typeof tag[attribute] === \"undefined\" ? attribute : attribute + \"=\\\"\" + encodeSpecialCharacters(tag[attribute], encode) + \"\\\"\";\n return string ? string + \" \" + attr : attr;\n }, \"\");\n\n var tagContent = tag.innerHTML || tag.cssText || \"\";\n\n var isSelfClosing = SELF_CLOSING_TAGS.indexOf(type) === -1;\n\n return str + \"<\" + type + \" \" + HELMET_ATTRIBUTE + \"=\\\"true\\\" \" + attributeHtml + (isSelfClosing ? \"/>\" : \">\" + tagContent + \"\");\n }, \"\");\n};\n\nvar convertElementAttributestoReactProps = function convertElementAttributestoReactProps(attributes) {\n var initProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return Object.keys(attributes).reduce(function (obj, key) {\n obj[REACT_TAG_MAP[key] || key] = attributes[key];\n return obj;\n }, initProps);\n};\n\nvar convertReactPropstoHtmlAttributes = function convertReactPropstoHtmlAttributes(props) {\n var initAttributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return Object.keys(props).reduce(function (obj, key) {\n obj[HTML_TAG_MAP[key] || key] = props[key];\n return obj;\n }, initAttributes);\n};\n\nvar generateTitleAsReactComponent = function generateTitleAsReactComponent(type, title, attributes) {\n var _initProps;\n\n // assigning into an array to define toString function on it\n var initProps = (_initProps = {\n key: title\n }, _initProps[HELMET_ATTRIBUTE] = true, _initProps);\n var props = convertElementAttributestoReactProps(attributes, initProps);\n\n return [React.createElement(TAG_NAMES.TITLE, props, title)];\n};\n\nvar generateTagsAsReactComponent = function generateTagsAsReactComponent(type, tags) {\n return tags.map(function (tag, i) {\n var _mappedTag;\n\n var mappedTag = (_mappedTag = {\n key: i\n }, _mappedTag[HELMET_ATTRIBUTE] = true, _mappedTag);\n\n Object.keys(tag).forEach(function (attribute) {\n var mappedAttribute = REACT_TAG_MAP[attribute] || attribute;\n\n if (mappedAttribute === TAG_PROPERTIES.INNER_HTML || mappedAttribute === TAG_PROPERTIES.CSS_TEXT) {\n var content = tag.innerHTML || tag.cssText;\n mappedTag.dangerouslySetInnerHTML = { __html: content };\n } else {\n mappedTag[mappedAttribute] = tag[attribute];\n }\n });\n\n return React.createElement(type, mappedTag);\n });\n};\n\nvar getMethodsForTag = function getMethodsForTag(type, tags, encode) {\n switch (type) {\n case TAG_NAMES.TITLE:\n return {\n toComponent: function toComponent() {\n return generateTitleAsReactComponent(type, tags.title, tags.titleAttributes, encode);\n },\n toString: function toString() {\n return generateTitleAsString(type, tags.title, tags.titleAttributes, encode);\n }\n };\n case ATTRIBUTE_NAMES.BODY:\n case ATTRIBUTE_NAMES.HTML:\n return {\n toComponent: function toComponent() {\n return convertElementAttributestoReactProps(tags);\n },\n toString: function toString() {\n return generateElementAttributesAsString(tags);\n }\n };\n default:\n return {\n toComponent: function toComponent() {\n return generateTagsAsReactComponent(type, tags);\n },\n toString: function toString() {\n return generateTagsAsString(type, tags, encode);\n }\n };\n }\n};\n\nvar mapStateOnServer = function mapStateOnServer(_ref) {\n var baseTag = _ref.baseTag,\n bodyAttributes = _ref.bodyAttributes,\n encode = _ref.encode,\n htmlAttributes = _ref.htmlAttributes,\n linkTags = _ref.linkTags,\n metaTags = _ref.metaTags,\n noscriptTags = _ref.noscriptTags,\n scriptTags = _ref.scriptTags,\n styleTags = _ref.styleTags,\n _ref$title = _ref.title,\n title = _ref$title === undefined ? \"\" : _ref$title,\n titleAttributes = _ref.titleAttributes;\n return {\n base: getMethodsForTag(TAG_NAMES.BASE, baseTag, encode),\n bodyAttributes: getMethodsForTag(ATTRIBUTE_NAMES.BODY, bodyAttributes, encode),\n htmlAttributes: getMethodsForTag(ATTRIBUTE_NAMES.HTML, htmlAttributes, encode),\n link: getMethodsForTag(TAG_NAMES.LINK, linkTags, encode),\n meta: getMethodsForTag(TAG_NAMES.META, metaTags, encode),\n noscript: getMethodsForTag(TAG_NAMES.NOSCRIPT, noscriptTags, encode),\n script: getMethodsForTag(TAG_NAMES.SCRIPT, scriptTags, encode),\n style: getMethodsForTag(TAG_NAMES.STYLE, styleTags, encode),\n title: getMethodsForTag(TAG_NAMES.TITLE, { title: title, titleAttributes: titleAttributes }, encode)\n };\n};\n\nvar Helmet = function Helmet(Component) {\n var _class, _temp;\n\n return _temp = _class = function (_React$Component) {\n inherits(HelmetWrapper, _React$Component);\n\n function HelmetWrapper() {\n classCallCheck(this, HelmetWrapper);\n return possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n HelmetWrapper.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return !isEqual(this.props, nextProps);\n };\n\n HelmetWrapper.prototype.mapNestedChildrenToProps = function mapNestedChildrenToProps(child, nestedChildren) {\n if (!nestedChildren) {\n return null;\n }\n\n switch (child.type) {\n case TAG_NAMES.SCRIPT:\n case TAG_NAMES.NOSCRIPT:\n return {\n innerHTML: nestedChildren\n };\n\n case TAG_NAMES.STYLE:\n return {\n cssText: nestedChildren\n };\n }\n\n throw new Error(\"<\" + child.type + \" /> elements are self-closing and can not contain children. Refer to our API for more information.\");\n };\n\n HelmetWrapper.prototype.flattenArrayTypeChildren = function flattenArrayTypeChildren(_ref) {\n var _babelHelpers$extends;\n\n var child = _ref.child,\n arrayTypeChildren = _ref.arrayTypeChildren,\n newChildProps = _ref.newChildProps,\n nestedChildren = _ref.nestedChildren;\n\n return _extends({}, arrayTypeChildren, (_babelHelpers$extends = {}, _babelHelpers$extends[child.type] = [].concat(arrayTypeChildren[child.type] || [], [_extends({}, newChildProps, this.mapNestedChildrenToProps(child, nestedChildren))]), _babelHelpers$extends));\n };\n\n HelmetWrapper.prototype.mapObjectTypeChildren = function mapObjectTypeChildren(_ref2) {\n var _babelHelpers$extends2, _babelHelpers$extends3;\n\n var child = _ref2.child,\n newProps = _ref2.newProps,\n newChildProps = _ref2.newChildProps,\n nestedChildren = _ref2.nestedChildren;\n\n switch (child.type) {\n case TAG_NAMES.TITLE:\n return _extends({}, newProps, (_babelHelpers$extends2 = {}, _babelHelpers$extends2[child.type] = nestedChildren, _babelHelpers$extends2.titleAttributes = _extends({}, newChildProps), _babelHelpers$extends2));\n\n case TAG_NAMES.BODY:\n return _extends({}, newProps, {\n bodyAttributes: _extends({}, newChildProps)\n });\n\n case TAG_NAMES.HTML:\n return _extends({}, newProps, {\n htmlAttributes: _extends({}, newChildProps)\n });\n }\n\n return _extends({}, newProps, (_babelHelpers$extends3 = {}, _babelHelpers$extends3[child.type] = _extends({}, newChildProps), _babelHelpers$extends3));\n };\n\n HelmetWrapper.prototype.mapArrayTypeChildrenToProps = function mapArrayTypeChildrenToProps(arrayTypeChildren, newProps) {\n var newFlattenedProps = _extends({}, newProps);\n\n Object.keys(arrayTypeChildren).forEach(function (arrayChildName) {\n var _babelHelpers$extends4;\n\n newFlattenedProps = _extends({}, newFlattenedProps, (_babelHelpers$extends4 = {}, _babelHelpers$extends4[arrayChildName] = arrayTypeChildren[arrayChildName], _babelHelpers$extends4));\n });\n\n return newFlattenedProps;\n };\n\n HelmetWrapper.prototype.warnOnInvalidChildren = function warnOnInvalidChildren(child, nestedChildren) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!VALID_TAG_NAMES.some(function (name) {\n return child.type === name;\n })) {\n if (typeof child.type === \"function\") {\n return warn(\"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.\");\n }\n\n return warn(\"Only elements types \" + VALID_TAG_NAMES.join(\", \") + \" are allowed. Helmet does not support rendering <\" + child.type + \"> elements. Refer to our API for more information.\");\n }\n\n if (nestedChildren && typeof nestedChildren !== \"string\" && (!Array.isArray(nestedChildren) || nestedChildren.some(function (nestedChild) {\n return typeof nestedChild !== \"string\";\n }))) {\n throw new Error(\"Helmet expects a string as a child of <\" + child.type + \">. Did you forget to wrap your children in braces? ( <\" + child.type + \">{``} ) Refer to our API for more information.\");\n }\n }\n\n return true;\n };\n\n HelmetWrapper.prototype.mapChildrenToProps = function mapChildrenToProps(children, newProps) {\n var _this2 = this;\n\n var arrayTypeChildren = {};\n\n React.Children.forEach(children, function (child) {\n if (!child || !child.props) {\n return;\n }\n\n var _child$props = child.props,\n nestedChildren = _child$props.children,\n childProps = objectWithoutProperties(_child$props, [\"children\"]);\n\n var newChildProps = convertReactPropstoHtmlAttributes(childProps);\n\n _this2.warnOnInvalidChildren(child, nestedChildren);\n\n switch (child.type) {\n case TAG_NAMES.LINK:\n case TAG_NAMES.META:\n case TAG_NAMES.NOSCRIPT:\n case TAG_NAMES.SCRIPT:\n case TAG_NAMES.STYLE:\n arrayTypeChildren = _this2.flattenArrayTypeChildren({\n child: child,\n arrayTypeChildren: arrayTypeChildren,\n newChildProps: newChildProps,\n nestedChildren: nestedChildren\n });\n break;\n\n default:\n newProps = _this2.mapObjectTypeChildren({\n child: child,\n newProps: newProps,\n newChildProps: newChildProps,\n nestedChildren: nestedChildren\n });\n break;\n }\n });\n\n newProps = this.mapArrayTypeChildrenToProps(arrayTypeChildren, newProps);\n return newProps;\n };\n\n HelmetWrapper.prototype.render = function render() {\n var _props = this.props,\n children = _props.children,\n props = objectWithoutProperties(_props, [\"children\"]);\n\n var newProps = _extends({}, props);\n\n if (children) {\n newProps = this.mapChildrenToProps(children, newProps);\n }\n\n return React.createElement(Component, newProps);\n };\n\n createClass(HelmetWrapper, null, [{\n key: \"canUseDOM\",\n\n\n // Component.peek comes from react-side-effect:\n // For testing, you may use a static peek() method available on the returned component.\n // It lets you get the current state without resetting the mounted instance stack.\n // Don’t use it for anything other than testing.\n\n /**\n * @param {Object} base: {\"target\": \"_blank\", \"href\": \"http://mysite.com/\"}\n * @param {Object} bodyAttributes: {\"className\": \"root\"}\n * @param {String} defaultTitle: \"Default Title\"\n * @param {Boolean} defer: true\n * @param {Boolean} encodeSpecialCharacters: true\n * @param {Object} htmlAttributes: {\"lang\": \"en\", \"amp\": undefined}\n * @param {Array} link: [{\"rel\": \"canonical\", \"href\": \"http://mysite.com/example\"}]\n * @param {Array} meta: [{\"name\": \"description\", \"content\": \"Test description\"}]\n * @param {Array} noscript: [{\"innerHTML\": \" console.log(newState)\"\n * @param {Array} script: [{\"type\": \"text/javascript\", \"src\": \"http://mysite.com/js/test.js\"}]\n * @param {Array} style: [{\"type\": \"text/css\", \"cssText\": \"div { display: block; color: blue; }\"}]\n * @param {String} title: \"Title\"\n * @param {Object} titleAttributes: {\"itemprop\": \"name\"}\n * @param {String} titleTemplate: \"MySite.com - %s\"\n */\n set: function set$$1(canUseDOM) {\n Component.canUseDOM = canUseDOM;\n }\n }]);\n return HelmetWrapper;\n }(React.Component), _class.propTypes = {\n base: PropTypes.object,\n bodyAttributes: PropTypes.object,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n defaultTitle: PropTypes.string,\n defer: PropTypes.bool,\n encodeSpecialCharacters: PropTypes.bool,\n htmlAttributes: PropTypes.object,\n link: PropTypes.arrayOf(PropTypes.object),\n meta: PropTypes.arrayOf(PropTypes.object),\n noscript: PropTypes.arrayOf(PropTypes.object),\n onChangeClientState: PropTypes.func,\n script: PropTypes.arrayOf(PropTypes.object),\n style: PropTypes.arrayOf(PropTypes.object),\n title: PropTypes.string,\n titleAttributes: PropTypes.object,\n titleTemplate: PropTypes.string\n }, _class.defaultProps = {\n defer: true,\n encodeSpecialCharacters: true\n }, _class.peek = Component.peek, _class.rewind = function () {\n var mappedState = Component.rewind();\n if (!mappedState) {\n // provide fallback if mappedState is undefined\n mappedState = mapStateOnServer({\n baseTag: [],\n bodyAttributes: {},\n encodeSpecialCharacters: true,\n htmlAttributes: {},\n linkTags: [],\n metaTags: [],\n noscriptTags: [],\n scriptTags: [],\n styleTags: [],\n title: \"\",\n titleAttributes: {}\n });\n }\n\n return mappedState;\n }, _temp;\n};\n\nvar NullComponent = function NullComponent() {\n return null;\n};\n\nvar HelmetSideEffects = withSideEffect(reducePropsToState, handleClientStateChange, mapStateOnServer)(NullComponent);\n\nvar HelmetExport = Helmet(HelmetSideEffects);\nHelmetExport.renderStatic = HelmetExport.rewind;\n\nexport default HelmetExport;\nexport { HelmetExport as Helmet };\n","import { graphql, useStaticQuery } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { Helmet } from 'react-helmet';\n\nconst query = graphql`\n query Metadata {\n site {\n metadata: siteMetadata {\n title\n description\n }\n }\n }\n`;\n\nconst Metadata = (props) => {\n const queryData = useStaticQuery(query);\n const { metadata: siteMetadata } = queryData.site;\n const metadata = { ...siteMetadata, ...props };\n return (\n \n {/* General tags */}\n {metadata.title}\n \n {metadata.image && }\n\n {/* Open Graph tags */}\n {metadata.url && }\n \n \n \n {metadata.image && }\n\n {/* Twitter Card tags */}\n \n \n \n \n {metadata.image && }\n \n );\n};\n\nMetadata.propTypes = {\n description: PropTypes.string,\n image: PropTypes.string,\n title: PropTypes.string,\n url: PropTypes.string,\n};\n\nexport default Metadata;\n","import classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport Menu from './Menu';\nimport Metadata from './Metadata';\n\nconst Page = ({ children, className, id, location, metadata }) => (\n
\n \n
\n {children}\n
\n \n
\n);\n\nPage.propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n id: PropTypes.string,\n location: PropTypes.object,\n metadata: PropTypes.object,\n};\n\nexport default Page;\n","import PropTypes from 'prop-types';\nimport React, { useState } from 'react';\nimport Gallery from './Gallery';\nimport GalleryContext, { useContext } from './GalleryContext';\nimport Page from './Page';\nimport { SlideProps } from './Slide';\nimport { titleCase } from '../utils/formatting';\nimport { getSessionIndex } from '../utils/session';\n\nconst GalleryPage = ({ category, gallery, location }) => {\n const [slideIndex, setSlideIndex] = useState(getSessionIndex(category));\n const context = useContext(category, gallery, slideIndex, setSlideIndex);\n return (\n \n \n \n \n \n );\n};\n\nGalleryPage.propTypes = {\n category: PropTypes.string,\n gallery: PropTypes.arrayOf(SlideProps),\n location: PropTypes.object,\n};\n\nexport default GalleryPage;\n","import { Button, ButtonGroup, EmbeddedYouTube, ImageGallery, Link, ProgressiveImage } from '@zigurous/react-components'; // prettier-ignore\nimport classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { ImageProps } from '../types/image';\nimport '../styles/project.css';\n\nconst Project = ({ className, project }) => (\n
\n
\n

{project.title}

\n
\n
\n {project.description &&

{project.description}

}\n {project.description_long &&\n project.description_long.map((description) => (\n

{description}

\n ))}\n
\n {project.details && (\n
\n

\n {project.details.map((detail, index) => (\n \n {index !== 0 &&
}\n {detail.key} {detail.value}\n
\n ))}\n

\n
\n )}\n {project.buttons && (\n
\n \n {project.buttons.map((button) => (\n \n \n {button.name}\n \n \n ))}\n \n
\n )}\n {project.sections &&\n project.sections.map((section, index) => (\n
\n {section.title && (\n

\n {section.link ? (\n \n {section.title}\n \n ) : (\n {section.title}\n )}\n

\n )}\n {section.mainImage && (\n \n )}\n {section.mainVideo && (\n \n )}\n {section.paragraphs &&\n section.paragraphs.map((paragraph, paragraphIndex) => (\n \n {paragraph}\n

\n ))}\n {section.gallery && (\n ({\n width: image.sharp.original.width,\n height: image.sharp.original.height,\n src: image.sharp.original.src,\n }))}\n minWidth={128}\n />\n )}\n {section.videos &&\n section.videos.map((video) => (\n \n ))}\n
\n ))}\n
\n);\n\nexport const ProjectProps = PropTypes.shape({\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n link: PropTypes.string.isRequired,\n icon: PropTypes.string,\n })\n ),\n category: PropTypes.string.isRequired,\n date: PropTypes.string,\n description: PropTypes.string,\n description_short: PropTypes.string,\n description_long: PropTypes.arrayOf(PropTypes.string),\n details: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n })\n ),\n id: PropTypes.string.isRequired,\n image: ImageProps.isRequired,\n sections: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n link: PropTypes.string,\n mainImage: ImageProps,\n mainVideo: PropTypes.string,\n paragraphs: PropTypes.arrayOf(PropTypes.string),\n gallery: PropTypes.arrayOf(ImageProps),\n videos: PropTypes.arrayOf(PropTypes.string),\n })\n ),\n title: PropTypes.string.isRequired,\n});\n\nProject.propTypes = {\n className: PropTypes.string,\n project: ProjectProps,\n};\n\nexport default Project;\n","import PropTypes from 'prop-types';\nimport React, { useState } from 'react';\nimport GalleryContext, { useContext } from './GalleryContext';\nimport Page from './Page';\nimport Project, { ProjectProps } from './Project';\nimport { SlideProps } from './Slide';\nimport { getSessionIndex } from '../utils/session';\n\nconst ProjectPage = ({ category, gallery, location, project }) => {\n const [slideIndex, setSlideIndex] = useState(getSessionIndex(category));\n const context = useContext(category, gallery, slideIndex, setSlideIndex);\n return (\n \n \n \n \n \n );\n};\n\nProjectPage.propTypes = {\n category: PropTypes.string,\n gallery: PropTypes.arrayOf(SlideProps),\n location: PropTypes.object,\n project: ProjectProps,\n};\n\nexport default ProjectPage;\n","/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */\n\nvar hasElementType = typeof Element !== 'undefined';\nvar hasMap = typeof Map === 'function';\nvar hasSet = typeof Set === 'function';\nvar hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;\n\n// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js\n\nfunction equal(a, b) {\n // START: fast-deep-equal es6/index.js 3.1.3\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n // START: Modifications:\n // 1. Extra `has &&` helpers in initial condition allow es6 code\n // to co-exist with es5.\n // 2. Replace `for of` with es5 compliant iteration using `for`.\n // Basically, take:\n //\n // ```js\n // for (i of a.entries())\n // if (!b.has(i[0])) return false;\n // ```\n //\n // ... and convert to:\n //\n // ```js\n // it = a.entries();\n // while (!(i = it.next()).done)\n // if (!b.has(i.value[0])) return false;\n // ```\n //\n // **Note**: `i` access switches to `i.value`.\n var it;\n if (hasMap && (a instanceof Map) && (b instanceof Map)) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!b.has(i.value[0])) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!equal(i.value[1], b.get(i.value[0]))) return false;\n return true;\n }\n\n if (hasSet && (a instanceof Set) && (b instanceof Set)) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!b.has(i.value[0])) return false;\n return true;\n }\n // END: Modifications\n\n if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (a[i] !== b[i]) return false;\n return true;\n }\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n // START: Modifications:\n // Apply guards for `Object.create(null)` handling. See:\n // - https://github.com/FormidableLabs/react-fast-compare/issues/64\n // - https://github.com/epoberezkin/fast-deep-equal/issues/49\n if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString();\n // END: Modifications\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n // END: fast-deep-equal\n\n // START: react-fast-compare\n // custom handling for DOM elements\n if (hasElementType && a instanceof Element) return false;\n\n // custom handling for React/Preact\n for (i = length; i-- !== 0;) {\n if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner\n // Preact-specific: avoid traversing Preact elements' __v and __o\n // __v = $_original / $_vnode\n // __o = $_owner\n // These properties contain circular references and are not needed when\n // comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of elements\n\n continue;\n }\n\n // all other properties should be traversed as usual\n if (!equal(a[keys[i]], b[keys[i]])) return false;\n }\n // END: react-fast-compare\n\n // START: fast-deep-equal\n return true;\n }\n\n return a !== a && b !== b;\n}\n// end fast-deep-equal\n\nmodule.exports = function isEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if (((error.message || '').match(/stack|recursion/i))) {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('react-fast-compare cannot handle circular refs');\n return false;\n }\n // some other error. we should definitely know about these\n throw error;\n }\n};\n","'use strict';\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar React = require('react');\nvar React__default = _interopDefault(React);\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nfunction withSideEffect(reducePropsToState, handleStateChangeOnClient, mapStateOnServer) {\n if (typeof reducePropsToState !== 'function') {\n throw new Error('Expected reducePropsToState to be a function.');\n }\n\n if (typeof handleStateChangeOnClient !== 'function') {\n throw new Error('Expected handleStateChangeOnClient to be a function.');\n }\n\n if (typeof mapStateOnServer !== 'undefined' && typeof mapStateOnServer !== 'function') {\n throw new Error('Expected mapStateOnServer to either be undefined or a function.');\n }\n\n function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n }\n\n return function wrap(WrappedComponent) {\n if (typeof WrappedComponent !== 'function') {\n throw new Error('Expected WrappedComponent to be a React component.');\n }\n\n var mountedInstances = [];\n var state;\n\n function emitChange() {\n state = reducePropsToState(mountedInstances.map(function (instance) {\n return instance.props;\n }));\n\n if (SideEffect.canUseDOM) {\n handleStateChangeOnClient(state);\n } else if (mapStateOnServer) {\n state = mapStateOnServer(state);\n }\n }\n\n var SideEffect =\n /*#__PURE__*/\n function (_PureComponent) {\n _inheritsLoose(SideEffect, _PureComponent);\n\n function SideEffect() {\n return _PureComponent.apply(this, arguments) || this;\n }\n\n // Try to use displayName of wrapped component\n // Expose canUseDOM so tests can monkeypatch it\n SideEffect.peek = function peek() {\n return state;\n };\n\n SideEffect.rewind = function rewind() {\n if (SideEffect.canUseDOM) {\n throw new Error('You may only call rewind() on the server. Call peek() to read the current state.');\n }\n\n var recordedState = state;\n state = undefined;\n mountedInstances = [];\n return recordedState;\n };\n\n var _proto = SideEffect.prototype;\n\n _proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() {\n mountedInstances.push(this);\n emitChange();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n emitChange();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var index = mountedInstances.indexOf(this);\n mountedInstances.splice(index, 1);\n emitChange();\n };\n\n _proto.render = function render() {\n return React__default.createElement(WrappedComponent, this.props);\n };\n\n return SideEffect;\n }(React.PureComponent);\n\n _defineProperty(SideEffect, \"displayName\", \"SideEffect(\" + getDisplayName(WrappedComponent) + \")\");\n\n _defineProperty(SideEffect, \"canUseDOM\", canUseDOM);\n\n return SideEffect;\n };\n}\n\nmodule.exports = withSideEffect;\n"],"names":["module","exports","Object","assign","getSessionIndex","category","sessionStorage","Number","parseInt","getItem","useContext","gallery","slideIndex","setSlideIndex","useMemo","currentSlide","index","Math","min","max","length","setItem","setSessionIndex","navigate","createContext","ImageProps","PropTypes","sharp","original","src","isRequired","width","height","date","description","description_short","id","image","imageAltText","imageBorder","title","_ref","className","slide","offline","navigator","onLine","projectPath","React","classNames","Link","ElementType","GatsbyLink","to","unstyled","ProgressiveImage","alt","animated","showLoadingSpinner","Button","size","small","chevronLeft","chevronRight","galleryOpen","menu","menuOpen","context","GalleryContext","verticalLayout","useMediaQuery","disabled","onClick","icons","Slide","navLinks","name","rightIcon","external","socialLinks","key","url","MENU_TYPE_NONE","MENU_TYPE_LIST","MENU_TYPE_GALLERY","titleCase","replace","l","toUpperCase","location","menuType","setMenuType","showMenu","showGallery","undefined","fullscreen","style","marginLeft","NavBar","links","LinkElementType","SocialNavLinks","iconSize","iconInnerPadding","onSelect","open","map","onLink","link","activeClassName","tabIndex","clock","Component","_class","_temp","useState","listOpen","closeMenu","useCallback","useModalOverlay","MenuBar","MenuList","MenuGallery","ATTRIBUTE_NAMES","TAG_NAMES","BASE","BODY","HEAD","HTML","LINK","META","NOSCRIPT","SCRIPT","STYLE","TITLE","TAG_PROPERTIES","keys","REACT_TAG_MAP","accesskey","charset","class","contenteditable","contextmenu","itemprop","tabindex","HELMET_PROPS","HTML_TAG_MAP","reduce","obj","SELF_CLOSING_TAGS","HELMET_ATTRIBUTE","_typeof","Symbol","iterator","constructor","prototype","createClass","defineProperties","target","props","i","descriptor","enumerable","configurable","writable","defineProperty","Constructor","protoProps","staticProps","_extends","arguments","source","hasOwnProperty","call","objectWithoutProperties","indexOf","encodeSpecialCharacters","str","String","getTitleFromPropsList","propsList","innermostTitle","getInnermostProperty","innermostTemplate","Array","isArray","join","innermostDefaultTitle","getOnChangeClientState","getAttributesFromPropsList","tagType","filter","tagAttrs","current","getBaseTagFromPropsList","primaryAttributes","reverse","innermostBaseTag","tag","lowerCaseAttributeKey","toLowerCase","concat","getTagsFromPropsList","tagName","approvedSeenTags","warn","approvedTags","instanceTags","instanceSeenTags","primaryAttributeKey","attributeKey","value","forEach","push","tagUnion","property","rafPolyfill","Date","now","callback","currentTime","setTimeout","cafPolyfill","clearTimeout","requestAnimationFrame","window","bind","webkitRequestAnimationFrame","mozRequestAnimationFrame","g","cancelAnimationFrame","webkitCancelAnimationFrame","mozCancelAnimationFrame","msg","console","_helmetCallback","commitTagChanges","newState","cb","baseTag","bodyAttributes","htmlAttributes","linkTags","metaTags","noscriptTags","onChangeClientState","scriptTags","styleTags","titleAttributes","updateAttributes","updateTitle","tagUpdates","updateTags","addedTags","removedTags","_tagUpdates$tagType","newTags","oldTags","flattenArray","possibleArray","attributes","document","elementTag","getElementsByTagName","helmetAttributeString","getAttribute","helmetAttributes","split","attributesToRemove","attributeKeys","attribute","setAttribute","indexToSave","splice","_i","removeAttribute","type","tags","headElement","head","querySelector","tagNodes","querySelectorAll","slice","indexToDelete","newElement","createElement","innerHTML","styleSheet","cssText","appendChild","createTextNode","some","existingTag","isEqualNode","parentNode","removeChild","generateElementAttributesAsString","attr","convertElementAttributestoReactProps","initProps","getMethodsForTag","encode","toComponent","_initProps","toString","attributeString","flattenedTitle","generateTitleAsString","_mappedTag","mappedTag","mappedAttribute","content","dangerouslySetInnerHTML","__html","generateTagsAsReactComponent","attributeHtml","string","tagContent","isSelfClosing","generateTagsAsString","mapStateOnServer","_ref$title","base","meta","noscript","script","HelmetSideEffects","defer","HelmetExport","_React$Component","HelmetWrapper","instance","TypeError","classCallCheck","this","self","ReferenceError","possibleConstructorReturn","apply","subClass","superClass","create","setPrototypeOf","__proto__","inherits","shouldComponentUpdate","nextProps","mapNestedChildrenToProps","child","nestedChildren","Error","flattenArrayTypeChildren","_babelHelpers$extends","arrayTypeChildren","newChildProps","mapObjectTypeChildren","_ref2","_babelHelpers$extends2","_babelHelpers$extends3","newProps","mapArrayTypeChildrenToProps","newFlattenedProps","arrayChildName","_babelHelpers$extends4","warnOnInvalidChildren","mapChildrenToProps","children","_this2","_child$props","initAttributes","convertReactPropstoHtmlAttributes","render","_props","set","canUseDOM","propTypes","defaultTitle","titleTemplate","defaultProps","peek","rewind","mappedState","renderStatic","queryData","useStaticQuery","metadata","siteMetadata","site","Helmet","Metadata","Menu","Provider","Page","Gallery","buttons","icon","description_long","details","sections","mainImage","mainVideo","paragraphs","videos","project","detail","ButtonGroup","button","iconName","section","href","EmbeddedYouTube","origin","videoId","paragraph","paragraphIndex","ImageGallery","images","minWidth","video","Project","hasElementType","Element","hasMap","Map","hasSet","Set","hasArrayBuffer","ArrayBuffer","isView","equal","a","b","it","entries","next","done","has","get","RegExp","flags","valueOf","$$typeof","error","message","match","ex","React__default","_defineProperty","reducePropsToState","handleStateChangeOnClient","WrappedComponent","state","mountedInstances","emitChange","SideEffect","_PureComponent","recordedState","_proto","UNSAFE_componentWillMount","componentDidUpdate","componentWillUnmount","PureComponent","displayName","getDisplayName"],"sourceRoot":""} \ No newline at end of file diff --git a/404.html b/404.html index f404c70..46902b4 100644 --- a/404.html +++ b/404.html @@ -14,4 +14,4 @@ - }
\ No newline at end of file + }
\ No newline at end of file diff --git a/404/index.html b/404/index.html index bd0f497..d958aa5 100644 --- a/404/index.html +++ b/404/index.html @@ -14,4 +14,4 @@ - }
\ No newline at end of file + }
\ No newline at end of file diff --git a/app-2d83dfe0ade936b5e76b.js b/app-2d83dfe0ade936b5e76b.js new file mode 100644 index 0000000..4609a41 --- /dev/null +++ b/app-2d83dfe0ade936b5e76b.js @@ -0,0 +1,2 @@ +(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[524],{3350:function(t,e){"use strict";var n=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},u=c.state,l=c.replace,p=void 0!==l&&l;if("number"==typeof e)t.history.go(e);else{u=n({},u,{key:Date.now()+""});try{i||p?t.history.replaceState(u,null,e):t.history.pushState(u,null,e)}catch(d){t.location[p?"replace":"assign"](e)}}a=r(t),i=!0;var h=new Promise((function(t){return s=t}));return o.forEach((function(t){return t({location:a,action:"PUSH"})})),h}}},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=t.indexOf("?"),n={pathname:e>-1?t.substr(0,e):t,search:e>-1?t.substr(e):""},r=0,o=[n],a=[null];return{get location(){return o[r]},addEventListener:function(t,e){},removeEventListener:function(t,e){},history:{get entries(){return o},get index(){return r},get state(){return a[r]},pushState:function(t,e,n){var i=n.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;r++,o.push({pathname:s,search:u.length?"?"+u:u}),a.push(t)},replaceState:function(t,e,n){var i=n.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;o[r]={pathname:s,search:u},a[r]=t},go:function(t){var e=r+t;e<0||e>a.length-1||(r=e)}}}},i=!("undefined"==typeof window||!window.document||!window.document.createElement),s=o(i?window:a()),c=s.navigate;e.W7=s},8371:function(t,e,n){"use strict";e.Up=void 0;var r,o=n(311),a=(r=o)&&r.__esModule?r:{default:r};var i=function(t,e){return t.substr(0,e.length)===e},s=function(t,e){for(var n=void 0,r=void 0,o=e.split("?")[0],i=d(o),s=""===i[0],u=h(t),p=0,f=u.length;pe.score?-1:t.index-e.index}))},d=function(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")},f=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r0})))&&n.length>0?"?"+n.join("&"):"")},m=["uri","path"];e.Up=s},6395:function(t,e){"use strict";e.T=void 0;e.T=(t,e="legacy")=>{const n=t.endsWith(".html"),r=t.endsWith(".xml"),o=t.endsWith(".pdf");return"/"===t?t:((n||r||o)&&(e="never"),"always"===e?t.endsWith("/")?t:`${t}/`:"never"===e&&t.endsWith("/")?t.slice(0,-1):t)}},7035:function(t,e,n){"use strict";e.RV=e.z_=void 0;var r=n(3215);e.z_=r.ScrollHandler;var o=n(3721);e.RV=o.useScrollRestoration},3215:function(t,e,n){"use strict";var r=n(4994);e.__esModule=!0,e.ScrollHandler=e.ScrollContext=void 0;var o=r(n(2475)),a=r(n(6221)),i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var i=o?Object.getOwnPropertyDescriptor(t,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=t[a]}r.default=t,n&&n.set(t,r);return r}(n(6540)),s=r(n(5556)),c=n(4351);function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(u=function(t){return t?n:e})(t)}var l=i.createContext(new c.SessionStorage);e.ScrollContext=l,l.displayName="GatsbyScrollContext";var p=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),a=0;a{}},3309:function(t,e){"use strict";e.__esModule=!0,e.getForwards=function(t){return null==t?void 0:t.flatMap((t=>(null==t?void 0:t.forward)||[]))}},9300:function(t,e,n){"use strict";e.__esModule=!0,e.injectPartytownSnippet=function(t){if(!t.length)return;const e=document.querySelector("script[data-partytown]"),n=document.querySelector('iframe[src*="~partytown/partytown-sandbox-sw"]');e&&e.remove();n&&n.remove();const a=(0,o.getForwards)(t),i=document.createElement("script");i.dataset.partytown="",i.innerHTML=(0,r.partytownSnippet)({forward:a}),document.head.appendChild(i)};var r=n(4656),o=n(3309)},6877:function(t,e,n){e.components={"component---src-pages-404-js":()=>n.e(125).then(n.bind(n,3331)),"component---src-pages-art-art-json-json-id-js":()=>Promise.all([n.e(593),n.e(869),n.e(737),n.e(128),n.e(156)]).then(n.bind(n,861)),"component---src-pages-art-js":()=>Promise.all([n.e(593),n.e(869),n.e(737),n.e(128),n.e(120)]).then(n.bind(n,2874)),"component---src-pages-games-games-json-json-id-js":()=>Promise.all([n.e(593),n.e(869),n.e(737),n.e(128),n.e(520)]).then(n.bind(n,2957)),"component---src-pages-games-js":()=>Promise.all([n.e(593),n.e(869),n.e(737),n.e(128),n.e(830)]).then(n.bind(n,4492)),"component---src-pages-index-js":()=>Promise.all([n.e(593),n.e(869),n.e(737),n.e(293)]).then(n.bind(n,9639)),"component---src-pages-presentations-js":()=>Promise.all([n.e(593),n.e(869),n.e(737),n.e(128),n.e(464)]).then(n.bind(n,2998)),"component---src-pages-presentations-presentations-json-json-id-js":()=>Promise.all([n.e(593),n.e(869),n.e(737),n.e(128),n.e(324)]).then(n.bind(n,2769)),"component---src-pages-software-js":()=>n.e(506).then(n.bind(n,8282)),"component---src-pages-tech-js":()=>Promise.all([n.e(593),n.e(869),n.e(737),n.e(128),n.e(935)]).then(n.bind(n,8019)),"component---src-pages-tech-tech-json-json-id-js":()=>Promise.all([n.e(593),n.e(869),n.e(737),n.e(128),n.e(746)]).then(n.bind(n,4847)),"component---src-pages-websites-js":()=>Promise.all([n.e(593),n.e(869),n.e(737),n.e(128),n.e(933)]).then(n.bind(n,7177)),"component---src-pages-websites-websites-json-json-id-js":()=>Promise.all([n.e(593),n.e(869),n.e(737),n.e(128),n.e(922)]).then(n.bind(n,5175))}},9377:function(t,e,n){t.exports=[{plugin:n(8803),options:{plugins:[],trackingId:"UA-61761892-1",head:!1,anonymize:!1,respectDNT:!1,exclude:[],pageTransitionDelay:0,enableWebVitalsTracking:!1}},{plugin:n(7914),options:{plugins:[],name:"Adam Graham",short_name:"Adam Graham",start_url:"/",display:"standalone",theme_color:"#101214",background_color:"#101214",icon:"static/logo512.png",legacy:!0,theme_color_in_head:!0,cache_busting_mode:"query",crossOrigin:"anonymous",include_favicon:!0,cacheDigest:"4f22fd91141daea106a5dde543702c7b"}},{plugin:n(8108),options:{plugins:[]}},{plugin:n(2311),options:{plugins:[]}}]},20:function(t,e,n){const r=n(9377),{getResourceURLsForPathname:o,loadPage:a,loadPageSync:i}=n(8234).Zf;e.N=function(t,e,n,s){void 0===e&&(e={});let c=r.map((n=>{if(!n.plugin[t])return;e.getResourceURLsForPathname=o,e.loadPage=a,e.loadPageSync=i;const r=n.plugin[t](e,n.options);return r&&s&&(e=s({args:e,result:r,plugin:n})),r}));return c=c.filter((t=>void 0!==t)),c.length>0?c:n?[n]:[]},e.v=(t,e,n)=>r.reduce(((n,r)=>r.plugin[t]?n.then((()=>r.plugin[t](e,r.options))):n),Promise.resolve())},9369:function(t,e,n){"use strict";n.d(e,{A:function(){return r}});var r=function(t){return t=t||Object.create(null),{on:function(e,n){(t[e]||(t[e]=[])).push(n)},off:function(e,n){t[e]&&t[e].splice(t[e].indexOf(n)>>>0,1)},emit:function(e,n){(t[e]||[]).slice().map((function(t){t(n)})),(t["*"]||[]).slice().map((function(t){t(e,n)}))}}}()},8990:function(t,e,n){"use strict";n.d(e,{Yl:function(){return h},Hh:function(){return f},UA:function(){return d},QX:function(){return p}});var r=n(8371),o=n(8797),a=t=>{if(void 0===t)return t;let[e,n=""]=t.split("?");return n&&(n="?"+n),"/"===e?"/"+n:"/"===e.charAt(e.length-1)?e.slice(0,-1)+n:e+n},i=n(6491);const s=new Map;let c=[];const u=t=>{let e=t;if(-1!==t.indexOf("?")){const[n,r]=t.split("?");e=n+"?"+encodeURIComponent(r)}const n=decodeURIComponent(e);return(0,o.A)(n,decodeURIComponent("")).split("#")[0]};function l(t){return t.startsWith("/")||t.startsWith("https://")||t.startsWith("http://")?t:new URL(t,window.location.href+(window.location.href.endsWith("/")?"":"/")).pathname}const p=t=>{c=t},h=t=>{const e=m(t),n=c.map((t=>{let{path:e,matchPath:n}=t;return{path:n,originalPath:e}})),o=(0,r.Up)(n,e);return o?a(o.route.originalPath):null},d=t=>{const e=m(t),n=c.map((t=>{let{path:e,matchPath:n}=t;return{path:n,originalPath:e}})),o=(0,r.Up)(n,e);return o?o.params:{}},f=t=>{const e=u(l(t));if(s.has(e))return s.get(e);const n=(0,i.X)(t);if(n)return f(n.toPath);let r=h(e);return r||(r=m(t)),s.set(e,r),r},m=t=>{let e=u(l(t));return"/index.html"===e&&(e="/"),e=a(e),e}},8007:function(t,e,n){"use strict";n.r(e),n.d(e,{Link:function(){return s.Ay},PageRenderer:function(){return a()},Script:function(){return f.Script},ScriptStrategy:function(){return f.ScriptStrategy},StaticQuery:function(){return h},StaticQueryContext:function(){return u},StaticQueryServerContext:function(){return l},collectedScriptsByPage:function(){return f.collectedScriptsByPage},graphql:function(){return g},navigate:function(){return s.oo},parsePath:function(){return s.Rr},prefetchPathname:function(){return m},scriptCache:function(){return f.scriptCache},scriptCallbackCache:function(){return f.scriptCallbackCache},useScrollRestoration:function(){return i.RV},useStaticQuery:function(){return d},withAssetPrefix:function(){return s.Zf},withPrefix:function(){return s.Fe}});var r=n(8234),o=n(2549),a=n.n(o),i=n(7035),s=n(7078),c=n(6540);const u=c.createContext({});let l=null;function p(t){let{staticQueryData:e,data:n,query:r,render:o}=t;const a=n?n.data:e[r]&&e[r].data;return c.createElement(c.Fragment,null,a&&o(a),!a&&c.createElement("div",null,"Loading (StaticQuery)"))}c.createServerContext&&(l=c.createServerContext("StaticQuery",{}));const h=t=>{const{data:e,query:n,render:r,children:o}=t;return c.createElement(u.Consumer,null,(t=>c.createElement(p,{data:e,query:n,render:r||o,staticQueryData:t})))},d=t=>{var e;let n;if(c.useContext,n=l&&Object.keys(l._currentValue).length?c.useContext(l):c.useContext(u),isNaN(Number(t)))throw new Error("useStaticQuery was called with a string but expects to be called using `graphql`. Try this:\n\nimport { useStaticQuery, graphql } from 'gatsby';\n\nuseStaticQuery(graphql`"+t+"`);\n");if(null!==(e=n[t])&&void 0!==e&&e.data)return n[t].data;throw new Error("The result of this StaticQuery could not be fetched.\n\nThis is likely a bug in Gatsby and if refreshing the page does not fix it, please open an issue in https://github.com/gatsbyjs/gatsby/issues")};var f=n(5535);const m=r.Ay.enqueue;function g(){throw new Error("It appears like Gatsby is misconfigured. Gatsby related `graphql` calls are supposed to only be evaluated at compile time, and then compiled away. Unfortunately, something went wrong and the query was left in the compiled code.\n\nUnless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.")}},8234:function(t,e,n){"use strict";n.d(e,{Wi:function(){return p},N5:function(){return w},Ay:function(){return E},LE:function(){return C},Zf:function(){return P},iC:function(){return b}});var r=n(5540);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n{if("undefined"==typeof document)return void r();const o=document.createElement("link");o.setAttribute("rel","prefetch"),o.setAttribute("href",t),Object.keys(e).forEach((t=>{o.setAttribute(t,e[t])})),o.onload=n,o.onerror=r;(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(o)}))}:function(t){return new Promise(((e,n)=>{const r=new XMLHttpRequest;r.open("GET",t,!0),r.onload=()=>{200===r.status?e():n()},r.send(null)}))},s={};var c=function(t,e){return new Promise((n=>{s[t]?n():i(t,e).then((()=>{n(),s[t]=!0})).catch((()=>{}))}))},u=n(9369),l=n(8990);const p={Error:"error",Success:"success"},h=t=>{const[e,n]=t.split("?");var r;return"/page-data/"+("/"===e?"index":(r="/"===(r=e)[0]?r.slice(1):r).endsWith("/")?r.slice(0,-1):r)+"/page-data.json"+(n?"?"+n:"")};function d(t,e){return void 0===e&&(e="GET"),new Promise((n=>{const r=new XMLHttpRequest;r.open(e,t,!0),r.onreadystatechange=()=>{4==r.readyState&&n(r)},r.send(null)}))}const f=/bot|crawler|spider|crawling/i,m=function(t,e,n){void 0===e&&(e=null);const r={componentChunkName:t.componentChunkName,path:t.path,webpackCompilationHash:t.webpackCompilationHash,matchPath:t.matchPath,staticQueryHashes:t.staticQueryHashes,getServerDataError:t.getServerDataError};return{component:e,head:n,json:t.result,page:r}};let g=function(){function t(t,e){this.inFlightNetworkRequests=new Map,this.pageDb=new Map,this.inFlightDb=new Map,this.staticQueryDb={},this.pageDataDb=new Map,this.partialHydrationDb=new Map,this.isPrefetchQueueRunning=!1,this.prefetchQueued=[],this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=t,(0,l.QX)(e)}var e=t.prototype;return e.memoizedGet=function(t){let e=this.inFlightNetworkRequests.get(t);return e||(e=d(t,"GET"),this.inFlightNetworkRequests.set(t,e)),e.then((e=>(this.inFlightNetworkRequests.delete(t),e))).catch((e=>{throw this.inFlightNetworkRequests.delete(t),e}))},e.setApiRunner=function(t){this.apiRunner=t,this.prefetchDisabled=t("disableCorePrefetching").some((t=>t))},e.fetchPageDataJson=function(t){const{pagePath:e,retries:n=0}=t,r=h(e);return this.memoizedGet(r).then((r=>{const{status:o,responseText:a}=r;if(200===o)try{const n=JSON.parse(a);if(void 0===n.path)throw new Error("not a valid pageData response");const r=e.split("?")[1];return r&&!n.path.includes(r)&&(n.path+="?"+r),Object.assign(t,{status:p.Success,payload:n})}catch(i){}return 404===o||200===o?"/404.html"===e||"/500.html"===e?Object.assign(t,{status:p.Error}):this.fetchPageDataJson(Object.assign(t,{pagePath:"/404.html",notFound:!0})):500===o?this.fetchPageDataJson(Object.assign(t,{pagePath:"/500.html",internalServerError:!0})):n<3?this.fetchPageDataJson(Object.assign(t,{retries:n+1})):Object.assign(t,{status:p.Error})}))},e.fetchPartialHydrationJson=function(t){const{pagePath:e,retries:n=0}=t,r=h(e).replace(".json","-rsc.json");return this.memoizedGet(r).then((r=>{const{status:o,responseText:a}=r;if(200===o)try{return Object.assign(t,{status:p.Success,payload:a})}catch(i){}return 404===o||200===o?"/404.html"===e||"/500.html"===e?Object.assign(t,{status:p.Error}):this.fetchPartialHydrationJson(Object.assign(t,{pagePath:"/404.html",notFound:!0})):500===o?this.fetchPartialHydrationJson(Object.assign(t,{pagePath:"/500.html",internalServerError:!0})):n<3?this.fetchPartialHydrationJson(Object.assign(t,{retries:n+1})):Object.assign(t,{status:p.Error})}))},e.loadPageDataJson=function(t){const e=(0,l.Hh)(t);if(this.pageDataDb.has(e)){const t=this.pageDataDb.get(e);return Promise.resolve(t)}return this.fetchPageDataJson({pagePath:e}).then((t=>(this.pageDataDb.set(e,t),t)))},e.loadPartialHydrationJson=function(t){const e=(0,l.Hh)(t);if(this.partialHydrationDb.has(e)){const t=this.partialHydrationDb.get(e);return Promise.resolve(t)}return this.fetchPartialHydrationJson({pagePath:e}).then((t=>(this.partialHydrationDb.set(e,t),t)))},e.findMatchPath=function(t){return(0,l.Yl)(t)},e.loadPage=function(t){const e=(0,l.Hh)(t);if(this.pageDb.has(e)){const t=this.pageDb.get(e);return t.error?{error:t.error,status:t.status}:Promise.resolve(t.payload)}if(this.inFlightDb.has(e))return this.inFlightDb.get(e);let n;return n=Promise.all([this.loadAppData(),this.loadPageDataJson(e)]).then((t=>{const n=t[1];if(n.status===p.Error)return{status:p.Error};let r=n.payload;const{componentChunkName:o,staticQueryHashes:a=[]}=r,i={},s=Promise.all([this.loadComponent(o),this.loadComponent(o,"head")]).then((e=>{let o,[a,s]=e;return i.createdAt=new Date,!a||a instanceof Error?(i.status=p.Error,i.error=a):(i.status=p.Success,!0===n.notFound&&(i.notFound=!0),r=Object.assign(r,{webpackCompilationHash:t[0]?t[0].webpackCompilationHash:""}),o=m(r,a,s)),o})),c=Promise.all(a.map((t=>{if(this.staticQueryDb[t]){const e=this.staticQueryDb[t];return{staticQueryHash:t,jsonPayload:e}}return this.memoizedGet("/page-data/sq/d/"+t+".json").then((e=>{const n=JSON.parse(e.responseText);return{staticQueryHash:t,jsonPayload:n}})).catch((()=>{throw new Error("We couldn't load \"/page-data/sq/d/"+t+'.json"')}))}))).then((t=>{const e={};return t.forEach((t=>{let{staticQueryHash:n,jsonPayload:r}=t;e[n]=r,this.staticQueryDb[n]=r})),e}));return Promise.all([s,c]).then((t=>{let n,[r,o]=t;return r&&(n={...r,staticQueryResults:o},i.payload=n,u.A.emit("onPostLoadPageResources",{page:n,pageResources:n})),this.pageDb.set(e,i),i.error?{error:i.error,status:i.status}:n})).catch((t=>({error:t,status:p.Error})))})),n.then((()=>{this.inFlightDb.delete(e)})).catch((t=>{throw this.inFlightDb.delete(e),t})),this.inFlightDb.set(e,n),n},e.loadPageSync=function(t,e){void 0===e&&(e={});const n=(0,l.Hh)(t);if(this.pageDb.has(n)){var r;const t=this.pageDb.get(n);if(t.payload)return t.payload;if(null!==(r=e)&&void 0!==r&&r.withErrorDetails)return{error:t.error,status:t.status}}},e.shouldPrefetch=function(t){return!!(()=>{if("connection"in navigator&&void 0!==navigator.connection){if((navigator.connection.effectiveType||"").includes("2g"))return!1;if(navigator.connection.saveData)return!1}return!0})()&&((!navigator.userAgent||!f.test(navigator.userAgent))&&!this.pageDb.has(t))},e.prefetch=function(t){if(!this.shouldPrefetch(t))return{then:t=>t(!1),abort:()=>{}};if(this.prefetchTriggered.has(t))return{then:t=>t(!0),abort:()=>{}};const e={resolve:null,reject:null,promise:null};e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),this.prefetchQueued.push([t,e]);const n=new AbortController;return n.signal.addEventListener("abort",(()=>{const e=this.prefetchQueued.findIndex((e=>{let[n]=e;return n===t}));-1!==e&&this.prefetchQueued.splice(e,1)})),this.isPrefetchQueueRunning||(this.isPrefetchQueueRunning=!0,setTimeout((()=>{this._processNextPrefetchBatch()}),3e3)),{then:(t,n)=>e.promise.then(t,n),abort:n.abort.bind(n)}},e._processNextPrefetchBatch=function(){(window.requestIdleCallback||(t=>setTimeout(t,0)))((()=>{const t=this.prefetchQueued.splice(0,4),e=Promise.all(t.map((t=>{let[e,n]=t;return this.prefetchTriggered.has(e)||(this.apiRunner("onPrefetchPathname",{pathname:e}),this.prefetchTriggered.add(e)),this.prefetchDisabled?n.resolve(!1):this.doPrefetch((0,l.Hh)(e)).then((()=>{this.prefetchCompleted.has(e)||(this.apiRunner("onPostPrefetchPathname",{pathname:e}),this.prefetchCompleted.add(e)),n.resolve(!0)}))})));this.prefetchQueued.length?e.then((()=>{setTimeout((()=>{this._processNextPrefetchBatch()}),3e3)})):this.isPrefetchQueueRunning=!1}))},e.doPrefetch=function(t){const e=h(t);return c(e,{crossOrigin:"anonymous",as:"fetch"}).then((()=>this.loadPageDataJson(t)))},e.hovering=function(t){this.loadPage(t)},e.getResourceURLsForPathname=function(t){const e=(0,l.Hh)(t),n=this.pageDataDb.get(e);if(n){const t=m(n.payload);return[].concat(a(v(t.page.componentChunkName)),[h(e)])}return null},e.isPageNotFound=function(t){const e=(0,l.Hh)(t),n=this.pageDb.get(e);return!n||n.notFound},e.loadAppData=function(t){return void 0===t&&(t=0),this.memoizedGet("/page-data/app-data.json").then((e=>{const{status:n,responseText:r}=e;let o;if(200!==n&&t<3)return this.loadAppData(t+1);if(200===n)try{const t=JSON.parse(r);if(void 0===t.webpackCompilationHash)throw new Error("not a valid app-data response");o=t}catch(a){}return o}))},t}();const v=t=>(window.___chunkMapping[t]||[]).map((t=>""+t));let y,w=function(t){function e(e,n,r){var o;return o=t.call(this,(function(t,n){if(void 0===n&&(n="components"),!e[n="components"][t])throw new Error("We couldn't find the correct component chunk with the name \""+t+'"');return e[n][t]().catch((t=>t))}),n)||this,r&&o.pageDataDb.set((0,l.Hh)(r.path),{pagePath:r.path,payload:r,status:"success"}),o}(0,r.A)(e,t);var n=e.prototype;return n.doPrefetch=function(e){return t.prototype.doPrefetch.call(this,e).then((t=>{if(t.status!==p.Success)return Promise.resolve();const e=t.payload,n=e.componentChunkName,r=v(n);return Promise.all(r.map(c)).then((()=>e))}))},n.loadPageDataJson=function(e){return t.prototype.loadPageDataJson.call(this,e).then((t=>t.notFound?d(e,"HEAD").then((e=>200===e.status?{status:p.Error}:t)):t))},n.loadPartialHydrationJson=function(e){return t.prototype.loadPartialHydrationJson.call(this,e).then((t=>t.notFound?d(e,"HEAD").then((e=>200===e.status?{status:p.Error}:t)):t))},e}(g);const b=t=>{y=t},P={enqueue:t=>y.prefetch(t),getResourceURLsForPathname:t=>y.getResourceURLsForPathname(t),loadPage:t=>y.loadPage(t),loadPageSync:function(t,e){return void 0===e&&(e={}),y.loadPageSync(t,e)},prefetch:t=>y.prefetch(t),isPageNotFound:t=>y.isPageNotFound(t),hovering:t=>y.hovering(t),loadAppData:()=>y.loadAppData()};var E=P;function C(){return y?y.staticQueryDb:{}}},6017:function(t,e,n){"use strict";n.d(e,{A:function(){return w}});var r=n(6540),o=n(5556),a=n.n(o),i=n(20),s=n(8990),c=n(8007),u=n(1693),l=n(9732);function p(t){let{children:e,callback:n}=t;return(0,r.useEffect)((()=>{n()})),e}const h=["link","meta","style","title","base","noscript","script"];function d(t,e){if(t instanceof HTMLElement&&e instanceof HTMLElement){const n=e.getAttribute("nonce");if(n&&!t.getAttribute("nonce")){const r=e.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===t.nonce&&t.isEqualNode(r)}}return t.isEqualNode(e)}const f=document.createElement("div"),m=()=>{const t=document.querySelectorAll("[data-gatsby-head]");for(const e of t)e.parentNode.removeChild(e)},g=()=>{var t;const e=[],n=new Map;for(const u of f.childNodes){var r,o;const t=u.nodeName.toLowerCase(),i=null===(r=u.attributes)||void 0===r||null===(o=r.id)||void 0===o?void 0:o.value;if(h.includes(t)){let t=u.cloneNode(!0);if(t.setAttribute("data-gatsby-head",!0),"script"===t.nodeName.toLowerCase()){const e=document.createElement("script");for(const n of t.attributes)e.setAttribute(n.name,n.value);e.innerHTML=t.innerHTML,t=e}if(i)if(n.has(i)){var a;const r=n.get(i);null===(a=e[r].parentNode)||void 0===a||a.removeChild(e[r]),e[r]=t}else e.push(t),n.set(i,e.length-1);else e.push(t)}else;}const i=document.querySelectorAll("[data-gatsby-head]");var s;if(0===i.length)return void(s=document.head).append.apply(s,e);const c=[];!function(t){let{oldNodes:e,newNodes:n,onStale:r,onNew:o}=t;for(const a of e){const t=n.findIndex((t=>d(t,a)));-1===t?r(a):n.splice(t,1)}for(const a of n)o(a)}({oldNodes:i,newNodes:e,onStale:t=>t.parentNode.removeChild(t),onNew:t=>c.push(t)}),(t=document.head).append.apply(t,c)};function v(t){let{pageComponent:e,staticQueryResults:n,pageComponentProps:o}=t;(0,r.useEffect)((()=>{if(null!=e&&e.Head){!function(t){if("function"!=typeof t)throw new Error('Expected "Head" export to be a function got "'+typeof t+'".')}(e.Head);const{render:a}=(0,l.n)(),i=e.Head;a(r.createElement(p,{callback:g},r.createElement(c.StaticQueryContext.Provider,{value:n},r.createElement(u.LocationProvider,null,r.createElement(i,{location:{pathname:(t=o).location.pathname},params:t.params,data:t.data||{},pageContext:t.pageContext})))),f)}var t;return()=>{m()}}))}function y(t){const e={...t,params:{...(0,s.UA)(t.location.pathname),...t.pageResources.json.pageContext.__params}};let n;var o;n=t.pageResources.partialHydration?t.pageResources.partialHydration:(0,r.createElement)((o=t.pageResources.component)&&o.default||o,{...e,key:t.path||t.pageResources.page.path});v({pageComponent:t.pageResources.head,staticQueryResults:t.pageResources.staticQueryResults,pageComponentProps:e});return(0,i.N)("wrapPageElement",{element:n,props:e},n,(t=>{let{result:n}=t;return{element:n,props:e}})).pop()}y.propTypes={location:a().object.isRequired,pageResources:a().object.isRequired,data:a().object,pageContext:a().object.isRequired};var w=y},6498:function(t,e,n){"use strict";var r=n(5540),o=n(20),a=n(6540),i=n(1693),s=n(7035),c=n(8007),u=n(8234),l=n(6491),p=n(9369);const h={id:"gatsby-announcer",style:{position:"absolute",top:0,width:1,height:1,padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},"aria-live":"assertive","aria-atomic":"true"};var d=n(3350),f=n(7078);function m(t){const e=(0,l.X)(t),{hash:n,search:r}=window.location;return null!=e&&(window.___replace(e.toPath+r+n),!0)}let g="";window.addEventListener("unhandledrejection",(t=>{/loading chunk \d* failed./i.test(t.reason)&&g&&(window.location.pathname=g)}));const v=(t,e)=>{m(t.pathname)||(g=t.pathname,(0,o.N)("onPreRouteUpdate",{location:t,prevLocation:e}))},y=(t,e)=>{m(t.pathname)||(0,o.N)("onRouteUpdate",{location:t,prevLocation:e})},w=function(t,e){if(void 0===e&&(e={}),"number"==typeof t)return void d.W7.navigate(t);const{pathname:n,search:r,hash:a}=(0,f.Rr)(t),s=(0,l.X)(n);if(s&&(t=s.toPath+r+a),window.___swUpdated)return void(window.location=n+r+a);const c=setTimeout((()=>{p.A.emit("onDelayedLoadPageResources",{pathname:n}),(0,o.N)("onRouteUpdateDelayed",{location:window.location})}),1e3);u.Ay.loadPage(n+r).then((o=>{if(!o||o.status===u.Wi.Error)return window.history.replaceState({},"",location.href),window.location=n,void clearTimeout(c);o&&o.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),window.location=n+r+a),(0,i.navigate)(t,e),clearTimeout(c)}))};function b(t,e){let{location:n}=e;const{pathname:r,hash:a}=n,i=(0,o.N)("shouldUpdateScroll",{prevRouterProps:t,pathname:r,routerProps:{location:n},getSavedScrollPosition:t=>[0,this._stateStorage.read(t,t.key)]});if(i.length>0)return i[i.length-1];if(t){const{location:{pathname:e}}=t;if(e===r)return a?decodeURI(a.slice(1)):[0,0]}return!0}let P=function(t){function e(e){var n;return(n=t.call(this,e)||this).announcementRef=a.createRef(),n}(0,r.A)(e,t);var n=e.prototype;return n.componentDidUpdate=function(t,e){requestAnimationFrame((()=>{let t="new page at "+this.props.location.pathname;document.title&&(t=document.title);const e=document.querySelectorAll("#gatsby-focus-wrapper h1");e&&e.length&&(t=e[0].textContent);const n="Navigated to "+t;if(this.announcementRef.current){this.announcementRef.current.innerText!==n&&(this.announcementRef.current.innerText=n)}}))},n.render=function(){return a.createElement("div",Object.assign({},h,{ref:this.announcementRef}))},e}(a.Component);const E=(t,e)=>{var n,r;return t.href!==e.href||(null==t||null===(n=t.state)||void 0===n?void 0:n.key)!==(null==e||null===(r=e.state)||void 0===r?void 0:r.key)};let C=function(t){function e(e){var n;return n=t.call(this,e)||this,v(e.location,null),n}(0,r.A)(e,t);var n=e.prototype;return n.componentDidMount=function(){y(this.props.location,null)},n.shouldComponentUpdate=function(t){return!!E(t.location,this.props.location)&&(v(this.props.location,t.location),!0)},n.componentDidUpdate=function(t){E(t.location,this.props.location)&&y(this.props.location,t.location)},n.render=function(){return a.createElement(a.Fragment,null,this.props.children,a.createElement(P,{location:location}))},e}(a.Component);var S=n(6017),R=n(6877);function _(t,e){for(var n in t)if(!(n in e))return!0;for(var r in e)if(t[r]!==e[r])return!0;return!1}var k=function(t){function e(e){var n;n=t.call(this)||this;const{location:r,pageResources:o}=e;return n.state={location:{...r},pageResources:o||u.Ay.loadPageSync(r.pathname+r.search,{withErrorDetails:!0})},n}(0,r.A)(e,t),e.getDerivedStateFromProps=function(t,e){let{location:n}=t;if(e.location.href!==n.href){return{pageResources:u.Ay.loadPageSync(n.pathname+n.search,{withErrorDetails:!0}),location:{...n}}}return{location:{...n}}};var n=e.prototype;return n.loadResources=function(t){u.Ay.loadPage(t).then((e=>{e&&e.status!==u.Wi.Error?this.setState({location:{...window.location},pageResources:e}):(window.history.replaceState({},"",location.href),window.location=t)}))},n.shouldComponentUpdate=function(t,e){return e.pageResources?this.state.pageResources!==e.pageResources||(this.state.pageResources.component!==e.pageResources.component||(this.state.pageResources.json!==e.pageResources.json||(!(this.state.location.key===e.location.key||!e.pageResources.page||!e.pageResources.page.matchPath&&!e.pageResources.page.path)||function(t,e,n){return _(t.props,e)||_(t.state,n)}(this,t,e)))):(this.loadResources(t.location.pathname+t.location.search),!1)},n.render=function(){return this.props.children(this.state)},e}(a.Component),x=n(8797),j=n(9732);const O=new u.N5(R,[],window.pageData);(0,u.iC)(O),O.setApiRunner(o.N);const{render:D,hydrate:L}=(0,j.n)();window.asyncRequires=R,window.___emitter=p.A,window.___loader=u.Zf,d.W7.listen((t=>{t.location.action=t.action})),window.___push=t=>w(t,{replace:!1}),window.___replace=t=>w(t,{replace:!0}),window.___navigate=(t,e)=>w(t,e);const A="gatsby-reload-compilation-hash-match";(0,o.v)("onClientEntry").then((()=>{(0,o.N)("registerServiceWorker").filter(Boolean).length>0&&n(626);const t=t=>a.createElement(i.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},a.createElement(S.A,t)),e=a.createContext({});let l=function(t){function n(){return t.apply(this,arguments)||this}return(0,r.A)(n,t),n.prototype.render=function(){const{children:t}=this.props;return a.createElement(i.Location,null,(n=>{let{location:r}=n;return a.createElement(k,{location:r},(n=>{let{pageResources:r,location:o}=n;if(r.partialHydration)return a.createElement(e.Provider,{value:{pageResources:r,location:o}},t);{const n=(0,u.LE)();return a.createElement(c.StaticQueryContext.Provider,{value:n},a.createElement(e.Provider,{value:{pageResources:r,location:o}},t))}}))}))},n}(a.Component),p=function(n){function o(){return n.apply(this,arguments)||this}return(0,r.A)(o,n),o.prototype.render=function(){return a.createElement(e.Consumer,null,(e=>{let{pageResources:n,location:r}=e;return a.createElement(C,{location:r},a.createElement(s.z_,{location:r,shouldUpdateScroll:b},a.createElement(i.Router,{basepath:"",location:r,id:"gatsby-focus-wrapper"},a.createElement(t,Object.assign({path:"/404.html"===n.page.path||"/500.html"===n.page.path?(0,x.A)(r.pathname,""):encodeURI((n.page.matchPath||n.page.path).split("?")[0])},this.props,{location:r,pageResources:n},n.json)))))}))},o}(a.Component);const{pagePath:h,location:d}=window;h&&""+h!==d.pathname+(h.includes("?")?d.search:"")&&!(O.findMatchPath((0,x.A)(d.pathname,""))||h.match(/^\/(404|500)(\/?|.html)$/)||h.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&(0,i.navigate)(""+h+(h.includes("?")?"":d.search)+d.hash,{replace:!0});const f=()=>{try{return sessionStorage}catch{return null}};u.Zf.loadPage(d.pathname+d.search).then((t=>{var e;const n=f();if(null!=t&&null!==(e=t.page)&&void 0!==e&&e.webpackCompilationHash&&t.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),n)){if(!("1"===n.getItem(A)))return n.setItem(A,"1"),void window.location.reload(!0)}if(n&&n.removeItem(A),!t||t.status===u.Wi.Error){const e="page resources for "+d.pathname+" not found. Not rendering React";if(t&&t.error)throw console.error(e),t.error;throw new Error(e)}const r=(0,o.N)("wrapRootElement",{element:a.createElement(p,null)},a.createElement(p,null),(t=>{let{result:e}=t;return{element:e}})).pop(),i=function(){const t=a.useRef(!1);return a.useEffect((()=>{t.current||(t.current=!0,performance.mark&&performance.mark("onInitialClientRender"),(0,o.N)("onInitialClientRender"))}),[]),a.createElement(l,null,r)},s=document.getElementById("gatsby-focus-wrapper");let c=D;s&&s.children.length&&(c=L);const h=(0,o.N)("replaceHydrateFunction",void 0,c)[0];function m(){const t="undefined"!=typeof window?document.getElementById("___gatsby"):null;h(a.createElement(i,null),t)}const g=document;if("complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll)setTimeout((function(){m()}),0);else{const t=function(){g.removeEventListener("DOMContentLoaded",t,!1),window.removeEventListener("load",t,!1),m()};g.addEventListener("DOMContentLoaded",t,!1),window.addEventListener("load",t,!1)}}))}))},963:function(t,e,n){"use strict";n.r(e);var r=n(6540),o=n(8234),a=n(6017);e.default=t=>{let{location:e}=t;const n=o.Ay.loadPageSync(e.pathname);return n?r.createElement(a.A,{location:e,pageResources:n,...n.json}):null}},2549:function(t,e,n){var r;t.exports=(r=n(963))&&r.default||r},9732:function(t,e,n){"use strict";n.d(e,{n:function(){return o}});const r=new WeakMap;function o(){let t,e;{const o=n(5338);t=(t,e)=>{let n=r.get(e);n||r.set(e,n=o.createRoot(e)),n.render(t)},e=(t,e)=>o.hydrateRoot(e,t)}return{render:t,hydrate:e}}},6566:function(t,e){e.polyfill=t=>t},6491:function(t,e,n){"use strict";n.d(e,{X:function(){return a}});const r=new Map,o=new Map;function a(t){let e=r.get(t);return e||(e=o.get(t.toLowerCase())),e}[].forEach((t=>{t.ignoreCase?o.set(t.fromPath,t):r.set(t.fromPath,t)}))},626:function(t,e,n){"use strict";n.r(e);var r=n(20);"https:"!==window.location.protocol&&"localhost"!==window.location.hostname?console.error("Service workers can only be used over HTTPS, or on localhost for development"):"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then((function(t){t.addEventListener("updatefound",(()=>{(0,r.N)("onServiceWorkerUpdateFound",{serviceWorker:t});const e=t.installing;console.log("installingWorker",e),e.addEventListener("statechange",(()=>{switch(e.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,(0,r.N)("onServiceWorkerUpdateReady",{serviceWorker:t}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),(0,r.N)("onServiceWorkerInstalled",{serviceWorker:t}));break;case"redundant":console.error("The installing service worker became redundant."),(0,r.N)("onServiceWorkerRedundant",{serviceWorker:t});break;case"activated":(0,r.N)("onServiceWorkerActive",{serviceWorker:t})}}))}))})).catch((function(t){console.error("Error during service worker registration:",t)}))},8797:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=""),e?t===e?"/":t.startsWith(e+"/")?t.slice(e.length):t:t}n.d(e,{A:function(){return r}})},8108:function(t,e,n){"use strict";n.r(e),n.d(e,{onRouteUpdate:function(){return o}});const r=t=>{const e=document.querySelector('link[rel*="icon"]');e&&(e.href=t?"/favicon-dark.png":"/favicon-light.png")},o=()=>{const t=window.matchMedia("(prefers-color-scheme:dark)");r(t.matches),t.addEventListener("change",(t=>{r(t.matches)}))}},8803:function(t,e,n){"use strict";n.r(e),n.d(e,{onInitialClientRender:function(){return s},onRouteUpdate:function(){return i}});const r=new Set;function o(t,e){let n=null;return function(){n&&clearTimeout(n);for(var r=arguments.length,o=new Array(r),a=0;a{let{getLCP:n,getFID:r,getCLS:a}=e;const i=o(t,3e3),s=t,c=o(t,3e3);a(i,!0),r(s,!0),n(c,!0)}))}const i=function(t,e){let{location:n}=t;void 0===e&&(e={});const r=window.ga;if("function"!=typeof r)return null;if(n&&void 0!==window.excludeGAPaths&&window.excludeGAPaths.some((t=>t.test(n.pathname))))return null;const o=Math.max(32,e.pageTransitionDelay||0);return setTimeout((()=>{const t=n?n.pathname+n.search+n.hash:void 0;r("set","page",t),r("send","pageview")}),o),null};function s(t,e){"function"==typeof ga&&e.enableWebVitalsTracking&&a()}},7914:function(t,e,n){"use strict";n.r(e),n.d(e,{onRouteUpdate:function(){return r}});n(8007),n(4598);const r=function(t,e){let{location:n}=t}},4598:function(t,e,n){"use strict";var r=n(8007)},1693:function(t,e,n){"use strict";n.r(e),n.d(e,{BaseContext:function(){return H},Link:function(){return $},Location:function(){return T},LocationProvider:function(){return M},Match:function(){return Z},Redirect:function(){return X},Router:function(){return U},ServerLocation:function(){return N},createHistory:function(){return E},createMemorySource:function(){return C},globalHistory:function(){return R},isRedirect:function(){return z},matchPath:function(){return u},navigate:function(){return _},redirectTo:function(){return V},resolve:function(){return l},useLocation:function(){return tt},useMatch:function(){return rt},useNavigate:function(){return et},useParams:function(){return nt}});var r=n(6540),o=n(311),a=n.n(o),i=n(6566),s=function(t,e){return t.substr(0,e.length)===e},c=function(t,e){for(var n=void 0,r=void 0,o=e.split("?")[0],i=v(o),s=""===i[0],c=g(t),u=0,l=c.length;ue.score?-1:t.index-e.index}))},v=function(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")},y=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r0})))&&n.length>0?"?"+n.join("&"):"")},w=["uri","path"],b=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},s=i.state,c=i.replace,u=void 0!==c&&c;if("number"==typeof e)t.history.go(e);else{s=b({},s,{key:Date.now()+""});try{o||u?t.history.replaceState(s,null,e):t.history.pushState(s,null,e)}catch(p){t.location[u?"replace":"assign"](e)}}r=P(t),o=!0;var l=new Promise((function(t){return a=t}));return n.forEach((function(t){return t({location:r,action:"PUSH"})})),l}}},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=t.indexOf("?"),n={pathname:e>-1?t.substr(0,e):t,search:e>-1?t.substr(e):""},r=0,o=[n],a=[null];return{get location(){return o[r]},addEventListener:function(t,e){},removeEventListener:function(t,e){},history:{get entries(){return o},get index(){return r},get state(){return a[r]},pushState:function(t,e,n){var i=n.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;r++,o.push({pathname:s,search:u.length?"?"+u:u}),a.push(t)},replaceState:function(t,e,n){var i=n.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;o[r]={pathname:s,search:u},a[r]=t},go:function(t){var e=r+t;e<0||e>a.length-1||(r=e)}}}},S=!("undefined"==typeof window||!window.document||!window.document.createElement),R=E(S?window:C()),_=R.navigate,k=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function D(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var L=function(t,e){var n=(0,r.createContext)(e);return n.displayName=t,n},A=L("Location"),T=function(t){var e=t.children;return r.createElement(A.Consumer,null,(function(t){return t?e(t):r.createElement(M,null,e)}))},M=function(t){function e(){var n,r;j(this,e);for(var o=arguments.length,a=Array(o),i=0;i-1?(a=e.substring(0,o),i=e.substring(o)):a=e,r.createElement(A.Provider,{value:{location:{pathname:a,search:i,hash:""},navigate:function(){throw new Error("You can't call navigate on the server.")}}},n)},H=L("Base",{baseuri:"/",basepath:"/",navigate:R.navigate}),U=function(t){return r.createElement(H.Consumer,null,(function(e){return r.createElement(T,null,(function(n){return r.createElement(W,k({},e,n,t))}))}))},W=function(t){function e(){return j(this,e),O(this,t.apply(this,arguments))}return D(e,t),e.prototype.render=function(){var t=this.props,e=t.location,n=t.navigate,o=t.basepath,a=t.primary,i=t.children,s=(t.baseuri,t.component),u=void 0===s?"div":s,p=x(t,["location","navigate","basepath","primary","children","baseuri","component"]),h=r.Children.toArray(i).reduce((function(t,e){var n=at(o)(e);return t.concat(n)}),[]),d=e.pathname,f=c(h,d);if(f){var m=f.params,g=f.uri,v=f.route,y=f.route.value;o=v.default?o:v.path.replace(/\*$/,"");var w=k({},m,{uri:g,location:e,navigate:function(t,e){return n(l(t,g),e)}}),b=r.cloneElement(y,w,y.props.children?r.createElement(U,{location:e,primary:a},y.props.children):void 0),P=a?F:u,E=a?k({uri:g,location:e,component:u},p):p;return r.createElement(H.Provider,{value:{baseuri:g,basepath:o,navigate:w.navigate}},r.createElement(P,E,b))}return null},e}(r.PureComponent);W.defaultProps={primary:!0};var I=L("Focus"),F=function(t){var e=t.uri,n=t.location,o=t.component,a=x(t,["uri","location","component"]);return r.createElement(I.Consumer,null,(function(t){return r.createElement(J,k({},a,{component:o,requestFocus:t,uri:e,location:n}))}))},q=!0,Q=0,J=function(t){function e(){var n,r;j(this,e);for(var o=arguments.length,a=Array(o),i=0;i((t,e)=>{const{forward:n=[],...r}=t||{},o=JSON.stringify(r,((t,e)=>("function"==typeof e&&(e=String(e)).startsWith(t+"(")&&(e="function "+e),e)));return["!(function(w,p,f,c){",Object.keys(r).length>0?`c=w[p]=Object.assign(w[p]||{},${o});`:"c=w[p]=w[p]||{};","c[f]=(c[f]||[])",n.length>0?`.concat(${JSON.stringify(n)})`:"","})(window,'partytown','forward');",e].join("")})(t,'/* Partytown 0.5.4 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,"/"==(a=(o.lib||"/~partytown/")+(o.debug?"debug/":""))[0]&&(s=e.querySelectorAll(\'script[type="text/partytown"]\'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener("pt0",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||"partytown-sw.js"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?"script":"iframe"),t||(c.setAttribute("style","display:block;width:0;height:0;border:0;visibility:hidden"),c.setAttribute("aria-hidden",!0)),c.src=a+"partytown-"+(t?"atomics.js?v=0.5.4":"sandbox-sw.html?"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t{if("string"==typeof t)return!(t=>u.test(t))(t)},p=()=>"";function h(t,e=""){var n;if(!l(t))return t;if(t.startsWith("./")||t.startsWith("../"))return t;const r=null!=(n=null!=e?e:p())?n:"/";return`${null!=r&&r.endsWith("/")?r.slice(0,-1):r}${t.startsWith("/")?t:`/${t}`}`}const d=t=>null==t?void 0:t.startsWith("/"),f=(t,e)=>"number"==typeof t?t:l(t)?d(t)?function(t){const e=h(t),n="never";{const{pathname:t,search:r,hash:o}=c(e);return`${(0,i.T)(t,n)}${r}${o}`}}(t):function(t,e){if(d(t))return t;const n="never",r=(0,a.resolve)(t,e);return(0,i.T)(r,n)}(t,e):t,m=["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"];function g(t){return h(t,p())}const v={activeClassName:r.string,activeStyle:r.object,partiallyActive:r.bool};function y(t){return o.createElement(a.Location,null,(({location:e})=>o.createElement(w,s({},t,{_location:e}))))}class w extends o.Component{constructor(t){super(t),this.defaultGetProps=({isPartiallyCurrent:t,isCurrent:e})=>(this.props.partiallyActive?t:e)?{className:[this.props.className,this.props.activeClassName].filter(Boolean).join(" "),style:s({},this.props.style,this.props.activeStyle)}:null;let e=!1;"undefined"!=typeof window&&window.IntersectionObserver&&(e=!0),this.state={IOSupported:e},this.abortPrefetch=null,this.handleRef=this.handleRef.bind(this)}_prefetch(){let t=window.location.pathname+window.location.search;this.props._location&&this.props._location.pathname&&(t=this.props._location.pathname+this.props._location.search);const e=c(f(this.props.to,t)),n=e.pathname+e.search;if(t!==n)return ___loader.enqueue(n)}componentWillUnmount(){if(!this.io)return;const{instance:t,el:e}=this.io;this.abortPrefetch&&this.abortPrefetch.abort(),t.unobserve(e),t.disconnect()}handleRef(t){this.props.innerRef&&Object.prototype.hasOwnProperty.call(this.props.innerRef,"current")?this.props.innerRef.current=t:this.props.innerRef&&this.props.innerRef(t),this.state.IOSupported&&t&&(this.io=((t,e)=>{const n=new window.IntersectionObserver((n=>{n.forEach((n=>{t===n.target&&e(n.isIntersecting||n.intersectionRatio>0)}))}));return n.observe(t),{instance:n,el:t}})(t,(t=>{t?this.abortPrefetch=this._prefetch():this.abortPrefetch&&this.abortPrefetch.abort()})))}render(){const t=this.props,{to:e,getProps:n=this.defaultGetProps,onClick:r,onMouseEnter:i,state:u,replace:p,_location:h}=t,d=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,m),g=f(e,h.pathname);return l(g)?o.createElement(a.Link,s({to:g,state:u,getProps:n,innerRef:this.handleRef,onMouseEnter:t=>{i&&i(t);const e=c(g);___loader.hovering(e.pathname+e.search)},onClick:t=>{if(r&&r(t),!(0!==t.button||this.props.target||t.defaultPrevented||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)){t.preventDefault();let e=p;const n=encodeURI(g)===h.pathname;"boolean"!=typeof p&&n&&(e=!0),window.___navigate(g,{state:u,replace:e})}return!0}},d)):o.createElement("a",s({href:g},d))}}w.propTypes=s({},v,{onClick:r.func,to:r.string.isRequired,replace:r.bool,state:r.object});var b=o.forwardRef(((t,e)=>o.createElement(y,s({innerRef:e},t))));const P=(t,e)=>{window.___navigate(f(t,window.location.pathname),e)}},5535:function(t,e,n){"use strict";n.r(e),n.d(e,{Script:function(){return f},ScriptStrategy:function(){return u},collectedScriptsByPage:function(){return s},scriptCache:function(){return h},scriptCallbackCache:function(){return d}});var r=n(6540),o=n(1693);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;ei.get(t)||[],set(t,e){const n=i.get(t)||[];n.push(e),i.set(t,n)},delete(t){i.delete(t)}},c="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){const e=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})}),1)};var u,l;(l=u||(u={})).postHydrate="post-hydrate",l.idle="idle",l.offMainThread="off-main-thread";const p=new Set(["src","strategy","dangerouslySetInnerHTML","children","onLoad","onError"]),h=new Set,d=new Map;function f(t){return r.createElement(o.Location,null,(()=>r.createElement(m,t)))}function m(t){const{src:e,strategy:n=u.postHydrate}=t||{},{pathname:i}=(0,o.useLocation)();if((0,r.useEffect)((()=>{let e;switch(n){case u.postHydrate:e=g(t);break;case u.idle:c((()=>{e=g(t)}));break;case u.offMainThread:{const e=y(t);s.set(i,e)}}return()=>{const{script:t,loadCallback:n,errorCallback:r}=e||{};n&&(null==t||t.removeEventListener("load",n)),r&&(null==t||t.removeEventListener("error",r)),null==t||t.remove()}}),[]),n===u.offMainThread){const o=v(t),c=y(t);return"undefined"==typeof window&&s.set(i,c),r.createElement("script",o?a({type:"text/partytown","data-strategy":n,crossOrigin:"anonymous"},c,{dangerouslySetInnerHTML:{__html:v(t)}}):a({type:"text/partytown",src:w(e),"data-strategy":n,crossOrigin:"anonymous"},c))}return null}function g(t){const{id:e,src:n,strategy:r=u.postHydrate,onLoad:o,onError:i}=t||{},s=e||n,c=["load","error"],l={load:o,error:i};if(s){for(const t of c)if(null!=l&&l[t]){var p;const e=d.get(s)||{},{callbacks:n=[]}=(null==e?void 0:e[t])||{};var f,m;n.push(null==l?void 0:l[t]),null!=e&&null!=(p=e[t])&&p.event?null==l||null==(f=l[t])||f.call(l,null==e||null==(m=e[t])?void 0:m.event):d.set(s,a({},e,{[t]:{callbacks:n}}))}if(h.has(s))return null}const g=v(t),w=y(t),P=document.createElement("script");e&&(P.id=e),P.dataset.strategy=r;for(const[a,u]of Object.entries(w))P.setAttribute(a,u);g&&(P.textContent=g),n&&(P.src=n);const E={};if(s){for(const t of c){const e=e=>b(e,s,t);P.addEventListener(t,e),E[`${t}Callback`]=e}h.add(s)}return document.body.appendChild(P),{script:P,loadCallback:E.loadCallback,errorCallback:E.errorCallback}}function v(t){const{dangerouslySetInnerHTML:e,children:n=""}=t||{},{__html:r=""}=e||{};return r||n}function y(t){const e={};for(const[n,r]of Object.entries(t))p.has(n)||(e[n]=r);return e}function w(t){if(t)return`/__third-party-proxy?url=${encodeURIComponent(t)}`}function b(t,e,n){const r=d.get(e)||{};for(const a of(null==r||null==(o=r[n])?void 0:o.callbacks)||[]){var o;a(t)}d.set(e,{[n]:{event:t}})}}},function(t){t.O(0,[593,869],(function(){return e=6498,t(t.s=e);var e}));t.O()}]); +//# sourceMappingURL=app-2d83dfe0ade936b5e76b.js.map \ No newline at end of file diff --git a/app-3c978a551d040b778b4f.js.map b/app-2d83dfe0ade936b5e76b.js.map similarity index 72% rename from app-3c978a551d040b778b4f.js.map rename to app-2d83dfe0ade936b5e76b.js.map index b78b9b4..7ab0adc 100644 --- a/app-3c978a551d040b778b4f.js.map +++ b/app-2d83dfe0ade936b5e76b.js.map @@ -1 +1 @@ -{"version":3,"file":"app-3c978a551d040b778b4f.js","mappings":"iIAIA,IAAIA,EAAWC,OAAOC,QAAU,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAASF,UAAUD,GAAI,IAAK,IAAII,KAAOD,EAAcN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAAQL,EAAOK,GAAOD,EAAOC,GAAU,CAAE,OAAOL,CAAQ,EAE3PS,EAAc,SAAqBL,GACrC,IAAIM,EAAmBN,EAAOO,SAC1BC,EAASF,EAAiBE,OAC1BC,EAAOH,EAAiBG,KACxBC,EAAOJ,EAAiBI,KACxBC,EAASL,EAAiBK,OAC1BC,EAAWN,EAAiBM,SAC5BC,EAAOP,EAAiBO,KACxBC,EAAWR,EAAiBQ,SAC5BC,EAAOT,EAAiBS,KACxBC,EAAWhB,EAAOO,SAASS,UAG1BA,GAAYN,GAAQO,IAEvBD,EADU,IAAIE,IAAIR,GACHM,UAGjB,MAAO,CACLA,SAAUG,UAAUC,UAAUJ,IAC9BR,OAAQA,EACRC,KAAMA,EACNC,KAAMA,EACNC,OAAQA,EACRC,SAAUA,EACVC,KAAMA,EACNC,SAAUA,EACVC,KAAMA,EACNM,MAAOrB,EAAOsB,QAAQD,MACt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f,SAAI,EAAOF,EAAEiiB,YAAY,GAAG,CAAC,IAAIjiB,EAAEjT,EAAE0yB,EAAE,CAACb,EAAEjrB,IAAI5G,EAAE,CAAC,CAACmT,GAAG,CAAC6N,MAAM0R,IAAI,C","sources":["webpack://@adamgraham/portfolio/./node_modules/@gatsbyjs/reach-router/lib/history.js","webpack://@adamgraham/portfolio/./node_modules/@gatsbyjs/reach-router/lib/utils.js","webpack://@adamgraham/portfolio/./node_modules/gatsby-page-utils/dist/apply-trailing-slash-option.js","webpack://@adamgraham/portfolio/./node_modules/gatsby-react-router-scroll/index.js","webpack://@adamgraham/portfolio/./node_modules/gatsby-react-router-scroll/scroll-handler.js","webpack://@adamgraham/portfolio/./node_modules/gatsby-react-router-scroll/session-storage.js","webpack://@adamgraham/portfolio/./node_modules/gatsby-react-router-scroll/use-scroll-restoration.js","webpack://@adamgraham/portfolio/./node_modules/gatsby/dist/internal-plugins/partytown/gatsby-browser.js","webpack://@adamgraham/portfolio/./node_modules/gatsby/dist/internal-plugins/partytown/utils/get-forwards.js","webpack://@adamgraham/portfolio/./node_modules/gatsby/dist/internal-plugins/partytown/utils/inject-partytown-snippet.js","webpack://@adamgraham/portfolio/./.cache/_this_is_virtual_fs_path_/$virtual/async-requires.js","webpack://@adamgraham/portfolio/./.cache/api-runner-browser-plugins.js","webpack://@adamgraham/portfolio/./.cache/api-runner-browser.js","webpack://@adamgraham/portfolio/./.cache/emitter.js","webpack://@adamgraham/portfolio/./node_modules/mitt/dist/mitt.es.js","webpack://@adamgraham/portfolio/./.cache/normalize-page-path.js","webpack://@adamgraham/portfolio/./.cache/find-path.js","webpack://@adamgraham/portfolio/./.cache/static-query.js","webpack://@adamgraham/portfolio/./.cache/gatsby-browser-entry.js","webpack://@adamgraham/portfolio/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://@adamgraham/portfolio/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://@adamgraham/portfolio/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://@adamgraham/portfolio/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://@adamgraham/portfolio/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://@adamgraham/portfolio/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://@adamgraham/portfolio/./.cache/prefetch.js","webpack://@adamgraham/portfolio/./.cache/loader.js","webpack://@adamgraham/portfolio/./.cache/head/components/fire-callback-in-effect.js","webpack://@adamgraham/portfolio/./.cache/head/constants.js","webpack://@adamgraham/portfolio/./.cache/head/utils.js","webpack://@adamgraham/portfolio/./.cache/head/head-export-handler-for-browser.js","webpack://@adamgraham/portfolio/./.cache/page-renderer.js","webpack://@adamgraham/portfolio/./.cache/route-announcer-props.js","webpack://@adamgraham/portfolio/./.cache/navigation.js","webpack://@adamgraham/portfolio/./node_modules/shallow-compare/es/index.js","webpack://@adamgraham/portfolio/./.cache/ensure-resources.js","webpack://@adamgraham/portfolio/./.cache/production-app.js","webpack://@adamgraham/portfolio/./.cache/public-page-renderer-prod.js","webpack://@adamgraham/portfolio/./.cache/public-page-renderer.js","webpack://@adamgraham/portfolio/./.cache/react-dom-utils.js","webpack://@adamgraham/portfolio/./.cache/react-lifecycles-compat.js","webpack://@adamgraham/portfolio/./.cache/redirect-utils.js","webpack://@adamgraham/portfolio/./.cache/register-service-worker.js","webpack://@adamgraham/portfolio/./.cache/strip-prefix.js","webpack://@adamgraham/portfolio/./gatsby-browser.js","webpack://@adamgraham/portfolio/./node_modules/gatsby-plugin-google-analytics/gatsby-browser.js","webpack://@adamgraham/portfolio/./node_modules/gatsby-plugin-manifest/gatsby-browser.js","webpack://@adamgraham/portfolio/./node_modules/gatsby-plugin-manifest/get-manifest-pathname.js","webpack://@adamgraham/portfolio/./node_modules/@gatsbyjs/reach-router/es/lib/utils.js","webpack://@adamgraham/portfolio/./node_modules/@gatsbyjs/reach-router/es/lib/history.js","webpack://@adamgraham/portfolio/./node_modules/@gatsbyjs/reach-router/es/index.js","webpack://@adamgraham/portfolio/./node_modules/invariant/browser.js","webpack://@adamgraham/portfolio/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://@adamgraham/portfolio/./node_modules/@babel/runtime/helpers/inheritsLoose.js","webpack://@adamgraham/portfolio/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://@adamgraham/portfolio/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://@adamgraham/portfolio/./node_modules/@builder.io/partytown/integration/index.cjs","webpack://@adamgraham/portfolio/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://@adamgraham/portfolio/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://@adamgraham/portfolio/./node_modules/gatsby-link/dist/index.modern.mjs","webpack://@adamgraham/portfolio/./node_modules/gatsby-script/dist/index.modern.mjs"],"sourcesContent":["\"use strict\";\n\nexports.__esModule = true;\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar getLocation = function getLocation(source) {\n var _source$location = source.location,\n search = _source$location.search,\n hash = _source$location.hash,\n href = _source$location.href,\n origin = _source$location.origin,\n protocol = _source$location.protocol,\n host = _source$location.host,\n hostname = _source$location.hostname,\n port = _source$location.port;\n var pathname = source.location.pathname;\n\n\n if (!pathname && href && canUseDOM) {\n var url = new URL(href);\n pathname = url.pathname;\n }\n\n return {\n pathname: encodeURI(decodeURI(pathname)),\n search: search,\n hash: hash,\n href: href,\n origin: origin,\n protocol: protocol,\n host: host,\n hostname: hostname,\n port: port,\n state: source.history.state,\n key: source.history.state && source.history.state.key || \"initial\"\n };\n};\n\nvar createHistory = function createHistory(source, options) {\n var listeners = [];\n var location = getLocation(source);\n var transitioning = false;\n var resolveTransition = function resolveTransition() {};\n\n return {\n get location() {\n return location;\n },\n\n get transitioning() {\n return transitioning;\n },\n\n _onTransitionComplete: function _onTransitionComplete() {\n transitioning = false;\n resolveTransition();\n },\n listen: function listen(listener) {\n listeners.push(listener);\n\n var popstateListener = function popstateListener() {\n location = getLocation(source);\n listener({ location: location, action: \"POP\" });\n };\n\n source.addEventListener(\"popstate\", popstateListener);\n\n return function () {\n source.removeEventListener(\"popstate\", popstateListener);\n listeners = listeners.filter(function (fn) {\n return fn !== listener;\n });\n };\n },\n navigate: function navigate(to) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n state = _ref.state,\n _ref$replace = _ref.replace,\n replace = _ref$replace === undefined ? false : _ref$replace;\n\n if (typeof to === \"number\") {\n source.history.go(to);\n } else {\n state = _extends({}, state, { key: Date.now() + \"\" });\n // try...catch iOS Safari limits to 100 pushState calls\n try {\n if (transitioning || replace) {\n source.history.replaceState(state, null, to);\n } else {\n source.history.pushState(state, null, to);\n }\n } catch (e) {\n source.location[replace ? \"replace\" : \"assign\"](to);\n }\n }\n\n location = getLocation(source);\n transitioning = true;\n var transition = new Promise(function (res) {\n return resolveTransition = res;\n });\n listeners.forEach(function (listener) {\n return listener({ location: location, action: \"PUSH\" });\n });\n return transition;\n }\n };\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// Stores history entries in memory for testing or other platforms like Native\nvar createMemorySource = function createMemorySource() {\n var initialPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"/\";\n\n var searchIndex = initialPath.indexOf(\"?\");\n var initialLocation = {\n pathname: searchIndex > -1 ? initialPath.substr(0, searchIndex) : initialPath,\n search: searchIndex > -1 ? initialPath.substr(searchIndex) : \"\"\n };\n var index = 0;\n var stack = [initialLocation];\n var states = [null];\n\n return {\n get location() {\n return stack[index];\n },\n addEventListener: function addEventListener(name, fn) {},\n removeEventListener: function removeEventListener(name, fn) {},\n\n history: {\n get entries() {\n return stack;\n },\n get index() {\n return index;\n },\n get state() {\n return states[index];\n },\n pushState: function pushState(state, _, uri) {\n var _uri$split = uri.split(\"?\"),\n pathname = _uri$split[0],\n _uri$split$ = _uri$split[1],\n search = _uri$split$ === undefined ? \"\" : _uri$split$;\n\n index++;\n stack.push({ pathname: pathname, search: search.length ? \"?\" + search : search });\n states.push(state);\n },\n replaceState: function replaceState(state, _, uri) {\n var _uri$split2 = uri.split(\"?\"),\n pathname = _uri$split2[0],\n _uri$split2$ = _uri$split2[1],\n search = _uri$split2$ === undefined ? \"\" : _uri$split2$;\n\n stack[index] = { pathname: pathname, search: search };\n states[index] = state;\n },\n go: function go(to) {\n var newIndex = index + to;\n\n if (newIndex < 0 || newIndex > states.length - 1) {\n return;\n }\n\n index = newIndex;\n }\n }\n };\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// global history - uses window.history as the source if available, otherwise a\n// memory history\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\nvar getSource = function getSource() {\n return canUseDOM ? window : createMemorySource();\n};\n\nvar globalHistory = createHistory(getSource());\nvar navigate = globalHistory.navigate;\n\n////////////////////////////////////////////////////////////////////////////////\n\nexports.globalHistory = globalHistory;\nexports.navigate = navigate;\nexports.createHistory = createHistory;\nexports.createMemorySource = createMemorySource;","\"use strict\";\n\nexports.__esModule = true;\nexports.shallowCompare = exports.validateRedirect = exports.insertParams = exports.resolve = exports.match = exports.pick = exports.startsWith = undefined;\n\nvar _invariant = require(\"invariant\");\n\nvar _invariant2 = _interopRequireDefault(_invariant);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n////////////////////////////////////////////////////////////////////////////////\n// startsWith(string, search) - Check if `string` starts with `search`\nvar startsWith = function startsWith(string, search) {\n return string.substr(0, search.length) === search;\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// pick(routes, uri)\n//\n// Ranks and picks the best route to match. Each segment gets the highest\n// amount of points, then the type of segment gets an additional amount of\n// points where\n//\n// static > dynamic > splat > root\n//\n// This way we don't have to worry about the order of our routes, let the\n// computers do it.\n//\n// A route looks like this\n//\n// { path, default, value }\n//\n// And a returned match looks like:\n//\n// { route, params, uri }\n//\n// I know, I should use TypeScript not comments for these types.\nvar pick = function pick(routes, uri) {\n var match = void 0;\n var default_ = void 0;\n\n var _uri$split = uri.split(\"?\"),\n uriPathname = _uri$split[0];\n\n var uriSegments = segmentize(uriPathname);\n var isRootUri = uriSegments[0] === \"\";\n var ranked = rankRoutes(routes);\n\n for (var i = 0, l = ranked.length; i < l; i++) {\n var missed = false;\n var route = ranked[i].route;\n\n if (route.default) {\n default_ = {\n route: route,\n params: {},\n uri: uri\n };\n continue;\n }\n\n var routeSegments = segmentize(route.path);\n var params = {};\n var max = Math.max(uriSegments.length, routeSegments.length);\n var index = 0;\n\n for (; index < max; index++) {\n var routeSegment = routeSegments[index];\n var uriSegment = uriSegments[index];\n\n if (isSplat(routeSegment)) {\n // Hit a splat, just grab the rest, and return a match\n // uri: /files/documents/work\n // route: /files/*\n var param = routeSegment.slice(1) || \"*\";\n params[param] = uriSegments.slice(index).map(decodeURIComponent).join(\"/\");\n break;\n }\n\n if (uriSegment === undefined) {\n // URI is shorter than the route, no match\n // uri: /users\n // route: /users/:userId\n missed = true;\n break;\n }\n\n var dynamicMatch = paramRe.exec(routeSegment);\n\n if (dynamicMatch && !isRootUri) {\n var matchIsNotReserved = reservedNames.indexOf(dynamicMatch[1]) === -1;\n !matchIsNotReserved ? process.env.NODE_ENV !== \"production\" ? (0, _invariant2.default)(false, \" dynamic segment \\\"\" + dynamicMatch[1] + \"\\\" is a reserved name. Please use a different name in path \\\"\" + route.path + \"\\\".\") : (0, _invariant2.default)(false) : void 0;\n var value = decodeURIComponent(uriSegment);\n params[dynamicMatch[1]] = value;\n } else if (routeSegment !== uriSegment) {\n // Current segments don't match, not dynamic, not splat, so no match\n // uri: /users/123/settings\n // route: /users/:id/profile\n missed = true;\n break;\n }\n }\n\n if (!missed) {\n match = {\n route: route,\n params: params,\n uri: \"/\" + uriSegments.slice(0, index).join(\"/\")\n };\n break;\n }\n }\n\n return match || default_ || null;\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// match(path, uri) - Matches just one path to a uri, also lol\nvar match = function match(path, uri) {\n return pick([{ path: path }], uri);\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// resolve(to, basepath)\n//\n// Resolves URIs as though every path is a directory, no files. Relative URIs\n// in the browser can feel awkward because not only can you be \"in a directory\"\n// you can be \"at a file\", too. For example\n//\n// browserSpecResolve('foo', '/bar/') => /bar/foo\n// browserSpecResolve('foo', '/bar') => /foo\n//\n// But on the command line of a file system, it's not as complicated, you can't\n// `cd` from a file, only directories. This way, links have to know less about\n// their current path. To go deeper you can do this:\n//\n// \n// // instead of\n// \n//\n// Just like `cd`, if you want to go deeper from the command line, you do this:\n//\n// cd deeper\n// # not\n// cd $(pwd)/deeper\n//\n// By treating every path as a directory, linking to relative paths should\n// require less contextual information and (fingers crossed) be more intuitive.\nvar resolve = function resolve(to, base) {\n // /foo/bar, /baz/qux => /foo/bar\n if (startsWith(to, \"/\")) {\n return to;\n }\n\n var _to$split = to.split(\"?\"),\n toPathname = _to$split[0],\n toQuery = _to$split[1];\n\n var _base$split = base.split(\"?\"),\n basePathname = _base$split[0];\n\n var toSegments = segmentize(toPathname);\n var baseSegments = segmentize(basePathname);\n\n // ?a=b, /users?b=c => /users?a=b\n if (toSegments[0] === \"\") {\n return addQuery(basePathname, toQuery);\n }\n\n // profile, /users/789 => /users/789/profile\n if (!startsWith(toSegments[0], \".\")) {\n var pathname = baseSegments.concat(toSegments).join(\"/\");\n return addQuery((basePathname === \"/\" ? \"\" : \"/\") + pathname, toQuery);\n }\n\n // ./ /users/123 => /users/123\n // ../ /users/123 => /users\n // ../.. /users/123 => /\n // ../../one /a/b/c/d => /a/b/one\n // .././one /a/b/c/d => /a/b/c/one\n var allSegments = baseSegments.concat(toSegments);\n var segments = [];\n for (var i = 0, l = allSegments.length; i < l; i++) {\n var segment = allSegments[i];\n if (segment === \"..\") segments.pop();else if (segment !== \".\") segments.push(segment);\n }\n\n return addQuery(\"/\" + segments.join(\"/\"), toQuery);\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// insertParams(path, params)\n\nvar insertParams = function insertParams(path, params) {\n var _path$split = path.split(\"?\"),\n pathBase = _path$split[0],\n _path$split$ = _path$split[1],\n query = _path$split$ === undefined ? \"\" : _path$split$;\n\n var segments = segmentize(pathBase);\n var constructedPath = \"/\" + segments.map(function (segment) {\n var match = paramRe.exec(segment);\n return match ? params[match[1]] : segment;\n }).join(\"/\");\n var _params$location = params.location;\n _params$location = _params$location === undefined ? {} : _params$location;\n var _params$location$sear = _params$location.search,\n search = _params$location$sear === undefined ? \"\" : _params$location$sear;\n\n var searchSplit = search.split(\"?\")[1] || \"\";\n constructedPath = addQuery(constructedPath, query, searchSplit);\n return constructedPath;\n};\n\nvar validateRedirect = function validateRedirect(from, to) {\n var filter = function filter(segment) {\n return isDynamic(segment);\n };\n var fromString = segmentize(from).filter(filter).sort().join(\"/\");\n var toString = segmentize(to).filter(filter).sort().join(\"/\");\n return fromString === toString;\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// Junk\nvar paramRe = /^:(.+)/;\n\nvar SEGMENT_POINTS = 4;\nvar STATIC_POINTS = 3;\nvar DYNAMIC_POINTS = 2;\nvar SPLAT_PENALTY = 1;\nvar ROOT_POINTS = 1;\n\nvar isRootSegment = function isRootSegment(segment) {\n return segment === \"\";\n};\nvar isDynamic = function isDynamic(segment) {\n return paramRe.test(segment);\n};\nvar isSplat = function isSplat(segment) {\n return segment && segment[0] === \"*\";\n};\n\nvar rankRoute = function rankRoute(route, index) {\n var score = route.default ? 0 : segmentize(route.path).reduce(function (score, segment) {\n score += SEGMENT_POINTS;\n if (isRootSegment(segment)) score += ROOT_POINTS;else if (isDynamic(segment)) score += DYNAMIC_POINTS;else if (isSplat(segment)) score -= SEGMENT_POINTS + SPLAT_PENALTY;else score += STATIC_POINTS;\n return score;\n }, 0);\n return { route: route, score: score, index: index };\n};\n\nvar rankRoutes = function rankRoutes(routes) {\n return routes.map(rankRoute).sort(function (a, b) {\n return a.score < b.score ? 1 : a.score > b.score ? -1 : a.index - b.index;\n });\n};\n\nvar segmentize = function segmentize(uri) {\n return uri\n // strip starting/ending slashes\n .replace(/(^\\/+|\\/+$)/g, \"\").split(\"/\");\n};\n\nvar addQuery = function addQuery(pathname) {\n for (var _len = arguments.length, query = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n query[_key - 1] = arguments[_key];\n }\n\n query = query.filter(function (q) {\n return q && q.length > 0;\n });\n return pathname + (query && query.length > 0 ? \"?\" + query.join(\"&\") : \"\");\n};\n\nvar reservedNames = [\"uri\", \"path\"];\n\n/**\n * Shallow compares two objects.\n * @param {Object} obj1 The first object to compare.\n * @param {Object} obj2 The second object to compare.\n */\nvar shallowCompare = function shallowCompare(obj1, obj2) {\n var obj1Keys = Object.keys(obj1);\n return obj1Keys.length === Object.keys(obj2).length && obj1Keys.every(function (key) {\n return obj2.hasOwnProperty(key) && obj1[key] === obj2[key];\n });\n};\n\n////////////////////////////////////////////////////////////////////////////////\nexports.startsWith = startsWith;\nexports.pick = pick;\nexports.match = match;\nexports.resolve = resolve;\nexports.insertParams = insertParams;\nexports.validateRedirect = validateRedirect;\nexports.shallowCompare = shallowCompare;","\"use strict\";\n\nexports.__esModule = true;\nexports.applyTrailingSlashOption = void 0;\n\n// TODO(v5): Remove legacy setting and default to \"always\"\nconst applyTrailingSlashOption = (input, option = `legacy`) => {\n const hasHtmlSuffix = input.endsWith(`.html`);\n const hasXmlSuffix = input.endsWith(`.xml`);\n const hasPdfSuffix = input.endsWith(`.pdf`);\n if (input === `/`) return input;\n\n if (hasHtmlSuffix || hasXmlSuffix || hasPdfSuffix) {\n option = `never`;\n }\n\n if (option === `always`) {\n return input.endsWith(`/`) ? input : `${input}/`;\n }\n\n if (option === `never`) {\n return input.endsWith(`/`) ? input.slice(0, -1) : input;\n }\n\n return input;\n};\n\nexports.applyTrailingSlashOption = applyTrailingSlashOption;","\"use strict\";\n\nexports.__esModule = true;\nexports.useScrollRestoration = exports.ScrollContext = void 0;\n\nvar _scrollHandler = require(\"./scroll-handler\");\n\nexports.ScrollContext = _scrollHandler.ScrollHandler;\n\nvar _useScrollRestoration = require(\"./use-scroll-restoration\");\n\nexports.useScrollRestoration = _useScrollRestoration.useScrollRestoration;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.ScrollHandler = exports.ScrollContext = void 0;\n\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\n\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _sessionStorage = require(\"./session-storage\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nvar ScrollContext = /*#__PURE__*/React.createContext(new _sessionStorage.SessionStorage());\nexports.ScrollContext = ScrollContext;\nScrollContext.displayName = \"GatsbyScrollContext\";\n\nvar ScrollHandler = /*#__PURE__*/function (_React$Component) {\n (0, _inheritsLoose2.default)(ScrollHandler, _React$Component);\n\n function ScrollHandler() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this._stateStorage = new _sessionStorage.SessionStorage();\n _this._isTicking = false;\n _this._latestKnownScrollY = 0;\n\n _this.scrollListener = function () {\n _this._latestKnownScrollY = window.scrollY;\n\n if (!_this._isTicking) {\n _this._isTicking = true;\n requestAnimationFrame(_this._saveScroll.bind((0, _assertThisInitialized2.default)(_this)));\n }\n };\n\n _this.windowScroll = function (position, prevProps) {\n if (_this.shouldUpdateScroll(prevProps, _this.props)) {\n window.scrollTo(0, position);\n }\n };\n\n _this.scrollToHash = function (hash, prevProps) {\n var node = document.getElementById(hash.substring(1));\n\n if (node && _this.shouldUpdateScroll(prevProps, _this.props)) {\n node.scrollIntoView();\n }\n };\n\n _this.shouldUpdateScroll = function (prevRouterProps, routerProps) {\n var shouldUpdateScroll = _this.props.shouldUpdateScroll;\n\n if (!shouldUpdateScroll) {\n return true;\n } // Hack to allow accessing this._stateStorage.\n\n\n return shouldUpdateScroll.call((0, _assertThisInitialized2.default)(_this), prevRouterProps, routerProps);\n };\n\n return _this;\n }\n\n var _proto = ScrollHandler.prototype;\n\n _proto._saveScroll = function _saveScroll() {\n var key = this.props.location.key || null;\n\n if (key) {\n this._stateStorage.save(this.props.location, key, this._latestKnownScrollY);\n }\n\n this._isTicking = false;\n };\n\n _proto.componentDidMount = function componentDidMount() {\n window.addEventListener(\"scroll\", this.scrollListener);\n var scrollPosition;\n var _this$props$location = this.props.location,\n key = _this$props$location.key,\n hash = _this$props$location.hash;\n\n if (key) {\n scrollPosition = this._stateStorage.read(this.props.location, key);\n }\n\n if (scrollPosition) {\n this.windowScroll(scrollPosition, undefined);\n } else if (hash) {\n this.scrollToHash(decodeURI(hash), undefined);\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n window.removeEventListener(\"scroll\", this.scrollListener);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _this$props$location2 = this.props.location,\n hash = _this$props$location2.hash,\n key = _this$props$location2.key;\n var scrollPosition;\n\n if (key) {\n scrollPosition = this._stateStorage.read(this.props.location, key);\n }\n /** There are two pieces of state: the browser url and\n * history state which keeps track of scroll position\n * Native behaviour prescribes that we ought to restore scroll position\n * when a user navigates back in their browser (this is the `POP` action)\n * Currently, reach router has a bug that prevents this at https://github.com/reach/router/issues/228\n * So we _always_ stick to the url as a source of truth — if the url\n * contains a hash, we scroll to it\n */\n\n\n if (hash) {\n this.scrollToHash(decodeURI(hash), prevProps);\n } else {\n this.windowScroll(scrollPosition, prevProps);\n }\n };\n\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(ScrollContext.Provider, {\n value: this._stateStorage\n }, this.props.children);\n };\n\n return ScrollHandler;\n}(React.Component);\n\nexports.ScrollHandler = ScrollHandler;\nScrollHandler.propTypes = {\n shouldUpdateScroll: _propTypes.default.func,\n children: _propTypes.default.element.isRequired,\n location: _propTypes.default.object.isRequired\n};","\"use strict\";\n\nexports.__esModule = true;\nexports.SessionStorage = void 0;\nvar STATE_KEY_PREFIX = \"@@scroll|\";\nvar GATSBY_ROUTER_SCROLL_STATE = \"___GATSBY_REACT_ROUTER_SCROLL\";\n\nvar SessionStorage = /*#__PURE__*/function () {\n function SessionStorage() {}\n\n var _proto = SessionStorage.prototype;\n\n _proto.read = function read(location, key) {\n var stateKey = this.getStateKey(location, key);\n\n try {\n var value = window.sessionStorage.getItem(stateKey);\n return value ? JSON.parse(value) : 0;\n } catch (e) {\n if (process.env.NODE_ENV !== \"production\") {\n console.warn(\"[gatsby-react-router-scroll] Unable to access sessionStorage; sessionStorage is not available.\");\n }\n\n if (window && window[GATSBY_ROUTER_SCROLL_STATE] && window[GATSBY_ROUTER_SCROLL_STATE][stateKey]) {\n return window[GATSBY_ROUTER_SCROLL_STATE][stateKey];\n }\n\n return 0;\n }\n };\n\n _proto.save = function save(location, key, value) {\n var stateKey = this.getStateKey(location, key);\n var storedValue = JSON.stringify(value);\n\n try {\n window.sessionStorage.setItem(stateKey, storedValue);\n } catch (e) {\n if (window && window[GATSBY_ROUTER_SCROLL_STATE]) {\n window[GATSBY_ROUTER_SCROLL_STATE][stateKey] = JSON.parse(storedValue);\n } else {\n window[GATSBY_ROUTER_SCROLL_STATE] = {};\n window[GATSBY_ROUTER_SCROLL_STATE][stateKey] = JSON.parse(storedValue);\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n console.warn(\"[gatsby-react-router-scroll] Unable to save state in sessionStorage; sessionStorage is not available.\");\n }\n }\n };\n\n _proto.getStateKey = function getStateKey(location, key) {\n var stateKeyBase = \"\" + STATE_KEY_PREFIX + location.pathname;\n return key === null || typeof key === \"undefined\" ? stateKeyBase : stateKeyBase + \"|\" + key;\n };\n\n return SessionStorage;\n}();\n\nexports.SessionStorage = SessionStorage;","\"use strict\";\n\nexports.__esModule = true;\nexports.useScrollRestoration = useScrollRestoration;\n\nvar _scrollHandler = require(\"./scroll-handler\");\n\nvar _react = require(\"react\");\n\nvar _reachRouter = require(\"@gatsbyjs/reach-router\");\n\nfunction useScrollRestoration(identifier) {\n var location = (0, _reachRouter.useLocation)();\n var state = (0, _react.useContext)(_scrollHandler.ScrollContext);\n var ref = (0, _react.useRef)(null);\n (0, _react.useLayoutEffect)(function () {\n if (ref.current) {\n var position = state.read(location, identifier);\n ref.current.scrollTo(0, position || 0);\n }\n }, [location.key]);\n return {\n ref: ref,\n onScroll: function onScroll() {\n if (ref.current) {\n state.save(location, identifier, ref.current.scrollTop);\n }\n }\n };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.onInitialClientRender = void 0;\n\nvar _gatsbyScript = require(\"gatsby-script\");\n\nvar _injectPartytownSnippet = require(\"./utils/inject-partytown-snippet\");\n\n// Makes sure off-main-thread scripts are loaded in `gatsby develop`\nconst onInitialClientRender = () => {\n if (process.env.NODE_ENV !== `development`) {\n return;\n }\n\n (0, _injectPartytownSnippet.injectPartytownSnippet)(_gatsbyScript.collectedScriptsByPage.get(window.location.pathname)); // Clear scripts after we've used them to avoid leaky behavior\n\n _gatsbyScript.collectedScriptsByPage.delete(window.location.pathname);\n}; // Client-side navigation (CSR, e.g. Gatsby Link navigations) are broken upstream in Partytown.\n// We need an official API from Partytown for handling re-configuration and on-demand script loading.\n// Until then, `off-main-thread` scripts load only on server-side navigation (SSR).\n// See https://github.com/BuilderIO/partytown/issues/74 for more details.\n\n\nexports.onInitialClientRender = onInitialClientRender;\n//# sourceMappingURL=gatsby-browser.js.map","\"use strict\";\n\nexports.__esModule = true;\nexports.getForwards = getForwards;\n\nfunction getForwards(collectedScripts) {\n return collectedScripts === null || collectedScripts === void 0 ? void 0 : collectedScripts.flatMap(script => (script === null || script === void 0 ? void 0 : script.forward) || []);\n}\n//# sourceMappingURL=get-forwards.js.map","\"use strict\";\n\nexports.__esModule = true;\nexports.injectPartytownSnippet = injectPartytownSnippet;\n\nvar _integration = require(\"@builder.io/partytown/integration\");\n\nvar _getForwards = require(\"./get-forwards\");\n\n// Adapted from https://github.com/BuilderIO/partytown/blob/main/src/react/snippet.tsx to only include CSR logic\nfunction injectPartytownSnippet(collectedScripts) {\n if (!collectedScripts.length) {\n return;\n }\n\n const existingSnippet = document.querySelector(`script[data-partytown]`);\n const existingSandbox = document.querySelector(`iframe[src*=\"~partytown/partytown-sandbox-sw\"]`);\n\n if (existingSnippet) {\n existingSnippet.remove();\n }\n\n if (existingSandbox) {\n existingSandbox.remove();\n }\n\n const forwards = (0, _getForwards.getForwards)(collectedScripts);\n const snippet = document.createElement(`script`);\n snippet.dataset.partytown = ``;\n snippet.innerHTML = (0, _integration.partytownSnippet)({\n forward: forwards\n });\n document.head.appendChild(snippet);\n}\n//# sourceMappingURL=inject-partytown-snippet.js.map","exports.components = {\n \"component---src-pages-404-js\": () => import(\"./../../../src/pages/404.js\" /* webpackChunkName: \"component---src-pages-404-js\" */),\n \"component---src-pages-art-art-json-json-id-js\": () => import(\"./../../../src/pages/art/{ArtJson.jsonId}.js\" /* webpackChunkName: \"component---src-pages-art-art-json-json-id-js\" */),\n \"component---src-pages-art-js\": () => import(\"./../../../src/pages/art.js\" /* webpackChunkName: \"component---src-pages-art-js\" */),\n \"component---src-pages-games-games-json-json-id-js\": () => import(\"./../../../src/pages/games/{GamesJson.jsonId}.js\" /* webpackChunkName: \"component---src-pages-games-games-json-json-id-js\" */),\n \"component---src-pages-games-js\": () => import(\"./../../../src/pages/games.js\" /* webpackChunkName: \"component---src-pages-games-js\" */),\n \"component---src-pages-index-js\": () => import(\"./../../../src/pages/index.js\" /* webpackChunkName: \"component---src-pages-index-js\" */),\n \"component---src-pages-presentations-js\": () => import(\"./../../../src/pages/presentations.js\" /* webpackChunkName: \"component---src-pages-presentations-js\" */),\n \"component---src-pages-presentations-presentations-json-json-id-js\": () => import(\"./../../../src/pages/presentations/{PresentationsJson.jsonId}.js\" /* webpackChunkName: \"component---src-pages-presentations-presentations-json-json-id-js\" */),\n \"component---src-pages-software-js\": () => import(\"./../../../src/pages/software.js\" /* webpackChunkName: \"component---src-pages-software-js\" */),\n \"component---src-pages-tech-js\": () => import(\"./../../../src/pages/tech.js\" /* webpackChunkName: \"component---src-pages-tech-js\" */),\n \"component---src-pages-tech-tech-json-json-id-js\": () => import(\"./../../../src/pages/tech/{TechJson.jsonId}.js\" /* webpackChunkName: \"component---src-pages-tech-tech-json-json-id-js\" */),\n \"component---src-pages-websites-js\": () => import(\"./../../../src/pages/websites.js\" /* webpackChunkName: \"component---src-pages-websites-js\" */),\n \"component---src-pages-websites-websites-json-json-id-js\": () => import(\"./../../../src/pages/websites/{WebsitesJson.jsonId}.js\" /* webpackChunkName: \"component---src-pages-websites-websites-json-json-id-js\" */)\n}\n\n","module.exports = [{\n plugin: require('../node_modules/gatsby-plugin-google-analytics/gatsby-browser.js'),\n options: {\"plugins\":[],\"trackingId\":\"UA-61761892-1\",\"head\":false,\"anonymize\":false,\"respectDNT\":false,\"exclude\":[],\"pageTransitionDelay\":0,\"enableWebVitalsTracking\":false},\n },{\n plugin: require('../node_modules/gatsby-plugin-manifest/gatsby-browser.js'),\n options: {\"plugins\":[],\"name\":\"Adam Graham\",\"short_name\":\"Adam Graham\",\"start_url\":\"/\",\"display\":\"standalone\",\"theme_color\":\"#101214\",\"background_color\":\"#101214\",\"icon\":\"static/logo512.png\",\"legacy\":true,\"theme_color_in_head\":true,\"cache_busting_mode\":\"query\",\"crossOrigin\":\"anonymous\",\"include_favicon\":true,\"cacheDigest\":\"4f22fd91141daea106a5dde543702c7b\"},\n },{\n plugin: require('../gatsby-browser.js'),\n options: {\"plugins\":[]},\n },{\n plugin: require('../node_modules/gatsby/dist/internal-plugins/partytown/gatsby-browser.js'),\n options: {\"plugins\":[]},\n }]\n","const plugins = require(`./api-runner-browser-plugins`)\nconst { getResourceURLsForPathname, loadPage, loadPageSync } =\n require(`./loader`).publicLoader\n\nexports.apiRunner = (api, args = {}, defaultReturn, argTransform) => {\n // Hooks for gatsby-cypress's API handler\n if (process.env.CYPRESS_SUPPORT) {\n if (window.___apiHandler) {\n window.___apiHandler(api)\n } else if (window.___resolvedAPIs) {\n window.___resolvedAPIs.push(api)\n } else {\n window.___resolvedAPIs = [api]\n }\n }\n\n let results = plugins.map(plugin => {\n if (!plugin.plugin[api]) {\n return undefined\n }\n\n args.getResourceURLsForPathname = getResourceURLsForPathname\n args.loadPage = loadPage\n args.loadPageSync = loadPageSync\n\n const result = plugin.plugin[api](args, plugin.options)\n if (result && argTransform) {\n args = argTransform({ args, result, plugin })\n }\n return result\n })\n\n // Filter out undefined results.\n results = results.filter(result => typeof result !== `undefined`)\n\n if (results.length > 0) {\n return results\n } else if (defaultReturn) {\n return [defaultReturn]\n } else {\n return []\n }\n}\n\nexports.apiRunnerAsync = (api, args, defaultReturn) =>\n plugins.reduce(\n (previous, next) =>\n next.plugin[api]\n ? previous.then(() => next.plugin[api](args, next.options))\n : previous,\n Promise.resolve()\n )\n","import mitt from \"mitt\"\n\nconst emitter = mitt()\nexport default emitter\n","// \n// An event handler can take an optional event argument\n// and should not return a value\n \n \n\n// An array of all currently registered event handlers for a type\n \n \n// A map of event types and their corresponding event handlers.\n \n \n \n \n\n/** Mitt: Tiny (~200b) functional event emitter / pubsub.\n * @name mitt\n * @returns {Mitt}\n */\nfunction mitt(all ) {\n\tall = all || Object.create(null);\n\n\treturn {\n\t\t/**\n\t\t * Register an event handler for the given type.\n\t\t *\n\t\t * @param {String} type\tType of event to listen for, or `\"*\"` for all events\n\t\t * @param {Function} handler Function to call in response to given event\n\t\t * @memberOf mitt\n\t\t */\n\t\ton: function on(type , handler ) {\n\t\t\t(all[type] || (all[type] = [])).push(handler);\n\t\t},\n\n\t\t/**\n\t\t * Remove an event handler for the given type.\n\t\t *\n\t\t * @param {String} type\tType of event to unregister `handler` from, or `\"*\"`\n\t\t * @param {Function} handler Handler function to remove\n\t\t * @memberOf mitt\n\t\t */\n\t\toff: function off(type , handler ) {\n\t\t\tif (all[type]) {\n\t\t\t\tall[type].splice(all[type].indexOf(handler) >>> 0, 1);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Invoke all handlers for the given type.\n\t\t * If present, `\"*\"` handlers are invoked after type-matched handlers.\n\t\t *\n\t\t * @param {String} type The event type to invoke\n\t\t * @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler\n\t\t * @memberOf mitt\n\t\t */\n\t\temit: function emit(type , evt ) {\n\t\t\t(all[type] || []).slice().map(function (handler) { handler(evt); });\n\t\t\t(all['*'] || []).slice().map(function (handler) { handler(type, evt); });\n\t\t}\n\t};\n}\n\nexport default mitt;\n//# sourceMappingURL=mitt.es.js.map\n","export default pathAndSearch => {\n if (pathAndSearch === undefined) {\n return pathAndSearch\n }\n let [path, search = ``] = pathAndSearch.split(`?`)\n if (search) {\n search = `?` + search\n }\n\n if (path === `/`) {\n return `/` + search\n }\n if (path.charAt(path.length - 1) === `/`) {\n return path.slice(0, -1) + search\n }\n return path + search\n}\n","import { pick } from \"@gatsbyjs/reach-router/lib/utils\"\nimport stripPrefix from \"./strip-prefix\"\nimport normalizePagePath from \"./normalize-page-path\"\nimport { maybeGetBrowserRedirect } from \"./redirect-utils.js\"\n\nconst pathCache = new Map()\nlet matchPaths = []\n\nconst trimPathname = rawPathname => {\n let newRawPathname = rawPathname\n const queryIndex = rawPathname.indexOf(`?`)\n\n if (queryIndex !== -1) {\n const [path, qs] = rawPathname.split(`?`)\n newRawPathname = `${path}?${encodeURIComponent(qs)}`\n }\n\n const pathname = decodeURIComponent(newRawPathname)\n\n // Remove the pathPrefix from the pathname.\n const trimmedPathname = stripPrefix(\n pathname,\n decodeURIComponent(__BASE_PATH__)\n )\n // Remove any hashfragment\n .split(`#`)[0]\n\n return trimmedPathname\n}\n\nfunction absolutify(path) {\n // If it's already absolute, return as-is\n if (\n path.startsWith(`/`) ||\n path.startsWith(`https://`) ||\n path.startsWith(`http://`)\n ) {\n return path\n }\n // Calculate path relative to current location, adding a trailing slash to\n // match behavior of @reach/router\n return new URL(\n path,\n window.location.href + (window.location.href.endsWith(`/`) ? `` : `/`)\n ).pathname\n}\n\n/**\n * Set list of matchPaths\n *\n * @param {Array<{path: string, matchPath: string}>} value collection of matchPaths\n */\nexport const setMatchPaths = value => {\n matchPaths = value\n}\n\n/**\n * Return a matchpath url\n * if `match-paths.json` contains `{ \"/foo*\": \"/page1\", ...}`, then\n * `/foo?bar=far` => `/page1`\n *\n * @param {string} rawPathname A raw pathname\n * @return {string|null}\n */\nexport const findMatchPath = rawPathname => {\n const trimmedPathname = cleanPath(rawPathname)\n\n const pickPaths = matchPaths.map(({ path, matchPath }) => {\n return {\n path: matchPath,\n originalPath: path,\n }\n })\n\n const path = pick(pickPaths, trimmedPathname)\n\n if (path) {\n return normalizePagePath(path.route.originalPath)\n }\n\n return null\n}\n\n/**\n * Return a matchpath params from reach/router rules\n * if `match-paths.json` contains `{ \":bar/*foo\" }`, and the path is /baz/zaz/zoo\n * then it returns\n * { bar: baz, foo: zaz/zoo }\n *\n * @param {string} rawPathname A raw pathname\n * @return {object}\n */\nexport const grabMatchParams = rawPathname => {\n const trimmedPathname = cleanPath(rawPathname)\n\n const pickPaths = matchPaths.map(({ path, matchPath }) => {\n return {\n path: matchPath,\n originalPath: path,\n }\n })\n\n const path = pick(pickPaths, trimmedPathname)\n\n if (path) {\n return path.params\n }\n\n return {}\n}\n\n// Given a raw URL path, returns the cleaned version of it (trim off\n// `#` and query params), or if it matches an entry in\n// `match-paths.json`, its matched path is returned\n//\n// E.g. `/foo?bar=far` => `/foo`\n//\n// Or if `match-paths.json` contains `{ \"/foo*\": \"/page1\", ...}`, then\n// `/foo?bar=far` => `/page1`\nexport const findPath = rawPathname => {\n const trimmedPathname = trimPathname(absolutify(rawPathname))\n if (pathCache.has(trimmedPathname)) {\n return pathCache.get(trimmedPathname)\n }\n\n const redirect = maybeGetBrowserRedirect(rawPathname)\n if (redirect) {\n return findPath(redirect.toPath)\n }\n\n let foundPath = findMatchPath(trimmedPathname)\n\n if (!foundPath) {\n foundPath = cleanPath(rawPathname)\n }\n\n pathCache.set(trimmedPathname, foundPath)\n\n return foundPath\n}\n\n/**\n * Clean a url and converts /index.html => /\n * E.g. `/foo?bar=far` => `/foo`\n *\n * @param {string} rawPathname A raw pathname\n * @return {string}\n */\nexport const cleanPath = rawPathname => {\n const trimmedPathname = trimPathname(absolutify(rawPathname))\n\n let foundPath = trimmedPathname\n if (foundPath === `/index.html`) {\n foundPath = `/`\n }\n\n foundPath = normalizePagePath(foundPath)\n\n return foundPath\n}\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nconst StaticQueryContext = React.createContext({})\nlet StaticQueryServerContext = null\nif (React.createServerContext) {\n StaticQueryServerContext = React.createServerContext(`StaticQuery`, {})\n}\n\nfunction StaticQueryDataRenderer({ staticQueryData, data, query, render }) {\n const finalData = data\n ? data.data\n : staticQueryData[query] && staticQueryData[query].data\n\n return (\n \n {finalData && render(finalData)}\n {!finalData &&
Loading (StaticQuery)
}\n
\n )\n}\n\n// TODO(v5): Remove completely\nconst StaticQuery = props => {\n const { data, query, render, children } = props\n\n return (\n \n {staticQueryData => (\n \n )}\n \n )\n}\n\nStaticQuery.propTypes = {\n data: PropTypes.object,\n query: PropTypes.string.isRequired,\n render: PropTypes.func,\n children: PropTypes.func,\n}\n\nconst useStaticQuery = query => {\n if (\n typeof React.useContext !== `function` &&\n process.env.NODE_ENV === `development`\n ) {\n // TODO(v5): Remove since we require React >= 18\n throw new Error(\n `You're likely using a version of React that doesn't support Hooks\\n` +\n `Please update React and ReactDOM to 16.8.0 or later to use the useStaticQuery hook.`\n )\n }\n let context\n\n // Can we get a better check here?\n if (\n StaticQueryServerContext &&\n Object.keys(StaticQueryServerContext._currentValue).length\n ) {\n context = React.useContext(StaticQueryServerContext)\n } else {\n context = React.useContext(StaticQueryContext)\n }\n\n // query is a stringified number like `3303882` when wrapped with graphql, If a user forgets\n // to wrap the query in a grqphql, then casting it to a Number results in `NaN` allowing us to\n // catch the misuse of the API and give proper direction\n if (isNaN(Number(query))) {\n throw new Error(`useStaticQuery was called with a string but expects to be called using \\`graphql\\`. Try this:\n\nimport { useStaticQuery, graphql } from 'gatsby';\n\nuseStaticQuery(graphql\\`${query}\\`);\n`)\n }\n\n if (context[query]?.data) {\n return context[query].data\n } else {\n throw new Error(\n `The result of this StaticQuery could not be fetched.\\n\\n` +\n `This is likely a bug in Gatsby and if refreshing the page does not fix it, ` +\n `please open an issue in https://github.com/gatsbyjs/gatsby/issues`\n )\n }\n}\n\nexport {\n StaticQuery,\n StaticQueryContext,\n useStaticQuery,\n StaticQueryServerContext,\n}\n","import loader from \"./loader\"\n\nconst prefetchPathname = loader.enqueue\n\nfunction graphql() {\n throw new Error(\n `It appears like Gatsby is misconfigured. Gatsby related \\`graphql\\` calls ` +\n `are supposed to only be evaluated at compile time, and then compiled away. ` +\n `Unfortunately, something went wrong and the query was left in the compiled code.\\n\\n` +\n `Unless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.`\n )\n}\n\nexport { default as PageRenderer } from \"./public-page-renderer\"\nexport { useScrollRestoration } from \"gatsby-react-router-scroll\"\nexport {\n default as Link,\n withPrefix,\n withAssetPrefix,\n navigate,\n parsePath,\n} from \"gatsby-link\"\n\nexport { graphql, prefetchPathname }\nexport {\n StaticQuery,\n StaticQueryContext,\n useStaticQuery,\n StaticQueryServerContext,\n} from \"./static-query\"\n\nexport * from \"gatsby-script\"\n","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","const support = function (feature) {\n if (typeof document === `undefined`) {\n return false\n }\n const fakeLink = document.createElement(`link`)\n try {\n if (fakeLink.relList && typeof fakeLink.relList.supports === `function`) {\n return fakeLink.relList.supports(feature)\n }\n } catch (err) {\n return false\n }\n return false\n}\n\nconst linkPrefetchStrategy = function (url, options) {\n return new Promise((resolve, reject) => {\n if (typeof document === `undefined`) {\n reject()\n return\n }\n\n const link = document.createElement(`link`)\n link.setAttribute(`rel`, `prefetch`)\n link.setAttribute(`href`, url)\n\n Object.keys(options).forEach(key => {\n link.setAttribute(key, options[key])\n })\n\n link.onload = resolve\n link.onerror = reject\n\n const parentElement =\n document.getElementsByTagName(`head`)[0] ||\n document.getElementsByName(`script`)[0].parentNode\n parentElement.appendChild(link)\n })\n}\n\nconst xhrPrefetchStrategy = function (url) {\n return new Promise((resolve, reject) => {\n const req = new XMLHttpRequest()\n req.open(`GET`, url, true)\n\n req.onload = () => {\n if (req.status === 200) {\n resolve()\n } else {\n reject()\n }\n }\n\n req.send(null)\n })\n}\n\nconst supportedPrefetchStrategy = support(`prefetch`)\n ? linkPrefetchStrategy\n : xhrPrefetchStrategy\n\nconst preFetched = {}\n\nconst prefetch = function (url, options) {\n return new Promise(resolve => {\n if (preFetched[url]) {\n resolve()\n return\n }\n\n supportedPrefetchStrategy(url, options)\n .then(() => {\n resolve()\n preFetched[url] = true\n })\n .catch(() => {}) // 404s are logged to the console anyway\n })\n}\n\nexport default prefetch\n","import { createFromReadableStream } from \"react-server-dom-webpack\"\nimport prefetchHelper from \"./prefetch\"\nimport emitter from \"./emitter\"\nimport { setMatchPaths, findPath, findMatchPath } from \"./find-path\"\n\n/**\n * Available resource loading statuses\n */\nexport const PageResourceStatus = {\n /**\n * At least one of critical resources failed to load\n */\n Error: `error`,\n /**\n * Resources loaded successfully\n */\n Success: `success`,\n}\n\nconst stripSurroundingSlashes = s => {\n s = s[0] === `/` ? s.slice(1) : s\n s = s.endsWith(`/`) ? s.slice(0, -1) : s\n return s\n}\n\nconst createPageDataUrl = rawPath => {\n const [path, maybeSearch] = rawPath.split(`?`)\n const fixedPath = path === `/` ? `index` : stripSurroundingSlashes(path)\n return `${__PATH_PREFIX__}/page-data/${fixedPath}/page-data.json${\n maybeSearch ? `?${maybeSearch}` : ``\n }`\n}\n\nfunction doFetch(url, method = `GET`) {\n return new Promise(resolve => {\n const req = new XMLHttpRequest()\n req.open(method, url, true)\n req.onreadystatechange = () => {\n if (req.readyState == 4) {\n resolve(req)\n }\n }\n req.send(null)\n })\n}\n\nconst doesConnectionSupportPrefetch = () => {\n if (\n `connection` in navigator &&\n typeof navigator.connection !== `undefined`\n ) {\n if ((navigator.connection.effectiveType || ``).includes(`2g`)) {\n return false\n }\n if (navigator.connection.saveData) {\n return false\n }\n }\n return true\n}\n\n// Regex that matches common search crawlers\nconst BOT_REGEX = /bot|crawler|spider|crawling/i\n\nconst toPageResources = (pageData, component = null, head) => {\n const page = {\n componentChunkName: pageData.componentChunkName,\n path: pageData.path,\n webpackCompilationHash: pageData.webpackCompilationHash,\n matchPath: pageData.matchPath,\n staticQueryHashes: pageData.staticQueryHashes,\n getServerDataError: pageData.getServerDataError,\n }\n\n return {\n component,\n head,\n json: pageData.result,\n page,\n }\n}\n\nfunction waitForResponse(response) {\n return new Promise(resolve => {\n try {\n const result = response.readRoot()\n resolve(result)\n } catch (err) {\n if (\n Object.hasOwnProperty.call(err, `_response`) &&\n Object.hasOwnProperty.call(err, `_status`)\n ) {\n setTimeout(() => {\n waitForResponse(response).then(resolve)\n }, 200)\n } else {\n throw err\n }\n }\n })\n}\n\nexport class BaseLoader {\n constructor(loadComponent, matchPaths) {\n // Map of pagePath -> Page. Where Page is an object with: {\n // status: PageResourceStatus.Success || PageResourceStatus.Error,\n // payload: PageResources, // undefined if PageResourceStatus.Error\n // }\n // PageResources is {\n // component,\n // json: pageData.result,\n // page: {\n // componentChunkName,\n // path,\n // webpackCompilationHash,\n // staticQueryHashes\n // },\n // staticQueryResults\n // }\n this.pageDb = new Map()\n this.inFlightDb = new Map()\n this.staticQueryDb = {}\n this.pageDataDb = new Map()\n this.partialHydrationDb = new Map()\n this.isPrefetchQueueRunning = false\n this.prefetchQueued = []\n this.prefetchTriggered = new Set()\n this.prefetchCompleted = new Set()\n this.loadComponent = loadComponent\n setMatchPaths(matchPaths)\n }\n\n inFlightNetworkRequests = new Map()\n\n memoizedGet(url) {\n let inFlightPromise = this.inFlightNetworkRequests.get(url)\n\n if (!inFlightPromise) {\n inFlightPromise = doFetch(url, `GET`)\n this.inFlightNetworkRequests.set(url, inFlightPromise)\n }\n\n // Prefer duplication with then + catch over .finally to prevent problems in ie11 + firefox\n return inFlightPromise\n .then(response => {\n this.inFlightNetworkRequests.delete(url)\n return response\n })\n .catch(err => {\n this.inFlightNetworkRequests.delete(url)\n throw err\n })\n }\n\n setApiRunner(apiRunner) {\n this.apiRunner = apiRunner\n this.prefetchDisabled = apiRunner(`disableCorePrefetching`).some(a => a)\n }\n\n fetchPageDataJson(loadObj) {\n const { pagePath, retries = 0 } = loadObj\n const url = createPageDataUrl(pagePath)\n return this.memoizedGet(url).then(req => {\n const { status, responseText } = req\n\n // Handle 200\n if (status === 200) {\n try {\n const jsonPayload = JSON.parse(responseText)\n if (jsonPayload.path === undefined) {\n throw new Error(`not a valid pageData response`)\n }\n\n const maybeSearch = pagePath.split(`?`)[1]\n if (maybeSearch && !jsonPayload.path.includes(maybeSearch)) {\n jsonPayload.path += `?${maybeSearch}`\n }\n\n return Object.assign(loadObj, {\n status: PageResourceStatus.Success,\n payload: jsonPayload,\n })\n } catch (err) {\n // continue regardless of error\n }\n }\n\n // Handle 404\n if (status === 404 || status === 200) {\n // If the request was for a 404/500 page and it doesn't exist, we're done\n if (pagePath === `/404.html` || pagePath === `/500.html`) {\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n }\n\n // Need some code here to cache the 404 request. In case\n // multiple loadPageDataJsons result in 404s\n return this.fetchPageDataJson(\n Object.assign(loadObj, { pagePath: `/404.html`, notFound: true })\n )\n }\n\n // handle 500 response (Unrecoverable)\n if (status === 500) {\n return this.fetchPageDataJson(\n Object.assign(loadObj, {\n pagePath: `/500.html`,\n internalServerError: true,\n })\n )\n }\n\n // Handle everything else, including status === 0, and 503s. Should retry\n if (retries < 3) {\n return this.fetchPageDataJson(\n Object.assign(loadObj, { retries: retries + 1 })\n )\n }\n\n // Retried 3 times already, result is an error.\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n })\n }\n\n fetchPartialHydrationJson(loadObj) {\n const { pagePath, retries = 0 } = loadObj\n const url = createPageDataUrl(pagePath).replace(`.json`, `-rsc.json`)\n return this.memoizedGet(url).then(req => {\n const { status, responseText } = req\n\n // Handle 200\n if (status === 200) {\n try {\n return Object.assign(loadObj, {\n status: PageResourceStatus.Success,\n payload: responseText,\n })\n } catch (err) {\n // continue regardless of error\n }\n }\n\n // Handle 404\n if (status === 404 || status === 200) {\n // If the request was for a 404/500 page and it doesn't exist, we're done\n if (pagePath === `/404.html` || pagePath === `/500.html`) {\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n }\n\n // Need some code here to cache the 404 request. In case\n // multiple loadPageDataJsons result in 404s\n return this.fetchPartialHydrationJson(\n Object.assign(loadObj, { pagePath: `/404.html`, notFound: true })\n )\n }\n\n // handle 500 response (Unrecoverable)\n if (status === 500) {\n return this.fetchPartialHydrationJson(\n Object.assign(loadObj, {\n pagePath: `/500.html`,\n internalServerError: true,\n })\n )\n }\n\n // Handle everything else, including status === 0, and 503s. Should retry\n if (retries < 3) {\n return this.fetchPartialHydrationJson(\n Object.assign(loadObj, { retries: retries + 1 })\n )\n }\n\n // Retried 3 times already, result is an error.\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n })\n }\n\n loadPageDataJson(rawPath) {\n const pagePath = findPath(rawPath)\n if (this.pageDataDb.has(pagePath)) {\n const pageData = this.pageDataDb.get(pagePath)\n if (process.env.BUILD_STAGE !== `develop` || !pageData.stale) {\n return Promise.resolve(pageData)\n }\n }\n\n return this.fetchPageDataJson({ pagePath }).then(pageData => {\n this.pageDataDb.set(pagePath, pageData)\n\n return pageData\n })\n }\n\n loadPartialHydrationJson(rawPath) {\n const pagePath = findPath(rawPath)\n if (this.partialHydrationDb.has(pagePath)) {\n const pageData = this.partialHydrationDb.get(pagePath)\n if (process.env.BUILD_STAGE !== `develop` || !pageData.stale) {\n return Promise.resolve(pageData)\n }\n }\n\n return this.fetchPartialHydrationJson({ pagePath }).then(pageData => {\n this.partialHydrationDb.set(pagePath, pageData)\n\n return pageData\n })\n }\n\n findMatchPath(rawPath) {\n return findMatchPath(rawPath)\n }\n\n // TODO check all uses of this and whether they use undefined for page resources not exist\n loadPage(rawPath) {\n const pagePath = findPath(rawPath)\n if (this.pageDb.has(pagePath)) {\n const page = this.pageDb.get(pagePath)\n if (process.env.BUILD_STAGE !== `develop` || !page.payload.stale) {\n if (page.error) {\n return {\n error: page.error,\n status: page.status,\n }\n }\n\n return Promise.resolve(page.payload)\n }\n }\n\n if (this.inFlightDb.has(pagePath)) {\n return this.inFlightDb.get(pagePath)\n }\n\n let inFlightPromise\n if (global.hasPartialHydration) {\n inFlightPromise = Promise.all([\n this.loadAppData(),\n this.loadPageDataJson(pagePath),\n this.loadPartialHydrationJson(pagePath),\n ]).then(([appData, { payload: pageData }, result]) => {\n if (result.status === PageResourceStatus.Error) {\n return {\n status: PageResourceStatus.Error,\n }\n }\n\n const finalResult = {}\n\n // In develop we have separate chunks for template and Head components\n // to enable HMR (fast refresh requires single exports).\n // In production we have shared chunk with both exports. Double loadComponent here\n // will be deduped by webpack runtime resulting in single request and single module\n // being loaded for both `component` and `head`.\n const componentChunkPromise = this.loadComponent(\n pageData.componentChunkName,\n `head`\n ).then(head => {\n finalResult.createdAt = new Date()\n finalResult.status = PageResourceStatus.Success\n if (result.notFound === true) {\n finalResult.notFound = true\n }\n pageData = Object.assign(pageData, {\n webpackCompilationHash: appData\n ? appData.webpackCompilationHash\n : ``,\n })\n\n const pageResources = toPageResources(pageData, null, head)\n\n if (result.payload && typeof result.payload === `string`) {\n pageResources.partialHydration = result.payload\n\n const readableStream = new ReadableStream({\n start(controller) {\n const te = new TextEncoder()\n controller.enqueue(te.encode(result.payload))\n },\n pull(controller) {\n // close on next read when queue is empty\n controller.close()\n },\n cancel() {},\n })\n\n return waitForResponse(\n createFromReadableStream(readableStream)\n ).then(result => {\n pageResources.partialHydration = result\n\n return pageResources\n })\n }\n\n // undefined if final result is an error\n return pageResources\n })\n\n // Necessary for head component\n const staticQueryBatchPromise = Promise.all(\n (pageData.staticQueryHashes || []).map(staticQueryHash => {\n // Check for cache in case this static query result has already been loaded\n if (this.staticQueryDb[staticQueryHash]) {\n const jsonPayload = this.staticQueryDb[staticQueryHash]\n return { staticQueryHash, jsonPayload }\n }\n\n return this.memoizedGet(\n `${__PATH_PREFIX__}/page-data/sq/d/${staticQueryHash}.json`\n )\n .then(req => {\n const jsonPayload = JSON.parse(req.responseText)\n return { staticQueryHash, jsonPayload }\n })\n .catch(() => {\n throw new Error(\n `We couldn't load \"${__PATH_PREFIX__}/page-data/sq/d/${staticQueryHash}.json\"`\n )\n })\n })\n ).then(staticQueryResults => {\n const staticQueryResultsMap = {}\n\n staticQueryResults.forEach(({ staticQueryHash, jsonPayload }) => {\n staticQueryResultsMap[staticQueryHash] = jsonPayload\n this.staticQueryDb[staticQueryHash] = jsonPayload\n })\n\n return staticQueryResultsMap\n })\n\n return (\n Promise.all([componentChunkPromise, staticQueryBatchPromise])\n .then(([pageResources, staticQueryResults]) => {\n let payload\n if (pageResources) {\n payload = {\n ...pageResources,\n staticQueryResults: staticQueryResults,\n }\n finalResult.payload = payload\n emitter.emit(`onPostLoadPageResources`, {\n page: payload,\n pageResources: payload,\n })\n }\n\n this.pageDb.set(pagePath, finalResult)\n\n if (finalResult.error) {\n return {\n error: finalResult.error,\n status: finalResult.status,\n }\n }\n\n return payload\n })\n // when static-query fail to load we throw a better error\n .catch(err => {\n return {\n error: err,\n status: PageResourceStatus.Error,\n }\n })\n )\n })\n } else {\n inFlightPromise = Promise.all([\n this.loadAppData(),\n this.loadPageDataJson(pagePath),\n ]).then(allData => {\n const result = allData[1]\n if (result.status === PageResourceStatus.Error) {\n return {\n status: PageResourceStatus.Error,\n }\n }\n\n let pageData = result.payload\n const { componentChunkName, staticQueryHashes = [] } = pageData\n\n const finalResult = {}\n\n // In develop we have separate chunks for template and Head components\n // to enable HMR (fast refresh requires single exports).\n // In production we have shared chunk with both exports. Double loadComponent here\n // will be deduped by webpack runtime resulting in single request and single module\n // being loaded for both `component` and `head`.\n const componentChunkPromise = Promise.all([\n this.loadComponent(componentChunkName),\n this.loadComponent(componentChunkName, `head`),\n ]).then(([component, head]) => {\n finalResult.createdAt = new Date()\n let pageResources\n if (!component || component instanceof Error) {\n finalResult.status = PageResourceStatus.Error\n finalResult.error = component\n } else {\n finalResult.status = PageResourceStatus.Success\n if (result.notFound === true) {\n finalResult.notFound = true\n }\n pageData = Object.assign(pageData, {\n webpackCompilationHash: allData[0]\n ? allData[0].webpackCompilationHash\n : ``,\n })\n pageResources = toPageResources(pageData, component, head)\n }\n // undefined if final result is an error\n return pageResources\n })\n\n const staticQueryBatchPromise = Promise.all(\n staticQueryHashes.map(staticQueryHash => {\n // Check for cache in case this static query result has already been loaded\n if (this.staticQueryDb[staticQueryHash]) {\n const jsonPayload = this.staticQueryDb[staticQueryHash]\n return { staticQueryHash, jsonPayload }\n }\n\n return this.memoizedGet(\n `${__PATH_PREFIX__}/page-data/sq/d/${staticQueryHash}.json`\n )\n .then(req => {\n const jsonPayload = JSON.parse(req.responseText)\n return { staticQueryHash, jsonPayload }\n })\n .catch(() => {\n throw new Error(\n `We couldn't load \"${__PATH_PREFIX__}/page-data/sq/d/${staticQueryHash}.json\"`\n )\n })\n })\n ).then(staticQueryResults => {\n const staticQueryResultsMap = {}\n\n staticQueryResults.forEach(({ staticQueryHash, jsonPayload }) => {\n staticQueryResultsMap[staticQueryHash] = jsonPayload\n this.staticQueryDb[staticQueryHash] = jsonPayload\n })\n\n return staticQueryResultsMap\n })\n\n return (\n Promise.all([componentChunkPromise, staticQueryBatchPromise])\n .then(([pageResources, staticQueryResults]) => {\n let payload\n if (pageResources) {\n payload = { ...pageResources, staticQueryResults }\n finalResult.payload = payload\n emitter.emit(`onPostLoadPageResources`, {\n page: payload,\n pageResources: payload,\n })\n }\n\n this.pageDb.set(pagePath, finalResult)\n\n if (finalResult.error) {\n return {\n error: finalResult.error,\n status: finalResult.status,\n }\n }\n\n return payload\n })\n // when static-query fail to load we throw a better error\n .catch(err => {\n return {\n error: err,\n status: PageResourceStatus.Error,\n }\n })\n )\n })\n }\n\n inFlightPromise\n .then(() => {\n this.inFlightDb.delete(pagePath)\n })\n .catch(error => {\n this.inFlightDb.delete(pagePath)\n throw error\n })\n\n this.inFlightDb.set(pagePath, inFlightPromise)\n\n return inFlightPromise\n }\n\n // returns undefined if the page does not exists in cache\n loadPageSync(rawPath, options = {}) {\n const pagePath = findPath(rawPath)\n if (this.pageDb.has(pagePath)) {\n const pageData = this.pageDb.get(pagePath)\n\n if (pageData.payload) {\n return pageData.payload\n }\n\n if (options?.withErrorDetails) {\n return {\n error: pageData.error,\n status: pageData.status,\n }\n }\n }\n return undefined\n }\n\n shouldPrefetch(pagePath) {\n // Skip prefetching if we know user is on slow or constrained connection\n if (!doesConnectionSupportPrefetch()) {\n return false\n }\n\n // Don't prefetch if this is a crawler bot\n if (navigator.userAgent && BOT_REGEX.test(navigator.userAgent)) {\n return false\n }\n\n // Check if the page exists.\n if (this.pageDb.has(pagePath)) {\n return false\n }\n\n return true\n }\n\n prefetch(pagePath) {\n if (!this.shouldPrefetch(pagePath)) {\n return {\n then: resolve => resolve(false),\n abort: () => {},\n }\n }\n if (this.prefetchTriggered.has(pagePath)) {\n return {\n then: resolve => resolve(true),\n abort: () => {},\n }\n }\n\n const defer = {\n resolve: null,\n reject: null,\n promise: null,\n }\n defer.promise = new Promise((resolve, reject) => {\n defer.resolve = resolve\n defer.reject = reject\n })\n this.prefetchQueued.push([pagePath, defer])\n const abortC = new AbortController()\n abortC.signal.addEventListener(`abort`, () => {\n const index = this.prefetchQueued.findIndex(([p]) => p === pagePath)\n // remove from the queue\n if (index !== -1) {\n this.prefetchQueued.splice(index, 1)\n }\n })\n\n if (!this.isPrefetchQueueRunning) {\n this.isPrefetchQueueRunning = true\n setTimeout(() => {\n this._processNextPrefetchBatch()\n }, 3000)\n }\n\n return {\n then: (resolve, reject) => defer.promise.then(resolve, reject),\n abort: abortC.abort.bind(abortC),\n }\n }\n\n _processNextPrefetchBatch() {\n const idleCallback = window.requestIdleCallback || (cb => setTimeout(cb, 0))\n\n idleCallback(() => {\n const toPrefetch = this.prefetchQueued.splice(0, 4)\n const prefetches = Promise.all(\n toPrefetch.map(([pagePath, dPromise]) => {\n // Tell plugins with custom prefetching logic that they should start\n // prefetching this path.\n if (!this.prefetchTriggered.has(pagePath)) {\n this.apiRunner(`onPrefetchPathname`, { pathname: pagePath })\n this.prefetchTriggered.add(pagePath)\n }\n\n // If a plugin has disabled core prefetching, stop now.\n if (this.prefetchDisabled) {\n return dPromise.resolve(false)\n }\n\n return this.doPrefetch(findPath(pagePath)).then(() => {\n if (!this.prefetchCompleted.has(pagePath)) {\n this.apiRunner(`onPostPrefetchPathname`, { pathname: pagePath })\n this.prefetchCompleted.add(pagePath)\n }\n\n dPromise.resolve(true)\n })\n })\n )\n\n if (this.prefetchQueued.length) {\n prefetches.then(() => {\n setTimeout(() => {\n this._processNextPrefetchBatch()\n }, 3000)\n })\n } else {\n this.isPrefetchQueueRunning = false\n }\n })\n }\n\n doPrefetch(pagePath) {\n const pageDataUrl = createPageDataUrl(pagePath)\n\n if (global.hasPartialHydration) {\n return Promise.all([\n prefetchHelper(pageDataUrl, {\n crossOrigin: `anonymous`,\n as: `fetch`,\n }).then(() =>\n // This was just prefetched, so will return a response from\n // the cache instead of making another request to the server\n this.loadPageDataJson(pagePath)\n ),\n prefetchHelper(pageDataUrl.replace(`.json`, `-rsc.json`), {\n crossOrigin: `anonymous`,\n as: `fetch`,\n }).then(() =>\n // This was just prefetched, so will return a response from\n // the cache instead of making another request to the server\n this.loadPartialHydrationJson(pagePath)\n ),\n ])\n } else {\n return prefetchHelper(pageDataUrl, {\n crossOrigin: `anonymous`,\n as: `fetch`,\n }).then(() =>\n // This was just prefetched, so will return a response from\n // the cache instead of making another request to the server\n this.loadPageDataJson(pagePath)\n )\n }\n }\n\n hovering(rawPath) {\n this.loadPage(rawPath)\n }\n\n getResourceURLsForPathname(rawPath) {\n const pagePath = findPath(rawPath)\n const page = this.pageDataDb.get(pagePath)\n if (page) {\n const pageResources = toPageResources(page.payload)\n\n return [\n ...createComponentUrls(pageResources.page.componentChunkName),\n createPageDataUrl(pagePath),\n ]\n } else {\n return null\n }\n }\n\n isPageNotFound(rawPath) {\n const pagePath = findPath(rawPath)\n const page = this.pageDb.get(pagePath)\n return !page || page.notFound\n }\n\n loadAppData(retries = 0) {\n return this.memoizedGet(`${__PATH_PREFIX__}/page-data/app-data.json`).then(\n req => {\n const { status, responseText } = req\n\n let appData\n\n if (status !== 200 && retries < 3) {\n // Retry 3 times incase of non-200 responses\n return this.loadAppData(retries + 1)\n }\n\n // Handle 200\n if (status === 200) {\n try {\n const jsonPayload = JSON.parse(responseText)\n if (jsonPayload.webpackCompilationHash === undefined) {\n throw new Error(`not a valid app-data response`)\n }\n\n appData = jsonPayload\n } catch (err) {\n // continue regardless of error\n }\n }\n\n return appData\n }\n )\n }\n}\n\nconst createComponentUrls = componentChunkName =>\n (window.___chunkMapping[componentChunkName] || []).map(\n chunk => __PATH_PREFIX__ + chunk\n )\n\nexport class ProdLoader extends BaseLoader {\n constructor(asyncRequires, matchPaths, pageData) {\n const loadComponent = (chunkName, exportType = `components`) => {\n if (!global.hasPartialHydration) {\n exportType = `components`\n }\n\n if (!asyncRequires[exportType][chunkName]) {\n throw new Error(\n `We couldn't find the correct component chunk with the name \"${chunkName}\"`\n )\n }\n\n return (\n asyncRequires[exportType][chunkName]()\n // loader will handle the case when component is error\n .catch(err => err)\n )\n }\n\n super(loadComponent, matchPaths)\n\n if (pageData) {\n this.pageDataDb.set(findPath(pageData.path), {\n pagePath: pageData.path,\n payload: pageData,\n status: `success`,\n })\n }\n }\n\n doPrefetch(pagePath) {\n return super.doPrefetch(pagePath).then(result => {\n if (result.status !== PageResourceStatus.Success) {\n return Promise.resolve()\n }\n const pageData = result.payload\n const chunkName = pageData.componentChunkName\n const componentUrls = createComponentUrls(chunkName)\n return Promise.all(componentUrls.map(prefetchHelper)).then(() => pageData)\n })\n }\n\n loadPageDataJson(rawPath) {\n return super.loadPageDataJson(rawPath).then(data => {\n if (data.notFound) {\n // check if html file exist using HEAD request:\n // if it does we should navigate to it instead of showing 404\n return doFetch(rawPath, `HEAD`).then(req => {\n if (req.status === 200) {\n // page (.html file) actually exist (or we asked for 404 )\n // returning page resources status as errored to trigger\n // regular browser navigation to given page\n return {\n status: PageResourceStatus.Error,\n }\n }\n\n // if HEAD request wasn't 200, return notFound result\n // and show 404 page\n return data\n })\n }\n return data\n })\n }\n\n loadPartialHydrationJson(rawPath) {\n return super.loadPartialHydrationJson(rawPath).then(data => {\n if (data.notFound) {\n // check if html file exist using HEAD request:\n // if it does we should navigate to it instead of showing 404\n return doFetch(rawPath, `HEAD`).then(req => {\n if (req.status === 200) {\n // page (.html file) actually exist (or we asked for 404 )\n // returning page resources status as errored to trigger\n // regular browser navigation to given page\n return {\n status: PageResourceStatus.Error,\n }\n }\n\n // if HEAD request wasn't 200, return notFound result\n // and show 404 page\n return data\n })\n }\n return data\n })\n }\n}\n\nlet instance\n\nexport const setLoader = _loader => {\n instance = _loader\n}\n\nexport const publicLoader = {\n enqueue: rawPath => instance.prefetch(rawPath),\n\n // Real methods\n getResourceURLsForPathname: rawPath =>\n instance.getResourceURLsForPathname(rawPath),\n loadPage: rawPath => instance.loadPage(rawPath),\n // TODO add deprecation to v4 so people use withErrorDetails and then we can remove in v5 and change default behaviour\n loadPageSync: (rawPath, options = {}) =>\n instance.loadPageSync(rawPath, options),\n prefetch: rawPath => instance.prefetch(rawPath),\n isPageNotFound: rawPath => instance.isPageNotFound(rawPath),\n hovering: rawPath => instance.hovering(rawPath),\n loadAppData: () => instance.loadAppData(),\n}\n\nexport default publicLoader\n\nexport function getStaticQueryResults() {\n if (instance) {\n return instance.staticQueryDb\n } else {\n return {}\n }\n}\n","import { useEffect } from \"react\"\n\n/*\n * Calls callback in an effect and renders children\n */\nexport function FireCallbackInEffect({ children, callback }) {\n useEffect(() => {\n callback()\n })\n\n return children\n}\n","export const VALID_NODE_NAMES = [\n `link`,\n `meta`,\n `style`,\n `title`,\n `base`,\n `noscript`,\n `script`,\n]\n","import { VALID_NODE_NAMES } from \"./constants\"\n\n/**\n * Filter the props coming from a page down to just the ones that are relevant for head.\n * This e.g. filters out properties that are undefined during SSR.\n */\nexport function filterHeadProps(input) {\n return {\n location: {\n pathname: input.location.pathname,\n },\n params: input.params,\n data: input.data || {},\n pageContext: input.pageContext,\n }\n}\n\n/**\n * Throw error if Head export is not a valid\n */\nexport function headExportValidator(head) {\n if (typeof head !== `function`)\n throw new Error(\n `Expected \"Head\" export to be a function got \"${typeof head}\".`\n )\n}\n\n/**\n * Warn once for same messsage\n */\nlet warnOnce = _ => {}\nif (process.env.NODE_ENV !== `production`) {\n const warnings = new Set()\n warnOnce = msg => {\n if (!warnings.has(msg)) {\n console.warn(msg)\n }\n warnings.add(msg)\n }\n}\n\n/**\n * Warn for invalid tags in head.\n * @param {string} tagName\n */\nexport function warnForInvalidTags(tagName) {\n if (process.env.NODE_ENV !== `production`) {\n const warning = `<${tagName}> is not a valid head element. Please use one of the following: ${VALID_NODE_NAMES.join(\n `, `\n )}`\n\n warnOnce(warning)\n }\n}\n\n/**\n * When a `nonce` is present on an element, browsers such as Chrome and Firefox strip it out of the\n * actual HTML attributes for security reasons *when the element is added to the document*. Thus,\n * given two equivalent elements that have nonces, `Element,isEqualNode()` will return false if one\n * of those elements gets added to the document. Although the `element.nonce` property will be the\n * same for both elements, the one that was added to the document will return an empty string for\n * its nonce HTML attribute value.\n *\n * This custom `isEqualNode()` function therefore removes the nonce value from the `newTag` before\n * comparing it to `oldTag`, restoring it afterwards.\n *\n * For more information, see:\n * https://bugs.chromium.org/p/chromium/issues/detail?id=1211471#c12\n */\nexport function isEqualNode(oldTag, newTag) {\n if (oldTag instanceof HTMLElement && newTag instanceof HTMLElement) {\n const nonce = newTag.getAttribute(`nonce`)\n // Only strip the nonce if `oldTag` has had it stripped. An element's nonce attribute will not\n // be stripped if there is no content security policy response header that includes a nonce.\n if (nonce && !oldTag.getAttribute(`nonce`)) {\n const cloneTag = newTag.cloneNode(true)\n cloneTag.setAttribute(`nonce`, ``)\n cloneTag.nonce = nonce\n return nonce === oldTag.nonce && oldTag.isEqualNode(cloneTag)\n }\n }\n\n return oldTag.isEqualNode(newTag)\n}\n\nexport function diffNodes({ oldNodes, newNodes, onStale, onNew }) {\n for (const existingHeadElement of oldNodes) {\n const indexInNewNodes = newNodes.findIndex(e =>\n isEqualNode(e, existingHeadElement)\n )\n\n if (indexInNewNodes === -1) {\n onStale(existingHeadElement)\n } else {\n // this node is re-created as-is, so we keep old node, and remove it from list of new nodes (as we handled it already here)\n newNodes.splice(indexInNewNodes, 1)\n }\n }\n\n // remaing new nodes didn't have matching old node, so need to be added\n for (const newNode of newNodes) {\n onNew(newNode)\n }\n}\n","import React from \"react\"\nimport { useEffect } from \"react\"\nimport { StaticQueryContext } from \"gatsby\"\nimport { LocationProvider } from \"@gatsbyjs/reach-router\"\nimport { reactDOMUtils } from \"../react-dom-utils\"\nimport { FireCallbackInEffect } from \"./components/fire-callback-in-effect\"\nimport { VALID_NODE_NAMES } from \"./constants\"\nimport {\n headExportValidator,\n filterHeadProps,\n warnForInvalidTags,\n diffNodes,\n} from \"./utils\"\n\nconst hiddenRoot = document.createElement(`div`)\n\nconst removePrevHeadElements = () => {\n const prevHeadNodes = document.querySelectorAll(`[data-gatsby-head]`)\n\n for (const node of prevHeadNodes) {\n node.parentNode.removeChild(node)\n }\n}\n\nconst onHeadRendered = () => {\n const validHeadNodes = []\n\n const seenIds = new Map()\n for (const node of hiddenRoot.childNodes) {\n const nodeName = node.nodeName.toLowerCase()\n const id = node.attributes?.id?.value\n\n if (!VALID_NODE_NAMES.includes(nodeName)) {\n warnForInvalidTags(nodeName)\n } else {\n let clonedNode = node.cloneNode(true)\n clonedNode.setAttribute(`data-gatsby-head`, true)\n\n // Create an element for scripts to make script work\n if (clonedNode.nodeName.toLowerCase() === `script`) {\n const script = document.createElement(`script`)\n for (const attr of clonedNode.attributes) {\n script.setAttribute(attr.name, attr.value)\n }\n script.innerHTML = clonedNode.innerHTML\n clonedNode = script\n }\n\n if (id) {\n if (!seenIds.has(id)) {\n validHeadNodes.push(clonedNode)\n seenIds.set(id, validHeadNodes.length - 1)\n } else {\n const indexOfPreviouslyInsertedNode = seenIds.get(id)\n validHeadNodes[indexOfPreviouslyInsertedNode].parentNode?.removeChild(\n validHeadNodes[indexOfPreviouslyInsertedNode]\n )\n validHeadNodes[indexOfPreviouslyInsertedNode] = clonedNode\n }\n } else {\n validHeadNodes.push(clonedNode)\n }\n }\n }\n\n const existingHeadElements = document.querySelectorAll(`[data-gatsby-head]`)\n\n if (existingHeadElements.length === 0) {\n document.head.append(...validHeadNodes)\n return\n }\n\n const newHeadNodes = []\n diffNodes({\n oldNodes: existingHeadElements,\n newNodes: validHeadNodes,\n onStale: node => node.parentNode.removeChild(node),\n onNew: node => newHeadNodes.push(node),\n })\n\n document.head.append(...newHeadNodes)\n}\n\nif (process.env.BUILD_STAGE === `develop`) {\n // We set up observer to be able to regenerate after react-refresh\n // updates our hidden element.\n const observer = new MutationObserver(onHeadRendered)\n observer.observe(hiddenRoot, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true,\n })\n}\n\nexport function headHandlerForBrowser({\n pageComponent,\n staticQueryResults,\n pageComponentProps,\n}) {\n useEffect(() => {\n if (pageComponent?.Head) {\n headExportValidator(pageComponent.Head)\n\n const { render } = reactDOMUtils()\n\n const Head = pageComponent.Head\n\n render(\n // just a hack to call the callback after react has done first render\n // Note: In dev, we call onHeadRendered twice( in FireCallbackInEffect and after mutualution observer dectects initail render into hiddenRoot) this is for hot reloading\n // In Prod we only call onHeadRendered in FireCallbackInEffect to render to head\n \n \n \n \n \n \n ,\n hiddenRoot\n )\n }\n\n return () => {\n removePrevHeadElements()\n }\n })\n}\n","import React, { Suspense, createElement } from \"react\"\nimport PropTypes from \"prop-types\"\nimport { apiRunner } from \"./api-runner-browser\"\nimport { grabMatchParams } from \"./find-path\"\nimport { headHandlerForBrowser } from \"./head/head-export-handler-for-browser\"\n\n// Renders page\nfunction PageRenderer(props) {\n const pageComponentProps = {\n ...props,\n params: {\n ...grabMatchParams(props.location.pathname),\n ...props.pageResources.json.pageContext.__params,\n },\n }\n\n const preferDefault = m => (m && m.default) || m\n\n let pageElement\n if (props.pageResources.partialHydration) {\n pageElement = props.pageResources.partialHydration\n } else {\n pageElement = createElement(preferDefault(props.pageResources.component), {\n ...pageComponentProps,\n key: props.path || props.pageResources.page.path,\n })\n }\n\n const pageComponent = props.pageResources.head\n\n headHandlerForBrowser({\n pageComponent,\n staticQueryResults: props.pageResources.staticQueryResults,\n pageComponentProps,\n })\n\n const wrappedPage = apiRunner(\n `wrapPageElement`,\n {\n element: pageElement,\n props: pageComponentProps,\n },\n pageElement,\n ({ result }) => {\n return { element: result, props: pageComponentProps }\n }\n ).pop()\n\n return wrappedPage\n}\n\nPageRenderer.propTypes = {\n location: PropTypes.object.isRequired,\n pageResources: PropTypes.object.isRequired,\n data: PropTypes.object,\n pageContext: PropTypes.object.isRequired,\n}\n\nexport default PageRenderer\n","// This is extracted to separate module because it's shared\n// between browser and SSR code\nexport const RouteAnnouncerProps = {\n id: `gatsby-announcer`,\n style: {\n position: `absolute`,\n top: 0,\n width: 1,\n height: 1,\n padding: 0,\n overflow: `hidden`,\n clip: `rect(0, 0, 0, 0)`,\n whiteSpace: `nowrap`,\n border: 0,\n },\n \"aria-live\": `assertive`,\n \"aria-atomic\": `true`,\n}\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport loader, { PageResourceStatus } from \"./loader\"\nimport { maybeGetBrowserRedirect } from \"./redirect-utils.js\"\nimport { apiRunner } from \"./api-runner-browser\"\nimport emitter from \"./emitter\"\nimport { RouteAnnouncerProps } from \"./route-announcer-props\"\nimport { navigate as reachNavigate } from \"@gatsbyjs/reach-router\"\nimport { globalHistory } from \"@gatsbyjs/reach-router/lib/history\"\nimport { parsePath } from \"gatsby-link\"\n\nfunction maybeRedirect(pathname) {\n const redirect = maybeGetBrowserRedirect(pathname)\n const { hash, search } = window.location\n\n if (redirect != null) {\n window.___replace(redirect.toPath + search + hash)\n return true\n } else {\n return false\n }\n}\n\n// Catch unhandled chunk loading errors and force a restart of the app.\nlet nextRoute = ``\n\nwindow.addEventListener(`unhandledrejection`, event => {\n if (/loading chunk \\d* failed./i.test(event.reason)) {\n if (nextRoute) {\n window.location.pathname = nextRoute\n }\n }\n})\n\nconst onPreRouteUpdate = (location, prevLocation) => {\n if (!maybeRedirect(location.pathname)) {\n nextRoute = location.pathname\n apiRunner(`onPreRouteUpdate`, { location, prevLocation })\n }\n}\n\nconst onRouteUpdate = (location, prevLocation) => {\n if (!maybeRedirect(location.pathname)) {\n apiRunner(`onRouteUpdate`, { location, prevLocation })\n if (\n process.env.GATSBY_EXPERIMENTAL_QUERY_ON_DEMAND &&\n process.env.GATSBY_QUERY_ON_DEMAND_LOADING_INDICATOR === `true`\n ) {\n emitter.emit(`onRouteUpdate`, { location, prevLocation })\n }\n }\n}\n\nconst navigate = (to, options = {}) => {\n // Support forward/backward navigation with numbers\n // navigate(-2) (jumps back 2 history steps)\n // navigate(2) (jumps forward 2 history steps)\n if (typeof to === `number`) {\n globalHistory.navigate(to)\n return\n }\n\n const { pathname, search, hash } = parsePath(to)\n const redirect = maybeGetBrowserRedirect(pathname)\n\n // If we're redirecting, just replace the passed in pathname\n // to the one we want to redirect to.\n if (redirect) {\n to = redirect.toPath + search + hash\n }\n\n // If we had a service worker update, no matter the path, reload window and\n // reset the pathname whitelist\n if (window.___swUpdated) {\n window.location = pathname + search + hash\n return\n }\n\n // Start a timer to wait for a second before transitioning and showing a\n // loader in case resources aren't around yet.\n const timeoutId = setTimeout(() => {\n emitter.emit(`onDelayedLoadPageResources`, { pathname })\n apiRunner(`onRouteUpdateDelayed`, {\n location: window.location,\n })\n }, 1000)\n\n loader.loadPage(pathname + search).then(pageResources => {\n // If no page resources, then refresh the page\n // Do this, rather than simply `window.location.reload()`, so that\n // pressing the back/forward buttons work - otherwise when pressing\n // back, the browser will just change the URL and expect JS to handle\n // the change, which won't always work since it might not be a Gatsby\n // page.\n if (!pageResources || pageResources.status === PageResourceStatus.Error) {\n window.history.replaceState({}, ``, location.href)\n window.location = pathname\n clearTimeout(timeoutId)\n return\n }\n\n // If the loaded page has a different compilation hash to the\n // window, then a rebuild has occurred on the server. Reload.\n if (process.env.NODE_ENV === `production` && pageResources) {\n if (\n pageResources.page.webpackCompilationHash !==\n window.___webpackCompilationHash\n ) {\n // Purge plugin-offline cache\n if (\n `serviceWorker` in navigator &&\n navigator.serviceWorker.controller !== null &&\n navigator.serviceWorker.controller.state === `activated`\n ) {\n navigator.serviceWorker.controller.postMessage({\n gatsbyApi: `clearPathResources`,\n })\n }\n\n window.location = pathname + search + hash\n }\n }\n reachNavigate(to, options)\n clearTimeout(timeoutId)\n })\n}\n\nfunction shouldUpdateScroll(prevRouterProps, { location }) {\n const { pathname, hash } = location\n const results = apiRunner(`shouldUpdateScroll`, {\n prevRouterProps,\n // `pathname` for backwards compatibility\n pathname,\n routerProps: { location },\n getSavedScrollPosition: args => [\n 0,\n // FIXME this is actually a big code smell, we should fix this\n // eslint-disable-next-line @babel/no-invalid-this\n this._stateStorage.read(args, args.key),\n ],\n })\n if (results.length > 0) {\n // Use the latest registered shouldUpdateScroll result, this allows users to override plugin's configuration\n // @see https://github.com/gatsbyjs/gatsby/issues/12038\n return results[results.length - 1]\n }\n\n if (prevRouterProps) {\n const {\n location: { pathname: oldPathname },\n } = prevRouterProps\n if (oldPathname === pathname) {\n // Scroll to element if it exists, if it doesn't, or no hash is provided,\n // scroll to top.\n return hash ? decodeURI(hash.slice(1)) : [0, 0]\n }\n }\n return true\n}\n\nfunction init() {\n // The \"scroll-behavior\" package expects the \"action\" to be on the location\n // object so let's copy it over.\n globalHistory.listen(args => {\n args.location.action = args.action\n })\n\n window.___push = to => navigate(to, { replace: false })\n window.___replace = to => navigate(to, { replace: true })\n window.___navigate = (to, options) => navigate(to, options)\n}\n\nclass RouteAnnouncer extends React.Component {\n constructor(props) {\n super(props)\n this.announcementRef = React.createRef()\n }\n\n componentDidUpdate(prevProps, nextProps) {\n requestAnimationFrame(() => {\n let pageName = `new page at ${this.props.location.pathname}`\n if (document.title) {\n pageName = document.title\n }\n const pageHeadings = document.querySelectorAll(`#gatsby-focus-wrapper h1`)\n if (pageHeadings && pageHeadings.length) {\n pageName = pageHeadings[0].textContent\n }\n const newAnnouncement = `Navigated to ${pageName}`\n if (this.announcementRef.current) {\n const oldAnnouncement = this.announcementRef.current.innerText\n if (oldAnnouncement !== newAnnouncement) {\n this.announcementRef.current.innerText = newAnnouncement\n }\n }\n })\n }\n\n render() {\n return
\n }\n}\n\nconst compareLocationProps = (prevLocation, nextLocation) => {\n if (prevLocation.href !== nextLocation.href) {\n return true\n }\n\n if (prevLocation?.state?.key !== nextLocation?.state?.key) {\n return true\n }\n\n return false\n}\n\n// Fire on(Pre)RouteUpdate APIs\nclass RouteUpdates extends React.Component {\n constructor(props) {\n super(props)\n onPreRouteUpdate(props.location, null)\n }\n\n componentDidMount() {\n onRouteUpdate(this.props.location, null)\n }\n\n shouldComponentUpdate(prevProps) {\n if (compareLocationProps(prevProps.location, this.props.location)) {\n onPreRouteUpdate(this.props.location, prevProps.location)\n return true\n }\n return false\n }\n\n componentDidUpdate(prevProps) {\n if (compareLocationProps(prevProps.location, this.props.location)) {\n onRouteUpdate(this.props.location, prevProps.location)\n }\n }\n\n render() {\n return (\n \n {this.props.children}\n \n \n )\n }\n}\n\nRouteUpdates.propTypes = {\n location: PropTypes.object.isRequired,\n}\n\nexport { init, shouldUpdateScroll, RouteUpdates, maybeGetBrowserRedirect }\n","// Pulled from react-compat\n// https://github.com/developit/preact-compat/blob/7c5de00e7c85e2ffd011bf3af02899b63f699d3a/src/index.js#L349\nfunction shallowDiffers(a, b) {\n for (var i in a) {\n if (!(i in b)) return true;\n }for (var _i in b) {\n if (a[_i] !== b[_i]) return true;\n }return false;\n}\n\nexport default (function (instance, nextProps, nextState) {\n return shallowDiffers(instance.props, nextProps) || shallowDiffers(instance.state, nextState);\n});","import React from \"react\"\nimport loader, { PageResourceStatus } from \"./loader\"\nimport shallowCompare from \"shallow-compare\"\n\nclass EnsureResources extends React.Component {\n constructor(props) {\n super()\n const { location, pageResources } = props\n this.state = {\n location: { ...location },\n pageResources:\n pageResources ||\n loader.loadPageSync(location.pathname + location.search, {\n withErrorDetails: true,\n }),\n }\n }\n\n static getDerivedStateFromProps({ location }, prevState) {\n if (prevState.location.href !== location.href) {\n const pageResources = loader.loadPageSync(\n location.pathname + location.search,\n {\n withErrorDetails: true,\n }\n )\n\n return {\n pageResources,\n location: { ...location },\n }\n }\n\n return {\n location: { ...location },\n }\n }\n\n loadResources(rawPath) {\n loader.loadPage(rawPath).then(pageResources => {\n if (pageResources && pageResources.status !== PageResourceStatus.Error) {\n this.setState({\n location: { ...window.location },\n pageResources,\n })\n } else {\n window.history.replaceState({}, ``, location.href)\n window.location = rawPath\n }\n })\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n // Always return false if we're missing resources.\n if (!nextState.pageResources) {\n this.loadResources(\n nextProps.location.pathname + nextProps.location.search\n )\n return false\n }\n\n if (\n process.env.BUILD_STAGE === `develop` &&\n nextState.pageResources.stale\n ) {\n this.loadResources(\n nextProps.location.pathname + nextProps.location.search\n )\n return false\n }\n\n // Check if the component or json have changed.\n if (this.state.pageResources !== nextState.pageResources) {\n return true\n }\n if (\n this.state.pageResources.component !== nextState.pageResources.component\n ) {\n return true\n }\n\n if (this.state.pageResources.json !== nextState.pageResources.json) {\n return true\n }\n // Check if location has changed on a page using internal routing\n // via matchPath configuration.\n if (\n this.state.location.key !== nextState.location.key &&\n nextState.pageResources.page &&\n (nextState.pageResources.page.matchPath ||\n nextState.pageResources.page.path)\n ) {\n return true\n }\n return shallowCompare(this, nextProps, nextState)\n }\n\n render() {\n if (\n process.env.NODE_ENV !== `production` &&\n (!this.state.pageResources ||\n this.state.pageResources.status === PageResourceStatus.Error)\n ) {\n const message = `EnsureResources was not able to find resources for path: \"${this.props.location.pathname}\"\nThis typically means that an issue occurred building components for that path.\nRun \\`gatsby clean\\` to remove any cached elements.`\n if (this.state.pageResources?.error) {\n console.error(message)\n throw this.state.pageResources.error\n }\n\n throw new Error(message)\n }\n\n return this.props.children(this.state)\n }\n}\n\nexport default EnsureResources\n","import { apiRunner, apiRunnerAsync } from \"./api-runner-browser\"\nimport React from \"react\"\nimport { Router, navigate, Location, BaseContext } from \"@gatsbyjs/reach-router\"\nimport { ScrollContext } from \"gatsby-react-router-scroll\"\nimport { StaticQueryContext } from \"gatsby\"\nimport {\n shouldUpdateScroll,\n init as navigationInit,\n RouteUpdates,\n} from \"./navigation\"\nimport emitter from \"./emitter\"\nimport PageRenderer from \"./page-renderer\"\nimport asyncRequires from \"$virtual/async-requires\"\nimport {\n setLoader,\n ProdLoader,\n publicLoader,\n PageResourceStatus,\n getStaticQueryResults,\n} from \"./loader\"\nimport EnsureResources from \"./ensure-resources\"\nimport stripPrefix from \"./strip-prefix\"\n\n// Generated during bootstrap\nimport matchPaths from \"$virtual/match-paths.json\"\nimport { reactDOMUtils } from \"./react-dom-utils\"\n\nconst loader = new ProdLoader(asyncRequires, matchPaths, window.pageData)\nsetLoader(loader)\nloader.setApiRunner(apiRunner)\n\nconst { render, hydrate } = reactDOMUtils()\n\nwindow.asyncRequires = asyncRequires\nwindow.___emitter = emitter\nwindow.___loader = publicLoader\n\nnavigationInit()\n\nconst reloadStorageKey = `gatsby-reload-compilation-hash-match`\n\napiRunnerAsync(`onClientEntry`).then(() => {\n // Let plugins register a service worker. The plugin just needs\n // to return true.\n if (apiRunner(`registerServiceWorker`).filter(Boolean).length > 0) {\n require(`./register-service-worker`)\n }\n\n // In gatsby v2 if Router is used in page using matchPaths\n // paths need to contain full path.\n // For example:\n // - page have `/app/*` matchPath\n // - inside template user needs to use `/app/xyz` as path\n // Resetting `basepath`/`baseuri` keeps current behaviour\n // to not introduce breaking change.\n // Remove this in v3\n const RouteHandler = props => (\n \n \n \n )\n\n const DataContext = React.createContext({})\n\n class GatsbyRoot extends React.Component {\n render() {\n const { children } = this.props\n return (\n \n {({ location }) => (\n \n {({ pageResources, location }) => {\n if (pageResources.partialHydration) {\n return (\n \n {children}\n \n )\n } else {\n const staticQueryResults = getStaticQueryResults()\n return (\n \n \n {children}\n \n \n )\n }\n }}\n \n )}\n \n )\n }\n }\n\n class LocationHandler extends React.Component {\n render() {\n return (\n \n {({ pageResources, location }) => (\n \n \n \n \n
\n \n \n )}\n \n )\n }\n }\n\n const { pagePath, location: browserLoc } = window\n\n // Explicitly call navigate if the canonical path (window.pagePath)\n // is different to the browser path (window.location.pathname). SSR\n // page paths might include search params, while SSG and DSG won't.\n // If page path include search params we also compare query params.\n // But only if NONE of the following conditions hold:\n //\n // - The url matches a client side route (page.matchPath)\n // - it's a 404 page\n // - it's the offline plugin shell (/offline-plugin-app-shell-fallback/)\n if (\n pagePath &&\n __BASE_PATH__ + pagePath !==\n browserLoc.pathname + (pagePath.includes(`?`) ? browserLoc.search : ``) &&\n !(\n loader.findMatchPath(stripPrefix(browserLoc.pathname, __BASE_PATH__)) ||\n pagePath.match(/^\\/(404|500)(\\/?|.html)$/) ||\n pagePath.match(/^\\/offline-plugin-app-shell-fallback\\/?$/)\n )\n ) {\n navigate(\n __BASE_PATH__ +\n pagePath +\n (!pagePath.includes(`?`) ? browserLoc.search : ``) +\n browserLoc.hash,\n {\n replace: true,\n }\n )\n }\n\n // It's possible that sessionStorage can throw an exception if access is not granted, see https://github.com/gatsbyjs/gatsby/issues/34512\n const getSessionStorage = () => {\n try {\n return sessionStorage\n } catch {\n return null\n }\n }\n\n publicLoader.loadPage(browserLoc.pathname + browserLoc.search).then(page => {\n const sessionStorage = getSessionStorage()\n\n if (\n page?.page?.webpackCompilationHash &&\n page.page.webpackCompilationHash !== window.___webpackCompilationHash\n ) {\n // Purge plugin-offline cache\n if (\n `serviceWorker` in navigator &&\n navigator.serviceWorker.controller !== null &&\n navigator.serviceWorker.controller.state === `activated`\n ) {\n navigator.serviceWorker.controller.postMessage({\n gatsbyApi: `clearPathResources`,\n })\n }\n\n // We have not matching html + js (inlined `window.___webpackCompilationHash`)\n // with our data (coming from `app-data.json` file). This can cause issues such as\n // errors trying to load static queries (as list of static queries is inside `page-data`\n // which might not match to currently loaded `.js` scripts).\n // We are making attempt to reload if hashes don't match, but we also have to handle case\n // when reload doesn't fix it (possibly broken deploy) so we don't end up in infinite reload loop\n if (sessionStorage) {\n const isReloaded = sessionStorage.getItem(reloadStorageKey) === `1`\n\n if (!isReloaded) {\n sessionStorage.setItem(reloadStorageKey, `1`)\n window.location.reload(true)\n return\n }\n }\n }\n\n if (sessionStorage) {\n sessionStorage.removeItem(reloadStorageKey)\n }\n\n if (!page || page.status === PageResourceStatus.Error) {\n const message = `page resources for ${browserLoc.pathname} not found. Not rendering React`\n\n // if the chunk throws an error we want to capture the real error\n // This should help with https://github.com/gatsbyjs/gatsby/issues/19618\n if (page && page.error) {\n console.error(message)\n throw page.error\n }\n\n throw new Error(message)\n }\n\n const SiteRoot = apiRunner(\n `wrapRootElement`,\n { element: },\n ,\n ({ result }) => {\n return { element: result }\n }\n ).pop()\n\n const App = function App() {\n const onClientEntryRanRef = React.useRef(false)\n\n React.useEffect(() => {\n if (!onClientEntryRanRef.current) {\n onClientEntryRanRef.current = true\n if (performance.mark) {\n performance.mark(`onInitialClientRender`)\n }\n\n apiRunner(`onInitialClientRender`)\n }\n }, [])\n\n return {SiteRoot}\n }\n\n const focusEl = document.getElementById(`gatsby-focus-wrapper`)\n\n // Client only pages have any empty body so we just do a normal\n // render to avoid React complaining about hydration mis-matches.\n let defaultRenderer = render\n if (focusEl && focusEl.children.length) {\n defaultRenderer = hydrate\n }\n\n const renderer = apiRunner(\n `replaceHydrateFunction`,\n undefined,\n defaultRenderer\n )[0]\n\n function runRender() {\n const rootElement =\n typeof window !== `undefined`\n ? document.getElementById(`___gatsby`)\n : null\n\n renderer(, rootElement)\n }\n\n // https://github.com/madrobby/zepto/blob/b5ed8d607f67724788ec9ff492be297f64d47dfc/src/zepto.js#L439-L450\n // TODO remove IE 10 support\n const doc = document\n if (\n doc.readyState === `complete` ||\n (doc.readyState !== `loading` && !doc.documentElement.doScroll)\n ) {\n setTimeout(function () {\n runRender()\n }, 0)\n } else {\n const handler = function () {\n doc.removeEventListener(`DOMContentLoaded`, handler, false)\n window.removeEventListener(`load`, handler, false)\n\n runRender()\n }\n\n doc.addEventListener(`DOMContentLoaded`, handler, false)\n window.addEventListener(`load`, handler, false)\n }\n\n return\n })\n})\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nimport loader from \"./loader\"\nimport InternalPageRenderer from \"./page-renderer\"\n\nconst ProdPageRenderer = ({ location }) => {\n const pageResources = loader.loadPageSync(location.pathname)\n if (!pageResources) {\n return null\n }\n return React.createElement(InternalPageRenderer, {\n location,\n pageResources,\n ...pageResources.json,\n })\n}\n\nProdPageRenderer.propTypes = {\n location: PropTypes.shape({\n pathname: PropTypes.string.isRequired,\n }).isRequired,\n}\n\nexport default ProdPageRenderer\n","const preferDefault = m => (m && m.default) || m\n\nif (process.env.BUILD_STAGE === `develop`) {\n module.exports = preferDefault(require(`./public-page-renderer-dev`))\n} else if (process.env.BUILD_STAGE === `build-javascript`) {\n module.exports = preferDefault(require(`./public-page-renderer-prod`))\n} else {\n module.exports = () => null\n}\n","/* global HAS_REACT_18 */\n\nconst map = new WeakMap()\n\n/**\n * Since react 18, render and hydrate moved to react-dom/client\n * returns correct hydrate and render function based on installed react-dom version\n */\n\nexport function reactDOMUtils() {\n let render\n let hydrate\n\n if (HAS_REACT_18) {\n const reactDomClient = require(`react-dom/client`)\n\n render = (Component, el) => {\n let root = map.get(el)\n if (!root) {\n map.set(el, (root = reactDomClient.createRoot(el)))\n }\n root.render(Component)\n }\n\n hydrate = (Component, el) => reactDomClient.hydrateRoot(el, Component)\n } else {\n const reactDomClient = require(`react-dom`)\n render = reactDomClient.render\n hydrate = reactDomClient.hydrate\n }\n\n return { render, hydrate }\n}\n","exports.polyfill = Component => Component\n","import redirects from \"./redirects.json\"\n\n// Convert to a map for faster lookup in maybeRedirect()\n\nconst redirectMap = new Map()\nconst redirectIgnoreCaseMap = new Map()\n\nredirects.forEach(redirect => {\n if (redirect.ignoreCase) {\n redirectIgnoreCaseMap.set(redirect.fromPath, redirect)\n } else {\n redirectMap.set(redirect.fromPath, redirect)\n }\n})\n\nexport function maybeGetBrowserRedirect(pathname) {\n let redirect = redirectMap.get(pathname)\n if (!redirect) {\n redirect = redirectIgnoreCaseMap.get(pathname.toLowerCase())\n }\n return redirect\n}\n","import { apiRunner } from \"./api-runner-browser\"\n\nif (\n window.location.protocol !== `https:` &&\n window.location.hostname !== `localhost`\n) {\n console.error(\n `Service workers can only be used over HTTPS, or on localhost for development`\n )\n} else if (`serviceWorker` in navigator) {\n navigator.serviceWorker\n .register(`${__BASE_PATH__}/sw.js`)\n .then(function (reg) {\n reg.addEventListener(`updatefound`, () => {\n apiRunner(`onServiceWorkerUpdateFound`, { serviceWorker: reg })\n // The updatefound event implies that reg.installing is set; see\n // https://w3c.github.io/ServiceWorker/#service-worker-registration-updatefound-event\n const installingWorker = reg.installing\n console.log(`installingWorker`, installingWorker)\n installingWorker.addEventListener(`statechange`, () => {\n switch (installingWorker.state) {\n case `installed`:\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and the fresh content will\n // have been added to the cache.\n\n // We set a flag so Gatsby Link knows to refresh the page on next navigation attempt\n window.___swUpdated = true\n // We call the onServiceWorkerUpdateReady API so users can show update prompts.\n apiRunner(`onServiceWorkerUpdateReady`, { serviceWorker: reg })\n\n // If resources failed for the current page, reload.\n if (window.___failedResources) {\n console.log(`resources failed, SW updated - reloading`)\n window.location.reload()\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a \"Content is cached for offline use.\" message.\n console.log(`Content is now available offline!`)\n\n // Post to service worker that install is complete.\n // Delay to allow time for the event listener to be added --\n // otherwise fetch is called too soon and resources aren't cached.\n apiRunner(`onServiceWorkerInstalled`, { serviceWorker: reg })\n }\n break\n\n case `redundant`:\n console.error(`The installing service worker became redundant.`)\n apiRunner(`onServiceWorkerRedundant`, { serviceWorker: reg })\n break\n\n case `activated`:\n apiRunner(`onServiceWorkerActive`, { serviceWorker: reg })\n break\n }\n })\n })\n })\n .catch(function (e) {\n console.error(`Error during service worker registration:`, e)\n })\n}\n","/**\n * Remove a prefix from a string. Return the input string if the given prefix\n * isn't found.\n */\n\nexport default function stripPrefix(str, prefix = ``) {\n if (!prefix) {\n return str\n }\n\n if (str === prefix) {\n return `/`\n }\n\n if (str.startsWith(`${prefix}/`)) {\n return str.slice(prefix.length)\n }\n\n return str\n}\n","import '@zigurous/css-styles/dist/index.css';\nimport '@zigurous/react-components/dist/index.css';\nimport './src/styles/global.css';\n\nconst updateFavicon = (isDark) => {\n const favicon = document.querySelector('link[rel*=\"icon\"]');\n if (favicon) {\n favicon.href = isDark ? '/favicon-dark.png' : '/favicon-light.png';\n }\n};\n\nexport const onRouteUpdate = () => {\n const darkMode = window.matchMedia('(prefers-color-scheme:dark)');\n updateFavicon(darkMode.matches);\n darkMode.addEventListener('change', (e) => {\n updateFavicon(e.matches);\n });\n};\n","const listOfMetricsSend = new Set();\n\nfunction debounce(fn, timeout) {\n let timer = null;\n return function (...args) {\n if (timer) {\n clearTimeout(timer);\n }\n\n timer = setTimeout(fn, timeout, ...args);\n };\n}\n\nfunction sendWebVitals() {\n function sendData(data) {\n if (listOfMetricsSend.has(data.name)) {\n return;\n }\n\n listOfMetricsSend.add(data.name);\n sendToGoogleAnalytics(data);\n }\n\n return import(`web-vitals/base`).then(({\n getLCP,\n getFID,\n getCLS\n }) => {\n const debouncedCLS = debounce(sendData, 3000); // we don't need to debounce FID - we send it when it happens\n\n const debouncedFID = sendData; // LCP can occur multiple times so we debounce it\n\n const debouncedLCP = debounce(sendData, 3000); // With the true flag, we measure all previous occurences too, in case we start listening to late.\n\n getCLS(debouncedCLS, true);\n getFID(debouncedFID, true);\n getLCP(debouncedLCP, true);\n });\n}\n\nfunction sendToGoogleAnalytics({\n name,\n value,\n id\n}) {\n window.ga(`send`, `event`, {\n eventCategory: `Web Vitals`,\n eventAction: name,\n // The `id` value will be unique to the current page load. When sending\n // multiple values from the same page (e.g. for CLS), Google Analytics can\n // compute a total by grouping on this ID (note: requires `eventLabel` to\n // be a dimension in your report).\n eventLabel: id,\n // Google Analytics metrics must be integers, so the value is rounded.\n // For CLS the value is first multiplied by 1000 for greater precision\n // (note: increase the multiplier for greater precision if needed).\n eventValue: Math.round(name === `CLS` ? value * 1000 : value),\n // Use a non-interaction event to avoid affecting bounce rate.\n nonInteraction: true,\n // Use `sendBeacon()` if the browser supports it.\n transport: `beacon`\n });\n}\n\nexport const onRouteUpdate = ({\n location\n}, pluginOptions = {}) => {\n const ga = window.ga;\n\n if (process.env.NODE_ENV !== `production` || typeof ga !== `function`) {\n return null;\n }\n\n const pathIsExcluded = location && typeof window.excludeGAPaths !== `undefined` && window.excludeGAPaths.some(rx => rx.test(location.pathname));\n if (pathIsExcluded) return null; // wrap inside a timeout to make sure react-helmet is done with it's changes (https://github.com/gatsbyjs/gatsby/issues/9139)\n // reactHelmet is using requestAnimationFrame: https://github.com/nfl/react-helmet/blob/5.2.0/src/HelmetUtils.js#L296-L299\n\n const sendPageView = () => {\n const pagePath = location ? location.pathname + location.search + location.hash : undefined;\n ga(`set`, `page`, pagePath);\n ga(`send`, `pageview`);\n }; // Minimum delay for reactHelmet's requestAnimationFrame\n\n\n const delay = Math.max(32, pluginOptions.pageTransitionDelay || 0);\n setTimeout(sendPageView, delay);\n return null;\n};\nexport function onInitialClientRender(_, pluginOptions) {\n if (process.env.NODE_ENV === `production` && typeof ga === `function` && pluginOptions.enableWebVitalsTracking) {\n sendWebVitals();\n }\n}","/* global __MANIFEST_PLUGIN_HAS_LOCALISATION__ */\nimport { withPrefix } from \"gatsby\";\nimport getManifestForPathname from \"./get-manifest-pathname\"; // when we don't have localisation in our manifest, we tree shake everything away\n\nexport const onRouteUpdate = function onRouteUpdate({\n location\n}, pluginOptions) {\n if (__MANIFEST_PLUGIN_HAS_LOCALISATION__) {\n const {\n localize\n } = pluginOptions;\n const manifestFilename = getManifestForPathname(location.pathname, localize, true);\n const manifestEl = document.head.querySelector(`link[rel=\"manifest\"]`);\n\n if (manifestEl) {\n manifestEl.setAttribute(`href`, withPrefix(manifestFilename));\n }\n }\n};","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _gatsby = require(\"gatsby\");\n\n/**\n * Get a manifest filename depending on localized pathname\n *\n * @param {string} pathname\n * @param {Array<{start_url: string, lang: string}>} localizedManifests\n * @param {boolean} shouldPrependPathPrefix\n * @return string\n */\nvar _default = (pathname, localizedManifests, shouldPrependPathPrefix = false) => {\n const defaultFilename = `manifest.webmanifest`;\n\n if (!Array.isArray(localizedManifests)) {\n return defaultFilename;\n }\n\n const localizedManifest = localizedManifests.find(app => {\n let startUrl = app.start_url;\n\n if (shouldPrependPathPrefix) {\n startUrl = (0, _gatsby.withPrefix)(startUrl);\n }\n\n return pathname.startsWith(startUrl);\n });\n\n if (!localizedManifest) {\n return defaultFilename;\n }\n\n return `manifest_${localizedManifest.lang}.webmanifest`;\n};\n\nexports.default = _default;","import invariant from \"invariant\";\n\n////////////////////////////////////////////////////////////////////////////////\n// startsWith(string, search) - Check if `string` starts with `search`\nvar startsWith = function startsWith(string, search) {\n return string.substr(0, search.length) === search;\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// pick(routes, uri)\n//\n// Ranks and picks the best route to match. Each segment gets the highest\n// amount of points, then the type of segment gets an additional amount of\n// points where\n//\n// static > dynamic > splat > root\n//\n// This way we don't have to worry about the order of our routes, let the\n// computers do it.\n//\n// A route looks like this\n//\n// { path, default, value }\n//\n// And a returned match looks like:\n//\n// { route, params, uri }\n//\n// I know, I should use TypeScript not comments for these types.\nvar pick = function pick(routes, uri) {\n var match = void 0;\n var default_ = void 0;\n\n var _uri$split = uri.split(\"?\"),\n uriPathname = _uri$split[0];\n\n var uriSegments = segmentize(uriPathname);\n var isRootUri = uriSegments[0] === \"\";\n var ranked = rankRoutes(routes);\n\n for (var i = 0, l = ranked.length; i < l; i++) {\n var missed = false;\n var route = ranked[i].route;\n\n if (route.default) {\n default_ = {\n route: route,\n params: {},\n uri: uri\n };\n continue;\n }\n\n var routeSegments = segmentize(route.path);\n var params = {};\n var max = Math.max(uriSegments.length, routeSegments.length);\n var index = 0;\n\n for (; index < max; index++) {\n var routeSegment = routeSegments[index];\n var uriSegment = uriSegments[index];\n\n if (isSplat(routeSegment)) {\n // Hit a splat, just grab the rest, and return a match\n // uri: /files/documents/work\n // route: /files/*\n var param = routeSegment.slice(1) || \"*\";\n params[param] = uriSegments.slice(index).map(decodeURIComponent).join(\"/\");\n break;\n }\n\n if (uriSegment === undefined) {\n // URI is shorter than the route, no match\n // uri: /users\n // route: /users/:userId\n missed = true;\n break;\n }\n\n var dynamicMatch = paramRe.exec(routeSegment);\n\n if (dynamicMatch && !isRootUri) {\n var matchIsNotReserved = reservedNames.indexOf(dynamicMatch[1]) === -1;\n !matchIsNotReserved ? process.env.NODE_ENV !== \"production\" ? invariant(false, \" dynamic segment \\\"\" + dynamicMatch[1] + \"\\\" is a reserved name. Please use a different name in path \\\"\" + route.path + \"\\\".\") : invariant(false) : void 0;\n var value = decodeURIComponent(uriSegment);\n params[dynamicMatch[1]] = value;\n } else if (routeSegment !== uriSegment) {\n // Current segments don't match, not dynamic, not splat, so no match\n // uri: /users/123/settings\n // route: /users/:id/profile\n missed = true;\n break;\n }\n }\n\n if (!missed) {\n match = {\n route: route,\n params: params,\n uri: \"/\" + uriSegments.slice(0, index).join(\"/\")\n };\n break;\n }\n }\n\n return match || default_ || null;\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// match(path, uri) - Matches just one path to a uri, also lol\nvar match = function match(path, uri) {\n return pick([{ path: path }], uri);\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// resolve(to, basepath)\n//\n// Resolves URIs as though every path is a directory, no files. Relative URIs\n// in the browser can feel awkward because not only can you be \"in a directory\"\n// you can be \"at a file\", too. For example\n//\n// browserSpecResolve('foo', '/bar/') => /bar/foo\n// browserSpecResolve('foo', '/bar') => /foo\n//\n// But on the command line of a file system, it's not as complicated, you can't\n// `cd` from a file, only directories. This way, links have to know less about\n// their current path. To go deeper you can do this:\n//\n// \n// // instead of\n// \n//\n// Just like `cd`, if you want to go deeper from the command line, you do this:\n//\n// cd deeper\n// # not\n// cd $(pwd)/deeper\n//\n// By treating every path as a directory, linking to relative paths should\n// require less contextual information and (fingers crossed) be more intuitive.\nvar resolve = function resolve(to, base) {\n // /foo/bar, /baz/qux => /foo/bar\n if (startsWith(to, \"/\")) {\n return to;\n }\n\n var _to$split = to.split(\"?\"),\n toPathname = _to$split[0],\n toQuery = _to$split[1];\n\n var _base$split = base.split(\"?\"),\n basePathname = _base$split[0];\n\n var toSegments = segmentize(toPathname);\n var baseSegments = segmentize(basePathname);\n\n // ?a=b, /users?b=c => /users?a=b\n if (toSegments[0] === \"\") {\n return addQuery(basePathname, toQuery);\n }\n\n // profile, /users/789 => /users/789/profile\n if (!startsWith(toSegments[0], \".\")) {\n var pathname = baseSegments.concat(toSegments).join(\"/\");\n return addQuery((basePathname === \"/\" ? \"\" : \"/\") + pathname, toQuery);\n }\n\n // ./ /users/123 => /users/123\n // ../ /users/123 => /users\n // ../.. /users/123 => /\n // ../../one /a/b/c/d => /a/b/one\n // .././one /a/b/c/d => /a/b/c/one\n var allSegments = baseSegments.concat(toSegments);\n var segments = [];\n for (var i = 0, l = allSegments.length; i < l; i++) {\n var segment = allSegments[i];\n if (segment === \"..\") segments.pop();else if (segment !== \".\") segments.push(segment);\n }\n\n return addQuery(\"/\" + segments.join(\"/\"), toQuery);\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// insertParams(path, params)\n\nvar insertParams = function insertParams(path, params) {\n var _path$split = path.split(\"?\"),\n pathBase = _path$split[0],\n _path$split$ = _path$split[1],\n query = _path$split$ === undefined ? \"\" : _path$split$;\n\n var segments = segmentize(pathBase);\n var constructedPath = \"/\" + segments.map(function (segment) {\n var match = paramRe.exec(segment);\n return match ? params[match[1]] : segment;\n }).join(\"/\");\n var _params$location = params.location;\n _params$location = _params$location === undefined ? {} : _params$location;\n var _params$location$sear = _params$location.search,\n search = _params$location$sear === undefined ? \"\" : _params$location$sear;\n\n var searchSplit = search.split(\"?\")[1] || \"\";\n constructedPath = addQuery(constructedPath, query, searchSplit);\n return constructedPath;\n};\n\nvar validateRedirect = function validateRedirect(from, to) {\n var filter = function filter(segment) {\n return isDynamic(segment);\n };\n var fromString = segmentize(from).filter(filter).sort().join(\"/\");\n var toString = segmentize(to).filter(filter).sort().join(\"/\");\n return fromString === toString;\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// Junk\nvar paramRe = /^:(.+)/;\n\nvar SEGMENT_POINTS = 4;\nvar STATIC_POINTS = 3;\nvar DYNAMIC_POINTS = 2;\nvar SPLAT_PENALTY = 1;\nvar ROOT_POINTS = 1;\n\nvar isRootSegment = function isRootSegment(segment) {\n return segment === \"\";\n};\nvar isDynamic = function isDynamic(segment) {\n return paramRe.test(segment);\n};\nvar isSplat = function isSplat(segment) {\n return segment && segment[0] === \"*\";\n};\n\nvar rankRoute = function rankRoute(route, index) {\n var score = route.default ? 0 : segmentize(route.path).reduce(function (score, segment) {\n score += SEGMENT_POINTS;\n if (isRootSegment(segment)) score += ROOT_POINTS;else if (isDynamic(segment)) score += DYNAMIC_POINTS;else if (isSplat(segment)) score -= SEGMENT_POINTS + SPLAT_PENALTY;else score += STATIC_POINTS;\n return score;\n }, 0);\n return { route: route, score: score, index: index };\n};\n\nvar rankRoutes = function rankRoutes(routes) {\n return routes.map(rankRoute).sort(function (a, b) {\n return a.score < b.score ? 1 : a.score > b.score ? -1 : a.index - b.index;\n });\n};\n\nvar segmentize = function segmentize(uri) {\n return uri\n // strip starting/ending slashes\n .replace(/(^\\/+|\\/+$)/g, \"\").split(\"/\");\n};\n\nvar addQuery = function addQuery(pathname) {\n for (var _len = arguments.length, query = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n query[_key - 1] = arguments[_key];\n }\n\n query = query.filter(function (q) {\n return q && q.length > 0;\n });\n return pathname + (query && query.length > 0 ? \"?\" + query.join(\"&\") : \"\");\n};\n\nvar reservedNames = [\"uri\", \"path\"];\n\n/**\n * Shallow compares two objects.\n * @param {Object} obj1 The first object to compare.\n * @param {Object} obj2 The second object to compare.\n */\nvar shallowCompare = function shallowCompare(obj1, obj2) {\n var obj1Keys = Object.keys(obj1);\n return obj1Keys.length === Object.keys(obj2).length && obj1Keys.every(function (key) {\n return obj2.hasOwnProperty(key) && obj1[key] === obj2[key];\n });\n};\n\n////////////////////////////////////////////////////////////////////////////////\nexport { startsWith, pick, match, resolve, insertParams, validateRedirect, shallowCompare };","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar getLocation = function getLocation(source) {\n var _source$location = source.location,\n search = _source$location.search,\n hash = _source$location.hash,\n href = _source$location.href,\n origin = _source$location.origin,\n protocol = _source$location.protocol,\n host = _source$location.host,\n hostname = _source$location.hostname,\n port = _source$location.port;\n var pathname = source.location.pathname;\n\n\n if (!pathname && href && canUseDOM) {\n var url = new URL(href);\n pathname = url.pathname;\n }\n\n return {\n pathname: encodeURI(decodeURI(pathname)),\n search: search,\n hash: hash,\n href: href,\n origin: origin,\n protocol: protocol,\n host: host,\n hostname: hostname,\n port: port,\n state: source.history.state,\n key: source.history.state && source.history.state.key || \"initial\"\n };\n};\n\nvar createHistory = function createHistory(source, options) {\n var listeners = [];\n var location = getLocation(source);\n var transitioning = false;\n var resolveTransition = function resolveTransition() {};\n\n return {\n get location() {\n return location;\n },\n\n get transitioning() {\n return transitioning;\n },\n\n _onTransitionComplete: function _onTransitionComplete() {\n transitioning = false;\n resolveTransition();\n },\n listen: function listen(listener) {\n listeners.push(listener);\n\n var popstateListener = function popstateListener() {\n location = getLocation(source);\n listener({ location: location, action: \"POP\" });\n };\n\n source.addEventListener(\"popstate\", popstateListener);\n\n return function () {\n source.removeEventListener(\"popstate\", popstateListener);\n listeners = listeners.filter(function (fn) {\n return fn !== listener;\n });\n };\n },\n navigate: function navigate(to) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n state = _ref.state,\n _ref$replace = _ref.replace,\n replace = _ref$replace === undefined ? false : _ref$replace;\n\n if (typeof to === \"number\") {\n source.history.go(to);\n } else {\n state = _extends({}, state, { key: Date.now() + \"\" });\n // try...catch iOS Safari limits to 100 pushState calls\n try {\n if (transitioning || replace) {\n source.history.replaceState(state, null, to);\n } else {\n source.history.pushState(state, null, to);\n }\n } catch (e) {\n source.location[replace ? \"replace\" : \"assign\"](to);\n }\n }\n\n location = getLocation(source);\n transitioning = true;\n var transition = new Promise(function (res) {\n return resolveTransition = res;\n });\n listeners.forEach(function (listener) {\n return listener({ location: location, action: \"PUSH\" });\n });\n return transition;\n }\n };\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// Stores history entries in memory for testing or other platforms like Native\nvar createMemorySource = function createMemorySource() {\n var initialPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"/\";\n\n var searchIndex = initialPath.indexOf(\"?\");\n var initialLocation = {\n pathname: searchIndex > -1 ? initialPath.substr(0, searchIndex) : initialPath,\n search: searchIndex > -1 ? initialPath.substr(searchIndex) : \"\"\n };\n var index = 0;\n var stack = [initialLocation];\n var states = [null];\n\n return {\n get location() {\n return stack[index];\n },\n addEventListener: function addEventListener(name, fn) {},\n removeEventListener: function removeEventListener(name, fn) {},\n\n history: {\n get entries() {\n return stack;\n },\n get index() {\n return index;\n },\n get state() {\n return states[index];\n },\n pushState: function pushState(state, _, uri) {\n var _uri$split = uri.split(\"?\"),\n pathname = _uri$split[0],\n _uri$split$ = _uri$split[1],\n search = _uri$split$ === undefined ? \"\" : _uri$split$;\n\n index++;\n stack.push({ pathname: pathname, search: search.length ? \"?\" + search : search });\n states.push(state);\n },\n replaceState: function replaceState(state, _, uri) {\n var _uri$split2 = uri.split(\"?\"),\n pathname = _uri$split2[0],\n _uri$split2$ = _uri$split2[1],\n search = _uri$split2$ === undefined ? \"\" : _uri$split2$;\n\n stack[index] = { pathname: pathname, search: search };\n states[index] = state;\n },\n go: function go(to) {\n var newIndex = index + to;\n\n if (newIndex < 0 || newIndex > states.length - 1) {\n return;\n }\n\n index = newIndex;\n }\n }\n };\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// global history - uses window.history as the source if available, otherwise a\n// memory history\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\nvar getSource = function getSource() {\n return canUseDOM ? window : createMemorySource();\n};\n\nvar globalHistory = createHistory(getSource());\nvar navigate = globalHistory.navigate;\n\n////////////////////////////////////////////////////////////////////////////////\n\nexport { globalHistory, navigate, createHistory, createMemorySource };","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/* eslint-disable jsx-a11y/anchor-has-content */\nimport React, { useContext, createContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"invariant\";\nimport { polyfill } from \"react-lifecycles-compat\";\nimport { startsWith, pick, resolve, match, insertParams, validateRedirect, shallowCompare } from \"./lib/utils\";\nimport { globalHistory, navigate, createHistory, createMemorySource } from \"./lib/history\";\n\n////////////////////////////////////////////////////////////////////////////////\n\nvar createNamedContext = function createNamedContext(name, defaultValue) {\n var Ctx = createContext(defaultValue);\n Ctx.displayName = name;\n return Ctx;\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// Location Context/Provider\nvar LocationContext = createNamedContext(\"Location\");\n\n// sets up a listener if there isn't one already so apps don't need to be\n// wrapped in some top level provider\nvar Location = function Location(_ref) {\n var children = _ref.children;\n return React.createElement(\n LocationContext.Consumer,\n null,\n function (context) {\n return context ? children(context) : React.createElement(\n LocationProvider,\n null,\n children\n );\n }\n );\n};\n\nvar LocationProvider = function (_React$Component) {\n _inherits(LocationProvider, _React$Component);\n\n function LocationProvider() {\n var _temp, _this, _ret;\n\n _classCallCheck(this, LocationProvider);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {\n context: _this.getContext(),\n refs: { unlisten: null }\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n LocationProvider.prototype.getContext = function getContext() {\n var _props$history = this.props.history,\n navigate = _props$history.navigate,\n location = _props$history.location;\n\n return { navigate: navigate, location: location };\n };\n\n LocationProvider.prototype.componentDidCatch = function componentDidCatch(error, info) {\n if (isRedirect(error)) {\n var _navigate = this.props.history.navigate;\n\n _navigate(error.uri, { replace: true });\n } else {\n throw error;\n }\n };\n\n LocationProvider.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n if (prevState.context.location !== this.state.context.location) {\n this.props.history._onTransitionComplete();\n }\n };\n\n LocationProvider.prototype.componentDidMount = function componentDidMount() {\n var _this2 = this;\n\n var refs = this.state.refs,\n history = this.props.history;\n\n history._onTransitionComplete();\n refs.unlisten = history.listen(function () {\n Promise.resolve().then(function () {\n // TODO: replace rAF with react deferred update API when it's ready https://github.com/facebook/react/issues/13306\n requestAnimationFrame(function () {\n if (!_this2.unmounted) {\n _this2.setState(function () {\n return { context: _this2.getContext() };\n });\n }\n });\n });\n });\n };\n\n LocationProvider.prototype.componentWillUnmount = function componentWillUnmount() {\n var refs = this.state.refs;\n\n this.unmounted = true;\n refs.unlisten();\n };\n\n LocationProvider.prototype.render = function render() {\n var context = this.state.context,\n children = this.props.children;\n\n return React.createElement(\n LocationContext.Provider,\n { value: context },\n typeof children === \"function\" ? children(context) : children || null\n );\n };\n\n return LocationProvider;\n}(React.Component);\n\n////////////////////////////////////////////////////////////////////////////////\n\n\nLocationProvider.defaultProps = {\n history: globalHistory\n};\nprocess.env.NODE_ENV !== \"production\" ? LocationProvider.propTypes = {\n history: PropTypes.object.isRequired\n} : void 0;\nvar ServerLocation = function ServerLocation(_ref2) {\n var url = _ref2.url,\n children = _ref2.children;\n\n var searchIndex = url.indexOf(\"?\");\n var searchExists = searchIndex > -1;\n var pathname = void 0;\n var search = \"\";\n var hash = \"\";\n\n if (searchExists) {\n pathname = url.substring(0, searchIndex);\n search = url.substring(searchIndex);\n } else {\n pathname = url;\n }\n\n return React.createElement(\n LocationContext.Provider,\n {\n value: {\n location: {\n pathname: pathname,\n search: search,\n hash: hash\n },\n navigate: function navigate() {\n throw new Error(\"You can't call navigate on the server.\");\n }\n }\n },\n children\n );\n};\n////////////////////////////////////////////////////////////////////////////////\n// Sets baseuri and basepath for nested routers and links\nvar BaseContext = createNamedContext(\"Base\", {\n baseuri: \"/\",\n basepath: \"/\",\n navigate: globalHistory.navigate\n});\n\n////////////////////////////////////////////////////////////////////////////////\n// The main event, welcome to the show everybody.\nvar Router = function Router(props) {\n return React.createElement(\n BaseContext.Consumer,\n null,\n function (baseContext) {\n return React.createElement(\n Location,\n null,\n function (locationContext) {\n return React.createElement(RouterImpl, _extends({}, baseContext, locationContext, props));\n }\n );\n }\n );\n};\n\nvar RouterImpl = function (_React$PureComponent) {\n _inherits(RouterImpl, _React$PureComponent);\n\n function RouterImpl() {\n _classCallCheck(this, RouterImpl);\n\n return _possibleConstructorReturn(this, _React$PureComponent.apply(this, arguments));\n }\n\n RouterImpl.prototype.render = function render() {\n var _props = this.props,\n location = _props.location,\n _navigate2 = _props.navigate,\n basepath = _props.basepath,\n primary = _props.primary,\n children = _props.children,\n baseuri = _props.baseuri,\n _props$component = _props.component,\n component = _props$component === undefined ? \"div\" : _props$component,\n domProps = _objectWithoutProperties(_props, [\"location\", \"navigate\", \"basepath\", \"primary\", \"children\", \"baseuri\", \"component\"]);\n\n var routes = React.Children.toArray(children).reduce(function (array, child) {\n var routes = createRoute(basepath)(child);\n return array.concat(routes);\n }, []);\n var pathname = location.pathname;\n\n\n var match = pick(routes, pathname);\n\n if (match) {\n var params = match.params,\n uri = match.uri,\n route = match.route,\n element = match.route.value;\n\n // remove the /* from the end for child routes relative paths\n\n basepath = route.default ? basepath : route.path.replace(/\\*$/, \"\");\n\n var props = _extends({}, params, {\n uri: uri,\n location: location,\n navigate: function navigate(to, options) {\n return _navigate2(resolve(to, uri), options);\n }\n });\n\n var clone = React.cloneElement(element, props, element.props.children ? React.createElement(\n Router,\n { location: location, primary: primary },\n element.props.children\n ) : undefined);\n\n // using 'div' for < 16.3 support\n var FocusWrapper = primary ? FocusHandler : component;\n // don't pass any props to 'div'\n var wrapperProps = primary ? _extends({ uri: uri, location: location, component: component }, domProps) : domProps;\n\n return React.createElement(\n BaseContext.Provider,\n {\n value: { baseuri: uri, basepath: basepath, navigate: props.navigate }\n },\n React.createElement(\n FocusWrapper,\n wrapperProps,\n clone\n )\n );\n } else {\n // Not sure if we want this, would require index routes at every level\n // warning(\n // false,\n // `\\n\\nNothing matched:\\n\\t${\n // location.pathname\n // }\\n\\nPaths checked: \\n\\t${routes\n // .map(route => route.path)\n // .join(\n // \"\\n\\t\"\n // )}\\n\\nTo get rid of this warning, add a default NotFound component as child of Router:\n // \\n\\tlet NotFound = () =>
Not Found!
\n // \\n\\t\\n\\t \\n\\t {/* ... */}\\n\\t`\n // );\n return null;\n }\n };\n\n return RouterImpl;\n}(React.PureComponent);\n\nRouterImpl.defaultProps = {\n primary: true\n};\n\n\nvar FocusContext = createNamedContext(\"Focus\");\n\nvar FocusHandler = function FocusHandler(_ref3) {\n var uri = _ref3.uri,\n location = _ref3.location,\n component = _ref3.component,\n domProps = _objectWithoutProperties(_ref3, [\"uri\", \"location\", \"component\"]);\n\n return React.createElement(\n FocusContext.Consumer,\n null,\n function (requestFocus) {\n return React.createElement(FocusHandlerImpl, _extends({}, domProps, {\n component: component,\n requestFocus: requestFocus,\n uri: uri,\n location: location\n }));\n }\n );\n};\n\n// don't focus on initial render\nvar initialRender = true;\nvar focusHandlerCount = 0;\n\nvar FocusHandlerImpl = function (_React$Component2) {\n _inherits(FocusHandlerImpl, _React$Component2);\n\n function FocusHandlerImpl() {\n var _temp2, _this4, _ret2;\n\n _classCallCheck(this, FocusHandlerImpl);\n\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return _ret2 = (_temp2 = (_this4 = _possibleConstructorReturn(this, _React$Component2.call.apply(_React$Component2, [this].concat(args))), _this4), _this4.state = {}, _this4.requestFocus = function (node) {\n if (!_this4.state.shouldFocus && node) {\n node.focus();\n }\n }, _temp2), _possibleConstructorReturn(_this4, _ret2);\n }\n\n FocusHandlerImpl.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n var initial = prevState.uri == null;\n if (initial) {\n return _extends({\n shouldFocus: true\n }, nextProps);\n } else {\n var myURIChanged = nextProps.uri !== prevState.uri;\n var navigatedUpToMe = prevState.location.pathname !== nextProps.location.pathname && nextProps.location.pathname === nextProps.uri;\n return _extends({\n shouldFocus: myURIChanged || navigatedUpToMe\n }, nextProps);\n }\n };\n\n FocusHandlerImpl.prototype.componentDidMount = function componentDidMount() {\n focusHandlerCount++;\n this.focus();\n };\n\n FocusHandlerImpl.prototype.componentWillUnmount = function componentWillUnmount() {\n focusHandlerCount--;\n if (focusHandlerCount === 0) {\n initialRender = true;\n }\n };\n\n FocusHandlerImpl.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n if (prevProps.location !== this.props.location && this.state.shouldFocus) {\n this.focus();\n }\n };\n\n FocusHandlerImpl.prototype.focus = function focus() {\n if (process.env.NODE_ENV === \"test\") {\n // getting cannot read property focus of null in the tests\n // and that bit of global `initialRender` state causes problems\n // should probably figure it out!\n return;\n }\n\n var requestFocus = this.props.requestFocus;\n\n\n if (requestFocus) {\n requestFocus(this.node);\n } else {\n if (initialRender) {\n initialRender = false;\n } else if (this.node) {\n // React polyfills [autofocus] and it fires earlier than cDM,\n // so we were stealing focus away, this line prevents that.\n if (!this.node.contains(document.activeElement)) {\n this.node.focus();\n }\n }\n }\n };\n\n FocusHandlerImpl.prototype.render = function render() {\n var _this5 = this;\n\n var _props2 = this.props,\n children = _props2.children,\n style = _props2.style,\n requestFocus = _props2.requestFocus,\n _props2$component = _props2.component,\n Comp = _props2$component === undefined ? \"div\" : _props2$component,\n uri = _props2.uri,\n location = _props2.location,\n domProps = _objectWithoutProperties(_props2, [\"children\", \"style\", \"requestFocus\", \"component\", \"uri\", \"location\"]);\n\n return React.createElement(\n Comp,\n _extends({\n style: _extends({ outline: \"none\" }, style),\n tabIndex: \"-1\",\n ref: function ref(n) {\n return _this5.node = n;\n }\n }, domProps),\n React.createElement(\n FocusContext.Provider,\n { value: this.requestFocus },\n this.props.children\n )\n );\n };\n\n return FocusHandlerImpl;\n}(React.Component);\n\npolyfill(FocusHandlerImpl);\n\nvar k = function k() {};\n\n////////////////////////////////////////////////////////////////////////////////\nvar forwardRef = React.forwardRef;\n\nif (typeof forwardRef === \"undefined\") {\n forwardRef = function forwardRef(C) {\n return C;\n };\n}\n\nvar Link = forwardRef(function (_ref4, ref) {\n var innerRef = _ref4.innerRef,\n props = _objectWithoutProperties(_ref4, [\"innerRef\"]);\n\n return React.createElement(\n BaseContext.Consumer,\n null,\n function (_ref5) {\n var basepath = _ref5.basepath,\n baseuri = _ref5.baseuri;\n return React.createElement(\n Location,\n null,\n function (_ref6) {\n var location = _ref6.location,\n navigate = _ref6.navigate;\n\n var to = props.to,\n state = props.state,\n replace = props.replace,\n _props$getProps = props.getProps,\n getProps = _props$getProps === undefined ? k : _props$getProps,\n anchorProps = _objectWithoutProperties(props, [\"to\", \"state\", \"replace\", \"getProps\"]);\n\n var href = resolve(to, baseuri);\n var encodedHref = encodeURI(href);\n var isCurrent = location.pathname === encodedHref;\n var isPartiallyCurrent = startsWith(location.pathname, encodedHref);\n\n return React.createElement(\"a\", _extends({\n ref: ref || innerRef,\n \"aria-current\": isCurrent ? \"page\" : undefined\n }, anchorProps, getProps({ isCurrent: isCurrent, isPartiallyCurrent: isPartiallyCurrent, href: href, location: location }), {\n href: href,\n onClick: function onClick(event) {\n if (anchorProps.onClick) anchorProps.onClick(event);\n if (shouldNavigate(event)) {\n event.preventDefault();\n var shouldReplace = replace;\n if (typeof replace !== \"boolean\" && isCurrent) {\n var _location$state = _extends({}, location.state),\n key = _location$state.key,\n restState = _objectWithoutProperties(_location$state, [\"key\"]);\n\n shouldReplace = shallowCompare(_extends({}, state), restState);\n }\n navigate(href, {\n state: state,\n replace: shouldReplace\n });\n }\n }\n }));\n }\n );\n }\n );\n});\n\nLink.displayName = \"Link\";\n\nprocess.env.NODE_ENV !== \"production\" ? Link.propTypes = {\n to: PropTypes.string.isRequired\n} : void 0;\n\n////////////////////////////////////////////////////////////////////////////////\nfunction RedirectRequest(uri) {\n this.uri = uri;\n}\n\nvar isRedirect = function isRedirect(o) {\n return o instanceof RedirectRequest;\n};\n\nvar redirectTo = function redirectTo(to) {\n throw new RedirectRequest(to);\n};\n\nvar RedirectImpl = function (_React$Component3) {\n _inherits(RedirectImpl, _React$Component3);\n\n function RedirectImpl() {\n _classCallCheck(this, RedirectImpl);\n\n return _possibleConstructorReturn(this, _React$Component3.apply(this, arguments));\n }\n\n // Support React < 16 with this hook\n RedirectImpl.prototype.componentDidMount = function componentDidMount() {\n var _props3 = this.props,\n navigate = _props3.navigate,\n to = _props3.to,\n from = _props3.from,\n _props3$replace = _props3.replace,\n replace = _props3$replace === undefined ? true : _props3$replace,\n state = _props3.state,\n noThrow = _props3.noThrow,\n baseuri = _props3.baseuri,\n props = _objectWithoutProperties(_props3, [\"navigate\", \"to\", \"from\", \"replace\", \"state\", \"noThrow\", \"baseuri\"]);\n\n Promise.resolve().then(function () {\n var resolvedTo = resolve(to, baseuri);\n navigate(insertParams(resolvedTo, props), { replace: replace, state: state });\n });\n };\n\n RedirectImpl.prototype.render = function render() {\n var _props4 = this.props,\n navigate = _props4.navigate,\n to = _props4.to,\n from = _props4.from,\n replace = _props4.replace,\n state = _props4.state,\n noThrow = _props4.noThrow,\n baseuri = _props4.baseuri,\n props = _objectWithoutProperties(_props4, [\"navigate\", \"to\", \"from\", \"replace\", \"state\", \"noThrow\", \"baseuri\"]);\n\n var resolvedTo = resolve(to, baseuri);\n if (!noThrow) redirectTo(insertParams(resolvedTo, props));\n return null;\n };\n\n return RedirectImpl;\n}(React.Component);\n\nvar Redirect = function Redirect(props) {\n return React.createElement(\n BaseContext.Consumer,\n null,\n function (_ref7) {\n var baseuri = _ref7.baseuri;\n return React.createElement(\n Location,\n null,\n function (locationContext) {\n return React.createElement(RedirectImpl, _extends({}, locationContext, { baseuri: baseuri }, props));\n }\n );\n }\n );\n};\n\nprocess.env.NODE_ENV !== \"production\" ? Redirect.propTypes = {\n from: PropTypes.string,\n to: PropTypes.string.isRequired\n} : void 0;\n\n////////////////////////////////////////////////////////////////////////////////\nvar Match = function Match(_ref8) {\n var path = _ref8.path,\n children = _ref8.children;\n return React.createElement(\n BaseContext.Consumer,\n null,\n function (_ref9) {\n var baseuri = _ref9.baseuri;\n return React.createElement(\n Location,\n null,\n function (_ref10) {\n var navigate = _ref10.navigate,\n location = _ref10.location;\n\n var resolvedPath = resolve(path, baseuri);\n var result = match(resolvedPath, location.pathname);\n return children({\n navigate: navigate,\n location: location,\n match: result ? _extends({}, result.params, {\n uri: result.uri,\n path: path\n }) : null\n });\n }\n );\n }\n );\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// Hooks\n\nvar useLocation = function useLocation() {\n var context = useContext(LocationContext);\n\n if (!context) {\n throw new Error(\"useLocation hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router\");\n }\n\n return context.location;\n};\n\nvar useNavigate = function useNavigate() {\n var context = useContext(BaseContext);\n\n if (!context) {\n throw new Error(\"useNavigate hook was used but a BaseContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router\");\n }\n\n return context.navigate;\n};\n\nvar useParams = function useParams() {\n var context = useContext(BaseContext);\n\n if (!context) {\n throw new Error(\"useParams hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router\");\n }\n\n var location = useLocation();\n\n var results = match(context.basepath, location.pathname);\n\n return results ? results.params : null;\n};\n\nvar useMatch = function useMatch(path) {\n if (!path) {\n throw new Error(\"useMatch(path: string) requires an argument of a string to match against\");\n }\n var context = useContext(BaseContext);\n\n if (!context) {\n throw new Error(\"useMatch hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router\");\n }\n\n var location = useLocation();\n\n var resolvedPath = resolve(path, context.baseuri);\n var result = match(resolvedPath, location.pathname);\n return result ? _extends({}, result.params, {\n uri: result.uri,\n path: path\n }) : null;\n};\n\n////////////////////////////////////////////////////////////////////////////////\n// Junk\nvar stripSlashes = function stripSlashes(str) {\n return str.replace(/(^\\/+|\\/+$)/g, \"\");\n};\n\nvar createRoute = function createRoute(basepath) {\n return function (element) {\n if (!element) {\n return null;\n }\n\n if (element.type === React.Fragment && element.props.children) {\n return React.Children.map(element.props.children, createRoute(basepath));\n }\n !(element.props.path || element.props.default || element.type === Redirect) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \": Children of must have a `path` or `default` prop, or be a ``. None found on element type `\" + element.type + \"`\") : invariant(false) : void 0;\n\n !!(element.type === Redirect && (!element.props.from || !element.props.to)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \" requires both \\\"from\\\" and \\\"to\\\" props when inside a .\") : invariant(false) : void 0;\n\n !!(element.type === Redirect && !validateRedirect(element.props.from, element.props.to)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \" has mismatched dynamic segments, ensure both paths have the exact same dynamic segments.\") : invariant(false) : void 0;\n\n if (element.props.default) {\n return { value: element, default: true };\n }\n\n var elementPath = element.type === Redirect ? element.props.from : element.props.path;\n\n var path = elementPath === \"/\" ? basepath : stripSlashes(basepath) + \"/\" + stripSlashes(elementPath);\n\n return {\n value: element,\n default: element.props.default,\n path: element.props.children ? stripSlashes(path) + \"/*\" : path\n };\n };\n};\n\nvar shouldNavigate = function shouldNavigate(event) {\n return !event.defaultPrevented && event.button === 0 && !(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n};\n\n////////////////////////////////////////////////////////////////////////\nexport { Link, Location, LocationProvider, Match, Redirect, Router, ServerLocation, createHistory, createMemorySource, isRedirect, navigate, redirectTo, globalHistory, match as matchPath, useLocation, useNavigate, useParams, useMatch, resolve , BaseContext };","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}\nmodule.exports = _inheritsLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _setPrototypeOf(o, p);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nconst PartytownSnippet = \"/* Partytown 0.5.4 - MIT builder.io */\\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,\\\"/\\\"==(a=(o.lib||\\\"/~partytown/\\\")+(o.debug?\\\"debug/\\\":\\\"\\\"))[0]&&(s=e.querySelectorAll('script[type=\\\"text/partytown\\\"]'),i!=t?i.dispatchEvent(new CustomEvent(\\\"pt1\\\",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener(\\\"pt0\\\",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||\\\"partytown-sw.js\\\"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener(\\\"statechange\\\",(function(t){\\\"activated\\\"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?\\\"script\\\":\\\"iframe\\\"),t||(c.setAttribute(\\\"style\\\",\\\"display:block;width:0;height:0;border:0;visibility:hidden\\\"),c.setAttribute(\\\"aria-hidden\\\",!0)),c.src=a+\\\"partytown-\\\"+(t?\\\"atomics.js?v=0.5.4\\\":\\\"sandbox-sw.html?\\\"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t {\n const { forward = [], ...filteredConfig } = config || {};\n const configStr = JSON.stringify(filteredConfig, (k, v) => {\n if (typeof v === 'function') {\n v = String(v);\n if (v.startsWith(k + '(')) {\n v = 'function ' + v;\n }\n }\n return v;\n });\n return [\n `!(function(w,p,f,c){`,\n Object.keys(filteredConfig).length > 0\n ? `c=w[p]=Object.assign(w[p]||{},${configStr});`\n : `c=w[p]=w[p]||{};`,\n `c[f]=(c[f]||[])`,\n forward.length > 0 ? `.concat(${JSON.stringify(forward)})` : ``,\n `})(window,'partytown','forward');`,\n snippetCode,\n ].join('');\n};\n\n/**\n * The `type` attribute for Partytown scripts, which does two things:\n *\n * 1. Prevents the `
\ No newline at end of file + }
\ No newline at end of file diff --git a/art/canvas/index.html b/art/canvas/index.html index d0e998c..f687a20 100644 --- a/art/canvas/index.html +++ b/art/canvas/index.html @@ -14,4 +14,4 @@ - }
\ No newline at end of file + }
\ No newline at end of file diff --git a/art/hexahedroniks/index.html b/art/hexahedroniks/index.html index 1f3ab90..4db2d8f 100644 --- a/art/hexahedroniks/index.html +++ b/art/hexahedroniks/index.html @@ -14,4 +14,4 @@ - }
\ No newline at end of file + }
\ No newline at end of file diff --git a/art/index.html b/art/index.html index 146e7a9..5819d73 100644 --- a/art/index.html +++ b/art/index.html @@ -14,4 +14,4 @@ - }
\ No newline at end of file + }
\ No newline at end of file diff --git a/art/mixed/index.html b/art/mixed/index.html index b1fdad7..d15564c 100644 --- a/art/mixed/index.html +++ b/art/mixed/index.html @@ -14,4 +14,4 @@ - }
\ No newline at end of file + }
\ No newline at end of file diff --git a/chunk-map.json b/chunk-map.json index 2962d33..2cf095c 100644 --- a/chunk-map.json +++ b/chunk-map.json @@ -1 +1 @@ -{"app":["/app-3c978a551d040b778b4f.js"],"component---src-pages-404-js":["/component---src-pages-404-js-d1203087144cbdfbf0bc.js"],"component---src-pages-art-art-json-json-id-js":["/component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js"],"component---src-pages-art-js":["/component---src-pages-art-js-8eceb86192924273236c.js"],"component---src-pages-games-games-json-json-id-js":["/component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js"],"component---src-pages-games-js":["/component---src-pages-games-js-549314350f0da3e2eaad.js"],"component---src-pages-index-js":["/component---src-pages-index-js-452d3fbcacc5589384e9.js"],"component---src-pages-presentations-js":["/component---src-pages-presentations-js-066b817db280c8727477.js"],"component---src-pages-presentations-presentations-json-json-id-js":["/component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js"],"component---src-pages-software-js":["/component---src-pages-software-js-2028b311d027474c008d.js"],"component---src-pages-tech-js":["/component---src-pages-tech-js-c3cee92e893b944846eb.js"],"component---src-pages-tech-tech-json-json-id-js":["/component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js"],"component---src-pages-websites-js":["/component---src-pages-websites-js-fbcd51703c398382318d.js"],"component---src-pages-websites-websites-json-json-id-js":["/component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js"]} \ No newline at end of file +{"app":["/app-2d83dfe0ade936b5e76b.js"],"component---src-pages-404-js":["/component---src-pages-404-js-d1203087144cbdfbf0bc.js"],"component---src-pages-art-art-json-json-id-js":["/component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js"],"component---src-pages-art-js":["/component---src-pages-art-js-8eceb86192924273236c.js"],"component---src-pages-games-games-json-json-id-js":["/component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js"],"component---src-pages-games-js":["/component---src-pages-games-js-549314350f0da3e2eaad.js"],"component---src-pages-index-js":["/component---src-pages-index-js-17efe5904c6eca8eced2.js"],"component---src-pages-presentations-js":["/component---src-pages-presentations-js-066b817db280c8727477.js"],"component---src-pages-presentations-presentations-json-json-id-js":["/component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js"],"component---src-pages-software-js":["/component---src-pages-software-js-2028b311d027474c008d.js"],"component---src-pages-tech-js":["/component---src-pages-tech-js-c3cee92e893b944846eb.js"],"component---src-pages-tech-tech-json-json-id-js":["/component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js"],"component---src-pages-websites-js":["/component---src-pages-websites-js-fbcd51703c398382318d.js"],"component---src-pages-websites-websites-json-json-id-js":["/component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js"]} \ No newline at end of file diff --git a/component---src-pages-404-js-d1203087144cbdfbf0bc.js.map b/component---src-pages-404-js-d1203087144cbdfbf0bc.js.map index 3dceafa..a56c005 100644 --- a/component---src-pages-404-js-d1203087144cbdfbf0bc.js.map +++ b/component---src-pages-404-js-d1203087144cbdfbf0bc.js.map @@ -1 +1 @@ -{"version":3,"file":"component---src-pages-404-js-d1203087144cbdfbf0bc.js","mappings":"kKAUA,UAPqBA,MACnBC,EAAAA,EAAAA,YAAU,MACRC,EAAAA,EAAAA,UAAS,IAAI,GACZ,IACI,K","sources":["webpack://@adamgraham/portfolio/./src/pages/404.js"],"sourcesContent":["import { navigate } from 'gatsby';\nimport { useEffect } from 'react';\n\nconst NotFoundPage = () => {\n useEffect(() => {\n navigate('/');\n }, []);\n return null;\n};\n\nexport default NotFoundPage;\n"],"names":["NotFoundPage","useEffect","navigate"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"component---src-pages-404-js-d1203087144cbdfbf0bc.js","mappings":"kKAUA,UAPqBA,MACnBC,EAAAA,EAAAA,YAAU,MACRC,EAAAA,EAAAA,UAAS,IAAI,GACZ,IACI,K","sources":["webpack://@adamgraham/portfolio/./src/pages/404.js"],"sourcesContent":["import { navigate } from 'gatsby';\r\nimport { useEffect } from 'react';\r\n\r\nconst NotFoundPage = () => {\r\n useEffect(() => {\r\n navigate('/');\r\n }, []);\r\n return null;\r\n};\r\n\r\nexport default NotFoundPage;\r\n"],"names":["NotFoundPage","useEffect","navigate"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js.map b/component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js.map index 5e3e506..fe0aa8b 100644 --- a/component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js.map +++ b/component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js.map @@ -1 +1 @@ -{"version":3,"file":"component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js","mappings":"iKAyGA,UAvBYA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC7B,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/art/{ArtJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\n\nexport const query = graphql`\n query ($id: String!) {\n project: artJson(id: { eq: $id }) {\n id: jsonId\n category\n title\n date\n description\n description_short\n description_long\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n details {\n key\n value\n }\n buttons {\n name\n link\n icon\n }\n sections {\n title\n link\n mainImage {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n mainVideo\n paragraphs\n gallery {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n videos\n }\n }\n json: allArtJson {\n gallery: nodes {\n id\n category\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Art = ({ data, location }) => {\n const { project } = data;\n const { gallery } = data.json;\n return (\n \n );\n};\n\nArt.propTypes = {\n data: PropTypes.shape({\n project: ProjectProps,\n json: PropTypes.shape({\n gallery: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Art;\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"component---src-pages-art-art-json-json-id-js-e42d59ac4e7572ed4d91.js","mappings":"iKAyGA,UAvBYA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC7B,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/art/{ArtJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\r\n\r\nexport const query = graphql`\r\n query ($id: String!) {\r\n project: artJson(id: { eq: $id }) {\r\n id: jsonId\r\n category\r\n title\r\n date\r\n description\r\n description_short\r\n description_long\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n details {\r\n key\r\n value\r\n }\r\n buttons {\r\n name\r\n link\r\n icon\r\n }\r\n sections {\r\n title\r\n link\r\n mainImage {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n mainVideo\r\n paragraphs\r\n gallery {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n videos\r\n }\r\n }\r\n json: allArtJson {\r\n gallery: nodes {\r\n id\r\n category\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Art = ({ data, location }) => {\r\n const { project } = data;\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nArt.propTypes = {\r\n data: PropTypes.shape({\r\n project: ProjectProps,\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Art;\r\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-art-js-8eceb86192924273236c.js.map b/component---src-pages-art-js-8eceb86192924273236c.js.map index 0ab9dfb..f842de6 100644 --- a/component---src-pages-art-js-8eceb86192924273236c.js.map +++ b/component---src-pages-art-js-8eceb86192924273236c.js.map @@ -1 +1 @@ -{"version":3,"file":"component---src-pages-art-js-8eceb86192924273236c.js","mappings":"kKA6CA,UAdYA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC7B,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OAAOC,EAAAA,cAACC,EAAAA,GAAW,CAACC,SAAS,MAAMJ,QAASA,EAASD,SAAUA,GAAY,C","sources":["webpack://@adamgraham/portfolio/./src/pages/art.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { GalleryPage, SlideProps } from '../components';\n\nexport const query = graphql`\n query Art {\n json: allArtJson {\n gallery: nodes {\n id: jsonId\n category\n date\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Art = ({ data, location }) => {\n const { gallery } = data.json;\n return ;\n};\n\nArt.propTypes = {\n data: PropTypes.shape({\n json: PropTypes.shape({\n gallery: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Art;\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"component---src-pages-art-js-8eceb86192924273236c.js","mappings":"kKA6CA,UAdYA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC7B,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OAAOC,EAAAA,cAACC,EAAAA,GAAW,CAACC,SAAS,MAAMJ,QAASA,EAASD,SAAUA,GAAY,C","sources":["webpack://@adamgraham/portfolio/./src/pages/art.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { GalleryPage, SlideProps } from '../components';\r\n\r\nexport const query = graphql`\r\n query Art {\r\n json: allArtJson {\r\n gallery: nodes {\r\n id: jsonId\r\n category\r\n date\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Art = ({ data, location }) => {\r\n const { gallery } = data.json;\r\n return ;\r\n};\r\n\r\nArt.propTypes = {\r\n data: PropTypes.shape({\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Art;\r\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js.map b/component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js.map index 16453f0..036b083 100644 --- a/component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js.map +++ b/component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js.map @@ -1 +1 @@ -{"version":3,"file":"component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js","mappings":"kKAyGA,UAvBaA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC9B,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/games/{GamesJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\n\nexport const query = graphql`\n query ($id: String!) {\n project: gamesJson(id: { eq: $id }) {\n id: jsonId\n category\n title\n date\n description\n description_short\n description_long\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n details {\n key\n value\n }\n buttons {\n name\n link\n icon\n }\n sections {\n title\n link\n mainImage {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n mainVideo\n paragraphs\n gallery {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n videos\n }\n }\n json: allGamesJson {\n gallery: nodes {\n id\n category\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Game = ({ data, location }) => {\n const { project } = data;\n const { gallery } = data.json;\n return (\n \n );\n};\n\nGame.propTypes = {\n data: PropTypes.shape({\n project: ProjectProps,\n json: PropTypes.shape({\n gallery: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Game;\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"component---src-pages-games-games-json-json-id-js-19fa8ea1ba8a406c3f1c.js","mappings":"kKAyGA,UAvBaA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC9B,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/games/{GamesJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\r\n\r\nexport const query = graphql`\r\n query ($id: String!) {\r\n project: gamesJson(id: { eq: $id }) {\r\n id: jsonId\r\n category\r\n title\r\n date\r\n description\r\n description_short\r\n description_long\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n details {\r\n key\r\n value\r\n }\r\n buttons {\r\n name\r\n link\r\n icon\r\n }\r\n sections {\r\n title\r\n link\r\n mainImage {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n mainVideo\r\n paragraphs\r\n gallery {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n videos\r\n }\r\n }\r\n json: allGamesJson {\r\n gallery: nodes {\r\n id\r\n category\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Game = ({ data, location }) => {\r\n const { project } = data;\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nGame.propTypes = {\r\n data: PropTypes.shape({\r\n project: ProjectProps,\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Game;\r\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-games-js-549314350f0da3e2eaad.js.map b/component---src-pages-games-js-549314350f0da3e2eaad.js.map index 65dcfc8..7a343b5 100644 --- a/component---src-pages-games-js-549314350f0da3e2eaad.js.map +++ b/component---src-pages-games-js-549314350f0da3e2eaad.js.map @@ -1 +1 @@ -{"version":3,"file":"component---src-pages-games-js-549314350f0da3e2eaad.js","mappings":"kKA6CA,UAdcA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC/B,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OAAOC,EAAAA,cAACC,EAAAA,GAAW,CAACC,SAAS,QAAQJ,QAASA,EAASD,SAAUA,GAAY,C","sources":["webpack://@adamgraham/portfolio/./src/pages/games.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { GalleryPage, SlideProps } from '../components';\n\nexport const query = graphql`\n query Games {\n json: allGamesJson {\n gallery: nodes {\n id: jsonId\n category\n date\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Games = ({ data, location }) => {\n const { gallery } = data.json;\n return ;\n};\n\nGames.propTypes = {\n data: PropTypes.shape({\n json: PropTypes.shape({\n gallery: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Games;\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"component---src-pages-games-js-549314350f0da3e2eaad.js","mappings":"kKA6CA,UAdcA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC/B,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OAAOC,EAAAA,cAACC,EAAAA,GAAW,CAACC,SAAS,QAAQJ,QAASA,EAASD,SAAUA,GAAY,C","sources":["webpack://@adamgraham/portfolio/./src/pages/games.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { GalleryPage, SlideProps } from '../components';\r\n\r\nexport const query = graphql`\r\n query Games {\r\n json: allGamesJson {\r\n gallery: nodes {\r\n id: jsonId\r\n category\r\n date\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Games = ({ data, location }) => {\r\n const { gallery } = data.json;\r\n return ;\r\n};\r\n\r\nGames.propTypes = {\r\n data: PropTypes.shape({\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Games;\r\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-index-js-452d3fbcacc5589384e9.js b/component---src-pages-index-js-17efe5904c6eca8eced2.js similarity index 87% rename from component---src-pages-index-js-452d3fbcacc5589384e9.js rename to component---src-pages-index-js-17efe5904c6eca8eced2.js index 386856b..d16e138 100644 --- a/component---src-pages-index-js-452d3fbcacc5589384e9.js +++ b/component---src-pages-index-js-17efe5904c6eca8eced2.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[293],{9639:function(e,a,t){t.r(a);var n=t(3892),r=t(8007),s=t(6540);a.default=()=>s.createElement("main",{className:"cover","data-theme":"dark"},s.createElement("article",{className:"container-md"},s.createElement("b",{className:"h5 padding-left-sm"},"Hello, my name is"),s.createElement("h1",{className:"margin-top-sm"},"Adam Graham"),s.createElement("p",{className:"font-lg margin-bottom-1em"},"Adam is a professional software engineer and game developer with 10+ years of experience. He founded the indie game studio"," ",s.createElement(n.N_,{external:!0,to:"https://zigurous.com/"},s.createElement("b",null,"Zigurous"))," ","in 2021 and is currently working on his first major release alongside other enterprise projects. Adam's work is inspired by a passion for art, design, and engineering."),s.createElement(n.N_,{ElementType:r.Link,to:"/games",unstyled:!0},s.createElement(n.$n,{size:n.$n.size.medium},"View Gallery"))))}}]); -//# sourceMappingURL=component---src-pages-index-js-452d3fbcacc5589384e9.js.map \ No newline at end of file +"use strict";(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[293],{9639:function(e,a,t){t.r(a);var n=t(6304),r=t(8007),s=t(6540);a.default=()=>s.createElement("main",{className:"cover","data-theme":"dark"},s.createElement("article",{className:"container-md"},s.createElement("b",{className:"h5 padding-left-sm"},"Hello, my name is"),s.createElement("h1",{className:"margin-top-sm"},"Adam Graham"),s.createElement("p",{className:"font-lg margin-bottom-1em"},"Adam is a professional software engineer and game developer with 10+ years of experience. He founded the indie game studio"," ",s.createElement(n.N_,{external:!0,to:"https://zigurous.com/"},s.createElement("b",null,"Zigurous"))," ","in 2021 and is currently working on his first major release alongside other enterprise projects. Adam's work is inspired by a passion for art, design, and engineering."),s.createElement(n.N_,{ElementType:r.Link,to:"/games",unstyled:!0},s.createElement(n.$n,{size:n.$n.size.medium},"View Gallery"))))}}]); +//# sourceMappingURL=component---src-pages-index-js-17efe5904c6eca8eced2.js.map \ No newline at end of file diff --git a/component---src-pages-index-js-17efe5904c6eca8eced2.js.map b/component---src-pages-index-js-17efe5904c6eca8eced2.js.map new file mode 100644 index 0000000..6ad2bce --- /dev/null +++ b/component---src-pages-index-js-17efe5904c6eca8eced2.js.map @@ -0,0 +1 @@ +{"version":3,"file":"component---src-pages-index-js-17efe5904c6eca8eced2.js","mappings":"4KA4BA,UAxBaA,IAETC,EAAAA,cAAA,QAAMC,UAAU,QAAQ,aAAW,QACjCD,EAAAA,cAAA,WAASC,UAAU,gBACjBD,EAAAA,cAAA,KAAGC,UAAU,sBAAqB,qBAClCD,EAAAA,cAAA,MAAIC,UAAU,iBAAgB,eAC9BD,EAAAA,cAAA,KAAGC,UAAU,6BAA4B,6HAEe,IACtDD,EAAAA,cAACE,EAAAA,GAAI,CAACC,UAAQ,EAACC,GAAG,yBAChBJ,EAAAA,cAAA,SAAG,aACG,IAAI,2KAKdA,EAAAA,cAACE,EAAAA,GAAI,CAACG,YAAaC,EAAAA,KAAYF,GAAG,SAASG,UAAQ,GACjDP,EAAAA,cAACQ,EAAAA,GAAM,CAACC,KAAMD,EAAAA,GAAOC,KAAKC,QAAQ,kB","sources":["webpack://@adamgraham/portfolio/./src/pages/index.js"],"sourcesContent":["import { Button, Link } from '@zigurous/react-components';\r\nimport { Link as GatsbyLink } from 'gatsby';\r\nimport React from 'react';\r\n\r\nconst Home = () => {\r\n return (\r\n
\r\n
\r\n Hello, my name is\r\n

Adam Graham

\r\n

\r\n Adam is a professional software engineer and game developer with 10+\r\n years of experience. He founded the indie game studio{' '}\r\n \r\n Zigurous\r\n {' '}\r\n in 2021 and is currently working on his first major release alongside\r\n other enterprise projects. Adam's work is inspired by a passion for\r\n art, design, and engineering.\r\n

\r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default Home;\r\n"],"names":["Home","React","className","Link","external","to","ElementType","GatsbyLink","unstyled","Button","size","medium"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-index-js-452d3fbcacc5589384e9.js.map b/component---src-pages-index-js-452d3fbcacc5589384e9.js.map deleted file mode 100644 index f3aaf12..0000000 --- a/component---src-pages-index-js-452d3fbcacc5589384e9.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component---src-pages-index-js-452d3fbcacc5589384e9.js","mappings":"4KA4BA,UAxBaA,IAETC,EAAAA,cAAA,QAAMC,UAAU,QAAQ,aAAW,QACjCD,EAAAA,cAAA,WAASC,UAAU,gBACjBD,EAAAA,cAAA,KAAGC,UAAU,sBAAqB,qBAClCD,EAAAA,cAAA,MAAIC,UAAU,iBAAgB,eAC9BD,EAAAA,cAAA,KAAGC,UAAU,6BAA4B,6HAEe,IACtDD,EAAAA,cAACE,EAAAA,GAAI,CAACC,UAAQ,EAACC,GAAG,yBAChBJ,EAAAA,cAAA,SAAG,aACG,IAAI,2KAKdA,EAAAA,cAACE,EAAAA,GAAI,CAACG,YAAaC,EAAAA,KAAYF,GAAG,SAASG,UAAQ,GACjDP,EAAAA,cAACQ,EAAAA,GAAM,CAACC,KAAMD,EAAAA,GAAOC,KAAKC,QAAQ,kB","sources":["webpack://@adamgraham/portfolio/./src/pages/index.js"],"sourcesContent":["import { Button, Link } from '@zigurous/react-components';\nimport { Link as GatsbyLink } from 'gatsby';\nimport React from 'react';\n\nconst Home = () => {\n return (\n
\n
\n Hello, my name is\n

Adam Graham

\n

\n Adam is a professional software engineer and game developer with 10+\n years of experience. He founded the indie game studio{' '}\n \n Zigurous\n {' '}\n in 2021 and is currently working on his first major release alongside\n other enterprise projects. Adam's work is inspired by a passion for\n art, design, and engineering.\n

\n \n \n \n
\n
\n );\n};\n\nexport default Home;\n"],"names":["Home","React","className","Link","external","to","ElementType","GatsbyLink","unstyled","Button","size","medium"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-presentations-js-066b817db280c8727477.js.map b/component---src-pages-presentations-js-066b817db280c8727477.js.map index ef594b0..6060d0a 100644 --- a/component---src-pages-presentations-js-066b817db280c8727477.js.map +++ b/component---src-pages-presentations-js-066b817db280c8727477.js.map @@ -1 +1 @@ -{"version":3,"file":"component---src-pages-presentations-js-066b817db280c8727477.js","mappings":"kKAmDA,UApBsBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EACvC,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAS,gBACTJ,QAASA,EACTD,SAAUA,GACV,C","sources":["webpack://@adamgraham/portfolio/./src/pages/presentations.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { GalleryPage, SlideProps } from '../components';\n\nexport const query = graphql`\n query Presentations {\n json: allPresentationsJson {\n gallery: nodes {\n id: jsonId\n category\n date\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Presentations = ({ data, location }) => {\n const { gallery } = data.json;\n return (\n \n );\n};\n\nPresentations.propTypes = {\n data: PropTypes.shape({\n json: PropTypes.shape({\n gallery: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Presentations;\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"component---src-pages-presentations-js-066b817db280c8727477.js","mappings":"kKAmDA,UApBsBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EACvC,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAS,gBACTJ,QAASA,EACTD,SAAUA,GACV,C","sources":["webpack://@adamgraham/portfolio/./src/pages/presentations.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { GalleryPage, SlideProps } from '../components';\r\n\r\nexport const query = graphql`\r\n query Presentations {\r\n json: allPresentationsJson {\r\n gallery: nodes {\r\n id: jsonId\r\n category\r\n date\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Presentations = ({ data, location }) => {\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nPresentations.propTypes = {\r\n data: PropTypes.shape({\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Presentations;\r\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js.map b/component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js.map index b6b66d2..3574bbf 100644 --- a/component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js.map +++ b/component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js.map @@ -1 +1 @@ -{"version":3,"file":"component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js","mappings":"kKAyGA,UAvBqBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EACtC,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/presentations/{PresentationsJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\n\nexport const query = graphql`\n query ($id: String!) {\n project: presentationsJson(id: { eq: $id }) {\n id: jsonId\n category\n title\n date\n description\n description_short\n description_long\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n details {\n key\n value\n }\n buttons {\n name\n link\n icon\n }\n sections {\n title\n link\n mainImage {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n mainVideo\n paragraphs\n gallery {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n videos\n }\n }\n json: allPresentationsJson {\n gallery: nodes {\n id\n category\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Presentation = ({ data, location }) => {\n const { project } = data;\n const { gallery } = data.json;\n return (\n \n );\n};\n\nPresentation.propTypes = {\n data: PropTypes.shape({\n project: ProjectProps,\n json: PropTypes.shape({\n gallery: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Presentation;\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"component---src-pages-presentations-presentations-json-json-id-js-dec265088e30baee55f0.js","mappings":"kKAyGA,UAvBqBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EACtC,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/presentations/{PresentationsJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\r\n\r\nexport const query = graphql`\r\n query ($id: String!) {\r\n project: presentationsJson(id: { eq: $id }) {\r\n id: jsonId\r\n category\r\n title\r\n date\r\n description\r\n description_short\r\n description_long\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n details {\r\n key\r\n value\r\n }\r\n buttons {\r\n name\r\n link\r\n icon\r\n }\r\n sections {\r\n title\r\n link\r\n mainImage {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n mainVideo\r\n paragraphs\r\n gallery {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n videos\r\n }\r\n }\r\n json: allPresentationsJson {\r\n gallery: nodes {\r\n id\r\n category\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Presentation = ({ data, location }) => {\r\n const { project } = data;\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nPresentation.propTypes = {\r\n data: PropTypes.shape({\r\n project: ProjectProps,\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Presentation;\r\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-software-js-2028b311d027474c008d.js.map b/component---src-pages-software-js-2028b311d027474c008d.js.map index 0d279d7..4dd7da6 100644 --- a/component---src-pages-software-js-2028b311d027474c008d.js.map +++ b/component---src-pages-software-js-2028b311d027474c008d.js.map @@ -1 +1 @@ -{"version":3,"file":"component---src-pages-software-js-2028b311d027474c008d.js","mappings":"wJAYA,UAViBA,MACfC,EAAAA,EAAAA,YAAU,KACc,oBAAXC,SACTA,OAAOC,KAAK,gCAAiC,UAC7CD,OAAOE,QAAQC,OACjB,GACC,IACI,K","sources":["webpack://@adamgraham/portfolio/./src/pages/software.js"],"sourcesContent":["import { useEffect } from 'react';\n\nconst Software = () => {\n useEffect(() => {\n if (typeof window !== 'undefined') {\n window.open('https://github.com/adamgraham', '_blank');\n window.history.back();\n }\n }, []);\n return null;\n};\n\nexport default Software;\n"],"names":["Software","useEffect","window","open","history","back"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"component---src-pages-software-js-2028b311d027474c008d.js","mappings":"wJAYA,UAViBA,MACfC,EAAAA,EAAAA,YAAU,KACc,oBAAXC,SACTA,OAAOC,KAAK,gCAAiC,UAC7CD,OAAOE,QAAQC,OACjB,GACC,IACI,K","sources":["webpack://@adamgraham/portfolio/./src/pages/software.js"],"sourcesContent":["import { useEffect } from 'react';\r\n\r\nconst Software = () => {\r\n useEffect(() => {\r\n if (typeof window !== 'undefined') {\r\n window.open('https://github.com/adamgraham', '_blank');\r\n window.history.back();\r\n }\r\n }, []);\r\n return null;\r\n};\r\n\r\nexport default Software;\r\n"],"names":["Software","useEffect","window","open","history","back"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-tech-js-c3cee92e893b944846eb.js.map b/component---src-pages-tech-js-c3cee92e893b944846eb.js.map index 75066c6..4386f5c 100644 --- a/component---src-pages-tech-js-c3cee92e893b944846eb.js.map +++ b/component---src-pages-tech-js-c3cee92e893b944846eb.js.map @@ -1 +1 @@ -{"version":3,"file":"component---src-pages-tech-js-c3cee92e893b944846eb.js","mappings":"kKA6CA,UAdaA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC9B,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OAAOC,EAAAA,cAACC,EAAAA,GAAW,CAACC,SAAS,OAAOJ,QAASA,EAASD,SAAUA,GAAY,C","sources":["webpack://@adamgraham/portfolio/./src/pages/tech.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { GalleryPage, SlideProps } from '../components';\n\nexport const query = graphql`\n query Tech {\n json: allTechJson {\n gallery: nodes {\n id: jsonId\n category\n date\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Tech = ({ data, location }) => {\n const { gallery } = data.json;\n return ;\n};\n\nTech.propTypes = {\n data: PropTypes.shape({\n json: PropTypes.shape({\n gallery: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Tech;\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"component---src-pages-tech-js-c3cee92e893b944846eb.js","mappings":"kKA6CA,UAdaA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC9B,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OAAOC,EAAAA,cAACC,EAAAA,GAAW,CAACC,SAAS,OAAOJ,QAASA,EAASD,SAAUA,GAAY,C","sources":["webpack://@adamgraham/portfolio/./src/pages/tech.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { GalleryPage, SlideProps } from '../components';\r\n\r\nexport const query = graphql`\r\n query Tech {\r\n json: allTechJson {\r\n gallery: nodes {\r\n id: jsonId\r\n category\r\n date\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Tech = ({ data, location }) => {\r\n const { gallery } = data.json;\r\n return ;\r\n};\r\n\r\nTech.propTypes = {\r\n data: PropTypes.shape({\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Tech;\r\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js.map b/component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js.map index e2303eb..0126b65 100644 --- a/component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js.map +++ b/component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js.map @@ -1 +1 @@ -{"version":3,"file":"component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js","mappings":"kKAyGA,UAvBaA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC9B,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/tech/{TechJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\n\nexport const query = graphql`\n query ($id: String!) {\n project: techJson(id: { eq: $id }) {\n id: jsonId\n category\n title\n date\n description\n description_short\n description_long\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n details {\n key\n value\n }\n buttons {\n name\n link\n icon\n }\n sections {\n title\n link\n mainImage {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n mainVideo\n paragraphs\n gallery {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n videos\n }\n }\n json: allTechJson {\n gallery: nodes {\n id\n category\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Tech = ({ data, location }) => {\n const { project } = data;\n const { gallery } = data.json;\n return (\n \n );\n};\n\nTech.propTypes = {\n data: PropTypes.shape({\n project: ProjectProps,\n json: PropTypes.shape({\n gallery: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Tech;\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"component---src-pages-tech-tech-json-json-id-js-00ace23f8cf6c6d7ab3a.js","mappings":"kKAyGA,UAvBaA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAC9B,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/tech/{TechJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\r\n\r\nexport const query = graphql`\r\n query ($id: String!) {\r\n project: techJson(id: { eq: $id }) {\r\n id: jsonId\r\n category\r\n title\r\n date\r\n description\r\n description_short\r\n description_long\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n details {\r\n key\r\n value\r\n }\r\n buttons {\r\n name\r\n link\r\n icon\r\n }\r\n sections {\r\n title\r\n link\r\n mainImage {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n mainVideo\r\n paragraphs\r\n gallery {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n videos\r\n }\r\n }\r\n json: allTechJson {\r\n gallery: nodes {\r\n id\r\n category\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Tech = ({ data, location }) => {\r\n const { project } = data;\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nTech.propTypes = {\r\n data: PropTypes.shape({\r\n project: ProjectProps,\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Tech;\r\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-websites-js-fbcd51703c398382318d.js.map b/component---src-pages-websites-js-fbcd51703c398382318d.js.map index 81b230a..b5e6a51 100644 --- a/component---src-pages-websites-js-fbcd51703c398382318d.js.map +++ b/component---src-pages-websites-js-fbcd51703c398382318d.js.map @@ -1 +1 @@ -{"version":3,"file":"component---src-pages-websites-js-fbcd51703c398382318d.js","mappings":"kKA+CA,UAhBiBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAClC,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CAACC,SAAS,WAAWJ,QAASA,EAASD,SAAUA,GAAY,C","sources":["webpack://@adamgraham/portfolio/./src/pages/websites.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { GalleryPage, SlideProps } from '../components';\n\nexport const query = graphql`\n query Websites {\n json: allWebsitesJson {\n gallery: nodes {\n id: jsonId\n category\n date\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Websites = ({ data, location }) => {\n const { gallery } = data.json;\n return (\n \n );\n};\n\nWebsites.propTypes = {\n data: PropTypes.shape({\n json: PropTypes.shape({\n gallery: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Websites;\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"component---src-pages-websites-js-fbcd51703c398382318d.js","mappings":"kKA+CA,UAhBiBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EAClC,MAAM,QAAEG,GAAYF,EAAKG,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CAACC,SAAS,WAAWJ,QAASA,EAASD,SAAUA,GAAY,C","sources":["webpack://@adamgraham/portfolio/./src/pages/websites.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { GalleryPage, SlideProps } from '../components';\r\n\r\nexport const query = graphql`\r\n query Websites {\r\n json: allWebsitesJson {\r\n gallery: nodes {\r\n id: jsonId\r\n category\r\n date\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Websites = ({ data, location }) => {\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nWebsites.propTypes = {\r\n data: PropTypes.shape({\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Websites;\r\n"],"names":["_ref","data","location","gallery","json","React","GalleryPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js.map b/component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js.map index e5d8554..dfc377d 100644 --- a/component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js.map +++ b/component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js.map @@ -1 +1 @@ -{"version":3,"file":"component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js","mappings":"kKAyGA,UAvBgBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EACjC,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/websites/{WebsitesJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\n\nexport const query = graphql`\n query ($id: String!) {\n project: websitesJson(id: { eq: $id }) {\n id: jsonId\n category\n title\n date\n description\n description_short\n description_long\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n details {\n key\n value\n }\n buttons {\n name\n link\n icon\n }\n sections {\n title\n link\n mainImage {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n mainVideo\n paragraphs\n gallery {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n videos\n }\n }\n json: allWebsitesJson {\n gallery: nodes {\n id\n category\n title\n description\n description_short\n image {\n sharp: childImageSharp {\n original {\n src\n width\n height\n }\n }\n }\n imageAltText\n imageBorder\n }\n }\n }\n`;\n\nconst Website = ({ data, location }) => {\n const { project } = data;\n const { gallery } = data.json;\n return (\n \n );\n};\n\nWebsite.propTypes = {\n data: PropTypes.shape({\n project: ProjectProps,\n json: PropTypes.shape({\n gallery: PropTypes.arrayOf(SlideProps),\n }),\n }),\n location: PropTypes.object,\n};\n\nexport default Website;\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"component---src-pages-websites-websites-json-json-id-js-b3efbda6fd46be67a431.js","mappings":"kKAyGA,UAvBgBA,IAAyB,IAAxB,KAAEC,EAAI,SAAEC,GAAUF,EACjC,MAAM,QAAEG,GAAYF,GACd,QAAEG,GAAYH,EAAKI,KACzB,OACEC,EAAAA,cAACC,EAAAA,GAAW,CACVC,SAAUL,EAAQK,SAClBJ,QAASA,EACTF,SAAUA,EACVC,QAASA,GACT,C","sources":["webpack://@adamgraham/portfolio/./src/pages/websites/{WebsitesJson.jsonId}.js"],"sourcesContent":["import { graphql } from 'gatsby';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { ProjectPage, ProjectProps, SlideProps } from '../../components';\r\n\r\nexport const query = graphql`\r\n query ($id: String!) {\r\n project: websitesJson(id: { eq: $id }) {\r\n id: jsonId\r\n category\r\n title\r\n date\r\n description\r\n description_short\r\n description_long\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n details {\r\n key\r\n value\r\n }\r\n buttons {\r\n name\r\n link\r\n icon\r\n }\r\n sections {\r\n title\r\n link\r\n mainImage {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n mainVideo\r\n paragraphs\r\n gallery {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n videos\r\n }\r\n }\r\n json: allWebsitesJson {\r\n gallery: nodes {\r\n id\r\n category\r\n title\r\n description\r\n description_short\r\n image {\r\n sharp: childImageSharp {\r\n original {\r\n src\r\n width\r\n height\r\n }\r\n }\r\n }\r\n imageAltText\r\n imageBorder\r\n }\r\n }\r\n }\r\n`;\r\n\r\nconst Website = ({ data, location }) => {\r\n const { project } = data;\r\n const { gallery } = data.json;\r\n return (\r\n \r\n );\r\n};\r\n\r\nWebsite.propTypes = {\r\n data: PropTypes.shape({\r\n project: ProjectProps,\r\n json: PropTypes.shape({\r\n gallery: PropTypes.arrayOf(SlideProps),\r\n }),\r\n }),\r\n location: PropTypes.object,\r\n};\r\n\r\nexport default Website;\r\n"],"names":["_ref","data","location","project","gallery","json","React","ProjectPage","category"],"sourceRoot":""} \ No newline at end of file diff --git a/e803359b344906a6cdf2475d3c870c36780fb1b2-7128c0afbbb9312f1e1c.js b/e803359b344906a6cdf2475d3c870c36780fb1b2-7128c0afbbb9312f1e1c.js deleted file mode 100644 index dcf0d89..0000000 --- a/e803359b344906a6cdf2475d3c870c36780fb1b2-7128c0afbbb9312f1e1c.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see e803359b344906a6cdf2475d3c870c36780fb1b2-7128c0afbbb9312f1e1c.js.LICENSE.txt */ -(self.webpackChunk_adamgraham_portfolio=self.webpackChunk_adamgraham_portfolio||[]).push([[737],{3892:function(e,t,n){"use strict";n.d(t,{$n:function(){return Se},e2:function(){return _e},QN:function(){return je},i_:function(){return He},N_:function(){return re},jq:function(){return he},vb:function(){return De},U1:function(){return ve},Ub:function(){return be},ln:function(){return we}});var r=n(5556),a=n.n(r),o=n(6540),i=n(6942),s=n.n(i),l=(n(8848),n(5624),n(5651),n(1113),n(5723),n(4312),n(961)),u=n(7427);function c(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return void 0===t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(r){}return e}var d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&this.changeListeners.splice(t,1)},e}(),h=o.createContext(new p);h.Provider,h.Consumer;var m=n(312),f=n.n(m);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach((function(e){n=n.replace(e,t[e])})),n}function F(){return void 0!==n.g.window?n.g.window.innerWidth:0}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.g.window.self;return e===n.g.window.top||function(){try{return n.g.window.location.hostname!==n.g.window.parent.location.hostname}catch(e){return!0}}()?e:N(e.parent)}var M=300,P=27,z=37,L=39,j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(s,e);var t,r,a,i=O(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=i.call(this,e)).state={isClosing:!e.animationDisabled,shouldAnimate:!1,zoomLevel:0,offsetX:0,offsetY:0,loadErrorStatus:{}},t.outerEl=o.createRef(),t.zoomInBtn=o.createRef(),t.zoomOutBtn=o.createRef(),t.caption=o.createRef(),t.closeIfClickInner=t.closeIfClickInner.bind(x(t)),t.handleImageDoubleClick=t.handleImageDoubleClick.bind(x(t)),t.handleImageMouseWheel=t.handleImageMouseWheel.bind(x(t)),t.handleKeyInput=t.handleKeyInput.bind(x(t)),t.handleMouseUp=t.handleMouseUp.bind(x(t)),t.handleMouseDown=t.handleMouseDown.bind(x(t)),t.handleMouseMove=t.handleMouseMove.bind(x(t)),t.handleOuterMousewheel=t.handleOuterMousewheel.bind(x(t)),t.handleTouchStart=t.handleTouchStart.bind(x(t)),t.handleTouchMove=t.handleTouchMove.bind(x(t)),t.handleTouchEnd=t.handleTouchEnd.bind(x(t)),t.handlePointerEvent=t.handlePointerEvent.bind(x(t)),t.handleCaptionMousewheel=t.handleCaptionMousewheel.bind(x(t)),t.handleWindowResize=t.handleWindowResize.bind(x(t)),t.handleZoomInButtonClick=t.handleZoomInButtonClick.bind(x(t)),t.handleZoomOutButtonClick=t.handleZoomOutButtonClick.bind(x(t)),t.requestClose=t.requestClose.bind(x(t)),t.requestMoveNext=t.requestMoveNext.bind(x(t)),t.requestMovePrev=t.requestMovePrev.bind(x(t)),t.timeouts=[],t.currentAction=0,t.eventsSource=0,t.pointerList=[],t.preventInnerClose=!1,t.preventInnerCloseTimeout=null,t.keyPressed=!1,t.imageCache={},t.lastKeyDownTime=0,t.resizeTimeout=null,t.wheelActionTimeout=null,t.resetScrollTimeout=null,t.scrollX=0,t.scrollY=0,t.moveStartX=0,t.moveStartY=0,t.moveStartOffsetX=0,t.moveStartOffsetY=0,t.swipeStartX=0,t.swipeStartY=0,t.swipeEndX=0,t.swipeEndY=0,t.pinchTouchList=null,t.pinchDistance=0,t.keyCounter=0,t.moveRequested=!1,t}return t=s,r=[{key:"componentDidMount",value:function(){var e=this;this.props.animationDisabled||this.setState({isClosing:!1}),this.windowContext=N(),this.listeners={resize:this.handleWindowResize,mouseup:this.handleMouseUp,touchend:this.handleTouchEnd,touchcancel:this.handleTouchEnd,pointerdown:this.handlePointerEvent,pointermove:this.handlePointerEvent,pointerup:this.handlePointerEvent,pointercancel:this.handlePointerEvent},Object.keys(this.listeners).forEach((function(t){e.windowContext.addEventListener(t,e.listeners[t])})),this.loadAllImages()}},{key:"shouldComponentUpdate",value:function(e){var t=this;return this.getSrcTypes().forEach((function(n){t.props[n.name]!==e[n.name]&&(t.moveRequested=!1)})),!this.moveRequested}},{key:"componentDidUpdate",value:function(e){var t=this,n=!1,r={},a={};this.getSrcTypes().forEach((function(o){e[o.name]!==t.props[o.name]&&(n=!0,r[e[o.name]]=!0,a[t.props[o.name]]=!0)})),(n||this.moveRequested)&&(Object.keys(r).forEach((function(e){!(e in a)&&e in t.imageCache&&(t.imageCache[e].loaded=!1)})),this.moveRequested=!1,this.loadAllImages(this.props))}},{key:"componentWillUnmount",value:function(){var e=this;this.didUnmount=!0,Object.keys(this.listeners).forEach((function(t){e.windowContext.removeEventListener(t,e.listeners[t])})),this.timeouts.forEach((function(e){return clearTimeout(e)}))}},{key:"setTimeout",value:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){var n=this,r=setTimeout((function(){n.timeouts=n.timeouts.filter((function(e){return e!==r})),e()}),t);return this.timeouts.push(r),r}))},{key:"setPreventInnerClose",value:function(){var e=this;this.preventInnerCloseTimeout&&this.clearTimeout(this.preventInnerCloseTimeout),this.preventInnerClose=!0,this.preventInnerCloseTimeout=this.setTimeout((function(){e.preventInnerClose=!1,e.preventInnerCloseTimeout=null}),100)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props["".concat(e,"Thumbnail")]))return null;t=this.props["".concat(e,"Thumbnail")],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:this.imageCache[t].height,width:this.imageCache[t].width,targetHeight:n.height,targetWidth:n.width}}},{key:"getFitSizes",value:function(e,t,n){var r=this.getLightboxRect(),a=r.height-2*this.props.imagePadding,o=r.width-2*this.props.imagePadding;return n||(a=Math.min(a,t),o=Math.min(o,e)),o/a>e/t?{width:e*a/t,height:a}:{width:o,height:t*o/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),r=this.getZoomMultiplier(e),a=0,o=0;return{maxX:a=r*t.width-n.width<0?(n.width-r*t.width)/2:(r*t.width-n.width)/2,maxY:o=r*t.height-n.height<0?(n.height-r*t.height)/2:(r*t.height-n.height)/2,minX:-1*a,minY:-1*o}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i".concat(this.keyCounter)},{name:"mainSrcThumbnail",keyEnding:"t".concat(this.keyCounter)},{name:"nextSrc",keyEnding:"i".concat(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t".concat(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i".concat(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t".concat(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(1.007,e)}},{key:"getLightboxRect",value:function(){return this.outerEl.current?this.outerEl.current.getBoundingClientRect():{width:F(),height:void 0!==n.g.window?n.g.window.innerHeight:0,top:0,right:0,bottom:0,left:0}}},{key:"clearTimeout",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){this.timeouts=this.timeouts.filter((function(t){return t!==e})),clearTimeout(e)}))},{key:"changeZoom",value:function(e,t,n){if(this.props.enableZoom){var r=Math.max(0,Math.min(M,e));if(r!==this.state.zoomLevel)if(0!==r){var a=this.getBestImageForType("mainSrc");if(null!==a){var o=this.getZoomMultiplier(),i=this.getZoomMultiplier(r),s=this.getLightboxRect(),l=void 0!==t?t-s.left:s.width/2,u=void 0!==n?n-s.top:s.height/2,c=(s.width-a.width*o)/2,d=(s.height-a.height*o)/2,p=l-(l-(c-this.state.offsetX))/o*i,h=u-(u-(d-this.state.offsetY))/o*i,m=(s.width-a.width*i)/2-p,f=(s.height-a.height*i)/2-h;if(3!==this.currentAction){var g=this.getMaxOffsets();this.state.zoomLevel>r&&(m=Math.max(g.minX,Math.min(g.maxX,m)),f=Math.max(g.minY,Math.min(g.maxY,f)))}this.setState({zoomLevel:r,offsetX:m,offsetY:f})}}else this.setState({zoomLevel:r,offsetX:0,offsetY:0})}}},{key:"closeIfClickInner",value:function(e){!this.preventInnerClose&&e.target.className.search(/\bril-inner\b/)>-1&&this.requestClose(e)}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating())if("keyup"!==e.type){var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime=200||e.deltaX>=100?(this.requestMoveNext(e),n=500,this.scrollX=0):(this.scrollX<=-200||e.deltaX<=-100)&&(this.requestMovePrev(e),n=500,this.scrollX=0)),0!==n&&(this.wheelActionTimeout=this.setTimeout((function(){t.wheelActionTimeout=null}),n)))}},{key:"handleImageMouseWheel",value:function(e){if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)<1)return;this.scrollX=0,this.scrollY+=e.deltaY,this.changeZoom(this.state.zoomLevel-e.deltaY,e.clientX,e.clientY)}}},{key:"handleImageDoubleClick",value:function(e){this.state.zoomLevel>0?this.changeZoom(0,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+100,e.clientX,e.clientY)}},{key:"shouldHandleEvent",value:function(e){if(this.eventsSource===e)return!0;if(0===this.eventsSource)return this.eventsSource=e,!0;switch(e){case 1:default:return!1;case 2:return this.eventsSource=2,this.filterPointersBySource(),!0;case 3:return 1===this.eventsSource&&(this.eventsSource=3,this.filterPointersBySource(),!0)}}},{key:"addPointer",value:function(e){this.pointerList.push(e)}},{key:"removePointer",value:function(e){this.pointerList=this.pointerList.filter((function(t){return t.id!==e.id}))}},{key:"filterPointersBySource",value:function(){var e=this;this.pointerList=this.pointerList.filter((function(t){return t.source===e.eventsSource}))}},{key:"handleMouseDown",value:function(e){this.shouldHandleEvent(1)&&s.isTargetMatchImage(e.target)&&(this.addPointer(s.parseMouseEvent(e)),this.multiPointerStart(e))}},{key:"handleMouseMove",value:function(e){this.shouldHandleEvent(1)&&this.multiPointerMove(e,[s.parseMouseEvent(e)])}},{key:"handleMouseUp",value:function(e){this.shouldHandleEvent(1)&&(this.removePointer(s.parseMouseEvent(e)),this.multiPointerEnd(e))}},{key:"handlePointerEvent",value:function(e){if(this.shouldHandleEvent(3))switch(e.type){case"pointerdown":s.isTargetMatchImage(e.target)&&(this.addPointer(s.parsePointerEvent(e)),this.multiPointerStart(e));break;case"pointermove":this.multiPointerMove(e,[s.parsePointerEvent(e)]);break;case"pointerup":case"pointercancel":this.removePointer(s.parsePointerEvent(e)),this.multiPointerEnd(e)}}},{key:"handleTouchStart",value:function(e){var t=this;this.shouldHandleEvent(2)&&s.isTargetMatchImage(e.target)&&([].forEach.call(e.changedTouches,(function(e){return t.addPointer(s.parseTouchPointer(e))})),this.multiPointerStart(e))}},{key:"handleTouchMove",value:function(e){this.shouldHandleEvent(2)&&this.multiPointerMove(e,[].map.call(e.changedTouches,(function(e){return s.parseTouchPointer(e)})))}},{key:"handleTouchEnd",value:function(e){var t=this;this.shouldHandleEvent(2)&&([].map.call(e.changedTouches,(function(e){return t.removePointer(s.parseTouchPointer(e))})),this.multiPointerEnd(e))}},{key:"decideMoveOrSwipe",value:function(e){this.state.zoomLevel<=0?this.handleSwipeStart(e):this.handleMoveStart(e)}},{key:"multiPointerStart",value:function(e){switch(this.handleEnd(null),this.pointerList.length){case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"multiPointerMove",value:function(e,t){switch(this.currentAction){case 1:e.preventDefault(),this.handleMove(t[0]);break;case 2:e.preventDefault(),this.handleSwipe(t[0]);break;case 3:e.preventDefault(),this.handlePinch(t)}}},{key:"multiPointerEnd",value:function(e){switch(0!==this.currentAction&&(this.setPreventInnerClose(),this.handleEnd(e)),this.pointerList.length){case 0:this.eventsSource=0;break;case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"handleEnd",value:function(e){switch(this.currentAction){case 1:this.handleMoveEnd(e);break;case 2:this.handleSwipeEnd(e);break;case 3:this.handlePinchEnd(e)}}},{key:"handleMoveStart",value:function(e){var t=e.x,n=e.y;this.props.enableZoom&&(this.currentAction=1,this.moveStartX=t,this.moveStartY=n,this.moveStartOffsetX=this.state.offsetX,this.moveStartOffsetY=this.state.offsetY)}},{key:"handleMove",value:function(e){var t=e.x,n=e.y,r=this.moveStartX-t+this.moveStartOffsetX,a=this.moveStartY-n+this.moveStartOffsetY;this.state.offsetX===r&&this.state.offsetY===a||this.setState({offsetX:r,offsetY:a})}},{key:"handleMoveEnd",value:function(){var e=this;this.currentAction=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),r=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&r===this.state.offsetY||(this.setState({offsetX:n,offsetY:r,shouldAnimate:!0}),this.setTimeout((function(){e.setState({shouldAnimate:!1})}),this.props.animationDuration))}},{key:"handleSwipeStart",value:function(e){var t=e.x,n=e.y;this.currentAction=2,this.swipeStartX=t,this.swipeStartY=n,this.swipeEndX=t,this.swipeEndY=n}},{key:"handleSwipe",value:function(e){var t=e.x,n=e.y;this.swipeEndX=t,this.swipeEndY=n}},{key:"handleSwipeEnd",value:function(e){var t=this.swipeEndX-this.swipeStartX,n=Math.abs(t),r=Math.abs(this.swipeEndY-this.swipeStartY);if(this.currentAction=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,!(!e||this.isAnimating()||n<1.5*r)){if(n<200&&n0&&this.props.prevSrc?(e.preventDefault(),this.requestMovePrev()):t<0&&this.props.nextSrc&&(e.preventDefault(),this.requestMoveNext())}}},{key:"calculatePinchDistance",value:function(){var e=C(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,2),t=e[0],n=e[1];return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}},{key:"calculatePinchCenter",value:function(){var e=C(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,2),t=e[0],n=e[1];return{x:t.x-(t.x-n.x)/2,y:t.y-(t.y-n.y)/2}}},{key:"handlePinchStart",value:function(e){this.props.enableZoom&&(this.currentAction=3,this.pinchTouchList=e.map((function(e){return{id:e.id,x:e.x,y:e.y}})),this.pinchDistance=this.calculatePinchDistance())}},{key:"handlePinch",value:function(e){this.pinchTouchList=this.pinchTouchList.map((function(t){for(var n=0;n0&&t+a>=r||e.deltaY<0&&a<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t,r){var a=this;if(this.isImageLoaded(t))this.setTimeout((function(){r()}),1);else{var o=new n.g.Image;this.props.imageCrossOrigin&&(o.crossOrigin=this.props.imageCrossOrigin),o.onerror=function(n){a.props.onImageLoadError(t,e,n),a.setState((function(t){return{loadErrorStatus:v(v({},t.loadErrorStatus),{},y({},e,!0))}})),r(n)},o.onload=function(){a.props.onImageLoad(t,e,o),a.imageCache[t]={loaded:!0,width:o.width,height:o.height},r()},o.src=t}}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.getSrcTypes().forEach((function(n){var r=n.name;t[r]&&e.state.loadErrorStatus[r]&&e.setState((function(e){return{loadErrorStatus:v(v({},e.loadErrorStatus),{},y({},r,!1))}})),t[r]&&!e.isImageLoaded(t[r])&&e.loadImage(r,t[r],function(t,n){return function(r){r||e.props[t]!==n||e.didUnmount||e.forceUpdate()}}(r,t[r]))}))}},{key:"requestClose",value:function(e){var t=this,n=function(){return t.props.onCloseRequest(e)};this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),this.setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,r={zoomLevel:0,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(r.shouldAnimate=!0,this.setTimeout((function(){return n.setState({shouldAnimate:!1})}),this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter-=1,this.setState(r),this.props.onMovePrevRequest(t)):(this.keyCounter+=1,this.setState(r),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animationDisabled,a=t.animationDuration,i=t.clickOutsideToClose,l=t.discourageDownloads,u=t.enableZoom,c=t.imageTitle,d=t.nextSrc,p=t.prevSrc,h=t.toolbarButtons,m=t.reactModalStyle,g=t.onAfterOpen,b=t.imageCrossOrigin,y=t.reactModalProps,k=t.loader,E=this.state,x=E.zoomLevel,O=E.offsetX,C=E.offsetY,_=E.isClosing,T=E.loadErrorStatus,F=this.getLightboxRect(),N={};!r&&this.isAnimating()&&(N=v(v({},N),{},{transition:"transform ".concat(a,"ms")}));var P={};this.getSrcTypes().forEach((function(e){var t=e.name,n=e.keyEnding;P[t]=n}));var z=[],L=function(t,n,r){if(e.props[t]){var a,i=e.getBestImageForType(t),u=v(v({},N),s.getTransform(v(v({},r),i)));if(x>0&&(u.cursor="move"),null===i&&(a=T,Object.keys(a).some((function(e){return a[e]}))))z.push(o.createElement("div",{className:"".concat(n," ril__image ril-errored"),style:u,key:e.props[t]+P[t]},o.createElement("div",{className:"ril__errorContainer"},e.props.imageLoadErrorMessage)));else if(null!==i){var d=i.src;l?(u.backgroundImage="url('".concat(d,"')"),z.push(o.createElement("div",{className:"".concat(n," ril__image ril__imageDiscourager"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:u,key:d+P[t]},o.createElement("div",{className:"ril-download-blocker ril__downloadBlocker"})))):z.push(o.createElement("img",w({},b?{crossOrigin:b}:{},{className:"".concat(n," ril__image"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,onDragStart:function(e){return e.preventDefault()},style:u,src:d,key:d+P[t],alt:"string"==typeof c?c:A("Image"),draggable:!1})))}else{var p=void 0!==k?k:o.createElement("div",{className:"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon"},S(new Array(12)).map((function(e,t){return o.createElement("div",{key:t,className:"ril-loading-circle-point ril__loadingCirclePoint"})})));z.push(o.createElement("div",{className:"".concat(n," ril__image ril-not-loaded"),style:u,key:e.props[t]+P[t]},o.createElement("div",{className:"ril__loadingContainer"},p)))}}},j=this.getZoomMultiplier();L("nextSrc","ril-image-next ril__imageNext",{x:F.width}),L("mainSrc","ril-image-current",{x:-1*O,y:-1*C,zoom:j}),L("prevSrc","ril-image-prev ril__imagePrev",{x:-1*F.width});var I={overlay:v({zIndex:1e3,backgroundColor:"transparent"},m.overlay),content:v({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},m.content)};return o.createElement(f(),w({isOpen:!0,onRequestClose:i?this.requestClose:void 0,onAfterOpen:function(){e.outerEl.current&&e.outerEl.current.focus(),g()},style:I,contentLabel:A("Lightbox"),appElement:void 0!==n.g.window?n.g.window.document.body:void 0},y),o.createElement("div",{className:"ril-outer ril__outer ril__outerAnimating ".concat(this.props.wrapperClassName," ").concat(_?"ril-closing ril__outerClosing":""),style:{transition:"opacity ".concat(a,"ms"),animationDuration:"".concat(a,"ms"),animationDirection:_?"normal":"reverse"},ref:this.outerEl,onWheel:this.handleOuterMousewheel,onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},o.createElement("div",{className:"ril-inner ril__inner",onClick:i?this.closeIfClickInner:void 0},z),p&&o.createElement("button",{type:"button",className:"ril-prev-button ril__navButtons ril__navButtonPrev",key:"prev","aria-label":this.props.prevLabel,title:this.props.prevLabel,onClick:this.isAnimating()?void 0:this.requestMovePrev}),d&&o.createElement("button",{type:"button",className:"ril-next-button ril__navButtons ril__navButtonNext",key:"next","aria-label":this.props.nextLabel,title:this.props.nextLabel,onClick:this.isAnimating()?void 0:this.requestMoveNext}),o.createElement("div",{className:"ril-toolbar ril__toolbar"},o.createElement("ul",{className:"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide"},o.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.createElement("span",{className:"ril-toolbar__item__child ril__toolbarItemChild"},c))),o.createElement("ul",{className:"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide"},h&&h.map((function(e,t){return o.createElement("li",{key:"button_".concat(t+1),className:"ril-toolbar__item ril__toolbarItem"},e)})),u&&o.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.createElement("button",{type:"button",key:"zoom-in","aria-label":this.props.zoomInLabel,title:this.props.zoomInLabel,className:["ril-zoom-in","ril__toolbarItemChild","ril__builtinButton","ril__zoomInButton"].concat(S(x===M?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomInBtn,disabled:this.isAnimating()||x===M,onClick:this.isAnimating()||x===M?void 0:this.handleZoomInButtonClick})),u&&o.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.createElement("button",{type:"button",key:"zoom-out","aria-label":this.props.zoomOutLabel,title:this.props.zoomOutLabel,className:["ril-zoom-out","ril__toolbarItemChild","ril__builtinButton","ril__zoomOutButton"].concat(S(0===x?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomOutBtn,disabled:this.isAnimating()||0===x,onClick:this.isAnimating()||0===x?void 0:this.handleZoomOutButtonClick})),o.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.createElement("button",{type:"button",key:"close","aria-label":this.props.closeLabel,title:this.props.closeLabel,className:"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton",onClick:this.isAnimating()?void 0:this.requestClose})))),this.props.imageCaption&&o.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption ril__caption",ref:this.caption},o.createElement("div",{className:"ril-caption-content ril__captionContent"},this.props.imageCaption))))}}],a=[{key:"isTargetMatchImage",value:function(e){return e&&/ril-image-current/.test(e.className)}},{key:"parseMouseEvent",value:function(e){return{id:"mouse",source:1,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parseTouchPointer",value:function(e){return{id:e.identifier,source:2,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parsePointerEvent",value:function(e){return{id:e.pointerId,source:3,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?0:t,r=e.y,a=void 0===r?0:r,o=e.zoom,i=void 0===o?1:o,s=e.width,l=e.targetWidth,u=n,c=F();s>c&&(u+=(c-s)/2);var d=i*(l/s);return{transform:"translate3d(".concat(u,"px,").concat(a,"px,0) scale3d(").concat(d,",").concat(d,",1)")}}}],r&&b(t.prototype,r),a&&b(t,a),s}(o.Component);j.propTypes={mainSrc:a().string.isRequired,prevSrc:a().string,nextSrc:a().string,mainSrcThumbnail:a().string,prevSrcThumbnail:a().string,nextSrcThumbnail:a().string,onCloseRequest:a().func.isRequired,onMovePrevRequest:a().func,onMoveNextRequest:a().func,onImageLoadError:a().func,onImageLoad:a().func,onAfterOpen:a().func,discourageDownloads:a().bool,animationDisabled:a().bool,animationOnKeyInput:a().bool,animationDuration:a().number,keyRepeatLimit:a().number,keyRepeatKeyupBonus:a().number,imageTitle:a().node,imageCaption:a().node,imageCrossOrigin:a().string,reactModalStyle:a().shape({}),imagePadding:a().number,wrapperClassName:a().string,toolbarButtons:a().arrayOf(a().node),clickOutsideToClose:a().bool,enableZoom:a().bool,reactModalProps:a().shape({}),nextLabel:a().string,prevLabel:a().string,zoomInLabel:a().string,zoomOutLabel:a().string,closeLabel:a().string,imageLoadErrorMessage:a().node,loader:a().node},j.defaultProps={imageTitle:null,imageCaption:null,toolbarButtons:null,reactModalProps:{},animationDisabled:!1,animationDuration:300,animationOnKeyInput:!1,clickOutsideToClose:!0,closeLabel:"Close lightbox",discourageDownloads:!1,enableZoom:!0,imagePadding:10,imageCrossOrigin:null,keyRepeatKeyupBonus:40,keyRepeatLimit:180,mainSrcThumbnail:null,nextLabel:"Next image",nextSrc:null,nextSrcThumbnail:null,onAfterOpen:function(){},onImageLoadError:function(){},onImageLoad:function(){},onMoveNextRequest:function(){},onMovePrevRequest:function(){},prevLabel:"Previous image",prevSrc:null,prevSrcThumbnail:null,reactModalStyle:{},wrapperClassName:"",zoomInLabel:"Zoom in",zoomOutLabel:"Zoom out",imageLoadErrorMessage:"This image failed to load",loader:void 0};var I=j,R=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Discord"),o.createElement("path",{d:"M20.222 0c1.406 0 2.54 1.137 2.607 2.475V24l-2.677-2.273-1.47-1.338-1.604-1.398.67 2.205H3.71c-1.402 0-2.54-1.065-2.54-2.476V2.48C1.17 1.142 2.31.003 3.715.003h16.5L20.222 0zm-6.118 5.683h-.03l-.202.2c2.073.6 3.076 1.537 3.076 1.537-1.336-.668-2.54-1.002-3.744-1.137-.87-.135-1.74-.064-2.475 0h-.2c-.47 0-1.47.2-2.81.735-.467.203-.735.336-.735.336s1.002-1.002 3.21-1.537l-.135-.135s-1.672-.064-3.477 1.27c0 0-1.805 3.144-1.805 7.02 0 0 1 1.74 3.743 1.806 0 0 .4-.533.805-1.002-1.54-.468-2.14-1.404-2.14-1.404s.134.066.335.2h.06c.03 0 .044.015.06.03v.006c.016.016.03.03.06.03.33.136.66.27.93.4.466.202 1.065.403 1.8.536.93.135 1.996.2 3.21 0 .6-.135 1.2-.267 1.8-.535.39-.2.87-.4 1.397-.737 0 0-.6.936-2.205 1.404.33.466.795 1 .795 1 2.744-.06 3.81-1.8 3.87-1.726 0-3.87-1.815-7.02-1.815-7.02-1.635-1.214-3.165-1.26-3.435-1.26l.056-.02zm.168 4.413c.703 0 1.27.6 1.27 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334.002-.74.573-1.338 1.27-1.338zm-4.543 0c.7 0 1.266.6 1.266 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334 0-.74.57-1.338 1.27-1.338z"})),D=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 184 184",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Email"),o.createElement("path",{d:"M160.746,24.61H23.254C10.432,24.61,0,35.042,0,47.864v88.271c0,12.822,10.432,23.254,23.254,23.254h137.492c12.822,0,23.254-10.432,23.254-23.254V47.864C184,35.042,173.568,24.61,160.746,24.61z M157.113,39.61L92,89.909L26.887,39.61H157.113z M160.746,144.39H23.254c-4.551,0-8.254-3.703-8.254-8.254V49.382l72.415,55.94c1.35,1.043,2.968,1.564,4.585,1.564s3.235-0.521,4.585-1.564L169,49.382v86.753C169,140.687,165.297,144.39,160.746,144.39z"})),$=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Facebook"),o.createElement("path",{d:"M23.9981 11.9991C23.9981 5.37216 18.626 0 11.9991 0C5.37216 0 0 5.37216 0 11.9991C0 17.9882 4.38789 22.9522 10.1242 23.8524V15.4676H7.07758V11.9991H10.1242V9.35553C10.1242 6.34826 11.9156 4.68714 14.6564 4.68714C15.9692 4.68714 17.3424 4.92149 17.3424 4.92149V7.87439H15.8294C14.3388 7.87439 13.8739 8.79933 13.8739 9.74824V11.9991H17.2018L16.6698 15.4676H13.8739V23.8524C19.6103 22.9522 23.9981 17.9882 23.9981 11.9991Z"})),B=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"GitHub"),o.createElement("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})),q=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Instagram"),o.createElement("path",{d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"})),H=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"LinkedIn"),o.createElement("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})),Y=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Patreon"),o.createElement("path",{d:"M0 .48v23.04h4.22V.48zm15.385 0c-4.764 0-8.641 3.88-8.641 8.65 0 4.755 3.877 8.623 8.641 8.623 4.75 0 8.615-3.868 8.615-8.623C24 4.36 20.136.48 15.385.48z"})),X=o.createElement("svg",{focusable:"false",viewBox:"0 0 25.576 30.177",width:"25.576px",height:"30.177px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M7.266 29.154l.523-3.322-1.165-.027H1.061L4.927 1.292a.316.316 0 01.314-.268h9.38c3.114 0 5.263.648 6.385 1.927.526.6.861 1.227 1.023 1.917.17.724.173 1.589.007 2.644l-.012.077v.676l.526.298a3.69 3.69 0 011.065.812c.45.513.741 1.165.864 1.938.127.795.085 1.741-.123 2.812-.24 1.232-.628 2.305-1.152 3.183a6.547 6.547 0 01-1.825 2c-.696.494-1.523.869-2.458 1.109-.906.236-1.939.355-3.072.355h-.73c-.522 0-1.029.188-1.427.525a2.21 2.21 0 00-.744 1.328l-.055.299-.924 5.855-.042.215c-.011.068-.03.102-.058.125a.155.155 0 01-.096.035H7.266z",fill:"#253b80"}),o.createElement("path",{d:"M23.048 7.667c-.028.179-.06.362-.096.55-1.237 6.351-5.469 8.545-10.874 8.545H9.326c-.661 0-1.218.48-1.321 1.132L6.596 26.83l-.399 2.533a.704.704 0 00.695.814h4.881c.578 0 1.069-.42 1.16-.99l.048-.248.919-5.832.059-.32c.09-.572.582-.992 1.16-.992h.73c4.729 0 8.431-1.92 9.513-7.476.452-2.321.218-4.259-.978-5.622a4.667 4.667 0 00-1.336-1.03z",fill:"#179bd7"}),o.createElement("path",{d:"M21.754 7.151a9.757 9.757 0 00-1.203-.267 15.284 15.284 0 00-2.426-.177h-7.352a1.172 1.172 0 00-1.159.992L8.05 17.605l-.045.289a1.336 1.336 0 011.321-1.132h2.752c5.405 0 9.637-2.195 10.874-8.545.037-.188.068-.371.096-.55a6.594 6.594 0 00-1.017-.429 9.045 9.045 0 00-.277-.087z",fill:"#222d65"}),o.createElement("path",{d:"M9.614 7.699a1.169 1.169 0 011.159-.991h7.352c.871 0 1.684.057 2.426.177a9.757 9.757 0 011.481.353c.365.121.704.264 1.017.429.368-2.347-.003-3.945-1.272-5.392C20.378.682 17.853 0 14.622 0h-9.38c-.66 0-1.223.48-1.325 1.133L.01 25.898a.806.806 0 00.795.932h5.791l1.454-9.225 1.564-9.906z",fill:"#253b80"})),Z=o.createElement("svg",{focusable:"false",role:"img",style:{transform:"translateY(1px)"},viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Twitch"),o.createElement("path",{d:"M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"})),U=o.createElement("svg",{focusable:"false",role:"img",style:{transform:"scale(1.1)"},viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Twitter"),o.createElement("path",{d:"M23.954 4.569c-.885.389-1.83.654-2.825.775 1.014-.611 1.794-1.574 2.163-2.723-.951.555-2.005.959-3.127 1.184-.896-.959-2.173-1.559-3.591-1.559-2.717 0-4.92 2.203-4.92 4.917 0 .39.045.765.127 1.124C7.691 8.094 4.066 6.13 1.64 3.161c-.427.722-.666 1.561-.666 2.475 0 1.71.87 3.213 2.188 4.096-.807-.026-1.566-.248-2.228-.616v.061c0 2.385 1.693 4.374 3.946 4.827-.413.111-.849.171-1.296.171-.314 0-.615-.03-.916-.086.631 1.953 2.445 3.377 4.604 3.417-1.68 1.319-3.809 2.105-6.102 2.105-.39 0-.779-.023-1.17-.067 2.189 1.394 4.768 2.209 7.557 2.209 9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63.961-.689 1.8-1.56 2.46-2.548l-.047-.02z"})),W=o.createElement("svg",{focusable:"false",role:"img",viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Unity"),o.createElement("path",{d:"M24 9.533L21.374 0 11.57 2.555l-1.45 2.49-2.945-.022L0 12l7.176 6.978 2.943-.023 1.454 2.49 9.8 2.554L24 14.47 22.508 12 24 9.533zM10.356 5.445l7.499-1.874-4.304 7.251H4.94l5.416-5.377zm0 13.11L4.94 13.18h8.61l4.305 7.251-7.5-1.874zm9.598.696l-4.307-7.25 4.307-7.253L22.033 12l-2.08 7.25z"})),V=o.createElement("svg",{focusable:"false",role:"img",style:{transform:"scale(1.125)"},viewBox:"0 0 24 24",width:"24px",height:"24px",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"YouTube"),o.createElement("path",{d:"M23.495 6.205a3.007 3.007 0 0 0-2.088-2.088c-1.87-.501-9.396-.501-9.396-.501s-7.507-.01-9.396.501A3.007 3.007 0 0 0 .527 6.205a31.247 31.247 0 0 0-.522 5.805 31.247 31.247 0 0 0 .522 5.783 3.007 3.007 0 0 0 2.088 2.088c1.868.502 9.396.502 9.396.502s7.506 0 9.396-.502a3.007 3.007 0 0 0 2.088-2.088 31.247 31.247 0 0 0 .5-5.783 31.247 31.247 0 0 0-.5-5.805zM9.609 15.601V8.408l6.264 3.602z"})),K={discord:R,email:D,facebook:$,github:B,instagram:q,linkedIn:H,patreon:Y,paypal:X,twitch:Z,twitter:U,unity:W,youtube:V},G=a().oneOfType([a().string,a().shape({key:a().string,name:a().string,color:a().string,url:a().string,icon:a().element})]),J={discord:{key:"discord",name:"Discord",color:"#7289da",url:"https://discord.gg/DdYyWVb",icon:R},email:{key:"email",name:"Email",url:"mailto:support@zigurous.com",icon:D},facebook:{key:"facebook",name:"Facebook",color:"#1877f2",url:"https://facebook.com/zigurous",icon:$},github:{key:"github",name:"GitHub",url:"https://github.com/zigurous",icon:B},instagram:{key:"instagram",name:"Instagram",color:"#e4405f",url:"https://instagram.com/zigurous",icon:q},patreon:{key:"patreon",name:"Patreon",color:"#ff424d",url:"https://patreon.com/zigurous",icon:Y},paypal:{key:"paypal",name:"PayPal",color:"#00457c",url:"https://paypal.com/donate?hosted_button_id=BGS8Y9U798JS8",icon:X},twitch:{key:"twitch",name:"Twitch",color:"#9146ff",url:"https://twitch.tv/zigurous",icon:Z},twitter:{key:"twitter",name:"Twitter",color:"#1da1f2",url:"https://twitter.com/zigurous",icon:U},unity:{key:"unity",name:"Unity",url:"https://assetstore.unity.com/publishers/51884",icon:W},youtube:{key:"youtube",name:"YouTube",color:"#ff0000",url:"https://youtube.com/c/zigurous?sub_confirmation=1",icon:V}},Q={wordmark:o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 596 192"},o.createElement("path",{d:"M528.71,98.72a18.85,18.85,0,0,0-7.36-5.56,92.48,92.48,0,0,0-10.88-3.52A43,43,0,0,1,501.91,87a4.28,4.28,0,0,1-2.76-4,4.21,4.21,0,0,1,1.72-3.52,8.33,8.33,0,0,1,5-1.28A9.36,9.36,0,0,1,511.91,80a7.68,7.68,0,0,1,2.76,5.16h17c-.64-6.4-3.12-11.56-7.48-15.4S513.91,64,506.39,64a31,31,0,0,0-13.2,2.56,19.26,19.26,0,0,0-8.4,7A17.5,17.5,0,0,0,482,83.28q0,6.36,3.12,10.08a18.58,18.58,0,0,0,7.4,5.48,79.1,79.1,0,0,0,10.8,3.28A55.41,55.41,0,0,1,512,105a4.27,4.27,0,0,1,2.68,4,4.37,4.37,0,0,1-1.88,3.64,9,9,0,0,1-5.32,1.4,9.94,9.94,0,0,1-6.36-2,7.23,7.23,0,0,1-2.92-5.2H480a20.18,20.18,0,0,0,4,10.84,23.8,23.8,0,0,0,9.68,7.64,33.14,33.14,0,0,0,14,2.8,32.3,32.3,0,0,0,12.88-2.44A19.55,19.55,0,0,0,529,118.8a16.93,16.93,0,0,0,3-9.76C531.91,104.72,530.83,101.28,528.71,98.72Z"}),o.createElement("polygon",{points:"64 40.01 64 58.01 101.8 58.01 97.6 64.01 65.4 110.01 64 112.01 64 128.01 77.6 128.01 128 128.01 128 110.01 90.2 110.01 122.4 64.01 126.6 58.01 128 56.01 128 40.01 114.4 40.01 64 40.01"}),o.createElement("path",{d:"M368,64a32,32,0,1,0,32,32.16v-.24A32,32,0,0,0,368,64Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,368,112Z"}),o.createElement("path",{d:"M312,71.23V64H292v36.24a12,12,0,0,1-24,0V64H248v38a26,26,0,0,0,20,25.28,24.65,24.65,0,0,0,6,.72,25.92,25.92,0,0,0,18-7.24V128h20V96a16,16,0,0,1,16-16h4V64.07c-.68,0-1.32-.08-2-.08A25.92,25.92,0,0,0,312,71.23Z"}),o.createElement("path",{d:"M452,83.23v17a12,12,0,0,1-24,0V64H408v38a26,26,0,0,0,20,25.28,24.65,24.65,0,0,0,6,.72,25.92,25.92,0,0,0,18-7.24V128h20V64H452Z"}),o.createElement("path",{d:"M216,69.76A25.37,25.37,0,0,0,200,64c-15.48,0-28,14.32-28,32a35.72,35.72,0,0,0,3.4,15.32,30.58,30.58,0,0,0,10.4,12.24,24.93,24.93,0,0,0,28.4,0,18.85,18.85,0,0,0,1.8-1.32V130c0,7.72-7.16,14-16,14a17,17,0,0,1-10.4-3.4l-8.92,12.72a37.37,37.37,0,0,0,35.32,4c11.8-4.64,20-15.12,20-27.28V64H216ZM204,112a15.93,15.93,0,0,1-14.72-9.8A15.22,15.22,0,0,1,188,96a16,16,0,1,1,30.08,7.6,17.11,17.11,0,0,1-2.08,3A15.93,15.93,0,0,1,204,112Z"}),o.createElement("rect",{x:"140.01",y:"64.01",width:"20",height:"64"}),o.createElement("path",{d:"M150,36a11,11,0,0,0-10,6.16,9.83,9.83,0,0,0,0,8.64,11.16,11.16,0,0,0,20,0,9.83,9.83,0,0,0,0-8.64A11,11,0,0,0,150,36Z"})),lettermark:o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},o.createElement("polygon",{points:"382.81 331.67 382.81 384.03 311.24 384.03 347.9 331.67 382.81 331.67"}),o.createElement("polygon",{points:"380.48 128.03 237.93 331.67 312.99 331.67 276.33 384.03 129.13 384.03 271.68 180.39 308.33 128.03 380.48 128.03"}),o.createElement("polygon",{points:"272.26 128.03 235.6 180.39 150.08 180.39 150.08 128.03 272.26 128.03"})),logomark:o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},o.createElement("polygon",{points:"368.46 177.61 256 112.68 143.54 177.61 256 242.54 368.46 177.61"}),o.createElement("polygon",{points:"128 334.39 240.46 399.32 240.46 269.46 128 204.53 128 334.39"}),o.createElement("polygon",{points:"384 204.53 271.54 269.46 271.54 399.32 384 334.39 384 204.53"}))};function ee(){return(ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}var ne=["activeClassName","children","className","ElementType","external","href","path","rel","target","to","underlined","unstyled"];function re(e){var t=e.activeClassName,n=e.children,r=e.className,a=e.ElementType,i=void 0===a?"a":a,l=e.external,u=void 0!==l&&l,c=e.href,d=e.path,p=e.rel,h=e.target,m=e.to,f=e.underlined,g=void 0!==f&&f,v=e.unstyled,b=void 0!==v&&v,y=te(e,ne);return o.createElement(i,ee({},y,"a"===i?{href:c||d||m,rel:p||(u?"noopener noreferrer":void 0),target:h||(u?"_blank":void 0)}:{to:m||d||c,href:c||d||m,activeClassName:t},{className:s()({link:!b},{"link--underlined":g&&!b},r)}),n)}function ae(e,t){return e?o.createElement("img",{alt:"Logo",src:e}):Q[t]}function oe(e){var t=e.fill,n=e.image,r=e.onClick,a=e.size,i=e.style,l=e.variant,u=void 0===l?"wordmark":l;return o.createElement("div",{className:s()("logo",u,void 0===a?"medium":a,e.className),style:ee({},i,{fill:t})},r?o.createElement("button",{"aria-label":"Logo",onClick:function(e){e.target.blur(),r()}},ae(n,u)):ae(n,u))}re.propTypes={activeClassName:a().string,children:a().node,className:a().string,ElementType:a().elementType,external:a().bool,href:a().string,path:a().string,rel:a().string,target:a().string,to:a().string,underlined:a().bool,unstyled:a().bool},oe.size=Object.freeze({xs:"xs",extraSmall:"extraSmall",sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large",xl:"xl",extraLarge:"extraLarge"}),oe.variant=Object.freeze({wordmark:"wordmark",lettermark:"lettermark",logomark:"logomark"}),oe.propTypes={className:a().string,fill:a().string,image:a().string,onClick:a().func,size:a().oneOf(Object.values(oe.size)),style:a().object,variant:a().oneOf(Object.values(oe.variant))},a().bool,a().string,a().node,a().bool,a().elementType,a().arrayOf(a().shape(re.propTypes)),a().func,a().func,a().bool,a().string,a().bool;var ie=["ariaHidden","children","className","inactive","material","name","size","theme"];function se(e){var t,n,r=e.ariaHidden,a=void 0===r||r,i=e.children,l=e.className,u=e.inactive,c=e.material,d=void 0===c||c,p=e.name,h=e.size,m=void 0===h?"medium":h,f=e.theme,g=te(e,ie);return o.createElement("i",ee({"aria-hidden":a,className:s()("icon",(t={},t["icon--"+m]=m,t),(n={},n["icon--"+f]=f,n),{"icon--active":!u},{"icon--inactive":u},{"icon--material":d},l)},g),p||i)}function le(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent&&e.attachEvent("on"+t,n)}function ue(e,t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent&&e.detachEvent("on"+t,n)}function ce(e){return void 0===e&&(e=function(){}),function(t){if(!t.defaultPrevented){var n=!1;"Enter"===t.key&&(n=!0,e(t)),n&&t.preventDefault()}}}function de(e,t){return!!t&&("/"===e?e===t.pathname:t.pathname.includes(e))}function pe(e,t){return Object.keys(e).reduce((function(n,r){return Array.isArray(t)?t.includes(r)||(n[r]=e[r]):r!==t&&(n[r]=e[r]),n}),{})}function he(e){var t=e.hidden,n=e.LinkElementType,r=void 0===n?"a":n,a=e.links,i=void 0===a?[]:a,l=e.location,u=void 0===l?"undefined"!=typeof window&&window.location:l,c=e.onLinkClick;return o.createElement("nav",{className:s()("navbar",{"display-none":void 0!==t&&t},e.className)},o.createElement("ul",null,i.map((function(e){var t=e.to||e.path||e.href,n=de(t,u);return o.createElement("li",{key:t},o.createElement(re,ee({},pe(e,["leftIcon","rightIcon"]),{activeClassName:"","aria-current":n?"page":"false","aria-label":e.name,className:s()({active:n}),ElementType:e.ElementType||r,onClick:function(){c&&c(e)},unstyled:!0}),e.leftIcon&&o.createElement(se,{className:"margin-right-md",name:e.leftIcon,size:"small"}),e.name,e.rightIcon&&o.createElement(se,{className:"margin-left-md",name:e.rightIcon,size:"small"})))}))))}function me(e){var t=e.children,n=e.rootElement,r=void 0===n?"#root":n,a=(0,o.useState)(null),i=a[0],s=a[1];return(0,o.useEffect)((function(){s("undefined"!=typeof document?document.querySelector(r):null)}),[r]),i?(0,l.createPortal)(t,i):null}se.size=Object.freeze({inherit:"inherit",sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large",xl:"xl",extraLarge:"extraLarge"}),se.theme=Object.freeze({light:"light",dark:"dark"}),se.propTypes={ariaHidden:a().bool,children:a().node,className:a().string,inactive:a().bool,material:a().bool,name:a().string,size:a().oneOf(Object.keys(se.size)),theme:a().oneOf(Object.values(se.theme))},he.propTypes={className:a().string,hidden:a().bool,LinkElementType:a().elementType,links:a().arrayOf(a().shape(re.propTypes)),location:a().object,onLinkClick:a().func},me.propTypes={children:a().node.isRequired,rootElement:a().string};var fe=["altText","backgroundColor","className","ElementType","foregroundColor","icon","iconName","innerPadding","rounded","size"];function ge(e){var t=e.backgroundColor,n=e.className,r=e.ElementType,a=void 0===r?"i":r,i=e.foregroundColor,l=e.icon,u=e.iconName,c=e.innerPadding,d=void 0===c?8:c,p=e.rounded,h=void 0!==p&&p,m=e.size,f=void 0===m?24:m,g=te(e,fe);return o.createElement(a,ee({},g,{className:s()("icon","social-icon",{"social-icon--rounded":h},u,n),style:{backgroundColor:t,fill:i,width:f,height:f,padding:d}}),l||K[u])}function ve(e){var t=e.backgroundColor,n=e.foregroundColor,r=e.hidden,a=e.iconInnerPadding,i=void 0===a?16:a,l=e.iconSize,u=void 0===l?32:l,c=e.iconSpacing,d=e.links,p=void 0===d?[]:d,h=e.onLinkClick,m=e.rounded,f=void 0!==m&&m,g=e.wrap,v=void 0!==g&&g;return o.createElement("div",{className:s()("social-nav-links",{"display-none":void 0!==r&&r},e.className)},o.createElement("ul",{className:s()("social-nav-links__list",{"flex-wrap":v})},p.map((function(e){var r="string"==typeof e?J[e]:e;return o.createElement("li",{className:"social-nav-links__item",key:r.key,style:{margin:c}},o.createElement(ge,{"aria-label":r.name,backgroundColor:t,ElementType:"a",foregroundColor:n||r.color,href:r.url,icon:r.icon,iconName:r.key,innerPadding:i,onClick:function(){h&&h(r)},rel:"noopener noreferrer",rounded:f,size:u,target:"_blank"}))}))))}function be(e,t){var n="undefined"!=typeof window?window.matchMedia(e):null,r=(0,o.useState)(n),a=r[0],i=r[1],s=(0,o.useState)(Boolean(a&&a.matches)),l=s[0],u=s[1];return(0,o.useEffect)((function(){"undefined"!=typeof window&&i(window.matchMedia(e))}),[e]),(0,o.useEffect)((function(){var e,n=a;return n&&le(n,"change",e=function(){u(n.matches),t&&t(n.matches)}),function(){n&&e&&ue(n,"change",e)}}),[a,t]),l}ge.propTypes={altText:a().string,backgroundColor:a().string,className:a().string,ElementType:a().elementType,foregroundColor:a().string,icon:a().element,iconName:a().oneOf(Object.keys(K)),innerPadding:a().oneOfType([a().number,a().string]),rounded:a().bool,size:a().oneOfType([a().number,a().string])},ve.propTypes={backgroundColor:a().string,className:a().string,foregroundColor:a().string,hidden:a().bool,iconInnerPadding:a().oneOfType([a().number,a().string]),iconSize:a().oneOfType([a().number,a().string]),iconSpacing:a().oneOfType([a().number,a().string]),links:a().arrayOf(G),onLinkClick:a().func,rounded:a().bool,wrap:a().bool};function ye(e){var t=(0,o.useState)(!0),n=t[0],r=t[1],a=function(){r(!1)};return(0,o.useEffect)((function(){var t=e.current;return t&&n&&(t.complete?a():le(t,"load",a)),function(){t&&ue(t,"load",a)}}),[e,n]),n}function we(e,t){void 0===e&&(e=!1),void 0===t&&(t=!0),(0,o.useEffect)((function(){if("undefined"!=typeof document)if(e){if(t){var n="undefined"!=typeof window&&"undefined"!=typeof document?(window.innerWidth||0)-(document.documentElement.clientWidth||0):0;n>0&&(document.body.style.paddingRight=n+"px")}document.body.classList.add("overflow-hidden")}else document.body.classList.remove("overflow-hidden"),t&&(document.body.style.paddingRight=null)}),[e,t])}(0,o.createContext)({theme:"dark",setTheme:function(){},toggleTheme:function(){}});function ke(e){var t=e.animated,n=void 0!==t&&t,r=e.className,a=e.hideSocialLinks,i=void 0===a||a,l=e.LinkElementType,u=void 0===l?"a":l,c=e.links,d=void 0===c?[]:c,p=e.location,h=void 0===p?"undefined"!=typeof window&&window.location:p,m=e.onLinkClick,f=e.rootElement,g=e.socialLinks,v=void 0===g?[]:g,b=e.theme,y=(0,o.useState)(!1),w=y[0],k=y[1];return we(w,!0),(0,o.useEffect)((function(){k(!1)}),[h]),o.createElement(o.Fragment,null,o.createElement("button",{"aria-label":w?"Close":"Open",className:"navmenu__button",onClick:function(){return k(!w)},size:"small",style:{zIndex:w?1055:void 0}},o.createElement(se,{name:w?"close":"menu",material:!0})),w&&o.createElement(me,{rootElement:f},o.createElement("div",{className:s()("navmenu",{"navmenu--open":w,"navmenu--closed":!w},{"navmenu--animated":n},r),"data-theme":b},o.createElement("div",{className:"navmenu__overlay"}),o.createElement("div",{className:"navmenu__container container"},o.createElement("div",{className:"navmenu__wrapper"},o.createElement("ul",{className:"navmenu__list"},d.map((function(e){var t=e.to||e.path||e.href,n=de(t,h);return o.createElement("li",{className:"navmenu__item",key:t},o.createElement(re,ee({},pe(e,["leftIcon","rightIcon"]),{activeClassName:"","aria-current":n?"page":"false","aria-label":e.name,className:s()({active:n}),ElementType:e.ElementType||u,onClick:function(){m&&m(e)},unstyled:!0}),e.name))}))),!i&&o.createElement(ve,{foregroundColor:"inherit",iconInnerPadding:10,iconSize:20,links:Object.values(v)}))))))}function Ee(e,t){return void 0===e&&(e="en-us"),void 0===t&&(t=e),{ios:"https://linkmaker.itunes.apple.com/images/badges/"+e+"/badge_appstore-lrg.svg",android:"https://raw.github.com/yjb94/google-play-badge-svg/master/img/"+t+"_get.svg?sanitize=true"}}function xe(e){var t=e.alt,n=void 0===t?"Download on the App Store":t,r=e.className,a=e.defaultLocale,i=void 0===a?"en-us":a,l=e.locale,u=void 0===l?"undefined"!=typeof navigator&&navigator.language||i:l,c=e.platform,d=e.width,p=void 0===d?200:d,h=e.height,m=void 0===h?p/3.375:h,f=e.target,g=void 0===f?"_blank":f,v=e.url,b=u=u.toLowerCase();-1===["zh-cn","zh-tw"].indexOf(u)&&(b=u.split(/[_-]/)[0]);var y=(0,o.useState)(Ee(u,b)),w=y[0],k=y[1];return(0,o.useLayoutEffect)((function(){k(Ee(u,b))}),[u,b]),o.createElement("a",{className:s()("app-store-badge",r),href:v,target:g,style:{width:p,height:m}},o.createElement("img",{alt:n||"",src:w[c],onError:function(){k(Ee(i,b))}}))}function Oe(e){var t,n=e.children,r=e.className,a=e.pill,i=void 0!==a&&a,l=e.type,u=void 0===l?"solid":l;return o.createElement("div",{className:s()("badge",(t={},t["badge--"+u]=u,t),{"badge--pill":i},r)},n)}ke.propTypes={animated:a().bool,className:a().string,hideSocialLinks:a().bool,LinkElementType:a().elementType,links:a().arrayOf(a().shape(re.propTypes)),location:a().object,onLinkClick:a().func,rootElement:a().string,socialLinks:a().arrayOf(G),theme:a().string},a().bool,a().string,a().bool,a().bool,a().bool,a().bool,a().elementType,a().arrayOf(a().shape(re.propTypes)),a().object,a().oneOf(Object.values(oe.size)),a().oneOf(Object.values(oe.variant)),a().func,a().func,a().func,a().string,a().arrayOf(G),a().bool,a().string,a().bool,xe.platform=Object.freeze({ios:"ios",android:"android"}),xe.propTypes={alt:a().string,className:a().string,defaultLocale:a().string,locale:a().string,platform:a().oneOf(Object.values(xe.platform)).isRequired,width:a().number,height:a().number,target:a().string,url:a().string.isRequired},a().string,a().oneOf(["left","right"]),a().elementType,a().arrayOf(a().shape(re.propTypes)),a().string,Oe.type=Object.freeze({solid:"solid",outline:"outline"}),Oe.propTypes={children:a().node,className:a().string,pill:a().bool,type:a().oneOf(Object.values(Oe.type))};var Ce=["children","className","color","icon","iconElement","iconName","onClick","shape","size","style","styles"];function Se(e){var t,n,r,a,i=e.children,l=e.className,u=e.color,c=void 0===u?"default":u,d=e.icon,p=e.iconElement,h=e.iconName,m=e.onClick,f=e.shape,g=void 0===f?"rounded-corners":f,v=e.size,b=void 0===v?"small":v,y=e.style,w=void 0===y?"solid":y,k=e.styles,E=te(e,Ce);return o.createElement("button",ee({className:s()("btn",(t={},t["btn--"+c]=c,t),(n={},n["btn--"+g]=g,n),(r={},r["btn--"+w]=w,r),(a={},a["btn--"+b]=b,a),{"btn--icon-only":"only"===d},l),onClick:m,style:k},E),"left"===d&&o.createElement("span",{"aria-hidden":!0,className:"icon-wrapper margin-right-md"},p||o.createElement(se,{name:h,size:"inherit"})),"only"===d?o.createElement("span",{"aria-hidden":!0,className:"icon-wrapper"},o.createElement(se,{name:h,size:"inherit"})):i,"right"===d&&o.createElement("span",{"aria-hidden":!0,className:"icon-wrapper margin-left-md"},p||o.createElement(se,{name:h,size:"inherit"})))}function _e(e){var t,n=e.children,r=e.className,a=e.layout,i=void 0===a?"horizontal":a,l=e.spacing,u=void 0===l||l;return o.createElement("div",{className:s()("btn-group",(t={},t["btn-group--"+i]=i,t),{"btn-group--spacing":u},r)},n)}Se.color=Object.freeze({default:"default",primary:"primary",secondary:"secondary",tertiary:"tertiary",success:"success",danger:"danger",warning:"warning",info:"info"}),Se.shape=Object.freeze({square:"square",roundedCorners:"rounded-corners",rounded:"rounded",circle:"circle"}),Se.size=Object.freeze({sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large"}),Se.style=Object.freeze({solid:"solid",outline:"outline",text:"text",none:"unstyled"}),Se.propTypes={children:a().node,className:a().string,color:a().oneOf(Object.values(Se.color)),icon:a().oneOf(["left","right","only"]),iconElement:a().element,iconName:a().string,onClick:a().func,shape:a().oneOf(Object.values(Se.shape)),size:a().oneOf(Object.values(Se.size)),style:a().oneOf(Object.values(Se.style)),styles:a().object},_e.layout=Object.freeze({horizontal:"horizontal",vertical:"vertical"}),_e.propTypes={children:a().node,className:a().string,layout:a().oneOf(Object.values(_e.layout)),spacing:a().bool};var Te=["children","className","external","history","link","linkTarget","onClick"];function Ae(e){var t=e.children,n=e.className,r=e.external,a=e.history,i=e.link,l=e.linkTarget,u=void 0===l?"_blank":l,c=e.onClick,d=te(e,Te);return o.createElement("div",ee({},d,{className:s()(n,"cursor-pointer"),onClick:function(e){a&&i&&!r?a.push(i):"undefined"!=typeof window&&i&&r&&window.open(i,u),c&&c(e)},onKeyDown:ce(c),role:"button",tabIndex:"0"}),t)}Ae.propTypes={children:a().node,className:a().string,external:a().bool,history:a().shape({push:a().func.isRequired}),link:a().string,linkTarget:a().string,onClick:a().func},a().node,a().string.isRequired;a().oneOfType([a().bool,a().number,a().string,a().shape({offset:a().oneOfType([a().number,a().string]),order:a().oneOfType([a().number,a().string]),size:a().oneOfType([a().number,a().string])})]);a().node,a().string,a().oneOf(["sm","md","lg","none"]);var Fe=o.forwardRef((function(e,t){var n=e.onSubmit,r=void 0===n?function(){}:n;return o.createElement("form",{className:s()("contact-form",e.className),onSubmit:r,ref:t},o.createElement("input",{"aria-label":"Name",id:"contactName",name:"name",placeholder:"Name",required:!0,type:"text"}),o.createElement("input",{"aria-label":"Email",id:"contactEmail",name:"email",placeholder:"Email",required:!0,type:"email"}),o.createElement("textarea",{"aria-label":"Message",id:"contactMessage",name:"message",placeholder:"Message",required:!0}),o.createElement("input",{"aria-label":"Send",id:"contactSubmit",type:"submit",value:"Send"}))}));function Ne(e){var t=e.loading,n=e.size;return o.createElement("div",{"aria-hidden":!0,className:s()("loading-spinner",{loading:void 0===t||t},void 0===n?"medium":n,e.className)},o.createElement("div",{className:"loading-spinner__animation"},o.createElement("div",null),o.createElement("div",null),o.createElement("div",null),o.createElement("div",null)))}Fe.displayName="ContactForm",Fe.propTypes={className:a().string,onSubmit:a().func},a().node,a().string,a().oneOfType([a().bool,a().oneOf(["sm","md","lg","xl","fluid"])]),a().string,a().string,a().string,a().func,a().string,a().string,Ne.size=Object.freeze({sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large"}),Ne.propTypes={className:a().string,loading:a().bool,size:a().oneOf(Object.values(Ne.size))};var Me=Object.freeze({xs:{width:320,height:180},extraSmall:{width:320,height:180},sm:{width:480,height:270},small:{width:480,height:270},md:{width:640,height:360},medium:{width:640,height:360},lg:{width:960,height:540},large:{width:960,height:540},xl:{width:1280,height:720},extraLarge:{width:1280,height:720}});function Pe(e){return null==e||"string"==typeof e&&(e.endsWith("%")||e.endsWith("px"))?e:e+"px"}function ze(e){var t=e.allowFullScreen,n=void 0===t||t,r=e.className,a=e.frameBorder,i=void 0===a?"0":a,l=e.height,u=e.id,c=void 0===u?"video-player":u,d=e.scrolling,p=void 0===d?"no":d,h=e.size,m=e.src,f=e.title,g=void 0===f?"Video Player":f,v=e.width,b=(0,o.useRef)(),y=ye(b),w="undefined"!=typeof navigator&&!navigator.onLine,k=v||h&&Me[h].width,E=l||h&&Me[h].height;return o.createElement("div",{className:s()("embedded-video",{loading:y},h,r),style:{width:Pe(k),height:Pe(E)}},o.createElement("div",{className:s()("embedded-video__wrapper","transition","fade-in",{visible:!y})},o.createElement("iframe",{allowFullScreen:n,frameBorder:i,height:E||"100%",id:c,ref:b,scrolling:p,src:m,title:g,width:k||"100%"})),y&&!w&&o.createElement(Ne,null))}ze.size=Me,ze.propTypes={allowFullScreen:a().bool,className:a().string,frameBorder:a().string,height:a().oneOfType([a().string,a().number]),id:a().string,scrolling:a().string,size:a().oneOf(Object.keys(ze.size)),src:a().string.isRequired,title:a().string,width:a().oneOfType([a().string,a().number])};a().string.isRequired,a().string,a().string,a().bool,a().bool,a().string;var Le=["autoplay","captions","className","hideBranding","hideControls","hideInfo","hideRelated","id","muted","origin","secure","startTime","title","videoId"];function je(e){var t=e.autoplay,n=void 0!==t&&t,r=e.captions,a=void 0!==r&&r,i=e.className,l=e.hideBranding,u=void 0!==l&&l,c=e.hideControls,d=void 0!==c&&c,p=e.hideInfo,h=void 0!==p&&p,m=e.hideRelated,f=void 0===m||m,g=e.id,v=void 0===g?"youtube-player":g,b=e.muted,y=void 0!==b&&b,w=e.origin,k=e.secure,E=void 0===k||k,x=e.startTime,O=e.title,C=void 0===O?"YouTube":O,S=e.videoId,_=te(e,Le),T="enablejsapi=1";T+="&origin="+w,f&&(T+="&rel=0"),d&&(T+="&controls=0"),h&&(T+="&showinfo=0"),u&&(T+="&modestbranding=1"),a&&(T+="&cc_load_policy=1"),n&&(T+="&autoplay=1"),y&&(T+="&mute=1"),x&&(T+="&start="+x);var A=E?"https":"http";return o.createElement(ze,ee({className:s()("youtube",i),id:v,src:A+"://www.youtube.com/embed/"+S+"?"+T,title:C},_))}je.propTypes={autoplay:a().bool,captions:a().bool,className:a().string,hideBranding:a().bool,hideControls:a().bool,hideInfo:a().bool,hideRelated:a().bool,id:a().string,muted:a().bool,origin:a().string.isRequired,secure:a().bool,startTime:a().oneOf([a().number,a().string]),title:a().string,videoId:a().string.isRequired};var Ie=["className","disabled","icon","iconAlignment","onBlur","onChange","onFocus","placeholder","size","type","value"];function Re(e){var t,n,r=e.className,a=e.disabled,i=e.icon,l=e.iconAlignment,u=void 0===l?"right":l,c=e.onBlur,d=void 0===c?function(){}:c,p=e.onChange,h=void 0===p?function(){}:p,m=e.onFocus,f=void 0===m?function(){}:m,g=e.placeholder,v=e.size,b=e.type,y=e.value,w=te(e,Ie),k=(0,o.useState)(!1),E=k[0],x=k[1];return o.createElement("div",{className:s()("input-wrapper",(t={},t["input-wrapper--"+v]=v,t),(n={},n["input-wrapper--icon-"+u]=i&&u,n),{focus:E,disabled:a},r)},o.createElement("input",ee({className:"input-wrapper__input",disabled:a,onBlur:function(){x(!1),d()},onChange:h,onFocus:function(){x(!0),f()},placeholder:g,type:b,value:y},w)),i&&o.createElement(se,{className:"input-wrapper__icon",name:i,size:"md"}))}function De(e){var t=e.alt,n=e.animated,r=void 0===n||n,a=e.className,i=e.height,l=e.imageClassName,u=e.ImageElementType,c=void 0===u?"img":u,d=e.imageProps,p=void 0===d?{}:d,h=e.onLoad,m=void 0===h?function(){}:h,f=e.placeholder,g=e.placeholderClassName,v=e.placeholderProps,b=void 0===v?{}:v,y=e.showLoadingSpinner,w=void 0!==y&&y,k=e.src,E=e.width,x=(0,o.useRef)(),O=function(e,t){void 0===t&&(t=function(){});var n=!ye(e);return(0,o.useEffect)((function(){n&&t()}),[n,t]),n}(x,m);return o.createElement("picture",{className:s()("progressive-image",{"progressive-image--loaded":O},{"progressive-image--animated":r},{"progressive-image--no-placeholder":!f},a)},o.createElement(c,ee({},p,{alt:p.alt||t,className:s()("progressive-image__source","img-fluid",l,p.className),width:E||p.width,height:i||p.height,ref:x,src:k})),f&&o.createElement(c,ee({},b,{alt:b.alt||t,className:s()("progressive-image__placeholder","img-fluid",g,b.className),width:E||b.width||p.width,height:i||b.height||p.height,src:f})),w&&!O&&o.createElement(Ne,null))}function $e(e){return"string"==typeof e?e:e.src}function Be(e){return e?e+"px":void 0}function qe(e,t,n){return"repeat("+(e||"auto-fit")+", minmax("+(Be(t)||0)+", "+(Be(n)||"1fr")+"))"}function He(e){var t=e.animated,n=void 0!==t&&t,r=e.animation,a=void 0===r?"fade-in-up":r,i=e.className,l=e.columns,u=e.fullWidthFirstItem,c=void 0!==u&&u,d=e.images,p=void 0===d?[]:d,h=e.maxWidth,m=e.minWidth,f=(0,o.useState)(!1),g=f[0],v=f[1],b=(0,o.useState)(0),y=b[0],w=b[1];return o.createElement("div",{className:s()("image-gallery",i)},o.createElement("div",{className:"image-gallery__thumbnails",style:{gridTemplateColumns:qe(l,m,h)}},p.map((function(e,t){var r,i="object"==typeof e,l=i?e.src:e,u=i&&e.id||l;return o.createElement("button",{"aria-label":"Image Thumbnail",className:s()("image-gallery__thumbnail",{"image-gallery__thumbnail--full-width":0===t&&c},(r={"animation-short":n},r["animation-delay-"+(t+1)]=n,r[a]=n,r),i&&e.className),key:u,onClick:function(){w(t),v(!0)}},o.createElement(De,{imageProps:i?pe(e,"className"):{},src:l}))}))),g&&o.createElement(I,{enableZoom:!1,mainSrc:$e(p[y]),nextSrc:$e(p[(y+1)%p.length]),prevSrc:$e(p[(y+p.length-1)%p.length]),onCloseRequest:function(){v(!1)},onMovePrevRequest:function(){w((y+p.length-1)%p.length)},onMoveNextRequest:function(){w((y+1)%p.length)},wrapperClassName:"image-gallery__lightbox"}))}function Ye(e){var t,n=e.backgroundColor,r=e.children,a=e.className,i=e.size,l=void 0===i?"medium":i,u=e.style,c=e.theme,d=e.transparent,p=void 0!==d&&d;return o.createElement("div",{className:s()("page-banner",(t={},t["page-banner--"+l]=l,t),{"page-banner--transparent":p},a),"data-theme":c,style:ee({backgroundColor:n},u)},r)}Re.size=Object.freeze({sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large"}),Re.iconAlignment=Object.freeze({left:"left",right:"right"}),Re.propTypes={className:a().string,disabled:a().bool,icon:a().string,iconAlignment:a().oneOf(Object.values(Re.iconAlignment)),onBlur:a().func,onChange:a().func,onFocus:a().func,placeholder:a().string,size:a().oneOf(Object.values(Re.size)),type:a().string,value:a().any},De.propTypes={alt:a().string,animated:a().bool,className:a().string,height:a().oneOfType([a().string,a().number]),imageClassName:a().string,ImageElementType:a().elementType,imageProps:a().object,onLoad:a().func,placeholder:a().string,placeholderClassName:a().string,placeholderProps:a().object,showLoadingSpinner:a().bool,src:a().string,width:a().oneOfType([a().string,a().number])},He.propTypes={animated:a().bool,animation:a().string,className:a().string,columns:a().number,fullWidthFirstItem:a().bool,images:a().arrayOf(a().oneOfType([a().shape({alt:a().string,className:a().string,id:a().string,src:a().string.isRequired}),a().string])),maxWidth:a().number,minWidth:a().number},a().node,a().string,a().element,a().oneOf(["left","right"]),a().string,a().func,a().bool,a().string,a().string,a().string,Ye.size=Object.freeze({xs:"xs",extraSmall:"extraSmall",sm:"sm",small:"small",md:"md",medium:"medium",lg:"lg",large:"large",xl:"xl",extraLarge:"extraLarge"}),Ye.propTypes={backgroundColor:a().string,children:a().node,className:a().string,size:a().oneOf(Object.values(Ye.size)),style:a().object,theme:a().string,transparent:a().bool},a().string,a().number,a().func,a().number.isRequired,a().node,a().string,a().oneOf(["sm","md","lg","none"]);a().string,a().number,a().bool,a().func,a().func,a().string,a().bool,a().string,a().node,a().bool,a().object,a().string,a().string;var Xe=["children","className","link","LinkElementType","primaryColor","secondaryColor","size","url"];function Ze(e){var t=e.children,n=e.className,r=e.link,a=e.LinkElementType,i=e.primaryColor,l=e.secondaryColor,u=e.size,c=void 0===u?Se.size.medium:u,d=e.url,p=te(e,Xe),h="string"==typeof r?J[r]:r,m=i||h.color;return o.createElement(re,{ElementType:a,external:!0,to:d||h.url,unstyled:!0},o.createElement(Se,ee({className:s()("social-button",h.key,n),icon:"left",iconElement:h.icon&&o.createElement(ge,{"aria-hidden":!0,ElementType:"i",icon:h.icon,iconName:h.key,innerPadding:0,size:"100%"}),size:c,styles:{"--btn-color-primary":m,"--btn-color-secondary":l,"--btn-color-emphasis":m},tabIndex:-1},p),t||h.name))}function Ue(e){var t,n=e.alignItems,r=e.children,a=e.direction,i=void 0===a?"column":a,l=e.justifyContent,u=e.reversed,c=void 0!==u&&u,d=e.wrap;return o.createElement("div",{className:s()("display-flex",{"flex-row":"row"===i&&!c,"flex-row-reverse":"row"===i&&c,"flex-column":"column"===i&&!c,"flex-column-reverse":"column"===i&&c,"flex-wrap":void 0!==d&&d},(t={},t["justify-content-"+l]=l,t["align-items-"+n]=n,t))},r)}Ze.shape=Se.shape,Ze.size=Se.size,Ze.style=Se.style,Ze.propTypes={children:a().node,className:a().string,link:G.isRequired,LinkElementType:a().elementType,primaryColor:a().string,secondaryColor:a().string,size:a().oneOf(Object.values(Se.size)),url:a().string},Ue.direction=Object.freeze({row:"row",column:"column"}),Ue.alignItems=Object.freeze({start:"start",end:"end",center:"center",stretch:"stretch",baseline:"baseline"}),Ue.justifyContent=Object.freeze({start:"start",end:"end",center:"center",between:"between",around:"around",evenly:"evenly"}),Ue.propTypes={alignItems:a().oneOf(Object.values(Ue.alignItems)),children:a().node,direction:a().oneOf(Object.values(Ue.direction)),justifyContent:a().oneOf(Object.values(Ue.justifyContent)),reversed:a().bool,wrap:a().bool};a().oneOf(["inherit","transparent","black","white","foreground","foreground-muted","foreground-subtle","background","surface-0","surface-1","surface-2","surface-3","surface-4","surface-5","surface-6","surface-7","surface-8","surface-9","border","default","primary","secondary","tertiary","success","danger","warning","info"]),a().oneOf([1,2,3,4,5,6,"1","2","3","4","5","6"]),a().oneOf(["xxxl","xxl","xl","lg","md","sm","xs","xxs","xxxs"]),a().oneOf([100,200,300,400,500,600,700,800,900,"100","200","300","400","500","600","700","800","900"]),a().oneOf(["0","none","xs","sm","md","lg","xl","xxl","xxxl","2xl","2xxl","2xxxl","1em","2em","3em","4em","5em","6em","7em","8em"]);a().bool,a().node,a().string,a().bool,a().elementType;a().string,a().bool,a().string,a().node,a().string,a().elementType,a().oneOfType([a().string,a().number]),a().string,a().string,a().elementType,a().object,a().number,a().string,a().string,a().object,a().bool,a().bool,a().object,a().oneOfType([a().string,a().number]),a().bool,a().node,a().string,a().bool,a().bool,a().bool,a().bool,a().bool,a().elementType},7427:function(e,t){"use strict";t.q=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var r={},a=t||{},i=e.split(";"),s=a.decode||n,l=0;l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},5651:function(){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n>/g,(function(){return"(?:"+e+")"}));return e.replace(/<>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var u=l(o),c=RegExp(l(a+" "+o+" "+i+" "+s)),d=l(o+" "+i+" "+s),p=l(a+" "+o+" "+s),h=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=r(/\((?:[^()]|<>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[f,h]),v=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),b=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,b]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,m,b]),k=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),E=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,v,b]),x={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,C=/"(?:\\.|[^\\"\r\n])*"/.source,S=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[C]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,E]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,g]),lookbehind:!0,inside:x},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:x},{pattern:n(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:x},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,p,f]),inside:x}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,v]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,h]),inside:{function:n(/^<<0>>/.source,[f]),generic:{pattern:RegExp(h),alias:"class-name",inside:x}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,g,f,E,c.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,m]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(E),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=C+"|"+O,T=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[_]),A=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[T]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,N=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,A]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,N]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[A]),inside:e.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var M=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[T]),2),z=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,M]),L=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[_]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,M]);function I(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,M]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[z]),lookbehind:!0,greedy:!0,inside:I(z,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:I(j,L)}],char:{pattern:RegExp(O),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)},1113:function(){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},5723:function(){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},4312:function(){Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},8848:function(e,t,n){var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=d.reach);x+=E.value.length,E=E.next){var O=E.value;if(t.length>e.length)return;if(!(O instanceof o)){var C,S=1;if(b){if(!(C=i(k,x,e,v))||C.index>=e.length)break;var _=C.index,T=C.index+C[0].length,A=x;for(A+=E.value.length;_>=A;)A+=(E=E.next).value.length;if(x=A-=E.value.length,E.value instanceof o)continue;for(var F=E;F!==t.tail&&(Ad.reach&&(d.reach=z);var L=E.prev;if(M&&(L=u(t,L,M),x+=M.length),c(t,L,S),E=u(t,L,new o(p,g?a.tokenize(N,g):N,y,N)),P&&u(t,E,P),S>1){var j={cause:p+","+m,reach:z};s(e,t,n,E.prev,x,j),d&&j.reach>d.reach&&(d.reach=j.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a"+o.content+""},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,i=n.immediateClose;e.postMessage(a.highlight(o,a.languages[r],r)),i&&e.close()}),!1),a):a;var d=a.util.currentScript();function p(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;"loading"===h||"interactive"===h&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:a},r.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",a="loaded",o="pre[data-src]:not(["+t+'="'+a+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",(function(e){e.selector+=", "+o})),r.hooks.add("before-sanity-check",(function(i){var s=i.element;if(s.matches(o)){i.code="",s.setAttribute(t,n);var l=s.appendChild(document.createElement("CODE"));l.textContent="Loading…";var u=s.getAttribute("data-src"),c=i.language;if("none"===c){var d=(/\.(\w+)$/.exec(u)||[,"none"])[1];c=e[d]||d}r.util.setLanguage(l,c),r.util.setLanguage(s,c);var p=r.plugins.autoloader;p&&p.loadLanguages(c),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(u,(function(e){s.setAttribute(t,a);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],a=t[3];return r?a?[n,Number(a)]:[n,void 0]:[n,n]}}(s.getAttribute("data-range"));if(n){var o=e.split(/\r\n?|\n/g),i=n[0],u=null==n[1]?o.length:n[1];i<0&&(i+=o.length),i=Math.max(0,Math.min(i-1,o.length)),u<0&&(u+=o.length),u=Math.max(0,Math.min(u,o.length)),e=o.slice(i,u).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(i+1))}l.textContent=e,r.highlightElement(l)}),(function(e){s.setAttribute(t,"failed"),l.textContent=e}))}})),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(o),a=0;t=n[a++];)r.highlightElement(t)}};var i=!1;r.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},1720:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t0&&0===(b-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),m.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":a(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,a=e.bodyOpenClassName,o=e.parentSelector,i=o&&o().ownerDocument||document;a&&d.add(i.body,a),r&&d.add(i.getElementsByTagName("html")[0],r),n&&(b+=1,c.hide(t)),m.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,a=e.overlayClassName,o=e.defaultStyles,i=e.children,s=n?{}:o.content,l=a?{}:o.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",a),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(c,i);return this.props.overlayElement(u,d)}}]),t}(i.Component);y.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},y.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=y,e.exports=t.default},6462:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return s=t||s},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=u(e)[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){a.value.setAttribute("aria-hidden","true")}}catch(i){n=!0,r=i}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var a,o=u(e)[Symbol.iterator]();!(t=(a=o.next()).done);t=!0){a.value.removeAttribute("aria-hidden")}}catch(i){n=!0,r=i}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,a=n(9771),o=(r=a)&&r.__esModule?r:{default:r},i=n(834);var s=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7727:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,s],t=0;t0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(i.parentElement&&i.parentElement.removeChild(i),s.parentElement&&s.parentElement.removeChild(s))}))},4838:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)a(e,n[t]);var o=document.body;for(var i in r)a(o,r[i]);n={},r={}},t.log=function(){0};var n={},r={};function a(e,t){e.classList.remove(t)}t.add=function(e,t){return a=e.classList,o="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),a.add(e)}));var a,o},t.remove=function(e,t){return a=e.classList,o="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&a.remove(e)}));var a,o}},7791:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){0},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(n){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var r,a=n(2411),o=(r=a)&&r.__esModule?r:{default:r};var i=[],s=null,l=!1;function u(){l=!0}function c(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},9628:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},834:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,a=n(411);var o=((r=a)&&r.__esModule?r:{default:r}).default,i=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM;t.default=i},7067:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,a=t.shiftKey,s=n[0],l=n[n.length-1],u=i();if(e===u){if(!a)return;r=l}l!==u||a||(r=s);s===u&&a&&(r=l);if(r)return t.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=n.indexOf(u);d>-1&&(d+=a?-1:1);if(void 0===(r=n[d]))return t.preventDefault(),void(r=a?l:s).focus();t.preventDefault(),r.focus()};var r,a=n(2411),o=(r=a)&&r.__esModule?r:{default:r};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},2411:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(s)};var n="none",r="contents",a=/input|select|textarea|button|object|iframe/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var a=window.getComputedStyle(e),o=a.getPropertyValue("display");return t?o!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,a):o===n}catch(i){return console.warn("Failed to inspect element style"),!1}}function i(e,t){var n=e.nodeName.toLowerCase();return(a.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),o(t))return!1;t=t.parentNode}return!0}(e)}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&i(e,!n)}e.exports=t.default},312:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(1720),o=(r=a)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},9771:function(e){"use strict";var t=function(){};e.exports=t},6942:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t= 0) {\r\n this.changeListeners.splice(idx, 1);\r\n }\r\n };\r\n return Cookies;\r\n}());\r\nexport default Cookies;\r\n","import Cookies from 'universal-cookie';\r\nexport default Cookies;\r\n","import * as React from 'react';\r\nimport Cookies from './Cookies';\r\nvar CookiesContext = React.createContext(new Cookies());\r\nexport var Provider = CookiesContext.Provider, Consumer = CookiesContext.Consumer;\r\nexport default CookiesContext;\r\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from 'react-modal';\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\n/**\n * Placeholder for future translate functionality\n */\nfunction translate(str) {\n var replaceStrings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (!str) {\n return '';\n }\n\n var translated = str;\n\n if (replaceStrings) {\n Object.keys(replaceStrings).forEach(function (placeholder) {\n translated = translated.replace(placeholder, replaceStrings[placeholder]);\n });\n }\n\n return translated;\n}\nfunction getWindowWidth() {\n return typeof global.window !== 'undefined' ? global.window.innerWidth : 0;\n}\nfunction getWindowHeight() {\n return typeof global.window !== 'undefined' ? global.window.innerHeight : 0;\n}\n\nvar isCrossOriginFrame = function isCrossOriginFrame() {\n try {\n return global.window.location.hostname !== global.window.parent.location.hostname;\n } catch (e) {\n return true;\n }\n}; // Get the highest window context that isn't cross-origin\n// (When in an iframe)\n\n\nfunction getHighestSafeWindowContext() {\n var self = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.window.self;\n\n // If we reached the top level, return self\n if (self === global.window.top) {\n return self;\n } // If parent is the same origin, we can move up one context\n // Reference: https://stackoverflow.com/a/21965342/1601953\n\n\n if (!isCrossOriginFrame()) {\n return getHighestSafeWindowContext(self.parent);\n } // If a different origin, we consider the current level\n // as the top reachable one\n\n\n return self;\n}\n\n// Min image zoom level\nvar MIN_ZOOM_LEVEL = 0; // Max image zoom level\n\nvar MAX_ZOOM_LEVEL = 300; // Size ratio between previous and next zoom levels\n\nvar ZOOM_RATIO = 1.007; // How much to increase/decrease the zoom level when the zoom buttons are clicked\n\nvar ZOOM_BUTTON_INCREMENT_SIZE = 100; // Used to judge the amount of horizontal scroll needed to initiate a image move\n\nvar WHEEL_MOVE_X_THRESHOLD = 200; // Used to judge the amount of vertical scroll needed to initiate a zoom action\n\nvar WHEEL_MOVE_Y_THRESHOLD = 1;\nvar KEYS = {\n ESC: 27,\n LEFT_ARROW: 37,\n RIGHT_ARROW: 39\n}; // Actions\n\nvar ACTION_NONE = 0;\nvar ACTION_MOVE = 1;\nvar ACTION_SWIPE = 2;\nvar ACTION_PINCH = 3;\n\nvar SOURCE_ANY = 0;\nvar SOURCE_MOUSE = 1;\nvar SOURCE_TOUCH = 2;\nvar SOURCE_POINTER = 3; // Minimal swipe distance\n\nvar MIN_SWIPE_DISTANCE = 200;\n\nvar ReactImageLightbox = /*#__PURE__*/function (_Component) {\n _inherits(ReactImageLightbox, _Component);\n\n var _super = _createSuper(ReactImageLightbox);\n\n function ReactImageLightbox(props) {\n var _this;\n\n _classCallCheck(this, ReactImageLightbox);\n\n _this = _super.call(this, props);\n _this.state = {\n //-----------------------------\n // Animation\n //-----------------------------\n // Lightbox is closing\n // When Lightbox is mounted, if animation is enabled it will open with the reverse of the closing animation\n isClosing: !props.animationDisabled,\n // Component parts should animate (e.g., when images are moving, or image is being zoomed)\n shouldAnimate: false,\n //-----------------------------\n // Zoom settings\n //-----------------------------\n // Zoom level of image\n zoomLevel: MIN_ZOOM_LEVEL,\n //-----------------------------\n // Image position settings\n //-----------------------------\n // Horizontal offset from center\n offsetX: 0,\n // Vertical offset from center\n offsetY: 0,\n // image load error for srcType\n loadErrorStatus: {}\n }; // Refs\n\n _this.outerEl = /*#__PURE__*/React.createRef();\n _this.zoomInBtn = /*#__PURE__*/React.createRef();\n _this.zoomOutBtn = /*#__PURE__*/React.createRef();\n _this.caption = /*#__PURE__*/React.createRef();\n _this.closeIfClickInner = _this.closeIfClickInner.bind(_assertThisInitialized(_this));\n _this.handleImageDoubleClick = _this.handleImageDoubleClick.bind(_assertThisInitialized(_this));\n _this.handleImageMouseWheel = _this.handleImageMouseWheel.bind(_assertThisInitialized(_this));\n _this.handleKeyInput = _this.handleKeyInput.bind(_assertThisInitialized(_this));\n _this.handleMouseUp = _this.handleMouseUp.bind(_assertThisInitialized(_this));\n _this.handleMouseDown = _this.handleMouseDown.bind(_assertThisInitialized(_this));\n _this.handleMouseMove = _this.handleMouseMove.bind(_assertThisInitialized(_this));\n _this.handleOuterMousewheel = _this.handleOuterMousewheel.bind(_assertThisInitialized(_this));\n _this.handleTouchStart = _this.handleTouchStart.bind(_assertThisInitialized(_this));\n _this.handleTouchMove = _this.handleTouchMove.bind(_assertThisInitialized(_this));\n _this.handleTouchEnd = _this.handleTouchEnd.bind(_assertThisInitialized(_this));\n _this.handlePointerEvent = _this.handlePointerEvent.bind(_assertThisInitialized(_this));\n _this.handleCaptionMousewheel = _this.handleCaptionMousewheel.bind(_assertThisInitialized(_this));\n _this.handleWindowResize = _this.handleWindowResize.bind(_assertThisInitialized(_this));\n _this.handleZoomInButtonClick = _this.handleZoomInButtonClick.bind(_assertThisInitialized(_this));\n _this.handleZoomOutButtonClick = _this.handleZoomOutButtonClick.bind(_assertThisInitialized(_this));\n _this.requestClose = _this.requestClose.bind(_assertThisInitialized(_this));\n _this.requestMoveNext = _this.requestMoveNext.bind(_assertThisInitialized(_this));\n _this.requestMovePrev = _this.requestMovePrev.bind(_assertThisInitialized(_this)); // Timeouts - always clear it before umount\n\n _this.timeouts = []; // Current action\n\n _this.currentAction = ACTION_NONE; // Events source\n\n _this.eventsSource = SOURCE_ANY; // Empty pointers list\n\n _this.pointerList = []; // Prevent inner close\n\n _this.preventInnerClose = false;\n _this.preventInnerCloseTimeout = null; // Used to disable animation when changing props.mainSrc|nextSrc|prevSrc\n\n _this.keyPressed = false; // Used to store load state / dimensions of images\n\n _this.imageCache = {}; // Time the last keydown event was called (used in keyboard action rate limiting)\n\n _this.lastKeyDownTime = 0; // Used for debouncing window resize event\n\n _this.resizeTimeout = null; // Used to determine when actions are triggered by the scroll wheel\n\n _this.wheelActionTimeout = null;\n _this.resetScrollTimeout = null;\n _this.scrollX = 0;\n _this.scrollY = 0; // Used in panning zoomed images\n\n _this.moveStartX = 0;\n _this.moveStartY = 0;\n _this.moveStartOffsetX = 0;\n _this.moveStartOffsetY = 0; // Used to swipe\n\n _this.swipeStartX = 0;\n _this.swipeStartY = 0;\n _this.swipeEndX = 0;\n _this.swipeEndY = 0; // Used to pinch\n\n _this.pinchTouchList = null;\n _this.pinchDistance = 0; // Used to differentiate between images with identical src\n\n _this.keyCounter = 0; // Used to detect a move when all src's remain unchanged (four or more of the same image in a row)\n\n _this.moveRequested = false;\n return _this;\n }\n\n _createClass(ReactImageLightbox, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n if (!this.props.animationDisabled) {\n // Make opening animation play\n this.setState({\n isClosing: false\n });\n } // Prevents cross-origin errors when using a cross-origin iframe\n\n\n this.windowContext = getHighestSafeWindowContext();\n this.listeners = {\n resize: this.handleWindowResize,\n mouseup: this.handleMouseUp,\n touchend: this.handleTouchEnd,\n touchcancel: this.handleTouchEnd,\n pointerdown: this.handlePointerEvent,\n pointermove: this.handlePointerEvent,\n pointerup: this.handlePointerEvent,\n pointercancel: this.handlePointerEvent\n };\n Object.keys(this.listeners).forEach(function (type) {\n _this2.windowContext.addEventListener(type, _this2.listeners[type]);\n });\n this.loadAllImages();\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n var _this3 = this;\n\n this.getSrcTypes().forEach(function (srcType) {\n if (_this3.props[srcType.name] !== nextProps[srcType.name]) {\n _this3.moveRequested = false;\n }\n }); // Wait for move...\n\n return !this.moveRequested;\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var _this4 = this;\n\n var sourcesChanged = false;\n var prevSrcDict = {};\n var nextSrcDict = {};\n this.getSrcTypes().forEach(function (srcType) {\n if (prevProps[srcType.name] !== _this4.props[srcType.name]) {\n sourcesChanged = true;\n prevSrcDict[prevProps[srcType.name]] = true;\n nextSrcDict[_this4.props[srcType.name]] = true;\n }\n });\n\n if (sourcesChanged || this.moveRequested) {\n // Reset the loaded state for images not rendered next\n Object.keys(prevSrcDict).forEach(function (prevSrc) {\n if (!(prevSrc in nextSrcDict) && prevSrc in _this4.imageCache) {\n _this4.imageCache[prevSrc].loaded = false;\n }\n });\n this.moveRequested = false; // Load any new images\n\n this.loadAllImages(this.props);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n var _this5 = this;\n\n this.didUnmount = true;\n Object.keys(this.listeners).forEach(function (type) {\n _this5.windowContext.removeEventListener(type, _this5.listeners[type]);\n });\n this.timeouts.forEach(function (tid) {\n return clearTimeout(tid);\n });\n }\n }, {\n key: \"setTimeout\",\n value: function (_setTimeout) {\n function setTimeout(_x, _x2) {\n return _setTimeout.apply(this, arguments);\n }\n\n setTimeout.toString = function () {\n return _setTimeout.toString();\n };\n\n return setTimeout;\n }(function (func, time) {\n var _this6 = this;\n\n var id = setTimeout(function () {\n _this6.timeouts = _this6.timeouts.filter(function (tid) {\n return tid !== id;\n });\n func();\n }, time);\n this.timeouts.push(id);\n return id;\n })\n }, {\n key: \"setPreventInnerClose\",\n value: function setPreventInnerClose() {\n var _this7 = this;\n\n if (this.preventInnerCloseTimeout) {\n this.clearTimeout(this.preventInnerCloseTimeout);\n }\n\n this.preventInnerClose = true;\n this.preventInnerCloseTimeout = this.setTimeout(function () {\n _this7.preventInnerClose = false;\n _this7.preventInnerCloseTimeout = null;\n }, 100);\n } // Get info for the best suited image to display with the given srcType\n\n }, {\n key: \"getBestImageForType\",\n value: function getBestImageForType(srcType) {\n var imageSrc = this.props[srcType];\n var fitSizes = {};\n\n if (this.isImageLoaded(imageSrc)) {\n // Use full-size image if available\n fitSizes = this.getFitSizes(this.imageCache[imageSrc].width, this.imageCache[imageSrc].height);\n } else if (this.isImageLoaded(this.props[\"\".concat(srcType, \"Thumbnail\")])) {\n // Fall back to using thumbnail if the image has not been loaded\n imageSrc = this.props[\"\".concat(srcType, \"Thumbnail\")];\n fitSizes = this.getFitSizes(this.imageCache[imageSrc].width, this.imageCache[imageSrc].height, true);\n } else {\n return null;\n }\n\n return {\n src: imageSrc,\n height: this.imageCache[imageSrc].height,\n width: this.imageCache[imageSrc].width,\n targetHeight: fitSizes.height,\n targetWidth: fitSizes.width\n };\n } // Get sizing for when an image is larger than the window\n\n }, {\n key: \"getFitSizes\",\n value: function getFitSizes(width, height, stretch) {\n var boxSize = this.getLightboxRect();\n var maxHeight = boxSize.height - this.props.imagePadding * 2;\n var maxWidth = boxSize.width - this.props.imagePadding * 2;\n\n if (!stretch) {\n maxHeight = Math.min(maxHeight, height);\n maxWidth = Math.min(maxWidth, width);\n }\n\n var maxRatio = maxWidth / maxHeight;\n var srcRatio = width / height;\n\n if (maxRatio > srcRatio) {\n // height is the constraining dimension of the photo\n return {\n width: width * maxHeight / height,\n height: maxHeight\n };\n }\n\n return {\n width: maxWidth,\n height: height * maxWidth / width\n };\n }\n }, {\n key: \"getMaxOffsets\",\n value: function getMaxOffsets() {\n var zoomLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state.zoomLevel;\n var currentImageInfo = this.getBestImageForType('mainSrc');\n\n if (currentImageInfo === null) {\n return {\n maxX: 0,\n minX: 0,\n maxY: 0,\n minY: 0\n };\n }\n\n var boxSize = this.getLightboxRect();\n var zoomMultiplier = this.getZoomMultiplier(zoomLevel);\n var maxX = 0;\n\n if (zoomMultiplier * currentImageInfo.width - boxSize.width < 0) {\n // if there is still blank space in the X dimension, don't limit except to the opposite edge\n maxX = (boxSize.width - zoomMultiplier * currentImageInfo.width) / 2;\n } else {\n maxX = (zoomMultiplier * currentImageInfo.width - boxSize.width) / 2;\n }\n\n var maxY = 0;\n\n if (zoomMultiplier * currentImageInfo.height - boxSize.height < 0) {\n // if there is still blank space in the Y dimension, don't limit except to the opposite edge\n maxY = (boxSize.height - zoomMultiplier * currentImageInfo.height) / 2;\n } else {\n maxY = (zoomMultiplier * currentImageInfo.height - boxSize.height) / 2;\n }\n\n return {\n maxX: maxX,\n maxY: maxY,\n minX: -1 * maxX,\n minY: -1 * maxY\n };\n } // Get image src types\n\n }, {\n key: \"getSrcTypes\",\n value: function getSrcTypes() {\n return [{\n name: 'mainSrc',\n keyEnding: \"i\".concat(this.keyCounter)\n }, {\n name: 'mainSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter)\n }, {\n name: 'nextSrc',\n keyEnding: \"i\".concat(this.keyCounter + 1)\n }, {\n name: 'nextSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter + 1)\n }, {\n name: 'prevSrc',\n keyEnding: \"i\".concat(this.keyCounter - 1)\n }, {\n name: 'prevSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter - 1)\n }];\n }\n /**\n * Get sizing when the image is scaled\n */\n\n }, {\n key: \"getZoomMultiplier\",\n value: function getZoomMultiplier() {\n var zoomLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state.zoomLevel;\n return Math.pow(ZOOM_RATIO, zoomLevel);\n }\n /**\n * Get the size of the lightbox in pixels\n */\n\n }, {\n key: \"getLightboxRect\",\n value: function getLightboxRect() {\n if (this.outerEl.current) {\n return this.outerEl.current.getBoundingClientRect();\n }\n\n return {\n width: getWindowWidth(),\n height: getWindowHeight(),\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n }\n }, {\n key: \"clearTimeout\",\n value: function (_clearTimeout) {\n function clearTimeout(_x3) {\n return _clearTimeout.apply(this, arguments);\n }\n\n clearTimeout.toString = function () {\n return _clearTimeout.toString();\n };\n\n return clearTimeout;\n }(function (id) {\n this.timeouts = this.timeouts.filter(function (tid) {\n return tid !== id;\n });\n clearTimeout(id);\n } // Change zoom level\n )\n }, {\n key: \"changeZoom\",\n value: function changeZoom(zoomLevel, clientX, clientY) {\n // Ignore if zoom disabled\n if (!this.props.enableZoom) {\n return;\n } // Constrain zoom level to the set bounds\n\n\n var nextZoomLevel = Math.max(MIN_ZOOM_LEVEL, Math.min(MAX_ZOOM_LEVEL, zoomLevel)); // Ignore requests that don't change the zoom level\n\n if (nextZoomLevel === this.state.zoomLevel) {\n return;\n }\n\n if (nextZoomLevel === MIN_ZOOM_LEVEL) {\n // Snap back to center if zoomed all the way out\n this.setState({\n zoomLevel: nextZoomLevel,\n offsetX: 0,\n offsetY: 0\n });\n return;\n }\n\n var imageBaseSize = this.getBestImageForType('mainSrc');\n\n if (imageBaseSize === null) {\n return;\n }\n\n var currentZoomMultiplier = this.getZoomMultiplier();\n var nextZoomMultiplier = this.getZoomMultiplier(nextZoomLevel); // Default to the center of the image to zoom when no mouse position specified\n\n var boxRect = this.getLightboxRect();\n var pointerX = typeof clientX !== 'undefined' ? clientX - boxRect.left : boxRect.width / 2;\n var pointerY = typeof clientY !== 'undefined' ? clientY - boxRect.top : boxRect.height / 2;\n var currentImageOffsetX = (boxRect.width - imageBaseSize.width * currentZoomMultiplier) / 2;\n var currentImageOffsetY = (boxRect.height - imageBaseSize.height * currentZoomMultiplier) / 2;\n var currentImageRealOffsetX = currentImageOffsetX - this.state.offsetX;\n var currentImageRealOffsetY = currentImageOffsetY - this.state.offsetY;\n var currentPointerXRelativeToImage = (pointerX - currentImageRealOffsetX) / currentZoomMultiplier;\n var currentPointerYRelativeToImage = (pointerY - currentImageRealOffsetY) / currentZoomMultiplier;\n var nextImageRealOffsetX = pointerX - currentPointerXRelativeToImage * nextZoomMultiplier;\n var nextImageRealOffsetY = pointerY - currentPointerYRelativeToImage * nextZoomMultiplier;\n var nextImageOffsetX = (boxRect.width - imageBaseSize.width * nextZoomMultiplier) / 2;\n var nextImageOffsetY = (boxRect.height - imageBaseSize.height * nextZoomMultiplier) / 2;\n var nextOffsetX = nextImageOffsetX - nextImageRealOffsetX;\n var nextOffsetY = nextImageOffsetY - nextImageRealOffsetY; // When zooming out, limit the offset so things don't get left askew\n\n if (this.currentAction !== ACTION_PINCH) {\n var maxOffsets = this.getMaxOffsets();\n\n if (this.state.zoomLevel > nextZoomLevel) {\n nextOffsetX = Math.max(maxOffsets.minX, Math.min(maxOffsets.maxX, nextOffsetX));\n nextOffsetY = Math.max(maxOffsets.minY, Math.min(maxOffsets.maxY, nextOffsetY));\n }\n }\n\n this.setState({\n zoomLevel: nextZoomLevel,\n offsetX: nextOffsetX,\n offsetY: nextOffsetY\n });\n }\n }, {\n key: \"closeIfClickInner\",\n value: function closeIfClickInner(event) {\n if (!this.preventInnerClose && event.target.className.search(/\\bril-inner\\b/) > -1) {\n this.requestClose(event);\n }\n }\n /**\n * Handle user keyboard actions\n */\n\n }, {\n key: \"handleKeyInput\",\n value: function handleKeyInput(event) {\n event.stopPropagation(); // Ignore key input during animations\n\n if (this.isAnimating()) {\n return;\n } // Allow slightly faster navigation through the images when user presses keys repeatedly\n\n\n if (event.type === 'keyup') {\n this.lastKeyDownTime -= this.props.keyRepeatKeyupBonus;\n return;\n }\n\n var keyCode = event.which || event.keyCode; // Ignore key presses that happen too close to each other (when rapid fire key pressing or holding down the key)\n // But allow it if it's a lightbox closing action\n\n var currentTime = new Date();\n\n if (currentTime.getTime() - this.lastKeyDownTime < this.props.keyRepeatLimit && keyCode !== KEYS.ESC) {\n return;\n }\n\n this.lastKeyDownTime = currentTime.getTime();\n\n switch (keyCode) {\n // ESC key closes the lightbox\n case KEYS.ESC:\n event.preventDefault();\n this.requestClose(event);\n break;\n // Left arrow key moves to previous image\n\n case KEYS.LEFT_ARROW:\n if (!this.props.prevSrc) {\n return;\n }\n\n event.preventDefault();\n this.keyPressed = true;\n this.requestMovePrev(event);\n break;\n // Right arrow key moves to next image\n\n case KEYS.RIGHT_ARROW:\n if (!this.props.nextSrc) {\n return;\n }\n\n event.preventDefault();\n this.keyPressed = true;\n this.requestMoveNext(event);\n break;\n }\n }\n /**\n * Handle a mouse wheel event over the lightbox container\n */\n\n }, {\n key: \"handleOuterMousewheel\",\n value: function handleOuterMousewheel(event) {\n var _this8 = this;\n\n // Prevent scrolling of the background\n event.stopPropagation();\n var xThreshold = WHEEL_MOVE_X_THRESHOLD;\n var actionDelay = 0;\n var imageMoveDelay = 500;\n this.clearTimeout(this.resetScrollTimeout);\n this.resetScrollTimeout = this.setTimeout(function () {\n _this8.scrollX = 0;\n _this8.scrollY = 0;\n }, 300); // Prevent rapid-fire zoom behavior\n\n if (this.wheelActionTimeout !== null || this.isAnimating()) {\n return;\n }\n\n if (Math.abs(event.deltaY) < Math.abs(event.deltaX)) {\n // handle horizontal scrolls with image moves\n this.scrollY = 0;\n this.scrollX += event.deltaX;\n var bigLeapX = xThreshold / 2; // If the scroll amount has accumulated sufficiently, or a large leap was taken\n\n if (this.scrollX >= xThreshold || event.deltaX >= bigLeapX) {\n // Scroll right moves to next\n this.requestMoveNext(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n } else if (this.scrollX <= -1 * xThreshold || event.deltaX <= -1 * bigLeapX) {\n // Scroll left moves to previous\n this.requestMovePrev(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n }\n } // Allow successive actions after the set delay\n\n\n if (actionDelay !== 0) {\n this.wheelActionTimeout = this.setTimeout(function () {\n _this8.wheelActionTimeout = null;\n }, actionDelay);\n }\n }\n }, {\n key: \"handleImageMouseWheel\",\n value: function handleImageMouseWheel(event) {\n var yThreshold = WHEEL_MOVE_Y_THRESHOLD;\n\n if (Math.abs(event.deltaY) >= Math.abs(event.deltaX)) {\n event.stopPropagation(); // If the vertical scroll amount was large enough, perform a zoom\n\n if (Math.abs(event.deltaY) < yThreshold) {\n return;\n }\n\n this.scrollX = 0;\n this.scrollY += event.deltaY;\n this.changeZoom(this.state.zoomLevel - event.deltaY, event.clientX, event.clientY);\n }\n }\n /**\n * Handle a double click on the current image\n */\n\n }, {\n key: \"handleImageDoubleClick\",\n value: function handleImageDoubleClick(event) {\n if (this.state.zoomLevel > MIN_ZOOM_LEVEL) {\n // A double click when zoomed in zooms all the way out\n this.changeZoom(MIN_ZOOM_LEVEL, event.clientX, event.clientY);\n } else {\n // A double click when zoomed all the way out zooms in\n this.changeZoom(this.state.zoomLevel + ZOOM_BUTTON_INCREMENT_SIZE, event.clientX, event.clientY);\n }\n }\n }, {\n key: \"shouldHandleEvent\",\n value: function shouldHandleEvent(source) {\n if (this.eventsSource === source) {\n return true;\n }\n\n if (this.eventsSource === SOURCE_ANY) {\n this.eventsSource = source;\n return true;\n }\n\n switch (source) {\n case SOURCE_MOUSE:\n return false;\n\n case SOURCE_TOUCH:\n this.eventsSource = SOURCE_TOUCH;\n this.filterPointersBySource();\n return true;\n\n case SOURCE_POINTER:\n if (this.eventsSource === SOURCE_MOUSE) {\n this.eventsSource = SOURCE_POINTER;\n this.filterPointersBySource();\n return true;\n }\n\n return false;\n\n default:\n return false;\n }\n }\n }, {\n key: \"addPointer\",\n value: function addPointer(pointer) {\n this.pointerList.push(pointer);\n }\n }, {\n key: \"removePointer\",\n value: function removePointer(pointer) {\n this.pointerList = this.pointerList.filter(function (_ref) {\n var id = _ref.id;\n return id !== pointer.id;\n });\n }\n }, {\n key: \"filterPointersBySource\",\n value: function filterPointersBySource() {\n var _this9 = this;\n\n this.pointerList = this.pointerList.filter(function (_ref2) {\n var source = _ref2.source;\n return source === _this9.eventsSource;\n });\n }\n }, {\n key: \"handleMouseDown\",\n value: function handleMouseDown(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE) && ReactImageLightbox.isTargetMatchImage(event.target)) {\n this.addPointer(ReactImageLightbox.parseMouseEvent(event));\n this.multiPointerStart(event);\n }\n }\n }, {\n key: \"handleMouseMove\",\n value: function handleMouseMove(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE)) {\n this.multiPointerMove(event, [ReactImageLightbox.parseMouseEvent(event)]);\n }\n }\n }, {\n key: \"handleMouseUp\",\n value: function handleMouseUp(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE)) {\n this.removePointer(ReactImageLightbox.parseMouseEvent(event));\n this.multiPointerEnd(event);\n }\n }\n }, {\n key: \"handlePointerEvent\",\n value: function handlePointerEvent(event) {\n if (this.shouldHandleEvent(SOURCE_POINTER)) {\n switch (event.type) {\n case 'pointerdown':\n if (ReactImageLightbox.isTargetMatchImage(event.target)) {\n this.addPointer(ReactImageLightbox.parsePointerEvent(event));\n this.multiPointerStart(event);\n }\n\n break;\n\n case 'pointermove':\n this.multiPointerMove(event, [ReactImageLightbox.parsePointerEvent(event)]);\n break;\n\n case 'pointerup':\n case 'pointercancel':\n this.removePointer(ReactImageLightbox.parsePointerEvent(event));\n this.multiPointerEnd(event);\n break;\n }\n }\n }\n }, {\n key: \"handleTouchStart\",\n value: function handleTouchStart(event) {\n var _this10 = this;\n\n if (this.shouldHandleEvent(SOURCE_TOUCH) && ReactImageLightbox.isTargetMatchImage(event.target)) {\n [].forEach.call(event.changedTouches, function (eventTouch) {\n return _this10.addPointer(ReactImageLightbox.parseTouchPointer(eventTouch));\n });\n this.multiPointerStart(event);\n }\n }\n }, {\n key: \"handleTouchMove\",\n value: function handleTouchMove(event) {\n if (this.shouldHandleEvent(SOURCE_TOUCH)) {\n this.multiPointerMove(event, [].map.call(event.changedTouches, function (eventTouch) {\n return ReactImageLightbox.parseTouchPointer(eventTouch);\n }));\n }\n }\n }, {\n key: \"handleTouchEnd\",\n value: function handleTouchEnd(event) {\n var _this11 = this;\n\n if (this.shouldHandleEvent(SOURCE_TOUCH)) {\n [].map.call(event.changedTouches, function (touch) {\n return _this11.removePointer(ReactImageLightbox.parseTouchPointer(touch));\n });\n this.multiPointerEnd(event);\n }\n }\n }, {\n key: \"decideMoveOrSwipe\",\n value: function decideMoveOrSwipe(pointer) {\n if (this.state.zoomLevel <= MIN_ZOOM_LEVEL) {\n this.handleSwipeStart(pointer);\n } else {\n this.handleMoveStart(pointer);\n }\n }\n }, {\n key: \"multiPointerStart\",\n value: function multiPointerStart(event) {\n this.handleEnd(null);\n\n switch (this.pointerList.length) {\n case 1:\n {\n event.preventDefault();\n this.decideMoveOrSwipe(this.pointerList[0]);\n break;\n }\n\n case 2:\n {\n event.preventDefault();\n this.handlePinchStart(this.pointerList);\n break;\n }\n }\n }\n }, {\n key: \"multiPointerMove\",\n value: function multiPointerMove(event, pointerList) {\n switch (this.currentAction) {\n case ACTION_MOVE:\n {\n event.preventDefault();\n this.handleMove(pointerList[0]);\n break;\n }\n\n case ACTION_SWIPE:\n {\n event.preventDefault();\n this.handleSwipe(pointerList[0]);\n break;\n }\n\n case ACTION_PINCH:\n {\n event.preventDefault();\n this.handlePinch(pointerList);\n break;\n }\n }\n }\n }, {\n key: \"multiPointerEnd\",\n value: function multiPointerEnd(event) {\n if (this.currentAction !== ACTION_NONE) {\n this.setPreventInnerClose();\n this.handleEnd(event);\n }\n\n switch (this.pointerList.length) {\n case 0:\n {\n this.eventsSource = SOURCE_ANY;\n break;\n }\n\n case 1:\n {\n event.preventDefault();\n this.decideMoveOrSwipe(this.pointerList[0]);\n break;\n }\n\n case 2:\n {\n event.preventDefault();\n this.handlePinchStart(this.pointerList);\n break;\n }\n }\n }\n }, {\n key: \"handleEnd\",\n value: function handleEnd(event) {\n switch (this.currentAction) {\n case ACTION_MOVE:\n this.handleMoveEnd(event);\n break;\n\n case ACTION_SWIPE:\n this.handleSwipeEnd(event);\n break;\n\n case ACTION_PINCH:\n this.handlePinchEnd(event);\n break;\n }\n } // Handle move start over the lightbox container\n // This happens:\n // - On a mouseDown event\n // - On a touchstart event\n\n }, {\n key: \"handleMoveStart\",\n value: function handleMoveStart(_ref3) {\n var clientX = _ref3.x,\n clientY = _ref3.y;\n\n if (!this.props.enableZoom) {\n return;\n }\n\n this.currentAction = ACTION_MOVE;\n this.moveStartX = clientX;\n this.moveStartY = clientY;\n this.moveStartOffsetX = this.state.offsetX;\n this.moveStartOffsetY = this.state.offsetY;\n } // Handle dragging over the lightbox container\n // This happens:\n // - After a mouseDown and before a mouseUp event\n // - After a touchstart and before a touchend event\n\n }, {\n key: \"handleMove\",\n value: function handleMove(_ref4) {\n var clientX = _ref4.x,\n clientY = _ref4.y;\n var newOffsetX = this.moveStartX - clientX + this.moveStartOffsetX;\n var newOffsetY = this.moveStartY - clientY + this.moveStartOffsetY;\n\n if (this.state.offsetX !== newOffsetX || this.state.offsetY !== newOffsetY) {\n this.setState({\n offsetX: newOffsetX,\n offsetY: newOffsetY\n });\n }\n }\n }, {\n key: \"handleMoveEnd\",\n value: function handleMoveEnd() {\n var _this12 = this;\n\n this.currentAction = ACTION_NONE;\n this.moveStartX = 0;\n this.moveStartY = 0;\n this.moveStartOffsetX = 0;\n this.moveStartOffsetY = 0; // Snap image back into frame if outside max offset range\n\n var maxOffsets = this.getMaxOffsets();\n var nextOffsetX = Math.max(maxOffsets.minX, Math.min(maxOffsets.maxX, this.state.offsetX));\n var nextOffsetY = Math.max(maxOffsets.minY, Math.min(maxOffsets.maxY, this.state.offsetY));\n\n if (nextOffsetX !== this.state.offsetX || nextOffsetY !== this.state.offsetY) {\n this.setState({\n offsetX: nextOffsetX,\n offsetY: nextOffsetY,\n shouldAnimate: true\n });\n this.setTimeout(function () {\n _this12.setState({\n shouldAnimate: false\n });\n }, this.props.animationDuration);\n }\n }\n }, {\n key: \"handleSwipeStart\",\n value: function handleSwipeStart(_ref5) {\n var clientX = _ref5.x,\n clientY = _ref5.y;\n this.currentAction = ACTION_SWIPE;\n this.swipeStartX = clientX;\n this.swipeStartY = clientY;\n this.swipeEndX = clientX;\n this.swipeEndY = clientY;\n }\n }, {\n key: \"handleSwipe\",\n value: function handleSwipe(_ref6) {\n var clientX = _ref6.x,\n clientY = _ref6.y;\n this.swipeEndX = clientX;\n this.swipeEndY = clientY;\n }\n }, {\n key: \"handleSwipeEnd\",\n value: function handleSwipeEnd(event) {\n var xDiff = this.swipeEndX - this.swipeStartX;\n var xDiffAbs = Math.abs(xDiff);\n var yDiffAbs = Math.abs(this.swipeEndY - this.swipeStartY);\n this.currentAction = ACTION_NONE;\n this.swipeStartX = 0;\n this.swipeStartY = 0;\n this.swipeEndX = 0;\n this.swipeEndY = 0;\n\n if (!event || this.isAnimating() || xDiffAbs < yDiffAbs * 1.5) {\n return;\n }\n\n if (xDiffAbs < MIN_SWIPE_DISTANCE) {\n var boxRect = this.getLightboxRect();\n\n if (xDiffAbs < boxRect.width / 4) {\n return;\n }\n }\n\n if (xDiff > 0 && this.props.prevSrc) {\n event.preventDefault();\n this.requestMovePrev();\n } else if (xDiff < 0 && this.props.nextSrc) {\n event.preventDefault();\n this.requestMoveNext();\n }\n }\n }, {\n key: \"calculatePinchDistance\",\n value: function calculatePinchDistance() {\n var _ref7 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pinchTouchList,\n _ref8 = _slicedToArray(_ref7, 2),\n a = _ref8[0],\n b = _ref8[1];\n\n return Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2));\n }\n }, {\n key: \"calculatePinchCenter\",\n value: function calculatePinchCenter() {\n var _ref9 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pinchTouchList,\n _ref10 = _slicedToArray(_ref9, 2),\n a = _ref10[0],\n b = _ref10[1];\n\n return {\n x: a.x - (a.x - b.x) / 2,\n y: a.y - (a.y - b.y) / 2\n };\n }\n }, {\n key: \"handlePinchStart\",\n value: function handlePinchStart(pointerList) {\n if (!this.props.enableZoom) {\n return;\n }\n\n this.currentAction = ACTION_PINCH;\n this.pinchTouchList = pointerList.map(function (_ref11) {\n var id = _ref11.id,\n x = _ref11.x,\n y = _ref11.y;\n return {\n id: id,\n x: x,\n y: y\n };\n });\n this.pinchDistance = this.calculatePinchDistance();\n }\n }, {\n key: \"handlePinch\",\n value: function handlePinch(pointerList) {\n this.pinchTouchList = this.pinchTouchList.map(function (oldPointer) {\n for (var i = 0; i < pointerList.length; i += 1) {\n if (pointerList[i].id === oldPointer.id) {\n return pointerList[i];\n }\n }\n\n return oldPointer;\n });\n var newDistance = this.calculatePinchDistance();\n var zoomLevel = this.state.zoomLevel + newDistance - this.pinchDistance;\n this.pinchDistance = newDistance;\n\n var _this$calculatePinchC = this.calculatePinchCenter(this.pinchTouchList),\n clientX = _this$calculatePinchC.x,\n clientY = _this$calculatePinchC.y;\n\n this.changeZoom(zoomLevel, clientX, clientY);\n }\n }, {\n key: \"handlePinchEnd\",\n value: function handlePinchEnd() {\n this.currentAction = ACTION_NONE;\n this.pinchTouchList = null;\n this.pinchDistance = 0;\n } // Handle the window resize event\n\n }, {\n key: \"handleWindowResize\",\n value: function handleWindowResize() {\n this.clearTimeout(this.resizeTimeout);\n this.resizeTimeout = this.setTimeout(this.forceUpdate.bind(this), 100);\n }\n }, {\n key: \"handleZoomInButtonClick\",\n value: function handleZoomInButtonClick() {\n var nextZoomLevel = this.state.zoomLevel + ZOOM_BUTTON_INCREMENT_SIZE;\n this.changeZoom(nextZoomLevel);\n\n if (nextZoomLevel === MAX_ZOOM_LEVEL) {\n this.zoomOutBtn.current.focus();\n }\n }\n }, {\n key: \"handleZoomOutButtonClick\",\n value: function handleZoomOutButtonClick() {\n var nextZoomLevel = this.state.zoomLevel - ZOOM_BUTTON_INCREMENT_SIZE;\n this.changeZoom(nextZoomLevel);\n\n if (nextZoomLevel === MIN_ZOOM_LEVEL) {\n this.zoomInBtn.current.focus();\n }\n }\n }, {\n key: \"handleCaptionMousewheel\",\n value: function handleCaptionMousewheel(event) {\n event.stopPropagation();\n\n if (!this.caption.current) {\n return;\n }\n\n var _this$caption$current = this.caption.current.getBoundingClientRect(),\n height = _this$caption$current.height;\n\n var _this$caption$current2 = this.caption.current,\n scrollHeight = _this$caption$current2.scrollHeight,\n scrollTop = _this$caption$current2.scrollTop;\n\n if (event.deltaY > 0 && height + scrollTop >= scrollHeight || event.deltaY < 0 && scrollTop <= 0) {\n event.preventDefault();\n }\n } // Detach key and mouse input events\n\n }, {\n key: \"isAnimating\",\n value: function isAnimating() {\n return this.state.shouldAnimate || this.state.isClosing;\n } // Check if image is loaded\n\n }, {\n key: \"isImageLoaded\",\n value: function isImageLoaded(imageSrc) {\n return imageSrc && imageSrc in this.imageCache && this.imageCache[imageSrc].loaded;\n } // Load image from src and call callback with image width and height on load\n\n }, {\n key: \"loadImage\",\n value: function loadImage(srcType, imageSrc, done) {\n var _this13 = this;\n\n // Return the image info if it is already cached\n if (this.isImageLoaded(imageSrc)) {\n this.setTimeout(function () {\n done();\n }, 1);\n return;\n }\n\n var inMemoryImage = new global.Image();\n\n if (this.props.imageCrossOrigin) {\n inMemoryImage.crossOrigin = this.props.imageCrossOrigin;\n }\n\n inMemoryImage.onerror = function (errorEvent) {\n _this13.props.onImageLoadError(imageSrc, srcType, errorEvent); // failed to load so set the state loadErrorStatus\n\n\n _this13.setState(function (prevState) {\n return {\n loadErrorStatus: _objectSpread2(_objectSpread2({}, prevState.loadErrorStatus), {}, _defineProperty({}, srcType, true))\n };\n });\n\n done(errorEvent);\n };\n\n inMemoryImage.onload = function () {\n _this13.props.onImageLoad(imageSrc, srcType, inMemoryImage);\n\n _this13.imageCache[imageSrc] = {\n loaded: true,\n width: inMemoryImage.width,\n height: inMemoryImage.height\n };\n done();\n };\n\n inMemoryImage.src = imageSrc;\n } // Load all images and their thumbnails\n\n }, {\n key: \"loadAllImages\",\n value: function loadAllImages() {\n var _this14 = this;\n\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props;\n\n var generateLoadDoneCallback = function generateLoadDoneCallback(srcType, imageSrc) {\n return function (err) {\n // Give up showing image on error\n if (err) {\n return;\n } // Don't rerender if the src is not the same as when the load started\n // or if the component has unmounted\n\n\n if (_this14.props[srcType] !== imageSrc || _this14.didUnmount) {\n return;\n } // Force rerender with the new image\n\n\n _this14.forceUpdate();\n };\n }; // Load the images\n\n\n this.getSrcTypes().forEach(function (srcType) {\n var type = srcType.name; // there is no error when we try to load it initially\n\n if (props[type] && _this14.state.loadErrorStatus[type]) {\n _this14.setState(function (prevState) {\n return {\n loadErrorStatus: _objectSpread2(_objectSpread2({}, prevState.loadErrorStatus), {}, _defineProperty({}, type, false))\n };\n });\n } // Load unloaded images\n\n\n if (props[type] && !_this14.isImageLoaded(props[type])) {\n _this14.loadImage(type, props[type], generateLoadDoneCallback(type, props[type]));\n }\n });\n } // Request that the lightbox be closed\n\n }, {\n key: \"requestClose\",\n value: function requestClose(event) {\n var _this15 = this;\n\n // Call the parent close request\n var closeLightbox = function closeLightbox() {\n return _this15.props.onCloseRequest(event);\n };\n\n if (this.props.animationDisabled || event.type === 'keydown' && !this.props.animationOnKeyInput) {\n // No animation\n closeLightbox();\n return;\n } // With animation\n // Start closing animation\n\n\n this.setState({\n isClosing: true\n }); // Perform the actual closing at the end of the animation\n\n this.setTimeout(closeLightbox, this.props.animationDuration);\n }\n }, {\n key: \"requestMove\",\n value: function requestMove(direction, event) {\n var _this16 = this;\n\n // Reset the zoom level on image move\n var nextState = {\n zoomLevel: MIN_ZOOM_LEVEL,\n offsetX: 0,\n offsetY: 0\n }; // Enable animated states\n\n if (!this.props.animationDisabled && (!this.keyPressed || this.props.animationOnKeyInput)) {\n nextState.shouldAnimate = true;\n this.setTimeout(function () {\n return _this16.setState({\n shouldAnimate: false\n });\n }, this.props.animationDuration);\n }\n\n this.keyPressed = false;\n this.moveRequested = true;\n\n if (direction === 'prev') {\n this.keyCounter -= 1;\n this.setState(nextState);\n this.props.onMovePrevRequest(event);\n } else {\n this.keyCounter += 1;\n this.setState(nextState);\n this.props.onMoveNextRequest(event);\n }\n } // Request to transition to the next image\n\n }, {\n key: \"requestMoveNext\",\n value: function requestMoveNext(event) {\n this.requestMove('next', event);\n } // Request to transition to the previous image\n\n }, {\n key: \"requestMovePrev\",\n value: function requestMovePrev(event) {\n this.requestMove('prev', event);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this17 = this;\n\n var _this$props = this.props,\n animationDisabled = _this$props.animationDisabled,\n animationDuration = _this$props.animationDuration,\n clickOutsideToClose = _this$props.clickOutsideToClose,\n discourageDownloads = _this$props.discourageDownloads,\n enableZoom = _this$props.enableZoom,\n imageTitle = _this$props.imageTitle,\n nextSrc = _this$props.nextSrc,\n prevSrc = _this$props.prevSrc,\n toolbarButtons = _this$props.toolbarButtons,\n reactModalStyle = _this$props.reactModalStyle,\n _onAfterOpen = _this$props.onAfterOpen,\n imageCrossOrigin = _this$props.imageCrossOrigin,\n reactModalProps = _this$props.reactModalProps,\n loader = _this$props.loader;\n var _this$state = this.state,\n zoomLevel = _this$state.zoomLevel,\n offsetX = _this$state.offsetX,\n offsetY = _this$state.offsetY,\n isClosing = _this$state.isClosing,\n loadErrorStatus = _this$state.loadErrorStatus;\n var boxSize = this.getLightboxRect();\n var transitionStyle = {}; // Transition settings for sliding animations\n\n if (!animationDisabled && this.isAnimating()) {\n transitionStyle = _objectSpread2(_objectSpread2({}, transitionStyle), {}, {\n transition: \"transform \".concat(animationDuration, \"ms\")\n });\n } // Key endings to differentiate between images with the same src\n\n\n var keyEndings = {};\n this.getSrcTypes().forEach(function (_ref12) {\n var name = _ref12.name,\n keyEnding = _ref12.keyEnding;\n keyEndings[name] = keyEnding;\n }); // Images to be displayed\n\n var images = [];\n\n var addImage = function addImage(srcType, imageClass, transforms) {\n // Ignore types that have no source defined for their full size image\n if (!_this17.props[srcType]) {\n return;\n }\n\n var bestImageInfo = _this17.getBestImageForType(srcType);\n\n var imageStyle = _objectSpread2(_objectSpread2({}, transitionStyle), ReactImageLightbox.getTransform(_objectSpread2(_objectSpread2({}, transforms), bestImageInfo)));\n\n if (zoomLevel > MIN_ZOOM_LEVEL) {\n imageStyle.cursor = 'move';\n } // support IE 9 and 11\n\n\n var hasTrueValue = function hasTrueValue(object) {\n return Object.keys(object).some(function (key) {\n return object[key];\n });\n }; // when error on one of the loads then push custom error stuff\n\n\n if (bestImageInfo === null && hasTrueValue(loadErrorStatus)) {\n images.push( /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril-errored\"),\n style: imageStyle,\n key: _this17.props[srcType] + keyEndings[srcType]\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril__errorContainer\"\n }, _this17.props.imageLoadErrorMessage)));\n return;\n }\n\n if (bestImageInfo === null) {\n var loadingIcon = loader !== undefined ? loader : /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon\"\n }, _toConsumableArray(new Array(12)).map(function (_, index) {\n return /*#__PURE__*/React.createElement(\"div\", {\n // eslint-disable-next-line react/no-array-index-key\n key: index,\n className: \"ril-loading-circle-point ril__loadingCirclePoint\"\n });\n })); // Fall back to loading icon if the thumbnail has not been loaded\n\n images.push( /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril-not-loaded\"),\n style: imageStyle,\n key: _this17.props[srcType] + keyEndings[srcType]\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril__loadingContainer\"\n }, loadingIcon)));\n return;\n }\n\n var imageSrc = bestImageInfo.src;\n\n if (discourageDownloads) {\n imageStyle.backgroundImage = \"url('\".concat(imageSrc, \"')\");\n images.push( /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril__imageDiscourager\"),\n onDoubleClick: _this17.handleImageDoubleClick,\n onWheel: _this17.handleImageMouseWheel,\n style: imageStyle,\n key: imageSrc + keyEndings[srcType]\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril-download-blocker ril__downloadBlocker\"\n })));\n } else {\n images.push( /*#__PURE__*/React.createElement(\"img\", _extends({}, imageCrossOrigin ? {\n crossOrigin: imageCrossOrigin\n } : {}, {\n className: \"\".concat(imageClass, \" ril__image\"),\n onDoubleClick: _this17.handleImageDoubleClick,\n onWheel: _this17.handleImageMouseWheel,\n onDragStart: function onDragStart(e) {\n return e.preventDefault();\n },\n style: imageStyle,\n src: imageSrc,\n key: imageSrc + keyEndings[srcType],\n alt: typeof imageTitle === 'string' ? imageTitle : translate('Image'),\n draggable: false\n })));\n }\n };\n\n var zoomMultiplier = this.getZoomMultiplier(); // Next Image (displayed on the right)\n\n addImage('nextSrc', 'ril-image-next ril__imageNext', {\n x: boxSize.width\n }); // Main Image\n\n addImage('mainSrc', 'ril-image-current', {\n x: -1 * offsetX,\n y: -1 * offsetY,\n zoom: zoomMultiplier\n }); // Previous Image (displayed on the left)\n\n addImage('prevSrc', 'ril-image-prev ril__imagePrev', {\n x: -1 * boxSize.width\n });\n var modalStyle = {\n overlay: _objectSpread2({\n zIndex: 1000,\n backgroundColor: 'transparent'\n }, reactModalStyle.overlay),\n content: _objectSpread2({\n backgroundColor: 'transparent',\n overflow: 'hidden',\n // Needed, otherwise keyboard shortcuts scroll the page\n border: 'none',\n borderRadius: 0,\n padding: 0,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }, reactModalStyle.content)\n };\n return /*#__PURE__*/React.createElement(Modal, _extends({\n isOpen: true,\n onRequestClose: clickOutsideToClose ? this.requestClose : undefined,\n onAfterOpen: function onAfterOpen() {\n // Focus on the div with key handlers\n if (_this17.outerEl.current) {\n _this17.outerEl.current.focus();\n }\n\n _onAfterOpen();\n },\n style: modalStyle,\n contentLabel: translate('Lightbox'),\n appElement: typeof global.window !== 'undefined' ? global.window.document.body : undefined\n }, reactModalProps), /*#__PURE__*/React.createElement(\"div\", {\n // eslint-disable-line jsx-a11y/no-static-element-interactions\n // Floating modal with closing animations\n className: \"ril-outer ril__outer ril__outerAnimating \".concat(this.props.wrapperClassName, \" \").concat(isClosing ? 'ril-closing ril__outerClosing' : ''),\n style: {\n transition: \"opacity \".concat(animationDuration, \"ms\"),\n animationDuration: \"\".concat(animationDuration, \"ms\"),\n animationDirection: isClosing ? 'normal' : 'reverse'\n },\n ref: this.outerEl,\n onWheel: this.handleOuterMousewheel,\n onMouseMove: this.handleMouseMove,\n onMouseDown: this.handleMouseDown,\n onTouchStart: this.handleTouchStart,\n onTouchMove: this.handleTouchMove,\n tabIndex: \"-1\" // Enables key handlers on div\n ,\n onKeyDown: this.handleKeyInput,\n onKeyUp: this.handleKeyInput\n }, /*#__PURE__*/React.createElement(\"div\", {\n // eslint-disable-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events\n // Image holder\n className: \"ril-inner ril__inner\",\n onClick: clickOutsideToClose ? this.closeIfClickInner : undefined\n }, images), prevSrc && /*#__PURE__*/React.createElement(\"button\", {\n // Move to previous image button\n type: \"button\",\n className: \"ril-prev-button ril__navButtons ril__navButtonPrev\",\n key: \"prev\",\n \"aria-label\": this.props.prevLabel,\n title: this.props.prevLabel,\n onClick: !this.isAnimating() ? this.requestMovePrev : undefined // Ignore clicks during animation\n\n }), nextSrc && /*#__PURE__*/React.createElement(\"button\", {\n // Move to next image button\n type: \"button\",\n className: \"ril-next-button ril__navButtons ril__navButtonNext\",\n key: \"next\",\n \"aria-label\": this.props.nextLabel,\n title: this.props.nextLabel,\n onClick: !this.isAnimating() ? this.requestMoveNext : undefined // Ignore clicks during animation\n\n }), /*#__PURE__*/React.createElement(\"div\", {\n // Lightbox toolbar\n className: \"ril-toolbar ril__toolbar\"\n }, /*#__PURE__*/React.createElement(\"ul\", {\n className: \"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide\"\n }, /*#__PURE__*/React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: \"ril-toolbar__item__child ril__toolbarItemChild\"\n }, imageTitle))), /*#__PURE__*/React.createElement(\"ul\", {\n className: \"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide\"\n }, toolbarButtons && toolbarButtons.map(function (button, i) {\n return /*#__PURE__*/React.createElement(\"li\", {\n key: \"button_\".concat(i + 1),\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, button);\n }), enableZoom && /*#__PURE__*/React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/React.createElement(\"button\", {\n // Lightbox zoom in button\n type: \"button\",\n key: \"zoom-in\",\n \"aria-label\": this.props.zoomInLabel,\n title: this.props.zoomInLabel,\n className: ['ril-zoom-in', 'ril__toolbarItemChild', 'ril__builtinButton', 'ril__zoomInButton'].concat(_toConsumableArray(zoomLevel === MAX_ZOOM_LEVEL ? ['ril__builtinButtonDisabled'] : [])).join(' '),\n ref: this.zoomInBtn,\n disabled: this.isAnimating() || zoomLevel === MAX_ZOOM_LEVEL,\n onClick: !this.isAnimating() && zoomLevel !== MAX_ZOOM_LEVEL ? this.handleZoomInButtonClick : undefined\n })), enableZoom && /*#__PURE__*/React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/React.createElement(\"button\", {\n // Lightbox zoom out button\n type: \"button\",\n key: \"zoom-out\",\n \"aria-label\": this.props.zoomOutLabel,\n title: this.props.zoomOutLabel,\n className: ['ril-zoom-out', 'ril__toolbarItemChild', 'ril__builtinButton', 'ril__zoomOutButton'].concat(_toConsumableArray(zoomLevel === MIN_ZOOM_LEVEL ? ['ril__builtinButtonDisabled'] : [])).join(' '),\n ref: this.zoomOutBtn,\n disabled: this.isAnimating() || zoomLevel === MIN_ZOOM_LEVEL,\n onClick: !this.isAnimating() && zoomLevel !== MIN_ZOOM_LEVEL ? this.handleZoomOutButtonClick : undefined\n })), /*#__PURE__*/React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, /*#__PURE__*/React.createElement(\"button\", {\n // Lightbox close button\n type: \"button\",\n key: \"close\",\n \"aria-label\": this.props.closeLabel,\n title: this.props.closeLabel,\n className: \"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton\",\n onClick: !this.isAnimating() ? this.requestClose : undefined // Ignore clicks during animation\n\n })))), this.props.imageCaption &&\n /*#__PURE__*/\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n React.createElement(\"div\", {\n // Image caption\n onWheel: this.handleCaptionMousewheel,\n onMouseDown: function onMouseDown(event) {\n return event.stopPropagation();\n },\n className: \"ril-caption ril__caption\",\n ref: this.caption\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"ril-caption-content ril__captionContent\"\n }, this.props.imageCaption))));\n }\n }], [{\n key: \"isTargetMatchImage\",\n value: function isTargetMatchImage(target) {\n return target && /ril-image-current/.test(target.className);\n }\n }, {\n key: \"parseMouseEvent\",\n value: function parseMouseEvent(mouseEvent) {\n return {\n id: 'mouse',\n source: SOURCE_MOUSE,\n x: parseInt(mouseEvent.clientX, 10),\n y: parseInt(mouseEvent.clientY, 10)\n };\n }\n }, {\n key: \"parseTouchPointer\",\n value: function parseTouchPointer(touchPointer) {\n return {\n id: touchPointer.identifier,\n source: SOURCE_TOUCH,\n x: parseInt(touchPointer.clientX, 10),\n y: parseInt(touchPointer.clientY, 10)\n };\n }\n }, {\n key: \"parsePointerEvent\",\n value: function parsePointerEvent(pointerEvent) {\n return {\n id: pointerEvent.pointerId,\n source: SOURCE_POINTER,\n x: parseInt(pointerEvent.clientX, 10),\n y: parseInt(pointerEvent.clientY, 10)\n };\n } // Request to transition to the previous image\n\n }, {\n key: \"getTransform\",\n value: function getTransform(_ref13) {\n var _ref13$x = _ref13.x,\n x = _ref13$x === void 0 ? 0 : _ref13$x,\n _ref13$y = _ref13.y,\n y = _ref13$y === void 0 ? 0 : _ref13$y,\n _ref13$zoom = _ref13.zoom,\n zoom = _ref13$zoom === void 0 ? 1 : _ref13$zoom,\n width = _ref13.width,\n targetWidth = _ref13.targetWidth;\n var nextX = x;\n var windowWidth = getWindowWidth();\n\n if (width > windowWidth) {\n nextX += (windowWidth - width) / 2;\n }\n\n var scaleFactor = zoom * (targetWidth / width);\n return {\n transform: \"translate3d(\".concat(nextX, \"px,\").concat(y, \"px,0) scale3d(\").concat(scaleFactor, \",\").concat(scaleFactor, \",1)\")\n };\n }\n }]);\n\n return ReactImageLightbox;\n}(Component);\n\nReactImageLightbox.propTypes = {\n //-----------------------------\n // Image sources\n //-----------------------------\n // Main display image url\n mainSrc: PropTypes.string.isRequired,\n // eslint-disable-line react/no-unused-prop-types\n // Previous display image url (displayed to the left)\n // If left undefined, movePrev actions will not be performed, and the button not displayed\n prevSrc: PropTypes.string,\n // Next display image url (displayed to the right)\n // If left undefined, moveNext actions will not be performed, and the button not displayed\n nextSrc: PropTypes.string,\n //-----------------------------\n // Image thumbnail sources\n //-----------------------------\n // Thumbnail image url corresponding to props.mainSrc\n mainSrcThumbnail: PropTypes.string,\n // eslint-disable-line react/no-unused-prop-types\n // Thumbnail image url corresponding to props.prevSrc\n prevSrcThumbnail: PropTypes.string,\n // eslint-disable-line react/no-unused-prop-types\n // Thumbnail image url corresponding to props.nextSrc\n nextSrcThumbnail: PropTypes.string,\n // eslint-disable-line react/no-unused-prop-types\n //-----------------------------\n // Event Handlers\n //-----------------------------\n // Close window event\n // Should change the parent state such that the lightbox is not rendered\n onCloseRequest: PropTypes.func.isRequired,\n // Move to previous image event\n // Should change the parent state such that props.prevSrc becomes props.mainSrc,\n // props.mainSrc becomes props.nextSrc, etc.\n onMovePrevRequest: PropTypes.func,\n // Move to next image event\n // Should change the parent state such that props.nextSrc becomes props.mainSrc,\n // props.mainSrc becomes props.prevSrc, etc.\n onMoveNextRequest: PropTypes.func,\n // Called when an image fails to load\n // (imageSrc: string, srcType: string, errorEvent: object): void\n onImageLoadError: PropTypes.func,\n // Called when image successfully loads\n onImageLoad: PropTypes.func,\n // Open window event\n onAfterOpen: PropTypes.func,\n //-----------------------------\n // Download discouragement settings\n //-----------------------------\n // Enable download discouragement (prevents [right-click -> Save Image As...])\n discourageDownloads: PropTypes.bool,\n //-----------------------------\n // Animation settings\n //-----------------------------\n // Disable all animation\n animationDisabled: PropTypes.bool,\n // Disable animation on actions performed with keyboard shortcuts\n animationOnKeyInput: PropTypes.bool,\n // Animation duration (ms)\n animationDuration: PropTypes.number,\n //-----------------------------\n // Keyboard shortcut settings\n //-----------------------------\n // Required interval of time (ms) between key actions\n // (prevents excessively fast navigation of images)\n keyRepeatLimit: PropTypes.number,\n // Amount of time (ms) restored after each keyup\n // (makes rapid key presses slightly faster than holding down the key to navigate images)\n keyRepeatKeyupBonus: PropTypes.number,\n //-----------------------------\n // Image info\n //-----------------------------\n // Image title\n imageTitle: PropTypes.node,\n // Image caption\n imageCaption: PropTypes.node,\n // Optional crossOrigin attribute\n imageCrossOrigin: PropTypes.string,\n //-----------------------------\n // Lightbox style\n //-----------------------------\n // Set z-index style, etc., for the parent react-modal (format: https://github.com/reactjs/react-modal#styles )\n reactModalStyle: PropTypes.shape({}),\n // Padding (px) between the edge of the window and the lightbox\n imagePadding: PropTypes.number,\n wrapperClassName: PropTypes.string,\n //-----------------------------\n // Other\n //-----------------------------\n // Array of custom toolbar buttons\n toolbarButtons: PropTypes.arrayOf(PropTypes.node),\n // When true, clicks outside of the image close the lightbox\n clickOutsideToClose: PropTypes.bool,\n // Set to false to disable zoom functionality and hide zoom buttons\n enableZoom: PropTypes.bool,\n // Override props set on react-modal (https://github.com/reactjs/react-modal)\n reactModalProps: PropTypes.shape({}),\n // Aria-labels\n nextLabel: PropTypes.string,\n prevLabel: PropTypes.string,\n zoomInLabel: PropTypes.string,\n zoomOutLabel: PropTypes.string,\n closeLabel: PropTypes.string,\n imageLoadErrorMessage: PropTypes.node,\n // custom loader\n loader: PropTypes.node\n};\nReactImageLightbox.defaultProps = {\n imageTitle: null,\n imageCaption: null,\n toolbarButtons: null,\n reactModalProps: {},\n animationDisabled: false,\n animationDuration: 300,\n animationOnKeyInput: false,\n clickOutsideToClose: true,\n closeLabel: 'Close lightbox',\n discourageDownloads: false,\n enableZoom: true,\n imagePadding: 10,\n imageCrossOrigin: null,\n keyRepeatKeyupBonus: 40,\n keyRepeatLimit: 180,\n mainSrcThumbnail: null,\n nextLabel: 'Next image',\n nextSrc: null,\n nextSrcThumbnail: null,\n onAfterOpen: function onAfterOpen() {},\n onImageLoadError: function onImageLoadError() {},\n onImageLoad: function onImageLoad() {},\n onMoveNextRequest: function onMoveNextRequest() {},\n onMovePrevRequest: function onMovePrevRequest() {},\n prevLabel: 'Previous image',\n prevSrc: null,\n prevSrcThumbnail: null,\n reactModalStyle: {},\n wrapperClassName: '',\n zoomInLabel: 'Zoom in',\n zoomOutLabel: 'Zoom out',\n imageLoadErrorMessage: 'This image failed to load',\n loader: undefined\n};\n\nexport default ReactImageLightbox;\n","import e from\"prop-types\";import n,{useState as t,useEffect as a,useCallback as i,createContext as r,useLayoutEffect as o,useRef as l}from\"react\";import s from\"classnames\";import c from\"prismjs\";import\"prismjs/components/prism-clike\";import\"prismjs/components/prism-csharp\";import\"prismjs/components/prism-css\";import\"prismjs/components/prism-javascript\";import\"prismjs/components/prism-markup\";import{createPortal as m}from\"react-dom\";import{useCookies as d}from\"react-cookie\";import u from\"react-image-lightbox\";import\"react-image-lightbox/style.css\";var p=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Discord\"),n.createElement(\"path\",{d:\"M20.222 0c1.406 0 2.54 1.137 2.607 2.475V24l-2.677-2.273-1.47-1.338-1.604-1.398.67 2.205H3.71c-1.402 0-2.54-1.065-2.54-2.476V2.48C1.17 1.142 2.31.003 3.715.003h16.5L20.222 0zm-6.118 5.683h-.03l-.202.2c2.073.6 3.076 1.537 3.076 1.537-1.336-.668-2.54-1.002-3.744-1.137-.87-.135-1.74-.064-2.475 0h-.2c-.47 0-1.47.2-2.81.735-.467.203-.735.336-.735.336s1.002-1.002 3.21-1.537l-.135-.135s-1.672-.064-3.477 1.27c0 0-1.805 3.144-1.805 7.02 0 0 1 1.74 3.743 1.806 0 0 .4-.533.805-1.002-1.54-.468-2.14-1.404-2.14-1.404s.134.066.335.2h.06c.03 0 .044.015.06.03v.006c.016.016.03.03.06.03.33.136.66.27.93.4.466.202 1.065.403 1.8.536.93.135 1.996.2 3.21 0 .6-.135 1.2-.267 1.8-.535.39-.2.87-.4 1.397-.737 0 0-.6.936-2.205 1.404.33.466.795 1 .795 1 2.744-.06 3.81-1.8 3.87-1.726 0-3.87-1.815-7.02-1.815-7.02-1.635-1.214-3.165-1.26-3.435-1.26l.056-.02zm.168 4.413c.703 0 1.27.6 1.27 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334.002-.74.573-1.338 1.27-1.338zm-4.543 0c.7 0 1.266.6 1.266 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334 0-.74.57-1.338 1.27-1.338z\"})),g=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 184 184\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Email\"),n.createElement(\"path\",{d:\"M160.746,24.61H23.254C10.432,24.61,0,35.042,0,47.864v88.271c0,12.822,10.432,23.254,23.254,23.254h137.492c12.822,0,23.254-10.432,23.254-23.254V47.864C184,35.042,173.568,24.61,160.746,24.61z M157.113,39.61L92,89.909L26.887,39.61H157.113z M160.746,144.39H23.254c-4.551,0-8.254-3.703-8.254-8.254V49.382l72.415,55.94c1.35,1.043,2.968,1.564,4.585,1.564s3.235-0.521,4.585-1.564L169,49.382v86.753C169,140.687,165.297,144.39,160.746,144.39z\"})),h=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Facebook\"),n.createElement(\"path\",{d:\"M23.9981 11.9991C23.9981 5.37216 18.626 0 11.9991 0C5.37216 0 0 5.37216 0 11.9991C0 17.9882 4.38789 22.9522 10.1242 23.8524V15.4676H7.07758V11.9991H10.1242V9.35553C10.1242 6.34826 11.9156 4.68714 14.6564 4.68714C15.9692 4.68714 17.3424 4.92149 17.3424 4.92149V7.87439H15.8294C14.3388 7.87439 13.8739 8.79933 13.8739 9.74824V11.9991H17.2018L16.6698 15.4676H13.8739V23.8524C19.6103 22.9522 23.9981 17.9882 23.9981 11.9991Z\"})),f=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"GitHub\"),n.createElement(\"path\",{d:\"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\"})),v=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Instagram\"),n.createElement(\"path\",{d:\"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z\"})),y=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"LinkedIn\"),n.createElement(\"path\",{d:\"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z\"})),b=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Patreon\"),n.createElement(\"path\",{d:\"M0 .48v23.04h4.22V.48zm15.385 0c-4.764 0-8.641 3.88-8.641 8.65 0 4.755 3.877 8.623 8.641 8.623 4.75 0 8.615-3.868 8.615-8.623C24 4.36 20.136.48 15.385.48z\"})),E=n.createElement(\"svg\",{focusable:\"false\",viewBox:\"0 0 25.576 30.177\",width:\"25.576px\",height:\"30.177px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"path\",{d:\"M7.266 29.154l.523-3.322-1.165-.027H1.061L4.927 1.292a.316.316 0 01.314-.268h9.38c3.114 0 5.263.648 6.385 1.927.526.6.861 1.227 1.023 1.917.17.724.173 1.589.007 2.644l-.012.077v.676l.526.298a3.69 3.69 0 011.065.812c.45.513.741 1.165.864 1.938.127.795.085 1.741-.123 2.812-.24 1.232-.628 2.305-1.152 3.183a6.547 6.547 0 01-1.825 2c-.696.494-1.523.869-2.458 1.109-.906.236-1.939.355-3.072.355h-.73c-.522 0-1.029.188-1.427.525a2.21 2.21 0 00-.744 1.328l-.055.299-.924 5.855-.042.215c-.011.068-.03.102-.058.125a.155.155 0 01-.096.035H7.266z\",fill:\"#253b80\"}),n.createElement(\"path\",{d:\"M23.048 7.667c-.028.179-.06.362-.096.55-1.237 6.351-5.469 8.545-10.874 8.545H9.326c-.661 0-1.218.48-1.321 1.132L6.596 26.83l-.399 2.533a.704.704 0 00.695.814h4.881c.578 0 1.069-.42 1.16-.99l.048-.248.919-5.832.059-.32c.09-.572.582-.992 1.16-.992h.73c4.729 0 8.431-1.92 9.513-7.476.452-2.321.218-4.259-.978-5.622a4.667 4.667 0 00-1.336-1.03z\",fill:\"#179bd7\"}),n.createElement(\"path\",{d:\"M21.754 7.151a9.757 9.757 0 00-1.203-.267 15.284 15.284 0 00-2.426-.177h-7.352a1.172 1.172 0 00-1.159.992L8.05 17.605l-.045.289a1.336 1.336 0 011.321-1.132h2.752c5.405 0 9.637-2.195 10.874-8.545.037-.188.068-.371.096-.55a6.594 6.594 0 00-1.017-.429 9.045 9.045 0 00-.277-.087z\",fill:\"#222d65\"}),n.createElement(\"path\",{d:\"M9.614 7.699a1.169 1.169 0 011.159-.991h7.352c.871 0 1.684.057 2.426.177a9.757 9.757 0 011.481.353c.365.121.704.264 1.017.429.368-2.347-.003-3.945-1.272-5.392C20.378.682 17.853 0 14.622 0h-9.38c-.66 0-1.223.48-1.325 1.133L.01 25.898a.806.806 0 00.795.932h5.791l1.454-9.225 1.564-9.906z\",fill:\"#253b80\"})),w=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",style:{transform:\"translateY(1px)\"},viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Twitch\"),n.createElement(\"path\",{d:\"M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z\"})),N=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",style:{transform:\"scale(1.1)\"},viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Twitter\"),n.createElement(\"path\",{d:\"M23.954 4.569c-.885.389-1.83.654-2.825.775 1.014-.611 1.794-1.574 2.163-2.723-.951.555-2.005.959-3.127 1.184-.896-.959-2.173-1.559-3.591-1.559-2.717 0-4.92 2.203-4.92 4.917 0 .39.045.765.127 1.124C7.691 8.094 4.066 6.13 1.64 3.161c-.427.722-.666 1.561-.666 2.475 0 1.71.87 3.213 2.188 4.096-.807-.026-1.566-.248-2.228-.616v.061c0 2.385 1.693 4.374 3.946 4.827-.413.111-.849.171-1.296.171-.314 0-.615-.03-.916-.086.631 1.953 2.445 3.377 4.604 3.417-1.68 1.319-3.809 2.105-6.102 2.105-.39 0-.779-.023-1.17-.067 2.189 1.394 4.768 2.209 7.557 2.209 9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63.961-.689 1.8-1.56 2.46-2.548l-.047-.02z\"})),k=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"Unity\"),n.createElement(\"path\",{d:\"M24 9.533L21.374 0 11.57 2.555l-1.45 2.49-2.945-.022L0 12l7.176 6.978 2.943-.023 1.454 2.49 9.8 2.554L24 14.47 22.508 12 24 9.533zM10.356 5.445l7.499-1.874-4.304 7.251H4.94l5.416-5.377zm0 13.11L4.94 13.18h8.61l4.305 7.251-7.5-1.874zm9.598.696l-4.307-7.25 4.307-7.253L22.033 12l-2.08 7.25z\"})),x=n.createElement(\"svg\",{focusable:\"false\",role:\"img\",style:{transform:\"scale(1.125)\"},viewBox:\"0 0 24 24\",width:\"24px\",height:\"24px\",xmlns:\"http://www.w3.org/2000/svg\"},n.createElement(\"title\",null,\"YouTube\"),n.createElement(\"path\",{d:\"M23.495 6.205a3.007 3.007 0 0 0-2.088-2.088c-1.87-.501-9.396-.501-9.396-.501s-7.507-.01-9.396.501A3.007 3.007 0 0 0 .527 6.205a31.247 31.247 0 0 0-.522 5.805 31.247 31.247 0 0 0 .522 5.783 3.007 3.007 0 0 0 2.088 2.088c1.868.502 9.396.502 9.396.502s7.506 0 9.396-.502a3.007 3.007 0 0 0 2.088-2.088 31.247 31.247 0 0 0 .5-5.783 31.247 31.247 0 0 0-.5-5.805zM9.609 15.601V8.408l6.264 3.602z\"})),T={discord:p,email:g,facebook:h,github:f,instagram:v,linkedIn:y,patreon:b,paypal:E,twitch:w,twitter:N,unity:k,youtube:x},C=e.oneOfType([e.string,e.shape({key:e.string,name:e.string,color:e.string,url:e.string,icon:e.element})]),z={discord:{key:\"discord\",name:\"Discord\",color:\"#7289da\",url:\"https://discord.gg/DdYyWVb\",icon:p},email:{key:\"email\",name:\"Email\",url:\"mailto:support@zigurous.com\",icon:g},facebook:{key:\"facebook\",name:\"Facebook\",color:\"#1877f2\",url:\"https://facebook.com/zigurous\",icon:h},github:{key:\"github\",name:\"GitHub\",url:\"https://github.com/zigurous\",icon:f},instagram:{key:\"instagram\",name:\"Instagram\",color:\"#e4405f\",url:\"https://instagram.com/zigurous\",icon:v},patreon:{key:\"patreon\",name:\"Patreon\",color:\"#ff424d\",url:\"https://patreon.com/zigurous\",icon:b},paypal:{key:\"paypal\",name:\"PayPal\",color:\"#00457c\",url:\"https://paypal.com/donate?hosted_button_id=BGS8Y9U798JS8\",icon:E},twitch:{key:\"twitch\",name:\"Twitch\",color:\"#9146ff\",url:\"https://twitch.tv/zigurous\",icon:w},twitter:{key:\"twitter\",name:\"Twitter\",color:\"#1da1f2\",url:\"https://twitter.com/zigurous\",icon:N},unity:{key:\"unity\",name:\"Unity\",url:\"https://assetstore.unity.com/publishers/51884\",icon:k},youtube:{key:\"youtube\",name:\"YouTube\",color:\"#ff0000\",url:\"https://youtube.com/c/zigurous?sub_confirmation=1\",icon:x}},O={wordmark:n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 596 192\"},n.createElement(\"path\",{d:\"M528.71,98.72a18.85,18.85,0,0,0-7.36-5.56,92.48,92.48,0,0,0-10.88-3.52A43,43,0,0,1,501.91,87a4.28,4.28,0,0,1-2.76-4,4.21,4.21,0,0,1,1.72-3.52,8.33,8.33,0,0,1,5-1.28A9.36,9.36,0,0,1,511.91,80a7.68,7.68,0,0,1,2.76,5.16h17c-.64-6.4-3.12-11.56-7.48-15.4S513.91,64,506.39,64a31,31,0,0,0-13.2,2.56,19.26,19.26,0,0,0-8.4,7A17.5,17.5,0,0,0,482,83.28q0,6.36,3.12,10.08a18.58,18.58,0,0,0,7.4,5.48,79.1,79.1,0,0,0,10.8,3.28A55.41,55.41,0,0,1,512,105a4.27,4.27,0,0,1,2.68,4,4.37,4.37,0,0,1-1.88,3.64,9,9,0,0,1-5.32,1.4,9.94,9.94,0,0,1-6.36-2,7.23,7.23,0,0,1-2.92-5.2H480a20.18,20.18,0,0,0,4,10.84,23.8,23.8,0,0,0,9.68,7.64,33.14,33.14,0,0,0,14,2.8,32.3,32.3,0,0,0,12.88-2.44A19.55,19.55,0,0,0,529,118.8a16.93,16.93,0,0,0,3-9.76C531.91,104.72,530.83,101.28,528.71,98.72Z\"}),n.createElement(\"polygon\",{points:\"64 40.01 64 58.01 101.8 58.01 97.6 64.01 65.4 110.01 64 112.01 64 128.01 77.6 128.01 128 128.01 128 110.01 90.2 110.01 122.4 64.01 126.6 58.01 128 56.01 128 40.01 114.4 40.01 64 40.01\"}),n.createElement(\"path\",{d:\"M368,64a32,32,0,1,0,32,32.16v-.24A32,32,0,0,0,368,64Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,368,112Z\"}),n.createElement(\"path\",{d:\"M312,71.23V64H292v36.24a12,12,0,0,1-24,0V64H248v38a26,26,0,0,0,20,25.28,24.65,24.65,0,0,0,6,.72,25.92,25.92,0,0,0,18-7.24V128h20V96a16,16,0,0,1,16-16h4V64.07c-.68,0-1.32-.08-2-.08A25.92,25.92,0,0,0,312,71.23Z\"}),n.createElement(\"path\",{d:\"M452,83.23v17a12,12,0,0,1-24,0V64H408v38a26,26,0,0,0,20,25.28,24.65,24.65,0,0,0,6,.72,25.92,25.92,0,0,0,18-7.24V128h20V64H452Z\"}),n.createElement(\"path\",{d:\"M216,69.76A25.37,25.37,0,0,0,200,64c-15.48,0-28,14.32-28,32a35.72,35.72,0,0,0,3.4,15.32,30.58,30.58,0,0,0,10.4,12.24,24.93,24.93,0,0,0,28.4,0,18.85,18.85,0,0,0,1.8-1.32V130c0,7.72-7.16,14-16,14a17,17,0,0,1-10.4-3.4l-8.92,12.72a37.37,37.37,0,0,0,35.32,4c11.8-4.64,20-15.12,20-27.28V64H216ZM204,112a15.93,15.93,0,0,1-14.72-9.8A15.22,15.22,0,0,1,188,96a16,16,0,1,1,30.08,7.6,17.11,17.11,0,0,1-2.08,3A15.93,15.93,0,0,1,204,112Z\"}),n.createElement(\"rect\",{x:\"140.01\",y:\"64.01\",width:\"20\",height:\"64\"}),n.createElement(\"path\",{d:\"M150,36a11,11,0,0,0-10,6.16,9.83,9.83,0,0,0,0,8.64,11.16,11.16,0,0,0,20,0,9.83,9.83,0,0,0,0-8.64A11,11,0,0,0,150,36Z\"})),lettermark:n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 512 512\"},n.createElement(\"polygon\",{points:\"382.81 331.67 382.81 384.03 311.24 384.03 347.9 331.67 382.81 331.67\"}),n.createElement(\"polygon\",{points:\"380.48 128.03 237.93 331.67 312.99 331.67 276.33 384.03 129.13 384.03 271.68 180.39 308.33 128.03 380.48 128.03\"}),n.createElement(\"polygon\",{points:\"272.26 128.03 235.6 180.39 150.08 180.39 150.08 128.03 272.26 128.03\"})),logomark:n.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 512 512\"},n.createElement(\"polygon\",{points:\"368.46 177.61 256 112.68 143.54 177.61 256 242.54 368.46 177.61\"}),n.createElement(\"polygon\",{points:\"128 334.39 240.46 399.32 240.46 269.46 128 204.53 128 334.39\"}),n.createElement(\"polygon\",{points:\"384 204.53 271.54 269.46 271.54 399.32 384 334.39 384 204.53\"}))};function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0||(i[t]=e[t]);return i}var j=[\"activeClassName\",\"children\",\"className\",\"ElementType\",\"external\",\"href\",\"path\",\"rel\",\"target\",\"to\",\"underlined\",\"unstyled\"];function S(e){var t=e.activeClassName,a=e.children,i=e.className,r=e.ElementType,o=void 0===r?\"a\":r,l=e.external,c=void 0!==l&&l,m=e.href,d=e.path,u=e.rel,p=e.target,g=e.to,h=e.underlined,f=void 0!==h&&h,v=e.unstyled,y=void 0!==v&&v,b=_(e,j);return n.createElement(o,L({},b,\"a\"===o?{href:m||d||g,rel:u||(c?\"noopener noreferrer\":void 0),target:p||(c?\"_blank\":void 0)}:{to:g||d||m,href:m||d||g,activeClassName:t},{className:s({link:!y},{\"link--underlined\":f&&!y},i)}),a)}function I(e,t){return e?n.createElement(\"img\",{alt:\"Logo\",src:e}):O[t]}function M(e){var t=e.fill,a=e.image,i=e.onClick,r=e.size,o=e.style,l=e.variant,c=void 0===l?\"wordmark\":l;return n.createElement(\"div\",{className:s(\"logo\",c,void 0===r?\"medium\":r,e.className),style:L({},o,{fill:t})},i?n.createElement(\"button\",{\"aria-label\":\"Logo\",onClick:function(e){e.target.blur(),i()}},I(a,c)):I(a,c))}function P(e){var t=e.bordered,a=e.copyright,i=e.hideLogo,r=void 0!==i&&i,o=e.LinkElementType,l=void 0===o?\"a\":o,c=e.links,m=void 0===c?[]:c,d=e.onLinkClick,u=e.onLogoClick,p=e.sticky,g=e.theme,h=e.transparent;return n.createElement(\"footer\",{className:s(\"app-footer\",{\"app-footer--bordered\":void 0!==t&&t},{\"app-footer--transparent\":void 0!==h&&h},{\"app-footer--sticky\":void 0!==p&&p},e.className),\"data-theme\":g},n.createElement(\"div\",{className:\"container\"},n.createElement(\"div\",{className:\"row align-items-center margin-top-lg margin-bottom-lg\"},n.createElement(\"div\",{className:\"col font-xs font-weight-500\"},n.createElement(\"span\",null,!r&&n.createElement(M,{onClick:u,size:\"xs\"}),a&&n.createElement(\"span\",{className:\"copyright margin-left-xl margin-right-xl\"},a)),m&&m.length>0&&n.createElement(\"span\",{className:\"links\"},m.map(function(e){return n.createElement(S,{\"aria-label\":e.name,className:\"color-inherit margin-left-md margin-right-md\",ElementType:e.ElementType||l,external:e.external,key:e.id||e.to,onClick:function(){d&&d(e)},to:e.to},e.name)}))))))}S.propTypes={activeClassName:e.string,children:e.node,className:e.string,ElementType:e.elementType,external:e.bool,href:e.string,path:e.string,rel:e.string,target:e.string,to:e.string,underlined:e.bool,unstyled:e.bool},M.size=Object.freeze({xs:\"xs\",extraSmall:\"extraSmall\",sm:\"sm\",small:\"small\",md:\"md\",medium:\"medium\",lg:\"lg\",large:\"large\",xl:\"xl\",extraLarge:\"extraLarge\"}),M.variant=Object.freeze({wordmark:\"wordmark\",lettermark:\"lettermark\",logomark:\"logomark\"}),M.propTypes={className:e.string,fill:e.string,image:e.string,onClick:e.func,size:e.oneOf(Object.values(M.size)),style:e.object,variant:e.oneOf(Object.values(M.variant))},P.propTypes={bordered:e.bool,className:e.string,copyright:e.node,hideLogo:e.bool,LinkElementType:e.elementType,links:e.arrayOf(e.shape(S.propTypes)),onLinkClick:e.func,onLogoClick:e.func,sticky:e.bool,theme:e.string,transparent:e.bool};var V=[\"ariaHidden\",\"children\",\"className\",\"inactive\",\"material\",\"name\",\"size\",\"theme\"];function H(e){var t,a,i=e.ariaHidden,r=void 0===i||i,o=e.children,l=e.className,c=e.inactive,m=e.material,d=void 0===m||m,u=e.name,p=e.size,g=void 0===p?\"medium\":p,h=e.theme,f=_(e,V);return n.createElement(\"i\",L({\"aria-hidden\":r,className:s(\"icon\",(t={},t[\"icon--\"+g]=g,t),(a={},a[\"icon--\"+h]=h,a),{\"icon--active\":!c},{\"icon--inactive\":c},{\"icon--material\":d},l)},f),u||o)}function A(e){if(null===e)return 0;var n=e.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*n[0]+.7152*n[1]+.0722*n[2]}function B(e,n){var t=A(e),a=A(n),i=Math.min(t,a);return(Math.max(t,a)+.05)/(i+.05)}function q(e){var n=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(e);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:null}function R(e){function n(e){var n=e.toString(16);return 1===n.length?\"0\"+n:n}return\"#\"+n(e[0])+n(e[1])+n(e[2])}function F(e,n){var t;return function(){var a=this,i=arguments;clearTimeout(t),t=setTimeout(function(){return e.apply(a,i)},n)}}function W(e,n,t){e.addEventListener?e.addEventListener(n,t):e.attachEvent&&e.attachEvent(\"on\"+n,t)}function D(e,n,t){e.removeEventListener?e.removeEventListener(n,t):e.detachEvent&&e.detachEvent(\"on\"+n,t)}function Z(e){return void 0===e&&(e=function(){}),function(n){if(!n.defaultPrevented){var t=!1;\"Enter\"===n.key&&(t=!0,e(n)),t&&n.preventDefault()}}}function Y(e,n){return!!n&&(\"/\"===e?e===n.pathname:n.pathname.includes(e))}function U(e,n){return Object.keys(e).reduce(function(t,a){return Array.isArray(n)?n.includes(a)||(t[a]=e[a]):a!==n&&(t[a]=e[a]),t},{})}function G(e){void 0===e&&(e=\"smooth\"),\"undefined\"!=typeof window&&window.scrollTo({top:0,behavior:e})}function J(){return\"undefined\"!=typeof window&&\"undefined\"!=typeof document?(window.innerWidth||0)-(document.documentElement.clientWidth||0):0}function K(e){return(e.scrollHeight||0)>(e.clientHeight||0)}function $(e){return(e.scrollWidth||0)>(e.clientWidth||0)}function Q(e,n){var t,a;return function(){var i=this,r=arguments;a?(clearTimeout(t),t=setTimeout(function(){Date.now()-a>=n&&(e.apply(i,r),a=Date.now())},n-(Date.now()-a))):(e.apply(i,r),a=Date.now())}}function X(e,n,t){c.highlight(e,n,t)}function ee(e,n){c.highlightAll(e,n)}function ne(e,n,t){c.highlightAllUnder(e,n,t)}function te(e,n,t){c.highlightElement(e,n,t)}function ae(e){var t=e.hidden,a=e.LinkElementType,i=void 0===a?\"a\":a,r=e.links,o=void 0===r?[]:r,l=e.location,c=void 0===l?\"undefined\"!=typeof window&&window.location:l,m=e.onLinkClick;return n.createElement(\"nav\",{className:s(\"navbar\",{\"display-none\":void 0!==t&&t},e.className)},n.createElement(\"ul\",null,o.map(function(e){var t=e.to||e.path||e.href,a=Y(t,c);return n.createElement(\"li\",{key:t},n.createElement(S,L({},U(e,[\"leftIcon\",\"rightIcon\"]),{activeClassName:\"\",\"aria-current\":a?\"page\":\"false\",\"aria-label\":e.name,className:s({active:a}),ElementType:e.ElementType||i,onClick:function(){m&&m(e)},unstyled:!0}),e.leftIcon&&n.createElement(H,{className:\"margin-right-md\",name:e.leftIcon,size:\"small\"}),e.name,e.rightIcon&&n.createElement(H,{className:\"margin-left-md\",name:e.rightIcon,size:\"small\"})))})))}function ie(e){var n=e.children,i=e.rootElement,r=void 0===i?\"#root\":i,o=t(null),l=o[0],s=o[1];return a(function(){s(\"undefined\"!=typeof document?document.querySelector(r):null)},[r]),l?m(n,l):null}H.size=Object.freeze({inherit:\"inherit\",sm:\"sm\",small:\"small\",md:\"md\",medium:\"medium\",lg:\"lg\",large:\"large\",xl:\"xl\",extraLarge:\"extraLarge\"}),H.theme=Object.freeze({light:\"light\",dark:\"dark\"}),H.propTypes={ariaHidden:e.bool,children:e.node,className:e.string,inactive:e.bool,material:e.bool,name:e.string,size:e.oneOf(Object.keys(H.size)),theme:e.oneOf(Object.values(H.theme))},ae.propTypes={className:e.string,hidden:e.bool,LinkElementType:e.elementType,links:e.arrayOf(e.shape(S.propTypes)),location:e.object,onLinkClick:e.func},ie.propTypes={children:e.node.isRequired,rootElement:e.string};var re=[\"altText\",\"backgroundColor\",\"className\",\"ElementType\",\"foregroundColor\",\"icon\",\"iconName\",\"innerPadding\",\"rounded\",\"size\"];function oe(e){var t=e.backgroundColor,a=e.className,i=e.ElementType,r=void 0===i?\"i\":i,o=e.foregroundColor,l=e.icon,c=e.iconName,m=e.innerPadding,d=void 0===m?8:m,u=e.rounded,p=void 0!==u&&u,g=e.size,h=void 0===g?24:g,f=_(e,re);return n.createElement(r,L({},f,{className:s(\"icon\",\"social-icon\",{\"social-icon--rounded\":p},c,a),style:{backgroundColor:t,fill:o,width:h,height:h,padding:d}}),l||T[c])}function le(e){var t=e.backgroundColor,a=e.foregroundColor,i=e.hidden,r=e.iconInnerPadding,o=void 0===r?16:r,l=e.iconSize,c=void 0===l?32:l,m=e.iconSpacing,d=e.links,u=void 0===d?[]:d,p=e.onLinkClick,g=e.rounded,h=void 0!==g&&g,f=e.wrap,v=void 0!==f&&f;return n.createElement(\"div\",{className:s(\"social-nav-links\",{\"display-none\":void 0!==i&&i},e.className)},n.createElement(\"ul\",{className:s(\"social-nav-links__list\",{\"flex-wrap\":v})},u.map(function(e){var i=\"string\"==typeof e?z[e]:e;return n.createElement(\"li\",{className:\"social-nav-links__item\",key:i.key,style:{margin:m}},n.createElement(oe,{\"aria-label\":i.name,backgroundColor:t,ElementType:\"a\",foregroundColor:a||i.color,href:i.url,icon:i.icon,iconName:i.key,innerPadding:o,onClick:function(){p&&p(i)},rel:\"noopener noreferrer\",rounded:h,size:c,target:\"_blank\"}))})))}function se(e,n){var i=\"undefined\"!=typeof window?window.matchMedia(e):null,r=t(i),o=r[0],l=r[1],s=t(Boolean(o&&o.matches)),c=s[0],m=s[1];return a(function(){\"undefined\"!=typeof window&&l(window.matchMedia(e))},[e]),a(function(){var e,t=o;return t&&W(t,\"change\",e=function(){m(t.matches),n&&n(t.matches)}),function(){t&&e&&D(t,\"change\",e)}},[o,n]),c}oe.propTypes={altText:e.string,backgroundColor:e.string,className:e.string,ElementType:e.elementType,foregroundColor:e.string,icon:e.element,iconName:e.oneOf(Object.keys(T)),innerPadding:e.oneOfType([e.number,e.string]),rounded:e.bool,size:e.oneOfType([e.number,e.string])},le.propTypes={backgroundColor:e.string,className:e.string,foregroundColor:e.string,hidden:e.bool,iconInnerPadding:e.oneOfType([e.number,e.string]),iconSize:e.oneOfType([e.number,e.string]),iconSpacing:e.oneOfType([e.number,e.string]),links:e.arrayOf(C),onLinkClick:e.func,rounded:e.bool,wrap:e.bool};var ce={sm:576,small:576,md:768,medium:768,lg:992,large:992,xl:1200,extraLarge:1200};function me(e){return se(\"(min-width: \"+e+\")\")}function de(e){return se(\"(max-width: \"+e+\")\")}function ue(e){return se(\"(min-width: \"+ce[e]+\"px)\")}function pe(e){return se(\"(max-width: \"+(ce[e]-1)+\"px)\")}function ge(e,n,t){void 0===e&&(e=[]),void 0===t&&(t=function(){return null});var a=e.find(function(e){return t(n,e)});return a?a.documentTitle:null}function he(e){var n=t(!0),i=n[0],r=n[1],o=function(){r(!1)};return a(function(){var n=e.current;return n&&i&&(n.complete?o():W(n,\"load\",o)),function(){n&&D(n,\"load\",o)}},[e,i]),i}function fe(e,n){void 0===n&&(n=function(){});var t=!he(e);return a(function(){t&&n()},[t,n]),t}function ve(e,n){var i=t(function(){return function(e,n){if(\"undefined\"==typeof window||!localStorage)return n;var t=localStorage.getItem(e);return t&&JSON.parse(t)||n}(e,n)}),r=i[0],o=i[1];return a(function(){\"undefined\"!=typeof window&&localStorage&&localStorage.setItem(e,JSON.stringify(r))},[e,r]),[r,o]}function ye(e,n){void 0===e&&(e=!1),void 0===n&&(n=!0),a(function(){if(\"undefined\"!=typeof document)if(e){if(n){var t=J();t>0&&(document.body.style.paddingRight=t+\"px\")}document.body.classList.add(\"overflow-hidden\")}else document.body.classList.remove(\"overflow-hidden\"),n&&(document.body.style.paddingRight=null)},[e,n])}function be(){var e=t(!1),n=e[0],i=e[1];return a(function(){i(!0)},[]),n}function Ee(e,n,i){void 0===n&&(n=6),void 0===i&&(i=void 0);var r=t(0),o=r[0],l=r[1],s=o*n,c=s+n,m=Math.ceil(e.length/n);return a(function(){if(i&&\"undefined\"!=typeof sessionStorage){var e=sessionStorage.getItem(i),n=parseInt(e,10);Number.isNaN(n)||l(n),sessionStorage.removeItem(i)}},[i,e]),[{page:o,paginated:m>1,currentPage:o,totalPages:m,itemsPerPage:n,items:e.slice(s,c)},l]}function we(e,n,r){void 0===r&&(r=void 0);var o=t(\"\"),l=o[0],s=o[1],c=t(null),m=c[0],d=c[1],u=i(function(t){var a=t.toLowerCase().replace(\" \",\"\").trim();return e.filter(function(e){return n(e,a)})},[e,n]);return a(function(){if(r&&e.length>0&&\"undefined\"!=typeof sessionStorage){var n=sessionStorage.getItem(r);n&&(s(n),d(u(n))),sessionStorage.removeItem(r)}},[r,e,u]),[{query:l,results:m,value:l,onChange:function(e){s(e.target.value)},onSearch:function(e){d(e?u(e):null)}},s,d]}var Ne=r({theme:\"dark\",setTheme:function(){},toggleTheme:function(){}});function ke(e){void 0===e&&(e=\"light\");var n=ve(\"theme\",e),t=n[0],a=n[1],r=i(function(){a(\"dark\"===t?\"light\":\"dark\")},[t,a]);return\"undefined\"!=typeof window&&document&&document.documentElement&&document.documentElement.style.setProperty(\"color-scheme\",t),[t,a,r]}function xe(){var e=t((\"undefined\"!=typeof document?document.querySelector('link[rel*=\"icon\"]'):null)||function(){if(\"undefined\"!=typeof document){var e=document.createElement(\"link\");return e.setAttribute(\"rel\",\"favicon icon\"),document.head.appendChild(e),e}return null}())[0],n=se(\"(prefers-color-scheme:light)\"),a=se(\"(prefers-color-scheme:dark)\"),i=null;if(\"undefined\"!=typeof document&&(n?i=document.querySelector('link[rel*=\"icon\"][media=\"(prefers-color-scheme:light)\"]'):a&&(i=document.querySelector('link[rel*=\"icon\"][media=\"(prefers-color-scheme:dark)\"]'))),i&&e){var r=new URL(i.href);e.setAttribute(\"type\",i.type),e.setAttribute(\"href\",r.pathname)}return e}function Te(e){var i=e.animated,r=void 0!==i&&i,o=e.className,l=e.hideSocialLinks,c=void 0===l||l,m=e.LinkElementType,d=void 0===m?\"a\":m,u=e.links,p=void 0===u?[]:u,g=e.location,h=void 0===g?\"undefined\"!=typeof window&&window.location:g,f=e.onLinkClick,v=e.rootElement,y=e.socialLinks,b=void 0===y?[]:y,E=e.theme,w=t(!1),N=w[0],k=w[1];return ye(N,!0),a(function(){k(!1)},[h]),n.createElement(n.Fragment,null,n.createElement(\"button\",{\"aria-label\":N?\"Close\":\"Open\",className:\"navmenu__button\",onClick:function(){return k(!N)},size:\"small\",style:{zIndex:N?1055:void 0}},n.createElement(H,{name:N?\"close\":\"menu\",material:!0})),N&&n.createElement(ie,{rootElement:v},n.createElement(\"div\",{className:s(\"navmenu\",{\"navmenu--open\":N,\"navmenu--closed\":!N},{\"navmenu--animated\":r},o),\"data-theme\":E},n.createElement(\"div\",{className:\"navmenu__overlay\"}),n.createElement(\"div\",{className:\"navmenu__container container\"},n.createElement(\"div\",{className:\"navmenu__wrapper\"},n.createElement(\"ul\",{className:\"navmenu__list\"},p.map(function(e){var t=e.to||e.path||e.href,a=Y(t,h);return n.createElement(\"li\",{className:\"navmenu__item\",key:t},n.createElement(S,L({},U(e,[\"leftIcon\",\"rightIcon\"]),{activeClassName:\"\",\"aria-current\":a?\"page\":\"false\",\"aria-label\":e.name,className:s({active:a}),ElementType:e.ElementType||d,onClick:function(){f&&f(e)},unstyled:!0}),e.name))})),!c&&n.createElement(le,{foregroundColor:\"inherit\",iconInnerPadding:10,iconSize:20,links:Object.values(b)}))))))}function Ce(e){var t=e.bordered,a=e.fluid,i=void 0!==a&&a,r=e.hideLogo,o=void 0!==r&&r,l=e.hideNavigation,c=void 0!==l&&l,m=e.hideSocialLinks,d=void 0!==m&&m,u=e.LinkElementType,p=void 0===u?\"a\":u,g=e.links,h=void 0===g?[]:g,f=e.location,v=void 0===f?\"undefined\"!=typeof window&&window.location:f,y=e.logoSize,b=void 0===y?M.size.small:y,E=e.logoVariant,w=void 0===E?M.variant.wordmark:E,N=e.onLogoClick,k=e.onLinkClick,x=e.onSocialLinkClick,T=e.rootElement,C=e.socialLinks,z=void 0===C?[]:C,O=e.sticky,L=e.theme,_=e.transparent;return n.createElement(\"header\",{className:s(\"app-header\",{\"app-header--bordered\":void 0!==t&&t},{\"app-header--transparent\":void 0!==_&&_},{\"app-header--sticky\":void 0!==O&&O},e.className),\"data-theme\":L},n.createElement(\"div\",{className:s({container:!i,\"container-fluid\":i})},n.createElement(\"div\",{className:\"app-header__content left\"},!o&&n.createElement(M,{onClick:N,size:b,variant:w}),!c&&n.createElement(ae,{LinkElementType:p,links:h,location:v,onLinkClick:k,theme:L})),n.createElement(\"div\",{className:\"app-header__content right\"},!d&&z&&z.length>0&&n.createElement(le,{iconInnerPadding:10,iconSize:20,links:z,onLinkClick:x}),!c&&n.createElement(Te,{hideSocialLinks:d,LinkElementType:p,links:h,location:v,logoSize:b,logoVariant:w,onLinkClick:k,onLogoClick:N,rootElement:T,socialLinks:z,theme:L}))))}function ze(e,n){return void 0===e&&(e=\"en-us\"),void 0===n&&(n=e),{ios:\"https://linkmaker.itunes.apple.com/images/badges/\"+e+\"/badge_appstore-lrg.svg\",android:\"https://raw.github.com/yjb94/google-play-badge-svg/master/img/\"+n+\"_get.svg?sanitize=true\"}}function Oe(e){var a=e.alt,i=void 0===a?\"Download on the App Store\":a,r=e.className,l=e.defaultLocale,c=void 0===l?\"en-us\":l,m=e.locale,d=void 0===m?\"undefined\"!=typeof navigator&&navigator.language||c:m,u=e.platform,p=e.width,g=void 0===p?200:p,h=e.height,f=void 0===h?g/3.375:h,v=e.target,y=void 0===v?\"_blank\":v,b=e.url,E=d=d.toLowerCase();-1===[\"zh-cn\",\"zh-tw\"].indexOf(d)&&(E=d.split(/[_-]/)[0]);var w=t(ze(d,E)),N=w[0],k=w[1];return o(function(){k(ze(d,E))},[d,E]),n.createElement(\"a\",{className:s(\"app-store-badge\",r),href:b,target:y,style:{width:g,height:f}},n.createElement(\"img\",{alt:i||\"\",src:N[u],onError:function(){k(ze(c,E))}}))}function Le(e){var t,a=e.className,i=e.direction,r=void 0===i?\"right\":i,o=e.LinkElementType,l=void 0===o?\"a\":o,c=e.links,m=void 0===c?[]:c,d=e.theme;return n.createElement(\"div\",{className:s(\"app-utility-bar\",(t={},t[\"app-utility-bar--\"+r]=r,t),a),\"data-theme\":d},n.createElement(\"div\",{className:\"container\"},n.createElement(\"div\",{className:\"row\"},n.createElement(\"div\",{className:\"col font-xs font-weight-500\"},m.map(function(e){return n.createElement(S,L({},e,{\"aria-label\":e.name,className:\"color-inherit margin-left-md margin-right-md\",ElementType:e.ElementType||l,key:e.to||e.path||e.href}),e.name)})))))}function _e(e){var t,a=e.children,i=e.className,r=e.pill,o=void 0!==r&&r,l=e.type,c=void 0===l?\"solid\":l;return n.createElement(\"div\",{className:s(\"badge\",(t={},t[\"badge--\"+c]=c,t),{\"badge--pill\":o},i)},a)}Te.propTypes={animated:e.bool,className:e.string,hideSocialLinks:e.bool,LinkElementType:e.elementType,links:e.arrayOf(e.shape(S.propTypes)),location:e.object,onLinkClick:e.func,rootElement:e.string,socialLinks:e.arrayOf(C),theme:e.string},Ce.propTypes={bordered:e.bool,className:e.string,fluid:e.bool,hideLogo:e.bool,hideNavigation:e.bool,hideSocialLinks:e.bool,LinkElementType:e.elementType,links:e.arrayOf(e.shape(S.propTypes)),location:e.object,logoSize:e.oneOf(Object.values(M.size)),logoVariant:e.oneOf(Object.values(M.variant)),onLogoClick:e.func,onLinkClick:e.func,onSocialLinkClick:e.func,rootElement:e.string,socialLinks:e.arrayOf(C),sticky:e.bool,theme:e.string,transparent:e.bool},Oe.platform=Object.freeze({ios:\"ios\",android:\"android\"}),Oe.propTypes={alt:e.string,className:e.string,defaultLocale:e.string,locale:e.string,platform:e.oneOf(Object.values(Oe.platform)).isRequired,width:e.number,height:e.number,target:e.string,url:e.string.isRequired},Le.propTypes={className:e.string,direction:e.oneOf([\"left\",\"right\"]),LinkElementType:e.elementType,links:e.arrayOf(e.shape(S.propTypes)),theme:e.string},_e.type=Object.freeze({solid:\"solid\",outline:\"outline\"}),_e.propTypes={children:e.node,className:e.string,pill:e.bool,type:e.oneOf(Object.values(_e.type))};var je=[\"children\",\"className\",\"color\",\"icon\",\"iconElement\",\"iconName\",\"onClick\",\"shape\",\"size\",\"style\",\"styles\"];function Se(e){var t,a,i,r,o=e.children,l=e.className,c=e.color,m=void 0===c?\"default\":c,d=e.icon,u=e.iconElement,p=e.iconName,g=e.onClick,h=e.shape,f=void 0===h?\"rounded-corners\":h,v=e.size,y=void 0===v?\"small\":v,b=e.style,E=void 0===b?\"solid\":b,w=e.styles,N=_(e,je);return n.createElement(\"button\",L({className:s(\"btn\",(t={},t[\"btn--\"+m]=m,t),(a={},a[\"btn--\"+f]=f,a),(i={},i[\"btn--\"+E]=E,i),(r={},r[\"btn--\"+y]=y,r),{\"btn--icon-only\":\"only\"===d},l),onClick:g,style:w},N),\"left\"===d&&n.createElement(\"span\",{\"aria-hidden\":!0,className:\"icon-wrapper margin-right-md\"},u||n.createElement(H,{name:p,size:\"inherit\"})),\"only\"===d?n.createElement(\"span\",{\"aria-hidden\":!0,className:\"icon-wrapper\"},n.createElement(H,{name:p,size:\"inherit\"})):o,\"right\"===d&&n.createElement(\"span\",{\"aria-hidden\":!0,className:\"icon-wrapper margin-left-md\"},u||n.createElement(H,{name:p,size:\"inherit\"})))}function Ie(e){var t,a=e.children,i=e.className,r=e.layout,o=void 0===r?\"horizontal\":r,l=e.spacing,c=void 0===l||l;return n.createElement(\"div\",{className:s(\"btn-group\",(t={},t[\"btn-group--\"+o]=o,t),{\"btn-group--spacing\":c},i)},a)}Se.color=Object.freeze({default:\"default\",primary:\"primary\",secondary:\"secondary\",tertiary:\"tertiary\",success:\"success\",danger:\"danger\",warning:\"warning\",info:\"info\"}),Se.shape=Object.freeze({square:\"square\",roundedCorners:\"rounded-corners\",rounded:\"rounded\",circle:\"circle\"}),Se.size=Object.freeze({sm:\"sm\",small:\"small\",md:\"md\",medium:\"medium\",lg:\"lg\",large:\"large\"}),Se.style=Object.freeze({solid:\"solid\",outline:\"outline\",text:\"text\",none:\"unstyled\"}),Se.propTypes={children:e.node,className:e.string,color:e.oneOf(Object.values(Se.color)),icon:e.oneOf([\"left\",\"right\",\"only\"]),iconElement:e.element,iconName:e.string,onClick:e.func,shape:e.oneOf(Object.values(Se.shape)),size:e.oneOf(Object.values(Se.size)),style:e.oneOf(Object.values(Se.style)),styles:e.object},Ie.layout=Object.freeze({horizontal:\"horizontal\",vertical:\"vertical\"}),Ie.propTypes={children:e.node,className:e.string,layout:e.oneOf(Object.values(Ie.layout)),spacing:e.bool};var Me=[\"children\",\"className\",\"external\",\"history\",\"link\",\"linkTarget\",\"onClick\"];function Pe(e){var t=e.children,a=e.className,i=e.external,r=e.history,o=e.link,l=e.linkTarget,c=void 0===l?\"_blank\":l,m=e.onClick,d=_(e,Me);return n.createElement(\"div\",L({},d,{className:s(a,\"cursor-pointer\"),onClick:function(e){r&&o&&!i?r.push(o):\"undefined\"!=typeof window&&o&&i&&window.open(o,c),m&&m(e)},onKeyDown:Z(m),role:\"button\",tabIndex:\"0\"}),t)}function Ve(e){var t,i=e.children,r=e.language,o=void 0===r?\"none\":r,c=s(((t={})[\"language-\"+o]=o,t)),m=l();return a(function(){m.current&&m.current.querySelectorAll(\"pre code\").forEach(function(e){return te(e)})},[i,o,m]),n.createElement(\"pre\",{className:c,ref:m},n.createElement(\"code\",{className:c},i))}function He(e,n){var t,a;if(\"boolean\"==typeof n)return(t={})[\"col-\"+e]=n,t;if(\"number\"==typeof n||\"string\"==typeof n)return(a={})[\"col-\"+e+\"-\"+n]=!0,a;if(\"object\"==typeof n&&n){var i,r=n.size,o=n.order,l=n.offset;return(i={})[\"col-\"+e]=void 0===r,i[\"col-\"+e+\"-\"+r]=void 0!==r,i[\"order-\"+e+\"-\"+o]=void 0!==o,i[\"offset-\"+e+\"-\"+l]=void 0!==l,i}return null}function Ae(e){var t,a=e.children,i=e.className,r=e.gutters,o=e.sm,l=e.md,c=e.lg,m=e.xl;return n.createElement(\"div\",{className:s({col:!(o||l||c||m)},He(\"sm\",o),He(\"md\",l),He(\"lg\",c),He(\"xl\",m),(t={},t[\"gutters-\"+r]=r,t),i)},a)}Pe.propTypes={children:e.node,className:e.string,external:e.bool,history:e.shape({push:e.func.isRequired}),link:e.string,linkTarget:e.string,onClick:e.func},Ve.propTypes={children:e.node,language:e.string.isRequired};var Be=e.oneOfType([e.bool,e.number,e.string,e.shape({offset:e.oneOfType([e.number,e.string]),order:e.oneOfType([e.number,e.string]),size:e.oneOfType([e.number,e.string])})]);Ae.propTypes={children:e.node,className:e.string,gutters:e.oneOf([\"sm\",\"md\",\"lg\",\"none\"]),sm:Be,md:Be,lg:Be,xl:Be};var qe=n.forwardRef(function(e,t){var a=e.onSubmit,i=void 0===a?function(){}:a;return n.createElement(\"form\",{className:s(\"contact-form\",e.className),onSubmit:i,ref:t},n.createElement(\"input\",{\"aria-label\":\"Name\",id:\"contactName\",name:\"name\",placeholder:\"Name\",required:!0,type:\"text\"}),n.createElement(\"input\",{\"aria-label\":\"Email\",id:\"contactEmail\",name:\"email\",placeholder:\"Email\",required:!0,type:\"email\"}),n.createElement(\"textarea\",{\"aria-label\":\"Message\",id:\"contactMessage\",name:\"message\",placeholder:\"Message\",required:!0}),n.createElement(\"input\",{\"aria-label\":\"Send\",id:\"contactSubmit\",type:\"submit\",value:\"Send\"}))});function Re(e){var t,a=e.children,i=e.className,r=e.fluid;return n.createElement(\"div\",{className:s({container:!r},(t={},t[\"container-\"+r]=r&&\"string\"==typeof r,t),{\"container-fluid\":r&&\"boolean\"==typeof r},i)},a)}function Fe(e){var t=e.buttonText,a=void 0===t?\"Agree\":t,i=e.className,r=e.learnMoreLink,o=void 0===r?\"https://www.cookiesandyou.com/\":r,l=e.onConsent,c=void 0===l?function(){}:l,m=e.rootElement,u=e.theme,p=void 0===u?\"high-contrast\":u,g=d([\"cookieconsent_status\"]),h=g[1];return\"accepted\"===g[0].cookieconsent_status?null:n.createElement(ie,{rootElement:m},n.createElement(\"div\",{className:s(\"cookie-consent\",i),\"data-theme\":p},n.createElement(\"div\",{className:\"cookie-consent__container\"},n.createElement(\"span\",{className:\"cookie-consent__text font-sm\"},n.createElement(\"span\",{className:\"margin-right-md\"},\"This website uses cookies to ensure you get the best experience on our website.\"),o&&n.createElement(S,{className:\"color-inherit\",to:o,external:!0,underlined:!0},\"Learn more\")),n.createElement(Se,{className:\"cookie-consent__button\",color:Se.color.default,shape:Se.shape.square,size:Se.size.medium,onClick:function(){h(\"cookieconsent_status\",\"accepted\",{path:\"/\"}),c(!0)}},a))))}function We(e){var t=e.loading,a=e.size;return n.createElement(\"div\",{\"aria-hidden\":!0,className:s(\"loading-spinner\",{loading:void 0===t||t},void 0===a?\"medium\":a,e.className)},n.createElement(\"div\",{className:\"loading-spinner__animation\"},n.createElement(\"div\",null),n.createElement(\"div\",null),n.createElement(\"div\",null),n.createElement(\"div\",null)))}qe.displayName=\"ContactForm\",qe.propTypes={className:e.string,onSubmit:e.func},Re.propTypes={children:e.node,className:e.string,fluid:e.oneOfType([e.bool,e.oneOf([\"sm\",\"md\",\"lg\",\"xl\",\"fluid\"])])},Fe.propTypes={buttonText:e.string,className:e.string,learnMoreLink:e.string,onAgree:e.func,rootElement:e.string,theme:e.string},We.size=Object.freeze({sm:\"sm\",small:\"small\",md:\"md\",medium:\"medium\",lg:\"lg\",large:\"large\"}),We.propTypes={className:e.string,loading:e.bool,size:e.oneOf(Object.values(We.size))};var De=Object.freeze({xs:{width:320,height:180},extraSmall:{width:320,height:180},sm:{width:480,height:270},small:{width:480,height:270},md:{width:640,height:360},medium:{width:640,height:360},lg:{width:960,height:540},large:{width:960,height:540},xl:{width:1280,height:720},extraLarge:{width:1280,height:720}});function Ze(e){return null==e||\"string\"==typeof e&&(e.endsWith(\"%\")||e.endsWith(\"px\"))?e:e+\"px\"}function Ye(e){var t=e.allowFullScreen,a=void 0===t||t,i=e.className,r=e.frameBorder,o=void 0===r?\"0\":r,c=e.height,m=e.id,d=void 0===m?\"video-player\":m,u=e.scrolling,p=void 0===u?\"no\":u,g=e.size,h=e.src,f=e.title,v=void 0===f?\"Video Player\":f,y=e.width,b=l(),E=he(b),w=\"undefined\"!=typeof navigator&&!navigator.onLine,N=y||g&&De[g].width,k=c||g&&De[g].height;return n.createElement(\"div\",{className:s(\"embedded-video\",{loading:E},g,i),style:{width:Ze(N),height:Ze(k)}},n.createElement(\"div\",{className:s(\"embedded-video__wrapper\",\"transition\",\"fade-in\",{visible:!E})},n.createElement(\"iframe\",{allowFullScreen:a,frameBorder:o,height:k||\"100%\",id:d,ref:b,scrolling:p,src:h,title:v,width:N||\"100%\"})),E&&!w&&n.createElement(We,null))}Ye.size=De,Ye.propTypes={allowFullScreen:e.bool,className:e.string,frameBorder:e.string,height:e.oneOfType([e.string,e.number]),id:e.string,scrolling:e.string,size:e.oneOf(Object.keys(Ye.size)),src:e.string.isRequired,title:e.string,width:e.oneOfType([e.string,e.number])};var Ue=[\"channel\",\"className\",\"id\",\"muted\",\"secure\",\"title\"];function Ge(e){var t=e.channel,a=void 0===t?\"zigurous\":t,i=e.className,r=e.id,o=void 0===r?\"twitch-player\":r,l=e.muted,c=void 0===l||l,m=e.secure,d=void 0===m||m,u=e.title,p=void 0===u?\"Twitch\":u,g=_(e,Ue),h=d?\"https\":\"http\",f=[\"zigurous.com\",\"www.zigurous.com\"];return\"development\"===process.env.NODE_ENV&&f.push(\"localhost\"),n.createElement(Ye,L({className:s(\"twitch\",i),id:o,src:h+\"://player.twitch.tv/?channel=\"+a+\"&parent=\"+f.join(\"&parent=\")+\"&muted=\"+c,title:p},g))}Ge.propTypes={channel:e.string.isRequired,className:e.string,id:e.string,muted:e.bool,secure:e.bool,title:e.string};var Je=[\"autoplay\",\"captions\",\"className\",\"hideBranding\",\"hideControls\",\"hideInfo\",\"hideRelated\",\"id\",\"muted\",\"origin\",\"secure\",\"startTime\",\"title\",\"videoId\"];function Ke(e){var t=e.autoplay,a=void 0!==t&&t,i=e.captions,r=void 0!==i&&i,o=e.className,l=e.hideBranding,c=void 0!==l&&l,m=e.hideControls,d=void 0!==m&&m,u=e.hideInfo,p=void 0!==u&&u,g=e.hideRelated,h=void 0===g||g,f=e.id,v=void 0===f?\"youtube-player\":f,y=e.muted,b=void 0!==y&&y,E=e.origin,w=e.secure,N=void 0===w||w,k=e.startTime,x=e.title,T=void 0===x?\"YouTube\":x,C=e.videoId,z=_(e,Je),O=\"enablejsapi=1\";O+=\"&origin=\"+E,h&&(O+=\"&rel=0\"),d&&(O+=\"&controls=0\"),p&&(O+=\"&showinfo=0\"),c&&(O+=\"&modestbranding=1\"),r&&(O+=\"&cc_load_policy=1\"),a&&(O+=\"&autoplay=1\"),b&&(O+=\"&mute=1\"),k&&(O+=\"&start=\"+k);var j=N?\"https\":\"http\";return n.createElement(Ye,L({className:s(\"youtube\",o),id:v,src:j+\"://www.youtube.com/embed/\"+C+\"?\"+O,title:T},z))}Ke.propTypes={autoplay:e.bool,captions:e.bool,className:e.string,hideBranding:e.bool,hideControls:e.bool,hideInfo:e.bool,hideRelated:e.bool,id:e.string,muted:e.bool,origin:e.string.isRequired,secure:e.bool,startTime:e.oneOf([e.number,e.string]),title:e.string,videoId:e.string.isRequired};var $e=[\"className\",\"disabled\",\"icon\",\"iconAlignment\",\"onBlur\",\"onChange\",\"onFocus\",\"placeholder\",\"size\",\"type\",\"value\"];function Qe(e){var a,i,r=e.className,o=e.disabled,l=e.icon,c=e.iconAlignment,m=void 0===c?\"right\":c,d=e.onBlur,u=void 0===d?function(){}:d,p=e.onChange,g=void 0===p?function(){}:p,h=e.onFocus,f=void 0===h?function(){}:h,v=e.placeholder,y=e.size,b=e.type,E=e.value,w=_(e,$e),N=t(!1),k=N[0],x=N[1];return n.createElement(\"div\",{className:s(\"input-wrapper\",(a={},a[\"input-wrapper--\"+y]=y,a),(i={},i[\"input-wrapper--icon-\"+m]=l&&m,i),{focus:k,disabled:o},r)},n.createElement(\"input\",L({className:\"input-wrapper__input\",disabled:o,onBlur:function(){x(!1),u()},onChange:g,onFocus:function(){x(!0),f()},placeholder:v,type:b,value:E},w)),l&&n.createElement(H,{className:\"input-wrapper__icon\",name:l,size:\"md\"}))}function Xe(e){var t=e.alt,a=e.animated,i=void 0===a||a,r=e.className,o=e.height,c=e.imageClassName,m=e.ImageElementType,d=void 0===m?\"img\":m,u=e.imageProps,p=void 0===u?{}:u,g=e.onLoad,h=void 0===g?function(){}:g,f=e.placeholder,v=e.placeholderClassName,y=e.placeholderProps,b=void 0===y?{}:y,E=e.showLoadingSpinner,w=void 0!==E&&E,N=e.src,k=e.width,x=l(),T=fe(x,h);return n.createElement(\"picture\",{className:s(\"progressive-image\",{\"progressive-image--loaded\":T},{\"progressive-image--animated\":i},{\"progressive-image--no-placeholder\":!f},r)},n.createElement(d,L({},p,{alt:p.alt||t,className:s(\"progressive-image__source\",\"img-fluid\",c,p.className),width:k||p.width,height:o||p.height,ref:x,src:N})),f&&n.createElement(d,L({},b,{alt:b.alt||t,className:s(\"progressive-image__placeholder\",\"img-fluid\",v,b.className),width:k||b.width||p.width,height:o||b.height||p.height,src:f})),w&&!T&&n.createElement(We,null))}function en(e){return\"string\"==typeof e?e:e.src}function nn(e){return e?e+\"px\":void 0}function tn(e,n,t){return\"repeat(\"+(e||\"auto-fit\")+\", minmax(\"+(nn(n)||0)+\", \"+(nn(t)||\"1fr\")+\"))\"}function an(e){var a=e.animated,i=void 0!==a&&a,r=e.animation,o=void 0===r?\"fade-in-up\":r,l=e.className,c=e.columns,m=e.fullWidthFirstItem,d=void 0!==m&&m,p=e.images,g=void 0===p?[]:p,h=e.maxWidth,f=e.minWidth,v=t(!1),y=v[0],b=v[1],E=t(0),w=E[0],N=E[1];return n.createElement(\"div\",{className:s(\"image-gallery\",l)},n.createElement(\"div\",{className:\"image-gallery__thumbnails\",style:{gridTemplateColumns:tn(c,f,h)}},g.map(function(e,t){var a,r=\"object\"==typeof e,l=r?e.src:e,c=r&&e.id||l;return n.createElement(\"button\",{\"aria-label\":\"Image Thumbnail\",className:s(\"image-gallery__thumbnail\",{\"image-gallery__thumbnail--full-width\":0===t&&d},(a={\"animation-short\":i},a[\"animation-delay-\"+(t+1)]=i,a[o]=i,a),r&&e.className),key:c,onClick:function(){N(t),b(!0)}},n.createElement(Xe,{imageProps:r?U(e,\"className\"):{},src:l}))})),y&&n.createElement(u,{enableZoom:!1,mainSrc:en(g[w]),nextSrc:en(g[(w+1)%g.length]),prevSrc:en(g[(w+g.length-1)%g.length]),onCloseRequest:function(){b(!1)},onMovePrevRequest:function(){N((w+g.length-1)%g.length)},onMoveNextRequest:function(){N((w+1)%g.length)},wrapperClassName:\"image-gallery__lightbox\"}))}function rn(e){var t,a=e.children,i=e.className,r=e.footer,o=e.footerAlignment,l=void 0===o?\"left\":o,c=e.id,m=e.onRequestClose,d=void 0===m?function(){}:m,u=e.open,p=void 0!==u&&u,g=e.rootElement,h=e.theme,f=e.title;return ye(p,!0),p?n.createElement(ie,{rootElement:g},n.createElement(\"div\",{className:s(\"modal\",{\"modal--open\":p},i),id:c,role:\"dialog\",tabIndex:\"-1\",\"data-theme\":h},n.createElement(\"div\",{className:\"modal__dialog\",role:\"document\"},n.createElement(\"div\",{className:\"modal__content\"},n.createElement(\"div\",{className:\"modal__header\"},n.createElement(\"div\",{className:\"modal__title h5\"},f),n.createElement(Se,{className:\"modal__close-button\",icon:\"only\",iconName:\"close\",onClick:d,size:Se.size.medium,style:Se.style.none})),n.createElement(\"div\",{className:\"modal__body\"},a),r&&n.createElement(\"div\",{className:s(\"modal__footer\",(t={},t[\"modal__footer--\"+l+\"-aligned\"]=l,t))},r))))):null}function on(e){var t,a=e.backgroundColor,i=e.children,r=e.className,o=e.size,l=void 0===o?\"medium\":o,c=e.style,m=e.theme,d=e.transparent,u=void 0!==d&&d;return n.createElement(\"div\",{className:s(\"page-banner\",(t={},t[\"page-banner--\"+l]=l,t),{\"page-banner--transparent\":u},r),\"data-theme\":m,style:L({backgroundColor:a},c)},i)}function ln(e){for(var t=e.className,a=e.currentPage,i=void 0===a?0:a,r=e.onPageChange,o=void 0===r?function(){}:r,l=e.totalPages,c=[],m=function(e){c.push(n.createElement(Se,{className:s({active:i===e}),key:e,onClick:function(){return o(e)},size:\"md\",style:Se.style.outline},e+1))},d=0;d=l-1,icon:\"only\",iconName:\"chevron_right\",onClick:function(){return o(i+1)},size:\"md\",style:Se.style.outline}))}function sn(e){var t,a=e.children,i=e.className,r=e.gutters;return n.createElement(\"div\",{className:s(\"row\",(t={},t[\"gutters-\"+r]=r,t),i)},a)}Qe.size=Object.freeze({sm:\"sm\",small:\"small\",md:\"md\",medium:\"medium\",lg:\"lg\",large:\"large\"}),Qe.iconAlignment=Object.freeze({left:\"left\",right:\"right\"}),Qe.propTypes={className:e.string,disabled:e.bool,icon:e.string,iconAlignment:e.oneOf(Object.values(Qe.iconAlignment)),onBlur:e.func,onChange:e.func,onFocus:e.func,placeholder:e.string,size:e.oneOf(Object.values(Qe.size)),type:e.string,value:e.any},Xe.propTypes={alt:e.string,animated:e.bool,className:e.string,height:e.oneOfType([e.string,e.number]),imageClassName:e.string,ImageElementType:e.elementType,imageProps:e.object,onLoad:e.func,placeholder:e.string,placeholderClassName:e.string,placeholderProps:e.object,showLoadingSpinner:e.bool,src:e.string,width:e.oneOfType([e.string,e.number])},an.propTypes={animated:e.bool,animation:e.string,className:e.string,columns:e.number,fullWidthFirstItem:e.bool,images:e.arrayOf(e.oneOfType([e.shape({alt:e.string,className:e.string,id:e.string,src:e.string.isRequired}),e.string])),maxWidth:e.number,minWidth:e.number},rn.propTypes={children:e.node,className:e.string,footer:e.element,footerAlignment:e.oneOf([\"left\",\"right\"]),id:e.string,onRequestClose:e.func,open:e.bool,rootElement:e.string,theme:e.string,title:e.string},on.size=Object.freeze({xs:\"xs\",extraSmall:\"extraSmall\",sm:\"sm\",small:\"small\",md:\"md\",medium:\"medium\",lg:\"lg\",large:\"large\",xl:\"xl\",extraLarge:\"extraLarge\"}),on.propTypes={backgroundColor:e.string,children:e.node,className:e.string,size:e.oneOf(Object.values(on.size)),style:e.object,theme:e.string,transparent:e.bool},ln.propTypes={className:e.string,currentPage:e.number,onPageChange:e.func,totalPages:e.number.isRequired},sn.propTypes={children:e.node,className:e.string,gutters:e.oneOf([\"sm\",\"md\",\"lg\",\"none\"])};var cn=[\"className\",\"debounceRate\",\"disabled\",\"onChange\",\"onSearch\",\"placeholder\"];function mn(e){var t=e.className,a=e.debounceRate,r=void 0===a?500:a,o=e.disabled,l=e.onChange,c=void 0===l?function(){}:l,m=e.onSearch,d=void 0===m?function(){}:m,u=e.placeholder,p=_(e,cn),g=i(F(function(e){return d(e)},r),[r,d]);return n.createElement(Qe,L({\"aria-label\":\"Search\",className:s(\"search-input\",t),disabled:o,icon:\"search\",iconAlignment:\"left\",onChange:function(e){var n=e.target.value;c(e),g(n)},onKeyDown:Z(function(e){return e.target.blur()}),placeholder:u||\"Search\"},p))}function dn(e){var i=e.animated,r=void 0===i||i,o=e.children,l=e.className,c=e.hideOverlay,m=void 0!==c&&c,d=e.location,u=e.rootElement,p=e.theme,g=t(!1),h=g[0],f=g[1];return ye(h,!0),a(function(){f(!1)},[d]),n.createElement(n.Fragment,null,n.createElement(\"button\",{\"aria-label\":h?\"Close\":\"Open\",className:s(\"sidedrawer__button\"),onClick:function(){return f(!h)},size:\"small\"},n.createElement(H,{name:h?\"close\":\"menu\",material:!0})),n.createElement(ie,{rootElement:u},n.createElement(\"div\",{className:s(\"sidedrawer\",{\"sidedrawer--open\":h,\"sidedrawer--closed\":!h},{\"sidedrawer--animated\":r},l),\"data-theme\":p},!m&&n.createElement(Pe,{className:\"sidedrawer__overlay\",onClick:function(){return f(!1)}}),n.createElement(\"div\",{className:\"sidedrawer__container\"},o))))}mn.propTypes={className:e.string,debounceRate:e.number,disabled:e.bool,onChange:e.func,onSearch:e.func,placeholder:e.string},dn.propTypes={animated:e.bool,className:e.string,children:e.node,hideOverlay:e.bool,location:e.object,rootElement:e.string,theme:e.string};var un=[\"children\",\"className\",\"link\",\"LinkElementType\",\"primaryColor\",\"secondaryColor\",\"size\",\"url\"];function pn(e){var t=e.children,a=e.className,i=e.link,r=e.LinkElementType,o=e.primaryColor,l=e.secondaryColor,c=e.size,m=void 0===c?Se.size.medium:c,d=e.url,u=_(e,un),p=\"string\"==typeof i?z[i]:i,g=o||p.color;return n.createElement(S,{ElementType:r,external:!0,to:d||p.url,unstyled:!0},n.createElement(Se,L({className:s(\"social-button\",p.key,a),icon:\"left\",iconElement:p.icon&&n.createElement(oe,{\"aria-hidden\":!0,ElementType:\"i\",icon:p.icon,iconName:p.key,innerPadding:0,size:\"100%\"}),size:m,styles:{\"--btn-color-primary\":g,\"--btn-color-secondary\":l,\"--btn-color-emphasis\":g},tabIndex:-1},u),t||p.name))}function gn(e){var t,a=e.alignItems,i=e.children,r=e.direction,o=void 0===r?\"column\":r,l=e.justifyContent,c=e.reversed,m=void 0!==c&&c,d=e.wrap;return n.createElement(\"div\",{className:s(\"display-flex\",{\"flex-row\":\"row\"===o&&!m,\"flex-row-reverse\":\"row\"===o&&m,\"flex-column\":\"column\"===o&&!m,\"flex-column-reverse\":\"column\"===o&&m,\"flex-wrap\":void 0!==d&&d},(t={},t[\"justify-content-\"+l]=l,t[\"align-items-\"+a]=a,t))},i)}pn.shape=Se.shape,pn.size=Se.size,pn.style=Se.style,pn.propTypes={children:e.node,className:e.string,link:C.isRequired,LinkElementType:e.elementType,primaryColor:e.string,secondaryColor:e.string,size:e.oneOf(Object.values(Se.size)),url:e.string},gn.direction=Object.freeze({row:\"row\",column:\"column\"}),gn.alignItems=Object.freeze({start:\"start\",end:\"end\",center:\"center\",stretch:\"stretch\",baseline:\"baseline\"}),gn.justifyContent=Object.freeze({start:\"start\",end:\"end\",center:\"center\",between:\"between\",around:\"around\",evenly:\"evenly\"}),gn.propTypes={alignItems:e.oneOf(Object.values(gn.alignItems)),children:e.node,direction:e.oneOf(Object.values(gn.direction)),justifyContent:e.oneOf(Object.values(gn.justifyContent)),reversed:e.bool,wrap:e.bool};var hn=e.oneOf([\"inherit\",\"transparent\",\"black\",\"white\",\"foreground\",\"foreground-muted\",\"foreground-subtle\",\"background\",\"surface-0\",\"surface-1\",\"surface-2\",\"surface-3\",\"surface-4\",\"surface-5\",\"surface-6\",\"surface-7\",\"surface-8\",\"surface-9\",\"border\",\"default\",\"primary\",\"secondary\",\"tertiary\",\"success\",\"danger\",\"warning\",\"info\"]),fn=e.oneOf([1,2,3,4,5,6,\"1\",\"2\",\"3\",\"4\",\"5\",\"6\"]),vn=e.oneOf([\"xxxl\",\"xxl\",\"xl\",\"lg\",\"md\",\"sm\",\"xs\",\"xxs\",\"xxxs\"]),yn=e.oneOf([100,200,300,400,500,600,700,800,900,\"100\",\"200\",\"300\",\"400\",\"500\",\"600\",\"700\",\"800\",\"900\"]),bn=e.oneOf([\"0\",\"none\",\"xs\",\"sm\",\"md\",\"lg\",\"xl\",\"xxl\",\"xxxl\",\"2xl\",\"2xxl\",\"2xxxl\",\"1em\",\"2em\",\"3em\",\"4em\",\"5em\",\"6em\",\"7em\",\"8em\"]);function En(e){var t,a,i,r,o=e.bold,l=e.children,c=e.className,m=e.color,d=e.italic,u=e.marginBottom,p=e.marginTop,g=e.size,h=e.tag;return n.createElement(void 0===h?\"p\":h,{className:s((t={},t[\"font-\"+g]=g,t),(a={},a[\"color-\"+m]=m,a),(i={},i[\"margin-top-\"+p]=p,i),(r={},r[\"margin-bottom-\"+u]=u,r),c)},o?n.createElement(\"b\",null,d?n.createElement(\"em\",null,l):l):d?n.createElement(\"em\",null,l):l)}En.propTypes={bold:e.bool,children:e.node,className:e.string,color:hn,italic:e.bool,marginBottom:bn,marginTop:bn,size:vn,tag:e.elementType};var wn=[\"alt\",\"animated\",\"animation\",\"children\",\"className\",\"ElementType\",\"height\",\"image\",\"imageClassName\",\"ImageElementType\",\"imageProps\",\"index\",\"placeholder\",\"placeholderClassName\",\"placeholderProps\",\"rounded\",\"shadow\",\"style\",\"width\"];function Nn(e){var i,r=e.alt,o=e.animated,c=void 0!==o&&o,m=e.animation,d=void 0===m?\"fade-translate-in\":m,u=e.children,p=e.className,g=e.ElementType,h=void 0===g?\"a\":g,f=e.height,v=e.image,y=e.imageClassName,b=e.ImageElementType,E=void 0===b?\"img\":b,w=e.imageProps,N=void 0===w?{}:w,k=e.index,x=e.placeholder,T=e.placeholderClassName,C=e.placeholderProps,z=void 0===C?{}:C,O=e.rounded,j=void 0===O||O,S=e.shadow,I=void 0===S||S,M=e.width,P=_(e,wn),V=l(),H=t(!1),A=H[0],B=H[1];return a(function(){var e;return c&&A&&(e=setTimeout(function(){V&&V.current&&(V.current.style.animation=0)},600)),function(){e&&clearTimeout(e)}},[c,A,V]),n.createElement(h,L({},P,{className:s(\"thumbnail\",(i={\"animation-short\":c&&A},i[\"animation-delay-\"+(k+1)]=c&&A&&k>=0,i[d]=c&&A,i),{rounded:j,shadow:I},p),ref:V}),E&&n.createElement(Xe,{alt:r,height:f,imageClassName:y,ImageElementType:E,imageProps:N,onLoad:function(){return B(!0)},placeholder:x,placeholderClassName:T,placeholderProps:z,src:v,width:M}),u)}function kn(e){var t,a,i,r,o,l,c=e.bold,m=e.children,d=e.className,u=e.color,p=e.display,g=e.eyebrow,h=e.italic,f=e.marginBottom,v=e.marginTop,y=e.nowrap,b=e.size,E=e.subtitle,w=e.tag,N=e.weight;return n.createElement(void 0===w?\"div\":w,{className:s((t={},t[\"h\"+b]=!p&&void 0!==b,t),(a={},a[\"display-\"+b]=p&&void 0!==b,a),(i={},i[\"font-weight-\"+N]=void 0!==N,i),(r={},r[\"color-\"+u]=u,r),(o={},o[\"margin-top-\"+v]=v,o),(l={},l[\"margin-bottom-\"+f]=f,l),{\"text-nowrap\":y},{subtitle:E},{eyebrow:g},d)},c?n.createElement(\"b\",null,h?n.createElement(\"em\",null,m):m):h?n.createElement(\"em\",null,m):m)}function xn(e){return e.displayName||e.name||\"Component\"}function Tn(e,n){return e+\"(\"+xn(n)+\")\"}function Cn(e,t){void 0===t&&(t=\"smooth\");var i=function(i){return a(function(){G(t)},[]),n.createElement(e,i)};return i.displayName=Tn(\"ScrollToTop\",e),i}function zn(e){var t=function(t){return a(function(){ee()}),n.createElement(e,t)};return t.displayName=Tn(\"SyntaxHighlighting\",e),t}function On(e){var t=function(t){return xe(),n.createElement(e,t)};return t.displayName=Tn(\"ThemedFavicon\",e),t}Nn.propTypes={alt:e.string,animated:e.bool,animation:e.string,children:e.node,className:e.string,ElementType:e.elementType,height:e.oneOfType([e.string,e.number]),image:e.string,imageClassName:e.string,ImageElementType:e.elementType,imageProps:e.object,index:e.number,placeholder:e.string,placeholderClassName:e.string,placeholderProps:e.object,rounded:e.bool,shadow:e.bool,style:e.object,width:e.oneOfType([e.string,e.number])},kn.propTypes={bold:e.bool,children:e.node,className:e.string,color:hn,display:e.bool,eyebrow:e.bool,italic:e.bool,marginBottom:bn,marginTop:bn,nowrap:e.bool,size:fn,subtitle:e.bool,tag:e.elementType,weight:yn};var Ln={\"fade-in\":\"visible\",\"fade-out\":\"hidden\",\"translate-up\":\"hidden\",\"translate-down\":\"hidden\",\"translate-left\":\"hidden\",\"translate-right\":\"hidden\"};function _n(t){var a=function(e){var a=be();return n.createElement(t,L({},e,{className:s(e.className,\"transition\",\"fade-in\",{visible:a})}))};return a.displayName=Tn(\"FadeIn\",t),a.propTypes={className:e.string},a}function jn(t,a,i,r){var o=function(e){var o,l=Boolean(e[i]);return n.createElement(t,L({},e,{className:s(e.className,\"transition\",a,(o={},o[r||Ln[a]]=l,o))}))};return o.displayName=Tn(\"Transition\",t),o.propTypes={className:e.string},o}export{P as AppFooter,Ce as AppHeader,Oe as AppStoreBadge,Le as AppUtilityBar,_e as Badge,Se as Button,Ie as ButtonGroup,Pe as ClickableDiv,Ve as CodeBlock,Ae as Col,qe as ContactForm,Re as Container,Fe as CookieConsent,Ge as EmbeddedTwitch,Ye as EmbeddedVideo,Ke as EmbeddedYouTube,H as Icon,an as ImageGallery,Qe as Input,S as Link,We as LoadingSpinner,M as Logo,rn as Modal,ae as NavBar,Te as NavMenu,on as PageBanner,ln as Pagination,Xe as ProgressiveImage,ie as ReactPortal,sn as Row,mn as SearchInput,dn as SideDrawer,pn as SocialButton,oe as SocialIcon,C as SocialLinkProps,le as SocialNavLinks,gn as Stack,En as Text,Ne as ThemeContext,Nn as Thumbnail,kn as Title,W as bindEvent,ce as breakpoints,B as contrastRatio,F as debounce,Z as enterKeyHandler,_n as fadeIn,Tn as getDisplayName,J as getScrollbarWidth,xn as getWrappedDisplayName,$ as hasHorizontalScroll,K as hasVerticalScroll,q as hexToRgb,X as highlight,ee as highlightAll,ne as highlightAllUnder,te as highlightElement,T as icons,O as logo,A as luminance,U as omit,R as rgbToHex,G as scrollToTop,z as socialLinks,Q as throttle,D as unbindEvent,me as useBreakpoint,de as useBreakpointMax,ge as useDocumentTitle,fe as useLoaded,he as useLoading,ve as useLocalStorage,se as useMediaQuery,ye as useModalOverlay,be as useMounted,Ee as usePagination,we as useSearch,ue as useSizeClass,pe as useSizeClassMax,ke as useTheme,xe as useThemedFavicon,Cn as withScrollToTop,zn as withSyntaxHighlighting,On as withThemedFavicon,jn as withTransition};\n//# sourceMappingURL=index.modern.js.map\n","/*!\n * cookie\n * Copyright(c) 2012-2014 Roman Shtylman\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module exports.\n * @public\n */\n\nexports.parse = parse;\nexports.serialize = serialize;\n\n/**\n * Module variables.\n * @private\n */\n\nvar decode = decodeURIComponent;\nvar encode = encodeURIComponent;\n\n/**\n * RegExp to match field-content in RFC 7230 sec 3.2\n *\n * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\n * field-vchar = VCHAR / obs-text\n * obs-text = %x80-FF\n */\n\nvar fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\n\n/**\n * Parse a cookie header.\n *\n * Parse the given cookie header string into an object\n * The object has the various cookies as keys(names) => values\n *\n * @param {string} str\n * @param {object} [options]\n * @return {object}\n * @public\n */\n\nfunction parse(str, options) {\n if (typeof str !== 'string') {\n throw new TypeError('argument str must be a string');\n }\n\n var obj = {}\n var opt = options || {};\n var pairs = str.split(';')\n var dec = opt.decode || decode;\n\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n var index = pair.indexOf('=')\n\n // skip things that don't look like key=value\n if (index < 0) {\n continue;\n }\n\n var key = pair.substring(0, index).trim()\n\n // only assign once\n if (undefined == obj[key]) {\n var val = pair.substring(index + 1, pair.length).trim()\n\n // quoted values\n if (val[0] === '\"') {\n val = val.slice(1, -1)\n }\n\n obj[key] = tryDecode(val, dec);\n }\n }\n\n return obj;\n}\n\n/**\n * Serialize data into a cookie header.\n *\n * Serialize the a name value pair into a cookie string suitable for\n * http headers. An optional options object specified cookie parameters.\n *\n * serialize('foo', 'bar', { httpOnly: true })\n * => \"foo=bar; httpOnly\"\n *\n * @param {string} name\n * @param {string} val\n * @param {object} [options]\n * @return {string}\n * @public\n */\n\nfunction serialize(name, val, options) {\n var opt = options || {};\n var enc = opt.encode || encode;\n\n if (typeof enc !== 'function') {\n throw new TypeError('option encode is invalid');\n }\n\n if (!fieldContentRegExp.test(name)) {\n throw new TypeError('argument name is invalid');\n }\n\n var value = enc(val);\n\n if (value && !fieldContentRegExp.test(value)) {\n throw new TypeError('argument val is invalid');\n }\n\n var str = name + '=' + value;\n\n if (null != opt.maxAge) {\n var maxAge = opt.maxAge - 0;\n\n if (isNaN(maxAge) || !isFinite(maxAge)) {\n throw new TypeError('option maxAge is invalid')\n }\n\n str += '; Max-Age=' + Math.floor(maxAge);\n }\n\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n\n str += '; Domain=' + opt.domain;\n }\n\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n\n str += '; Path=' + opt.path;\n }\n\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n\n str += '; Expires=' + opt.expires.toUTCString();\n }\n\n if (opt.httpOnly) {\n str += '; HttpOnly';\n }\n\n if (opt.secure) {\n str += '; Secure';\n }\n\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string'\n ? opt.sameSite.toLowerCase() : opt.sameSite;\n\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n case 'lax':\n str += '; SameSite=Lax';\n break;\n case 'strict':\n str += '; SameSite=Strict';\n break;\n case 'none':\n str += '; SameSite=None';\n break;\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n\n return str;\n}\n\n/**\n * Try decoding a string using a decoding function.\n *\n * @param {string} str\n * @param {function} decode\n * @private\n */\n\nfunction tryDecode(str, decode) {\n try {\n return decode(str);\n } catch (e) {\n return str;\n }\n}\n","/*!\n Copyright (c) 2015 Jed Watson.\n Based on code that is Copyright 2013-2015, Facebook, Inc.\n All rights reserved.\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar canUseDOM = !!(\n\t\ttypeof window !== 'undefined' &&\n\t\twindow.document &&\n\t\twindow.document.createElement\n\t);\n\n\tvar ExecutionEnvironment = {\n\n\t\tcanUseDOM: canUseDOM,\n\n\t\tcanUseWorkers: typeof Worker !== 'undefined',\n\n\t\tcanUseEventListeners:\n\t\t\tcanUseDOM && !!(window.addEventListener || window.attachEvent),\n\n\t\tcanUseViewport: canUseDOM && !!window.screen\n\n\t};\n\n\tif (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\tdefine(function () {\n\t\t\treturn ExecutionEnvironment;\n\t\t});\n\t} else if (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = ExecutionEnvironment;\n\t} else {\n\t\twindow.ExecutionEnvironment = ExecutionEnvironment;\n\t}\n\n}());\n","Prism.languages.clike = {\n\t'comment': [\n\t\t{\n\t\t\tpattern: /(^|[^\\\\])\\/\\*[\\s\\S]*?(?:\\*\\/|$)/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true\n\t\t},\n\t\t{\n\t\t\tpattern: /(^|[^\\\\:])\\/\\/.*/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true\n\t\t}\n\t],\n\t'string': {\n\t\tpattern: /([\"'])(?:\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,\n\t\tgreedy: true\n\t},\n\t'class-name': {\n\t\tpattern: /(\\b(?:class|extends|implements|instanceof|interface|new|trait)\\s+|\\bcatch\\s+\\()[\\w.\\\\]+/i,\n\t\tlookbehind: true,\n\t\tinside: {\n\t\t\t'punctuation': /[.\\\\]/\n\t\t}\n\t},\n\t'keyword': /\\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\\b/,\n\t'boolean': /\\b(?:false|true)\\b/,\n\t'function': /\\b\\w+(?=\\()/,\n\t'number': /\\b0x[\\da-f]+\\b|(?:\\b\\d+(?:\\.\\d*)?|\\B\\.\\d+)(?:e[+-]?\\d+)?/i,\n\t'operator': /[<>]=?|[!=]=?=?|--?|\\+\\+?|&&?|\\|\\|?|[?*/~^%]/,\n\t'punctuation': /[{}[\\];(),.:]/\n};\n","(function (Prism) {\n\n\t/**\n\t * Replaces all placeholders \"<>\" of given pattern with the n-th replacement (zero based).\n\t *\n\t * Note: This is a simple text based replacement. Be careful when using backreferences!\n\t *\n\t * @param {string} pattern the given pattern.\n\t * @param {string[]} replacements a list of replacement which can be inserted into the given pattern.\n\t * @returns {string} the pattern with all placeholders replaced with their corresponding replacements.\n\t * @example replace(/a<<0>>a/.source, [/b+/.source]) === /a(?:b+)a/.source\n\t */\n\tfunction replace(pattern, replacements) {\n\t\treturn pattern.replace(/<<(\\d+)>>/g, function (m, index) {\n\t\t\treturn '(?:' + replacements[+index] + ')';\n\t\t});\n\t}\n\t/**\n\t * @param {string} pattern\n\t * @param {string[]} replacements\n\t * @param {string} [flags]\n\t * @returns {RegExp}\n\t */\n\tfunction re(pattern, replacements, flags) {\n\t\treturn RegExp(replace(pattern, replacements), flags || '');\n\t}\n\n\t/**\n\t * Creates a nested pattern where all occurrences of the string `<>` are replaced with the pattern itself.\n\t *\n\t * @param {string} pattern\n\t * @param {number} depthLog2\n\t * @returns {string}\n\t */\n\tfunction nested(pattern, depthLog2) {\n\t\tfor (var i = 0; i < depthLog2; i++) {\n\t\t\tpattern = pattern.replace(/<>/g, function () { return '(?:' + pattern + ')'; });\n\t\t}\n\t\treturn pattern.replace(/<>/g, '[^\\\\s\\\\S]');\n\t}\n\n\t// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/\n\tvar keywordKinds = {\n\t\t// keywords which represent a return or variable type\n\t\ttype: 'bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void',\n\t\t// keywords which are used to declare a type\n\t\ttypeDeclaration: 'class enum interface record struct',\n\t\t// contextual keywords\n\t\t// (\"var\" and \"dynamic\" are missing because they are used like types)\n\t\tcontextual: 'add alias and ascending async await by descending from(?=\\\\s*(?:\\\\w|$)) get global group into init(?=\\\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\\\s*{)',\n\t\t// all other keywords\n\t\tother: 'abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield'\n\t};\n\n\t// keywords\n\tfunction keywordsToPattern(words) {\n\t\treturn '\\\\b(?:' + words.trim().replace(/ /g, '|') + ')\\\\b';\n\t}\n\tvar typeDeclarationKeywords = keywordsToPattern(keywordKinds.typeDeclaration);\n\tvar keywords = RegExp(keywordsToPattern(keywordKinds.type + ' ' + keywordKinds.typeDeclaration + ' ' + keywordKinds.contextual + ' ' + keywordKinds.other));\n\tvar nonTypeKeywords = keywordsToPattern(keywordKinds.typeDeclaration + ' ' + keywordKinds.contextual + ' ' + keywordKinds.other);\n\tvar nonContextualKeywords = keywordsToPattern(keywordKinds.type + ' ' + keywordKinds.typeDeclaration + ' ' + keywordKinds.other);\n\n\t// types\n\tvar generic = nested(/<(?:[^<>;=+\\-*/%&|^]|<>)*>/.source, 2); // the idea behind the other forbidden characters is to prevent false positives. Same for tupleElement.\n\tvar nestedRound = nested(/\\((?:[^()]|<>)*\\)/.source, 2);\n\tvar name = /@?\\b[A-Za-z_]\\w*\\b/.source;\n\tvar genericName = replace(/<<0>>(?:\\s*<<1>>)?/.source, [name, generic]);\n\tvar identifier = replace(/(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*/.source, [nonTypeKeywords, genericName]);\n\tvar array = /\\[\\s*(?:,\\s*)*\\]/.source;\n\tvar typeExpressionWithoutTuple = replace(/<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?/.source, [identifier, array]);\n\tvar tupleElement = replace(/[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source, [generic, nestedRound, array]);\n\tvar tuple = replace(/\\(<<0>>+(?:,<<0>>+)+\\)/.source, [tupleElement]);\n\tvar typeExpression = replace(/(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?/.source, [tuple, identifier, array]);\n\n\tvar typeInside = {\n\t\t'keyword': keywords,\n\t\t'punctuation': /[<>()?,.:[\\]]/\n\t};\n\n\t// strings & characters\n\t// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#character-literals\n\t// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#string-literals\n\tvar character = /'(?:[^\\r\\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'/.source; // simplified pattern\n\tvar regularString = /\"(?:\\\\.|[^\\\\\"\\r\\n])*\"/.source;\n\tvar verbatimString = /@\"(?:\"\"|\\\\[\\s\\S]|[^\\\\\"])*\"(?!\")/.source;\n\n\n\tPrism.languages.csharp = Prism.languages.extend('clike', {\n\t\t'string': [\n\t\t\t{\n\t\t\t\tpattern: re(/(^|[^$\\\\])<<0>>/.source, [verbatimString]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: re(/(^|[^@$\\\\])<<0>>/.source, [regularString]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true\n\t\t\t}\n\t\t],\n\t\t'class-name': [\n\t\t\t{\n\t\t\t\t// Using static\n\t\t\t\t// using static System.Math;\n\t\t\t\tpattern: re(/(\\busing\\s+static\\s+)<<0>>(?=\\s*;)/.source, [identifier]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: typeInside\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Using alias (type)\n\t\t\t\t// using Project = PC.MyCompany.Project;\n\t\t\t\tpattern: re(/(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)/.source, [name, typeExpression]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: typeInside\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Using alias (alias)\n\t\t\t\t// using Project = PC.MyCompany.Project;\n\t\t\t\tpattern: re(/(\\busing\\s+)<<0>>(?=\\s*=)/.source, [name]),\n\t\t\t\tlookbehind: true\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Type declarations\n\t\t\t\t// class Foo\n\t\t\t\t// interface Foo\n\t\t\t\tpattern: re(/(\\b<<0>>\\s+)<<1>>/.source, [typeDeclarationKeywords, genericName]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: typeInside\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Single catch exception declaration\n\t\t\t\t// catch(Foo)\n\t\t\t\t// (things like catch(Foo e) is covered by variable declaration)\n\t\t\t\tpattern: re(/(\\bcatch\\s*\\(\\s*)<<0>>/.source, [identifier]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: typeInside\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Name of the type parameter of generic constraints\n\t\t\t\t// where Foo : class\n\t\t\t\tpattern: re(/(\\bwhere\\s+)<<0>>/.source, [name]),\n\t\t\t\tlookbehind: true\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Casts and checks via as and is.\n\t\t\t\t// as Foo, is Bar\n\t\t\t\t// (things like if(a is Foo b) is covered by variable declaration)\n\t\t\t\tpattern: re(/(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>/.source, [typeExpressionWithoutTuple]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: typeInside\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Variable, field and parameter declaration\n\t\t\t\t// (Foo bar, Bar baz, Foo[,,] bay, Foo> bax)\n\t\t\t\tpattern: re(/\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))/.source, [typeExpression, nonContextualKeywords, name]),\n\t\t\t\tinside: typeInside\n\t\t\t}\n\t\t],\n\t\t'keyword': keywords,\n\t\t// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#literals\n\t\t'number': /(?:\\b0(?:x[\\da-f_]*[\\da-f]|b[01_]*[01])|(?:\\B\\.\\d+(?:_+\\d+)*|\\b\\d+(?:_+\\d+)*(?:\\.\\d+(?:_+\\d+)*)?)(?:e[-+]?\\d+(?:_+\\d+)*)?)(?:[dflmu]|lu|ul)?\\b/i,\n\t\t'operator': />>=?|<<=?|[-=]>|([-+&|])\\1|~|\\?\\?=?|[-+*/%&|^!=<>]=?/,\n\t\t'punctuation': /\\?\\.?|::|[{}[\\];(),.:]/\n\t});\n\n\tPrism.languages.insertBefore('csharp', 'number', {\n\t\t'range': {\n\t\t\tpattern: /\\.\\./,\n\t\t\talias: 'operator'\n\t\t}\n\t});\n\n\tPrism.languages.insertBefore('csharp', 'punctuation', {\n\t\t'named-parameter': {\n\t\t\tpattern: re(/([(,]\\s*)<<0>>(?=\\s*:)/.source, [name]),\n\t\t\tlookbehind: true,\n\t\t\talias: 'punctuation'\n\t\t}\n\t});\n\n\tPrism.languages.insertBefore('csharp', 'class-name', {\n\t\t'namespace': {\n\t\t\t// namespace Foo.Bar {}\n\t\t\t// using Foo.Bar;\n\t\t\tpattern: re(/(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])/.source, [name]),\n\t\t\tlookbehind: true,\n\t\t\tinside: {\n\t\t\t\t'punctuation': /\\./\n\t\t\t}\n\t\t},\n\t\t'type-expression': {\n\t\t\t// default(Foo), typeof(Foo), sizeof(int)\n\t\t\tpattern: re(/(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))/.source, [nestedRound]),\n\t\t\tlookbehind: true,\n\t\t\talias: 'class-name',\n\t\t\tinside: typeInside\n\t\t},\n\t\t'return-type': {\n\t\t\t// Foo ForBar(); Foo IFoo.Bar() => 0\n\t\t\t// int this[int index] => 0; T IReadOnlyList.this[int index] => this[index];\n\t\t\t// int Foo => 0; int Foo { get; set } = 0;\n\t\t\tpattern: re(/<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))/.source, [typeExpression, identifier]),\n\t\t\tinside: typeInside,\n\t\t\talias: 'class-name'\n\t\t},\n\t\t'constructor-invocation': {\n\t\t\t// new List> { }\n\t\t\tpattern: re(/(\\bnew\\s+)<<0>>(?=\\s*[[({])/.source, [typeExpression]),\n\t\t\tlookbehind: true,\n\t\t\tinside: typeInside,\n\t\t\talias: 'class-name'\n\t\t},\n\t\t/*'explicit-implementation': {\n\t\t\t// int IFoo.Bar => 0; void IFoo>.Foo();\n\t\t\tpattern: replace(/\\b<<0>>(?=\\.<<1>>)/, className, methodOrPropertyDeclaration),\n\t\t\tinside: classNameInside,\n\t\t\talias: 'class-name'\n\t\t},*/\n\t\t'generic-method': {\n\t\t\t// foo()\n\t\t\tpattern: re(/<<0>>\\s*<<1>>(?=\\s*\\()/.source, [name, generic]),\n\t\t\tinside: {\n\t\t\t\t'function': re(/^<<0>>/.source, [name]),\n\t\t\t\t'generic': {\n\t\t\t\t\tpattern: RegExp(generic),\n\t\t\t\t\talias: 'class-name',\n\t\t\t\t\tinside: typeInside\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'type-list': {\n\t\t\t// The list of types inherited or of generic constraints\n\t\t\t// class Foo : Bar, IList\n\t\t\t// where F : Bar, IList\n\t\t\tpattern: re(\n\t\t\t\t/\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))/.source,\n\t\t\t\t[typeDeclarationKeywords, genericName, name, typeExpression, keywords.source, nestedRound, /\\bnew\\s*\\(\\s*\\)/.source]\n\t\t\t),\n\t\t\tlookbehind: true,\n\t\t\tinside: {\n\t\t\t\t'record-arguments': {\n\t\t\t\t\tpattern: re(/(^(?!new\\s*\\()<<0>>\\s*)<<1>>/.source, [genericName, nestedRound]),\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tgreedy: true,\n\t\t\t\t\tinside: Prism.languages.csharp\n\t\t\t\t},\n\t\t\t\t'keyword': keywords,\n\t\t\t\t'class-name': {\n\t\t\t\t\tpattern: RegExp(typeExpression),\n\t\t\t\t\tgreedy: true,\n\t\t\t\t\tinside: typeInside\n\t\t\t\t},\n\t\t\t\t'punctuation': /[,()]/\n\t\t\t}\n\t\t},\n\t\t'preprocessor': {\n\t\t\tpattern: /(^[\\t ]*)#.*/m,\n\t\t\tlookbehind: true,\n\t\t\talias: 'property',\n\t\t\tinside: {\n\t\t\t\t// highlight preprocessor directives as keywords\n\t\t\t\t'directive': {\n\t\t\t\t\tpattern: /(#)\\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\\b/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\talias: 'keyword'\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\t// attributes\n\tvar regularStringOrCharacter = regularString + '|' + character;\n\tvar regularStringCharacterOrComment = replace(/\\/(?![*/])|\\/\\/[^\\r\\n]*[\\r\\n]|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>/.source, [regularStringOrCharacter]);\n\tvar roundExpression = nested(replace(/[^\"'/()]|<<0>>|\\(<>*\\)/.source, [regularStringCharacterOrComment]), 2);\n\n\t// https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/attributes/#attribute-targets\n\tvar attrTarget = /\\b(?:assembly|event|field|method|module|param|property|return|type)\\b/.source;\n\tvar attr = replace(/<<0>>(?:\\s*\\(<<1>>*\\))?/.source, [identifier, roundExpression]);\n\n\tPrism.languages.insertBefore('csharp', 'class-name', {\n\t\t'attribute': {\n\t\t\t// Attributes\n\t\t\t// [Foo], [Foo(1), Bar(2, Prop = \"foo\")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]\n\t\t\tpattern: re(/((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])/.source, [attrTarget, attr]),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'target': {\n\t\t\t\t\tpattern: re(/^<<0>>(?=\\s*:)/.source, [attrTarget]),\n\t\t\t\t\talias: 'keyword'\n\t\t\t\t},\n\t\t\t\t'attribute-arguments': {\n\t\t\t\t\tpattern: re(/\\(<<0>>*\\)/.source, [roundExpression]),\n\t\t\t\t\tinside: Prism.languages.csharp\n\t\t\t\t},\n\t\t\t\t'class-name': {\n\t\t\t\t\tpattern: RegExp(identifier),\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'punctuation': /\\./\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t'punctuation': /[:,]/\n\t\t\t}\n\t\t}\n\t});\n\n\n\t// string interpolation\n\tvar formatString = /:[^}\\r\\n]+/.source;\n\t// multi line\n\tvar mInterpolationRound = nested(replace(/[^\"'/()]|<<0>>|\\(<>*\\)/.source, [regularStringCharacterOrComment]), 2);\n\tvar mInterpolation = replace(/\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}/.source, [mInterpolationRound, formatString]);\n\t// single line\n\tvar sInterpolationRound = nested(replace(/[^\"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<>*\\)/.source, [regularStringOrCharacter]), 2);\n\tvar sInterpolation = replace(/\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}/.source, [sInterpolationRound, formatString]);\n\n\tfunction createInterpolationInside(interpolation, interpolationRound) {\n\t\treturn {\n\t\t\t'interpolation': {\n\t\t\t\tpattern: re(/((?:^|[^{])(?:\\{\\{)*)<<0>>/.source, [interpolation]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: {\n\t\t\t\t\t'format-string': {\n\t\t\t\t\t\tpattern: re(/(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)/.source, [interpolationRound, formatString]),\n\t\t\t\t\t\tlookbehind: true,\n\t\t\t\t\t\tinside: {\n\t\t\t\t\t\t\t'punctuation': /^:/\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t'punctuation': /^\\{|\\}$/,\n\t\t\t\t\t'expression': {\n\t\t\t\t\t\tpattern: /[\\s\\S]+/,\n\t\t\t\t\t\talias: 'language-csharp',\n\t\t\t\t\t\tinside: Prism.languages.csharp\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t'string': /[\\s\\S]+/\n\t\t};\n\t}\n\n\tPrism.languages.insertBefore('csharp', 'string', {\n\t\t'interpolation-string': [\n\t\t\t{\n\t\t\t\tpattern: re(/(^|[^\\\\])(?:\\$@|@\\$)\"(?:\"\"|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{\"])*\"/.source, [mInterpolation]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: createInterpolationInside(mInterpolation, mInterpolationRound),\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: re(/(^|[^@\\\\])\\$\"(?:\\\\.|\\{\\{|<<0>>|[^\\\\\"{])*\"/.source, [sInterpolation]),\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: createInterpolationInside(sInterpolation, sInterpolationRound),\n\t\t\t}\n\t\t],\n\t\t'char': {\n\t\t\tpattern: RegExp(character),\n\t\t\tgreedy: true\n\t\t}\n\t});\n\n\tPrism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp;\n\n}(Prism));\n","(function (Prism) {\n\n\tvar string = /(?:\"(?:\\\\(?:\\r\\n|[\\s\\S])|[^\"\\\\\\r\\n])*\"|'(?:\\\\(?:\\r\\n|[\\s\\S])|[^'\\\\\\r\\n])*')/;\n\n\tPrism.languages.css = {\n\t\t'comment': /\\/\\*[\\s\\S]*?\\*\\//,\n\t\t'atrule': {\n\t\t\tpattern: RegExp('@[\\\\w-](?:' + /[^;{\\s\"']|\\s+(?!\\s)/.source + '|' + string.source + ')*?' + /(?:;|(?=\\s*\\{))/.source),\n\t\t\tinside: {\n\t\t\t\t'rule': /^@[\\w-]+/,\n\t\t\t\t'selector-function-argument': {\n\t\t\t\t\tpattern: /(\\bselector\\s*\\(\\s*(?![\\s)]))(?:[^()\\s]|\\s+(?![\\s)])|\\((?:[^()]|\\([^()]*\\))*\\))+(?=\\s*\\))/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\talias: 'selector'\n\t\t\t\t},\n\t\t\t\t'keyword': {\n\t\t\t\t\tpattern: /(^|[^\\w-])(?:and|not|only|or)(?![\\w-])/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t}\n\t\t\t\t// See rest below\n\t\t\t}\n\t\t},\n\t\t'url': {\n\t\t\t// https://drafts.csswg.org/css-values-3/#urls\n\t\t\tpattern: RegExp('\\\\burl\\\\((?:' + string.source + '|' + /(?:[^\\\\\\r\\n()\"']|\\\\[\\s\\S])*/.source + ')\\\\)', 'i'),\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'function': /^url/i,\n\t\t\t\t'punctuation': /^\\(|\\)$/,\n\t\t\t\t'string': {\n\t\t\t\t\tpattern: RegExp('^' + string.source + '$'),\n\t\t\t\t\talias: 'url'\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'selector': {\n\t\t\tpattern: RegExp('(^|[{}\\\\s])[^{}\\\\s](?:[^{};\"\\'\\\\s]|\\\\s+(?![\\\\s{])|' + string.source + ')*(?=\\\\s*\\\\{)'),\n\t\t\tlookbehind: true\n\t\t},\n\t\t'string': {\n\t\t\tpattern: string,\n\t\t\tgreedy: true\n\t\t},\n\t\t'property': {\n\t\t\tpattern: /(^|[^-\\w\\xA0-\\uFFFF])(?!\\s)[-_a-z\\xA0-\\uFFFF](?:(?!\\s)[-\\w\\xA0-\\uFFFF])*(?=\\s*:)/i,\n\t\t\tlookbehind: true\n\t\t},\n\t\t'important': /!important\\b/i,\n\t\t'function': {\n\t\t\tpattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\\()/i,\n\t\t\tlookbehind: true\n\t\t},\n\t\t'punctuation': /[(){};:,]/\n\t};\n\n\tPrism.languages.css['atrule'].inside.rest = Prism.languages.css;\n\n\tvar markup = Prism.languages.markup;\n\tif (markup) {\n\t\tmarkup.tag.addInlined('style', 'css');\n\t\tmarkup.tag.addAttribute('style', 'css');\n\t}\n\n}(Prism));\n","Prism.languages.javascript = Prism.languages.extend('clike', {\n\t'class-name': [\n\t\tPrism.languages.clike['class-name'],\n\t\t{\n\t\t\tpattern: /(^|[^$\\w\\xA0-\\uFFFF])(?!\\s)[_$A-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\.(?:constructor|prototype))/,\n\t\t\tlookbehind: true\n\t\t}\n\t],\n\t'keyword': [\n\t\t{\n\t\t\tpattern: /((?:^|\\})\\s*)catch\\b/,\n\t\t\tlookbehind: true\n\t\t},\n\t\t{\n\t\t\tpattern: /(^|[^.]|\\.\\.\\.\\s*)\\b(?:as|assert(?=\\s*\\{)|async(?=\\s*(?:function\\b|\\(|[$\\w\\xA0-\\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\\s*(?:\\{|$))|for|from(?=\\s*(?:['\"]|$))|function|(?:get|set)(?=\\s*(?:[#\\[$\\w\\xA0-\\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\\b/,\n\t\t\tlookbehind: true\n\t\t},\n\t],\n\t// Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)\n\t'function': /#?(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*(?:\\.\\s*(?:apply|bind|call)\\s*)?\\()/,\n\t'number': {\n\t\tpattern: RegExp(\n\t\t\t/(^|[^\\w$])/.source +\n\t\t\t'(?:' +\n\t\t\t(\n\t\t\t\t// constant\n\t\t\t\t/NaN|Infinity/.source +\n\t\t\t\t'|' +\n\t\t\t\t// binary integer\n\t\t\t\t/0[bB][01]+(?:_[01]+)*n?/.source +\n\t\t\t\t'|' +\n\t\t\t\t// octal integer\n\t\t\t\t/0[oO][0-7]+(?:_[0-7]+)*n?/.source +\n\t\t\t\t'|' +\n\t\t\t\t// hexadecimal integer\n\t\t\t\t/0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?/.source +\n\t\t\t\t'|' +\n\t\t\t\t// decimal bigint\n\t\t\t\t/\\d+(?:_\\d+)*n/.source +\n\t\t\t\t'|' +\n\t\t\t\t// decimal number (integer or float) but no bigint\n\t\t\t\t/(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?/.source\n\t\t\t) +\n\t\t\t')' +\n\t\t\t/(?![\\w$])/.source\n\t\t),\n\t\tlookbehind: true\n\t},\n\t'operator': /--|\\+\\+|\\*\\*=?|=>|&&=?|\\|\\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\\.{3}|\\?\\?=?|\\?\\.?|[~:]/\n});\n\nPrism.languages.javascript['class-name'][0].pattern = /(\\b(?:class|extends|implements|instanceof|interface|new)\\s+)[\\w.\\\\]+/;\n\nPrism.languages.insertBefore('javascript', 'keyword', {\n\t'regex': {\n\t\tpattern: RegExp(\n\t\t\t// lookbehind\n\t\t\t// eslint-disable-next-line regexp/no-dupe-characters-character-class\n\t\t\t/((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)/.source +\n\t\t\t// Regex pattern:\n\t\t\t// There are 2 regex patterns here. The RegExp set notation proposal added support for nested character\n\t\t\t// classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible\n\t\t\t// with the only syntax, so we have to define 2 different regex patterns.\n\t\t\t/\\//.source +\n\t\t\t'(?:' +\n\t\t\t/(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}/.source +\n\t\t\t'|' +\n\t\t\t// `v` flag syntax. This supports 3 levels of nested character classes.\n\t\t\t/(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source +\n\t\t\t')' +\n\t\t\t// lookahead\n\t\t\t/(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))/.source\n\t\t),\n\t\tlookbehind: true,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'regex-source': {\n\t\t\t\tpattern: /^(\\/)[\\s\\S]+(?=\\/[a-z]*$)/,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'language-regex',\n\t\t\t\tinside: Prism.languages.regex\n\t\t\t},\n\t\t\t'regex-delimiter': /^\\/|\\/$/,\n\t\t\t'regex-flags': /^[a-z]+$/,\n\t\t}\n\t},\n\t// This must be declared before keyword because we use \"function\" inside the look-forward\n\t'function-variable': {\n\t\tpattern: /#?(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*[=:]\\s*(?:async\\s*)?(?:\\bfunction\\b|(?:\\((?:[^()]|\\([^()]*\\))*\\)|(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*)\\s*=>))/,\n\t\talias: 'function'\n\t},\n\t'parameter': [\n\t\t{\n\t\t\tpattern: /(function(?:\\s+(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*)?\\s*\\(\\s*)(?!\\s)(?:[^()\\s]|\\s+(?![\\s)])|\\([^()]*\\))+(?=\\s*\\))/,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages.javascript\n\t\t},\n\t\t{\n\t\t\tpattern: /(^|[^$\\w\\xA0-\\uFFFF])(?!\\s)[_$a-z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*=>)/i,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages.javascript\n\t\t},\n\t\t{\n\t\t\tpattern: /(\\(\\s*)(?!\\s)(?:[^()\\s]|\\s+(?![\\s)])|\\([^()]*\\))+(?=\\s*\\)\\s*=>)/,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages.javascript\n\t\t},\n\t\t{\n\t\t\tpattern: /((?:\\b|\\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\\w\\xA0-\\uFFFF]))(?:(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*\\s*)\\(\\s*|\\]\\s*\\(\\s*)(?!\\s)(?:[^()\\s]|\\s+(?![\\s)])|\\([^()]*\\))+(?=\\s*\\)\\s*\\{)/,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages.javascript\n\t\t}\n\t],\n\t'constant': /\\b[A-Z](?:[A-Z_]|\\dx?)*\\b/\n});\n\nPrism.languages.insertBefore('javascript', 'string', {\n\t'hashbang': {\n\t\tpattern: /^#!.*/,\n\t\tgreedy: true,\n\t\talias: 'comment'\n\t},\n\t'template-string': {\n\t\tpattern: /`(?:\\\\[\\s\\S]|\\$\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})+\\}|(?!\\$\\{)[^\\\\`])*`/,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'template-punctuation': {\n\t\t\t\tpattern: /^`|`$/,\n\t\t\t\talias: 'string'\n\t\t\t},\n\t\t\t'interpolation': {\n\t\t\t\tpattern: /((?:^|[^\\\\])(?:\\\\{2})*)\\$\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})+\\}/,\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation-punctuation': {\n\t\t\t\t\t\tpattern: /^\\$\\{|\\}$/,\n\t\t\t\t\t\talias: 'punctuation'\n\t\t\t\t\t},\n\t\t\t\t\trest: Prism.languages.javascript\n\t\t\t\t}\n\t\t\t},\n\t\t\t'string': /[\\s\\S]+/\n\t\t}\n\t},\n\t'string-property': {\n\t\tpattern: /((?:^|[,{])[ \\t]*)([\"'])(?:\\\\(?:\\r\\n|[\\s\\S])|(?!\\2)[^\\\\\\r\\n])*\\2(?=\\s*:)/m,\n\t\tlookbehind: true,\n\t\tgreedy: true,\n\t\talias: 'property'\n\t}\n});\n\nPrism.languages.insertBefore('javascript', 'operator', {\n\t'literal-property': {\n\t\tpattern: /((?:^|[,{])[ \\t]*)(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*:)/m,\n\t\tlookbehind: true,\n\t\talias: 'property'\n\t},\n});\n\nif (Prism.languages.markup) {\n\tPrism.languages.markup.tag.addInlined('script', 'javascript');\n\n\t// add attribute support for all DOM events.\n\t// https://developer.mozilla.org/en-US/docs/Web/Events#Standard_events\n\tPrism.languages.markup.tag.addAttribute(\n\t\t/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,\n\t\t'javascript'\n\t);\n}\n\nPrism.languages.js = Prism.languages.javascript;\n","Prism.languages.markup = {\n\t'comment': {\n\t\tpattern: //,\n\t\tgreedy: true\n\t},\n\t'prolog': {\n\t\tpattern: /<\\?[\\s\\S]+?\\?>/,\n\t\tgreedy: true\n\t},\n\t'doctype': {\n\t\t// https://www.w3.org/TR/xml/#NT-doctypedecl\n\t\tpattern: /\"'[\\]]|\"[^\"]*\"|'[^']*')+(?:\\[(?:[^<\"'\\]]|\"[^\"]*\"|'[^']*'|<(?!!--)|)*\\]\\s*)?>/i,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'internal-subset': {\n\t\t\t\tpattern: /(^[^\\[]*\\[)[\\s\\S]+(?=\\]>$)/,\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: null // see below\n\t\t\t},\n\t\t\t'string': {\n\t\t\t\tpattern: /\"[^\"]*\"|'[^']*'/,\n\t\t\t\tgreedy: true\n\t\t\t},\n\t\t\t'punctuation': /^$|[[\\]]/,\n\t\t\t'doctype-tag': /^DOCTYPE/i,\n\t\t\t'name': /[^\\s<>'\"]+/\n\t\t}\n\t},\n\t'cdata': {\n\t\tpattern: //i,\n\t\tgreedy: true\n\t},\n\t'tag': {\n\t\tpattern: /<\\/?(?!\\d)[^\\s>\\/=$<%]+(?:\\s(?:\\s*[^\\s>\\/=]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))|(?=[\\s/>])))+)?\\s*\\/?>/,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'tag': {\n\t\t\t\tpattern: /^<\\/?[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': /^<\\/?/,\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t},\n\t\t\t'special-attr': [],\n\t\t\t'attr-value': {\n\t\t\t\tpattern: /=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+)/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^=/,\n\t\t\t\t\t\t\talias: 'attr-equals'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^(\\s*)[\"']|[\"']$/,\n\t\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t},\n\t\t\t'punctuation': /\\/?>/,\n\t\t\t'attr-name': {\n\t\t\t\tpattern: /[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t},\n\t'entity': [\n\t\t{\n\t\t\tpattern: /&[\\da-z]{1,8};/i,\n\t\t\talias: 'named-entity'\n\t\t},\n\t\t/&#x?[\\da-f]{1,8};/i\n\t]\n};\n\nPrism.languages.markup['tag'].inside['attr-value'].inside['entity'] =\n\tPrism.languages.markup['entity'];\nPrism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup;\n\n// Plugin to make entity title show the real entity, idea by Roman Komarov\nPrism.hooks.add('wrap', function (env) {\n\n\tif (env.type === 'entity') {\n\t\tenv.attributes['title'] = env.content.replace(/&/, '&');\n\t}\n});\n\nObject.defineProperty(Prism.languages.markup.tag, 'addInlined', {\n\t/**\n\t * Adds an inlined language to markup.\n\t *\n\t * An example of an inlined language is CSS with `