/*! For license information please see mng-digisubs.main.bundle.js.LICENSE.txt */ (()=>{var t={1928:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},2012:(t,e,n)=>{"use strict";var r=n(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},2505:(t,e,n)=>{t.exports=n(8015)},2881:(t,e,n)=>{"use strict";var r=n(9516),o=n(6987);t.exports=function(t,e,n){var i=this||o;return r.forEach(n,(function(n){t=n.call(i,t,e)})),t}},3191:(t,e,n)=>{"use strict";var r=n(1928);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e{"use strict";var r=n(9516);function o(){this.handlers=[]}o.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},3864:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},3948:(t,e,n)=>{"use strict";var r=n(9516);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4202:(t,e,n)=>{"use strict";var r=n(9516);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},4490:(t,e,n)=>{"use strict";var r=n(9516),o=n(2881),i=n(3864),a=n(6987),c=n(1928);function s(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new c("canceled")}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(s(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},4680:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4841:(t,e,n)=>{"use strict";var r=n(9641).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var i={};o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new Error(o(r," has been removed"+(e?" in "+e:"")));return e&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),o=r.length;o-- >0;){var i=r[o],a=e[i];if(a){var c=t[i],s=void 0===c||a(c,i,t);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},5019:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},5155:(t,e,n)=>{"use strict";var r=n(9516),o=n(9106),i=n(3471),a=n(4490),c=n(5343),s=n(4841),u=s.validators;function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=c(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&s.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(t);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=t;n.length;){var h=n.shift(),p=n.shift();try{f=h(f)}catch(t){p(t);break}}try{o=a(f)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(t){return t=c(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(c(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,r){return this.request(c(r||{},{method:t,url:e,data:n}))}})),t.exports=l},5343:(t,e,n)=>{"use strict";var r=n(9516);t.exports=function(t,e){e=e||{};var n={};function o(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function i(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(t[n],e[n])}function a(t){if(!r.isUndefined(e[t]))return o(void 0,e[t])}function c(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(void 0,e[n])}function s(n){return n in e?o(t[n],e[n]):n in t?o(void 0,t[n]):void 0}var u={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:s};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,o=e(t);r.isUndefined(o)&&e!==s||(n[t]=o)})),n}},5449:t=>{"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},5592:(t,e,n)=>{"use strict";var r=n(9516),o=n(7522),i=n(3948),a=n(9106),c=n(9615),s=n(2012),u=n(4202),l=n(7763),f=n(6987),h=n(1928);t.exports=function(t){return new Promise((function(e,n){var p,d=t.data,A=t.headers,E=t.responseType;function g(){t.cancelToken&&t.cancelToken.unsubscribe(p),t.signal&&t.signal.removeEventListener("abort",p)}r.isFormData(d)&&delete A["Content-Type"];var v=new XMLHttpRequest;if(t.auth){var w=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";A.Authorization="Basic "+btoa(w+":"+y)}var m=c(t.baseURL,t.url);function S(){if(v){var r="getAllResponseHeaders"in v?s(v.getAllResponseHeaders()):null,i={data:E&&"text"!==E&&"json"!==E?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:t,request:v};o((function(t){e(t),g()}),(function(t){n(t),g()}),i),v=null}}if(v.open(t.method.toUpperCase(),a(m,t.params,t.paramsSerializer),!0),v.timeout=t.timeout,"onloadend"in v?v.onloadend=S:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(S)},v.onabort=function(){v&&(n(l("Request aborted",t,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(l("Network Error",t,null,v)),v=null},v.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||f.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var N=(t.withCredentials||u(m))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;N&&(A[t.xsrfHeaderName]=N)}"setRequestHeader"in v&&r.forEach(A,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete A[e]:v.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(v.withCredentials=!!t.withCredentials),E&&"json"!==E&&(v.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&v.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(p=function(t){v&&(n(!t||t&&t.type?new h("canceled"):t),v.abort(),v=null)},t.cancelToken&&t.cancelToken.subscribe(p),t.signal&&(t.signal.aborted?p():t.signal.addEventListener("abort",p))),d||(d=null),v.send(d)}))}},6987:(t,e,n)=>{"use strict";var r=n(9516),o=n(7018),i=n(5449),a={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(5592)),s),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(c(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||u.transitional,n=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(a)})),t.exports=u},7018:(t,e,n)=>{"use strict";var r=n(9516);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},7522:(t,e,n)=>{"use strict";var r=n(7763);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},7763:(t,e,n)=>{"use strict";var r=n(5449);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},7980:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},8015:(t,e,n)=>{"use strict";var r=n(9516),o=n(9012),i=n(5155),a=n(5343);var c=function t(e){var n=new i(e),c=o(i.prototype.request,n);return r.extend(c,i.prototype,n),r.extend(c,n),c.create=function(n){return t(a(e,n))},c}(n(6987));c.Axios=i,c.Cancel=n(1928),c.CancelToken=n(3191),c.isCancel=n(3864),c.VERSION=n(9641).version,c.all=function(t){return Promise.all(t)},c.spread=n(7980),c.isAxiosError=n(5019),t.exports=c,t.exports.default=c},8805:(t,e,n)=>{"use strict";n.d(e,{A:()=>r}),window.authentication_config.sessionManagementEnabled="1"===window.authentication_config.sessionManagement;const r={debug:!!window.authentication_config.debug,sessionServer:window.authentication_config?window.authentication_config.sessionServer:"",entitlementsEnabled:!!window.authentication_config&&"1"===window.authentication_config.entitlementsEnabled,dropdownEnabled:!!window.authentication_config&&"1"===window.authentication_config.dropdownEnabled,enableReaderDashboardLink:!!window.authentication_config&&"1"===window.authentication_config.enableReaderDashboardLink,oneTapEnabled:!!window.authentication_config&&"1"===window.authentication_config.oneTapEnabled,useTribMainGoogle:!!window.authentication_config&&"1"===window.authentication_config.useTribMainGoogle,isAdfreeArticle:!!window.authentication_config&&"1"===window.authentication_config.isAdfreeArticle,auth0Domain:window.authentication_config?window.authentication_config.auth0Domain:"",auth0ClientId:window.authentication_config?window.authentication_config.auth0ClientId:"",entitlementsEndpoint:window.authentication_config?window.authentication_config.entitlementsEndpoint:"",entitlementsApiKey:window.authentication_config?window.authentication_config.entitlementsAPIKey:"",linaCheckOnArticles:!!window.authentication_config&&window.authentication_config.linaCheckOnArticles,serverEntitlements:!!window.authentication_config&&window.authentication_config.serverEntitlements,googleClientId:window.authentication_config?window.authentication_config.googleClientId:"",newsletterId:window.authentication_config?window.authentication_config.newsletterId:0,connextStorageKey:"",auth0SubKey:"auth0_sub",auth0Authenticated:"auth0.is.authenticated",secret:window.authentication_config?window.authentication_config.pluginSecret:"",newslettersEnabled:!!window.authentication_config&&"1"===window.authentication_config.newslettersEnabled,bcLowaSegements:!!window.authentication_config.bcLowaSegements&&"1"===window.authentication_config.bcLowaSegements,blueconicEnabled:!!window.authentication_config.blueconicEnabled&&"1"===window.authentication_config.blueconicEnabled,datadogEnabled:!!window.authentication_config.enableDatadog&&"1"===window.authentication_config.enableDatadog}},9012:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(9516);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},9137:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},9516:(t,e,n)=>{"use strict";var r=n(9012),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function c(t){return null!==t&&"object"==typeof t}function s(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===o.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n{"use strict";var r=n(9137),o=n(4680);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},9641:t=>{t.exports={version:"0.24.0"}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function r(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=t.apply(n,r);function c(t){e(a,o,i,c,s,"next",t)}function s(t){e(a,o,i,c,s,"throw",t)}c(void 0)}))}}var o=n(8805);const i=function(){if(o.A.debug){for(var t,e=arguments.length,n=new Array(e),r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function h(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(f(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return f(e)}}function p(t){this.message=t}p.prototype=new Error,p.prototype.name="InvalidTokenError";const d=function(t,e){if("string"!=typeof t)throw new p("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(h(t.split(".")[n]))}catch(t){throw new p("Invalid token specified: "+t.message)}};var A=n(2505),E=n.n(A);const g={AUTH0_SUB_COOKIE_KEY:"auth0_sub",ENTITLEMENT_COOKIE_KEY:"mng-entitlements",LOCAL_STORAGE_SESSION_KEY:"__MNG_Session",REGWALL_USER_IS_SUBSCRIBED:"regwallUserIsSubscribed",USER_IS_LOWA:"entitled",SLO_FLAG:"slo_flag",AB_TESTING_COOKIE:"_matheriSegs",CONNEXT_SILENT_TIMEOUT:10,ARTICLES_REMAINING_KEY:"articlesRemaining",USER_PROFILE_HASH:"user-profile"};var v,w,y,m,S;function N(){N=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new G(r||[]);return i(a,"_invoke",{value:C(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var p="suspendedStart",d="suspendedYield",A="executing",E="completed",g={};function v(){}function w(){}function y(){}var m={};l(m,c,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(P([])));O&&O!==r&&o.call(O,c)&&(m=O);var L=y.prototype=v.prototype=Object.create(m);function T(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function I(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function C(t,n,r){var o=p;return function(i,a){if(o===A)throw new Error("Generator is already running");if(o===E){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=R(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=A;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:d,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function R(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function P(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}var O=function(){var t=window.location.href;return new URL(t)},L=function(t){for(var e="".concat(t,"="),n=decodeURIComponent(document.cookie).split(";"),r=0;r0&&void 0!==arguments[0]&&arguments[0],e=O().hostname;t&&"string"==typeof t&&(e=t);var n=e.split(".");return"".concat(n[n.length-2],".").concat(n[n.length-1])},I=function(){var t=T();return".".concat(t)},C=function(t,e,n){var r="".concat(t,"=").concat(e,";");void 0!==n?(i("Setting cookie with options: ",n),Object.entries(n).forEach((function(t){var e=u(t,2),n=e[0],o=e[1];if("expires"===n){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),r+="expires=".concat(i.toUTCString(),";")}else r+="".concat(n,"=").concat(o,";")}))):r+="path=/;",document.cookie=r},R=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="".concat(t,"= ;expires= Thu, 01 Jan 1970 00:00:00 GMT;"),o=T(),i=[o,"www".concat(o),".www".concat(o)];n&&i.push(n),Object.entries(e).forEach((function(t){var e=u(t,2),n=e[0],o=e[1];r+="".concat(n,"=").concat(o,";")})),0===Object.keys(e).length&&(r+="path=/;"),document.cookie=r,i.forEach((function(t){document.cookie=r.concat("domain=",t,";")}))},b=function(t){return d(t)},x=function(t){return(v=v||r(N().mark((function t(e){var n,r;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=T().split(".")[0],t.prev=1,t.next=4,E()({method:"get",url:"".concat(o.A.entitlementsEndpoint,"apple/subscription-check/").concat(n),params:{access_token:e}});case 4:if(!(r=t.sent).data){t.next=8;break}return i("Apple Sub Check: Request successful: ",r.data),t.abrupt("return","subscribed"===r.data.status);case 8:return t.abrupt("return",!1);case 11:return t.prev=11,t.t0=t.catch(1),i("Apple Sub Check: Request Failure: ",t.t0),t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[1,11]])})))).apply(this,arguments)},G=function(t){return(w=w||r(N().mark((function t(e){var n;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,E()({method:"get",url:"".concat(o.A.entitlementsEndpoint,"auth0/users/").concat(encodeURIComponent(e)),headers:{"X-Api-Key":o.A.entitlementsApiKey}});case 2:return n=t.sent,t.abrupt("return",n.data.encryptedUuid);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)},P=function(){return"complete"===document.readyState},M=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(e){var n=!0;if(P())e();else{i("UIHandler: ","Waiting for the body to load...");var o=setInterval(r(N().mark((function r(){return N().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t&&(n=P()),document.querySelector("body")&&n&&(clearInterval(o),e(!0));case 2:case"end":return r.stop()}}),r)}))),200)}}))},B=function(){return new Promise((function(t){i("blueConicReady | Waiting for BC to be ready."),window.blueConicClient.event.subscribe(window.blueConicClient.event.onReady,{},(function(){i("blueConicReady | onReady fired, BC profile is ready."),t(!0)}));var e=setTimeout((function(){clearTimeout(e),i("blueConicReady | onReady timeout, BC onReady unknown."),t(!1)}),3e3)}))},U=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(e){i("blueConicLoaded | waitTillBCReady is ".concat(t));var n=setTimeout((function(){clearTimeout(n),i("blueConicLoaded | onBlueConicLoaded timeout, resolving false for load status."),e(!1)}),1e4);void 0!==window.blueConicClient&&void 0!==window.blueConicClient.event&&void 0!==window.blueConicClient.event.subscribe?(i("blueConicLoaded | BC object already loaded"),t?e(B()):(clearTimeout(n),e())):(i('blueConicLoaded | BC not loaded, waiting for "onBlueConicLoaded" event'),window.addEventListener("onBlueConicLoaded",r(N().mark((function r(){var o;return N().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i("blueConicLoaded | onBlueConicLoaded event fired."),!t){r.next=10;break}return i("blueConicLoaded | waiting for blueConicReady..."),r.next=5,B();case 5:o=r.sent,clearTimeout(n),e(o),r.next=12;break;case 10:clearTimeout(n),e();case 12:case"end":return r.stop()}}),r)}))),!1))}))},_=function(){return(y=y||r(N().mark((function t(){return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U(!0);case 2:if(!t.sent){t.next=10;break}return t.next=6,new Promise((function(t){i("blueConicProfileReady | Waiting for BC Profile to be ready."),window.blueConicClient&&(window.blueConicClient.getSegments||window.blueConicClient.profile)&&(i("blueConicProfileReady | BC getSegments is ready."),t(!0)),window.blueConicClient.event.subscribe(window.blueConicClient.event.onBeforeInteractions,{},(function(){i("blueConicProfileReady | onBeforeInteractions fired, BC profile is ready."),t(!0)}));var e=setTimeout((function(){clearTimeout(e),i("blueConicProfileReady | onBeforeInteractions timeout, BC profile readiness unknown"),t(!1)}),3e3)}));case 6:if(t.sent){t.next=9;break}return t.abrupt("return",!1);case 9:return t.abrupt("return",blueConicClient.profile.getProfile().getValue("Auth0_ID"));case 10:return t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)},k=function(){return(m=m||r(N().mark((function t(){var e,n,r;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=["MICH LOWA","OHIO LOWA","PENN LOWA","NY LOWA","BOSTON LOWA","NORCAL LOWA","TWIN CITIES LOWA","DENV/PMP LOWA","SCNG LOWA","BANG LOWA","AMC LOWA","HC LOWA","GS LOWA","ORL LOWA","SS LOWA","NNDP LOWA","VP LOWA","NYDN LOWA","BAL LOWA","CG LOWA","CHI LOWA"],t.next=3,U(!0);case 3:if(!t.sent){t.next=15;break}if(n=window.blueConicClient.getSegments(),i("bcLowaCheck | BC segments for users: ",n),!(n.filter((function(t){return e.includes(t.name)})).length>0)){t.next=15;break}return t.next=11,_();case 11:if(!(r=t.sent)){t.next=14;break}return t.abrupt("return",{isSub:!0,uuid:r});case 14:case 15:return t.abrupt("return",{isSub:!1});case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)},D=function(){return new Promise((function(t,e){void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.authenticationReady?(i("utils.js | Authentication already ready: ",window.MNGAuthentication.authenticationReady),t(window.MNGAuthentication.authenticationReady)):(i("utils.js | Adding authenticationReady listener..."),window.addEventListener("authenticationReady",(function(n){try{var r=n.detail||{};i("utils.js | Event: authentication ready: ",r),t(r)}catch(t){i(t),e(t)}}),!1))}))},X=function(){R(g.AUTH0_SUB_COOKIE_KEY),localStorage.removeItem(g.USER_STORAGE_HASH),function(){i("Clearing entitlements...");try{R(g.ENTITLEMENT_COOKIE_KEY,{path:"/"})}catch(t){i("Failed to delete legacy cookie: ",t)}try{R(g.ENTITLEMENT_COOKIE_KEY,{path:"/",domain:T(),expires:365,secure:!0})}catch(t){i("Failed to delete entitlements cookie: ",t)}try{window.localStorage.removeItem(g.LOCAL_STORAGE_SESSION_KEY)}catch(t){i("Failed to remove local storage: ",t)}}()},F=function(){var t=O();return!["local","develop","preprod","trbdev"].some((function(e){return t.origin.includes(e)}))},H=function(t){i("Removing storageObject : ",t),void 0!==window.localStorage.getItem(t)&&(window.localStorage.removeItem(t),i("Storage Object removed : ",t))},Y=function(t){i("starting simpleEmailValidation");var e=new RegExp(/^(([^<>()[\]\\.,;:\s@']+(\.[^<>()[\]\\.,;:\s@']+)*)|('.+'))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i);if(!t)return{valid:!1,message:"Please enter an email."};if(!e.test(t))return{valid:!1,message:"Please enter a valid email."};var n=t.match(/\.([^.\n\s]*)$/)[1].toUpperCase(),r=["AAA","AARP","ABARTH","ABB","ABBOTT","ABBVIE","ABC","ABLE","ABOGADO","ABUDHABI","AC","ACADEMY","ACCENTURE","ACCOUNTANT","ACCOUNTANTS","ACO","ACTOR","AD","ADS","ADULT","AE","AEG","AERO","AETNA","AF","AFL","AFRICA","AG","AGAKHAN","AGENCY","AI","AIG","AIRBUS","AIRFORCE","AIRTEL","AKDN","AL","ALFAROMEO","ALIBABA","ALIPAY","ALLFINANZ","ALLSTATE","ALLY","ALSACE","ALSTOM","AM","AMAZON","AMERICANEXPRESS","AMERICANFAMILY","AMEX","AMFAM","AMICA","AMSTERDAM","ANALYTICS","ANDROID","ANQUAN","ANZ","AO","AOL","APARTMENTS","APP","APPLE","AQ","AQUARELLE","AR","ARAB","ARAMCO","ARCHI","ARMY","ARPA","ART","ARTE","AS","ASDA","ASIA","ASSOCIATES","AT","ATHLETA","ATTORNEY","AU","AUCTION","AUDI","AUDIBLE","AUDIO","AUSPOST","AUTHOR","AUTO","AUTOS","AVIANCA","AW","AWS","AX","AXA","AZ","AZURE","BA","BABY","BAIDU","BANAMEX","BANANAREPUBLIC","BAND","BANK","BAR","BARCELONA","BARCLAYCARD","BARCLAYS","BAREFOOT","BARGAINS","BASEBALL","BASKETBALL","BAUHAUS","BAYERN","BB","BBC","BBT","BBVA","BCG","BCN","BD","BE","BEATS","BEAUTY","BEER","BENTLEY","BERLIN","BEST","BESTBUY","BET","BF","BG","BH","BHARTI","BI","BIBLE","BID","BIKE","BING","BINGO","BIO","BIZ","BJ","BLACK","BLACKFRIDAY","BLOCKBUSTER","BLOG","BLOOMBERG","BLUE","BM","BMS","BMW","BN","BNPPARIBAS","BO","BOATS","BOEHRINGER","BOFA","BOM","BOND","BOO","BOOK","BOOKING","BOSCH","BOSTIK","BOSTON","BOT","BOUTIQUE","BOX","BR","BRADESCO","BRIDGESTONE","BROADWAY","BROKER","BROTHER","BRUSSELS","BS","BT","BUILD","BUILDERS","BUSINESS","BUY","BUZZ","BV","BW","BY","BZ","BZH","CA","CAB","CAFE","CAL","CALL","CALVINKLEIN","CAM","CAMERA","CAMP","CANON","CAPETOWN","CAPITAL","CAPITALONE","CAR","CARAVAN","CARDS","CARE","CAREER","CAREERS","CARS","CASA","CASE","CASH","CASINO","CAT","CATERING","CATHOLIC","CBA","CBN","CBRE","CBS","CC","CD","CENTER","CEO","CERN","CF","CFA","CFD","CG","CH","CHANEL","CHANNEL","CHARITY","CHASE","CHAT","CHEAP","CHINTAI","CHRISTMAS","CHROME","CHURCH","CI","CIPRIANI","CIRCLE","CISCO","CITADEL","CITI","CITIC","CITY","CITYEATS","CK","CL","CLAIMS","CLEANING","CLICK","CLINIC","CLINIQUE","CLOTHING","CLOUD","CLUB","CLUBMED","CM","CN","CO","COACH","CODES","COFFEE","COLLEGE","COLOGNE","COM","COMCAST","COMMBANK","COMMUNITY","COMPANY","COMPARE","COMPUTER","COMSEC","CONDOS","CONSTRUCTION","CONSULTING","CONTACT","CONTRACTORS","COOKING","COOKINGCHANNEL","COOL","COOP","CORSICA","COUNTRY","COUPON","COUPONS","COURSES","CPA","CR","CREDIT","CREDITCARD","CREDITUNION","CRICKET","CROWN","CRS","CRUISE","CRUISES","CU","CUISINELLA","CV","CW","CX","CY","CYMRU","CYOU","CZ","DABUR","DAD","DANCE","DATA","DATE","DATING","DATSUN","DAY","DCLK","DDS","DE","DEAL","DEALER","DEALS","DEGREE","DELIVERY","DELL","DELOITTE","DELTA","DEMOCRAT","DENTAL","DENTIST","DESI","DESIGN","DEV","DHL","DIAMONDS","DIET","DIGITAL","DIRECT","DIRECTORY","DISCOUNT","DISCOVER","DISH","DIY","DJ","DK","DM","DNP","DO","DOCS","DOCTOR","DOG","DOMAINS","DOT","DOWNLOAD","DRIVE","DTV","DUBAI","DUNLOP","DUPONT","DURBAN","DVAG","DVR","DZ","EARTH","EAT","EC","ECO","EDEKA","EDU","EDUCATION","EE","EG","EMAIL","EMERCK","ENERGY","ENGINEER","ENGINEERING","ENTERPRISES","EPSON","EQUIPMENT","ER","ERICSSON","ERNI","ES","ESQ","ESTATE","ET","ETISALAT","EU","EUROVISION","EUS","EVENTS","EXCHANGE","EXPERT","EXPOSED","EXPRESS","EXTRASPACE","FAGE","FAIL","FAIRWINDS","FAITH","FAMILY","FAN","FANS","FARM","FARMERS","FASHION","FAST","FEDEX","FEEDBACK","FERRARI","FERRERO","FI","FIAT","FIDELITY","FIDO","FILM","FINAL","FINANCE","FINANCIAL","FIRE","FIRESTONE","FIRMDALE","FISH","FISHING","FIT","FITNESS","FJ","FK","FLICKR","FLIGHTS","FLIR","FLORIST","FLOWERS","FLY","FM","FO","FOO","FOOD","FOODNETWORK","FOOTBALL","FORD","FOREX","FORSALE","FORUM","FOUNDATION","FOX","FR","FREE","FRESENIUS","FRL","FROGANS","FRONTDOOR","FRONTIER","FTR","FUJITSU","FUN","FUND","FURNITURE","FUTBOL","FYI","GA","GAL","GALLERY","GALLO","GALLUP","GAME","GAMES","GAP","GARDEN","GAY","GB","GBIZ","GD","GDN","GE","GEA","GENT","GENTING","GEORGE","GF","GG","GGEE","GH","GI","GIFT","GIFTS","GIVES","GIVING","GL","GLASS","GLE","GLOBAL","GLOBO","GM","GMAIL","GMBH","GMO","GMX","GN","GODADDY","GOLD","GOLDPOINT","GOLF","GOO","GOODYEAR","GOOG","GOOGLE","GOP","GOT","GOV","GP","GQ","GR","GRAINGER","GRAPHICS","GRATIS","GREEN","GRIPE","GROCERY","GROUP","GS","GT","GU","GUARDIAN","GUCCI","GUGE","GUIDE","GUITARS","GURU","GW","GY","HAIR","HAMBURG","HANGOUT","HAUS","HBO","HDFC","HDFCBANK","HEALTH","HEALTHCARE","HELP","HELSINKI","HERE","HERMES","HGTV","HIPHOP","HISAMITSU","HITACHI","HIV","HK","HKT","HM","HN","HOCKEY","HOLDINGS","HOLIDAY","HOMEDEPOT","HOMEGOODS","HOMES","HOMESENSE","HONDA","HORSE","HOSPITAL","HOST","HOSTING","HOT","HOTELES","HOTELS","HOTMAIL","HOUSE","HOW","HR","HSBC","HT","HU","HUGHES","HYATT","HYUNDAI","IBM","ICBC","ICE","ICU","ID","IE","IEEE","IFM","IKANO","IL","IM","IMAMAT","IMDB","IMMO","IMMOBILIEN","IN","INC","INDUSTRIES","INFINITI","INFO","ING","INK","INSTITUTE","INSURANCE","INSURE","INT","INTERNATIONAL","INTUIT","INVESTMENTS","IO","IPIRANGA","IQ","IR","IRISH","IS","ISMAILI","IST","ISTANBUL","IT","ITAU","ITV","JAGUAR","JAVA","JCB","JE","JEEP","JETZT","JEWELRY","JIO","JLL","JM","JMP","JNJ","JO","JOBS","JOBURG","JOT","JOY","JP","JPMORGAN","JPRS","JUEGOS","JUNIPER","KAUFEN","KDDI","KE","KERRYHOTELS","KERRYLOGISTICS","KERRYPROPERTIES","KFH","KG","KH","KI","KIA","KIDS","KIM","KINDER","KINDLE","KITCHEN","KIWI","KM","KN","KOELN","KOMATSU","KOSHER","KP","KPMG","KPN","KR","KRD","KRED","KUOKGROUP","KW","KY","KYOTO","KZ","LA","LACAIXA","LAMBORGHINI","LAMER","LANCASTER","LANCIA","LAND","LANDROVER","LANXESS","LASALLE","LAT","LATINO","LATROBE","LAW","LAWYER","LB","LC","LDS","LEASE","LECLERC","LEFRAK","LEGAL","LEGO","LEXUS","LGBT","LI","LIDL","LIFE","LIFEINSURANCE","LIFESTYLE","LIGHTING","LIKE","LILLY","LIMITED","LIMO","LINCOLN","LINDE","LINK","LIPSY","LIVE","LIVING","LK","LLC","LLP","LOAN","LOANS","LOCKER","LOCUS","LOFT","LOL","LONDON","LOTTE","LOTTO","LOVE","LPL","LPLFINANCIAL","LR","LS","LT","LTD","LTDA","LU","LUNDBECK","LUXE","LUXURY","LV","LY","MA","MACYS","MADRID","MAIF","MAISON","MAKEUP","MAN","MANAGEMENT","MANGO","MAP","MARKET","MARKETING","MARKETS","MARRIOTT","MARSHALLS","MASERATI","MATTEL","MBA","MC","MCKINSEY","MD","ME","MED","MEDIA","MEET","MELBOURNE","MEME","MEMORIAL","MEN","MENU","MERCKMSD","MG","MH","MIAMI","MICROSOFT","MIL","MINI","MINT","MIT","MITSUBISHI","MK","ML","MLB","MLS","MM","MMA","MN","MO","MOBI","MOBILE","MODA","MOE","MOI","MOM","MONASH","MONEY","MONSTER","MORMON","MORTGAGE","MOSCOW","MOTO","MOTORCYCLES","MOV","MOVIE","MP","MQ","MR","MS","MSD","MT","MTN","MTR","MU","MUSEUM","MUSIC","MUTUAL","MV","MW","MX","MY","MZ","NA","NAB","NAGOYA","NAME","NATURA","NAVY","NBA","NC","NE","NEC","NET","NETBANK","NETFLIX","NETWORK","NEUSTAR","NEW","NEWS","NEXT","NEXTDIRECT","NEXUS","NF","NFL","NG","NGO","NHK","NI","NICO","NIKE","NIKON","NINJA","NISSAN","NISSAY","NL","NO","NOKIA","NORTHWESTERNMUTUAL","NORTON","NOW","NOWRUZ","NOWTV","NP","NR","NRA","NRW","NTT","NU","NYC","NZ","OBI","OBSERVER","OFFICE","OKINAWA","OLAYAN","OLAYANGROUP","OLDNAVY","OLLO","OM","OMEGA","ONE","ONG","ONL","ONLINE","OOO","OPEN","ORACLE","ORANGE","ORG","ORGANIC","ORIGINS","OSAKA","OTSUKA","OTT","OVH","PA","PAGE","PANASONIC","PARIS","PARS","PARTNERS","PARTS","PARTY","PASSAGENS","PAY","PCCW","PE","PET","PF","PFIZER","PG","PH","PHARMACY","PHD","PHILIPS","PHONE","PHOTO","PHOTOGRAPHY","PHOTOS","PHYSIO","PICS","PICTET","PICTURES","PID","PIN","PING","PINK","PIONEER","PIZZA","PK","PL","PLACE","PLAY","PLAYSTATION","PLUMBING","PLUS","PM","PN","PNC","POHL","POKER","POLITIE","PORN","POST","PR","PRAMERICA","PRAXI","PRESS","PRIME","PRO","PROD","PRODUCTIONS","PROF","PROGRESSIVE","PROMO","PROPERTIES","PROPERTY","PROTECTION","PRU","PRUDENTIAL","PS","PT","PUB","PW","PWC","PY","QA","QPON","QUEBEC","QUEST","RACING","RADIO","RE","READ","REALESTATE","REALTOR","REALTY","RECIPES","RED","REDSTONE","REDUMBRELLA","REHAB","REISE","REISEN","REIT","RELIANCE","REN","RENT","RENTALS","REPAIR","REPORT","REPUBLICAN","REST","RESTAURANT","REVIEW","REVIEWS","REXROTH","RICH","RICHARDLI","RICOH","RIL","RIO","RIP","RO","ROCHER","ROCKS","RODEO","ROGERS","ROOM","RS","RSVP","RU","RUGBY","RUHR","RUN","RW","RWE","RYUKYU","SA","SAARLAND","SAFE","SAFETY","SAKURA","SALE","SALON","SAMSCLUB","SAMSUNG","SANDVIK","SANDVIKCOROMANT","SANOFI","SAP","SARL","SAS","SAVE","SAXO","SB","SBI","SBS","SC","SCA","SCB","SCHAEFFLER","SCHMIDT","SCHOLARSHIPS","SCHOOL","SCHULE","SCHWARZ","SCIENCE","SCOT","SD","SE","SEARCH","SEAT","SECURE","SECURITY","SEEK","SELECT","SENER","SERVICES","SES","SEVEN","SEW","SEX","SEXY","SFR","SG","SH","SHANGRILA","SHARP","SHAW","SHELL","SHIA","SHIKSHA","SHOES","SHOP","SHOPPING","SHOUJI","SHOW","SHOWTIME","SI","SILK","SINA","SINGLES","SITE","SJ","SK","SKI","SKIN","SKY","SKYPE","SL","SLING","SM","SMART","SMILE","SN","SNCF","SO","SOCCER","SOCIAL","SOFTBANK","SOFTWARE","SOHU","SOLAR","SOLUTIONS","SONG","SONY","SOY","SPA","SPACE","SPORT","SPOT","SR","SRL","SS","ST","STADA","STAPLES","STAR","STATEBANK","STATEFARM","STC","STCGROUP","STOCKHOLM","STORAGE","STORE","STREAM","STUDIO","STUDY","STYLE","SU","SUCKS","SUPPLIES","SUPPLY","SUPPORT","SURF","SURGERY","SUZUKI","SV","SWATCH","SWISS","SX","SY","SYDNEY","SYSTEMS","SZ","TAB","TAIPEI","TALK","TAOBAO","TARGET","TATAMOTORS","TATAR","TATTOO","TAX","TAXI","TC","TCI","TD","TDK","TEAM","TECH","TECHNOLOGY","TEL","TEMASEK","TENNIS","TEVA","TF","TG","TH","THD","THEATER","THEATRE","TIAA","TICKETS","TIENDA","TIFFANY","TIPS","TIRES","TIROL","TJ","TJMAXX","TJX","TK","TKMAXX","TL","TM","TMALL","TN","TO","TODAY","TOKYO","TOOLS","TOP","TORAY","TOSHIBA","TOTAL","TOURS","TOWN","TOYOTA","TOYS","TR","TRADE","TRADING","TRAINING","TRAVEL","TRAVELCHANNEL","TRAVELERS","TRAVELERSINSURANCE","TRUST","TRV","TT","TUBE","TUI","TUNES","TUSHU","TV","TVS","TW","TZ","UA","UBANK","UBS","UG","UK","UNICOM","UNIVERSITY","UNO","UOL","UPS","US","UY","UZ","VA","VACATIONS","VANA","VANGUARD","VC","VE","VEGAS","VENTURES","VERISIGN","VERSICHERUNG","VET","VG","VI","VIAJES","VIDEO","VIG","VIKING","VILLAS","VIN","VIP","VIRGIN","VISA","VISION","VIVA","VIVO","VLAANDEREN","VN","VODKA","VOLKSWAGEN","VOLVO","VOTE","VOTING","VOTO","VOYAGE","VU","VUELOS","WALES","WALMART","WALTER","WANG","WANGGOU","WATCH","WATCHES","WEATHER","WEATHERCHANNEL","WEBCAM","WEBER","WEBSITE","WED","WEDDING","WEIBO","WEIR","WF","WHOSWHO","WIEN","WIKI","WILLIAMHILL","WIN","WINDOWS","WINE","WINNERS","WME","WOLTERSKLUWER","WOODSIDE","WORK","WORKS","WORLD","WOW","WS","WTC","WTF","XBOX","XEROX","XFINITY","XIHUAN","XIN","XN--11B4C3D","XN--1CK2E1B","XN--1QQW23A","XN--2SCRJ9C","XN--30RR7Y","XN--3BST00M","XN--3DS443G","XN--3E0B707E","XN--3HCRJ9C","XN--3PXU8K","XN--42C2D9A","XN--45BR5CYL","XN--45BRJ9C","XN--45Q11C","XN--4DBRK0CE","XN--4GBRIM","XN--54B7FTA0CC","XN--55QW42G","XN--55QX5D","XN--5SU34J936BGSG","XN--5TZM5G","XN--6FRZ82G","XN--6QQ986B3XL","XN--80ADXHKS","XN--80AO21A","XN--80AQECDR1A","XN--80ASEHDB","XN--80ASWG","XN--8Y0A063A","XN--90A3AC","XN--90AE","XN--90AIS","XN--9DBQ2A","XN--9ET52U","XN--9KRT00A","XN--B4W605FERD","XN--BCK1B9A5DRE4C","XN--C1AVG","XN--C2BR7G","XN--CCK2B3B","XN--CCKWCXETD","XN--CG4BKI","XN--CLCHC0EA0B2G2A9GCD","XN--CZR694B","XN--CZRS0T","XN--CZRU2D","XN--D1ACJ3B","XN--D1ALF","XN--E1A4C","XN--ECKVDTC9D","XN--EFVY88H","XN--FCT429K","XN--FHBEI","XN--FIQ228C5HS","XN--FIQ64B","XN--FIQS8S","XN--FIQZ9S","XN--FJQ720A","XN--FLW351E","XN--FPCRJ9C3D","XN--FZC2C9E2C","XN--FZYS8D69UVGM","XN--G2XX48C","XN--GCKR3F0F","XN--GECRJ9C","XN--GK3AT1E","XN--H2BREG3EVE","XN--H2BRJ9C","XN--H2BRJ9C8C","XN--HXT814E","XN--I1B6B1A6A2E","XN--IMR513N","XN--IO0A7I","XN--J1AEF","XN--J1AMH","XN--J6W193G","XN--JLQ480N2RG","XN--JVR189M","XN--KCRX77D1X4A","XN--KPRW13D","XN--KPRY57D","XN--KPUT3I","XN--L1ACC","XN--LGBBAT1AD8J","XN--MGB9AWBF","XN--MGBA3A3EJT","XN--MGBA3A4F16A","XN--MGBA7C0BBN0A","XN--MGBAAKC7DVF","XN--MGBAAM7A8H","XN--MGBAB2BD","XN--MGBAH1A3HJKRD","XN--MGBAI9AZGQP6J","XN--MGBAYH7GPA","XN--MGBBH1A","XN--MGBBH1A71E","XN--MGBC0A9AZCG","XN--MGBCA7DZDO","XN--MGBCPQ6GPA1A","XN--MGBERP4A5D4AR","XN--MGBGU82A","XN--MGBI4ECEXP","XN--MGBPL2FH","XN--MGBT3DHD","XN--MGBTX2B","XN--MGBX4CD0AB","XN--MIX891F","XN--MK1BU44C","XN--MXTQ1M","XN--NGBC5AZD","XN--NGBE9E0A","XN--NGBRX","XN--NODE","XN--NQV7F","XN--NQV7FS00EMA","XN--NYQY26A","XN--O3CW4H","XN--OGBPF8FL","XN--OTU796D","XN--P1ACF","XN--P1AI","XN--PGBS0DH","XN--PSSY2U","XN--Q7CE6A","XN--Q9JYB4C","XN--QCKA1PMC","XN--QXA6A","XN--QXAM","XN--RHQV96G","XN--ROVU88B","XN--RVC1E0AM3E","XN--S9BRJ9C","XN--SES554G","XN--T60B56A","XN--TCKWE","XN--TIQ49XQYJ","XN--UNUP4Y","XN--VERMGENSBERATER-CTB","XN--VERMGENSBERATUNG-PWB","XN--VHQUV","XN--VUQ861B","XN--W4R85EL8FHU5DNRA","XN--W4RS40L","XN--WGBH1C","XN--WGBL6A","XN--XHQ521B","XN--XKC2AL3HYE2A","XN--XKC2DL3A5EE0H","XN--Y9A3AQ","XN--YFRO4I67O","XN--YGBI2AMMX","XN--ZFR164B","XXX","XYZ","YACHTS","YAHOO","YAMAXUN","YANDEX","YE","YODOBASHI","YOGA","YOKOHAMA","YOU","YOUTUBE","YT","YUN","ZA","ZAPPOS","ZARA","ZERO","ZIP","ZM","ZONE","ZUERICH","ZW"].includes(n);return i("simpleEmailValidation: ","TLD search ".concat(r)),!1===r?{valid:!1,message:"Please enter a valid email domain."}:-1===["zzz.pl"].findIndex((function(e){return e===t.split("@")[1]}))?{valid:!0,message:"Valid"}:{valid:!1,message:"Please enter a valid email."}};window.simpleEmailValidation=Y;var K;window.validatePhoneNumber=function(t){return/^[0-9]([0-9 -])*[0-9]$/.test(t)};var W=function(){return(S=S||r(N().mark((function t(){var e,n;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===K){t.next=2;break}return t.abrupt("return",K);case 2:return e=o.A.auth0Domain,n=o.A.auth0ClientId,t.next=5,createAuth0Client({domain:e,client_id:n,useRefreshTokens:!0,cacheLocation:"localstorage",audience:"access-extension"});case 5:return K=t.sent,t.abrupt("return",K);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)},j=function(t){i("utils.js | auth event dispathed");var e=new CustomEvent("authenticationReady",{detail:t});window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.authenticationReady=t,i("Utils.js | Dispatching authenticationReady Event: ",e),window.dispatchEvent(e),i("Utils.js | Dispatched authenticationReady event!")},V=function(t){if(void 0!==window.authentication_config){var e=window.authentication_config,n=Object.keys(e).filter((function(n){return n.includes(t)&&"1"===e[n]}));return i("checkOneTapOptions: enabled options",n),n.length>0}return!1},J=function(t){return Number.isInteger(Number(t))},Z=function(t){o.A.datadogEnabled&&window.DD_RUM.addTiming(t)};var Q,q,z,$,tt,et,nt,rt;function ot(){ot=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new x(r||[]);return i(a,"_invoke",{value:I(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var p="suspendedStart",d="suspendedYield",A="executing",E="completed",g={};function v(){}function w(){}function y(){}var m={};l(m,c,(function(){return this}));var S=Object.getPrototypeOf,N=S&&S(S(G([])));N&&N!==r&&o.call(N,c)&&(m=N);var O=y.prototype=v.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function I(t,n,r){var o=p;return function(i,a){if(o===A)throw new Error("Generator is already running");if(o===E){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=C(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=A;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:d,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function G(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:G(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}var it=function(){return(Q=Q||r(ot().mark((function t(){return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U();case 2:return t.next=4,D();case 4:return t.abrupt("return",new Promise((function(t){i("ANALYTICS: inside BCregwall events");var e=O();e.searchParams.delete("regwall");var n=blueConicClient.profile.getProfile();localStorage.setItem("regwallSuccess","yes"),localStorage.setItem("regwallEvent","yes"),n.setValue("bang_reg_wall_status","Y"),n.setValue("regwall_newspaper",e.host),n.setValue("regwall_success_date",new Date),n.setValue("regwall_success","yes"),blueConicClient.profile.updateProfile(),t(!0)})));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)},at=function(t){return(q=q||r(ot().mark((function t(e){var n,r,o,a,c;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{void 0!==(n=b(e))&&n&&(i("ANALYTICS: Partner Access: JWT found"),r=n.entitlement_entitled,o=n.entitlement_source,a=n.entitlement_organizationTrackingId,c=n.entitlement_organizationType,i("ANALYTICS: Partner Access Event: Entitled: ".concat(r," and source: ").concat(o)),r&&"partner-access"===o&&(i("ANALYTICS: GA event for partner access"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"partnerAccess",partner:"".concat(a,"|").concat(c)})))}catch(t){i("ANALYTICS: Failed to send Partner Access event: ",t)}case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)},ct=function(){return(z=z||r(ot().mark((function t(){return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{"yes"===localStorage.getItem("regwallEvent")&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"regwall_success"}),i("ANALYTICS: GA/ datalayer ",window.dataLayer),localStorage.removeItem("regwallEvent"))}catch(t){i("ANALYTICS: Failed to send Regwall Succuss Event: ",t)}case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)},st=function(t,e){return($=$||r(ot().mark((function t(e,n){var r,o;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.entitlements&&(r=b(n.entitlements.token)),i("ANALYTICS: user state variables are: ",e,n.userState),o="known"===e&&n.userState?r&&r.entitlement_entitled?"comp"===r.entitlement_level||"freeTrial"===r.entitlement_level?"subscriber-".concat(r.entitlement_level):"".concat(n.userState).concat(r.entitlement_serviceCode?"-".concat(r.entitlement_serviceCode):""):n.userState:"known"!==e||n.userState?"unknown"===e||"unknown-default"===e||"unknown-fail"===e&&"noEntitlements"===n.userState?e:e&&n.userState?r&&r.entitlement_entitled?"".concat(n.userState).concat(r.entitlement_serviceCode?"-".concat(r.entitlement_serviceCode):""):n.userState:"noState":"known-entitlements-failed",i("ANALYTICS: user state is ",o),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Auth0State_event",Auth0State:o});case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)},ut=function(){return(tt=tt||r(ot().mark((function t(){var e,n,r;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,D();case 3:n=t.sent,r=n.isAuthenticated,t.t0=r,t.next=!0===t.t0?8:!1===t.t0?10:t.t0===g.USER_IS_LOWA?12:14;break;case 8:return e="known",t.abrupt("break",16);case 10:return e="unknown",t.abrupt("break",16);case 12:return e=g.USER_IS_LOWA,t.abrupt("break",16);case 14:return e="unknown-default",t.abrupt("break",16);case 16:return t.abrupt("return",e);case 19:return t.prev=19,t.t1=t.catch(0),i("ANALYTICS: Error during onAuthReadyAnalytics: ",t.t1),t.abrupt("return","unknown-fail");case 23:case"end":return t.stop()}}),t,null,[[0,19]])})))).apply(this,arguments)},lt=function(t){try{window.dataLayer.push({event:t}),i("ANALYTICS: ".concat(t," event")),i("ANALYTICS: GA/ datalayer ",window.dataLayer)}catch(e){i("ANALYTICS: Failed to send ".concat(t," event: "),e)}},ft=function(t){try{var e={};Object.keys(t).forEach((function(n){e[n]=t[n]})),0!==Object.keys(e).length&&window.dataLayer.push(e),i("ANALYTICS: ".concat(t.event," event")),i("ANALYTICS: GA/ datalayer ",window.dataLayer)}catch(e){i("ANALYTICS: Failed to send ".concat(t.event," event: "),e)}},ht=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={event:"one_tap_login",gotGroup:e,gotExperiment:t};switch(t){case"placement":n.gotDisplayPosition=window.authentication_config["got".concat(e,"ModalPosition")];break;case"scrolling":n.gotScrollDepthPercentage=window.authentication_config["got".concat(e,"GroupDepth")],n.gotDisplayPosition=window.authentication_config["got".concat(e,"GroupDelayPosition")];break;case"delayTime":n.gotTimeUntilDisplay=Math.floor(J(window.authentication_config["got".concat(e,"GroupTime")])?parseInt(window.authentication_config["got".concat(e,"GroupTime")],10):1);break;default:return n.event}return n},pt=function(t){try{var e={googleonetap:"one_tap_login",viafoura_signup:"viafoura_signup_success",viafoura_login:"viafoura_login_success"}[t];"one_tap_login"===e?(n=localStorage.getItem("abcdLocal"),r=localStorage.getItem("abcdeLocal"),o=V("GroupEnabled"),a=V("GroupDelayEnabled"),c=V("GroupTimeDelayEnabled"),s=V("got".concat(n,"GroupEnabled")),u=V("got".concat(r,"GroupDelayEnabled")),l=V("got".concat(n,"GroupTimeDelayEnabled")),f=/Windows|Macintosh|Mac OS X|Linux/.test(navigator.userAgent),n&&o&&s&&!a&&f&&!c?(i("ANALYTICS: Position event enabled"),ft(ht("placement",n))):r&&!o&&a&&u&&!c?(i("ANALYTICS: Scroll delay enabled"),ft(ht("scrolling",r))):n&&!o&&!a&&c&&l?(i("ANALYTICS: Time delay enabled"),ft(ht("delayTime",n))):(i("ANALYTICS: No custom event detected"),lt(ht("default")))):lt(e)}catch(t){i("ANALYTICS: Event not setup",t)}var n,r,o,a,c,s,u,l,f},dt=function(){return(et=et||r(ot().mark((function t(){var e,n,a,c,s;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e=!1,t.next=4,new Promise((function(t,e){if(o.A.entitlementsEnabled)if(void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.entitlementsReady)i("Entitlements already ready: ",window.MNGAuthentication.entitlementsReady),t(window.MNGAuthentication.entitlementsReady);else{var n;i("Adding entitlementsReady listener..."),window.addEventListener("entitlementsReady",(function(o){return(n=n||r(N().mark((function n(r){var o;return N().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:try{o=r.detail||{},i("Utils.js | Event: entitlements ready: ",o),t(o)}catch(t){i(t),e(t)}case 1:case"end":return n.stop()}}),n)})))).apply(this,arguments)}),!1)}else t(!1)}));case 4:if(!(n=t.sent)||!n.token){t.next=12;break}return a=n.token,c=n.isEntitled,s=n.adfree,i("ANALYTICS: entitlements options: ",c,s),!0===s&&i("ANALYTICS: user state: found ad free",s),!0===c?(i("ANALYTICS: user state: found subscriber"),e="subscriber"):(i("ANALYTICS: user state: LINA"),e="lina"),at(a),t.abrupt("return",{userState:e,entitlements:n});case 12:return t.abrupt("return","noEntitlements");case 15:return t.prev=15,t.t0=t.catch(0),i("ANALYTICS:",t.t0),t.abrupt("return","entitlementError");case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))).apply(this,arguments)},At=function(){return(nt=nt||r(ot().mark((function t(){return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U();case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)};const Et={onLoadAnalytics:function(){return(rt=rt||r(ot().mark((function t(){var e,n,r;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i("ANALYTICS: Start Analytics"),ct(),window.MNGAuthentication.postAuthEvents=[],window.MNGAuthentication.preAuthGTMEvents=[],window.MNGAuthentication.postAuthEvents.push(pt),!((e=O()).pathname.startsWith("/logout")||e.pathname.startsWith("/login")||e.pathname.startsWith("/callback"))){t.next=8;break}return t.abrupt("return");case 8:return At(),t.next=11,ut();case 11:return n=t.sent,t.next=14,dt();case 14:r=t.sent,st(n,r);case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)},blueConicRegwallEvents:it,callPreparedGTMEvent:lt,callCustomGTMEvent:ft};var gt,vt,wt,yt,mt,St;function Nt(){Nt=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new x(r||[]);return i(a,"_invoke",{value:I(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var p="suspendedStart",d="suspendedYield",A="executing",E="completed",g={};function v(){}function w(){}function y(){}var m={};l(m,c,(function(){return this}));var S=Object.getPrototypeOf,N=S&&S(S(G([])));N&&N!==r&&o.call(N,c)&&(m=N);var O=y.prototype=v.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function I(t,n,r){var o=p;return function(i,a){if(o===A)throw new Error("Generator is already running");if(o===E){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=C(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=A;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:d,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function G(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:G(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}var Ot,Lt,Tt,It,Ct,Rt,bt,xt=function(){try{var t=localStorage.getItem(g.LOCAL_STORAGE_SESSION_KEY);return"string"==typeof t?t:"{}"}catch(t){i("Unable to get session from local storage: ",t)}return"{}"},Gt=function(t){try{i("Setting local storage session",t),localStorage.setItem(g.LOCAL_STORAGE_SESSION_KEY,t)}catch(t){i("Unable to save session from local storage: ",t)}},Pt=function(t){try{C(g.ENTITLEMENT_COOKIE_KEY,t,{path:"/",domain:I(),expires:365,secure:!0})}catch(t){i("Unable to save session to cookie storage: ",t)}},Mt=function(){return(gt=gt||r(Nt().mark((function t(){var e,n,r,a,c,s,u,l,f,h,p,d,A,g,v,w,y,m;return Nt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=o.A.sessionServer,n="".concat(e,"/api/session"),i("Checking server session: ",n),t.next=5,E().get(n,{withCredentials:!0});case 5:if(!(r=t.sent).data){t.next=17;break}return f=r.data.entitlementTokenDecoded,h=r.data,p=h.accessToken,d=h.idToken,A=h.entitlementToken,g=null!==(a=null==f?void 0:f.entitlement_expiry)&&void 0!==a?a:null,v=null!==(c=null==f?void 0:f.entitlement_source)&&void 0!==c?c:null,w=null!==(s=null==f?void 0:f.entitlement_entitled)&&void 0!==s?s:null,y=null!==(u=null==f?void 0:f.entitlement_extras_adfree)&&void 0!==u?u:null,m=null!==(l=null==f?void 0:f.entitlement_level)&&void 0!==l?l:null,Gt(JSON.stringify({accessToken:p,idToken:d,entitlementToken:A,expiration:g,entitlementSource:v,isEntitled:w,adFree:y,entitlementLevel:m})),""!==A&&"string"==typeof A&&Pt(A),t.abrupt("return",{accessToken:p,idToken:d,entitlementToken:A,expiration:g,entitlementSource:v,isEntitled:w,adFree:y,entitlementLevel:m});case 17:return t.abrupt("return",{accessToken:null,idToken:null,entitlementToken:null,expiration:null,entitlementSource:null,isEntitled:null,adFree:null,entitlementLevel:null});case 18:case"end":return t.stop()}}),t)})))).apply(this,arguments)},Bt=function(t){return(vt=vt||r(Nt().mark((function t(e){var n,r;return Nt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=o.A.sessionServer,r="".concat(n,"/api/session"),i("Updating server session: ",r),t.next=6,E().post(r,e,{withCredentials:!0});case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),i("Failed to update session server: ",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))).apply(this,arguments)},Ut=function(){return(wt=wt||r(Nt().mark((function t(){var e,n;return Nt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e=o.A.sessionServer,n="".concat(e,"/api/session"),i("Deleting server session: ",n),t.next=6,E().delete(n,{withCredentials:!0});case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),i("Failed to delete server session: ",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))).apply(this,arguments)},_t=function(){return(yt=yt||r(Nt().mark((function t(){var e,n,r,o,a,c,s,u,l,f,h,p,d,A,E,g,v,w,y,m,S,N,O,L,T,I,C;return Nt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i("Inside getSession"),t.prev=1,l=xt(),i("Session: __MNG_Session = ",l),f=JSON.parse(l),h=f.accessToken,p=f.idToken,d=f.entitlementToken,A=f.expiration,E=f.entitlementSource,g=f.isEntitled,v=f.adFree,w=f.entitlementLevel,n=h,o=A,a=E,c=g,s=v,u=w,i("Session: check both tokens: ",e=p,r=d),void 0!==p&&void 0!==d&&null!==p&&null!==d){t.next=35;break}return i("Session: missing id or entitlements, try session server"),t.next=18,Mt();case 18:y=t.sent,m=y.accessToken,S=y.idToken,N=y.entitlementToken,O=y.expiration,L=y.entitlementSource,T=y.isEntitled,I=y.adFree,C=y.entitlementLevel,n=m,e=S,r=N,o=O,a=L,c=T,s=I,u=C;case 35:t.next=40;break;case 37:t.prev=37,t.t0=t.catch(1),i("Failed to get session: ",t.t0);case 40:return i("Returning session: ",e,n,r),t.abrupt("return",{accessToken:n,idToken:e,entitlementToken:r,expiration:o,entitlementSource:a,isEntitled:c,adFree:s,entitlementLevel:u});case 42:case"end":return t.stop()}}),t,null,[[1,37]])})))).apply(this,arguments)},kt=function(t){return(mt=mt||r(Nt().mark((function t(e){var n,r,o,a,c,s,u,l,f,h,p,d,A,E,g,v,w,y,m,S,N,O,L,T,I,C,R,b;return Nt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n=xt(),r=JSON.parse(n),o=r.accessToken,a=void 0===o?null:o,c=r.idToken,s=void 0===c?null:c,u=r.entitlementToken,l=void 0===u?null:u,f=r.expiration,h=void 0===f?null:f,p=r.entitlementSource,d=void 0===p?null:p,A=r.isEntitled,E=void 0===A?null:A,g=r.adFree,v=void 0===g?null:g,w=r.entitlementLevel,y=void 0===w?null:w,m=e.accessToken,S=e.idToken,N=e.entitlementToken,O=e.expiration,L=e.entitlementSource,T=e.isEntitled,I=e.adFree,C=e.entitlementLevel,R={accessToken:null==m?a:m,idToken:null==S?s:S,entitlementToken:null==N?l:N,expiration:null==O?h:O,entitlementSource:null==L?d:L,isEntitled:null==T?E:T,adFree:null==I?v:I,entitlementLevel:null==C?y:C},i("Current session data: ",r),i("New session data: ",e),i("Updated session data:",R),b=JSON.stringify(R),Gt(b),""!==R.entitlementToken&&"string"==typeof R.entitlementToken&&Pt(R.entitlementToken),n===b){t.next=15;break}return t.next=15,Bt(R);case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(0),i("Unable to save session: ",t.t0);case 20:case"end":return t.stop()}}),t,null,[[0,17]])})))).apply(this,arguments)},Dt=function(){return(St=St||r(Nt().mark((function t(){return Nt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i("Ending session..."),X(),t.next=4,Ut();case 4:localStorage.removeItem(g.LOCAL_STORAGE_SESSION_KEY);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)};function Xt(){Xt=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new x(r||[]);return i(a,"_invoke",{value:I(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var p="suspendedStart",d="suspendedYield",A="executing",E="completed",g={};function v(){}function w(){}function y(){}var m={};l(m,c,(function(){return this}));var S=Object.getPrototypeOf,N=S&&S(S(G([])));N&&N!==r&&o.call(N,c)&&(m=N);var O=y.prototype=v.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function I(t,n,r){var o=p;return function(i,a){if(o===A)throw new Error("Generator is already running");if(o===E){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=C(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=A;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:d,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function G(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:G(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}var Ft=function(){return"logout"===(O().searchParams.get("state")||"").toLowerCase()};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.logoutCallbacks=[];var Ht=function(t){return(Ot=Ot||r(Xt().mark((function t(e){var n;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,W();case 2:n=t.sent,i("Calling Auth0 logout..."),n.logout({returnTo:e});case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)},Yt=function(){i("Check for SS paywall Cookie");var t=window.location.hostname,e=document.cookie.split(";").find((function(t){return t.trim().startsWith("vip-go-seg=vc-v1__has_access")}));if(/^(?!:\/\/)([a-zA-Z0-9-_]{1,63}\.?)+[a-zA-Z]{2,6}$/.test(t)&&e){i("SS paywall Cookie found, removing it");var n=e.split("=")[0].trim();document.cookie="".concat(n,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=").concat(t),document.cookie="".concat(n,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}},Kt=function(){return(Lt=Lt||r(Xt().mark((function t(){var e,n,o,a,c;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i("Attempting to logout..."),Yt(),!window.authentication_config.sessionManagementEnabled){t.next=7;break}return t.next=5,Dt();case 5:t.next=8;break;case 7:X();case 8:return t.prev=8,i("Cycling through logout callbacks..."),e=window.MNGAuthentication.logoutCallbacks.map((function(t){return t()})),t.next=13,Promise.all(e);case 13:i("Finished cycling through logout callbacks."),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(8),i("Failed to cycle through logout callbacks: ",t.t0);case 19:Object.keys(localStorage).filter((function(t){return t.includes("auth0")})).forEach((function(t){localStorage.removeItem(t),i("Removed Auth0 storage object...")})),H("hhsl"),H("userNewsLetterData"),H(g.REGWALL_USER_IS_SUBSCRIBED),H(g.USER_PROFILE_HASH),n=O(),o=window.location.origin;try{n.searchParams.get("returnURL")&&(a=decodeURIComponent(n.searchParams.get("returnURL")),o=a)}catch(t){i(t),o=window.location.origin}return o=new URL(o),t.next=31,window.ConnextUtils.connextReady();case 31:if(!t.sent){t.next=63;break}if(i("Auth | Silent mode enabled ",Connext.GetOptions().Silentmode),i("Auth | Run connext manually if Silent Mode is on."),window.ConnextUtils.rerunConnextEntitlements(!0),c=o,o.origin!==window.location.origin&&(c=new URL(window.location.origin)).searchParams.append("returnAfterLogout",o),window.history.replaceState({additionalInformation:"Updated the URL to prevent another login cycle"},"Home",c),!F()){t.next=44;break}i("About to call Connext Logout..."),setTimeout((function(){Connext.Logout()}),500),t.next=61;break;case 44:if("Logged In"!==("undefined"==typeof CnnXt?(i("Connext was not loaded."),!1):Connext.Storage.GetUserState())){t.next=58;break}if(i("Connext user state is logged in, setting timeout..."),setTimeout(r(Xt().mark((function t(){return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i("Connext took too long to logout, calling auth0 logout..."),t.next=3,Ht(o);case 3:case"end":return t.stop()}}),t)}))),8e3),"function"!=typeof Connext._logout){t.next=53;break}return i("About to call Connext _logout..."),t.next=51,Connext._logout();case 51:t.next=56;break;case 53:return i("About to call Connext Logout..."),t.next=56,Connext.Logout();case 56:t.next=61;break;case 58:return i("Connext user state is logged out, not calling it, going to auth0 logout."),t.next=61,Ht(o);case 61:t.next=66;break;case 63:return i("Connext Logout was NOT called"),t.next=66,Ht(o);case 66:case"end":return t.stop()}}),t,null,[[8,16]])})))).apply(this,arguments)},Wt=function(){var t=0;for(var e in localStorage){var n=2*localStorage[e].length/1024/1024;!Number.isNaN(n)&&localStorage.hasOwnProperty(e)&&(t+=n)}return t},jt=function(t,e,n,o,a){return(Tt=Tt||r(Xt().mark((function t(e,n,r,o,a){var c,u,l,f,h,p,d,A,E,g,v,w,y;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i("Attempting to login..."),Wt()>4.5&&localStorage.clear(),window.MNGAuthentication.preAuthGTMEvents.forEach((function(t){return lt(t)})),i("Cycled through preauth GTM events."),o&&(c=[],u=window.localStorage.getItem("callbackEvents"),l=JSON.parse(u),c=l&&l.length>0?s(new Set([].concat(s(o),s(l)))):o,window.localStorage.setItem("callbackEvents",JSON.stringify(c))),f=null,t.next=7,W();case 7:if(h=t.sent,p=O(),d=p.origin,A=new URL("".concat(d,"/callback")),E={},p.searchParams.get("regwall")&&(p.searchParams.get("returnUrl")&&(g=p.searchParams.get("returnUrl")),p.searchParams.get("auth_redirect")&&(g=p.searchParams.get("auth_redirect"))),p.pathname.startsWith("/login")||p.pathname.startsWith("/callback")?p.searchParams.get("returnUrl")?A.searchParams.set("auth_redirect",p.searchParams.get("returnUrl")):a&&A.searchParams.set("auth_redirect",a):A.searchParams.set("auth_redirect",p.toString()),g&&"regwall"!==e&&A.searchParams.set("auth_redirect",g),"true"===p.searchParams.get("close-after-finish")&&A.searchParams.set("close-after-finish","true"),"true"!==p.searchParams.get("ssl")){t.next=23;break}if(!window.authentication_config.sessionManagementEnabled){t.next=22;break}return t.next=20,Dt();case 20:t.next=23;break;case 22:X();case 23:return null!==(f=p.searchParams.get("login-with"))?E.connection=f:n&&(E.connection=n),v="none",e&&"regwall"===e&&(A.searchParams.set("regwall","true"),v="signUp",i("Logging in with regwall")),e&&(A.searchParams.set("loginsource",e),i("Logging in with ".concat(e))),r&&(E.login_hint=r),E.redirect_uri=A.toString(),E.initialScreen=v,"googleonetap"!==e&&(E.prompt="select_account"),null!==(w=p.searchParams.get("ampRegiWall"))&&(y=window.location.hostname,E.ampRegiWall=w,E.sourceDomain=y.replace("www.","").replace("preprod.","").replace("develop.",""),E.initialScreen="signUp",E.preferenceId=p.searchParams.get("prefId")),t.next=36,h.loginWithRedirect(E);case 36:case"end":return t.stop()}}),t)})))).apply(this,arguments)},Vt=function(){return new Promise((function(t){var e=setTimeout((function(){t()}),8e3);try{var n=window.localStorage.getItem("callbackEvents"),r=JSON.parse(n);r&&0!==r.length||t(),i("Adding listeners to events we need to wait for...");var o=r.map((function(t){return e=t,new Promise((function(t){i("Adding event to wait for: ",e),window.addEventListener(e,(function(n){try{var r=n.detail||{};i("Event: ".concat(e,"} ready: "),r),t(r)}catch(e){i(e),t()}}),!1)}));var e}));Promise.all(o).then((function(){clearTimeout(e),t()}))}catch(e){i("Failed to wait for callback events",e),t()}}))};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.oidcLoginCallbacks=[];var Jt=function(){return(It=It||r(Xt().mark((function t(){var e,n,o,a,c,s,u,l,f,h,p,d,A,E,v,w,y,m,S,N,L;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Yt(),e=O(),n=!1,o=e.searchParams.get("auth_redirect")||"https://".concat(window.location.host),a=e.searchParams.get("redirect_uri")||"",a.includes("applenews")?(i("This is Apple prelogin flow."),(c=new URL(a))?(c.searchParams.append("post-apple-login","true"),i("Post callback Apple redirect URL is ".concat(c)),jt(!1,!1,!1,[],c)):jt()):o.includes("post-apple-login")&&(i("This is Apple Callback flow."),n=!0,(s=new URL(decodeURIComponent(o))).searchParams.delete("post-apple-login"),o=s),i("Handling post login callback..."),!(u=e.searchParams.get("error_description"))){t.next=13;break}if("shouldAutoLogin"!==u){t.next=12;break}return t.abrupt("return",jt(!1,!1,!1,!1,o));case 12:n&&alert("There was an error in logging you in, please try again.");case 13:return t.next=15,W();case 15:return l=t.sent,t.next=18,l.handleRedirectCallback();case 18:return t.next=20,l.getIdTokenClaims();case 20:return f=t.sent,t.next=23,l.getUser();case 23:return h=t.sent,i("Auth0 user profile: ",h),p=f.__raw,t.next=28,l.getTokenSilently();case 28:return d=t.sent,t.prev=29,i("Cycling through login callbacks..."),t.next=33,Vt();case 33:return E=window.MNGAuthentication.oidcLoginCallbacks.map((function(t){return(A=A||r(Xt().mark((function t(e){return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e(p));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)})),t.next=36,Promise.all(E);case 36:i("Finished cycling through login callbacks."),t.next=42;break;case 39:t.prev=39,t.t0=t.catch(29),i("Failed to cycle through login callbacks: ",t.t0);case 42:if(v={accessToken:d,userId:h.sub,email:h.email,picture:h.picture},w=!1,y="",!n){t.next=61;break}return t.prev=46,t.next=49,G(v.userId);case 49:return y=t.sent,i("Encrypted apple uuid is: ".concat(y)),t.next=53,x(y);case 53:w=t.sent,i("Apple sub status is: ".concat(w)),t.next=61;break;case 57:t.prev=57,t.t1=t.catch(46),i("Apple sub check error: ".concat(t.t1)),alert("There was an error in logging you in, please try again.");case 61:if(H(g.REGWALL_USER_IS_SUBSCRIBED),!window.authentication_config.sessionManagementEnabled){t.next=66;break}return i("Saving idToken to session server"),t.next=66,kt({idToken:p,accessToken:d});case 66:if(!e.searchParams.get("close-after-finish")){t.next=68;break}return t.abrupt("return",window.close());case 68:if(!e.search.includes("loginsource")){t.next=73;break}return S=e.searchParams.get("loginsource"),N=window.MNGAuthentication.postAuthEvents.map((function(t){return(m=m||r(Xt().mark((function t(e){return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e(S));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)})),t.next=73,Promise.all(N);case 73:return t.prev=73,L=new URL(o),n&&w&&L.searchParams.append("access_token",y),i("Apple redirect URL:",L),t.abrupt("return",window.location.assign(L));case 80:t.prev=80,t.t2=t.catch(73),i("Failed to redirect after authentication: ",t.t2);case 83:return window.location.assign(new URL(window.location.origin)),t.abrupt("return","Finished execution, please await result...");case 85:case"end":return t.stop()}}),t,null,[[29,39],[46,57],[73,80]])})))).apply(this,arguments)},Zt=function(){return(Ct=Ct||r(Xt().mark((function t(){return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i("ANALYTICS: fireBC events"),t.next=3,it();case 3:i("ANALYTICS: bc values should be filled");case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)},Qt=function(){return(Rt=Rt||r(Xt().mark((function t(){var e,n,r,o,a,c,s,u,l,f,h,p,d;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,D();case 2:if(e=t.sent,n=e.idToken,r=e.isAuthenticated,""===n){t.next=18;break}return t.prev=6,c=b(n),s=c.email,u=c.picture,l=c.sub,f=c.name,h=c.nickname,p=c.connection_source,d=null===(o=c.user_metadata)||void 0===o||null===(a=o.customProfile)||void 0===a?void 0:a.nickname,l.split("|").pop(),t.abrupt("return",{authenticated:r,nickname:d||h||f,email:s,picture:u,userId:l,connectionSource:p});case 15:t.prev=15,t.t0=t.catch(6),i("Unable to parse idToken: ",n," Error: ",t.t0);case 18:return t.abrupt("return",{authenticated:r});case 19:case"end":return t.stop()}}),t,null,[[6,15]])})))).apply(this,arguments)};window.MNGAuthentication.login=jt,window.MNGAuthentication.logout=Kt,window.MNGAuthentication.getUserInfo=Qt;var qt=function(){return(bt=bt||r(Xt().mark((function e(){var n,a,c,s,u,l,f,h,p,d,A,E,v;return Xt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=O(),c=!1,s="",u=!1,l={},Ft()&&window.ConnextUtils.rerunConnextEntitlements(!0),a.searchParams.get("returnAfterLogout")&&(f=decodeURIComponent(a.searchParams.get("returnAfterLogout")),window.location.assign(f)),a.searchParams.has("entitlement_jwt")&&(window.authentication_config.sessionManagementEnabled=!1),h=function(){return(n=n||r(Xt().mark((function e(){var n,r;return Xt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,W();case 3:return n=e.sent,e.next=6,n.getIdTokenClaims();case 6:return l=e.sent,e.next=9,n.isAuthenticated();case 9:if(c=e.sent,s="object"===t(l)?l.__raw:"",r=L(g.ENTITLEMENT_COOKIE_KEY),c||!r){e.next=16;break}return e.next=15,n.getTokenSilently();case 15:u=e.sent;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),i("Unable to verify user has active auth0 session: ",e.t0);case 21:case"end":return e.stop()}}),e,null,[[0,18]])})))).apply(this,arguments)},!a.pathname.startsWith("/logout")){e.next=14;break}return i("Page is logout. Routing to logout function..."),e.next=13,Kt();case 13:return e.abrupt("return");case 14:if(!window.authentication_config.sessionManagementEnabled){e.next=40;break}return e.next=17,h();case 17:if(""===s){e.next=26;break}if(p=null,d=JSON.parse(window.localStorage.getItem(g.LOCAL_STORAGE_SESSION_KEY)),"{}"!==xt()){e.next=24;break}return d&&(p=d.jwt),e.next=24,kt({idToken:s,entitlementToken:p});case 24:e.next=38;break;case 26:return e.prev=26,e.next=29,_t();case 29:A=e.sent,s=A.idToken,(c="string"==typeof s)&&(l=b(s)),e.next=38;break;case 35:e.prev=35,e.t0=e.catch(26),i("Unable to initialize session: ",e.t0);case 38:e.next=42;break;case 40:return e.next=42,h();case 42:if(c||u||!o.A.blueconicEnabled||!o.A.bcLowaSegements){e.next=47;break}return e.next=45,k();case 45:(E=e.sent).isSub&&(c=g.USER_IS_LOWA,l={sub:E.uuid});case 47:if(j({isAuthenticated:c,idToken:s,accessToken:u,claims:l}),Z("authenticationReady"),!0===c?(i("User is authenticated."),a.searchParams.get("auth_redirect")&&(i("Auth Redirect is present, sending user to auth redirect..."),(v=a.searchParams.get("auth_redirect")).endsWith("#")&&(v=v.slice(0,v.length)),window.location.assign(v)),a.pathname.startsWith("/login")&&!Ft()&&(i("Page is login. The user is already logged in and Connext Logout param is not present... Redirecting..."),window.location.assign(a.origin))):i("User is not authenticated."),a.pathname.startsWith("/login")&&!Ft()?(i("Page is login. Attempting to log user in..."),jt()):i("Page is not login or Connext state is present"),!a.pathname.startsWith("/callback")||!a.searchParams.get("regwall")){e.next=60;break}return i("Page is callback with regwall param. Routing to regwall receiver..."),e.next=56,Zt();case 56:i("Now login from regwall"),jt(),e.next=64;break;case 60:if(!a.pathname.startsWith("/callback")){e.next=64;break}return i("Page is callback without regwall param. Routing to callback receiver..."),e.next=64,Jt();case 64:case"end":return e.stop()}}),e,null,[[26,35]])})))).apply(this,arguments)};window.MNGAuthentication.init=qt;const zt={init:qt};var $t=function(t,e){return new Promise((function(n){try{"undefined"==typeof CnnXt&&(i("Connext was not loaded."),n(!1)),i("connext subscribeToNewsletter","about to call Cnnxt NewsletterSubscribe with pref id ".concat(e," and email ").concat(t)),CnnXt.API.NewsletterSubscribe({email:t,id:e,onSuccess:function(){i("Signed user up to newsletter: ",e),n(!0)},onError:function(t){i("subscribeToNewsletter error: ",t),n(!1)}})}catch(t){i("subscribeToNewsletter Error:",t),n(!1)}}))};var te,ee,ne;function re(){re=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new x(r||[]);return i(a,"_invoke",{value:I(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var p="suspendedStart",d="suspendedYield",A="executing",E="completed",g={};function v(){}function w(){}function y(){}var m={};l(m,c,(function(){return this}));var S=Object.getPrototypeOf,N=S&&S(S(G([])));N&&N!==r&&o.call(N,c)&&(m=N);var O=y.prototype=v.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function I(t,n,r){var o=p;return function(i,a){if(o===A)throw new Error("Generator is already running");if(o===E){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=C(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=A;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:d,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function G(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:G(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}var oe=function(t){return(te=te||r(re().mark((function t(e){var n;return re().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i("Google token ",e),n=b(e.credential),t.prev=2,lt("one_tap_click"),localStorage.setItem("regwallSuccess","yes"),!o.A.newsletterId){t.next=9;break}return i("About to call Connext's subscribeToNewsletter function"),t.next=9,$t(n.email,o.A.newsletterId);case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(2),i("Error: ",t.t0);case 14:return i("About to login with onetap flow..."),t.next=17,window.MNGAuthentication.login("googleonetap",o.A.useTribMainGoogle?"Trib-Google":"google-oauth2",n.email);case 17:case"end":return t.stop()}}),t,null,[[2,11]])})))).apply(this,arguments)},ie=function(){return(ee=ee||r(re().mark((function t(){return re().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:google.accounts.id.initialize({client_id:o.A.googleClientId,callback:oe,auto_select:!1,cancel_on_tap_outside:!1}),i("Showing the onetap modal..."),google.accounts.id.prompt((function(t){var e;t.isDisplayed()?e="one_tap_displayed":t.isSkippedMoment()?e="one_tap_cancel":t.isNotDisplayed()&&"suppressed_by_user"===t.j&&(e="one_tap_auto_hide"),lt(e)}));case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)};const ae={init:function(){return(ne=ne||r(re().mark((function t(){var e,n,r,a,c;return re().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o.A.oneTapEnabled){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,D();case 4:if(e=t.sent,n=e.isAuthenticated,r=O(),n!==g.USER_IS_LOWA){t.next=15;break}return t.next=10,_();case 10:if(!(a=t.sent)||a.includes("google")){t.next=13;break}return t.abrupt("return");case 13:t.next=17;break;case 15:if(!(n||r.pathname.startsWith("/login")||r.pathname.startsWith("/logout")||r.pathname.startsWith("/callback"))){t.next=17;break}return t.abrupt("return");case 17:return t.next=19,M();case 19:return i("onetap loading..."),c=new Date,t.next=23,ie(c);case 23:case"end":return t.stop()}}),t)})))).apply(this,arguments)}};var ce;function se(){se=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new x(r||[]);return i(a,"_invoke",{value:I(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var p="suspendedStart",d="suspendedYield",A="executing",E="completed",g={};function v(){}function w(){}function y(){}var m={};l(m,c,(function(){return this}));var S=Object.getPrototypeOf,N=S&&S(S(G([])));N&&N!==r&&o.call(N,c)&&(m=N);var O=y.prototype=v.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function I(t,n,r){var o=p;return function(i,a){if(o===A)throw new Error("Generator is already running");if(o===E){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=C(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=A;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:d,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function G(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:G(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}window.disableAuth0AuthFlow=!0,function(){(ce=ce||r(se().mark((function t(){return se().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i("Settings: ",o.A),zt.init(),Et.onLoadAnalytics(),t.next=5,ae.init();case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}()})()})(); //# sourceMappingURL=mng-digisubs.main.bundle.js.map; /*! For license information please see mng-digisubs.connext.bundle.js.LICENSE.txt */ (()=>{var t={1928:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},2012:(t,e,n)=>{"use strict";var r=n(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},2505:(t,e,n)=>{t.exports=n(8015)},2881:(t,e,n)=>{"use strict";var r=n(9516),o=n(6987);t.exports=function(t,e,n){var i=this||o;return r.forEach(n,(function(n){t=n.call(i,t,e)})),t}},3191:(t,e,n)=>{"use strict";var r=n(1928);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e{"use strict";var r=n(9516);function o(){this.handlers=[]}o.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},3864:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},3948:(t,e,n)=>{"use strict";var r=n(9516);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4202:(t,e,n)=>{"use strict";var r=n(9516);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},4490:(t,e,n)=>{"use strict";var r=n(9516),o=n(2881),i=n(3864),a=n(6987),c=n(1928);function s(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new c("canceled")}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(s(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},4680:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4841:(t,e,n)=>{"use strict";var r=n(9641).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var i={};o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new Error(o(r," has been removed"+(e?" in "+e:"")));return e&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),o=r.length;o-- >0;){var i=r[o],a=e[i];if(a){var c=t[i],s=void 0===c||a(c,i,t);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},5019:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},5155:(t,e,n)=>{"use strict";var r=n(9516),o=n(9106),i=n(3471),a=n(4490),c=n(5343),s=n(4841),u=s.validators;function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=c(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&s.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(t);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=t;n.length;){var h=n.shift(),p=n.shift();try{f=h(f)}catch(t){p(t);break}}try{o=a(f)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(t){return t=c(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(c(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,r){return this.request(c(r||{},{method:t,url:e,data:n}))}})),t.exports=l},5343:(t,e,n)=>{"use strict";var r=n(9516);t.exports=function(t,e){e=e||{};var n={};function o(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function i(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(t[n],e[n])}function a(t){if(!r.isUndefined(e[t]))return o(void 0,e[t])}function c(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(void 0,e[n])}function s(n){return n in e?o(t[n],e[n]):n in t?o(void 0,t[n]):void 0}var u={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:s};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,o=e(t);r.isUndefined(o)&&e!==s||(n[t]=o)})),n}},5449:t=>{"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},5592:(t,e,n)=>{"use strict";var r=n(9516),o=n(7522),i=n(3948),a=n(9106),c=n(9615),s=n(2012),u=n(4202),l=n(7763),f=n(6987),h=n(1928);t.exports=function(t){return new Promise((function(e,n){var p,d=t.data,E=t.headers,A=t.responseType;function g(){t.cancelToken&&t.cancelToken.unsubscribe(p),t.signal&&t.signal.removeEventListener("abort",p)}r.isFormData(d)&&delete E["Content-Type"];var v=new XMLHttpRequest;if(t.auth){var w=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";E.Authorization="Basic "+btoa(w+":"+y)}var m=c(t.baseURL,t.url);function N(){if(v){var r="getAllResponseHeaders"in v?s(v.getAllResponseHeaders()):null,i={data:A&&"text"!==A&&"json"!==A?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:t,request:v};o((function(t){e(t),g()}),(function(t){n(t),g()}),i),v=null}}if(v.open(t.method.toUpperCase(),a(m,t.params,t.paramsSerializer),!0),v.timeout=t.timeout,"onloadend"in v?v.onloadend=N:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(N)},v.onabort=function(){v&&(n(l("Request aborted",t,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(l("Network Error",t,null,v)),v=null},v.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||f.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var S=(t.withCredentials||u(m))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;S&&(E[t.xsrfHeaderName]=S)}"setRequestHeader"in v&&r.forEach(E,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete E[e]:v.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(v.withCredentials=!!t.withCredentials),A&&"json"!==A&&(v.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&v.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(p=function(t){v&&(n(!t||t&&t.type?new h("canceled"):t),v.abort(),v=null)},t.cancelToken&&t.cancelToken.subscribe(p),t.signal&&(t.signal.aborted?p():t.signal.addEventListener("abort",p))),d||(d=null),v.send(d)}))}},6987:(t,e,n)=>{"use strict";var r=n(9516),o=n(7018),i=n(5449),a={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(5592)),s),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(c(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||u.transitional,n=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(a)})),t.exports=u},7018:(t,e,n)=>{"use strict";var r=n(9516);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},7522:(t,e,n)=>{"use strict";var r=n(7763);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},7763:(t,e,n)=>{"use strict";var r=n(5449);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},7980:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},8015:(t,e,n)=>{"use strict";var r=n(9516),o=n(9012),i=n(5155),a=n(5343);var c=function t(e){var n=new i(e),c=o(i.prototype.request,n);return r.extend(c,i.prototype,n),r.extend(c,n),c.create=function(n){return t(a(e,n))},c}(n(6987));c.Axios=i,c.Cancel=n(1928),c.CancelToken=n(3191),c.isCancel=n(3864),c.VERSION=n(9641).version,c.all=function(t){return Promise.all(t)},c.spread=n(7980),c.isAxiosError=n(5019),t.exports=c,t.exports.default=c},8805:(t,e,n)=>{"use strict";n.d(e,{A:()=>r}),window.authentication_config.sessionManagementEnabled="1"===window.authentication_config.sessionManagement;const r={debug:!!window.authentication_config.debug,sessionServer:window.authentication_config?window.authentication_config.sessionServer:"",entitlementsEnabled:!!window.authentication_config&&"1"===window.authentication_config.entitlementsEnabled,dropdownEnabled:!!window.authentication_config&&"1"===window.authentication_config.dropdownEnabled,enableReaderDashboardLink:!!window.authentication_config&&"1"===window.authentication_config.enableReaderDashboardLink,oneTapEnabled:!!window.authentication_config&&"1"===window.authentication_config.oneTapEnabled,useTribMainGoogle:!!window.authentication_config&&"1"===window.authentication_config.useTribMainGoogle,isAdfreeArticle:!!window.authentication_config&&"1"===window.authentication_config.isAdfreeArticle,auth0Domain:window.authentication_config?window.authentication_config.auth0Domain:"",auth0ClientId:window.authentication_config?window.authentication_config.auth0ClientId:"",entitlementsEndpoint:window.authentication_config?window.authentication_config.entitlementsEndpoint:"",entitlementsApiKey:window.authentication_config?window.authentication_config.entitlementsAPIKey:"",linaCheckOnArticles:!!window.authentication_config&&window.authentication_config.linaCheckOnArticles,serverEntitlements:!!window.authentication_config&&window.authentication_config.serverEntitlements,googleClientId:window.authentication_config?window.authentication_config.googleClientId:"",newsletterId:window.authentication_config?window.authentication_config.newsletterId:0,connextStorageKey:"",auth0SubKey:"auth0_sub",auth0Authenticated:"auth0.is.authenticated",secret:window.authentication_config?window.authentication_config.pluginSecret:"",newslettersEnabled:!!window.authentication_config&&"1"===window.authentication_config.newslettersEnabled,bcLowaSegements:!!window.authentication_config.bcLowaSegements&&"1"===window.authentication_config.bcLowaSegements,blueconicEnabled:!!window.authentication_config.blueconicEnabled&&"1"===window.authentication_config.blueconicEnabled,datadogEnabled:!!window.authentication_config.enableDatadog&&"1"===window.authentication_config.enableDatadog}},9012:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(9516);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},9137:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},9516:(t,e,n)=>{"use strict";var r=n(9012),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function c(t){return null!==t&&"object"==typeof t}function s(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===o.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n{"use strict";var r=n(9137),o=n(4680);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},9641:t=>{t.exports={version:"0.24.0"}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function r(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=t.apply(n,r);function c(t){e(a,o,i,c,s,"next",t)}function s(t){e(a,o,i,c,s,"throw",t)}c(void 0)}))}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function u(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(s(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return s(e)}}function l(t){this.message=t}l.prototype=new Error,l.prototype.name="InvalidTokenError";const f=function(t,e){if("string"!=typeof t)throw new l("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(u(t.split(".")[n]))}catch(t){throw new l("Invalid token specified: "+t.message)}};var h=n(2505),p=n.n(h),d=n(8805);const E=function(){if(d.A.debug){for(var t,e=arguments.length,n=new Array(e),r=0;r=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}var S=function(){var t=window.location.href;return new URL(t)},O=function(t){for(var e="".concat(t,"="),n=decodeURIComponent(document.cookie).split(";"),r=0;r0&&void 0!==arguments[0]&&arguments[0],e=S().hostname;t&&"string"==typeof t&&(e=t);var n=e.split(".");return"".concat(n[n.length-2],".").concat(n[n.length-1])},T=function(){var t=L();return".".concat(t)},I=function(t,e,n){var r="".concat(t,"=").concat(e,";");void 0!==n?(E("Setting cookie with options: ",n),Object.entries(n).forEach((function(t){var e=a(t,2),n=e[0],o=e[1];if("expires"===n){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),r+="expires=".concat(i.toUTCString(),";")}else r+="".concat(n,"=").concat(o,";")}))):r+="path=/;",document.cookie=r},C=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="".concat(t,"= ;expires= Thu, 01 Jan 1970 00:00:00 GMT;"),o=L(),i=[o,"www".concat(o),".www".concat(o)];n&&i.push(n),Object.entries(e).forEach((function(t){var e=a(t,2),n=e[0],o=e[1];r+="".concat(n,"=").concat(o,";")})),0===Object.keys(e).length&&(r+="path=/;"),document.cookie=r,i.forEach((function(t){document.cookie=r.concat("domain=",t,";")}))},R=function(t){return f(t)},b=function(t){return(g=g||r(N().mark((function t(e){var n,r;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=L().split(".")[0],t.prev=1,t.next=4,p()({method:"get",url:"".concat(d.A.entitlementsEndpoint,"apple/subscription-check/").concat(n),params:{access_token:e}});case 4:if(!(r=t.sent).data){t.next=8;break}return E("Apple Sub Check: Request successful: ",r.data),t.abrupt("return","subscribed"===r.data.status);case 8:return t.abrupt("return",!1);case 11:return t.prev=11,t.t0=t.catch(1),E("Apple Sub Check: Request Failure: ",t.t0),t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[1,11]])})))).apply(this,arguments)},x=function(t){return(v=v||r(N().mark((function t(e){var n;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p()({method:"get",url:"".concat(d.A.entitlementsEndpoint,"auth0/users/").concat(encodeURIComponent(e)),headers:{"X-Api-Key":d.A.entitlementsApiKey}});case 2:return n=t.sent,t.abrupt("return",n.data.encryptedUuid);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)},G=function(){return"complete"===document.readyState},P=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(e){var n=!0;if(G())e();else{E("UIHandler: ","Waiting for the body to load...");var o=setInterval(r(N().mark((function r(){return N().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t&&(n=G()),document.querySelector("body")&&n&&(clearInterval(o),e(!0));case 2:case"end":return r.stop()}}),r)}))),200)}}))},B=function(){return new Promise((function(t){E("blueConicReady | Waiting for BC to be ready."),window.blueConicClient.event.subscribe(window.blueConicClient.event.onReady,{},(function(){E("blueConicReady | onReady fired, BC profile is ready."),t(!0)}));var e=setTimeout((function(){clearTimeout(e),E("blueConicReady | onReady timeout, BC onReady unknown."),t(!1)}),3e3)}))},U=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(e){E("blueConicLoaded | waitTillBCReady is ".concat(t));var n=setTimeout((function(){clearTimeout(n),E("blueConicLoaded | onBlueConicLoaded timeout, resolving false for load status."),e(!1)}),1e4);void 0!==window.blueConicClient&&void 0!==window.blueConicClient.event&&void 0!==window.blueConicClient.event.subscribe?(E("blueConicLoaded | BC object already loaded"),t?e(B()):(clearTimeout(n),e())):(E('blueConicLoaded | BC not loaded, waiting for "onBlueConicLoaded" event'),window.addEventListener("onBlueConicLoaded",r(N().mark((function r(){var o;return N().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(E("blueConicLoaded | onBlueConicLoaded event fired."),!t){r.next=10;break}return E("blueConicLoaded | waiting for blueConicReady..."),r.next=5,B();case 5:o=r.sent,clearTimeout(n),e(o),r.next=12;break;case 10:clearTimeout(n),e();case 12:case"end":return r.stop()}}),r)}))),!1))}))},M=function(){return(w=w||r(N().mark((function t(){return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U(!0);case 2:if(!t.sent){t.next=10;break}return t.next=6,new Promise((function(t){E("blueConicProfileReady | Waiting for BC Profile to be ready."),window.blueConicClient&&(window.blueConicClient.getSegments||window.blueConicClient.profile)&&(E("blueConicProfileReady | BC getSegments is ready."),t(!0)),window.blueConicClient.event.subscribe(window.blueConicClient.event.onBeforeInteractions,{},(function(){E("blueConicProfileReady | onBeforeInteractions fired, BC profile is ready."),t(!0)}));var e=setTimeout((function(){clearTimeout(e),E("blueConicProfileReady | onBeforeInteractions timeout, BC profile readiness unknown"),t(!1)}),3e3)}));case 6:if(t.sent){t.next=9;break}return t.abrupt("return",!1);case 9:return t.abrupt("return",blueConicClient.profile.getProfile().getValue("Auth0_ID"));case 10:return t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)},_=function(){return(y=y||r(N().mark((function t(){var e,n,r;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=["MICH LOWA","OHIO LOWA","PENN LOWA","NY LOWA","BOSTON LOWA","NORCAL LOWA","TWIN CITIES LOWA","DENV/PMP LOWA","SCNG LOWA","BANG LOWA","AMC LOWA","HC LOWA","GS LOWA","ORL LOWA","SS LOWA","NNDP LOWA","VP LOWA","NYDN LOWA","BAL LOWA","CG LOWA","CHI LOWA"],t.next=3,U(!0);case 3:if(!t.sent){t.next=15;break}if(n=window.blueConicClient.getSegments(),E("bcLowaCheck | BC segments for users: ",n),!(n.filter((function(t){return e.includes(t.name)})).length>0)){t.next=15;break}return t.next=11,M();case 11:if(!(r=t.sent)){t.next=14;break}return t.abrupt("return",{isSub:!0,uuid:r});case 14:case 15:return t.abrupt("return",{isSub:!1});case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)},D=function(){return new Promise((function(t,e){void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.authenticationReady?(E("utils.js | Authentication already ready: ",window.MNGAuthentication.authenticationReady),t(window.MNGAuthentication.authenticationReady)):(E("utils.js | Adding authenticationReady listener..."),window.addEventListener("authenticationReady",(function(n){try{var r=n.detail||{};E("utils.js | Event: authentication ready: ",r),t(r)}catch(t){E(t),e(t)}}),!1))}))},k=function(){C(A.AUTH0_SUB_COOKIE_KEY),localStorage.removeItem(A.USER_STORAGE_HASH),function(){E("Clearing entitlements...");try{C(A.ENTITLEMENT_COOKIE_KEY,{path:"/"})}catch(t){E("Failed to delete legacy cookie: ",t)}try{C(A.ENTITLEMENT_COOKIE_KEY,{path:"/",domain:L(),expires:365,secure:!0})}catch(t){E("Failed to delete entitlements cookie: ",t)}try{window.localStorage.removeItem(A.LOCAL_STORAGE_SESSION_KEY)}catch(t){E("Failed to remove local storage: ",t)}}()},X=function(){var t=S();return!["local","develop","preprod","trbdev"].some((function(e){return t.origin.includes(e)}))},H=function(t){E("Removing storageObject : ",t),void 0!==window.localStorage.getItem(t)&&(window.localStorage.removeItem(t),E("Storage Object removed : ",t))},F=function(t){E("starting simpleEmailValidation");var e=new RegExp(/^(([^<>()[\]\\.,;:\s@']+(\.[^<>()[\]\\.,;:\s@']+)*)|('.+'))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i);if(!t)return{valid:!1,message:"Please enter an email."};if(!e.test(t))return{valid:!1,message:"Please enter a valid email."};var n=t.match(/\.([^.\n\s]*)$/)[1].toUpperCase(),r=["AAA","AARP","ABARTH","ABB","ABBOTT","ABBVIE","ABC","ABLE","ABOGADO","ABUDHABI","AC","ACADEMY","ACCENTURE","ACCOUNTANT","ACCOUNTANTS","ACO","ACTOR","AD","ADS","ADULT","AE","AEG","AERO","AETNA","AF","AFL","AFRICA","AG","AGAKHAN","AGENCY","AI","AIG","AIRBUS","AIRFORCE","AIRTEL","AKDN","AL","ALFAROMEO","ALIBABA","ALIPAY","ALLFINANZ","ALLSTATE","ALLY","ALSACE","ALSTOM","AM","AMAZON","AMERICANEXPRESS","AMERICANFAMILY","AMEX","AMFAM","AMICA","AMSTERDAM","ANALYTICS","ANDROID","ANQUAN","ANZ","AO","AOL","APARTMENTS","APP","APPLE","AQ","AQUARELLE","AR","ARAB","ARAMCO","ARCHI","ARMY","ARPA","ART","ARTE","AS","ASDA","ASIA","ASSOCIATES","AT","ATHLETA","ATTORNEY","AU","AUCTION","AUDI","AUDIBLE","AUDIO","AUSPOST","AUTHOR","AUTO","AUTOS","AVIANCA","AW","AWS","AX","AXA","AZ","AZURE","BA","BABY","BAIDU","BANAMEX","BANANAREPUBLIC","BAND","BANK","BAR","BARCELONA","BARCLAYCARD","BARCLAYS","BAREFOOT","BARGAINS","BASEBALL","BASKETBALL","BAUHAUS","BAYERN","BB","BBC","BBT","BBVA","BCG","BCN","BD","BE","BEATS","BEAUTY","BEER","BENTLEY","BERLIN","BEST","BESTBUY","BET","BF","BG","BH","BHARTI","BI","BIBLE","BID","BIKE","BING","BINGO","BIO","BIZ","BJ","BLACK","BLACKFRIDAY","BLOCKBUSTER","BLOG","BLOOMBERG","BLUE","BM","BMS","BMW","BN","BNPPARIBAS","BO","BOATS","BOEHRINGER","BOFA","BOM","BOND","BOO","BOOK","BOOKING","BOSCH","BOSTIK","BOSTON","BOT","BOUTIQUE","BOX","BR","BRADESCO","BRIDGESTONE","BROADWAY","BROKER","BROTHER","BRUSSELS","BS","BT","BUILD","BUILDERS","BUSINESS","BUY","BUZZ","BV","BW","BY","BZ","BZH","CA","CAB","CAFE","CAL","CALL","CALVINKLEIN","CAM","CAMERA","CAMP","CANON","CAPETOWN","CAPITAL","CAPITALONE","CAR","CARAVAN","CARDS","CARE","CAREER","CAREERS","CARS","CASA","CASE","CASH","CASINO","CAT","CATERING","CATHOLIC","CBA","CBN","CBRE","CBS","CC","CD","CENTER","CEO","CERN","CF","CFA","CFD","CG","CH","CHANEL","CHANNEL","CHARITY","CHASE","CHAT","CHEAP","CHINTAI","CHRISTMAS","CHROME","CHURCH","CI","CIPRIANI","CIRCLE","CISCO","CITADEL","CITI","CITIC","CITY","CITYEATS","CK","CL","CLAIMS","CLEANING","CLICK","CLINIC","CLINIQUE","CLOTHING","CLOUD","CLUB","CLUBMED","CM","CN","CO","COACH","CODES","COFFEE","COLLEGE","COLOGNE","COM","COMCAST","COMMBANK","COMMUNITY","COMPANY","COMPARE","COMPUTER","COMSEC","CONDOS","CONSTRUCTION","CONSULTING","CONTACT","CONTRACTORS","COOKING","COOKINGCHANNEL","COOL","COOP","CORSICA","COUNTRY","COUPON","COUPONS","COURSES","CPA","CR","CREDIT","CREDITCARD","CREDITUNION","CRICKET","CROWN","CRS","CRUISE","CRUISES","CU","CUISINELLA","CV","CW","CX","CY","CYMRU","CYOU","CZ","DABUR","DAD","DANCE","DATA","DATE","DATING","DATSUN","DAY","DCLK","DDS","DE","DEAL","DEALER","DEALS","DEGREE","DELIVERY","DELL","DELOITTE","DELTA","DEMOCRAT","DENTAL","DENTIST","DESI","DESIGN","DEV","DHL","DIAMONDS","DIET","DIGITAL","DIRECT","DIRECTORY","DISCOUNT","DISCOVER","DISH","DIY","DJ","DK","DM","DNP","DO","DOCS","DOCTOR","DOG","DOMAINS","DOT","DOWNLOAD","DRIVE","DTV","DUBAI","DUNLOP","DUPONT","DURBAN","DVAG","DVR","DZ","EARTH","EAT","EC","ECO","EDEKA","EDU","EDUCATION","EE","EG","EMAIL","EMERCK","ENERGY","ENGINEER","ENGINEERING","ENTERPRISES","EPSON","EQUIPMENT","ER","ERICSSON","ERNI","ES","ESQ","ESTATE","ET","ETISALAT","EU","EUROVISION","EUS","EVENTS","EXCHANGE","EXPERT","EXPOSED","EXPRESS","EXTRASPACE","FAGE","FAIL","FAIRWINDS","FAITH","FAMILY","FAN","FANS","FARM","FARMERS","FASHION","FAST","FEDEX","FEEDBACK","FERRARI","FERRERO","FI","FIAT","FIDELITY","FIDO","FILM","FINAL","FINANCE","FINANCIAL","FIRE","FIRESTONE","FIRMDALE","FISH","FISHING","FIT","FITNESS","FJ","FK","FLICKR","FLIGHTS","FLIR","FLORIST","FLOWERS","FLY","FM","FO","FOO","FOOD","FOODNETWORK","FOOTBALL","FORD","FOREX","FORSALE","FORUM","FOUNDATION","FOX","FR","FREE","FRESENIUS","FRL","FROGANS","FRONTDOOR","FRONTIER","FTR","FUJITSU","FUN","FUND","FURNITURE","FUTBOL","FYI","GA","GAL","GALLERY","GALLO","GALLUP","GAME","GAMES","GAP","GARDEN","GAY","GB","GBIZ","GD","GDN","GE","GEA","GENT","GENTING","GEORGE","GF","GG","GGEE","GH","GI","GIFT","GIFTS","GIVES","GIVING","GL","GLASS","GLE","GLOBAL","GLOBO","GM","GMAIL","GMBH","GMO","GMX","GN","GODADDY","GOLD","GOLDPOINT","GOLF","GOO","GOODYEAR","GOOG","GOOGLE","GOP","GOT","GOV","GP","GQ","GR","GRAINGER","GRAPHICS","GRATIS","GREEN","GRIPE","GROCERY","GROUP","GS","GT","GU","GUARDIAN","GUCCI","GUGE","GUIDE","GUITARS","GURU","GW","GY","HAIR","HAMBURG","HANGOUT","HAUS","HBO","HDFC","HDFCBANK","HEALTH","HEALTHCARE","HELP","HELSINKI","HERE","HERMES","HGTV","HIPHOP","HISAMITSU","HITACHI","HIV","HK","HKT","HM","HN","HOCKEY","HOLDINGS","HOLIDAY","HOMEDEPOT","HOMEGOODS","HOMES","HOMESENSE","HONDA","HORSE","HOSPITAL","HOST","HOSTING","HOT","HOTELES","HOTELS","HOTMAIL","HOUSE","HOW","HR","HSBC","HT","HU","HUGHES","HYATT","HYUNDAI","IBM","ICBC","ICE","ICU","ID","IE","IEEE","IFM","IKANO","IL","IM","IMAMAT","IMDB","IMMO","IMMOBILIEN","IN","INC","INDUSTRIES","INFINITI","INFO","ING","INK","INSTITUTE","INSURANCE","INSURE","INT","INTERNATIONAL","INTUIT","INVESTMENTS","IO","IPIRANGA","IQ","IR","IRISH","IS","ISMAILI","IST","ISTANBUL","IT","ITAU","ITV","JAGUAR","JAVA","JCB","JE","JEEP","JETZT","JEWELRY","JIO","JLL","JM","JMP","JNJ","JO","JOBS","JOBURG","JOT","JOY","JP","JPMORGAN","JPRS","JUEGOS","JUNIPER","KAUFEN","KDDI","KE","KERRYHOTELS","KERRYLOGISTICS","KERRYPROPERTIES","KFH","KG","KH","KI","KIA","KIDS","KIM","KINDER","KINDLE","KITCHEN","KIWI","KM","KN","KOELN","KOMATSU","KOSHER","KP","KPMG","KPN","KR","KRD","KRED","KUOKGROUP","KW","KY","KYOTO","KZ","LA","LACAIXA","LAMBORGHINI","LAMER","LANCASTER","LANCIA","LAND","LANDROVER","LANXESS","LASALLE","LAT","LATINO","LATROBE","LAW","LAWYER","LB","LC","LDS","LEASE","LECLERC","LEFRAK","LEGAL","LEGO","LEXUS","LGBT","LI","LIDL","LIFE","LIFEINSURANCE","LIFESTYLE","LIGHTING","LIKE","LILLY","LIMITED","LIMO","LINCOLN","LINDE","LINK","LIPSY","LIVE","LIVING","LK","LLC","LLP","LOAN","LOANS","LOCKER","LOCUS","LOFT","LOL","LONDON","LOTTE","LOTTO","LOVE","LPL","LPLFINANCIAL","LR","LS","LT","LTD","LTDA","LU","LUNDBECK","LUXE","LUXURY","LV","LY","MA","MACYS","MADRID","MAIF","MAISON","MAKEUP","MAN","MANAGEMENT","MANGO","MAP","MARKET","MARKETING","MARKETS","MARRIOTT","MARSHALLS","MASERATI","MATTEL","MBA","MC","MCKINSEY","MD","ME","MED","MEDIA","MEET","MELBOURNE","MEME","MEMORIAL","MEN","MENU","MERCKMSD","MG","MH","MIAMI","MICROSOFT","MIL","MINI","MINT","MIT","MITSUBISHI","MK","ML","MLB","MLS","MM","MMA","MN","MO","MOBI","MOBILE","MODA","MOE","MOI","MOM","MONASH","MONEY","MONSTER","MORMON","MORTGAGE","MOSCOW","MOTO","MOTORCYCLES","MOV","MOVIE","MP","MQ","MR","MS","MSD","MT","MTN","MTR","MU","MUSEUM","MUSIC","MUTUAL","MV","MW","MX","MY","MZ","NA","NAB","NAGOYA","NAME","NATURA","NAVY","NBA","NC","NE","NEC","NET","NETBANK","NETFLIX","NETWORK","NEUSTAR","NEW","NEWS","NEXT","NEXTDIRECT","NEXUS","NF","NFL","NG","NGO","NHK","NI","NICO","NIKE","NIKON","NINJA","NISSAN","NISSAY","NL","NO","NOKIA","NORTHWESTERNMUTUAL","NORTON","NOW","NOWRUZ","NOWTV","NP","NR","NRA","NRW","NTT","NU","NYC","NZ","OBI","OBSERVER","OFFICE","OKINAWA","OLAYAN","OLAYANGROUP","OLDNAVY","OLLO","OM","OMEGA","ONE","ONG","ONL","ONLINE","OOO","OPEN","ORACLE","ORANGE","ORG","ORGANIC","ORIGINS","OSAKA","OTSUKA","OTT","OVH","PA","PAGE","PANASONIC","PARIS","PARS","PARTNERS","PARTS","PARTY","PASSAGENS","PAY","PCCW","PE","PET","PF","PFIZER","PG","PH","PHARMACY","PHD","PHILIPS","PHONE","PHOTO","PHOTOGRAPHY","PHOTOS","PHYSIO","PICS","PICTET","PICTURES","PID","PIN","PING","PINK","PIONEER","PIZZA","PK","PL","PLACE","PLAY","PLAYSTATION","PLUMBING","PLUS","PM","PN","PNC","POHL","POKER","POLITIE","PORN","POST","PR","PRAMERICA","PRAXI","PRESS","PRIME","PRO","PROD","PRODUCTIONS","PROF","PROGRESSIVE","PROMO","PROPERTIES","PROPERTY","PROTECTION","PRU","PRUDENTIAL","PS","PT","PUB","PW","PWC","PY","QA","QPON","QUEBEC","QUEST","RACING","RADIO","RE","READ","REALESTATE","REALTOR","REALTY","RECIPES","RED","REDSTONE","REDUMBRELLA","REHAB","REISE","REISEN","REIT","RELIANCE","REN","RENT","RENTALS","REPAIR","REPORT","REPUBLICAN","REST","RESTAURANT","REVIEW","REVIEWS","REXROTH","RICH","RICHARDLI","RICOH","RIL","RIO","RIP","RO","ROCHER","ROCKS","RODEO","ROGERS","ROOM","RS","RSVP","RU","RUGBY","RUHR","RUN","RW","RWE","RYUKYU","SA","SAARLAND","SAFE","SAFETY","SAKURA","SALE","SALON","SAMSCLUB","SAMSUNG","SANDVIK","SANDVIKCOROMANT","SANOFI","SAP","SARL","SAS","SAVE","SAXO","SB","SBI","SBS","SC","SCA","SCB","SCHAEFFLER","SCHMIDT","SCHOLARSHIPS","SCHOOL","SCHULE","SCHWARZ","SCIENCE","SCOT","SD","SE","SEARCH","SEAT","SECURE","SECURITY","SEEK","SELECT","SENER","SERVICES","SES","SEVEN","SEW","SEX","SEXY","SFR","SG","SH","SHANGRILA","SHARP","SHAW","SHELL","SHIA","SHIKSHA","SHOES","SHOP","SHOPPING","SHOUJI","SHOW","SHOWTIME","SI","SILK","SINA","SINGLES","SITE","SJ","SK","SKI","SKIN","SKY","SKYPE","SL","SLING","SM","SMART","SMILE","SN","SNCF","SO","SOCCER","SOCIAL","SOFTBANK","SOFTWARE","SOHU","SOLAR","SOLUTIONS","SONG","SONY","SOY","SPA","SPACE","SPORT","SPOT","SR","SRL","SS","ST","STADA","STAPLES","STAR","STATEBANK","STATEFARM","STC","STCGROUP","STOCKHOLM","STORAGE","STORE","STREAM","STUDIO","STUDY","STYLE","SU","SUCKS","SUPPLIES","SUPPLY","SUPPORT","SURF","SURGERY","SUZUKI","SV","SWATCH","SWISS","SX","SY","SYDNEY","SYSTEMS","SZ","TAB","TAIPEI","TALK","TAOBAO","TARGET","TATAMOTORS","TATAR","TATTOO","TAX","TAXI","TC","TCI","TD","TDK","TEAM","TECH","TECHNOLOGY","TEL","TEMASEK","TENNIS","TEVA","TF","TG","TH","THD","THEATER","THEATRE","TIAA","TICKETS","TIENDA","TIFFANY","TIPS","TIRES","TIROL","TJ","TJMAXX","TJX","TK","TKMAXX","TL","TM","TMALL","TN","TO","TODAY","TOKYO","TOOLS","TOP","TORAY","TOSHIBA","TOTAL","TOURS","TOWN","TOYOTA","TOYS","TR","TRADE","TRADING","TRAINING","TRAVEL","TRAVELCHANNEL","TRAVELERS","TRAVELERSINSURANCE","TRUST","TRV","TT","TUBE","TUI","TUNES","TUSHU","TV","TVS","TW","TZ","UA","UBANK","UBS","UG","UK","UNICOM","UNIVERSITY","UNO","UOL","UPS","US","UY","UZ","VA","VACATIONS","VANA","VANGUARD","VC","VE","VEGAS","VENTURES","VERISIGN","VERSICHERUNG","VET","VG","VI","VIAJES","VIDEO","VIG","VIKING","VILLAS","VIN","VIP","VIRGIN","VISA","VISION","VIVA","VIVO","VLAANDEREN","VN","VODKA","VOLKSWAGEN","VOLVO","VOTE","VOTING","VOTO","VOYAGE","VU","VUELOS","WALES","WALMART","WALTER","WANG","WANGGOU","WATCH","WATCHES","WEATHER","WEATHERCHANNEL","WEBCAM","WEBER","WEBSITE","WED","WEDDING","WEIBO","WEIR","WF","WHOSWHO","WIEN","WIKI","WILLIAMHILL","WIN","WINDOWS","WINE","WINNERS","WME","WOLTERSKLUWER","WOODSIDE","WORK","WORKS","WORLD","WOW","WS","WTC","WTF","XBOX","XEROX","XFINITY","XIHUAN","XIN","XN--11B4C3D","XN--1CK2E1B","XN--1QQW23A","XN--2SCRJ9C","XN--30RR7Y","XN--3BST00M","XN--3DS443G","XN--3E0B707E","XN--3HCRJ9C","XN--3PXU8K","XN--42C2D9A","XN--45BR5CYL","XN--45BRJ9C","XN--45Q11C","XN--4DBRK0CE","XN--4GBRIM","XN--54B7FTA0CC","XN--55QW42G","XN--55QX5D","XN--5SU34J936BGSG","XN--5TZM5G","XN--6FRZ82G","XN--6QQ986B3XL","XN--80ADXHKS","XN--80AO21A","XN--80AQECDR1A","XN--80ASEHDB","XN--80ASWG","XN--8Y0A063A","XN--90A3AC","XN--90AE","XN--90AIS","XN--9DBQ2A","XN--9ET52U","XN--9KRT00A","XN--B4W605FERD","XN--BCK1B9A5DRE4C","XN--C1AVG","XN--C2BR7G","XN--CCK2B3B","XN--CCKWCXETD","XN--CG4BKI","XN--CLCHC0EA0B2G2A9GCD","XN--CZR694B","XN--CZRS0T","XN--CZRU2D","XN--D1ACJ3B","XN--D1ALF","XN--E1A4C","XN--ECKVDTC9D","XN--EFVY88H","XN--FCT429K","XN--FHBEI","XN--FIQ228C5HS","XN--FIQ64B","XN--FIQS8S","XN--FIQZ9S","XN--FJQ720A","XN--FLW351E","XN--FPCRJ9C3D","XN--FZC2C9E2C","XN--FZYS8D69UVGM","XN--G2XX48C","XN--GCKR3F0F","XN--GECRJ9C","XN--GK3AT1E","XN--H2BREG3EVE","XN--H2BRJ9C","XN--H2BRJ9C8C","XN--HXT814E","XN--I1B6B1A6A2E","XN--IMR513N","XN--IO0A7I","XN--J1AEF","XN--J1AMH","XN--J6W193G","XN--JLQ480N2RG","XN--JVR189M","XN--KCRX77D1X4A","XN--KPRW13D","XN--KPRY57D","XN--KPUT3I","XN--L1ACC","XN--LGBBAT1AD8J","XN--MGB9AWBF","XN--MGBA3A3EJT","XN--MGBA3A4F16A","XN--MGBA7C0BBN0A","XN--MGBAAKC7DVF","XN--MGBAAM7A8H","XN--MGBAB2BD","XN--MGBAH1A3HJKRD","XN--MGBAI9AZGQP6J","XN--MGBAYH7GPA","XN--MGBBH1A","XN--MGBBH1A71E","XN--MGBC0A9AZCG","XN--MGBCA7DZDO","XN--MGBCPQ6GPA1A","XN--MGBERP4A5D4AR","XN--MGBGU82A","XN--MGBI4ECEXP","XN--MGBPL2FH","XN--MGBT3DHD","XN--MGBTX2B","XN--MGBX4CD0AB","XN--MIX891F","XN--MK1BU44C","XN--MXTQ1M","XN--NGBC5AZD","XN--NGBE9E0A","XN--NGBRX","XN--NODE","XN--NQV7F","XN--NQV7FS00EMA","XN--NYQY26A","XN--O3CW4H","XN--OGBPF8FL","XN--OTU796D","XN--P1ACF","XN--P1AI","XN--PGBS0DH","XN--PSSY2U","XN--Q7CE6A","XN--Q9JYB4C","XN--QCKA1PMC","XN--QXA6A","XN--QXAM","XN--RHQV96G","XN--ROVU88B","XN--RVC1E0AM3E","XN--S9BRJ9C","XN--SES554G","XN--T60B56A","XN--TCKWE","XN--TIQ49XQYJ","XN--UNUP4Y","XN--VERMGENSBERATER-CTB","XN--VERMGENSBERATUNG-PWB","XN--VHQUV","XN--VUQ861B","XN--W4R85EL8FHU5DNRA","XN--W4RS40L","XN--WGBH1C","XN--WGBL6A","XN--XHQ521B","XN--XKC2AL3HYE2A","XN--XKC2DL3A5EE0H","XN--Y9A3AQ","XN--YFRO4I67O","XN--YGBI2AMMX","XN--ZFR164B","XXX","XYZ","YACHTS","YAHOO","YAMAXUN","YANDEX","YE","YODOBASHI","YOGA","YOKOHAMA","YOU","YOUTUBE","YT","YUN","ZA","ZAPPOS","ZARA","ZERO","ZIP","ZM","ZONE","ZUERICH","ZW"].includes(n);return E("simpleEmailValidation: ","TLD search ".concat(r)),!1===r?{valid:!1,message:"Please enter a valid email domain."}:-1===["zzz.pl"].findIndex((function(e){return e===t.split("@")[1]}))?{valid:!0,message:"Valid"}:{valid:!1,message:"Please enter a valid email."}};window.simpleEmailValidation=F;var K;window.validatePhoneNumber=function(t){return/^[0-9]([0-9 -])*[0-9]$/.test(t)};var Y=function(){return(m=m||r(N().mark((function t(){var e,n;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===K){t.next=2;break}return t.abrupt("return",K);case 2:return e=d.A.auth0Domain,n=d.A.auth0ClientId,t.next=5,createAuth0Client({domain:e,client_id:n,useRefreshTokens:!0,cacheLocation:"localstorage",audience:"access-extension"});case 5:return K=t.sent,t.abrupt("return",K);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)},W=function(t){E("utils.js | auth event dispathed");var e=new CustomEvent("authenticationReady",{detail:t});window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.authenticationReady=t,E("Utils.js | Dispatching authenticationReady Event: ",e),window.dispatchEvent(e),E("Utils.js | Dispatched authenticationReady event!")},j=function(t){d.A.datadogEnabled&&window.DD_RUM.addTiming(t)};function V(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var J;function Z(){Z=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new x(r||[]);return i(a,"_invoke",{value:I(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var p="suspendedStart",d="suspendedYield",E="executing",A="completed",g={};function v(){}function w(){}function y(){}var m={};l(m,c,(function(){return this}));var N=Object.getPrototypeOf,S=N&&N(N(G([])));S&&S!==r&&o.call(S,c)&&(m=S);var O=y.prototype=v.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function I(t,n,r){var o=p;return function(i,a){if(o===E)throw new Error("Generator is already running");if(o===A){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=C(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=E;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?A:d,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=A,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function G(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:G(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}var Q=function(){return(J=J||r(Z().mark((function t(){return Z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U();case 2:return t.next=4,D();case 4:return t.abrupt("return",new Promise((function(t){E("ANALYTICS: inside BCregwall events");var e=S();e.searchParams.delete("regwall");var n=blueConicClient.profile.getProfile();localStorage.setItem("regwallSuccess","yes"),localStorage.setItem("regwallEvent","yes"),n.setValue("bang_reg_wall_status","Y"),n.setValue("regwall_newspaper",e.host),n.setValue("regwall_success_date",new Date),n.setValue("regwall_success","yes"),blueConicClient.profile.updateProfile(),t(!0)})));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)},q=function(t){try{window.dataLayer.push({event:t}),E("ANALYTICS: ".concat(t," event")),E("ANALYTICS: GA/ datalayer ",window.dataLayer)}catch(e){E("ANALYTICS: Failed to send ".concat(t," event: "),e)}};var z,$,tt,et,nt,rt;function ot(){ot=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new x(r||[]);return i(a,"_invoke",{value:I(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var p="suspendedStart",d="suspendedYield",E="executing",A="completed",g={};function v(){}function w(){}function y(){}var m={};l(m,c,(function(){return this}));var N=Object.getPrototypeOf,S=N&&N(N(G([])));S&&S!==r&&o.call(S,c)&&(m=S);var O=y.prototype=v.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function I(t,n,r){var o=p;return function(i,a){if(o===E)throw new Error("Generator is already running");if(o===A){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=C(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=E;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?A:d,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=A,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function G(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:G(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}var it,at,ct,st,ut,lt,ft,ht=function(){try{var t=localStorage.getItem(A.LOCAL_STORAGE_SESSION_KEY);return"string"==typeof t?t:"{}"}catch(t){E("Unable to get session from local storage: ",t)}return"{}"},pt=function(t){try{E("Setting local storage session",t),localStorage.setItem(A.LOCAL_STORAGE_SESSION_KEY,t)}catch(t){E("Unable to save session from local storage: ",t)}},dt=function(t){try{I(A.ENTITLEMENT_COOKIE_KEY,t,{path:"/",domain:T(),expires:365,secure:!0})}catch(t){E("Unable to save session to cookie storage: ",t)}},Et=function(){return(z=z||r(ot().mark((function t(){var e,n,r,o,i,a,c,s,u,l,f,h,A,g,v,w,y,m;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=d.A.sessionServer,n="".concat(e,"/api/session"),E("Checking server session: ",n),t.next=5,p().get(n,{withCredentials:!0});case 5:if(!(r=t.sent).data){t.next=17;break}return u=r.data.entitlementTokenDecoded,l=r.data,f=l.accessToken,h=l.idToken,A=l.entitlementToken,g=null!==(o=null==u?void 0:u.entitlement_expiry)&&void 0!==o?o:null,v=null!==(i=null==u?void 0:u.entitlement_source)&&void 0!==i?i:null,w=null!==(a=null==u?void 0:u.entitlement_entitled)&&void 0!==a?a:null,y=null!==(c=null==u?void 0:u.entitlement_extras_adfree)&&void 0!==c?c:null,m=null!==(s=null==u?void 0:u.entitlement_level)&&void 0!==s?s:null,pt(JSON.stringify({accessToken:f,idToken:h,entitlementToken:A,expiration:g,entitlementSource:v,isEntitled:w,adFree:y,entitlementLevel:m})),""!==A&&"string"==typeof A&&dt(A),t.abrupt("return",{accessToken:f,idToken:h,entitlementToken:A,expiration:g,entitlementSource:v,isEntitled:w,adFree:y,entitlementLevel:m});case 17:return t.abrupt("return",{accessToken:null,idToken:null,entitlementToken:null,expiration:null,entitlementSource:null,isEntitled:null,adFree:null,entitlementLevel:null});case 18:case"end":return t.stop()}}),t)})))).apply(this,arguments)},At=function(t){return($=$||r(ot().mark((function t(e){var n,r;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=d.A.sessionServer,r="".concat(n,"/api/session"),E("Updating server session: ",r),t.next=6,p().post(r,e,{withCredentials:!0});case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),E("Failed to update session server: ",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))).apply(this,arguments)},gt=function(){return(tt=tt||r(ot().mark((function t(){var e,n;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e=d.A.sessionServer,n="".concat(e,"/api/session"),E("Deleting server session: ",n),t.next=6,p().delete(n,{withCredentials:!0});case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),E("Failed to delete server session: ",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))).apply(this,arguments)},vt=function(){return(et=et||r(ot().mark((function t(){var e,n,r,o,i,a,c,s,u,l,f,h,p,d,A,g,v,w,y,m,N,S,O,L,T,I,C;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(E("Inside getSession"),t.prev=1,u=ht(),E("Session: __MNG_Session = ",u),l=JSON.parse(u),f=l.accessToken,h=l.idToken,p=l.entitlementToken,d=l.expiration,A=l.entitlementSource,g=l.isEntitled,v=l.adFree,w=l.entitlementLevel,n=f,o=d,i=A,a=g,c=v,s=w,E("Session: check both tokens: ",e=h,r=p),void 0!==h&&void 0!==p&&null!==h&&null!==p){t.next=35;break}return E("Session: missing id or entitlements, try session server"),t.next=18,Et();case 18:y=t.sent,m=y.accessToken,N=y.idToken,S=y.entitlementToken,O=y.expiration,L=y.entitlementSource,T=y.isEntitled,I=y.adFree,C=y.entitlementLevel,n=m,e=N,r=S,o=O,i=L,a=T,c=I,s=C;case 35:t.next=40;break;case 37:t.prev=37,t.t0=t.catch(1),E("Failed to get session: ",t.t0);case 40:return E("Returning session: ",e,n,r),t.abrupt("return",{accessToken:n,idToken:e,entitlementToken:r,expiration:o,entitlementSource:i,isEntitled:a,adFree:c,entitlementLevel:s});case 42:case"end":return t.stop()}}),t,null,[[1,37]])})))).apply(this,arguments)},wt=function(t){return(nt=nt||r(ot().mark((function t(e){var n,r,o,i,a,c,s,u,l,f,h,p,d,A,g,v,w,y,m,N,S,O,L,T,I,C,R,b;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n=ht(),r=JSON.parse(n),o=r.accessToken,i=void 0===o?null:o,a=r.idToken,c=void 0===a?null:a,s=r.entitlementToken,u=void 0===s?null:s,l=r.expiration,f=void 0===l?null:l,h=r.entitlementSource,p=void 0===h?null:h,d=r.isEntitled,A=void 0===d?null:d,g=r.adFree,v=void 0===g?null:g,w=r.entitlementLevel,y=void 0===w?null:w,m=e.accessToken,N=e.idToken,S=e.entitlementToken,O=e.expiration,L=e.entitlementSource,T=e.isEntitled,I=e.adFree,C=e.entitlementLevel,R={accessToken:null==m?i:m,idToken:null==N?c:N,entitlementToken:null==S?u:S,expiration:null==O?f:O,entitlementSource:null==L?p:L,isEntitled:null==T?A:T,adFree:null==I?v:I,entitlementLevel:null==C?y:C},E("Current session data: ",r),E("New session data: ",e),E("Updated session data:",R),b=JSON.stringify(R),pt(b),""!==R.entitlementToken&&"string"==typeof R.entitlementToken&&dt(R.entitlementToken),n===b){t.next=15;break}return t.next=15,At(R);case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(0),E("Unable to save session: ",t.t0);case 20:case"end":return t.stop()}}),t,null,[[0,17]])})))).apply(this,arguments)},yt=function(){return(rt=rt||r(ot().mark((function t(){return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return E("Ending session..."),k(),t.next=4,gt();case 4:localStorage.removeItem(A.LOCAL_STORAGE_SESSION_KEY);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)};function mt(){mt=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new x(r||[]);return i(a,"_invoke",{value:I(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var p="suspendedStart",d="suspendedYield",E="executing",A="completed",g={};function v(){}function w(){}function y(){}var m={};l(m,c,(function(){return this}));var N=Object.getPrototypeOf,S=N&&N(N(G([])));S&&S!==r&&o.call(S,c)&&(m=S);var O=y.prototype=v.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function I(t,n,r){var o=p;return function(i,a){if(o===E)throw new Error("Generator is already running");if(o===A){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=C(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=E;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?A:d,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=A,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function G(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:G(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}var Nt=function(){return"logout"===(S().searchParams.get("state")||"").toLowerCase()};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.logoutCallbacks=[];var St=function(t){return(it=it||r(mt().mark((function t(e){var n;return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Y();case 2:n=t.sent,E("Calling Auth0 logout..."),n.logout({returnTo:e});case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)},Ot=function(){E("Check for SS paywall Cookie");var t=window.location.hostname,e=document.cookie.split(";").find((function(t){return t.trim().startsWith("vip-go-seg=vc-v1__has_access")}));if(/^(?!:\/\/)([a-zA-Z0-9-_]{1,63}\.?)+[a-zA-Z]{2,6}$/.test(t)&&e){E("SS paywall Cookie found, removing it");var n=e.split("=")[0].trim();document.cookie="".concat(n,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=").concat(t),document.cookie="".concat(n,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}},Lt=function(){return(at=at||r(mt().mark((function t(){var e,n,o,i,a;return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(E("Attempting to logout..."),Ot(),!window.authentication_config.sessionManagementEnabled){t.next=7;break}return t.next=5,yt();case 5:t.next=8;break;case 7:k();case 8:return t.prev=8,E("Cycling through logout callbacks..."),e=window.MNGAuthentication.logoutCallbacks.map((function(t){return t()})),t.next=13,Promise.all(e);case 13:E("Finished cycling through logout callbacks."),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(8),E("Failed to cycle through logout callbacks: ",t.t0);case 19:Object.keys(localStorage).filter((function(t){return t.includes("auth0")})).forEach((function(t){localStorage.removeItem(t),E("Removed Auth0 storage object...")})),H("hhsl"),H("userNewsLetterData"),H(A.REGWALL_USER_IS_SUBSCRIBED),H(A.USER_PROFILE_HASH),n=S(),o=window.location.origin;try{n.searchParams.get("returnURL")&&(i=decodeURIComponent(n.searchParams.get("returnURL")),o=i)}catch(t){E(t),o=window.location.origin}return o=new URL(o),t.next=31,window.ConnextUtils.connextReady();case 31:if(!t.sent){t.next=63;break}if(E("Auth | Silent mode enabled ",Connext.GetOptions().Silentmode),E("Auth | Run connext manually if Silent Mode is on."),window.ConnextUtils.rerunConnextEntitlements(!0),a=o,o.origin!==window.location.origin&&(a=new URL(window.location.origin)).searchParams.append("returnAfterLogout",o),window.history.replaceState({additionalInformation:"Updated the URL to prevent another login cycle"},"Home",a),!X()){t.next=44;break}E("About to call Connext Logout..."),setTimeout((function(){Connext.Logout()}),500),t.next=61;break;case 44:if("Logged In"!==("undefined"==typeof CnnXt?(E("Connext was not loaded."),!1):Connext.Storage.GetUserState())){t.next=58;break}if(E("Connext user state is logged in, setting timeout..."),setTimeout(r(mt().mark((function t(){return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return E("Connext took too long to logout, calling auth0 logout..."),t.next=3,St(o);case 3:case"end":return t.stop()}}),t)}))),8e3),"function"!=typeof Connext._logout){t.next=53;break}return E("About to call Connext _logout..."),t.next=51,Connext._logout();case 51:t.next=56;break;case 53:return E("About to call Connext Logout..."),t.next=56,Connext.Logout();case 56:t.next=61;break;case 58:return E("Connext user state is logged out, not calling it, going to auth0 logout."),t.next=61,St(o);case 61:t.next=66;break;case 63:return E("Connext Logout was NOT called"),t.next=66,St(o);case 66:case"end":return t.stop()}}),t,null,[[8,16]])})))).apply(this,arguments)},Tt=function(){var t=0;for(var e in localStorage){var n=2*localStorage[e].length/1024/1024;!Number.isNaN(n)&&localStorage.hasOwnProperty(e)&&(t+=n)}return t},It=function(t,e,n,o,i){return(ct=ct||r(mt().mark((function t(e,n,r,o,i){var a,c,s,u,l,f,h,p,d,A,g,v,w;return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return E("Attempting to login..."),Tt()>4.5&&localStorage.clear(),window.MNGAuthentication.preAuthGTMEvents.forEach((function(t){return q(t)})),E("Cycled through preauth GTM events."),o&&(a=[],c=window.localStorage.getItem("callbackEvents"),s=JSON.parse(c),a=s&&s.length>0?V(new Set([].concat(V(o),V(s)))):o,window.localStorage.setItem("callbackEvents",JSON.stringify(a))),u=null,t.next=7,Y();case 7:if(l=t.sent,f=S(),h=f.origin,p=new URL("".concat(h,"/callback")),d={},f.searchParams.get("regwall")&&(f.searchParams.get("returnUrl")&&(A=f.searchParams.get("returnUrl")),f.searchParams.get("auth_redirect")&&(A=f.searchParams.get("auth_redirect"))),f.pathname.startsWith("/login")||f.pathname.startsWith("/callback")?f.searchParams.get("returnUrl")?p.searchParams.set("auth_redirect",f.searchParams.get("returnUrl")):i&&p.searchParams.set("auth_redirect",i):p.searchParams.set("auth_redirect",f.toString()),A&&"regwall"!==e&&p.searchParams.set("auth_redirect",A),"true"===f.searchParams.get("close-after-finish")&&p.searchParams.set("close-after-finish","true"),"true"!==f.searchParams.get("ssl")){t.next=23;break}if(!window.authentication_config.sessionManagementEnabled){t.next=22;break}return t.next=20,yt();case 20:t.next=23;break;case 22:k();case 23:return null!==(u=f.searchParams.get("login-with"))?d.connection=u:n&&(d.connection=n),g="none",e&&"regwall"===e&&(p.searchParams.set("regwall","true"),g="signUp",E("Logging in with regwall")),e&&(p.searchParams.set("loginsource",e),E("Logging in with ".concat(e))),r&&(d.login_hint=r),d.redirect_uri=p.toString(),d.initialScreen=g,"googleonetap"!==e&&(d.prompt="select_account"),null!==(v=f.searchParams.get("ampRegiWall"))&&(w=window.location.hostname,d.ampRegiWall=v,d.sourceDomain=w.replace("www.","").replace("preprod.","").replace("develop.",""),d.initialScreen="signUp",d.preferenceId=f.searchParams.get("prefId")),t.next=36,l.loginWithRedirect(d);case 36:case"end":return t.stop()}}),t)})))).apply(this,arguments)},Ct=function(){return new Promise((function(t){var e=setTimeout((function(){t()}),8e3);try{var n=window.localStorage.getItem("callbackEvents"),r=JSON.parse(n);r&&0!==r.length||t(),E("Adding listeners to events we need to wait for...");var o=r.map((function(t){return e=t,new Promise((function(t){E("Adding event to wait for: ",e),window.addEventListener(e,(function(n){try{var r=n.detail||{};E("Event: ".concat(e,"} ready: "),r),t(r)}catch(e){E(e),t()}}),!1)}));var e}));Promise.all(o).then((function(){clearTimeout(e),t()}))}catch(e){E("Failed to wait for callback events",e),t()}}))};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.oidcLoginCallbacks=[];var Rt=function(){return(st=st||r(mt().mark((function t(){var e,n,o,i,a,c,s,u,l,f,h,p,d,g,v,w,y,m,N,O,L;return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ot(),e=S(),n=!1,o=e.searchParams.get("auth_redirect")||"https://".concat(window.location.host),i=e.searchParams.get("redirect_uri")||"",i.includes("applenews")?(E("This is Apple prelogin flow."),(a=new URL(i))?(a.searchParams.append("post-apple-login","true"),E("Post callback Apple redirect URL is ".concat(a)),It(!1,!1,!1,[],a)):It()):o.includes("post-apple-login")&&(E("This is Apple Callback flow."),n=!0,(c=new URL(decodeURIComponent(o))).searchParams.delete("post-apple-login"),o=c),E("Handling post login callback..."),!(s=e.searchParams.get("error_description"))){t.next=13;break}if("shouldAutoLogin"!==s){t.next=12;break}return t.abrupt("return",It(!1,!1,!1,!1,o));case 12:n&&alert("There was an error in logging you in, please try again.");case 13:return t.next=15,Y();case 15:return u=t.sent,t.next=18,u.handleRedirectCallback();case 18:return t.next=20,u.getIdTokenClaims();case 20:return l=t.sent,t.next=23,u.getUser();case 23:return f=t.sent,E("Auth0 user profile: ",f),h=l.__raw,t.next=28,u.getTokenSilently();case 28:return p=t.sent,t.prev=29,E("Cycling through login callbacks..."),t.next=33,Ct();case 33:return g=window.MNGAuthentication.oidcLoginCallbacks.map((function(t){return(d=d||r(mt().mark((function t(e){return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e(h));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)})),t.next=36,Promise.all(g);case 36:E("Finished cycling through login callbacks."),t.next=42;break;case 39:t.prev=39,t.t0=t.catch(29),E("Failed to cycle through login callbacks: ",t.t0);case 42:if(v={accessToken:p,userId:f.sub,email:f.email,picture:f.picture},w=!1,y="",!n){t.next=61;break}return t.prev=46,t.next=49,x(v.userId);case 49:return y=t.sent,E("Encrypted apple uuid is: ".concat(y)),t.next=53,b(y);case 53:w=t.sent,E("Apple sub status is: ".concat(w)),t.next=61;break;case 57:t.prev=57,t.t1=t.catch(46),E("Apple sub check error: ".concat(t.t1)),alert("There was an error in logging you in, please try again.");case 61:if(H(A.REGWALL_USER_IS_SUBSCRIBED),!window.authentication_config.sessionManagementEnabled){t.next=66;break}return E("Saving idToken to session server"),t.next=66,wt({idToken:h,accessToken:p});case 66:if(!e.searchParams.get("close-after-finish")){t.next=68;break}return t.abrupt("return",window.close());case 68:if(!e.search.includes("loginsource")){t.next=73;break}return N=e.searchParams.get("loginsource"),O=window.MNGAuthentication.postAuthEvents.map((function(t){return(m=m||r(mt().mark((function t(e){return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e(N));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)})),t.next=73,Promise.all(O);case 73:return t.prev=73,L=new URL(o),n&&w&&L.searchParams.append("access_token",y),E("Apple redirect URL:",L),t.abrupt("return",window.location.assign(L));case 80:t.prev=80,t.t2=t.catch(73),E("Failed to redirect after authentication: ",t.t2);case 83:return window.location.assign(new URL(window.location.origin)),t.abrupt("return","Finished execution, please await result...");case 85:case"end":return t.stop()}}),t,null,[[29,39],[46,57],[73,80]])})))).apply(this,arguments)},bt=function(){return(ut=ut||r(mt().mark((function t(){return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return E("ANALYTICS: fireBC events"),t.next=3,Q();case 3:E("ANALYTICS: bc values should be filled");case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)},xt=function(){return(lt=lt||r(mt().mark((function t(){var e,n,r,o,i,a,c,s,u,l,f,h,p;return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,D();case 2:if(e=t.sent,n=e.idToken,r=e.isAuthenticated,""===n){t.next=18;break}return t.prev=6,a=R(n),c=a.email,s=a.picture,u=a.sub,l=a.name,f=a.nickname,h=a.connection_source,p=null===(o=a.user_metadata)||void 0===o||null===(i=o.customProfile)||void 0===i?void 0:i.nickname,u.split("|").pop(),t.abrupt("return",{authenticated:r,nickname:p||f||l,email:c,picture:s,userId:u,connectionSource:h});case 15:t.prev=15,t.t0=t.catch(6),E("Unable to parse idToken: ",n," Error: ",t.t0);case 18:return t.abrupt("return",{authenticated:r});case 19:case"end":return t.stop()}}),t,null,[[6,15]])})))).apply(this,arguments)};window.MNGAuthentication.login=It,window.MNGAuthentication.logout=Lt,window.MNGAuthentication.getUserInfo=xt;var Gt=function(){return(ft=ft||r(mt().mark((function e(){var n,o,i,a,c,s,u,l,f,h,p,g,v;return mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=S(),i=!1,a="",c=!1,s={},Nt()&&window.ConnextUtils.rerunConnextEntitlements(!0),o.searchParams.get("returnAfterLogout")&&(u=decodeURIComponent(o.searchParams.get("returnAfterLogout")),window.location.assign(u)),o.searchParams.has("entitlement_jwt")&&(window.authentication_config.sessionManagementEnabled=!1),l=function(){return(n=n||r(mt().mark((function e(){var n,r;return mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Y();case 3:return n=e.sent,e.next=6,n.getIdTokenClaims();case 6:return s=e.sent,e.next=9,n.isAuthenticated();case 9:if(i=e.sent,a="object"===t(s)?s.__raw:"",r=O(A.ENTITLEMENT_COOKIE_KEY),i||!r){e.next=16;break}return e.next=15,n.getTokenSilently();case 15:c=e.sent;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),E("Unable to verify user has active auth0 session: ",e.t0);case 21:case"end":return e.stop()}}),e,null,[[0,18]])})))).apply(this,arguments)},!o.pathname.startsWith("/logout")){e.next=14;break}return E("Page is logout. Routing to logout function..."),e.next=13,Lt();case 13:return e.abrupt("return");case 14:if(!window.authentication_config.sessionManagementEnabled){e.next=40;break}return e.next=17,l();case 17:if(""===a){e.next=26;break}if(f=null,h=JSON.parse(window.localStorage.getItem(A.LOCAL_STORAGE_SESSION_KEY)),"{}"!==ht()){e.next=24;break}return h&&(f=h.jwt),e.next=24,wt({idToken:a,entitlementToken:f});case 24:e.next=38;break;case 26:return e.prev=26,e.next=29,vt();case 29:p=e.sent,a=p.idToken,(i="string"==typeof a)&&(s=R(a)),e.next=38;break;case 35:e.prev=35,e.t0=e.catch(26),E("Unable to initialize session: ",e.t0);case 38:e.next=42;break;case 40:return e.next=42,l();case 42:if(i||c||!d.A.blueconicEnabled||!d.A.bcLowaSegements){e.next=47;break}return e.next=45,_();case 45:(g=e.sent).isSub&&(i=A.USER_IS_LOWA,s={sub:g.uuid});case 47:if(W({isAuthenticated:i,idToken:a,accessToken:c,claims:s}),j("authenticationReady"),!0===i?(E("User is authenticated."),o.searchParams.get("auth_redirect")&&(E("Auth Redirect is present, sending user to auth redirect..."),(v=o.searchParams.get("auth_redirect")).endsWith("#")&&(v=v.slice(0,v.length)),window.location.assign(v)),o.pathname.startsWith("/login")&&!Nt()&&(E("Page is login. The user is already logged in and Connext Logout param is not present... Redirecting..."),window.location.assign(o.origin))):E("User is not authenticated."),o.pathname.startsWith("/login")&&!Nt()?(E("Page is login. Attempting to log user in..."),It()):E("Page is not login or Connext state is present"),!o.pathname.startsWith("/callback")||!o.searchParams.get("regwall")){e.next=60;break}return E("Page is callback with regwall param. Routing to regwall receiver..."),e.next=56,bt();case 56:E("Now login from regwall"),It(),e.next=64;break;case 60:if(!o.pathname.startsWith("/callback")){e.next=64;break}return E("Page is callback without regwall param. Routing to callback receiver..."),e.next=64,Rt();case 64:case"end":return e.stop()}}),e,null,[[26,35]])})))).apply(this,arguments)};window.MNGAuthentication.init=Gt;var Pt,Bt;function Ut(){Ut=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new x(r||[]);return i(a,"_invoke",{value:I(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var p="suspendedStart",d="suspendedYield",E="executing",A="completed",g={};function v(){}function w(){}function y(){}var m={};l(m,c,(function(){return this}));var N=Object.getPrototypeOf,S=N&&N(N(G([])));S&&S!==r&&o.call(S,c)&&(m=S);var O=y.prototype=v.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function I(t,n,r){var o=p;return function(i,a){if(o===E)throw new Error("Generator is already running");if(o===A){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=C(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=E;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?A:d,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=A,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function G(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:G(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}var Mt=function(t,e){return new Promise((function(n){try{"undefined"==typeof CnnXt&&(E("Connext was not loaded."),n(!1)),E("connext subscribeToNewsletter","about to call Cnnxt NewsletterSubscribe with pref id ".concat(e," and email ").concat(t)),CnnXt.API.NewsletterSubscribe({email:t,id:e,onSuccess:function(){E("Signed user up to newsletter: ",e),n(!0)},onError:function(t){E("subscribeToNewsletter error: ",t),n(!1)}})}catch(t){E("subscribeToNewsletter Error:",t),n(!1)}}))},_t=function(t){try{"string"==typeof t&&I(A.AUTH0_SUB_COOKIE_KEY,t,{domain:T(),path:"/",expires:365,secure:!0})}catch(t){E("Failed to set auth0_sub cookie: ",t)}},Dt=function(e){if(!O(A.AUTH0_SUB_COOKIE_KEY))try{var n=e.claims;if(null==n||"object"!==t(n)&&!Object.keys(n).includes("sub"))return;var r=n.sub;_t(r)}catch(t){E("Failed to set auth0_sub: ",t)}},kt=function(t){try{if("string"==typeof t){var e=R(t).sub;_t(e)}else E("Could not set auth0_sub on login, idToken was not available.")}catch(t){E("Failed to set auth0_sub on login: ",t)}},Xt=function(){return(Pt=Pt||r(Ut().mark((function t(){var e,n,r;return Ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,window.ConnextUtils.connextReady();case 2:if(null===(e=window.localStorage.getItem("newsletter_to_subscribe"))){t.next=13;break}return t.next=6,xt();case 6:return n=t.sent,r=n.email,E("CONNEXT: about to sign up ".concat(r," to ").concat(e)),t.next=11,Mt(r,e);case 11:window.localStorage.removeItem("newsletter_to_subscribe"),E("CONNEXT: newsletter_to_subscribe value removed from local storage.");case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)};const Ht={init:function(){return(Bt=Bt||r(Ut().mark((function t(){var e;return Ut().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return document.addEventListener("click",(function(t){if(t.target.classList.contains("connext-login")){var e=window.location.href,n=new URL(e),r=n.origin,o=new URL("".concat(r,"/login"));o.searchParams.set("returnUrl",n.toString()),window.location.assign(o)}})),X()||document.addEventListener("onInit",(function(){if("undefined"!=typeof Connext){var t,e,n,r=Connext;e="Logout",n=function(){return function(){alert("Warning! You called Connext.Logout() directly! Calling MNGAuthentication.logout() next."),window.MNGAuthentication.logout()}},(t=r)._logout=Connext.Logout,t[e]=n(t[e])}})),Xt(),MNGAuthentication.oidcLoginCallbacks.push(kt),window.ConnextUtils.runConnextIfSilent(),t.next=7,D();case 7:e=t.sent,Dt(e);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}};var Ft;function Kt(){Kt=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new x(r||[]);return i(a,"_invoke",{value:I(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var p="suspendedStart",d="suspendedYield",E="executing",A="completed",g={};function v(){}function w(){}function y(){}var m={};l(m,c,(function(){return this}));var N=Object.getPrototypeOf,S=N&&N(N(G([])));S&&S!==r&&o.call(S,c)&&(m=S);var O=y.prototype=v.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function I(t,n,r){var o=p;return function(i,a){if(o===E)throw new Error("Generator is already running");if(o===A){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=C(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=E;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?A:d,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=A,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function G(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:G(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}!function(){(Ft=Ft||r(Kt().mark((function t(){return Kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Ht.init(),t.next=3,P(!0);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}()})()})(); //# sourceMappingURL=mng-digisubs.connext.bundle.js.map; /*! For license information please see mng-digisubs.entitlements.bundle.js.LICENSE.txt */ (()=>{var t={1928:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},2012:(t,e,n)=>{"use strict";var r=n(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},2505:(t,e,n)=>{t.exports=n(8015)},2881:(t,e,n)=>{"use strict";var r=n(9516),o=n(6987);t.exports=function(t,e,n){var i=this||o;return r.forEach(n,(function(n){t=n.call(i,t,e)})),t}},3191:(t,e,n)=>{"use strict";var r=n(1928);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e{"use strict";var r=n(9516);function o(){this.handlers=[]}o.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},3864:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},3948:(t,e,n)=>{"use strict";var r=n(9516);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4202:(t,e,n)=>{"use strict";var r=n(9516);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},4490:(t,e,n)=>{"use strict";var r=n(9516),o=n(2881),i=n(3864),a=n(6987),c=n(1928);function s(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new c("canceled")}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(s(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},4680:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4841:(t,e,n)=>{"use strict";var r=n(9641).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var i={};o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new Error(o(r," has been removed"+(e?" in "+e:"")));return e&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),o=r.length;o-- >0;){var i=r[o],a=e[i];if(a){var c=t[i],s=void 0===c||a(c,i,t);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},5019:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},5155:(t,e,n)=>{"use strict";var r=n(9516),o=n(9106),i=n(3471),a=n(4490),c=n(5343),s=n(4841),u=s.validators;function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=c(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&s.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(t);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=t;n.length;){var h=n.shift(),d=n.shift();try{f=h(f)}catch(t){d(t);break}}try{o=a(f)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(t){return t=c(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(c(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,r){return this.request(c(r||{},{method:t,url:e,data:n}))}})),t.exports=l},5343:(t,e,n)=>{"use strict";var r=n(9516);t.exports=function(t,e){e=e||{};var n={};function o(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function i(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(t[n],e[n])}function a(t){if(!r.isUndefined(e[t]))return o(void 0,e[t])}function c(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(void 0,e[n])}function s(n){return n in e?o(t[n],e[n]):n in t?o(void 0,t[n]):void 0}var u={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:s};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,o=e(t);r.isUndefined(o)&&e!==s||(n[t]=o)})),n}},5449:t=>{"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},5592:(t,e,n)=>{"use strict";var r=n(9516),o=n(7522),i=n(3948),a=n(9106),c=n(9615),s=n(2012),u=n(4202),l=n(7763),f=n(6987),h=n(1928);t.exports=function(t){return new Promise((function(e,n){var d,p=t.data,E=t.headers,A=t.responseType;function N(){t.cancelToken&&t.cancelToken.unsubscribe(d),t.signal&&t.signal.removeEventListener("abort",d)}r.isFormData(p)&&delete E["Content-Type"];var v=new XMLHttpRequest;if(t.auth){var S=t.auth.username||"",O=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";E.Authorization="Basic "+btoa(S+":"+O)}var T=c(t.baseURL,t.url);function m(){if(v){var r="getAllResponseHeaders"in v?s(v.getAllResponseHeaders()):null,i={data:A&&"text"!==A&&"json"!==A?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:t,request:v};o((function(t){e(t),N()}),(function(t){n(t),N()}),i),v=null}}if(v.open(t.method.toUpperCase(),a(T,t.params,t.paramsSerializer),!0),v.timeout=t.timeout,"onloadend"in v?v.onloadend=m:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(m)},v.onabort=function(){v&&(n(l("Request aborted",t,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(l("Network Error",t,null,v)),v=null},v.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||f.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var y=(t.withCredentials||u(T))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;y&&(E[t.xsrfHeaderName]=y)}"setRequestHeader"in v&&r.forEach(E,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete E[e]:v.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(v.withCredentials=!!t.withCredentials),A&&"json"!==A&&(v.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&v.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(d=function(t){v&&(n(!t||t&&t.type?new h("canceled"):t),v.abort(),v=null)},t.cancelToken&&t.cancelToken.subscribe(d),t.signal&&(t.signal.aborted?d():t.signal.addEventListener("abort",d))),p||(p=null),v.send(p)}))}},6987:(t,e,n)=>{"use strict";var r=n(9516),o=n(7018),i=n(5449),a={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(5592)),s),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(c(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||u.transitional,n=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(a)})),t.exports=u},7018:(t,e,n)=>{"use strict";var r=n(9516);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},7522:(t,e,n)=>{"use strict";var r=n(7763);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},7763:(t,e,n)=>{"use strict";var r=n(5449);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},7980:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},8015:(t,e,n)=>{"use strict";var r=n(9516),o=n(9012),i=n(5155),a=n(5343);var c=function t(e){var n=new i(e),c=o(i.prototype.request,n);return r.extend(c,i.prototype,n),r.extend(c,n),c.create=function(n){return t(a(e,n))},c}(n(6987));c.Axios=i,c.Cancel=n(1928),c.CancelToken=n(3191),c.isCancel=n(3864),c.VERSION=n(9641).version,c.all=function(t){return Promise.all(t)},c.spread=n(7980),c.isAxiosError=n(5019),t.exports=c,t.exports.default=c},8805:(t,e,n)=>{"use strict";n.d(e,{A:()=>r}),window.authentication_config.sessionManagementEnabled="1"===window.authentication_config.sessionManagement;const r={debug:!!window.authentication_config.debug,sessionServer:window.authentication_config?window.authentication_config.sessionServer:"",entitlementsEnabled:!!window.authentication_config&&"1"===window.authentication_config.entitlementsEnabled,dropdownEnabled:!!window.authentication_config&&"1"===window.authentication_config.dropdownEnabled,enableReaderDashboardLink:!!window.authentication_config&&"1"===window.authentication_config.enableReaderDashboardLink,oneTapEnabled:!!window.authentication_config&&"1"===window.authentication_config.oneTapEnabled,useTribMainGoogle:!!window.authentication_config&&"1"===window.authentication_config.useTribMainGoogle,isAdfreeArticle:!!window.authentication_config&&"1"===window.authentication_config.isAdfreeArticle,auth0Domain:window.authentication_config?window.authentication_config.auth0Domain:"",auth0ClientId:window.authentication_config?window.authentication_config.auth0ClientId:"",entitlementsEndpoint:window.authentication_config?window.authentication_config.entitlementsEndpoint:"",entitlementsApiKey:window.authentication_config?window.authentication_config.entitlementsAPIKey:"",linaCheckOnArticles:!!window.authentication_config&&window.authentication_config.linaCheckOnArticles,serverEntitlements:!!window.authentication_config&&window.authentication_config.serverEntitlements,googleClientId:window.authentication_config?window.authentication_config.googleClientId:"",newsletterId:window.authentication_config?window.authentication_config.newsletterId:0,connextStorageKey:"",auth0SubKey:"auth0_sub",auth0Authenticated:"auth0.is.authenticated",secret:window.authentication_config?window.authentication_config.pluginSecret:"",newslettersEnabled:!!window.authentication_config&&"1"===window.authentication_config.newslettersEnabled,bcLowaSegements:!!window.authentication_config.bcLowaSegements&&"1"===window.authentication_config.bcLowaSegements,blueconicEnabled:!!window.authentication_config.blueconicEnabled&&"1"===window.authentication_config.blueconicEnabled,datadogEnabled:!!window.authentication_config.enableDatadog&&"1"===window.authentication_config.enableDatadog}},9012:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(9516);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},9137:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},9516:(t,e,n)=>{"use strict";var r=n(9012),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function c(t){return null!==t&&"object"==typeof t}function s(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===o.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n{"use strict";var r=n(9137),o=n(4680);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},9641:t=>{t.exports={version:"0.24.0"}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e,n,r,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,o)}function r(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=t.apply(n,r);function c(t){e(a,o,i,c,s,"next",t)}function s(t){e(a,o,i,c,s,"throw",t)}c(void 0)}))}}var o=n(8805);const i=function(){if(o.A.debug){for(var t,e=arguments.length,n=new Array(e),r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function l(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(u(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return u(e)}}function f(t){this.message=t}f.prototype=new Error,f.prototype.name="InvalidTokenError";const h=function(t,e){if("string"!=typeof t)throw new f("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(l(t.split(".")[n]))}catch(t){throw new f("Invalid token specified: "+t.message)}};var d=n(2505),p=n.n(d);const E="auth0_sub",A="mng-entitlements",N="__MNG_Session",v="regwallUserIsSubscribed";var S,O;function T(){T=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new x(r||[]);return i(a,"_invoke",{value:R(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var d="suspendedStart",p="suspendedYield",E="executing",A="completed",N={};function v(){}function S(){}function O(){}var m={};l(m,c,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(M([])));w&&w!==r&&o.call(w,c)&&(m=w);var g=O.prototype=v.prototype=Object.create(m);function I(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function R(t,n,r){var o=d;return function(i,a){if(o===E)throw new Error("Generator is already running");if(o===A){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=C(c,r);if(s){if(s===N)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=E;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?A:p,u.arg===N)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=A,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),N;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,N;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,N):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,N)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function G(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function M(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),G(n),N}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;G(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),N}},n}var m=function(){var t=window.location.href;return new URL(t)},y=function(t){for(var e="".concat(t,"="),n=decodeURIComponent(document.cookie).split(";"),r=0;r0&&void 0!==arguments[0]&&arguments[0],e=m().hostname;t&&"string"==typeof t&&(e=t);var n=e.split(".");return"".concat(n[n.length-2],".").concat(n[n.length-1])},g=function(){var t=w();return".".concat(t)},I=function(t,e,n){var r="".concat(t,"=").concat(e,";");void 0!==n?(i("Setting cookie with options: ",n),Object.entries(n).forEach((function(t){var e=c(t,2),n=e[0],o=e[1];if("expires"===n){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),r+="expires=".concat(i.toUTCString(),";")}else r+="".concat(n,"=").concat(o,";")}))):r+="path=/;",document.cookie=r},L=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="".concat(t,"= ;expires= Thu, 01 Jan 1970 00:00:00 GMT;"),o=w(),i=[o,"www".concat(o),".www".concat(o)];n&&i.push(n),Object.entries(e).forEach((function(t){var e=c(t,2),n=e[0],o=e[1];r+="".concat(n,"=").concat(o,";")})),0===Object.keys(e).length&&(r+="path=/;"),document.cookie=r,i.forEach((function(t){document.cookie=r.concat("domain=",t,";")}))},R=function(){return m().host.replace("www.","").replace("develop.","").replace("preprod.","")},C=function(t){return h(t)},b=function(){return"complete"===document.readyState},G=function(t){return(S=S||r(T().mark((function t(e){var n,o;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(t){if(("interactive"===document.readyState||b())&&window.dataLayer)i("Utils digisubsDataLayerLoaded: ","Document is in interactive state, resolving."),t();else{i("Utils digisubsDataLayerLoaded: ","Waiting for the dataLayer to load...");var e=setInterval(r(T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.dataLayer&&window.dataLayer.length>2&&(clearInterval(e),t(!0));case 1:case"end":return n.stop()}}),n)}))),50)}}));case 2:if(i("Utils getDataLayerObject: looking for this dataLayer object ",e),window.dataLayer=window.dataLayer||[],n="",i("Utils getDataLayerObject: here is dataLayer length ",window.dataLayer.length),o=function(t){return i("Utils dataLayerLoop: look for this element ",t),t[e]?(i("Utils dataLayerLoop: found ",t[e]),n=t[e],t[e]):(i("Utils dataLayerLoop: dataLayer search ",!1),!1)},!window.dataLayer.some(o)){t.next=10;break}return t.abrupt("return",n);case 10:return t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)},x=function(){return(O=O||r(T().mark((function t(){var e,n,r=arguments;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:"Page Type",t.next=3,G(e);case 3:return n=t.sent,i("utils.js | pageType: page type is ",n),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)},M=function(){return new Promise((function(t,e){void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.authenticationReady?(i("utils.js | Authentication already ready: ",window.MNGAuthentication.authenticationReady),t(window.MNGAuthentication.authenticationReady)):(i("utils.js | Adding authenticationReady listener..."),window.addEventListener("authenticationReady",(function(n){try{var r=n.detail||{};i("utils.js | Event: authentication ready: ",r),t(r)}catch(t){i(t),e(t)}}),!1))}))},B=function(){i("Clearing entitlements...");try{L(A,{path:"/"})}catch(t){i("Failed to delete legacy cookie: ",t)}try{L(A,{path:"/",domain:w(),expires:365,secure:!0})}catch(t){i("Failed to delete entitlements cookie: ",t)}try{window.localStorage.removeItem(N)}catch(t){i("Failed to remove local storage: ",t)}},U=function(t){i("starting simpleEmailValidation");var e=new RegExp(/^(([^<>()[\]\\.,;:\s@']+(\.[^<>()[\]\\.,;:\s@']+)*)|('.+'))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i);if(!t)return{valid:!1,message:"Please enter an email."};if(!e.test(t))return{valid:!1,message:"Please enter a valid email."};var n=t.match(/\.([^.\n\s]*)$/)[1].toUpperCase(),r=["AAA","AARP","ABARTH","ABB","ABBOTT","ABBVIE","ABC","ABLE","ABOGADO","ABUDHABI","AC","ACADEMY","ACCENTURE","ACCOUNTANT","ACCOUNTANTS","ACO","ACTOR","AD","ADS","ADULT","AE","AEG","AERO","AETNA","AF","AFL","AFRICA","AG","AGAKHAN","AGENCY","AI","AIG","AIRBUS","AIRFORCE","AIRTEL","AKDN","AL","ALFAROMEO","ALIBABA","ALIPAY","ALLFINANZ","ALLSTATE","ALLY","ALSACE","ALSTOM","AM","AMAZON","AMERICANEXPRESS","AMERICANFAMILY","AMEX","AMFAM","AMICA","AMSTERDAM","ANALYTICS","ANDROID","ANQUAN","ANZ","AO","AOL","APARTMENTS","APP","APPLE","AQ","AQUARELLE","AR","ARAB","ARAMCO","ARCHI","ARMY","ARPA","ART","ARTE","AS","ASDA","ASIA","ASSOCIATES","AT","ATHLETA","ATTORNEY","AU","AUCTION","AUDI","AUDIBLE","AUDIO","AUSPOST","AUTHOR","AUTO","AUTOS","AVIANCA","AW","AWS","AX","AXA","AZ","AZURE","BA","BABY","BAIDU","BANAMEX","BANANAREPUBLIC","BAND","BANK","BAR","BARCELONA","BARCLAYCARD","BARCLAYS","BAREFOOT","BARGAINS","BASEBALL","BASKETBALL","BAUHAUS","BAYERN","BB","BBC","BBT","BBVA","BCG","BCN","BD","BE","BEATS","BEAUTY","BEER","BENTLEY","BERLIN","BEST","BESTBUY","BET","BF","BG","BH","BHARTI","BI","BIBLE","BID","BIKE","BING","BINGO","BIO","BIZ","BJ","BLACK","BLACKFRIDAY","BLOCKBUSTER","BLOG","BLOOMBERG","BLUE","BM","BMS","BMW","BN","BNPPARIBAS","BO","BOATS","BOEHRINGER","BOFA","BOM","BOND","BOO","BOOK","BOOKING","BOSCH","BOSTIK","BOSTON","BOT","BOUTIQUE","BOX","BR","BRADESCO","BRIDGESTONE","BROADWAY","BROKER","BROTHER","BRUSSELS","BS","BT","BUILD","BUILDERS","BUSINESS","BUY","BUZZ","BV","BW","BY","BZ","BZH","CA","CAB","CAFE","CAL","CALL","CALVINKLEIN","CAM","CAMERA","CAMP","CANON","CAPETOWN","CAPITAL","CAPITALONE","CAR","CARAVAN","CARDS","CARE","CAREER","CAREERS","CARS","CASA","CASE","CASH","CASINO","CAT","CATERING","CATHOLIC","CBA","CBN","CBRE","CBS","CC","CD","CENTER","CEO","CERN","CF","CFA","CFD","CG","CH","CHANEL","CHANNEL","CHARITY","CHASE","CHAT","CHEAP","CHINTAI","CHRISTMAS","CHROME","CHURCH","CI","CIPRIANI","CIRCLE","CISCO","CITADEL","CITI","CITIC","CITY","CITYEATS","CK","CL","CLAIMS","CLEANING","CLICK","CLINIC","CLINIQUE","CLOTHING","CLOUD","CLUB","CLUBMED","CM","CN","CO","COACH","CODES","COFFEE","COLLEGE","COLOGNE","COM","COMCAST","COMMBANK","COMMUNITY","COMPANY","COMPARE","COMPUTER","COMSEC","CONDOS","CONSTRUCTION","CONSULTING","CONTACT","CONTRACTORS","COOKING","COOKINGCHANNEL","COOL","COOP","CORSICA","COUNTRY","COUPON","COUPONS","COURSES","CPA","CR","CREDIT","CREDITCARD","CREDITUNION","CRICKET","CROWN","CRS","CRUISE","CRUISES","CU","CUISINELLA","CV","CW","CX","CY","CYMRU","CYOU","CZ","DABUR","DAD","DANCE","DATA","DATE","DATING","DATSUN","DAY","DCLK","DDS","DE","DEAL","DEALER","DEALS","DEGREE","DELIVERY","DELL","DELOITTE","DELTA","DEMOCRAT","DENTAL","DENTIST","DESI","DESIGN","DEV","DHL","DIAMONDS","DIET","DIGITAL","DIRECT","DIRECTORY","DISCOUNT","DISCOVER","DISH","DIY","DJ","DK","DM","DNP","DO","DOCS","DOCTOR","DOG","DOMAINS","DOT","DOWNLOAD","DRIVE","DTV","DUBAI","DUNLOP","DUPONT","DURBAN","DVAG","DVR","DZ","EARTH","EAT","EC","ECO","EDEKA","EDU","EDUCATION","EE","EG","EMAIL","EMERCK","ENERGY","ENGINEER","ENGINEERING","ENTERPRISES","EPSON","EQUIPMENT","ER","ERICSSON","ERNI","ES","ESQ","ESTATE","ET","ETISALAT","EU","EUROVISION","EUS","EVENTS","EXCHANGE","EXPERT","EXPOSED","EXPRESS","EXTRASPACE","FAGE","FAIL","FAIRWINDS","FAITH","FAMILY","FAN","FANS","FARM","FARMERS","FASHION","FAST","FEDEX","FEEDBACK","FERRARI","FERRERO","FI","FIAT","FIDELITY","FIDO","FILM","FINAL","FINANCE","FINANCIAL","FIRE","FIRESTONE","FIRMDALE","FISH","FISHING","FIT","FITNESS","FJ","FK","FLICKR","FLIGHTS","FLIR","FLORIST","FLOWERS","FLY","FM","FO","FOO","FOOD","FOODNETWORK","FOOTBALL","FORD","FOREX","FORSALE","FORUM","FOUNDATION","FOX","FR","FREE","FRESENIUS","FRL","FROGANS","FRONTDOOR","FRONTIER","FTR","FUJITSU","FUN","FUND","FURNITURE","FUTBOL","FYI","GA","GAL","GALLERY","GALLO","GALLUP","GAME","GAMES","GAP","GARDEN","GAY","GB","GBIZ","GD","GDN","GE","GEA","GENT","GENTING","GEORGE","GF","GG","GGEE","GH","GI","GIFT","GIFTS","GIVES","GIVING","GL","GLASS","GLE","GLOBAL","GLOBO","GM","GMAIL","GMBH","GMO","GMX","GN","GODADDY","GOLD","GOLDPOINT","GOLF","GOO","GOODYEAR","GOOG","GOOGLE","GOP","GOT","GOV","GP","GQ","GR","GRAINGER","GRAPHICS","GRATIS","GREEN","GRIPE","GROCERY","GROUP","GS","GT","GU","GUARDIAN","GUCCI","GUGE","GUIDE","GUITARS","GURU","GW","GY","HAIR","HAMBURG","HANGOUT","HAUS","HBO","HDFC","HDFCBANK","HEALTH","HEALTHCARE","HELP","HELSINKI","HERE","HERMES","HGTV","HIPHOP","HISAMITSU","HITACHI","HIV","HK","HKT","HM","HN","HOCKEY","HOLDINGS","HOLIDAY","HOMEDEPOT","HOMEGOODS","HOMES","HOMESENSE","HONDA","HORSE","HOSPITAL","HOST","HOSTING","HOT","HOTELES","HOTELS","HOTMAIL","HOUSE","HOW","HR","HSBC","HT","HU","HUGHES","HYATT","HYUNDAI","IBM","ICBC","ICE","ICU","ID","IE","IEEE","IFM","IKANO","IL","IM","IMAMAT","IMDB","IMMO","IMMOBILIEN","IN","INC","INDUSTRIES","INFINITI","INFO","ING","INK","INSTITUTE","INSURANCE","INSURE","INT","INTERNATIONAL","INTUIT","INVESTMENTS","IO","IPIRANGA","IQ","IR","IRISH","IS","ISMAILI","IST","ISTANBUL","IT","ITAU","ITV","JAGUAR","JAVA","JCB","JE","JEEP","JETZT","JEWELRY","JIO","JLL","JM","JMP","JNJ","JO","JOBS","JOBURG","JOT","JOY","JP","JPMORGAN","JPRS","JUEGOS","JUNIPER","KAUFEN","KDDI","KE","KERRYHOTELS","KERRYLOGISTICS","KERRYPROPERTIES","KFH","KG","KH","KI","KIA","KIDS","KIM","KINDER","KINDLE","KITCHEN","KIWI","KM","KN","KOELN","KOMATSU","KOSHER","KP","KPMG","KPN","KR","KRD","KRED","KUOKGROUP","KW","KY","KYOTO","KZ","LA","LACAIXA","LAMBORGHINI","LAMER","LANCASTER","LANCIA","LAND","LANDROVER","LANXESS","LASALLE","LAT","LATINO","LATROBE","LAW","LAWYER","LB","LC","LDS","LEASE","LECLERC","LEFRAK","LEGAL","LEGO","LEXUS","LGBT","LI","LIDL","LIFE","LIFEINSURANCE","LIFESTYLE","LIGHTING","LIKE","LILLY","LIMITED","LIMO","LINCOLN","LINDE","LINK","LIPSY","LIVE","LIVING","LK","LLC","LLP","LOAN","LOANS","LOCKER","LOCUS","LOFT","LOL","LONDON","LOTTE","LOTTO","LOVE","LPL","LPLFINANCIAL","LR","LS","LT","LTD","LTDA","LU","LUNDBECK","LUXE","LUXURY","LV","LY","MA","MACYS","MADRID","MAIF","MAISON","MAKEUP","MAN","MANAGEMENT","MANGO","MAP","MARKET","MARKETING","MARKETS","MARRIOTT","MARSHALLS","MASERATI","MATTEL","MBA","MC","MCKINSEY","MD","ME","MED","MEDIA","MEET","MELBOURNE","MEME","MEMORIAL","MEN","MENU","MERCKMSD","MG","MH","MIAMI","MICROSOFT","MIL","MINI","MINT","MIT","MITSUBISHI","MK","ML","MLB","MLS","MM","MMA","MN","MO","MOBI","MOBILE","MODA","MOE","MOI","MOM","MONASH","MONEY","MONSTER","MORMON","MORTGAGE","MOSCOW","MOTO","MOTORCYCLES","MOV","MOVIE","MP","MQ","MR","MS","MSD","MT","MTN","MTR","MU","MUSEUM","MUSIC","MUTUAL","MV","MW","MX","MY","MZ","NA","NAB","NAGOYA","NAME","NATURA","NAVY","NBA","NC","NE","NEC","NET","NETBANK","NETFLIX","NETWORK","NEUSTAR","NEW","NEWS","NEXT","NEXTDIRECT","NEXUS","NF","NFL","NG","NGO","NHK","NI","NICO","NIKE","NIKON","NINJA","NISSAN","NISSAY","NL","NO","NOKIA","NORTHWESTERNMUTUAL","NORTON","NOW","NOWRUZ","NOWTV","NP","NR","NRA","NRW","NTT","NU","NYC","NZ","OBI","OBSERVER","OFFICE","OKINAWA","OLAYAN","OLAYANGROUP","OLDNAVY","OLLO","OM","OMEGA","ONE","ONG","ONL","ONLINE","OOO","OPEN","ORACLE","ORANGE","ORG","ORGANIC","ORIGINS","OSAKA","OTSUKA","OTT","OVH","PA","PAGE","PANASONIC","PARIS","PARS","PARTNERS","PARTS","PARTY","PASSAGENS","PAY","PCCW","PE","PET","PF","PFIZER","PG","PH","PHARMACY","PHD","PHILIPS","PHONE","PHOTO","PHOTOGRAPHY","PHOTOS","PHYSIO","PICS","PICTET","PICTURES","PID","PIN","PING","PINK","PIONEER","PIZZA","PK","PL","PLACE","PLAY","PLAYSTATION","PLUMBING","PLUS","PM","PN","PNC","POHL","POKER","POLITIE","PORN","POST","PR","PRAMERICA","PRAXI","PRESS","PRIME","PRO","PROD","PRODUCTIONS","PROF","PROGRESSIVE","PROMO","PROPERTIES","PROPERTY","PROTECTION","PRU","PRUDENTIAL","PS","PT","PUB","PW","PWC","PY","QA","QPON","QUEBEC","QUEST","RACING","RADIO","RE","READ","REALESTATE","REALTOR","REALTY","RECIPES","RED","REDSTONE","REDUMBRELLA","REHAB","REISE","REISEN","REIT","RELIANCE","REN","RENT","RENTALS","REPAIR","REPORT","REPUBLICAN","REST","RESTAURANT","REVIEW","REVIEWS","REXROTH","RICH","RICHARDLI","RICOH","RIL","RIO","RIP","RO","ROCHER","ROCKS","RODEO","ROGERS","ROOM","RS","RSVP","RU","RUGBY","RUHR","RUN","RW","RWE","RYUKYU","SA","SAARLAND","SAFE","SAFETY","SAKURA","SALE","SALON","SAMSCLUB","SAMSUNG","SANDVIK","SANDVIKCOROMANT","SANOFI","SAP","SARL","SAS","SAVE","SAXO","SB","SBI","SBS","SC","SCA","SCB","SCHAEFFLER","SCHMIDT","SCHOLARSHIPS","SCHOOL","SCHULE","SCHWARZ","SCIENCE","SCOT","SD","SE","SEARCH","SEAT","SECURE","SECURITY","SEEK","SELECT","SENER","SERVICES","SES","SEVEN","SEW","SEX","SEXY","SFR","SG","SH","SHANGRILA","SHARP","SHAW","SHELL","SHIA","SHIKSHA","SHOES","SHOP","SHOPPING","SHOUJI","SHOW","SHOWTIME","SI","SILK","SINA","SINGLES","SITE","SJ","SK","SKI","SKIN","SKY","SKYPE","SL","SLING","SM","SMART","SMILE","SN","SNCF","SO","SOCCER","SOCIAL","SOFTBANK","SOFTWARE","SOHU","SOLAR","SOLUTIONS","SONG","SONY","SOY","SPA","SPACE","SPORT","SPOT","SR","SRL","SS","ST","STADA","STAPLES","STAR","STATEBANK","STATEFARM","STC","STCGROUP","STOCKHOLM","STORAGE","STORE","STREAM","STUDIO","STUDY","STYLE","SU","SUCKS","SUPPLIES","SUPPLY","SUPPORT","SURF","SURGERY","SUZUKI","SV","SWATCH","SWISS","SX","SY","SYDNEY","SYSTEMS","SZ","TAB","TAIPEI","TALK","TAOBAO","TARGET","TATAMOTORS","TATAR","TATTOO","TAX","TAXI","TC","TCI","TD","TDK","TEAM","TECH","TECHNOLOGY","TEL","TEMASEK","TENNIS","TEVA","TF","TG","TH","THD","THEATER","THEATRE","TIAA","TICKETS","TIENDA","TIFFANY","TIPS","TIRES","TIROL","TJ","TJMAXX","TJX","TK","TKMAXX","TL","TM","TMALL","TN","TO","TODAY","TOKYO","TOOLS","TOP","TORAY","TOSHIBA","TOTAL","TOURS","TOWN","TOYOTA","TOYS","TR","TRADE","TRADING","TRAINING","TRAVEL","TRAVELCHANNEL","TRAVELERS","TRAVELERSINSURANCE","TRUST","TRV","TT","TUBE","TUI","TUNES","TUSHU","TV","TVS","TW","TZ","UA","UBANK","UBS","UG","UK","UNICOM","UNIVERSITY","UNO","UOL","UPS","US","UY","UZ","VA","VACATIONS","VANA","VANGUARD","VC","VE","VEGAS","VENTURES","VERISIGN","VERSICHERUNG","VET","VG","VI","VIAJES","VIDEO","VIG","VIKING","VILLAS","VIN","VIP","VIRGIN","VISA","VISION","VIVA","VIVO","VLAANDEREN","VN","VODKA","VOLKSWAGEN","VOLVO","VOTE","VOTING","VOTO","VOYAGE","VU","VUELOS","WALES","WALMART","WALTER","WANG","WANGGOU","WATCH","WATCHES","WEATHER","WEATHERCHANNEL","WEBCAM","WEBER","WEBSITE","WED","WEDDING","WEIBO","WEIR","WF","WHOSWHO","WIEN","WIKI","WILLIAMHILL","WIN","WINDOWS","WINE","WINNERS","WME","WOLTERSKLUWER","WOODSIDE","WORK","WORKS","WORLD","WOW","WS","WTC","WTF","XBOX","XEROX","XFINITY","XIHUAN","XIN","XN--11B4C3D","XN--1CK2E1B","XN--1QQW23A","XN--2SCRJ9C","XN--30RR7Y","XN--3BST00M","XN--3DS443G","XN--3E0B707E","XN--3HCRJ9C","XN--3PXU8K","XN--42C2D9A","XN--45BR5CYL","XN--45BRJ9C","XN--45Q11C","XN--4DBRK0CE","XN--4GBRIM","XN--54B7FTA0CC","XN--55QW42G","XN--55QX5D","XN--5SU34J936BGSG","XN--5TZM5G","XN--6FRZ82G","XN--6QQ986B3XL","XN--80ADXHKS","XN--80AO21A","XN--80AQECDR1A","XN--80ASEHDB","XN--80ASWG","XN--8Y0A063A","XN--90A3AC","XN--90AE","XN--90AIS","XN--9DBQ2A","XN--9ET52U","XN--9KRT00A","XN--B4W605FERD","XN--BCK1B9A5DRE4C","XN--C1AVG","XN--C2BR7G","XN--CCK2B3B","XN--CCKWCXETD","XN--CG4BKI","XN--CLCHC0EA0B2G2A9GCD","XN--CZR694B","XN--CZRS0T","XN--CZRU2D","XN--D1ACJ3B","XN--D1ALF","XN--E1A4C","XN--ECKVDTC9D","XN--EFVY88H","XN--FCT429K","XN--FHBEI","XN--FIQ228C5HS","XN--FIQ64B","XN--FIQS8S","XN--FIQZ9S","XN--FJQ720A","XN--FLW351E","XN--FPCRJ9C3D","XN--FZC2C9E2C","XN--FZYS8D69UVGM","XN--G2XX48C","XN--GCKR3F0F","XN--GECRJ9C","XN--GK3AT1E","XN--H2BREG3EVE","XN--H2BRJ9C","XN--H2BRJ9C8C","XN--HXT814E","XN--I1B6B1A6A2E","XN--IMR513N","XN--IO0A7I","XN--J1AEF","XN--J1AMH","XN--J6W193G","XN--JLQ480N2RG","XN--JVR189M","XN--KCRX77D1X4A","XN--KPRW13D","XN--KPRY57D","XN--KPUT3I","XN--L1ACC","XN--LGBBAT1AD8J","XN--MGB9AWBF","XN--MGBA3A3EJT","XN--MGBA3A4F16A","XN--MGBA7C0BBN0A","XN--MGBAAKC7DVF","XN--MGBAAM7A8H","XN--MGBAB2BD","XN--MGBAH1A3HJKRD","XN--MGBAI9AZGQP6J","XN--MGBAYH7GPA","XN--MGBBH1A","XN--MGBBH1A71E","XN--MGBC0A9AZCG","XN--MGBCA7DZDO","XN--MGBCPQ6GPA1A","XN--MGBERP4A5D4AR","XN--MGBGU82A","XN--MGBI4ECEXP","XN--MGBPL2FH","XN--MGBT3DHD","XN--MGBTX2B","XN--MGBX4CD0AB","XN--MIX891F","XN--MK1BU44C","XN--MXTQ1M","XN--NGBC5AZD","XN--NGBE9E0A","XN--NGBRX","XN--NODE","XN--NQV7F","XN--NQV7FS00EMA","XN--NYQY26A","XN--O3CW4H","XN--OGBPF8FL","XN--OTU796D","XN--P1ACF","XN--P1AI","XN--PGBS0DH","XN--PSSY2U","XN--Q7CE6A","XN--Q9JYB4C","XN--QCKA1PMC","XN--QXA6A","XN--QXAM","XN--RHQV96G","XN--ROVU88B","XN--RVC1E0AM3E","XN--S9BRJ9C","XN--SES554G","XN--T60B56A","XN--TCKWE","XN--TIQ49XQYJ","XN--UNUP4Y","XN--VERMGENSBERATER-CTB","XN--VERMGENSBERATUNG-PWB","XN--VHQUV","XN--VUQ861B","XN--W4R85EL8FHU5DNRA","XN--W4RS40L","XN--WGBH1C","XN--WGBL6A","XN--XHQ521B","XN--XKC2AL3HYE2A","XN--XKC2DL3A5EE0H","XN--Y9A3AQ","XN--YFRO4I67O","XN--YGBI2AMMX","XN--ZFR164B","XXX","XYZ","YACHTS","YAHOO","YAMAXUN","YANDEX","YE","YODOBASHI","YOGA","YOKOHAMA","YOU","YOUTUBE","YT","YUN","ZA","ZAPPOS","ZARA","ZERO","ZIP","ZM","ZONE","ZUERICH","ZW"].includes(n);return i("simpleEmailValidation: ","TLD search ".concat(r)),!1===r?{valid:!1,message:"Please enter a valid email domain."}:-1===["zzz.pl"].findIndex((function(e){return e===t.split("@")[1]}))?{valid:!0,message:"Valid"}:{valid:!1,message:"Please enter a valid email."}};window.simpleEmailValidation=U;window.validatePhoneNumber=function(t){return/^[0-9]([0-9 -])*[0-9]$/.test(t)};var P=function(t){o.A.datadogEnabled&&window.DD_RUM.addTiming(t)};var D,k,X,F;function H(){H=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new G(r||[]);return i(a,"_invoke",{value:L(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var d="suspendedStart",p="suspendedYield",E="executing",A="completed",N={};function v(){}function S(){}function O(){}var T={};l(T,c,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(x([])));y&&y!==r&&o.call(y,c)&&(T=y);var w=O.prototype=v.prototype=Object.create(T);function g(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function I(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function L(t,n,r){var o=d;return function(i,a){if(o===E)throw new Error("Generator is already running");if(o===A){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=R(c,r);if(s){if(s===N)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=E;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?A:p,u.arg===N)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=A,r.method="throw",r.arg=u.arg)}}}function R(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),N;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,N;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,N):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,N)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function x(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),N}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:x(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),N}},n}var _,K,Y,j,V,W,J,Z,Q=function(){try{var t=localStorage.getItem(N);return"string"==typeof t?t:"{}"}catch(t){i("Unable to get session from local storage: ",t)}return"{}"},q=function(t){try{i("Setting local storage session",t),localStorage.setItem(N,t)}catch(t){i("Unable to save session from local storage: ",t)}},z=function(t){try{I(A,t,{path:"/",domain:g(),expires:365,secure:!0})}catch(t){i("Unable to save session to cookie storage: ",t)}},tt=function(){return(D=D||r(H().mark((function t(){var e,n,r,a,c,s,u,l,f,h,d,E,A,N,v,S,O,T;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=o.A.sessionServer,n="".concat(e,"/api/session"),i("Checking server session: ",n),t.next=5,p().get(n,{withCredentials:!0});case 5:if(!(r=t.sent).data){t.next=17;break}return f=r.data.entitlementTokenDecoded,h=r.data,d=h.accessToken,E=h.idToken,A=h.entitlementToken,N=null!==(a=null==f?void 0:f.entitlement_expiry)&&void 0!==a?a:null,v=null!==(c=null==f?void 0:f.entitlement_source)&&void 0!==c?c:null,S=null!==(s=null==f?void 0:f.entitlement_entitled)&&void 0!==s?s:null,O=null!==(u=null==f?void 0:f.entitlement_extras_adfree)&&void 0!==u?u:null,T=null!==(l=null==f?void 0:f.entitlement_level)&&void 0!==l?l:null,q(JSON.stringify({accessToken:d,idToken:E,entitlementToken:A,expiration:N,entitlementSource:v,isEntitled:S,adFree:O,entitlementLevel:T})),""!==A&&"string"==typeof A&&z(A),t.abrupt("return",{accessToken:d,idToken:E,entitlementToken:A,expiration:N,entitlementSource:v,isEntitled:S,adFree:O,entitlementLevel:T});case 17:return t.abrupt("return",{accessToken:null,idToken:null,entitlementToken:null,expiration:null,entitlementSource:null,isEntitled:null,adFree:null,entitlementLevel:null});case 18:case"end":return t.stop()}}),t)})))).apply(this,arguments)},et=function(t){return(k=k||r(H().mark((function t(e){var n,r;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=o.A.sessionServer,r="".concat(n,"/api/session"),i("Updating server session: ",r),t.next=6,p().post(r,e,{withCredentials:!0});case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),i("Failed to update session server: ",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))).apply(this,arguments)},nt=function(){return(X=X||r(H().mark((function t(){var e,n,r,o,a,c,s,u,l,f,h,d,p,E,A,N,v,S,O,T,m,y,w,g,I,L,R;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i("Inside getSession"),t.prev=1,l=Q(),i("Session: __MNG_Session = ",l),f=JSON.parse(l),h=f.accessToken,d=f.idToken,p=f.entitlementToken,E=f.expiration,A=f.entitlementSource,N=f.isEntitled,v=f.adFree,S=f.entitlementLevel,n=h,o=E,a=A,c=N,s=v,u=S,i("Session: check both tokens: ",e=d,r=p),void 0!==d&&void 0!==p&&null!==d&&null!==p){t.next=35;break}return i("Session: missing id or entitlements, try session server"),t.next=18,tt();case 18:O=t.sent,T=O.accessToken,m=O.idToken,y=O.entitlementToken,w=O.expiration,g=O.entitlementSource,I=O.isEntitled,L=O.adFree,R=O.entitlementLevel,n=T,e=m,r=y,o=w,a=g,c=I,s=L,u=R;case 35:t.next=40;break;case 37:t.prev=37,t.t0=t.catch(1),i("Failed to get session: ",t.t0);case 40:return i("Returning session: ",e,n,r),t.abrupt("return",{accessToken:n,idToken:e,entitlementToken:r,expiration:o,entitlementSource:a,isEntitled:c,adFree:s,entitlementLevel:u});case 42:case"end":return t.stop()}}),t,null,[[1,37]])})))).apply(this,arguments)},rt=function(t){return(F=F||r(H().mark((function t(e){var n,r,o,a,c,s,u,l,f,h,d,p,E,A,N,v,S,O,T,m,y,w,g,I,L,R,C,b;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n=Q(),r=JSON.parse(n),o=r.accessToken,a=void 0===o?null:o,c=r.idToken,s=void 0===c?null:c,u=r.entitlementToken,l=void 0===u?null:u,f=r.expiration,h=void 0===f?null:f,d=r.entitlementSource,p=void 0===d?null:d,E=r.isEntitled,A=void 0===E?null:E,N=r.adFree,v=void 0===N?null:N,S=r.entitlementLevel,O=void 0===S?null:S,T=e.accessToken,m=e.idToken,y=e.entitlementToken,w=e.expiration,g=e.entitlementSource,I=e.isEntitled,L=e.adFree,R=e.entitlementLevel,C={accessToken:null==T?a:T,idToken:null==m?s:m,entitlementToken:null==y?l:y,expiration:null==w?h:w,entitlementSource:null==g?p:g,isEntitled:null==I?A:I,adFree:null==L?v:L,entitlementLevel:null==R?O:R},i("Current session data: ",r),i("New session data: ",e),i("Updated session data:",C),b=JSON.stringify(C),q(b),""!==C.entitlementToken&&"string"==typeof C.entitlementToken&&z(C.entitlementToken),n===b){t.next=15;break}return t.next=15,et(C);case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(0),i("Unable to save session: ",t.t0);case 20:case"end":return t.stop()}}),t,null,[[0,17]])})))).apply(this,arguments)};function ot(){ot=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new G(r||[]);return i(a,"_invoke",{value:L(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var d="suspendedStart",p="suspendedYield",E="executing",A="completed",N={};function v(){}function S(){}function O(){}var T={};l(T,c,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(x([])));y&&y!==r&&o.call(y,c)&&(T=y);var w=O.prototype=v.prototype=Object.create(T);function g(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function I(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function L(t,n,r){var o=d;return function(i,a){if(o===E)throw new Error("Generator is already running");if(o===A){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=R(c,r);if(s){if(s===N)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=E;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?A:p,u.arg===N)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=A,r.method="throw",r.arg=u.arg)}}}function R(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),N;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,N;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,N):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,N)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function x(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),N}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:x(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),N}},n}var it=function(){var t=window.localStorage.getItem(N);return JSON.parse(t)},at=function(){return(_=_||r(ot().mark((function t(){var e,n;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.authentication_config.sessionManagementEnabled){t.next=5;break}return t.next=3,nt();case 3:return e=t.sent,t.abrupt("return",e);case 5:return n=it(),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)},ct=function(t){I(A,t,{path:"/",domain:g(),expires:365,secure:!0})},st=function(t){return(K=K||r(ot().mark((function t(e){var n;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,ct(e),i("About to decode token before saving: ",e),n=C(e),!window.authentication_config.sessionManagementEnabled){t.next=9;break}return t.next=7,rt({entitlementToken:e,expiration:n.entitlement_expiry,entitlementSource:n.entitlement_source,isEntitled:n.entitlement_entitled,adFree:n.entitlement_extras_adfree||!1,entitlementLevel:n.entitlement_level});case 7:t.next=10;break;case 9:window.localStorage.setItem(N,JSON.stringify({entitlementToken:e,expiration:n.entitlement_expiry,entitlementSource:n.entitlement_source,isEntitled:n.entitlement_entitled,adFree:n.entitlement_extras_adfree||!1,entitlementLevel:n.entitlement_level}));case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),i("Entitlements: Failed to save token: ",t.t0);case 15:case"end":return t.stop()}}),t,null,[[0,12]])})))).apply(this,arguments)},ut=function(t){return(Y=Y||r(ot().mark((function t(e){var n,a,c,s,u,l,f;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=!1,!window.authentication_config.sessionManagementEnabled){t.next=8;break}return t.next=4,nt();case 4:"string"==typeof(a=t.sent).idToken&&""!==a.idToken&&(c=C(a.idToken),n=void 0!==c&&c.email_verified),t.next=13;break;case 8:return t.next=10,M();case 10:s=t.sent,(u=s.idToken)&&""!==u&&(n=C(u).email_verified);case 13:if(i("Entitlements: refresh JWT start..."),e){t.next=16;break}return t.abrupt("return",new Error("No token to refresh"));case 16:return i("Entitlements refresh: entitlement token: ",e),i("Entitlements refresh: auth0 verified: ",n),l={jwt:e,verified:n},f="".concat(o.A.entitlementsEndpoint,"session/refresh"),t.abrupt("return",new Promise((function(t){var e,n;$.ajax({type:"POST",url:f,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8","X-Api-Key":o.A.entitlementsApiKey},data:JSON.stringify(l),success:function(n){return(e=e||r(ot().mark((function e(n){return ot().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"==typeof n.jwt){e.next=2;break}return e.abrupt("return",new Error("Entitlements API returned no JWT"));case 2:return i("Entitlements: Request successful: ",n),e.next=5,st(n.jwt);case 5:return e.abrupt("return",t(n.jwt));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)},error:function(t,e,o){return(n=n||r(ot().mark((function t(e,n,r){return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i("Entitlements: Request Failure: ",r),B(),!window.authentication_config.sessionManagementEnabled){t.next=5;break}return t.next=5,rt({entitlementToken:null});case 5:return t.abrupt("return",new Error("Entitlements Refresh failure"));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}})})));case 21:case"end":return t.stop()}}),t)})))).apply(this,arguments)},lt=function(e){return new Promise((function(n,a){var c;if(i("Entitlements: create token start..."),i("Entitlements: createToken payload with ",e),"object"!==t(e)&&"string"!=typeof e.sub)return a(new Error("No user info to create token"));var s,u,l=w();if(e.sub&&(s=e.sub),e.idToken&&(u=e.idToken),!u&&!s)throw new Error("No idToken or uuid provided.");var f={publication:l.replace(".local",".com"),requestSource:"website"};u&&(f.idToken=u),s&&(f.uuid=s);var h="".concat(o.A.entitlementsEndpoint,"session/create");return i("Entitlements: create payload",f),$.ajax({type:"POST",url:h,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8","X-Api-Key":o.A.entitlementsApiKey},data:JSON.stringify(f),success:function(t){return(c=c||r(ot().mark((function t(e){return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"==typeof e.jwt){t.next=2;break}return t.abrupt("return",a(new Error("Entitlements | API returned no JWT")));case 2:return i("Entitlements: Token Created: ",e),t.next=5,st(e.jwt);case 5:return t.abrupt("return",n(e.jwt));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)},error:function(t,e,n){i("Entitlements: Create Token Failure: ",e,n),a(new Error("Entitlements: Create Token Failure"))}})}))},ft=function(){return(j=j||r(ot().mark((function t(){var e,n;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at();case 3:if((e=t.sent)&&e.entitlementToken){t.next=6;break}return t.abrupt("return",!1);case 6:if(!((n=Date.now()/1e3) ").concat(e.expiration)),t.abrupt("return",ut(e.entitlementToken));case 13:return t.prev=13,t.t0=t.catch(0),i("Entitlements: Local Storage: Error processing token: ",t.t0.message),t.abrupt("return",!1);case 17:case"end":return t.stop()}}),t,null,[[0,13]])})))).apply(this,arguments)},ht=function(){return(V=V||r(ot().mark((function t(){var e;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=y(A)){t.next=4;break}return t.abrupt("return",!1);case 4:return i("checkCookiesForToken, Refreshing token, ".concat(e)),t.next=7,ut(e);case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(0),i("Entitlements: Cookie: Error processing token: ",t.t0.message),t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[0,10]])})))).apply(this,arguments)},dt=function(t){i("Attempting to broadcast entitlements ready...",t);try{var e={token:t};if(t){i("About to decode token before broadcasting: ",t);var n=C(t);e=Object.assign(e,{isEntitled:n.entitlement_entitled,adfree:n.entitlement_extras_adfree||!1,subscriptionLevel:n.entitlement_level})}var r=new CustomEvent("entitlementsReady",{detail:e});window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.entitlementsReady=e,i("Dispatching entitlementsReady Event: ",r),window.dispatchEvent(r),i("Dispatched entitlementsReady event"),P("entitlementsReady")}catch(t){var o={token:""};o=Object.assign(o,{isEntitled:"unknown",adfree:"unknown",subscriptionLevel:"unknown"});var a=new CustomEvent("entitlementsReady",{detail:o});window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.entitlementsReady=o,i("Dispatching entitlementsReady EMPTY Event: ",a),window.dispatchEvent(a),i("Dispatched entitlementsReady EMPTY event"),i("Error: ",t)}},pt=function(t){return(W=W||r(ot().mark((function t(e){return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,lt({idToken:e});case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),i("Entitlements error during oidc login callback: ",t.t0);case 8:case"end":return t.stop()}}),t,null,[[0,5]])})))).apply(this,arguments)},Et=function(t){var e=t.searchParams.get("entitlement_jwt");i("Webview JWT param provided: ",e),ct(e);var n=C(e);window.localStorage.setItem(N,JSON.stringify({entitlementToken:e,expiration:n.entitlement_expiry,entitlementSource:n.entitlement_source,isEntitled:n.entitlement_entitled,adFree:n.entitlement_extras_adfree||!1,entitlementLevel:n.entitlement_level}))},At=function(){return(J=J||r(ot().mark((function t(){var e,n,r,a,c,s,u,l,f,h,d,p;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=window.localStorage.getItem(v),n=y(E),r=m(),a=R(),!y("clearEntCache")&&!r.searchParams.has("newUser")){t.next=24;break}return c="".concat(o.A.entitlementsEndpoint,"session/create"),t.next=10,M();case 10:return s=t.sent,u={uuid:s.claims.auth0Id,publication:a},t.prev=12,t.next=15,$.ajax({type:"DELETE",url:c,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8","X-Api-Key":o.A.entitlementsApiKey},data:JSON.stringify(u)});case 15:t.sent&&(i("loggedOutNewSubscriberActions","Entitlements: Cache cleared"),L("clearEntCache")),t.next=22;break;case 19:t.prev=19,t.t0=t.catch(12),i("loggedOutNewSubscriberActions","Entitlements: Cache clear Failure - ".concat(t.t0.message));case 22:t.next=25;break;case 24:i("loggedOutNewSubscriberActions","There is no clearEntCache cookie");case 25:if(i("loggedOutNewSubscriberActions","Checking if this is a new regwall subscriber"),"false"!==e||!r.searchParams.has("newUser")||!n){t.next=39;break}return l=!1,f={sub:n,email_verified:!0},t.next=31,lt(f);case 31:if((h=t.sent)&&""!==h&&(d=C(h),p=d.entitlement_entitled,l=p),i("loggedOutNewSubscriberActions","New regwall user is entitled: ".concat(l)),!l){t.next=38;break}return window.localStorage.setItem(v,"true"),window.ConnextUtils.rerunConnextEntitlements(),t.abrupt("return",!0);case 38:case 39:return t.abrupt("return",!1);case 42:return t.prev=42,t.t1=t.catch(0),i("loggedOutNewSubscriberActions error",t.t1),t.abrupt("return",!1);case 46:case"end":return t.stop()}}),t,null,[[0,42],[12,19]])})))).apply(this,arguments)};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.isUserAdFree=function(){var t=JSON.parse(window.localStorage.getItem(N));return null!=t?(i("Ad Free Check: : ",t.adFree),t.idToken&&t.adFree||o.A.isAdfreeArticle):o.A.isAdfreeArticle},window.MNGAuthentication.isUserSubscriber=function(){var t=JSON.parse(window.localStorage.getItem(N));return null!=t&&(i("Subscriber Check: : ",t.isEntitled),t.isEntitled)};const Nt={init:function(){return(Z=Z||r(ot().mark((function t(){var e,n,r,a,c,s,u,l,f,h,d,p,E,A,N;return ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o.A.entitlementsEnabled){t.next=120;break}return t.next=3,At();case 3:if(!t.sent){t.next=6;break}return t.abrupt("return",dt(!1));case 6:return e=window.location,n=new URL(e.href),t.next=10,M();case 10:if(r=t.sent,a=r.idToken,c=r.accessToken,s=r.isAuthenticated,u=r.claims,void 0!==window.MNGAuthentication&&Array.isArray(window.MNGAuthentication.oidcLoginCallbacks)&&window.MNGAuthentication.oidcLoginCallbacks.push(pt),t.prev=16,!n.searchParams.has("newUser")){t.next=28;break}if("string"!=typeof a||""===a){t.next=27;break}return t.next=21,lt({idToken:a});case 21:if(!(l=t.sent)){t.next=25;break}return i("Entitlements Init: Created new token for new subscriber"),t.abrupt("return",dt(l));case 25:t.next=28;break;case 27:i("New subscription, no idToken.");case 28:t.next=33;break;case 30:t.prev=30,t.t0=t.catch(16),i("Not a new subscriber.");case 33:try{n.searchParams.has("entitlement_jwt")&&Et(n)}catch(t){i("Error during webview JWT retrieval: ",t)}return t.prev=34,t.next=37,ft();case 37:if(!((f=t.sent)instanceof Error)){t.next=40;break}throw f;case 40:f&&(l=f,i("Entitlements Init: Local Storage Token exists")),t.next=46;break;case 43:t.prev=43,t.t1=t.catch(34),i("Error during Local Storage Token check: ",t.t1);case 46:if(t.prev=46,l){t.next=54;break}return t.next=50,ht();case 50:if(!((h=t.sent)instanceof Error)){t.next=53;break}throw h;case 53:h&&(l=h,i("Entitlements Init: Cookie Token exists"));case 54:t.next=59;break;case 56:t.prev=56,t.t2=t.catch(46),i("Error during Cookie Token check: ",t.t2);case 59:if(!s&&l&&(i("Entitled-only flow: User is not authenticated but entitlement token exists."),C(l).entitlement_entitled?(i("PageSuite flow: User is not authenticated but is subscriber. Access token is ".concat(c)),c?MNGAuthentication.login():i("PageSuite flow: No Access token.")):i("Entitled-only flow: User is not entitled.")),s){t.next=63;break}return i("User is not logged in, skipping entitlement flow."),t.abrupt("return",dt(!1));case 63:if(!o.A.bcLowaSegements||s!==o.A.USER_IS_LOWA||l){t.next=76;break}return t.prev=64,i("About to check entitlements based on BC"),d={sub:u.sub},t.next=69,lt(d);case 69:l=t.sent,!window.authentication_config.sessionManagementEnabled&&o.A.serverEntitlements&&l&&(i("Entitlements fetched, about to reload to refresh entitlement cookie for server."),window.location.reload()),t.next=76;break;case 73:t.prev=73,t.t3=t.catch(64),i("BC sub segment check failed: ",t.t3);case 76:if(t.prev=76,!l){t.next=99;break}if(!o.A.linaCheckOnArticles){t.next=98;break}if(p=C(l),E=p.entitlement_entitled,A=p.iat,i("LINA check: isEntitled: ".concat(E,", token created at: ").concat(A)),!(o.A.linaCheckOnArticles&&!E&&Date.now()/1e3-new Date(A)>45)){t.next=98;break}if(i("Checking entitlements again for LINA user."),""===a){t.next=97;break}return t.next=87,lt({idToken:a});case 87:if(!(N=t.sent)){t.next=95;break}return i("Entitlements Init: Created new token for LINA user"),t.next=92,x();case 92:return"article"===t.sent&&window.ConnextUtils.rerunConnextEntitlements(),t.abrupt("return",dt(N));case 95:t.next=98;break;case 97:i("LINA check, no idToken.");case 98:return t.abrupt("return",dt(l));case 99:t.next=104;break;case 101:t.prev=101,t.t4=t.catch(76),i("LINA check error: ",t.t4);case 104:if(t.prev=104,"string"!=typeof a||""===a){t.next=114;break}return t.next=108,lt({idToken:a});case 108:if(!(l=t.sent)){t.next=112;break}return i("Entitlements Init: Created new token"),t.abrupt("return",dt(l));case 112:t.next=115;break;case 114:i("No OIDC ID Token. Not creating a new entitlements token.");case 115:t.next=120;break;case 117:t.prev=117,t.t5=t.catch(104),i("Unable to create token during initialize: ",t.t5);case 120:return t.abrupt("return",dt(!1));case 121:case"end":return t.stop()}}),t,null,[[16,30],[34,43],[46,56],[64,73],[76,101],[104,117]])})))).apply(this,arguments)}};var vt;function St(){St=function(){return n};var e,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),c=new G(r||[]);return i(a,"_invoke",{value:L(t,n,c)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var d="suspendedStart",p="suspendedYield",E="executing",A="completed",N={};function v(){}function S(){}function O(){}var T={};l(T,c,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(x([])));y&&y!==r&&o.call(y,c)&&(T=y);var w=O.prototype=v.prototype=Object.create(T);function g(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function I(e,n){function r(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,s)}),(function(t){r("throw",t,c,s)})):n.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function L(t,n,r){var o=d;return function(i,a){if(o===E)throw new Error("Generator is already running");if(o===A){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=R(c,r);if(s){if(s===N)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=E;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?A:p,u.arg===N)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=A,r.method="throw",r.arg=u.arg)}}}function R(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),N;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,N;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,N):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,N)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function x(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function t(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),N}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;b(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:x(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),N}},n}!function(){(vt=vt||r(St().mark((function t(){return St().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Nt.init();case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}()})()})(); //# sourceMappingURL=mng-digisubs.entitlements.bundle.js.map; /*! For license information please see mng-digisubs.uiHandler.bundle.js.LICENSE.txt */ (()=>{var e={1928:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},2012:(e,t,n)=>{"use strict";var r=n(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},2505:(e,t,n)=>{e.exports=n(8015)},2881:(e,t,n)=>{"use strict";var r=n(9516),o=n(6987);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},3191:(e,t,n)=>{"use strict";var r=n(1928);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t{"use strict";var r=n(9516);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},3864:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},3948:(e,t,n)=>{"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var c=[];c.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4202:(e,t,n)=>{"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4490:(e,t,n)=>{"use strict";var r=n(9516),o=n(2881),i=n(3864),a=n(6987),c=n(1928);function s(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new c("canceled")}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4680:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4841:(e,t,n)=>{"use strict";var r=n(9641).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var c=e[i],s=void 0===c||a(c,i,e);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},5019:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},5155:(e,t,n)=>{"use strict";var r=n(9516),o=n(9106),i=n(3471),a=n(4490),c=n(5343),s=n(4841),u=s.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var d=e;n.length;){var f=n.shift(),h=n.shift();try{d=f(d)}catch(e){h(e);break}}try{o=a(d)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=c(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(c(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(c(r||{},{method:e,url:t,data:n}))}})),e.exports=l},5343:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function c(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function s(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:s};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==s||(n[e]=o)})),n}},5449:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},5592:(e,t,n)=>{"use strict";var r=n(9516),o=n(7522),i=n(3948),a=n(9106),c=n(9615),s=n(2012),u=n(4202),l=n(7763),d=n(6987),f=n(1928);e.exports=function(e){return new Promise((function(t,n){var h,p=e.data,m=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(p)&&delete m["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+E)}var A=c(e.baseURL,e.url);function L(){if(v){var r="getAllResponseHeaders"in v?s(v.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v};o((function(e){t(e),y()}),(function(e){n(e),y()}),i),v=null}}if(v.open(e.method.toUpperCase(),a(A,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=L:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(L)},v.onabort=function(){v&&(n(l("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(l("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||u(A))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in v&&r.forEach(m,(function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete m[t]:v.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),g&&"json"!==g&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){v&&(n(!e||e&&e.type?new f("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),p||(p=null),v.send(p)}))}},6987:(e,t,n)=>{"use strict";var r=n(9516),o=n(7018),i=n(5449),a={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(5592)),s),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u},7018:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},7522:(e,t,n)=>{"use strict";var r=n(7763);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},7763:(e,t,n)=>{"use strict";var r=n(5449);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},7980:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},8015:(e,t,n)=>{"use strict";var r=n(9516),o=n(9012),i=n(5155),a=n(5343);var c=function e(t){var n=new i(t),c=o(i.prototype.request,n);return r.extend(c,i.prototype,n),r.extend(c,n),c.create=function(n){return e(a(t,n))},c}(n(6987));c.Axios=i,c.Cancel=n(1928),c.CancelToken=n(3191),c.isCancel=n(3864),c.VERSION=n(9641).version,c.all=function(e){return Promise.all(e)},c.spread=n(7980),c.isAxiosError=n(5019),e.exports=c,e.exports.default=c},8805:(e,t,n)=>{"use strict";n.d(t,{A:()=>r}),window.authentication_config.sessionManagementEnabled="1"===window.authentication_config.sessionManagement;const r={debug:!!window.authentication_config.debug,sessionServer:window.authentication_config?window.authentication_config.sessionServer:"",entitlementsEnabled:!!window.authentication_config&&"1"===window.authentication_config.entitlementsEnabled,dropdownEnabled:!!window.authentication_config&&"1"===window.authentication_config.dropdownEnabled,enableReaderDashboardLink:!!window.authentication_config&&"1"===window.authentication_config.enableReaderDashboardLink,oneTapEnabled:!!window.authentication_config&&"1"===window.authentication_config.oneTapEnabled,useTribMainGoogle:!!window.authentication_config&&"1"===window.authentication_config.useTribMainGoogle,isAdfreeArticle:!!window.authentication_config&&"1"===window.authentication_config.isAdfreeArticle,auth0Domain:window.authentication_config?window.authentication_config.auth0Domain:"",auth0ClientId:window.authentication_config?window.authentication_config.auth0ClientId:"",entitlementsEndpoint:window.authentication_config?window.authentication_config.entitlementsEndpoint:"",entitlementsApiKey:window.authentication_config?window.authentication_config.entitlementsAPIKey:"",linaCheckOnArticles:!!window.authentication_config&&window.authentication_config.linaCheckOnArticles,serverEntitlements:!!window.authentication_config&&window.authentication_config.serverEntitlements,googleClientId:window.authentication_config?window.authentication_config.googleClientId:"",newsletterId:window.authentication_config?window.authentication_config.newsletterId:0,connextStorageKey:"",auth0SubKey:"auth0_sub",auth0Authenticated:"auth0.is.authenticated",secret:window.authentication_config?window.authentication_config.pluginSecret:"",newslettersEnabled:!!window.authentication_config&&"1"===window.authentication_config.newslettersEnabled,bcLowaSegements:!!window.authentication_config.bcLowaSegements&&"1"===window.authentication_config.bcLowaSegements,blueconicEnabled:!!window.authentication_config.blueconicEnabled&&"1"===window.authentication_config.blueconicEnabled,datadogEnabled:!!window.authentication_config.enableDatadog&&"1"===window.authentication_config.enableDatadog}},9012:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(9516);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var c=e.indexOf("#");-1!==c&&(e=e.slice(0,c)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},9137:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},9516:(e,t,n)=>{"use strict";var r=n(9012),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function c(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n{"use strict";var r=n(9137),o=n(4680);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},9641:e=>{e.exports={version:"0.24.0"}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function r(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function c(e){t(a,o,i,c,s,"next",e)}function s(e){t(a,o,i,c,s,"throw",e)}c(void 0)}))}}var o=n(8805);const i=function(){if(o.A.debug){for(var e,t=arguments.length,n=new Array(t),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function d(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(l(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return l(t)}}function f(e){this.message=e}f.prototype=new Error,f.prototype.name="InvalidTokenError";const h=function(e,t){if("string"!=typeof e)throw new f("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(d(e.split(".")[n]))}catch(e){throw new f("Invalid token specified: "+e.message)}};var p=n(2505),m=n.n(p);const g={AUTH0_SUB_COOKIE_KEY:"auth0_sub",ENTITLEMENT_COOKIE_KEY:"mng-entitlements",LOCAL_STORAGE_SESSION_KEY:"__MNG_Session",REGWALL_USER_IS_SUBSCRIBED:"regwallUserIsSubscribed",USER_IS_LOWA:"entitled",SLO_FLAG:"slo_flag",AB_TESTING_COOKIE:"_matheriSegs",CONNEXT_SILENT_TIMEOUT:10,ARTICLES_REMAINING_KEY:"articlesRemaining",USER_PROFILE_HASH:"user-profile"};var y,v,w,E,A,L,S;function b(){b=function(){return n};var t,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(t){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),c=new k(r||[]);return i(a,"_invoke",{value:T(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var h="suspendedStart",p="suspendedYield",m="executing",g="completed",y={};function v(){}function w(){}function E(){}var A={};l(A,c,(function(){return this}));var L=Object.getPrototypeOf,S=L&&L(L(P([])));S&&S!==r&&o.call(S,c)&&(A=S);var N=E.prototype=v.prototype=Object.create(A);function O(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function I(t,n){function r(i,a,c,s){var u=f(t[i],t,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==e(d)&&o.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,c,s)}),(function(e){r("throw",e,c,s)})):n.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return r("throw",e,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return a=a?a.then(o,o):o()}})}function T(e,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=x(c,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?g:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function x(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function e(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;R(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}var N=function(){var e=window.location.href;return new URL(e)},O=function(e){for(var t="".concat(e,"="),n=decodeURIComponent(document.cookie).split(";"),r=0;r0&&void 0!==arguments[0]&&arguments[0],t=N().hostname;e&&"string"==typeof e&&(t=e);var n=t.split(".");return"".concat(n[n.length-2],".").concat(n[n.length-1])},T=function(){var e=I();return".".concat(e)},x=function(e,t,n){var r="".concat(e,"=").concat(t,";");void 0!==n?(i("Setting cookie with options: ",n),Object.entries(n).forEach((function(e){var t=s(e,2),n=t[0],o=t[1];if("expires"===n){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),r+="expires=".concat(i.toUTCString(),";")}else r+="".concat(n,"=").concat(o,";")}))):r+="path=/;",document.cookie=r},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="".concat(e,"= ;expires= Thu, 01 Jan 1970 00:00:00 GMT;"),o=I(),i=[o,"www".concat(o),".www".concat(o)];n&&i.push(n),Object.entries(t).forEach((function(e){var t=s(e,2),n=t[0],o=t[1];r+="".concat(n,"=").concat(o,";")})),0===Object.keys(t).length&&(r+="path=/;"),document.cookie=r,i.forEach((function(e){document.cookie=r.concat("domain=",e,";")}))},R=function(){return N().host.replace("www.","").replace("develop.","").replace("preprod.","")},k=function(e){return h(e)},P=function(){var e=I();return["mcall.com","courant.com","sun-sentinel.com","orlandosentinel.com","growthspotter.com","dailypress.com","pilotonline.com","nydailynews.com","baltimoresun.com","capitalgazette.com","chicagotribune.com","trbdevcloud.com"].includes(e)},G=function(e){return(y=y||r(b().mark((function e(t){var n,r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=I().split(".")[0],e.prev=1,e.next=4,m()({method:"get",url:"".concat(o.A.entitlementsEndpoint,"apple/subscription-check/").concat(n),params:{access_token:t}});case 4:if(!(r=e.sent).data){e.next=8;break}return i("Apple Sub Check: Request successful: ",r.data),e.abrupt("return","subscribed"===r.data.status);case 8:return e.abrupt("return",!1);case 11:return e.prev=11,e.t0=e.catch(1),i("Apple Sub Check: Request Failure: ",e.t0),e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[1,11]])})))).apply(this,arguments)},_=function(e){return(v=v||r(b().mark((function e(t){var n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m()({method:"get",url:"".concat(o.A.entitlementsEndpoint,"auth0/users/").concat(encodeURIComponent(t)),headers:{"X-Api-Key":o.A.entitlementsApiKey}});case 2:return n=e.sent,e.abrupt("return",n.data.encryptedUuid);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)},B=function(){return"complete"===document.readyState},U=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(t){var n=!0;if(B())t();else{i("UIHandler: ","Waiting for the body to load...");var o=setInterval(r(b().mark((function r(){return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e&&(n=B()),document.querySelector("body")&&n&&(clearInterval(o),t(!0));case 2:case"end":return r.stop()}}),r)}))),200)}}))},M=function(e){return(w=w||r(b().mark((function e(t){var n,o;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){if(("interactive"===document.readyState||B())&&window.dataLayer)i("Utils digisubsDataLayerLoaded: ","Document is in interactive state, resolving."),e();else{i("Utils digisubsDataLayerLoaded: ","Waiting for the dataLayer to load...");var t=setInterval(r(b().mark((function n(){return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.dataLayer&&window.dataLayer.length>2&&(clearInterval(t),e(!0));case 1:case"end":return n.stop()}}),n)}))),50)}}));case 2:if(i("Utils getDataLayerObject: looking for this dataLayer object ",t),window.dataLayer=window.dataLayer||[],n="",i("Utils getDataLayerObject: here is dataLayer length ",window.dataLayer.length),o=function(e){return i("Utils dataLayerLoop: look for this element ",e),e[t]?(i("Utils dataLayerLoop: found ",e[t]),n=e[t],e[t]):(i("Utils dataLayerLoop: dataLayer search ",!1),!1)},!window.dataLayer.some(o)){e.next=10;break}return e.abrupt("return",n);case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)},D=function(){return(E=E||r(b().mark((function e(){var t,n,r=arguments;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:"Page Type",e.next=3,M(t);case 3:return n=e.sent,i("utils.js | pageType: page type is ",n),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)},H=function(){return new Promise((function(e){i("blueConicReady | Waiting for BC to be ready."),window.blueConicClient.event.subscribe(window.blueConicClient.event.onReady,{},(function(){i("blueConicReady | onReady fired, BC profile is ready."),e(!0)}));var t=setTimeout((function(){clearTimeout(t),i("blueConicReady | onReady timeout, BC onReady unknown."),e(!1)}),3e3)}))},F=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(t){i("blueConicLoaded | waitTillBCReady is ".concat(e));var n=setTimeout((function(){clearTimeout(n),i("blueConicLoaded | onBlueConicLoaded timeout, resolving false for load status."),t(!1)}),1e4);void 0!==window.blueConicClient&&void 0!==window.blueConicClient.event&&void 0!==window.blueConicClient.event.subscribe?(i("blueConicLoaded | BC object already loaded"),e?t(H()):(clearTimeout(n),t())):(i('blueConicLoaded | BC not loaded, waiting for "onBlueConicLoaded" event'),window.addEventListener("onBlueConicLoaded",r(b().mark((function r(){var o;return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i("blueConicLoaded | onBlueConicLoaded event fired."),!e){r.next=10;break}return i("blueConicLoaded | waiting for blueConicReady..."),r.next=5,H();case 5:o=r.sent,clearTimeout(n),t(o),r.next=12;break;case 10:clearTimeout(n),t();case 12:case"end":return r.stop()}}),r)}))),!1))}))},X=function(){return(A=A||r(b().mark((function e(){return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F(!0);case 2:if(!e.sent){e.next=10;break}return e.next=6,new Promise((function(e){i("blueConicProfileReady | Waiting for BC Profile to be ready."),window.blueConicClient&&(window.blueConicClient.getSegments||window.blueConicClient.profile)&&(i("blueConicProfileReady | BC getSegments is ready."),e(!0)),window.blueConicClient.event.subscribe(window.blueConicClient.event.onBeforeInteractions,{},(function(){i("blueConicProfileReady | onBeforeInteractions fired, BC profile is ready."),e(!0)}));var t=setTimeout((function(){clearTimeout(t),i("blueConicProfileReady | onBeforeInteractions timeout, BC profile readiness unknown"),e(!1)}),3e3)}));case 6:if(e.sent){e.next=9;break}return e.abrupt("return",!1);case 9:return e.abrupt("return",blueConicClient.profile.getProfile().getValue("Auth0_ID"));case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)},j=function(){return(L=L||r(b().mark((function e(){var t,n,r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=["MICH LOWA","OHIO LOWA","PENN LOWA","NY LOWA","BOSTON LOWA","NORCAL LOWA","TWIN CITIES LOWA","DENV/PMP LOWA","SCNG LOWA","BANG LOWA","AMC LOWA","HC LOWA","GS LOWA","ORL LOWA","SS LOWA","NNDP LOWA","VP LOWA","NYDN LOWA","BAL LOWA","CG LOWA","CHI LOWA"],e.next=3,F(!0);case 3:if(!e.sent){e.next=15;break}if(n=window.blueConicClient.getSegments(),i("bcLowaCheck | BC segments for users: ",n),!(n.filter((function(e){return t.includes(e.name)})).length>0)){e.next=15;break}return e.next=11,X();case 11:if(!(r=e.sent)){e.next=14;break}return e.abrupt("return",{isSub:!0,uuid:r});case 14:case 15:return e.abrupt("return",{isSub:!1});case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)},K=function(){return new Promise((function(e,t){void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.authenticationReady?(i("utils.js | Authentication already ready: ",window.MNGAuthentication.authenticationReady),e(window.MNGAuthentication.authenticationReady)):(i("utils.js | Adding authenticationReady listener..."),window.addEventListener("authenticationReady",(function(n){try{var r=n.detail||{};i("utils.js | Event: authentication ready: ",r),e(r)}catch(e){i(e),t(e)}}),!1))}))},Y=function(){return new Promise((function(e,t){if(o.A.entitlementsEnabled)if(void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.entitlementsReady)i("Entitlements already ready: ",window.MNGAuthentication.entitlementsReady),e(window.MNGAuthentication.entitlementsReady);else{var n;i("Adding entitlementsReady listener..."),window.addEventListener("entitlementsReady",(function(o){return(n=n||r(b().mark((function n(r){var o;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:try{o=r.detail||{},i("Utils.js | Event: entitlements ready: ",o),e(o)}catch(e){i(e),t(e)}case 1:case"end":return n.stop()}}),n)})))).apply(this,arguments)}),!1)}else e(!1)}))},W=function(){i("Clearing entitlements...");try{C(g.ENTITLEMENT_COOKIE_KEY,{path:"/"})}catch(e){i("Failed to delete legacy cookie: ",e)}try{C(g.ENTITLEMENT_COOKIE_KEY,{path:"/",domain:I(),expires:365,secure:!0})}catch(e){i("Failed to delete entitlements cookie: ",e)}try{window.localStorage.removeItem(g.LOCAL_STORAGE_SESSION_KEY)}catch(e){i("Failed to remove local storage: ",e)}},V=function(){C(g.AUTH0_SUB_COOKIE_KEY),localStorage.removeItem(g.USER_STORAGE_HASH),W()},J=function(){var e=N();return!["local","develop","preprod","trbdev"].some((function(t){return e.origin.includes(t)}))},q=function(e){i("Removing storageObject : ",e),void 0!==window.localStorage.getItem(e)&&(window.localStorage.removeItem(e),i("Storage Object removed : ",e))},Z=function(e){i("starting simpleEmailValidation");var t=new RegExp(/^(([^<>()[\]\\.,;:\s@']+(\.[^<>()[\]\\.,;:\s@']+)*)|('.+'))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i);if(!e)return{valid:!1,message:"Please enter an email."};if(!t.test(e))return{valid:!1,message:"Please enter a valid email."};var n=e.match(/\.([^.\n\s]*)$/)[1].toUpperCase(),r=["AAA","AARP","ABARTH","ABB","ABBOTT","ABBVIE","ABC","ABLE","ABOGADO","ABUDHABI","AC","ACADEMY","ACCENTURE","ACCOUNTANT","ACCOUNTANTS","ACO","ACTOR","AD","ADS","ADULT","AE","AEG","AERO","AETNA","AF","AFL","AFRICA","AG","AGAKHAN","AGENCY","AI","AIG","AIRBUS","AIRFORCE","AIRTEL","AKDN","AL","ALFAROMEO","ALIBABA","ALIPAY","ALLFINANZ","ALLSTATE","ALLY","ALSACE","ALSTOM","AM","AMAZON","AMERICANEXPRESS","AMERICANFAMILY","AMEX","AMFAM","AMICA","AMSTERDAM","ANALYTICS","ANDROID","ANQUAN","ANZ","AO","AOL","APARTMENTS","APP","APPLE","AQ","AQUARELLE","AR","ARAB","ARAMCO","ARCHI","ARMY","ARPA","ART","ARTE","AS","ASDA","ASIA","ASSOCIATES","AT","ATHLETA","ATTORNEY","AU","AUCTION","AUDI","AUDIBLE","AUDIO","AUSPOST","AUTHOR","AUTO","AUTOS","AVIANCA","AW","AWS","AX","AXA","AZ","AZURE","BA","BABY","BAIDU","BANAMEX","BANANAREPUBLIC","BAND","BANK","BAR","BARCELONA","BARCLAYCARD","BARCLAYS","BAREFOOT","BARGAINS","BASEBALL","BASKETBALL","BAUHAUS","BAYERN","BB","BBC","BBT","BBVA","BCG","BCN","BD","BE","BEATS","BEAUTY","BEER","BENTLEY","BERLIN","BEST","BESTBUY","BET","BF","BG","BH","BHARTI","BI","BIBLE","BID","BIKE","BING","BINGO","BIO","BIZ","BJ","BLACK","BLACKFRIDAY","BLOCKBUSTER","BLOG","BLOOMBERG","BLUE","BM","BMS","BMW","BN","BNPPARIBAS","BO","BOATS","BOEHRINGER","BOFA","BOM","BOND","BOO","BOOK","BOOKING","BOSCH","BOSTIK","BOSTON","BOT","BOUTIQUE","BOX","BR","BRADESCO","BRIDGESTONE","BROADWAY","BROKER","BROTHER","BRUSSELS","BS","BT","BUILD","BUILDERS","BUSINESS","BUY","BUZZ","BV","BW","BY","BZ","BZH","CA","CAB","CAFE","CAL","CALL","CALVINKLEIN","CAM","CAMERA","CAMP","CANON","CAPETOWN","CAPITAL","CAPITALONE","CAR","CARAVAN","CARDS","CARE","CAREER","CAREERS","CARS","CASA","CASE","CASH","CASINO","CAT","CATERING","CATHOLIC","CBA","CBN","CBRE","CBS","CC","CD","CENTER","CEO","CERN","CF","CFA","CFD","CG","CH","CHANEL","CHANNEL","CHARITY","CHASE","CHAT","CHEAP","CHINTAI","CHRISTMAS","CHROME","CHURCH","CI","CIPRIANI","CIRCLE","CISCO","CITADEL","CITI","CITIC","CITY","CITYEATS","CK","CL","CLAIMS","CLEANING","CLICK","CLINIC","CLINIQUE","CLOTHING","CLOUD","CLUB","CLUBMED","CM","CN","CO","COACH","CODES","COFFEE","COLLEGE","COLOGNE","COM","COMCAST","COMMBANK","COMMUNITY","COMPANY","COMPARE","COMPUTER","COMSEC","CONDOS","CONSTRUCTION","CONSULTING","CONTACT","CONTRACTORS","COOKING","COOKINGCHANNEL","COOL","COOP","CORSICA","COUNTRY","COUPON","COUPONS","COURSES","CPA","CR","CREDIT","CREDITCARD","CREDITUNION","CRICKET","CROWN","CRS","CRUISE","CRUISES","CU","CUISINELLA","CV","CW","CX","CY","CYMRU","CYOU","CZ","DABUR","DAD","DANCE","DATA","DATE","DATING","DATSUN","DAY","DCLK","DDS","DE","DEAL","DEALER","DEALS","DEGREE","DELIVERY","DELL","DELOITTE","DELTA","DEMOCRAT","DENTAL","DENTIST","DESI","DESIGN","DEV","DHL","DIAMONDS","DIET","DIGITAL","DIRECT","DIRECTORY","DISCOUNT","DISCOVER","DISH","DIY","DJ","DK","DM","DNP","DO","DOCS","DOCTOR","DOG","DOMAINS","DOT","DOWNLOAD","DRIVE","DTV","DUBAI","DUNLOP","DUPONT","DURBAN","DVAG","DVR","DZ","EARTH","EAT","EC","ECO","EDEKA","EDU","EDUCATION","EE","EG","EMAIL","EMERCK","ENERGY","ENGINEER","ENGINEERING","ENTERPRISES","EPSON","EQUIPMENT","ER","ERICSSON","ERNI","ES","ESQ","ESTATE","ET","ETISALAT","EU","EUROVISION","EUS","EVENTS","EXCHANGE","EXPERT","EXPOSED","EXPRESS","EXTRASPACE","FAGE","FAIL","FAIRWINDS","FAITH","FAMILY","FAN","FANS","FARM","FARMERS","FASHION","FAST","FEDEX","FEEDBACK","FERRARI","FERRERO","FI","FIAT","FIDELITY","FIDO","FILM","FINAL","FINANCE","FINANCIAL","FIRE","FIRESTONE","FIRMDALE","FISH","FISHING","FIT","FITNESS","FJ","FK","FLICKR","FLIGHTS","FLIR","FLORIST","FLOWERS","FLY","FM","FO","FOO","FOOD","FOODNETWORK","FOOTBALL","FORD","FOREX","FORSALE","FORUM","FOUNDATION","FOX","FR","FREE","FRESENIUS","FRL","FROGANS","FRONTDOOR","FRONTIER","FTR","FUJITSU","FUN","FUND","FURNITURE","FUTBOL","FYI","GA","GAL","GALLERY","GALLO","GALLUP","GAME","GAMES","GAP","GARDEN","GAY","GB","GBIZ","GD","GDN","GE","GEA","GENT","GENTING","GEORGE","GF","GG","GGEE","GH","GI","GIFT","GIFTS","GIVES","GIVING","GL","GLASS","GLE","GLOBAL","GLOBO","GM","GMAIL","GMBH","GMO","GMX","GN","GODADDY","GOLD","GOLDPOINT","GOLF","GOO","GOODYEAR","GOOG","GOOGLE","GOP","GOT","GOV","GP","GQ","GR","GRAINGER","GRAPHICS","GRATIS","GREEN","GRIPE","GROCERY","GROUP","GS","GT","GU","GUARDIAN","GUCCI","GUGE","GUIDE","GUITARS","GURU","GW","GY","HAIR","HAMBURG","HANGOUT","HAUS","HBO","HDFC","HDFCBANK","HEALTH","HEALTHCARE","HELP","HELSINKI","HERE","HERMES","HGTV","HIPHOP","HISAMITSU","HITACHI","HIV","HK","HKT","HM","HN","HOCKEY","HOLDINGS","HOLIDAY","HOMEDEPOT","HOMEGOODS","HOMES","HOMESENSE","HONDA","HORSE","HOSPITAL","HOST","HOSTING","HOT","HOTELES","HOTELS","HOTMAIL","HOUSE","HOW","HR","HSBC","HT","HU","HUGHES","HYATT","HYUNDAI","IBM","ICBC","ICE","ICU","ID","IE","IEEE","IFM","IKANO","IL","IM","IMAMAT","IMDB","IMMO","IMMOBILIEN","IN","INC","INDUSTRIES","INFINITI","INFO","ING","INK","INSTITUTE","INSURANCE","INSURE","INT","INTERNATIONAL","INTUIT","INVESTMENTS","IO","IPIRANGA","IQ","IR","IRISH","IS","ISMAILI","IST","ISTANBUL","IT","ITAU","ITV","JAGUAR","JAVA","JCB","JE","JEEP","JETZT","JEWELRY","JIO","JLL","JM","JMP","JNJ","JO","JOBS","JOBURG","JOT","JOY","JP","JPMORGAN","JPRS","JUEGOS","JUNIPER","KAUFEN","KDDI","KE","KERRYHOTELS","KERRYLOGISTICS","KERRYPROPERTIES","KFH","KG","KH","KI","KIA","KIDS","KIM","KINDER","KINDLE","KITCHEN","KIWI","KM","KN","KOELN","KOMATSU","KOSHER","KP","KPMG","KPN","KR","KRD","KRED","KUOKGROUP","KW","KY","KYOTO","KZ","LA","LACAIXA","LAMBORGHINI","LAMER","LANCASTER","LANCIA","LAND","LANDROVER","LANXESS","LASALLE","LAT","LATINO","LATROBE","LAW","LAWYER","LB","LC","LDS","LEASE","LECLERC","LEFRAK","LEGAL","LEGO","LEXUS","LGBT","LI","LIDL","LIFE","LIFEINSURANCE","LIFESTYLE","LIGHTING","LIKE","LILLY","LIMITED","LIMO","LINCOLN","LINDE","LINK","LIPSY","LIVE","LIVING","LK","LLC","LLP","LOAN","LOANS","LOCKER","LOCUS","LOFT","LOL","LONDON","LOTTE","LOTTO","LOVE","LPL","LPLFINANCIAL","LR","LS","LT","LTD","LTDA","LU","LUNDBECK","LUXE","LUXURY","LV","LY","MA","MACYS","MADRID","MAIF","MAISON","MAKEUP","MAN","MANAGEMENT","MANGO","MAP","MARKET","MARKETING","MARKETS","MARRIOTT","MARSHALLS","MASERATI","MATTEL","MBA","MC","MCKINSEY","MD","ME","MED","MEDIA","MEET","MELBOURNE","MEME","MEMORIAL","MEN","MENU","MERCKMSD","MG","MH","MIAMI","MICROSOFT","MIL","MINI","MINT","MIT","MITSUBISHI","MK","ML","MLB","MLS","MM","MMA","MN","MO","MOBI","MOBILE","MODA","MOE","MOI","MOM","MONASH","MONEY","MONSTER","MORMON","MORTGAGE","MOSCOW","MOTO","MOTORCYCLES","MOV","MOVIE","MP","MQ","MR","MS","MSD","MT","MTN","MTR","MU","MUSEUM","MUSIC","MUTUAL","MV","MW","MX","MY","MZ","NA","NAB","NAGOYA","NAME","NATURA","NAVY","NBA","NC","NE","NEC","NET","NETBANK","NETFLIX","NETWORK","NEUSTAR","NEW","NEWS","NEXT","NEXTDIRECT","NEXUS","NF","NFL","NG","NGO","NHK","NI","NICO","NIKE","NIKON","NINJA","NISSAN","NISSAY","NL","NO","NOKIA","NORTHWESTERNMUTUAL","NORTON","NOW","NOWRUZ","NOWTV","NP","NR","NRA","NRW","NTT","NU","NYC","NZ","OBI","OBSERVER","OFFICE","OKINAWA","OLAYAN","OLAYANGROUP","OLDNAVY","OLLO","OM","OMEGA","ONE","ONG","ONL","ONLINE","OOO","OPEN","ORACLE","ORANGE","ORG","ORGANIC","ORIGINS","OSAKA","OTSUKA","OTT","OVH","PA","PAGE","PANASONIC","PARIS","PARS","PARTNERS","PARTS","PARTY","PASSAGENS","PAY","PCCW","PE","PET","PF","PFIZER","PG","PH","PHARMACY","PHD","PHILIPS","PHONE","PHOTO","PHOTOGRAPHY","PHOTOS","PHYSIO","PICS","PICTET","PICTURES","PID","PIN","PING","PINK","PIONEER","PIZZA","PK","PL","PLACE","PLAY","PLAYSTATION","PLUMBING","PLUS","PM","PN","PNC","POHL","POKER","POLITIE","PORN","POST","PR","PRAMERICA","PRAXI","PRESS","PRIME","PRO","PROD","PRODUCTIONS","PROF","PROGRESSIVE","PROMO","PROPERTIES","PROPERTY","PROTECTION","PRU","PRUDENTIAL","PS","PT","PUB","PW","PWC","PY","QA","QPON","QUEBEC","QUEST","RACING","RADIO","RE","READ","REALESTATE","REALTOR","REALTY","RECIPES","RED","REDSTONE","REDUMBRELLA","REHAB","REISE","REISEN","REIT","RELIANCE","REN","RENT","RENTALS","REPAIR","REPORT","REPUBLICAN","REST","RESTAURANT","REVIEW","REVIEWS","REXROTH","RICH","RICHARDLI","RICOH","RIL","RIO","RIP","RO","ROCHER","ROCKS","RODEO","ROGERS","ROOM","RS","RSVP","RU","RUGBY","RUHR","RUN","RW","RWE","RYUKYU","SA","SAARLAND","SAFE","SAFETY","SAKURA","SALE","SALON","SAMSCLUB","SAMSUNG","SANDVIK","SANDVIKCOROMANT","SANOFI","SAP","SARL","SAS","SAVE","SAXO","SB","SBI","SBS","SC","SCA","SCB","SCHAEFFLER","SCHMIDT","SCHOLARSHIPS","SCHOOL","SCHULE","SCHWARZ","SCIENCE","SCOT","SD","SE","SEARCH","SEAT","SECURE","SECURITY","SEEK","SELECT","SENER","SERVICES","SES","SEVEN","SEW","SEX","SEXY","SFR","SG","SH","SHANGRILA","SHARP","SHAW","SHELL","SHIA","SHIKSHA","SHOES","SHOP","SHOPPING","SHOUJI","SHOW","SHOWTIME","SI","SILK","SINA","SINGLES","SITE","SJ","SK","SKI","SKIN","SKY","SKYPE","SL","SLING","SM","SMART","SMILE","SN","SNCF","SO","SOCCER","SOCIAL","SOFTBANK","SOFTWARE","SOHU","SOLAR","SOLUTIONS","SONG","SONY","SOY","SPA","SPACE","SPORT","SPOT","SR","SRL","SS","ST","STADA","STAPLES","STAR","STATEBANK","STATEFARM","STC","STCGROUP","STOCKHOLM","STORAGE","STORE","STREAM","STUDIO","STUDY","STYLE","SU","SUCKS","SUPPLIES","SUPPLY","SUPPORT","SURF","SURGERY","SUZUKI","SV","SWATCH","SWISS","SX","SY","SYDNEY","SYSTEMS","SZ","TAB","TAIPEI","TALK","TAOBAO","TARGET","TATAMOTORS","TATAR","TATTOO","TAX","TAXI","TC","TCI","TD","TDK","TEAM","TECH","TECHNOLOGY","TEL","TEMASEK","TENNIS","TEVA","TF","TG","TH","THD","THEATER","THEATRE","TIAA","TICKETS","TIENDA","TIFFANY","TIPS","TIRES","TIROL","TJ","TJMAXX","TJX","TK","TKMAXX","TL","TM","TMALL","TN","TO","TODAY","TOKYO","TOOLS","TOP","TORAY","TOSHIBA","TOTAL","TOURS","TOWN","TOYOTA","TOYS","TR","TRADE","TRADING","TRAINING","TRAVEL","TRAVELCHANNEL","TRAVELERS","TRAVELERSINSURANCE","TRUST","TRV","TT","TUBE","TUI","TUNES","TUSHU","TV","TVS","TW","TZ","UA","UBANK","UBS","UG","UK","UNICOM","UNIVERSITY","UNO","UOL","UPS","US","UY","UZ","VA","VACATIONS","VANA","VANGUARD","VC","VE","VEGAS","VENTURES","VERISIGN","VERSICHERUNG","VET","VG","VI","VIAJES","VIDEO","VIG","VIKING","VILLAS","VIN","VIP","VIRGIN","VISA","VISION","VIVA","VIVO","VLAANDEREN","VN","VODKA","VOLKSWAGEN","VOLVO","VOTE","VOTING","VOTO","VOYAGE","VU","VUELOS","WALES","WALMART","WALTER","WANG","WANGGOU","WATCH","WATCHES","WEATHER","WEATHERCHANNEL","WEBCAM","WEBER","WEBSITE","WED","WEDDING","WEIBO","WEIR","WF","WHOSWHO","WIEN","WIKI","WILLIAMHILL","WIN","WINDOWS","WINE","WINNERS","WME","WOLTERSKLUWER","WOODSIDE","WORK","WORKS","WORLD","WOW","WS","WTC","WTF","XBOX","XEROX","XFINITY","XIHUAN","XIN","XN--11B4C3D","XN--1CK2E1B","XN--1QQW23A","XN--2SCRJ9C","XN--30RR7Y","XN--3BST00M","XN--3DS443G","XN--3E0B707E","XN--3HCRJ9C","XN--3PXU8K","XN--42C2D9A","XN--45BR5CYL","XN--45BRJ9C","XN--45Q11C","XN--4DBRK0CE","XN--4GBRIM","XN--54B7FTA0CC","XN--55QW42G","XN--55QX5D","XN--5SU34J936BGSG","XN--5TZM5G","XN--6FRZ82G","XN--6QQ986B3XL","XN--80ADXHKS","XN--80AO21A","XN--80AQECDR1A","XN--80ASEHDB","XN--80ASWG","XN--8Y0A063A","XN--90A3AC","XN--90AE","XN--90AIS","XN--9DBQ2A","XN--9ET52U","XN--9KRT00A","XN--B4W605FERD","XN--BCK1B9A5DRE4C","XN--C1AVG","XN--C2BR7G","XN--CCK2B3B","XN--CCKWCXETD","XN--CG4BKI","XN--CLCHC0EA0B2G2A9GCD","XN--CZR694B","XN--CZRS0T","XN--CZRU2D","XN--D1ACJ3B","XN--D1ALF","XN--E1A4C","XN--ECKVDTC9D","XN--EFVY88H","XN--FCT429K","XN--FHBEI","XN--FIQ228C5HS","XN--FIQ64B","XN--FIQS8S","XN--FIQZ9S","XN--FJQ720A","XN--FLW351E","XN--FPCRJ9C3D","XN--FZC2C9E2C","XN--FZYS8D69UVGM","XN--G2XX48C","XN--GCKR3F0F","XN--GECRJ9C","XN--GK3AT1E","XN--H2BREG3EVE","XN--H2BRJ9C","XN--H2BRJ9C8C","XN--HXT814E","XN--I1B6B1A6A2E","XN--IMR513N","XN--IO0A7I","XN--J1AEF","XN--J1AMH","XN--J6W193G","XN--JLQ480N2RG","XN--JVR189M","XN--KCRX77D1X4A","XN--KPRW13D","XN--KPRY57D","XN--KPUT3I","XN--L1ACC","XN--LGBBAT1AD8J","XN--MGB9AWBF","XN--MGBA3A3EJT","XN--MGBA3A4F16A","XN--MGBA7C0BBN0A","XN--MGBAAKC7DVF","XN--MGBAAM7A8H","XN--MGBAB2BD","XN--MGBAH1A3HJKRD","XN--MGBAI9AZGQP6J","XN--MGBAYH7GPA","XN--MGBBH1A","XN--MGBBH1A71E","XN--MGBC0A9AZCG","XN--MGBCA7DZDO","XN--MGBCPQ6GPA1A","XN--MGBERP4A5D4AR","XN--MGBGU82A","XN--MGBI4ECEXP","XN--MGBPL2FH","XN--MGBT3DHD","XN--MGBTX2B","XN--MGBX4CD0AB","XN--MIX891F","XN--MK1BU44C","XN--MXTQ1M","XN--NGBC5AZD","XN--NGBE9E0A","XN--NGBRX","XN--NODE","XN--NQV7F","XN--NQV7FS00EMA","XN--NYQY26A","XN--O3CW4H","XN--OGBPF8FL","XN--OTU796D","XN--P1ACF","XN--P1AI","XN--PGBS0DH","XN--PSSY2U","XN--Q7CE6A","XN--Q9JYB4C","XN--QCKA1PMC","XN--QXA6A","XN--QXAM","XN--RHQV96G","XN--ROVU88B","XN--RVC1E0AM3E","XN--S9BRJ9C","XN--SES554G","XN--T60B56A","XN--TCKWE","XN--TIQ49XQYJ","XN--UNUP4Y","XN--VERMGENSBERATER-CTB","XN--VERMGENSBERATUNG-PWB","XN--VHQUV","XN--VUQ861B","XN--W4R85EL8FHU5DNRA","XN--W4RS40L","XN--WGBH1C","XN--WGBL6A","XN--XHQ521B","XN--XKC2AL3HYE2A","XN--XKC2DL3A5EE0H","XN--Y9A3AQ","XN--YFRO4I67O","XN--YGBI2AMMX","XN--ZFR164B","XXX","XYZ","YACHTS","YAHOO","YAMAXUN","YANDEX","YE","YODOBASHI","YOGA","YOKOHAMA","YOU","YOUTUBE","YT","YUN","ZA","ZAPPOS","ZARA","ZERO","ZIP","ZM","ZONE","ZUERICH","ZW"].includes(n);return i("simpleEmailValidation: ","TLD search ".concat(r)),!1===r?{valid:!1,message:"Please enter a valid email domain."}:-1===["zzz.pl"].findIndex((function(t){return t===e.split("@")[1]}))?{valid:!0,message:"Valid"}:{valid:!1,message:"Please enter a valid email."}};window.simpleEmailValidation=Z;var Q;window.validatePhoneNumber=function(e){return/^[0-9]([0-9 -])*[0-9]$/.test(e)};var z=function(){return(S=S||r(b().mark((function e(){var t,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Q){e.next=2;break}return e.abrupt("return",Q);case 2:return t=o.A.auth0Domain,n=o.A.auth0ClientId,e.next=5,createAuth0Client({domain:t,client_id:n,useRefreshTokens:!0,cacheLocation:"localstorage",audience:"access-extension"});case 5:return Q=e.sent,e.abrupt("return",Q);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)},ee=function(e){i("utils.js | auth event dispathed");var t=new CustomEvent("authenticationReady",{detail:e});window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.authenticationReady=e,i("Utils.js | Dispatching authenticationReady Event: ",t),window.dispatchEvent(t),i("Utils.js | Dispatched authenticationReady event!")},te=function(e){return new Promise((function(t){document.querySelector(e)&&t(document.querySelector(e));var n=new MutationObserver((function(){return document.querySelector(e)&&(t(document.querySelector(e)),n.disconnect()),!0}));n.observe(document.body,{childList:!0,subtree:!0})}))},ne=function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},re=function(){var e=window.localStorage.getItem("__MNG_Session");if(e){var t=JSON.parse(e);if(t.idToken){var n=k(t.idToken);if(n.home_paper)return i("Util.js | home paper: Home paper is ",n.home_paper),n.home_paper.replace("www.","").replace("develop.","").replace("preprod.","")}}return i("Util.js | home paper: Home paper is not set ",R()),R()},oe=function(e){o.A.datadogEnabled&&window.DD_RUM.addTiming(e)};var ie,ae="#primary-menu",ce="#pushnav",se=".log-in-button",ue=".subscribe-visibility",le=".log-out-button",de="dfm-digisubs-menu",fe="dfm-digisubs-push-menu",he="mega-subscribe-button",pe=function(){return document.querySelector(ae)},me=function(){return document.querySelector(ce)},ge=function(){return document.getElementById(de)},ye=function(){return document.getElementById(fe)},ve=function(){return ge()?ge().querySelector(se):null},we=function(){return ve()?ve().querySelector("a"):null},Ee=function(){return ye()?ye().querySelector(se):null},Ae=function(){return me()?me().querySelector(se):null},Le=function(){return document.querySelectorAll(ue)};function Se(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(){be=function(){return n};var t,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(t){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),c=new R(r||[]);return i(a,"_invoke",{value:I(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var h="suspendedStart",p="suspendedYield",m="executing",g="completed",y={};function v(){}function w(){}function E(){}var A={};l(A,c,(function(){return this}));var L=Object.getPrototypeOf,S=L&&L(L(k([])));S&&S!==r&&o.call(S,c)&&(A=S);var b=E.prototype=v.prototype=Object.create(A);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(t,n){function r(i,a,c,s){var u=f(t[i],t,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==e(d)&&o.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,c,s)}),(function(e){r("throw",e,c,s)})):n.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return r("throw",e,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return a=a?a.then(o,o):o()}})}function I(e,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=T(c,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?g:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function k(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function e(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}var Ne=function(){return(ie=ie||r(be().mark((function e(){return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F();case 2:return e.next=4,K();case 4:return e.abrupt("return",new Promise((function(e){i("ANALYTICS: inside BCregwall events");var t=N();t.searchParams.delete("regwall");var n=blueConicClient.profile.getProfile();localStorage.setItem("regwallSuccess","yes"),localStorage.setItem("regwallEvent","yes"),n.setValue("bang_reg_wall_status","Y"),n.setValue("regwall_newspaper",t.host),n.setValue("regwall_success_date",new Date),n.setValue("regwall_success","yes"),blueConicClient.profile.updateProfile(),e(!0)})));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)},Oe=function(e){try{window.dataLayer.push({event:e}),i("ANALYTICS: ".concat(e," event")),i("ANALYTICS: GA/ datalayer ",window.dataLayer)}catch(t){i("ANALYTICS: Failed to send ".concat(e," event: "),t)}};var Ie,Te,xe,Ce,Re,ke;function Pe(){Pe=function(){return n};var t,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(t){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),c=new R(r||[]);return i(a,"_invoke",{value:I(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var h="suspendedStart",p="suspendedYield",m="executing",g="completed",y={};function v(){}function w(){}function E(){}var A={};l(A,c,(function(){return this}));var L=Object.getPrototypeOf,S=L&&L(L(k([])));S&&S!==r&&o.call(S,c)&&(A=S);var b=E.prototype=v.prototype=Object.create(A);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(t,n){function r(i,a,c,s){var u=f(t[i],t,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==e(d)&&o.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,c,s)}),(function(e){r("throw",e,c,s)})):n.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return r("throw",e,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return a=a?a.then(o,o):o()}})}function I(e,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=T(c,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?g:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function k(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function e(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}var Ge,_e,Be,Ue,Me,De,He,Fe=function(){try{var e=localStorage.getItem(g.LOCAL_STORAGE_SESSION_KEY);return"string"==typeof e?e:"{}"}catch(e){i("Unable to get session from local storage: ",e)}return"{}"},Xe=function(e){try{i("Setting local storage session",e),localStorage.setItem(g.LOCAL_STORAGE_SESSION_KEY,e)}catch(e){i("Unable to save session from local storage: ",e)}},je=function(e){try{x(g.ENTITLEMENT_COOKIE_KEY,e,{path:"/",domain:T(),expires:365,secure:!0})}catch(e){i("Unable to save session to cookie storage: ",e)}},Ke=function(){return(Ie=Ie||r(Pe().mark((function e(){var t,n,r,a,c,s,u,l,d,f,h,p,g,y,v,w,E,A;return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.A.sessionServer,n="".concat(t,"/api/session"),i("Checking server session: ",n),e.next=5,m().get(n,{withCredentials:!0});case 5:if(!(r=e.sent).data){e.next=17;break}return d=r.data.entitlementTokenDecoded,f=r.data,h=f.accessToken,p=f.idToken,g=f.entitlementToken,y=null!==(a=null==d?void 0:d.entitlement_expiry)&&void 0!==a?a:null,v=null!==(c=null==d?void 0:d.entitlement_source)&&void 0!==c?c:null,w=null!==(s=null==d?void 0:d.entitlement_entitled)&&void 0!==s?s:null,E=null!==(u=null==d?void 0:d.entitlement_extras_adfree)&&void 0!==u?u:null,A=null!==(l=null==d?void 0:d.entitlement_level)&&void 0!==l?l:null,Xe(JSON.stringify({accessToken:h,idToken:p,entitlementToken:g,expiration:y,entitlementSource:v,isEntitled:w,adFree:E,entitlementLevel:A})),""!==g&&"string"==typeof g&&je(g),e.abrupt("return",{accessToken:h,idToken:p,entitlementToken:g,expiration:y,entitlementSource:v,isEntitled:w,adFree:E,entitlementLevel:A});case 17:return e.abrupt("return",{accessToken:null,idToken:null,entitlementToken:null,expiration:null,entitlementSource:null,isEntitled:null,adFree:null,entitlementLevel:null});case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)},Ye=function(e){return(Te=Te||r(Pe().mark((function e(t){var n,r;return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=o.A.sessionServer,r="".concat(n,"/api/session"),i("Updating server session: ",r),e.next=6,m().post(r,t,{withCredentials:!0});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),i("Failed to update session server: ",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)},We=function(){return(xe=xe||r(Pe().mark((function e(){var t,n;return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=o.A.sessionServer,n="".concat(t,"/api/session"),i("Deleting server session: ",n),e.next=6,m().delete(n,{withCredentials:!0});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),i("Failed to delete server session: ",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)},Ve=function(){return(Ce=Ce||r(Pe().mark((function e(){var t,n,r,o,a,c,s,u,l,d,f,h,p,m,g,y,v,w,E,A,L,S,b,N,O,I,T;return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i("Inside getSession"),e.prev=1,l=Fe(),i("Session: __MNG_Session = ",l),d=JSON.parse(l),f=d.accessToken,h=d.idToken,p=d.entitlementToken,m=d.expiration,g=d.entitlementSource,y=d.isEntitled,v=d.adFree,w=d.entitlementLevel,n=f,o=m,a=g,c=y,s=v,u=w,i("Session: check both tokens: ",t=h,r=p),void 0!==h&&void 0!==p&&null!==h&&null!==p){e.next=35;break}return i("Session: missing id or entitlements, try session server"),e.next=18,Ke();case 18:E=e.sent,A=E.accessToken,L=E.idToken,S=E.entitlementToken,b=E.expiration,N=E.entitlementSource,O=E.isEntitled,I=E.adFree,T=E.entitlementLevel,n=A,t=L,r=S,o=b,a=N,c=O,s=I,u=T;case 35:e.next=40;break;case 37:e.prev=37,e.t0=e.catch(1),i("Failed to get session: ",e.t0);case 40:return i("Returning session: ",t,n,r),e.abrupt("return",{accessToken:n,idToken:t,entitlementToken:r,expiration:o,entitlementSource:a,isEntitled:c,adFree:s,entitlementLevel:u});case 42:case"end":return e.stop()}}),e,null,[[1,37]])})))).apply(this,arguments)},Je=function(e){return(Re=Re||r(Pe().mark((function e(t){var n,r,o,a,c,s,u,l,d,f,h,p,m,g,y,v,w,E,A,L,S,b,N,O,I,T,x,C;return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=Fe(),r=JSON.parse(n),o=r.accessToken,a=void 0===o?null:o,c=r.idToken,s=void 0===c?null:c,u=r.entitlementToken,l=void 0===u?null:u,d=r.expiration,f=void 0===d?null:d,h=r.entitlementSource,p=void 0===h?null:h,m=r.isEntitled,g=void 0===m?null:m,y=r.adFree,v=void 0===y?null:y,w=r.entitlementLevel,E=void 0===w?null:w,A=t.accessToken,L=t.idToken,S=t.entitlementToken,b=t.expiration,N=t.entitlementSource,O=t.isEntitled,I=t.adFree,T=t.entitlementLevel,x={accessToken:null==A?a:A,idToken:null==L?s:L,entitlementToken:null==S?l:S,expiration:null==b?f:b,entitlementSource:null==N?p:N,isEntitled:null==O?g:O,adFree:null==I?v:I,entitlementLevel:null==T?E:T},i("Current session data: ",r),i("New session data: ",t),i("Updated session data:",x),C=JSON.stringify(x),Xe(C),""!==x.entitlementToken&&"string"==typeof x.entitlementToken&&je(x.entitlementToken),n===C){e.next=15;break}return e.next=15,Ye(x);case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(0),i("Unable to save session: ",e.t0);case 20:case"end":return e.stop()}}),e,null,[[0,17]])})))).apply(this,arguments)},qe=function(){return(ke=ke||r(Pe().mark((function e(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("Ending session..."),V(),e.next=4,We();case 4:localStorage.removeItem(g.LOCAL_STORAGE_SESSION_KEY);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)};function Ze(){Ze=function(){return n};var t,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(t){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),c=new R(r||[]);return i(a,"_invoke",{value:I(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var h="suspendedStart",p="suspendedYield",m="executing",g="completed",y={};function v(){}function w(){}function E(){}var A={};l(A,c,(function(){return this}));var L=Object.getPrototypeOf,S=L&&L(L(k([])));S&&S!==r&&o.call(S,c)&&(A=S);var b=E.prototype=v.prototype=Object.create(A);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(t,n){function r(i,a,c,s){var u=f(t[i],t,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==e(d)&&o.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,c,s)}),(function(e){r("throw",e,c,s)})):n.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return r("throw",e,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return a=a?a.then(o,o):o()}})}function I(e,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=T(c,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?g:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function k(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function e(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}var Qe=function(){return"logout"===(N().searchParams.get("state")||"").toLowerCase()};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.logoutCallbacks=[];var ze=function(e){return(Ge=Ge||r(Ze().mark((function e(t){var n;return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,z();case 2:n=e.sent,i("Calling Auth0 logout..."),n.logout({returnTo:t});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)},$e=function(){i("Check for SS paywall Cookie");var e=window.location.hostname,t=document.cookie.split(";").find((function(e){return e.trim().startsWith("vip-go-seg=vc-v1__has_access")}));if(/^(?!:\/\/)([a-zA-Z0-9-_]{1,63}\.?)+[a-zA-Z]{2,6}$/.test(e)&&t){i("SS paywall Cookie found, removing it");var n=t.split("=")[0].trim();document.cookie="".concat(n,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=").concat(e),document.cookie="".concat(n,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}},et=function(){return(_e=_e||r(Ze().mark((function e(){var t,n,o,a,c;return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i("Attempting to logout..."),$e(),!window.authentication_config.sessionManagementEnabled){e.next=7;break}return e.next=5,qe();case 5:e.next=8;break;case 7:V();case 8:return e.prev=8,i("Cycling through logout callbacks..."),t=window.MNGAuthentication.logoutCallbacks.map((function(e){return e()})),e.next=13,Promise.all(t);case 13:i("Finished cycling through logout callbacks."),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(8),i("Failed to cycle through logout callbacks: ",e.t0);case 19:Object.keys(localStorage).filter((function(e){return e.includes("auth0")})).forEach((function(e){localStorage.removeItem(e),i("Removed Auth0 storage object...")})),q("hhsl"),q("userNewsLetterData"),q(g.REGWALL_USER_IS_SUBSCRIBED),q(g.USER_PROFILE_HASH),n=N(),o=window.location.origin;try{n.searchParams.get("returnURL")&&(a=decodeURIComponent(n.searchParams.get("returnURL")),o=a)}catch(e){i(e),o=window.location.origin}return o=new URL(o),e.next=31,window.ConnextUtils.connextReady();case 31:if(!e.sent){e.next=63;break}if(i("Auth | Silent mode enabled ",Connext.GetOptions().Silentmode),i("Auth | Run connext manually if Silent Mode is on."),window.ConnextUtils.rerunConnextEntitlements(!0),c=o,o.origin!==window.location.origin&&(c=new URL(window.location.origin)).searchParams.append("returnAfterLogout",o),window.history.replaceState({additionalInformation:"Updated the URL to prevent another login cycle"},"Home",c),!J()){e.next=44;break}i("About to call Connext Logout..."),setTimeout((function(){Connext.Logout()}),500),e.next=61;break;case 44:if("Logged In"!==("undefined"==typeof CnnXt?(i("Connext was not loaded."),!1):Connext.Storage.GetUserState())){e.next=58;break}if(i("Connext user state is logged in, setting timeout..."),setTimeout(r(Ze().mark((function e(){return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("Connext took too long to logout, calling auth0 logout..."),e.next=3,ze(o);case 3:case"end":return e.stop()}}),e)}))),8e3),"function"!=typeof Connext._logout){e.next=53;break}return i("About to call Connext _logout..."),e.next=51,Connext._logout();case 51:e.next=56;break;case 53:return i("About to call Connext Logout..."),e.next=56,Connext.Logout();case 56:e.next=61;break;case 58:return i("Connext user state is logged out, not calling it, going to auth0 logout."),e.next=61,ze(o);case 61:e.next=66;break;case 63:return i("Connext Logout was NOT called"),e.next=66,ze(o);case 66:case"end":return e.stop()}}),e,null,[[8,16]])})))).apply(this,arguments)},tt=function(){var e=0;for(var t in localStorage){var n=2*localStorage[t].length/1024/1024;!Number.isNaN(n)&&localStorage.hasOwnProperty(t)&&(e+=n)}return e},nt=function(e,t,n,o,a){return(Be=Be||r(Ze().mark((function e(t,n,r,o,a){var c,s,u,l,d,f,h,p,m,g,y,v,w;return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("Attempting to login..."),tt()>4.5&&localStorage.clear(),window.MNGAuthentication.preAuthGTMEvents.forEach((function(e){return Oe(e)})),i("Cycled through preauth GTM events."),o&&(c=[],s=window.localStorage.getItem("callbackEvents"),u=JSON.parse(s),c=u&&u.length>0?Se(new Set([].concat(Se(o),Se(u)))):o,window.localStorage.setItem("callbackEvents",JSON.stringify(c))),l=null,e.next=7,z();case 7:if(d=e.sent,f=N(),h=f.origin,p=new URL("".concat(h,"/callback")),m={},f.searchParams.get("regwall")&&(f.searchParams.get("returnUrl")&&(g=f.searchParams.get("returnUrl")),f.searchParams.get("auth_redirect")&&(g=f.searchParams.get("auth_redirect"))),f.pathname.startsWith("/login")||f.pathname.startsWith("/callback")?f.searchParams.get("returnUrl")?p.searchParams.set("auth_redirect",f.searchParams.get("returnUrl")):a&&p.searchParams.set("auth_redirect",a):p.searchParams.set("auth_redirect",f.toString()),g&&"regwall"!==t&&p.searchParams.set("auth_redirect",g),"true"===f.searchParams.get("close-after-finish")&&p.searchParams.set("close-after-finish","true"),"true"!==f.searchParams.get("ssl")){e.next=23;break}if(!window.authentication_config.sessionManagementEnabled){e.next=22;break}return e.next=20,qe();case 20:e.next=23;break;case 22:V();case 23:return null!==(l=f.searchParams.get("login-with"))?m.connection=l:n&&(m.connection=n),y="none",t&&"regwall"===t&&(p.searchParams.set("regwall","true"),y="signUp",i("Logging in with regwall")),t&&(p.searchParams.set("loginsource",t),i("Logging in with ".concat(t))),r&&(m.login_hint=r),m.redirect_uri=p.toString(),m.initialScreen=y,"googleonetap"!==t&&(m.prompt="select_account"),null!==(v=f.searchParams.get("ampRegiWall"))&&(w=window.location.hostname,m.ampRegiWall=v,m.sourceDomain=w.replace("www.","").replace("preprod.","").replace("develop.",""),m.initialScreen="signUp",m.preferenceId=f.searchParams.get("prefId")),e.next=36,d.loginWithRedirect(m);case 36:case"end":return e.stop()}}),e)})))).apply(this,arguments)},rt=function(){return new Promise((function(e){var t=setTimeout((function(){e()}),8e3);try{var n=window.localStorage.getItem("callbackEvents"),r=JSON.parse(n);r&&0!==r.length||e(),i("Adding listeners to events we need to wait for...");var o=r.map((function(e){return t=e,new Promise((function(e){i("Adding event to wait for: ",t),window.addEventListener(t,(function(n){try{var r=n.detail||{};i("Event: ".concat(t,"} ready: "),r),e(r)}catch(t){i(t),e()}}),!1)}));var t}));Promise.all(o).then((function(){clearTimeout(t),e()}))}catch(t){i("Failed to wait for callback events",t),e()}}))};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.oidcLoginCallbacks=[];var ot=function(){return(Ue=Ue||r(Ze().mark((function e(){var t,n,o,a,c,s,u,l,d,f,h,p,m,y,v,w,E,A,L,S,b;return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if($e(),t=N(),n=!1,o=t.searchParams.get("auth_redirect")||"https://".concat(window.location.host),a=t.searchParams.get("redirect_uri")||"",a.includes("applenews")?(i("This is Apple prelogin flow."),(c=new URL(a))?(c.searchParams.append("post-apple-login","true"),i("Post callback Apple redirect URL is ".concat(c)),nt(!1,!1,!1,[],c)):nt()):o.includes("post-apple-login")&&(i("This is Apple Callback flow."),n=!0,(s=new URL(decodeURIComponent(o))).searchParams.delete("post-apple-login"),o=s),i("Handling post login callback..."),!(u=t.searchParams.get("error_description"))){e.next=13;break}if("shouldAutoLogin"!==u){e.next=12;break}return e.abrupt("return",nt(!1,!1,!1,!1,o));case 12:n&&alert("There was an error in logging you in, please try again.");case 13:return e.next=15,z();case 15:return l=e.sent,e.next=18,l.handleRedirectCallback();case 18:return e.next=20,l.getIdTokenClaims();case 20:return d=e.sent,e.next=23,l.getUser();case 23:return f=e.sent,i("Auth0 user profile: ",f),h=d.__raw,e.next=28,l.getTokenSilently();case 28:return p=e.sent,e.prev=29,i("Cycling through login callbacks..."),e.next=33,rt();case 33:return y=window.MNGAuthentication.oidcLoginCallbacks.map((function(e){return(m=m||r(Ze().mark((function e(t){return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t(h));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)})),e.next=36,Promise.all(y);case 36:i("Finished cycling through login callbacks."),e.next=42;break;case 39:e.prev=39,e.t0=e.catch(29),i("Failed to cycle through login callbacks: ",e.t0);case 42:if(v={accessToken:p,userId:f.sub,email:f.email,picture:f.picture},w=!1,E="",!n){e.next=61;break}return e.prev=46,e.next=49,_(v.userId);case 49:return E=e.sent,i("Encrypted apple uuid is: ".concat(E)),e.next=53,G(E);case 53:w=e.sent,i("Apple sub status is: ".concat(w)),e.next=61;break;case 57:e.prev=57,e.t1=e.catch(46),i("Apple sub check error: ".concat(e.t1)),alert("There was an error in logging you in, please try again.");case 61:if(q(g.REGWALL_USER_IS_SUBSCRIBED),!window.authentication_config.sessionManagementEnabled){e.next=66;break}return i("Saving idToken to session server"),e.next=66,Je({idToken:h,accessToken:p});case 66:if(!t.searchParams.get("close-after-finish")){e.next=68;break}return e.abrupt("return",window.close());case 68:if(!t.search.includes("loginsource")){e.next=73;break}return L=t.searchParams.get("loginsource"),S=window.MNGAuthentication.postAuthEvents.map((function(e){return(A=A||r(Ze().mark((function e(t){return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t(L));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)})),e.next=73,Promise.all(S);case 73:return e.prev=73,b=new URL(o),n&&w&&b.searchParams.append("access_token",E),i("Apple redirect URL:",b),e.abrupt("return",window.location.assign(b));case 80:e.prev=80,e.t2=e.catch(73),i("Failed to redirect after authentication: ",e.t2);case 83:return window.location.assign(new URL(window.location.origin)),e.abrupt("return","Finished execution, please await result...");case 85:case"end":return e.stop()}}),e,null,[[29,39],[46,57],[73,80]])})))).apply(this,arguments)},it=function(){return(Me=Me||r(Ze().mark((function e(){return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("ANALYTICS: fireBC events"),e.next=3,Ne();case 3:i("ANALYTICS: bc values should be filled");case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)},at=function(){return(De=De||r(Ze().mark((function e(){var t,n,r,o,a,c,s,u,l,d,f,h,p;return Ze().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K();case 2:if(t=e.sent,n=t.idToken,r=t.isAuthenticated,""===n){e.next=18;break}return e.prev=6,c=k(n),s=c.email,u=c.picture,l=c.sub,d=c.name,f=c.nickname,h=c.connection_source,p=null===(o=c.user_metadata)||void 0===o||null===(a=o.customProfile)||void 0===a?void 0:a.nickname,l.split("|").pop(),e.abrupt("return",{authenticated:r,nickname:p||f||d,email:s,picture:u,userId:l,connectionSource:h});case 15:e.prev=15,e.t0=e.catch(6),i("Unable to parse idToken: ",n," Error: ",e.t0);case 18:return e.abrupt("return",{authenticated:r});case 19:case"end":return e.stop()}}),e,null,[[6,15]])})))).apply(this,arguments)};window.MNGAuthentication.login=nt,window.MNGAuthentication.logout=et,window.MNGAuthentication.getUserInfo=at;var ct=function(){return(He=He||r(Ze().mark((function t(){var n,a,c,s,u,l,d,f,h,p,m,y,v;return Ze().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=N(),c=!1,s="",u=!1,l={},Qe()&&window.ConnextUtils.rerunConnextEntitlements(!0),a.searchParams.get("returnAfterLogout")&&(d=decodeURIComponent(a.searchParams.get("returnAfterLogout")),window.location.assign(d)),a.searchParams.has("entitlement_jwt")&&(window.authentication_config.sessionManagementEnabled=!1),f=function(){return(n=n||r(Ze().mark((function t(){var n,r;return Ze().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,z();case 3:return n=t.sent,t.next=6,n.getIdTokenClaims();case 6:return l=t.sent,t.next=9,n.isAuthenticated();case 9:if(c=t.sent,s="object"===e(l)?l.__raw:"",r=O(g.ENTITLEMENT_COOKIE_KEY),c||!r){t.next=16;break}return t.next=15,n.getTokenSilently();case 15:u=t.sent;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(0),i("Unable to verify user has active auth0 session: ",t.t0);case 21:case"end":return t.stop()}}),t,null,[[0,18]])})))).apply(this,arguments)},!a.pathname.startsWith("/logout")){t.next=14;break}return i("Page is logout. Routing to logout function..."),t.next=13,et();case 13:return t.abrupt("return");case 14:if(!window.authentication_config.sessionManagementEnabled){t.next=40;break}return t.next=17,f();case 17:if(""===s){t.next=26;break}if(h=null,p=JSON.parse(window.localStorage.getItem(g.LOCAL_STORAGE_SESSION_KEY)),"{}"!==Fe()){t.next=24;break}return p&&(h=p.jwt),t.next=24,Je({idToken:s,entitlementToken:h});case 24:t.next=38;break;case 26:return t.prev=26,t.next=29,Ve();case 29:m=t.sent,s=m.idToken,(c="string"==typeof s)&&(l=k(s)),t.next=38;break;case 35:t.prev=35,t.t0=t.catch(26),i("Unable to initialize session: ",t.t0);case 38:t.next=42;break;case 40:return t.next=42,f();case 42:if(c||u||!o.A.blueconicEnabled||!o.A.bcLowaSegements){t.next=47;break}return t.next=45,j();case 45:(y=t.sent).isSub&&(c=g.USER_IS_LOWA,l={sub:y.uuid});case 47:if(ee({isAuthenticated:c,idToken:s,accessToken:u,claims:l}),oe("authenticationReady"),!0===c?(i("User is authenticated."),a.searchParams.get("auth_redirect")&&(i("Auth Redirect is present, sending user to auth redirect..."),(v=a.searchParams.get("auth_redirect")).endsWith("#")&&(v=v.slice(0,v.length)),window.location.assign(v)),a.pathname.startsWith("/login")&&!Qe()&&(i("Page is login. The user is already logged in and Connext Logout param is not present... Redirecting..."),window.location.assign(a.origin))):i("User is not authenticated."),a.pathname.startsWith("/login")&&!Qe()?(i("Page is login. Attempting to log user in..."),nt()):i("Page is not login or Connext state is present"),!a.pathname.startsWith("/callback")||!a.searchParams.get("regwall")){t.next=60;break}return i("Page is callback with regwall param. Routing to regwall receiver..."),t.next=56,it();case 56:i("Now login from regwall"),nt(),t.next=64;break;case 60:if(!a.pathname.startsWith("/callback")){t.next=64;break}return i("Page is callback without regwall param. Routing to callback receiver..."),t.next=64,ot();case 64:case"end":return t.stop()}}),t,null,[[26,35]])})))).apply(this,arguments)};window.MNGAuthentication.init=ct;function st(e,t){for(var n=0;n=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}var dt=function(e){x(g.ENTITLEMENT_COOKIE_KEY,e,{path:"/",domain:T(),expires:365,secure:!0})},ft=function(e){return(ut=ut||r(lt().mark((function e(t){var n;return lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,dt(t),i("About to decode token before saving: ",t),n=k(t),!window.authentication_config.sessionManagementEnabled){e.next=9;break}return e.next=7,Je({entitlementToken:t,expiration:n.entitlement_expiry,entitlementSource:n.entitlement_source,isEntitled:n.entitlement_entitled,adFree:n.entitlement_extras_adfree||!1,entitlementLevel:n.entitlement_level});case 7:e.next=10;break;case 9:window.localStorage.setItem(g.LOCAL_STORAGE_SESSION_KEY,JSON.stringify({entitlementToken:t,expiration:n.entitlement_expiry,entitlementSource:n.entitlement_source,isEntitled:n.entitlement_entitled,adFree:n.entitlement_extras_adfree||!1,entitlementLevel:n.entitlement_level}));case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),i("Entitlements: Failed to save token: ",e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})))).apply(this,arguments)},ht=function(t){return new Promise((function(n,a){var c;if(i("Entitlements: create token start..."),i("Entitlements: createToken payload with ",t),"object"!==e(t)&&"string"!=typeof t.sub)return a(new Error("No user info to create token"));var s,u,l=I();if(t.sub&&(s=t.sub),t.idToken&&(u=t.idToken),!u&&!s)throw new Error("No idToken or uuid provided.");var d={publication:l.replace(".local",".com"),requestSource:"website"};u&&(d.idToken=u),s&&(d.uuid=s);var f="".concat(o.A.entitlementsEndpoint,"session/create");return i("Entitlements: create payload",d),$.ajax({type:"POST",url:f,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8","X-Api-Key":o.A.entitlementsApiKey},data:JSON.stringify(d),success:function(e){return(c=c||r(lt().mark((function e(t){return lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"==typeof t.jwt){e.next=2;break}return e.abrupt("return",a(new Error("Entitlements | API returned no JWT")));case 2:return i("Entitlements: Token Created: ",t),e.next=5,ft(t.jwt);case 5:return e.abrupt("return",n(t.jwt));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)},error:function(e,t,n){i("Entitlements: Create Token Failure: ",t,n),a(new Error("Entitlements: Create Token Failure"))}})}))};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.isUserAdFree=function(){var e=JSON.parse(window.localStorage.getItem(g.LOCAL_STORAGE_SESSION_KEY));return null!=e?(i("Ad Free Check: : ",e.adFree),e.idToken&&e.adFree||o.A.isAdfreeArticle):o.A.isAdfreeArticle},window.MNGAuthentication.isUserSubscriber=function(){var e=JSON.parse(window.localStorage.getItem(g.LOCAL_STORAGE_SESSION_KEY));return null!=e&&(i("Subscriber Check: : ",e.isEntitled),e.isEntitled)};var pt,mt;function gt(){gt=function(){return n};var t,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(t){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),c=new R(r||[]);return i(a,"_invoke",{value:I(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var h="suspendedStart",p="suspendedYield",m="executing",g="completed",y={};function v(){}function w(){}function E(){}var A={};l(A,c,(function(){return this}));var L=Object.getPrototypeOf,S=L&&L(L(k([])));S&&S!==r&&o.call(S,c)&&(A=S);var b=E.prototype=v.prototype=Object.create(A);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(t,n){function r(i,a,c,s){var u=f(t[i],t,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==e(d)&&o.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,c,s)}),(function(e){r("throw",e,c,s)})):n.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return r("throw",e,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return a=a?a.then(o,o):o()}})}function I(e,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=T(c,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?g:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function k(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function e(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}var yt=function(e,t){var n=e.toLowerCase(),r="";return["@medianewsgroup.com","@tribpub.com","@activeone.co"].forEach((function(e){t&&t.endsWith(e)&&(r="corporate")})),!!n.includes("employee")&&{employeeAccess:!0,accessGroup:r}},vt=function(e){return new Promise((function(t){i("Entitlements: get UUID from email start...");var n=P(),r="".concat(o.A.entitlementsEndpoint,"auth0/users/").concat(e,"?all=true");return $.ajax({type:"GET",url:r,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8","X-Api-Key":o.A.entitlementsApiKey},success:function(e){i("Entitlements: Request successful: ",e);var r=e.find((function(e){return e.identities.some((function(e){return n?"Trib"===e.connection.split("-")[0]:"Trib"!==e.connection.split("-")[0]}))}));if(!r)return i("Entitlements: No matching user identity found."),t(!1);var o={uuid:r.identities[0].user_id,provider:r.identities[0].provider};return t(o)},error:function(e,n,r){i("Entitlements: uuid request Failure: ",r),t(!1)}})}))},wt=function(){return(pt=pt||r(gt().mark((function e(){return gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,t){var n=Connext,r={},o=!1,a=setTimeout((function(){o=!0,clearInterval(c),t(new Error("Timeout: User state did not change within the specified time"))}),2e4),c=setInterval((function(){var t=n.Storage.GetUserState();i("Employee tools: Checking Connext UserState, state is: ".concat(t)),void 0!==t&&"Logged Out"!==t&&(r.conversation=n.Storage.GetCurrentConversation().Name,r.userState=t,r.campaign=n.Storage.GetLocalConfiguration().Campaign.Name,r.meter=n.Storage.GetLocalConfiguration().DynamicMeter.Name,clearInterval(c),clearTimeout(a),e(r))}),600);o&&(clearInterval(c),t(new Error("Timeout: User state did not change within the specified time")))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)},Et=function(e,t,n){function o(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.source=e,this.email=t,this.employeeId=n,this.spoofContent=document.createElement("p"),this.spoofBanner=document.createElement("div")}var a,c,s;return a=o,c=[{key:"clearSpoofedUser",value:function(){return(e=e||r(gt().mark((function e(){var t;return gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return document.getElementById("spoof-banner").remove(),this.userSpoofCheckbox.checked=!1,o.deleteLocalStorageSpoofUser(),e.next=5,ht({sub:this.employeeId,email:this.email,email_verified:!0});case 5:if(t=e.sent,!window.authentication_config.sessionManagementEnabled){e.next=11;break}return e.next=9,We();case 9:return e.next=11,Je({idToken:this.idToken,entitlementToken:t});case 11:window.location.reload();case 12:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}},{key:"handleUserSpoofAction",value:function(e){return(t=t||r(gt().mark((function e(t){var n,r,a,c,s,u;return gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("employee tools: handling spoof"),e.next=3,K();case 3:if(n=e.sent,r=n.idToken,a=localStorage.getItem(g.USER_PROFILE_HASH),!t.target.checked){e.next=44;break}if(c=window.prompt("Enter the email of the user you want to spoof:")){e.next=11;break}return t.target.checked=!1,e.abrupt("return");case 11:return this.userSpoofCheckbox.checked=!0,this.addSpoofBannerToPage("Fetching entitlements for ".concat(c," ..."),"greenyellow"),e.prev=13,e.next=16,vt(c);case 16:if((s=e.sent)&&"string"==typeof s.uuid){e.next=22;break}return this.spoofBanner.style.backgroundColor="red",this.spoofContent.textContent="User could not be found with that address, check for typos.",this.userSpoofCheckbox.checked=!1,e.abrupt("return");case 22:return e.next=24,ht({sub:"".concat(s.provider,"|").concat(s.uuid),email:c,email_verified:!0});case 24:if(u=e.sent,!window.authentication_config.sessionManagementEnabled){e.next=31;break}return e.next=28,We();case 28:return e.next=30,Je({idToken:r,entitlementToken:u});case 30:o.deleteLocalStorageManualExpiration();case 31:window.localStorage.setItem("spoof-user",c),o.removeUserProfileHash(a),window.location.reload(),e.next=42;break;case 36:e.prev=36,e.t0=e.catch(13),i("Error fetching user spoof entitlements",e.t0),this.spoofBanner.style.backgroundColor="red",this.spoofContent.textContent="Error fetching user entitlements",this.userSpoofCheckbox.checked=!1;case 42:e.next=48;break;case 44:return o.deleteLocalStorageManualExpiration(),o.removeUserProfileHash(a),e.next=48,this.clearSpoofedUser();case 48:case"end":return e.stop()}}),e,this,[[13,36]])})))).apply(this,arguments)}},{key:"addEventListeners",value:function(){document.getElementById("user-spoof-control").addEventListener("click",this.handleUserSpoofAction.bind(this)),document.getElementById("expiration-control").addEventListener("change",(function(e){var t=document.getElementById("datepicker-wrapper");!0===e.currentTarget.checked?t.classList.contains("show-picker")||t.classList.add("show-picker"):(t.classList.contains("show-picker")&&t.classList.remove("show-picker"),window.localStorage.getItem("manual-expiration")&&(window.localStorage.removeItem("manual-expiration"),clearInterval(o.interval),document.getElementById("expiration-pop-up").remove()))}))}},{key:"addSpoofBannerToPage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"deeppink";i("employee tools: add spoof banner");var n=document.getElementById("page").querySelector("header");this.spoofBanner.style.backgroundColor=t,this.spoofBanner.id="spoof-banner",this.spoofContent.textContent=e,this.spoofBanner.append(this.spoofContent),n.prepend(this.spoofBanner)}},{key:"init",value:function(){return(n=n||r(gt().mark((function e(){var t,n,a,c,s,u,l,d,f,h,p,m,g,y,v,w,E,A,L,S,b,N,O,I,T;return gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.MNGAuthentication.logoutCallbacks.push(o.deleteLocalStorageSpoofUser),t=window.localStorage.getItem("spoof-user"),n=window.localStorage.getItem("manual-expiration"),a=yt(this.source,this.email),i("employee tools: validate employee:",a),this.email&&this.employeeId&&(t||!this.source||a.employeeAccess&&"corporate"===a.accessGroup)&&(this.source||t)){e.next=7;break}return e.abrupt("return");case 7:(c=document.createElement("div")).id="employee-debugger",c.classList="employee-debugger-close",(s=document.createElement("div")).id="employee-debugger-button",s.innerHTML='\n\t\t\t\n\t\t',(u=document.createElement("div")).id="employee-debugger-content",u.innerHTML="\n\t\t\t

MNG Debugger

\n\t\t",(l=document.createElement("div")).id="employee-debugger-toggles",(d=document.createElement("div")).id="employee-spoof-wrapper",(f=document.createElement("label")).textContent="Spoof a user",this.userSpoofCheckbox=document.createElement("input"),this.userSpoofCheckbox.type="checkbox",this.userSpoofCheckbox.id="user-spoof-control",h="You are currently entitled as the user 🤫 ".concat(t," 🤫"),p=document.querySelectorAll(".logged-in-source"),(m=document.createElement("div")).id="employee-datepicker-wrapper",(g=document.createElement("label")).textContent="Set expiration",this.datePickerCheckbox=document.createElement("input"),this.datePickerCheckbox.type="checkbox",this.datePickerCheckbox.id="expiration-control",(y=document.createElement("div")).id="datepicker-wrapper",(v=document.createElement("input")).id="expiration-picker",v.type="datetime-local",(w=document.createElement("button")).id="apply-exp-btn",w.className="expiration-btn",(E=document.createElement("button")).id="reset-exp-btn",E.className="expiration-btn",(A=w.appendChild(document.createElement("span"))).className="tooltiptext",A.textContent="Apply date",(L=E.appendChild(document.createElement("span"))).className="tooltiptext",L.textContent="Reset to original",document.body.append(c),document.getElementById("employee-debugger").append(s,u),document.getElementById("employee-debugger-content").append(l),document.getElementById("employee-debugger-toggles").append(d,m),document.getElementById("employee-spoof-wrapper").append(f,this.userSpoofCheckbox),document.getElementById("employee-datepicker-wrapper").append(g,this.datePickerCheckbox,y),document.getElementById("datepicker-wrapper").append(v,w,E),document.getElementById("employee-debugger").append(s,u),S=JSON.parse(localStorage.getItem("__MNG_Session")),b=k(S.entitlementToken),N=new Date(1e3*S.expiration),O=new Date(1e3*b.session_exp),v.value=N.toISOString().replace(/.\d+Z$/g,""),(I=document.createElement("div")).style.padding="5px 0px 0px 10px",I.innerHTML='\n\t\t

Entitlements JWT

\n\t\t',Object.keys(b).forEach((function(e){var t=document.createElement("div");t.className="list-content";var n=document.createElement("p");n.className="collapsible-list",n.innerHTML="\n\t\t\t".concat(e,'\n\t\t\t+\n\t\t\t\n\t\t\t');var r=n.firstChild.nextElementSibling;r.style.display="inline";var o=n.lastChild.previousElementSibling,i=document.createElement("small");i.className="obj-value",i.innerHTML='⤷ ').concat(b[e],""),t.append(n,i),I.append(t),n.addEventListener("click",(function(){var e=n.nextElementSibling;"block"===e.style.display?(e.style.display="none",r.style.display="inline",o.style.display="none"):(e.style.display="block",o.style.display="inline",r.style.display="none")})),i.addEventListener("click",(function(){var t=document.getElementById("".concat(e,"_value")).innerHTML;navigator.clipboard&&navigator.clipboard.writeText(t)}))})),(T=document.createElement("div")).style.padding="5px 0px 0px 10px",T.innerHTML='\n\t\t\t\t

Connext answer

\n\t\t\t\t',document.addEventListener("onInit",r(gt().mark((function e(){var t,n;return gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!=typeof Connext){e.next=7;break}(t=document.createElement("p")).className="connext-error-message",t.innerHTML="Something went wrong, reload may solve the issue.",T.append(t),e.next=11;break;case 7:return e.next=9,wt();case 9:n=e.sent,Object.keys(n).forEach((function(e){var t=document.createElement("div");t.className="list-content";var r=document.createElement("p");r.className="collapsible-list",r.innerHTML="\n\t\t\t\t".concat(e,'\n\t\t\t\t+\n\t\t\t\t\n\t\t\t\t');var o=r.firstChild.nextElementSibling;o.style.display="inline";var i=r.lastChild.previousElementSibling,a=document.createElement("small");a.className="obj-value",a.innerHTML='⤷ ').concat(n[e],""),t.append(r,a),T.append(t),r.addEventListener("click",(function(){var e=r.nextElementSibling;"block"===e.style.display?(e.style.display="none",o.style.display="inline",i.style.display="none"):(e.style.display="block",i.style.display="inline",o.style.display="none")})),a.addEventListener("click",(function(){var t=document.getElementById("".concat(e,"_value")).innerHTML;navigator.clipboard&&navigator.clipboard.writeText(t)}))}));case 11:case"end":return e.stop()}}),e)})))),document.getElementById("employee-debugger-content").append(l,I,T),document.getElementById("employee-debugger-toggles").append(d),document.getElementById("employee-spoof-wrapper").append(f,this.userSpoofCheckbox),document.getElementById("employee-debugger-button").addEventListener("click",(function(){console.log("clicked debugger");var e=document.getElementById("employee-debugger");e.classList.toggle("employee-debugger-close"),e.classList.contains("employee-debugger-close")?e.style.top="50%":e.style.top="20%"})),!t&&this.source&&this.source.toLowerCase().includes("employee")&&Se(p).forEach((function(e){var t=e;t.textContent="Subscriber - Employee",t.style.color="blue"})),t&&(this.addSpoofBannerToPage(h),this.userSpoofCheckbox.checked=!0,Se(p).forEach((function(e){var t=e;t.textContent="Subscriber - Employee (spoofing)",t.style.color="blue"}))),document.getElementById("apply-exp-btn").addEventListener("click",(function(){var e,t=null===(e=new Date(v.value))||void 0===e?void 0:e.getTime(),n=Math.floor(t/1e3);S.expiration=n,localStorage.setItem("__MNG_Session",JSON.stringify(S)),window.localStorage.setItem("manual-expiration",!0),o.interval&&clearInterval(o.interval),o.timeLeftPopUp(S.expiration)})),document.getElementById("reset-exp-btn").addEventListener("click",(function(){v.value=O.toISOString().replace(/.\d+Z$/g,"")})),this.addEventListeners(),n&&(this.datePickerCheckbox.click(),o.timeLeftPopUp(S.expiration));case 82:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}}],s=[{key:"deleteLocalStorageSpoofUser",value:function(){window.localStorage.removeItem("spoof-user"),localStorage.getItem("userNewsLetterData")&&window.localStorage.removeItem("userNewsLetterData"),i("Removed spoofed-user storage object.")}},{key:"timeLeftPopUp",value:function(e){var t=document.getElementById("expiration-pop-up");if(t)t.classList="",document.getElementById("time-left-text").textContent="Calculating time...";else{var n=document.createElement("div");n.id="expiration-pop-up";var r=n.appendChild(document.createElement("p"));r.id="time-left-text",r.textContent="Calculating time...",document.getElementById("employee-debugger").prepend(n)}var o=new Date(1e3*e).toLocaleString(),i=new Date(o).getTime();this.interval=setInterval((function(){var e=(new Date).getTime(),n=i-e,r=Math.floor(Math.abs(n/864e5))||0,o=Math.floor(Math.abs(n%864e5)/36e5)||0,a=Math.floor(Math.abs(n%36e5)/6e4)||0,c=Math.floor(Math.abs(n%6e4)/1e3);document.getElementById("time-left-text").textContent="Token expires in: ".concat(r,"d ").concat(o,"h ").concat(a,"m ").concat(c,"s 🕛"),n<0&&(document.getElementById("time-left-text").textContent="Token expired by: ".concat(r,"d ").concat(o,"h ").concat(a,"m ").concat(c,"s 🕛"),t.classList.contains("expiredToken")||(t.classList="expiredToken"))}),1e3)}},{key:"deleteLocalStorageManualExpiration",value:function(){window.localStorage.getItem("manual-expiration")&&(window.localStorage.removeItem("manual-expiration"),clearInterval(this.interval),document.getElementById("expiration-pop-up").remove())}},{key:"removeUserProfileHash",value:function(e){e&&localStorage.removeItem(g.USER_PROFILE_HASH)}}],c&&st(a.prototype,c),s&&st(a,s),o}(),At=function(e,t){return(mt=mt||r(gt().mark((function e(t,n){var o,a,c;return gt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i("Employee Tools: employeeAds: "),o=yt(t,n),i("employee tools: validate employee:",o),"corporate"===o.accessGroup&&o.employeeAccess){e.next=5;break}return e.abrupt("return",!1);case 5:return e.next=7,new Promise((function(e){if(B())e();else{i("UIHandler: Employee Debugger: ","Waiting for the digisubs debugger toolbox to load...");var t=setInterval(r(b().mark((function n(){return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:document.getElementById("employee-debugger-content")&&(clearInterval(t),e(!0));case 1:case"end":return n.stop()}}),n)}))),200)}}));case 7:return(a=document.createElement("div")).id="employee-debugger-adfree",a.innerHTML='\n\t\t\n\t\t\n\t\t

(page will reload)

\n\t',document.getElementById("employee-debugger-toggles").append(a),(void 0!==(c=localStorage.getItem("hhsl"))&&"access"===c||"undefined"!=typeof MNGAuthentication&&"function"==typeof MNGAuthentication.isUserAdFree&&MNGAuthentication.isUserAdFree())&&(document.getElementById("employee-adfree-toggle").checked=!0,window.MNGAuthentication.isUserAdFree=!0),document.getElementById("employee-adfree-toggle").addEventListener("click",(function(e){i("employee tools: employee ad toggle clicked"),e.target.checked?(i("Employee tools: employee ads: turn off"),localStorage.setItem("hhsl","access"),window.MNGAuthentication.isUserAdFree=!0,setTimeout((function(){window.location.reload()}),500)):(i("Employee tools: employee ads: turn on"),localStorage.removeItem("hhsl"),setTimeout((function(){window.location.reload()}),500))})),e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)};var Lt;function St(){St=function(){return n};var t,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(t){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),c=new R(r||[]);return i(a,"_invoke",{value:I(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var h="suspendedStart",p="suspendedYield",m="executing",g="completed",y={};function v(){}function w(){}function E(){}var A={};l(A,c,(function(){return this}));var L=Object.getPrototypeOf,S=L&&L(L(k([])));S&&S!==r&&o.call(S,c)&&(A=S);var b=E.prototype=v.prototype=Object.create(A);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(t,n){function r(i,a,c,s){var u=f(t[i],t,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==e(d)&&o.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,c,s)}),(function(e){r("throw",e,c,s)})):n.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return r("throw",e,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return a=a?a.then(o,o):o()}})}function I(e,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=T(c,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?g:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function k(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function e(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}var bt,Nt,Ot,It,Tt,xt=[],Ct=R();Ct=Ct.replace("local","com");var Rt="".concat(o.A.entitlementsEndpoint,"newsletters"),kt=function(e){var t=new Date,n=Math.round(t.getTime()/1e3)-86400;return new Date(e)>=new Date(1e3*n).getTime()},Pt=function(e){return(Lt=Lt||r(St().mark((function e(t){var n,r,a;return St().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Rt,"get"===t.method&&(n="".concat(n,"?email=").concat(t.dataToSend.email,"&domain=").concat(t.dataToSend.domain,"&nocache=").concat((new Date).getTime())),e.prev=2,e.next=5,m()({method:t.method,url:n,headers:{"X-Api-Key":o.A.entitlementsApiKey},data:t.dataToSend});case 5:r=e.sent,"get"===t.method&&((xt=r.data.responseData).sort((function(e,t){return e.title>t.title?1:-1})),"limited"===Nt?(a=xt.filter((function(e){return!e.subscriberOnly})),localStorage.setItem("userNewsLetterData",JSON.stringify({expoDate:new Date,newsLetterData:a}))):localStorage.setItem("userNewsLetterData",JSON.stringify({expoDate:new Date,newsLetterData:xt})),Mt()),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),i("newsletter: ",e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)},Gt=function(){var e,t,n=navigator.userAgent,r=/^((?!chrome|android).)*safari/i.test(n),o=/Chrome/.test(n);return r?"calc(100vh - 8.5rem)":o?"calc(100vh - ".concat((e=window.innerHeight,(t=(window.screen.height-e)/16)>0?t:0),"rem)"):"calc(100vh - 64px)"},_t=function(e){e.stopPropagation();var t={},n=e.target,r=e.target.classList.contains("dropDownNewsLetter")?".slideOutNewsLetter":".dropDownNewsLetter",o=parseInt(n.getAttribute("data-id"),10),i=n.checked;document.querySelector("".concat(r,'[data-id="').concat(o,'"]')).checked=i,xt.find((function(e){return e.id===o})).isSubscribed=i,t.method=i?"post":"delete",t.dataToSend={email:bt,domain:Ct,preferenceId:o},Ut(t)},Bt=function(e){e.stopPropagation();var t=e.target;if(t.matches("span")||t.matches("label")){var n,r=t.closest("div"),o=r.querySelector(".newsletter-icon"),i="block"===(n=r.classList.contains("show-digisubs-push")?document.querySelector("#newsLetterItem-push"):document.querySelector("#newsLetterContent-dropdown")).style.display,a=document.querySelector(".wrapper-nav-subs.pushnav.pushnav-right"),c=/iPad|iPhone|iPod/.test(navigator.userAgent),s=/Android/i.test(navigator.userAgent);i?(o.classList.remove("icon-arrow-down"),o.classList.add("icon-arrow-right"),n.style.display="none",""!==a.style.height&&(a.style.height="")):(o.classList.remove("icon-arrow-right"),o.classList.add("icon-arrow-down"),n.style.display="block",c&&window.innerHeight\n\t\tinfo\n\t\t\n\t\t\n\t\t\n\t'),u="url(data:image/svg+xml;base64,".concat(s,")");c.style.background=u;var l=document.createElement("p"),d=document.createElement("a"),f=re();d.setAttribute("href","https://myaccount.".concat(f)),d.setAttribute("id","myAccountLink"),d.textContent="MyAccount",l.appendChild(document.createTextNode("Manage your newsletters here or visit ")),l.appendChild(d),l.appendChild(document.createTextNode(" for more information")),a.append(c),a.append(l);var h=a.cloneNode(!0);o.append(a),i.append(h);var p,m,g,y=(p={},xt.forEach((function(e){var t=e.category[0].Title;e.isSubscribed&&"Media News Group"!==t&&"MediaNews Group"!==t?p["My Newsletters:"]?p["My Newsletters:"].push(e):p["My Newsletters:"]=[e]:p[t]?p[t].push(e):p[t]=[e]})),p),v=(m=y,"My Newsletters:"===(g=Object.keys(m).sort((function(e,t){return"My Newsletters:"===e?-1:"My Newsletters:"===t?1:e.localeCompare(t)})))[0]?g.splice(1,0,"".concat(Tt," Newsletters:")):g=["".concat(Tt," Newsletters:")].concat(Se(g)),g);y["".concat(Tt," Newsletters:")]=[],v.forEach((function(e){if("Media News Group"!==e&&"MediaNews Group"!==e&&"MediaNewsGroup"!==e&&"Not Active"!==e){var t=document.createElement("li");t.classList.add("titleContainer");var n=document.createElement("li");n.classList.add("titleContainer");var r=document.createElement("label");r.classList.add("newsletterCategoryTitle"),r.textContent=e,"My Newsletters:"!==e&&e!=="".concat(Tt," Newsletters:")||r.classList.add("newsLetterTitleBold");var a=r.cloneNode(!0);t.append(r),n.append(a),o.append(t),i.append(n),y[e].forEach((function(e){var t=document.createElement("li");t.classList.add("dropdown-item-newsletter");var n=document.createElement("li");n.classList.add("show-digisubs-push","newsLetter-container-push");var r=document.createElement("input");r.classList.add("newsLetterSubscriberToggle"),r.type="checkbox",r.name="newsLetter_".concat(e.title),r.setAttribute("data-id",e.id),r.checked=e.isSubscribed,r.style.cursor="pointer",r.addEventListener("click",_t),It&&(r.disabled=!0);var a=document.createElement("label");a.textContent=e.title,a.setAttribute("for","newsLetter_".concat(e.title));var c=r.cloneNode(),s=a.cloneNode(!0);c.addEventListener("click",_t),r.classList.add("dropDownNewsLetter"),c.classList.add("slideOutNewsLetter"),t.append(r,a),n.append(c,s),o.append(t),i.append(n)}))}})),o.style.display="none",i.style.display="none"};const Dt=function(e,t,n,r){if(bt=e,Nt=t,Tt=r,It=n){q("userNewsLetterData");for(var o=document.getElementById("newsLetterContent-dropdown"),a=document.getElementById("newsLetterItem-push");o.firstChild;)o.firstChild.remove();for(;a.firstChild;)a.firstChild.remove()}if(i("host for newsletter prefs",Ct),localStorage.getItem("userNewsLetterData")){var c=JSON.parse(localStorage.getItem("userNewsLetterData"));Ot=c.expoDate,kt(Ot)?(xt=c.newsLetterData,Mt()):Pt({method:"get",dataToSend:{email:bt,domain:Ct}})}else Pt({method:"get",dataToSend:{email:bt,domain:Ct}})};var Ht;function Ft(){Ft=function(){return n};var t,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(t){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),c=new R(r||[]);return i(a,"_invoke",{value:I(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var h="suspendedStart",p="suspendedYield",m="executing",g="completed",y={};function v(){}function w(){}function E(){}var A={};l(A,c,(function(){return this}));var L=Object.getPrototypeOf,S=L&&L(L(k([])));S&&S!==r&&o.call(S,c)&&(A=S);var b=E.prototype=v.prototype=Object.create(A);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(t,n){function r(i,a,c,s){var u=f(t[i],t,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==e(d)&&o.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,c,s)}),(function(e){r("throw",e,c,s)})):n.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return r("throw",e,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return a=a?a.then(o,o):o()}})}function I(e,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=T(c,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?g:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function k(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function e(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}var Xt=function(){var e=pe()?pe().querySelector(le):null,t=pe();null!==e&&t.removeChild(e)};const jt=function(e){return(Ht=Ht||r(Ft().mark((function e(t){var n,a,c,s,u,l,d,f,h,p,m,y,v,w,E,A,L,S,O,I,T,x,C,R,k,P,G,_,U,M,D,H,F,X,j,K,Y,W,V,J,q,Z,Q,z,$,ee,te,re,oe,ie,ae,ce,se,ue;return Ft().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.authenticatedStatus,a=t.email,c=t.nickname,s=t.picture,u=t.connectionSource,l=t.entitlementSource,d=t.entitlementOrganization,f=t.entitlementLevel,h=t.serviceCode,p=t.isEedition,m=t.accountHref,y=t.userId,v="",w=" | Logged in with ",E=[],A=a,void 0!==a&&"undefined"!==a&&a&&!a.endsWith("@example.com")||(A=c||"Logged In"),L=u.replace("Trib-","").toLowerCase(),e.prev=8,e.t0=L,e.next="google-oauth2"===e.t0||"google"===e.t0?12:"facebook"===e.t0?14:"apple"===e.t0?16:18;break;case 12:return w+="Google",e.abrupt("break",20);case 14:return w+="Facebook",e.abrupt("break",20);case 16:return w+="Apple",e.abrupt("break",20);case 18:return w="",e.abrupt("break",20);case 20:e.t1=f,e.next="limited"===e.t1?23:"subscriber"===e.t1||"freeTrial"===e.t1?25:"premium"===e.t1?27:"comp"===e.t1?29:"partner-access"===e.t1?31:33;break;case 23:return v="Limited Access - Subscribe now for access",e.abrupt("break",35);case 25:return v="Standard Digital Access",e.abrupt("break",35);case 27:return v="Premium Ad-Free Access",e.abrupt("break",35);case 29:return v="Standard Digital Trial",e.abrupt("break",35);case 31:return v="Partner Access",e.abrupt("break",35);case 33:return v="Anonymous",e.abrupt("break",35);case 35:for(n===g.USER_IS_LOWA&&(w="",v="Anonymous"),p&&h&&h.includes("P")&&(v="Limited Subscription - e-Edition access"),d&&(v="".concat("Standard Digital Access"===v?"Access":"Premium Ad-Free Access"===v?"Ad-Free Access":v," provided by ").concat(d)),Xt(),(O=ve()).removeChild(O.firstChild),(I=document.createElement("a")).id="anchorProfileDropDown",I.className="nav-link dropdown-toggle",I.setAttribute("aria-label","Account menu dropdown"),I.style.cursor="pointer",I.setAttribute("tabindex","0"),I.setAttribute("aria-expanded","false"),T=document.createElement("img"),x=document.getElementById("pushnav-icon"),T.className="rounded-circle",T.alt="Profile image",x.className="rounded-circle",T.src=s,x.src=s,s||(T.src="https://ui-static-assets-prod.mng-digisubs-prod.com/img/no-icon.png",x.src="https://ui-static-assets-prod.mng-digisubs-prod.com/img/no-icon.png"),(C=document.createElement("span")).className="icon-arrow-down",C.id="icon-caret",C.setAttribute("aria-hidden","true"),(R=document.createElement("div")).id="account-content",R.className="dropdown-menu",O.append(I,R),k="",window.dataLayer.forEach((function(e){Object.prototype.hasOwnProperty.call(e,"SiteName")&&(k=e.SiteName)})),P=window,G=P.location,_=new URL(G),M=null,n!==g.USER_IS_LOWA?((M=document.createElement("a")).className="dropdown-item dropdown-profile account-link",M.text=A):document.getElementById("push-email-link").style.display="none",n===g.USER_IS_LOWA&&((D=document.createElement("li")).className="dropdown-item log-in-button subscribe-special custom-button",H=document.createElement("a"),F=N(),H.href="/login?returnUrl=".concat(F),H.text="Complete Log In",H.style.cursor="pointer",H.style.margin="0",H.style.width="auto",D.append(H)),(X=document.createElement("p")).className="dropdown-item logged-in-source",X.style["white-space"]="normal",j="".concat(v).concat(w),X.appendChild(document.createTextNode(j)),(K=document.createElement("a")).className="dropdown-item account-link account-settings",K.text="Account Settings",K.target="_blank",K.setAttribute("data-mng-click","account-settings"),K.setAttribute("data-mng-category","account-link"),K.setAttribute("data-mng-action","account-settings"),o.A.enableReaderDashboardLink&&((U=document.createElement("a")).className="dropdown-item",U.id="reader-dashboard-link",U.text="Reader Dashboard",U.target="_blank",U.setAttribute("data-mng-click","reader-dashboard"),U.setAttribute("data-mng-category","account-link"),U.setAttribute("data-mng-action","reader-dashboard"),U.href="".concat(_.origin,"/user-tools/dashboard")),(Y=document.createElement("a")).className="dropdown-item",Y.text="Contact Us",Y.href="".concat(_.origin,"/contact-us"),Y.setAttribute("data-mng-click","contact-us"),Y.setAttribute("data-mng-category","account-link"),Y.setAttribute("data-mng-action","contact-us"),(W=document.createElement("a")).className="dropdown-item log-out-button",W.text="Log out",W.setAttribute("data-mng-click","log-out"),W.setAttribute("data-mng-category","account-link"),W.setAttribute("data-mng-action","log-out"),W.style.display="flex",(V=document.createElement("div")).id="marketing-content",V.className="dropdown-item marketing-slot-div",W.href="".concat(_.origin,"/logout"),(J=document.createElement("ul")).className="newsLetterContent dropdown-item",J.id="newsLetterContent-dropdown",O.id="profileDropDown",O.className="nav-item dropdown auth-visible show",I.append(T,C),M&&document.getElementById("account-content").append(M),D&&document.getElementById("account-content").append(D),q=[X,K].concat(Se(U?[U]:[]),[Y,W,V,J]),(S=document.getElementById("account-content")).append.apply(S,Se(q)),document.getElementById("push-auth-source").textContent="".concat(v).concat(w),document.getElementById("push-email-link").textContent=A,document.getElementById("push-account-content").style.display="block",document.getElementById("blank-icon-user").style.display="none",o.A.enableReaderDashboardLink&&((Z=document.createElement("a")).className="show-digisubs-push dashboard-link",Z.id="push-reader-dashboard",Z.text="Reader Dashboard",Z.href="".concat(_.origin,"/user-tools/dashboard"),document.querySelector("#push-account-link").after(Z)),i("Employee tools: start tools here",l,a,y),!1===(Q=l)&&(Q="none"),(z=new Et(Q,a,y)).init(),At(Q,a),o.A.newslettersEnabled&&f?($=A,ee=!1,z.userSpoofCheckbox&&(ee=z.userSpoofCheckbox.checked),localStorage.getItem("spoof-user")&&($=localStorage.getItem("spoof-user")),!0===n&&Dt($,f,ee,k)):J.style.display="none",te=function(){var e=document.getElementById("icon-caret"),t=e.classList.contains("icon-arrow-up");t||(e.className="icon-arrow-up",I.setAttribute("aria-expanded","true")),t&&(e.className="icon-arrow-down",I.setAttribute("aria-expanded","false"))},document.getElementById("profileDropDown").addEventListener("click",(function(){document.getElementById("account-content").classList.toggle("show"),te()})),document.getElementById("anchorProfileDropDown").addEventListener("keydown",(function(e){"Enter"===e.key&&(document.getElementById("account-content").classList.toggle("show"),te())})),document.addEventListener("click",(function(e){I.contains(e.target)||(document.getElementById("account-content").classList.remove("show"),I.setAttribute("aria-expanded","false"),C.className="icon-arrow-up")})),E=document.getElementsByClassName("account-link"),re=0;re=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}var en=function(){return(Kt=Kt||r($t().mark((function e(){var t,n,r,i,a,c,s,u,l,d,f,h,p,m,g,y,v;return $t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!1,n="Naviga",r="",i="Anonymous",a=!1,c=!1,s="",!o.A.entitlementsEnabled){e.next=14;break}return e.next=10,Y();case 10:(u=e.sent)&&u.token&&(l=u.token,d=k(l),f=d.entitlement_entitled,h=d.entitlement_source,p=d.entitlement_organizationName,m=d.entitlement_level,g=d.entitlement_serviceCode,y=d.entitlement_isEedition,v=d.email,t=f||!1,n=h||!1,i=m||"Anonymous",a=g||!1,c=y||!1,s=v||"",r=p||""),e.next=15;break;case 14:"undefined"!=typeof Connext&&"Subscribed"===Connext.Storage.GetUserState()&&(t=!0);case 15:return e.abrupt("return",{userIsEntitled:t,entitlementSource:n,entitlementOrganization:r,entitlementLevel:i,serviceCode:a,isEedition:c,tokenEmail:s});case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)},tn=function(e){return(Yt=Yt||r($t().mark((function e(t){var n,r,o;return $t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=N(),r=t.querySelector("a"),(o=new URL(r.href)).searchParams.set("returnUrl",encodeURIComponent("".concat(n.href,"?newUser=true"))),r.setAttribute("href",o.href);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)},nn=function(e){var t,n=e.siteUrl,r=["courant.com","mcall.com","baltimoresun.com","orlandosentinel.com","growthspotter.com","sun-sentinel.com","capitalgazette.com","dailypress.com","pilotonline.com","nydailynews.com","chicagotribune.com"].filter((function(e){return e===n}));return void 0!==window.authentication_config&&window.authentication_config.myAccountLink&&(t=window.authentication_config.myAccountLink,/^https?:\/\/([\w.-]+)\.([a-z]{2,})(\/[\w-.]*)*$/.test(t))?(i("UIHandler: ","Account Settings link provided by wp-admin"),new URL("".concat(window.authentication_config.myAccountLink))):r.length>0?new URL("https://membership.".concat(n)):new URL("https://myaccount.".concat(n))},rn=function(e){return(Wt=Wt||r($t().mark((function e(t){var n,r,o,i;return $t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.entitlementSource,r=t.accountHref,o="My Account",void 0!==window.MNGPaywall&&"Piano"===n&&(o="Account"),(i=we()).textContent=o,i.setAttribute("href",r);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)},on=function(e){try{void 0!==window.MNGAuthentication&&("keydown"===e.type&&"Enter"===e.key||"click"===e.type)&&(e.preventDefault(),window.MNGAuthentication.logout())}catch(e){i(e)}},an=function(e){i("UIHandler: ","engage overrides showing block: ",e);var t=document.createElement("style"),n=".".concat(e,"{display:inline-block !important;}");t.textContent=".engageLogoutLink, .engageLoginLink {display:none !important;}"+n,document.getElementsByTagName("head")[0].appendChild(t)},cn=function(){i("UIHandler: ","show logout buttons"),an("engageLogoutLink"),document.querySelectorAll(le).forEach((function(e){var t=e;t.style.visibility="visible",t.style.display="block",t.addEventListener("click",on),t.addEventListener("keydown",on)}))},sn=function(){i("UIHandler: ","show login buttons"),an("engageLoginLink"),document.querySelectorAll(se).forEach((function(e){var t=e;t.style.visibility="visible",t.style.display="block",t.querySelector("a").textContent="Log in";var n=new URL(t.querySelector("a").href),r=new URLSearchParams(n);r.append("returnUrl",N()),t.querySelector("a").setAttribute("href","".concat(n,"?").concat(r))}))},un=function(){return(Vt=Vt||r($t().mark((function e(){var t,n,r,a,c,s,u,l,d,f,h,p,m,y,v,w,E,A,L;return $t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("UIHandler: ","setup"),e.next=3,at();case 3:return t=e.sent,n=t.authenticated,r=t.email,a=t.picture,c=t.connectionSource,s=t.userId,u=t.nickname,e.next=12,en();case 12:if(l=e.sent,d=l.userIsEntitled,f=l.entitlementSource,h=l.entitlementOrganization,p=l.entitlementLevel,m=l.serviceCode,y=l.isEedition,v=l.tokenEmail,w=nn({siteUrl:re()}),!n){e.next=33;break}if(!o.A.dropdownEnabled){e.next=28;break}return n===g.USER_IS_LOWA||r&&!r.includes("@example.com")||(r=v),e.next=26,jt({authenticatedStatus:n,email:r,nickname:u,picture:a,connectionSource:c,entitlementSource:f,entitlementOrganization:h,entitlementLevel:p,serviceCode:m,isEedition:y,accountHref:w,userId:s});case 26:e.next=30;break;case 28:return e.next=30,rn({entitlementSource:f,siteUrl:R(),accountHref:w});case 30:cn(),e.next=34;break;case 33:sn();case 34:E=document.getElementById(he),d?(Le().forEach((function(e){e.style.display="none"})),E&&(E.style.display="none")):(Le().forEach((function(e){var t=e;t.style.display="block",tn(t)})),E&&(E.style.display="flex",A=N(),(L=new URL(E.getAttribute("href"))).searchParams.set("returnUrl",encodeURIComponent(A.href)),E.setAttribute("href",L.href)));case 36:case"end":return e.stop()}}),e)})))).apply(this,arguments)},ln=function(){var e=ve();e&&(e.style.display="block",e.style.visibility="visible");var t=we();t&&(t.textContent="Loading...")},dn=function(){return(Jt=Jt||r($t().mark((function e(){var t;return $t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U();case 2:return e.next=4,D();case 4:if("article"===e.sent){e.next=9;break}i("StnHandler: Non-article page detected, leaving stnHandler function"),e.next=22;break;case 9:if(i("StnHandler: Article page detected, waiting for entitlements"),"undefined"!=typeof MNGAuthentication){e.next=13;break}return e.next=13,K();case 13:return e.next=15,Y();case 15:if(!e.sent.adfree){e.next=22;break}return i("StnHandler: User is premium, Waiting for send to news player to exist"),e.next=20,te("stn-player");case 20:(t=e.sent)&&(i("StnHandler: Send to news player found, removing it for adfree user",t),t.parentNode.style.display="none");case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)},fn=function(){return(qt=qt||r($t().mark((function e(){var t,n,r,o;return $t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("1"===window.authentication_config.serverEntitlements){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,U();case 4:return e.next=6,D();case 6:if("article"===e.sent){e.next=11;break}i("audioPlayerHandler: Non-article page, leaving audioPlayerHandler function"),e.next=21;break;case 11:if(i("audioPlayerHandler: Article page detected, waiting for entitlements"),"undefined"!=typeof MNGAuthentication){e.next=15;break}return e.next=15,K();case 15:return e.next=17,Y();case 17:t=e.sent,n=window.dataLayer.find((function(e){return e.Paywall_Level})).Paywall_Level,r=!(!t||!t.isEntitled),"premium"!==n||r||(i("audioPlayerHandler: LINA user on premium article, initialize audio player removal"),(o=document.getElementsByClassName("wp-remixd-voice-wrapper")).length>0?(i("audioPlayerHandler: Audio player found, removing it from the DOM"),o[0].remove()):i("audioPlayerHandler: Audio player not found or removed already"));case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)},hn=function(){return(Zt=Zt||r($t().mark((function e(){var t,n;return $t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U();case 2:return e.next=4,D();case 4:if("article"===e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,te(".article-bottom-share");case 9:(t=e.sent)&&(i("articleBottomShareHandler: Bottom article share buttons found, updating styles",t),n=document.querySelector(".article-body"),t.style.width="".concat(n.clientWidth,"px"),t.style.margin="0 auto");case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)},pn=function(){return(Qt=Qt||r($t().mark((function e(){return $t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ln(),e.next=3,un();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)};document.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("digisubs-push-container");e&&(e.classList.remove("hidden"),e.classList.add("loaded"))}));var mn,gn=function(){return(zt=zt||r($t().mark((function e(){return $t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){if(B())e();else{i("UIHandler: ","Waiting for the log-in-button class to load...");var t=setInterval(r(b().mark((function n(){return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:document.getElementsByClassName("log-in-button").length>1&&(clearInterval(t),e(!0));case 1:case"end":return n.stop()}}),n)}))),200)}}));case 2:return e.next=4,pn();case 4:dn(),fn(),hn();case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)};function yn(){yn=function(){return n};var t,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(t){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),c=new R(r||[]);return i(a,"_invoke",{value:I(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var h="suspendedStart",p="suspendedYield",m="executing",g="completed",y={};function v(){}function w(){}function E(){}var A={};l(A,c,(function(){return this}));var L=Object.getPrototypeOf,S=L&&L(L(k([])));S&&S!==r&&o.call(S,c)&&(A=S);var b=E.prototype=v.prototype=Object.create(A);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(t,n){function r(i,a,c,s){var u=f(t[i],t,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==e(d)&&o.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,c,s)}),(function(e){r("throw",e,c,s)})):n.resolve(d).then((function(e){l.value=e,c(l)}),(function(e){return r("throw",e,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return a=a?a.then(o,o):o()}})}function I(e,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=T(c,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?g:p,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function k(n){if(n||""===n){var r=n[c];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var i=-1,a=function e(){for(;++i=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}!function(){(mn=mn||r(yn().mark((function e(){return yn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:gn();case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}()})()})(); //# sourceMappingURL=mng-digisubs.uiHandler.bundle.js.map;