var e={8904:function(e){!function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function n(e){this.g=document.createElement("div"),this.g.setAttribute("aria-hidden","true"),this.g.appendChild(document.createTextNode(e)),this.h=document.createElement("span"),this.i=document.createElement("span"),this.m=document.createElement("span"),this.j=document.createElement("span"),this.l=-1,this.h.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.i.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.j.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.m.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.h.appendChild(this.m),this.i.appendChild(this.j),this.g.appendChild(this.h),this.g.appendChild(this.i)}function o(e,t){e.g.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function i(e){var t=e.g.offsetWidth,n=t+100;return e.j.style.width=n+"px",e.i.scrollLeft=n,e.h.scrollLeft=e.h.scrollWidth+100,e.l!==t&&(e.l=t,!0)}function r(e,n){function o(){var e=r;i(e)&&null!==e.g.parentNode&&n(e.l)}var r=e;t(e.h,o),t(e.i,o),i(e)}function a(e,t,n){t=t||{},n=n||window,this.family=e,this.style=t.style||"normal",this.weight=t.weight||"normal",this.stretch=t.stretch||"normal",this.context=n}var s=null,d=null,l=null,c=null;function u(e){return null===c&&(c=!!e.document.fonts),c}function m(e,t){var n=e.style,o=e.weight;if(null===l){var i=document.createElement("div");try{i.style.font="condensed 100px sans-serif"}catch(e){}l=""!==i.style.font}return[n,o,l?e.stretch:"","100px",t].join(" ")}a.prototype.load=function(e,t){var i=this,a=e||"BESbswy",l=0,c=t||3e3,h=(new Date).getTime();return new Promise((function(e,t){if(u(i.context)&&!function(e){return null===d&&(u(e)&&/Apple/.test(window.navigator.vendor)?(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),d=!!e&&603>parseInt(e[1],10)):d=!1),d}(i.context)){var f=new Promise((function(e,t){!function n(){(new Date).getTime()-h>=c?t(Error(c+"ms timeout exceeded")):i.context.document.fonts.load(m(i,'"'+i.family+'"'),a).then((function(t){1<=t.length?e():setTimeout(n,25)}),t)}()})),p=new Promise((function(e,t){l=setTimeout((function(){t(Error(c+"ms timeout exceeded"))}),c)}));Promise.race([p,f]).then((function(){clearTimeout(l),e(i)}),t)}else!function(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t),e()})):document.attachEvent("onreadystatechange",(function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),e())}))}((function(){function d(){var t;(t=-1!=b&&-1!=g||-1!=b&&-1!=w||-1!=g&&-1!=w)&&((t=b!=g&&b!=w&&g!=w)||(null===s&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),s=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=s&&(b==v&&g==v&&w==v||b==y&&g==y&&w==y||b==x&&g==x&&w==x)),t=!t),t&&(null!==E.parentNode&&E.parentNode.removeChild(E),clearTimeout(l),e(i))}var u=new n(a),f=new n(a),p=new n(a),b=-1,g=-1,w=-1,v=-1,y=-1,x=-1,E=document.createElement("div");E.dir="ltr",o(u,m(i,"sans-serif")),o(f,m(i,"serif")),o(p,m(i,"monospace")),E.appendChild(u.g),E.appendChild(f.g),E.appendChild(p.g),i.context.document.body.appendChild(E),v=u.g.offsetWidth,y=f.g.offsetWidth,x=p.g.offsetWidth,function e(){if((new Date).getTime()-h>=c)null!==E.parentNode&&E.parentNode.removeChild(E),t(Error(c+"ms timeout exceeded"));else{var n=i.context.document.hidden;!0!==n&&void 0!==n||(b=u.g.offsetWidth,g=f.g.offsetWidth,w=p.g.offsetWidth,d()),l=setTimeout(e,50)}}(),r(u,(function(e){b=e,d()})),o(u,m(i,'"'+i.family+'",sans-serif')),r(f,(function(e){g=e,d()})),o(f,m(i,'"'+i.family+'",serif')),r(p,(function(e){w=e,d()})),o(p,m(i,'"'+i.family+'",monospace'))}))}))},e.exports=a}()},8834:function(e){e.exports={getNavCount:function(){const e=document.getElementById("orb-banner");let t=0;if(e){let n=e.querySelectorAll("a");for(let e=0;e{document.documentElement.className+=` ${t}`})).catch((t=>{console.error(`Error loading ${e} font: ${t}`)}))}}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}function o(e,t){if(0===e.length)return;e.forEach((e=>{e.removeAttribute("data-v-group"),e.removeAttribute("data-v-item")}));let n=function(e,t){return"global navigation"===t?e.filter((e=>null!==e.offsetParent&&"hidden"!==window.getComputedStyle(e).visibility&&!e.closest(".orb-skip-links"))):"more menu"===t?e.filter((e=>"button"!==e.getAttribute("role")&&"none"!==window.getComputedStyle(e.closest("nav")).display&&"none"!==window.getComputedStyle(e.closest("li")).display)):void 0}(e,t);n&&n.forEach(((e,o)=>{if(o++,function(e){return"button"!==e.getAttribute("role")}(e)){const i="idcta-link"===e.getAttribute("id")?"BBC Account":e.innerText,r=e.getAttribute("href");e.setAttribute("data-v-item",JSON.stringify({type:"link",text:i,link:r,position:o})),e.setAttribute("data-v-group",JSON.stringify({type:t,item_count:n.length})),e.setAttribute("data-bbc-ignore-views","true")}}))}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};const i=document.getElementById("orb-banner"),r=new MutationObserver((e=>{Array.from(e).forEach((e=>{const t=e.target;"role"===e.attributeName&&"button"===t.getAttribute("role")&&(t.removeAttribute("data-v-item"),t.removeAttribute("data-v-group"))}))}));i&&r.observe(i,{attributes:!0,subtree:!0});var a=n(8834);const s=n(5026).A,d=document.getElementById("orb-banner"),l=document.getElementById("orbit-more-drawer");let c;function u(){d&&o([...d.querySelectorAll("a")],"global navigation"),l&&o([...l.querySelectorAll("a")],"more menu")}window.bbcuser.isUKCombined().then((e=>{if(!e){const e=document.getElementById("homepage-link");if(e){const t=e.getAttribute("href").replace(".bbc.co.uk",".bbc.com");e.setAttribute("href",t)}}if("#orbit-more-drawer"!==window.location.hash){const t=e?"orbit-domestic-yes":"orbit-domestic-no";["orb-banner","orbit-more-drawer","orb-footer"].forEach((e=>{const n=document.getElementById(e);n&&n.classList.add(t)}))}window.additionalPageProperties.suppressView=window.orbitData.suppressView,document.dispatchEvent(new CustomEvent("bbc-page-reset",{detail:{page:{additionalProperties:window.additionalPageProperties}}})),u()})),window.addEventListener("resize",(function(){clearTimeout(c),c=setTimeout((()=>{u(),window.bbcpage.updateAdditionalProperties({experience_global_nav_count:(0,a.getNavCount)().toString()}).catch((e=>console.error(e)))}),250)})),Promise.all([window.bbcpage.isModal(),s("ReithSans","b-reith-sans-loaded")]).then((e=>{window.require.defined&&window.require.defined("orb/features/masthead/_layoutprimarynav")&&!e[0]&&window.require(["orb/features/masthead/_layoutprimarynav"],(e=>e.recalculateLayout()))})),document.documentElement.className.includes("b-reith-serif-font")&&s("ReithSans","b-reith-serif-loaded"); //# sourceMappingURL=orbit.mjs.map