=200)return e.flatMap((function(e){return e.key===t.key?[e,(0,i.jsx)(Jy,{isCommentingEnabled:G,pageId:(0,Au.x)(C)},"viafouraCarousel")]:e}))}}return e}(V,le(7)),V=(e=>{let t=[],n=-1;return e.forEach(((e,r)=>{e.key.startsWith("markup")&&e.props?.data?.markup?.includes("")?(n=r,t.push(e)):(e=>{const t=e.toLowerCase();return["taboola","adslottead","components"].some((e=>t.includes(e)))})(e.key)&&-1!==n?t.splice(n+1,0,e):t.push(e)})),t})(V);var se=z||$?"Below Article Thumbnails - Subscription":"Below Article Thumbnails";return(0,i.jsxs)(Ib,Db({id:"content-wrapper",className:C.polar?"sponsored-article":"",isPremiumArticleLayout:D,isWideArticle:Ve.tx.includes(h)},{children:[(0,i.jsxs)("div",Db({className:"article-header","data-testid":"article-header"},{children:[(0,i.jsxs)(qb,Db({isPremiumArticleLayout:D},{children:[(0,i.jsx)(Em,{article:C}),(0,i.jsx)(Yh,{hierarchy:C.hierarchy,article:C})]})),(0,i.jsxs)(mm,Db({id:C.polar&&"native-content-title","data-testid":"article-title",isPremiumArticleLayout:D,className:"article-title"},{children:[j&&(0,i.jsx)(Bb,{children:"Exclusive:"}),C.title]})),O&&(0,i.jsx)(lt,{rating:+((null===(c=null==C?void 0:C.extra)||void 0===c?void 0:c.starRating)||""),withoutPercentage:!0}),D&&(0,i.jsx)(Bh,{id:C.polar&&"native-content-summary","data-testid":"article-sub-title",dangerouslySetInnerHTML:{__html:W},isPremiumArticleLayout:D,className:"subheadline"})]})),!D&&(0,i.jsx)(Ip,{className:"article-meta","data-testid":"article-meta",article:C,configuration:f,isPremiumArticleLayout:D,isInfiniteScrollEnabled:I}),L&&(0,i.jsx)(Gh,{domain:h}),(0,i.jsxs)(em,Db({adLiteEnabled:z,premium:C.premium,className:"article-content ".concat(J&&"read-more"),isPremiumArticleLayout:D,isAxateEnabled:L},{children:[(0,i.jsx)(Oh,{configuration:f}),!D&&fp(C)&&(0,i.jsx)(Nd,{}),k&&q?(0,i.jsx)(Oy,{article:C,hierarchy:C.hierarchy,tabLabels:["This video","More videos"],tabComponents:[{component:zh,props:{article:C,content:V,isPremium:D,strippedLeadText:W}},{component:Rn,props:{configuration:f,watchThisId:q}}],hydratedComponent:"HeroGrid"}):(0,i.jsx)(zh,{article:C,content:V,isPremium:D,strippedLeadText:W}),J&&(0,i.jsx)("div",Db({id:"continue-reading-overlay"},{children:(0,i.jsx)("button",Db({id:"continue-reading-btn"},{children:"Continue Reading"}))}))]})),!C.polar&&!C.sponsorName&&!C.partners&&(0,i.jsx)(Iu,{}),L&&(0,i.jsx)(_u,{}),L&&D&&(0,i.jsx)(Eb,{}),C.partners&&(0,i.jsx)(kb,{article:C}),C.topics&&!D&&!I&&(0,i.jsx)(qy,{article:C,topics:C.topics.filter((function(e){var t=e.path;return!/matrix|essentials5$/.test(t)})),hierarchy:C.hierarchy}),(null===(u=null==C?void 0:C.extra)||void 0===u?void 0:u.entaleUrl)&&(0,i.jsx)(fm,{url:C.extra.entaleUrl}),!I&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Mb,Db({isPremiumArticleLayout:D},{children:(0,i.jsxs)("div",Db({className:"inner"},{children:[C.topics&&D&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(qy,{article:C,topics:C.topics.filter((function(e){var t=e.path;return!/matrix|essentials5$/.test(t)})),hierarchy:C.hierarchy,isPremiumArticleLayout:D})}),(0,i.jsxs)("div",Db({className:"socials-comments"},{children:[Ve._Q.includes(f.domain)&&(0,i.jsx)(Ls,{position:"in article - bottom",article:C,shareClass:"bottom-share-btn"}),(0,i.jsx)(ks,{position:"in article - bottom",article:C,configuration:f}),G&&f.disqus?(0,i.jsx)(Ud,{pageId:(0,Au.x)(C),className:"commentButtonDisqusCounter",position:"bottom",article:C,hierarchy:C.hierarchy}):H&&!I?(0,i.jsx)($u,{article:C,isCommentingEnabled:G,className:"commentButtonViafouraCounter",position:"top",hierarchy:C.hierarchy}):null]}))]}))})),G&&H&&$&&(0,i.jsx)(Vy,{configuration:f,article:C,belowArticle:!0}),(0,i.jsxs)(Fb,{children:[ra(p,We.qj,z?We._n:We.Vs)&&(0,i.jsx)(Tu.IslandForRender,Db({name:"Taboola",props:{mode:"alternating-thumbnails-a",containerId:"taboola-below-article-thumbnails",placement:se}},{children:(0,i.jsx)(Nu,{mode:"alternating-thumbnails-a",containerId:"taboola-below-article-thumbnails",placement:se})}),"taboola"),G&&f.disqus&&(0,i.jsx)(rm,{pageId:(0,Au.x)(C)})]}),G&&H&&!$&&(0,i.jsx)(Vy,{configuration:f,article:C})]}),I&&!w&&(0,i.jsx)(i.Fragment,{children:ra(p,We.A5,z?We._n:We.Vs)&&(0,i.jsx)(Tu.IslandForRender,Db({name:"Taboola",props:{mode:"thumbs-ma-01",containerId:"taboola-mid-article-thumbnails",placement:"Mid Article Thumbnails"}},{children:(0,i.jsx)(Nu,{mode:"thumbs-ma-01",containerId:"taboola-mid-article-thumbnails",placement:"Mid Article Thumbnails"})}),"taboola")})]}))}),(function(){return!0})),Ub=zb,Hb=n(6520),Gb=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},$b=function(){return $b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Wb=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Yb=l.default.div(Zb||(Zb=Gb(["\n padding-top: 20px;\n"],["\n padding-top: 20px;\n"])));!function(e){e[e.Initialising=0]="Initialising",e[e.Idle=1]="Idle",e[e.LoadingNextArticle=2]="LoadingNextArticle",e[e.Error=3]="Error",e[e.End=4]="End"}(ub||(ub={}));var Zb,Kb,Qb,Xb,ev,tv,nv,rv,ov,iv,av,lv,sv,cv,uv,dv,pv,fv,hv,mv,gv,yv,bv,vv={root:null,rootMargin:"0px 0px 50% 0px",threshold:0},wv=function(e){var t=e.domain,n=e.configuration,r=e.article,o=e.adTargeting,l=e.jsGlobals,s=e.isPremiumArticleLayout,c=Vb((0,a.useState)(window.location.href),1)[0],u=Vb((0,a.useState)(10),2),d=u[0],p=u[1],f=(0,a.useRef)(null),h=Vb((0,a.useState)(ub.Initialising),2),m=h[0],g=h[1],y=Vb((0,a.useState)([]),2),b=y[0],v=y[1],w=Vb((0,a.useState)(-1),2),x=w[0],k=w[1],S=Vb((0,a.useState)([]),2),C=S[0],E=S[1];(0,a.useEffect)((function(){fetch("/api/related?".concat(new URLSearchParams({url:r.path}))).then((function(e){return e.json()})).then((function(e){var n,o;g(ub.Idle);var i=e.items.filter((function(e){return wu(e.url,t,"?itm")!==r.path})),a=[],l=new Set;try{for(var s=Jb(i),c=s.next();!c.done;c=s.next()){var u=c.value;l.has(u.title)||(a.push(u),l.add(u.title))}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}console.log({filteredArticlesArray:a}),v(a),p(a.length)})).catch((function(e){g(ub.Error),console.error(e)}))}),[]),(0,a.useEffect)((function(){return f.current=new IntersectionObserver((function(e){var t=e.filter((function(e){return e.isIntersecting}))[0];(null==t?void 0:t.target)&&window.history.pushState(null,"","".concat(t.target.getAttribute("data-path"),"?layout=is"))}),{rootMargin:"-50% 0px -50% 0px",threshold:0}),function(){f.current&&f.current.disconnect()}}),[]);var T=function(e){e&&f.current&&f.current.observe(e)},j=Vb((0,a.useState)(!1),2),A=j[0],L=j[1];return(0,a.useEffect)((function(){L(x===d-1)}),[x,d]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(vu,$b({bottomISOptions:vv,onTopNotVisible:function(){window.history.pushState(null,"","".concat(r.path,"?layout=is"))},onBottomVisible:function(){if(m===ub.Idle){k(x+1);var e=0,n=function(r){(function(e){g(ub.LoadingNextArticle);var n=b[e];if(!n)return g(ub.End),Promise.reject(null);var r=wu(n.url,t);return fetch("/api/article?domain=".concat(t,"&path=").concat(r)).then((function(e){return e.json()})).catch((function(){g(ub.Error)}))})(r).then((function(o){var i,a,s,u;if(console.log("ArticleId",o.id),function(e){var t,n;return void 0!==e&&!!(null===(t=e.body)||void 0===t?void 0:t.length)&&!0===e.status&&"News"===(null===(n=e.articleTypes[0])||void 0===n?void 0:n.name)}(o)){E((function(e){return Wb(Wb([],Vb(e),!1),[o],!1)})),(0,Hb.Hi)(x+1),null===(i=window.dataLayer)||void 0===i||i.push($b($b({event:"infinite scroll pageview"},(0,Eu.C)(l||(null===window||void 0===window?void 0:window.JSGlobals),o)),{infiniteScroll:1,articlePosition:x+1,documentTitle:Cu({article:o},null===(a=l||(null===window||void 0===window?void 0:window.JSGlobals))||void 0===a?void 0:a.title),documentPath:o.path,documentLocation:"https://".concat(t).concat(o.path),contributor:null!==(u=null===(s=o.contentSource)||void 0===s?void 0:s.some((function(e){return"UGC"===e.name})))&&void 0!==u&&u,initialUrl:c})),(0,xu.j)(o);var p=function(e){window.OBR?window.OBR.extern.researchWidget():e>0&&setTimeout(p,100,e-1)};p(100),g((function(){return x>=d?ub.End:ub.Idle}))}else e<3&&r0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Tv=function(e){var t=e.isHome,n=e.isSimplifiedHeaderSite,r=Ev((0,a.useState)(""),2),o=r[0],l=r[1],s={weekday:"long",day:"numeric",month:"long",year:"numeric"};return(0,a.useEffect)((function(){var e=(new Date).toLocaleDateString("en-GB",s);l(e)}),[]),(0,i.jsx)(Sv,Cv({isSimplifiedHeaderSite:n,className:n&&!t?"hide":""},{children:o}))},jv=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Av=function(){return Av=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Nv=l.default.a(mv||(mv=jv(["\n display: flex;\n gap: 8px;\n justify-content: center;\n align-items: center;\n font-size: 10px;\n letter-spacing: -0.15px;\n\n font-weight: bold;\n height: 30px;\n width: fit-content;\n margin: auto;\n text-decoration: none;\n\n @media "," {\n font-size: 12px;\n letter-spacing: -0.18px;\n\n &.weather-widget-header {\n visibility: hidden;\n }\n }\n\n .scroll & {\n @media "," {\n display: none;\n }\n }\n"],["\n display: flex;\n gap: 8px;\n justify-content: center;\n align-items: center;\n font-size: 10px;\n letter-spacing: -0.15px;\n\n font-weight: bold;\n height: 30px;\n width: fit-content;\n margin: auto;\n text-decoration: none;\n\n @media "," {\n font-size: 12px;\n letter-spacing: -0.18px;\n\n &.weather-widget-header {\n visibility: hidden;\n }\n }\n\n .scroll & {\n @media "," {\n display: none;\n }\n }\n"])),s.jO.laptop,s.jO.maxLaptop),Pv=l.default.span(gv||(gv=jv(["\n color: #919090;\n"],["\n color: #919090;\n"]))),Dv=l.default.span(yv||(yv=jv(["\n background-size: contain;\n background-repeat: no-repeat;\n background-position: 50%;\n height: 30px;\n width: 30px;\n background-image: url('/img/weather/sunny.svg');\n\n &.icon-01 {\n background-image: url('/img/weather/sunny.svg');\n }\n &.icon-02 {\n background-image: url('/img/weather/cloudy.svg');\n }\n &.icon-04,\n &.icon-03 {\n background-image: url('/img/weather/scatteredCloudy.svg');\n }\n &.icon-09 {\n background-image: url('/img/weather/showerRain.svg');\n }\n &.icon-10 {\n background-image: url('/img/weather/rain.svg');\n }\n &.icon-11 {\n background-image: url('/img/weather/thunderstorm.svg');\n }\n &.icon-13 {\n background-image: url('/img/weather/snow.svg');\n }\n &.icon-50 {\n background-image: url('/img/weather/mist.svg');\n }\n"],["\n background-size: contain;\n background-repeat: no-repeat;\n background-position: 50%;\n height: 30px;\n width: 30px;\n background-image: url('/img/weather/sunny.svg');\n\n &.icon-01 {\n background-image: url('/img/weather/sunny.svg');\n }\n &.icon-02 {\n background-image: url('/img/weather/cloudy.svg');\n }\n &.icon-04,\n &.icon-03 {\n background-image: url('/img/weather/scatteredCloudy.svg');\n }\n &.icon-09 {\n background-image: url('/img/weather/showerRain.svg');\n }\n &.icon-10 {\n background-image: url('/img/weather/rain.svg');\n }\n &.icon-11 {\n background-image: url('/img/weather/thunderstorm.svg');\n }\n &.icon-13 {\n background-image: url('/img/weather/snow.svg');\n }\n &.icon-50 {\n background-image: url('/img/weather/mist.svg');\n }\n"]))),Iv=l.default.span(bv||(bv=jv(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.darkestContrast})),qv=function(e){var t=e.className,n=_v((0,a.useState)({items:[]}),2),r=n[0],o=n[1],l=_v((0,a.useState)(!0),2),s=l[0],c=l[1];(0,a.useEffect)((function(){Lv(void 0,void 0,void 0,(function(){var e,t;return Ov(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,fetch("/api/weather")];case 1:return[4,n.sent().json()];case 2:return e=n.sent(),o(e),c(!1),[3,4];case 3:return t=n.sent(),console.error(t),[3,4];case 4:return[2]}}))}))}),[]);var u=(r||{items:[]}).items,d=u&&u[0]||{hour:"",weatherIcon:"",temperature:""},p=d.hour,f=d.weatherIcon,h=d.temperature;return(0,i.jsx)(Nv,Av({className:t,href:"/news/weather"},{children:!s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Pv,Av({className:"hour"},{children:p})),(0,i.jsx)(Dv,{className:f}),(0,i.jsxs)(Iv,{children:[h,"°C"]})]})}))},Mv=function(){return Mv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const e=document.querySelectorAll(".comment-counter-wrapper"),t=document.querySelectorAll("#viafoura-comment-counter-wording"),n={attributes:!0,childList:!0,subtree:!0,attributeOldValue:!0},r=e=>{const n=parseInt(e.innerText,10),r=n<2||isNaN(n)?"Comment":"Comments";t.forEach((e=>{e.innerHTML=r}))},o=new MutationObserver((e=>{e.forEach((e=>{r(e.target)}))}));e.forEach((e=>{r(e),o.observe(e,n)}))},Gv=n(951),$v=function(){try{navigator.share({title:document.title,url:document.location.href})}catch(e){console.error("There was a problem sharing this article.")}},Vv=function(){var e=document.querySelector("#custom-cta-header-scrolled");if(e)if(window.scrollY>0){if(e.classList.contains("show"))return;e.classList.add("showing"),e.addEventListener("animationend",(function(){e.classList.remove("showing"),e.classList.add("show")}),{once:!0})}else{if(!e.classList.contains("show"))return;e.classList.add("hiding"),e.addEventListener("animationend",(function(){e.classList.remove("hiding"),e.classList.remove("show")}),{once:!0})}},Wv=n(1535),Jv=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},Yv=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]{Un&&!Gn||"function"!=typeof loadAudienceProjectPredictions&&(e=>{e.loadAudienceProjectPredictions=(t,n,r)=>{var o=(r=r||{}).timeout||1e3,i="",a=document.referrer;if(a){var l=e.location.origin||e.document.origin;if(l&&-1===a.indexOf(l)){i=a;try{e.localStorage.setItem("apr_sref",i)}catch(e){}}}var s="";try{s=e.localStorage.getItem("apr_dsu"),i=e.localStorage.getItem("apr_sref")}catch(e){}var c=e.document.createElement("script");c.src="https://pdw-usr.userreport.com/js/v2/partner/"+encodeURIComponent(t)+"/uid?med="+encodeURIComponent(window.location.toString())+"&dsu="+encodeURIComponent(s)+"&ref="+encodeURIComponent(a||"")+"&sref="+encodeURIComponent(i||"")+"&gdpr_applies="+encodeURIComponent(r.gdprApplies||"")+"&iab_consent="+encodeURIComponent(r.consentString||""),c.async=!0;var u=setTimeout((()=>{n&&n([])}),o);if(c.onload=()=>{clearTimeout(u),n&&n(e.apDataKeyValues)},c.onerror=()=>{clearTimeout(u),n&&n({})},e.document.head)e.document.head.appendChild(c);else{var d=e.document.getElementsByTagName("script")[0];d.parentNode.insertBefore(c,d)}}})(window)}},{skimlinksScript:Vr.F6,newPolarNativeScript:Vr.vY},{polyfill:()=>{(()=>{if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e})()},webvitals:Gr,ipsos:()=>{if(["/dev/header","/dev/footer"].includes(location.pathname))return;const{pathname:e}=window.location,t=e.split("/").filter(Boolean);let n=t;/article/.test(JSGlobals.pageType)&&t.length>1&&(t.pop(),n=t.join("/"));const r=$r.U[n]||"other";!function(){window.dm=window.dm||{AjaxData:[]},window.dm.AjaxEvent=function(e,t,n,r){dm.AjaxData.push({et:e,d:t,ssid:n,ad:r}),window.DotMetricsObj&&DotMetricsObj.onAjaxDataUpdate()};var e=document,t=e.getElementsByTagName("head")[0],n=e.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://uk-script.dotmetrics.net/door.js?d="+document.location.host+"&t="+r,t.appendChild(n)}()},instagram:Vr.M9,moreless:function(){var e="collapsed",t="short",n=document.getElementById("more-less-outer-wrapper"),r=document.getElementById("more-less-inner-wrapper"),o=document.getElementById("more-less-content"),i=document.getElementById("more-less-button");if(n&&r&&o&&i){var a=o.offsetHeight,l=n.classList.contains(e),s=function(){l=!0,n.classList.add(e),a=o.offsetHeight,r.style.height="".concat(a,"px")};i.addEventListener("click",(function(){var t,i,c;l?(a=o.offsetHeight,l=!1,n.classList.remove(e)):(t={once:!0},i=!1,c=function(){return i=!0},r.addEventListener("transitionrun",c,t),r.addEventListener("transitionend",s,t),r.style.height="".concat(a,"px"),setTimeout((function(){i||(r.removeEventListener("transitionend",s),r.removeEventListener("transitionrun",c),s())}),100))}));new ResizeObserver((function(){var e=o.offsetHeight;l&&(a=e),r.style.height="".concat(e,"px");e+12a&&!l?n.classList.remove(t):n.classList.add(t)})).observe(o)}},googlesearch:function(){var e,t=document.querySelector('[aria-label="Open full menu"]');t&&window.innerWidth{const e=document.querySelector(".carousel-container");if(e){const t=document.querySelector(".prev"),n=document.querySelector(".next"),r=document.querySelector(".track");let o=e.offsetWidth,i=0;window.addEventListener("resize",(function(){o=e.offsetWidth})),n.addEventListener("click",(function(e){e.preventDefault(),i+=1,t.classList.add("show"),r.style.transform="translateX("+i*-o+"px)",r.offsetWidth-i*o .tp-container-inner"),o=function(){n&&n.remove(),e&&e.classList.remove("read-more")};t&&t.addEventListener("click",(function(){return o()}));var i=new ResizeObserver((function(e){var t,r,o=window.innerHeight/100;try{for(var i=Ob(e),a=i.next();!a.done;a=i.next()){a.value.contentRect.height/o>795&&window.matchMedia(_b).matches&&n&&(n.style.display="block")}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}})),a=new MutationObserver((function(){r&&(o(),a.disconnect())}));e&&(i.observe(e),a.observe(document,{childList:!0,subtree:!0}))}},uw&&{customCTAHeaderActions:function(){var e=Yn.SUBSCRIBE,t=[document.getElementById(e),document.getElementById("".concat(e,"-scrolled"))],n=document.getElementById(Yn.NEWSLETTER),r=document.getElementById(Yn.SHARE);t.forEach((function(e){null==e||e.addEventListener("click",(function(){document.location="/subscriptions"}))})),null==n||n.addEventListener("click",(function(){document.location="/newsletter"})),null==r||r.addEventListener("click",$v),window.addEventListener("scroll",function(e,t){var n=!1,r=!1;return function(){n?r=!0:(e(),n=!0,setTimeout((function(){n=!1,r&&(e(),r=!1)}),t))}}(Vv,200))}}),{toggleHeroCaption:Gv.n,parselyProfileScript:function(){var e,t,n;if((0,co.R)("uuid")||(0,co.T)("uuid",(null===(e=window.JSGlobals)||void 0===e?void 0:e.domain)+function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;return Math.round(Math.pow(36,e+1)-Math.random()*Math.pow(36,e)).toString(36).slice(1)}(),365),null===(t=window.JSGlobals)||void 0===t?void 0:t.article){var r=null===(n=document.querySelector("link[rel=canonical]"))||void 0===n?void 0:n.getAttribute("href");fetch("https://api.parsely.com/v2/profile?uuid=".concat((0,co.R)("uuid"),"&url=").concat(r,"&apikey=").concat(window.JSGlobals.domain))}},resizeStickySidebar:po,clickTracking:{method:function(){var e=new AbortController;aw.push(e),er(e)}},articleNextPrev:()=>{if(document.getElementById("article-next-menu")){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(e){}let n=0;const r=document.getElementById("header"),o="scroll-direction-down",i="scroll-direction-up";window.addEventListener("scroll",(function(){var e=window.pageYOffset||document.documentElement.scrollTop;e<900||(e>n?(r.classList.remove(i),r.classList.add(o)):(r.classList.remove(o),r.classList.add(i)),n=e<=0?0:e)}),!!e&&{passive:!0})}},upNext:To,delayMenuHoverState:function(){document.querySelectorAll(".menu-navbar-item").forEach(lo.watchMouseState)},accordion:uo,hideWeatherWidgetOnScroll:function(){var e=document.getElementById("header"),t=document.scrollingElement?document.scrollingElement:document.body;if(e){var n=document.getElementById("header"),r="scroll";window.addEventListener("scroll",(function(){var e=window.pageYOffset||document.documentElement.scrollTop;t.scrollTop>350&&(null==n||n.classList.add(r)),0===e&&(null==n||n.classList.remove(r))}))}},trackArticleContentScroll:function(){var e=!1,t=!1,n="photo article"===JSGlobals.articleType,r=function(){window.dataLayer=window.dataLayer||[];var r=document.getElementById("content-root-wrapper");if(null==r?void 0:r.firstElementChild){var i=r.firstElementChild,a=r.getBoundingClientRect(),l=i.children[1],s=i.children[i.children.length-2];if(l&&s)(n?l.getBoundingClientRect().top<=window.innerHeight:a.top<400)&&!e&&(console.log("👀 Article is scrolling up the page"),window.dataLayer.push({event:"content_scroll",contentProgression:"start"}),e=!0),(n?s.getBoundingClientRect().bottom<=window.innerHeight:a.bottom<=window.innerHeight)&&!t&&(console.log("👀 End of article is scrolled into view"),window.dataLayer.push({event:"content_scroll",contentProgression:"end"}),t=!0),e&&t&&window.removeEventListener("scroll",o)}},o=$n(r,100);return window.addEventListener("scroll",o),r(),function(){window.removeEventListener("scroll",o)}},peopleBioMobile:function(){var e=document.getElementById("mobileBtnBio"),t=document.getElementById("peopleBio"),n=function(){t&&e&&(t.style.display="flex",t.style.opacity="1",e.innerHTML="Hide Bio")},r=function(){t&&e&&(t.style.display="none",t.style.opacity="0",e.innerHTML="View Bio")};t&&window.addEventListener("resize",(function(){window.innerWidth>=768?n():r()})),e&&e.addEventListener("click",(function(){"none"===(null==t?void 0:t.style.display)||""===(null==t?void 0:t.style.display)?n():r()}))},toggleDetailedMenu:function(){var e=document.getElementById("detailed-menu"),t=document.getElementById("menu-overlay"),n=document.getElementById("burger-menu"),r=document.querySelector(".close-menu");if(e&&n&&r&&t){var o=function(){e.classList.remove("open"),t.classList.remove("open"),document.body.style.removeProperty("position"),document.body.style.removeProperty("top"),document.body.style.removeProperty("width")};n.addEventListener("click",(function(){e.classList.add("open"),t.classList.add("open");var n=window.scrollY;document.body.style.setProperty("position","fixed","important"),document.body.style.setProperty("top","-".concat(n,"px"),"important"),document.body.style.setProperty("width","100%","important"),r.focus(),r.classList.add("focus")})),r.addEventListener("click",(function(){o(),r.classList.remove("focus")})),t.addEventListener("click",o),document.addEventListener("keydown",(function(e){"Escape"===e.key&&(o(),r.classList.remove("focus"))}))}},toggleTabbedContent:function(){null==wo||wo.addEventListener("click",(function(e){var t=e.target;if(null==t?void 0:t.classList.contains("tab")){var n=t.dataset.tab;null==ko||ko.forEach((function(e){!function(e,t){e.classList.toggle("active-tab",e.id===t)}(e,n)})),null==xo||xo.forEach((function(e){e.classList.toggle("active",!1)})),t.classList.toggle("active",!0)}}))},toggleBlurred:function(){var e=document.querySelector("#pap-paragraph-hide-button"),t=document.querySelector("#blur-text"),n=document.querySelector("#paragraphs-after-second");null==e||e.addEventListener("click",(function(){var r=null==t?void 0:t.classList.toggle("show");null==e||e.classList.add("hide"),r?(null==t||t.classList.add("hide"),null==n||n.classList.add("show")):(null==t||t.classList.remove("hide"),null==n||n.classList.remove("show"))}))},socialShareModal:function(){document.querySelectorAll(".social-share").forEach((function(e){e.querySelectorAll(".social-link").forEach((function(e){e.addEventListener("click",(function(e){bo(e)}))}))}))}}),cw?{disqusCommentCountWording:Rv}:{vfCommentCountWording:Hv}),{switchGeoLocation:vo,carousel:()=>{const e=document.getElementsByClassName("flow-carousel");e&&Array.from(e).forEach((e=>{let t,n,r,o=0;const i=e.getAttribute("data-slides-per-view")||1,a=!!e.getElementsByClassName("flow-carousel-dots").length;let l;const c=()=>{window.innerWidth>=s.Tx?n.style=`transform: translateX(-${100/t*o}%)`:n.style=`transform: translateX(-${100/Math.round(t/i)*o}%)`,a&&Array.from(r.children).forEach((e=>{e.className!==`dot-${o}`?e.removeAttribute("active"):e.setAttribute("active","true")}))};if(i>=2){const e=$n((()=>{var e;(e=Wn())!==Jn&&(Jn=e,!0)&&(o=0,c())}),250);window.addEventListener("resize",e)}const u=()=>{p(),o<=0||(window.innerWidth>=s.Tx&&o<=0?(o=t-1,c()):window.innerWidth<=s.Tx&&o<=0?(o=Math.round(t/i)-1,c()):(o-=1,c()))},d=e=>{e||p();(1===i?o>=t-1:o>=Vn(t))?o=0:o+=1,c()},p=()=>{clearInterval(l),l=setInterval((()=>{d(!0)}),5e3)},f=()=>{let e=0,t=0;n.addEventListener("touchstart",(t=>{e=t.changedTouches[0].screenX}),{passive:!1}),n.addEventListener("touchend",(n=>{t=n.changedTouches[0].screenX,(n=>{te+50&&(n.cancelable&&n.preventDefault(),u())})(n)}),{passive:!1})};Array.from(e.children).forEach((e=>{e.className.indexOf("flow-carousel-arrow-left")>-1&&e.addEventListener("click",(()=>{u()}),{passive:!0}),e.className.indexOf("flow-carousel-arrow-right")>-1&&e.addEventListener("click",(()=>{d()}),{passive:!0}),e.className.indexOf("flow-carousel-inner")>-1&&Array.from(e.children).forEach((e=>{if(e.className.indexOf("flow-carousel-arrow-left")>-1)e.addEventListener("click",(()=>{u()}),{passive:!0});else{if(!(e.className.indexOf("flow-carousel-arrow-right")>-1))return e.className.indexOf("flow-carousel-slider")>-1?(n=e,t=e.children.length,void(t>1&&(p(),f()))):e.className.indexOf("flow-carousel-dots")>-1?(r=e,void e.addEventListener("click",(t=>{var n;t.target!==e&&(n=+t.target.className.split("-")[1],p(),o=n,c())}),{passive:!0})):void 0;e.addEventListener("click",(()=>{d()}),{passive:!0})}}))}))}))},updatePublishedDateAgo:()=>{const e=document.querySelectorAll(".published-date-ago");"US"===(0,sr.R)("geo_location")&&e.forEach((e=>{e?.dataset?.date&&cr({date:e.dataset.date})&&(e.innerText=lr(1e3*e.dataset.date))}))},imgFallback:function(){var e="responsive-img-hidden";document.querySelectorAll(".responsive-img").forEach((function(t){var n=t.querySelector("img"),r=t.querySelector(".responsive-img-fallback");if(r){var o={once:!0,passive:!0};null==n||n.addEventListener("error",(function(){n.classList.add(e),r.classList.remove(e)}),o),null==n||n.addEventListener("load",(function(){r.classList.add(e)}),o)}}))},archiveAccordion:function(){"/archive"==location.pathname&&document.querySelectorAll(".archive-year").forEach((function(e){return e.addEventListener("click",(function(){return e.classList.toggle("open")}))}))},handleIslands:function(){(0,o.R_)({BreakingNewsTicker:du,InfiniteScroll:wv,LiveblogHydrated:yc,Taboola:Nu,TodaysDate:Tv,Twitter:ja,WeatherWidget:qv,HeroGrid:Rn},[Fv])},facebookSDK:()=>{document.getElementsByClassName("fb-post").length>0&&(0,ur.n)(["https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v11.0"],"facebook")},twitterWidget:()=>{document.getElementsByClassName("twitter-embed").length>0&&(window.twttr=function(e,t,n){let r,o=e.getElementsByTagName(t)[0],i=window.twttr||{};return e.getElementById(n)||(r=e.createElement(t),r.id=n,r.src="https://platform.twitter.com/widgets.js",o.parentNode.insertBefore(r,o),i._e=[],i.ready=function(e){i._e.push(e)}),i}(document,"script","twitter-wjs"))},shareArticle:function(){var e,t=null===(e=window.JSGlobals)||void 0===e?void 0:e.domain;Ve._Q.includes(t)||go();var n=void 0!==navigator.share,r=document.querySelectorAll(mo);ho()&&n?r.forEach((function(e){e.addEventListener("click",yo)})):go()},initSourcePointModals:function(){var e="development"===JSGlobals.mode?166634:JSGlobals.sourcePointPrivacyManagerIdV2;document.querySelectorAll("a.cookie-settings").forEach((function(t){t.addEventListener("click",(function(){var t,n;(null===(n=null===(t=window._sp_)||void 0===t?void 0:t.gdpr)||void 0===n?void 0:n.loadPrivacyManagerModal)&&window._sp_.gdpr.loadPrivacyManagerModal(e)}))}))},hubspotForm:eo.O,mobileSubmenuListener:function(){var e,t,n=document.querySelectorAll(".mobile-submenu-toggle");try{for(var r=Bn(n),o=r.next();!o.done;o=r.next()){o.value.addEventListener("click",(function(e){var t=e.currentTarget.closest(".hover-section");t&&t.classList.toggle("open-section")}))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},smoothScroll:function(e){void 0===e&&(e="comments");var t=document.querySelectorAll(".scroll-button"),n=document.getElementById(e),r=function(e){if(e.preventDefault(),n){var t=n.getBoundingClientRect(),r=window.scrollY,i=o(),a=t.top+r-i;window.scrollTo({top:a,behavior:"instant"})}},o=function(){var e,t=window.innerWidth;if(!0==t<520)e=80;else e=140;return e};t.forEach((function(e){e.addEventListener("click",r)}))}}),sw&&[{method:function(){(0,Wv.l)()}}])],pw=function(e){return Object.keys(e).map((function(t){return function(){return ow(void 0,void 0,void 0,(function(){var n,o,i;return iw(this,(function(a){switch(a.label){case 0:if(!(n=e[t]))return[2];l=t,s=performance.now(),So[l]=s,oo("starting ".concat(l," load @ ").concat(s.toFixed(2))),a.label=1;case 1:return a.trys.push([1,8,,9]),n.method?[4,n.method()]:[3,5];case 2:return a.sent(),Co(t),n.dependents?(o="".concat(t," deps"),io(o),[4,r.Q7(pw(n.dependents),{failFast:!1})]):[3,4];case 3:a.sent(),ao(),a.label=4;case 4:return[3,7];case 5:return[4,n()];case 6:a.sent(),Co(t),a.label=7;case 7:return[3,9];case 8:return i=a.sent(),console.warn("Error caught in ".concat(t,"()")),console.error(i),[3,9];case 9:return[2]}var l,s}))}))}}))},fw=function(){return ow(void 0,void 0,void 0,(function(){var e,t;return iw(this,(function(n){switch(n.label){case 0:e=0,n.label=1;case 1:return e!!/taboola-bottomfeed|article-meta|article-content|piano-article-paywall|axate-wallet/.test(e.className)||("gallery-main-content"===e.id||"gallery-ob-container"===e.id),i=e=>{let{isMidContent:t=!1,disableContinueBrowsingListener:n=!1}=e;const r=document.querySelector(".article-content")||document.querySelector("#content-wrapper"),i=r?.querySelectorAll(":scope > *");if(t){let e=!1;i?.forEach((t=>{if(e){if(o(t))return;t.classList.add("hidden")}"taboola-mid-0"===t.id&&(e=!0)}))}else{const e=document.querySelectorAll(".caption-gallery").length,t=document.querySelectorAll(".markup").length;let n=!1;r?.querySelectorAll("iframe").forEach((function(e){e.contentWindow.postMessage("pause","*")})),1!==e&&r?.classList.add("datawall-hidden"),i?.forEach((e=>{o(e)||(t>1&&!n&&e.className.includes("markup")?n=!0:e.classList.add("hidden"))}))}n||window.addEventListener("message",function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r=>{r.data&&["https://sandbox.tinypass.com","https://buy.tinypass.com"].includes(r.origin)&&"continue-browsing"===r.data&&(n||e?.classList.remove("datawall-hidden"),t?.forEach((e=>{e.classList.remove("hidden")})))}}(r,i,t))},a=function(){i({isMidContent:!1,disableContinueBrowsingListener:arguments.length>0&&void 0!==arguments[0]&&arguments[0]})},l=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];document.querySelector(".piano-article-paywall-mid")&&i({isMidContent:!0,disableContinueBrowsingListener:e})},s=function(){var e=(0,r.A)((function*(){const e=document.querySelector(".article-content")||document.querySelector("#content-wrapper");e?.querySelectorAll("iframe").forEach((function(e){e.contentWindow.postMessage("pause","*")}));const t=e?.querySelectorAll(":scope > *"),n=document.querySelectorAll(".caption-gallery").length,r=document.querySelectorAll(".markup").length;let o=!1;1!==n&&e?.classList.add("datawall-hidden");let i=["taboola-bottomfeed","article-meta","article-content","axate-wallet"];window.removeAxateContent&&JSGlobals.premium||i.push("piano-article-paywall");const a=new RegExp(i.join("|"));t?.forEach((t=>{a.test(t.className)||"gallery-main-content"!==t.id&&"gallery-ob-container"!==t.id&&(/OUTBRAIN/.test(t.className)?t.style.display="none":r>1&&!o&&t.className.includes("markup")?o=!0:e.removeChild(t))})),window.removeAxateContent||e.classList.remove("no-entitlement")}));return function(){return e.apply(this,arguments)}}(),c=()=>{const e=document.querySelector(".article-content")||document.querySelector("#content-wrapper"),t=e?.querySelectorAll(":scope > *");t?.forEach((e=>{e.querySelector(':scope > a[href="#disqus-comment-section"]')&&(e.style.display="none")}))},u=()=>{document.querySelector("#article-newsletter-signup")&&(document.querySelector("#article-newsletter-signup").style.display="none"),document.querySelector("#mobile-article-newsletter-signup")&&(document.querySelector("#mobile-article-newsletter-signup").style.display="none")},d=()=>{if(document.querySelector("#sidebar-newsletter-signup")){document.querySelectorAll("#sidebar-newsletter-signup").forEach((e=>{e.style.display="none"}))}},p=()=>{if(document.querySelector("#customNewsletterComp")){document.querySelectorAll("#customNewsletterComp").forEach((e=>{e.style.display="none"}))}},f=()=>{const e=document.querySelector(".piano-puzzle-wrapper #pa-iframe").parentElement;document.querySelectorAll(".piano-puzzle-wrapper #pa-iframe").forEach((t=>{e.removeChild(t)}))},h=e=>{e.forEach((e=>{const t=document.querySelector(`#${e}`);t&&t.remove()}))}},8925:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const{className:t,data:{type:n,delta:r},req:{flowPreview:a=!1,hydrated:s=!1,flowComponentFocused:u=-1,flowComponentHighlighted:p=-1},children:f}=e,h={className:t,"data-type":n};if(a&&s){const e=(0,l.useDispatch)(),t=i.default.createRef();return(0,i.useEffect)((()=>{if(u===r){const n=t.current;document.documentElement.scrollTop=n.offsetTop,e({type:c.COMPONENT_CLICK_RECEIVED,value:-1})}}),[u]),i.default.createElement("div",(0,o.default)({},h,{onMouseDown:()=>e({type:c.COMPONENT_CLICK,value:{delta:r}}),onMouseEnter:()=>e({type:c.COMPONENT_HOVER,value:{delta:r}}),onMouseLeave:()=>e({type:c.COMPONENT_HOVER,value:{delta:-1}}),ref:t}),i.default.createElement(i.Fragment,null,i.default.createElement(d,null),f))}return i.default.createElement("div",h,i.default.createElement(i.Fragment,null,a&&i.default.createElement(d,null),f))})))`
position: relative;
`},9481:function(e,t,n){"use strict";var r=n(758),o=n(1896);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(f,e)&&(p.test(e)?h[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),j=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var P=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var q,M=Object.assign;function F(e){if(void 0===q)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||""}return"\n"+q+e}var R=!1;function B(e,t){if(!e||R)return"";R=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{R=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function z(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case E:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return U(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Q(e,t){K(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ye=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ce=null;function Ee(e){if(e=wo(e)){if("function"!=typeof ke)throw Error(i(280));var t=e.stateNode;t&&(t=ko(t),ke(e.stateNode,e.type,t))}}function Te(e){Se?Ce?Ce.push(e):Ce=[e]:Se=e}function je(){if(Se){var e=Se,t=Ce;if(Ce=Se=null,Ee(e),t)for(e=0;e>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<=In),Fn=String.fromCharCode(32),Rn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Pn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function $n(e,t,n,r){Te(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Wn=null;function Jn(e){Fr(e,0)}function Yn(e){if(W(xo(e)))return e}function Zn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Qn;if(u){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"==typeof er.oninput}Qn=Xn}else Qn=!1;Kn=Qn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n=document.documentMode,gr=null,yr=null,br=null,vr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==gr||gr!==J(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=Vr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Sr={},Cr={};function Er(e){if(Sr[e])return Sr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return Sr[e]=n[t];return e}u&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Tr=Er("animationend"),jr=Er("animationiteration"),Ar=Er("animationstart"),Lr=Er("transitionend"),Or=new Map,_r="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Nr(e,t){Or.set(e,t),s(t,[e])}for(var Pr=0;Pr<_r.length;Pr++){var Dr=_r[Pr];Nr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Nr(Tr,"onAnimationEnd"),Nr(jr,"onAnimationIteration"),Nr(Ar,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(Lr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),qr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Mr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,s,c){if(ze.apply(this,arguments),qe){if(!qe)throw Error(i(198));var u=Me;qe=!1,Me=null,Fe||(Fe=!0,Re=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;nCo||(e.current=So[Co],So[Co]=null,Co--)}function jo(e,t){Co++,So[Co]=e.current,e.current=t}var Ao={},Lo=Eo(Ao),Oo=Eo(!1),_o=Ao;function No(e,t){var n=e.type.contextTypes;if(!n)return Ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Po(e){return null!=(e=e.childContextTypes)}function Do(){To(Oo),To(Lo)}function Io(e,t,n){if(Lo.current!==Ao)throw Error(i(168));jo(Lo,t),jo(Oo,n)}function qo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return M({},n,r)}function Mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,_o=Lo.current,jo(Lo,e),jo(Oo,Oo.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=qo(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,To(Oo),To(Lo),jo(Lo,e)):To(Oo),jo(Oo,n)}var Ro=null,Bo=!1,zo=!1;function Uo(e){null===Ro?Ro=[e]:Ro.push(e)}function Ho(){if(!zo&&null!==Ro){zo=!0;var e=0,t=vt;try{var n=Ro;for(vt=1;e>=a,o-=a,Ko=1<<32-at(t)+o|n<m?(g=d,d=null):g=d.sibling;var y=f(o,d,l[m],s);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(o,d),i=a(y,i,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===l.length)return n(o,d),ii&&Xo(o,m),c;if(null===d){for(;mg?(y=m,m=null):y=m.sibling;var v=f(o,m,b.value,c);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(o,m),l=a(v,l,g),null===d?u=v:d.sibling=v,d=v,m=y}if(b.done)return n(o,m),ii&&Xo(o,g),u;if(null===m){for(;!b.done;g++,b=s.next())null!==(b=p(o,b.value,c))&&(l=a(b,l,g),null===d?u=b:d.sibling=b,d=b);return ii&&Xo(o,g),u}for(m=r(o,m);!b.done;g++,b=s.next())null!==(b=h(m,o,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),l=a(b,l,g),null===d?u=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(o,e)})),ii&&Xo(o,g),u}return function e(r,i,a,s){if("object"==typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===S){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===N&&vi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=yi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===S?((i=Ic(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Dc(a.type,a.key,a.props,null,r.mode,s)).ref=yi(r,i,a),s.return=r,r=s)}return l(r);case k:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Fc(a,r.mode,s)).return=r,r=i}return l(r);case N:return e(r,i,(u=a._init)(a._payload),s)}if(te(a))return m(r,i,a,s);if(I(a))return g(r,i,a,s);bi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Mc(a,r.mode,s)).return=r,r=i),l(r)):n(r,i)}}var xi=wi(!0),ki=wi(!1),Si=Eo(null),Ci=null,Ei=null,Ti=null;function ji(){Ti=Ei=Ci=null}function Ai(e){var t=Si.current;To(Si),e._currentValue=t}function Li(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){Ci=e,Ti=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(vl=!0),e.firstContext=null)}function _i(e){var t=e._currentValue;if(Ti!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===Ci)throw Error(i(308));Ei=e,Ci.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Ni=null;function Pi(e){null===Ni?Ni=[e]:Ni.push(e)}function Di(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Pi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ii(e,r)}function Ii(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var qi=!1;function Mi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ri(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&As){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Pi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function zi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Ui(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hi(e,t,n,r){var o=e.updateQueue;qi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,u=c=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=M({},d,p);break e;case 2:qi=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=f,s=d):u=u.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);qs|=a,e.lanes=a,e.memoizedState=d}}function Gi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;tn?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{vt=n,ia.transition=r}}function Va(){return va().memoizedState}function Wa(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ya(e))Za(t,n);else if(null!==(n=Di(e,t,n,r))){nc(n,e,r,ec()),Ka(n,t,r)}}function Ja(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))Za(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var s=t.interleaved;return null===s?(o.next=o,Pi(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Di(e,t,o,r))&&(nc(n,e,r,o=ec()),Ka(n,t,r))}}function Ya(e){var t=e.alternate;return e===la||null!==t&&t===la}function Za(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ka(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Qa={readContext:_i,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Xa={readContext:_i,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:_i,useEffect:Ia,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Pa(4194308,4,Ra.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pa(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Wa.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Oa,useDebugValue:za,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=$a.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,o=ba();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Ls)throw Error(i(349));30&aa||Ea(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ia(ja.bind(null,r,a,e),[e]),r.flags|=2048,_a(9,Ta.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ba(),t=Ls.identifierPrefix;if(ii){var n=Qo;t=":"+t+"R"+(n=(Ko&~(1<<32-at(Ko)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:_i,useCallback:Ua,useContext:_i,useEffect:qa,useImperativeHandle:Ba,useInsertionEffect:Ma,useLayoutEffect:Fa,useMemo:Ha,useReducer:xa,useRef:Na,useState:function(){return xa(wa)},useDebugValue:za,useDeferredValue:function(e){return Ga(va(),sa.memoizedState,e)},useTransition:function(){return[xa(wa)[0],va().memoizedState]},useMutableSource:Sa,useSyncExternalStore:Ca,useId:Va,unstable_isNewReconciler:!1},tl={readContext:_i,useCallback:Ua,useContext:_i,useEffect:qa,useImperativeHandle:Ba,useInsertionEffect:Ma,useLayoutEffect:Fa,useMemo:Ha,useReducer:ka,useRef:Na,useState:function(){return ka(wa)},useDebugValue:za,useDeferredValue:function(e){var t=va();return null===sa?t.memoizedState=e:Ga(t,sa.memoizedState,e)},useTransition:function(){return[ka(wa)[0],va().memoizedState]},useMutableSource:Sa,useSyncExternalStore:Ca,useId:Va,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:M({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ri(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),zi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ri(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),zi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Ri(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nc(t,e,r,n),zi(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,i))}function al(e,t,n){var r=!1,o=Ao,i=t.contextType;return"object"==typeof i&&null!==i?i=_i(i):(o=Po(t)?_o:Lo.current,i=(r=null!=(r=t.contextTypes))?No(e,o):Ao),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Mi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=_i(i):(i=Po(t)?_o:Lo.current,o.context=No(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rl(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Hi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cl(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ul(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function fl(e,t,n){(n=Ri(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gs||(Gs=!0,$s=r),dl(0,t)},n}function hl(e,t,n){(n=Ri(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Vs?Vs=new Set([this]):Vs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function gl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ri(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e)}var bl=w.ReactCurrentOwner,vl=!1;function wl(e,t,n,r){t.child=null===e?ki(t,null,n,r):xi(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=ga(e,t,n,r,i,o),n=ya(),null===e||vl?(ii&&n&&ti(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gl(e,t,o))}function kl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Nc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Sl(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Gl(e,t,o)}return t.flags|=1,(e=Pc(i,r)).ref=t.ref,e.return=t,t.child=e}function Sl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(vl=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Gl(e,t,o);131072&e.flags&&(vl=!0)}}return Tl(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,jo(Ps,Ns),Ns|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,jo(Ps,Ns),Ns|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},jo(Ps,Ns),Ns|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,jo(Ps,Ns),Ns|=r;return wl(e,t,o,n),t.child}function El(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Tl(e,t,n,r,o){var i=Po(n)?_o:Lo.current;return i=No(t,i),Oi(t,o),n=ga(e,t,n,r,i,o),r=ya(),null===e||vl?(ii&&r&&ti(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gl(e,t,o))}function jl(e,t,n,r,o){if(Po(n)){var i=!0;Mo(t)}else i=!1;if(Oi(t,o),null===t.stateNode)Hl(e,t),al(t,n,r),sl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=_i(c):c=No(t,c=Po(n)?_o:Lo.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&ll(t,a,r,c),qi=!1;var p=t.memoizedState;a.state=p,Hi(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Oo.current||qi?("function"==typeof u&&(rl(t,n,u,r),s=t.memoizedState),(l=qi||il(t,n,l,r,p,s,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fi(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:nl(t.type,l),a.props=c,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=_i(s):s=No(t,s=Po(n)?_o:Lo.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&ll(t,a,r,s),qi=!1,p=t.memoizedState,a.state=p,Hi(t,r,a,o);var h=t.memoizedState;l!==d||p!==h||Oo.current||qi?("function"==typeof f&&(rl(t,n,f,r),h=t.memoizedState),(c=qi||il(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Al(e,t,n,r,i,o)}function Al(e,t,n,r,o,i){El(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Fo(t,n,!1),Gl(e,t,i);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,l,i)):wl(e,t,l,i),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Ll(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),Zi(e,t.containerInfo)}function Ol(e,t,n,r,o){return hi(),mi(o),t.flags|=256,wl(e,t,n,r),t.child}var _l,Nl,Pl,Dl,Il={dehydrated:null,treeContext:null,retryLane:0};function ql(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ml(e,t,n){var r,o=t.pendingProps,a=ea.current,l=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),jo(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},1&o||null===l?l=qc(s,o,0,null):(l.childLanes=0,l.pendingProps=s),e=Ic(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=ql(n),t.memoizedState=Il,e):Fl(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Rl(e,t,l,r=ul(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=qc({mode:"visible",children:r.children},o,0,null),(a=Ic(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&xi(t,e.child,null,l),t.child.memoizedState=ql(l),t.memoizedState=Il,a);if(!(1&t.mode))return Rl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Rl(e,t,l,r=ul(a=Error(i(419)),r,void 0))}if(s=!!(l&e.childLanes),vl||s){if(null!==(r=Ls)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|l)?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ii(e,o),nc(r,e,o,-1))}return mc(),Rl(e,t,l,r=ul(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=jc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Jo[Yo++]=Ko,Jo[Yo++]=Qo,Jo[Yo++]=Zo,Ko=e.id,Qo=e.overflow,Zo=t),t=Fl(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,a,n);if(l){l=o.fallback,s=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 1&s||t.child===a?(o=Pc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null),null!==r?l=Pc(r,l):(l=Ic(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?ql(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Il,o}return e=(l=e.child).sibling,o=Pc(l,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fl(e,t){return(t=qc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Rl(e,t,n,r){return null!==r&&mi(r),xi(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Li(e.return,t,n)}function zl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ul(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wl(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bl(e,n,t);else if(19===e.tag)Bl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(jo(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),zl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}zl(t,!0,n,null,i);break;case"together":zl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),qs|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Pc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $l(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wl(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vl(t),null;case 1:case 17:return Po(t.type)&&Do(),Vl(t),null;case 3:return r=t.stateNode,Ki(),To(Oo),To(Lo),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Nl(e,t),Vl(t),null;case 5:Xi(t);var o=Yi(Ji.current);if(n=t.type,null!==e&&null!=t.stateNode)Pl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Vl(t),null}if(e=Yi(Vi.current),pi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fo]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":Rr("cancel",r),Rr("close",r);break;case"iframe":case"object":case"embed":Rr("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[fo]=t,e[ho]=r,_l(e,t,!1,!1),t.stateNode=e;e:{switch(s=ve(n,r),n){case"dialog":Rr("cancel",e),Rr("close",e),o=r;break;case"iframe":case"object":case"embed":Rr("load",e),o=r;break;case"video":case"audio":for(o=0;oUs&&(t.flags|=128,r=!0,$l(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$l(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!ii)return Vl(t),null}else 2*Ke()-a.renderingStartTime>Us&&1073741824!==n&&(t.flags|=128,r=!0,$l(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ke(),t.sibling=null,n=ea.current,jo(ea,r?1&n|2:1&n),t):(Vl(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Ns)&&(Vl(t),6&t.subtreeFlags&&(t.flags|=8192)):Vl(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Jl(e,t){switch(ni(t),t.tag){case 1:return Po(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ki(),To(Oo),To(Lo),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xi(t),null;case 13:if(To(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return To(ea),null;case 4:return Ki(),null;case 10:return Ai(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}_l=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Nl=function(){},Pl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Yi(Vi.current);var i,a=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),a=[];break;case"select":o=M({},o,{value:void 0}),r=M({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(u in be(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Rr("scroll",e),a||s===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Dl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yl=!1,Zl=!1,Kl="function"==typeof WeakSet?WeakSet:Set,Ql=null;function Xl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cc(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){Cc(e,t,n)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&es(t,n,i)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[go],delete t[yo],delete t[bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function as(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var us=null,ds=!1;function ps(e,t,n){for(n=n.child;null!==n;)fs(e,t,n),n=n.sibling}function fs(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Zl||Xl(n,t);case 6:var r=us,o=ds;us=null,ps(e,t,n),ds=o,null!==(us=r)&&(ds?(e=us,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):us.removeChild(n.stateNode));break;case 18:null!==us&&(ds?(e=us,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Ut(e)):so(us,n.stateNode));break;case 4:r=us,o=ds,us=n.stateNode.containerInfo,ds=!0,ps(e,t,n),us=r,ds=o;break;case 0:case 11:case 14:case 15:if(!Zl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&es(n,t,a),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Zl&&(Xl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cc(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Zl=(r=Zl)||null!==n.memoizedState,ps(e,t,n),Zl=r):ps(e,t,n);break;default:ps(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Kl),t.forEach((function(t){var r=Ac.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var n=t.deletions;if(null!==n)for(var r=0;ro&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cs(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Bs,Hs),r);break}xc(e,Bs,Hs);break;default:throw Error(i(329))}}}return rc(e,Ke()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Rs;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bs,Bs=n,null!==t&&ac(t)),e}function ac(e){null===Bs?Bs=e:Bs.push.apply(Bs,e)}function lc(e,t){for(t&=~Fs,t&=~Ms,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===Js)var r=!1;else{if(e=Js,Js=null,Ys=0,6&As)throw Error(i(331));var o=As;for(As|=4,Ql=e.current;null!==Ql;){var a=Ql,l=a.child;if(16&Ql.flags){var s=a.deletions;if(null!==s){for(var c=0;cKe()-zs?pc(e,0):Fs|=n),rc(e,t)}function Tc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=ec();null!==(e=Ii(e,t))&&(yt(e,t,n),rc(e,n))}function jc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Ac(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Tc(e,n)}function Lc(e,t){return We(e,t)}function Oc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _c(e,t,n,r){return new Oc(e,t,n,r)}function Nc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pc(e,t){var n=e.alternate;return null===n?((n=_c(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Nc(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Ic(n.children,o,a,t);case C:l=8,o|=8;break;case E:return(e=_c(12,n,t,2|o)).elementType=E,e.lanes=a,e;case L:return(e=_c(13,n,t,o)).elementType=L,e.lanes=a,e;case O:return(e=_c(19,n,t,o)).elementType=O,e.lanes=a,e;case P:return qc(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:l=10;break e;case j:l=9;break e;case A:l=11;break e;case _:l=14;break e;case N:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=_c(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ic(e,t,n,r){return(e=_c(7,e,r,t)).lanes=n,e}function qc(e,t,n,r){return(e=_c(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Mc(e,t,n){return(e=_c(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=_c(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,o,i,a,l,s){return e=new Rc(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=_c(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mi(i),e}function zc(e){if(!e)return Ao;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Po(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Po(n))return qo(e,n,t)}return t}function Uc(e,t,n,r,o,i,a,l,s){return(e=Bc(n,r,!0,e,0,i,0,l,s)).context=zc(null),n=e.current,(i=Ri(r=ec(),o=tc(n))).callback=null!=t?t:null,Bi(n,i,o),e.current.lanes=o,yt(e,o,r),rc(e,r),e}function Hc(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ri(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nc(e,o,a,i),zi(e,o,a)),a}function Gc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $c(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&ne+1))).filter((e=>!r.includes(e)))};var i;const a=["/subscriptions","/subscriptions/help","/subscriptions/sports","/subscriptions/renewal","/subscription-renewal","/campaign","/subscriptions/campaign","/promotion","/subscriptions/promotion","/sports-promotion","/subscriptions/sports-promotion","/new-year","/subscriptions/new-year","/6-nations","/subscriptions/6-nations","/national-puzzle-day","/subscriptions/national-puzzle-day","/valentines-day","/subscriptions/valentines-day","/mothering-sunday","/subscriptions/mothering-sunday","/fathers-day","/subscriptions/fathers-day","/summer-sports","/subscriptions/summer-sports","/students","/subscriptions/students","/xmas","/subscriptions/xmas","/events","/subscriptions/events","/halloween","/subscriptions/halloween","/easter","/subscriptions/easter","/corporate","/subscriptions/corporate","/group","/subscriptions/group","/subscriptions/gift-redemption","/subscriptions/sports/gift-redemption","/subscriptions/competition","/subscriptions/spring-sale","/subscriptions/summer-sale","/subscriptions/autumn-sale","/subscriptions/winter-sale","/subscriptions/upgrade","/subscriptions/upgrade-offer","/subscriptions/upgrade-renewal","/subscriptions/upgrade-winback","/subscriptions/upgrade-promotion","/subscriptions/upgrade-students","/upgrade","/upgrade-offer","/upgrade-renewal","/upgrade-winback","/upgrade-promotion","/upgrade-students"],l=["3addedminutes.com","anguscountyworld.co.uk","banburyguardian.co.uk","bedfordtoday.co.uk","biggleswadetoday.co.uk","birminghamworld.uk","bristolworld.com","bucksherald.co.uk","burnleyexpress.net","buxtonadvertiser.co.uk","chad.co.uk","daventryexpress.co.uk","derryjournal.com","derbyshiretimes.co.uk","derbyworld.co.uk","dewsburyreporter.co.uk","doncasterfreepress.co.uk","falkirkherald.co.uk","farminglife.com","fifetoday.co.uk","glasgowworld.com","halifaxcourier.co.uk","harboroughmail.co.uk","harrogateadvertiser.co.uk","hartlepoolmail.co.uk","hemeltoday.co.uk","hucknalldispatch.co.uk","lancasterguardian.co.uk","leightonbuzzardonline.co.uk","lep.co.uk","lincolnshireworld.com","liverpoolworld.uk","londonworld.com","lutontoday.co.uk","manchesterworld.uk","meltontimes.co.uk","miltonkeynes.co.uk","nationalworld.com","newcastleworld.com","newryreporter.com","newsletter.co.uk","northamptonchron.co.uk","northantstelegraph.co.uk","northernirelandworld.com","northumberlandgazette.co.uk","nottinghamworld.com","peterboroughtoday.co.uk","portsmouth.co.uk","rotherhamadvertiser.co.uk","scotsman.com","shieldsgazette.com","stornowaygazette.co.uk","sunderlandecho.com","surreyworld.co.uk","thescarboroughnews.co.uk","thesouthernreporter.co.uk","totallysnookered.com","wakefieldexpress.co.uk","warwickshireworld.com","worksopguardian.co.uk","yorkshirepost.co.uk"],s=["3addedminutes.com","anguscountyworld.co.uk","banburyguardian.co.uk","bedfordtoday.co.uk","biggleswadetoday.co.uk","birminghamworld.uk","blackpoolgazette.co.uk","bristolworld.com","bucksherald.co.uk","burnleyexpress.net","buxtonadvertiser.co.uk","chad.co.uk","daventryexpress.co.uk","derbyshiretimes.co.uk","derbyworld.co.uk","derryjournal.com","dewsburyreporter.co.uk","doncasterfreepress.co.uk","edinburghnews.scotsman.com","falkirkherald.co.uk","farminglife.com","fifetoday.co.uk","glasgowworld.com","halifaxcourier.co.uk","harboroughmail.co.uk","harrogateadvertiser.co.uk","hartlepoolmail.co.uk","hemeltoday.co.uk","hucknalldispatch.co.uk","lancasterguardian.co.uk","leightonbuzzardonline.co.uk","lep.co.uk","lincolnshireworld.com","liverpoolworld.uk","londonworld.com","lutontoday.co.uk","manchesterworld.uk","meltontimes.co.uk","miltonkeynes.co.uk","nationalworld.com","newcastleworld.com","newryreporter.com","newsletter.co.uk","northamptonchron.co.uk","northantstelegraph.co.uk","northernirelandworld.com","northumberlandgazette.co.uk","nottinghamworld.com","peterboroughtoday.co.uk","portsmouth.co.uk","rotherhamadvertiser.co.uk","scotsman.com","shieldsgazette.com","stornowaygazette.co.uk","sunderlandecho.com","surreyworld.co.uk","sussexexpress.co.uk","thescarboroughnews.co.uk","thesouthernreporter.co.uk","thestar.co.uk","totallysnookered.com","wakefieldexpress.co.uk","walesworld.com","warwickshireworld.com","wigantoday.net","worksopguardian.co.uk","yorkshireeveningpost.co.uk","yorkshirepost.co.uk"],c=["bristolworld.com","glasgowworld.com"],u=["scotsman.com"],d=["birminghamworld.uk","bristolworld.com","derbyworld.co.uk","glasgowworld.com","liverpoolworld.uk","londonworld.com","manchesterworld.uk","newcastleworld.com","nottinghamworld.com","derbyworld.co.uk","rotherhamadvertiser.co.uk","walesworld.com","warwickshireworld.com"],p=["glasgowworld.com"],f=["scotsman.com"],h=["blackpoolgazette.co.uk","yorkshireeveningpost.co.uk"],m=["scotsman.com","yorkshirepost.co.uk","newsletter.co.uk"],g=["nationalworld.com","scotsman.com"],y=["3addedminutes.com","anguscountyworld.co.uk","banburyguardian.co.uk","bedfordtoday.co.uk","biggleswadetoday.co.uk","birminghamworld.uk","blackpoolgazette.co.uk","bristolworld.com","burnleyexpress.net","bucksherald.co.uk","buxtonadvertiser.co.uk","daventryexpress.co.uk","derbyworld.co.uk","chad.co.uk","derryjournal.com","dewsburyreporter.co.uk","derbyshiretimes.co.uk","derbyworld.co.uk","derryjournal.com","doncasterfreepress.co.uk","edinburghnews.scotsman.com","falkirkherald.co.uk","fifetoday.co.uk","glasgowworld.com","halifaxcourier.co.uk","harboroughmail.co.uk","hartlepoolmail.co.uk","hemeltoday.co.uk","hucknalldispatch.co.uk","harrogateadvertiser.co.uk","lancasterguardian.co.uk","leightonbuzzardonline.co.uk","lep.co.uk","lincolnshireworld.com","liverpoolworld.uk","londonworld.com","lutontoday.co.uk","manchesterworld.uk","meltontimes.co.uk","miltonkeynes.co.uk","nationalworld.com","newcastleworld.com","newryreporter.com","newsletter.co.uk","newryreporter.com","northamptonchron.co.uk","northantstelegraph.co.uk","northernirelandworld.com","nottinghamworld.com","northumberlandgazette.co.uk","peterboroughtoday.co.uk","portsmouth.co.uk","rotherhamadvertiser.co.uk","shieldsgazette.com","stornowaygazette.co.uk","sunderlandecho.com","surreyworld.co.uk","sussexexpress.co.uk","thescarboroughnews.co.uk","thesouthernreporter.co.uk","thestar.co.uk","totallysnookered.com","warwickshireworld.com","wakefieldexpress.co.uk","wigantoday.net","worksopguardian.co.uk","yorkshireeveningpost.co.uk","yorkshirepost.co.uk"],b=["nationalworld.com"],v=["edinburghnews.scotsman.com","yorkshirepost.co.uk"],w=["3addedminutes.com","anguscountyworld.co.uk","banburorkguardian.co.uk","bedfordtoday.co.uk","biggleswadetoday.co.uk","birminghamworld.uk","blackpoolgazette.co.uk","bristolworld.com","bucksherald.co.uk","burnleyexpress.net","buxtonadvertiser.co.uk","davenportexpress.co.uk","derbyshiretimes.co.uk","derbyworld.co.uk","derryjournal.com","dewsburyreporter.co.uk","doncasterfreepress.co.uk","edinburghnews.scotsman.com","falkirkherald.co.uk","farminglife.com","fifetoday.co.uk","glasgowworld.com","halifaxcourier.co.uk","harboroughmail.co.uk","harrogateadvertiser.co.uk","hartlepoolmail.co.uk","hemeltoday.co.uk","hucknalldispatch.co.uk","newsletter.co.uk","peterboroughtoday.co.uk","portsmouth.co.uk","rotherhamadvertiser.co.uk","scotsman.com","shieldsgazette.com","stornowaygazette.co.uk","sunderlandecho.com","surreyworld.co.uk","sussexexpress.co.uk","thescarboroughnews.co.uk","thesouthernreporter.co.uk","thestar.co.uk","totallysnookered.com","wakefieldexpress.co.uk","walesworld.com","warwickshireworld.com","wigantoday.net","worksopguardian.co.uk","yorkshireeveningpost.co.uk","yorkshirepost.co.uk"],x=["northumberlandgazette.co.uk","burnleyexpress.net","lancasterguardian.co.uk","blackpoolgazette.co.uk","biggleswadetoday.co.uk"],k=["nationalworld.com"],S=["scotsman.com","yorkshirepost.co.uk"],C=["blackpoolgazette.co.uk","edinburghnews.scotsman.com","glasgowworld.com","liverpoolworld.uk","nationalworld.com","northantstelegraph.co.uk","portsmouth.co.uk","yorkshireeveningpost.co.uk"]},9554:function(e,t,n){var r=n(6496),o=n(9128);e.exports=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.apply(this,o(arguments))}},9576:function(e,t,n){"use strict";var r=n(8143);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},9629:function(e,t,n){var r=n(4837),o=n(386),i=n(2854),a=r((function(e){return!!o(e)||!!e&&("object"==typeof e&&(!i(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));e.exports=a},9668:function(e,t,n){"use strict";n.r(t),n.d(t,{Provider:function(){return H},ReactReduxContext:function(){return p},batch:function(){return i.unstable_batchedUpdates},connect:function(){return U},createDispatchHook:function(){return V},createSelectorHook:function(){return b},createStoreHook:function(){return G},shallowEqual:function(){return q},useDispatch:function(){return W},useSelector:function(){return v},useStore:function(){return $}});var r=n(1285),o=n(1467),i=n(8143);let a=function(e){e()};const l=()=>a;var s=n(758);const c=Symbol.for("react-redux-context"),u="undefined"!=typeof globalThis?globalThis:{};function d(){var e;if(!s.createContext)return{};const t=null!=(e=u[c])?e:u[c]=new Map;let n=t.get(s.createContext);return n||(n=s.createContext(null),t.set(s.createContext,n)),n}const p=d();function f(e=p){return function(){return(0,s.useContext)(e)}}const h=f(),m=()=>{throw new Error("uSES not initialized!")};let g=m;const y=(e,t)=>e===t;function b(e=p){const t=e===p?h:f(e);return function(e,n={}){const{equalityFn:r=y,stabilityCheck:o,noopCheck:i}="function"==typeof n?{equalityFn:n}:n;const{store:a,subscription:l,getServerState:c,stabilityCheck:u,noopCheck:d}=t(),p=((0,s.useRef)(!0),(0,s.useCallback)({[e.name](t){return e(t)}}[e.name],[e,u,o])),f=g(l.addNestedSub,a.getState,c||a.getState,p,r);return(0,s.useDebugValue)(f),f}}const v=b();function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function _(e,t,n){return w({},n,e,t)}const N={notify(){},get:()=>[]};function P(e,t){let n,r=N,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=l();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=N)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}const D=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?s.useLayoutEffect:s.useEffect;function I(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function q(e,t){if(I(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r({})))}(e),h=function(e){return e&&"object"==typeof e?j((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?L(e):O(e,"mapDispatchToProps"):j((e=>({dispatch:e})))}(t),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const l=e(t,n,a);return i?r(l,o)||(o=l):(i=!0,o=l),o}}}(e):O(e,"mergeProps"):()=>_}(n),g=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:g,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:h,initMergeProps:m,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:l};function u(t){const[n,o,i]=s.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=x(t,M);return[t.context,e,n]}),[t]),a=s.useMemo((()=>n&&n.Consumer&&(0,C.isContextConsumer)(s.createElement(n.Consumer,null))?n:d),[n,d]),l=s.useContext(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const p=c?t.store:l.store,f=u?l.getServerState:p.getState,h=s.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,i=x(t,E);return T(n(e,i),r(e,i),o(e,i),e,i)}(p.dispatch,r)),[p]),[m,y]=s.useMemo((()=>{if(!g)return R;const e=P(p,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,c,l]),b=s.useMemo((()=>c?l:w({},l,{subscription:m})),[c,l,m]),v=s.useRef(),k=s.useRef(i),S=s.useRef(),j=s.useRef(!1),A=(s.useRef(!1),s.useRef(!1)),L=s.useRef();D((()=>(A.current=!0,()=>{A.current=!1})),[]);const O=s.useMemo((()=>()=>S.current&&i===k.current?S.current:h(p.getState(),i)),[p,i]),_=s.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,l,s,c,u){if(!e)return()=>{};let d=!1,p=null;const f=()=>{if(d||!l.current)return;const e=t.getState();let n,f;try{n=r(e,o.current)}catch(e){f=e,p=e}f||(p=null),n===i.current?a.current||c():(i.current=n,s.current=n,a.current=!0,u())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(g,p,m,h,k,v,j,A,S,y,e):()=>{}),[m]);var N,I,q;let z;N=B,I=[k,v,j,i,S,y],D((()=>N(...I)),q);try{z=F(_,O,f?()=>h(f(),i):O)}catch(e){throw L.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${L.current.stack}\n\n`),e}D((()=>{L.current=void 0,S.current=void 0,v.current=z}));const U=s.useMemo((()=>s.createElement(e,w({},z,{ref:o}))),[o,e,z]);return s.useMemo((()=>g?s.createElement(a.Provider,{value:b},U):U),[a,U,b])}const p=s.memo(u);if(p.WrappedComponent=e,p.displayName=u.displayName=n,c){const t=s.forwardRef((function(e,t){return s.createElement(p,w({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,S()(t,e)}return S()(p,e)}};var H=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:i="once"}){const a=s.useMemo((()=>{const t=P(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:i}}),[e,r,o,i]),l=s.useMemo((()=>e.getState()),[e]);D((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),l!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,l]);const c=t||p;return s.createElement(c.Provider,{value:a},n)};function G(e=p){const t=e===p?h:f(e);return function(){const{store:e}=t();return e}}const $=G();function V(e=p){const t=e===p?$:G(e);return function(){return t().dispatch}}const W=V();var J,Y;J=o.useSyncExternalStoreWithSelector,g=J,(e=>{F=e})(r.useSyncExternalStore),Y=i.unstable_batchedUpdates,a=Y},9738:function(e,t,n){var r=n(1699),o=n(8253),i=n(5407),a=r((function(e,t,n){return o("function"==typeof e?i(e):e,t,n)}));e.exports=a},9808:function(e,t,n){"use strict";n.d(t,{LV:function(){return c},Rm:function(){return p},UX:function(){return l},Ui:function(){return u},ih:function(){return s}});var r=n(6399),o=n.n(r),i=n(345),a=n(6485);function l(){const e=function(){const e={};return location.search.substring(1).split("&").forEach((t=>{const n=t.split("=");e[n[0]]=n[1]})),e}();if(!e.gaa_at)return!1;if(!e.gaa_n)return console.error("SwG Entitlements: The `gaa_n` URL param is missing."),!1;if(!e.gaa_sig)return console.error("SwG Entitlements: The `gaa_sig` URL param is missing."),!1;if(!e.gaa_ts)return console.error("SwG Entitlements: The `gaa_ts` URL param is missing."),!1;if(parseInt(e.gaa_ts,16)({metering:{state:{id:e.ppid,standardAttributes:{registered_user:{timestamp:e.timestamp}}}}}),c=e=>e!==a.Oc,u=()=>(0,i.W5)(),d=o()(2,(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"log";if(console&&console[e]){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r> "].concat(n))}})),p=d("log")},9869:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTraversal=void 0;var r=n(1923),o=new Map([[r.SelectorType.Universal,50],[r.SelectorType.Tag,30],[r.SelectorType.Attribute,1],[r.SelectorType.Pseudo,0]]);t.isTraversal=function(e){return!o.has(e.type)};var i=new Map([[r.AttributeAction.Exists,10],[r.AttributeAction.Equals,8],[r.AttributeAction.Not,7],[r.AttributeAction.Start,6],[r.AttributeAction.End,6],[r.AttributeAction.Any,5]]);function a(e){var t,n,l=null!==(t=o.get(e.type))&&void 0!==t?t:-1;return e.type===r.SelectorType.Attribute?(l=null!==(n=i.get(e.action))&&void 0!==n?n:4,e.action===r.AttributeAction.Equals&&"id"===e.name&&(l=9),e.ignoreCase&&(l>>=1)):e.type===r.SelectorType.Pseudo&&(e.data?"has"===e.name||"contains"===e.name?l=0:Array.isArray(e.data)?(l=Math.min.apply(Math,e.data.map((function(e){return Math.min.apply(Math,e.map(a))}))))<0&&(l=0):l=2:l=3),l}t.default=function(e){for(var t=e.map(a),n=1;n=0&&re.json())).catch((()=>null))}));return function(){return e.apply(this,arguments)}}(),p=function(){var e=(0,a.A)((function*(e){const{email:t,givenName:n,familyName:r}=e;return fetch("/api/gea/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,givenName:n,familyName:r})}).then((e=>e.json()))}));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=(0,a.A)((function*(){const e=location.href;return fetch("/api/gea/auth-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({redirect:e})}).then((e=>e.json())).then((e=>document.location.origin+"/google/sign-in?auth="+encodeURIComponent(e?.url)))}));return function(){return e.apply(this,arguments)}}(),h=function(){var e=(0,a.A)((function*(){const e=new URLSearchParams(window.location.search).get("response_id");return fetch("/api/gea/auth-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({response_id:e})}).then((e=>e.json()))}));return function(){return e.apply(this,arguments)}}(),m={fetchGoogleSignInIframeUrl:f,fetchPianoSignInToken:h,fetchMeteringState:d,registerUser:p,setTemporaryFlag:()=>{const e=u.YA+JSGlobals.pageId;(0,c.T)(e,1,1)},getTemporaryFlag:()=>"1"===(0,c.R)(u.YA+JSGlobals.pageId),removeTemporaryFlag:(g=(0,a.A)((function*(){return(0,c.T)(u.YA+JSGlobals.pageId,"",-1),Promise.resolve()})),function(){return g.apply(this,arguments)}),showOverlay:()=>{document.querySelector("html").classList.add("overlay-gea")},hideOverlay:()=>{document.querySelector("html").classList.remove("overlay-gea")},isArticleFree:e=>e===u.ZM};var g,y=m;const b=e=>new Promise((t=>{if(!JSGlobals.piano?.subscription)return t(null);(0,s.Rm)("pianoMeter",e),location.search.includes("response_id")&&!tp.pianoId.isUserValid()&&y.fetchPianoSignInToken().then((e=>tp.pianoId.loginByToken(e))).then(location.reload()),(0,l.n)([{src:"https://news.google.com/swg/js/v1/swg-gaa.js",async:!0},{src:"https://news.google.com/swg/js/v1/swg.js",async:!0,"subscriptions-control":"manual"}],"googlesubscribe");var n;n=n=>{n.init(`${JSGlobals.domain}:showcase`);const r=()=>{var e;(e=l())?n.getEntitlements(e):o()},o=function(){var e=(0,a.A)((function*(){const e=yield y.fetchGoogleSignInIframeUrl();GaaMeteringRegwall.show({iframeUrl:e}).then((e=>{y.registerUser(e)})).then((()=>{r()}))}));return function(){return e.apply(this,arguments)}}(),l=function(){var e=(0,a.A)((function*(){const e=yield y.fetchMeteringState();return(0,s.ih)(e)}));return function(){return e.apply(this,arguments)}}();(0,s.UX)()&&(y.isArticleFree(e)?((0,s.Rm)("EVENT_SHOWCASE_UNLOCKED_FREE_PAGE"),n.setShowcaseEntitlement({entitlement:"EVENT_SHOWCASE_UNLOCKED_FREE_PAGE",isUserRegistered:(0,s.Ui)()})):(0,i.W5)()?r():(0,s.LV)(e)?((0,s.Rm)("EVENT_SHOWCASE_UNLOCKED_BY_METER"),n.setShowcaseEntitlement({entitlement:"EVENT_SHOWCASE_UNLOCKED_BY_METER",isUserRegistered:!1}),t(null)):(o(),n.setOnLoginRequest(i.iD))),n.setOnEntitlementsResponse((r=>{Promise.all([r]).then((r=>{const[o]=r;e!==u.Oc?(e===u.Ds?((0,s.Rm)("EVENT_SHOWCASE_UNLOCKED_BY_SUBSCRIPTION"),n.setShowcaseEntitlement({entitlement:"EVENT_SHOWCASE_UNLOCKED_BY_SUBSCRIPTION",isUserRegistered:(0,s.Ui)()})):e===u.Df&&((0,s.Rm)("EVENT_SHOWCASE_UNLOCKED_BY_METER"),n.setShowcaseEntitlement({entitlement:"EVENT_SHOWCASE_UNLOCKED_BY_METER",isUserRegistered:(0,s.Ui)()})),t(u.tk)):o.enablesThisWithGoogleMetering()?o.consume((()=>{t(u.tk)})):((0,s.Rm)("EVENT_SHOWCASE_NO_ENTITLEMENTS_PAYWALL"),n.setShowcaseEntitlement({entitlement:"EVENT_SHOWCASE_NO_ENTITLEMENTS_PAYWALL",isUserRegistered:(0,s.Ui)()}),(0,s.Rm)("EVENT_SHOWCASE_NO_ENTITLEMENTS_PAYWALL"),window._cbq=window._cbq||[],window._cbq.push(["trackPaywallShown"]),t(u.D1))}))})),n.setOnNativeSubscribeRequest((()=>(0,i.Vh)()))},(self.SWG=self.SWG||[]).push((function(e){n(e)}))})),v=function(){var e=(0,a.A)((function*(){return y.getTemporaryFlag()?(yield y.removeTemporaryFlag(),u.tk):null}));return function(){return e.apply(this,arguments)}}();var w=n(4300),x=n(1663),k=n(7049),S=n(5293),C=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},E=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]{if(!["/dev/header","/dev/footer"].includes(location.pathname)){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"trackingIdAvailable",trackingId:JSGlobals.ga});try{(()=>{window.dataLayer=window.dataLayer||[];let e={event:"pageDataLoaded",trackingId:JSGlobals.ga,pageType:JSGlobals.pageType,headline:void 0,articleId:void 0,headlineWordCount:void 0,publishedDate:void 0,sponsorName:void 0,siteKey:JSGlobals.siteKey};JSGlobals.article&&("anonymous"!==JSGlobals.userType&&(e.userType=JSGlobals.userType),e=Object.assign({},e,{articleId:JSGlobals.pageId,articleType:JSGlobals.articleType,centralId:JSGlobals.article.remoteId??JSGlobals.pageId,articleWordCount:JSGlobals.article.wordCount,imageCount:JSGlobals.article.imageCount,headline:JSGlobals.article.title,authorName:(0,L._p)(JSGlobals.article.authors),authorSlug:(0,L.bK)(JSGlobals.article.authors),contributor:JSGlobals.article.isUserGenerated,headlineWordCount:JSGlobals.article.title.split(" ").length,publishedDate:JSGlobals.article.publish,sponsorName:JSGlobals.article.sponsorName,pageCategories:(0,L.i2)(JSGlobals.article.hierarchy),siteSection:JSGlobals.article.sectionCategory.map((e=>{let{siteSection:t}=e;return t})).join("|"),additionalKeywords:JSGlobals.article.topics&&JSGlobals.article.topics.map((e=>{let{name:t}=e;return t.toLowerCase()}))||null,dmPlayerPresent:(0,t.SV)(),premiumContent:JSGlobals.premium,sensitiveContent:JSGlobals.sensitive,affiliateArticle:JSGlobals.article.isAffiliated,infiniteScroll:JSGlobals.isInfiniteScrollArticle?1:0,paragraphCount:JSGlobals.paragraphCount})),window.dataLayer.push(e)})()}catch(e){console.error(e)}try{"production"===JSGlobals.mode&&O.A.includes(JSGlobals.domain)?function(e,t,n,r,o){e[r]=e[r]||[],e[r].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var i=t.getElementsByTagName(n)[0],a=t.createElement(n);a.async=!0,a.src="https://www.googletagmanager.com/gtm.js?id=GTM-NDG2GKQ>m_auth=six2T6CxkN1YYbqLKUV2RQ>m_preview=env-7>m_cookies_win=x",i.parentNode.insertBefore(a,i)}(window,document,"script","dataLayer"):"production"===JSGlobals.mode?function(e,t,n,r,o){e[r]=e[r]||[],e[r].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var i=t.getElementsByTagName(n)[0],a=t.createElement(n);a.async=!0,a.src="https://www.googletagmanager.com/gtm.js?id=GTM-NDG2GKQ",i.parentNode.insertBefore(a,i)}(window,document,"script","dataLayer"):function(e,t,n,r,o){e[r]=e[r]||[],e[r].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var i=t.getElementsByTagName(n)[0],a=t.createElement(n);a.async=!0,a.src="https://www.googletagmanager.com/gtm.js?id=GTM-NDG2GKQ>m_auth=38T7JxqcEhq_kBdjkW20Bg>m_preview=env-5>m_cookies_win=x",i.parentNode.insertBefore(a,i)}(window,document,"script","dataLayer")}catch(e){console.error(e)}}};var N=function(e,t,n){return e||t?"subscriber":n?"registrant":"anonymous"};const P=function(){var e=(0,a.A)((function*(){window.PARSELY=(yield window.PARSELY)||{autotrack:!1,onReady:()=>{PARSELY.updateDefaults({data:{user_type:N((0,i.Cg)(),(0,x.E0)(),(0,i.W5)())}}),PARSELY.beacon.trackPageView()}};["/dev/header","/dev/footer"].includes(window.location.pathname)||["callback=in"].some((e=>window.location.search.includes(e)))||(0,l.n)([{src:`//cdn.parsely.com/keys/${window.JSGlobals.domain}/p.js`,id:"parsely-cfg"}],"parsely")}));return function(){return e.apply(this,arguments)}}();var D=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},I=n(4382),q=n(2614),M=n(1535),F=n(9526);const R=()=>{const e=(0,i.W5)(),t=(0,i.Cg)();return e&&!t?"lgdin":e&&t?"paid":"anon"};var B,z,U,H,G,$,V,W=n(8461),J=n(1262),Y=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},Z=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]{window.tp=window.tp||[],tp.push(["addHandler",u.Oc,()=>e(u.Oc)]),tp.push(["addHandler",u.Df,()=>e(u.Df)]),tp.push(["addHandler","setResponseVariable",t=>{!0===t?.responseVariables?.subscribed&&e(u.Ds)}]),"article"===JSGlobals.pageType&&setTimeout((()=>e(u.ZM)),1e4)})).then(b).then((function(e){e===u.tk&&(y.setTemporaryFlag(),window.location.reload())})),(0,i.e$)().then((function(){return C(void 0,void 0,void 0,(function(){var e;return E(this,(function(t){switch(t.label){case 0:return[4,v()];case 1:return e=t.sent(),console.log("g-e-a >> dirty amp tag",e),(0,i.kD)(e),[2]}}))}))})).then((function(){var e;(null===(e=null===window||void 0===window?void 0:window.JSGlobals)||void 0===e?void 0:e.viafoura)&&setTimeout(k.Ay,1800)})).then((function(){t&&(0,x.KH)()}))):(0,i.e$)().then((function(){return(0,i.kD)(null)})).then((function(){var e;(null===(e=null===window||void 0===window?void 0:window.JSGlobals)||void 0===e?void 0:e.viafoura)&&setTimeout(k.Ay,1800)})).then((function(){t&&(0,x.KH)()}))}},initChartbeat:()=>{const e=window.JSGlobals?.domain;if(F.s0.includes(e)){const t=window.JSGlobals?.article?.sections.join(","),n=window.JSGlobals?.article?.authors.map((e=>e.name.trim())).join(","),r=window._sf_async_config=window._sf_async_config||{};r.uid=56174,r.domain=e,r.useCanonical=!0,r.useCanonicalDomain=!0,r.sections=t||"",r.authors=n||"",r.noCookies=!0;let o=window._cbq=window._cbq||[];o.push(["_acct",R()]);(()=>{try{const e=document.createElement("script"),t=document.getElementsByTagName("script")[0];e.type="text/javascript",e.async=!0,e.src="//static.chartbeat.com/js/chartbeat.js",t?.parentNode?.insertBefore(e,t)}catch(e){console.error("Error loading Chartbeat: ",e)}})(),(e=>{const t=new MutationObserver((()=>{document.querySelector("#content-root-wrapper > .piano-article-paywall")&&(e.push(["trackPaywallShown"]),t.disconnect())}));t.observe(document,{childList:!0,subtree:!0})})(o),(e=>{const t=document.querySelector('#newsletter-page-signup-form > div > .field-wrapper > input[name="loginEmail"]'),n=document.querySelectorAll("#menu-newsletter-signup, #sidebar-newsletter-signup, #section-newsletter-signup"),r=()=>{e.push(["trackNewsletterSignupShown"]),console.log("Chartbeat - A user was shown a newsletter signup option")};n?.forEach((e=>{e.hasClickListener||(e.addEventListener("click",r),e.hasClickListener=!0)})),t&&!t.hasClickListener&&(t.addEventListener("click",r),t.hasClickListener=!0)})(o)}},initTaboolaTag:function(){Q&&(0,M.B)(K.includes("photo")?"photo":"article")},watchForConsentChanges:function(){var e;console.log("watchForConsentChanges"),(null===(e=window.JSGlobals)||void 0===e?void 0:e.consentString)&&(o=window.JSGlobals.consentString),window.__tcfapi("addEventListener",2,(function(e,t){t?"useractioncomplete"===e.eventStatus&&e.tcString!==o&&(console.log("CMP user preference changed. Reloading to re-run scripts in new context..."),window.location.reload()):console.error("TCF API not found in waitForConsentChanges")}))}}],ee=function(t){return Object.keys(t).map((function(n){return function(){return Y(void 0,void 0,void 0,(function(){var r,o;return Z(this,(function(i){switch(i.label){case 0:if(!(r=t[n]))return[2];i.label=1;case 1:return i.trys.push([1,8,,9]),r.method?[4,r.method()]:[3,5];case 2:return i.sent(),r.dependents?[4,e.Q7(ee(r.dependents),{failFast:!1})]:[3,4];case 3:i.sent(),i.label=4;case 4:return[3,7];case 5:return[4,r()];case 6:i.sent(),i.label=7;case 7:return[3,9];case 8:return o=i.sent(),console.warn("Error caught in ".concat(n,"()")),console.error(o),[3,9];case 9:return[2]}}))}))}}))};Y(void 0,void 0,void 0,(function(){var t;return Z(this,(function(n){switch(n.label){case 0:t=0,n.label=1;case 1:return t