(()=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o(e)}function e(e){var n=function(e,n){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==o(n)?n:n+""}function n(o,n,t){return(n=e(n))in o?Object.defineProperty(o,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[n]=t,o}let t=function(o){return o.GDPR="gdpr",o.CCPA="ccpa",o.USNAT="usnat",o.IOS14="ios14",o.CUSTOM="custom",o}({});const r="uk",i=o=>{try{const e=o.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(e));return JSON.parse(n)}catch(o){return null}};const c=(o,e=null)=>{var n,t;const r=`; ${document.cookie}`.split(`; ${o}=`);return 2===r.length?decodeURIComponent(null!==(n=null===(t=r.pop())||void 0===t?void 0:t.split(";").shift())&&void 0!==n?n:""):e};let l;const u=()=>{if("undefined"==typeof window)return"prod"!=={NODE_ENV:"production",npm_config_domain:""}.SERVER;if("undefined"!=typeof window&&void 0===l){var o;const e=new URLSearchParams(null===(o=window)||void 0===o||null===(o=o.location)||void 0===o?void 0:o.search);l=e.has("__DEBUG__")}return l||"true"===c("__DEBUG__")};var s,a,d;function _(o,e){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),n.push.apply(n,t)}return n}function p(o){for(var e=1;e{var o;const e=null!==(o=c("esi_auth"))&&void 0!==o?o:"";return i(e)})())||void 0===a?void 0:a.isAdFreeUser)&&void 0!==s&&s,y=c("esi_puid");window.__SP_CONFIG__=window.__SP_CONFIG__||{},window.__SP_CONFIG__.propertyHref=`${document.location.protocol}//${document.location.host}`,window._sp_queue=[],window._sp_={config:p(p(p({},window.__SP_CONFIG__),f&&{authId:y}),{},{targetingParams:{ad_free:v,registered:f,premium:w}})},(null===(d=window._sp_)||void 0===d?void 0:d.config).events={onError(o,e){if(console.warn("CMP error",`code: ${e}`),console.warn("CMP error",`message: ${o}`),window.__SP_SCRIPT_TAG_ID__){const o=document.getElementById(window.__SP_SCRIPT_TAG_ID__);o&&(o.error=1)}window.__SP_EVENT_ERROR__&&window.dispatchEvent(new CustomEvent(window.__SP_EVENT_ERROR__))},onConsentReady(o,e,n,i){const l=document.getElementById("privacy-settings");if(l){if(o===t.GDPR&&i.applies){var s;const o=v?1141355:1171350;((...o)=>{u()&&console.log(...o)})("Consent Or Pay: consentUUID and euconsent ---\x3e",{consentUUID:e,euconsent:n});const t=(null!==(s=c("subscriber_origin"))&&void 0!==s?s:r)===r;l.innerHTML="Privacy settings",l.onclick=()=>{var e;null===(e=window._sp_)||void 0===e||null===(e=e.gdpr)||void 0===e||e.loadPrivacyManagerModal(t?o:559246)}}if(o===t.CCPA){if(!i.applies)return void(l.style.display="none");l.innerHTML="Do Not Sell or Share My Information",l.onclick=()=>{var o;const e=window.location.host.indexOf(".co.uk")>0?882792:883186;null===(o=window._sp_)||void 0===o||null===(o=o.ccpa)||void 0===o||o.loadPrivacyManagerModal(e)}}}},onMessageChoiceSelect(o,e,n){o===t.GDPR&&9===n&&window.localStorage.setItem("consent-to-pay-original-page-redirect-url",window.location.href)}}})();