/*! "1.347.0-20260304-175303-11fa631" */!function(){"use strict";var e={110:function(e,o,t){t.d(o,{Z:function(){return r}});var n=t(81),i=t.n(n),s=t(645),a=t.n(s)()(i());a.push([e.id,"#ngasCookiePrompt #cookiePrompt.full-screen .orb-banner{padding:16px 0}#ngasCookiePrompt #cookiePrompt.full-screen .bbccookies-banner{position:fixed;bottom:0;width:100%;z-index:1000;padding:16px 0}#ngasCookiePrompt #cookiePrompt.full-screen .bbccookies-banner p{line-height:1.5em}#ngasCookiePrompt #cookiePrompt.full-screen .bbccookies-banner .orb-banner-title{width:100%;line-height:2em}@media screen and (min-width: 600px){#ngasCookiePrompt #cookiePrompt.full-screen .bbccookies-banner .orb-banner-content{padding-left:0;flex-grow:2}#ngasCookiePrompt #cookiePrompt.full-screen .bbccookies-banner .orb-banner-options{flex-grow:3}}#ngasCookiePrompt #cookiePrompt.full-screen .bbccookies-banner .banner-button{font-size:18px}#ngasCookiePrompt #cookiePrompt.full-screen #bbccookies-settings{line-height:1.3em}#ngasCookiePrompt #cookiePrompt{font-weight:400;font-size:.625rem;font-family:Arial,Helvetica,freesans,sans-serif;line-height:1}#ngasCookiePrompt #cookiePrompt .b-r p,#ngasCookiePrompt #cookiePrompt .b-r div,#ngasCookiePrompt #cookiePrompt .b-r section,#ngasCookiePrompt #cookiePrompt .b-r a,#ngasCookiePrompt #cookiePrompt .b-r button{margin:0}#ngasCookiePrompt #cookiePrompt .b-g-p,#ngasCookiePrompt #cookiePrompt .b-r .b-g-p{padding:0 8px}#ngasCookiePrompt #cookiePrompt .b-g-m,#ngasCookiePrompt #cookiePrompt .b-r .b-g-m{margin:0 8px}@media screen and (min-width: 400px){#ngasCookiePrompt #cookiePrompt .b-g-p,#ngasCookiePrompt #cookiePrompt .b-r .b-g-p{padding:0 16px}#ngasCookiePrompt #cookiePrompt .b-g-m,#ngasCookiePrompt #cookiePrompt .b-r .b-g-m{margin:0 16px}}@media screen and (min-width: 1008px){#ngasCookiePrompt #cookiePrompt .b-g-p,#ngasCookiePrompt #cookiePrompt .b-r .b-g-p{max-width:976px;margin:0 auto;padding:0 16px}#ngasCookiePrompt #cookiePrompt .b-g-m,#ngasCookiePrompt #cookiePrompt .b-r .b-g-m{max-width:976px;margin:0 auto}}@media screen and (min-width: 1280px){#ngasCookiePrompt #cookiePrompt .b-pw-1280 .b-g-p,#ngasCookiePrompt #cookiePrompt .b-pw-1280 .b-r .b-g-p{max-width:1248px}#ngasCookiePrompt #cookiePrompt .b-pw-1280 .b-g-m,#ngasCookiePrompt #cookiePrompt .b-pw-1280 .b-r .b-g-m{max-width:1248px}}#ngasCookiePrompt .orb-banner{display:flex;flex-wrap:wrap;flex-direction:column;padding:16px 0;margin:0 auto}#ngasCookiePrompt .orb-banner ul{list-style-type:none;padding:0;margin:15px 0 0 0;font-weight:bold}#ngasCookiePrompt .orb-banner button{background:none;border:none}#ngasCookiePrompt .orb-banner h2{margin-bottom:15px;font-size:1.39em;font-weight:bold;line-height:1.11em}#ngasCookiePrompt .orb-banner p{line-height:1.231em;margin:0}#ngasCookiePrompt .orb-banner-wrapper{font-size:1.3em;line-height:1}#ngasCookiePrompt .bbccookies-banner{background-color:#323232;color:#bebebe}#ngasCookiePrompt .bbccookies-banner .orb-banner-title{color:#fff;margin-top:0}#ngasCookiePrompt .bbccookies-banner .banner-button{font-size:1.2em;width:100%}#ngasCookiePrompt .bbccookies-banner a,#ngasCookiePrompt .bbccookies-banner button{text-align:left;color:#f6a21d;text-decoration:none;cursor:pointer}#ngasCookiePrompt .bbccookies-banner a:hover,#ngasCookiePrompt .bbccookies-banner a:focus,#ngasCookiePrompt .bbccookies-banner button:hover,#ngasCookiePrompt .bbccookies-banner button:focus{color:#fff;text-decoration:none}#ngasCookiePrompt .bbccookies-banner .orb-banner-options li{padding-top:8px}#ngasCookiePrompt .bbccookies-banner .orb-banner-options li:first-child{padding-top:0}#ngasCookiePrompt .bbccookies-banner .orb-banner-options a,#ngasCookiePrompt .bbccookies-banner .orb-banner-options button{padding:0 0 0 24px;line-height:1.231em;background-color:rgba(0,0,0,0);background-repeat:no-repeat;background-position:0 -254px}#ngasCookiePrompt .bbccookies-banner .orb-banner-options a:hover,#ngasCookiePrompt .bbccookies-banner .orb-banner-options a:focus,#ngasCookiePrompt .bbccookies-banner .orb-banner-options button:hover,#ngasCookiePrompt .bbccookies-banner .orb-banner-options button:focus{background-position:0px -317px}#ngasCookiePrompt #bbccookies-continue-button{line-height:1em;font-weight:700}#ngasCookiePrompt #bbccookies-settings a{background-position:1px 3px}#ngasCookiePrompt #bbccookies-settings a:focus,#ngasCookiePrompt #bbccookies-settings a:hover{background-position:1px -60px}@media screen and (min-width: 600px){#ngasCookiePrompt .orb-banner{flex-direction:row}#ngasCookiePrompt .orb-banner .orb-banner-title{width:20%}#ngasCookiePrompt .orb-banner .orb-banner-content{width:60%;padding-left:3.5%;box-sizing:border-box}#ngasCookiePrompt .orb-banner .orb-banner-options{width:20%;margin-top:0}#ngasCookiePrompt .orb-banner h2{margin-bottom:0}}",""]);const r=a},645:function(e){e.exports=function(e){var o=[];return o.toString=function(){return this.map((function(o){var t="",n=void 0!==o[5];return o[4]&&(t+="@supports (".concat(o[4],") {")),o[2]&&(t+="@media ".concat(o[2]," {")),n&&(t+="@layer".concat(o[5].length>0?" ".concat(o[5]):""," {")),t+=e(o),n&&(t+="}"),o[2]&&(t+="}"),o[4]&&(t+="}"),t})).join("")},o.i=function(e,t,n,i,s){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var r=0;r0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=s),t&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=t):p[2]=t),i&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=i):p[4]="".concat(i)),o.push(p))}},o}},81:function(e){e.exports=function(e){return e[1]}},379:function(e){var o=[];function t(e){for(var t=-1,n=0;n0?" ".concat(t.layer):""," {")),n+=t.css,i&&(n+="}"),t.media&&(n+="}"),t.supports&&(n+="}");var s=t.sourceMap;s&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),o.styleTagTransform(n,e,o.options)}(o,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)}}}},589:function(e){e.exports=function(e,o){if(o.styleSheet)o.styleSheet.cssText=e;else{for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(document.createTextNode(e))}}}},o={};function t(n){var i=o[n];if(void 0!==i)return i.exports;var s=o[n]={id:n,exports:{}};return e[n](s,s.exports,t),s.exports}t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,{a:o}),o},t.d=function(e,o){for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.nc=void 0,function(){const e=e=>{if("undefined"==typeof document||!e)return"";const o=`; ${document.cookie}`.split(`; ${encodeURIComponent(e)}=`);let t="";return 2===o.length&&(t=decodeURIComponent(o.pop().split(";").shift())),t},o=(e,o,t)=>{if("undefined"==typeof document||!e)return;const n=new Date(Date.now()+864e5*t);document.cookie=`${encodeURIComponent(e)}=${encodeURIComponent(o)}; expires=${n.toGMTString()}; domain=.bbc.com; path=/`},n=2,i=e=>{window.dotcom.consent={...window.dotcom.consent,native:e}},s=()=>window.dotcom.consent.native,a=()=>window.dotcom.consent.useNative,r=e=>{window.dotcom.consent={...window.dotcom.consent,sp:e}},c=()=>window.dotcom.consent.sp,d=(e,o)=>{"object"==typeof window.dotcom.consent.vendor&&null!==window.dotcom.consent.vendor&&void 0!==e&&(window.dotcom.consent.vendor={...window.dotcom.consent.vendor,[e]:o})},p=e=>{if("object"==typeof window.dotcom.consent.vendor&&null!==window.dotcom.consent.vendor&&void 0!==e)return window.dotcom.consent.vendor[e]},l=["AT","AX","BE","BG","BL","CH","CY","CZ","DE","DK","EE","ES","EU","FI","FR","GB","GF","GG","GI","GP","GR","HR","HU","IE","IM","IS","IT","JE","LI","LT","LU","LV","MF","MT","MQ","NL","NO","PL","PM","PT","RE","RO","SE","SI","SK","YT"],m=()=>"undefined"!=typeof window&&/[?|&]ads-debug/.test(window.location.href),u=()=>"undefined"!=typeof live&&"test"===live||-1!==window.location.href.indexOf("test.api.bbc.co.uk")||/(localhost|sandbox|int|test)(.dev)*.bbc.co*/.test(window.location.href)||/web.(int|test).bbcx.test.api.bbc.com/.test(window.location.href),w=()=>!0===window.dotcom.userinfo.notUkIp&&!0===window.dotcom.userinfo.ads,g=()=>m()||w()&&window.dotcom.flags.state>0&&window.dotcom.flags.adverts,f=e=>{var o;window.dotcom.userinfo.country=e["X-Country"],window.dotcom.userinfo.notUkIp="no"===e["X-Ip_is_uk_combined"],window.dotcom.userinfo.ads="yes"===e["X-Ip_is_advertise_combined"],!0===window.dotcom.userinfo.notUkIp&&(window.dotcom.userinfo.eea=!!(o=window.dotcom.userinfo.country)&&-1!==l.indexOf(o.toUpperCase()))},b=(e,o)=>{o||(delete e.adverts,delete e.analytics),Object.keys(e).forEach((o=>{let t=e[o];t="true"===t||t,t="false"!==t&&t,window.dotcom.flags[o]=t})),"www.bbc.com"!==window.location.hostname||"/news/uk/the_queen"!==window.location.pathname&&"/news/live/uk-62902778"!==window.location.pathname&&"/news/topics/c8nq32jwn4rt"!==window.location.pathname&&"/news/topics/cq23pdgvr7rt"!==window.location.pathname||(window.dotcom.flags.adverts=!1)},v=async(e,o)=>fetch(e).then((e=>{if(e.ok)return e.json();throw new Error(o)})),h=async()=>{const e="Error fetching flags",o=await v(u()?"https://gn-flagpoles.test.api.bbci.co.uk/ngas":"https://gn-flagpoles.api.bbci.co.uk/ngas",e).catch((()=>{throw window.dotcom.flags.state=-2,new Error(e)}));b(o,!1),window.dotcom.flags.state=2};let y=[];const k={isAdsDebug:m,isTestEnv:u,isStageEnv:()=>/stage.bbc.co*/.test(window.location.href)||/web.stage.bbcx.test.api.bbc.com/.test(window.location.href),isLiveEnv:()=>"www.bbc.com"===window.location.hostname,isSignedIn:()=>e("ckns_id"),isDotcomAllowed:w,syncAdsEnabled:()=>g(),isAdsEnabled:()=>new Promise((e=>{window.dotcom.userinfo.state<0||window.dotcom.flags.state<0?e(g()):0===window.dotcom.userinfo.state||0===window.dotcom.flags.state?y.push(e):e(g())})),checkCookies(){i(1);const t=e("ckns_policy");(m()||t&&"1"===t.charAt(2))&&i(n),t||(i(n),o("ckns_policy","111",365),o("ckns_explicit","0",365))},async init(){const e=new URLSearchParams(window.location.search);try{m()?(window.dotcom.userinfo.notUkIp=!0,window.dotcom.userinfo.ads=!0,window.dotcom.flags.adverts=!0,window.dotcom.flags.analytics=!0,window.dotcom.userinfo.state=1,await h()):(await(async()=>{const e="Error fetching userinfo",{userinfo:o={}}=window.dotcom.config;if(o["X-Country"]&&o["X-Ip_is_uk_combined"]&&o["X-Ip_is_advertise_combined"])return f(o),void(window.dotcom.userinfo.state=2);const{host:t}=window.location,n="www.context-switcher.api.bbc.com"===(i=t)||"www.context-switcher.test.api.bbc.com"===i?"/userinfo":"https://www.bbc.co.uk/userinfo";var i;const s=await v(n,e).catch((()=>{throw window.dotcom.userinfo.state=-1,new Error(e)}));f(s),window.dotcom.userinfo.state=1})(),w()?window.dotcom.config.opsFlags&&!e.has("force-client-flagpoles")?(b(window.dotcom.config.opsFlags,!0),b(window.dotcom.config.ngasFlags,!1),window.dotcom.flags.state=2):(await(async()=>{const e="Error fetching gnlops flags",o=await v(u()?"https://gn-flagpoles.test.api.bbci.co.uk/gnlops":"https://gn-flagpoles.api.bbci.co.uk/gnlops",e).catch((()=>{throw window.dotcom.flags.state=-1,new Error(e)}));b(o,!0),window.dotcom.flags.state=1})(),!0!==window.dotcom.flags.adverts&&!0!==window.dotcom.flags.analytics||await h()):window.dotcom.flags.state=-3)}finally{y&&y.length>0&&(y.forEach((e=>e(g()))),y=[])}},reset(){y=[]}},_=()=>window.dotcom.data,P=new RegExp("^(/)?(afaanoromoo|afrique|amharic|arabic|azeri|bengali|burmese|gahuza|gujarati|hausa|hindi|igbo|indonesia|korean|kyrgyz|japanese|marathi|mundo|naidheachdan|nepali|pashto|persian|pidgin|portuguese|punjabi|russian|serbian|sinhala|somali|swahili|tajik|tamil|telugu|thai|tigrinya|turkce|ukchina|ukrainian|urdu|uzbek|vietnamese|yoruba|zhongwen)"),x=/^(\/)?(news|sport)/,I=new RegExp("^/ws/av-embeds/"),E=e=>{const o=e||window.location.pathname;return P.test(o)||I.test(o)},S=()=>"news"===_().channel&&"index"===_().asset_type&&!window.bbcdotcom,C=()=>"sport"===_().channel&&"homepage"===_().section,L=()=>"sport"===_().channel&&"index"===_().asset_type&&!C(),A=()=>"sport"===_().channel&&"index"===_().asset_type&&!window.bbcdotcom,$=()=>!!window.dotcom?.config?.xPlatform,T=()=>{const e=_().channel;return("future"===e||"worklife"===e||"travel"===e||"culture"===e)&&!$()},R={isWorldService:E,isJapanese:()=>"japanese"===_().channel,isNewsHomepage:()=>"news"===_().channel&&"homepage"===_().section,isNewsStory:()=>"news"===_().channel&&"story"===_().asset_type&&!window.bbcdotcom,isLive:()=>"live"===_().section||"live"===_().subsection,isSportsStory:()=>"sport"===_().channel&&"story"===_().asset_type,isSportHomePage:C,isSportsIndex:L,isSportsIndexOrHomePage:()=>C()||L(),isFeaturesSite:T,isReel:()=>"reel"===_().channel,isStoryworksSite:()=>"storyworks"===_().channel||"special-features"===_().channel,isFeaturesArticle:()=>T()&&"ARTICLE"===_().keyValues.pageType,isWWHP:()=>{const e=window.location.pathname;return("/"===e||"/wwhp"===e)&&!window.dotcom.config?.xPlatform},isStory:()=>"story"===_().asset_type,isSportsTopic:A,isNewsTopic:S,isTopic:()=>S()||A(),isFeaturesindex:()=>T()&&"homepage"===_().section,isNewPlatform:$,isWebcore:()=>{const e=window.location.pathname;return!window.orbitData&&!$()&&!E()&&x.test(e)},isHomepage:()=>"homepage"===_().channel},j={name:"ozone",url:()=>R.isNewPlatform()||R.isLive()?"https://prebid.the-ozone-project.com/hw2/OZONEBBC4784/1500000107/current/ozpb.min.js":"https://prebid.the-ozone-project.com/hw2/OZONEBBC4784/8890582654/current/ozpb.min.js",meetsRequirements:e=>void 0!==e.ozone&&e.ozone&&!R.isWorldService()&&p("ozone"),id:"adunits_loader"},q={name:"mmx",url:()=>"https://sb.scorecardresearch.com/internal-cs/default/beacon.js",meetsRequirements:e=>void 0!==e.comscoremmx&&e.comscoremmx&&(()=>{const{country:e}=window.dotcom.userinfo;return"us"!==e||c()===n})()},D=(e,o,t,n,i)=>{if(!o){o=o||{},window.permutive=o,o.q=[],o.config=i||{},o.config.projectId=t,o.config.apiKey=n,o.config.environment=o.config.environment||"production";for(var s=["addon","identify","track","trigger","query","segment","segments","ready","on","once","user","consent"],a=0;a`https://cdn.permutive.com/${O}-web.js`,preLoad:()=>{D(document,window.permutive,O,U,{consentRequired:!0})},meetsRequirements:e=>!(R.isWorldService()&&!R.isJapanese())&&(void 0!==e.permutive&&e.permutive)},N={LOG:"log",INFO:"info",WARN:"warn",ERROR:"error",DEBUG:"debug"},M={enabled:!1};("undefined"!=typeof window&&/[?|&]ads-debug/.test(window.location.href)||"undefined"!=typeof document&&-1!==document.cookie.indexOf("ads-debug="))&&(M.enabled=!0);const X=function(e){return(o,t=N.LOG)=>{M.enabled&&console[t](`dotcom:${e} ${o}`)}},V={us:"U2FsdGVkX18EsRRiop2bz2RGRCxBsCIBgDXwov3o+yGa10gNZfD5U7y683Ja4/kuLsfa+sKCaGH8ZcR8as78SpmuJAsleZqjKzAxgG7cEz/OQevd0xUqQG4rb5GczlQa4Be1qBGI5X+1BWz+JoFUmfikRq12Pm0Q+t1MV37ddCQYEAD+WXDeJsdGvnadtPAqREhsxQpplDcbh42OBugDVqXmVsXU72lXzfJK1swkenta+rGoVMQXSXOb4g6YkUP3",ca:"U2FsdGVkX1+sWh9/HF0b3YJ+ZEJF/yIk7Eq9ya0c5VKLKM/UV2utAIFqfLeMMxv0mh1BL94O0+l2cVjHHCtrwBLMXs2Js2AW5lc0c2S8usc7wz78s7VvEHLjtdA8rcpm9xjRstPCErNGgc4Fg/f7uIbDruMQGipDDfR/eJdISDGdb+JvBvQS7r8fIFXcWgvJ09j87vJ4J02U7r6bzsLQE5hYqlbgVT7vcwjcF1ljA6cHlXQjAfE/w/a56rUDEsoK",au:"U2FsdGVkX19T32OXhXTp1yC0pYg/J2JTEy+rbDD/Q1WzJO0hwQdWVIQc4c7dfh8/ciTtpuxnT6nxvGy8x5Kjsw7SG/NnN28QIOF5Elgjym3/Y9phXsEQmYkm2QKuSPZ0hA+FqZCBrvGok7rX35HKawdNIFjElWxSx/FJRSxEqqyXmnyTzNQqO/kZ/HMfLQVUswP/xIRxbuq/Pt1N3+oXW5g2pzBHk1e3ybrPbS9W5V3lwRrRTxeLiMrYsLTLQb23"},F=e=>{const o=void 0!==p("covatic")?p("covatic"):s()===n,{country:t}=window.dotcom.userinfo,i=V[t];e.Client(i),o&&e.notifyConsent(!0),window.dotcom.covaticBrowserSDK=window.dotcom.covaticBrowserSDK||e},B={name:"covatic",url:()=>"https://browser.covatic.io/sdk/v1/latest.js",requireUrl:()=>"https://browser.covatic.io/sdk/v1/latest",onLoad:e=>{if(e?.Client)return void F(e);const{covaticBrowserSDK:o}=window;if(o?.Client)return void F(o);X("covatic")("SDK failed to load","error")},meetsRequirements:e=>(()=>{const{country:e}=window.dotcom.userinfo;return"us"===e||"ca"===e||"au"===e})()&&void 0!==e.covatic&&e.covatic&&p("covatic")},G=X("fpd"),J=e=>{const{segments:o}=e,t={jKmNjKmN:o["591ea40d71"].score,ctry:(e=>{switch(parseInt(e,10)){case 2:return"usa";case 3:return"can";case 4:return"aus";default:return"other"}})(o.e2cd0d9d87.score)};return G(`processed: ${JSON.stringify(t)}`),t},K=X("fpd"),H=async()=>(K("init"),fetch("https://segmentation.api.bbc.com/segments?segments=591ea40d71,e2cd0d9d87",{headers:{"X-API-Key":"aqhenhsvnimc7","X-Authentication-Provider":"idv5"},credentials:"include"}).then((e=>{if(!e.ok)throw new Error("response was not OK");return e.json()})).then((e=>J(e))).catch((e=>(K(e),!1)))),W="fpd-declared",Q=()=>"true"===window.localStorage.getItem(W),Z=()=>{Q()&&window.localStorage.removeItem(W)},Y=()=>{H().then((e=>{window.permutive.track("DeclaredData",e),window.localStorage.setItem(W,"true")}))},ee={c8m8v3p0yygt:"uk",c8nq32jwn4rt:"uk",cq23pdgvr7rt:"uk",c2ymky7eq13t:"uk",c77jz3mdmgzt:"uk",cxlvkzzjq1wt:"uk",czpqp1q456vt:"world",c779dqxlxv2t:"world",c163jpkepkqt:"world-us-canada",cp7r8vgl24lt:"world-middle-east",c89l21e4068t:"business",czpqp1pq5q5t:"business",cem601g08pkt:"business",cx6npx2zrk3t:"business",cxn4z4nmzelt:"business",cyq54q01grmt:"business",cgdwpywgeegt:"business",cvp28kxz49xt:"uk-politics",c008ql15vdxt:"technology",cg41ylwv43pt:"education",cw9l5jelpl1t:"business",cj8k8ngevpgt:"business",ckrkrw3yjx1t:"business",cgmlnmr3yjzt:"business",c3y3yv3g7e4t:"business",clenme2345qt:"business",ce1qrvleleqt:"business",cw9nelz7j32t:"business",c1vw6q14rzqt:"world",c9qdqqkgz27t:"business",cjl3llgk4k2t:"business",clyeyy6q0g4t:"business",cwjzjjz559yt:"business",ckwlwwg6507t:"business",clyeyy6464qt:"business",c34l44l8d48t:"business",clyeyy8851qt:"business",c08k88ey6d5t:"business",c4dldd02yp3t:"business",cpglgg6zyd0t:"business",cq75774n157t:"business",c55p555ng9gt:"business",cx250jmk4e7t:"business",cljevy2yz5lt:"business",ce2gz75e8g0t:"business",cleld6gp05et:"business",cmjpj223708t:"business",cxwdwz5d8gxt:"business"},oe=e=>{const o=e?e.replace(/(_|-|\/)[0-9]{7,8}$/,""):"";let t=o.indexOf("/")>-1?o.split("/"):[o];return t=t.filter((e=>""!==e)),{path:o,sectionsArr:t}};let te=!1;const ne=()=>{if(!R.isNewPlatform()||te)return;let e;const{pageData:o}=window.dotcom.config,{newKeyValues:t}=window.dotcom.data;o.collection&&o.collection.length&&(e=o.collection.map((e=>e.title.toLowerCase().replace(/ /g,"_"))).join(","),t.coll=e),o.destination&&o.destination.length&&(e=o.destination.map((e=>e.title.toLowerCase().replace(/ /g,"_"))).join(","),t.destination=e),o.topics&&o.topics.length&&(e=o.topics.map((e=>e.title.toLowerCase().replace(/ /g,"_"))).join(","),t.top_tags=e),o.urn&&(t.page_id=o.urn),o.type&&(t.page_type=o.type.replace("indexPage","index")),window.dotcom.config.adCampaign&&(t.leg_n_keyword=window.dotcom.config.adCampaign),window.dotcom.config.topics&&window.dotcom.config.topics.length&&(t.leg_n_topic=window.dotcom.config.topics);const n=["av_content_genre","av_brand_id","av_series_id","av_episode_id"];o.pageProps&&(n.forEach((e=>{o.pageProps[e]&&(t[e]=o.pageProps[e].toLowerCase().replace(/ /g,"_"))})),o.pageProps.article_word_count&&(t.art_len=`${o.pageProps.article_word_count}`));const i=window.location.pathname.split("/");i.length>2&&"audio"===i[1]&&"category"===i[2]&&(t.av_category_id=i[3],i[4]&&(t.av_subcategory_id=i[4])),te=!0},ie=e=>{const{pathname:o,hostname:t,search:n}=window.location,i=(e=>{const o={AV:"media_asset",INDEX:"index",FIX:"index",STY:"story"};let t;const n=window?.SIMORGH_DATA?.pageData?.metadata?.type;return void 0===t&&n&&(t=o[n]),void 0===t&&(t=/[0-9]{7,8}$/.test(e)?"story":"index",(e.includes("/articles/")||e.includes("/article/"))&&(t="story")),/\/(sport|news)\/live\//.test(e)&&(t="live_event"),t})(o),{adCampaign:s,topics:a=[]}=window.dotcom.config,r=(e=>{const o=e.split("/");return"wwhp"===o[1]?"homepage":o[1]||"homepage"})(o),c=(e=>{let o=/[0-9]{7,8}$/.test(e)?"content":"index";return(e.includes("/articles/")||e.includes("/article/"))&&(o="content"),o})(o),d=(()=>{let e="nonbbc";const o=document.referrer.split("https://www.bbc.com/");return 2===o.length&&(e=encodeURIComponent(o[1].replace(/-|\/|_/g,"")),e.length>64&&(e="")),e})(),p=(e=>{const{path:o,sectionsArr:t}=oe(e);return o===e&&1===t.length?"homepage":t[1]?t[1]:""})(o),l=(e=>{const{sectionsArr:o}=oe(e);return o[2]?o[2]:""})(o),m=(e=>{let o;if(e){const t=e.split("/");4===t.length&&"article"===t[2]?o=t[3]:(/([0-9]{7,8})$/.test(e)&&(o=RegExp.$1),/(\/articles\/)(c[0-9a-hj-np-z]{10,}o$)/.test(e)&&(o=RegExp.$2))}return o})(o),u=((e,o)=>{if("worldservice"!==o)return"";let t;return t=e.split("/").pop().split("_"),t.shift(),t=t.join("_"),t})(o,r),w=(e=>{const{top:o,self:t}=window,n=o!==t?o.location.search:e;return new URLSearchParams(n)})(n);var g;window.dotcom.data={adUnit:"",channel:r,section:p,subsection:l,asset_type:i,adCampaign:s,topics:a,story_id:m??"",urlParams:w,keyValues:{asset_type:i,channel:r,ctype:c,sectn:p,...l&&{subsect:l},domain:t,referrer:d,...m&&{story_id:m},...u&&{title:u}},newKeyValues:{page_id:"",grp:"",pas_tags:"",top_tags:"",fran_tags:"",prod:"bbccom",ref_pillar:"",coll:"",destination:"",pillar:"",sect:"",page_type:"",leg_v_col:"",leg_t_dest:"",leg_n_keyword:"",leg_n_topic:"",leg_adunit2:"",domain:t,referrer:d}},e&&Object.keys(e).forEach((o=>{"tags"===o&&(e[o]=encodeURIComponent(e[o])),window.dotcom.data.keyValues[o]=e[o]})),R.isNewPlatform()&&("topics"===window.dotcom.data.section&&""!==window.dotcom.data.subsection&&(window.dotcom.config.comscorekw=(g=window.dotcom.data.subsection,ee[g]?ee[g]:"")),ne())},se=()=>window.dotcom.data,ae=()=>"reel"===se().channel||R.isFeaturesSite()||R.isStoryworksSite(),re=(e,o)=>new Promise((t=>{ae()?setTimeout((()=>{e(),t()}),o):(e(),t())})),ce=X("permutive"),de=()=>{ce("get cust_params");const e=window.localStorage.getItem("_pdfps");return encodeURIComponent(JSON.parse(e||"[]").slice(0,250).join(","))},pe=()=>{const e=Object.seal({dfp_adUnit1:"",dfp_adUnit2:"",type:"",article:{destinations:[],keyword:"",name:""},channel:"",column:"",section:"",story_id:"",subsection:"",tags:[],topics:[]}),{adUnit:o,topics:t,adCampaign:n,channel:i,section:s,subsection:a,story_id:r,keyValues:c}=se(),d=o.split("/");""===d[0]&&d.shift();const p=t.length?t.map((e=>e.replace(/\s+/g,"-"))):[];let l=[];return c.tags&&(c.tags=decodeURIComponent(c.tags),l=Array.isArray(c.tags)?c.tags:[c.tags]),e.dfp_adUnit1=d[1]??"",e.dfp_adUnit2=d[2]??"",e.type=c.asset_type??"",e.article={destinations:c.destinations_structured??[],keyword:n??c.keyword??"",name:document.title},e.channel=i,e.column=c.column??"",e.section=s,e.story_id=r,e.subsection=a,e.tags=l,e.topics=p,e};const le=()=>{const e=window.innerWidth;return e<400?1:e<600?2:e<768?3:e<1008?4:e<1280?5:6},me=(!!window.dotcom?.flags&&j.meetsRequirements(window.dotcom.flags),()=>{const e={prod:"",pillar:"",sect:"",pagetype:"",page_id:"",grp:0,pas_tags:[],top_tags:[],coll:[]};ne();const{pillar:o,sect:t,page_type:n,page_id:i,pas_tags:s,top_tags:a,coll:r}=se().newKeyValues;return e.prod="bbccom",e.pillar=o,e.sect=t,e.pagetype=n,e.page_id=i,e.grp=le(),e.pas_tags=s?s.split(","):[],e.top_tags=a?a.split(","):[],e.coll=r?r.split(","):[],e}),ue=()=>{const{xPlatform:e}=window.dotcom.config;return e?me():pe()},we=X("permutive"),ge=()=>{if(!window.permutive)return;we("Track page view");const e=ue();window.permutive.addon("web",{page:{classifications_watson:{categories:"$alchemy_taxonomy",concepts:"$alchemy_concepts",emotion:"$alchemy_document_emotion",entities:"$alchemy_entities",keywords:"$alchemy_keywords",sentiment:"$alchemy_document_sentiment",taxonomy_labels:"$alchemy_taxonomy_labels"},...e}})},fe=e=>{if("string"!=typeof e)return null;const o=e.split(":").map((e=>parseInt(e,10)));switch(o.length){case 3:return 60*o[0]*60+60*o[1]+o[2];case 2:return 60*o[0]+o[1];case 1:return o[0]}return null};let be=0;const ve=(e,o)=>{const{play_id:t,properties:{ad:n,video:i,xContext:s,enriched_data:a}}=o;return"ad"===e?{play_id:t,ad:n,video:i,...s,enriched_data:a}:{play_id:t,video:i,...s,enriched_data:a}},he=(e,o)=>{const{permutive:t}=window;switch(e.type){case"playlistLoaded":{const n=e.playlist?.title,i=e.playlist?.groupId,s=e.playlist?.summary,a=fe(e.playlist?.programmeDuration),{video:r}=o.properties;n&&(r.name=n),i&&(r.video_id=i),s&&(r.description=s),a&&(r.duration=a);const c=ve("video",o);t.track("VideoLoad",c)}break;case"adsPlugin":switch(e.id){case"adRequest":o.adsActive=!0;break;case"adDuration":o.properties.ad.duration=e.duration;break;case"adStarted":{const e=ve("ad",o);t.track("VideoAdPlay",e)}break;case"adProgress":{let n=0;switch(e.progress){case"firstQuartile":n=25;break;case"midpoint":n=50;break;case"thirdQuartile":n=75;break;case"complete":n=100}const i={...ve("ad",o),progress:n};t.track("VideoAdProgress",i)}break;case"adClick":{const e=ve("ad",o);t.track("VideoAdClick",e)}break;case"adData":o.properties.ad.creative_id=parseInt(e.info.creativeId,10),o.properties.ad.lineitem_id=parseInt(e.info.adId,10)}break;case"bbc.smp.plugins.ads.event.AdsPluginExternalEvent.ALL_ADS_COMPLETED":o.adsActive=!1;break;case"playing":if(!o.adsActive){const e=ve("video",o);t.track("VideoPlay",e)}break;case"timeupdate":{const n=(e=>e>=75?.75:e>=50?.5:e>=25?.25:0)(Math.floor(e.currentTime)/Math.floor(e.duration)*100);if(n===be)break;if(0===n)break;const i={...ve("video",o),progress:n};t.track("VideoProgress",i),be=n}break;case"ended":{const e={...ve("video",o),progress:1};t.track("VideoProgress",e)}break;case"fullscreenEnter":case"fullscreenExit":case"picInPicStarted":case"picInPicStopped":{const n={fullscreenEnter:"Full screen on",fullscreenExit:"Full screen off",picInPicStarted:"Picture in picture on",picInPicStopped:"Picture in picture off"},i=o.adsActive?"VideoAdEvent":"VideoEvent",s=o.adsActive?"ad":"video",a=ve(s,o);t.track(i,{...a,event:n[e.type]})}}};const ye=X("permutive"),ke=["playing","adsPlugin","timeupdate","fullscreenEnter","fullscreenExit","picInPicStarted","picInPicStopped","ended","playlistLoaded","bbc.smp.plugins.ads.event.AdsPluginExternalEvent.ALL_ADS_COMPLETED"],_e=()=>{if(!window.permutive)return;ye("Track video events");const e=()=>{let e=0;const o=setInterval((()=>{e+=1;const t=window?.embeddedMedia?.api?.players(),n=0===Object.keys(t).length&&t.constructor===Object;return n&&40===e?(ye(".embeddedMedia.api.players() returned no players after 40 attempts"),clearInterval(o),!1):!n&&(ye(`.embeddedMedia.api.players() returned players after ${e} attempts`),(e=>{const o=pe();Object.keys(e).forEach((t=>{const n=e[t],{player:{playlist:i}}=n,s={play_id:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const o=Math.floor(16*Math.random());return("x"===e?o:3&o|8).toString(16)})),adsActive:!1,properties:{ad:{},video:{},enriched_data:o}};if(i){const e=i?.title,o=i?.groupId,t=i?.summary,n=fe(i?.programmeDuration),{video:a}=s.properties;e&&(a.name=e),o&&(a.video_id=o),t&&(a.description=t),n&&(a.duration=n)}ke.forEach((e=>{n.bind(e,(e=>{he(e,s)}))}))}))})(t),clearInterval(o),!0)}),100)};(()=>{let o=0;const t=setInterval((()=>(o+=1,window.embeddedMedia||40!==o?!!window.embeddedMedia&&(ye(`.embeddedMedia found after ${o} attempt(s)`),e(),clearInterval(t),!0):(ye(".embeddedMedia not found after 40 attempts"),clearInterval(t),!1))),100)})()};let Pe=JSON.parse(JSON.stringify([[0,320],[319,400],[399,600],[599,900],[899,1280],[1279,99999]]));Pe.pop(),Pe[4][1]=99999;const xe=()=>k.isLiveEnv()?"https://federated-id.live.api.bbc.co.uk":"https://federated-id.stage.api.bbc.co.uk",Ie=()=>k.isLiveEnv()?"9g6jrj7o5rpkb":"tups71r2auumu",Ee="fedID.",Se={gam:"gam",permutive:"permutative",piano:"piano",google:"google",ozone:"studios_ozone",mparticle:"studios_mparticle"},Ce={id:Ee,gam:`${Ee}${Se.gam}`,permutive:`${Ee}${Se.permutive}`,piano:`${Ee}${Se.piano}`,google:`${Ee}${Se.google}`,ozone:`${Ee}${Se.ozone}`,mparticle:`${Ee}${Se.mparticle}`},Le={id:".id",version:".version"},Ae="live",$e="other",Te=`${Ce.id}device${Le.id}`,Re=`${Ce.id}device.env`,je=()=>{const{localStorage:e}=window,o={...e};return Object.keys(o).filter((e=>e.includes(Ce.id))).reduce(((e,t)=>{const[,n,i]=t.split(".");return e[n]=n in e?e[n]:{},e[n][i]=o[t],e}),{})},qe=X("targeting");const De=X("permutive"),Oe=async()=>{const{flags:{permutive_cohort:e}}=window.dotcom;if(!e)return;const o=(e=>{try{const o={client:{url:document.URL,referrer:document.referrer,type:"web",user_agent:window.navigator.userAgent,domain:window.location.hostname,title:document.title}};return"object"!=typeof e||Array.isArray(e)?o:{...e,...o}}catch(e){return{}}})(ue());try{const e=await fetch(`https://api.permutive.com/ctx/v1/segment?k=${U}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pageProperties:o,url:document.URL})}),t=await e.json();window.permutive.addon("contextual",t);const n=t.gam||[];!function(e){window.googletag.cmd.push((()=>{0===window.googletag.pubads().getTargeting("prmtvctx").length&&(qe("setPermutiveContextualTargetingGPT"),window.googletag.pubads().setTargeting("prmtvctx",e||[]))}))}(n.concat("rts")),De("Track contextual data")}catch(e){De(`Error:, ${e}`)}},Ue=X("measurePerformance"),ze=(e,o,t)=>{((e,o)=>{if(!o)return!1;const t=[e,o],n=window.performance.getEntriesByType("mark");return t.every((e=>n.some((o=>o.name===e||"{}"===JSON.stringify(e)))))})(o,t)?window.performance.measure(e,o,t):Ue(`Failed to measure ${e}, with: ${o}, ${t}`,N.WARN)},Ne=X("loader");window.dotcom=window.dotcom||{},window.dotcom.loader=window.dotcom.loader||{loading:[],loaded:[],failed:[],waiting:[]};const Me=e=>{e&&(window.performance.mark(`thirdparty-${e}-end`),ze(`thirdparty-${e}-duration`,`thirdparty-${e}-start`,`thirdparty-${e}-end`))},Xe=({name:e,src:o,onLoad:t,onError:n,firstParty:i,legacy:s,id:a,nonce:r})=>{const c=document.createElement("script");c.type="text/javascript",c.async=!0,c.src=o,c.onload=()=>{Me(e),t()},c.onerror=n,s?(c.defer=!0,c.nomodule=!0):i&&(c.type="module"),a&&c.setAttribute("id",a),r&&c.setAttribute("nonce",r),document.head.appendChild(c)},Ve=({src:e,onLoad:o,onError:t})=>{const n=new Image(1,1);n.onload=o,n.onerror=t,n.src=e},Fe=({name:e,src:o,onLoad:t,onError:n})=>{const{require:i}=window;i.config({paths:{[e]:o}});i([e],(o=>(o=>{Me(e),t(o)})(o)),(()=>n()))},Be=(e,o)=>{window.dotcom.loader.waiting[e].forEach((({resolve:t,reject:n})=>{o?t(`${e} has loaded`):n(new Error(`${e} failed to load`))}))},Ge=({name:e,url:o,urlParams:t,requireUrl:n,preLoad:i,onLoad:s,isImage:a,id:r,nonce:c},d,p)=>{window.performance.mark(`thirdparty-${e}-start`);const{requirejs:l,dotcom:m}=window;m.loader.loading.push(e),m.loader.waiting[e]=[],"function"==typeof i&&i(c);const u="function"==typeof t?t():"",w=l&&n?n():o(u);let g=Xe;a&&(g=Ve),l&&n&&(g=Fe),g({name:e,src:w,onLoad:o=>{const t=`load success > ${e}`;Ne(t),m.loader.loaded.push(e),"function"==typeof s&&s(o),d&&d(t),Be(e,!0)},onError:()=>{const o=`load fail > ${e}`;Ne(o),m.loader.failed.push(e),p&&p(new Error(o)),Be(e,!1)},firstParty:!1,legacy:!1,id:r,nonce:c})},Je=e=>window.dotcom.loader.loaded.includes(e),Ke=({name:e,url:o,urlParams:t,requireUrl:n,meetsRequirements:i,preLoad:s,onLoad:a,image:r=!1,id:c=null,nonce:d=null})=>{!window.dotcom.loader.loading.includes(e)&&i(window.dotcom.flags)&&Ge({name:e,url:o,urlParams:t,requireUrl:n,preLoad:s,onLoad:a,image:r,id:c,nonce:d})},He=({name:e,url:o,urlParams:t,requireUrl:n,meetsRequirements:i,preLoad:s,onLoad:a,image:r=!1,id:c=null,nonce:d=""})=>new Promise(((p,l)=>{window.dotcom.loader.loaded.includes(e)?p(`${e} was already loaded`):window.dotcom.loader.failed.includes(e)?l(new Error(`${e} failed to load`)):window.dotcom.loader.loading.includes(e)?window.dotcom.loader.waiting[e].push({resolve:p,reject:l}):i(window.dotcom.flags)?Ge({name:e,url:o,urlParams:t,requireUrl:n,preLoad:s,onLoad:a,image:r,id:c,nonce:d},p,l):l(new Error(`${e} doesn't meet requirements`))})),We=e=>{e.forEach((e=>{Ke(e)}))},Qe=e=>new Promise((o=>{let t=0,n=[];e.forEach((i=>{He(i).then((e=>{n=[...n,e]})).catch((e=>{n=[...n,e]})).then((()=>{t+=1,t===e.length&&o(n)}))}))})),Ze=(e,o,t)=>{Xe({src:e,onLoad:()=>{},onError:()=>{},firstParty:!0,legacy:o,nonce:t})},Ye=(e,o,t)=>new Promise(((n,i)=>{Xe({src:e,onLoad:n,onError:i,firstParty:!0,legacy:o,nonce:t})})),eo=()=>{const o=e("ckns_policy");return o&&"1"===o.charAt(1)},oo=X("permutive-identify"),to=()=>{const{fedid_permutive:e}=window.dotcom.flags,o=[];if(!Je("permutive")||!e||!eo())return;const{permutive:t}=window,n=je(),i=n?.[Se.permutive]?.id;i&&o.push({id:i,tag:"fed_id",priority:3}),window.dotcom.idcta.signedInFedId.permutative&&o.push({id:window.dotcom.idcta.signedInFedId.permutative.id,tag:"fed_id_v2",priority:2});const s=window.localStorage.getItem("fedID.ed.id");s&&o.push({id:s,tag:"email_sha256",priority:0}),oo("calling permutive.identify() with:"),oo(JSON.stringify(o)),t.identify(o)},no={getCustParams:de,trackPageView:ge,addVideoEventListeners:_e,trackContextualdata:Oe,permutiveIdentifyFedId:to};let io=0;let so;const ao=()=>{no.permutiveIdentifyFedId(),no.trackPageView(),no.addVideoEventListeners(),window.googletag.cmd.push((()=>{if(0===window.googletag.pubads().getTargeting(z.name).length){qe("setPermutiveTargetingGPT");const e=window.localStorage.getItem("_pdfps");window.googletag.pubads().setTargeting(z.name,e?JSON.parse(e):[])}}))},ro=async()=>{await re(no.trackContextualdata,10);let o="CMP_NOT_ENABLED";const t=p(z.name);let n=t||!1;if(void 0!==t&&(o="CMP_ENABLED"),n){const t=e("ckns_id");if(t){const e=decodeURIComponent(t),i=window.atob(e);JSON.parse(i).ep?(o+="_SIGNEDIN_PERSONALISED",Q()||window.dotcom.flags.fpd&&(window.dotcomConfig?.tokenRefreshed?Y():so=setInterval((()=>{window.dotcomConfig?.tokenRefreshed?(Y(),clearInterval(so)):(io+=1,4===io&&(clearInterval(so),Z()))}),300))):(n=!1,o+="_SIGNEDIN_NOT_PERSONALISED")}else o+="_NOT_SIGNED_IN"}n?(window.permutive.consent({opt_in:!0,token:o}),await re(ao,10)):(window.gs_channels="DEFAULT",window.permutive.consent({opt_in:!1}),window.googletag.cmd.push((()=>{0!==window.googletag.pubads().getTargeting("permutive").length&&window.googletag.pubads().clearTargeting("permutive")})),Z())},co=async(e,o,t,i)=>{const s=new Event("ngas:consentReady"),a=window.dotcom.consent.string;if(window.dotcom.userinfo.eea&&"gdpr"===e&&i.applies){window.dotcom.consent.gdprApplies=!0,window.dotcom.consent.string=t;const e=i.consentedToAll?"t":"f";window.googletag.cmd.push((()=>{window.googletag.pubads().setTargeting("c_int","yes"),window.googletag.pubads().setTargeting("rdp","na"),window.googletag.pubads().setTargeting("c_tcf",e)})),window.__tcfapi("addEventListener",2,((e,o)=>{o?(async e=>{window.dotcom.consent.vc=e.vendor.consents,d(q.name,e.vendor.consents[77]),d(z.name,e.vendor.consents[361]),d("nielsen",e.vendor.consents[373]&&e.vendor.consents[812]),d(B.name,e.vendor.consents[1104]),d("ozone",e.vendor.consents[524]),e.vendor.consents[77]||e.vendor.consents[361]||e.vendor.consents[373]||e.vendor.consents[812]||e.vendor.consents[1104]||e.vendor.consents[524]?r(n):r(1)})(e):r(1),window.dispatchEvent(s)}),[77,361,373,812,1104,524])}"usnat"===e&&i.applies&&(window.dotcom.consent.gppApplies=!0,window.dotcom.consent.string=t,window.__gpp("ping",((e,o)=>{o?(e=>{window.dotcom.consent.usNatObject=e;const{SaleOptOut:o=1,SharingOptOut:t=1,TargetedAdvertisingOptOut:i=1}=e;1===o&&1===t&&1===i?(d(q.name,!1),d(z.name,!1),d("nielsen",!1),d(B.name,!1),d("ozone",!1),r(1)):(d(q.name,!0),d(z.name,!0),d("nielsen",!0),d(B.name,!0),d("ozone",!0),r(n))})(Object.values(e.parsedSections)[0]):r(n),window.dispatchEvent(s)}))),window.dotcom.consent.messages.push(e),2!==window.dotcom.consent.messages.length||window.dotcom.consent.gppApplies||window.dotcom.consent.gdprApplies||(r(n),window.dispatchEvent(s),console.warn("NGAS - No sourcepoint messages apply")),a&&!0===window.dotcom.flags.adverts&&!0===window.dotcom.config.allowAdvertising&&Je(z.name)&&await ro()},po={name:"sourcepoint",url:()=>"https://cdn.privacy-mgmt.com/unified/wrapperMessagingWithoutDetection.js",preLoad:e=>{window.addEventListener("ngas:consentReady",(()=>{window.dotcom.consent.consentReady=!0}));const o=document.createElement("script");o.innerHTML='"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t=function(){var t,e,o=[],n=window,r=n;for(;r;){try{if(r.frames.__tcfapiLocator){t=r;break}}catch(t){}if(r===n.top)break;r=r.parent}t||(!function t(){var e=n.document,o=!!n.frames.__tcfapiLocator;if(!o)if(e.body){var r=e.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",e.body.appendChild(r)}else setTimeout(t,5);return!o}(),n.__tcfapi=function(){for(var t=arguments.length,n=new Array(t),r=0;r3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof n[2]&&n[2]("set",!0)):"ping"===n[0]?"function"==typeof n[2]&&n[2]({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"}):o.push(n)},n.addEventListener("message",(function(t){var e="string"==typeof t.data,o={};if(e)try{o=JSON.parse(t.data)}catch(t){}else o=t.data;var n="object"===_typeof(o)&&null!==o?o.__tcfapiCall:null;n&&window.__tcfapi(n.command,n.version,(function(o,r){var a={__tcfapiReturn:{returnValue:o,success:r,callId:n.callId}};t&&t.source&&t.source.postMessage&&t.source.postMessage(e?JSON.stringify(a):a,"*")}),n.parameter)}),!1))};"undefined"!=typeof module?module.exports=t:t()}();',e&&o.setAttribute("nonce",e),document.head.appendChild(o),window.__gpp_addFrame=function(e){if(!window.frames[e])if(document.body){var o=document.createElement("iframe");o.style.cssText="display:none",o.name=e,document.body.appendChild(o)}else window.setTimeout(window.__gpp_addFrame,10,e)},window.__gpp_stub=function(){var e=arguments;if(__gpp.queue=__gpp.queue||[],__gpp.events=__gpp.events||[],!e.length||1==e.length&&"queue"==e[0])return __gpp.queue;if(1==e.length&&"events"==e[0])return __gpp.events;var o=e[0],t=e.length>1?e[1]:null,n=e.length>2?e[2]:null;if("ping"===o)t({gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}},!0);else if("addEventListener"===o){"lastId"in __gpp||(__gpp.lastId=0),__gpp.lastId++;var i=__gpp.lastId;__gpp.events.push({id:i,callback:t,parameter:n}),t({eventName:"listenerRegistered",listenerId:i,data:!0,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else if("removeEventListener"===o){for(var s=!1,a=0;a<__gpp.events.length;a++)if(__gpp.events[a].id==n){__gpp.events.splice(a,1),s=!0;break}t({eventName:"listenerRemoved",listenerId:n,data:s,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else"hasSection"===o?t(!1,!0):"getSection"===o||"getField"===o?t(null,!0):__gpp.queue.push([].slice.apply(e))},window.__gpp_msghandler=function(e){var o="string"==typeof e.data;try{var t=o?JSON.parse(e.data):e.data}catch(e){t=null}if("object"==typeof t&&null!==t&&"__gppCall"in t){var n=t.__gppCall;window.__gpp(n.command,(function(t,i){var s={__gppReturn:{returnValue:t,success:i,callId:n.callId}};e.source.postMessage(o?JSON.stringify(s):s,"*")}),"parameter"in n?n.parameter:null,"version"in n?n.version:"1.1")}},"__gpp"in window&&"function"==typeof window.__gpp||(window.__gpp=window.__gpp_stub,window.addEventListener("message",window.__gpp_msghandler,!1),window.__gpp_addFrame("__gppLocator")),window._sp_queue=[],window._sp_={config:{accountId:1786,baseEndpoint:"https://cdn.privacy-mgmt.com",gdpr:{},usnat:{},events:{onConsentReady:co}}}},meetsRequirements:e=>window.location!==window.parent.location?(window.dispatchEvent(new Event("ngas:consentReady")),!1):void 0!==e.cmp&&e.cmp};const lo="ckns_id",mo="tkn-exp";let uo,wo;const go=()=>{const e=wo.fi;window.dotcom.idcta.signedInFedId=e||{},e&&Object.keys(e).length?(e.gam&&window.googletag.cmd.push((()=>{window.googletag.pubads().setTargeting("fedid_sig_val",e.gam.id),window.googletag.pubads().setTargeting("fedid_sig_ver",e.gam.version)})),e.google&&function(e){if(window.dotcom.idcta.signedIn&&!e)return;(a()?s()===n:c()===n)&&(window.dotcom.ads.ppid=e||window.localStorage.getItem(`${Ce.id}google${Le.id}`)||"",window.googletag.cmd.push((()=>{window.googletag.pubads().setPublisherProvidedId(window.dotcom.ads.ppid)})))}(e.google.id),e.piano&&(window.localStorage.setItem("fedID.piano.user_id",e.piano.id),window.localStorage.setItem("fedID.piano.user_version",e.piano.version)),e.studios_ozone&&window.localStorage.setItem("fedID.studios_ozone.user_id",e.studios_ozone.id),wo.ed&&(window.localStorage.setItem("fedID.ed.id",wo.ed.id),window.localStorage.setItem("fedID.ed.version",wo.ed.version))):console.log('dotcom:bootstrap idcta error: ckns_id cookie "fi" value either not present or is an empty object. This could be valid if user has turned off certain cookies')},fo=async e=>{const o=window.atob(e);wo=JSON.parse(o);const{[mo]:t}=wo,n=new Date(t-6e5);if(Date.now(){let e="https://idcta.api.bbc.com/idcta/config";k.isTestEnv(window.location.href)&&(e="https://idcta.test.api.bbc.com/idcta/config"),k.isStageEnv(window.location.href)&&(e="https://idcta.stage.api.bbc.com/idcta/config");const o=await fetch(e,{cache:"no-store"});if(!o.ok)throw new Error(`ID CTA Config Endpoint returned ${o.status}`);return uo=await o.json(),"GREEN"===uo["id-availability"]})()){const e=await fetch(uo.signin_url,{credentials:"include",headers:{"Content-Type":"application/json"}});if(!e.ok)throw new Error(`ensureTokens fail - ${uo.signin_url} returned ${e.status}`);return"ensureTokens success - token refreshed!"}throw new Error("ensureTokens fail - idcta is down")};X("xpel"),((e=window.location.href)=>{k.isTestEnv(e)||k.isStageEnv(e)})();var bo=t(379),vo=t.n(bo),ho=t(795),yo=t.n(ho),ko=t(569),_o=t.n(ko),Po=t(565),xo=t.n(Po),Io=t(216),Eo=t.n(Io),So=t(589),Co=t.n(So),Lo=t(110),Ao={};Ao.styleTagTransform=Co(),Ao.setAttributes=xo(),Ao.insert=_o().bind(null,"head"),Ao.domAPI=yo(),Ao.insertStyleElement=Eo();vo()(Lo.Z,Ao);Lo.Z&&Lo.Z.locals&&Lo.Z.locals;const $o={name:"theMediaTrust",url:()=>"https://scripts.webcontentassessor.com/scripts/64ca3dfd44dd68a629e2e51a27e7ccd960974b5961e4ca2897139d14bf10be8b",meetsRequirements:e=>void 0!==e.tmt_media_filter&&e.tmt_media_filter},To={name:"gpt",url:()=>"https://securepubads.g.doubleclick.net/tag/js/gpt.js",nonce:"",meetsRequirements:e=>void 0!==e.adverts&&e.adverts&&window.dotcom.config.pageAds},Ro=(new URLSearchParams(window.location.search),{name:"speedcurve",preLoad:()=>{LUX=function(){function e(){return Date.now?Date.now():+new Date}var o,t=e(),n=window.performance||{},i=n.timing||{navigationStart:(null===(o=window.LUX)||void 0===o?void 0:o.ns)||t};function s(){return n.now?(o=n.now(),Math.floor(o)):e()-i.navigationStart;var o}(LUX=window.LUX||{}).ac=[],LUX.addData=function(e,o){return LUX.cmd(["addData",e,o])},LUX.cmd=function(e){return LUX.ac.push(e)},LUX.getDebug=function(){return[[t,0,[]]]},LUX.init=function(){return LUX.cmd(["init"])},LUX.mark=function(){for(var e=[],o=0;o"https://cdn.speedcurve.com/js/lux.js?id=4446653400",meetsRequirements:e=>{let o=void 0!==e.speedcurve&&e.speedcurve&&100*Math.random()<2;const t=R.isNewPlatform()?`dotcom-${window.dotcom.data.asset_type}-${window.dotcom.data.channel}`:R.isWebcore()&&!0===window.dotcom.userinfo.notUkIp?"webcore":"";return!!o&&(window.LUX=window.LUX||{},LUX.label=t,!0)}}),jo="doubleverify",qo={name:jo,url:()=>"https://pub.doubleverify.com/dvtag/29028254/DV1298722/pub.js",onLoad:()=>{window.onDvtagReady=(e,o=750)=>{if(!Je(jo))return void(e&&e());window.dvtag=window.dvtag||{},window.dvtag.cmd=window.dvtag.cmd||[];const t={callback:e,timeout:o,timestamp:(new Date).getTime()};window.dvtag.cmd.push((()=>{window.dvtag.queueAdRequest(t)})),setTimeout((()=>{const e=t.callback;t.callback=null,e&&e()}),o)}},meetsRequirements:e=>void 0!==e.doubleverify&&e.doubleverify},Do=X("piano"),Oo={test:{endpoint:"https://buy-eu.piano.io/api/v3",aid:"ARbzz6ZBpe",cxenseSiteId:null},live:{endpoint:"https://buy-eu.piano.io/api/v3",aid:"7I7hmRshpe",cxenseSiteId:"3606632254074155369"}},Uo=o=>{Do(`Initializing with ${o}`);const{tp:t}=window,n=k.isTestEnv()?"test":"live",i=Oo[n],s=(e,o)=>{window.tp.consent.setByPurpose(e,o)},a=()=>window.dotcom.consent.gdprApplies?"essential":"opt-in",r=e=>{e?window.tp.consent.setAllPurposes("opt-in"):(s("CP","opt-out"),s("PR","opt-out"),s("AM",a()))};t.push(["setEndpoint",i.endpoint]),t.push(["setAid",i.aid]),t.push(["setCxenseSiteId",i.cxenseSiteId]),t.push(["setSandbox",!1]),t.push(["setDebug",k.isAdsDebug()]),t.push(["setUseTinypassAccounts",!1]),t.push(["setUsePianoIdUserProvider",!1]),t.push(["setUsePianoIdLiteUserProvider",!0]),o&&window.tp.push(["setExternalJWT",o]);const c=window.location.pathname.split("/").filter(Boolean);window.tp.push(["setTags",c]),t.push(["init",function(){Do("piano callback init");const o=(!!e("ckns_policy")?e("ckns_policy"):void 0)??"",t="1"===o.charAt(1),n="1"===o.charAt(2),i=t&&n,s=window.tp.consent.getByPurpose();if(!s)return r(i),void window.tp.experience.init();const c=["CP","PR","AM"].every((e=>{const o=s?.[e],t=o?.mode;if(t)return"opt-in"===t;if("AM"===e){const e=a();return"opt-in"===e||"essential"===e}return i}));i!==c&&r(i),window.tp.experience.init()}])},zo=window.matchMedia("(pointer: coarse)").matches,No=window.matchMedia("(max-width: 1024px)").matches,Mo=window.navigator.maxTouchPoints>0,Xo="ontouchstart"in document.documentElement,Vo=()=>zo&&Mo&&No&&Xo,Fo=X("piano"),Bo={test:{url:"https://xproxy.test.api.bbc.com"},live:{url:"https://xproxy.api.bbc.com"}},Go={name:"piano",url:()=>"//cdn.tinypass.com/api/tinypass.min.js",meetsRequirements:e=>"undefined"!==e.piano&&e.piano&&R.isSportsIndexOrHomePage()&&!Vo(),onLoad:()=>{Fo("onLoad");const o=!!e(lo),t=k.isTestEnv()?"test":"live",n=Bo[t],i=document.querySelector("#root");if(!i||0===i.children.length||0===i.children[i.children.length-1].children.length||Vo())return void Fo("Required DOM elements not found. Cannot append subliminal banner. Aborting.");const s=document.createElement("div");if(s.id="subliminal-banner",s.classList="ngas-subliminal-banner",i.children[i.children.length-1].children[0].append(s),o){const o=async()=>{Fo("Fetching cookies from xproxy");const o=e(lo);await fo(o),await fetch(`${n.url}/piano/token-exchange`,{credentials:"include",method:"POST"})};let t=e("ckns_registration");t?Uo(t):o().then((()=>{t=e("ckns_registration"),Uo(t)})).catch((e=>{Fo("Error fetching cookies from xproxy:",e)}))}else Uo()},onerror:e=>{Fo("failed to load:",e)}},Jo={name:"pianoARI",url:()=>"https://cdn.cxense.com/ari.js",meetsRequirements:e=>void 0!==e.piano_ari&&e.piano_ari&&(R.isNewPlatform()||R.isWebcore())},Ko=X("fedid:remote");async function Ho(e,o){const t=`${xe()}/v2/encryptdeviceid`,n={device_id:e,third_party:o};try{const e=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":Ie()},body:JSON.stringify(n)});if(!e.ok)return Ko(`encryptDeviceId | HTTP error ${e.status} for ${o}`,N.ERROR),!1;const i=await e.json();if("{}"!==JSON.stringify(i)){const{encryptedDeviceId:e,keyVersion:t}=i;return window.localStorage.setItem(`${Ce.id}${o}${Le.id}`,e),window.localStorage.setItem(`${Ce.id}${o}${Le.version}`,t),Ko(`${o}.id: ${e}, stored`),Ko(`${o}.version: ${t}, stored`),i}Ko("Encrypted device ID is not available",N.ERROR)}catch(e){Ko(`Error encrypting device ID ${e.message}`,N.ERROR)}}const Wo=async()=>{const e=window.localStorage.getItem(Te),o=window.localStorage.getItem(Re),t=o&&(k.isLiveEnv()&&o===Ae||!k.isLiveEnv()&&o===$e);if(e&&t){const o=await(async()=>{const e=`${xe()}/v2/getlatestkeys`;try{const o=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json","X-API-KEY":Ie()}});if(!o.ok)return Ko(`getLatestKeys | HTTP error ${o.status}`,N.ERROR),!1;const t=await o.json();return!!Array.isArray(t)&&t}catch(e){return Ko(`Error getLatestKeys ${e.message}`,N.ERROR),!1}})();Object.values(Se).map((async t=>{const n=o.filter((e=>e.thirdParty===t)),{keyVersion:i}=n[0];i!==window.localStorage.getItem(`${Ce.id}${t}${Le.version}`)&&Ho(e,t)}))}else{const e=await async function(){const e=`${xe()}/getdeviceid`;try{const o=await fetch(e,{headers:{"X-API-KEY":Ie()}});if(!o.ok)return Ko(`HTTP error ${o.status}`,N.ERROR),!1;const t=await o.text();if(t.length>0)return window.localStorage.setItem(Te,t),window.localStorage.setItem(Re,k.isLiveEnv()?Ae:$e),Ko(`uuid: ${t}, stored`),t;Ko("UUID is not available",N.ERROR)}catch(e){return Ko(`Error fetching uuid: ${e.message}`,N.ERROR),!1}}();Ho(e,Se.gam),Ho(e,Se.permutive),Ho(e,Se.piano),Ho(e,Se.google),Ho(e,Se.ozone),Ho(e,Se.mparticle)}},Qo=X("fedid"),Zo=async()=>{const{fedid_all:e}=window.dotcom.flags,o=await new Promise((e=>{window.dotcom.consent.consentReady?e(c()===n):window.addEventListener("ngas:consentReady",(()=>{e(c()===n)}))}));if(!eo()||!o){const{localStorage:e}=window;return e.removeItem(Ce.id),e.removeItem(`${Ce.id}${Se.gam}${Le.id}`),e.removeItem(`${Ce.id}${Se.gam}${Le.version}`),e.removeItem(`${Ce.id}${Se.google}${Le.id}`),e.removeItem(`${Ce.id}${Se.google}${Le.version}`),e.removeItem(`${Ce.id}${Se.permutive}${Le.id}`),e.removeItem(`${Ce.id}${Se.permutive}${Le.version}`),e.removeItem(`${Ce.id}${Se.piano}${Le.id}`),e.removeItem(`${Ce.id}${Se.piano}${Le.version}`),e.removeItem(`${Ce.id}${Se.ozone}${Le.id}`),e.removeItem(`${Ce.id}${Se.ozone}${Le.version}`),e.removeItem(`${Ce.id}${Se.mparticle}${Le.id}`),e.removeItem(`${Ce.id}${Se.mparticle}${Le.version}`),e.removeItem("fedID.piano.user_id"),e.removeItem("fedID.piano.user_version"),e.removeItem("fedID.studios_ozone.user_id"),e.removeItem("fedID.ed.id"),e.removeItem("fedID.ed.version"),e.removeItem(Te),void e.removeItem(Re)}e?Wo():Qo('"fedid_all" flag disabled')},Yo=X("banner");let et='
';function ot(){const e=document.createElement("div");e.innerHTML=et,document.body.appendChild(e),function(){const e=Date.now();Yo("initialise cookies"),o("ckns_policy","000",365),o("ckns_policy_exp",e,365),o("ckns_explicit","0",365),o("ckns_privacy","july2019",365)}()}function tt(e){Yo("user interaction"),document.getElementById("cookiePrompt")&&(document.getElementById("cookiePrompt").style.display="none"),o("ckns_explicit","2",365),e&&o("ckns_policy","111",365)}function nt(){return R.isNewPlatform()&&window.dotcom.userinfo.eea&&window.dotcom.flags.banner?(("2"===e("ckns_explicit")?(Yo("no need to get consent"),0):(Yo("consent required"),1))&&(ot(),document.getElementById("bbccookies-continue-button")&&document.getElementById("bbccookies-continue-button").addEventListener("click",(()=>{tt(!0)})),document.getElementById("bbccookies-settings")&&document.getElementById("bbccookies-settings").addEventListener("click",(()=>{tt(!1)}))),!0):(Yo("requirements not met"),!1)}et+='
',et+='
',et+='

Let us know you agree to cookies

',et+='
',et+='

We use cookies to give you the best online experience.

',et+='

Please let us know if you agree to all of these cookies.

',et+="
",et+='
";const it={name:"survey",url:()=>"https://gn-web-assets.api.bbc.com/ngas/vendor/edr/edr.min.js",meetsRequirements:e=>R.isNewPlatform()?void 0!==e.surveyx&&e.surveyx&&!window.EDRSurvey:void 0!==e.survey&&e.survey&&!window.EDRSurvey},st=()=>{if(R.isWorldService()){const e=(()=>{let e=document.querySelector('script[src="proxy.php?url=https://gn-web-assets.api.bbc.com/ngas/latest/dotcom-bootstrap.js"]');return e||(e=document.querySelector('script[src="proxy.php?url=https://gn-web-assets.api.bbc.com/ngas/latest/test/dotcom-bootstrap.js"]')),e})();if(e){const{nonce:o}=e;if(o)return qo.nonce=o,To.nonce=o,q.nonce=o,po.nonce=o,Ro.nonce=o,it.nonce=o,$o.nonce=o,o}}return""};window.performance.mark("bootstrap-js-load"),ze("bootstrap-js-load-from-page-start",{},"bootstrap-js-load");const at="https://gn-web-assets.api.bbc.com/ngas";let rt="";rt="latest/";let ct="";const dt=`${at}/${rt}dotcom-ads.js`,pt=`${at}/${rt}dotcom-analytics.js`,lt=`${at}/${rt}dotcom-preroll.js`,mt=()=>{["https://securepubads.g.doubleclick.net","https://pagead2.googlesyndication.com","https://prebid.the-ozone-project.com","https://elb.the-ozone-project.com","https://bbc.gscontxt.net","https://cdn.permutive.com","https://api.permutive.com","https://cdn.adsafeprotected.com","https://static.adsafeprotected.com"].forEach((e=>{const o=document.createElement("link");o.href=e,o.rel="preconnect",document.head.appendChild(o)}))},ut=()=>!0===window.dotcom.flags.adverts&&!0===window.dotcom.config.allowAdvertising,wt=()=>{const{gdprApplies:e,ccpaApplies:o,gppApplies:t}=window.dotcom.consent;e&&window._sp_.gdpr.loadPrivacyManagerModal("779247"),o&&window._sp_.ccpa.loadPrivacyManagerModal("648383"),t&&window._sp_.usnat.loadPrivacyManagerModal("1268496")};window.dotcom=window.dotcom||{},window.dotcom.cmd=window.dotcom.cmd||[],window.dotcom.userinfo={state:0,eea:!0,country:"gb",ads:!1,notUkIp:!1,...window.dotcom.userinfo},window.dotcom.flags={state:0,adverts:!1,idcta:!1,...window.dotcom.flags},window.dotcom.consent={sp:n,vendor:{},messages:[]},window.dotcom.idcta={available:!1,signedInFedId:{},signedIn:!1},window.dotcom.showSourcePointMessage=wt,window.dotcom.openPrivacyManagerModal=wt,window.googletag=window.googletag||{cmd:[]};const gt=Object.freeze({pageAds:!0,playerAds:!0,lang:"en",adCampaign:"",topics:[],allowAdvertising:!0,opsFlags:"",ngasFlags:"",userinfo:"",xPlatform:!1,comscorekw:"",adsSubsection:"",pageData:{}});window.dotcom.config={...gt,...window.dotcom.config};const ft=(e,o)=>{if(null===o)return;const t=(e=>Object.keys(gt).find((o=>o.toLowerCase()===e.toLowerCase())))(e);void 0!==t?window.dotcom.config[t]=o:k.isAdsDebug()&&console.log(`dotcom invalid config key: ${e}`)};window.dotcom.setConfig=ft;let bt=[],vt=[],ht=[];if(window.dotcom.ads&&window.dotcom.ads.resolves){const{resolves:e}=window.dotcom.ads;e&&(e.getAdTag&&(bt=e.getAdTag.slice()),e.getAudioAdTag&&(vt=e.getAudioAdTag.slice()),e.enabled&&(ht=e.enabled.slice()),delete window.dotcom.ads.resolves)}window.dotcom.ads={instances:{},resetAds:()=>{},destroySlot:()=>{},registerSlot:(e,o,t,n)=>{ut()&&window.dotcom.cmd.push((()=>{window.dotcom.ads.registerSlot(e,o,t,n)}))},enabled:k.isAdsEnabled,setTargeting:(e,o)=>{((e,o)=>{window.googletag.cmd.push((()=>{window.googletag.pubads().setTargeting(e,o)}))})(e,o)},getAdTag:()=>new Promise((e=>{void 0!==window.dotcom.ads.adTag?Qe([qo]).then((()=>window.dotcom.ads.adTag())).then((o=>{e(o)})):ut()&&window.dotcom.config.playerAds?bt.push(e):e("")})),getAudioAdTag:e=>new Promise((o=>{void 0!==window.dotcom.ads.audioAdTag?o(window.dotcom.ads.audioAdTag(e)):ut()&&window.dotcom.config.playerAds?vt.push({promiseResolve:o,stationId:e}):o("")}))};const yt={};if(window.bbcdotcom){const e=window.bbcdotcom;e.pubsub.on=(e,o)=>{yt[e]||(yt[e]=[]),yt[e].push(o)},e.pubsub.off=(e,o)=>{if(yt[e]){const t=yt[e].indexOf(o);-1!==t&&yt[e].splice(t,1)}},e.pubsub.trigger=(e,o)=>{yt[e]&&yt[e].forEach((e=>e(o)))}}const kt=(e=!0)=>{bt.length>0&&(bt.forEach((o=>o(e?window.dotcom.ads.getAdTag():""))),bt=[]),vt.length>0&&(vt.forEach((o=>o.promiseResolve(e?window.dotcom.ads.getAudioAdTag(o.stationId):""))),vt=[])},_t=async o=>{var t;window.dotcom.consent.gdprApplies||window.dotcom.consent.ccpaApplies||(t=!0,window.dotcom.consent={...window.dotcom.consent,useNative:t});const i=e(lo);window.dotcom.idcta.signedIn=!!i;const r=a()?s()===n:c()===n;if((e=>{e?window.localStorage.setItem("consented","true"):window.localStorage.removeItem("consented")})(r),window.dotcom.flags.fedid_signed&&i&&r){await fo(i).catch((e=>{console.log(`dotcom:bootstrap ensureTokens failed because: ${e.toString()}`)}))&&go()}ut()?(We([z,B,qo]),Ye(dt,ct,o).then((()=>{!0===window.dotcom.flags.analytics&&Ze(pt,ct,o),Ke(Go),(()=>{const e=()=>Ke(Ro);window.requestIdleCallback?window.requestIdleCallback(e):setTimeout(e,2e3)})()})),window.dotcom.config.playerAds?(window.requirejs&&(window.requirejs.onError=()=>{console.log("Swallow requirejs error")}),Ye(lt,ct,o).then(kt)):kt(!1)):(kt(!1),(()=>{let e;if(window.bbcdotcom){if("news"===se().channel){const e=document.getElementsByClassName("nw-c-leaderboard-ad");e.length&&(e[0].style.height="0px")}"sport"===se().channel&&(e=document.getElementById("bbccom_leaderboard_1_2_3_4"),e&&(e.style.height="0px",e.style.paddingBottom="0px"))}else e=document.getElementById("dotcom-leaderboard"),e&&(e.style.height="0px")})(),!0===window.dotcom.flags.analytics&&Ze(pt,ct,o)),window.performance.mark("bootstrap-js-complete"),ze("bootstrap-js-duration","bootstrap-js-load","bootstrap-js-complete"),ze("bootstrap-js-complete-from-page-start",{},"bootstrap-js-complete")},Pt=async()=>{if(!0===window.dotcom.userinfo.notUkIp&&!0===window.dotcom.userinfo.ads){k.checkCookies(),ie();const e=st();if(nt(),window.location.hostname&&window.location.hostname.includes(".co.uk"))return window.dotcom.flags.adverts=!1,window.dotcom.flags.analytics=!1,window.dotcom.flags.zephr=!1,window.dotcom.flags.xproxy=!1,void _t(e);const o=[$o,To];if(ut()&&!window.dotcom.userinfo.eea){try{await He(Jo)}catch(e){console.log(e.message.includes("doesn't meet requirements")?"piano ARI isn't required for this page, skipping":e)}We(o)}try{await He(po)}catch(t){return Ke(Jo),We(o),void await _t(e)}if(await new Promise((e=>{window.dotcom.consent.consentReady?e():window.addEventListener("ngas:consentReady",(()=>{e()}))})),ut()&&!window.dotcom.userinfo.eea)try{await Ke(j)}catch(e){console.log(e)}if(ut()&&window.dotcom.userinfo.eea){try{await He(Jo)}catch(e){console.log(e.message.includes("doesn't meet requirements")?"piano ARI isn't required for this page, skipping":e)}await Qe([j,...o])}await _t(e)}};var xt;window.dotcom.featuresInited=!1,window.dotcom.locationChange=e=>{var o;k.syncAdsEnabled()&&(R.isFeaturesSite()&&window.dotcom.featuresInited&&(se().keyValues.pageType!==e.keyValues.pageType&&window.dotcom.ads.destroySlots(),se().channel!==e.keyValues.channel&&window.dotcom.ads.destroySlots()),o=e?e.keyValues:null,delete window.dotcom.data,ie(o),R.isFeaturesSite()||(window.dotcom.ads.resetAds(),window.dotcom.reinitAds()))},xt=window.dotcomConfig||{},Object.keys(xt).forEach((e=>{ft(e,xt[e])})),ft("lang",document.documentElement.lang||window.dotcom.config.lang||gt.lang),(async()=>{await k.init().catch((e=>{console.log(e)})),k.isDotcomAllowed()&&ut()&&mt(),window.dotcom.userinfo.state>0&&window.dotcom.flags.state>0?(Pt(),Zo()):(window.dotcom.userinfo.state<0||window.dotcom.flags.state<0)&&(window.dotcom.consent.consentReady=!0,r(n),window.dispatchEvent(new Event("ngas:consentReady"))),ht.length&&ht.forEach((e=>{k.isAdsEnabled().then((o=>{e(o)}))}))})()}()}();