!function(){"use strict";window.requestAnimationFrame;var t;!function(t){t.NYPostPageSix="NYPostPageSix",t.NYPostBusinessUnit="NYPostBusinessUnit",t.TheSun="TheSun",t.NewsUK="NewsUK"}(t||(t={})),t.NYPostPageSix,t.NYPostBusinessUnit,t.TheSun,t.NewsUK;var e,n=function(t){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",t,{once:!0}):t()};function o(t){const{component:e,load:o,name:i,querySelector:s={},querySelectorAll:r={},options:a={}}=t;if("function"!=typeof e)return;const l=()=>{(()=>{const e=void 0===i?null==t?void 0:t.root:`[data-component='${i}']`;let n;try{n=document.querySelectorAll(e)}catch(t){return console.error(t),[]}return n.length<1?(console.log(`No elements found for ${e}`),[]):Array.from(n).map((t=>{const e={};return Object.keys(s).forEach((n=>{e[n]=t.querySelector(s[n])})),Object.keys(r).forEach((n=>{const o=t.querySelectorAll(r[n]);e[n]=Array.from(o)})),{element:t,children:e,options:a}}))})().forEach((t=>new e(t)))};if(!1===o)return l;!0!==o?function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if(t)if("function"==typeof e)e(t);else if(Array.isArray(e)){const[n,o]=e;null==n||n.addEventListener(o,t)}}(l,o):l()}function i(t){if(null==t)return;const e=window;let n,o,i=!1;const s=(()=>{let t=null;return(...s)=>{null!==t&&clearTimeout(t),t=window.setTimeout((()=>{(()=>{var t;const s=document.querySelector('[id^="outbrain_widget_"]');let r="";s instanceof HTMLElement&&(r="widgetId"in s.dataset&&null!==(t=s.dataset.widgetId)&&void 0!==t?t:"no_id"),null===s||i||(i=!0,e.gtag&&e.gtag("event","Outbrain",{event_action:"loaded",event_category:"widget",outbrain_id:r}),clearInterval(n),o.disconnect())})(...s)}),2e3)}})();o=new MutationObserver(s),o.observe(t,{childList:!0}),n=window.setInterval((()=>{"complete"!==document.readyState||i||(clearInterval(n),o.disconnect())}),4e4)}o({name:"outbrain",component:class{constructor({element:t,children:e,options:n}){this.element=t,this.children=e,this.options=n,this.init()}init(){i(this.element)}}});class s{constructor(){const{body:{classList:t}}=document;this.main=document.getElementById("main"),this.entryContent=this.main.querySelector(".single__content"),this.bookmarkId="read-more-marker",this.childNodes=this.entryContent?this.entryContent.childNodes:{},this.entryContentP=t.contains("single-article")?this.main.querySelectorAll(".single__content > p"):this.main.querySelectorAll(".single__content p"),this.firstInlineAd=this.main.querySelector(".ad-slot--inline_1")}initialize(){const{entryContent:t,firstInlineAd:e}=this;t&&window.requestAnimationFrame((()=>{e?this.setMarkerAfterAd():this.setMarkerAfterContent(),this.setContentHeight()}))}static isEnabled(){const{body:{classList:t}}=document;return!!s.getShowReadMore()||t.contains("nyp-ob-show-full-article")}static getShowReadMore(){const t=new URLSearchParams(window.location.search).get("show_readmore");return t&&"true"===t}getMarkerEl(){const{bookmarkId:t}=this,e=document.createElement("span");return e.setAttribute("id",t),e.style.position="relative",e}setMarkerAfterAd(){const{firstInlineAd:t}=this,e=!!t&&t.getBoundingClientRect();if(e&&e.bottom>0){const e=this.getMarkerEl();t.parentNode.insertBefore(e,t.nextSibling)}}setMarkerAfterContent(){const{entryContentP:t}=this,e=this.getMarkerEl();let n=0,o=0;const i=t.length;for(let s=0;s360){e.style.top=360-o+"px",i.parentNode.insertBefore(e,i);break}}}setFloat(t){const{bookmarkId:e,childNodes:n}=this,o=["DIV","IFRAME","FIGURE","PICTURE","IMG"];for(let i=0;i