1/*! For license information please see commons-fc88bc6b1cbeb1b146e2.js.LICENSE.txt */ 2(self.webpackChunk_microbit_foundation_microbit_org_gatsby=self.webpackChunk_microbit_foundation_microbit_org_gatsby||[]).push([[4223],{10:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r=n(6540),a=n(2265),o=n(3038);var i={createai:"CreateAI",makecode:"MakeCode",python:"Python","python-editor":"Python Editor",scratch:"Scratch","take-up-a-challenge":"Take up a challenge"},c=n(1616),l=(n(6851),n(619)),s=n(1595),u=n(3972),d=n(8321),f=n(7628);var m=e=>{let{language:t,location:n,messages:m,siteArea:v,children:h}=e;t=t||"en";const b="page-translate"===t?"lol":t,g=(0,r.useMemo)(()=>Object.assign({},m,i),[m]),y="rtl"===p(t);return r.createElement(l.as,null,r.createElement(c.yP,{siteArea:v},r.createElement(u.d,{location:n},r.createElement(o.s.Provider,{value:t},r.createElement(s.M.Provider,{value:y},r.createElement(f.Ay,null,r.createElement(d.A,null,r.createElement(a.A,{locale:b,defaultLocale:"en",messages:g},h))))))))};const p=e=>"ar"===e?"rtl":"ltr"},115:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var c,l,s,u;if(Array.isArray(e)){if((c=e.length)!=i.length)return!1;for(l=c;0!==l--;)if(!o(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((c=e.length)!=i.length)return!1;for(l=c;0!==l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if((c=(s=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=c;0!==l--;)if(!Object.prototype.hasOwnProperty.call(i,s[l]))return!1;if(t&&e instanceof Element)return!1;for(l=c;0!==l--;)if(("_owner"!==s[l]&&"__v"!==s[l]&&"__o"!==s[l]||!e.$$typeof)&&!o(e[s[l]],i[s[l]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},257:function(e,t,n){"use strict";n.d(t,{A:function(){return wt}});var r=n(6540),a=n(8154),o=n(3369),i=n(3972),c=n(2510);const l=()=>{const{url:e}=(0,o.V)(),t="\n (function() {\n function escape() {\n window.location.href = "+JSON.stringify(e)+';\n }\n window._jipt = [ \n ["project", "microbitorg"],\n [\'escape\', escape]\n ];\n })();\n ';return r.createElement(a.A,null,r.createElement("script",{type:"text/javascript"},t),r.createElement("script",{type:"text/javascript",src:"//cdn.crowdin.com/jipt/jipt.js"}),r.createElement("meta",{name:"robots",content:"noindex"}))},s=e=>{let{value:t}=e;const{page:{socialImage:n}}=t,o=n?"summary_large_image":"summary",i=t.page.socialTitle||t.title,c=t.page.socialDescription||t.page.metaDescription;return r.createElement(a.A,null,!1,r.createElement("meta",{name:"twitter:card",content:o}),i&&r.createElement("meta",{property:"og:title",content:i}),c&&r.createElement("meta",{property:"og:description",content:c}),n&&r.createElement("meta",{property:"og:image",content:n.asset.url+"?q=95"}),n&&r.createElement("meta",{property:"og:image:width",content:n.asset.metadata.dimensions.width.toString()}),n&&r.createElement("meta",{property:"og:image:height",content:n.asset.metadata.dimensions.height.toString()}),t.type&&"website"!==t.type&&r.createElement("meta",{property:"og:type",content:t.type}),"article"===t.type&&t.page.date&&r.createElement("meta",{property:"article:published_time",content:t.page.date}))},u=e=>{let{value:t}=e;return r.createElement(a.A,null,t.filter(e=>!e.fallback).map(e=>{let{language:t,url:n}=e;return r.createElement("link",{key:t,rel:"alternate",hrefLang:(0,c.siteUrlLanguageToHrefLang)(t),href:n})}))};var d=e=>{const{pathname:t}=(0,i.H)(),{metadata:n}=e,c=""+(0,o.V)().url+(n.canonicalUrlOverride||t),{metaDescription:d}=n.page;return r.createElement(r.Fragment,null,r.createElement(a.A,null,r.createElement("meta",{"http-equiv":"X-UA-Compatible",content:"IE=edge"}),r.createElement("title",null,n.title," | micro:bit"),d&&r.createElement("meta",{name:"description",content:d}),r.createElement("meta",{property:"og:url",content:c}),r.createElement("link",{rel:"canonical",href:c}),r.createElement("link",{rel:"shortcut icon",type:"image/ico",href:"data:image/vnd.microsoft.icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////ALDhKwSs4SsOpOIpDpziJw6V4yYOjuMjDobjIg5+5CAOduUeDXHlHQP///8A////AP///wD///8AtuEtBLThLVuv4Su+qOEq2KDiKNmY4ibZkeMl2YrjI9mC5CHZeuQf2XPlHddr5Ru2YuYaSl3mGAL///8As+EsBLPhLJGu4Sv7p+Eq+Z/iKOqY4ibpkOMk6YnjIumB5CHpeeQf6XHlHelq5RvrYuYZ+1rmGPhS5xZ1SOcTAq/hLFCr4Sv6peIp3qHiKEma4icZkuMlFovjIxaD5CEWfOQfFnTlHhZt5RwWZOYaG1rmF1hQ5xXsSOcT9ELoEjao4SqyouIo+J/iKEGJ4yICheQiGYDkIAT///8A////AP///wD///8AVOcWCVDnFRZN5xUBRugSXj/oEf056BCRn+Io4JjiJuSZ4iYEhOQiOoDkIe165B9a////AP///wD///8A////AFDnFYxM5xTdRucTGTroEBs16Q7vL+kNvpXjJdmO4yTphuMiDH7kICZ45B6+dOUePP///wD///8A////AP///wBJ5xNkROgSrULoEQ8u6Q0kK+kM8ibqC7eK4yOehOQh/HzkH2V15R4B////AP///wD///8A////AP///wD///8A////AP///wAm6gsCJuoLhCHqCv4d6gl8geQgNHrkH+9y5R30aOUbiV/mGUxX5hdJT+cVSUjnE0lB6BJJOegPSTLpDkkq6QxOJOoKmB/qCfoY6gjjF+sHH////wBw5R1baOUb8GHmGf9Z5hf/UecV/0nnE/9C6BL/O+gQ/zTpDv8s6Qz/JeoL/x3qCf8W6wfmE+sGRP///wD///8AaOUbAWHmGSZZ5hd8UecVn0nnE6JC6BKiO+gQojTpDqIs6QyiJOoKoh3qCZ4X6wdyEusGHP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AADgBwAAgAEAAAAAAAAAAAAAA8AAAAPAAAADwAAAD/AAAAAAAACAAQAAgAMAAP//AAD//wAA//8AAA=="})),"page-translate"===n.page.language&&r.createElement(l,null),r.createElement(s,{value:n}),r.createElement(u,{value:n.alternates}))},f=n(8473),m=(n(6851),n(8065)),p=n(3038),v=n(2441),h=n(4984),b=n(5133),g=n(3360),y=n(7591),E=n(9846),A="Footer-module--root--388e1",
2w="Footer-module--sections--0b71f",k="Footer-module--socialNewsletter--3e613",T="Footer-module--section--109c7",N="Footer-module--socialIcons--9e071",C="Footer-module--divider--85273",O="Footer-module--subFooter--7d500",L=n(648),S="GradientLine-module--root--eebde",P=n(2485),D=n.n(P);var x=e=>{let{className:t,style:n}=e;return r.createElement("div",{style:n,className:D()(S,t)})},M=n(4662),I=n(4072),j=n(3307),R=n(619);var F=e=>{let{className:t,fill:n,height:a=30,width:o=30}=e;return r.createElement("svg",{width:o,height:a,className:t},r.createElement("g",{fill:n},r.createElement("path",{d:"M15 2.703c4.005 0 4.48.015 6.061.087 1.708.078 3.291.42 4.51 1.64 1.219 1.218 1.56 2.802 1.639 4.51.072 1.58.088 2.055.088 6.06 0 4.006-.016 4.48-.088 6.062-.078 1.707-.42 3.291-1.639 4.51-1.219 1.218-2.803 1.56-4.51 1.638-1.581.073-2.056.088-6.061.088s-4.48-.015-6.061-.088c-1.708-.077-3.292-.42-4.51-1.638-1.219-1.219-1.56-2.803-1.639-4.51-.072-1.583-.087-2.057-.087-6.062 0-4.005.015-4.48.087-6.061.078-1.708.42-3.292 1.64-4.51C5.647 3.21 7.231 2.869 8.94 2.79c1.58-.072 2.055-.087 6.06-.087zM15 0c-4.074 0-4.584.017-6.185.09C6.378.202 4.237.8 2.517 2.518.8 4.236.202 6.377.09 8.815.017 10.415 0 10.926 0 15s.017 4.584.09 6.185c.112 2.437.709 4.578 2.428 6.298 1.718 1.718 3.86 2.316 6.298 2.427 1.6.073 2.11.09 6.184.09s4.584-.017 6.185-.09c2.437-.112 4.578-.709 6.298-2.428 1.718-1.718 2.316-3.86 2.427-6.298.073-1.6.09-2.11.09-6.184s-.017-4.584-.09-6.185c-.112-2.437-.709-4.578-2.428-6.298C25.764.8 23.622.201 21.184.09 19.584.017 19.074 0 15 0z"}),r.createElement("path",{d:"M15 7.298a7.703 7.703 0 100 15.405 7.703 7.703 0 000-15.405zM15 20a5 5 0 110-10 5 5 0 010 10z"}),r.createElement("circle",{cx:23.007,cy:6.993,r:1.8})))};var B=e=>{let{className:t,fill:n,height:a=30,width:o=30}=e;return r.createElement("svg",{width:o,height:a,viewBox:"0 0 878 1000",className:t},r.createElement("path",{fill:n,d:"M446.7,1000h-0.3c-149.2-1-263.9-50.2-341-146.2C36.9,768.3,1.5,649.4,0.3,500.4v-0.7c1.2-149.1,36.6-267.9,105.2-353.4 C182.5,50.2,297.3,1,446.4,0h0.3h0.3c114.4,0.8,210.1,30.2,284.4,87.4c69.9,53.8,119.1,130.4,146.2,227.8l-85,23.7 c-46-165-162.4-249.3-346-250.6c-121.2,0.9-212.9,39-272.5,113.2C118.4,271,89.6,371.4,88.5,500c1.1,128.6,29.9,229,85.7,298.5 c59.6,74.3,151.3,112.4,272.5,113.2c109.3-0.8,181.6-26.3,241.7-85.2c68.6-67.2,67.4-149.7,45.4-199.9 c-12.9-29.6-36.4-54.2-68.1-72.9c-8,56.3-25.9,101.9-53.5,136.3c-36.9,45.9-89.2,71-155.4,74.6c-50.1,2.7-98.4-9.1-135.8-33.4 c-44.3-28.7-70.2-72.5-73-123.5c-2.7-49.6,17-95.2,55.4-128.4c36.7-31.7,88.3-50.3,149.3-53.8c44.9-2.5,87-0.5,125.8,5.9 c-5.2-30.9-15.6-55.5-31.2-73.2c-21.4-24.4-54.5-36.8-98.3-37.1c-0.4,0-0.8,0-1.2,0c-35.2,0-83,9.7-113.4,55L261.2,327 c40.8-60.6,107-94,186.6-94c0.6,0,1.2,0,1.8,0c133.1,0.8,212.4,82.3,220.3,224.5c4.5,1.9,9,3.9,13.4,5.9 c62.1,29.2,107.5,73.4,131.4,127.9c33.2,75.9,36.3,199.6-64.5,298.3C673.1,965,579.6,999.1,447,1000L446.7,1000L446.7,1000z M488.5,512.9c-10.1,0-20.3,0.3-30.8,0.9c-76.5,4.3-124.2,39.4-121.5,89.3c2.8,52.3,60.5,76.6,116,73.6 c51-2.7,117.4-22.6,128.6-154.6C552.6,516,521.7,512.9,488.5,512.9z"}))};var _=e=>{let{className:t,fill:n,height:a=30,width:o=30}=e;return r.createElement("svg",{width:o,height:a,viewBox:"0 0 568 501",className:t},r.createElement("path",{fill:n,d:"M123.121 33.6637C188.241 82.5526 258.281 181.681 284 234.873C309.719 181.681 379.759 82.5526 444.879 33.6637C491.866 -1.61183 568 -28.9064 568 57.9464C568 75.2916 558.055 203.659 552.222 224.501C531.947 296.954 458.067 315.434 392.347 304.249C507.222 323.8 536.444 388.56 473.333 453.32C353.473 576.312 301.061 422.461 287.631 383.039C285.169 375.812 284.017 372.431 284 375.306C283.983 372.431 282.831 375.812 280.369 383.039C266.939 422.461 214.527 576.312 94.6667 453.32C31.5556 388.56 60.7778 323.8 175.653 304.249C109.933 315.434 36.0535 296.954 15.7778 224.501C9.94525 203.659 0 75.2916 0 57.9464C0 -28.9064 76.1345 -1.61183 123.121 33.6637Z"}))};var H=e=>{let{className:t,fill:n,height:a=30,width:o=30}=e;return r.createElement("svg",{width:o,height:a,viewBox:"0 0 461.001 461.001",className:t},r.createElement("path",{fill:n,d:"M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728 c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137 C461.001,110.259,418.135,67.393,365.257,67.393z M300.506,237.056l-126.06,
260.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607 c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z"}))},z=n(6631);const U=e=>{let{item:{internalLink:t,externalLink:n,title:a,query:o,fragment:i}}=e;const c=(0,p.o)(),l=t?(0,g.X)(t,o,i,c):n||"";return r.createElement(E.A,{to:l},a)};var G=e=>{let{menus:t}=e;const{footerMenus:n,copyright:a}=t,{facebook:o,linkedin:i,instagram:c,threads:l,bluesky:s,youtube:u}=(0,v.P)();return r.createElement(r.Fragment,null,r.createElement("footer",{className:A},r.createElement(b.mO,null,r.createElement("div",{className:w},n.map((e,t)=>r.createElement("div",{key:e.title,className:T},r.createElement(L.A,{variant:"footerHeading"},e.title),r.createElement("ul",null,e.items.map((e,t)=>r.createElement(L.A,{key:t,variant:"footerDefault",as:"li",gutterBottom:!0},r.createElement(U,{item:e}))),2===t&&r.createElement(L.A,{key:t,variant:"footerDefault",as:"li",gutterBottom:!0},r.createElement(j.A,{style:{padding:0,borderRadius:0,color:"black"},onClick:R.LR},r.createElement(L.A,{as:"span",variant:"footerDefault"},"Cookies")))))),r.createElement("div",{className:D()(T,k),key:"social-newsletter"},r.createElement("div",null,r.createElement(L.A,{variant:"footerHeading"},r.createElement(m.A,{id:"sign-up-newsletter"})),r.createElement(h.A,{to:"https://mailchi.mp/microbit/newsletter"},r.createElement(m.A,{id:"join-us"}))),r.createElement("div",null,r.createElement(L.A,{variant:"footerHeading"},r.createElement(m.A,{id:"follow-us"})),r.createElement("div",{className:N},r.createElement(E.A,{to:"https://www.linkedin.com/company/"+i.handle,"aria-label":"LinkedIn"},r.createElement(I.A,{height:30,width:30})),r.createElement(E.A,{to:"https://instagram.com/"+c.handle,"aria-label":"Instagram"},r.createElement(F,{height:30,width:30})),r.createElement(E.A,{to:"https://www.facebook.com/"+o.handle,"aria-label":"Facebook"},r.createElement(M.A,{height:30,width:30})),r.createElement(E.A,{to:"https://www.threads.net/"+l.handle,"aria-label":"Threads"},r.createElement(B,{height:30,width:30})),r.createElement(E.A,{to:"https://bsky.app/profile/"+s.handle,"aria-label":"Bluesky"},r.createElement(_,{height:30,width:30})),r.createElement(E.A,{to:"https://www.youtube.com/"+u.handle,"aria-label":"Youtube"},r.createElement(H,{height:30,width:30})))))),r.createElement(z.A,{className:C}),r.createElement(b.fI,null,r.createElement(b.fv,{className:O},r.createElement("ul",null,r.createElement(L.A,{variant:"defaultLight",as:"li"},"© Micro:bit Educational Foundation"),a&&a.length>0?a.map((e,t)=>r.createElement(L.A,{key:t,variant:"footerDefault",as:"li"},r.createElement(U,{item:e}))):null))))),r.createElement(y.A,null,r.createElement(x,null)))},W=n(4708),Z=n.n(W),Y=n(6442),V=n(9715),q=n(2739),K=["mousedown","touchstart"],J=function(e,t,n){void 0===n&&(n=K);var a=(0,r.useRef)(t);(0,r.useEffect)(function(){a.current=t},[t]),(0,r.useEffect)(function(){for(var t=function(t){var n=e.current;n&&!n.contains(t.target)&&a.current(t)},r=0,o=n;r<o.length;r++){var i=o[r];(0,q.on)(document,i,t)}return function(){for(var e=0,r=n;e<r.length;e++){var a=r[e];(0,q.AU)(document,a,t)}}},[n,e])},Q="ToolBar-module--root--775b8",X="ToolBar-module--container--e27f8",$="ToolBar-module--logoItem--506fe",ee="ToolBar-module--logo--8f713",te="ToolBar-module--left--fd8ff",ne="ToolBar-module--middle--793e4",re="ToolBar-module--rightContainer--f4733",ae="ToolBar-module--right--6e8e6",oe="ToolBar-module--mobileNavContainer--4c544",ie="ToolBar-module--showMenu--8d073",ce="ToolBar-module--hideMenu--42e7d";var le=e=>{let{className:t="",fill:n="none",height:a=30,width:o=30,stroke:i="#556C84"}=e;return r.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",className:t},r.createElement("path",{fill:n,stroke:i,strokeWidth:1,d:"M.5 8.8c.2 0 .3.1.3.2s-.2.2-.3.2h17.1c-.2 0-.3-.1-.3-.2s.1-.2.3-.2H.5zm0-6.6c.2 0 .3.1.3.2s-.2.4-.3.4h17.1c-.2 0-.3-.1-.3-.2s.1-.2.3-.2H.5zm0 13c.2 0 .3.1.3.2s-.1.2-.3.2h17.1c-.2 0-.3-.1-.3-.2s.1-.2.3-.2H.5z"}))},se=n(2986);var ue=r.forwardRef((e,t)=>{let{containWidth:n=!0,left:a,middle:o,right:i,titleCmp:c,logo:l,onMobileClose:s,className:u,setFocusTrapActive:d}=e;const{0:f,1:m}=(0,r.useState)(!1),p=r.useRef(null),v=r.useRef(null),h=n?b.mO:"div";J(v,e=>{p.current&&e.target instanceof Node&&p.current.contains(e.target)||(m(!1),s&&s())});(0,r.useEffect)(()=>{document.body.style.overflow=i&&f?"hidden":"inherit"},[i,f]),(0,r.useEffect)(()=>{d(f)},[d,f]);const g=(0,Y.A)().formatMessage({id:f?"close-main-menu":"open-main-menu"});return r.createElement("div",{className:D()(Q,u),ref:t},r.createElement(h,{className:X},r.createElement("div",{className:$},l&&r.cloneElement(l,{className:ee}),c&&c,a&&r.createElement("div",{className:te},a)),o&&r.createElement("div",{className:ne},o),i&&r.createElement("div",{className:D()(re,f?ie:ce)},r.createElement("div",{ref:v,className:D()(ae,f?ie:ce)}
2,i)),i&&r.createElement("div",{className:oe},r.createElement(j.A,{ref:p,onClick:()=>{const e=f;m(!e),e&&s&&s()},id:"main-menu-button","aria-haspopup":"true","aria-controls":"main-menu","aria-label":g},f?r.createElement(se.A,{stroke:"#ffffff",height:18,width:18}):r.createElement(le,{stroke:"#ffffff",height:18,width:18})))))}),de="ToolBarNav-module--root--dd217";const fe="ToolBarNav-module--underlineLink--32656",me="ToolBarNav-module--boldLink--29ef2";var pe=e=>{let{children:t,className:n}=e;return r.createElement("div",{className:D()(de,n)},t)},ve="MainNav-module--toolBarNav--b3436",he=n(5458);const be=(e,t)=>t?e.replace(new RegExp("^/"+t.toLowerCase()+"/"),"/"):e,ge=e=>{if(e.internalLink)return(0,V.C)(e.internalLink)};var ye;!function(e){e[e.None=0]="None",e[e.Exact=1]="Exact",e[e.Loose=2]="Loose"}(ye||(ye={}));const Ee=e=>{const t=e.split("/");if(t.pop(),t.pop(),1!==t.length)return t.push(""),t.join("/")},Ae=(e,t,n,r)=>(e=be(e,n))===(t=be(t,n))||!r&&Ee(e)===t&&"/teach/"!==t?ye.Exact:r&&Ee(e)===t?ye.Loose:ye.None;var we=e=>{let{activeClassName:t,children:n,className:a,data:o,href:i,partiallyActive:c,onClick:l,role:s}=e;return r.createElement(E.A,{onClick:l,className:a,to:o?(0,V.C)(o):i,activeClassName:t||D()(me,fe),partiallyActive:c,role:s},n)},ke="SecondaryNav-module--root--2e754",Te="SecondaryNav-module--bold--d69b6",Ne="SecondaryNav-module--secondaryNavRow--737f5",Ce="SecondaryNav-module--icon--f5306",Oe="SecondaryNav-module--secondaryNavLink--b2d9a",Le="SecondaryNav-module--secondaryNavContainer--992b8",Se="SecondaryNav-module--activeChildLink--35d1b",Pe="SecondaryNav-module--tertiaryLinkContainer--b12f5",De="SecondaryNav-module--tertiaryLinkOptions--a8382",xe="SecondaryNav-module--tertiaryLink--b3251";const Me=e=>{var t;let{secondaryLink:n,leafMatch:a}=e;const{0:o,1:i}=(0,r.useState)(!1),c=(0,r.useRef)(null),l=(0,r.useRef)(null);J(c,e=>{l.current&&e.target instanceof Node&&l.current.contains(e.target)||i(!1)});const s=null===(t=n.title)||void 0===t?void 0:t.toString().replace(/\s/g,"");return r.createElement("li",{className:Pe,onMouseLeave:()=>i(!1),role:"presentation"},r.createElement("button",{id:s+"-menubutton","aria-haspopup":"true","aria-controls":s+"-menu",className:D()(Oe,a&&a._key===n._key&&D()(Se,Te)),onClick:()=>i(e=>!e),onMouseEnter:()=>i(!0),ref:l,role:"menuitem"},r.createElement(L.A,{variant:"toolbarDefault"},n.title),r.createElement("img",{className:Ce,src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxOCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkgMTVMMTcuNjYwMyAwSDAuMzM5NzQ2TDkgMTVaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K",alt:""})),o&&r.createElement("ul",{id:s+"-menu",role:"menu","aria-labelledby":s+"-menubutton",className:De,ref:c},n.childLinks.map(e=>r.createElement("li",{key:e._key,role:"presentation"},r.createElement(we,{activeClassName:Te,data:e.internalLink,className:xe,role:"menuitem"},r.createElement(L.A,{"data-content":e.title,variant:"default"},e.title))))))};var Ie=e=>{let{items:t,leafMatch:n}=e;return r.createElement("div",{className:ke},r.createElement(b.mO,null,r.createElement(b.fI,{align:"center",justify:"center",className:Ne},r.createElement("ul",{className:Le,id:"secondary-menu",role:"menu"},(t||[]).map(e=>e.childLinks&&e.childLinks.length>0?r.createElement(Me,{key:e._key,secondaryLink:e,leafMatch:n}):r.createElement("li",{key:e._key,role:"presentation"},r.createElement(we,{activeClassName:D()(fe,Te),data:e.internalLink,className:D()(Oe,n&&n._key===e._key&&D()(Se,Te)),role:"menuitem"},r.createElement(L.A,{variant:"toolbarDefault"},e.title))))))))},je=n(2867),Re=n(3223),Fe="ToolBarNavDivider-module--root--94359",Be="ToolBarNavDivider-module--divider--df3be";var _e=e=>{let{className:t}=e;return r.createElement(r.Fragment,null,r.createElement("div",{className:D()(t,Fe)}),r.createElement(z.A,{className:Be}))};const He={ar:"Ø§ÙØ¹Ø±Ø¨ÙØ©",ca:"Català ",cs:"Äesky",cy:"Cymraeg",de:"Deutsch",en:"English","es-ES":"Español",fi:"Suomi",fr:"Français","ga-IE":"Gaeilge",he:"×¢×ר×ת",hr:"Hrvatski",hu:"Magyar",it:"Italiano",ja:"æ¥æ¬èª",ko:"íêµì´",lt:"Lietuvių",nl:"Nederlands",
2no:"Norwegian Bokmal",pl:"Polski","pt-PT":"Português (Portugal)","pt-BR":"Português (Brasil)",si:"à·à·à¶à·à¶½",sr:"ÑÑпÑки",sv:"Svenska",ta:"தமிழà¯","zh-CN":"ç®ä½ä¸æ","zh-HK":"ç¹é«ä¸æï¼é¦æ¸¯ï¼","zh-TW":"ç¹é«ä¸æï¼å°ç£ï¼"},ze=e=>{let{code:t}=e;return r.createElement("span",null,Ue(t))},Ue=e=>He[e||"en"]||e;var Ge="LanguageList-module--root--e4338";var We=r.forwardRef((e,t)=>{let{alternates:n,className:a,variant:o="toolbarDefaultLight",setShowLanguage:i}=e;const c="Help translate";return r.createElement("div",{ref:t,className:D()(Ge,a)},r.createElement("ul",null,i&&r.createElement(Qe,{onClick:()=>i(!1)}),n.filter(e=>!e.fallback).map(e=>{const{language:t,url:n}=e;return r.createElement("li",{key:t},r.createElement(E.A,{to:n},r.createElement(L.A,{"data-content":Ue(t),variant:o,as:"span"},r.createElement(ze,{code:t}))))}),r.createElement("li",{key:"info"},r.createElement(E.A,{to:"/translate/"},r.createElement(L.A,{"data-content":c,variant:o,as:"span"},c)))))}),Ze={root:"ToolbarRightNav-module--root--19d38",navContainer:"ToolbarRightNav-module--navContainer--b7cea",row:"ToolbarRightNav-module--row--5a2e9",parentActive:"ToolbarRightNav-module--parentActive--3e854",primaryLinkCol:"ToolbarRightNav-module--primaryLinkCol--ca26a",titleContainer:"ToolbarRightNav-module--titleContainer--6512e",secondaryLinkCol:"ToolbarRightNav-module--secondaryLinkCol--fbe16",tertiaryLinkCol:"ToolbarRightNav-module--tertiaryLinkCol--a7dcb",chevronIcon:"ToolbarRightNav-module--chevronIcon--e5a92",flipIcon:"ToolbarRightNav-module--flipIcon--fc503",rotateIcon:"ToolbarRightNav-module--rotateIcon--80eef",secondaryLinksRow:"ToolbarRightNav-module--secondaryLinksRow--d037b",tertiaryLinksRow:"ToolbarRightNav-module--tertiaryLinksRow--61feb",showMobileOnly:"ToolbarRightNav-module--showMobileOnly--7131f",newsDivider:"ToolbarRightNav-module--newsDivider--30995",showDesktopOnly:"ToolbarRightNav-module--showDesktopOnly--9b66d",hideMobileAndTablet:"ToolbarRightNav-module--hideMobileAndTablet--3afb5",showMobileAndTabletOnly:"ToolbarRightNav-module--showMobileAndTabletOnly--656e8",languages:"ToolbarRightNav-module--languages--a7666",mainMenuButton:"ToolbarRightNav-module--mainMenuButton--a8c13"},Ye=n(1595),Ve=n(6787),qe=n(280);const Ke=e=>{let{navItem:t,setExpandedItem:n,expandedItem:a,rootMatch:o,secondLevelMatch:i,thirdLevelMatch:c,isRtl:l}=e;return a&&a!==t?null:r.createElement("li",{key:t._key,className:D()(Ze.row,Ze.showMobileAndTabletOnly),role:"presentation"},r.createElement("div",{className:Ze.primaryLinkCol,role:"presentation"},t.internalLink&&r.createElement("div",{className:Ze.titleContainer,role:"presentation"},t.childLinks&&t.childLinks.length>0?r.createElement("button",{id:t.title+"-menubutton","aria-haspopup":"true","aria-controls":t.title+"-menu",role:"menuitem",onClick:()=>n(a===t?null:t)},r.createElement(L.A,{"data-content":t.title,className:D()(o&&t._key===o._key&&Ze.parentActive),variant:"toolbarDefault",as:"p"},t.title),r.createElement(Ve.A,{stroke:"#cd0365",className:D()(Ze.chevronIcon,a===t&&Ze.rotateIcon,l&&Ze.flip
2Icon)})):r.createElement(we,{data:t.internalLink,className:D()(o&&t._key===o._key&&Ze.parentActive),role:"menuitem"},r.createElement(L.A,{"data-content":t.title,variant:"toolbarDefault",as:"p"},t.title))),a&&a===t&&t.childLinks&&r.createElement("ul",{className:Ze.secondaryLinksRow,id:t.title+"-menu",role:"menu","aria-labelledby":t.title+"-menubutton"},t.childLinks.map(e=>r.createElement(Je,{key:e._key,navItem:e,expandedItem:a,secondLevelMatch:i,thirdLevelMatch:c})))))},Je=e=>{var t;let{navItem:n,expandedItem:a,secondLevelMatch:o,thirdLevelMatch:i}=e;const{0:c,1:l}=(0,r.useState)(Boolean(i&&(null===(t=n.childLinks)||void 0===t?void 0:t.includes(i))));(0,r.useEffect)(()=>{a||l(!1)},[a]);const s=(0,Ye.O)();return r.createElement("li",{key:n._key,className:Ze.secondaryLinkCol,role:"presentation"},n.childLinks&&n.childLinks.length>0?r.createElement(r.Fragment,null,r.createElement("button",{id:n.title+"-menubutton","aria-haspopup":"true","aria-controls":n.title+"-menu",role:"menuitem",onClick:()=>l(!c)},r.createElement(L.A,{"data-content":n.title,className:D()(i&&n.childLinks.includes(i)&&Ze.parentActive),variant:"toolbarDefaultLight",as:"p"},n.title),r.createElement(Ve.A,{stroke:"#cd0365",className:D()(Ze.chevronIcon,c&&Ze.rotateIcon,s&&Ze.flipIcon)})),c&&n.childLinks&&r.createElement("ul",{className:Ze.tertiaryLinksRow,id:n.title+"-menu",role:"menu","aria-labelledby":n.title+"-menubutton"},n.childLinks.map(e=>r.createElement("li",{key:e._key,className:Ze.tertiaryLinkCol,role:"presentation"},r.createElement(we,{className:D()(i&&e._key===i._key&&Ze.parentActive),key:e._key,data:e.internalLink,role:"menuitem"},r.createElement(L.A,{"data-content":e.title,variant:"toolbarDefaultLight"},e.title)))))):r.createElement(we,{key:n._key,data:n.internalLink,className:D()(o&&n._key===o._key&&Ze.parentActive),role:"menuitem"},r.createElement(L.A,{"data-content":n.title,variant:"toolbarDefaultLight"},n.title)))},Qe=e=>{let{onClick:t}=e;const n=(0,Y.A)().formatMessage({id:"main-menu",defaultMessage:"Main menu"}),a=(0,Ye.O)();return r.createElement(r.Fragment,null,r.createElement("li",{className:D()(Ze.showMobileAndTabletOnly,Ze.mainMenuLi),role:"presentation"},r.createElement("button",{className:D()(Ze.mainMenuButton),onClick:t,role:"menuitem"},r.createElement(qe.A,{stroke:"#cd0365",className:D()(Ze.chevronIcon,a&&Ze.flipIcon)}),r.createElement(L.A,{"data-content":n,variant:"toolbarDefault",as:"p"},n))),r.createElement(_e,{className:D()(Ze.divider,Ze.showMobileAndTabletOnly)}))};var Xe=e=>{let{alternates:t,navItems:n,showLanguage:a,setShowLanguage:o,firstLevelMatch:i,secondLevelMatch:c,thirdLevelMatch:l}=e;const{0:s,1:u}=(0,r.useState)(i&&i.childLinks&&i.childLinks.length?i:null),{userInfo:{status:d}}=(0,Re.As)(),f=new URLSearchParams({redirect:"undefined"!=typeof window?window.location.href:"https://microbit.org/"}),m=(0,Y.A)(),p=m.formatMessage({id:"language"}),v=m.formatMessage({id:"help-and-support"}),h=m.formatMessage({id:"safety",defaultMessage:"Safety"}),b=(0,Ye.O)();return r.createElement("div",{className:Ze.root},a&&r.createElement(We,{variant:"toolbarDefaultLight",className:D()(Ze.languages,Ze.showMobileAndTabletOnly),alternates:t,setShowLanguage:o}),r.createElement("ul",{className:D()(Ze.navContainer,{[Ze.hideMobileAndTablet]:a}),id:"main-menu",role:"menu","aria-labelledby":"main-menu-button"},s&&r.createElement(Qe,{onClick:()=>u(null)}),n.map(e=>r.createElement(r.Fragment,{key:e._key},r.createElement("li",{key:e._key,role:"presentation",className:D()(Ze.row,Ze.showDesktopOnly,Ze.primaryLinkCol)},e.internalLink&&r.createElement("div",{className:Ze.titleContainer,role:"presentation"},r.createElement(we,{data:e.internalLink,className:D()(i&&e._key===i._key&&Ze.parentActive),role:"menuitem"},r.createElement(L.A,{"data-content":e.title,variant:"toolbarDefault",as:"p"},e.title)))),r.createElement(Ke,{rootMatch:i,navItem:e,setExpandedItem:u,expandedItem:s,secondLevelMatch:c,thirdLevelMatch:l,isRtl:b}),e.showDivider&&r.createElement("div",{className:Ze.showDesktopOnly},r.createElement(_e,{className:D()(Ze.divider,Ze.showDesktopOnly)})),e.showDivider&&!s&&r.createElement("div",{className:Ze.showMobileAndTabletOnly},r.createElement(_e,{className:D()(Ze.divider,Ze.showMobileAndTabletOnly)}
2)))),je.A.loginDemo&&r.createElement("div",{key:"auth",className:Ze.row,style:{visibility:d===Re.a2.TBD?"hidden":"unset"},"aria-hidden":d===Re.a2.TBD},r.createElement("div",{className:Ze.primaryLinkCol},r.createElement("div",{className:Ze.titleContainer},r.createElement("a",{href:d===Re.a2.TBD?void 0:d===Re.a2.LOGGED_IN?"/api/v1/accounts/logout?"+f:"/api/v1/google/login?"+f,className:D()(i&&"auth"===i._key&&Ze.parentActive)},r.createElement(L.A,{variant:"toolbarDefault",as:"p"},d===Re.a2.LOGGED_IN?"Logout":"Login"))))),!s&&r.createElement("div",{className:Ze.showMobileAndTabletOnly},r.createElement(_e,{className:Ze.divider}),r.createElement("div",{className:Ze.minorNav},r.createElement("li",{className:Ze.secondaryLinkCol},r.createElement("button",{onClick:e=>{e.preventDefault(),o(!a)}},r.createElement(L.A,{"data-content":p,variant:"toolbarDefaultLight"},p))),r.createElement("li",{className:Ze.secondaryLinkCol},r.createElement(we,{href:"https://support.microbit.org"},r.createElement(L.A,{"data-content":v,variant:"toolbarDefaultLight"},v))),r.createElement(we,{href:"/get-started/user-guide/safety/"},r.createElement(L.A,{"data-content":h,variant:"toolbarDefaultLight"},h))))))},$e=n(8587);const et=["title"];var tt=e=>{let{title:t}=e,n=(0,$e.A)(e,et);const a="microbit-logo";return r.createElement("svg",Object.assign({role:"img","aria-labelledby":a,viewBox:"0 0 166.8 28.7",width:"166.8",height:"28.7"},n),t&&r.createElement("title",{id:a},t),r.createElement("path",{fill:"#fff",d:"M71.7 23.1h-3.3V14c0-2-1.2-3.5-2.8-3.5-1.6 0-2.8 1.4-2.8 3.5v9.1h-3.3V14c0-2.3-1.4-3.5-2.8-3.5-1.6 0-2.8 1.4-2.8 3.5v9.1h-3.3v-9c0-4.1 2.5-6.9 6.1-6.9 1.7 0 3.1.7 4.4 2.1 1.2-1.4 2.7-2.1 4.5-2.1 3.6 0 6 2.9 6 6.9v9zM77.7 23.1h-3.3V7.6h3.3v15.5zM76 5.3c-1.2
20-2.1-.9-2.1-2.1 0-1.2.9-2.1 2.1-2.1 1.2 0 2.1.9 2.1 2.1.1 1.2-.9 2.1-2.1 2.1zM88.1 23.5c-2.1 0-4.2-.9-5.7-2.4s-2.3-3.5-2.3-5.8c0-2.2.8-4.3 2.3-5.8C84 8.1 86 7.2 88.1 7.2c2.3 0 4.3.8 5.8 2.3l.4.4-2.3 2.4-.4-.4c-1.1-1-2.2-1.5-3.4-1.5-2.6 0-4.8 2.2-4.8 4.9s2.1 4.9 4.8 4.9c1.2 0 2.3-.5 3.4-1.4l.4-.4 2.4 2.3-.5.4c-1.8 1.6-3.7 2.4-5.8 2.4zM100.1 23.1h-3.5v-7.8c0-5 2.2-7.4 7-7.8l.7-.1v3.3l-.5.1c-2.6.3-3.6 1.5-3.6 4.3v8zM113.4 23.5c-2.1 0-4.2-.9-5.7-2.4s-2.3-3.6-2.3-5.8c0-2.2.8-4.2 2.3-5.8 1.5-1.6 3.5-2.4 5.7-2.4 2.1 0 4.1.9 5.6 2.4s2.3 3.6 2.3 5.8c0 2.2-.8 4.3-2.3 5.8-1.5 1.6-3.5 2.4-5.6 2.4zm-.1-13c-2.5 0-4.6 2.2-4.6 4.9s2.1 4.9 4.6 4.9c2.6 0 4.6-2.1 4.6-4.9.1-2.8-2-4.9-4.6-4.9zM126.8 23.1c-1.2 0-2.3-1-2.3-2.3 0-1.3 1-2.3 2.3-2.3 1.3 0 2.3 1 2.3 2.3-.1 1.3-1.1 2.3-2.3 2.3zM126.8 11.7c-1.2 0-2.3-1-2.3-2.3 0-1.3 1-2.3 2.3-2.3 1.3 0 2.3 1 2.3 2.3-.1 1.3-1.1 2.3-2.3 2.3zM140.2 23.5c-4.7 0-8-3.7-8-8.9V.2h3.3v8.5c1.4-1 3-1.5 4.7-1.5 2.1 0 4.1.8 5.6 2.4 1.5 1.5 2.3 3.6 2.3 5.8 0 2.2-.8 4.3-2.3 5.8-1.5 1.5-3.5 2.3-5.6 2.3zm0-13c-2.6 0-4.8 2.2-4.8 4.9s2.1 4.9 4.8 4.9c2.6 0 4.8-2.2 4.8-4.9-.1-2.7-2.2-4.9-4.8-4.9zM154.3 23.1H151V7.6h3.3v15.5zm-1.7-17.8c-1.2 0-2.1-.9-2.1-2.1 0-1.2.9-2.1 2.1-2.1 1.2 0 2.1.9 2.1 2.1.1 1.2-.9 2.1-2.1 2.1zM166.6 23.6l-.7-.1c-4.9-.9-6.7-3.3-6.7-8.6V11h-1.4V7.8h1.4V4.3h3.3v3.4h4.1v3.2h-4.1v4.4c0 2.9 1.1 4.4 3.6 4.7l.5.1v3.5z"}),r.createElement("g",{fill:"#fff"},r.createElement("path",{d:"M32.5 18c1.5 0 2.6-1.2 2.6-2.6s-1.2-2.6-2.6-2.6c-1.5 0-2.6 1.2-2.6 2.6s1.2 2.6 2.6 2.6M13.3 12.8c-1.5 0-2.6 1.2-2.6 2.6s1.2 2.6 2.6 2.6c1.4 0 2.6-1.2 2.6-2.6s-1.2-2.6-2.6-2.6"}),r.createElement("path",{d:"M13.3 7.6c-4.3 0-7.8 3.5-7.8 7.8s3.5 7.8 7.8 7.8h19.5c4.3 0 7.8-3.5 7.8-7.8s-3.5-7.8-7.8-7.8H13.3m19.5 20.8H13.3c-7.2 0-13-5.8-13-13s5.8-13 13-13h19.5c7.2 0 13 5.8 13 13s-5.9 13-13 13"})))},nt=n(4483);var rt=e=>{let{alternates:t,homePage:n,toolbar:a,isErrorPage:o}=e,i=(0,nt.a)();const c=(0,p.o)(),[l,s,u]=o?[]:((e,t,n)=>{const r=function(e,t,a){void 0===a&&(a=[]);for(const o of e){if(o.childLinks&&o.childLinks.length>0){const e=r(o.childLinks,t,[].concat((0,he.A)(a),[o]));if(e)return e}const e=ge(o);if(e)switch(Ae(e,t,n,!a.length)){case ye.Exact:return[].concat((0,he.A)(a),[o]);case ye.Loose:return[o];case ye.None:}}};for(let a=e;a;a=Ee(a)){const e=r(t,a);if(e)return e}return[]})(i,a,c),{0:d,1:f}=(0,r.useState)(!1),m=(0,Y.A)().formatMessage({id:"go-to-home-page"}),{0:v,1:h}=(0,r.useState)(!1);return r.createElement(r.Fragment,null,r.createElement(Z(),{active:v,focusTrapOptions:{escapeDeactivates:!1}},r.createElement(ue,{setFocusTrapActive:h,onMobileClose:()=>f(!1),logo:r.createElement(E.A,{style:{display:"flex"},to:(0,V.C)(n)},r.createElement(tt,{title:m})),right:[r.createElement(pe,{key:"toolBarNav",className:ve},r.createElement(Xe,{alternates:t,navItems:a,firstLevelMatch:l,secondLevelMatch:s,thirdLevelMatch:u,showLanguage:d,setShowLanguage:f}))]})),l&&l.childLinks&&l.childLinks.length>0&&r.createElement(Ie,{items:l.childLinks,leafMatch:s}))},at="LanguageMenu-module--root--b72ff",ot="LanguageMenu-module--showMenu--41bed",it="LanguageMenu-module--rotate--c52a3",ct="LanguageMenu-module--hideMenu--adc6e";var lt=e=>{let{buttonClassName:t,alternates:n}=e;const{0:a,1:o}=(0,r.useState)(!1),i=r.useRef(null),c=r.useRef(null);return J(c,e=>{i.current&&e.target instanceof Node&&i.current.contains(e.target)||o(!1)}),r.createElement("div",{className:D()(at)},r.createElement(j.A,{onClick:()=>o(!a),ref:i},r.createElement(L.A,{className:t,variant:"defaultLight",as:"span"},r.createElement(m.A,{id:"language",defaultMessage:"Language"})),r.createElement("img",{className:a?it:void 0,width:"14",height:"14",src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDE0IDE0Ij4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlPSIjNTc1NzU3IiBzdHJva2Utd2lkdGg9IjEuNSIgZD0iTTcuMjcgOS43MDRsNi4wNy01LjY3N2MtLjEyOC4xMi0uMTE2LjM1NS4wMTUuNDU4LjA2MS4wNDguMTIuMDQ2LjE4My0uMDEybC02LjI2OSA1Ljg2Mi02LjI2OC01Ljg2MmMuMDYyLjA1OC4xMjEuMDYuMTgzLjAxMi4xMy0uMTAzLjE0My0uMzM4LjAxNC0uNDU4TDcuMjcgOS43MDR6Ii8+Cjwvc3ZnPgo=",alt:""})),r.createElement(Z(),{active:a,focusTrapOptions:{allowOutsideClick:!0,onPostDeactivate:()=>o(!1)}},r.createElement(We,{alternates:n,ref:c,variant:"defaultLight",className:a?ot:ct})))},st={subHeader:"MinorNav-module--subHeader--11ade"};var ut=e=>{let{metadata:t}=e;return r.createElement("ul",{className:st.subHeader},r.createElement("li",null,r.createElement(lt,{buttonClassName:st.link,alternates:t.alternates})),r.createElement("li",null,r.createElement(E.A,{to:"https://support.microbit.org",className:st.link},r.createElement(L.A,{variant:"defaultLight",as:"span"},r.createElement(m.A,{id:"help-and-support",defaultMessage:"Help & support"})))),r.createElement("li",null,r.createElement(E.A,{to:"/get-started/user-guide/safety/",className:st.link},r.createElement(L.A,{variant:"defaultLight",as:"span"},r.createElement(m.A,{id:"safety",defaultMessage:"Safety"})))))},dt="SiteNav-module--toolBarRow--f1576",ft="SiteNav-module--toolBarCol--094ba",mt="SiteNav-module--subHeaderRow--a8a6e",pt="SiteNav-module--subHeaderCol--ba43b",vt="SiteNav-module--separatorRow--6ac4c";var ht=e=>{let{menus:t,metadata:n,isErrorPage:a}=e;const{homePage:o,toolbar:i}=t;return r.createElement("header",null,r.createElement("nav",null,r.createElement(y.A,null,r.createElement(b.fI,{className:mt},r.createElement(b.fv,{className:pt},r.createElement(ut,{metadata:n}))),r.createElement(b.fI,{className:vt},r.createElement(x,null))),r.createElement(b.fI,{className:dt},r.createElement(b.fv,{className:ft},r.createElement(rt,{alternates:n.alternates,homePage:o,toolbar:i,isErrorPage:a})))))}
2,bt=n(9871),gt="PageLayoutContent-module--skipNavLink--8c5d3",yt="PageLayoutContent-module--root--9e69b",Et="PageLayoutContent-module--content--e255f",At="PageLayoutContent-module--footer--99d31";var wt=e=>{let{children:t,metadata:n,menus:o,isErrorPage:i=!1}=e;(()=>{const e=(0,r.useCallback)(()=>{const e=window.scrollY,t=document.documentElement.scrollHeight,n=window.innerHeight;return Math.min((e+n)/t*100,100)},[]);let t=(0,r.useRef)(!1);const n=(0,r.useCallback)(()=>{if(t.current)return;t.current=!0;const e=window.gtag;e&&e("event","scroll",{percent_scrolled:90})},[]);(0,r.useEffect)(()=>{if(e()>=90)return n();let t=!1;const r=()=>{t||(requestAnimationFrame(()=>{e()>=90&&(n(),window.removeEventListener("scroll",r)),t=!1}),t=!0)};return window.addEventListener("scroll",r,{passive:!0}),()=>{window.removeEventListener("scroll",r)}},[e,n])})();const c=n.page.language||"en";return r.createElement(r.Fragment,null,r.createElement(bt.o,{metadata:n},r.createElement(a.m,{htmlAttributes:{lang:c,dir:kt(c)}}),r.createElement(d,{metadata:n}),r.createElement("div",{className:yt},r.createElement(f.p,{className:gt}),r.createElement(ht,{menus:o,metadata:n,isErrorPage:i}),r.createElement(f.E,null),r.createElement("div",{className:Et},t),r.createElement("div",{className:At},r.createElement(G,{menus:o})))))};const kt=e=>"ar"===e?"rtl":"ltr"},280:function(e,t,n){"use strict";var r=n(6540);t.A=e=>{let{className:t="",fill:n="none",stroke:a="#556C84",strokeWidth:o=1.5}=e;return r.createElement("svg",{viewBox:"0 0 12.5 25",className:t},r.createElement("path",{fill:n,stroke:a,strokeWidth:o,d:"M11.7 23.7L1.2 12.5 11.7 1.3c.1-.2.1-.3 0-.5-.1-.1-.1-.1-.1 0L.8 12.2c-.1.2-.1.4 0 .5l10.7 11.4h.1c.2 0 .2-.3.1-.4z"}))}},619:function(e,t,n){"use strict";n.d(t,{L3:function(){return o},LR:function(){return l},S9:function(){return d},as:function(){return u}});var r=n(6540);const a=(0,r.createContext)(void 0),o={type:"session",category:"essential",name:"sessionSettings",purpose:"Records which dialogs you've seen so we don't show them again during your session"},i={ga:{},custom:[{type:"local",category:"functional",name:"platform",purpose:"Records your choice of platform for pages that display different videos based on your device type and operating system"},{type:"local",category:"essential",name:"lastAudienceSurveyAnswered",purpose:"Remembers the last ad hoc survey you viewed to avoid asking you more than once"},{type:"local",category:"functional",name:"browserInfo",purpose:"Stores country/region information to avoid refetching it unnecessarily"},{type:"local",category:"essential",name:"playgroundSurveyPrompt",purpose:"Remembers whether you have interacted with the 'BBC micro:bit - the next gen' playground survey reminder notice to avoid showing it again"},o]},c=function(e){var t;let{userTriggered:n}=void 0===e?{userTriggered:!1}:e;null===(t=window.commonConsent)||void 0===t||t.show({userTriggered:n,config:i})},l=()=>c({userTriggered:!0});let s;const u=e=>{let{children:t}=e;const{0:n,1:o}=(0,r.useState)(s);return(0,r.useEffect)(()=>{const e=window,t=e=>{s=e.detail,o(e.detail)};return e.addEventListener("consentchange",t),s||(e.commonConsent?c():e.addEventListener("consentinit",c)),()=>{var n;e.removeEventListener("consentchange",t),e.removeEventListener("consentinit",c),null===(n=window.commonConsent)||void 0===n||n.hide()}},[]),r.createElement(a.Provider,{value:n},t)},d=()=>(0,r.useContext)(a)},648:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(8587),a=n(2485),o=n.n(a),i=n(6540),c=n(1326),l={h1:"Text-module--h1--08432",h2:"Text-module--h2--34413",h3:"Text-module--h3--56acd",h4:"Text-module--h4--c1875",default:"Text-module--default--665b1",defaultLight:"Text-module--defaultLight--99b43",defaultBold:"Text-module--defaultBold--2c819",defaultTiny:"Text-module--defaultTiny--4d027",blockquote:"Text-module--blockquote--fbfc0",subtitle:"Text-module--subtitle--b6a04",footerHeading:"Text-module--footerHeading--44342",footerDefault:"Text-module--footerDefault--4ef01",filterInfo:"Text-module--filterInfo--d6c59",filterHeading:"Text-module--filterHeading--29559",filter:"Text-module--filter--651fe",filterWhenSelected:"Text-module--filterWhenSelected--a06a0",filterWhenNotSelected:"Text-module--filterWhenNotSelected--1a75b",toolbarDefault:"Text-module--toolbarDefault--db043",toolbarDefaultBold:"Text-module--toolbarDefaultBold--35e86",toolbarDefaultLight:"Text-module--toolbarDefaultLight--1f9e4",toolbarWhenSelected:"Text-module--toolbarWhenSelected--63867",breadcrumb:"Text-module--breadcrumb--175b2",button:"Text-module--button--d8cb4",gutterBottom:"Text-module--gutterBottom--c88b3",black:"Text-module--black--4dcdf",deepPink:"Text-module--deep-pink--a1317",iris:"Text-module--iris--81cf1",white:"Text-module--white--dcd70"};const s=["children","style","className","color","as","gutterBottom","variant"],u={h1:"h1",h2:"h2",h3:"h3",h4:"h4",default:"p",defaultLight:"p",defaultBold:"p",defaultTiny:"p",blockquote:"span",footerHeading:"h3",footerDefault:"span",filterInfo:"span",filterHeading:"h4",filter:"span",filterWhenSelected:"span",filterWhenNotSelected:"span",toolbarWhenSelected:"span",mobileToolbarDefault:"span",toolbarDefault:"span",toolbarDefaultBold:"span",toolbarDefaultLight:"span",mobileToolbarWhenSelected:"span",mobileToolbarTertiary:"span",breadcrumb:"span",button:"span",subtitle:"p"};var d=e=>{const{children:t,style:n,className:a,color:d,as:f,gutterBottom:m=!1,variant:p}=e,v=(0,r.A)(e,s),h=f||u[p];return i.createElement(h,Object.assign({},v,(0,c.P)(e),{style:n,className:o()(d&&l[d],l[p],m&&l.gutterBottom,a)}),t)}},1032:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});const r=e=>e},1326:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});const r=e=>{const t={};return Object.keys(e).filter(e=>
2e.startsWith("data-")).forEach(n=>t[n]=e[n]),t}},1595:function(e,t,n){"use strict";n.d(t,{M:function(){return a},O:function(){return o}});var r=n(6540);const a=(0,r.createContext)(!1),o=()=>(0,r.useContext)(a)},1616:function(e,t,n){"use strict";n.d(t,{LQ:function(){return a},pn:function(){return i},yP:function(){return c}});var r=n(6540);let a;!function(e){e.ABOUT="About",e.ACCESSIBILITY="Accessibility",e.BUY="Buy",e.DESIGN_CHALLENGES="Design challenges",e.DO_YOUR_BIT="Do your :bit",e.GET_STARTED="Get started",e.HOME="Home",e.IMPACT="Impact",e.LESSONS="Lessons",e.MAKE_IT_CODE_IT="Make it: code it",e.NEWS="News",e.PLAYGROUND_ACTIVITY_CODING_GUIDES="Playground activity coding guides",e.PROJECTS="Projects",e.TEACH="Teach",e.UNKNOWN="Unknown"}(a||(a={}));const o=(0,r.createContext)({siteArea:a.UNKNOWN}),i=()=>(0,r.useContext)(o),c=e=>{let{siteArea:t,children:n}=e;return r.createElement(o.Provider,{value:{siteArea:t}},n)}},2098:function(e,t,n){"use strict";var r,a=n(6540),o=(r=a)&&"object"==typeof r&&"default"in r?r.default:r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=!("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 l,s=[];function u(){l=e(s.map(function(e){return e.props})),d.canUseDOM?t(l):n&&(l=n(l))}var d=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 l},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=l;return l=void 0,s=[],e};var i=a.prototype;return i.UNSAFE_componentWillMount=function(){s.push(this),u()},i.componentDidUpdate=function(){u()},i.componentWillUnmount=function(){var e=s.indexOf(this);s.splice(e,1),u()},i.render=function(){return o.createElement(r,this.props)},a}(a.PureComponent);return i(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),i(d,"canUseDOM",c),d}}},2441:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var r=n(8007);const a=()=>{const{site:e}=(0,r.GR)("277721441");return e.siteMetadata.social}},2485:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var i=a.apply(null,n);i&&e.push(i)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},2510:function(e){e.exports={siteUrlLanguageToHrefLang:e=>"hk"===e?"zh-HK":e}},2697:function(e,t,n){"use strict";n.r(t),n.d(t,{createFocusTrap:function(){return b}});var r=n(9054);function a(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},l=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()},s=function(e){return"Tab"===e.key||9===e.keyCode},u=function(e){return s(e)&&!e.shiftKey},d=function(e){return s(e)&&e.shiftKey},f=function(e){return setTimeout(e,0)},m=function(e,t){var n=-1;return e.every(function(e,r){return!t(e)||(n=r,!1)}),n},p=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},v=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},h=[],b=function(e,t){var n,a=(null==t?void 0:t.document)||document,i=(null==t?void 0:t.trapStack)||h,b=o({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:u,isKeyBackward:d},t),g={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},y=function(e,t,n){return e&&void 0!==e[t]?e[t]:b[n||t]},E=function(e){return g.containerGroups.findIndex(function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find(function(t){return t===e})})},A=function(e){var t=b[e];if("function"==typeof t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t=t.apply(void 0,r)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var i=t;if("string"==typeof t&&!(i=a.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return i},w=function(){var e=A("initialFocus");if(!1===e)return!1;if(void 0===e)if(E(a.activeElement)>=0)e=a.activeElement;else{var t=g.tabbableGroups[0];e=t&&t.firstTabbableNode||A("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},k=function(){if(g.containerGroups=g.containers.map(function(e){var t=(0,r.tabbable)(e,b.tabbableOptions),n=(0,r.focusable)(e,b.tabbableOptions);return{container:e,tabbableNodes:t,focusableNodes:n,firstTabbableNode:t.length>0?t[0]:null,lastTabbableNode:t.length>0?t[t.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=n.findIndex(function(t){return t===e});if(!(a<0))return t?n.slice(a+1).find(function(e){return(0,r.isTabbable)(e,b.tabbableOptions)}):n.slice(0,a).reverse().find(function(e){return(0,r.isTabbable)(e,b.tabbableOptions)})}}}),g.tabbableGroups=g.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),g.tabbableGroups.length<=0&&!A("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},T=function e(t){!1!==t&&t!==a.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!b.preventScroll}),g.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(w()))},N=function(e){var t=A("setReturnFocus",e);return t||!1!==t&&e},C=function(e){var t=v(e);E(t)>=0||(p(b.clickOutsideDeactivates,e)?n.deactivate({returnFocus:b.returnFocusOnDeactivate}):p(b.allowOutsideClick,e)||e.preventDefault())},O=function(e){var t=v(e),n=E(t)>=0;n||t instanceof Document?n&&(g.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),T(g.mostRecentlyFocusedNode||w())
2)},L=function(e){if(!(t=e,"Escape"!==t.key&&"Esc"!==t.key&&27!==t.keyCode||!1===p(b.escapeDeactivates,e)))return e.preventDefault(),void n.deactivate();var t;(b.isKeyForward(e)||b.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=v(e);k();var a=null;if(g.tabbableGroups.length>0){var o=E(n),i=o>=0?g.containerGroups[o]:void 0;if(o<0)a=t?g.tabbableGroups[g.tabbableGroups.length-1].lastTabbableNode:g.tabbableGroups[0].firstTabbableNode;else if(t){var c=m(g.tabbableGroups,function(e){var t=e.firstTabbableNode;return n===t});if(c<0&&(i.container===n||(0,r.isFocusable)(n,b.tabbableOptions)&&!(0,r.isTabbable)(n,b.tabbableOptions)&&!i.nextTabbableNode(n,!1))&&(c=o),c>=0){var l=0===c?g.tabbableGroups.length-1:c-1;a=g.tabbableGroups[l].lastTabbableNode}else s(e)||(a=i.nextTabbableNode(n,!1))}else{var u=m(g.tabbableGroups,function(e){var t=e.lastTabbableNode;return n===t});if(u<0&&(i.container===n||(0,r.isFocusable)(n,b.tabbableOptions)&&!(0,r.isTabbable)(n,b.tabbableOptions)&&!i.nextTabbableNode(n))&&(u=o),u>=0){var d=u===g.tabbableGroups.length-1?0:u+1;a=g.tabbableGroups[d].firstTabbableNode}else s(e)||(a=i.nextTabbableNode(n))}}else a=A("fallbackFocus");a&&(s(e)&&e.preventDefault(),T(a))}(e,b.isKeyBackward(e))},S=function(e){var t=v(e);E(t)>=0||p(b.clickOutsideDeactivates,e)||p(b.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},P=function(){if(g.active)return c(i,n),g.delayInitialFocusTimer=b.delayInitialFocus?f(function(){T(w())}):T(w()),a.addEventListener("focusin",O,!0),a.addEventListener("mousedown",C,{capture:!0,passive:!1}),a.addEventListener("touchstart",C,{capture:!0,passive:!1}),a.addEventListener("click",S,{capture:!0,passive:!1}),a.addEventListener("keydown",L,{capture:!0,passive:!1}),n},D=function(){if(g.active)return a.removeEventListener("focusin",O,!0),a.removeEventListener("mousedown",C,!0),a.removeEventListener("touchstart",C,!0),a.removeEventListener("click",S,!0),a.removeEventListener("keydown",L,!0),n};return(n={get active(){return g.active},get paused(){return g.paused},activate:function(e){if(g.active)return this;var t=y(e,"onActivate"),n=y(e,"onPostActivate"),r=y(e,"checkCanFocusTrap");r||k(),g.active=!0,g.paused=!1,g.nodeFocusedBeforeActivation=a.activeElement,null==t||t();var o=function(){r&&k(),P(),null==n||n()};return r?(r(g.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!g.active)return this;var t=o({onDeactivate:b.onDeactivate,onPostDeactivate:b.onPostDeactivate,checkCanReturnFocus:b.checkCanReturnFocus},e);clearTimeout(g.delayInitialFocusTimer),g.delayInitialFocusTimer=void 0,D(),g.active=!1,g.paused=!1,l(i,n);var r=y(t,"onDeactivate"),a=y(t,"onPostDeactivate"),c=y(t,"checkCanReturnFocus"),s=y(t,"returnFocus","returnFocusOnDeactivate");null==r||r();var u=function(){f(function(){s&&T(N(g.nodeFocusedBeforeActivation)),null==a||a()})};return s&&c?(c(N(g.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(e){if(g.paused||!g.active)return this;var t=y(e,"onPause"),n=y(e,"onPostPause");return g.paused=!0,null==t||t(),D(),null==n||n(),this},unpause:function(e){if(!g.paused||!g.active)return this;var t=y(e,"onUnpause"),n=y(e,"onPostUnpause");return g.paused=!1,null==t||t(),k(),P(),null==n||n(),this}
2,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return g.containers=t.map(function(e){return"string"==typeof e?a.querySelector(e):e}),g.active&&k(),this}}).updateContainerElements(e),n}},2739:function(e,t,n){"use strict";n.d(t,{AU:function(){return a},Bd:function(){return o},on:function(){return r}});function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var o="undefined"!=typeof window},2986:function(e,t,n){"use strict";var r=n(6540);t.A=e=>{let{className:t,fill:n="none",height:a=30,width:o=30,stroke:i}=e;return r.createElement("svg",{width:o,height:a,viewBox:"0 0 18 18",className:t},r.createElement("path",{fill:n,stroke:i,strokeWidth:1,d:"M9 8.64L.315 17.324a.255.255 0 01.36.36L17.685.675a.255.255 0 01-.36-.36L9 8.639.675.315a.255.255 0 01-.36.36l17.01 17.01a.255.255 0 01.36-.36L9 8.639z"}))}},3038:function(e,t,n){"use strict";n.d(t,{o:function(){return o},s:function(){return a}});var r=n(6540);const a=(0,r.createContext)("language"),o=()=>(0,r.useContext)(a)},3055:function(e,t,n){"use strict";function r(e,t){var n;const r="https://cdn.sanity.io/"+e.path,o=null===(n=a(e,t))||void 0===n?void 0:n.replace(/micro:bit/g,"microbit");return o?null!=t&&t.showInline?r+"/"+encodeURIComponent(o):r+"?dl="+encodeURIComponent(o):r}n.d(t,{I:function(){return r}});const a=(e,t)=>{const{originalFilename:n}=e,{overrideFilename:r}=t||{};return r?r+"."+e.extension:n}},3307:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(8587),a=n(6540),o=n(2485),i=n.n(o),c="PlainButton-module--root--61d80",l="PlainButton-module--childrenContainer--85137",s="PlainButton-module--disabled--16e9c";const u=["children","className","disabled","renderLeft","renderRight","type"];var d=a.forwardRef((e,t)=>{let{children:n,className:o,disabled:d,renderLeft:f,renderRight:m,type:p="button"}=e,v=(0,r.A)(e,u);return a.createElement("button",Object.assign({ref:t,type:p,className:i()(c,{[""+s]:d},o),disabled:d},v),a.createElement("div",{className:l},f,n,m))})},3360:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var r=n(6540),a=n(3038),o=n(9715),i=n(3055),c=n(9846);const l=function(e,t,n,r,a){if(void 0===a&&(a=void 0),e&&"genericDownload"===e._type){var c,l,s;const t=e,n=r&&"en"!==r?null===(c=t.alternatives)||void 0===c?void 0:c.find(e=>e.language===r):void 0,a=null!==(l=null==n||null===(s=n.file)||void 0===s?void 0:s.asset)&&void 0!==l?l:t.file.asset;return(0,i.I)(a,{overrideFilename:t.name,showInline:t.showInline})}const u=(t?"?"+t:"")+(n?"#"+n:"");if(e){var d;const t=(0,o.C)(e);return""+(t.split("#")[0]===(null===(d=a)||void 0===d?void 0:d.split("#")[0])?"":t)+u}return u};t.A=e=>{let{children:t,className:n,style:o,reference:i,query:s,fragment:u}=e;const d=(0,a.o)(),f=l(i,s,u,d);return f?r.createElement(c.A,{style:o,className:n,to:f},t):r.createElement(r.Fragment,null,t)}},3369:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var r=n(8007);const a=()=>{const{site:e}=(0,r.GR)("34345056");return{url:e.siteMetadata.siteUrl,makecodeVersion:e.siteMetadata.makecodeVersion}}},3972:function(e,t,n){"use strict";n.d(t,{H:function(){return i},d:function(){return o}});var r=n(6540);const a=(0,r.createContext)(void 0),o=e=>{let{location:t,children:n}=e;return r.createElement(a.Provider,{value:t},n)},i=()=>{const e=(0,r.useContext)(a);if(!e)throw new Error("LocationProvider must be used to rely on useGatsbyLocation.");return e}},4072:function(e,t,n){"use strict";var r=n(6540);t.A=e=>{let{className:t,fill:n,height:a=30,width:o=30}=e;return r.createElement("svg",{width:o,height:a,viewBox:"0 0 30 30",className:t},r.createElement("path",{fill:n,d:"M28.734 0H1.266A1.26 1.26 0 000 1.266V28.78C0 29.438.563 30 1.266 30H28.78a1.26 1.26 0 001.266-1.266V1.266C30 .562 29.437 0 28.734 0zM8.906 25.547H4.453V11.25h4.453v14.297zM6.656 9.28a2.601 2.601 0 01-2.578-2.578 2.601 2.601 0 012.578-2.578 2.601 2.601 0 012.578 2.578A2.542 2.542 0 016.656 9.28zm18.89 16.266h-4.452v-6.938c0-1.64-.047-3.797-2.297-3.797-2.297 0-2.672 1.829-2.672 3.657v7.078h-4.453V11.25h4.265v1.969h.047c.61-1.125 2.063-2.297 4.22-2.297 4.5 0 5.343 2.953 5.343 6.797v7.828z"}))}},4483:function(e,t,n){"use strict";n.d(t,{a:function(){return o}});var r=n(8007),a=n(3972);const o=()=>{const{pathname:e}=(0,a.H)();return(e=>{const t=(0,r.Fe)("");return e.replace(t,"/")})(e)}},4662:function(e,t,n){"use strict";var r=n(6540);t.A=e=>{let{className:t,fill:n,height:a=30,width:o=30}=e;return r.createElement("svg",{width:o,height:a,viewBox:"0 0 30 30",className:t},r.createElement("path",{fill:n,d:"M27.792 0H1.208C.541 0 0 .541 0 1.208v26.584C0 28.459.541 29 1.208 29H15.49V17.7
27h-3.78v-4.377h3.78v-3.228c0-3.745 2.288-5.785 5.629-5.785 1.6 0 2.976.12 3.377.172v3.915l-2.317.001c-1.818 0-2.17.864-2.17 2.13v2.795h4.334l-.564 4.377h-3.77V29h7.783c.667 0 1.208-.541 1.208-1.208V1.208C29 .541 28.459 0 27.792 0z"}))}},4708:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,a=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}(this,n)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function s(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}var u=n(6540),d=n(5556),f=n(2697).createFocusTrap,m=n(9054).isFocusable,p=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(d,e);var t,n,r,l=i(d);function d(e){var t,n,r,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),t=l.call(this,e),n=c(t),a=function(e){var t,n=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof n){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];n=n.apply(void 0,a)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var i,c=n;if("string"==typeof n&&!(c=null===(i=this.getDocument())||void 0===i?void 0:i.querySelector(n)))throw new Error("`".concat(e,"` as selector refers to no known node"));return c},(r=s(r="getNodeForOption"))in n?Object.defineProperty(n,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[r]=a,t.handleDeactivate=t.handleDeactivate.bind(c(t)),t.handlePostDeactivate=t.handlePostDeactivate.bind(c(t)),t.handleClickOutsideDeactivates=t.handleClickOutsideDeactivates.bind(c(t)),t.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:t.handleDeactivate,onPostDeactivate:t.handlePostDeactivate,clickOutsideDeactivates:t.handleClickOutsideDeactivates},t.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var o=e.focusTrapOptions;for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&("returnFocusOnDeactivate"!==i&&"onDeactivate"!==i&&"onPostDeactivate"!==i&&"checkCanReturnFocus"!==i&&"clickOutsideDeactivates"!==i?t.internalOptions[i]=o[i]:t.originalOptions[i]=o[i]);return t.outsideClick=null,t.focusTrapElements=e.containerElements||[],t.updatePreviousElement(),t}return t=d,(n=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!(!e.originalOptions.returnFocusOnDeactivate||null==t||!t.focus||e.outsideClick&&(!e.outsideClick.allowDeactivation||m(e.outsideClick.target,e.internalOptions.tabbableOptions))),r=e.internalOptions.preventScroll,a=void 0!==r&&r;
2n&&t.focus({preventScroll:a}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,r=!e.paused&&this.props.paused,a=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();r&&this.focusTrap.pause(),a&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?u.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===u.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return u.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(u.Component),v="undefined"==typeof Element?Function:Element;p.propTypes={active:d.bool,paused:d.bool,focusTrapOptions:d.shape({document:d.object,onActivate:d.func,onPostActivate:d.func,checkCanFocusTrap:d.func,onPause:d.func,onPostPause:d.func,onUnpause:d.func,onPostUnpause:d.func,onDeactivate:d.func,onPostDeactivate:d.func,checkCanReturnFocus:d.func,initialFocus:d.oneOfType([d.instanceOf(v),d.string,d.bool,d.func]),fallbackFocus:d.oneOfType([d.instanceOf(v),d.string,d.func]),escapeDeactivates:d.oneOfType([d.bool,d.func]),clickOutsideDeactivates:d.oneOfType([d.bool,d.func]),returnFocusOnDeactivate:d.bool,setReturnFocus:d.oneOfType([d.instanceOf(v),d.string,d.bool,d.func]),allowOutsideClick:d.oneOfType([d.bool,d.func]),preventScroll:d.bool,tabbableOptions:d.shape({displayCheck:d.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:d.oneOfType([d.bool,d.func])}),trapStack:d.array,isKeyForward:d.func,isKeyBackward:d.func}),containerElements:d.arrayOf(d.instanceOf(v)),children:d.oneOfType([d.element,d.instanceOf(v)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:f},e.exports=p},4984:function(e,t,n){"use strict";var r=n(8651),a=n(9846);const o=(0,r.A)(a.A,"AnchorButton");t.A=o},5019:function(e,t,n){var r="[object Symbol]",a=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
27f]/g,i="\\ud800-\\udfff",c="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",s="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",d="['â]",f="["+u+"]",m="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",p="\\d+",v="["+c+"]",h="["+l+"]",b="[^"+i+u+p+c+l+s+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",E="["+s+"]",A="(?:"+h+"|"+b+")",w="(?:"+E+"|"+b+")",k="(?:['â](?:d|ll|m|re|s|t|ve))?",T="(?:['â](?:D|LL|M|RE|S|T|VE))?",N="(?:"+m+"|\\ud83c[\\udffb-\\udfff])"+"?",C="[\\ufe0e\\ufe0f]?",O=C+N+("(?:\\u200d(?:"+["[^"+i+"]",g,y].join("|")+")"+C+N+")*"),L="(?:"+[v,g,y].join("|")+")"+O,S=RegExp(d,"g"),P=RegExp(m,"g"),D=RegExp([E+"?"+h+"+"+k+"(?="+[f,E,"$"].join("|")+")",w+"+"+T+"(?="+[f,E+A,"$"].join("|")+")",E+"?"+A+"+"+k,E+"+"+T,p,L].join("|"),"g"),x=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,M="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,I="object"==typeof self&&self&&self.Object===Object&&self,j=M||I||Function("return this")();var R,F=(R={"Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã
":"A","à ":"a","á":"a","â":"a","ã":"a","ä":"a","Ã¥":"a","Ã":"C","ç":"c","Ã":"D","ð":"d","Ã":"E","Ã":"E","Ã":"E","Ã":"E","è":"e","é":"e","ê":"e","ë":"e","Ã":"I","Ã":"I","Ã":"I","Ã":"I","ì":"i","Ã":"i","î":"i","ï":"i","Ã":"N","ñ":"n","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ã":"U","Ã":"U","Ã":"U","Ã":"U","ù":"u","ú":"u","û":"u","ü":"u","Ã":"Y","ý":"y","ÿ":"y","Ã":"Ae","æ":"ae","Ã":"Th","þ":"th","Ã":"ss","Ä":"A","Ä":"A","Ä":"A","Ä":"a","Ä":"a","Ä
":"a","Ä":"C","Ä":"C","Ä":"C","Ä":"C","Ä":"c","Ä":"c","Ä":"c","Ä":"c","Ä":"D","Ä":"D","Ä":"d","Ä":"d","Ä":"E","Ä":"E","Ä":"E","Ä":"E","Ä":"E","Ä":"e","Ä":"e","Ä":"e","Ä":"e","Ä":"e","Ä":"G","Ä":"G","Ä ":"G","Ä¢":"G","Ä":"g","Ä":"g","Ä¡":"g","Ä£":"g","Ĥ":"H","Ħ":"H","Ä¥":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Ä®":"I","İ":"I","Ä©":"i","Ä«":"i","Ä":"i","į":"i","ı":"i","Ä´":"J","ĵ":"j","Ķ":"K","Ä·":"k","ĸ":"k","Ĺ":"L","Ä»":"L","Ľ":"L","Ä¿":"L","Å":"L","ĺ":"l","ļ":"l","ľ":"l","Å":"l","Å":"l","Å":"N","Å
":"N","Å":"N","Å":"N","Å":"n","Å":"n","Å":"n","Å":"n","Å":"O","Å":"O","Å":"O","Å":"o","Å":"o","Å":"o","Å":"R","Å":"R","Å":"R","Å":"r","Å":"r","Å":"r","Å":"S","Å":"S","Å":"S","Å ":"S","Å":"s","Å":"s","Å":"s","Å¡":"s","Å¢":"T","Ť":"T","Ŧ":"T","Å£":"t","Å¥":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Å®":"U","Ű":"U","Ų":"U","Å©":"u","Å«":"u","Å":"u","ů":"u","ű":"u","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","Å»":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Å":"Oe","Å":"oe","Å":"'n","Å¿":"ss"},function(e){return null==R?void 0:R[e]});var B=Object.prototype.toString,_=j.Symbol,H=_?_.prototype:void 0,z=H?H.toString:void 0;function U(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&B.call(e)==r}(e))return z?z.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function G(e){return null==e?"":U(e)}var W,Z=(W=function(e,t,n){return e+(n?"-":"")+t.toLowerCase()},function(e){return function(e,t,n,r){var a=-1,o=e?e.length:0;for(r&&o&&(n=e[++a]);++a<o;)n=t(n,e[a],a,e);return n}(function(e,t,n){return e=G(e),void 0===(t=n?void 0:t)?function(e){return x.test(e)}(e)?function(e){return e.match(D)||[]}(e):function(e){return e.match(a)||[]}(e):e.match(t)||[]}(function(e){return(e=G(e))&&e.replace(o,F).replace(P,"")}(e).replace(S,"")),W,"")});e.exports=Z},5133:function(e,t,n){"use strict";n.d(t,{fv:function(){return w},fI:function(){return y},mO:function(){return T}});var r=n(8587),a=n(2485),o=n.n(a),i=n(6540),c=n(1326),l="Row-module--textLeft--0da9a",s="Row-module--textCenter--41bb4",u="Row-module--textRight--e82c9",d="Row-module--around--fb556",f="Row-module--between--5f96c",m="Row-module--baseline--1c6d2",p="Row-module--center--e5451",v="Row-module--top--81a39",h="Row-module--middle--80800",b="Row-module--bottom--afcf6";const g=["align","children","className","justify","style","valign"];var y=e=>{const{align:t,children:n,className:a,justify:y,style:E,valign:A}=e,w=(0,r.A)(e,g),k=o()("row",a,"left"===t&&l,"center"===t&&s,"right"===t&&u,"around"===y&&d,"between"===y&&f,"baseline"===y&&m,"center"===y&&p,"top"===A&&v,"middle"===A&&h,"bottom"===A&&b);return i.createElement("div",Object.assign({},(0,c.P)(e),{className:k,style:E},w),n)},E="Col-module--colSmOffset0--23fb8",A="Col-module--colMdOffset0--5b966";var w=e=>{const{children:t,className:n,as:r="div",md:a,offsetXs:l,offsetSm:s,offsetMd:u,sm:d,lg:f,xs:m="auto"}
2=e,p=o()(n,l&&"col-xs-offset-"+l,s&&"col-sm-offset-"+s,"number"==typeof s&&0===s&&E,u&&"col-md-offset-"+u,"number"==typeof u&&0===u&&A,m&&"col-xs-"+m,m&&"auto"===m&&"col-xs",d&&"col-sm-"+d,d&&"auto"===d&&"col-sm",a&&"col-md-"+a,a&&"auto"===a&&"col-md",f&&"col-lg-"+f,f&&"auto"===f&&"col-lg");return i.createElement(r,Object.assign({},(0,c.P)(e),{className:p}),t)},k="Wrapper-module--wrapper--f5573";var T=e=>{const{children:t,className:n,style:r}=e,a=o()("wrapper","container-fluid",k,n);return i.createElement("div",Object.assign({},(0,c.P)(e),{style:r,className:a}),t)}},6631:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(2485),a=n.n(r),o=n(6540),i={root:"Divider-module--root--51e91",customSpacing:"Divider-module--customSpacing--bf522"};var c=e=>{let{className:t,useCustomMargin:n=!0}=e;return o.createElement("hr",{className:a()(i.root,t,n&&i.customMargin),"aria-hidden":!0})}},6787:function(e,t,n){"use strict";var r=n(6540);t.A=e=>{let{className:t="",fill:n="none",stroke:a="#556C84",strokeWidth:o=1.5}=e;return r.createElement("svg",{viewBox:"0 0 12.5 25",className:t},r.createElement("path",{fill:n,stroke:a,strokeWidth:o,d:"M.84 1.3l10.47 11.2L.84 23.7a.44.44 0 000 .5c.06.06.08.06.13 0l10.69-11.44a.42.42 0 000-.52L.95.79C.95.74.88.74.82.79a.44.44 0 00.02.51z"}))}},6851:function(){},7440:function(e,t,n){"use strict";n.d(t,{$:function(){return l},A:function(){return u}});var r=n(2485),a=n.n(r),o=n(6540),i=n(5133),c="Spacing-module--root--55eb5";const l=e=>o.createElement(s,null,o.createElement(i.fv,e)),s=e=>{let{children:t}=e;return o.cloneElement(t,{className:a()(c,t.props.className)})};var u=s},7591:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(6540),a="IsDesktop-module--isDesktop--5c46b",o=n(2485),i=n.n(o);var c=e=>{let{children:t}=e;return r.createElement(r.Fragment,null,t&&r.Children.map(t,e=>r.cloneElement(e,{className:i()(a,e.props.className)})))}},7628:function(e,t,n){"use strict";n.d(t,{Ay:function(){return d},Pf:function(){return u}});var r=n(6540),a=n(619);const o=()=>{try{return window.localStorage}catch(e){return}},i=()=>{try{return window.sessionStorage}catch(e){return}},c={device:void 0,getCodingDevicePrompt:!1,gettingStartedReadyPrompt:!1},l=()=>c,s=(0,r.createContext)(void 0),u=()=>{const e=(0,r.useContext)(s);if(!e)throw new Error("Missing provider");return e};var d=e=>{let{children:t}=e;const n=function(e,t){let{type:n,category:c,name:l}=e;if("cookie"===n)throw new Error("Type 'cookie' cannot be used for local or session storage.");const s=(0,a.S9)(),{0:u,1:d}=(0,r.useState)(()=>{const e="local"===n?o():i(),r=e?e.getItem(l):null;if(null!==r)try{return JSON.parse(r)}catch(a){return t()}return t()}),f=(0,r.useMemo)(()=>!!s&&("essential"===c||s[c]),[c,s]);return[u,(0,r.useCallback)(e=>{const t=f?"local"===n?o():i():void 0;t&&t.setItem(l,JSON.stringify(e)),d(e)},[f,l,n])]}(a.L3,l);return r.createElement(s.Provider,{value:n},t)}},8154:function(e,t,n){"use strict";n.d(t,{m:function(){return me}});var r,a,o,i,c=n(5556),l=n.n(c),s=n(2098),u=n.n(s),d=n(115),f=n.n(d),m=n(6540),p=n(8828),v=n.n(p),h="bodyAttributes",b="htmlAttributes",g="titleAttributes",y={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},E=(Object.keys(y).map(function(e){return y[e]}),"charset"),A="cssText",w="href",k="http-equiv",T="innerHTML",N="itemprop",C="name",O="property",L="rel",S="src",P="target",D={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},x="defaultTitle",M="defer",I="encodeSpecialCharacters",j="onChangeClientState",R="titleTemplate",F=Object.keys(D).reduce(function(e,t){return e[D[t]]=t,e},{}),B=[y.NOSCRIPT,y.SCRIPT,y.STYLE],_="data-react-helmet",H="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},z=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),U=Object.assign||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},G=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},W=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,""").replace(/'/g,"'")},Z=function(e){var t=J(e,y.TITLE),n=J(e,R);if(n&&t)return n.replace(/%s/g,function(){return Array.isArray(t)?t.join(""):t});var r=J(e,x);return t||r||void 0},Y=function(e){return J(e,j)||function(){}},V=function(e,t){return t.filter(function(t){return void 0!==t[e]}).map(function(t){return t[e]}).reduce(function(e,t){return U({},e,t)},{})},q=function(e,t){return t.filter(function(e){return void 0!==e[y.BASE]}).map(function(e){return e[y.BASE]}).reverse().reduce(function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t},[])},K=function(e,t,n){var r={};return n.filter(function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&te("Helmet: "+e+' should be of type "Array". Instead found type "'+H(t[e])+'"'),!1)}).map(function(t){return t[e]}).reverse().reduce(function(e,n){var a={};n.filter(function(e){for(var n=void 0,o=Object.keys(e),i=0;i<o.length;i++){var c=o[i],l=c.toLowerCase();-1===t.indexOf(l)||n===L&&"canonical"===e[n].toLowerCase()||l===L&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(c)||c!==T&&c!==A&&c!==N||(n=c)}if(!n||!e[n])return!1;var s=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][s]&&(a[n][s]=!0,!0)}
2).reverse().forEach(function(t){return e.push(t)});for(var o=Object.keys(a),i=0;i<o.length;i++){var c=o[i],l=v()({},r[c],a[c]);r[c]=l}return e},[]).reverse()},J=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},Q=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout(function(){Q(e)},0)}),X=function(e){return clearTimeout(e)},$="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Q:n.g.requestAnimationFrame||Q,ee="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||X:n.g.cancelAnimationFrame||X,te=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ne=null,re=function(e,t){var n=e.baseTag,r=e.bodyAttributes,a=e.htmlAttributes,o=e.linkTags,i=e.metaTags,c=e.noscriptTags,l=e.onChangeClientState,s=e.scriptTags,u=e.styleTags,d=e.title,f=e.titleAttributes;ie(y.BODY,r),ie(y.HTML,a),oe(d,f);var m={baseTag:ce(y.BASE,n),linkTags:ce(y.LINK,o),metaTags:ce(y.META,i),noscriptTags:ce(y.NOSCRIPT,c),scriptTags:ce(y.SCRIPT,s),styleTags:ce(y.STYLE,u)},p={},v={};Object.keys(m).forEach(function(e){var t=m[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(v[e]=m[e].oldTags)}),t&&t(),l(e,p,v)},ae=function(e){return Array.isArray(e)?e.join(""):e},oe=function(e,t){void 0!==e&&document.title!==e&&(document.title=ae(e)),ie(y.TITLE,t)},ie=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(_),a=r?r.split(","):[],o=[].concat(a),i=Object.keys(t),c=0;c<i.length;c++){var l=i[c],s=t[l]||"";n.getAttribute(l)!==s&&n.setAttribute(l,s),-1===a.indexOf(l)&&a.push(l);var u=o.indexOf(l);-1!==u&&o.splice(u,1)}for(var d=o.length-1;d>=0;d--)n.removeAttribute(o[d]);a.length===o.length?n.removeAttribute(_):n.getAttribute(_)!==i.join(",")&&n.setAttribute(_,i.join(","))}},ce=function(e,t){var n=document.head||document.querySelector(y.HEAD),r=n.querySelectorAll(e+"["+_+"]"),a=Array.prototype.slice.call(r),o=[],i=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===T)n.innerHTML=t.innerHTML;else if(r===A)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var c=void 0===t[r]?"":t[r];n.setAttribute(r,c)}n.setAttribute(_,"true"),a.some(function(e,t){return i=t,n.isEqualNode(e)})?a.splice(i,1):o.push(n)}),a.forEach(function(e){return e.parentNode.removeChild(e)}),o.forEach(function(e){return n.appendChild(e)}),{oldTags:a,newTags:o}},le=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},"")},se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(t,n){return t[D[n]||n]=e[n],t},t)},ue=function(e,t,n){switch(e){case y.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[_]=!0,a=se(n,r),[m.createElement(y.TITLE,a,e)];var e,n,r,a},toString:function(){return function(e,t,n,r){var a=le(n),o=ae(t);return a?"<"+e+" "+_+'="true" '+a+">"+W(o,r)+"</"+e+">":"<"+e+" "+_+'="true">'+W(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case h:case b:return{toComponent:function(){return se(t)},toString:function(){return le(t)}};default:return{toComponent:function(){return function(e,t){return t.map(function(t,n){var r,a=((r={key:n})[_]=!0,r);return Object.keys(t).forEach(function(e){var n=D[e]||e;if(n===T||n===A){var r=t.innerHTML||t.cssText;a.dangerouslySetInnerHTML={__html:r}}else a[n]=t[e]}),m.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===T||e===A)}).reduce(function(e,t){var a=void 0===r[t]?t:t+'="'+W(r[t],n)+'"';return e?e+" "+a:a},""),o=r.innerHTML||r.cssText||"",i=-1===B.indexOf(e);return t+"<"+e+" "+_+'="true" '+a+(i?"/>":">"+o+"</"+e+">")},"")}(e,t,n)}}}},de=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,o=e.linkTags,i=e.metaTags,c=e.noscriptTags,l=e.scriptTags,s=e.styleTags,u=e.title,d=void 0===u?"":u,f=e.titleAttributes;return{base:ue(y.BASE,t,r),bodyAttributes:ue(h,n,r),htmlAttributes:ue(b,a,r),link:ue(y.LINK,o,r),meta:ue(y.META,i,r),noscript:ue(y.NOSCRIPT,c,r),script:ue(y.SCRIPT,l,r),style:ue(y.STYLE,s,r),title:ue(y.TITLE,{title:d,titleAttributes:f},r)}},fe=u()(function(e){return{baseTag:q([w,P],e),bodyAttributes:V(h,e),defer:J(e,M),encode:J(e,I),htmlAttributes:V(b,e),linkTags:K(y.LINK,[L,w],e),metaTags:K(y.META,[C,E,k,O,N],e),noscriptTags:K(y.NOSCRIPT,[T],e),onChangeClientState:Y(e),scriptTags:K(y.SCRIPT,[S,T],e),styleTags:K(y.STYLE,[A],e),title:Z(e),titleAttributes:V(g,e)}},function(e){ne&&ee(ne),e.defer?ne=$(function(){re(e,function(){ne=null})}):(re(e),ne=null)},de)(function(){return null}),me=(a=fe,i=o=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!f()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case y.SCRIPT:case y.NOSCRIPT:return{innerHTML:t};case y.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,o=e.nestedChildren;return U({},r,((t={})[n.type]=[].concat(r[n.type]||[],[U({},a,this.mapNestedChildrenToProps(n,o))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,o=e.newChildProps,i=e.nestedChildren;switch(r.type){case y.TITLE:return U({},a,((t={})[r.type]=i,t.titleAttributes=U({},o),t));case y.BODY:return U({},a,{bodyAttributes:U({},o)});case y.HTML:return U({},a,{htmlAttributes:U({},o)})}return U({},a,((n={})[r.type]=U({},o),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=U({},t);return Object.keys(e).forEach(function(t){var r;n=U({},n,((r={})[t]=e[t],r))}),n}
2,t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return m.Children.forEach(e,function(e){if(e&&e.props){var a=e.props,o=a.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(t,n){return t[F[n]||n]=e[n],t},t)}(G(a,["children"]));switch(n.warnOnInvalidChildren(e,o),e.type){case y.LINK:case y.META:case y.NOSCRIPT:case y.SCRIPT:case y.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:i,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:o})}}}),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=G(e,["children"]),r=U({},n);return t&&(r=this.mapChildrenToProps(t,r)),m.createElement(a,r)},z(t,null,[{key:"canUseDOM",set:function(e){a.canUseDOM=e}}]),t}(m.Component),o.propTypes={base:l().object,bodyAttributes:l().object,children:l().oneOfType([l().arrayOf(l().node),l().node]),defaultTitle:l().string,defer:l().bool,encodeSpecialCharacters:l().bool,htmlAttributes:l().object,link:l().arrayOf(l().object),meta:l().arrayOf(l().object),noscript:l().arrayOf(l().object),onChangeClientState:l().func,script:l().arrayOf(l().object),style:l().arrayOf(l().object),title:l().string,titleAttributes:l().object,titleTemplate:l().string},o.defaultProps={defer:!0,encodeSpecialCharacters:!0},o.peek=a.peek,o.rewind=function(){var e=a.rewind();return e||(e=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},i);me.renderStatic=me.rewind,t.A=me},8321:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(5458),a=n(6540);const o=(0,a.createContext)(void 0),i=()=>{const e=(0,a.useContext)(o);if(!e)throw new Error("Missing provider!");return e};t.A=e=>{let{children:t}=e;const{0:n,1:i}=(0,a.useState)([]),c=(0,a.useCallback)(e=>{i(t=>[].concat((0,r.A)(t),[e]))},[]),l=(0,a.useCallback)(e=>{i(t=>t.filter(t=>t!==e))},[]),s={isTopModal:(0,a.useCallback)(e=>!!e&&(!n.length||n.findIndex(t=>t===e)===n.length-1),[n]),addModal:c,removeModal:l,modalsOpen:!!n.length};return a.createElement(o.Provider,{value:s},t)}},8473:function(e,t,n){"use strict";n.d(t,{E:function(){return u},p:function(){return s}});var r=n(6540);function a(){return a=Object.assign||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)}function o(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var i=["as","children","contentId"],c=["as","id"],l="reach-skip-nav",s=(0,r.forwardRef)(function(e,t){var n=e.as,c=void 0===n?"a":n,s=e.children,u=void 0===s?"Skip to content":s,d=e.contentId,f=o(e,i),m=d||l;return(0,r.createElement)(c,a({},f,{ref:t,href:"#"+m,"data-reach-skip-link":"","data-reach-skip-nav-link":""}),u)});var u=(0,r.forwardRef)(function(e,t){var n=e.as,i=void 0===n?"div":n,s=e.id,u=o(e,c),d=s||l;return(0,r.createElement)(i,a({},u,{ref:t,id:d,"data-reach-skip-nav-content":""}))})},8587:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:function(){return r}})},8651:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=n(8587),a=n(2485),o=n.n(a),i=n(6540),c=n(648),l=n(1326),s="ButtonLike-module--button--8fd54",u="ButtonLike-module--primary--0c0db",d="ButtonLike-module--secondary--b01ed",f="ButtonLike-module--disabled--cd4c1",m="ButtonLike-module--children--c47ac";const p=["children","primary","className"];var v=function(e,t){const n=i.forwardRef((t,n)=>{const{children:a,primary:v,className:h}=t,b=(0,r.A)(t,p);return i.createElement(e,Object.assign({},(0,l.P)(t),{className:o()("ButtonLike",s,v?u:d,t.disabled&&f,h&&h)},b,{ref:n}),i.createElement(c.A,{variant:"button",as:"div",className:m},a))});return n.displayName=t,n}},9054:function(e,t,n){"use strict";n.r(t),n.d(t,{focusable:function(){return w},isFocusable:function(){return N},isTabbable:function(){return k},tabbable:function(){return A}});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not
2(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],a=r.join(","),o="undefined"==typeof Element,i=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,c=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var a=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===a||"true"===a||n&&t&&e(t.parentNode)},s=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(a));return t&&i.call(e,a)&&r.unshift(e),r=r.filter(n)},u=function e(t,n,r){for(var o=[],c=Array.from(t);c.length;){var s=c.shift();if(!l(s,!1))if("SLOT"===s.tagName){var u=s.assignedElements(),d=e(u.length?u:s.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:s,candidates:d})}else{i.call(s,a)&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var f=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),m=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&m){var p=e(!0===f?s.children:f.children,!0,r);r.flatten?o.push.apply(o,p):o.push({scopeParent:s,candidates:p})}else c.unshift.apply(c,s.children)}}return o},d=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},f=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},m=function(e){return"INPUT"===e.tagName},p=function(e){return function(e){return m(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||c(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!a||a===e}(e)},v=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},h=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var a=i.call(e,"details>summary:first-of-type")?e.parentElement:e;if(i.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return v(e)}else{if("function"==typeof r){for(var o=e;e;){var l=e.parentElement,s=c(e);if(l&&!l.shadowRoot&&!0===r(l))return v(e);e=e.assignedSlot?e.assignedSlot:l||s===e.ownerDocument?l:s.host}e=o}if(function(e){var t,n,r,a,o=e&&c(e),i=null===(t=o)||void 0===t?void 0:t.host,l=!1;if(o&&o!==e)for(l=!!(null!==(n=i)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(i)||null!=e&&null!==(a=e.ownerDocument)&&void 0!==a&&a.contains(e));!l&&i;){var s,u,d;l=!(null===(u=i=null===(s=o=c(i))||void 0===s?void 0:s.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(i))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(e,t){return!(t.disabled||l(t)||function(e){return m(e)&&"hidden"===e.type}(t)||h(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!i.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},g=function(e,t){return!(p(t)||d(t)<0||!b(e,t))},y=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},E=function e(t){var n=[],r=[];
2return t.forEach(function(t,a){var o=!!t.scopeParent,i=o?t.scopeParent:t,c=d(i,o),l=o?e(t.candidates):i;0===c?o?n.push.apply(n,l):n.push(i):r.push({documentOrder:a,tabIndex:c,item:t,isScope:o,content:l})}),r.sort(f).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},A=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:g.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:y}):s(e,t.includeContainer,g.bind(null,t)),E(n)},w=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:b.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s(e,t.includeContainer,b.bind(null,t))},k=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==i.call(e,a)&&g(t,e)},T=r.concat("iframe").join(","),N=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==i.call(e,T)&&b(t,e)}},9476:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(8587),a=n(2485),o=n.n(a),i=n(6540),c={card:"Card-module--card--fde84",main:"Card-module--main--76166",normal:"Card-module--normal--fdd4e"};const l=["children","className","style","type"];var s=e=>{let{children:t,className:n,type:a="normal"}=e,s=(0,r.A)(e,l);return i.createElement("article",Object.assign({className:o()(c.card,c[a],n)},s),t)}},9715:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(5019),a=n.n(r);const o=(e,t,n)=>{const r=(e=>{const{slug:t,_id:n}=e;return t?t.current:n})(e);return i(e,t,r,n)},i=(e,t,n,r)=>{const{date:o,_id:i,location:c}=e,l=[""],s=(e=>{const t=/_([^_]*)$/.exec(e);return t&&t[1]?t[1]:"en"})(i);return s&&"en"!==s&&l.push(s.toLowerCase()),t&&l.push(t),o&&r&&r.date?l.push(o):o&&r&&r.year&&l.push(o.split("-")[0]),c&&r&&r.location&&l.push(a()(c.name.toLowerCase())),n&&l.push(n),l.join("/")},c=e=>"about/impact/"+e;function l(e){var t;if("pdCourse"===e._type)return"https://microbit.thinkific.com/courses/"+(null===(t=e.slug)||void 0===t?void 0:t.current);const n=function(e){if(!e)return"";switch(e._type){case"newsPage":return i(e,"news/");case"newsArticle":return o(e,"news",{date:!0});case"aboutLandingPage":return i(e,"about/overview");case"aboutPage":return o(e,"about");case"accessibilityLandingPage":return i(e,"accessibility");case"accessibilityPage":case"accessibilityActivity":return o(e,"accessibility");case"caseStudy":return o(e,c("case-studies"));case"caseStudiesPage":return i(e,c("case-studies/"));case"foundationReport":return"overview"===e.type?i(e,c("foundation-reports"),void 0,{location:!0}):o(e,c("foundation-reports"),{location:!0});case"foundationReportsPage":return i(e,c("foundation-reports/"));case"researchPage":return i(e,c("research/"));case"award":return o(e,c("awards"));case"awardsPage":return i(e,c("awards/"));case"dybProjectsLandingPage":return i(e,c("do-your-bit/"));case"dybProject":return o(e,c("do-your-bit/projects"),{year:!0});case"dybProjectListingPage":return i(e,c("do-your-bit/projects/"));case"projectsPage":return i(e,"projects/");case"projectCollection":return o(e,"projects/collections/");case"makeListingPage":return i(e,"projects/make-it-code-it/");case"make":return o(e,"projects/make-it-code-it");case"eduLessonsListingPage":case"unitOfWorkListingPage":return i(e,"teach/lessons/");case"unitOfWork":case"lesson":case"individualLesson":return o(e,"teach/lessons/");case"eduPortalPage":return i(e,"teach/featured/");case"resourceListingPage":return i(e,"teach/classroom-resources/");case"resource":return o(e,"teach/classroom-resources");case"eventListingPage":return i(e,"teach/events/");case"event":return o(e,"teach/events/");case"teachPage":return o(e,"teach");case"playgroundSurveyGuide":return o(e,"teach/playground-survey/");case"product":return o(e,"buy");case"productListingPage":return i(e,"buy/");case"buyPage":return i(e,"buy/where/");case"accessoriesPage":return i(e,"buy/accessories/");case"accessory":return o(e,"buy/accessories");case"letsCodePage":return i(e,"code-ai/");case"featuresPage":return o(e,"get-started/features");case"gettingStartedPage":return o(e,"get-started/getting-started");case"userGuidePage":return o(e,"get-started/user-guide");case"landingPage":case"genericPage":return o(e,void 0);case"dybGenericPage":return o(e,"teach/do-your-bit");case"dybWinners":return o(e,"teach/do-your-bit/winners");case"globalGoalsResource":return o(e,"teach/do-your-bit/global-goals");default:throw new Error("Unknown type: "+e._type+". If you've added a new type of document, remember to add it to urls.ts.\n\nFull value passed:\n"+JSON.stringify(e))}}(e).replace(/\/+/g,"/");return n.endsWith("/")?n:n+"/"}},9846:function(e,t,n){"use strict";var r=n(8587),a=n(6540),o=n(8007),i=n(1616),c=n(3972),l=n(3038),s=n(1032);const u=["to","activeClassName","activeStyle","partiallyActive","replace","state","children","getProps","ref","analyticsDownloadId"],d=["onClick"];const f=(e,t)=>{const n="en"===e?void 0:e;return t?new RegExp("^https://makecode.microbit.org").test(t)?p(t,"lang",(0,s._)(n)):new RegExp("^https://(python|ml|data|classroom|createai).microbit.org").test(t)?m(t,"l",n):t:t}
2,m=(e,t,n)=>{if(!n)return e;const r=t+"="+encodeURIComponent(n),a=e.indexOf("?");if(-1!==a)return v(e,a+1,r+"&");const o=e.indexOf("#");return-1!==o?v(e,o,"?"+r):e+"?"+r},p=(e,t,n)=>{if(!n)return e;const r=t+"="+encodeURIComponent(n);return-1!==e.indexOf("#")?e+"&"+r:e+"#"+r},v=(e,t,n)=>[e.substring(0,t),n,e.substring(t)].join("");t.A=function(e){let{to:t,activeClassName:n,activeStyle:s,partiallyActive:m,replace:p,state:v,children:h,getProps:b,analyticsDownloadId:g}=e,y=(0,r.A)(e,u);const E=(0,l.o)(),{pathname:A}=(0,c.H)(),{siteArea:w}=(0,i.pn)();if(((e,t)=>!!t&&(!!t.startsWith("#")||t.startsWith(e+"#")))(A,t))return a.createElement("a",Object.assign({},y,{href:t}),h);if(void 0===t||"string"==typeof t&&!/^\/(?!\/)/.test(t)||t.startsWith("/downloads/")){const e=f(E,t),{onClick:n}=y,i=(0,r.A)(y,d);return a.createElement("a",Object.assign({href:e?(0,o.Fe)(e):void 0,onClick:e=>{"function"==typeof n&&n(e);const t=window.gtag;g&&t&&t("event","download",{event_category:w,event_label:g,value:1})}},i),h)}return a.createElement(o.N_,Object.assign({to:t,activeClassName:n,activeStyle:s,partiallyActive:m,replace:p,state:v,getProps:b},y),h)}},9871:function(e,t,n){"use strict";n.d(t,{o:function(){return o},y:function(){return i}});var r=n(6540);const a=(0,r.createContext)(void 0),o=e=>{let{metadata:t,children:n}=e;return r.createElement(a.Provider,{value:t},n)},i=()=>{const e=(0,r.useContext)(a);if(!e)throw new Error("PageMetadataProvider must be used to rely on usePageMetadata.");return e}}}]); 3//# sourceMappingURL=commons-fc88bc6b1cbeb1b146e2.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.