1(self.webpackChunk_rusi_rusi_gatsby_publisher=self.webpackChunk_rusi_rusi_gatsby_publisher||[]).push([[524],{7035:function(e,t,n){"use strict";t.RV=t.z_=void 0;var r=n(3215);t.z_=r.ScrollHandler;var o=n(3721);t.RV=o.useScrollRestoration},3215:function(e,t,n){"use strict";var r=n(4994);t.__esModule=!0,t.ScrollHandler=t.ScrollContext=void 0;var o=r(n(2475)),a=r(n(6221)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(6540)),s=r(n(5556)),c=n(4351);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var u=i.createContext(new c.SessionStorage);t.ScrollContext=u,u.displayName="GatsbyScrollContext";var p=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this)._stateStorage=new c.SessionStorage,t._isTicking=!1,t._latestKnownScrollY=0,t.scrollListener=function(){t._latestKnownScrollY=window.scrollY,t._isTicking||(t._isTicking=!0,requestAnimationFrame(t._saveScroll.bind((0,o.default)(t))))},t.windowScroll=function(e,n){t.shouldUpdateScroll(n,t.props)&&window.scrollTo(0,e)},t.scrollToHash=function(e,n){var r=document.getElementById(e.substring(1));r&&t.shouldUpdateScroll(n,t.props)&&r.scrollIntoView()},t.shouldUpdateScroll=function(e,n){var r=t.props.shouldUpdateScroll;return!r||r.call((0,o.default)(t),e,n)},t}(0,a.default)(t,e);var n=t.prototype;return n._saveScroll=function(){var e=this.props.location.key||null;e&&this._stateStorage.save(this.props.location,e,this._latestKnownScrollY),this._isTicking=!1},n.componentDidMount=function(){var e;window.addEventListener("scroll",this.scrollListener);var t=this.props.location,n=t.key,r=t.hash;n&&(e=this._stateStorage.read(this.props.location,n)),r?this.scrollToHash(decodeURI(r),void 0):e&&this.windowScroll(e,void 0)},n.componentWillUnmount=function(){window.removeEventListener("scroll",this.scrollListener)},n.componentDidUpdate=function(e){var t,n=this.props.location,r=n.hash,o=n.key;o&&(t=this._stateStorage.read(this.props.location,o)),r?this.scrollToHash(decodeURI(r),e):this.windowScroll(t,e)},n.render=function(){return i.createElement(u.Provider,{value:this._stateStorage},this.props.children)},t}(i.Component);t.ScrollHandler=p,p.propTypes={shouldUpdateScroll:s.default.func,children:s.default.element.isRequired,location:s.default.object.isRequired}},4351:function(e,t){"use strict";t.__esModule=!0,t.SessionStorage=void 0;var n="___GATSBY_REACT_ROUTER_SCROLL",r=function(){function e(){}var t=e.prototype;return t.read=function(e,t){var r=this.getStateKey(e,t);try{var o=window.sessionStorage.getItem(r);return o?JSON.parse(o):0}catch(a){return window&&window[n]&&window[n][r]?window[n][r]:0}},t.save=function(e,t,r){var o=this.getStateKey(e,t),a=JSON.stringify(r);try{window.sessionStorage.setItem(o,a)}catch(i){window&&window[n]||(window[n]={}),window[n][o]=JSON.parse(a)}},t.getStateKey=function(e,t){var n="@@scroll|"+e.pathname;return null==t?n:n+"|"+t},e}();t.SessionStorage=r},3721:function(e,t,n){"use strict";t.__esModule=!0,t.useScrollRestoration=function(e){var t=(0,a.useLocation)(),n=(0,o.useContext)(r.ScrollContext),i=(0,o.useRef)(null);return(0,o.useLayoutEffect)(function(){if(i.current){var r=n.read(t,e);i.current.scrollTo(0,r||0)}},[t.key]),{ref:i,onScroll:function(){i.current&&n.save(t,e,i.current.scrollTop)}}};var r=n(3215),o=n(6540),a=n(1678)},2311:function(e,t,n){"use strict";t.__esModule=!0,t.onInitialClientRender=void 0;n(5535),n(9300);t.onInitialClientRender=()=>{}},3309:function(e,t){"use strict";t.__esModule=!0,t.getForwards=function(e){return null==e?void 0:e.flatMap(e=>(null==e?void 0:e.forward)||[])}},9300:function(e,t,n){"use strict";t.__esModule=!0,t.injectPartytownSnippet=function(e){if(!e.length)return;const t=document.querySelector("script[data-partytown]"),n=document.querySelector('iframe[src*="~partytown/partytown-sandbox-sw"]');t&&t.remove();n&&n.remove();const a=(0,o.getForwards)(e),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(e,t,n){t.components={"component---src-pages-404-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(673),n.e(453)]).then(n.bind(n,731)),"component---src-pages-login-success-tsx":()=>Promise.all([n.e(869),n.e(650),n.e(223),n.e(108)]).then(n.bind(n,5398)),"component---src-pages-logout-success-tsx":()=>Promise.all([n.e(869),n.e(650),n.e(223),n.e(287)]).then(n.bind(n,7879)),"component---src-templates-article-article-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(673),n.e(554),n.e(959)]).then(n.bind(n,6022)),"component---src-templates-article-midgate-article-midgate-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(673),n.e(554),n.e(943)]).then(n.bind(n,3157)),"component---src-templates-basic-page-basic-page-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(673),n.e(985)]).then(n.bind(n,2744)),"component---src-templates-ecp-ecp-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(673),n.e(247)]).then(n.bind(n,6722)),"component---src-templates-embedded-content-embedded-content-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(673),n.e(597)]).then(n.bind(n,3297)),"component---src-templates-external-publication-external-publication-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(673),n.e(577)]).then(n.bind(n,2114)),"component---src-templates-in-the-news-in-the-news-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(673),n.e(919)]).then(n.bind(n,7671)),"component---src-templates-landing-page-primary-landing-page-primary-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(565)]).then(n.bind(n,2360)),"component---src-templates-landing-page-secondary-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(673),n.e(738)]).then(n.bind(n,9830)),"component---src-templates-networks-networks-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(673),n.e(299)]).then(n.bind(n,8694)),"component---src-templates-person-person-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(443)]).then(n.bind(n,1168)),"component---src-templates-project-project-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(673),n.e(243)]).then(n.bind(n,3870)),"component---src-templates-research-group-research-group-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(673),n.e(311)]).then(n.bind(n,3087)),"component---src-templates-series-series-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(673),n.e(19)]).then(n.bind(n,8387)),"component---src-templates-topic-region-topic-region-tsx":()=>Promise.all([n.e(869),n.e(593),n.e(650),n.e(223),n.e(192),n.e(439),n.e(673),n.e(329)]).then(n.bind(n,334))}},9377:function(e,t,n){e.exports=[{plugin:n(2583),options:{plugins:[],name:"gatsby-starter-default",short_name:"starter",start_url:"/",background_color:"#663399",theme_color:"#663399",display:"minimal-ui",icon:"src/images/favicon.png",legacy:!0,theme_color_in_head:!0,cache_busting_mode:"query",crossOrigin:"anonymous",include_favicon:!0,cacheDigest:"0ffd3fafcafb82b941a238660cf259ea"}},{plugin:n(6678),options:{plugins:[],useAutoGen:!0,excludes:["**/dev-404-page/**","**/404/**","**/404.html","**/offline-plugin-app-shell-fallback/**"]}},{plugin:n(3578),options:{plugins:[],id:"GTM-KNWW5PM",includeInDevelopment:!1,defaultDataLayer:{type:"object",value:{platform:"gatsby"}},routeChangeEventName:"gatsby-route-change",enableWebVitalsTracking:!1,selfHostedOrigin:"https://www.googletagmanager.com",selfHostedPath:"gtm.js"}},{plugin:n(8803),options:{plugins:[],trackingId:"UA-70053831-1",head:!1,anonymize:!1,respectDNT:!1,exclude:[],pageTransitionDelay:0,enableWebVitalsTracking:!1}},{plugin:n(2716),options:{plugins:[]}},{plugin:n(2311),options:{plugins:[]}}]},20:function(e,t,n){const r=n(9377),{getResourceURLsForPathname:o,loadPage:a,loadPageSync:i}=n(6814).Zf;t.N=(e,t={},n,s)=>{let c=r.map(n=>{if(!n.plugin[e])return;t.getResourceURLsForPathname=o,t.loadPage=a,t.loadPageSync=i;const r=n.plugin[e](t,n.options);return r&&s&&(t=s({args:t,result:r,plugin:n})),r});return c=c.filter(e=>void 0!==e),c.length>0?c:n?[n]:[]}
1,t.v=(e,t,n)=>r.reduce((n,r)=>r.plugin[e]?n.then(()=>r.plugin[e](t,r.options)):n,Promise.resolve())},700:function(e,t){t.U=()=>""},9369:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var r=function(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).slice().map(function(e){e(n)}),(e["*"]||[]).slice().map(function(e){e(t,n)})}}}()},8990:function(e,t,n){"use strict";n.d(t,{Yl:function(){return d},Hh:function(){return f},UA:function(){return h},QX:function(){return p}});var r=n(1678),o=n(8797),a=e=>{if(void 0===e)return e;let[t,n=""]=e.split("?");return n&&(n="?"+n),"/"===t?"/"+n:"/"===t.charAt(t.length-1)?t.slice(0,-1)+n:t+n};n.dn(a);var i=n(6491);const s=new Map;let c=[];const l=e=>{let t=e;if(-1!==e.indexOf("?")){const[n,r]=e.split("?");t=`${n}?${encodeURIComponent(r)}`}const n=decodeURIComponent(t);return(0,o.A)(n,decodeURIComponent("")).split("#")[0]};function u(e){return e.startsWith("/")||e.startsWith("https://")||e.startsWith("http://")?e:new URL(e,window.location.href+(window.location.href.endsWith("/")?"":"/")).pathname}const p=e=>{c=e},d=e=>{const t=m(e),n=c.map(({path:e,matchPath:t})=>({path:t,originalPath:e})),o=(0,r.pick)(n,t);return o?a(o.route.originalPath):null},h=e=>{const t=m(e),n=c.map(({path:e,matchPath:t})=>({path:t,originalPath:e})),o=(0,r.pick)(n,t);return o?o.params:{}},f=e=>{const t=l(u(e));if(s.has(t))return s.get(t);const n=(0,i.X)(e);if(n)return f(n.toPath);let r=d(t);return r||(r=m(e)),s.set(t,r),r},m=e=>{let t=l(u(e));return"/index.html"===t&&(t="/"),t=a(t),t}},4794:function(e,t,n){"use strict";n.r(t),n.d(t,{Link:function(){return s.N_},PageRenderer:function(){return a()},Script:function(){return C.Script},ScriptStrategy:function(){return C.ScriptStrategy},Slice:function(){return b},StaticQuery:function(){return c.de},StaticQueryContext:function(){return c.G},collectedScriptsByPage:function(){return C.collectedScriptsByPage},graphql:function(){return S},navigate:function(){return s.oo},parsePath:function(){return s.Rr},prefetchPathname:function(){return _},scriptCache:function(){return C.scriptCache},scriptCallbackCache:function(){return C.scriptCallbackCache},useScrollRestoration:function(){return i.RV},useStaticQuery:function(){return c.GR},withAssetPrefix:function(){return s.Zf},withPrefix:function(){return s.Fe}});var r=n(6814),o=n(2549),a=n.n(o),i=n(7035),s=n(8727),c=n(7231),l=n(7387);function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var p=n(3662);function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}function h(e){var t="function"==typeof Map?new Map:void 0;return h=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(d())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&(0,p.A)(o,n.prototype),o}(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,p.A)(n,e)},h(e)}var f=n(6540),m=n(700),g=n(2024);const v=({sliceId:e,children:t})=>{const n=[f.createElement("slice-start",{id:`${e}-1`}),f.createElement("slice-end",{id:`${e}-1`})];return t&&(n.push(t),n.push(f.createElement("slice-start",{id:`${e}-2`}),f.createElement("slice-end",{id:`${e}-2`}))),n},y=({sliceName:e,allowEmpty:t,children:n,...r})=>{const o=(0,f.useContext)(g.Jr),a=(0,f.useContext)(g.hr),i=o[e];if(!i){if(t)return null;throw new Error(`Slice "${i}" for "${e}" slot not found`)}const s=((e,t)=>Object.keys(t).length?`${e}-${(0,m.U)(t)}`:e)(i,r);let c=a[s];return c?n&&(c.hasChildren=!0):a[s]=c={props:r,sliceName:i,hasChildren:!!n},f.createElement(v,{sliceId:s},n)},w=({sliceName:e,allowEmpty:t,children:n,...r})=>{const o=(0,f.useContext)(g.Jr),a=(0,f.useContext)(g.dd),i=o[e],s=a.get(i);if(!s){if(t)return null;throw new Error(`Slice "${i}" for "${e}" slot not found`)}return f.createElement(s.component,Object.assign({sliceContext:s.sliceContext,data:s.data},r),n)};function b(e){{const t={...e,sliceName:e.alias};delete t.alias,delete t.__renderedByLocation;const n=(0,f.useContext)(g.j$),r=P(e);
1if(Object.keys(r).length)throw new E("browser"===n.renderEnvironment,t.sliceName,r,e.__renderedByLocation);if("server"===n.renderEnvironment)return f.createElement(y,t);if("browser"===n.renderEnvironment)return f.createElement(w,t);if("engines"===n.renderEnvironment||"dev-ssr"===n.renderEnvironment)return f.createElement(w,t);if("slices"===n.renderEnvironment){let t="";try{t=`\n\nSlice component "${n.sliceRoot.name}" (${n.sliceRoot.componentPath}) tried to render <Slice alias="${e.alias}"/>`}catch{}throw new Error(`Nested slices are not supported.${t}\n\nSee https://gatsbyjs.com/docs/reference/built-in-components/gatsby-slice#nested-slices`)}throw new Error(`Slice context "${n.renderEnvironment}" is not supported.`)}}let E=function(e){function t(n,r,o,a){var i;const s=Object.entries(o).map(([e,t])=>`not serializable "${t}" type passed to "${e}" prop`).join(", "),c="SlicePropsError";let l="",u="";if(n){var p,d;let e="";if(f.captureOwnerStack){const t=f.captureOwnerStack(),n=(new Error).stack||"";e=t?`${n}\n${t}`:n}else e=null!==(p=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)&&void 0!==p&&null!==(d=p.ReactDebugCurrentFrame)&&void 0!==d&&d.getCurrentStack?f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDebugCurrentFrame.getCurrentStack():(new Error).stack||"";const t=e.trim().split("\n").slice(1);t.length>0&&(t[0]=t[0].trim(),l="\n"+t.join("\n")),u=`Slice "${r}" was passed props that are not serializable (${s}).`}else{u=`${c}: Slice "${r}" was passed props that are not serializable (${s}).`;l=`${u}\n${(new Error).stack.trim().split("\n").slice(2).join("\n")}`}return(i=e.call(this,u)||this).name=c,l?i.stack=l:Error.captureStackTrace(i,t),a&&(i.forcedLocation={...a,functionName:"Slice"}),i}return(0,l.A)(t,e),t}(h(Error));const P=(e,t={},n=[],r=null)=>{for(const[o,a]of Object.entries(e)){if(null==a||!r&&"children"===o)continue;const e=r?`${r}.${o}`:o;"function"==typeof a?t[e]=typeof a:"object"==typeof a&&n.indexOf(a)<=0&&(n.push(a),P(a,t,n,e))}return t};var C=n(5535);const _=r.Ay.enqueue;function S(){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.")}},6814:function(e,t,n){"use strict";n.d(t,{Wi:function(){return u},N5:function(){return b},Ay:function(){return C},Rh:function(){return S},LE:function(){return _},Zf:function(){return P},iC:function(){return E}});var r=n(7387),o=n(4506);const a=function(e){if("undefined"==typeof document)return!1;const t=document.createElement("link");try{if(t.relList&&"function"==typeof t.relList.supports)return t.relList.supports(e)}catch(n){return!1}return!1}("prefetch")?function(e,t){return new Promise((n,r)=>{if("undefined"==typeof document)return void r();const o=document.createElement("link");o.setAttribute("rel","prefetch"),o.setAttribute("href",e),Object.keys(t).forEach(e=>{o.setAttribute(e,t[e])}),o.onload=n,o.onerror=r;(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(o)})}:function(e){return new Promise((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.onload=()=>{200===r.status?t():n()},r.send(null)})},i={};var s=function(e,t){return new Promise(n=>{i[e]?n():a(e,t).then(()=>{n(),i[e]=!0}).catch(()=>{})})},c=n(9369),l=n(8990);const u={Error:"error",Success:"success"},p=e=>{const[t,n]=e.split("?");var r;return`/page-data/${"/"===t?"index":(r="/"===(r=t)[0]?r.slice(1):r).endsWith("/")?r.slice(0,-1):r}/page-data.json${n?`?${n}`:""}`},d=e=>e.startsWith("//");function h(e,t="GET"){return new Promise(n=>{const r=new XMLHttpRequest;r.open(t,e,!0),r.onreadystatechange=()=>{4==r.readyState&&n(r)},r.send(null)})}const f=/bot|crawler|spider|crawling/i,m=(e,t=null,n)=>{var r;const o={componentChunkName:e.componentChunkName,path:e.path,webpackCompilationHash:e.webpackCompilationHash,matchPath:e.matchPath,staticQueryHashes:e.staticQueryHashes,getServerDataError:e.getServerDataError,slicesMap:null!==(r=e.slicesMap)&&void 0!==r?r:{}};return{component:t,head:n,json:e.result,page:o}};function g(e){return new Promise(t=>{try{const n=e.readRoot();t(n)}catch(n){if(!Object.hasOwnProperty.call(n,"_response")||!Object.hasOwnProperty.call(n,"_status"))throw n;setTimeout(()=>{g(e).then(t)},200)}})}let v=function(){function e(e,t){this.inFlightNetworkRequests=new Map,this.pageDb=new Map,this.inFlightDb=new Map,this.staticQueryDb={},this.pageDataDb=new Map,this.partialHydrationDb=new Map,this.slice
1sDataDb=new Map,this.sliceInflightDb=new Map,this.slicesDb=new Map,this.isPrefetchQueueRunning=!1,this.prefetchQueued=[],this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=e,(0,l.QX)(t)}var t=e.prototype;return t.memoizedGet=function(e){let t=this.inFlightNetworkRequests.get(e);return t||(t=h(e,"GET"),this.inFlightNetworkRequests.set(e,t)),t.then(t=>(this.inFlightNetworkRequests.delete(e),t)).catch(t=>{throw this.inFlightNetworkRequests.delete(e),t})},t.setApiRunner=function(e){this.apiRunner=e,this.prefetchDisabled=e("disableCorePrefetching").some(e=>e)},t.fetchPageDataJson=function(e){const{pagePath:t,retries:n=0}=e,r=p(t);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=t.split("?")[1];return r&&!n.path.includes(r)&&(n.path+=`?${r}`),Object.assign(e,{status:u.Success,payload:n})}catch(i){}return 404===o||200===o?"/404.html"===t||"/500.html"===t?Object.assign(e,{status:u.Error}):this.fetchPageDataJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===o?this.fetchPageDataJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):n<3?this.fetchPageDataJson(Object.assign(e,{retries:n+1})):Object.assign(e,{status:u.Error})})},t.fetchPartialHydrationJson=function(e){const{pagePath:t,retries:n=0}=e,r=p(t).replace(".json","-rsc.json");return this.memoizedGet(r).then(r=>{const{status:o,responseText:a}=r;if(200===o)try{return Object.assign(e,{status:u.Success,payload:a})}catch(i){}return 404===o||200===o?"/404.html"===t||"/500.html"===t?Object.assign(e,{status:u.Error}):this.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===o?this.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):n<3?this.fetchPartialHydrationJson(Object.assign(e,{retries:n+1})):Object.assign(e,{status:u.Error})})},t.loadPageDataJson=function(e){const t=(0,l.Hh)(e);if(this.pageDataDb.has(t)){const e=this.pageDataDb.get(t);return Promise.resolve(e)}return this.fetchPageDataJson({pagePath:t}).then(e=>(this.pageDataDb.set(t,e),e))},t.loadPartialHydrationJson=function(e){const t=(0,l.Hh)(e);if(this.partialHydrationDb.has(t)){const e=this.partialHydrationDb.get(t);return Promise.resolve(e)}return this.fetchPartialHydrationJson({pagePath:t}).then(e=>(this.partialHydrationDb.set(t,e),e))}
1,t.loadSliceDataJson=function(e){if(this.slicesDataDb.has(e)){const t=this.slicesDataDb.get(e);return Promise.resolve({sliceName:e,jsonPayload:t})}return h(`/slice-data/${e}.json`,"GET").then(t=>{const n=JSON.parse(t.responseText);return this.slicesDataDb.set(e,n),{sliceName:e,jsonPayload:n}})},t.findMatchPath=function(e){return(0,l.Yl)(e)},t.loadPage=function(e){const t=(0,l.Hh)(e);if(this.pageDb.has(t)){const e=this.pageDb.get(t);return e.error?Promise.resolve({error:e.error,status:e.status}):Promise.resolve(e.payload)}if(this.inFlightDb.has(t))return this.inFlightDb.get(t);const r=[this.loadAppData(),this.loadPageDataJson(t)];const a=Promise.all(r).then(e=>{const[r,a,i]=e;if(a.status===u.Error||(null==i?void 0:i.status)===u.Error)return{status:u.Error};let s=a.payload;const{componentChunkName:l,staticQueryHashes:p=[],slicesMap:d={}}=s,h={},f=Array.from(new Set(Object.values(d))),v=e=>{if(this.slicesDb.has(e.name))return this.slicesDb.get(e.name);if(this.sliceInflightDb.has(e.name))return this.sliceInflightDb.get(e.name);const t=this.loadComponent(e.componentChunkName).then(t=>{return{component:(n=t,n&&n.default||n),sliceContext:e.result.sliceContext,data:e.result.data};var n});return this.sliceInflightDb.set(e.name,t),t.then(t=>{this.slicesDb.set(e.name,t),this.sliceInflightDb.delete(e.name)}),t};return Promise.all(f.map(e=>this.loadSliceDataJson(e))).then(e=>{const d=[],f=(0,o.A)(p);for(const{jsonPayload:t,sliceName:n}of Object.values(e)){d.push({name:n,...t});for(const e of t.staticQueryHashes)f.includes(e)||f.push(e)}const y=[Promise.all(d.map(v)),this.loadComponent(l,"head")];y.push(this.loadComponent(l));const w=Promise.all(y).then(e=>{const[t,o,c]=e;h.createdAt=new Date;for(const n of t)(!n||n instanceof Error)&&(h.status=u.Error,h.error=n);let l;if((!c||c instanceof Error)&&(h.status=u.Error,h.error=c),h.status!==u.Error){if(h.status=u.Success,!0!==a.notFound&&!0!==(null==i?void 0:i.notFound)||(h.notFound=!0),s=Object.assign(s,{webpackCompilationHash:r?r.webpackCompilationHash:""}),"string"==typeof(null==i?void 0:i.payload)){l=m(s,null,o),l.partialHydration=i.payload;const e=new ReadableStream({start(e){const t=new TextEncoder;e.enqueue(t.encode(i.payload))},pull(e){e.close()},cancel(){}});return n.e(522).then(n.t.bind(n,8522,23)).then(({createFromReadableStream:t})=>g(t(e))).then(e=>(l.partialHydration=e,l))}l=m(s,c,o)}return l}),b=Promise.all(f.map(e=>{if(this.staticQueryDb[e]){const t=this.staticQueryDb[e];return{staticQueryHash:e,jsonPayload:t}}return this.memoizedGet(`/page-data/sq/d/${e}.json`).then(t=>{const n=JSON.parse(t.responseText);return{staticQueryHash:e,jsonPayload:n}}).catch(()=>{throw new Error(`We couldn't load "/page-data/sq/d/${e}.json"`)})})).then(e=>{const t={};return e.forEach(({staticQueryHash:e,jsonPayload:n})=>{t[e]=n,this.staticQueryDb[e]=n}),t});return Promise.all([w,b]).then(([e,n])=>{let r;return e&&(r={...e,staticQueryResults:n},h.payload=r,c.A.emit("onPostLoadPageResources",{page:r,pageResources:r})),this.pageDb.set(t,h),h.error?{error:h.error,status:h.status}:r}).catch(e=>({error:e,status:u.Error}))})});return a.then(()=>{this.inFlightDb.delete(t)}).catch(e=>{throw this.inFlightDb.delete(t),e}),this.inFlightDb.set(t,a),a},t.loadPageSync=function(e,t={}){const n=(0,l.Hh)(e);if(this.pageDb.has(n)){const e=this.pageDb.get(n);if(e.payload)return e.payload;if(null!=t&&t.withErrorDetails)return{error:e.error,status:e.status}}},t.shouldPrefetch=function(e){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(e))},t.prefetch=function(e){if(!this.shouldPrefetch(e))return{then:e=>e(!1),abort:()=>{}};if(this.prefetchTriggered.has(e))return{then:e=>e(!0),abort:()=>{}};const t={resolve:null,reject:null,promise:null};t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),this.prefetchQueued.push([e,t]);const n=new AbortController;return n.signal.addEventListener("abort",()=>{const t=this.prefetchQueued.findIndex(([t])=>t===e);-1!==t&&this.prefetchQueued.splice(t,1)}),this.isPrefetchQueueRunning||(this.isPrefetchQueueRunning=!0,setTimeout(()=>{this._processNextPrefetchBatch()},3e3)),{then:(e,n)=>t.promise.then(e,n),abort:n.abort.bind(n)}},t._processNextPrefetchBatch=function(){(window.requestIdleCallback||(e=>setTimeout(e,0)))(()=>{const e=this.prefetchQueued.splice(0,4),t=Promise.all(e.map(([e,t])=>(this.prefetchTriggered.has(e)||(this.apiRunner("onPrefetchPathname",{pathname:e}),this.prefetchTriggered.add(e)),this.prefetchDisabled?t.resolve(!1):this.doPrefetch((0,l.Hh)(e)).then(()=>{this.prefetchCompleted.has(e)||(this.apiRunner("onPostPrefetchPathname",{pathname:e}),this.prefetchCompleted.add(e)),t.resolve(!0)}))));this.prefetchQueued.length?t.then(()=>{setTimeout(()=>{this._processNextPrefetchBatch()},3e3)}):this.isPrefetchQueueRunning=!1})},t.doPrefetch=function(e){const t=p(e);return s(t,{crossOrigin:"anonymous",as:"fetch"}).then(()=>this.loadPageDataJson(e))},t.hovering=function(e){this.loadPage(e)},t.getResourceURLsForPathname=function(e){const t=(0,l.Hh)(e),n=this.pageDataDb.get(t);if(n){const e=m(n.payload);return[].concat((0,o.A)(y(e.page.componentChunkName)),[p(t)])}return null},t.isPageNotFound=function(e){const t=(0,l.Hh)(e),n=this.pageDb.get(t);return!n||n.notFound}
1,t.loadAppData=function(e=0){return this.memoizedGet("/page-data/app-data.json").then(t=>{const{status:n,responseText:r}=t;let o;if(200!==n&&e<3)return this.loadAppData(e+1);if(200===n)try{const e=JSON.parse(r);if(void 0===e.webpackCompilationHash)throw new Error("not a valid app-data response");o=e}catch(a){}return o})},e}();const y=e=>(window.___chunkMapping[e]||[]).map(e=>""+e);let w,b=function(e){function t(t,n,r){var o;return o=e.call(this,(e,n="components")=>{if(!t[n="components"][e])throw new Error(`We couldn't find the correct component chunk with the name "${e}"`);return t[n][e]().catch(e=>e)},n)||this,r&&o.pageDataDb.set((0,l.Hh)(r.path),{pagePath:r.path,payload:r,status:"success"}),o}(0,r.A)(t,e);var n=t.prototype;return n.doPrefetch=function(t){return e.prototype.doPrefetch.call(this,t).then(e=>{if(e.status!==u.Success)return Promise.resolve();const t=e.payload,n=t.componentChunkName,r=y(n);return Promise.all(r.map(s)).then(()=>t)})},n.loadPageDataJson=function(t){return e.prototype.loadPageDataJson.call(this,t).then(e=>e.notFound?d(t)?e:h(t,"HEAD").then(t=>200===t.status?{status:u.Error}:e):e)},n.loadPartialHydrationJson=function(t){return e.prototype.loadPartialHydrationJson.call(this,t).then(e=>e.notFound?d(t)?e:h(t,"HEAD").then(t=>200===t.status?{status:u.Error}:e):e)},t}(v);const E=e=>{w=e},P={enqueue:e=>w.prefetch(e),getResourceURLsForPathname:e=>w.getResourceURLsForPathname(e),loadPage:e=>w.loadPage(e),loadPageSync:(e,t={})=>w.loadPageSync(e,t),prefetch:e=>w.prefetch(e),isPageNotFound:e=>w.isPageNotFound(e),hovering:e=>w.hovering(e),loadAppData:()=>w.loadAppData()};var C=P;function _(){return w?w.staticQueryDb:{}}function S(){return w?w.slicesDb:{}}},8428:function(e,t,n){"use strict";n.d(t,{A:function(){return O}});var r=n(6540),o=n(5556),a=n.n(o),i=n(20),s=n(8990),c=n(4506),l=n(4794),u=n(1678),p=n(9732);function d({children:e,callback:t}){return(0,r.useEffect)(()=>{t()}),e}const h=["link","meta","style","title","base","noscript","script","html","body"],f="itemProp",m="gatsby-do-not-hoist-me-react",g="data-original-tag",v=r.createContext(!1);function y(e){0}function w(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){const n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){const r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}function b(e,t={html:{},body:{}}){const n=new Map,r=[];for(const d of e.childNodes){var o,a,i,s,l;if(!C(d))continue;const e=null!==(o=null===(a=d.attributes)||void 0===a||null===(i=a.getNamedItem(g))||void 0===i?void 0:i.value)&&void 0!==o?o:d.nodeName.toLowerCase(),h=null===(s=d.attributes)||void 0===s||null===(l=s.id)||void 0===l?void 0:l.value;if(P(e))if("html"===e||"body"===e)for(const n of d.attributes){if(n.name===g)continue;const r="style"===n.name;var u;if(t[e]={...t[e]},r||(t[e][n.name]=n.value),r)t[e].style=`${null!==(u=t[e])&&void 0!==u&&u.style?t[e].style:""}${n.value} `}else{let e=d.cloneNode(!0);if(e.setAttribute("data-gatsby-head",!0),e.getAttribute(f)===m&&e.removeAttribute(f),"script"===e.nodeName.toLowerCase()&&(e=E(e)),h)if(n.has(h)){var p;const t=n.get(h);null===(p=r[t].parentNode)||void 0===p||p.removeChild(r[t]),r[t]=e}else r.push(e),n.set(h,r.length-1);else r.push(e)}else y();d.childNodes.length&&r.push.apply(r,(0,c.A)(b(d,t).validHeadNodes))}return{validHeadNodes:r,htmlAndBodyAttributes:t}}function E(e){const t=document.createElement(e.nodeName);for(const n of e.attributes)t.setAttribute(n.name,n.value);return t.innerHTML=e.innerHTML,t}function P(e){return h.includes(e)}function C(e){return 1===e.nodeType}const _=document.createElement("div"),S={html:[],body:[]},R=()=>{var e;const{validHeadNodes:t,htmlAndBodyAttributes:n}=b(_);S.html=Object.keys(n.html),S.body=Object.keys(n.body),function(e){if(!e)return;const{html:t,body:n}=e,r=document.querySelector("html");
1r&&Object.entries(t).forEach(([e,t])=>{r.setAttribute(e,t)});const o=document.querySelector("body");o&&Object.entries(n).forEach(([e,t])=>{o.setAttribute(e,t)})}(n);const r=document.querySelectorAll("[data-gatsby-head]");var o;if(0===r.length)return void(o=document.head).append.apply(o,(0,c.A)(t));const a=[];!function({oldNodes:e,newNodes:t,onStale:n,onNew:r}){for(const o of e){const e=t.findIndex(e=>w(e,o));-1===e?n(o):t.splice(e,1)}for(const o of t)r(o)}({oldNodes:r,newNodes:t,onStale:e=>e.parentNode.removeChild(e),onNew:e=>a.push(e)}),(e=document.head).append.apply(e,a)};if(18!==parseInt(r.version.split(".")[0],10)&&!r.createElement.headPatched){const e=r.createElement,t=function(e,t){function n(){return!!t||r.useContext(v)}return new Map(h.map(t=>[t,"html"===t||"body"===t?function(t){const r=r=>{if(n()){const n={...r,[g]:t};return e("div",n)}return e(t,r)};return r.displayName=`React19HeadAPICompat${t}`,r}(t):function(t){const r=r=>{if(n()&&!(f in r)){const n={...r,[f]:m};return e(t,n)}return e(t,r)};return r.displayName=`React19HeadAPICompat${t}`,r}(t)]))}(e,!1);r.createElement=function(n,o,...a){const i=t.get(n);return i&&(n=i),e.call.apply(e,[r,n,o].concat(a))},r.createElement.headPatched=!0}function k({pageComponent:e,staticQueryResults:t,pageComponentProps:n}){(0,r.useEffect)(()=>{if(null!=e&&e.Head){!function(e){if("function"!=typeof e)throw new Error(`Expected "Head" export to be a function got "${typeof e}".`)}(e.Head);const{render:a}=(0,p.n)(),s=r.createElement(e.Head,{location:{pathname:(o=n).location.pathname},params:o.params,data:o.data||{},serverData:o.serverData,pageContext:o.pageContext}),c=(0,i.N)("wrapRootElement",{element:s},s,({result:e})=>({element:e})).pop();a(r.createElement(d,{callback:R},r.createElement(v.Provider,{value:!0},r.createElement(l.StaticQueryContext.Provider,{value:t},r.createElement(u.LocationProvider,null,c)))),_)}var o;return()=>{!function(){const e=document.querySelectorAll("[data-gatsby-head]");for(const t of e)t.parentNode.removeChild(t)}(),function(e){if(!e)return;const{html:t,body:n}=e;if(t){const e=document.querySelector("html");t.forEach(t=>{e&&e.removeAttribute(t)})}if(n){const e=document.querySelector("body");n.forEach(t=>{e&&e.removeAttribute(t)})}}(S)}})}function x(e){const t={...e,params:{...(0,s.UA)(e.location.pathname),...e.pageResources.json.pageContext.__params}};let n;var o;n=e.pageResources.partialHydration?e.pageResources.partialHydration:(0,r.createElement)((o=e.pageResources.component)&&o.default||o,{...t,key:e.path||e.pageResources.page.path});k({pageComponent:e.pageResources.head,staticQueryResults:e.pageResources.staticQueryResults,pageComponentProps:t});return(0,i.N)("wrapPageElement",{element:n,props:t},n,({result:e})=>({element:e,props:t})).pop()}x.propTypes={location:a().object.isRequired,pageResources:a().object.isRequired,data:a().object,pageContext:a().object.isRequired};var O=x},6498:function(e,t,n){"use strict";var r=n(7387),o=n(20),a=n(6540),i=n(1678),s=n(7035),c=n(7231),l=n(2024),u=n(6814),p=n(6491),d=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 f=n(8727);function m(e){const t=(0,p.X)(e),{hash:n,search:r}=window.location;return null!=t&&(window.___replace(t.toPath+r+n),!0)}let g="";window.addEventListener("unhandledrejection",e=>{/loading chunk \d* failed./i.test(e.reason)&&g&&(window.location.pathname=g)});const v=(e,t)=>{m(e.pathname)||(g=e.pathname,(0,o.N)("onPreRouteUpdate",{location:e,prevLocation:t}))},y=(e,t)=>{m(e.pathname)||(0,o.N)("onRouteUpdate",{location:e,prevLocation:t})},w=(e,t={})=>{if("number"==typeof e)return void i.globalHistory.navigate(e);const{pathname:n,search:r,hash:a}=(0,f.Rr)(e),s=(0,p.X)(n);if(s&&(e=s.toPath+r+a),window.___swUpdated)return void(window.location=n+r+a);const c=setTimeout(()=>{d.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"
1in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),window.location=n+r+a),(0,i.navigate)(e,t),clearTimeout(c)})};function b(e,{location:t}){const{pathname:n,hash:r}=t,a=(0,o.N)("shouldUpdateScroll",{prevRouterProps:e,pathname:n,routerProps:{location:t},getSavedScrollPosition:e=>[0,this._stateStorage.read(e,e.key)]});if(a.length>0)return a[a.length-1];if(e){const{location:{pathname:t}}=e;if(t===n)return r?decodeURI(r.slice(1)):[0,0]}return!0}let E=function(e){function t(t){var n;return(n=e.call(this,t)||this).announcementRef=a.createRef(),n}(0,r.A)(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){requestAnimationFrame(()=>{let e=`new page at ${this.props.location.pathname}`;document.title&&(e=document.title);const t=document.querySelectorAll("#gatsby-focus-wrapper h1");t&&t.length&&(e=t[0].textContent);const n=`Navigated to ${e}`;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}))},t}(a.Component);const P=(e,t)=>{var n,r;return e.href!==t.href||(null==e||null===(n=e.state)||void 0===n?void 0:n.key)!==(null==t||null===(r=t.state)||void 0===r?void 0:r.key)};let C=function(e){function t(t){var n;return n=e.call(this,t)||this,v(t.location,null),n}(0,r.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){y(this.props.location,null)},n.shouldComponentUpdate=function(e){return!!P(this.props.location,e.location)&&(v(e.location,this.props.location),!0)},n.componentDidUpdate=function(e){P(e.location,this.props.location)&&y(this.props.location,e.location)},n.render=function(){return a.createElement(a.Fragment,null,this.props.children,a.createElement(E,{location:location}))},t}(a.Component);var _=n(8428),S=n(6877);function R(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var k=function(e,t,n){return R(e.props,t)||R(e.state,n)};n.dn(k);var x=function(e){function t(t){var n;n=e.call(this)||this;const{location:r,pageResources:o}=t;return n.state={location:{...r},pageResources:o||u.Ay.loadPageSync(r.pathname+r.search,{withErrorDetails:!0})},n}(0,r.A)(t,e),t.getDerivedStateFromProps=function({location:e},t){if(t.location.href!==e.href){return{pageResources:u.Ay.loadPageSync(e.pathname+e.search,{withErrorDetails:!0}),location:{...e}}}return{location:{...e}}};var n=t.prototype;return n.loadResources=function(e){u.Ay.loadPage(e).then(t=>{t&&t.status!==u.Wi.Error?this.setState({location:{...window.location},pageResources:t}):(window.history.replaceState({},"",location.href),window.location=e)})},n.shouldComponentUpdate=function(e,t){return t.pageResources?this.state.pageResources!==t.pageResources||(this.state.pageResources.component!==t.pageResources.component||(this.state.pageResources.json!==t.pageResources.json||(!(this.state.location.key===t.location.key||!t.pageResources.page||!t.pageResources.page.matchPath&&!t.pageResources.page.path)||k(this,e,t)))):(this.loadResources(e.location.pathname+e.location.search),!1)},n.render=function(){return this.props.children(this.state)},t}(a.Component),O=n(8797),T=n(9732);const N=new u.N5(S,[],window.pageData);(0,u.iC)(N),N.setApiRunner(o.N);const{render:A,hydrate:j}=(0,T.n)();window.asyncRequires=S,window.___emitter=d.A,window.___loader=u.Zf,i.globalHistory.listen(e=>{e.location.action=e.action}),window.___push=e=>w(e,{replace:!1}),window.___replace=e=>w(e,{replace:!0}),window.___navigate=(e,t)=>w(e,t);const D="gatsby-reload-compilation-hash-match";(0,o.v)("onClientEntry").then(()=>{const e=(e,t)=>{console.error("Uncaught error:",e,t),(0,o.N)("onUncaughtError",{error:e,errorInfo:t})},t=(e,t)=>{(0,o.N)("onCaughtError",{error:e,errorInfo:t})};(0,o.N)("registerServiceWorker").filter(Boolean).length>0&&n(626);const p=e=>a.createElement(i.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},a.createElement(_.A,e)),d=a.createContext({}),h={renderEnvironment:"browser"};let f=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){const{children:e}=this.props;return a.createElement(i.Location,null,({location:t})=>a.createElement(x,{location:t},({pageResources:t,location:n})=>{const r=(0,u.LE)(),o=(0,u.Rh)();return a.createElement(c.G.Provider,{value:r},a.createElement(l.j$.Provider,{value:h},a.createElement(l.dd.Provider,{value:o},a.createElement(l.Jr.Provider,{value:t.page.slicesMap},a.createElement(d.Provider,{value:{pageResources:t,location:n}},e)))))}))},t}(a.Component),m=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){return a.createElement(d.Consumer,null,({pageResources:e,location:t})=>a.createElement(C,{location:t},a.createElement(s.z_,{location:t,shouldUpdateScroll:b}
1,a.createElement(i.Router,{basepath:"",location:t,id:"gatsby-focus-wrapper"},a.createElement(p,Object.assign({path:"/404.html"===e.page.path||"/500.html"===e.page.path?(0,O.A)(t.pathname,""):encodeURI((e.page.matchPath||e.page.path).split("?")[0])},this.props,{location:t,pageResources:e},e.json))))))},t}(a.Component);const{pagePath:g,location:v}=window;g&&""+g!==v.pathname+(g.includes("?")?v.search:"")&&!(N.findMatchPath((0,O.A)(v.pathname,""))||g.match(/^\/(404|500)(\/?|.html)$/)||g.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&(0,i.navigate)(""+g+(g.includes("?")?"":v.search)+v.hash,{replace:!0});const y=()=>{try{return sessionStorage}catch{return null}};u.Zf.loadPage(v.pathname+v.search).then(n=>{var r;const i=y();if(null!=n&&null!==(r=n.page)&&void 0!==r&&r.webpackCompilationHash&&n.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),i)){if(!("1"===i.getItem(D)))return i.setItem(D,"1"),void window.location.reload(!0)}if(i&&i.removeItem(D),!n||n.status===u.Wi.Error){const e=`page resources for ${v.pathname} not found. Not rendering React`;if(n&&n.error)throw console.error(e),n.error;throw new Error(e)}const s=(0,o.N)("wrapRootElement",{element:a.createElement(m,null)},a.createElement(m,null),({result:e})=>({element:e})).pop(),c=function(){const e=a.useRef(!1);return a.useEffect(()=>{e.current||(e.current=!0,performance.mark&&performance.mark("onInitialClientRender"),(0,o.N)("onInitialClientRender"))},[]),a.createElement(f,null,s)},l=document.getElementById("gatsby-focus-wrapper");let p=(n,r)=>A(n,r,{onUncaughtError:e,onCaughtError:t});l&&l.children.length&&(p=(n,r)=>j(n,r,{onUncaughtError:e,onCaughtError:t}));const d=(0,o.N)("replaceHydrateFunction",void 0,p)[0]||p;function h(){const e="undefined"!=typeof window?document.getElementById("___gatsby"):null;d(a.createElement(c,null),e)}const g=document;if("complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll)setTimeout(function(){h()},0);else{const e=function(){g.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1),h()};g.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1)}})})},963:function(e,t,n){"use strict";n.r(t);var r=n(6540),o=n(6814),a=n(8428);t.default=({location:e})=>{const t=o.Ay.loadPageSync(e.pathname);return t?r.createElement(a.A,{location:e,pageResources:t,...t.json}):null}},2549:function(e,t,n){var r;e.exports=(r=n(963))&&r.default||r},9732:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});const r=new WeakMap;function o(){const e=n(5338);return{render:(t,n,o={})=>{let a=r.get(n);if(!a){const t=o.onUncaughtError||o.onCaughtError?{onUncaughtError:o.onUncaughtError,onCaughtError:o.onCaughtError}:void 0;r.set(n,a=e.createRoot(n,t))}a.render(t)},hydrate:(t,n,r={})=>{const o=r.onUncaughtError||r.onCaughtError?{onUncaughtError:r.onUncaughtError,onCaughtError:r.onCaughtError}:void 0;return e.hydrateRoot(n,t,o)}}}},6491:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});const r=new Map,o=new Map;function a(e){let t=r.get(e);return t||(t=o.get(e.toLowerCase())),t}[].forEach(e=>{e.ignoreCase?o.set(e.fromPath,e):r.set(e.fromPath,e)})},626:function(e,t,n){"use strict";n.r(t);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(e){e.addEventListener("updatefound",()=>{(0,r.N)("onServiceWorkerUpdateFound",{serviceWorker:e});const t=e.installing;console.log("installingWorker",t),t.addEventListener("statechange",()=>{switch(t.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,(0,r.N)("onServiceWorkerUpdateReady",{serviceWorker:e}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),(0,r.N)("onServiceWorkerInstalled",{serviceWorker:e}));break;
1case"redundant":console.error("The installing service worker became redundant."),(0,r.N)("onServiceWorkerRedundant",{serviceWorker:e});break;case"activated":(0,r.N)("onServiceWorkerActive",{serviceWorker:e})}})})}).catch(function(e){console.error("Error during service worker registration:",e)})},2024:function(e,t,n){"use strict";var r=n(6540);const o=r.createContext({}),a=r.createContext({}),i=r.createContext({}),s=r.createContext({});n.d(t,["Jr",0,i,"dd",0,o,"hr",0,s,"j$",0,a])},7231:function(e,t,n){"use strict";n.d(t,{de:function(){return c},G:function(){return o},GR:function(){return l}});var r=n(6540);const o=(a="StaticQuery",i={},r.createServerContext?((e,t=null)=>(globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=r.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]))(a,i):r.createContext(i));var a,i;function s({staticQueryData:e,data:t,query:n,render:o}){const a=t?t.data:e[n]&&e[n].data;return r.createElement(r.Fragment,null,a&&o(a),!a&&r.createElement("div",null,"Loading (StaticQuery)"))}const c=e=>{const{data:t,query:n,render:a,children:i}=e;return r.createElement(o.Consumer,null,e=>r.createElement(s,{data:t,query:n,render:a||i,staticQueryData:e}))},l=e=>{var t;r.useContext;const n=r.useContext(o);if(isNaN(Number(e)))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\`${e}\`);\n`);if(null!==(t=n[e])&&void 0!==t&&t.data)return n[e].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")}},8797:function(e,t,n){"use strict";function r(e,t=""){return t?e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e:e}n.d(t,{A:function(){return r}})},2716:function(e,t,n){"use strict";n.r(t),n.d(t,{shouldUpdateScroll:function(){return c},wrapPageElement:function(){return o},wrapRootElement:function(){return s}});var r=n(6540);const o=({element:e,props:t})=>r.createElement(r.Fragment,null,e);var a=n(2423);const i=()=>null,s=({element:e})=>r.createElement(a.O,null,r.createElement(i,null),e);const c=({routerProps:e,prevRouterProps:t})=>!(!t||!t.location)&&e.location.pathname!==t.location.pathname},8727:function(e,t,n){"use strict";n.d(t,{N_:function(){return S},oo:function(){return R},Rr:function(){return p},Zf:function(){return E},Fe:function(){return g}});var r,o=n(7387),a=n(5556),i=n.n(a),s=n(6540),c=n(1678);r=void 0;const l=[".html",".json",".js",".map",".txt",".xml",".pdf"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function p(e){let t=e||"/",n="",r="";const o=t.indexOf("#");-1!==o&&(r=t.slice(o),t=t.slice(0,o));const a=t.indexOf("?");return-1!==a&&(n=t.slice(a),t=t.slice(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}r=(e,t="always")=>{if("/"===e)return e;const n=e.endsWith("/");return((e,t)=>{for(const n of e)if(t.endsWith(n))return!0;return!1})(l,e)?e:"always"===t?n?e:`${e}/`:"never"===t&&n?e.slice(0,-1):e};const d=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,h=e=>{if("string"==typeof e)return!(e=>d.test(e))(e)},f=()=>"",m=()=>"";function g(e,t=f()){var n;if(!h(e))return e;if(e.startsWith("./")||e.startsWith("../"))return e;const r=null!=(n=null!=t?t:m())?n:"/";return`${null!=r&&r.endsWith("/")?r.slice(0,-1):r}${e.startsWith("/")?e:`/${e}`}`}const v=e=>null==e?void 0:e.startsWith("/");function y(e,t){const{pathname:n,search:o,hash:a}=p(e);return`${r(n,t)}${o}${a}`}const w=(e,t)=>"number"==typeof e?e:h(e)?v(e)?function(e){const t=g(e),n="never";return y(t,n)}(e):function(e,t){if(v(e))return e;const n="never",r=(0,c.resolve)(e,t);return y(r,n)}(e,t):e,b=["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"];function E(e){return g(e,m())}const P={activeClassName:i().string,activeStyle:i().object,partiallyActive:i().bool};function C(e){return s.createElement(c.Location,null,({location:t})=>s.createElement(_,u({},e,{_location:t})))}let _=function(e){function t(t){var n;(n=e.call(this,t)||this).defaultGetProps=({isPartiallyCurrent:e,isCurrent:t})=>(n.props.partiallyActive?e:t)?{className:[n.props.className,n.props.activeClassName].filter(
1Boolean).join(" "),style:u({},n.props.style,n.props.activeStyle)}:null;let r=!1;return"undefined"!=typeof window&&window.IntersectionObserver&&(r=!0),n.state={IOSupported:r},n.abortPrefetch=null,n.handleRef=n.handleRef.bind(n),n}(0,o.A)(t,e);var n=t.prototype;return n._prefetch=function(){let e=window.location.pathname+window.location.search;this.props._location&&this.props._location.pathname&&(e=this.props._location.pathname+this.props._location.search);const t=p(w(this.props.to,e)),n=t.pathname+t.search;if(e!==n)return ___loader.enqueue(n)},n.componentWillUnmount=function(){if(!this.io)return;const{instance:e,el:t}=this.io;this.abortPrefetch&&this.abortPrefetch.abort(),e.unobserve(t),e.disconnect()},n.handleRef=function(e){this.props.innerRef&&Object.prototype.hasOwnProperty.call(this.props.innerRef,"current")?this.props.innerRef.current=e:this.props.innerRef&&this.props.innerRef(e),this.state.IOSupported&&e&&(this.io=((e,t)=>{const n=new window.IntersectionObserver(n=>{n.forEach(n=>{e===n.target&&t(n.isIntersecting||n.intersectionRatio>0)})});return n.observe(e),{instance:n,el:e}})(e,e=>{e?this.abortPrefetch=this._prefetch():this.abortPrefetch&&this.abortPrefetch.abort()}))},n.render=function(){const e=this.props,{to:t,getProps:n=this.defaultGetProps,onClick:r,onMouseEnter:o,state:a,replace:i,_location:l}=e,d=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,b),f=w(t,l.pathname);return h(f)?s.createElement(c.Link,u({to:f,state:a,getProps:n,innerRef:this.handleRef,onMouseEnter:e=>{o&&o(e);const t=p(f);___loader.hovering(t.pathname+t.search)},onClick:e=>{if(r&&r(e),!(0!==e.button||this.props.target||e.defaultPrevented||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){e.preventDefault();let t=i;const n=encodeURI(f)===l.pathname;"boolean"!=typeof i&&n&&(t=!0),window.___navigate(f,{state:a,replace:t})}return!0}},d)):s.createElement("a",u({href:f},d))},t}(s.Component);_.propTypes=u({},P,{onClick:i().func,to:i().string.isRequired,replace:i().bool,state:i().object});const S=s.forwardRef((e,t)=>s.createElement(C,u({innerRef:t},e))),R=(e,t)=>{window.___navigate(w(e,window.location.pathname),t)}},5852:function(e,t,n){"use strict";var r=n(4994);t.__esModule=!0,t.AppProviders=void 0;var o=r(n(6540)),a=n(2513),i=n(6052);t.AppProviders=function(e){var t=e.element,n=e.pluginOptions,r=n.defaultCrumb,s=n.useClassNames,c=n.useAutoGen,l=n.usePathPrefix;return o.default.createElement(i.OptionsProvider,{useAutoGen:c||!1,useClassNames:s||!1,usePathPrefix:l||null},o.default.createElement(a.BreadcrumbProvider,{defaultCrumb:r||null},t))}},2513:function(e,t,n){"use strict";var r=n(4994);t.__esModule=!0,t.BreadcrumbConsumer=t.BreadcrumbProvider=t.BreadcrumbContext=void 0;var o=r(n(4634)),a=r(n(6540)),i=r(n(5556)),s=a.default.createContext("Breadcrumb");t.BreadcrumbContext=s;var c=function(e){var t=e.children,n=e.defaultCrumb,r=a.default.useState(n?[(0,o.default)({pathname:n.location.pathname},n)]:[]),i=r[0],c=r[1],l={crumbs:i,updateCrumbs:function(e){var t=e.location,n=e.crumbLabel,r=e.crumbSeparator,a=e.crumbStyle,s=e.crumbActiveStyle,l=i.findIndex(function(e){return e.pathname===t.pathname});l>-1&&l<i.length-1&&c(i.slice(0,l)),-1===l&&c([].concat(i,[(0,o.default)({},t,{crumbLabel:n,crumbSeparator:r,crumbStyle:a,crumbActiveStyle:s})]))}};return a.default.createElement(s.Provider,{value:l},t)};t.BreadcrumbProvider=c;var l=s.Consumer;t.BreadcrumbConsumer=l,c.defaultProps={defaultCrumb:null},c.propTypes={children:i.default.node.isRequired,defaultCrumb:i.default.shape({location:i.default.shape({pathname:i.default.string}),crumbLabel:i.default.string,crumbSeparator:i.default.string,crumbStyle:i.default.shape(),crumbActiveStyle:i.default.shape()})}},6052:function(e,t,n){"use strict";var r=n(4994);t.__esModule=!0,t.OptionsConsumer=t.OptionsProvider=t.OptionsContext=void 0;var o=r(n(6540)),a=r(n(5556)),i=o.default.createContext("Options");t.OptionsContext=i;var s=function(e){var t=e.children,n=e.useAutoGen,r=void 0!==n&&n,a=e.usePathPrefix,s={useAutoGen:r,usePathPrefix:void 0===a?null:a};return o.default.createElement(i.Provider,{value:s},t)};t.OptionsProvider=s;var c=i.Consumer;t.OptionsConsumer=c,s.defaultProps={useAutoGen:!1,usePathPrefix:null},s.propTypes={children:a.default.node.isRequired,useAutoGen:a.default.bool,usePathPrefix:a.default.string}},6678:function(e,t,n){"use strict";var r=n(4994);t.__esModule=!0,t.wrapRootElement=void 0;var o=r(n(6540)),a=n(5852);t.wrapRootElement=function(e,t){var n=e.element;return o.default.createElement(a.AppProviders,{element:n,pluginOptions:t})}},8803:function(e,t,n){"use strict";n.r(t),n.d(t,{onInitialClientRender:function(){return i}});const r=new Set;function o(e,t){let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout.apply(void 0,[e,t].concat(r))}}function a(){function e(e){r.has(e.name)||(r.add(e.name),function({name:e,value:t,id:n}){window.ga("send","event",{eventCategory:"Web Vitals",eventAction:e,eventLabel:n,eventValue:Math.round("CLS"===e?1e3*t:t),nonInteraction:!0,transport:"beacon"})}(e))}return n.e(958).then(n.bind(n,577)).then(({getLCP:t,getFID:n,getCLS:r})=>{const a=o(e,3e3),i=e,s=o(e,3e3);r(a,!0),n(i,!0),t(s,!0)})}function i(e,t){"function"==typeof ga&&t.enableWebVitalsTracking&&a()}n.d(t,["onRouteUpdate",0,({location:e},t={})=>{const n=window.ga;
1if("function"!=typeof n)return null;if(e&&void 0!==window.excludeGAPaths&&window.excludeGAPaths.some(t=>t.test(e.pathname)))return null;const r=Math.max(32,t.pageTransitionDelay||0);return setTimeout(()=>{const t=e?e.pathname+e.search+e.hash:void 0;n("set","page",t),n("send","pageview")},r),null}])},3578:function(e,t,n){"use strict";n.r(t),n.d(t,{onInitialClientRender:function(){return s},onRouteUpdate:function(){return i}});const r=new Set;function o(e,t){let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout.apply(void 0,[e,t].concat(r))}}function a(e="dataLayer"){const t=window;function a(n){r.has(n.name)||(r.add(n.name),function({name:e,value:t,id:n},r){r.push({event:"core-web-vitals",webVitalsMeasurement:{name:e,id:n,value:Math.round("CLS"===e?1e3*t:t)}})}(n,t[e]))}return n.e(958).then(n.bind(n,577)).then(({getLCP:e,getFID:t,getCLS:n})=>{const r=o(a,3e3),i=a,s=o(a,3e3);n(r,!0),t(i,!0),e(s,!0)})}function i(e,t){setTimeout(()=>{const e=t.dataLayerName?window[t.dataLayerName]:window.dataLayer,n=t.routeChangeEventName?t.routeChangeEventName:"gatsby-route-change";e.push({event:n})},50)}function s(e,t){t.enableWebVitalsTracking&&a(t.dataLayerName)}},2583:function(e,t,n){"use strict";n.r(t),n.d(t,{onRouteUpdate:function(){return o}});n(4794);var r=n(4794);const o=function({location:e},t){0}},2423:function(e,t,n){"use strict";n.d(t,{O:function(){return s},A:function(){return c}});var r=n(6540);var o=n(9331);const a={event:"userAuthenticated"},i=r.createContext({}),s=({children:e})=>{const{0:t,1:n}=(0,r.useState)(!1),{0:s,1:c}=(0,r.useState)(null),l=(0,r.useRef)(null);(0,r.useEffect)(()=>{var e,t,n;(window._mtm=window._mtm||[]).push({"mtm.startTime":(new Date).getTime(),event:"mtm.Start"}),e=document,t=e.createElement("script"),n=e.getElementsByTagName("script")[0],t.async=!0,t.src="https://cdn.matomo.cloud/rusi.matomo.cloud/container_TUTNkNpL.js",n.parentNode.insertBefore(t,n)},[1,"https://rusi.matomo.cloud"]);const u=(0,r.useCallback)(async()=>{try{if(t)return!0;{const e=await fetch("/api/my-account/auth-check",{credentials:"include",method:"GET",mode:"no-cors",redirect:"manual"});if(l.current=setTimeout(()=>{n(!1),c(null)},18e5),n(e.ok),e.ok){const{userId:t}=await e.json();if(c(t||null),"undefined"!=typeof window){(window._paq=window._paq||[]).push(["setUserId",t])}window.dataLayer=window.dataLayer||[],window.dataLayer.push(a),localStorage.removeItem("redirectPage")}return e.ok||c(null),e.ok}}catch(e){return console.error(e),n(!1),c(null),!1}},[t]);(0,r.useEffect)(()=>{function e(){var e;let t=window._paq=window._paq||[];if("undefined"!=typeof window&&null!==(e=window.CookieScript)&&void 0!==e&&e.instance){var n;const e=window.CookieScript.instance.currentState();null!==(n=e.categories)&&void 0!==n&&n.includes("performance")&&"accept"===e.action?(t.push(["rememberCookieConsentGiven"]),t.push(["setCookieConsentGiven"])):(t.push(["forgetCookieConsentGiven"]),t.push(["deleteCookies"]))}}return"undefined"!=typeof window&&(window.addEventListener("CookieScriptLoaded",()=>{e()}),window.addEventListener("CookieScriptAcceptAll",()=>{e()}),window.addEventListener("CookieScriptAccept",()=>{e()}),window.addEventListener("CookieScriptReject",()=>{e()})),()=>{}},[]),(0,r.useEffect)(()=>((async()=>{const e=await u();n(e)})(),()=>{l.current&&clearTimeout(l.current)}),[]);function p(e,t,n=e=>e){return!!t&&n(((e,t)=>{const n=e.split("").reverse().join("");let r="";for(let o=0;o<t.length;o++){const e=n.charCodeAt(o%n.length)^t.charCodeAt(o);r+=String.fromCharCode(e)}return r})(e,t.content))}return r.createElement(i.Provider,{value:{isUserLoggedIn:u,loginOrMyAccount:()=>{t?window.location.href="https://my.rusi.org/my-dashboard.html":(localStorage.setItem("redirectPage",window.location.pathname+window.location.search+window.location.hash),window.location.href="/api/my-account/")},logout:async()=>{c(null),n(!1),localStorage.setItem("redirectPage",window.location.pathname+window.location.search+window.location.hash);const e="/api/my-account/logout";window.location.href=e},userId:s,getEncryptionKeyOrReason:async({id:e,fields:{encrypted_validate:t,key:n}})=>{if(n)return{key:n};let{key:r,reason:o}=await(async e=>{try{var t,n;const o=await fetch(`/api/my-account/gated-content-keys/${e}`,{credentials:"include",method:"GET",redirect:"manual"});if("opaqueredirect"===o.type||[301,302,303,307,308,401,403].includes(o.status))return{reason:"no-account"};if(!o.ok)return{reason:"error"};let a=null;try{a=await o.json()}catch(r){return console.error("Failed to parse gated-content key response",r),{reason:"error"}}return null!==(t=a)&&void 0!==t&&t.key?{key:a.key}:{reason:null===(n=a)||void 0===n?void 0:n.reason}}catch(o){return console.error(o),{reason:"error"}}})(e);return r||o||(o="error"),r&&"valid"!==p(r,t)&&(r=void 0,o="error"),{key:r,reason:o}},decryptArticle:async(e,t)=>{try{const{fields:n,encryptedSections:r,encryptedPdfs:a}=t,i=p(e,null==n?void 0:n.encrypted_body),s=p(e,null==n?void 0:n.encrypted_taylor_and_francis_url),c=((null==r?void 0:r.map(t=>
1p(e,t)||null).filter(Boolean))||[]).map(o.Bl);return{body:i,pdfUrl:((null==a?void 0:a.map(t=>p(e,t)||null).filter(Boolean))||[]).map(o.Bl),taylorAndFrancisUrl:s,sections:c}}catch(n){return console.log("error",n),!1}},parseNonEncryptedArticle:e=>{var t,n;const r=e=>!!(e&&e.length>0)&&e,{fields:a,encryptedSections:i,encryptedPdfs:s}=e,c=(null==i?void 0:i.filter(e=>Boolean(null==e?void 0:e.content)).map(e=>(0,o.Bl)(e.content)))||[],l=(null==s?void 0:s.filter(e=>Boolean(null==e?void 0:e.content)).map(e=>(0,o.Bl)(e.content)))||[];return{body:r(null==a||null===(t=a.encrypted_body)||void 0===t?void 0:t.content),pdfUrl:l,taylorAndFrancisUrl:r(null==a||null===(n=a.encrypted_taylor_and_francis_url)||void 0===n?void 0:n.content),sections:c}},isLoggedIn:t}},e)},c=()=>(0,r.useContext)(i)},9331:function(e,t,n){"use strict";n.d(t,["Bl",0,e=>{try{return JSON.parse(e)}catch(t){return e}}])},2475:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},4634:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6221:function(e,t,n){var r=n(5636);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},4994:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},5636:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4656:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SCRIPT_TYPE="text/partytown",t.partytownSnippet=e=>((e,t)=>{const{forward:n=[],...r}=e||{},o=JSON.stringify(r,(e,t)=>("function"==typeof t&&(t=String(t)).startsWith(e+"(")&&(t="function "+t),t));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');",t].join("")})(e,'/* Partytown 0.7.6 - 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(f,1e4),e.addEventListener("pt0",w),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):f())))}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.7.6":"sandbox-sw.html?"+Date.now()),e.body.appendChild(c)}function f(n,r){for(w(),i==t&&(o.forward||[]).map((function(e){delete t[e.split(".")[0]]})),n=0;n<s.length;n++)(r=e.createElement("script")).innerHTML=s[n].innerHTML,e.head.appendChild(r);c&&c.parentNode.removeChild(c)}function w(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(".").map((function(e,n,i){p=p[i[n]]=n+1<i.length?"push"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),"complete"==e.readyState?u():(t.addEventListener("DOMContentLoaded",u),t.addEventListener("load",u))}(window,document,navigator,top,window.crossOriginIsolated);')},7387:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(3662);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},3662:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:function(){return r}})},4506:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){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.d(t,{A:function(){return o}})},1678:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseContext:function(){return g},Link:function(){return J},Location:function(){return Y},LocationContext:function(){return v},LocationProvider:function(){return z},Match:function(){return ee},Redirect:function(){return _},Router:function(){return se},ServerLocation:function(){return Z},createHistory:function(){return u},createMemorySource:function(){return p},globalHistory:function(){return h},insertParams:function(){return O},isRedirect:function(){return E},match:function(){return k},navigate:function(){return f},pick:function(){return R},redirectTo:function(){return P},resolve:function(){return x},shallowCompare:function(){return $},startsWith:function(){return S},useBaseContext:function(){return y}
1,useLocation:function(){return le},useLocationContext:function(){return w},useMatch:function(){return de},useNavigate:function(){return ue},useParams:function(){return pe},validateRedirect:function(){return T}});var r=n(6540),o=n.t(r,2),a=n(5556),i=n.cjs(function(e,t){e.exports=function(e,t,n,r,o,a,i,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,a,i,s],u=0;(c=new Error(t.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}});function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}const l=e=>{const{search:t,hash:n,href:r,origin:o,protocol:a,host:i,hostname:s,port:c}=e.location;let{pathname:l}=e.location;return!l&&r&&d&&(l=new URL(r).pathname),{pathname:encodeURI(decodeURI(l)),search:t,hash:n,href:r,origin:o,protocol:a,host:i,hostname:s,port:c,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},u=(e,t)=>{let n=[],r=l(e),o=!1,a=()=>{};return{get location(){return r},get transitioning(){return o},_onTransitionComplete(){o=!1,a()},listen(t){n.push(t);const o=()=>{r=l(e),t({location:r,action:"POP"})};return e.addEventListener("popstate",o),()=>{e.removeEventListener("popstate",o),n=n.filter(e=>e!==t)}},navigate(t,{state:i,replace:c=!1}={}){if("number"==typeof t)e.history.go(t);else{i=s({},i,{key:Date.now()+""});try{o||c?e.history.replaceState(i,null,t):e.history.pushState(i,null,t)}catch(n){e.location[c?"replace":"assign"](t)}}r=l(e),o=!0;const u=new Promise(e=>a=e);return n.forEach(e=>e({location:r,action:"PUSH"})),u}}},p=(e="/")=>{const t=e.indexOf("?"),n={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""};let r=0;const o=[n],a=[null];return{get location(){return o[r]},addEventListener(e,t){},removeEventListener(e,t){},history:{get entries(){return o},get index(){return r},get state(){return a[r]},pushState(e,t,n){const[i,s=""]=n.split("?");r++,o.push({pathname:i,search:s.length?`?${s}`:s}),a.push(e)},replaceState(e,t,n){const[i,s=""]=n.split("?");o[r]={pathname:i,search:s},a[r]=e},go(e){const t=r+e;t<0||t>a.length-1||(r=t)}}}},d=!("undefined"==typeof window||!window.document||!window.document.createElement),h=u(d?window:p()),{navigate:f}=h;function m(e,t){return r.createServerContext?((e,t=null)=>(globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=r.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]))(e,t):r.createContext(t)}const g=m("Base",{baseuri:"/",basepath:"/"}),v=m("Location"),y=()=>r.useContext(g),w=()=>r.useContext(v);function b(e){this.uri=e}const E=e=>e instanceof b,P=e=>{throw new b(e)};function C(e){const{to:t,replace:n=!0,state:o,noThrow:a,baseuri:i}=e;r.useEffect(()=>{Promise.resolve().then(()=>{const r=x(t,i);f(O(r,e),{replace:n,state:o})})},[]);const s=x(t,i);return a||P(O(s,e)),null}const _=e=>{const t=w(),{baseuri:n}=y();return r.createElement(C,s({},t,{baseuri:n},e))};_.propTypes={from:a.string,to:a.string.isRequired};const S=(e,t)=>e.substr(0,t.length)===t,R=(e,t)=>{let n,r;const[o]=t.split("?"),a=M(o),s=""===a[0],c=L(e);for(let l=0,u=c.length;l<u;l++){let e=!1;const o=c[l].route;if(o.default){r={route:o,params:{},uri:t};continue}const u=M(o.path),p={},d=Math.max(a.length,u.length);let h=0;for(;h<d;h++){const t=u[h],n=a[h];if(j(t)){p[t.slice(1)||"*"]=a.slice(h).map(decodeURIComponent).join("/");break}if(void 0===n){e=!0;break}const r=N.exec(t);if(r&&!s){const e=-1===H.indexOf(r[1]);i(e,`<Router> dynamic segment "${r[1]}" is a reserved name. Please use a different name in path "${o.path}".`);const t=decodeURIComponent(n);p[r[1]]=t}else if(t!==n){e=!0;break}}if(!e){n={route:o,params:p,uri:"/"+a.slice(0,h).join("/")};break}}return n||r||null},k=(e,t)=>R([{path:e}],t),x=(e,t)=>{if(S(e,"/"))return e;const[n,r]=e.split("?"),[o]=t.split("?"),a=M(n),i=M(o);if(""===a[0])return I(o,r);if(!S(a[0],".")){const e=i.concat(a).join("/");return I(("/"===o?"":"/")+e,r)}
1const s=i.concat(a),c=[];for(let l=0,u=s.length;l<u;l++){const e=s[l];".."===e?c.pop():"."!==e&&c.push(e)}return I("/"+c.join("/"),r)},O=(e,t)=>{const[n,r=""]=e.split("?");let o="/"+M(n).map(e=>{const n=N.exec(e);return n?t[n[1]]:e}).join("/");const{location:{search:a=""}={}}=t,i=a.split("?")[1]||"";return o=I(o,r,i),o},T=(e,t)=>{const n=e=>A(e);return M(e).filter(n).sort().join("/")===M(t).filter(n).sort().join("/")},N=/^:(.+)/,A=e=>N.test(e),j=e=>e&&"*"===e[0],D=(e,t)=>({route:e,score:e.default?0:M(e.path).reduce((e,t)=>(e+=4,(e=>""===e)(t)?e+=1:A(t)?e+=2:j(t)?e-=5:e+=3,e),0),index:t}),L=e=>e.map(D).sort((e,t)=>e.score<t.score?1:e.score>t.score?-1:e.index-t.index),M=e=>e.replace(/(^\/+|\/+$)/g,"").split("/"),I=(e,...t)=>e+((t=t.filter(e=>e&&e.length>0))&&t.length>0?`?${t.join("&")}`:""),H=["uri","path"],$=(e,t)=>{const n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>t.hasOwnProperty(n)&&e[n]===t[n])},U=e=>e.replace(/(^\/+|\/+$)/g,""),W=e=>t=>{if(!t)return null;if(t.type===r.Fragment&&t.props.children)return r.Children.map(t.props.children,W(e));if(i(t.props.path||t.props.default||t.type===_,`<Router>: Children of <Router> must have a \`path\` or \`default\` prop, or be a \`<Redirect>\`. None found on element type \`${t.type}\``),i(!!(t.type!==_||t.props.from&&t.props.to),`<Redirect from="${t.props.from}" to="${t.props.to}"/> requires both "from" and "to" props when inside a <Router>.`),i(!(t.type===_&&!T(t.props.from,t.props.to)),`<Redirect from="${t.props.from} to="${t.props.to}"/> has mismatched dynamic segments, ensure both paths have the exact same dynamic segments.`),t.props.default)return{value:t,default:!0};const n=t.type===_?t.props.from:t.props.path,o="/"===n?e:`${U(e)}/${U(n)}`;return{value:t,default:t.props.default,path:t.props.children?`${U(o)}/*`:o}},q=["innerRef"],F=["to","state","replace","getProps"],B=["key"];let{forwardRef:Q}=o;void 0===Q&&(Q=e=>e);const G=()=>{},J=Q((e,t)=>{let{innerRef:n}=e,o=c(e,q);const{baseuri:a}=y(),{location:i}=w(),{to:l,state:u,replace:p,getProps:d=G}=o,h=c(o,F),m=x(l,a),g=encodeURI(m),v=i.pathname===g,b=S(i.pathname,g);return r.createElement("a",s({ref:t||n,"aria-current":v?"page":void 0},h,d({isCurrent:v,isPartiallyCurrent:b,href:m,location:i}),{href:m,onClick:e=>{if(h.onClick&&h.onClick(e),(e=>!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey))(e)){e.preventDefault();let t=p;if("boolean"!=typeof p&&v){const e=c(s({},i.state),B);t=$(s({},u),e)}f(m,{state:u,replace:t})}}}))});J.displayName="Link",J.propTypes={to:a.string.isRequired};class V extends r.Component{constructor(...e){super(...e),this.displayName="ReactUseErrorBoundary"}componentDidCatch(...e){this.setState({}),this.props.onError(...e)}render(){return this.props.children}}const X=r.createContext({componentDidCatch:{current:void 0},error:void 0,setError:()=>!1});function K({children:e}){const[t,n]=r.useState(),o=r.useRef(),a=r.useMemo(()=>({componentDidCatch:o,error:t,setError:n}),[t]);return r.createElement(X.Provider,{value:a},r.createElement(V,{error:t,onError:(e,t)=>{n(e),null==o.current||o.current(e,t)}},e))}K.displayName="ReactUseErrorBoundaryContext";const z=function(e){var t,n;function o(t){return r.createElement(K,null,r.createElement(e,s({key:"WrappedComponent"},t)))}return o.displayName=`WithErrorBoundary(${null!=(t=null!=(n=e.displayName)?n:e.name)?t:"Component"})`,o}(({history:e=h,children:t})=>{const{location:n}=e,[o,a]=r.useState({location:n}),[i]=function(){const e=r.useContext(X);e.componentDidCatch.current=void 0;const t=r.useCallback(()=>{e.setError(void 0)},[]);return[e.error,t]}();if(r.useEffect(()=>{e._onTransitionComplete()},[o.location]),r.useEffect(()=>{let t=!1;const n=e.listen(({location:e})=>{Promise.resolve().then(()=>{requestAnimationFrame(()=>{t||a({location:e})})})});return()=>{t=!0,n()}},[]),i){if(!E(i))throw i;f(i.uri,{replace:!0})}return r.createElement(v.Provider,{value:o},"function"==typeof t?t(o):t||null)}),Y=({children:e})=>{const t=w();return t?e(t):r.createElement(z,null,e)},Z=({url:e,children:t})=>{const n=e.indexOf("?");let o,a="";return n>-1?(o=e.substring(0,n),a=e.substring(n)):o=e,r.createElement(v.Provider,{value:{location:{pathname:o,search:a,hash:""}}},t)},ee=({path:e,children:t})=>{const{baseuri:n}=y(),{location:r}=w(),o=x(e,n),a=k(o,r.pathname);return t({location:r,match:a?s({},a.params,{uri:a.uri,path:e}):null})},te=["uri","location","component"],ne=["children","style","component","uri","location"],re=e=>{let{uri:t,location:n,component:o}=e,a=c(e,te);return r.createElement(ae,s({},a,{component:o,uri:t,location:n}))};let oe=0;const ae=e=>{let{children:t,style:n,component:o="div",uri:a,location:i}=e,l=c(e,ne);const u=r.useRef(),p=r.useRef(!0),d=r.useRef(a),h=r.useRef(i.pathname),f=r.useRef(!1);r.useEffect(()=>(oe++,m(),()=>{oe--,0===oe&&(p.current=!0)}),[]),r.useEffect(()=>{let e=!1,t=!1;a!==d.current&&(d.current=a,e=!0),i.pathname!==h.current&&(h.current=i.pathname,t=!0),f.current=e||t&&i.pathname===a,f.current&&m()},[a,i]);const m=r.useCallback(()=>{var e;p.current?p.current=!1:(e=u.current,f.current&&e&&e.focus())},[]);return r.createElement(o,s({style:s({outline:"none"},n),tabIndex:"-1",ref:u},l),t)},ie=["location","primary","children","basepath","baseuri","component"],se=e=>{const t=y(),n=w();return r.createElement(ce,s({},t,n,e))};function ce(e){const{location:t,primary:n=!0,children:o,basepath:a,component:i="div"}=e,l=c(e,ie),u=r.Children.toArray(o).reduce((e,t)=>
1{const n=W(a)(t);return e.concat(n)},[]),{pathname:p}=t,d=R(u,p);if(d){const{params:e,uri:o,route:c,route:{value:u}}=d,p=c.default?a:c.path.replace(/\*$/,""),h=s({},e,{uri:o,location:t}),f=r.cloneElement(u,h,u.props.children?r.createElement(se,{location:t,primary:n},u.props.children):void 0),m=n?re:i,v=n?s({uri:o,location:t,component:i},l):l;return r.createElement(g.Provider,{value:{baseuri:o,basepath:p}},r.createElement(m,v,f))}return null}const le=()=>{const e=w();if(!e)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");return e.location},ue=()=>{throw new Error("useNavigate is removed. Use import { navigate } from 'gatsby' instead")},pe=()=>{const e=y();if(!e)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");const t=le(),n=k(e.basepath,t.pathname);return n?n.params:null},de=e=>{if(!e)throw new Error("useMatch(path: string) requires an argument of a string to match against");const t=y();if(!t)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");const n=le(),r=x(e,t.baseuri),o=k(r,n.pathname);return o?s({},o.params,{uri:o.uri,path:e}):null}},5535:function(e,t,n){"use strict";n.r(t),n.d(t,{Script:function(){return f},ScriptStrategy:function(){return l}});var r=n(6540),o=n(1678);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const i=new Map,s={get:e=>i.get(e)||[],set(e,t){const n=i.get(e)||[];n.push(t),i.set(e,n)},delete(e){i.delete(e)}},c="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){const t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)};var l,u;(u=l||(l={})).postHydrate="post-hydrate",u.idle="idle",u.offMainThread="off-main-thread";const p=new Set(["src","strategy","dangerouslySetInnerHTML","children","onLoad","onError"]),d=new Set,h=new Map;function f(e){return r.createElement(o.Location,null,()=>r.createElement(m,e))}function m(e){const{src:t,strategy:n=l.postHydrate}=e||{},{pathname:i}=(0,o.useLocation)();if((0,r.useEffect)(()=>{let t;switch(n){case l.postHydrate:t=g(e);break;case l.idle:c(()=>{t=g(e)});break;case l.offMainThread:{const t=y(e);s.set(i,t)}}return()=>{const{script:e,loadCallback:n,errorCallback:r}=t||{};n&&(null==e||e.removeEventListener("load",n)),r&&(null==e||e.removeEventListener("error",r)),null==e||e.remove()}},[]),n===l.offMainThread){const o=v(e),c=y(e);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(e)}}):a({type:"text/partytown",src:w(t),"data-strategy":n,crossOrigin:"anonymous"},c))}return null}function g(e){const{id:t,src:n,strategy:r=l.postHydrate,onLoad:o,onError:i}=e||{},s=t||n,c=["load","error"],u={load:o,error:i};if(s){for(const e of c)if(null!=u&&u[e]){var p;const t=h.get(s)||{},{callbacks:n=[]}=(null==t?void 0:t[e])||{};var f,m;n.push(null==u?void 0:u[e]),null!=t&&null!=(p=t[e])&&p.event?null==u||null==(f=u[e])||f.call(u,null==t||null==(m=t[e])?void 0:m.event):h.set(s,a({},t,{[e]:{callbacks:n}}))}if(d.has(s))return null}const g=v(e),w=y(e),E=document.createElement("script");t&&(E.id=t),E.dataset.strategy=r;for(const[a,l]of Object.entries(w))E.setAttribute(a,l);g&&(E.textContent=g),n&&(E.src=n);const P={};if(s){for(const e of c){const t=t=>b(t,s,e);E.addEventListener(e,t),P[`${e}Callback`]=t}d.add(s)}return document.body.appendChild(E),{script:E,loadCallback:P.loadCallback,errorCallback:P.errorCallback}}function v(e){const{dangerouslySetInnerHTML:t,children:n=""}=e||{},{__html:r=""}=t||{};return r||n}function y(e){const t={};for(const[n,r]of Object.entries(e))p.has(n)||(t[n]=r);return t}function w(e){if(e)return`/__third-party-proxy?url=${encodeURIComponent(e)}`}function b(e,t,n){const r=h.get(t)||{};for(const a of(null==r||null==(o=r[n])?void 0:o.callbacks)||[]){var o;a(e)}h.set(t,{[n]:{event:e}})}n.d(t,["collectedScriptsByPage",0,s,"scriptCache",0,d,"scriptCallbackCache",0,h])}},function(e){e.O(0,[869,593],function(){return t=6498,e(e.s=t);var t});e.O()}]); 2//# sourceMappingURL=app-697bf28eb635d5ea1dfc.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.