/*! For license information please see mng-digisubs.main.bundle.js.LICENSE.txt */ (()=>{var t={9669:(t,e,n)=>{t.exports=n(1609)},5448:(t,e,n)=>{"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),c=n(4097),s=n(4109),u=n(7985),l=n(5061),f=n(5655),h=n(5263);t.exports=function(t){return new Promise((function(e,n){var d,p=t.data,E=t.headers,A=t.responseType;function g(){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 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 S(){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=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&&(E[t.xsrfHeaderName]=N)}"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)}))}},1609:(t,e,n)=>{"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);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(5655));c.Axios=i,c.Cancel=n(5263),c.CancelToken=n(4972),c.isCancel=n(6502),c.VERSION=n(7288).version,c.all=function(t){return Promise.all(t)},c.spread=n(8713),c.isAxiosError=n(6268),t.exports=c,t.exports.default=c},5263: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},4972:(t,e,n)=>{"use strict";var r=n(5263);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";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,n)=>{"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),c=n(7185),s=n(4875),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},782:(t,e,n)=>{"use strict";var r=n(4867);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},4097:(t,e,n)=>{"use strict";var r=n(1793),o=n(7303);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},5061:(t,e,n)=>{"use strict";var r=n(481);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},3572:(t,e,n)=>{"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5655),c=n(5263);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)}))}},481: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}},7185:(t,e,n)=>{"use strict";var r=n(4867);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}},6026:(t,e,n)=>{"use strict";var r=n(5061);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)}},8527:(t,e,n)=>{"use strict";var r=n(4867),o=n(5655);t.exports=function(t,e,n){var i=this||o;return r.forEach(n,(function(n){t=n.call(i,t,e)})),t}},5655:(t,e,n)=>{"use strict";var r=n(4867),o=n(6016),i=n(481),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(5448)),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},7288:t=>{t.exports={version:"0.24.0"}},1849: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(4867);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}},7303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:(t,e,n)=>{"use strict";var r=n(4867);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(){}}},1793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:(t,e,n)=>{"use strict";var r=n(4867);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}},6016:(t,e,n)=>{"use strict";var r=n(4867);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},4109:(t,e,n)=>{"use strict";var r=n(4867),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}},8713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:(t,e,n)=>{"use strict";var r=n(7288).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}},4867:(t,e,n)=>{"use strict";var r=n(1849),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{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})(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)}))}}window.authentication_config.sessionManagementEnabled="1"===window.authentication_config.sessionManagement;const o={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,sophiEnabled:!!window.authentication_config.sophiPluginEnabled&&"1"===window.authentication_config.sophiPluginEnabled,datadogEnabled:!!window.authentication_config.enableDatadog&&"1"===window.authentication_config.enableDatadog};const i=function(){if(o.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 d(t){this.message=t}d.prototype=new Error,d.prototype.name="InvalidTokenError";const p=function(t,e){if("string"!=typeof t)throw new d("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(h(t.split(".")[n]))}catch(t){throw new d("Invalid token specified: "+t.message)}};var E=n(9669),A=n.n(E);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 g?e:g,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 d="suspendedStart",p="executing",E="completed",A={};function g(){}function v(){}function w(){}var y={};l(y,c,(function(){return this}));var m=Object.getPrototypeOf,S=m&&m(m(G([])));S&&S!==r&&o.call(S,c)&&(y=S);var O=w.prototype=g.prototype=Object.create(y);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=d;return function(i,a){if(o===p)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===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)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")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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),A}},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),A}},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(),n=e.hostname,r=n;t&&"string"==typeof t&&(r=t);var o=r.split(".");return"".concat(o[o.length-2],".").concat(o[o.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="www".concat(o),a=".www".concat(o),c=[o,i,a];n&&c.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,c.forEach((function(t){document.cookie=r.concat("domain=",t,";")}))},b=function(t){return p(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,A()({method:"get",url:"".concat(o.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,A()({method:"get",url:"".concat(o.entitlementsEndpoint,"auth0/users/").concat(encodeURIComponent(e)),headers:{"X-Api-Key":o.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(){return 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)}))},_=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))}))},k=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,_(!0);case 2:if(!t.sent){t.next=10;break}return t.next=6,U();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)},D=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,_(!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,k();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)},X=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))}))},F=function(){return new Promise((function(t,e){if(o.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)}))},H=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"onFinish";return new Promise((function(e){var n=setTimeout((function(){"undefined"!=typeof Connext?(i("Connext actually did load..."),clearTimeout(n),e(!0)):(i("Connext did not load in time. Resolving false..."),clearTimeout(n),e(!1))}),6e3);"undefined"!=typeof Connext?(i("Connext already ready."),clearTimeout(n),e(!0)):(i("Listening for Connext Ready event..."),document.addEventListener("string"==typeof t?t:"onFinish",(function(){clearTimeout(n),i("Connext loaded!"),e(!0)})))}))},Y=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)}}()},K=function(){var t=O();return!["local","develop","preprod","trbdev"].some((function(e){return t.origin.includes(e)}))},W=function(t){i("Removing storageObject : ",t),void 0!==window.localStorage.getItem(t)&&(window.localStorage.removeItem(t),i("Storage Object removed : ",t))},j=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=j;var V;window.validatePhoneNumber=function(t){return/^[0-9]([0-9 -])*[0-9]$/.test(t)};var J=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===V){t.next=2;break}return t.abrupt("return",V);case 2:return e=o.auth0Domain,n=o.auth0ClientId,t.next=5,createAuth0Client({domain:e,client_id:n,useRefreshTokens:!0,cacheLocation:"localstorage",audience:"access-extension"});case 5:return V=t.sent,t.abrupt("return",V);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)},Z=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!")},Q=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];"undefined"==typeof Connext?document.addEventListener("onInit",(function(){t&&Connext.GetOptions().Silentmode?Connext.Run():t||Connext.Run()})):t&&Connext.GetOptions().Silentmode?Connext.Run():t?i("Not rerunning Connext"):Connext.Run()},q=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},z=function(t){return Number.isInteger(Number(t))},$=function(t){o.datadogEnabled&&window.DD_RUM.addTiming(t)};var tt,et,nt,rt,ot,it,at,ct;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 g?e:g,a=Object.create(o.prototype),c=new b(r||[]);return i(a,"_invoke",{value:T(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="executing",E="completed",A={};function g(){}function v(){}function w(){}var y={};l(y,c,(function(){return this}));var m=Object.getPrototypeOf,S=m&&m(m(x([])));S&&S!==r&&o.call(S,c)&&(y=S);var N=w.prototype=g.prototype=Object.create(y);function O(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 T(t,n,r){var o=d;return function(i,a){if(o===p)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=I(c,r);if(s){if(s===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function I(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,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(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),R(n),A}},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;R(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),A}},n}var ut=function(){return(tt=tt||r(st().mark((function t(){return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_();case 2:return t.next=4,X();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)},lt=function(t){return(et=et||r(st().mark((function t(e){var n,r,o,a,c;return st().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)},ft=function(){return(nt=nt||r(st().mark((function t(){return st().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)},ht=function(t,e){return(rt=rt||r(st().mark((function t(e,n){var r,o;return st().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)},dt=function(){return(ot=ot||r(st().mark((function t(){var e,n,r;return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,X();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)},pt=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)}},Et=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)}},At=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(z(window.authentication_config["got".concat(e,"GroupTime")])?parseInt(window.authentication_config["got".concat(e,"GroupTime")],10):1);break;default:return n.event}return n},gt=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=q("GroupEnabled"),a=q("GroupDelayEnabled"),c=q("GroupTimeDelayEnabled"),s=q("got".concat(n,"GroupEnabled")),u=q("got".concat(r,"GroupDelayEnabled")),l=q("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"),Et(At("placement",n))):r&&!o&&a&&u&&!c?(i("ANALYTICS: Scroll delay enabled"),Et(At("scrolling",r))):n&&!o&&!a&&c&&l?(i("ANALYTICS: Time delay enabled"),Et(At("delayTime",n))):(i("ANALYTICS: No custom event detected"),pt(At("default")))):pt(e)}catch(t){i("ANALYTICS: Event not setup",t)}var n,r,o,a,c,s,u,l,f},vt=function(){return(it=it||r(st().mark((function t(){var e,n,r,o,a;return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e=!1,t.next=4,F();case 4:if(!(n=t.sent)||!n.token){t.next=12;break}return r=n.token,o=n.isEntitled,a=n.adfree,i("ANALYTICS: entitlements options: ",o,a),!0===a&&i("ANALYTICS: user state: found ad free",a),!0===o?(i("ANALYTICS: user state: found subscriber"),e="subscriber"):(i("ANALYTICS: user state: LINA"),e="lina"),lt(r),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)},wt=function(){return(at=at||r(st().mark((function t(){return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_();case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)};const yt={onLoadAnalytics:function(){return(ct=ct||r(st().mark((function t(){var e,n,r;return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i("ANALYTICS: Start Analytics"),ft(),window.MNGAuthentication.postAuthEvents=[],window.MNGAuthentication.preAuthGTMEvents=[],window.MNGAuthentication.postAuthEvents.push(gt),!((e=O()).pathname.startsWith("/logout")||e.pathname.startsWith("/login")||e.pathname.startsWith("/callback"))){t.next=8;break}return t.abrupt("return");case 8:return wt(),t.next=11,dt();case 11:return n=t.sent,t.next=14,vt();case 14:r=t.sent,ht(n,r);case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)},blueConicRegwallEvents:ut,callPreparedGTMEvent:pt,callCustomGTMEvent:Et};var mt,St,Nt,Ot,Lt,Tt;function It(){It=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 g?e:g,a=Object.create(o.prototype),c=new b(r||[]);return i(a,"_invoke",{value:T(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="executing",E="completed",A={};function g(){}function v(){}function w(){}var y={};l(y,c,(function(){return this}));var m=Object.getPrototypeOf,S=m&&m(m(x([])));S&&S!==r&&o.call(S,c)&&(y=S);var N=w.prototype=g.prototype=Object.create(y);function O(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 T(t,n,r){var o=d;return function(i,a){if(o===p)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=I(c,r);if(s){if(s===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function I(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,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(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),R(n),A}},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;R(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),A}},n}var Ct,Rt,bt,xt,Gt,Pt,Mt,Bt=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"{}"},Ut=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)}},_t=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)}},kt=function(){return(mt=mt||r(It().mark((function t(){var e,n,r,a,c,s,u,l,f,h,d,p,E,g,v,w,y;return It().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e="".concat(o.sessionServer,"/api/session"),i("Checking server session: ",e),t.next=5,A().get(e,{withCredentials:!0});case 5:if(!(n=t.sent).data){t.next=17;break}return l=n.data.entitlementTokenDecoded,f=n.data,h=f.accessToken,d=f.idToken,p=f.entitlementToken,E=null!==(r=null==l?void 0:l.entitlement_expiry)&&void 0!==r?r:null,g=null!==(a=null==l?void 0:l.entitlement_source)&&void 0!==a?a:null,v=null!==(c=null==l?void 0:l.entitlement_entitled)&&void 0!==c?c:null,w=null!==(s=null==l?void 0:l.entitlement_extras_adfree)&&void 0!==s?s:null,y=null!==(u=null==l?void 0:l.entitlement_level)&&void 0!==u?u:null,Ut(JSON.stringify({accessToken:h,idToken:d,entitlementToken:p,expiration:E,entitlementSource:g,isEntitled:v,adFree:w,entitlementLevel:y})),""!==p&&"string"==typeof p&&_t(p),t.abrupt("return",{accessToken:h,idToken:d,entitlementToken:p,expiration:E,entitlementSource:g,isEntitled:v,adFree:w,entitlementLevel:y});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)},Dt=function(t){return(St=St||r(It().mark((function t(e){var n;return It().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n="".concat(o.sessionServer,"/api/session"),i("Updating server session: ",n),t.next=6,A().post(n,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)},Xt=function(){return(Nt=Nt||r(It().mark((function t(){var e;return It().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e="".concat(o.sessionServer,"/api/session"),i("Deleting server session: ",e),t.next=6,A().delete(e,{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)},Ft=function(){return(Ot=Ot||r(It().mark((function t(){var e,n,r,o,a,c,s,u,l,f,h,d,p,E,A,g,v,w,y,m,S,N,O,L,T,I,C;return It().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i("Inside getSession"),t.prev=1,l=Bt(),i("Session: __MNG_Session = ",l),f=JSON.parse(l),h=f.accessToken,d=f.idToken,p=f.entitlementToken,E=f.expiration,A=f.entitlementSource,g=f.isEntitled,v=f.adFree,w=f.entitlementLevel,n=h,o=E,a=A,c=g,s=v,u=w,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,kt();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)},Ht=function(t){return(Lt=Lt||r(It().mark((function t(e){var n,r,o,a,c,s,u,l,f,h,d,p,E,A,g,v,w,y,m,S,N,O,L,T,I,C,R,b;return It().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n=Bt(),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,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?p:L,isEntitled:null==T?A: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),Ut(b),""!==R.entitlementToken&&"string"==typeof R.entitlementToken&&_t(R.entitlementToken),n===b){t.next=15;break}return t.next=15,Dt(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)},Yt=function(){return(Tt=Tt||r(It().mark((function t(){return It().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i("Ending session..."),Y(),t.next=4,Xt();case 4:localStorage.removeItem(g.LOCAL_STORAGE_SESSION_KEY);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)};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 g?e:g,a=Object.create(o.prototype),c=new b(r||[]);return i(a,"_invoke",{value:T(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="executing",E="completed",A={};function g(){}function v(){}function w(){}var y={};l(y,c,(function(){return this}));var m=Object.getPrototypeOf,S=m&&m(m(x([])));S&&S!==r&&o.call(S,c)&&(y=S);var N=w.prototype=g.prototype=Object.create(y);function O(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 T(t,n,r){var o=d;return function(i,a){if(o===p)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=I(c,r);if(s){if(s===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function I(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,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(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),R(n),A}},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;R(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),A}},n}var Wt=function(){return"logout"===(O().searchParams.get("state")||"").toLowerCase()};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.logoutCallbacks=[];var jt=function(t){return(Ct=Ct||r(Kt().mark((function t(e){var n;return Kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,J();case 2:n=t.sent,i("Calling Auth0 logout..."),n.logout({returnTo:e});case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)},Vt=function(){return"undefined"==typeof CnnXt?(i("Connext was not loaded."),!1):Connext.Storage.GetUserState()},Jt=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=/")}},Zt=function(){return(Rt=Rt||r(Kt().mark((function t(){var e,n,o,a,c;return Kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i("Attempting to logout..."),Jt(),!window.authentication_config.sessionManagementEnabled){t.next=7;break}return t.next=5,Yt();case 5:t.next=8;break;case 7:Y();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...")})),W("hhsl"),W("userNewsLetterData"),W(g.REGWALL_USER_IS_SUBSCRIBED),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=30,H();case 30:if(!t.sent){t.next=62;break}if(i("Auth | Silent mode enabled ",Connext.GetOptions().Silentmode),i("Auth | Run connext manually if Silent Mode is on."),Q(!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),!K()){t.next=43;break}i("About to call Connext Logout..."),setTimeout((function(){Connext.Logout()}),500),t.next=60;break;case 43:if("Logged In"!==Vt()){t.next=57;break}if(i("Connext user state is logged in, setting timeout..."),setTimeout(r(Kt().mark((function t(){return Kt().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,jt(o);case 3:case"end":return t.stop()}}),t)}))),8e3),"function"!=typeof Connext._logout){t.next=52;break}return i("About to call Connext _logout..."),t.next=50,Connext._logout();case 50:t.next=55;break;case 52:return i("About to call Connext Logout..."),t.next=55,Connext.Logout();case 55:t.next=60;break;case 57:return i("Connext user state is logged out, not calling it, going to auth0 logout."),t.next=60,jt(o);case 60:t.next=65;break;case 62:return i("Connext Logout was NOT called"),t.next=65,jt(o);case 65:case"end":return t.stop()}}),t,null,[[8,16]])})))).apply(this,arguments)},Qt=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},qt=function(){window.MNGAuthentication.preAuthGTMEvents.forEach((function(t){return pt(t)})),i("Cycled through preauth GTM events.")},zt=function(t,e,n,o,a){return(bt=bt||r(Kt().mark((function t(e,n,r,o,a){var c,u,l,f,h,d,p,E,A,g,v,w,y;return Kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i("Attempting to login..."),Qt()>4.5&&localStorage.clear(),qt(),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,J();case 7:if(h=t.sent,d=O(),p=d.origin,E=new URL("".concat(p,"/callback")),A={},d.searchParams.get("regwall")&&(d.searchParams.get("returnUrl")&&(g=d.searchParams.get("returnUrl")),d.searchParams.get("auth_redirect")&&(g=d.searchParams.get("auth_redirect"))),d.pathname.startsWith("/login")||d.pathname.startsWith("/callback")?d.searchParams.get("returnUrl")?E.searchParams.set("auth_redirect",d.searchParams.get("returnUrl")):a&&E.searchParams.set("auth_redirect",a):E.searchParams.set("auth_redirect",d.toString()),g&&"regwall"!==e&&E.searchParams.set("auth_redirect",g),"true"===d.searchParams.get("close-after-finish")&&E.searchParams.set("close-after-finish","true"),"true"!==d.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:Y();case 23:return null!==(f=d.searchParams.get("login-with"))?A.connection=f:n&&(A.connection=n),v="none",e&&"regwall"===e&&(E.searchParams.set("regwall","true"),v="signUp",i("Logging in with regwall")),e&&(E.searchParams.set("loginsource",e),i("Logging in with ".concat(e))),r&&(A.login_hint=r),A.redirect_uri=E.toString(),A.initialScreen=v,"googleonetap"!==e&&(A.prompt="select_account"),null!==(w=d.searchParams.get("ampRegiWall"))&&(y=window.location.hostname,A.ampRegiWall=w,A.sourceDomain=y.replace("www.","").replace("preprod.","").replace("develop.",""),A.initialScreen="signUp",A.preferenceId=d.searchParams.get("prefId")),t.next=36,h.loginWithRedirect(A);case 36:case"end":return t.stop()}}),t)})))).apply(this,arguments)},$t=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 te=function(){return(xt=xt||r(Kt().mark((function t(){var e,n,o,a,c,s,u,l,f,h,d,p,E,A,v,w,y,m,S,N,L;return Kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Jt(),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)),zt(!1,!1,!1,[],c)):zt()):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",zt(!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,J();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),d=f.__raw,t.next=28,l.getTokenSilently();case 28:return p=t.sent,t.prev=29,i("Cycling through login callbacks..."),t.next=33,$t();case 33:return A=window.MNGAuthentication.oidcLoginCallbacks.map((function(t){return(E=E||r(Kt().mark((function t(e){return Kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e(d));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)})),t.next=36,Promise.all(A);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:p,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(W(g.REGWALL_USER_IS_SUBSCRIBED),!window.authentication_config.sessionManagementEnabled){t.next=66;break}return i("Saving idToken to session server"),t.next=66,Ht({idToken:d,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 S=e.searchParams.get("loginsource"),N=window.MNGAuthentication.postAuthEvents.map((function(t){return(m=m||r(Kt().mark((function t(e){return Kt().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)},ee=function(){return(Gt=Gt||r(Kt().mark((function t(){return Kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i("ANALYTICS: fireBC events"),t.next=3,ut();case 3:i("ANALYTICS: bc values should be filled");case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)},ne=function(){return(Pt=Pt||r(Kt().mark((function t(){var e,n,r,o,a,c,s,u,l;return Kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,X();case 2:if(e=t.sent,n=e.idToken,r=e.isAuthenticated,""===n){t.next=17;break}return t.prev=6,o=b(n),a=o.email,c=o.picture,s=o.sub,(u=s.split("|")).pop(),l=u.join("|"),t.abrupt("return",{authenticated:r,email:a,picture:c,userId:s,connectionSource:l});case 14:t.prev=14,t.t0=t.catch(6),i("Unable to parse idToken: ",n," Error: ",t.t0);case 17:return t.abrupt("return",{authenticated:r});case 18:case"end":return t.stop()}}),t,null,[[6,14]])})))).apply(this,arguments)};window.MNGAuthentication.login=zt,window.MNGAuthentication.logout=Zt,window.MNGAuthentication.getUserInfo=ne;var re=function(){return(Mt=Mt||r(Kt().mark((function e(){var n,a,c,s,u,l,f,h,d,p,E,A,v;return Kt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=O(),c=!1,s="",u=!1,l={},Wt()&&Q(!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(Kt().mark((function e(){var n,r;return Kt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,J();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,Zt();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(d=null,p=JSON.parse(window.localStorage.getItem(g.LOCAL_STORAGE_SESSION_KEY)),"{}"!==Bt()){e.next=24;break}return p&&(d=p.jwt),e.next=24,Ht({idToken:s,entitlementToken:d});case 24:e.next=38;break;case 26:return e.prev=26,e.next=29,Ft();case 29:E=e.sent,s=E.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.blueconicEnabled||!o.bcLowaSegements){e.next=47;break}return e.next=45,D();case 45:(A=e.sent).isSub&&(c=g.USER_IS_LOWA,l={sub:A.uuid});case 47:if(Z({isAuthenticated:c,idToken:s,accessToken:u,claims:l}),$("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")&&!Wt()&&(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")&&!Wt()?(i("Page is login. Attempting to log user in..."),zt()):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,ee();case 56:i("Now login from regwall"),zt(),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,te();case 64:case"end":return e.stop()}}),e,null,[[26,35]])})))).apply(this,arguments)};window.MNGAuthentication.init=re;const oe={init:re};var ie=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 ae,ce,se;function ue(){ue=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 g?e:g,a=Object.create(o.prototype),c=new b(r||[]);return i(a,"_invoke",{value:T(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="executing",E="completed",A={};function g(){}function v(){}function w(){}var y={};l(y,c,(function(){return this}));var m=Object.getPrototypeOf,S=m&&m(m(x([])));S&&S!==r&&o.call(S,c)&&(y=S);var N=w.prototype=g.prototype=Object.create(y);function O(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 T(t,n,r){var o=d;return function(i,a){if(o===p)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=I(c,r);if(s){if(s===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function I(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,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(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),R(n),A}},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;R(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),A}},n}var le=function(t){return(ae=ae||r(ue().mark((function t(e){var n;return ue().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i("Google token ",e),n=b(e.credential),t.prev=2,pt("one_tap_click"),localStorage.setItem("regwallSuccess","yes"),!o.newsletterId){t.next=9;break}return i("About to call Connext's subscribeToNewsletter function"),t.next=9,ie(n.email,o.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.useTribMainGoogle?"Trib-Google":"google-oauth2",n.email);case 17:case"end":return t.stop()}}),t,null,[[2,11]])})))).apply(this,arguments)},fe=function(){return(ce=ce||r(ue().mark((function t(){return ue().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:google.accounts.id.initialize({client_id:o.googleClientId,callback:le,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"),pt(e)}));case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)};const he={init:function(){return(se=se||r(ue().mark((function t(){var e,n,r,a,c;return ue().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o.oneTapEnabled){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,X();case 4:if(e=t.sent,n=e.isAuthenticated,r=O(),n!==g.USER_IS_LOWA){t.next=15;break}return t.next=10,k();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,fe(c);case 23:case"end":return t.stop()}}),t)})))).apply(this,arguments)}};var de;function pe(){pe=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 g?e:g,a=Object.create(o.prototype),c=new b(r||[]);return i(a,"_invoke",{value:T(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="executing",E="completed",A={};function g(){}function v(){}function w(){}var y={};l(y,c,(function(){return this}));var m=Object.getPrototypeOf,S=m&&m(m(x([])));S&&S!==r&&o.call(S,c)&&(y=S);var N=w.prototype=g.prototype=Object.create(y);function O(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 T(t,n,r){var o=d;return function(i,a){if(o===p)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=I(c,r);if(s){if(s===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function I(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,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(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),R(n),A}},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;R(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),A}},n}window.disableAuth0AuthFlow=!0,function(){(de=de||r(pe().mark((function t(){return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i("Settings: ",o),oe.init(),yt.onLoadAnalytics(),t.next=5,he.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={9669:(t,e,n)=>{t.exports=n(1609)},5448:(t,e,n)=>{"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),c=n(4097),s=n(4109),u=n(7985),l=n(5061),f=n(5655),h=n(5263);t.exports=function(t){return new Promise((function(e,n){var d,p=t.data,E=t.headers,A=t.responseType;function g(){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 y=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";E.Authorization="Basic "+btoa(y+":"+w)}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===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)}))}},1609:(t,e,n)=>{"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);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(5655));c.Axios=i,c.Cancel=n(5263),c.CancelToken=n(4972),c.isCancel=n(6502),c.VERSION=n(7288).version,c.all=function(t){return Promise.all(t)},c.spread=n(8713),c.isAxiosError=n(6268),t.exports=c,t.exports.default=c},5263: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},4972:(t,e,n)=>{"use strict";var r=n(5263);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";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,n)=>{"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),c=n(7185),s=n(4875),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},782:(t,e,n)=>{"use strict";var r=n(4867);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},4097:(t,e,n)=>{"use strict";var r=n(1793),o=n(7303);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},5061:(t,e,n)=>{"use strict";var r=n(481);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},3572:(t,e,n)=>{"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5655),c=n(5263);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)}))}},481: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}},7185:(t,e,n)=>{"use strict";var r=n(4867);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}},6026:(t,e,n)=>{"use strict";var r=n(5061);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)}},8527:(t,e,n)=>{"use strict";var r=n(4867),o=n(5655);t.exports=function(t,e,n){var i=this||o;return r.forEach(n,(function(n){t=n.call(i,t,e)})),t}},5655:(t,e,n)=>{"use strict";var r=n(4867),o=n(6016),i=n(481),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(5448)),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},7288:t=>{t.exports={version:"0.24.0"}},1849: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(4867);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}},7303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:(t,e,n)=>{"use strict";var r=n(4867);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(){}}},1793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:(t,e,n)=>{"use strict";var r=n(4867);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}},6016:(t,e,n)=>{"use strict";var r=n(4867);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},4109:(t,e,n)=>{"use strict";var r=n(4867),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}},8713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:(t,e,n)=>{"use strict";var r=n(7288).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}},4867:(t,e,n)=>{"use strict";var r=n(1849),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{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})(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(9669),d=n.n(h);window.authentication_config.sessionManagementEnabled="1"===window.authentication_config.sessionManagement;const p={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,sophiEnabled:!!window.authentication_config.sophiPluginEnabled&&"1"===window.authentication_config.sophiPluginEnabled,datadogEnabled:!!window.authentication_config.enableDatadog&&"1"===window.authentication_config.enableDatadog};const E=function(){if(p.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),b(n),A}},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),A}},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(),n=e.hostname,r=n;t&&"string"==typeof t&&(r=t);var o=r.split(".");return"".concat(o[o.length-2],".").concat(o[o.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="www".concat(o),c=".www".concat(o),s=[o,i,c];n&&s.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,s.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,d()({method:"get",url:"".concat(p.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,d()({method:"get",url:"".concat(p.entitlementsEndpoint,"auth0/users/").concat(encodeURIComponent(e)),headers:{"X-Api-Key":p.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(){return 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)}))},M=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))}))},_=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,M(!0);case 2:if(!t.sent){t.next=10;break}return t.next=6,U();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)},D=function(){return(w=w||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,M(!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,_();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)},k=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))}))},X=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"onFinish";return new Promise((function(e){var n=setTimeout((function(){"undefined"!=typeof Connext?(E("Connext actually did load..."),clearTimeout(n),e(!0)):(E("Connext did not load in time. Resolving false..."),clearTimeout(n),e(!1))}),6e3);"undefined"!=typeof Connext?(E("Connext already ready."),clearTimeout(n),e(!0)):(E("Listening for Connext Ready event..."),document.addEventListener("string"==typeof t?t:"onFinish",(function(){clearTimeout(n),E("Connext loaded!"),e(!0)})))}))},F=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)}}()},H=function(){var t=S();return!["local","develop","preprod","trbdev"].some((function(e){return t.origin.includes(e)}))},K=function(t){E("Removing storageObject : ",t),void 0!==window.localStorage.getItem(t)&&(window.localStorage.removeItem(t),E("Storage Object removed : ",t))},Y=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=Y;var W;window.validatePhoneNumber=function(t){return/^[0-9]([0-9 -])*[0-9]$/.test(t)};var j=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===W){t.next=2;break}return t.abrupt("return",W);case 2:return e=p.auth0Domain,n=p.auth0ClientId,t.next=5,createAuth0Client({domain:e,client_id:n,useRefreshTokens:!0,cacheLocation:"localstorage",audience:"access-extension"});case 5:return W=t.sent,t.abrupt("return",W);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)},V=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(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];"undefined"==typeof Connext?document.addEventListener("onInit",(function(){t&&Connext.GetOptions().Silentmode?Connext.Run():t||Connext.Run()})):t&&Connext.GetOptions().Silentmode?Connext.Run():t?E("Not rerunning Connext"):Connext.Run()},Z=function(t){p.datadogEnabled&&window.DD_RUM.addTiming(t)};function Q(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 q;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 g?e:g,a=Object.create(o.prototype),c=new b(r||[]);return i(a,"_invoke",{value:T(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="executing",E="completed",A={};function g(){}function v(){}function y(){}var w={};l(w,c,(function(){return this}));var m=Object.getPrototypeOf,N=m&&m(m(x([])));N&&N!==r&&o.call(N,c)&&(w=N);var S=y.prototype=g.prototype=Object.create(w);function O(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 T(t,n,r){var o=d;return function(i,a){if(o===p)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=I(c,r);if(s){if(s===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function I(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,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(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),R(n),A}},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;R(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),A}},n}var $=function(){return(q=q||r(z().mark((function t(){return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,M();case 2:return t.next=4,k();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)},tt=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 et,nt,rt,ot,it,at;function ct(){ct=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 g?e:g,a=Object.create(o.prototype),c=new b(r||[]);return i(a,"_invoke",{value:T(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="executing",E="completed",A={};function g(){}function v(){}function y(){}var w={};l(w,c,(function(){return this}));var m=Object.getPrototypeOf,N=m&&m(m(x([])));N&&N!==r&&o.call(N,c)&&(w=N);var S=y.prototype=g.prototype=Object.create(w);function O(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 T(t,n,r){var o=d;return function(i,a){if(o===p)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=I(c,r);if(s){if(s===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function I(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,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(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),R(n),A}},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;R(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),A}},n}var st,ut,lt,ft,ht,dt,pt,Et=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"{}"},At=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)}},gt=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)}},vt=function(){return(et=et||r(ct().mark((function t(){var e,n,r,o,i,a,c,s,u,l,f,h,A,g,v,y,w;return ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e="".concat(p.sessionServer,"/api/session"),E("Checking server session: ",e),t.next=5,d().get(e,{withCredentials:!0});case 5:if(!(n=t.sent).data){t.next=17;break}return s=n.data.entitlementTokenDecoded,u=n.data,l=u.accessToken,f=u.idToken,h=u.entitlementToken,A=null!==(r=null==s?void 0:s.entitlement_expiry)&&void 0!==r?r:null,g=null!==(o=null==s?void 0:s.entitlement_source)&&void 0!==o?o:null,v=null!==(i=null==s?void 0:s.entitlement_entitled)&&void 0!==i?i:null,y=null!==(a=null==s?void 0:s.entitlement_extras_adfree)&&void 0!==a?a:null,w=null!==(c=null==s?void 0:s.entitlement_level)&&void 0!==c?c:null,At(JSON.stringify({accessToken:l,idToken:f,entitlementToken:h,expiration:A,entitlementSource:g,isEntitled:v,adFree:y,entitlementLevel:w})),""!==h&&"string"==typeof h&>(h),t.abrupt("return",{accessToken:l,idToken:f,entitlementToken:h,expiration:A,entitlementSource:g,isEntitled:v,adFree:y,entitlementLevel:w});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)},yt=function(t){return(nt=nt||r(ct().mark((function t(e){var n;return ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n="".concat(p.sessionServer,"/api/session"),E("Updating server session: ",n),t.next=6,d().post(n,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)},wt=function(){return(rt=rt||r(ct().mark((function t(){var e;return ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e="".concat(p.sessionServer,"/api/session"),E("Deleting server session: ",e),t.next=6,d().delete(e,{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)},mt=function(){return(ot=ot||r(ct().mark((function t(){var e,n,r,o,i,a,c,s,u,l,f,h,d,p,A,g,v,y,w,m,N,S,O,L,T,I,C;return ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(E("Inside getSession"),t.prev=1,u=Et(),E("Session: __MNG_Session = ",u),l=JSON.parse(u),f=l.accessToken,h=l.idToken,d=l.entitlementToken,p=l.expiration,A=l.entitlementSource,g=l.isEntitled,v=l.adFree,y=l.entitlementLevel,n=f,o=p,i=A,a=g,c=v,s=y,E("Session: check both tokens: ",e=h,r=d),void 0!==h&&void 0!==d&&null!==h&&null!==d){t.next=35;break}return E("Session: missing id or entitlements, try session server"),t.next=18,vt();case 18:w=t.sent,m=w.accessToken,N=w.idToken,S=w.entitlementToken,O=w.expiration,L=w.entitlementSource,T=w.isEntitled,I=w.adFree,C=w.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)},Nt=function(t){return(it=it||r(ct().mark((function t(e){var n,r,o,i,a,c,s,u,l,f,h,d,p,A,g,v,y,w,m,N,S,O,L,T,I,C,R,b;return ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n=Et(),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,d=void 0===h?null:h,p=r.isEntitled,A=void 0===p?null:p,g=r.adFree,v=void 0===g?null:g,y=r.entitlementLevel,w=void 0===y?null:y,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?d:L,isEntitled:null==T?A:T,adFree:null==I?v:I,entitlementLevel:null==C?w:C},E("Current session data: ",r),E("New session data: ",e),E("Updated session data:",R),b=JSON.stringify(R),At(b),""!==R.entitlementToken&&"string"==typeof R.entitlementToken&>(R.entitlementToken),n===b){t.next=15;break}return t.next=15,yt(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)},St=function(){return(at=at||r(ct().mark((function t(){return ct().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return E("Ending session..."),F(),t.next=4,wt();case 4:localStorage.removeItem(A.LOCAL_STORAGE_SESSION_KEY);case 5:case"end":return t.stop()}}),t)})))).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 g?e:g,a=Object.create(o.prototype),c=new b(r||[]);return i(a,"_invoke",{value:T(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="executing",E="completed",A={};function g(){}function v(){}function y(){}var w={};l(w,c,(function(){return this}));var m=Object.getPrototypeOf,N=m&&m(m(x([])));N&&N!==r&&o.call(N,c)&&(w=N);var S=y.prototype=g.prototype=Object.create(w);function O(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 T(t,n,r){var o=d;return function(i,a){if(o===p)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=I(c,r);if(s){if(s===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function I(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,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(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),R(n),A}},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;R(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),A}},n}var Lt=function(){return"logout"===(S().searchParams.get("state")||"").toLowerCase()};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.logoutCallbacks=[];var Tt=function(t){return(st=st||r(Ot().mark((function t(e){var n;return Ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,j();case 2:n=t.sent,E("Calling Auth0 logout..."),n.logout({returnTo:e});case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)},It=function(){return"undefined"==typeof CnnXt?(E("Connext was not loaded."),!1):Connext.Storage.GetUserState()},Ct=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=/")}},Rt=function(){return(ut=ut||r(Ot().mark((function t(){var e,n,o,i,a;return Ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(E("Attempting to logout..."),Ct(),!window.authentication_config.sessionManagementEnabled){t.next=7;break}return t.next=5,St();case 5:t.next=8;break;case 7:F();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...")})),K("hhsl"),K("userNewsLetterData"),K(A.REGWALL_USER_IS_SUBSCRIBED),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=30,X();case 30:if(!t.sent){t.next=62;break}if(E("Auth | Silent mode enabled ",Connext.GetOptions().Silentmode),E("Auth | Run connext manually if Silent Mode is on."),J(!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),!H()){t.next=43;break}E("About to call Connext Logout..."),setTimeout((function(){Connext.Logout()}),500),t.next=60;break;case 43:if("Logged In"!==It()){t.next=57;break}if(E("Connext user state is logged in, setting timeout..."),setTimeout(r(Ot().mark((function t(){return Ot().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,Tt(o);case 3:case"end":return t.stop()}}),t)}))),8e3),"function"!=typeof Connext._logout){t.next=52;break}return E("About to call Connext _logout..."),t.next=50,Connext._logout();case 50:t.next=55;break;case 52:return E("About to call Connext Logout..."),t.next=55,Connext.Logout();case 55:t.next=60;break;case 57:return E("Connext user state is logged out, not calling it, going to auth0 logout."),t.next=60,Tt(o);case 60:t.next=65;break;case 62:return E("Connext Logout was NOT called"),t.next=65,Tt(o);case 65:case"end":return t.stop()}}),t,null,[[8,16]])})))).apply(this,arguments)},bt=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},xt=function(){window.MNGAuthentication.preAuthGTMEvents.forEach((function(t){return tt(t)})),E("Cycled through preauth GTM events.")},Gt=function(t,e,n,o,i){return(lt=lt||r(Ot().mark((function t(e,n,r,o,i){var a,c,s,u,l,f,h,d,p,A,g,v,y;return Ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return E("Attempting to login..."),bt()>4.5&&localStorage.clear(),xt(),o&&(a=[],c=window.localStorage.getItem("callbackEvents"),s=JSON.parse(c),a=s&&s.length>0?Q(new Set([].concat(Q(o),Q(s)))):o,window.localStorage.setItem("callbackEvents",JSON.stringify(a))),u=null,t.next=7,j();case 7:if(l=t.sent,f=S(),h=f.origin,d=new URL("".concat(h,"/callback")),p={},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")?d.searchParams.set("auth_redirect",f.searchParams.get("returnUrl")):i&&d.searchParams.set("auth_redirect",i):d.searchParams.set("auth_redirect",f.toString()),A&&"regwall"!==e&&d.searchParams.set("auth_redirect",A),"true"===f.searchParams.get("close-after-finish")&&d.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,St();case 20:t.next=23;break;case 22:F();case 23:return null!==(u=f.searchParams.get("login-with"))?p.connection=u:n&&(p.connection=n),g="none",e&&"regwall"===e&&(d.searchParams.set("regwall","true"),g="signUp",E("Logging in with regwall")),e&&(d.searchParams.set("loginsource",e),E("Logging in with ".concat(e))),r&&(p.login_hint=r),p.redirect_uri=d.toString(),p.initialScreen=g,"googleonetap"!==e&&(p.prompt="select_account"),null!==(v=f.searchParams.get("ampRegiWall"))&&(y=window.location.hostname,p.ampRegiWall=v,p.sourceDomain=y.replace("www.","").replace("preprod.","").replace("develop.",""),p.initialScreen="signUp",p.preferenceId=f.searchParams.get("prefId")),t.next=36,l.loginWithRedirect(p);case 36:case"end":return t.stop()}}),t)})))).apply(this,arguments)},Pt=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 Bt=function(){return(ft=ft||r(Ot().mark((function t(){var e,n,o,i,a,c,s,u,l,f,h,d,p,g,v,y,w,m,N,O,L;return Ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Ct(),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)),Gt(!1,!1,!1,[],a)):Gt()):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",Gt(!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,j();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 d=t.sent,t.prev=29,E("Cycling through login callbacks..."),t.next=33,Pt();case 33:return g=window.MNGAuthentication.oidcLoginCallbacks.map((function(t){return(p=p||r(Ot().mark((function t(e){return Ot().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:d,userId:f.sub,email:f.email,picture:f.picture},y=!1,w="",!n){t.next=61;break}return t.prev=46,t.next=49,x(v.userId);case 49:return w=t.sent,E("Encrypted apple uuid is: ".concat(w)),t.next=53,b(w);case 53:y=t.sent,E("Apple sub status is: ".concat(y)),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(K(A.REGWALL_USER_IS_SUBSCRIBED),!window.authentication_config.sessionManagementEnabled){t.next=66;break}return E("Saving idToken to session server"),t.next=66,Nt({idToken:h,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 N=e.searchParams.get("loginsource"),O=window.MNGAuthentication.postAuthEvents.map((function(t){return(m=m||r(Ot().mark((function t(e){return Ot().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&&y&&L.searchParams.append("access_token",w),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)},Ut=function(){return(ht=ht||r(Ot().mark((function t(){return Ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return E("ANALYTICS: fireBC events"),t.next=3,$();case 3:E("ANALYTICS: bc values should be filled");case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)},Mt=function(){return(dt=dt||r(Ot().mark((function t(){var e,n,r,o,i,a,c,s,u;return Ot().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,k();case 2:if(e=t.sent,n=e.idToken,r=e.isAuthenticated,""===n){t.next=17;break}return t.prev=6,o=R(n),i=o.email,a=o.picture,c=o.sub,(s=c.split("|")).pop(),u=s.join("|"),t.abrupt("return",{authenticated:r,email:i,picture:a,userId:c,connectionSource:u});case 14:t.prev=14,t.t0=t.catch(6),E("Unable to parse idToken: ",n," Error: ",t.t0);case 17:return t.abrupt("return",{authenticated:r});case 18:case"end":return t.stop()}}),t,null,[[6,14]])})))).apply(this,arguments)};window.MNGAuthentication.login=Gt,window.MNGAuthentication.logout=Rt,window.MNGAuthentication.getUserInfo=Mt;var _t=function(){return(pt=pt||r(Ot().mark((function e(){var n,o,i,a,c,s,u,l,f,h,d,g,v;return Ot().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=S(),i=!1,a="",c=!1,s={},Lt()&&J(!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(Ot().mark((function e(){var n,r;return Ot().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,j();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,Rt();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)),"{}"!==Et()){e.next=24;break}return h&&(f=h.jwt),e.next=24,Nt({idToken:a,entitlementToken:f});case 24:e.next=38;break;case 26:return e.prev=26,e.next=29,mt();case 29:d=e.sent,a=d.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||!p.blueconicEnabled||!p.bcLowaSegements){e.next=47;break}return e.next=45,D();case 45:(g=e.sent).isSub&&(i=A.USER_IS_LOWA,s={sub:g.uuid});case 47:if(V({isAuthenticated:i,idToken:a,accessToken:c,claims:s}),Z("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")&&!Lt()&&(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")&&!Lt()?(E("Page is login. Attempting to log user in..."),Gt()):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,Ut();case 56:E("Now login from regwall"),Gt(),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,Bt();case 64:case"end":return e.stop()}}),e,null,[[26,35]])})))).apply(this,arguments)};window.MNGAuthentication.init=_t;var Dt,kt,Xt;function Ft(){Ft=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 g?e:g,a=Object.create(o.prototype),c=new b(r||[]);return i(a,"_invoke",{value:T(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="executing",E="completed",A={};function g(){}function v(){}function y(){}var w={};l(w,c,(function(){return this}));var m=Object.getPrototypeOf,N=m&&m(m(x([])));N&&N!==r&&o.call(N,c)&&(w=N);var S=y.prototype=g.prototype=Object.create(w);function O(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 T(t,n,r){var o=d;return function(i,a){if(o===p)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=I(c,r);if(s){if(s===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function I(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,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(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),R(n),A}},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;R(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),A}},n}var Ht=function(){return new Promise((function(t){E("Waiting for Connext onFinish to happen."),document.addEventListener("onFinish",(function(){E("Connext onFinish successful."),t(!0)}))}))},Kt=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)}}))},Yt=function(){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)}}))},Wt=function(){H()||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])}}))},jt=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)}},Vt=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;jt(r)}catch(t){E("Failed to set auth0_sub: ",t)}},Jt=function(t){try{if("string"==typeof t){var e=R(t).sub;jt(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)}},Zt=function(){return(Dt=Dt||r(Ft().mark((function t(){var e,n,r;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ht();case 2:if(null===(e=window.localStorage.getItem("newsletter_to_subscribe"))){t.next=13;break}return t.next=6,Mt();case 6:return n=t.sent,r=n.email,E("CONNEXT: about to sign up ".concat(r," to ").concat(e)),t.next=11,Kt(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)},Qt=function(){return(kt=kt||r(Ft().mark((function t(){var e;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,X("onInit");case 2:if(e=t.sent,!p.sophiEnabled){t.next=5;break}return t.abrupt("return");case 5:e&&Connext.GetOptions().Silentmode&&(E("Silent mode, running Connext now."),J());case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)};const qt={init:function(){return(Xt=Xt||r(Ft().mark((function t(){var e;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Yt(),Wt(),Zt(),MNGAuthentication.oidcLoginCallbacks.push(Jt),Qt(),t.next=7,k();case 7:e=t.sent,Vt(e);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}};var zt;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 g?e:g,a=Object.create(o.prototype),c=new b(r||[]);return i(a,"_invoke",{value:T(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="executing",E="completed",A={};function g(){}function v(){}function y(){}var w={};l(w,c,(function(){return this}));var m=Object.getPrototypeOf,N=m&&m(m(x([])));N&&N!==r&&o.call(N,c)&&(w=N);var S=y.prototype=g.prototype=Object.create(w);function O(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 T(t,n,r){var o=d;return function(i,a){if(o===p)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=I(c,r);if(s){if(s===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function I(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,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(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),R(n),A}},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;R(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),A}},n}!function(){(zt=zt||r($t().mark((function t(){return $t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return qt.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={9669:(t,e,n)=>{t.exports=n(1609)},5448:(t,e,n)=>{"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),c=n(4097),s=n(4109),u=n(7985),l=n(5061),f=n(5655),h=n(5263);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)}))}},1609:(t,e,n)=>{"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);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(5655));c.Axios=i,c.Cancel=n(5263),c.CancelToken=n(4972),c.isCancel=n(6502),c.VERSION=n(7288).version,c.all=function(t){return Promise.all(t)},c.spread=n(8713),c.isAxiosError=n(6268),t.exports=c,t.exports.default=c},5263: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},4972:(t,e,n)=>{"use strict";var r=n(5263);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";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,n)=>{"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),c=n(7185),s=n(4875),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},782:(t,e,n)=>{"use strict";var r=n(4867);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},4097:(t,e,n)=>{"use strict";var r=n(1793),o=n(7303);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},5061:(t,e,n)=>{"use strict";var r=n(481);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},3572:(t,e,n)=>{"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5655),c=n(5263);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)}))}},481: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}},7185:(t,e,n)=>{"use strict";var r=n(4867);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}},6026:(t,e,n)=>{"use strict";var r=n(5061);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)}},8527:(t,e,n)=>{"use strict";var r=n(4867),o=n(5655);t.exports=function(t,e,n){var i=this||o;return r.forEach(n,(function(n){t=n.call(i,t,e)})),t}},5655:(t,e,n)=>{"use strict";var r=n(4867),o=n(6016),i=n(481),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(5448)),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},7288:t=>{t.exports={version:"0.24.0"}},1849: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(4867);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}},7303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:(t,e,n)=>{"use strict";var r=n(4867);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(){}}},1793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:(t,e,n)=>{"use strict";var r=n(4867);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}},6016:(t,e,n)=>{"use strict";var r=n(4867);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},4109:(t,e,n)=>{"use strict";var r=n(4867),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}},8713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:(t,e,n)=>{"use strict";var r=n(7288).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}},4867:(t,e,n)=>{"use strict";var r=n(1849),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{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})(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)}))}}window.authentication_config.sessionManagementEnabled="1"===window.authentication_config.sessionManagement;const o={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,sophiEnabled:!!window.authentication_config.sophiPluginEnabled&&"1"===window.authentication_config.sophiPluginEnabled,datadogEnabled:!!window.authentication_config.enableDatadog&&"1"===window.authentication_config.enableDatadog};const i=function(){if(o.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(9669),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 N?e:N,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="executing",E="completed",A={};function N(){}function v(){}function S(){}var O={};l(O,c,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(x([])));y&&y!==r&&o.call(y,c)&&(O=y);var w=S.prototype=N.prototype=Object.create(O);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===p)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===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)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")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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),A}},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),A}},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(),n=e.hostname,r=n;t&&"string"==typeof t&&(r=t);var o=r.split(".");return"".concat(o[o.length-2],".").concat(o[o.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="www".concat(o),a=".www".concat(o),s=[o,i,a];n&&s.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,s.forEach((function(t){document.cookie=r.concat("domain=",t,";")}))},R=function(t){return h(t)},C=function(){return"complete"===document.readyState},b=function(){return new Promise((function(t){if(("interactive"===document.readyState||C())&&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)}}))},G=function(t){return(S=S||r(T().mark((function t(e){var n,r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b();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),r=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(r)){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(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];"undefined"==typeof Connext?document.addEventListener("onInit",(function(){t&&Connext.GetOptions().Silentmode?Connext.Run():t||Connext.Run()})):t&&Connext.GetOptions().Silentmode?Connext.Run():t?i("Not rerunning Connext"):Connext.Run()},D=function(t){o.datadogEnabled&&window.DD_RUM.addTiming(t)};var k,X,F,H;function _(){_=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 N?e:N,a=Object.create(o.prototype),c=new b(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 d="suspendedStart",p="executing",E="completed",A={};function N(){}function v(){}function S(){}var O={};l(O,c,(function(){return this}));var T=Object.getPrototypeOf,m=T&&T(T(G([])));m&&m!==r&&o.call(m,c)&&(O=m);var y=S.prototype=N.prototype=Object.create(O);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function g(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=d;return function(i,a){if(o===p)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=L(c,r);if(s){if(s===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function L(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,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(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),C(n),A}},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;C(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),A}},n}var K,Y,j,V,W,J,Z,Q,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"{}"},z=function(t){try{i("Setting local storage session",t),localStorage.setItem(N,t)}catch(t){i("Unable to save session from local storage: ",t)}},tt=function(t){try{I(A,t,{path:"/",domain:g(),expires:365,secure:!0})}catch(t){i("Unable to save session to cookie storage: ",t)}},et=function(){return(k=k||r(_().mark((function t(){var e,n,r,a,c,s,u,l,f,h,d,E,A,N,v,S,O;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e="".concat(o.sessionServer,"/api/session"),i("Checking server session: ",e),t.next=5,p().get(e,{withCredentials:!0});case 5:if(!(n=t.sent).data){t.next=17;break}return l=n.data.entitlementTokenDecoded,f=n.data,h=f.accessToken,d=f.idToken,E=f.entitlementToken,A=null!==(r=null==l?void 0:l.entitlement_expiry)&&void 0!==r?r:null,N=null!==(a=null==l?void 0:l.entitlement_source)&&void 0!==a?a:null,v=null!==(c=null==l?void 0:l.entitlement_entitled)&&void 0!==c?c:null,S=null!==(s=null==l?void 0:l.entitlement_extras_adfree)&&void 0!==s?s:null,O=null!==(u=null==l?void 0:l.entitlement_level)&&void 0!==u?u:null,z(JSON.stringify({accessToken:h,idToken:d,entitlementToken:E,expiration:A,entitlementSource:N,isEntitled:v,adFree:S,entitlementLevel:O})),""!==E&&"string"==typeof E&&tt(E),t.abrupt("return",{accessToken:h,idToken:d,entitlementToken:E,expiration:A,entitlementSource:N,isEntitled:v,adFree:S,entitlementLevel:O});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)},nt=function(t){return(X=X||r(_().mark((function t(e){var n;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n="".concat(o.sessionServer,"/api/session"),i("Updating server session: ",n),t.next=6,p().post(n,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)},rt=function(){return(F=F||r(_().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 _().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,et();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)},ot=function(t){return(H=H||r(_().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 _().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),z(b),""!==C.entitlementToken&&"string"==typeof C.entitlementToken&&tt(C.entitlementToken),n===b){t.next=15;break}return t.next=15,nt(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 it(){it=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 N?e:N,a=Object.create(o.prototype),c=new b(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 d="suspendedStart",p="executing",E="completed",A={};function N(){}function v(){}function S(){}var O={};l(O,c,(function(){return this}));var T=Object.getPrototypeOf,m=T&&T(T(G([])));m&&m!==r&&o.call(m,c)&&(O=m);var y=S.prototype=N.prototype=Object.create(O);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function g(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=d;return function(i,a){if(o===p)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=L(c,r);if(s){if(s===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function L(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,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(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),C(n),A}},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;C(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),A}},n}var at=function(){var t=window.localStorage.getItem(N);return JSON.parse(t)},ct=function(){return(K=K||r(it().mark((function t(){var e,n;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.authentication_config.sessionManagementEnabled){t.next=5;break}return t.next=3,rt();case 3:return e=t.sent,t.abrupt("return",e);case 5:return n=at(),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)},st=function(t){I(A,t,{path:"/",domain:g(),expires:365,secure:!0})},ut=function(t){return(Y=Y||r(it().mark((function t(e){var n;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,st(e),i("About to decode token before saving: ",e),n=R(e),!window.authentication_config.sessionManagementEnabled){t.next=9;break}return t.next=7,ot({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)},lt=function(t){return(j=j||r(it().mark((function t(e){var n,a,c,s,u,l,f;return it().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,rt();case 4:"string"==typeof(a=t.sent).idToken&&""!==a.idToken&&(c=R(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=R(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.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.entitlementsApiKey},data:JSON.stringify(l),success:function(n){return(e=e||r(it().mark((function e(n){return it().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,ut(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(it().mark((function t(e,n,r){return it().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,ot({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)},ft=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.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.entitlementsApiKey},data:JSON.stringify(f),success:function(t){return(c=c||r(it().mark((function t(e){return it().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,ut(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"))}})}))},ht=function(){return(V=V||r(it().mark((function t(){var e,n;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ct();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",lt(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)},dt=function(){return(W=W||r(it().mark((function t(){var e;return it().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,lt(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)},pt=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=R(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"),D("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)}},Et=function(t){return(J=J||r(it().mark((function t(e){return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ft({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)},At=function(){void 0!==window.MNGAuthentication&&Array.isArray(window.MNGAuthentication.oidcLoginCallbacks)&&window.MNGAuthentication.oidcLoginCallbacks.push(Et)},Nt=function(t){var e=t.searchParams.get("entitlement_jwt");i("Webview JWT param provided: ",e),st(e);var n=R(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}))},vt=function(){return(Z=Z||r(it().mark((function t(){var e,n,r,o,a,c,s,u;return it().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(),i("loggedOutNewSubscriberActions","Checking if this is a new regwall subscriber"),"false"!==e||!r.searchParams.has("newUser")||!n){t.next=18;break}return o=!1,a={sub:n,email_verified:!0},t.next=10,ft(a);case 10:if((c=t.sent)&&""!==c&&(s=R(c),u=s.entitlement_entitled,o=u),i("loggedOutNewSubscriberActions","New regwall user is entitled: ".concat(o)),!o){t.next=17;break}return window.localStorage.setItem(v,"true"),P(),t.abrupt("return",!0);case 17:case 18:return t.abrupt("return",!1);case 21:return t.prev=21,t.t0=t.catch(0),i("loggedOutNewSubscriberActions error",t.t0),t.abrupt("return",!1);case 25:case"end":return t.stop()}}),t,null,[[0,21]])})))).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.isAdfreeArticle):o.isAdfreeArticle},window.MNGAuthentication.isUserSubscriber=function(){var t=JSON.parse(window.localStorage.getItem(N));return null!=t&&(i("Subscriber Check: : ",t.isEntitled),t.isEntitled)};const St={init:function(){return(Q=Q||r(it().mark((function t(){var e,n,r,a,c,s,u,l,f,h,d,p,E,A,N;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o.entitlementsEnabled){t.next=120;break}return t.next=3,vt();case 3:if(!t.sent){t.next=6;break}return t.abrupt("return",pt(!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,At(),t.prev=16,!n.searchParams.has("newUser")){t.next=28;break}if("string"!=typeof a||""===a){t.next=27;break}return t.next=21,ft({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",pt(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")&&Nt(n)}catch(t){i("Error during webview JWT retrieval: ",t)}return t.prev=34,t.next=37,ht();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,dt();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."),R(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",pt(!1));case 63:if(!o.bcLowaSegements||s!==o.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,ft(d);case 69:l=t.sent,!window.authentication_config.sessionManagementEnabled&&o.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.linaCheckOnArticles){t.next=98;break}if(p=R(l),E=p.entitlement_entitled,A=p.iat,i("LINA check: isEntitled: ".concat(E,", token created at: ").concat(A)),!(o.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,ft({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&&P(),t.abrupt("return",pt(N));case 95:t.next=98;break;case 97:i("LINA check, no idToken.");case 98:return t.abrupt("return",pt(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,ft({idToken:a});case 108:if(!(l=t.sent)){t.next=112;break}return i("Entitlements Init: Created new token"),t.abrupt("return",pt(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",pt(!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 Ot;function Tt(){Tt=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 N?e:N,a=Object.create(o.prototype),c=new b(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 d="suspendedStart",p="executing",E="completed",A={};function N(){}function v(){}function S(){}var O={};l(O,c,(function(){return this}));var T=Object.getPrototypeOf,m=T&&T(T(G([])));m&&m!==r&&o.call(m,c)&&(O=m);var y=S.prototype=N.prototype=Object.create(O);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function g(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=d;return function(i,a){if(o===p)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=L(c,r);if(s){if(s===A)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=h(t,n,r);if("normal"===u.type){if(o=r.done?E:"suspendedYield",u.arg===A)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=E,r.method="throw",r.arg=u.arg)}}}function L(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,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var i=h(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,A;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,A):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(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),C(n),A}},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;C(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),A}},n}!function(){(Ot=Ot||r(Tt().mark((function t(){return Tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,St.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={9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),c=n(4097),s=n(4109),u=n(7985),l=n(5061),d=n(5655),f=n(5263);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)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);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(5655));c.Axios=i,c.Cancel=n(5263),c.CancelToken=n(4972),c.isCancel=n(6502),c.VERSION=n(7288).version,c.all=function(e){return Promise.all(e)},c.spread=n(8713),c.isAxiosError=n(6268),e.exports=c,e.exports.default=c},5263: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},4972:(e,t,n)=>{"use strict";var r=n(5263);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";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),c=n(7185),s=n(4875),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},782:(e,t,n)=>{"use strict";var r=n(4867);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},4097:(e,t,n)=>{"use strict";var r=n(1793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},3572:(e,t,n)=>{"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5655),c=n(5263);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)}))}},481: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}},7185:(e,t,n)=>{"use strict";var r=n(4867);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}},6026:(e,t,n)=>{"use strict";var r=n(5061);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)}},8527:(e,t,n)=>{"use strict";var r=n(4867),o=n(5655);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},5655:(e,t,n)=>{"use strict";var r=n(4867),o=n(6016),i=n(481),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(5448)),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},7288:e=>{e.exports={version:"0.24.0"}},1849: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(4867);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}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);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(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);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}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),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}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var r=n(7288).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}},4867:(e,t,n)=>{"use strict";var r=n(1849),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{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})(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)}))}}window.authentication_config.sessionManagementEnabled="1"===window.authentication_config.sessionManagement;const o={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,sophiEnabled:!!window.authentication_config.sophiPluginEnabled&&"1"===window.authentication_config.sophiPluginEnabled,datadogEnabled:!!window.authentication_config.enableDatadog&&"1"===window.authentication_config.enableDatadog};const i=function(){if(o.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(9669),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 y?t:y,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="executing",m="completed",g={};function y(){}function v(){}function w(){}var E={};l(E,c,(function(){return this}));var A=Object.getPrototypeOf,L=A&&A(A(k([])));L&&L!==r&&o.call(L,c)&&(E=L);var S=w.prototype=y.prototype=Object.create(E);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===p)throw new Error("Generator is already running");if(o===m){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===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?m:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,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")),g;var i=f(o,e.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[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}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),g}},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),g}},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(),n=t.hostname,r=n;e&&"string"==typeof e&&(r=e);var o=r.split(".");return"".concat(o[o.length-2],".").concat(o[o.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="www".concat(o),a=".www".concat(o),c=[o,i,a];n&&c.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,c.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)},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.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)},P=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.entitlementsEndpoint,"auth0/users/").concat(encodeURIComponent(t)),headers:{"X-Api-Key":o.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},_=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(){return 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)}}))},U=function(){return 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)}}))},D=function(){return new Promise((function(e){if(B())e();else{i("Utils newsLetterDropdownLoaded: ","Waiting for the digisubs dropdown to load...");var t=setInterval(r(b().mark((function n(){return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:document.querySelector(".newsletter-dropdown-title.dropdown-item")&&(clearInterval(t),e(!0));case 1:case"end":return n.stop()}}),n)}))),200)}}))},H=function(){return 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)}}))},F=function(e){return(w=w||r(b().mark((function e(t){var n,r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U();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),r=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(r)){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)},X=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,F(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)},j=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)}))},K=function(){return 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)}))},Y=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(j()):(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,j();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))}))},W=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,Y(!0);case 2:if(!e.sent){e.next=10;break}return e.next=6,K();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)},V=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,Y(!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,W();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)},J=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))}))},q=function(){return new Promise((function(e,t){if(o.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)}))},Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"onFinish";return new Promise((function(t){var n=setTimeout((function(){"undefined"!=typeof Connext?(i("Connext actually did load..."),clearTimeout(n),t(!0)):(i("Connext did not load in time. Resolving false..."),clearTimeout(n),t(!1))}),6e3);"undefined"!=typeof Connext?(i("Connext already ready."),clearTimeout(n),t(!0)):(i("Listening for Connext Ready event..."),document.addEventListener("string"==typeof e?e:"onFinish",(function(){clearTimeout(n),i("Connext loaded!"),t(!0)})))}))},Q=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)}},z=function(){C(g.AUTH0_SUB_COOKIE_KEY),localStorage.removeItem(g.USER_STORAGE_HASH),Q()},ee=function(){var e=N();return!["local","develop","preprod","trbdev"].some((function(t){return e.origin.includes(t)}))},te=function(e){i("Removing storageObject : ",e),void 0!==window.localStorage.getItem(e)&&(window.localStorage.removeItem(e),i("Storage Object removed : ",e))},ne=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=ne;var re;window.validatePhoneNumber=function(e){return/^[0-9]([0-9 -])*[0-9]$/.test(e)};var oe=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===re){e.next=2;break}return e.abrupt("return",re);case 2:return t=o.auth0Domain,n=o.auth0ClientId,e.next=5,createAuth0Client({domain:t,client_id:n,useRefreshTokens:!0,cacheLocation:"localstorage",audience:"access-extension"});case 5:return re=e.sent,e.abrupt("return",re);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)},ie=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!")},ae=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})}))},ce=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)},se=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];"undefined"==typeof Connext?document.addEventListener("onInit",(function(){e&&Connext.GetOptions().Silentmode?Connext.Run():e||Connext.Run()})):e&&Connext.GetOptions().Silentmode?Connext.Run():e?i("Not rerunning Connext"):Connext.Run()},ue=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()},le=function(e){o.datadogEnabled&&window.DD_RUM.addTiming(e)};var de,fe="#primary-menu",he="#pushnav",pe=".log-in-button",me=".subscribe-visibility",ge=".log-out-button",ye="dfm-digisubs-menu",ve="dfm-digisubs-push-menu",we="mega-subscribe-button",Ee=function(){return document.querySelector(fe)},Ae=function(){return document.querySelector(he)},Le=function(){return document.getElementById(ye)},Se=function(){return document.getElementById(ve)},be=function(){return Le()?Le().querySelector(pe):null},Ne=function(){return be()?be().querySelector("a"):null},Oe=function(){return Se()?Se().querySelector(pe):null},Ie=function(){return Oe()?Oe().querySelector("a"):null},Te=function(){return document.getElementById(we)},xe=function(){return Ae()?Ae().querySelector(pe):null},Ce=function(){return xe()?xe().querySelector("a"):null},Re=function(){return document.querySelectorAll(me)};function ke(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 Ge(){Ge=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 y?t:y,a=Object.create(o.prototype),c=new C(r||[]);return i(a,"_invoke",{value:O(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="executing",m="completed",g={};function y(){}function v(){}function w(){}var E={};l(E,c,(function(){return this}));var A=Object.getPrototypeOf,L=A&&A(A(R([])));L&&L!==r&&o.call(L,c)&&(E=L);var S=w.prototype=y.prototype=Object.create(E);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function N(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 O(e,n,r){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){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=I(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===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?m:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function I(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,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,e.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[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(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),x(n),g}},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;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}var Pe=function(){return(de=de||r(Ge().mark((function e(){return Ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Y();case 2:return e.next=4,J();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)},Be=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 _e,Me,Ue,De,He,Fe;function Xe(){Xe=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 y?t:y,a=Object.create(o.prototype),c=new C(r||[]);return i(a,"_invoke",{value:O(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="executing",m="completed",g={};function y(){}function v(){}function w(){}var E={};l(E,c,(function(){return this}));var A=Object.getPrototypeOf,L=A&&A(A(R([])));L&&L!==r&&o.call(L,c)&&(E=L);var S=w.prototype=y.prototype=Object.create(E);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function N(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 O(e,n,r){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){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=I(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===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?m:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function I(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,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,e.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[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(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),x(n),g}},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;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}var je,Ke,Ye,We,Ve,Je,qe,Ze=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"{}"},Qe=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)}},ze=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)}},$e=function(){return(_e=_e||r(Xe().mark((function e(){var t,n,r,a,c,s,u,l,d,f,h,p,g,y,v,w,E;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="".concat(o.sessionServer,"/api/session"),i("Checking server session: ",t),e.next=5,m().get(t,{withCredentials:!0});case 5:if(!(n=e.sent).data){e.next=17;break}return l=n.data.entitlementTokenDecoded,d=n.data,f=d.accessToken,h=d.idToken,p=d.entitlementToken,g=null!==(r=null==l?void 0:l.entitlement_expiry)&&void 0!==r?r:null,y=null!==(a=null==l?void 0:l.entitlement_source)&&void 0!==a?a:null,v=null!==(c=null==l?void 0:l.entitlement_entitled)&&void 0!==c?c:null,w=null!==(s=null==l?void 0:l.entitlement_extras_adfree)&&void 0!==s?s:null,E=null!==(u=null==l?void 0:l.entitlement_level)&&void 0!==u?u:null,Qe(JSON.stringify({accessToken:f,idToken:h,entitlementToken:p,expiration:g,entitlementSource:y,isEntitled:v,adFree:w,entitlementLevel:E})),""!==p&&"string"==typeof p&&ze(p),e.abrupt("return",{accessToken:f,idToken:h,entitlementToken:p,expiration:g,entitlementSource:y,isEntitled:v,adFree:w,entitlementLevel:E});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)},et=function(e){return(Me=Me||r(Xe().mark((function e(t){var n;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n="".concat(o.sessionServer,"/api/session"),i("Updating server session: ",n),e.next=6,m().post(n,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)},tt=function(){return(Ue=Ue||r(Xe().mark((function e(){var t;return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t="".concat(o.sessionServer,"/api/session"),i("Deleting server session: ",t),e.next=6,m().delete(t,{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)},nt=function(){return(De=De||r(Xe().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 Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i("Inside getSession"),e.prev=1,l=Ze(),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,$e();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)},rt=function(e){return(He=He||r(Xe().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 Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=Ze(),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),Qe(C),""!==x.entitlementToken&&"string"==typeof x.entitlementToken&&ze(x.entitlementToken),n===C){e.next=15;break}return e.next=15,et(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)},ot=function(){return(Fe=Fe||r(Xe().mark((function e(){return Xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("Ending session..."),z(),e.next=4,tt();case 4:localStorage.removeItem(g.LOCAL_STORAGE_SESSION_KEY);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)};function it(){it=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 y?t:y,a=Object.create(o.prototype),c=new C(r||[]);return i(a,"_invoke",{value:O(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="executing",m="completed",g={};function y(){}function v(){}function w(){}var E={};l(E,c,(function(){return this}));var A=Object.getPrototypeOf,L=A&&A(A(R([])));L&&L!==r&&o.call(L,c)&&(E=L);var S=w.prototype=y.prototype=Object.create(E);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function N(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 O(e,n,r){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){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=I(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===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?m:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function I(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,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,e.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[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(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),x(n),g}},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;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}var at=function(){return"logout"===(N().searchParams.get("state")||"").toLowerCase()};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.logoutCallbacks=[];var ct=function(e){return(je=je||r(it().mark((function e(t){var n;return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oe();case 2:n=e.sent,i("Calling Auth0 logout..."),n.logout({returnTo:t});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)},st=function(){return"undefined"==typeof CnnXt?(i("Connext was not loaded."),!1):Connext.Storage.GetUserState()},ut=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=/")}},lt=function(){return(Ke=Ke||r(it().mark((function e(){var t,n,o,a,c;return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i("Attempting to logout..."),ut(),!window.authentication_config.sessionManagementEnabled){e.next=7;break}return e.next=5,ot();case 5:e.next=8;break;case 7:z();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...")})),te("hhsl"),te("userNewsLetterData"),te(g.REGWALL_USER_IS_SUBSCRIBED),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=30,Z();case 30:if(!e.sent){e.next=62;break}if(i("Auth | Silent mode enabled ",Connext.GetOptions().Silentmode),i("Auth | Run connext manually if Silent Mode is on."),se(!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),!ee()){e.next=43;break}i("About to call Connext Logout..."),setTimeout((function(){Connext.Logout()}),500),e.next=60;break;case 43:if("Logged In"!==st()){e.next=57;break}if(i("Connext user state is logged in, setting timeout..."),setTimeout(r(it().mark((function e(){return it().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,ct(o);case 3:case"end":return e.stop()}}),e)}))),8e3),"function"!=typeof Connext._logout){e.next=52;break}return i("About to call Connext _logout..."),e.next=50,Connext._logout();case 50:e.next=55;break;case 52:return i("About to call Connext Logout..."),e.next=55,Connext.Logout();case 55:e.next=60;break;case 57:return i("Connext user state is logged out, not calling it, going to auth0 logout."),e.next=60,ct(o);case 60:e.next=65;break;case 62:return i("Connext Logout was NOT called"),e.next=65,ct(o);case 65:case"end":return e.stop()}}),e,null,[[8,16]])})))).apply(this,arguments)},dt=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},ft=function(){window.MNGAuthentication.preAuthGTMEvents.forEach((function(e){return Be(e)})),i("Cycled through preauth GTM events.")},ht=function(e,t,n,o,a){return(Ye=Ye||r(it().mark((function e(t,n,r,o,a){var c,s,u,l,d,f,h,p,m,g,y,v,w;return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("Attempting to login..."),dt()>4.5&&localStorage.clear(),ft(),o&&(c=[],s=window.localStorage.getItem("callbackEvents"),u=JSON.parse(s),c=u&&u.length>0?ke(new Set([].concat(ke(o),ke(u)))):o,window.localStorage.setItem("callbackEvents",JSON.stringify(c))),l=null,e.next=7,oe();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,ot();case 20:e.next=23;break;case 22:z();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)},pt=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 mt=function(){return(We=We||r(it().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 it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ut(),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)),ht(!1,!1,!1,[],c)):ht()):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",ht(!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,oe();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,pt();case 33:return y=window.MNGAuthentication.oidcLoginCallbacks.map((function(e){return(m=m||r(it().mark((function e(t){return it().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,P(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(te(g.REGWALL_USER_IS_SUBSCRIBED),!window.authentication_config.sessionManagementEnabled){e.next=66;break}return i("Saving idToken to session server"),e.next=66,rt({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(it().mark((function e(t){return it().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)},gt=function(){return(Ve=Ve||r(it().mark((function e(){return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("ANALYTICS: fireBC events"),e.next=3,Pe();case 3:i("ANALYTICS: bc values should be filled");case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)},yt=function(){return(Je=Je||r(it().mark((function e(){var t,n,r,o,a,c,s,u,l;return it().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J();case 2:if(t=e.sent,n=t.idToken,r=t.isAuthenticated,""===n){e.next=17;break}return e.prev=6,o=k(n),a=o.email,c=o.picture,s=o.sub,(u=s.split("|")).pop(),l=u.join("|"),e.abrupt("return",{authenticated:r,email:a,picture:c,userId:s,connectionSource:l});case 14:e.prev=14,e.t0=e.catch(6),i("Unable to parse idToken: ",n," Error: ",e.t0);case 17:return e.abrupt("return",{authenticated:r});case 18:case"end":return e.stop()}}),e,null,[[6,14]])})))).apply(this,arguments)};window.MNGAuthentication.login=ht,window.MNGAuthentication.logout=lt,window.MNGAuthentication.getUserInfo=yt;var vt=function(){return(qe=qe||r(it().mark((function t(){var n,a,c,s,u,l,d,f,h,p,m,y,v;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=N(),c=!1,s="",u=!1,l={},at()&&se(!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(it().mark((function t(){var n,r;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,oe();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,lt();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)),"{}"!==Ze()){t.next=24;break}return p&&(h=p.jwt),t.next=24,rt({idToken:s,entitlementToken:h});case 24:t.next=38;break;case 26:return t.prev=26,t.next=29,nt();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.blueconicEnabled||!o.bcLowaSegements){t.next=47;break}return t.next=45,V();case 45:(y=t.sent).isSub&&(c=g.USER_IS_LOWA,l={sub:y.uuid});case 47:if(ie({isAuthenticated:c,idToken:s,accessToken:u,claims:l}),le("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")&&!at()&&(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")&&!at()?(i("Page is login. Attempting to log user in..."),ht()):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,gt();case 56:i("Now login from regwall"),ht(),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,mt();case 64:case"end":return t.stop()}}),t,null,[[26,35]])})))).apply(this,arguments)};window.MNGAuthentication.init=vt;function wt(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),x(n),g}},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;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}var Lt=function(e){x(g.ENTITLEMENT_COOKIE_KEY,e,{path:"/",domain:T(),expires:365,secure:!0})},St=function(e){return(Et=Et||r(At().mark((function e(t){var n;return At().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,Lt(t),i("About to decode token before saving: ",t),n=k(t),!window.authentication_config.sessionManagementEnabled){e.next=9;break}return e.next=7,rt({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)},bt=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.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.entitlementsApiKey},data:JSON.stringify(d),success:function(e){return(c=c||r(At().mark((function e(t){return At().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,St(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.isAdfreeArticle):o.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 Nt,Ot;function It(){It=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 y?t:y,a=Object.create(o.prototype),c=new C(r||[]);return i(a,"_invoke",{value:O(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="executing",m="completed",g={};function y(){}function v(){}function w(){}var E={};l(E,c,(function(){return this}));var A=Object.getPrototypeOf,L=A&&A(A(R([])));L&&L!==r&&o.call(L,c)&&(E=L);var S=w.prototype=y.prototype=Object.create(E);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function N(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 O(e,n,r){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){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=I(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===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?m:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function I(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,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,e.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[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(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),x(n),g}},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;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}var Tt=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}},xt=function(e){return new Promise((function(t){var n,a;i("Entitlements: get UUID from email start...");var c={email:e,auth0ClientId:o.auth0ClientId},s="".concat(o.entitlementsEndpoint,"auth0/getDefaultUserConnection");return $.ajax({type:"POST",url:s,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8","X-Api-Key":o.entitlementsApiKey},data:JSON.stringify(c),success:function(e){return(n=n||r(It().mark((function e(n){return It().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("Entitlements: Request successful: ",n),e.abrupt("return",t(n));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)},error:function(e,n,o){return(a=a||r(It().mark((function e(n,r,o){return It().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i("Entitlements: uuid request Failure: ",o),t(!1);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}})}))},Ct=function(){return(Nt=Nt||r(It().mark((function e(){return It().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)},Rt=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,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())}}],(c=[{key:"clearSpoofedUser",value:function(){return(e=e||r(It().mark((function e(){var t;return It().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,bt({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,tt();case 9:return e.next=11,rt({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(It().mark((function e(t){var n,r,a,c,s;return It().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("employee tools: handling spoof"),e.next=3,J();case 3:if(n=e.sent,r=n.idToken,!t.target.checked){e.next=42;break}if(a=window.prompt("Enter the email of the user you want to spoof:")){e.next=10;break}return t.target.checked=!1,e.abrupt("return");case 10:return this.userSpoofCheckbox.checked=!0,this.addSpoofBannerToPage("Fetching entitlements for ".concat(a," ..."),"greenyellow"),e.prev=12,e.next=15,xt(a);case 15:if((c=e.sent)&&"string"==typeof c.uuid){e.next=21;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 21:return e.next=23,bt({sub:"".concat(c.provider,"|").concat(c.uuid),email:a,email_verified:!0});case 23:if(s=e.sent,!window.authentication_config.sessionManagementEnabled){e.next=30;break}return e.next=27,tt();case 27:return e.next=29,rt({idToken:r,entitlementToken:s});case 29:o.deleteLocalStorageManualExpiration();case 30:window.localStorage.setItem("spoof-user",a),window.location.reload(),e.next=40;break;case 34:e.prev=34,e.t0=e.catch(12),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 40:e.next=45;break;case 42:return o.deleteLocalStorageManualExpiration(),e.next=45,this.clearSpoofedUser();case 45:case"end":return e.stop()}}),e,this,[[12,34]])})))).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(It().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 It().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=Tt(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(It().mark((function e(){var t,n;return It().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,Ct();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")&&ke(p).forEach((function(e){var t=e;t.textContent="Subscriber - Employee",t.style.color="blue"})),t&&(this.addSpoofBannerToPage(h),this.userSpoofCheckbox.checked=!0,ke(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)}}])&&wt(a.prototype,c),s&&wt(a,s),o}(),kt=function(e,t){return(Ot=Ot||r(It().mark((function e(t,n){var r,o,a;return It().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i("Employee Tools: employeeAds: "),r=Tt(t,n),i("employee tools: validate employee:",r),"corporate"===r.accessGroup&&r.employeeAccess){e.next=5;break}return e.abrupt("return",!1);case 5:return e.next=7,H();case 7:return(o=document.createElement("div")).id="employee-debugger-adfree",o.innerHTML='\n\t\t\n\t\t\n\t\t

(page will reload)

\n\t',document.getElementById("employee-debugger-toggles").append(o),(void 0!==(a=localStorage.getItem("hhsl"))&&"access"===a||"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 Gt;function Pt(){Pt=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 y?t:y,a=Object.create(o.prototype),c=new C(r||[]);return i(a,"_invoke",{value:O(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="executing",m="completed",g={};function y(){}function v(){}function w(){}var E={};l(E,c,(function(){return this}));var A=Object.getPrototypeOf,L=A&&A(A(R([])));L&&L!==r&&o.call(L,c)&&(E=L);var S=w.prototype=y.prototype=Object.create(E);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function N(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 O(e,n,r){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){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=I(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===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?m:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function I(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,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,e.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[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(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),x(n),g}},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;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}var Bt,_t,Mt,Ut,Dt,Ht=[],Ft=R();Ft=Ft.replace("local","com");var Xt="".concat(o.entitlementsEndpoint,"newsletters"),jt=function(e){var t=new Date,n=Math.round(t.getTime()/1e3)-86400;return new Date(e)>=new Date(1e3*n).getTime()},Kt=function(e){return(Gt=Gt||r(Pt().mark((function e(t){var n,r,a;return Pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Xt,"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.entitlementsApiKey},data:t.dataToSend});case 5:r=e.sent,"get"===t.method&&((Ht=r.data.responseData).sort((function(e,t){return e.title>t.title?1:-1})),"limited"===_t?(a=Ht.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:Ht})),qt()),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)},Yt=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)"},Wt=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,Ht.find((function(e){return e.id===o})).isSubscribed=i,t.method=i?"post":"delete",t.dataToSend={email:Bt,domain:Ft,preferenceId:o},Jt(t)},Vt=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=ue();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={},Ht.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(Dt," Newsletters:")):g=["".concat(Dt," Newsletters:")].concat(ke(g)),g);y["".concat(Dt," 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(Dt," 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",Wt),Ut&&(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",Wt),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 Zt=function(e,t,n,r){if(Bt=e,_t=t,Dt=r,Ut=n){te("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",Ft),localStorage.getItem("userNewsLetterData")){var c=JSON.parse(localStorage.getItem("userNewsLetterData"));Mt=c.expoDate,jt(Mt)?(Ht=c.newsLetterData,qt()):Kt({method:"get",dataToSend:{email:Bt,domain:Ft}})}else Kt({method:"get",dataToSend:{email:Bt,domain:Ft}})};var Qt;function zt(){zt=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 y?t:y,a=Object.create(o.prototype),c=new C(r||[]);return i(a,"_invoke",{value:O(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="executing",m="completed",g={};function y(){}function v(){}function w(){}var E={};l(E,c,(function(){return this}));var A=Object.getPrototypeOf,L=A&&A(A(R([])));L&&L!==r&&o.call(L,c)&&(E=L);var S=w.prototype=y.prototype=Object.create(E);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function N(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 O(e,n,r){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){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=I(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===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?m:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function I(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,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,e.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[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(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),x(n),g}},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;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}var $t=function(){var e=Ee()?Ee().querySelector(ge):null,t=Ee();null!==e&&t.removeChild(e)};const en=function(e){return(Qt=Qt||r(zt().mark((function e(t){var n,r,a,c,s,u,l,d,f,h,p,m,y,v,w,E,A,L,S,b,O,I,T,x,C,R,k,G,P,B,_,M,U,H,F,X,j,K,Y,W,V,J,q,Z,Q,z,$,ee,te,ne;return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.authenticatedStatus,r=t.email,a=t.picture,c=t.connectionSource,s=t.entitlementSource,u=t.entitlementLevel,l=t.serviceCode,d=t.isEedition,f=t.accountHref,h=t.userId,p="",m=" | Logged in with ",y=[],v=r,void 0!==r&&"undefined"!==r||(v="Logged In"),e.prev=6,e.t0=c,e.next="google-oauth2"===e.t0?10:"facebook"===e.t0?12:"apple"===e.t0?14:16;break;case 10:return m+="Google",e.abrupt("break",18);case 12:return m+="Facebook",e.abrupt("break",18);case 14:return m+="Apple",e.abrupt("break",18);case 16:return m="",e.abrupt("break",18);case 18:e.t1=u,e.next="limited"===e.t1?21:"subscriber"===e.t1||"freeTrial"===e.t1?23:"premium"===e.t1?25:"comp"===e.t1?27:"partner-access"===e.t1?29:31;break;case 21:return p="Limited Access - Subscribe now for access",e.abrupt("break",33);case 23:return p="Standard Digital Access",e.abrupt("break",33);case 25:return p="Premium Ad-Free Access",e.abrupt("break",33);case 27:return p="Standard Digital Trial",e.abrupt("break",33);case 29:return p="Partner Access",e.abrupt("break",33);case 31:return p="Anonymous",e.abrupt("break",33);case 33:for(n===g.USER_IS_LOWA&&(m="",p="Anonymous"),d&&l&&l.includes("P")&&(p="Limited Subscription - e-Edition access"),$t(),(E=be()).removeChild(E.firstChild),(A=document.createElement("a")).id="anchorProfileDropDown",A.className="nav-link dropdown-toggle",A.setAttribute("aria-label","Account menu dropdown"),A.style.cursor="pointer",A.setAttribute("tabindex","0"),A.setAttribute("aria-expanded","false"),L=document.createElement("img"),S=document.getElementById("pushnav-icon"),L.className="rounded-circle",L.alt="Profile image",S.className="rounded-circle",L.src=a,S.src=a,a||(L.src="https://ui-static-assets-prod.mng-digisubs-prod.com/img/no-icon.png",S.src="https://ui-static-assets-prod.mng-digisubs-prod.com/img/no-icon.png"),(b=document.createElement("span")).className="icon-arrow-down",b.id="icon-caret",b.setAttribute("aria-hidden","true"),(O=document.createElement("div")).id="account-content",O.className="dropdown-menu",E.append(A,O),I="",window.dataLayer.forEach((function(e){Object.prototype.hasOwnProperty.call(e,"SiteName")&&(I=e.SiteName)})),T=window,x=T.location,C=new URL(x),k=null,n!==g.USER_IS_LOWA?((k=document.createElement("a")).className="dropdown-item dropdown-profile account-link",k.text=v):document.getElementById("push-email-link").style.display="none",n===g.USER_IS_LOWA&&((G=document.createElement("li")).className="dropdown-item log-in-button subscribe-special custom-button",P=document.createElement("a"),B=N(),P.href="/login?returnUrl=".concat(B),P.text="Complete Log In",P.style.cursor="pointer",P.style.margin="0",P.style.width="auto",G.append(P)),(_=document.createElement("p")).className="dropdown-item logged-in-source",_.appendChild(document.createTextNode("".concat(p).concat(m))),(M=document.createElement("a")).className="dropdown-item account-link account-settings",M.text="Account Settings",M.target="_blank",M.setAttribute("data-mng-click","account-settings"),M.setAttribute("data-mng-category","account-link"),M.setAttribute("data-mng-action","account-settings"),o.enableReaderDashboardLink&&((R=document.createElement("a")).className="dropdown-item",R.id="reader-dashboard-link",R.text="Reader Dashboard",R.target="_blank",R.setAttribute("data-mng-click","reader-dashboard"),R.setAttribute("data-mng-category","account-link"),R.setAttribute("data-mng-action","reader-dashboard"),R.style.display="block",R.href="".concat(C.origin,"/user-tools/dashboard")),(U=document.createElement("a")).className="dropdown-item",U.text="Contact Us",U.href="".concat(C.origin,"/contact-us"),U.setAttribute("data-mng-click","contact-us"),U.setAttribute("data-mng-category","account-link"),U.setAttribute("data-mng-action","contact-us"),(H=document.createElement("a")).className="dropdown-item log-out-button",H.text="Log out",H.setAttribute("data-mng-click","log-out"),H.setAttribute("data-mng-category","account-link"),H.setAttribute("data-mng-action","log-out"),(F=document.createElement("div")).id="marketing-content",F.className="dropdown-item marketing-slot-div",H.href="".concat(C.origin,"/logout"),(X=document.createElement("ul")).className="newsLetterContent dropdown-item",X.id="newsLetterContent-dropdown",E.id="profileDropDown",E.className="nav-item dropdown auth-visible show",A.append(L,b),k&&document.getElementById("account-content").append(k),G&&document.getElementById("account-content").append(G),j=[_,M].concat(ke(R?[R]:[]),[U,H,F,X]),(w=document.getElementById("account-content")).append.apply(w,ke(j)),document.getElementById("push-auth-source").textContent="".concat(p).concat(m),document.getElementById("push-email-link").textContent=v,document.getElementById("push-account-content").style.display="block",document.getElementById("blank-icon-user").style.display="none",o.enableReaderDashboardLink&&((K=document.createElement("a")).className="show-digisubs-push dashboard-link",K.id="push-reader-dashboard",K.text="Reader Dashboard",K.href="".concat(C.origin,"/user-tools/dashboard"),document.querySelector("#push-account-link").after(K)),i("Employee tools: start tools here",s,r,h),!1===(Y=s)&&(Y="none"),(W=new Rt(Y,r,h)).init(),kt(Y,r),o.newslettersEnabled&&u?(V=v,J=!1,W.userSpoofCheckbox&&(J=W.userSpoofCheckbox.checked),localStorage.getItem("spoof-user")&&(V=localStorage.getItem("spoof-user")),!0===n&&Zt(V,u,J,I)):X.style.display="none",q=function(){var e=document.getElementById("icon-caret"),t=e.classList.contains("icon-arrow-up");t||(e.className="icon-arrow-up",A.setAttribute("aria-expanded","true")),t&&(e.className="icon-arrow-down",A.setAttribute("aria-expanded","false"))},document.getElementById("profileDropDown").addEventListener("click",(function(){document.getElementById("account-content").classList.toggle("show"),q()})),document.getElementById("anchorProfileDropDown").addEventListener("keydown",(function(e){"Enter"===e.key&&(document.getElementById("account-content").classList.toggle("show"),q())})),document.addEventListener("click",(function(e){A.contains(e.target)||(document.getElementById("account-content").classList.remove("show"),A.setAttribute("aria-expanded","false"),b.className="icon-arrow-up")})),y=document.getElementsByClassName("account-link"),Z=0;Z=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),x(n),g}},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;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}var fn,hn=function(){return(tn=tn||r(dn().mark((function e(){var t,n,r,i,a,c,s,u,l,d,f,h,p,m,g;return dn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!1,n="Naviga",r="Anonymous",i=!1,a=!1,c="",!o.entitlementsEnabled){e.next=13;break}return e.next=9,q();case 9:(s=e.sent)&&s.token&&(u=s.token,l=k(u),d=l.entitlement_entitled,f=l.entitlement_source,h=l.entitlement_level,p=l.entitlement_serviceCode,m=l.entitlement_isEedition,g=l.email,t=d||!1,n=f||!1,r=h||"Anonymous",i=p||!1,a=m||!1,c=g||""),e.next=14;break;case 13:"undefined"!=typeof Connext&&"Subscribed"===Connext.Storage.GetUserState()&&(t=!0);case 14:return e.abrupt("return",{userIsEntitled:t,entitlementSource:n,entitlementLevel:r,serviceCode:i,isEedition:a,tokenEmail:c});case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)},pn=function(e){return(nn=nn||r(dn().mark((function e(t){var n,r,o;return dn().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)},mn=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))},gn=function(e){return(rn=rn||r(dn().mark((function e(t){var n,r,o,i;return dn().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=Ne()).textContent=o,i.setAttribute("href",r);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)},yn=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)}},vn=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)},wn=function(){i("UIHandler: ","show logout buttons"),vn("engageLogoutLink"),document.querySelectorAll(ge).forEach((function(e){var t=e;t.style.visibility="visible",t.style.display="block",t.addEventListener("click",yn),t.addEventListener("keydown",yn)}))},En=function(){i("UIHandler: ","show login buttons"),vn("engageLoginLink"),document.querySelectorAll(pe).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))}))},An=function(){return(on=on||r(dn().mark((function e(){var t,n,r,a,c,s,u,l,d,f,h,p,m,y,v,w,E;return dn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("UIHandler: ","setup"),e.next=3,yt();case 3:return t=e.sent,n=t.authenticated,r=t.email,a=t.picture,c=t.connectionSource,s=t.userId,e.next=11,hn();case 11:if(u=e.sent,l=u.userIsEntitled,d=u.entitlementSource,f=u.entitlementLevel,h=u.serviceCode,p=u.isEedition,m=u.tokenEmail,y=mn({siteUrl:ue()}),!n){e.next=31;break}if(!o.dropdownEnabled){e.next=26;break}return n===g.USER_IS_LOWA||r&&!r.includes("@example.com")||(r=m),e.next=24,en({authenticatedStatus:n,email:r,picture:a,connectionSource:c,entitlementSource:d,entitlementLevel:f,serviceCode:h,isEedition:p,accountHref:y,userId:s});case 24:e.next=28;break;case 26:return e.next=28,gn({entitlementSource:d,siteUrl:R(),accountHref:y});case 28:wn(),e.next=32;break;case 31:En();case 32:v=Te(),l?(Re().forEach((function(e){e.style.display="none"})),v&&(v.style.display="none")):(Re().forEach((function(e){var t=e;t.style.display="block",pn(t)})),v&&(v.style.display="flex",w=N(),(E=new URL(v.getAttribute("href"))).searchParams.set("returnUrl",encodeURIComponent(w.href)),v.setAttribute("href",E.href)));case 34:case"end":return e.stop()}}),e)})))).apply(this,arguments)},Ln=function(){var e=be();e&&(e.style.display="block",e.style.visibility="visible");var t=Ne();t&&(t.textContent="Loading...")},Sn=function(){return(an=an||r(dn().mark((function e(){var t;return dn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_();case 2:return e.next=4,X();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,J();case 13:return e.next=15,q();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,ae("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)},bn=function(){return(cn=cn||r(dn().mark((function e(){var t,n,r,o;return dn().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,_();case 4:return e.next=6,X();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,J();case 15:return e.next=17,q();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)},Nn=function(){return(sn=sn||r(dn().mark((function e(){var t,n;return dn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_();case 2:return e.next=4,X();case 4:if("article"===e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,ae(".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)},On=function(){return(un=un||r(dn().mark((function e(){return dn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ln(),e.next=3,An();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)},In=function(){return(ln=ln||r(dn().mark((function e(){return dn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:return e.next=4,On();case 4:Sn(),bn(),Nn();case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)};function Tn(){Tn=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 y?t:y,a=Object.create(o.prototype),c=new C(r||[]);return i(a,"_invoke",{value:O(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="executing",m="completed",g={};function y(){}function v(){}function w(){}var E={};l(E,c,(function(){return this}));var A=Object.getPrototypeOf,L=A&&A(A(R([])));L&&L!==r&&o.call(L,c)&&(E=L);var S=w.prototype=y.prototype=Object.create(E);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function N(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 O(e,n,r){var o=h;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){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=I(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===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var u=f(e,n,r);if("normal"===u.type){if(o=r.done?m:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function I(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,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,e.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[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(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),x(n),g}},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;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}!function(){(fn=fn||r(Tn().mark((function e(){return Tn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:In();case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}()})()})(); //# sourceMappingURL=mng-digisubs.uiHandler.bundle.js.map;