/*! For license information please see mng-digisubs.apple.bundle.js.LICENSE.txt */ (()=>{var e={251(e,t){t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,c=(1<>1,u=-7,d=r?o-1:0,p=r?-1:1,m=e[t+d];for(d+=p,i=m&(1<<-u)-1,m>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,n),i-=l}return(m?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,c,l=8*i-o-1,u=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:i-1,f=n?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+m]=255&s,m+=f,s/=256,o-=8);for(a=a<0;e[r+m]=255&a,m+=f,a/=256,l-=8);e[r+m-f]|=128*h}},579(e,t,r){var n=r(3738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(n(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},887(e,t,r){var n=r(6993),o=r(1791);e.exports=function(e,t,r,i,a){return new o(n().w(e,t,r,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},1791(e,t,r){var n=r(5172),o=r(5546);e.exports=function e(t,r){function i(e,o,a,s){try{var c=t[e](o),l=c.value;return l instanceof n?r.resolve(l.v).then(function(e){i("next",e,a,s)},function(e){i("throw",e,a,s)}):r.resolve(l).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,s)})}catch(e){s(e)}}var a;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,t,n){function o(){return new r(function(t,r){i(e,n,t,r)})}return a=a?a.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},3612(e,t,r){"use strict";var n,o,i,a,s;r.d(t,{A:()=>c}),window.authentication_config.sessionManagementEnabled="1"===window.authentication_config.sessionManagement;const c={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,enableDashboardCancel:!!window.authentication_config&&"1"===window.authentication_config.enableDashboardCancel,enableDashboardBenefitHub:!!window.authentication_config&&"1"===window.authentication_config.enableDashboardBenefitHub,enableEngageArticleGifting:"1"===(null===(n=window.authentication_config)||void 0===n?void 0:n.articleSharingEnabled)&&"1"===(null===(o=window.authentication_config)||void 0===o?void 0:o.isEngageArticleSharing),enableGiftedArticlesLink:"1"===(null===(i=window.authentication_config)||void 0===i?void 0:i.articleSharingEnabled)&&"1"!==(null===(a=window.authentication_config)||void 0===a?void 0:a.isEngageArticleSharing),enableSavedArticlesLink:"1"===(null===(s=window.authentication_config)||void 0===s?void 0:s.articleSavingEnabled),prosperstackClientid:window.authentication_config?window.authentication_config.prosperstackClientid:"",oneTapEnabled:!!window.authentication_config&&"1"===window.authentication_config.oneTapEnabled,useTribMainGoogle:!!window.authentication_config&&"1"===window.authentication_config.useTribMainGoogle,isAdfreeArticle:!!window.authentication_config&&"1"===window.authentication_config.isAdfreeArticle,auth0Domain:window.authentication_config?window.authentication_config.auth0Domain:"",auth0ClientId:window.authentication_config?window.authentication_config.auth0ClientId:"",entitlementsEndpoint:window.authentication_config?window.authentication_config.entitlementsEndpoint:"",entitlementsApiKey:window.authentication_config?window.authentication_config.entitlementsAPIKey:"",linaCheckOnArticles:!!window.authentication_config&&window.authentication_config.linaCheckOnArticles,serverEntitlements:!!window.authentication_config&&window.authentication_config.serverEntitlements,googleClientId:window.authentication_config?window.authentication_config.googleClientId:"",newsletterId:window.authentication_config?window.authentication_config.newsletterId:0,connextStorageKey:"",auth0SubKey:"auth0_sub",auth0Authenticated:"auth0.is.authenticated",secret:window.authentication_config?window.authentication_config.pluginSecret:"",newslettersEnabled:!!window.authentication_config&&"1"===window.authentication_config.newslettersEnabled,bcLowaSegements:!!window.authentication_config.bcLowaSegements&&"1"===window.authentication_config.bcLowaSegements,blueconicEnabled:!!window.authentication_config.blueconicEnabled&&"1"===window.authentication_config.blueconicEnabled,datadogEnabled:!!window.authentication_config.enableDatadog&&"1"===window.authentication_config.enableDatadog}},3738(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4373(e){e.exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4633(e,t,r){var n=r(5172),o=r(6993),i=r(5869),a=r(887),s=r(1791),c=r(4373),l=r(579);function u(){"use strict";var t=o(),r=t.m(u),d=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var m={throw:1,return:2,break:3,continue:3};function f(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,m[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,l(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=u=function(){return{wrap:function(e,r,n,o){return t.w(f(e),r,n,o&&o.reverse())},isGeneratorFunction:p,mark:t.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:s,async:function(e,t,r,n,o){return(p(t)?a:i)(f(e),t,r,n,o)},keys:c,values:l}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},4756(e,t,r){var n=r(4633)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},5172(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},5546(e){function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5869(e,t,r){var n=r(887);e.exports=function(e,t,r,o,i){var a=n(e,t,r,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},6993(e,t,r){var n=r(5546);function o(){var t,r,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function c(e,o,i,a){var s=o&&o.prototype instanceof u?o:u,c=Object.create(s.prototype);return n(c,"_invoke",function(e,n,o){var i,a,s,c=0,u=o||[],d=!1,p={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,r){return i=e,a=0,s=t,p.n=r,l}};function m(e,n){for(a=e,s=n,r=0;!d&&c&&!o&&r3?(o=f===n)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=m&&((o=e<2&&mn||n>f)&&(i[4]=e,i[5]=n,p.n=f,a=0))}if(o||e>1)return l;throw d=!0,n}return function(o,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,f),a=u,s=f;(r=a<2?t:s)||!d;){i||(a?a<3?(a>1&&(p.n=-1),m(a,s)):p.n=s:p.v=s);try{if(c=2,i){if(a||(o="next"),r=i[o]){if(!(r=r.call(i,s)))throw TypeError("iterator result is not an object");if(!r.done)return r;s=r.value,a<2&&(a=0)}else 1===a&&(r=i.return)&&r.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((r=(d=p.n<0)?s:e.call(n,p))!==l)break}catch(e){i=t,a=1,s=e}finally{c=1}}return{value:r,done:d}}}(e,i,a),!0),c}var l={};function u(){}function d(){}function p(){}r=Object.getPrototypeOf;var m=[][a]?r(r([][a]())):(n(r={},a,function(){return this}),r),f=p.prototype=u.prototype=Object.create(m);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,n(e,s,"GeneratorFunction")),e.prototype=Object.create(f),e}return d.prototype=p,n(f,"constructor",p),n(p,"constructor",d),d.displayName="GeneratorFunction",n(p,s,"GeneratorFunction"),n(f),n(f,s,"Generator"),n(f,a,function(){return this}),n(f,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:c,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7526(e,t){"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=s(e),a=i[0],c=i[1],l=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,c)),u=0,d=c>0?a-4:a;for(r=0;r>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[u++]=255&t);1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,c=n-o;sc?c:s+a));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function l(e,t,r){for(var n,o=[],i=t;ia)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|h(e,t);let n=s(r);const o=n.write(e,t);o!==r&&(n=n.slice(0,o));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return m(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return m(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return m(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const o=function(e){if(c.isBuffer(e)){const t=0|f(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||q(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),r=s(t);for(let n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(o)return n?-1:W(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return N(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function A(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),q(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:E(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):E(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function E(e,t,r,n,o){let i,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let n=-1;for(i=r;is&&(r=s-c),i=r;i>=0;i--){let r=!0;for(let n=0;no&&(n=o):n=o;const i=t.length;let a;for(n>i/2&&(n=i/2),a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function N(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function I(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o239?4:t>223?3:t>191?2:1;if(o+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(i=c));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:r=e[o+1],n=e[o+2],s=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=a}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,o){if(J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(i,a),l=this.slice(n,o),u=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return S(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":case"latin1":case"binary":return v(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function C(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;on)&&(r=n);let o="";for(let n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,r,n,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function M(e,t,r,n,o){X(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function U(e,t,r,n,o){X(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function _(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(e,t,r,n,i){return t=+t,r>>>=0,i||_(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,i){return t=+t,r>>>=0,i||_(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||D(e,t,this.length);let n=this[e],o=1,i=0;for(;++i>>=0,t>>>=0,r||D(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=$(function(e){j(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||D(e,t,this.length);let n=this[e],o=1,i=0;for(;++i=o&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=$(function(e){j(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||D(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){B(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,!n){B(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=$(function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=$(function(e,t=0){return U(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);B(this,e,t,r,n-1,-n)}let o=0,i=1,a=0;for(this[t]=255&e;++o>>=0,!n){const n=Math.pow(2,8*r-1);B(this,e,t,r,n-1,-n)}let o=r-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=$(function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=$(function(e,t=0){return U(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,r){return H(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return H(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function X(e,t,r,n,o,i){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new x.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){j(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||Y(t,e.length-(r+1))}(n,o,i)}function j(e,t){if("number"!=typeof e)throw new x.ERR_INVALID_ARG_TYPE(t,"number",e)}function Y(e,t,r){if(Math.floor(e)!==e)throw j(e,r),new x.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new x.ERR_BUFFER_OUT_OF_BOUNDS;throw new x.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),F("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=G(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=G(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);const K=/[^+/0-9A-Za-z-_]/g;function W(e,t){let r;t=t||1/0;const n=e.length;let o=null;const i=[];for(let a=0;a55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,r,n){let o;for(o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function q(e){return e!=e}const z=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function $(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};function t(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function n(e){return function(){var r=this,n=arguments;return new Promise(function(o,i){var a=e.apply(r,n);function s(e){t(a,o,i,s,c,"next",e)}function c(e){t(a,o,i,s,c,"throw",e)}s(void 0)})}}r.r(e),r.d(e,{hasBrowserEnv:()=>Be,hasStandardBrowserEnv:()=>Ue,hasStandardBrowserWebWorkerEnv:()=>_e,navigator:()=>Me,origin:()=>He});var o=r(4756);function i(e){return i="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},i(e)}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function s(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(t)}catch(e){return atob(t)}}u.prototype.name="InvalidTokenError","function"==typeof SuppressedError&&SuppressedError;var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f(e,t){return e(t={exports:{}},t.exports),t.exports}var h=f(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,r){var n=e.locked.get(t);void 0===n?void 0===r?e.locked.set(t,[]):e.locked.set(t,[r]):void 0!==r&&(n.unshift(r),e.locked.set(t,n))},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise(function(r,n){e.isLocked(t)?e.addToLocked(t,r):(e.addToLocked(t),r())})},this.unlock=function(t){var r=e.locked.get(t);if(void 0!==r&&0!==r.length){var n=r.pop();e.locked.set(t,r),void 0!==n&&setTimeout(n,0)}else e.locked.delete(t)}}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return r.getInstance()}});m(h);var g=m(f(function(e,t){var r=p&&p.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(a,s)}c((n=n.apply(e,t||[])).next())})},n=p&&p.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?setTimeout(r,t):r(null)}}window.addEventListener("storage",a),e.addToWaiting(a);var s=setTimeout(a,Math.max(0,t-Date.now()))})];case 1:return r.sent(),[2]}})})},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t)},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter(function(e){return e!==t}))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach(function(e){return e()})},e.prototype.releaseLock=function(e){return r(this,void 0,void 0,function(){return n(this,function(t){switch(t.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,t.sent()]}})})},e.prototype.releaseLock__private__=function(t){return r(this,void 0,void 0,function(){var r,o,s,c;return n(this,function(n){switch(n.label){case 0:return r=void 0===this.storageHandler?a:this.storageHandler,o=i+"-"+t,null===(s=r.getItemSync(o))?[2]:(c=JSON.parse(s)).id!==this.id?[3,2]:[4,h.default().lock(c.iat)];case 1:n.sent(),this.acquiredIatSet.delete(c.iat),r.removeItemSync(o),h.default().unlock(c.iat),e.notifyWaiters(),n.label=2;case 2:return[2]}})})},e.lockCorrector=function(t){for(var r=Date.now()-5e3,n=t,o=[],a=0;;){var s=n.keySync(a);if(null===s)break;o.push(s),a++}for(var c=!1,l=0;l(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e.toBase64({alphabet:"base64url",omitPadding:!0}));else{const e=32768;y=t=>{t instanceof ArrayBuffer&&(t=new Uint8Array(t));const r=[];for(let n=0;n{const t=w.call(e);return C[t]||(C[t]=t.slice(8,-1).toLowerCase())});var C;const O=e=>(e=e.toLowerCase(),t=>T(t)===e),P=e=>t=>typeof t===e,{isArray:L}=Array,D=P("undefined");function B(e){return null!==e&&!D(e)&&null!==e.constructor&&!D(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const M=O("ArrayBuffer");const U=P("string"),_=P("function"),H=P("number"),k=e=>null!==e&&"object"==typeof e,x=e=>{if("object"!==T(e))return!1;const t=R(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||I in e||N in e)},F=O("Date"),G=O("File"),X=O("Blob"),j=O("FileList"),Y=O("URLSearchParams"),[K,W,V,Z]=["ReadableStream","Request","Response","Headers"].map(O);function J(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),L(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,Q=e=>!D(e)&&e!==z;const ee=(te="undefined"!=typeof Uint8Array&&R(Uint8Array),e=>te&&e instanceof te);var te;const re=O("HTMLFormElement"),ne=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),oe=O("RegExp"),ie=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};J(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)};const ae=O("AsyncFunction"),se=(ce="function"==typeof setImmediate,le=_(z.postMessage),ce?setImmediate:le?(ue=`axios@${Math.random()}`,de=[],z.addEventListener("message",({source:e,data:t})=>{e===z&&t===ue&&de.length&&de.shift()()},!1),e=>{de.push(e),z.postMessage(ue,"*")}):e=>setTimeout(e));var ce,le,ue,de;const pe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(z):"undefined"!=typeof process&&process.nextTick||se,me={isArray:L,isArrayBuffer:M,isBuffer:B,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||_(e.append)&&("formdata"===(t=T(e))||"object"===t&&_(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&M(e.buffer),t},isString:U,isNumber:H,isBoolean:e=>!0===e||!1===e,isObject:k,isPlainObject:x,isEmptyObject:e=>{if(!k(e)||B(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:K,isRequest:W,isResponse:V,isHeaders:Z,isUndefined:D,isDate:F,isFile:G,isBlob:X,isRegExp:oe,isFunction:_,isStream:e=>k(e)&&_(e.pipe),isURLSearchParams:Y,isTypedArray:ee,isFileList:j,forEach:J,merge:function e(){const{caseless:t,skipUndefined:r}=Q(this)&&this||{},n={},o=(o,i)=>{const a=t&&q(n,i)||i;x(n[a])&&x(o)?n[a]=e(n[a],o):x(o)?n[a]=e({},o):L(o)?n[a]=o.slice():r&&D(o)||(n[a]=o)};for(let e=0,t=arguments.length;e(J(t,(t,n)=>{r&&_(t)?e[n]=v(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&R(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:T,kindOfTest:O,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(L(e))return e;let t=e.length;if(!H(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[N]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:re,hasOwnProperty:ne,hasOwnProp:ne,reduceDescriptors:ie,freezeMethods:e=>{ie(e,(t,r)=>{if(_(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];_(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return L(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:q,global:z,isContextDefined:Q,isSpecCompliantForm:function(e){return!!(e&&_(e.append)&&"FormData"===e[I]&&e[N])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(k(e)){if(t.indexOf(e)>=0)return;if(B(e))return e;if(!("toJSON"in e)){t[n]=e;const o=L(e)?[]:{};return J(e,(e,t)=>{const i=r(e,n+1);!D(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:ae,isThenable:e=>e&&(k(e)||_(e))&&_(e.then)&&_(e.catch),setImmediate:se,asap:pe,isIterable:e=>null!=e&&_(e[N])};function fe(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}me.inherits(fe,Error,{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:me.toJSONObject(this.config),code:this.code,status:this.status}}});const he=fe.prototype,ge={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ge[e]={value:e}}),Object.defineProperties(fe,ge),Object.defineProperty(he,"isAxiosError",{value:!0}),fe.from=(e,t,r,n,o,i)=>{const a=Object.create(he);me.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return fe.call(a,s,c,r,n,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const ye=fe;var Ae=r(8287).hp;function Ee(e){return me.isPlainObject(e)||me.isArray(e)}function Se(e){return me.endsWith(e,"[]")?e.slice(0,-2):e}function be(e,t,r){return e?e.concat(t).map(function(e,t){return e=Se(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const ve=me.toFlatObject(me,{},null,function(e){return/^is[A-Z]/.test(e)});const we=function(e,t,r){if(!me.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=me.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!me.isUndefined(t[e])})).metaTokens,o=r.visitor||l,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&me.isSpecCompliantForm(t);if(!me.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(me.isDate(e))return e.toISOString();if(me.isBoolean(e))return e.toString();if(!s&&me.isBlob(e))throw new ye("Blob is not supported. Use a Buffer instead.");return me.isArrayBuffer(e)||me.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Ae.from(e):e}function l(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(me.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(me.isArray(e)&&function(e){return me.isArray(e)&&!e.some(Ee)}(e)||(me.isFileList(e)||me.endsWith(r,"[]"))&&(s=me.toArray(e)))return r=Se(r),s.forEach(function(e,n){!me.isUndefined(e)&&null!==e&&t.append(!0===a?be([r],n,i):null===a?r:r+"[]",c(e))}),!1;return!!Ee(e)||(t.append(be(o,r,i),c(e)),!1)}const u=[],d=Object.assign(ve,{defaultVisitor:l,convertValue:c,isVisitable:Ee});if(!me.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!me.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),me.forEach(r,function(r,i){!0===(!(me.isUndefined(r)||null===r)&&o.call(t,r,me.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])}),u.pop()}}(e),t};function Re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Ne(e,t){this._pairs=[],e&&we(e,this,t)}const Ie=Ne.prototype;Ie.append=function(e,t){this._pairs.push([e,t])},Ie.toString=function(e){const t=e?function(t){return e.call(this,t,Re)}:Re;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Te=Ne;function Ce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Oe(e,t,r){if(!t)return e;const n=r&&r.encode||Ce;me.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):me.isURLSearchParams(t)?t.toString():new Te(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const Pe=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){me.forEach(this.handlers,function(t){null!==t&&e(t)})}},Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},De={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Te,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Be="undefined"!=typeof window&&"undefined"!=typeof document,Me="object"==typeof navigator&&navigator||void 0,Ue=Be&&(!Me||["ReactNative","NativeScript","NS"].indexOf(Me.product)<0),_e="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,He=Be&&window.location.href||"http://localhost",ke={...e,...De};const xe=function(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&me.isArray(n)?n.length:i,s)return me.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&me.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&me.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n{t(function(e){return me.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null};const Fe={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=me.isObject(e);o&&me.isHTMLForm(e)&&(e=new FormData(e));if(me.isFormData(e))return n?JSON.stringify(xe(e)):e;if(me.isArrayBuffer(e)||me.isBuffer(e)||me.isStream(e)||me.isFile(e)||me.isBlob(e)||me.isReadableStream(e))return e;if(me.isArrayBufferView(e))return e.buffer;if(me.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return we(e,new ke.classes.URLSearchParams,{visitor:function(e,t,r,n){return ke.isNode&&me.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=me.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return we(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(me.isString(e))try{return(t||JSON.parse)(e),me.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Fe.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(me.isResponse(e)||me.isReadableStream(e))return e;if(e&&me.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw ye.from(e,ye.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};me.forEach(["delete","get","head","post","put","patch"],e=>{Fe.headers[e]={}});const Ge=Fe,Xe=me.toObjectSet(["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"]),je=Symbol("internals");function Ye(e){return e&&String(e).trim().toLowerCase()}function Ke(e){return!1===e||null==e?e:me.isArray(e)?e.map(Ke):String(e)}function We(e,t,r,n,o){return me.isFunction(n)?n.call(this,t,r):(o&&(t=r),me.isString(t)?me.isString(n)?-1!==t.indexOf(n):me.isRegExp(n)?n.test(t):void 0:void 0)}class Ve{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=Ye(t);if(!o)throw new Error("header name must be a non-empty string");const i=me.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=Ke(e))}const i=(e,t)=>me.forEach(e,(e,r)=>o(e,r,t));if(me.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(me.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&Xe[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(me.isObject(e)&&me.isIterable(e)){let r,n,o={};for(const t of e){if(!me.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?me.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=Ye(e)){const r=me.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(me.isFunction(t))return t.call(this,e,r);if(me.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ye(e)){const r=me.findKey(this,e);return!(!r||void 0===this[r]||t&&!We(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=Ye(e)){const o=me.findKey(r,e);!o||t&&!We(0,r[o],o,t)||(delete r[o],n=!0)}}return me.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!We(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return me.forEach(this,(n,o)=>{const i=me.findKey(r,o);if(i)return t[i]=Ke(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();a!==o&&delete t[o],t[a]=Ke(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return me.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&me.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[je]=this[je]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Ye(e);t[n]||(!function(e,t){const r=me.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return me.isArray(e)?e.forEach(n):n(e),this}}Ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),me.reduceDescriptors(Ve.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),me.freezeMethods(Ve);const Ze=Ve;function Je(e,t){const r=this||Ge,n=t||r,o=Ze.from(n.headers);let i=n.data;return me.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function qe(e){return!(!e||!e.__CANCEL__)}function ze(e,t,r){ye.call(this,null==e?"canceled":e,ye.ERR_CANCELED,t,r),this.name="CanceledError"}me.inherits(ze,ye,{__CANCEL__:!0});const $e=ze;function Qe(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new ye("Request failed with status code "+r.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const et=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];o||(o=c),r[i]=s,n[i]=c;let u=a,d=0;for(;u!==i;)d+=r[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},i-s)))},()=>r&&a(r)]},rt=(e,t,r=3)=>{let n=0;const o=et(50,250);return tt(r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,c=o(s);n=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},nt=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ot=e=>(...t)=>me.asap(()=>e(...t)),it=ke.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ke.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ke.origin),ke.navigator&&/(msie|trident)/i.test(ke.navigator.userAgent)):()=>!0,at=ke.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];me.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),me.isString(n)&&s.push(`path=${n}`),me.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),me.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function st(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ct=e=>e instanceof Ze?{...e}:e;function lt(e,t){t=t||{};const r={};function n(e,t,r,n){return me.isPlainObject(e)&&me.isPlainObject(t)?me.merge.call({caseless:n},e,t):me.isPlainObject(t)?me.merge({},t):me.isArray(t)?t.slice():t}function o(e,t,r,o){return me.isUndefined(t)?me.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!me.isUndefined(t))return n(void 0,t)}function a(e,t){return me.isUndefined(t)?me.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>o(ct(e),ct(t),0,!0)};return me.forEach(Object.keys({...e,...t}),function(n){const i=c[n]||o,a=i(e[n],t[n],n);me.isUndefined(a)&&i!==s||(r[n]=a)}),r}const ut=e=>{const t=lt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=Ze.from(a),t.url=Oe(st(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),me.isFormData(r))if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(me.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&a.set(e,r)})}if(ke.hasStandardBrowserEnv&&(n&&me.isFunction(n)&&(n=n(t)),n||!1!==n&&it(t.url))){const e=o&&i&&at.read(i);e&&a.set(o,e)}return t},dt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=ut(e);let o=n.data;const i=Ze.from(n.headers).normalize();let a,s,c,l,u,{responseType:d,onUploadProgress:p,onDownloadProgress:m}=n;function f(){l&&l(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const n=Ze.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Qe(function(e){t(e),f()},function(e){r(e),f()},{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(r(new ye("Request aborted",ye.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new ye(n,ye.ERR_NETWORK,e,h);o.event=t||null,r(o),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Le;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new ye(t,o.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&me.forEach(i.toJSON(),function(e,t){h.setRequestHeader(t,e)}),me.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),d&&"json"!==d&&(h.responseType=n.responseType),m&&([c,u]=rt(m,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,l]=rt(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",l)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new $e(null,e,h):t),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);y&&-1===ke.protocols.indexOf(y)?r(new ye("Unsupported protocol "+y+":",ye.ERR_BAD_REQUEST,e)):h.send(o||null)})},pt=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof ye?t:new $e(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new ye(`timeout ${t} of ms exceeded`,ye.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=()=>me.asap(a),s}},mt=function*(e,t){let r=e.byteLength;if(!t||r{const o=async function*(e,t){for await(const r of ft(e))yield*mt(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:gt}=me,yt=(({Request:e,Response:t})=>({Request:e,Response:t}))(me.global),{ReadableStream:At,TextEncoder:Et}=me.global,St=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},bt=e=>{e=me.merge.call({skipUndefined:!0},yt,e);const{fetch:t,Request:r,Response:n}=e,o=t?gt(t):"function"==typeof fetch,i=gt(r),a=gt(n);if(!o)return!1;const s=o&>(At),c=o&&("function"==typeof Et?(l=new Et,e=>l.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var l;const u=i&&s&&St(()=>{let e=!1;const t=new r(ke.origin,{body:new At,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=a&&s&&St(()=>me.isReadableStream(new n("").body)),p={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new ye(`Response type '${e}' is not supported`,ye.ERR_NOT_SUPPORT,r)})});const m=async(e,t)=>{const n=me.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(me.isBlob(e))return e.size;if(me.isSpecCompliantForm(e)){const t=new r(ke.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return me.isArrayBufferView(e)||me.isArrayBuffer(e)?e.byteLength:(me.isURLSearchParams(e)&&(e+=""),me.isString(e)?(await c(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:a,data:s,signal:c,cancelToken:l,timeout:f,onDownloadProgress:h,onUploadProgress:g,responseType:y,headers:A,withCredentials:E="same-origin",fetchOptions:S}=ut(e),b=t||fetch;y=y?(y+"").toLowerCase():"text";let v=pt([c,l&&l.toAbortSignal()],f),w=null;const R=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let N;try{if(g&&u&&"get"!==a&&"head"!==a&&0!==(N=await m(A,s))){let e,t=new r(o,{method:"POST",body:s,duplex:"half"});if(me.isFormData(s)&&(e=t.headers.get("content-type"))&&A.setContentType(e),t.body){const[e,r]=nt(N,rt(ot(g)));s=ht(t.body,65536,e,r)}}me.isString(E)||(E=E?"include":"omit");const t=i&&"credentials"in r.prototype,c={...S,signal:v,method:a.toUpperCase(),headers:A.normalize().toJSON(),body:s,duplex:"half",credentials:t?E:void 0};w=i&&new r(o,c);let l=await(i?b(w,S):b(o,c));const f=d&&("stream"===y||"response"===y);if(d&&(h||f&&R)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=l[t]});const t=me.toFiniteNumber(l.headers.get("content-length")),[r,o]=h&&nt(t,rt(ot(h),!0))||[];l=new n(ht(l.body,65536,r,()=>{o&&o(),R&&R()}),e)}y=y||"text";let I=await p[me.findKey(p,y)||"text"](l,e);return!f&&R&&R(),await new Promise((t,r)=>{Qe(t,r,{data:I,headers:Ze.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:w})})}catch(t){if(R&&R(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ye("Network Error",ye.ERR_NETWORK,e,w),{cause:t.cause||t});throw ye.from(t,t&&t.code,e,w)}}},vt=new Map,wt=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a,s,c=i.length,l=vt;for(;c--;)a=i[c],s=l.get(a),void 0===s&&l.set(a,s=c?new Map:bt(t)),l=s;return s},Rt=(wt(),{http:null,xhr:dt,fetch:{get:wt}});me.forEach(Rt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Nt=e=>`- ${e}`,It=e=>me.isFunction(e)||null===e||!1===e;const Tt={getAdapter:function(e,t){e=me.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(Nt).join("\n"):" "+Nt(e[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:Rt};function Ct(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $e(null,e)}function Ot(e){Ct(e),e.headers=Ze.from(e.headers),e.data=Je.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Tt.getAdapter(e.adapter||Ge.adapter,e)(e).then(function(t){return Ct(e),t.data=Je.call(e,e.transformResponse,t),t.headers=Ze.from(t.headers),t},function(t){return qe(t)||(Ct(e),t&&t.response&&(t.response.data=Je.call(e,e.transformResponse,t.response),t.response.headers=Ze.from(t.response.headers))),Promise.reject(t)})}const Pt="1.13.2",Lt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Lt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Dt={};Lt.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Pt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new ye(n(o," has been removed"+(t?" in "+t:"")),ye.ERR_DEPRECATED);return t&&!Dt[o]&&(Dt[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},Lt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const Bt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new ye("options must be an object",ye.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new ye("option "+i+" must be "+r,ye.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new ye("Unknown option "+i,ye.ERR_BAD_OPTION)}},validators:Lt},Mt=Bt.validators;class Ut{constructor(e){this.defaults=e||{},this.interceptors={request:new Pe,response:new Pe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=lt(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&Bt.assertOptions(r,{silentJSONParsing:Mt.transitional(Mt.boolean),forcedJSONParsing:Mt.transitional(Mt.boolean),clarifyTimeoutError:Mt.transitional(Mt.boolean)},!1),null!=n&&(me.isFunction(n)?t.paramsSerializer={serialize:n}:Bt.assertOptions(n,{encode:Mt.function,serialize:Mt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Bt.assertOptions(t,{baseUrl:Mt.spelling("baseURL"),withXsrfToken:Mt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&me.merge(o.common,o[t.method]);o&&me.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Ze.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[Ot.bind(this),void 0];for(e.unshift(...a),e.push(...c),u=e.length,l=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new $e(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new Ht(function(t){e=t});return{token:t,cancel:e}}}const kt=Ht;const xt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xt).forEach(([e,t])=>{xt[t]=e});const Ft=xt;const Gt=function e(t){const r=new _t(t),n=v(_t.prototype.request,r);return me.extend(n,_t.prototype,r,{allOwnKeys:!0}),me.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(lt(t,r))},n}(Ge);Gt.Axios=_t,Gt.CanceledError=$e,Gt.CancelToken=kt,Gt.isCancel=qe,Gt.VERSION=Pt,Gt.toFormData=we,Gt.AxiosError=ye,Gt.Cancel=Gt.CanceledError,Gt.all=function(e){return Promise.all(e)},Gt.spread=function(e){return function(t){return e.apply(null,t)}},Gt.isAxiosError=function(e){return me.isObject(e)&&!0===e.isAxiosError},Gt.mergeConfig=lt,Gt.AxiosHeaders=Ze,Gt.formToJSON=e=>xe(me.isHTMLForm(e)?new FormData(e):e),Gt.getAdapter=Tt.getAdapter,Gt.HttpStatusCode=Ft,Gt.default=Gt;const Xt=Gt;var jt=r(3612);const Yt={log:function(){if(jt.A.debug){for(var e,t=arguments.length,r=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=zt().hostname;if(e&&"string"==typeof e&&e.length>0&&(t=e,e.includes("vipdev.lndo.site")))return"".concat(e.split(".")[0],".com");var r=t.split(".");return"".concat(r[r.length-2],".").concat(r[r.length-1])},er=function(){var e=Qt();return".".concat(e)},tr=function(e,t,r){var n="".concat(e,"=").concat(t,";");void 0!==r?(Yt.log("Setting cookie with options: ",r),Object.entries(r).forEach(function(e){var t=l(e,2),r=t[0],o=t[1];if("expires"===r){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),n+="expires=".concat(i.toUTCString(),";")}else n+="".concat(r,"=").concat(o,";")})):n+="path=/;",document.cookie=n},rr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n="".concat(e,"= ;expires= Thu, 01 Jan 1970 00:00:00 GMT;"),o=Qt(),i=[o,"www".concat(o),".www".concat(o)];r&&i.push(r),Object.entries(t).forEach(function(e){var t=l(e,2),r=t[0],o=t[1];n+="".concat(r,"=").concat(o,";")}),0===Object.keys(t).length&&(n+="path=/;"),document.cookie=n,i.forEach(function(e){document.cookie=n.concat("domain=",e,";")})},nr=function(){return zt().host.replace(/^(?:www\.|develop\.|staging\.|preprod\.)/,"").replace("vipdev.lndo.site","com")},or=function(e){return function(e,t){if("string"!=typeof e)throw new u("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new u(`Invalid token specified: missing part #${r+1}`);let o;try{o=d(n)}catch(e){throw new u(`Invalid token specified: invalid base64 for part #${r+1} (${e.message})`)}try{return JSON.parse(o)}catch(e){throw new u(`Invalid token specified: invalid json for part #${r+1} (${e.message})`)}}(e)},ir=function(){var e=Qt();return["mcall.com","courant.com","sun-sentinel.com","orlandosentinel.com","growthspotter.com","dailypress.com","pilotonline.com","nydailynews.com","baltimoresun.com","capitalgazette.com","chicagotribune.com","trbdevcloud.com"].includes(e)},ar=function(){return"complete"===document.readyState},sr=function(){return new Promise(function(e){if(("interactive"===document.readyState||ar())&&window.dataLayer)Yt.log("Utils digisubsDataLayerLoaded: ","Document is in interactive state, resolving."),e();else{Yt.log("Utils digisubsDataLayerLoaded: ","Waiting for the dataLayer to load...");var t=setInterval(n(o.mark(function r(){return o.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:window.dataLayer&&window.dataLayer.length>2&&(clearInterval(t),e(!0));case 1:case"end":return r.stop()}},r)})),50)}})},cr=function(){var e=n(o.mark(function e(t){var r,n,i;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,sr();case 1:return Yt.log("Utils getDataLayerObject: looking for this dataLayer object ",t),window.dataLayer=window.dataLayer||[],r="",Yt.log("Utils getDataLayerObject: here is dataLayer length ",window.dataLayer.length),n=function(e){return Yt.log("Utils dataLayerLoop: look for this element ",e),e[t]?(Yt.log("Utils dataLayerLoop: found ",e[t]),r=e[t],e[t]):(Yt.log("Utils dataLayerLoop: dataLayer search ",!1),!1)},i=window.dataLayer.some(n),e.abrupt("return",i?r:"");case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),lr=function(){var e=n(o.mark(function e(){var t,r,n=arguments;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:"Page Type",e.next=1,cr(t);case 1:return r=e.sent,Yt.log("utils | pageType: page type is ",r),e.abrupt("return",r);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),ur=function(){return new Promise(function(e,t){void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.authenticationReady?(Yt.log("utils | Authentication already ready: ",window.MNGAuthentication.authenticationReady),e(window.MNGAuthentication.authenticationReady)):(Yt.log("utils | Adding authenticationReady listener..."),window.addEventListener("authenticationReady",function(r){try{var n=r.detail||{};Yt.log("utils | Event: authentication ready: ",n),e(n)}catch(e){Yt.log(e),t(e)}},!1))})},dr=function(){var e=n(o.mark(function e(){return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,t){return jt.A.entitlementsEnabled?void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.entitlementsReady?(Yt.log("Entitlements already present:",window.MNGAuthentication.entitlementsReady),void e(window.MNGAuthentication.entitlementsReady)):void window.addEventListener("entitlementsReady",function(r){try{var n=r.detail||{};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.entitlementsReady=n,Yt.log("Received entitlementsReady event:",n),e(n)}catch(e){Yt.error("Error handling entitlementsReady event:",e),t(e)}},{once:!0}):(Yt.log("Entitlements disabled in settings."),void e(!1))}));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),pr=function(){Yt.log("Clearing entitlements...");try{rr(Kt,{path:"/"})}catch(e){Yt.log("Failed to delete legacy cookie: ",e)}try{rr(Kt,{path:"/",domain:Qt(),expires:365,secure:!0})}catch(e){Yt.log("Failed to delete entitlements cookie: ",e)}try{window.localStorage.removeItem(Wt)}catch(e){Yt.log("Failed to remove local storage: ",e)}},mr=function(e){Yt.log("starting simpleEmailValidation");if(!e)return{valid:!1,message:"Please enter an email."};if(!/^(([^<>()[\]\\.,;:\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.test(e))return{valid:!1,message:"Please enter a valid email."};var t=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(t);return Yt.log("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=mr;window.validatePhoneNumber=function(e){return/^[0-9]([0-9 -])*[0-9]$/.test(e)};var fr=function(e){jt.A.datadogEnabled&&window.DD_RUM.addTiming(e)},hr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return new Promise(function(t,r){var i={sspw:null,sophiClient:null,engagePaywall:null,engageStatus:null},a=function(){var a=n(o.mark(function n(){var a,s,c,l,u,d,p,m,f,h,g;return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,"1"!==(null===(a=window.sophi_config)||void 0===a?void 0:a.enableSophiSSPW)){n.next=1;break}if(!document.getElementById("server-paywall")){n.next=1;break}return i.sspw=!0,n.abrupt("return",t({paywall:!0,details:Zt({},i)}));case 1:return n.next=2,lr();case 2:return c=n.sent,n.next=3,cr("Paywall_Level");case 3:if(l=n.sent,"article"===c&&"free"!==l){n.next=4;break}return n.abrupt("return",t({paywall:!1,details:"article"!==c?"Page type is not an article":"Free article"}));case 4:return n.next=5,dr();case 5:if(!(u=n.sent)||!u.isEntitled){n.next=6;break}return n.abrupt("return",t({paywall:!1,details:"Entitled User"}));case 6:if("premium"!==l){n.next=7;break}return n.abrupt("return",t({paywall:!0,details:"Premium article"}));case 7:if(d=null===(s=window.ConnextUtils)||void 0===s?void 0:s.runningSophi,Yt.log("checkPaywallStatus - Sophi is running: ",d),!d){n.next=8;break}window.ConnextUtils.connextAlreadyRan&&window.sophiWallConfig&&!window.sophiWallConfig.error&&"paywall"===window.sophiWallConfig.wallType?(i.sophiClient=!0,i.engageStatus=!0,i.engagePaywall=!0):window.addEventListener("onPaywallShown",function(){return"paywall"===window.sophiWallConfig.wallType&&(i.sophiClient=!0),t({paywall:!0,details:Zt({},i)})},{once:!0}),n.next=12;break;case 8:if(d){n.next=12;break}return p=window.ConnextUtils.connextReady("onPaywallShown",!1),m=new Promise(function(t,r){return setTimeout(function(){return r(new Error("No Engage paywall within 10 seconds, resolving as no paywall."))},e)}),n.prev=9,n.next=10,Promise.race([p,m]);case 10:!0===(f=n.sent)?(i.engagePaywall=!0,i.engageStatus="Engage paywall detected"):(i.engagePaywall=!1,i.engageStatus="Engage response: ".concat(f)),n.next=12;break;case 11:n.prev=11,h=n.catch(9),i.engagePaywall=!1,i.engageStatus="Engage response: ".concat(h);case 12:return n.abrupt("return",t({paywall:Object.values(i).some(function(e){return e}),details:Zt({},i)}));case 13:n.prev=13,g=n.catch(0),r(g);case 14:case"end":return n.stop()}},n,null,[[0,13],[9,11]])}));return function(){return a.apply(this,arguments)}}();a()})};"undefined"!=typeof window&&(window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.checkPaywallStatus=hr);function gr(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"Apple";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.paymentSource=t,this.dynamicOfferCodeId="",this.siteName=nr(),this.siteNameParsed=this.siteName.replace("www.","").replace("preprod.","").replace("develop.","").replace("local","com").replace("staging.",""),this.offerGroup=null,this.offerId=null,this.terms="",this.tokenReady=!1,this.paywayRequestToken=null,this.transactionName="",this.site=Cr[this.siteNameParsed],this.siteCode=this.site.code,this.loggedInUserData=null,this.email="",this.uuid="",this.offerDetails=null,this.entitlementToken="",this.sourceId=0,this.serviceUrl="https://paywayws.com/PaywayWS/AccessTokens",this.billingUrl="https://paywayws.com/PaywayWS/CreditCards",this.safeURL=""},[{key:"queuePaywaySession",value:(i=n(o.mark(function e(t){var r,n,i,a,s,c,l,u;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return Yt.log("APPLE PAY | queue session started"),r=document.querySelector(".apple-pay-button"),n=document.querySelector(".terms"),e.next=1,cr("URL");case 1:if(this.safeURL=e.sent,this.safeURL.includes("staging")||this.safeURL.includes("develop")?(this.serviceUrl="https://paywaywsdev.com/PaywayWS/AccessTokens",this.billingUrl="https://paywaywsdev.com/PaywayWS/CreditCards",this.offerGroup=r.dataset.offergroup,this.offerId=r.dataset.offercode,this.terms=n.textContent):(this.offerGroup=r.dataset.offergroup,this.offerId=r.dataset.offercode,this.terms=n.textContent),this.sourceId=window.apple_config.sourceId?parseInt(window.apple_config.sourceId,10):0,this.offerDetails=this.getBillingDataLocallyWithOfferCode(this.offerGroup,this.offerId,this.sourceId),Yt.log("APPLE PAY | offer ",this.offerDetails),r&&(r.style.cursor="not-allowed !important"),!window.MNGAuthentication){e.next=3;break}return e.next=2,MNGAuthentication.getUserInfo();case 2:this.loggedInUserData=e.sent,this.uuid=this.loggedInUserData.userId,this.email=this.loggedInUserData.email;case 3:return i="".concat(jt.A.entitlementsEndpoint,"payway/queue_transaction"),e.prev=4,a=this.offerDetails.promo.amount.replace(".",""),s={amount:a,eciType:1,sourceId:this.sourceId,tax:"0",transactionNotes1:"",transactionNotes2:"",transactionNotes3:"",request:"queueSale"},Yt.log("APPLE PAY | sending queue object "),e.next=5,fetch(i,{method:"POST",headers:{"X-Api-Key":jt.A.entitlementsApiKey},body:JSON.stringify(s)});case 5:return c=e.sent,e.next=6,c.json();case 6:l=e.sent,Yt.log("APPLE PAY |request token received from entitler"),this.paywayRequestToken=l.data.paywayRequestToken,this.transactionName=l.data.transactionName,l.data.paywayRequestToken&&(Yt.log("APPLE PAY | queue session success, showing button "),r.style.display="block !important",r.addEventListener("click",this.thirdPartyPaymentButtonClicked.bind(this)),r.disabled=!1,Yt.log("APPLE PAY | queue success "),this.entitlementToken=t,window.MG2DL.push({event:"g2i_action_shown",actionType:"paywall",actionName:"apple_pay"})),e.next=8;break;case 7:e.prev=7,u=e.catch(4),Yt.log("APPLE PAY ERROR | queue failed category ",u.error.category),Yt.log("APPLE PAY ERROR | queue failed custom status code ",u.error.customStatusCode),Yt.log("APPLE PAY ERROR | queue failed message ",u.error.message),Yt.log("APPLE PAY ERROR | queue failed message ",u.error.errCode),document.querySelector(".error").style.display="block";case 8:case"end":return e.stop()}},e,this,[[4,7]])})),function(e){return i.apply(this,arguments)})},{key:"getBillingDataLocallyWithOfferCode",value:function(e,t){var r={1852:{4638:{billingAgreement:'AUTOMATIC RENEWAL TERMS: After the 1-year $1.00 introductory rate, your payment method will be automatically charged $21.99 every Month. \n\t\t\t\t\tBy subscribing, you agree to the Automatic Renewal Terms of this offer, the Terms of Use, and Arbitration and Refund Terms. Your subscription will renew automatically, and you will be charged up to seven days in advance of your renewal date until you cancel. \n\t\t\t\t\tYou may cancel at any time by calling Subscriber Services at 570-628-5985 or by selecting "Cancel Subscription" in your account settings. \n\t\t\t\t\tThe cancellation goes into effect at the start of your following billing cycle.',offerId:4638,promoDuration:"1 year",paymentDescription:"$1.00 for 1-year of access, then $21.99 per month subscription",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"1.00",paymentTiming:"recurring"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"28"}}},2789:{21866:{billingAgreement:this.terms,offerId:21866,promoDuration:"1 year",paymentDescription:"$0.01 for 1-year of access, then $21.99 per month subscription",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"0.01",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30"}},21865:{billingAgreement:this.terms,offerId:21866,promoDuration:"1 year",paymentDescription:"$0.01 for 1-year of access, then $21.99 per month subscription",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"0.01",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30"}},21867:{billingAgreement:this.terms,offerId:21866,promoDuration:"1 year",paymentDescription:"$0.01 for 1-year of access, then $21.99 per month subscription",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"0.01",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30"}},21868:{billingAgreement:this.terms,offerId:21866,promoDuration:"1 year",paymentDescription:"$0.01 for 1-year of access, then $21.99 per month subscription",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"0.01",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30"}}},2889:{22798:{billingAgreement:this.terms,offerId:22798,promoDuration:"1 year",paymentDescription:"$3 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"3.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},22797:{billingAgreement:this.terms,offerId:22797,promoDuration:"1 year",paymentDescription:"$3 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"3.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},22799:{billingAgreement:this.terms,offerId:22799,promoDuration:"1 year",paymentDescription:"$3 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"3.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},22800:{billingAgreement:this.terms,offerId:22800,promoDuration:"1 year",paymentDescription:"$3 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"3.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}}},2965:{23494:{billingAgreement:this.terms,offerId:23494,promoDuration:"1 year",paymentDescription:"$1 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"1.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},23495:{billingAgreement:this.terms,offerId:23495,promoDuration:"1 year",paymentDescription:"$1 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"1.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},23496:{billingAgreement:this.terms,offerId:23496,promoDuration:"1 year",paymentDescription:"$1 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"1.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},23497:{billingAgreement:this.terms,offerId:23497,promoDuration:"1 year",paymentDescription:"$1 for 1 year introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"1.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"1",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}}},2966:{23498:{billingAgreement:this.terms,offerId:23498,promoDuration:"2 year",paymentDescription:"$2 for 2 years introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"2.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"2",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},23499:{billingAgreement:this.terms,offerId:23499,promoDuration:"2 year",paymentDescription:"$2 for 2 years introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"2.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"2",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},23500:{billingAgreement:this.terms,offerId:23500,promoDuration:"2 year",paymentDescription:"$2 for 2 years introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"2.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"2",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}},23501:{billingAgreement:this.terms,offerId:23501,promoDuration:"2 year",paymentDescription:"$2 for 2 years introductory rate, then your payment method will be charged $21.99 monthly",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"2.00",type:"final",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:"2",recurringPaymentCount:"1"},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:"30",type:"final"}}}};if(r[e]&&r[e][t]){var n=r[e][t],o=n.promoDuration,i=this.getFutureDate(o);return n.regularBilling.recurringPaymentStartDate=i,n.trialIsRecurring&&(n.promo.recurringPaymentEndDate=i),n}return null}},{key:"getFutureDate",value:function(e){var t=l(e.split(" "),2),r=t[0],n=t[1],o=parseInt(r,10),i=new Date,a=n.toLowerCase();return a.startsWith("year")?i.setFullYear(i.getFullYear()+o):a.startsWith("month")?i.setMonth(i.getMonth()+o):a.startsWith("week")?i.setDate(i.getDate()+7*o):a.startsWith("day")&&i.setDate(i.getDate()+o),i.toISOString()}},{key:"thirdPartyPaymentButtonClicked",value:(r=n(o.mark(function e(){var t,r,n,i;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:try{Yt.log("APPLE PAY | transaction button clicked - payment processing started"),t=ir()?"TribuneCEP":"MNG",r=this.paywayRequestToken,(new Date).toISOString(),n=[],console.log("rq apple offer details ",this.offerDetails),this.offerDetails.promo&&n.push(this.offerDetails.promo),n.push(this.offerDetails.regularBilling),i={requiredBillingContactFields:["postalAddress","phone"],countryCode:"US",currencyCode:"USD",merchantCapabilities:["supports3DS","supportsDebit","supportsCredit"],supportedNetworks:["visa","masterCard","amex","discover"],lineItems:n,recurringPaymentRequest:{paymentDescription:this.offerDetails.paymentDescription,regularBilling:this.offerDetails.regularBilling,trialBilling:this.offerDetails.promo,billingAgreement:this.offerDetails.billingAgreement,managementURL:"https://myaccount.".concat(this.siteNameParsed),tokenNotificationURL:"https://aws-mng-prod.subscriberconcierge.com/Webhooks/Apple/V2/".concat(t,"/").concat(this.siteCode,"/").concat(this.siteCode)},total:{label:this.offerDetails.promo.label,amount:this.offerDetails.promo.amount}},this.initApplePaySession(i,r)}catch(e){document.querySelector(".error").style.display="block",Yt.log("APPLE PAY ERROR | Failed to initialize payment options",e)}case 1:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"initApplePaySession",value:(t=n(o.mark(function e(t,r){var i,a,s,c,l=this;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:try{Yt.log("APPLE PAY | Apple Pay startign session with req object ",t),i=new ApplePaySession(1,t),a="".concat(jt.A.entitlementsEndpoint,"payway/create_subscription"),s=new URL(this.safeURL),c=s.hostname,i.onvalidatemerchant=function(){var e=n(o.mark(function e(t){var n,a,s,u,d,p;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return Yt.log("APPLE PAY | Apple Pay validating merchant ",t),e.prev=1,n={request:"getApplePaySession",url:t.validationURL,domain:c,merchantIdentifier:"merchant.com.payway.mng",paywayRequestToken:r},a=JSON.stringify(n),Yt.log("APPLE PAY | Apple Pay validating merchant req body ",n),e.next=2,fetch(l.serviceUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:a});case 2:if((s=e.sent).ok){e.next=4;break}return e.next=3,s.text();case 3:return u=e.sent,document.querySelector(".error").style.display="block",Yt.log("APPLE PAY ERROR | Merchant validation error: ".concat(s.status," ").concat(u)),e.abrupt("return");case 4:return e.next=5,s.text();case 5:d=e.sent,d=JSON.parse(d);try{i.completeMerchantValidation(JSON.parse(d.appleSessionToken))}catch(e){document.querySelector(".error").style.display="block",Yt.log("APPLE PAY ERROR | Cannot init complete merch validation ",e)}e.next=7;break;case 6:e.prev=6,p=e.catch(1),document.querySelector(".error").style.display="block",Yt.log("APPLE PAY ERROR | Apple Validation reply error: ".concat(p.message));case 7:case"end":return e.stop()}},e,null,[[1,6]])}));return function(t){return e.apply(this,arguments)}}(),i.onpaymentauthorized=function(){var e=n(o.mark(function e(t){var n,s,c,u,d,p,m,f,h,g,y,A,E,S,b,v,w,R,N,I,T;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return E={accountInputMode:"applePay",paywayRequestToken:l.paywayRequestToken,transactionName:l.transactionName,transactionSourceId:window.apple_config.sourceId?parseInt(window.apple_config.sourceId,10):"0",request:"sendQueuedTransaction",applePayToken:t.payment.token.paymentData,merchantIdentifier:"merchant.com.payway.mng",cardAccount:{firstName:(null===(n=t.payment.billingContact)||void 0===n?void 0:n.givenName)||"",lastName:(null===(s=t.payment.billingContact)||void 0===s?void 0:s.familyName)||"",address:(null===(c=t.payment.billingContact)||void 0===c||null===(c=c.addressLines)||void 0===c?void 0:c.join(" "))||"",city:(null===(u=t.payment.billingContact)||void 0===u?void 0:u.locality)||"",state:(null===(d=t.payment.billingContact)||void 0===d?void 0:d.administrativeArea)||"",zip:(null===(p=t.payment.billingContact)||void 0===p?void 0:p.postalCode)||"",email:l.loggedInUserData.email||"",phone:t.payment.billingContact.phoneNumber}},S={paywayRequestToken:r,applePayData:t.payment,firstName:(null===(m=t.payment.billingContact)||void 0===m?void 0:m.givenName)||"",lastName:(null===(f=t.payment.billingContact)||void 0===f?void 0:f.familyName)||"",address:(null===(h=t.payment.billingContact)||void 0===h||null===(h=h.addressLines)||void 0===h?void 0:h.join(" "))||"",city:(null===(g=t.payment.billingContact)||void 0===g?void 0:g.locality)||"",state:(null===(y=t.payment.billingContact)||void 0===y?void 0:y.administrativeArea)||"",zip:(null===(A=t.payment.billingContact)||void 0===A?void 0:A.postalCode)||"",email:l.email||"",offerId:l.offerId,offerGroupId:l.offerGroup,uuid:l.uuid||"",domain:l.siteNameParsed,paymentAmount:l.offerDetails.promo.amount,sourceId:l.sourceId,phone:t.payment.billingContact.phoneNumber?t.payment.billingContact.phoneNumber:""},e.prev=1,e.next=2,fetch(l.billingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E)});case 2:return b=e.sent,e.next=3,b.text();case 3:if(e.sent,Yt.log("APPLE PAY | Response from Payway"),e.prev=4,Yt.log("APPLE PAY | starting entitler req to naviga for new sub start"),!b.ok){e.next=11;break}return i.completePayment(ApplePaySession.STATUS_SUCCESS),e.next=5,fetch(a,{method:"POST",headers:{"X-Api-Key":jt.A.entitlementsApiKey},body:JSON.stringify(S)});case 5:if((w=e.sent).ok){e.next=6;break}return Yt.log("APPLE PAY | response from entitler NOT OK!!"),document.querySelector(".error").style.display="block",e.abrupt("return");case 6:return e.next=7,w.json();case 7:return e.sent,window.MG2DL.push({event:"g2i_subscription_success",payment_type:null===(v=l.offerDetails)||void 0===v||null===(v=v.regularBilling)||void 0===v?void 0:v.paymentTiming,sp_offerPlanName:"apple_pay"}),Yt.log("APPLE PAY | response from entitler and refreshing token"),e.next=8,ur();case 8:if(R=e.sent,Yt.log("APPLE PAY | getting tokens auth data"),!R){e.next=10;break}return e.next=9,Ir({idToken:R.idToken});case 9:(N=e.sent)&&(Yt.log("APPLE PAY | Created new token for new Apple subscriber user"),window.ConnextUtils.rerunConnextEntitlements(),Tr(N));case 10:e.next=12;break;case 11:document.querySelector(".error").style.display="block",i.completePayment(ApplePaySession.STATUS_FAILURE);case 12:e.next=14;break;case 13:e.prev=13,I=e.catch(4),document.querySelector(".error").style.display="block",Yt.log("APPLE PAY ERROR | Naviga failed category ",I.error.category),Yt.log("APPLE PAY ERROR | Naviga failed custom status code ",I.error.customStatusCode),Yt.log("APPLE PAY ERROR | Naviga failed message ",I.error.message),Yt.log("APPLE PAY ERROR | Naviga failed message ",I.error.errCode);case 14:e.next=16;break;case 15:e.prev=15,T=e.catch(1),Yt.log("APPLE PAY ERROR | Payment error: ".concat(T));case 16:case"end":return e.stop()}},e,null,[[1,15],[4,13]])}));return function(t){return e.apply(this,arguments)}}(),i.oncancel=function(e){Yt.log("APPLE PAY | User canceled Apple Pay session.")};try{i.begin()}catch(e){Yt.log("APPLE PAY ERROR | Apple Pay session failed to start:",e)}}catch(e){Yt.log("APPLE PAY ERROR | Apple Failed to process payment",e)}case 1:case"end":return e.stop()}},e,this)})),function(e,r){return t.apply(this,arguments)})},{key:"getBillingDataFromEntitlerWithOfferCode",value:(e=n(o.mark(function e(){var t,r,n,i;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t="".concat(jt.A.entitlementsEndpoint,"getNavigaoffer"),r={offerIdCode:this.offerCodeId,offerGroupCode:"1234"},e.next=1,fetch(t,{method:"POST",headers:{"X-Api-Key":jt.A.entitlementsApiKey},body:JSON.stringify(r)});case 1:return n=e.sent,e.next=2,n.json();case 2:return i=e.sent,e.abrupt("return",i);case 3:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})}]);var e,t,r,i}();const Pr=Or;var Lr=!1;document.addEventListener("onPaywallShown",function(){var e=n(o.mark(function e(t){var r,n;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Lr){e.next=1;break}return e.abrupt("return");case 1:if(Lr=!0,Yt.log("APPLE PAY | Apple Pay script loaded - Paywall shown, check for apple pay button and hide"),document.querySelector(".error").style.display="none",(r=document.querySelector(".apple-pay-button")).style.display="none !important",!window.ApplePaySession){e.next=3;break}return Yt.log("APPLE PAY | Apple Pay session exists on window, continue"),e.next=2,dr();case 2:(n=e.sent)&&n.token?window.ApplePaySession.canMakePaymentsWithActiveCard("merchant.com.payway.mng")?(Yt.log("APPLE PAY | User logged in and can make payments - show button"),new Pr(".apple-pay-button","Apple").queuePaywaySession(n.token)):(Yt.log("APPLE PAY | Apple pay pay not set up exit"),r.remove()):(Yt.log("APPLE PAY | not logged in, exit"),r.remove(),window.MG2DL.push({event:"g2i_action_not_shown",actionType:"paywall",actionName:"apple_pay"})),e.next=4;break;case 3:Yt.log("APPLE PAY | Apple Pay session NOT on window, exit"),r.remove(),window.MG2DL.push({event:"g2i_action_not_shown",actionType:"paywall",actionName:"apple_pay"});case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}())})()})(); //# sourceMappingURL=mng-digisubs.apple.bundle.js.map; /*! For license information please see mng-digisubs.articleShare.bundle.js.LICENSE.txt */ (()=>{var t={251(t,e){e.read=function(t,e,n,r,o){var i,a,s=8*o-r-1,c=(1<>1,l=-7,f=n?o-1:0,d=n?-1:1,h=t[e+f];for(f+=d,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+t[e+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=d,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=u}return(h?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*c-1)*Math.pow(2,o),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<0;t[n+h]=255&a,h+=p,a/=256,u-=8);t[n+h-p]|=128*g}},579(t,e,n){var r=n(3738).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(r(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},887(t,e,n){var r=n(6993),o=n(1791);t.exports=function(t,e,n,i,a){return new o(r().w(t,e,n,i),a||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},1791(t,e,n){var r=n(5172),o=n(5546);t.exports=function t(e,n){function i(t,o,a,s){try{var c=e[t](o),u=c.value;return u instanceof r?n.resolve(u.v).then(function(t){i("next",t,a,s)},function(t){i("throw",t,a,s)}):n.resolve(u).then(function(t){c.value=t,a(c)},function(t){return i("throw",t,a,s)})}catch(t){s(t)}}var a;this.next||(o(t.prototype),o(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(t,e,r){function o(){return new n(function(e,n){i(t,r,e,n)})}return a=a?a.then(o,o):o()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports},3612(t,e,n){"use strict";var r,o,i,a,s;n.d(e,{A:()=>c}),window.authentication_config.sessionManagementEnabled="1"===window.authentication_config.sessionManagement;const c={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,enableDashboardCancel:!!window.authentication_config&&"1"===window.authentication_config.enableDashboardCancel,enableDashboardBenefitHub:!!window.authentication_config&&"1"===window.authentication_config.enableDashboardBenefitHub,enableEngageArticleGifting:"1"===(null===(r=window.authentication_config)||void 0===r?void 0:r.articleSharingEnabled)&&"1"===(null===(o=window.authentication_config)||void 0===o?void 0:o.isEngageArticleSharing),enableGiftedArticlesLink:"1"===(null===(i=window.authentication_config)||void 0===i?void 0:i.articleSharingEnabled)&&"1"!==(null===(a=window.authentication_config)||void 0===a?void 0:a.isEngageArticleSharing),enableSavedArticlesLink:"1"===(null===(s=window.authentication_config)||void 0===s?void 0:s.articleSavingEnabled),prosperstackClientid:window.authentication_config?window.authentication_config.prosperstackClientid:"",oneTapEnabled:!!window.authentication_config&&"1"===window.authentication_config.oneTapEnabled,useTribMainGoogle:!!window.authentication_config&&"1"===window.authentication_config.useTribMainGoogle,isAdfreeArticle:!!window.authentication_config&&"1"===window.authentication_config.isAdfreeArticle,auth0Domain:window.authentication_config?window.authentication_config.auth0Domain:"",auth0ClientId:window.authentication_config?window.authentication_config.auth0ClientId:"",entitlementsEndpoint:window.authentication_config?window.authentication_config.entitlementsEndpoint:"",entitlementsApiKey:window.authentication_config?window.authentication_config.entitlementsAPIKey:"",linaCheckOnArticles:!!window.authentication_config&&window.authentication_config.linaCheckOnArticles,serverEntitlements:!!window.authentication_config&&window.authentication_config.serverEntitlements,googleClientId:window.authentication_config?window.authentication_config.googleClientId:"",newsletterId:window.authentication_config?window.authentication_config.newsletterId:0,connextStorageKey:"",auth0SubKey:"auth0_sub",auth0Authenticated:"auth0.is.authenticated",secret:window.authentication_config?window.authentication_config.pluginSecret:"",newslettersEnabled:!!window.authentication_config&&"1"===window.authentication_config.newslettersEnabled,bcLowaSegements:!!window.authentication_config.bcLowaSegements&&"1"===window.authentication_config.bcLowaSegements,blueconicEnabled:!!window.authentication_config.blueconicEnabled&&"1"===window.authentication_config.blueconicEnabled,datadogEnabled:!!window.authentication_config.enableDatadog&&"1"===window.authentication_config.enableDatadog}},3738(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4373(t){t.exports=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},4633(t,e,n){var r=n(5172),o=n(6993),i=n(5869),a=n(887),s=n(1791),c=n(4373),u=n(579);function l(){"use strict";var e=o(),n=e.m(l),f=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))}var h={throw:1,return:2,break:3,continue:3};function p(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,h[t],e)},delegateYield:function(t,o,i){return e.resultName=o,n(r.d,u(t),i)},finish:function(t){return n(r.f,t)}},n=function(t,n,o){r.p=e.prev,r.n=e.next;try{return t(n,o)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(t.exports=l=function(){return{wrap:function(t,n,r,o){return e.w(p(t),n,r,o&&o.reverse())},isGeneratorFunction:d,mark:e.m,awrap:function(t,e){return new r(t,e)},AsyncIterator:s,async:function(t,e,n,r,o){return(d(e)?a:i)(p(t),e,n,r,o)},keys:c,values:u}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports},4756(t,e,n){var r=n(4633)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},5172(t){t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},5546(t){function e(n,r,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}t.exports=e=function(t,n,r,o){function i(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?a?a(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(i("next",0),i("throw",1),i("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r,o,i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},5869(t,e,n){var r=n(887);t.exports=function(t,e,n,o,i){var a=r(t,e,n,o,i);return a.next().then(function(t){return t.done?t.value:a.next()})},t.exports.__esModule=!0,t.exports.default=t.exports},6993(t,e,n){var r=n(5546);function o(){var e,n,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function c(t,o,i,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return r(c,"_invoke",function(t,r,o){var i,a,s,c=0,l=o||[],f=!1,d={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,a=0,s=e,d.n=n,u}};function h(t,r){for(a=t,s=r,n=0;!f&&c&&!o&&n3?(o=p===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=t<2&&hr||r>p)&&(i[4]=t,i[5]=r,d.n=p,a=0))}if(o||t>1)return u;throw f=!0,r}return function(o,l,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,p),a=l,s=p;(n=a<2?e:s)||!f;){i||(a?a<3?(a>1&&(d.n=-1),h(a,s)):d.n=s:d.v=s);try{if(c=2,i){if(a||(o="next"),n=i[o]){if(!(n=n.call(i,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((n=(f=d.n<0)?s:t.call(r,d))!==u)break}catch(t){i=e,a=1,s=t}finally{c=1}}return{value:n,done:f}}}(t,i,a),!0),c}var u={};function l(){}function f(){}function d(){}n=Object.getPrototypeOf;var h=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),p=d.prototype=l.prototype=Object.create(h);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,r(t,s,"GeneratorFunction")),t.prototype=Object.create(p),t}return f.prototype=d,r(p,"constructor",d),r(d,"constructor",f),f.displayName="GeneratorFunction",r(d,s,"GeneratorFunction"),r(p),r(p,s,"Generator"),r(p,a,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(t.exports=o=function(){return{w:c,m:g}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},7526(t,e){"use strict";e.byteLength=function(t){var e=s(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,i=s(t),a=i[0],c=i[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(n=0;n>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===c&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,u[l++]=255&e);1===c&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],a=16383,s=0,c=r-o;sc?c:s+a));1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function u(t,e,n){for(var r,o=[],i=e;ia)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return f(t)}return u(t,e,n)}function u(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|g(t,e);let r=s(n);const o=r.write(t,e);o!==n&&(r=r.slice(0,o));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(q(t,Uint8Array)){const e=new Uint8Array(t);return h(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(q(t,ArrayBuffer)||t&&q(t.buffer,ArrayBuffer))return h(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(q(t,SharedArrayBuffer)||t&&q(t.buffer,SharedArrayBuffer)))return h(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const o=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=s(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||Z(t.length)?s(0):d(t);if("Buffer"===t.type&&Array.isArray(t.data))return d(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return l(t),s(t<0?0:0|p(t))}function d(t){const e=t.length<0?0:0|p(t.length),n=s(e);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function g(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(o)return r?-1:Y(t).length;e=(""+e).toLowerCase(),o=!0}}function A(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return v(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return C(this,e,n);case"base64":return R(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function E(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Z(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,o){let i,a=1,s=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){let r=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){let n=!0;for(let r=0;ro&&(r=o):r=o;const i=e.length;let a;for(r>i/2&&(r=i/2),a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function R(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function v(t,e,n){n=Math.min(t.length,n);const r=[];let o=e;for(;o239?4:e>223?3:e>191?2:1;if(o+a<=n){let n,r,s,c;switch(a){case 1:e<128&&(i=e);break;case 2:n=t[o+1],128==(192&n)&&(c=(31&e)<<6|63&n,c>127&&(i=c));break;case 3:n=t[o+1],r=t[o+2],128==(192&n)&&128==(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=t[o+1],r=t[o+2],s=t[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(t){const e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);let n="",r=0;for(;rr.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,o)):Uint8Array.prototype.set.call(r,e,o);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,o)}o+=e.length}return r},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,o){if(q(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0);const s=Math.min(i,a),u=this.slice(r,o),l=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return m(this,t,e,n);case"utf8":case"utf-8":return S(this,t,e,n);case"ascii":case"latin1":case"binary":return b(this,t,e,n);case"base64":return O(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const I=4096;function T(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;or)&&(n=r);let o="";for(let r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,n,r,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function x(t,e,n,r,o){X(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function P(t,e,n,r,o){X(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n+7]=i,i>>=8,t[n+6]=i,i>>=8,t[n+5]=i,i>>=8,t[n+4]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function D(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(t,e,n,r,i){return e=+e,n>>>=0,i||D(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function G(t,e,n,r,i){return e=+e,n>>>=0,i||D(t,0,n,8),o.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||U(t,e,this.length);let r=this[t],o=1,i=0;for(;++i>>=0,e>>>=0,n||U(t,e,this.length);let r=this[t+--e],o=1;for(;e>0&&(o*=256);)r+=this[t+--e]*o;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||U(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||U(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||U(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=Q(function(t){K(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(o)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||U(t,e,this.length);let r=this[t],o=1,i=0;for(;++i=o&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||U(t,e,this.length);let r=e,o=1,i=this[t+--r];for(;r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return t>>>=0,e||U(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||U(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||U(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=Q(function(t){K(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||V(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<>>=0,e||U(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||U(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||U(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||U(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){M(this,t,e,n,Math.pow(2,8*n)-1,0)}let o=1,i=0;for(this[e]=255&t;++i>>=0,n>>>=0,!r){M(this,t,e,n,Math.pow(2,8*n)-1,0)}let o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=Q(function(t,e=0){return x(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Q(function(t,e=0){return P(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,t,e,n,r-1,-r)}let o=0,i=1,a=0;for(this[e]=255&t;++o>>=0,!r){const r=Math.pow(2,8*n-1);M(this,t,e,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/i|0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=Q(function(t,e=0){return x(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Q(function(t,e=0){return P(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(t,e,n){return k(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return k(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return G(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return G(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function X(t,e,n,r,o,i){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new H.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,n){K(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||V(e,t.length-(n+1))}(r,o,i)}function K(t,e){if("number"!=typeof t)throw new H.ERR_INVALID_ARG_TYPE(e,"number",t)}function V(t,e,n){if(Math.floor(t)!==t)throw K(t,n),new H.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new H.ERR_BUFFER_OUT_OF_BOUNDS;throw new H.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),F("ERR_OUT_OF_RANGE",function(t,e,n){let r=`The value of "${t}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=_(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=_(o)),o+="n"),r+=` It must be ${e}. Received ${o}`,r},RangeError);const j=/[^+/0-9A-Za-z-_]/g;function Y(t,e){let n;e=e||1/0;const r=t.length;let o=null;const i=[];for(let a=0;a55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function W(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function J(t,e,n,r){let o;for(o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Z(t){return t!=t}const $=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)e[r+o]=t[n]+t[o]}return e}();function Q(t){return"undefined"==typeof BigInt?z:t}function z(){throw new Error("BigInt not supported")}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};n.r(t),n.d(t,{hasBrowserEnv:()=>Ht,hasStandardBrowserEnv:()=>_t,hasStandardBrowserWebWorkerEnv:()=>Xt,navigator:()=>Ft,origin:()=>Kt});var e=n(3612);function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n{let n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(e)}catch(t){return atob(e)}}A.prototype.name="InvalidTokenError","function"==typeof SuppressedError&&SuppressedError;var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function w(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function m(t,e){return t(e={exports:{}},e.exports),e.exports}var S=m(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){var t=this;this.locked=new Map,this.addToLocked=function(e,n){var r=t.locked.get(e);void 0===r?void 0===n?t.locked.set(e,[]):t.locked.set(e,[n]):void 0!==n&&(r.unshift(n),t.locked.set(e,r))},this.isLocked=function(e){return t.locked.has(e)},this.lock=function(e){return new Promise(function(n,r){t.isLocked(e)?t.addToLocked(e,n):(t.addToLocked(e),n())})},this.unlock=function(e){var n=t.locked.get(e);if(void 0!==n&&0!==n.length){var r=n.pop();t.locked.set(e,n),void 0!==r&&setTimeout(r,0)}else t.locked.delete(e)}}return t.getInstance=function(){return void 0===t.instance&&(t.instance=new t),t.instance},t}();e.default=function(){return n.getInstance()}});w(S);var b=w(m(function(t,e){var n=y&&y.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function s(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,s)}c((r=r.apply(t,e||[])).next())})},r=y&&y.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?setTimeout(n,e):n(null)}}window.addEventListener("storage",a),t.addToWaiting(a);var s=setTimeout(a,Math.max(0,e-Date.now()))})];case 1:return n.sent(),[2]}})})},t.addToWaiting=function(e){this.removeFromWaiting(e),void 0!==t.waiters&&t.waiters.push(e)},t.removeFromWaiting=function(e){void 0!==t.waiters&&(t.waiters=t.waiters.filter(function(t){return t!==e}))},t.notifyWaiters=function(){void 0!==t.waiters&&t.waiters.slice().forEach(function(t){return t()})},t.prototype.releaseLock=function(t){return n(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,this.releaseLock__private__(t)];case 1:return[2,e.sent()]}})})},t.prototype.releaseLock__private__=function(e){return n(this,void 0,void 0,function(){var n,o,s,c;return r(this,function(r){switch(r.label){case 0:return n=void 0===this.storageHandler?a:this.storageHandler,o=i+"-"+e,null===(s=n.getItemSync(o))?[2]:(c=JSON.parse(s)).id!==this.id?[3,2]:[4,S.default().lock(c.iat)];case 1:r.sent(),this.acquiredIatSet.delete(c.iat),n.removeItemSync(o),S.default().unlock(c.iat),t.notifyWaiters(),r.label=2;case 2:return[2]}})})},t.lockCorrector=function(e){for(var n=Date.now()-5e3,r=e,o=[],a=0;;){var s=r.keySync(a);if(null===s)break;o.push(s),a++}for(var c=!1,u=0;u(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),t.toBase64({alphabet:"base64url",omitPadding:!0}));else{const t=32768;O=e=>{e instanceof ArrayBuffer&&(e=new Uint8Array(e));const n=[];for(let r=0;r{const e=C.call(t);return x[e]||(x[e]=e.slice(8,-1).toLowerCase())});var x;const P=t=>(t=t.toLowerCase(),e=>M(e)===t),D=t=>e=>typeof e===t,{isArray:k}=Array,G=D("undefined");function H(t){return null!==t&&!G(t)&&null!==t.constructor&&!G(t.constructor)&&X(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const F=P("ArrayBuffer");const _=D("string"),X=D("function"),K=D("number"),V=t=>null!==t&&"object"==typeof t,j=t=>{if("object"!==M(t))return!1;const e=L(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||U in t||B in t)},Y=P("Date"),W=P("File"),J=P("Blob"),q=P("FileList"),Z=P("URLSearchParams"),[Q,z,tt,et]=["ReadableStream","Request","Response","Headers"].map(P);function nt(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),k(t))for(r=0,o=t.length;r0;)if(r=n[o],e===r.toLowerCase())return r;return null}const ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,it=t=>!G(t)&&t!==ot;const at=(st="undefined"!=typeof Uint8Array&&L(Uint8Array),t=>st&&t instanceof st);var st;const ct=P("HTMLFormElement"),ut=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),lt=P("RegExp"),ft=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};nt(n,(n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)}),Object.defineProperties(t,r)};const dt=P("AsyncFunction"),ht=(pt="function"==typeof setImmediate,gt=X(ot.postMessage),pt?setImmediate:gt?(At=`axios@${Math.random()}`,Et=[],ot.addEventListener("message",({source:t,data:e})=>{t===ot&&e===At&&Et.length&&Et.shift()()},!1),t=>{Et.push(t),ot.postMessage(At,"*")}):t=>setTimeout(t));var pt,gt,At,Et;const yt="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ot):"undefined"!=typeof process&&process.nextTick||ht,wt={isArray:k,isArrayBuffer:F,isBuffer:H,isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||X(t.append)&&("formdata"===(e=M(t))||"object"===e&&X(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&F(t.buffer),e},isString:_,isNumber:K,isBoolean:t=>!0===t||!1===t,isObject:V,isPlainObject:j,isEmptyObject:t=>{if(!V(t)||H(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:Q,isRequest:z,isResponse:tt,isHeaders:et,isUndefined:G,isDate:Y,isFile:W,isBlob:J,isRegExp:lt,isFunction:X,isStream:t=>V(t)&&X(t.pipe),isURLSearchParams:Z,isTypedArray:at,isFileList:q,forEach:nt,merge:function t(){const{caseless:e,skipUndefined:n}=it(this)&&this||{},r={},o=(o,i)=>{const a=e&&rt(r,i)||i;j(r[a])&&j(o)?r[a]=t(r[a],o):j(o)?r[a]=t({},o):k(o)?r[a]=o.slice():n&&G(o)||(r[a]=o)};for(let t=0,e=arguments.length;t(nt(e,(e,r)=>{n&&X(e)?t[r]=T(e,n):t[r]=e},{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,a;const s={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],r&&!r(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==n&&L(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:M,kindOfTest:P,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(k(t))return t;let e=t.length;if(!K(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[B]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:ct,hasOwnProperty:ut,hasOwnProp:ut,reduceDescriptors:ft,freezeMethods:t=>{ft(t,(e,n)=>{if(X(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];X(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach(t=>{n[t]=!0})};return k(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,n){return e.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:rt,global:ot,isContextDefined:it,isSpecCompliantForm:function(t){return!!(t&&X(t.append)&&"FormData"===t[U]&&t[B])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(V(t)){if(e.indexOf(t)>=0)return;if(H(t))return t;if(!("toJSON"in t)){e[r]=t;const o=k(t)?[]:{};return nt(t,(t,e)=>{const i=n(t,r+1);!G(i)&&(o[e]=i)}),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:dt,isThenable:t=>t&&(V(t)||X(t))&&X(t.then)&&X(t.catch),setImmediate:ht,asap:yt,isIterable:t=>null!=t&&X(t[B])};function mt(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}wt.inherits(mt,Error,{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:wt.toJSONObject(this.config),code:this.code,status:this.status}}});const St=mt.prototype,bt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{bt[t]={value:t}}),Object.defineProperties(mt,bt),Object.defineProperty(St,"isAxiosError",{value:!0}),mt.from=(t,e,n,r,o,i)=>{const a=Object.create(St);wt.toFlatObject(t,a,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t);const s=t&&t.message?t.message:"Error",c=null==e&&t?t.code:e;return mt.call(a,s,c,n,r,o),t&&null==a.cause&&Object.defineProperty(a,"cause",{value:t,configurable:!0}),a.name=t&&t.name||"Error",i&&Object.assign(a,i),a};const Ot=mt;var Nt=n(8287).hp;function Rt(t){return wt.isPlainObject(t)||wt.isArray(t)}function vt(t){return wt.endsWith(t,"[]")?t.slice(0,-2):t}function It(t,e,n){return t?t.concat(e).map(function(t,e){return t=vt(t),!n&&e?"["+t+"]":t}).join(n?".":""):e}const Tt=wt.toFlatObject(wt,{},null,function(t){return/^is[A-Z]/.test(t)});const Ct=function(t,e,n){if(!wt.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=wt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!wt.isUndefined(e[t])})).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&wt.isSpecCompliantForm(e);if(!wt.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(wt.isDate(t))return t.toISOString();if(wt.isBoolean(t))return t.toString();if(!s&&wt.isBlob(t))throw new Ot("Blob is not supported. Use a Buffer instead.");return wt.isArrayBuffer(t)||wt.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Nt.from(t):t}function u(t,n,o){let s=t;if(t&&!o&&"object"==typeof t)if(wt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(wt.isArray(t)&&function(t){return wt.isArray(t)&&!t.some(Rt)}(t)||(wt.isFileList(t)||wt.endsWith(n,"[]"))&&(s=wt.toArray(t)))return n=vt(n),s.forEach(function(t,r){!wt.isUndefined(t)&&null!==t&&e.append(!0===a?It([n],r,i):null===a?n:n+"[]",c(t))}),!1;return!!Rt(t)||(e.append(It(o,n,i),c(t)),!1)}const l=[],f=Object.assign(Tt,{defaultVisitor:u,convertValue:c,isVisitable:Rt});if(!wt.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!wt.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),wt.forEach(n,function(n,i){!0===(!(wt.isUndefined(n)||null===n)&&o.call(e,n,wt.isString(i)?i.trim():i,r,f))&&t(n,r?r.concat(i):[i])}),l.pop()}}(t),e};function Lt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Bt(t,e){this._pairs=[],t&&Ct(t,this,e)}const Ut=Bt.prototype;Ut.append=function(t,e){this._pairs.push([t,e])},Ut.toString=function(t){const e=t?function(e){return t.call(this,e,Lt)}:Lt;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};const Mt=Bt;function xt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Pt(t,e,n){if(!e)return t;const r=n&&n.encode||xt;wt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(e,n):wt.isURLSearchParams(e)?e.toString():new Mt(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}const Dt=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){wt.forEach(this.handlers,function(e){null!==e&&t(e)})}},kt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Mt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ht="undefined"!=typeof window&&"undefined"!=typeof document,Ft="object"==typeof navigator&&navigator||void 0,_t=Ht&&(!Ft||["ReactNative","NativeScript","NS"].indexOf(Ft.product)<0),Xt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Kt=Ht&&window.location.href||"http://localhost",Vt={...t,...Gt};const jt=function(t){function e(t,n,r,o){let i=t[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=t.length;if(i=!i&&wt.isArray(r)?r.length:i,s)return wt.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&wt.isObject(r[i])||(r[i]=[]);return e(t,n,r[i],o)&&wt.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r{e(function(t){return wt.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),r,n,0)}),n}return null};const Yt={transitional:kt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=wt.isObject(t);o&&wt.isHTMLForm(t)&&(t=new FormData(t));if(wt.isFormData(t))return r?JSON.stringify(jt(t)):t;if(wt.isArrayBuffer(t)||wt.isBuffer(t)||wt.isStream(t)||wt.isFile(t)||wt.isBlob(t)||wt.isReadableStream(t))return t;if(wt.isArrayBufferView(t))return t.buffer;if(wt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Ct(t,new Vt.classes.URLSearchParams,{visitor:function(t,e,n,r){return Vt.isNode&&wt.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...e})}(t,this.formSerializer).toString();if((i=wt.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Ct(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(wt.isString(t))try{return(e||JSON.parse)(t),wt.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Yt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(wt.isResponse(t)||wt.isReadableStream(t))return t;if(t&&wt.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(t){if(n){if("SyntaxError"===t.name)throw Ot.from(t,Ot.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vt.classes.FormData,Blob:Vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};wt.forEach(["delete","get","head","post","put","patch"],t=>{Yt.headers[t]={}});const Wt=Yt,Jt=wt.toObjectSet(["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"]),qt=Symbol("internals");function Zt(t){return t&&String(t).trim().toLowerCase()}function $t(t){return!1===t||null==t?t:wt.isArray(t)?t.map($t):String(t)}function Qt(t,e,n,r,o){return wt.isFunction(r)?r.call(this,e,n):(o&&(e=n),wt.isString(e)?wt.isString(r)?-1!==e.indexOf(r):wt.isRegExp(r)?r.test(e):void 0:void 0)}class zt{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=Zt(e);if(!o)throw new Error("header name must be a non-empty string");const i=wt.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=$t(t))}const i=(t,e)=>wt.forEach(t,(t,n)=>o(t,n,e));if(wt.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(wt.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach(function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&Jt[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e})(t),e);else if(wt.isObject(t)&&wt.isIterable(t)){let n,r,o={};for(const e of t){if(!wt.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[r=e[0]]=(n=o[r])?wt.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}i(o,e)}else null!=t&&o(e,t,n);return this}get(t,e){if(t=Zt(t)){const n=wt.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(wt.isFunction(e))return e.call(this,t,n);if(wt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Zt(t)){const n=wt.findKey(this,t);return!(!n||void 0===this[n]||e&&!Qt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=Zt(t)){const o=wt.findKey(n,t);!o||e&&!Qt(0,n[o],o,e)||(delete n[o],r=!0)}}return wt.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!Qt(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return wt.forEach(this,(r,o)=>{const i=wt.findKey(n,o);if(i)return e[i]=$t(r),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete e[o],e[a]=$t(r),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return wt.forEach(this,(n,r)=>{null!=n&&!1!==n&&(e[r]=t&&wt.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(t=>n.set(t)),n}static accessor(t){const e=(this[qt]=this[qt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=Zt(t);e[r]||(!function(t,e){const n=wt.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})})}(n,t),e[r]=!0)}return wt.isArray(t)?t.forEach(r):r(t),this}}zt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),wt.reduceDescriptors(zt.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),wt.freezeMethods(zt);const te=zt;function ee(t,e){const n=this||Wt,r=e||n,o=te.from(r.headers);let i=r.data;return wt.forEach(t,function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function ne(t){return!(!t||!t.__CANCEL__)}function re(t,e,n){Ot.call(this,null==t?"canceled":t,Ot.ERR_CANCELED,e,n),this.name="CanceledError"}wt.inherits(re,Ot,{__CANCEL__:!0});const oe=re;function ie(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new Ot("Request failed with status code "+n.status,[Ot.ERR_BAD_REQUEST,Ot.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}const ae=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const c=Date.now(),u=r[a];o||(o=c),n[i]=s,r[i]=c;let l=a,f=0;for(;l!==i;)f+=n[l++],l%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),c-o{o=i,n=null,r&&(clearTimeout(r),r=null),t(...e)};return[(...t)=>{const e=Date.now(),s=e-o;s>=i?a(t,e):(n=t,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]},ce=(t,e,n=3)=>{let r=0;const o=ae(50,250);return se(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s);r=i;t({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[e?"download":"upload"]:!0})},n)},ue=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},le=t=>(...e)=>wt.asap(()=>t(...e)),fe=Vt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Vt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Vt.origin),Vt.navigator&&/(msie|trident)/i.test(Vt.navigator.userAgent)):()=>!0,de=Vt.hasStandardBrowserEnv?{write(t,e,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${t}=${encodeURIComponent(e)}`];wt.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),wt.isString(r)&&s.push(`path=${r}`),wt.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),wt.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(t){if("undefined"==typeof document)return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function he(t,e,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(r||0==n)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const pe=t=>t instanceof te?{...t}:t;function ge(t,e){e=e||{};const n={};function r(t,e,n,r){return wt.isPlainObject(t)&&wt.isPlainObject(e)?wt.merge.call({caseless:r},t,e):wt.isPlainObject(e)?wt.merge({},e):wt.isArray(e)?e.slice():e}function o(t,e,n,o){return wt.isUndefined(e)?wt.isUndefined(t)?void 0:r(void 0,t,0,o):r(t,e,0,o)}function i(t,e){if(!wt.isUndefined(e))return r(void 0,e)}function a(t,e){return wt.isUndefined(e)?wt.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e,n)=>o(pe(t),pe(e),0,!0)};return wt.forEach(Object.keys({...t,...e}),function(r){const i=c[r]||o,a=i(t[r],e[r],r);wt.isUndefined(a)&&i!==s||(n[r]=a)}),n}const Ae=t=>{const e=ge({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=e;if(e.headers=a=te.from(a),e.url=Pt(he(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),wt.isFormData(n))if(Vt.hasStandardBrowserEnv||Vt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(wt.isFunction(n.getHeaders)){const t=n.getHeaders(),e=["content-type","content-length"];Object.entries(t).forEach(([t,n])=>{e.includes(t.toLowerCase())&&a.set(t,n)})}if(Vt.hasStandardBrowserEnv&&(r&&wt.isFunction(r)&&(r=r(e)),r||!1!==r&&fe(e.url))){const t=o&&i&&de.read(i);t&&a.set(o,t)}return e},Ee="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,n){const r=Ae(t);let o=r.data;const i=te.from(r.headers).normalize();let a,s,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:h}=r;function p(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function A(){if(!g)return;const r=te.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());ie(function(t){e(t),p()},function(t){n(t),p()},{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:t,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=A:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(A)},g.onabort=function(){g&&(n(new Ot("Request aborted",Ot.ECONNABORTED,t,g)),g=null)},g.onerror=function(e){const r=e&&e.message?e.message:"Network Error",o=new Ot(r,Ot.ERR_NETWORK,t,g);o.event=e||null,n(o),g=null},g.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||kt;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new Ot(e,o.clarifyTimeoutError?Ot.ETIMEDOUT:Ot.ECONNABORTED,t,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&wt.forEach(i.toJSON(),function(t,e){g.setRequestHeader(e,t)}),wt.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),f&&"json"!==f&&(g.responseType=r.responseType),h&&([c,l]=ce(h,!0),g.addEventListener("progress",c)),d&&g.upload&&([s,u]=ce(d),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=e=>{g&&(n(!e||e.type?new oe(null,t,g):e),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const E=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(r.url);E&&-1===Vt.protocols.indexOf(E)?n(new Ot("Unsupported protocol "+E+":",Ot.ERR_BAD_REQUEST,t)):g.send(o||null)})},ye=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,r=new AbortController;const o=function(t){if(!n){n=!0,a();const e=t instanceof Error?t:this.reason;r.abort(e instanceof Ot?e:new oe(e instanceof Error?e.message:e))}};let i=e&&setTimeout(()=>{i=null,o(new Ot(`timeout ${e} of ms exceeded`,Ot.ETIMEDOUT))},e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>t.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>wt.asap(a),s}},we=function*(t,e){let n=t.byteLength;if(!e||n{const o=async function*(t,e){for await(const n of me(t))yield*we(n,e)}(t,e);let i,a=0,s=t=>{i||(i=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await o.next();if(e)return s(),void t.close();let i=r.byteLength;if(n){let t=a+=i;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:t=>(s(t),o.return())},{highWaterMark:2})},{isFunction:be}=wt,Oe=(({Request:t,Response:e})=>({Request:t,Response:e}))(wt.global),{ReadableStream:Ne,TextEncoder:Re}=wt.global,ve=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},Ie=t=>{t=wt.merge.call({skipUndefined:!0},Oe,t);const{fetch:e,Request:n,Response:r}=t,o=e?be(e):"function"==typeof fetch,i=be(n),a=be(r);if(!o)return!1;const s=o&&be(Ne),c=o&&("function"==typeof Re?(u=new Re,t=>u.encode(t)):async t=>new Uint8Array(await new n(t).arrayBuffer()));var u;const l=i&&s&&ve(()=>{let t=!1;const e=new n(Vt.origin,{body:new Ne,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),f=a&&s&&ve(()=>wt.isReadableStream(new r("").body)),d={stream:f&&(t=>t.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!d[t]&&(d[t]=(e,n)=>{let r=e&&e[t];if(r)return r.call(e);throw new Ot(`Response type '${t}' is not supported`,Ot.ERR_NOT_SUPPORT,n)})});const h=async(t,e)=>{const r=wt.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(wt.isBlob(t))return t.size;if(wt.isSpecCompliantForm(t)){const e=new n(Vt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return wt.isArrayBufferView(t)||wt.isArrayBuffer(t)?t.byteLength:(wt.isURLSearchParams(t)&&(t+=""),wt.isString(t)?(await c(t)).byteLength:void 0)})(e):r};return async t=>{let{url:o,method:a,data:s,signal:c,cancelToken:u,timeout:p,onDownloadProgress:g,onUploadProgress:A,responseType:E,headers:y,withCredentials:w="same-origin",fetchOptions:m}=Ae(t),S=e||fetch;E=E?(E+"").toLowerCase():"text";let b=ye([c,u&&u.toAbortSignal()],p),O=null;const N=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let R;try{if(A&&l&&"get"!==a&&"head"!==a&&0!==(R=await h(y,s))){let t,e=new n(o,{method:"POST",body:s,duplex:"half"});if(wt.isFormData(s)&&(t=e.headers.get("content-type"))&&y.setContentType(t),e.body){const[t,n]=ue(R,ce(le(A)));s=Se(e.body,65536,t,n)}}wt.isString(w)||(w=w?"include":"omit");const e=i&&"credentials"in n.prototype,c={...m,signal:b,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:e?w:void 0};O=i&&new n(o,c);let u=await(i?S(O,m):S(o,c));const p=f&&("stream"===E||"response"===E);if(f&&(g||p&&N)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=u[e]});const e=wt.toFiniteNumber(u.headers.get("content-length")),[n,o]=g&&ue(e,ce(le(g),!0))||[];u=new r(Se(u.body,65536,n,()=>{o&&o(),N&&N()}),t)}E=E||"text";let v=await d[wt.findKey(d,E)||"text"](u,t);return!p&&N&&N(),await new Promise((e,n)=>{ie(e,n,{data:v,headers:te.from(u.headers),status:u.status,statusText:u.statusText,config:t,request:O})})}catch(e){if(N&&N(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new Ot("Network Error",Ot.ERR_NETWORK,t,O),{cause:e.cause||e});throw Ot.from(e,e&&e.code,t,O)}}},Te=new Map,Ce=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,i=[r,o,n];let a,s,c=i.length,u=Te;for(;c--;)a=i[c],s=u.get(a),void 0===s&&u.set(a,s=c?new Map:Ie(e)),u=s;return s},Le=(Ce(),{http:null,xhr:Ee,fetch:{get:Ce}});wt.forEach(Le,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const Be=t=>`- ${t}`,Ue=t=>wt.isFunction(t)||null===t||!1===t;const Me={getAdapter:function(t,e){t=wt.isArray(t)?t:[t];const{length:n}=t;let r,o;const i={};for(let a=0;a`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let e=n?t.length>1?"since :\n"+t.map(Be).join("\n"):" "+Be(t[0]):"as no adapter specified";throw new Ot("There is no suitable adapter to dispatch the request "+e,"ERR_NOT_SUPPORT")}return o},adapters:Le};function xe(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new oe(null,t)}function Pe(t){xe(t),t.headers=te.from(t.headers),t.data=ee.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return Me.getAdapter(t.adapter||Wt.adapter,t)(t).then(function(e){return xe(t),e.data=ee.call(t,t.transformResponse,e),e.headers=te.from(e.headers),e},function(e){return ne(e)||(xe(t),e&&e.response&&(e.response.data=ee.call(t,t.transformResponse,e.response),e.response.headers=te.from(e.response.headers))),Promise.reject(e)})}const De="1.13.2",ke={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ke[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Ge={};ke.transitional=function(t,e,n){function r(t,e){return"[Axios v"+De+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new Ot(r(o," has been removed"+(e?" in "+e:"")),Ot.ERR_DEPRECATED);return e&&!Ge[o]&&(Ge[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}},ke.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};const He={assertOptions:function(t,e,n){if("object"!=typeof t)throw new Ot("options must be an object",Ot.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],a=e[i];if(a){const e=t[i],n=void 0===e||a(e,i,t);if(!0!==n)throw new Ot("option "+i+" must be "+n,Ot.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ot("Unknown option "+i,Ot.ERR_BAD_OPTION)}},validators:ke},Fe=He.validators;class _e{constructor(t){this.defaults=t||{},this.interceptors={request:new Dt,response:new Dt}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=ge(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&He.assertOptions(n,{silentJSONParsing:Fe.transitional(Fe.boolean),forcedJSONParsing:Fe.transitional(Fe.boolean),clarifyTimeoutError:Fe.transitional(Fe.boolean)},!1),null!=r&&(wt.isFunction(r)?e.paramsSerializer={serialize:r}:He.assertOptions(r,{encode:Fe.function,serialize:Fe.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),He.assertOptions(e,{baseUrl:Fe.spelling("baseURL"),withXsrfToken:Fe.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&wt.merge(o.common,o[e.method]);o&&wt.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=te.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))});const c=[];let u;this.interceptors.response.forEach(function(t){c.push(t.fulfilled,t.rejected)});let l,f=0;if(!s){const t=[Pe.bind(this),void 0];for(t.unshift(...a),t.push(...c),l=t.length,u=Promise.resolve(e);f{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null}),this.promise.then=t=>{let e;const r=new Promise(t=>{n.subscribe(t),e=t}).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t(function(t,r,o){n.reason||(n.reason=new oe(t,r,o),e(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;const e=new Ke(function(e){t=e});return{token:e,cancel:t}}}const Ve=Ke;const je={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(je).forEach(([t,e])=>{je[e]=t});const Ye=je;const We=function t(e){const n=new Xe(e),r=T(Xe.prototype.request,n);return wt.extend(r,Xe.prototype,n,{allOwnKeys:!0}),wt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(ge(e,n))},r}(Wt);We.Axios=Xe,We.CanceledError=oe,We.CancelToken=Ve,We.isCancel=ne,We.VERSION=De,We.toFormData=Ct,We.AxiosError=Ot,We.Cancel=We.CanceledError,We.all=function(t){return Promise.all(t)},We.spread=function(t){return function(e){return t.apply(null,e)}},We.isAxiosError=function(t){return wt.isObject(t)&&!0===t.isAxiosError},We.mergeConfig=ge,We.AxiosHeaders=te,We.formToJSON=t=>jt(wt.isHTMLForm(t)?new FormData(t):t),We.getAdapter=Me.getAdapter,We.HttpStatusCode=Ye,We.default=We;function Je(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function qe(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"",e=Qe().hostname;if(t&&"string"==typeof t&&t.length>0&&(e=t,t.includes("vipdev.lndo.site")))return"".concat(t.split(".")[0],".com");var n=e.split(".");return"".concat(n[n.length-2],".").concat(n[n.length-1])},en=function(t){return function(t,e){if("string"!=typeof t)throw new A("Invalid token specified: must be a string");e||(e={});const n=!0===e.header?0:1,r=t.split(".")[n];if("string"!=typeof r)throw new A(`Invalid token specified: missing part #${n+1}`);let o;try{o=E(r)}catch(t){throw new A(`Invalid token specified: invalid base64 for part #${n+1} (${t.message})`)}try{return JSON.parse(o)}catch(t){throw new A(`Invalid token specified: invalid json for part #${n+1} (${t.message})`)}}(t)},nn=function(){var t=tn();return["mcall.com","courant.com","sun-sentinel.com","orlandosentinel.com","growthspotter.com","dailypress.com","pilotonline.com","nydailynews.com","baltimoresun.com","capitalgazette.com","chicagotribune.com","trbdevcloud.com"].includes(t)},rn=function(){return"complete"===document.readyState},on=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise(function(e){var n=!0;if(rn())e();else{u.log("UIHandler: ","Waiting for the body to load...");var r=setInterval(s(c.mark(function o(){return c.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:t&&(n=rn()),document.querySelector("body")&&n&&(clearInterval(r),e(!0));case 1:case"end":return o.stop()}},o)})),200)}})},an=function(){return new Promise(function(t){if(("interactive"===document.readyState||rn())&&window.dataLayer)u.log("Utils digisubsDataLayerLoaded: ","Document is in interactive state, resolving."),t();else{u.log("Utils digisubsDataLayerLoaded: ","Waiting for the dataLayer to load...");var e=setInterval(s(c.mark(function n(){return c.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)}})},sn=function(){return new Promise(function(t){if(rn())t();else{u.log("Utils digisubsMenuLoaded: ","Waiting for the digisubs dropdown to load...");var e=setInterval(s(c.mark(function n(){return c.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:document.getElementById("account-content")&&(clearInterval(e),t(!0));case 1:case"end":return n.stop()}},n)})),200)}})},cn=function(){var t=s(c.mark(function t(e){var n,r,o;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,an();case 1:return u.log("Utils getDataLayerObject: looking for this dataLayer object ",e),window.dataLayer=window.dataLayer||[],n="",u.log("Utils getDataLayerObject: here is dataLayer length ",window.dataLayer.length),r=function(t){return u.log("Utils dataLayerLoop: look for this element ",t),t[e]?(u.log("Utils dataLayerLoop: found ",t[e]),n=t[e],t[e]):(u.log("Utils dataLayerLoop: dataLayer search ",!1),!1)},o=window.dataLayer.some(r),t.abrupt("return",o?n:"");case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),un=function(){var t=s(c.mark(function t(){var e,n,r=arguments;return c.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=1,cn(e);case 1:return n=t.sent,u.log("utils | pageType: page type is ",n),t.abrupt("return",n);case 2:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),ln=function(){return new Promise(function(t,e){void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.authenticationReady?(u.log("utils | Authentication already ready: ",window.MNGAuthentication.authenticationReady),t(window.MNGAuthentication.authenticationReady)):(u.log("utils | Adding authenticationReady listener..."),window.addEventListener("authenticationReady",function(n){try{var r=n.detail||{};u.log("utils | Event: authentication ready: ",r),t(r)}catch(t){u.log(t),e(t)}},!1))})},fn=function(){var t=s(c.mark(function t(){return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t,n){return e.A.entitlementsEnabled?void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.entitlementsReady?(u.log("Entitlements already present:",window.MNGAuthentication.entitlementsReady),void t(window.MNGAuthentication.entitlementsReady)):void window.addEventListener("entitlementsReady",function(e){try{var r=e.detail||{};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.entitlementsReady=r,u.log("Received entitlementsReady event:",r),t(r)}catch(t){u.error("Error handling entitlementsReady event:",t),n(t)}},{once:!0}):(u.log("Entitlements disabled in settings."),void t(!1))}));case 1:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),dn=function(t){u.log("starting simpleEmailValidation");if(!t)return{valid:!1,message:"Please enter an email."};if(!/^(([^<>()[\]\\.,;:\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.test(t))return{valid:!1,message:"Please enter a valid email."};var e=t.match(/\.([^.\n\s]*)$/)[1].toUpperCase(),n=["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(e);return u.log("simpleEmailValidation: ","TLD search ".concat(n)),!1===n?{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=dn;window.validatePhoneNumber=function(t){return/^[0-9]([0-9 -])*[0-9]$/.test(t)};var hn=function(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)};var pn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return new Promise(function(e,n){var r={sspw:null,sophiClient:null,engagePaywall:null,engageStatus:null},o=function(){var o=s(c.mark(function o(){var i,a,s,l,f,d,h,p,g,A,E;return c.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,"1"!==(null===(i=window.sophi_config)||void 0===i?void 0:i.enableSophiSSPW)){o.next=1;break}if(!document.getElementById("server-paywall")){o.next=1;break}return r.sspw=!0,o.abrupt("return",e({paywall:!0,details:qe({},r)}));case 1:return o.next=2,un();case 2:return s=o.sent,o.next=3,cn("Paywall_Level");case 3:if(l=o.sent,"article"===s&&"free"!==l){o.next=4;break}return o.abrupt("return",e({paywall:!1,details:"article"!==s?"Page type is not an article":"Free article"}));case 4:return o.next=5,fn();case 5:if(!(f=o.sent)||!f.isEntitled){o.next=6;break}return o.abrupt("return",e({paywall:!1,details:"Entitled User"}));case 6:if("premium"!==l){o.next=7;break}return o.abrupt("return",e({paywall:!0,details:"Premium article"}));case 7:if(d=null===(a=window.ConnextUtils)||void 0===a?void 0:a.runningSophi,u.log("checkPaywallStatus - Sophi is running: ",d),!d){o.next=8;break}window.ConnextUtils.connextAlreadyRan&&window.sophiWallConfig&&!window.sophiWallConfig.error&&"paywall"===window.sophiWallConfig.wallType?(r.sophiClient=!0,r.engageStatus=!0,r.engagePaywall=!0):window.addEventListener("onPaywallShown",function(){return"paywall"===window.sophiWallConfig.wallType&&(r.sophiClient=!0),e({paywall:!0,details:qe({},r)})},{once:!0}),o.next=12;break;case 8:if(d){o.next=12;break}return h=window.ConnextUtils.connextReady("onPaywallShown",!1),p=new Promise(function(e,n){return setTimeout(function(){return n(new Error("No Engage paywall within 10 seconds, resolving as no paywall."))},t)}),o.prev=9,o.next=10,Promise.race([h,p]);case 10:!0===(g=o.sent)?(r.engagePaywall=!0,r.engageStatus="Engage paywall detected"):(r.engagePaywall=!1,r.engageStatus="Engage response: ".concat(g)),o.next=12;break;case 11:o.prev=11,A=o.catch(9),r.engagePaywall=!1,r.engageStatus="Engage response: ".concat(A);case 12:return o.abrupt("return",e({paywall:Object.values(r).some(function(t){return t}),details:qe({},r)}));case 13:o.prev=13,E=o.catch(0),n(E);case 14:case"end":return o.stop()}},o,null,[[0,13],[9,11]])}));return function(){return o.apply(this,arguments)}}();o()})};"undefined"!=typeof window&&(window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.checkPaywallStatus=pn);var gn=function(t){try{window.dataLayer.push({event:t}),u.log("ANALYTICS: ".concat(t," event")),u.log("ANALYTICS: GA/ datalayer ",window.dataLayer)}catch(e){u.log("ANALYTICS: Failed to send ".concat(t," event: "),e)}};var An="#main .article-share ul",En=".dropdown-menu .account-settings",yn=".nav-wrapper-secondary .article-share ul",wn=function(){return document.querySelectorAll(An)},mn=function(){return document.querySelector(En)},Sn=function(){return document.querySelector(yn)},bn=n(8287).hp,On=function(t){return bn.from(t,"base64").toString("utf8")},Nn=function(){var t=window.localStorage.getItem(d),e=t&&On(t)&&JSON.parse(On(t),function(t,e){return t?function(t){try{var e=parseInt(t,10);return Number.isNaN(e)?t:e}catch(e){return t}}(JSON.parse(On(e))):e});return u.log("Got encoded object hash with a value of ".concat(JSON.stringify(e))),e},Rn=function(t){var e=Nn();return e&&e[t]},vn=function(t,e){var n=Nn()||{};n[t]=e,function(t){var e={};Object.keys(t).forEach(function(n){e[n]=bn.from(JSON.stringify(t[n])).toString("base64")});var n=bn.from(JSON.stringify(e)).toString("base64");window.localStorage.setItem("user-profile",n),u.log("Set encoded object hash for ".concat(t))}(n)};var In=function(t,e){var n=t,r=document.getElementById("article-share-copy-link-text".concat(e));"Link Copied"!==t&&"Link Updated"!==t&&(document.getElementById("article-share-copy-btn".concat(e)).disabled=!0);u.log("article sharing: user message inside share button: ",t,e),document.getElementById("articleCopyLinkSpinner".concat(e)).setAttribute("style","display:none"),document.getElementById("article-share-copy-btn".concat(e)).classList.remove("spinner-pad"),document.getElementById("articleCopyLinkSpinner".concat(e)).classList.remove("spring-spinner-mar"),document.getElementById("article-share-copy-link-text".concat(e)).setAttribute("style","display:flex;","align-items:center"),r.innerHTML="Link Copied"===t||"Link Updated"===t?'\n\t\n\t '.concat(n):t},Tn=function(){var t=s(c.mark(function t(){var e,n,r,o;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,ln();case 1:if(e=t.sent,!(n=e.idToken)){t.next=2;break}return r=en(n),o={uuid:r.sub},u.log("Article sharing: get user UUID",o.uuid),t.abrupt("return",o);case 2:return t.abrupt("return",!1);case 3:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),Cn=function(t){return u.log("Article sharing: updating article count everywhere with ",t),document.querySelectorAll(".article-share-count").forEach(function(e){u.log("article sharing: updated article count! ",e),e.innerHTML=t}),u.log("Article sharing: update finished, return true"),!0},Ln=function(){u.log("Article sharing: User is being spoofed, retrieving uuid to check remaining articles");var t=JSON.parse(localStorage.getItem(l)).entitlementToken;u.log("Article sharing: spoofed jwtToken: ",t);var e=t?en(t):"";return u.log("Article sharing: UUID: ",e.uuid),e},Bn=function(t){return new Promise(function(n){var r=e.A.entitlementsEndpoint,o=e.A.entitlementsApiKey,i="".concat(r,"articleSharing/checkRemaining");u.log("Article sharing: api data: ",o);var a=t.uuid;(u.log("Article sharing: callCheckRemainingEndpoint: check if user is spoofed"),window.localStorage.getItem("spoof-user"))&&(a=Ln().uuid);var l,d,h={uid:a,entitlementsToken:ze("mng-entitlements")};u.log("Article sharing: articles remaining api body: ",h),$.ajax({type:"POST",url:i,headers:{"X-Api-Key":e.A.entitlementsApiKey},data:JSON.stringify(h),success:(d=s(c.mark(function t(e){var r;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:u.log("Article sharing: checkRemaining response: successful: ",e.remaining),r="10",r="This user does not exists in the database. Return 10 for sharesRemaining."===e.remaining?"10":e.remaining,vn(f,r),n(r);case 1:case"end":return t.stop()}},t)})),function(t){return d.apply(this,arguments)}),error:(l=s(c.mark(function t(e,r,o){return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:u.log("Article sharing: checkRemaining Failure: ",o),n(!1);case 1:case"end":return t.stop()}},t)})),function(t,e,n){return l.apply(this,arguments)})})})},Un=function(){var t=s(c.mark(function t(e){var n,r,o,i,a=arguments;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],r=Rn(f),n||!r){t.next=1;break}return t.abrupt("return",r);case 1:return t.next=2,Tn(e);case 2:return o=t.sent,t.next=3,Bn(o);case 3:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),Mn=function(){var t=s(c.mark(function t(n){var r,o,i,a,s,l,d,h,p,g,A,E,y,w;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(l=function(t){for(var e="",n=a.replace(/[^0-9a-zA-Z]+/gm,""),r=n.length,o=0;o?'),null==(s=document.querySelectorAll(".article-share-h6"))||s.forEach(function(t){t.insertAdjacentHTML("beforeend",a)}));case 4:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),Dn=function(t){var e,n=document.getElementById("share-icon-position".concat(t));"rgba(0, 0, 0, 0)"===window.getComputedStyle(document.querySelector("li.share-article")).backgroundColor?(n.classList.add("article-share-icon-invert"),e=window.getComputedStyle(document.getElementById("page")).getPropertyValue("--primary")):e="white";var r='\n\t\t\n\t\t'),o=window.btoa(r),i="url(data:image/svg+xml;base64,".concat(o,")");return n.style.background=i,"url(data:image/svg+xml;base64,".concat(o,")")},kn=function(t){t.classList.contains("article-share-fixed")&&t.classList.remove("article-share-fixed")},Gn=function(){var t=s(c.mark(function t(e){var n,r,o,a,l,f,d,h,p;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u.log("Article sharing: build menu here"),t.next=1,on();case 1:if(u.log(" Article Sharing: Build sharing menuz!"),n="",r=function(){var t=s(c.mark(function t(r){var o,i,a,s,l;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(gn("articleshare-openui"),o=document.getElementById("share-box-position".concat(r)),u.log("Article Sharing: i clicked this ",o,r),i=document.getElementById(o.id),u.log("article sharing: look for this box: ",o),o.classList.contains("show-article-sharing")||(u.log("article sharing: box already open, do not show spinner"),document.getElementById("articleShareBtnSpinner".concat(r)).setAttribute("style","display:block"),document.getElementById("share-icon-position".concat(r)).setAttribute("style","display:none!important;")),a=!1,e&&!o.classList.contains("show-article-sharing")){t.next=1;break}a=!0,t.next=4;break;case 1:return t.prev=1,t.next=2,Un(r,!1);case 2:a=t.sent,Cn(a),t.next=4;break;case 3:t.prev=3,t.catch(1),u.log("Article share article count api error");case 4:u.log("article sharing: api request done, show results ",a),document.getElementById("share-icon-position".concat(r)).setAttribute("style","background:".concat(n,"; display:block!important;")),document.getElementById("articleShareBtnSpinner".concat(r)).setAttribute("style","display:none"),o.classList.toggle("show-article-sharing"),i.classList.toggle("show"),0!==r&&(hn(o)||o.classList.add("article-share-fixed")),s=document.querySelector("#article-share-position".concat(r," .article-share-link")),u.log("article sharing: accessible ",s),l=i.classList.contains("show"),u.log("article sharing: box isOpen ",l),l||(i.setAttribute("aria-expanded","false"),s.setAttribute("aria-press","false")),l&&(i.setAttribute("aria-expanded","true"),s.setAttribute("aria-press","true")),a<=0&&(u.log("article share: user out of free views ",a),In("No more shares left",r));case 5:case"end":return t.stop()}},t,null,[[1,3]])}));return function(e){return t.apply(this,arguments)}}(),o='\n\t\n\t\n\t\n\tCopy The Shareable Link',a=function(t){var n=document.getElementById("share-box-position".concat(t)),i=document.getElementById("cancel-button-label".concat(t));if(i&&(i.childNodes[0].nodeValue="Cancel"),n&&n.classList.contains("show-article-sharing")){var a=document.getElementById("article-share-copy-link-text".concat(t));e&&a&&(a.innerHTML=o),r(t,"close"),0===t&&kn(n)}},l=function(t,e){e&&e.addEventListener("click",function(){a(t)})},window.addEventListener("click",function(t){var n=t.target,r=n.closest(".article-share-link");if(e){var o=n.closest("#share-box-position0");null===(o&&o.classList.contains("show-article-sharing"))&&null===r&&a(0)}var i=n.closest("#share-box-position1");null===(i&&i.classList.contains("show-article-sharing"))&&null===r&&a(1);var s=n.closest("#share-box-position2");null===(s&&s.classList.contains("show-article-sharing"))&&null===r&&a(2)}),f=function(){var t=s(c.mark(function t(i){var a;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,cn("Page Title");case 1:a=t.sent,i.map(function(t,i){u.log("Article sharing: create button for this: ",t,i);var s=document.createElement("li");s.className="share-article",s.id="article-share-position".concat(i),s.setAttribute("tabindex","0");var c=document.createElement("button");c.className="article-share-link",c.setAttribute("aria-pressed","false"),c.setAttribute("aria-controls","share-box-position".concat(i)),c.setAttribute("aria-label","Article Sharing Button"),c.setAttribute("tabindex","0"),s.append(c);var f=document.createElement("span");f.style.display="none",f.classList.add("spring-spinner"),f.id="articleShareBtnSpinner".concat(i),f.innerHTML='\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t
';var d=document.querySelector("li.share-facebook"),h=window.getComputedStyle(d),p=document.createElement("span");u.log("article sharing: share icon color: ",h.backgroundColor),"rgba(0, 0, 0, 0)"===h.backgroundColor&&f.classList.add("spring-spinner-invert"),c.append(f),p.id="share-icon-position".concat(i),p.className="article-share-icon";var g=document.createElement("span");g.className="sharing-screen-reader-text",g.innerHTML="Click to share a free article with a friend",s.append(g),t.appendChild(s),c.append(p),n=Dn(i);var A=document.createElement("div");A.id="share-box-position".concat(i),A.className="article-share-box share-box-position".concat(i);var E,y="GIFT THIS ARTICLE",w='You have '.concat("10"," gift articles remaining this month");E=a,u.log(E),u.log("article sharing article title: ",E);var m=document.location.host;if(!1===e){A.classList.add("no-share");var S=m.replace("www.","").replace("develop.","").replace("preprod.",""),b=nn()?"https://subscription.".concat(S):"https://checkout.".concat(S);w='Subscibers get '.concat("10"," gift articles each month"),A.innerHTML='\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t
').concat(y,"
\n\t\t\t\t\t
What is article sharing?
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t

Subscribers are entitled to 10 gift sharing articles each month. These can be shared with friends and family who are not subscribers.

\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t

Subscribe now! or Sign in to your account.

\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t')}else A.innerHTML='\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t
').concat(y,"
\n\t\t\t\t
").concat(w,"
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t

").concat(E,"

\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
Copy the link
\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t');t.appendChild(A);var O=document.getElementById("article-share-position".concat(i));O.addEventListener("click",function(){r(i,"open")}),O.addEventListener("keydown",function(t){"q"===t.key&&r(i,"open")});var N=document.getElementById("article-share-close".concat(i));l(i,N);var R=document.getElementById("cancel-button".concat(i));return l(i,R),document.getElementById("article-share-copy-btn".concat(i)).addEventListener("click",function(){Hn(i)}),"done"});case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),d=[Sn()].concat(i(wn())),u.log("article sharing: target elements are ",d),d.filter(function(t){return null!==t}).length!==d.length){t.next=2;break}return t.next=2,f(d);case 2:if(u.log("Article Sharing: appending sticky nav too"),!e){t.next=4;break}return t.next=3,Pn();case 3:(h=document.querySelectorAll("#article-share-dropdown-article-page"))&&h.forEach(function(t){t.addEventListener("click",function(){r(0,"open")})}),(p=document.querySelector(".border-container #push-account-content #article-share-dropdown-article-page"))&&p.addEventListener("click",function(){document.getElementById("digisubs-toggle").click()});case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),Hn=function(){var t=s(c.mark(function t(e){var n,r,o,i,a,s;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,Mn(e);case 1:return n=t.sent,t.next=2,cn("URL");case 2:if(r=t.sent,u.log("Article sharing: check article endpoint response: successful: ",n),n.sharedCode&&"null"!==n.sharedCode&&void 0!==n.sharedCode){t.next=3;break}In("Network error, try again",e),t.next=11;break;case 3:if("Link Updated"===n.status?In("Link Updated",e):In("Link Copied",e),o="".concat(r,"?share=").concat(n.sharedCode),!document.hasFocus()){t.next=8;break}return t.prev=4,t.next=5,navigator.clipboard.writeText(o);case 5:u.log("Article sharing: Link Copied"),"Link Updated"===n.status?In("Link Updated",e):In("Link Copied",e),t.next=7;break;case 6:t.prev=6,s=t.catch(4),u.error("Clipboard write failed:",s),In("Copy failed. Try again.",e);case 7:t.next=9;break;case 8:u.warn("Clipboard copy blocked: document not focused"),In("Copy failed. Try again.",e);case 9:if((i=document.getElementById("cancel-button-label".concat(e)))&&(i.childNodes[0].nodeValue="Close"),"Link Updated"===n.status){t.next=11;break}return t.next=10,Un(e);case 10:a=t.sent,Cn(a);case 11:case"end":return t.stop()}},t,null,[[4,6]])}));return function(e){return t.apply(this,arguments)}}(),Fn=function(){var t=s(c.mark(function t(){var n,r,o,i,a,l,f,d,h;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.articleShareConvo=!1,window.MNGAuthentication.articleShare="",u.log("article sharing: code check: checking free article code"),n=window.location.search,r=new URLSearchParams(n),t.next=1,cn("Content ID");case 1:if(o=t.sent,i=tn(),u.log("article sharing: code check: url params array ",r.getAll("share")),0!==r.getAll("share").length){t.next=2;break}return u.log("No share search param"),t.abrupt("return",!1);case 2:return window.MNGAuthentication.articleShareConvo=!0,a=r.getAll("share"),gn("articleshare-readingshare"),u.log("Article sharing: code check: check share code: ",a),l=e.A.entitlementsEndpoint,f=e.A.entitlementsApiKey,d="".concat(l,"articleSharing/checkArticleSharedLink"),h={articleName:o,publication:i,code:a[0]},t.abrupt("return",$.ajax({type:"POST",url:d,headers:{"X-Api-Key":f},data:JSON.stringify(h),success:function(t){if(u.log("Article sharing: code check: looking for valid share code: ",t),"nocodefound"===t)u.log("Article sharing: code check: code does not exist"),gn("articleshare-readshare-codenotfound"),window.MNGAuthentication.articleShare="codenotfound";else{u.log("Article sharing: code check: time api timestamp response: ",t.sharedTimestamp);var e=new Date(t.sharedTimestamp),n=(e=e.setDate(e.getDate()+30))/1e3;u.log("Article sharing: code check: time api timestamp response expiration date ",n);var r=new Date;r=Math.floor(r.getTime()/1e3),u.log("Article sharing: code check: current unix time is, ",r),n0&&t.forEach(function(t){if(t&&t.classList.contains("show-article-sharing")){var e=window.scrollY,n=document.getElementById("sharing-bottom"),r=document.getElementById("sharing-top");if(n&&t.classList.contains("share-box-position2"))e/n.offsetTop*100>=93?kn(t):t.classList.contains("article-share-fixed")||t.classList.add("article-share-fixed");if(r&&t.classList.contains("share-box-position1"))window.scrollY/(document.documentElement.scrollHeight-window.innerHeight)*100>=11.5?kn(t):t.classList.contains("article-share-fixed")||t.classList.add("article-share-fixed")}})}),t.next=1,ln();case 1:return e=t.sent,n=e.isAuthenticated,t.next=2,fn();case 2:if(r=t.sent,!0!==n||void 0===window.MNGAuthentication||"function"!=typeof window.MNGAuthentication.isUserSubscriber||!r.isEntitled){t.next=7;break}return u.log("article sharing: subscriber, show sharing tool"),t.next=3,un();case 3:if(o=t.sent,u.log("article sharing: page type is ",o),"article"!==o){t.next=5;break}return t.next=4,Gn(!0);case 4:t.next=6;break;case 5:return t.next=6,Pn();case 6:t.next=9;break;case 7:return u.log("article sharing: not a logged in or a subscriber, show marketing message and check for share code"),t.next=8,Fn();case 8:return t.next=9,Gn(!1);case 9:window.addEventListener("updateArticlesRemainingUI",function(t){Cn(t.detail)});case 10:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}();var Xn=function(t){var e;"rgba(0, 0, 0, 0)"===window.getComputedStyle(document.querySelector("li.share-article")).backgroundColor?(t.classList.add("article-share-icon-invert"),e=window.getComputedStyle(document.getElementById("page")).getPropertyValue("--primary")):e="white";var n='\n\t\t\n\t\t');return"url(data:image/svg+xml;base64,".concat(window.btoa(n),")")},Kn=function(){var t=s(c.mark(function t(){var e,n,r;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u.log("engage gifting: waiting for body to load"),t.next=1,on();case 1:null===(e=document.querySelector("style#engage-ga-style"))&&((e=document.createElement("style")).id="engage-ga-style",e.textContent="\n\t\t\t.share-article .engage-ga-share-popup { box-sizing: border-box; }\n\t\t\t.share-article .engage-ga-generate-link { color: white; background-color: var(--primary); }\n\t\t\t.share-article .engage-ga-generate-link:hover { background-color: var(--primary-light); }\n\t\t\t.share-article .engage-ga-generate-link:visited { text-decoration: none; }\n\t\t",document.head.appendChild(e),u.log("engage gifting: engage CSS overrides appended to head:",e)),n=function(t,e){if(null!==t.closest("#sharing-bottom")){u.log("engage gifting: create button for location ".concat(e,":"),t);var n=document.createElement("li");n.className="share-article",n.id="article-share-position".concat(e),n.setAttribute("tabindex","0"),n.setAttribute("data-mg2-action","giftArticleLink"),n.style.display="none";var r=document.createElement("button");r.className="article-share-link",r.setAttribute("aria-label","Article Gifting Button"),r.setAttribute("tabindex","0");var o=document.createElement("span");o.id="share-icon-position".concat(e),o.className="article-share-icon";var i=document.createElement("span");i.className="sharing-screen-reader-text",i.textContent="Click to share a free article with a friend",r.append(o),n.append(r,i),t.appendChild(n),o.style.background=Xn(o)}else u.log("engage gifting: skipping location ".concat(e,":"),t)},r=[Sn()].concat(i(wn())),u.log("engage gifting: target elements are ",r),r.filter(function(t){return null!==t}).length===r.length&&r.forEach(function(t,e){n(t,e)});case 2:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),Vn=function(){var t=s(c.mark(function t(){var e;return c.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u.log("engage gifting: building Engage gifting buttons"),t.next=1,un();case 1:if(e=t.sent,u.log("engage gifting: page type is",e),"article"!==e){t.next=2;break}return t.next=2,Kn();case 2:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}();e.A.enableEngageArticleGifting?Vn():_n()})()})(); //# sourceMappingURL=mng-digisubs.articleShare.bundle.js.map; /*! For license information please see mng-digisubs.articleSave.bundle.js.LICENSE.txt */ (()=>{var e={66(e,t,o){"use strict";o.d(t,{A:()=>r});const r=function(e,t){let o,r,n=0,i=1e3/t;const s=(t,i=Date.now())=>{n=i,o=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-n;a>=i?s(e,t):(o=e,r||(r=setTimeout(()=>{r=null,s(o)},i-a)))},()=>o&&s(o)]}},139(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5267);const n="undefined"!=typeof URLSearchParams?URLSearchParams:r.A},251(e,t){t.read=function(e,t,o,r,n){var i,s,a=8*n-r-1,c=(1<>1,u=-7,d=o?n-1:0,p=o?-1:1,m=e[t+d];for(d+=p,i=m&(1<<-u)-1,m>>=-u,u+=a;u>0;i=256*i+e[t+d],d+=p,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=r;u>0;s=256*s+e[t+d],d+=p,u-=8);if(0===i)i=1-l;else{if(i===c)return s?NaN:1/0*(m?-1:1);s+=Math.pow(2,r),i-=l}return(m?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,o,r,n,i){var s,a,c,l=8*i-n-1,u=(1<>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:i-1,h=r?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(s++,c/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*c-1)*Math.pow(2,n),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;e[o+m]=255&a,m+=h,a/=256,n-=8);for(s=s<0;e[o+m]=255&s,m+=h,s/=256,l-=8);e[o+m-h]|=128*f}},467(e,t,o){"use strict";function r(e,t,o,r,n,i,s){try{var a=e[i](s),c=a.value}catch(e){return void o(e)}a.done?t(c):Promise.resolve(c).then(r,n)}function n(e){return function(){var t=this,o=arguments;return new Promise(function(n,i){var s=e.apply(t,o);function a(e){r(s,n,i,a,c,"next",e)}function c(e){r(s,n,i,a,c,"throw",e)}a(void 0)})}}o.d(t,{A:()=>n})},579(e,t,o){var r=o(3738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],o=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},605(e,t,o){"use strict";function r(e){return function(t){return e.apply(null,t)}}o.d(t,{A:()=>r})},665(e,t,o){"use strict";o.d(t,{A:()=>d});var r=o(7275),n=o(4062),i=o(3119),s=o(8287).hp;function a(e){return r.A.isPlainObject(e)||r.A.isArray(e)}function c(e){return r.A.endsWith(e,"[]")?e.slice(0,-2):e}function l(e,t,o){return e?e.concat(t).map(function(e,t){return e=c(e),!o&&t?"["+e+"]":e}).join(o?".":""):t}const u=r.A.toFlatObject(r.A,{},null,function(e){return/^is[A-Z]/.test(e)});const d=function(e,t,o){if(!r.A.isObject(e))throw new TypeError("target must be an object");t=t||new(i.A||FormData);const d=(o=r.A.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!r.A.isUndefined(t[e])})).metaTokens,p=o.visitor||y,m=o.dots,h=o.indexes,f=(o.Blob||"undefined"!=typeof Blob&&Blob)&&r.A.isSpecCompliantForm(t);if(!r.A.isFunction(p))throw new TypeError("visitor must be a function");function g(e){if(null===e)return"";if(r.A.isDate(e))return e.toISOString();if(r.A.isBoolean(e))return e.toString();if(!f&&r.A.isBlob(e))throw new n.A("Blob is not supported. Use a Buffer instead.");return r.A.isArrayBuffer(e)||r.A.isTypedArray(e)?f&&"function"==typeof Blob?new Blob([e]):s.from(e):e}function y(e,o,n){let i=e;if(e&&!n&&"object"==typeof e)if(r.A.endsWith(o,"{}"))o=d?o:o.slice(0,-2),e=JSON.stringify(e);else if(r.A.isArray(e)&&function(e){return r.A.isArray(e)&&!e.some(a)}(e)||(r.A.isFileList(e)||r.A.endsWith(o,"[]"))&&(i=r.A.toArray(e)))return o=c(o),i.forEach(function(e,n){!r.A.isUndefined(e)&&null!==e&&t.append(!0===h?l([o],n,m):null===h?o:o+"[]",g(e))}),!1;return!!a(e)||(t.append(l(n,o,m),g(e)),!1)}const A=[],b=Object.assign(u,{defaultVisitor:y,convertValue:g,isVisitable:a});if(!r.A.isObject(e))throw new TypeError("data must be an object");return function e(o,n){if(!r.A.isUndefined(o)){if(-1!==A.indexOf(o))throw Error("Circular reference detected in "+n.join("."));A.push(o),r.A.forEach(o,function(o,i){!0===(!(r.A.isUndefined(o)||null===o)&&p.call(t,o,r.A.isString(i)?i.trim():i,n,b))&&e(o,n?n.concat(i):[i])}),A.pop()}}(e),t}},807(e,t,o){"use strict";o.d(t,{A:()=>r});const r={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},887(e,t,o){var r=o(6993),n=o(1791);e.exports=function(e,t,o,i,s){return new n(r().w(e,t,o,i),s||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},893(e,t,o){"use strict";function r(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);nPe}),"function"==typeof SuppressedError&&SuppressedError;var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==o.g?o.g:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e,t){return e(t={exports:{}},t.exports),t.exports}var a=s(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,o){var r=e.locked.get(t);void 0===r?void 0===o?e.locked.set(t,[]):e.locked.set(t,[o]):void 0!==o&&(r.unshift(o),e.locked.set(t,r))},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise(function(o,r){e.isLocked(t)?e.addToLocked(t,o):(e.addToLocked(t),o())})},this.unlock=function(t){var o=e.locked.get(t);if(void 0!==o&&0!==o.length){var r=o.pop();e.locked.set(t,o),void 0!==r&&setTimeout(r,0)}else e.locked.delete(t)}}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return o.getInstance()}});i(a);var c=i(s(function(e,t){var o=n&&n.__awaiter||function(e,t,o,r){return new(o||(o=Promise))(function(n,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?n(e.value):new o(function(t){t(e.value)}).then(s,a)}c((r=r.apply(e,t||[])).next())})},r=n&&n.__generator||function(e,t){var o,r,n,i,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]0?setTimeout(o,t):o(null)}}window.addEventListener("storage",s),e.addToWaiting(s);var a=setTimeout(s,Math.max(0,t-Date.now()))})];case 1:return o.sent(),[2]}})})},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t)},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter(function(e){return e!==t}))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach(function(e){return e()})},e.prototype.releaseLock=function(e){return o(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,t.sent()]}})})},e.prototype.releaseLock__private__=function(t){return o(this,void 0,void 0,function(){var o,n,i,l;return r(this,function(r){switch(r.label){case 0:return o=void 0===this.storageHandler?c:this.storageHandler,n=s+"-"+t,null===(i=o.getItemSync(n))?[2]:(l=JSON.parse(i)).id!==this.id?[3,2]:[4,a.default().lock(l.iat)];case 1:r.sent(),this.acquiredIatSet.delete(l.iat),o.removeItemSync(n),a.default().unlock(l.iat),e.notifyWaiters(),r.label=2;case 2:return[2]}})})},e.lockCorrector=function(t){for(var o=Date.now()-5e3,r=t,n=[],i=0;;){var a=r.keySync(i);if(null===a)break;n.push(a),i++}for(var c=!1,l=0;lDate.now();class p extends Error{constructor(e,t){super(t),this.error=e,this.error_description=t,Object.setPrototypeOf(this,p.prototype)}static fromPayload({error:e,error_description:t}){return new p(e,t)}}class m extends p{constructor(e,t,o,r=null){super(e,t),this.state=o,this.appState=r,Object.setPrototypeOf(this,m.prototype)}}class h extends p{constructor(e,t,o,r,n=null){super(e,t),this.connection=o,this.state=r,this.appState=n,Object.setPrototypeOf(this,h.prototype)}}class f extends p{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,f.prototype)}}class g extends f{constructor(e){super(),this.popup=e,Object.setPrototypeOf(this,g.prototype)}}class y extends p{constructor(e){super("cancelled","Popup closed"),this.popup=e,Object.setPrototypeOf(this,y.prototype)}}class A extends p{constructor(){super("popup_open","Unable to open a popup for loginWithPopup - window.open returned `null`"),Object.setPrototypeOf(this,A.prototype)}}class b extends p{constructor(e,t,o){super(e,t),this.mfa_token=o,Object.setPrototypeOf(this,b.prototype)}}class S extends p{constructor(e,t){super("missing_refresh_token",`Missing Refresh Token (audience: '${E(e,["default"])}', scope: '${E(t)}')`),this.audience=e,this.scope=t,Object.setPrototypeOf(this,S.prototype)}}class v extends p{constructor(e,t){super("missing_scopes",`Missing requested scopes after refresh (audience: '${E(e,["default"])}', missing scope: '${E(t)}')`),this.audience=e,this.scope=t,Object.setPrototypeOf(this,v.prototype)}}class w extends p{constructor(e){super("use_dpop_nonce","Server rejected DPoP proof: wrong nonce"),this.newDpopNonce=e,Object.setPrototypeOf(this,w.prototype)}}function E(e,t=[]){return e&&!t.includes(e)?e:""}const O=()=>window.crypto,N=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(O().getRandomValues(new Uint8Array(43))).forEach(o=>t+=e[o%66]),t},R=e=>btoa(e),I=[{key:"name",type:["string"]},{key:"version",type:["string","number"]},{key:"env",type:["object"]}],T=e=>Object.keys(e).reduce((t,o)=>{const r=I.find(e=>e.key===o);return r&&r.type.includes(typeof e[o])&&(t[o]=e[o]),t},{}),C=e=>{var{clientId:t}=e,o=r(e,["clientId"]);return new URLSearchParams((e=>Object.keys(e).filter(t=>void 0!==e[t]).reduce((t,o)=>Object.assign(Object.assign({},t),{[o]:e[o]}),{}))(Object.assign({client_id:t},o))).toString()},P=async e=>{const t=O().subtle.digest({name:"SHA-256"},(new TextEncoder).encode(e));return await t},L=e=>(e=>decodeURIComponent(atob(e).split("").map(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),_=e=>{const t=new Uint8Array(e);return(e=>{const t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,e=>t[e])})(window.btoa(String.fromCharCode(...Array.from(t))))},D=new TextEncoder,k=new TextDecoder;function B(e){return"string"==typeof e?D.encode(e):k.decode(e)}function M(e){if("number"!=typeof e.modulusLength||e.modulusLength<2048)throw new F(`${e.name} modulusLength must be at least 2048 bits`)}let U;if(Uint8Array.prototype.toBase64)U=e=>(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e.toBase64({alphabet:"base64url",omitPadding:!0}));else{const e=32768;U=t=>{t instanceof ArrayBuffer&&(t=new Uint8Array(t));const o=[];for(let r=0;r{const o=await fetch(e,t);return{ok:o.ok,json:await o.json(),headers:(r=o.headers,[...r].reduce((e,[t,o])=>(e[t]=o,e),{}))};var r},V=async(e,t,o,r,n,i,s=1e4,a)=>n?(async(e,t,o,r,n,i,s,a)=>{return c={auth:{audience:t,scope:o},timeout:n,fetchUrl:e,fetchOptions:r,useFormData:s,useMrrt:a},l=i,new Promise(function(e,t){const o=new MessageChannel;o.port1.onmessage=function(r){r.data.error?t(new Error(r.data.error)):e(r.data),o.port1.close()},l.postMessage(c,[o.port2])});var c,l})(e,t,o,r,s,n,i,a):(async(e,t,o)=>{const r=new AbortController;let n;return t.signal=r.signal,Promise.race([Z(e,t),new Promise((e,t)=>{n=setTimeout(()=>{r.abort(),t(new Error("Timeout when executing 'fetch'"))},o)})]).finally(()=>{clearTimeout(n)})})(e,r,s);async function Y(e,t,o,n,i,s,a,c,l,u){if(l){const t=await l.generateProof({url:e,method:i.method||"GET",nonce:await l.getNonce()});i.headers=Object.assign(Object.assign({},i.headers),{dpop:t})}let d,m=null;for(let r=0;r<3;r++)try{d=await V(e,o,n,i,s,a,t,c),m=null;break}catch(e){m=e}if(m)throw m;const h=d.json,{error:f,error_description:g}=h,y=r(h,["error","error_description"]),{headers:A,ok:v}=d;let E;if(l&&(E=A["dpop-nonce"],E&&await l.setNonce(E)),!v){const r=g||`HTTP error. Unable to fetch ${e}`;if("mfa_required"===f)throw new b(f,r,y.mfa_token);if("missing_refresh_token"===f)throw new S(o,n);if("use_dpop_nonce"===f){if(!l||!E||u)throw new w(E);return Y(e,t,o,n,i,s,a,c,l,!0)}throw new p(f||"request_error",r)}return y}async function J(e,t){var{baseUrl:o,timeout:n,audience:i,scope:s,auth0Client:a,useFormData:c,useMrrt:l,dpop:d}=e,p=r(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData","useMrrt","dpop"]);const m="urn:ietf:params:oauth:grant-type:token-exchange"===p.grant_type,h="refresh_token"===p.grant_type&&l,f=Object.assign(Object.assign(Object.assign(Object.assign({},p),m&&i&&{audience:i}),m&&s&&{scope:s}),h&&{audience:i,scope:s}),g=c?C(f):JSON.stringify(f),y=(A=p.grant_type,z.includes(A));var A;return await Y(`${o}/oauth/token`,n,i||"default",s,{method:"POST",body:g,headers:{"Content-Type":c?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(T(a||u)))}},t,c,l,y?d:void 0)}const q=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t},$=(e,t,o)=>{let r;return o&&(r=e[o]),r||(r=e.default),q(r,t)};class Q{constructor(e,t="@@auth0spajs@@",o){this.prefix=t,this.suffix=o,this.clientId=e.clientId,this.scope=e.scope,this.audience=e.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(e){const[t,o,r,n]=e.split("::");return new Q({clientId:o,scope:n,audience:r},t)}static fromCacheEntry(e){const{scope:t,audience:o,client_id:r}=e;return new Q({scope:t,audience:o,clientId:r})}}class ee{set(e,t){localStorage.setItem(e,JSON.stringify(t))}get(e){const t=window.localStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){return}}remove(e){localStorage.removeItem(e)}allKeys(){return Object.keys(window.localStorage).filter(e=>e.startsWith("@@auth0spajs@@"))}}class te{constructor(){this.enclosedCache=function(){let e={};return{set(t,o){e[t]=o},get(t){const o=e[t];if(o)return o},remove(t){delete e[t]},allKeys:()=>Object.keys(e)}}()}}class oe{constructor(e,t,o){this.cache=e,this.keyManifest=t,this.nowProvider=o||d}async setIdToken(e,t,o){var r;const n=this.getIdTokenCacheKey(e);await this.cache.set(n,{id_token:t,decodedToken:o}),await(null===(r=this.keyManifest)||void 0===r?void 0:r.add(n))}async getIdToken(e){const t=await this.cache.get(this.getIdTokenCacheKey(e.clientId));if(!t&&e.scope&&e.audience){const t=await this.get(e);if(!t)return;if(!t.id_token||!t.decodedToken)return;return{id_token:t.id_token,decodedToken:t.decodedToken}}if(t)return{id_token:t.id_token,decodedToken:t.decodedToken}}async get(e,t=0,o=!1,r){var n;let i=await this.cache.get(e.toKey());if(!i){const t=await this.getCacheKeys();if(!t)return;const n=this.matchExistingCacheKey(e,t);if(n&&(i=await this.cache.get(n)),!n&&o&&"cache-only"!==r)return this.getEntryWithRefreshToken(e,t)}if(!i)return;const s=await this.nowProvider(),a=Math.floor(s/1e3);return i.expiresAt-t!e||t.includes(e)).reduce(async(e,t)=>{await e,await this.cache.remove(t)},Promise.resolve()),await(null===(t=this.keyManifest)||void 0===t?void 0:t.clear()))}async wrapCacheEntry(e){const t=await this.nowProvider();return{body:e,expiresAt:Math.floor(t/1e3)+e.expires_in}}async getCacheKeys(){var e;return this.keyManifest?null===(e=await this.keyManifest.get())||void 0===e?void 0:e.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(e){return new Q({clientId:e},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(e,t){return t.filter(t=>{var o;const r=Q.fromKey(t),n=new Set(r.scope&&r.scope.split(" ")),i=(null===(o=e.scope)||void 0===o?void 0:o.split(" "))||[],s=r.scope&&i.reduce((e,t)=>e&&n.has(t),!0);return"@@auth0spajs@@"===r.prefix&&r.clientId===e.clientId&&r.audience===e.audience&&s})[0]}async getEntryWithRefreshToken(e,t){var o;for(const r of t){const t=Q.fromKey(r);if("@@auth0spajs@@"===t.prefix&&t.clientId===e.clientId){const t=await this.cache.get(r);if(null===(o=null==t?void 0:t.body)||void 0===o?void 0:o.refresh_token)return this.modifiedCachedEntry(t,e)}}}async updateEntry(e,t){var o;const r=await this.getCacheKeys();if(r)for(const n of r){const r=await this.cache.get(n);if((null===(o=null==r?void 0:r.body)||void 0===o?void 0:o.refresh_token)===e){const e=Object.assign(Object.assign({},r.body),{refresh_token:t});await this.set(e)}}}}class re{constructor(e,t,o){this.storage=e,this.clientId=t,this.cookieDomain=o,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(e){this.storage.save(this.storageKey,e,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const ne=e=>"number"==typeof e,ie=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"];var se=s(function(e,t){var o=n&&n.__assign||function(){return o=Object.assign||function(e){for(var t,o=1,r=arguments.length;oue.get(e)||ue.get(`_legacy_${e}`),save(e,t,o){let r={};"https:"===window.location.protocol&&(r={secure:!0}),(null==o?void 0:o.daysUntilExpire)&&(r.expires=o.daysUntilExpire),(null==o?void 0:o.cookieDomain)&&(r.domain=o.cookieDomain),ce(`_legacy_${e}`,JSON.stringify(t),r),ue.save(e,t,o)},remove(e,t){let o={};(null==t?void 0:t.cookieDomain)&&(o.domain=t.cookieDomain),le(e,o),ue.remove(e,t),ue.remove(`_legacy_${e}`,t)}},pe={get(e){if("undefined"==typeof sessionStorage)return;const t=sessionStorage.getItem(e);return null!=t?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};var me;!function(e){e.Code="code",e.ConnectCode="connect_code"}(me||(me={}));var he,fe=function(e){return he=he||function(e,t,o){var r=void 0===t?null:t,n=function(e,t){var o=atob(e);if(t){for(var r=new Uint8Array(o.length),n=0,i=o.length;n0?await this.cache.set(this.manifestKey,{keys:[...o]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(e){return`@@auth0spajs@@::${e}`}}const Ae={memory:()=>(new te).enclosedCache,localstorage:()=>new ee},be=e=>Ae[e],Se=e=>{const{openUrl:t,onRedirect:o}=e,n=r(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},n),{openUrl:!1===t||t?t:o})},ve=(e,t)=>{const o=(null==t?void 0:t.split(" "))||[];return((null==e?void 0:e.split(" "))||[]).every(e=>o.includes(e))},we={NONCE:"nonce",KEYPAIR:"keypair"};class Ee{constructor(e){this.clientId=e}getVersion(){return 1}createDbHandle(){const e=window.indexedDB.open("auth0-spa-js",this.getVersion());return new Promise((t,o)=>{e.onupgradeneeded=()=>Object.values(we).forEach(t=>e.result.createObjectStore(t)),e.onerror=()=>o(e.error),e.onsuccess=()=>t(e.result)})}async getDbHandle(){return this.dbHandle||(this.dbHandle=await this.createDbHandle()),this.dbHandle}async executeDbRequest(e,t,o){const r=o((await this.getDbHandle()).transaction(e,t).objectStore(e));return new Promise((e,t)=>{r.onsuccess=()=>e(r.result),r.onerror=()=>t(r.error)})}buildKey(e){const t=e?`_${e}`:"auth0";return`${this.clientId}::${t}`}setNonce(e,t){return this.save(we.NONCE,this.buildKey(t),e)}setKeyPair(e){return this.save(we.KEYPAIR,this.buildKey(),e)}async save(e,t,o){await this.executeDbRequest(e,"readwrite",e=>e.put(o,t))}findNonce(e){return this.find(we.NONCE,this.buildKey(e))}findKeyPair(){return this.find(we.KEYPAIR,this.buildKey())}find(e,t){return this.executeDbRequest(e,"readonly",e=>e.get(t))}async deleteBy(e,t){const o=await this.executeDbRequest(e,"readonly",e=>e.getAllKeys());null==o||o.filter(t).map(t=>this.executeDbRequest(e,"readwrite",e=>e.delete(t)))}deleteByClientId(e,t){return this.deleteBy(e,e=>"string"==typeof e&&e.startsWith(`${t}::`))}clearNonces(){return this.deleteByClientId(we.NONCE,this.clientId)}clearKeyPairs(){return this.deleteByClientId(we.KEYPAIR,this.clientId)}}class Oe{constructor(e){this.storage=new Ee(e)}getNonce(e){return this.storage.findNonce(e)}setNonce(e,t){return this.storage.setNonce(e,t)}async getOrGenerateKeyPair(){let e=await this.storage.findKeyPair();return e||(e=await async function(e,t){var o;let r;return r={name:"ECDSA",namedCurve:"P-256"},crypto.subtle.generateKey(r,null!==(o=null==t?void 0:t.extractable)&&void 0!==o&&o,["sign","verify"])}(0,{extractable:!1}),await this.storage.setKeyPair(e)),e}async generateProof(e){const t=await this.getOrGenerateKeyPair();return function({keyPair:e,url:t,method:o,nonce:r,accessToken:n}){const i=function(e){const t=new URL(e);return t.search="",t.hash="",t.href}(t);return X(e,i,o,r,n)}(Object.assign({keyPair:t},e))}async calculateThumbprint(){return function(e){return async function(e){if(!K(e))throw new TypeError('"publicKey" must be a public CryptoKey');if(!0!==e.extractable)throw new TypeError('"publicKey.extractable" must be true');const t=await W(e);let o;switch(t.kty){case"EC":o={crv:t.crv,kty:t.kty,x:t.x,y:t.y};break;case"OKP":o={crv:t.crv,kty:t.kty,x:t.x};break;case"RSA":o={e:t.e,kty:t.kty,n:t.n};break;default:throw new x("unsupported JWK kty")}return H(await crypto.subtle.digest({name:"SHA-256"},B(JSON.stringify(o))))}(e.publicKey)}(await this.getOrGenerateKeyPair())}async clear(){await Promise.all([this.storage.clearNonces(),this.storage.clearKeyPairs()])}}var Ne;!function(e){e.Bearer="Bearer",e.DPoP="DPoP"}(Ne||(Ne={}));class Re{constructor(e,t){this.hooks=t,this.config=Object.assign(Object.assign({},e),{fetch:e.fetch||("undefined"==typeof window?fetch:window.fetch.bind(window))})}isAbsoluteUrl(e){return/^(https?:)?\/\//i.test(e)}buildUrl(e,t){if(t){if(this.isAbsoluteUrl(t))return t;if(e)return`${e.replace(/\/?\/$/,"")}/${t.replace(/^\/+/,"")}`}throw new TypeError("`url` must be absolute or `baseUrl` non-empty.")}getAccessToken(e){return this.config.getAccessToken?this.config.getAccessToken(e):this.hooks.getAccessToken(e)}extractUrl(e){return"string"==typeof e?e:e instanceof URL?e.href:e.url}buildBaseRequest(e,t){if(!this.config.baseUrl)return new Request(e,t);const o=this.buildUrl(this.config.baseUrl,this.extractUrl(e)),r=e instanceof Request?new Request(o,e):o;return new Request(r,t)}setAuthorizationHeader(e,t,o=Ne.Bearer){e.headers.set("authorization",`${o} ${t}`)}async setDpopProofHeader(e,t){if(!this.config.dpopNonceId)return;const o=await this.hooks.getDpopNonce(),r=await this.hooks.generateDpopProof({accessToken:t,method:e.method,nonce:o,url:e.url});e.headers.set("dpop",r)}async prepareRequest(e,t){const o=await this.getAccessToken(t);let r,n;"string"==typeof o?(r=this.config.dpopNonceId?Ne.DPoP:Ne.Bearer,n=o):(r=o.token_type,n=o.access_token),this.setAuthorizationHeader(e,n,r),r===Ne.DPoP&&await this.setDpopProofHeader(e,n)}getHeader(e,t){return Array.isArray(e)?new Headers(e).get(t)||"":"function"==typeof e.get?e.get(t)||"":e[t]||""}hasUseDpopNonceError(e){if(401!==e.status)return!1;const t=this.getHeader(e.headers,"www-authenticate");return t.includes("invalid_dpop_nonce")||t.includes("use_dpop_nonce")}async handleResponse(e,t){const o=this.getHeader(e.headers,"dpop-nonce");if(o&&await this.hooks.setDpopNonce(o),!this.hasUseDpopNonceError(e))return e;if(!o||!t.onUseDpopNonceError)throw new w(o);return t.onUseDpopNonceError()}async internalFetchWithAuth(e,t,o,r){const n=this.buildBaseRequest(e,t);await this.prepareRequest(n,r);const i=await this.config.fetch(n);return this.handleResponse(i,o)}fetchWithAuth(e,t,o){const r={onUseDpopNonceError:()=>this.internalFetchWithAuth(e,t,Object.assign(Object.assign({},r),{onUseDpopNonceError:void 0}),o)};return this.internalFetchWithAuth(e,t,r,o)}}class Ie{constructor(e,t){this.myAccountFetcher=e,this.apiBase=t}async connectAccount(e){const t=await this.myAccountFetcher.fetchWithAuth(`${this.apiBase}v1/connected-accounts/connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return this._handleResponse(t)}async completeAccount(e){const t=await this.myAccountFetcher.fetchWithAuth(`${this.apiBase}v1/connected-accounts/complete`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return this._handleResponse(t)}async _handleResponse(e){let t;try{t=await e.text(),t=JSON.parse(t)}catch(o){throw new Te({type:"invalid_json",status:e.status,title:"Invalid JSON response",detail:t||String(o)})}if(e.ok)return t;throw new Te(t)}}class Te extends Error{constructor({type:e,status:t,title:o,detail:r,validation_errors:n}){super(r),this.name="MyAccountApiError",this.type=e,this.status=t,this.title=o,this.detail=r,this.validation_errors=n,Object.setPrototypeOf(this,Te.prototype)}}const Ce=new c;class Pe{constructor(e){let t,o;if(this.userCache=(new te).enclosedCache,this.activeLockKeys=new Set,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{const e=Array.from(this.activeLockKeys);for(const t of e)await Ce.releaseLock(t);this.activeLockKeys.clear(),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),e.authorizationParams)}),"undefined"!=typeof window&&(()=>{if(!O())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===O().subtle)throw new Error("\n auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.\n ")})(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)o=e.cache;else{if(t=e.cacheLocation||"memory",!be(t))throw new Error(`Invalid cache location "${t}"`);o=be(t)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=!1===e.legacySameSiteCookie?ue:de,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(()=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;const r=e.useCookiesForTransactions?this.cookieStorage:pe;var n;this.scope=((e,t,...o)=>{if("object"!=typeof e)return{default:q(t,e,...o)};let r={default:q(t,...o)};return Object.keys(e).forEach(n=>{const i=e[n];r[n]=q(t,i,...o)}),r})(this.options.authorizationParams.scope,"openid",this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new re(r,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||d,this.cacheManager=new oe(o,o.allKeys?void 0:new ye(o,this.options.clientId),this.nowProvider),this.dpop=this.options.useDpop?new Oe(this.options.clientId):void 0,this.domainUrl=(n=this.options.domain,/^https?:\/\//.test(n)?n:`https://${n}`),this.tokenIssuer=((e,t)=>e?e.startsWith("https://")?e:`https://${e}/`:`${t}/`)(this.options.issuer,this.domainUrl);const i=`${this.domainUrl}/me/`,s=this.createFetcher(Object.assign(Object.assign({},this.options.useDpop&&{dpopNonceId:"__auth0_my_account_api__"}),{getAccessToken:()=>this.getTokenSilently({authorizationParams:{scope:"create:me:connected_accounts",audience:i},detailedResponse:!0})}));this.myAccountApi=new Ie(s,i),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&"memory"===t&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new fe)}_url(e){const t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||u)));return`${this.domainUrl}${e}&auth0Client=${t}`}_authorizeUrl(e){return this._url(`/authorize?${C(e)}`)}async _verifyIdToken(e,t,o){const r=await this.nowProvider();return(e=>{if(!e.id_token)throw new Error("ID token is required but missing");const t=(e=>{const t=e.split("."),[o,r,n]=t;if(3!==t.length||!o||!r||!n)throw new Error("ID token could not be decoded");const i=JSON.parse(L(r)),s={__raw:e},a={};return Object.keys(i).forEach(e=>{s[e]=i[e],ie.includes(e)||(a[e]=i[e])}),{encoded:{header:o,payload:r,signature:n},header:JSON.parse(L(o)),claims:s,user:a}})(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${e.iss}", found "${t.claims.iss}"`);if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw new Error(`Signature algorithm of "${t.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but was not one of "${t.claims.aud.join(", ")}"`);if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${e.aud}", found "${t.claims.azp}"`)}}else if(t.claims.aud!==e.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but found "${t.claims.aud}"`);if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${e.nonce}", found "${t.claims.nonce}"`)}if(e.max_age&&!ne(t.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(null==t.claims.exp||!ne(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!ne(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const o=e.leeway||60,r=new Date(e.now||Date.now()),n=new Date(0);if(n.setUTCSeconds(t.claims.exp+o),r>n)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${r}) is after expiration time (${n})`);if(null!=t.claims.nbf&&ne(t.claims.nbf)){const e=new Date(0);if(e.setUTCSeconds(t.claims.nbf-o),rn)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${r}) is after last auth at ${n}`)}if(e.organization){const o=e.organization.trim();if(o.startsWith("org_")){const e=o;if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e!==t.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${e}", found "${t.claims.org_id}"`)}else{const e=o.toLowerCase();if(!t.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(e!==t.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${e}", found "${t.claims.org_name}"`)}}return t})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:e,nonce:t,organization:o,leeway:this.options.leeway,max_age:(n=this.options.authorizationParams.max_age,"string"!=typeof n?n:parseInt(n,10)||void 0),now:r});var n}_processOrgHint(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(e,t,o){var r;const n=R(N()),i=R(N()),s=N(),a=await P(s),c=_(a),l=await(null===(r=this.dpop)||void 0===r?void 0:r.calculateThumbprint()),u=((e,t,o,r,n,i,s,a,c)=>Object.assign(Object.assign(Object.assign({client_id:e.clientId},e.authorizationParams),o),{scope:$(t,o.scope,o.audience),response_type:"code",response_mode:a||"query",state:r,nonce:n,redirect_uri:s||e.authorizationParams.redirect_uri,code_challenge:i,code_challenge_method:"S256",dpop_jkt:c}))(this.options,this.scope,e,n,i,c,e.redirect_uri||this.options.authorizationParams.redirect_uri||o,null==t?void 0:t.response_mode,l),d=this._authorizeUrl(u);return{nonce:i,code_verifier:s,scope:u.scope,audience:u.audience||"default",redirect_uri:u.redirect_uri,state:n,url:d}}async loginWithPopup(e,t){var o;if(e=e||{},!(t=t||{}).popup&&(t.popup=(()=>{const e=window.screenX+(window.innerWidth-400)/2,t=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${e},top=${t},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!t.popup))throw new A;const r=await this._prepareAuthorizeUrl(e.authorizationParams||{},{response_mode:"web_message"},window.location.origin);t.popup.location.href=r.url;const n=await(e=>new Promise((t,o)=>{let r;const n=setInterval(()=>{e.popup&&e.popup.closed&&(clearInterval(n),clearTimeout(i),window.removeEventListener("message",r,!1),o(new y(e.popup)))},1e3),i=setTimeout(()=>{clearInterval(n),o(new g(e.popup)),window.removeEventListener("message",r,!1)},1e3*(e.timeoutInSeconds||60));r=function(s){if(s.data&&"authorization_response"===s.data.type){if(clearTimeout(i),clearInterval(n),window.removeEventListener("message",r,!1),e.popup.close(),s.data.response.error)return o(p.fromPayload(s.data.response));t(s.data.response)}},window.addEventListener("message",r)}))(Object.assign(Object.assign({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(r.state!==n.state)throw new p("state_mismatch","Invalid state");const i=(null===(o=e.authorizationParams)||void 0===o?void 0:o.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:r.audience,scope:r.scope,code_verifier:r.code_verifier,grant_type:"authorization_code",code:n.code,redirect_uri:r.redirect_uri},{nonceIn:r.nonce,organization:i})}async getUser(){var e;const t=await this._getIdTokenFromCache();return null===(e=null==t?void 0:t.decodedToken)||void 0===e?void 0:e.user}async getIdTokenClaims(){var e;const t=await this._getIdTokenFromCache();return null===(e=null==t?void 0:t.decodedToken)||void 0===e?void 0:e.claims}async loginWithRedirect(e={}){var t;const o=Se(e),{openUrl:n,fragment:i,appState:s}=o,a=r(o,["openUrl","fragment","appState"]),c=(null===(t=a.authorizationParams)||void 0===t?void 0:t.organization)||this.options.authorizationParams.organization,l=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:u}=l,d=r(l,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:s,response_type:me.Code}),c&&{organization:c}));const p=i?`${u}#${i}`:u;n?await n(p):window.location.assign(p)}async handleRedirectCallback(e=window.location.href){const t=e.split("?").slice(1);if(0===t.length)throw new Error("There are no query params available for parsing.");const o=this.transactionManager.get();if(!o)throw new p("missing_transaction","Invalid state");this.transactionManager.remove();const r=(e=>{e.indexOf("#")>-1&&(e=e.substring(0,e.indexOf("#")));const t=new URLSearchParams(e);return{state:t.get("state"),code:t.get("code")||void 0,connect_code:t.get("connect_code")||void 0,error:t.get("error")||void 0,error_description:t.get("error_description")||void 0}})(t.join(""));return o.response_type===me.ConnectCode?this._handleConnectAccountRedirectCallback(r,o):this._handleLoginRedirectCallback(r,o)}async _handleLoginRedirectCallback(e,t){const{code:o,state:r,error:n,error_description:i}=e;if(n)throw new m(n,i||n,r,t.appState);if(!t.code_verifier||t.state&&t.state!==r)throw new p("state_mismatch","Invalid state");const s=t.organization,a=t.nonce,c=t.redirect_uri;return await this._requestToken(Object.assign({audience:t.audience,scope:t.scope,code_verifier:t.code_verifier,grant_type:"authorization_code",code:o},c?{redirect_uri:c}:{}),{nonceIn:a,organization:s}),{appState:t.appState,response_type:me.Code}}async _handleConnectAccountRedirectCallback(e,t){const{connect_code:o,state:r,error:n,error_description:i}=e;if(n)throw new h(n,i||n,t.connection,r,t.appState);if(!o)throw new p("missing_connect_code","Missing connect code");if(!(t.code_verifier&&t.state&&t.auth_session&&t.redirect_uri&&t.state===r))throw new p("state_mismatch","Invalid state");const s=await this.myAccountApi.completeAccount({auth_session:t.auth_session,connect_code:o,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier});return Object.assign(Object.assign({},s),{appState:t.appState,response_type:me.ConnectCode})}async checkSession(e){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(e)}catch(e){}}async getTokenSilently(e={}){var t,o;const r=Object.assign(Object.assign({cacheMode:"on"},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:$(this.scope,null===(t=e.authorizationParams)||void 0===t?void 0:t.scope,(null===(o=e.authorizationParams)||void 0===o?void 0:o.audience)||this.options.authorizationParams.audience)})}),n=await((e,t)=>{let o=ge[t];return o||(o=e().finally(()=>{delete ge[t],o=null}),ge[t]=o),o})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return e.detailedResponse?n:null==n?void 0:n.access_token}async _getTokenSilently(e){const{cacheMode:t}=e,o=r(e,["cacheMode"]);if("off"!==t){const e=await this._getEntryFromCache({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId,cacheMode:t});if(e)return e}if("cache-only"===t)return;const n=`auth0.lock.getTokenSilently.${this.options.clientId}.${o.authorizationParams.audience||"default"}`;if(!await(async(e,t=3)=>{for(let o=0;oCe.acquireLock(n,5e3),10))throw new f;this.activeLockKeys.add(n),1===this.activeLockKeys.size&&window.addEventListener("pagehide",this._releaseLockOnPageHide);try{if("off"!==t){const e=await this._getEntryFromCache({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId});if(e)return e}const e=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(o):await this._getTokenFromIFrame(o),{id_token:r,token_type:n,access_token:i,oauthTokenScope:s,expires_in:a}=e;return Object.assign(Object.assign({id_token:r,token_type:n,access_token:i},s?{scope:s}:null),{expires_in:a})}finally{await Ce.releaseLock(n),this.activeLockKeys.delete(n),0===this.activeLockKeys.size&&window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}async getTokenWithPopup(e={},t={}){var o,r;const n=Object.assign(Object.assign({},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:$(this.scope,null===(o=e.authorizationParams)||void 0===o?void 0:o.scope,(null===(r=e.authorizationParams)||void 0===r?void 0:r.audience)||this.options.authorizationParams.audience)})});return t=Object.assign(Object.assign({},l),t),await this.loginWithPopup(n,t),(await this.cacheManager.get(new Q({scope:n.authorizationParams.scope,audience:n.authorizationParams.audience||"default",clientId:this.options.clientId}),void 0,this.options.useMrrt)).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(e){null!==e.clientId?e.clientId=e.clientId||this.options.clientId:delete e.clientId;const t=e.logoutParams||{},{federated:o}=t,n=r(t,["federated"]),i=o?"&federated":"";return this._url(`/v2/logout?${C(Object.assign({clientId:e.clientId},n))}`)+i}async logout(e={}){var t;const o=Se(e),{openUrl:n}=o,i=r(o,["openUrl"]);null===e.clientId?await this.cacheManager.clear():await this.cacheManager.clear(e.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@"),await(null===(t=this.dpop)||void 0===t?void 0:t.clear());const s=this._buildLogoutUrl(i);n?await n(s):!1!==n&&window.location.assign(s)}async _getTokenFromIFrame(e){const t=Object.assign(Object.assign({},e.authorizationParams),{prompt:"none"}),o=this.cookieStorage.get(this.orgHintCookieName);o&&!t.organization&&(t.organization=o);const{url:r,state:n,nonce:i,code_verifier:s,redirect_uri:a,scope:c,audience:l}=await this._prepareAuthorizeUrl(t,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new p("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const o=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds;let u;try{u=new URL(this.domainUrl).origin}catch(e){u=this.domainUrl}const d=await((e,t,o=60)=>new Promise((r,n)=>{const i=window.document.createElement("iframe");i.setAttribute("width","0"),i.setAttribute("height","0"),i.style.display="none";const s=()=>{window.document.body.contains(i)&&(window.document.body.removeChild(i),window.removeEventListener("message",a,!1))};let a;const c=setTimeout(()=>{n(new f),s()},1e3*o);a=function(e){if(e.origin!=t)return;if(!e.data||"authorization_response"!==e.data.type)return;const o=e.source;o&&o.close(),e.data.response.error?n(p.fromPayload(e.data.response)):r(e.data.response),clearTimeout(c),window.removeEventListener("message",a,!1),setTimeout(s,2e3)},window.addEventListener("message",a,!1),window.document.body.appendChild(i),i.setAttribute("src",e)}))(r,u,o);if(n!==d.state)throw new p("state_mismatch","Invalid state");const m=await this._requestToken(Object.assign(Object.assign({},e.authorizationParams),{code_verifier:s,code:d.code,grant_type:"authorization_code",redirect_uri:a,timeout:e.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:i,organization:t.organization});return Object.assign(Object.assign({},m),{scope:c,oauthTokenScope:m.scope,audience:l})}catch(e){throw"login_required"===e.error&&this.logout({openUrl:!1}),e}}async _getTokenUsingRefreshToken(e){const t=await this.cacheManager.get(new Q({scope:e.authorizationParams.scope,audience:e.authorizationParams.audience||"default",clientId:this.options.clientId}),void 0,this.options.useMrrt);if(!(t&&t.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw new S(e.authorizationParams.audience||"default",e.authorizationParams.scope)}const o=e.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,r="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null,n=((e,t,o,r)=>{var n;if(e&&o&&r){if(t.audience!==o)return t.scope;const e=r.split(" "),i=(null===(n=t.scope)||void 0===n?void 0:n.split(" "))||[],s=i.every(t=>e.includes(t));return e.length>=i.length&&s?r:t.scope}return t.scope})(this.options.useMrrt,e.authorizationParams,null==t?void 0:t.audience,null==t?void 0:t.scope);try{const l=await this._requestToken(Object.assign(Object.assign(Object.assign({},e.authorizationParams),{grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:o}),r&&{timeout:r}),{scopesToRequest:n});if(l.refresh_token&&this.options.useMrrt&&(null==t?void 0:t.refresh_token)&&await this.cacheManager.updateEntry(t.refresh_token,l.refresh_token),this.options.useMrrt&&!(i=null==t?void 0:t.audience,s=null==t?void 0:t.scope,a=e.authorizationParams.audience,c=e.authorizationParams.scope,i===a&&ve(c,s)||ve(n,l.scope))){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);await this.cacheManager.remove(this.options.clientId,e.authorizationParams.audience,e.authorizationParams.scope);const t=((e,t)=>{const o=(null==e?void 0:e.split(" "))||[],r=(null==t?void 0:t.split(" "))||[];return o.filter(e=>-1==r.indexOf(e)).join(",")})(n,l.scope);throw new v(e.authorizationParams.audience||"default",t)}return Object.assign(Object.assign({},l),{scope:e.authorizationParams.scope,oauthTokenScope:l.scope,audience:e.authorizationParams.audience||"default"})}catch(t){if((t.message.indexOf("Missing Refresh Token")>-1||t.message&&t.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw t}var i,s,a,c}async _saveEntryInCache(e){const{id_token:t,decodedToken:o}=e,n=r(e,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:t,decodedToken:o}),await this.cacheManager.setIdToken(this.options.clientId,e.id_token,e.decodedToken),await this.cacheManager.set(n)}async _getIdTokenFromCache(){const e=this.options.authorizationParams.audience||"default",t=this.scope[e],o=await this.cacheManager.getIdToken(new Q({clientId:this.options.clientId,audience:e,scope:t})),r=this.userCache.get("@@user@@");return o&&o.id_token===(null==r?void 0:r.id_token)?r:(this.userCache.set("@@user@@",o),o)}async _getEntryFromCache({scope:e,audience:t,clientId:o,cacheMode:r}){const n=await this.cacheManager.get(new Q({scope:e,audience:t,clientId:o}),60,this.options.useMrrt,r);if(n&&n.access_token){const{token_type:e,access_token:t,oauthTokenScope:o,expires_in:r}=n,i=await this._getIdTokenFromCache();return i&&Object.assign(Object.assign({id_token:i.id_token,token_type:e||"Bearer",access_token:t},o?{scope:o}:null),{expires_in:r})}}async _requestToken(e,t){const{nonceIn:o,organization:r,scopesToRequest:n}=t||{},i=await J(Object.assign(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs,useMrrt:this.options.useMrrt,dpop:this.dpop},e),{scope:n||e.scope}),this.worker),s=await this._verifyIdToken(i.id_token,o,r);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:s,scope:e.scope,audience:e.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(r||s.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:s})}async exchangeToken(e){return this._requestToken({grant_type:"urn:ietf:params:oauth:grant-type:token-exchange",subject_token:e.subject_token,subject_token_type:e.subject_token_type,scope:$(this.scope,e.scope,e.audience||this.options.authorizationParams.audience),audience:e.audience||this.options.authorizationParams.audience,organization:e.organization||this.options.authorizationParams.organization})}_assertDpop(e){if(!e)throw new Error("`useDpop` option must be enabled before using DPoP.")}getDpopNonce(e){return this._assertDpop(this.dpop),this.dpop.getNonce(e)}setDpopNonce(e,t){return this._assertDpop(this.dpop),this.dpop.setNonce(e,t)}generateDpopProof(e){return this._assertDpop(this.dpop),this.dpop.generateProof(e)}createFetcher(e={}){return new Re(e,{isDpopEnabled:()=>!!this.options.useDpop,getAccessToken:e=>{var t;return this.getTokenSilently({authorizationParams:{scope:null===(t=null==e?void 0:e.scope)||void 0===t?void 0:t.join(" "),audience:null==e?void 0:e.audience},detailedResponse:!0})},getDpopNonce:()=>this.getDpopNonce(e.dpopNonceId),setDpopNonce:t=>this.setDpopNonce(t,e.dpopNonceId),generateDpopProof:e=>this.generateDpopProof(e)})}async connectAccountWithRedirect(e){const{openUrl:t,appState:o,connection:r,scopes:n,authorization_params:i,redirectUri:s=this.options.authorizationParams.redirect_uri||window.location.origin}=e;if(!r)throw new Error("connection is required");const a=R(N()),c=N(),l=await P(c),u=_(l),{connect_uri:d,connect_params:p,auth_session:m}=await this.myAccountApi.connectAccount({connection:r,scopes:n,redirect_uri:s,state:a,code_challenge:u,code_challenge_method:"S256",authorization_params:i});this.transactionManager.create({state:a,code_verifier:c,auth_session:m,redirect_uri:s,appState:o,connection:r,response_type:me.ConnectCode});const h=new URL(d);h.searchParams.set("ticket",p.ticket),t?await t(h.toString()):window.location.assign(h)}}},1076(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(7275),n=o(665),i=o(3820);function s(e,t){return(0,n.A)(e,new i.A.classes.URLSearchParams,{visitor:function(e,t,o,n){return i.A.isNode&&r.A.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}},1791(e,t,o){var r=o(5172),n=o(5546);e.exports=function e(t,o){function i(e,n,s,a){try{var c=t[e](n),l=c.value;return l instanceof r?o.resolve(l.v).then(function(e){i("next",e,s,a)},function(e){i("throw",e,s,a)}):o.resolve(l).then(function(e){c.value=e,s(c)},function(e){return i("throw",e,s,a)})}catch(e){a(e)}}var s;this.next||(n(e.prototype),n(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),n(this,"_invoke",function(e,t,r){function n(){return new o(function(t,o){i(e,r,t,o)})}return s=s?s.then(n,n):n()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},2125(e,t,o){"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}o.d(t,{A:()=>r})},2284(e,t,o){"use strict";function r(e){return r="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},r(e)}o.d(t,{A:()=>r})},2327(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(2284);function n(e,t){if("object"!=(0,r.A)(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},2450(e){"use strict";e.exports=JSON.parse('{"dailytribune.com":{"code":"DT","logo":"DT_Logo.png","title":"Royal Oak Daily Tribune","tribune":false,"cluster":["macombdaily.com","themorningsun.com","theoaklandpress.com"],"clusterName":"Michigan","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"888-977-3677","email":"service@dailytribune.com","address1":"6250 Metropolitan Parkway, Dock D","address2":"Sterling Heights, MI 48312","timeZone":"Eastern","supportHours":" Mon.-Fri. 6 a.m – 3 p.m Sat. 7 a.m – 10 a.m. Sun. 7 a.m. – 12 p.m."},"apps":[{"app_store":"http://itunes.apple.com/us/app/daily-tribune-for-iphone/id520219522?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.dailytribune"}]},"macombdaily.com":{"code":"MD","logo":"MD_Logo.png","title":"Macomb Daily","tribune":false,"cluster":["dailytribune.com","themorningsun.com","theoaklandpress.com"],"clusterName":"Michigan","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"888-977-3677","email":"service@macombdaily.com","address1":"6250 Metropolitan Parkway, Dock D","address2":"Sterling Heights, MI 48312","timeZone":"Eastern","supportHours":" Mon.-Fri. 6 a.m. – 3 p.m. Sat. 7 a.m. – 10 a.m. Sun. 7 a.m. – 12 p.m."},"apps":[{"app_store":"http://itunes.apple.com/us/app/macomb-daily-for-iphone/id520209090?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.macombdaily"}]},"themorningsun.com":{"code":"MSUN","logo":"MS_Logo.png","title":"Mount Pleasant Morning","tribune":false,"cluster":["dailytribune.com","macombdaily.com","theoaklandpress.com"],"clusterName":"Michigan","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"989-779-6000","email":"customerservice@oakpress.com","address1":"","address2":"","timeZone":"Eastern","supportHours":" Mon.-Fri. 8:30 a.m. – 5:00 p.m."},"apps":[{"app_store":"http://itunes.apple.com/us/app/the-morning-sun-for-iphone/id520224707?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.morningsun"}]},"theoaklandpress.com":{"code":"OP","logo":"OP_Logo.png","title":"Daily Oakland","tribune":false,"cluster":["dailytribune.com","macombdaily.com","themorningsun.com"],"clusterName":"Michigan","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"888-977-3677","email":"customerservice@oakpress.com","address1":"6250 Metropolitan Parkway, Dock D","address2":"Sterling Heights, MI 48312","timeZone":"Eastern","supportHours":" Mon.-Fri. 6 a.m. – 3 p.m. Sat. 7 a.m. – 10 a.m. Sun. 7 a.m. – 12 p.m."},"apps":[{"app_store":"http://itunes.apple.com/us/app/the-oakland-press-for-iphone/id520210301?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.oaklandpress"}]},"pressandguide.com":{"code":"PG","logo":"PG_Logo.png","title":"Press and Guide","tribune":false,"cluster":["thenewsherald.com"],"clusterName":"Michigan Weeklies","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"1-888-977-3677","email":"","address1":"6250 Metropolitan Parkway, Dock D","address2":"Sterling Heights, MI 48312","timeZone":"Eastern","supportHours":" Mon.-Fri. 6 a.m. – 3 p.m. Sat. 7 a.m. – 10 a.m. Sun. 7 a.m. – 12 p.m."},"apps":[{"app_store":"","play_store":""}]},"thenewsherald.com":{"code":"TNH","logo":"TNH_Logo.png","title":"The News-Herald","tribune":false,"cluster":["pressandguide.com"],"clusterName":"Michigan Weeklies","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"1-888-977-3677","email":"customerservice@oakpress.com","address1":"6250 Metropolitan Parkway, Dock D","address2":"Sterling Heights, MI 48312","timeZone":"Eastern","supportHours":" Mon.-Fri. 6 a.m. – 3 p.m. Sat. 7 a.m. – 10 a.m. Sun. 7 a.m. – 12 p.m."},"apps":[{"app_store":"","play_store":""}]},"dailyfreeman.com":{"code":"KF","logo":"DF_Logo.png","title":"Kingston Daily Freeman","tribune":false,"cluster":["oneidadispatch.com","saratogian.com","troyrecord.com"],"clusterName":"New York","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"1-888-699-7699","email":" circulation@freemanonline.com","address1":"P.O. Box 4470","address2":"Kingston, NY 12401","timeZone":"Eastern","supportHours":" Mon.-Fri. 6 a.m. – 6 p.m. Sat. 6:30 a.m. – 11 a.m. Sun. 6:30 a.m. – 12 p.m."},"apps":[{"app_store":"http://itunes.apple.com/us/app/daily-freeman-for-iphone/id520227762?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.dailyfreeman"}]},"oneidadispatch.com":{"code":"OD","logo":"OD_Logo.png","title":"Oneida Daily Dispatch","tribune":false,"cluster":["dailyfreeman.com","saratogian.com","troyrecord.com"],"clusterName":"New York","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"1-888-699-7699","email":"customerservice@oneidadispatch.com","address1":"P.O. Box 4470","address2":"Kingston, NY 12401","timeZone":"Eastern","supportHours":" Mon.-Fri. 6 a.m. – 6 p.m. Sat. 6:30 a.m. – 11 a.m. Sun. 6:30 a.m. – 12 p.m."},"apps":[{"app_store":"http://itunes.apple.com/us/app/oneida-dispatch-for-iphone/id520233872?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.oneidadispatch"}]},"saratogian.com":{"code":"SA","logo":"SRT_Logo.png","title":"The Saratogian","tribune":false,"cluster":["oneidadispatch.com","dailyfreeman.com","troyrecord.com"],"clusterName":"New York","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"1-888-599-0499","email":"circulation@saratogian.com","address1":"P.O. Box 4004","address2":"Westford, MA 01886","timeZone":"Eastern","supportHours":" Monday – Friday 7:30 a.m.–6 p.m. Saturday 6:30 a.m.–11 a.m. Sunday 6:30 a.m.-12 p.m."},"apps":[{"app_store":"http://itunes.apple.com/us/app/saratogian-for-iphone/id520229775?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.saratogian"}]},"troyrecord.com":{"code":"TR","logo":"TROY_Logo.png","title":"The Troy Record","tribune":false,"cluster":["oneidadispatch.com","dailyfreeman.com","saratogian.com"],"clusterName":"New York","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"1-888-599-0499","email":"circulation@saratogian.com","address1":"P.O. Box 4470","address2":"Kingston, NY 12401","timeZone":"Eastern","supportHours":" Monday – Friday 7:30 a.m. – 6:00 p.m. \\\\n Saturday 6:30 a.m. – 11:00 a.m. \\\\n Sunday 6:30 a.m. – 12:00 noon"},"apps":[{"app_store":"http://itunes.apple.com/us/app/the-record-for-iphone/id520232370?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.record"}]},"morningjournal.com":{"code":"MJ","logo":"MOJ_Logo.png","title":"Lorain Morning Journal","tribune":false,"cluster":["news-herald.com"],"clusterName":"Ohio","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"1-888-757-0727","email":"subscribe@morningjournal.com","address1":"401 Broadway Ave., Suite B","address2":"Lorain, Ohio 44052","timeZone":"Eastern","supportHours":" Mon.-Fri. 6 a.m. – 3 p.m. Sat. 6:30 a.m. – 10 a.m. Sun. 6:30 a.m. – 10 a.m."},"apps":[{"app_store":"http://itunes.apple.com/us/app/morning-journal-for-iphone/id520205939?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.morningjournal"}]},"news-herald.com":{"code":"NH","logo":"NH_Logo.png","title":"Lake County News-Herald","tribune":false,"cluster":["morningjournal.com"],"clusterName":"Ohio","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"888-787-0717","email":"circulation@news-herald.com","address1":"36625 Vine St. Suite 4","address2":"Willoughby, Ohio 44094","timeZone":"Eastern","supportHours":" Mon.-Fri. 6 a.m. – 3 p.m. Sat. 6:30 a.m. – 10 a.m. Sun. 6:30 a.m. – 10 a.m."},"apps":[{"app_store":"http://itunes.apple.com/us/app/the-news-herald-for-iphone/id520206415?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.newsherald"}]},"delcotimes.com":{"code":"DCDT","logo":"DEL_Logo.png","title":"Delaware County Times","tribune":false,"cluster":["readingeagle.com","thereporteronline.com","timesherald.com","pottsmerc.com","trentonian.com","dailylocal.com"],"clusterName":"Pennsylvania","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"888-799-6299","email":"epapersupport@21st-centurymedia.com","address1":"390 Eagleview Blvd.","address2":"Exton, PA 19341","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"http://itunes.apple.com/us/app/delaware-county-daily-times/id508962453?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.thedelawarecountydailytimes"}]},"readingeagle.com":{"code":"EAGLE","logo":"RE_Logo.png","title":"Reading Eagle","tribune":false,"cluster":["delcotimes.com","thereporteronline.com","timesherald.com","pottsmerc.com","trentonian.com","dailylocal.com"],"clusterName":"Pennsylvania","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"610-371-5122","email":"ecustomerservice@readingeagle.com","address1":"390 Eagleview Blvd.","address2":"Exton, PA 19341","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"https://apps.apple.com/us/app/reading-eagle/id950379194?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.readingeagle.eversify"}]},"thereporteronline.com":{"code":"LANS","logo":"TRO_Logo.png","title":"The Lansdale Reporter","tribune":false,"cluster":["delcotimes.com","readingeagle.com","timesherald.com","pottsmerc.com","trentonian.com","dailylocal.com"],"clusterName":"Pennsylvania","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"888-955-0355","email":"epapersupport@21st-centurymedia.com","address1":"307 Derstine Ave.","address2":"Lansdale, PA 19446","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"http://itunes.apple.com/us/app/the-reporter-for-iphone/id525105540?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.reporter"}]},"timesherald.com":{"code":"NORR","logo":"TH_Logo.png","title":"Norristown Times Herald","tribune":false,"cluster":["delcotimes.com","readingeagle.com","thereporteronline.com","pottsmerc.com","trentonian.com","dailylocal.com"],"clusterName":"Pennsylvania","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"888-933-4233","email":"epapersupport@21st-centurymedia.com","address1":"390 Eagleview Blvd.","address2":"Exton, PA 19341","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"http://itunes.apple.com/us/app/the-times-herald-for-iphone/id525130019?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.timesherald"}]},"pottsmerc.com":{"code":"PMERC","logo":"PM_Logo.png","title":"The Pottstown Mercury","tribune":false,"cluster":["delcotimes.com","readingeagle.com","thereporteronline.com","timesherald.com","trentonian.com","dailylocal.com"],"clusterName":"Pennsylvania","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"888-933-5133","email":"epapersupport@21st-centurymedia.com","address1":"390 Eagleview Blvd.","address2":"Exton, PA 19341","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"http://itunes.apple.com/us/app/the-mercury-for-iphone/id525118208?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.mercury"}]},"trentonian.com":{"code":"TREN","logo":"TRT_Logo.png","title":"The Trentonian","tribune":false,"cluster":["delcotimes.com","readingeagle.com","thereporteronline.com","timesherald.com","pottsmerc.com","dailylocal.com"],"clusterName":"Pennsylvania","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"888-489-8189","email":"epapersupport@21st-centurymedia.com","address1":"127 Rte 206 South, Suite 27","address2":"Trenton, NJ 08610","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"http://itunes.apple.com/us/app/the-trentonian-for-iphone/id503293221?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.trentonian"}]},"dailylocal.com":{"code":"WCDL","logo":"DL_Logo.png","title":"West Chester Daily Local","tribune":false,"cluster":["delcotimes.com","readingeagle.com","thereporteronline.com","timesherald.com","pottsmerc.com","trentonian.com"],"clusterName":"Pennsylvania","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"888-744-2144","email":"epapersupport@21st-centurymedia.com","address1":"390 Eagleview Blvd.","address2":"Exton, PA 19341","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"http://itunes.apple.com/us/app/daily-local-for-iphone/id525116294?mt=8","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.dailylocalnews"}]},"marinij.com":{"code":"MIJ","logo":"MJ_Logo.png","title":"Marin Independent Journal","tribune":false,"cluster":["eastbaytimes.com","mercurynews.com"],"clusterName":"BANG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"415-937-7222","email":"subscriberservices@bayareanewsgroup.net","address1":"103 Shoreline Parkway, Suite 201","address2":"San Rafael, CA 94901","timeZone":"Pacific","supportHours":" Monday through Friday: 6:30a.m. – 5:00 p.m. \\\\n Saturday: 7:00a.m. – 10:30a.m. \\\\n Sunday: 8:00a.m. – 10:30a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/marin-independent-journal-news/id499674553?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.californianewspaperpartnership.marinindependentjournal"}]},"eastbaytimes.com":{"code":"EBT","logo":"EBT_Logo.png","title":"East Bay Times","tribune":false,"cluster":["marinij.com","mercurynews.com"],"clusterName":"BANG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"925-276-9254","email":"subscriberservices@bayareanewsgroup.net","address1":"208 Lindbergh Avenue","address2":"Livermore, CA 94551-9512","timeZone":"Pacific","supportHours":" Monday through Friday: 6:30 a.m. – 5:00 p.m. \\\\n Saturday: 7:00 a.m. – 10:30 a.m. \\\\n Sunday: 8:00 a.m. – 10:30 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/east-bay-times-for-mobile/id479676946?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.californianewspaperpartnership.contracostatimes"}]},"mercurynews.com":{"code":"MERC","logo":"SJMN_Logo.png","title":"The Mercury News","tribune":false,"cluster":["marinij.com","eastbaytimes.com"],"clusterName":"BANG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"408-508-5554","email":"subscriberservices@bayareanewsgroup.net","address1":"75 E. Santa Clara Street, Suite 1100","address2":"San Jose, CA 95113","timeZone":"Pacific","supportHours":" Monday through Friday: 6:30 a.m. – 5:00 p.m. \\\\n Saturday: 7:00 a.m. – 10:30 a.m. \\\\n Sunday: 8:00 a.m. – 10:30 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/the-mercury-news-for-mobile/id4799551.9959?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.californianewspaperpartnership.sanjosemercurynews"}]},"bostonherald.com":{"code":"BH","logo":"BH_Logo.png","title":"Boston Herald","tribune":false,"cluster":["lowellsun.com","sentinelandenterprise.com"],"clusterName":"Boston","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"617-619-6265","email":"circulation@bostonherald.com","address1":"P.O. Box 4004","address2":"Westford, MA 01886","timeZone":"Eastern","supportHours":" Monday – Friday 7:30 a.m. – 6:00 p.m. \\\\n Saturday 6:30 a.m. – 11:00 a.m. \\\\n Sunday 6:30 a.m. – 12:00 12 p.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/boston-herald/id1471216824?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.doapps.android.mln.MLN_42b39fdb198522d2bfc6b1f64cd98365"}]},"lowellsun.com":{"code":"LS","logo":"LS_Logo.png","title":"Lowell Sun","tribune":false,"cluster":["bostonherald.com","sentinelandenterprise.com"],"clusterName":"Boston","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"978-459-1300","email":"circulation@lowellsun.com","address1":"P.O. Box 4004","address2":"Westford, MA 01886","timeZone":"Eastern","supportHours":" Monday – Friday 7:30 a.m. – 6 p.m. \\\\n Saturday 6:30 a.m. – 11 a.m. \\\\n Sunday 6:30 a.m. – 12 p.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/lowell-sun-news-for-mobile/id502959997?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.lowellsunnews"}]},"sentinelandenterprise.com":{"code":"SE","logo":"SE_Logo.png","title":"Sentinel & Enterprise","tribune":false,"cluster":["bostonherald.com","lowellsun.com"],"clusterName":"Boston","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"978-343-6911","email":"circulation@sentinelandenterprise.com","address1":"P.O. Box 4004","address2":"Westford, MA 01886","timeZone":"Eastern","supportHours":" Monday – Friday: 7:30 a.m. to 6 p.m. \\\\n Saturday – Sunday: 6:30 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/sentinel-and-enterprise/id507306870?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.sentinelenterprise"}]},"denverpost.com":{"code":"DP","logo":"DP_Logo.png","title":"The Denver Post","tribune":false,"cluster":["dailycamera.com","greeleytribune.com","reporterherald.com","timescall.com","canoncitydailyrecord.com","eptrail.com","fortmorgantimes.com","journal-advocate.com","mercurynews.com","ocregister.com","bostonherald.com","twincities.com","readingeagle.com"],"clusterName":"Denver","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"303-832-3232","email":"memberservices@denverpost.com","address1":"5990 Washington St.","address2":"Denver, CO 80216","timeZone":"Mountain","supportHours":" Monday - Friday: 6:30 a.m. - 5 p.m. \\\\n Saturday & holidays: 7 a.m. - 10 a.m. \\\\n Sunday: 8:30 a.m. - 11 a.m. "},"apps":[{"app_store":"https://apps.apple.com/us/app/denver-post/id375264133?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.ap.denverpost"}]},"dailycamera.com":{"code":"BDC","logo":"BDC_Logo.png","title":"Boulder Daily Camera","tribune":false,"cluster":["greeleytribune.com","reporterherald.com","timescall.com","canoncitydailyrecord.com","eptrail.com","fortmorgantimes.com","journal-advocate.com"],"clusterName":"PMP","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"303-444-3444","email":"circulation@dailycamera.com","address1":"PO Box 19199","address2":"Boulder CO, 80308","timeZone":"Mountain","supportHours":" Mon. – Fri. 6:30 a.m. – 3 p.m. \\\\n Sat. 7 a.m. – 10 a.m. \\\\n Sun. 8:30 a.m. – 11a.m. \\\\n Holidays 7 a.m. – 10 a.m."},"apps":[{"app_store":"https://itunes.apple.com/us/app/boulder-daily-camera/id405275092?mt=8","play_store":"https://market.android.com/details?id=com.spreedinc.providers.digitalfirstmedia.dailycamera"}]},"greeleytribune.com":{"code":"GRE","logo":"GRE_Logo.png","title":"Greeley Tribune","tribune":false,"cluster":["dailycamera.com","reporterherald.com","timescall.com","canoncitydailyrecord.com","eptrail.com","fortmorgantimes.com","journal-advocate.com"],"clusterName":"PMP","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"970-352-8089","email":"circulation@greeleytribune.com","address1":"PO Box 337228","address2":"Greeley, CO 80633-7228","timeZone":"Mountain","supportHours":" Mon. – Fri. 6:30 a.m. – 3 p.m. \\\\n Sat. 7 a.m. – 10 a.m. \\\\n Sun. 8:30 a.m. – 11a.m. \\\\n Holidays 7 a.m. – 10 a.m."},"apps":[{"app_store":"","play_store":""}]},"reporterherald.com":{"code":"LRH","logo":"LRH_Logo.png","title":"Loveland Reporter-Herald","tribune":false,"cluster":["dailycamera.com","greeleytribune.com","timescall.com","canoncitydailyrecord.com","eptrail.com","fortmorgantimes.com","journal-advocate.com"],"clusterName":"PMP","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"970-635-3660","email":"rhcirculation@prairiemountainmedia.com","address1":"P.O. Box 59","address2":"Loveland, CO 80539","timeZone":"Mountain","supportHours":" Mon. – Fri. 6:30 a.m. – 3 p.m. \\\\n Sat. 7 a.m. – 10 a.m. \\\\n Sun. 8:30 a.m. – 11a.m. \\\\n Holidays 7 a.m. – 10 a.m."},"apps":[{"app_store":"https://itunes.apple.com/us/app/loveland-reporter-herald-for/id514599798?mt=8","play_store":"https://market.android.com/details?id=com.spreedinc.providers.digitalfirstmedia.lovelandreporterherald"}]},"timescall.com":{"code":"LTC","logo":"LTC_Logo.png","title":"Longmont Times Call","tribune":false,"cluster":["dailycamera.com","greeleytribune.com","reporterherald.com","canoncitydailyrecord.com","eptrail.com","fortmorgantimes.com","journal-advocate.com"],"clusterName":"PMP","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"303-684-5358","email":"tccirculation@dailycamera.com","address1":"P.O. Box 299","address2":"Longmont, CO 80502","timeZone":"Mountain","supportHours":" Mon. – Fri. 6:30 a.m. – 3 p.m. \\\\n Sat. 7 a.m. – 10 a.m. \\\\n Sun. 8:30 a.m. – 11a.m. \\\\n Holidays 7 a.m. – 10 a.m."},"apps":[{"app_store":"https://itunes.apple.com/us/app/longmont-times-call-for-mobile/id514597776?mt=8","play_store":"https://market.android.com/details?id=com.spreedinc.providers.digitalfirstmedia.longmonttimescall"}]},"canoncitydailyrecord.com":{"code":"CDR","logo":"CDR_Logo.png","title":"Cañon City Daily Record","tribune":false,"cluster":["dailycamera.com","greeleytribune.com","reporterherald.com","timescall.com","eptrail.com","fortmorgantimes.com","journal-advocate.com"],"clusterName":"PMP","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"719-275-7565","email":"","address1":"The Hive, 729 Main St.","address2":"Cañon City, CO. 81212","timeZone":"Mountain","supportHours":" Mon. – Fri. 6:30 a.m. – 3 p.m. \\\\n Sat. 7 a.m. – 10 a.m. \\\\n Sun. 8:30 a.m. – 11a.m. \\\\n Holidays 7 a.m. – 10 a.m."},"apps":[{"app_store":"https://itunes.apple.com/us/app/canon-city-daily-record/id514585870?mt=8","play_store":"https://market.android.com/details?id=com.spreedinc.providers.digitalfirstmedia.canoncitydailyrecord"}]},"eptrail.com":{"code":"EP","logo":"EP_Logo.png","title":"Estes Park Trail-Gazette","tribune":false,"cluster":["dailycamera.com","greeleytribune.com","reporterherald.com","timescall.com","canoncitydailyrecord.com","fortmorgantimes.com","journal-advocate.com"],"clusterName":"PMP","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"970-586-3356","email":"circulation@eptrail.com","address1":"P.O. Box 1707","address2":"Estes Park, CO 80517","timeZone":"Mountain","supportHours":" Mon. – Fri. 6:30 a.m. – 3 p.m. \\\\n Sat. 7 a.m. – 10 a.m. \\\\n Sun. 8:30 a.m. – 11a.m. \\\\n Holidays 7 a.m. – 10 a.m."},"apps":[{"app_store":"","play_store":""}]},"fortmorgantimes.com":{"code":"FMT","logo":"FMT_Logo.png","title":"Fort Morgan Times","tribune":false,"cluster":["dailycamera.com","greeleytribune.com","reporterherald.com","timescall.com","canoncitydailyrecord.com","eptrail.com","journal-advocate.com"],"clusterName":"PMP","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"970-867-5651","email":"","address1":"P.O. Box 495","address2":"Sterling, CO 80751","timeZone":"Mountain","supportHours":" Mon. – Fri. 6:30 a.m. – 3 p.m. \\\\n Sat. 7 a.m. – 10 a.m. \\\\n Sun. 8:30 a.m. – 11a.m. \\\\n Holidays 7 a.m. – 10 a.m."},"apps":[{"app_store":"https://itunes.apple.com/co/app/fort-morgan-times-for-mobile/id509595449?l=en&mt=8","play_store":"https://market.android.com/details?id=com.spreedinc.providers.digitalfirstmedia.fortmorgantimes"}]},"journal-advocate.com":{"code":"SJA","logo":"SJC_Logo.png","title":"Sterling Journal Advocate","tribune":false,"cluster":[],"clusterName":"PMP","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"970-522-1990","email":"","address1":"P.O. Box 495","address2":"Sterling, CO 80751","timeZone":"Mountain","supportHours":" Mon. – Fri. 6:30 a.m. – 3 p.m. \\\\n Sat. 7 a.m. – 10 a.m. \\\\n Sun. 8:30 a.m. – 11a.m. \\\\n Holidays 7 a.m. – 10 a.m."},"apps":[{"app_store":"https://itunes.apple.com/us/app/journal-advocate/id509598546?mt=8","play_store":"https://market.android.com/details?id=com.spreedinc.providers.digitalfirstmedia.journaladvocate"}]},"chicoer.com":{"code":"ER","logo":"EP_Logo.png","title":"Estes Park Trail-Gazette","tribune":false,"cluster":["orovillemr.com","redbluffdailynews.com","record-bee.com","montereyherald.com","santacruzsentinel.com","times-standard.com","ukiahdailyjournal.com","thereporter.com","timesheraldonline.com","dailydemocrat.com","paradisepost.com"],"clusterName":"Norcal","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"530-879-7888","email":"delivery@chicoer.com","address1":"400 E. Park Ave.","address2":"Chico, CA 95928","timeZone":"Pacific","supportHours":" Monday - Friday 7:00 a.m. to 4:00 p.m. \\\\n Saturday: Closed \\\\n Sunday, 7:30 a.m. to 10:30 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/chico-enterprise-record/id499663248?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.californianewspaperpartnership.chicoenterpriserecord"}]},"orovillemr.com":{"code":"MR","logo":"ORO_Logo.png","title":"Oroville Mercury Register","tribune":false,"cluster":["chicoer.com","redbluffdailynews.com","record-bee.com","montereyherald.com","santacruzsentinel.com","times-standard.com","ukiahdailyjournal.com","thereporter.com","timesheraldonline.com","dailydemocrat.com","paradisepost.com"],"clusterName":"Norcal","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"530-879-7888","email":"udjcirc@ukiahdj.com","address1":"400 E. Park Ave.","address2":"Chico, CA 95928","timeZone":"Pacific","supportHours":" Monday - Friday 7:00 a.m. to 5:00 p.m. \\\\n Saturday: Closed \\\\n Sunday: 7:30 a.m. to 10:30 a.m."},"apps":[{"app_store":"","play_store":""}]},"redbluffdailynews.com":{"code":"RB","logo":"RBDN_Logo.png","title":"Red Bluff Daily News","tribune":false,"cluster":["chicoer.com","orovillemr.com","record-bee.com","montereyherald.com","santacruzsentinel.com","times-standard.com","ukiahdailyjournal.com","thereporter.com","timesheraldonline.com","dailydemocrat.com","paradisepost.com"],"clusterName":"Norcal","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"530-737-5047","email":"circ@redbluffdailynews.com","address1":"PO Box 885","address2":"Red Bluff, CA 96080","timeZone":"Pacific","supportHours":" Monday - Friday 7:00 a.m. to 4:00 p.m. \\\\n Saturday: Closed \\\\n Sunday: 7:30 a.m. to 10:30 a.m."},"apps":[{"app_store":"","play_store":""}]},"record-bee.com":{"code":"BEE","logo":"RB_Logo.png","title":"Lake County Record-Bee","tribune":false,"cluster":["chicoer.com","orovillemr.com","redbluffdailynews.com","montereyherald.com","santacruzsentinel.com","times-standard.com","ukiahdailyjournal.com","thereporter.com","timesheraldonline.com","dailydemocrat.com","paradisepost.com"],"clusterName":"Norcal","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"707-263-5636","email":"gdeboth@record-bee.com","address1":"","address2":"","timeZone":"Pacific","supportHours":" Monday - Friday: 7:00 a.m. to 4:00 p.m. \\\\n Saturday: Closed \\\\n Sunday: 7:30 a.m. to 10:30 a.m."},"apps":[{"app_store":"","play_store":""}]},"montereyherald.com":{"code":"HERALD","logo":"MH_Logo.png","title":"Monterey Herald","tribune":false,"cluster":["chicoer.com","orovillemr.com","redbluffdailynews.com","record-bee.com","santacruzsentinel.com","times-standard.com","ukiahdailyjournal.com","thereporter.com","timesheraldonline.com","dailydemocrat.com","paradisepost.com"],"clusterName":"Norcal","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"831-646-1808","email":"circservices@montereyherald.com","address1":"2555 Garden Road Suite D","address2":"Monterey, CA 93940","timeZone":"Pacific","supportHours":" Monday - Friday: 7:00 a.m. to 4:00 p.m. \\\\n Saturday: Closed \\\\n Sunday: 7:30 a.m. to 10:30 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/monterey-county-herald/id507305181?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.montereyherald"}]},"santacruzsentinel.com":{"code":"SCS","logo":"SCS_Logo.png","title":"Santa Cruz Sentinel","tribune":false,"cluster":["chicoer.com","orovillemr.com","redbluffdailynews.com","record-bee.com","montereyherald.com","times-standard.com","ukiahdailyjournal.com","thereporter.com","timesheraldonline.com","dailydemocrat.com","paradisepost.com"],"clusterName":"Norcal","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"831-706-3201","email":"circulation@santacruzsentinel.com","address1":"318 Encinal St.","address2":"Santa Cruz, CA 95060","timeZone":"Pacific","supportHours":" Monday - Friday: 7:00 a.m. to 5:00 p.m. \\\\n Saturday: Closed \\\\n Sunday & holidays: 7:30 a.m. to 10:30 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/santa-cruz-sentinel-for-mobile/id499677382?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.californianewspaperpartnership.santacruzsentinel"}]},"times-standard.com":{"code":"TS","logo":"TSTD_Logo.png","title":"Eureka Times-Standard","tribune":false,"cluster":["chicoer.com","orovillemr.com","redbluffdailynews.com","record-bee.com","montereyherald.com","santacruzsentinel.com","ukiahdailyjournal.com","thereporter.com","timesheraldonline.com","dailydemocrat.com","paradisepost.com"],"clusterName":"Norcal","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"707-441-0550","email":"circulation@times-standard.com","address1":"39 Fifth St.","address2":"Eureka, CA 95501","timeZone":"Pacific","supportHours":""},"apps":[{"app_store":"https://apps.apple.com/us/app/eureka-times-standard/id499669816?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.californianewspaperpartnership.eurekatimesstandard"}]},"ukiahdailyjournal.com":{"code":"UK","logo":"UK_Logo.png","title":"Ukiah Daily Journal","tribune":false,"cluster":["chicoer.com","orovillemr.com","redbluffdailynews.com","record-bee.com","montereyherald.com","santacruzsentinel.com","times-standard.com","thereporter.com","timesheraldonline.com","dailydemocrat.com","paradisepost.com"],"clusterName":"Norcal","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"707-468-3500","email":"udjcirc@ukiahdj.com","address1":"415 Talmage Road Ste A","address2":"Ukiah, CA 95482","timeZone":"Pacific","supportHours":" Monday - Friday 7:00 a.m. to 4:00 p.m. \\\\n Saturday: Closed \\\\n Sunday, 7:30 a.m. to 10:30 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/ukiah-daily-journal/id503016816?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.ukiahdailyjournal"}]},"thereporter.com":{"code":"VR","logo":"TR_Logo.png","title":"Vacaville Reporter","tribune":false,"cluster":["chicoer.com","orovillemr.com","redbluffdailynews.com","record-bee.com","montereyherald.com","santacruzsentinel.com","times-standard.com","ukiahdailyjournal.com","timesheraldonline.com","dailydemocrat.com","paradisepost.com"],"clusterName":"Norcal","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"707-448-8566","email":"subscribe@thereporter.com","address1":"57 Commerce Place, Ste. A","address2":"Vacaville, CA 95687","timeZone":"Pacific","supportHours":" Monday 8:00 a.m. to 4:00 p.m. \\\\n Tuesday through Friday 7:00 a.m. to 4:00 p.m. \\\\n Saturday: Closed \\\\n Sunday 7:30 a.m. to 10:30 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/vacaville-reporter/id499680399?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.californianewspaperpartnership.vacavillereporter"}]},"timesheraldonline.com":{"code":"VT","logo":"THO_Logo.png","title":"Vallejo Times-Herald","tribune":false,"cluster":["chicoer.com","orovillemr.com","redbluffdailynews.com","record-bee.com","montereyherald.com","santacruzsentinel.com","times-standard.com","ukiahdailyjournal.com","thereporter.com","dailydemocrat.com","paradisepost.com"],"clusterName":"Norcal","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"707-644-5478","email":"services@timesheraldonline.com","address1":"425A Virginia St.","address2":"Vallejo, CA 94590","timeZone":"Pacific","supportHours":" Monday - Friday 7:00 a.m. to 4:00 p.m. \\\\n Saturday: Closed \\\\n Sunday, 7:30 a.m. to 10:30 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/vallejo-times-herald-news/id508566566?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.vallejotimesherald"}]},"dailydemocrat.com":{"code":"WD","logo":"DD_Logo.png","title":"Woodland Daily Democrat","tribune":false,"cluster":["chicoer.com","orovillemr.com","redbluffdailynews.com","record-bee.com","montereyherald.com","santacruzsentinel.com","times-standard.com","ukiahdailyjournal.com","thereporter.com","timesheraldonline.com","paradisepost.com"],"clusterName":"Norcal","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"530-406-6205","email":"udjcirc@ukiahdj.com","address1":"725 Main Street, Suite 222","address2":"Woodland, CA 95695","timeZone":"Pacific","supportHours":" Monday 8:00 a.m. to 4:00 p.m. \\\\n Tuesday - Friday 7:00 a.m. to 4:00 p.m. \\\\n Saturday: Closed \\\\n Sunday 7:30 a.m. to 10:30 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/daily-democrat-for-mobile/id507295340?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.dailydemocrat"}]},"paradisepost.com":{"code":"PP","logo":"PP_Logo.png","title":"Paradise Post","tribune":false,"cluster":["chicoer.com","orovillemr.com","redbluffdailynews.com","record-bee.com","montereyherald.com","santacruzsentinel.com","times-standard.com","ukiahdailyjournal.com","thereporter.com","timesheraldonline.com","dailydemocrat.com"],"clusterName":"Norcal","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"530-879-7888","email":"","address1":"P.O. Box 9","address2":"Chico, CA 95927","timeZone":"Pacific","supportHours":" Monday - Friday 7:00 a.m. to 4:00 p.m. \\\\n Saturday: Closed \\\\n Sunday, 7:30 a.m. to 10:30 a.m."},"apps":[{"app_store":"","play_store":""}]},"dailybulletin.com":{"code":"IVDB","logo":"DBU_Logo.png","title":"Inland Valley Daily Bulletin","tribune":false,"cluster":["dailynews.com","presstelegram.com","ocregister.com","pressenterprise.com","pasadenastarnews.com","redlandsdailyfacts.com","sbsun.com","sgvtribune.com","dailybreeze.com","whittierdailynews.com","sandiegouniontribune.com"],"clusterName":"SCNG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"909-987-9900","email":"service@scng.com","address1":"3200 Guasti Rd. Suite 100","address2":"Ontario, CA 91761","timeZone":"Pacific","supportHours":" Monday through Friday: 7 a.m. to 4 p.m. \\\\n Saturday and holidays: 7 a.m. to 10 a.m. \\\\n Sunday: 8 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/inland-valley-daily-bulletin/id503648014?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstemedia.inlandvalleydailybulletin"}]},"sandiegouniontribune.com":{"code":"SDUT","logo":"SDUT_Logo.png","title":"San Diego Union Tribune","tribune":false,"cluster":["dailybulletin.com","presstelegram.com","ocregister.com","pressenterprise.com","pasadenastarnews.com","redlandsdailyfacts.com","sbsun.com","sgvtribune.com","dailybreeze.com","whittierdailynews.com","dailynews.com"],"clusterName":"SCNG","benefits":["e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"(619) 299-4141","email":"scustomer.service@sduniontribune.com","address1":"600 B St","address2":"San Diego, CA 92101","timeZone":"Pacific","supportHours":" Monday through Friday: 7 a.m. to 4 p.m. \\\\n Saturday and holidays: 7 a.m. to 10 a.m. \\\\n Sunday: 8 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/the-san-diego-union-tribune/id1145952888","play_store":"https://play.google.com/store/apps/details?id=com.apptivateme.next.sdut&hl=en_US&pli=1"}]},"dailynews.com":{"code":"LADN","logo":"DN_Logo.png","title":"SDUT","tribune":false,"cluster":["dailybulletin.com","presstelegram.com","ocregister.com","pressenterprise.com","pasadenastarnews.com","redlandsdailyfacts.com","sbsun.com","sgvtribune.com","dailybreeze.com","whittierdailynews.com","sandiegouniontribune.com"],"clusterName":"SCNG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"818-713-3000","email":"service@scng.com","address1":"181 E. Huntington Drive, Suite 209","address2":"Monrovia, CA 91016","timeZone":"Pacific","supportHours":" Monday through Friday: 7 a.m. to 4 p.m. \\\\n Saturday and holidays: 7 a.m. to 10 a.m. \\\\n Sunday: 8 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/los-angeles-daily-news/id502957174?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.ladailynews"}]},"presstelegram.com":{"code":"LBPT","logo":"PT_Logo.png","title":"Long Beach Press-Telegram","tribune":false,"cluster":["dailybulletin.com","dailynews.com","ocregister.com","pressenterprise.com","pasadenastarnews.com","redlandsdailyfacts.com","sbsun.com","sgvtribune.com","dailybreeze.com","whittierdailynews.com","sandiegouniontribune.com"],"clusterName":"SCNG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"562-435-1161","email":"service@scng.com","address1":"5150 E. Pacific Coast Highway, Suite 200","address2":"Long Beach CA 90804","timeZone":"Pacific","supportHours":" Monday through Friday: 7 a.m. to 4 p.m. \\\\n Saturday and holidays: 7 a.m. to 10 a.m. \\\\n Sunday: 8 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/long-beach-press-telegram/id502958939?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.longbeachpresstelegram"}]},"ocregister.com":{"code":"OCR","logo":"OCR_Logo.png","title":"Orange County Register","tribune":false,"cluster":["dailybulletin.com","dailynews.com","presstelegram.com","pressenterprise.com","pasadenastarnews.com","redlandsdailyfacts.com","sbsun.com","sgvtribune.com","dailybreeze.com","whittierdailynews.com","sandiegouniontribune.com"],"clusterName":"SCNG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"714-796-7000","email":"service@scng.com","address1":"1920 Main Street, Suite 225","address2":"Irvine, CA 92614","timeZone":"Pacific","supportHours":" Monday through Friday: 7 a.m. to 4 p.m. \\\\n Saturday and holidays: 7 a.m. to 10 a.m. \\\\n Sunday: 8 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/ocregister/id380372599?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.freedom.ocregister"}]},"pressenterprise.com":{"code":"PE","logo":"PE_Logo.png","title":"Press Enterprise","tribune":false,"cluster":["dailybulletin.com","dailynews.com","presstelegram.com","ocregister.com","pasadenastarnews.com","redlandsdailyfacts.com","sbsun.com","sgvtribune.com","dailybreeze.com","whittierdailynews.com","sandiegouniontribune.com"],"clusterName":"SCNG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"951-368-9000","email":"service@scng.com","address1":"3512 14th Street","address2":"Riverside, CA 92501","timeZone":"Pacific","supportHours":" Monday through Friday: 7 a.m. to 4 p.m. \\\\n Saturday and holidays: 7 a.m. to 10 a.m. \\\\n Sunday: 8 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/the-press-enterprise/id1218912043?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.doapps.android.mln.MLN_7c590f01490190db0ed02a5070e20f01"}]},"pasadenastarnews.com":{"code":"PSN","logo":"PSN_Logo.png","title":"Pasadena Star-News","tribune":false,"cluster":["dailybulletin.com","dailynews.com","presstelegram.com","ocregister.com","pressenterprise.com","redlandsdailyfacts.com","sbsun.com","sgvtribune.com","dailybreeze.com","whittierdailynews.com","sandiegouniontribune.com"],"clusterName":"SCNG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"626-578-6300","email":"service@scng.com","address1":"177 E. Colorado Blvd.","address2":"Pasadena, CA 91105","timeZone":"Pacific","supportHours":" Monday through Friday: 7 a.m. to 4 p.m. \\\\n Saturday and holidays: 7 a.m. to 10 a.m. \\\\n Sunday: 8 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/ocregister/id380372599?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.pasadenastarnews"}]},"redlandsdailyfacts.com":{"code":"RDF","logo":"RDF_Logo.png","title":"Redlands Daily Facts","tribune":false,"cluster":["dailybulletin.com","dailynews.com","presstelegram.com","ocregister.com","pressenterprise.com","pasadenastarnews.com","sbsun.com","sgvtribune.com","dailybreeze.com","whittierdailynews.com","sandiegouniontribune.com"],"clusterName":"SCNG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"909-353-1641","email":"service@scng.com","address1":"1255 W. Colton Ave.","address2":"Redlands, CA 92374","timeZone":"Pacific","supportHours":" Monday through Friday: 7 a.m. to 4 p.m. \\\\n Saturday and holidays: 7 a.m. to 10 a.m. \\\\n Sunday: 8 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/redlands-daily-facts/id502960941?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.redlandsdailyfacts"}]},"sbsun.com":{"code":"SBS","logo":"SBS_Logo.png","title":"San Bernardino Sun","tribune":false,"cluster":["dailybulletin.com","dailynews.com","presstelegram.com","ocregister.com","pressenterprise.com","pasadenastarnews.com","redlandsdailyfacts.com","sgvtribune.com","dailybreeze.com","whittierdailynews.com","sandiegouniontribune.com"],"clusterName":"SCNG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"909-889-9666","email":"service@scng.com","address1":"473 E. Carnegie Drive, Suite 250","address2":"San Bernardino, CA 92408","timeZone":"Pacific","supportHours":" Monday through Friday: 7 a.m. to 4 p.m. \\\\n Saturday and holidays: 7 a.m. to 10 a.m. \\\\n Sunday: 8 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/silicon-valley-for-mobile/id502964313?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.sanbernardinosun"}]},"sgvtribune.com":{"code":"SGVT","logo":"SGV_Logo.png","title":"San Gabriel Valley Tribune","tribune":false,"cluster":["dailybulletin.com","dailynews.com","presstelegram.com","ocregister.com","pressenterprise.com","pasadenastarnews.com","redlandsdailyfacts.com","sbsun.com","dailybreeze.com","whittierdailynews.com","sandiegouniontribune.com"],"clusterName":"SCNG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"626-598-8826","email":"service@scng.com","address1":"181 W. Huntington Drive, Suite 209","address2":"Monrovia, CA 91016","timeZone":"Pacific","supportHours":" Monday through Friday: 7 a.m. to 4 p.m. \\\\n Saturday and holidays: 7 a.m. to 10 a.m. \\\\n Sunday: 8 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/san-gabriel-valley-tribune/id50302551.998?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.sangabrielvalleytribune"}]},"dailybreeze.com":{"code":"TODB","logo":"DBR_Logo.png","title":"Torrance Daily Breeze","tribune":false,"cluster":["dailybulletin.com","dailynews.com","presstelegram.com","ocregister.com","pressenterprise.com","pasadenastarnews.com","redlandsdailyfacts.com","sbsun.com","sgvtribune.com","whittierdailynews.com","sandiegouniontribune.com"],"clusterName":"SCNG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"310-540-5511","email":"service@scng.com","address1":"2615 Pacific Coast Highway #329","address2":"Hermosa Beach CA 90254","timeZone":"Pacific","supportHours":" Monday through Friday: 7 a.m. to 4 p.m. \\\\n Saturday and holidays: 7 a.m. to 10 a.m. \\\\n Sunday: 8 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/daily-breeze/id503015160?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.torrancedailybreeze"}]},"whittierdailynews.com":{"code":"WDN","logo":"WDN_Logo.png","title":"Whittier Daily News","tribune":false,"cluster":["dailybulletin.com","dailynews.com","presstelegram.com","ocregister.com","pressenterprise.com","pasadenastarnews.com","redlandsdailyfacts.com","sbsun.com","sgvtribune.com","dailybreeze.com","sandiegouniontribune.com"],"clusterName":"SCNG","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Reader Rewards","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"626-962-8811","email":"service@scng.com","address1":"181 W. Huntington Drive, Suite 209","address2":"Monrovia, CA 91016","timeZone":"Pacific","supportHours":" Monday through Friday: 7 a.m. to 4 p.m. \\\\n Saturday and holidays: 7 a.m. to 10 a.m. \\\\n Sunday: 8 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/whittier-daily-news/id503668140?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.whittierdailynews"}]},"twincities.com":{"code":"PPST","logo":"TC_Logo.png","title":"St. Paul Pioneer Press","tribune":false,"cluster":[],"clusterName":"St. Paul","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts","Events"],"customerService":{"phone":"651-717-7377","email":"customerservice@pioneerpress.com","address1":"1 West Water St., Suite 200","address2":"St. Paul, MN 55107","timeZone":"Central","supportHours":" Monday through Friday: 6:30 a.m. to 5 p.m. \\\\n Saturday and holidays: 7 a.m. to 10 a.m. \\\\n Sunday: 8:30 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/st-paul-pioneer-press/id603264610?ls=1","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.digitalfirstmedia.stpaulpioneerpress"}]},"baltimoresun.com":{"code":"200","logo":"BS_Logo.png","title":"The Baltimore Sun","tribune":true,"cluster":[],"clusterName":"Tribune","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"443-692-9011","email":"customersatisfactions@baltsun.com","address1":"PO Box 1377","address2":"Baltimore, MD 21278","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"https://apps.apple.com/app/apple-store/id496681035?pt=30532&ct=our-app-email&mt=8","play_store":"https://play.google.com/store/apps/details?id=com.apptivateme.next.bs&hl=en_US&gl=US"}]},"capitalgazette.com":{"code":"247","logo":"CG_Logo.png","title":"Capital Gazette","tribune":true,"cluster":[],"clusterName":"Tribune","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"410-268-4800","email":"circulations@capgaznews.com","address1":"PO Box 1377","address2":"Baltimore, MD 21278","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"","play_store":""}]},"chicagotribune.com":{"code":"3CHITRIB","logo":"CTR_Logo.png","title":"Chicago Tribune","tribune":true,"cluster":[],"clusterName":"Tribune","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"312-546-7900","email":"consumerservices@chicagotribune.com","address1":"1000 Albion Avenue","address2":"Schaumburg, IL 60193-4549","timeZone":"Central","supportHours":""},"apps":[{"app_store":"https://apps.apple.com/app/apple-store/id383137151?pt=30532&ct=our-app-email&mt=8","play_store":"https://play.google.com/store/apps/details?id=com.apptivateme.next.ct"}]},"courant.com":{"code":"6HrtCrnt","logo":"HC_Logo.png","title":"Hartford Courant","tribune":true,"cluster":[],"clusterName":"Tribune","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"860-525-5555","email":"custserv@courant.com","address1":"PO Box 569","address2":"Hartford, CT 06141","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"https://apps.apple.com/app/apple-store/id391113483?pt=30532&ct=our-app-email&mt=8","play_store":"https://play.google.com/store/apps/details?id=com.apptivateme.next.hc&hl=en_US&gl=US"}]},"dailypress.com":{"code":"7DPress","logo":"","title":"Daily Press","tribune":true,"cluster":[],"clusterName":"Tribune","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"757 247-4800","email":"customerservice@dailypress.com","address1":"P.O. Box 2820","address2":"Norfolk, VA 23501","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"https://apps.apple.com/app/apple-store/id397500600?pt=30532&ct=our-app-email&mt=8","play_store":"https://play.google.com/store/apps/details?id=com.apptivateme.next.hrdp"}]},"growthspotter.com":{"code":"5GrowSpt","logo":"","title":"","tribune":true,"cluster":[],"clusterName":"Tribune","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"","email":"","address1":"P.O. Box 2833","address2":"Orlando, FL 32803","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"","play_store":""}]},"mcall.com":{"code":"800","logo":"MC_Logo.png","title":"The Morning Call","tribune":true,"cluster":[],"clusterName":"Tribune","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"610-820-6601","email":"circweb@mcall.com","address1":"P.O. Box 1260","address2":"Allentown, PA 18105-1260","timeZone":"Eastern","supportHours":" Monday - Friday: 7:00 a.m. to 4:00 p.m. \\\\n Saturday: Closed \\\\n Sunday: 7:30 a.m. to 10:30 a.m."},"apps":[{"app_store":"https://apps.apple.com/app/apple-store/id501096172?pt=30532&ct=our-app-email&mt=8","play_store":"https://play.google.com/store/apps/details?id=com.apptivateme.next.amc"}]},"nydailynews.com":{"code":"850","logo":"NYDN_Logo.png","title":"New York Daily News","tribune":true,"cluster":[],"clusterName":"Tribune","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"201-521-2851","email":"customerservice@nydailynews.com","address1":"PO Box 7180","address2":"New York, NY 10008","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"https://apps.apple.com/app/apple-store/id354730788?pt=30532&ct=our-app-email&mt=8","play_store":"https://play.google.com/store/apps/details?id=com.freerange360.mpp.NYDN"}]},"orlandosentinel.com":{"code":"5OrlSent","logo":"OOS_Logo.png","title":"Orlando Sentinel","tribune":true,"cluster":[],"clusterName":"Tribune","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"407-420-5353","email":"customerservice@orlandosentinel.com","address1":"PO Box 2833","address2":"Orlando, FL 32802","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"https://apps.apple.com/app/apple-store/id402223551?pt=30532&ct=our-app-email&mt=8","play_store":"https://play.google.com/store/apps/details?id=com.apptivateme.next.os"}]},"pilotonline.com":{"code":"7VAPilot","logo":"","title":"","tribune":true,"cluster":[],"clusterName":"Tribune","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"757-446-9000","email":"customerservice@pilotonline.com","address1":"PO Box 2833","address2":"Orlando, FL 32802","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"","play_store":""}]},"sun-sentinel.com":{"code":"4SunSent","logo":"SS_Logo.png","title":"Sun Sentinel","tribune":true,"cluster":[],"clusterName":"Tribune","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"954-375-2018","email":"customerservice@sunsentinel.com","address1":"333 SW 12th Ave.","address2":"Deerfield Beach, FL 33442","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"https://apps.apple.com/app/apple-store/id402230662?pt=30532&ct=our-app-email&mt=8","play_store":"https://play.google.com/store/apps/details?id=com.apptivateme.next.sfss"}]},"republicanherald.com":{"code":"PR","logo":"PR_Logo.png","title":"Republican Herald","tribune":false,"cluster":["standardspeaker.com","citizensvoice.com","thetimes-tribune.com","wcexaminer.com"],"clusterName":"NEPA","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"570-622-3456 | 1-800-622-1737","email":"customerservice@srepublicanherald.com","address1":"23 S. Centre St., 2nd Floor","address2":"Pottsville, PA 17901","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"https://apps.apple.com/us/app/pottsville-republican-herald/id821007739","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.timesshamrockcommunications.republicanherald&hl=en_US&pli=1"}]},"standardspeaker.com":{"code":"SS","logo":"SSK_Logo.png","title":"Standard-Speaker","tribune":false,"cluster":["republicanherald.com","citizensvoice.com","thetimes-tribune.com","wcexaminer.com"],"clusterName":"NEPA","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"570-455-3636 | 800-843-6680","email":"customerservice@standardspeaker.com","address1":"21 N. Wyoming St.","address2":"Hazleton, PA 18201","timeZone":"Eastern","supportHours":""},"apps":[{"app_store":"https://apps.apple.com/us/app/the-hazleton-standard-speaker/id821012052","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.timesshamrockcommunications.standardspeaker&hl=en_US"}]},"citizensvoice.com":{"code":"CV","logo":"CV_Logo.png","title":"Citizens\' Voice","tribune":false,"cluster":["republicanherald.com","standardspeaker.com","thetimes-tribune.com","wcexaminer.com"],"clusterName":"NEPA","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":" (570) 821-2010","email":"customerservice@citizensvoice.com","address1":"75 N. Washington St.","address2":"Wilkes-Barre, PA 18701","timeZone":"Eastern","supportHours":"Monday through Friday, 7 a.m. to 4 p.m.Sunday, 7 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/citizens-voice/id859248069","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.timesshamrockcommunications.citizensvoice&hl=en_US"}]},"thetimes-tribune.com":{"code":"ST","logo":"ST_Logo.png","title":"Scranton Times-Tribune","tribune":false,"cluster":["republicanherald.com","standardspeaker.com","citizensvoice.com","wcexaminer.com"],"clusterName":"NEPA","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"1-800-228-4637","email":"customerservice@thetimes-tribune.com","address1":"305 Linden St.","address2":"Scranton, PA 18503","timeZone":"Eastern","supportHours":"Monday through Friday, 7 a.m. to 4 p.m.Sunday, 7 a.m. to 11 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/citizens-voice/id859248069","play_store":"https://play.google.com/store/apps/details?id=com.spreedinc.providers.timesshamrockcommunications.citizensvoice&hl=en_US"}]},"wcexaminer.com":{"code":"WCE","logo":"WCE_Logo.png","title":"Wyoming County Examiner","tribune":false,"cluster":["republicanherald.com","standardspeaker.com","thetimes-tribune.com","citizensvoice.com"],"clusterName":"NEPA","benefits":["e-Edition Archives","e-Edition","Account Sharing","Article Sharing","Ad-free Reading","Digital Access to 50+ Pubs","Home Delivery","Coupon & Inserts"],"customerService":{"phone":"(570) 836-2123","email":"customerservice@wcexaminer.com","address1":"16 East Tioga St.","address2":"Tunkhannock, PA 18657","timeZone":"Eastern","supportHours":"Monday through Friday, 7 a.m. to 4 p.m.Sunday, 7 a.m. to 11 a.m."},"apps":[]}}')},2569(e,t,o){"use strict";o.r(t),o.d(t,{hasBrowserEnv:()=>r,hasStandardBrowserEnv:()=>i,hasStandardBrowserWebWorkerEnv:()=>s,navigator:()=>n,origin:()=>a});const r="undefined"!=typeof window&&"undefined"!=typeof document,n="object"==typeof navigator&&navigator||void 0,i=r&&(!n||["ReactNative","NativeScript","NS"].indexOf(n.product)<0),s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,a=r&&window.location.href||"http://localhost"},2723(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(8458),n=o(4062),i=o(7275);const s=(e,t)=>{const{length:o}=e=e?e.filter(Boolean):[];if(t||o){let o,s=new AbortController;const a=function(e){if(!o){o=!0,l();const t=e instanceof Error?e:this.reason;s.abort(t instanceof n.A?t:new r.A(t instanceof Error?t.message:t))}};let c=t&&setTimeout(()=>{c=null,a(new n.A(`timeout ${t} of ms exceeded`,n.A.ETIMEDOUT))},t);const l=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const{signal:u}=s;return u.unsubscribe=()=>i.A.asap(l),u}}},2936(){"use strict"},3119(e,t,o){"use strict";o.d(t,{A:()=>r});const r=null},3145(e,t,o){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);or})},3153(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(3612);const n={log:function(){if(r.A.debug){for(var e,t=arguments.length,o=new Array(t),n=0;nn});const r=o(7275).A.toObjectSet(["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"]),n=e=>{const t={};let o,n,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),o=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!o||t[o]&&r[o]||("set-cookie"===o?t[o]?t[o].push(n):t[o]=[n]:t[o]=t[o]?t[o]+", "+n:n)}),t}},3390(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(9888),n=o(4062);const i={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{i[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const s={};i.transitional=function(e,t,o){function i(e,t){return"[Axios v"+r.x+"] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(o,r,a)=>{if(!1===e)throw new n.A(i(r," has been removed"+(t?" in "+t:"")),n.A.ERR_DEPRECATED);return t&&!s[r]&&(s[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(o,r,a)}},i.spelling=function(e){return(t,o)=>(console.warn(`${o} is likely a misspelling of ${e}`),!0)};const a={assertOptions:function(e,t,o){if("object"!=typeof e)throw new n.A("options must be an object",n.A.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],a=t[s];if(a){const t=e[s],o=void 0===t||a(t,s,e);if(!0!==o)throw new n.A("option "+s+" must be "+o,n.A.ERR_BAD_OPTION_VALUE);continue}if(!0!==o)throw new n.A("Unknown option "+s,n.A.ERR_BAD_OPTION)}},validators:i}},3453(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(6369),n=o(6986),i=o(7800),s=o(6562);function a(e,t){return(0,r.A)(e)||(0,n.A)(e,t)||(0,i.A)(e,t)||(0,s.A)()}},3612(e,t,o){"use strict";var r,n,i,s,a;o.d(t,{A:()=>c}),window.authentication_config.sessionManagementEnabled="1"===window.authentication_config.sessionManagement;const c={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,enableDashboardCancel:!!window.authentication_config&&"1"===window.authentication_config.enableDashboardCancel,enableDashboardBenefitHub:!!window.authentication_config&&"1"===window.authentication_config.enableDashboardBenefitHub,enableEngageArticleGifting:"1"===(null===(r=window.authentication_config)||void 0===r?void 0:r.articleSharingEnabled)&&"1"===(null===(n=window.authentication_config)||void 0===n?void 0:n.isEngageArticleSharing),enableGiftedArticlesLink:"1"===(null===(i=window.authentication_config)||void 0===i?void 0:i.articleSharingEnabled)&&"1"!==(null===(s=window.authentication_config)||void 0===s?void 0:s.isEngageArticleSharing),enableSavedArticlesLink:"1"===(null===(a=window.authentication_config)||void 0===a?void 0:a.articleSavingEnabled),prosperstackClientid:window.authentication_config?window.authentication_config.prosperstackClientid:"",oneTapEnabled:!!window.authentication_config&&"1"===window.authentication_config.oneTapEnabled,useTribMainGoogle:!!window.authentication_config&&"1"===window.authentication_config.useTribMainGoogle,isAdfreeArticle:!!window.authentication_config&&"1"===window.authentication_config.isAdfreeArticle,auth0Domain:window.authentication_config?window.authentication_config.auth0Domain:"",auth0ClientId:window.authentication_config?window.authentication_config.auth0ClientId:"",entitlementsEndpoint:window.authentication_config?window.authentication_config.entitlementsEndpoint:"",entitlementsApiKey:window.authentication_config?window.authentication_config.entitlementsAPIKey:"",linaCheckOnArticles:!!window.authentication_config&&window.authentication_config.linaCheckOnArticles,serverEntitlements:!!window.authentication_config&&window.authentication_config.serverEntitlements,googleClientId:window.authentication_config?window.authentication_config.googleClientId:"",newsletterId:window.authentication_config?window.authentication_config.newsletterId:0,connextStorageKey:"",auth0SubKey:"auth0_sub",auth0Authenticated:"auth0.is.authenticated",secret:window.authentication_config?window.authentication_config.pluginSecret:"",newslettersEnabled:!!window.authentication_config&&"1"===window.authentication_config.newslettersEnabled,bcLowaSegements:!!window.authentication_config.bcLowaSegements&&"1"===window.authentication_config.bcLowaSegements,blueconicEnabled:!!window.authentication_config.blueconicEnabled&&"1"===window.authentication_config.blueconicEnabled,datadogEnabled:!!window.authentication_config.enableDatadog&&"1"===window.authentication_config.enableDatadog}},3738(e){function t(o){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3820(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(6847);const n={...o(2569),...r.A}},3853(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(4062);function n(e,t,o){const n=o.config.validateStatus;o.status&&n&&!n(o.status)?t(new r.A("Request failed with status code "+o.status,[r.A.ERR_BAD_REQUEST,r.A.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o)):e(o)}},3873(e,t,o){"use strict";o.d(t,{A:()=>r});const r=function(e,t){e=e||10;const o=new Array(e),r=new Array(e);let n,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[s];n||(n=c),o[i]=a,r[i]=c;let u=s,d=0;for(;u!==i;)d+=o[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-ns});var r=o(7275),n=o(5267);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function s(e,t,o){if(!t)return e;const s=o&&o.encode||i;r.A.isFunction(o)&&(o={serialize:o});const a=o&&o.serialize;let c;if(c=a?a(t,o):r.A.isURLSearchParams(t)?t.toString():new n.A(t,o).toString(s),c){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+c}return e}},4062(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(7275);function n(e,t,o,r,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),o&&(this.config=o),r&&(this.request=r),n&&(this.response=n,this.status=n.status?n.status:null)}r.A.inherits(n,Error,{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:r.A.toJSONObject(this.config),code:this.code,status:this.status}}});const i=n.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{s[e]={value:e}}),Object.defineProperties(n,s),Object.defineProperty(i,"isAxiosError",{value:!0}),n.from=(e,t,o,s,a,c)=>{const l=Object.create(i);r.A.toFlatObject(e,l,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const u=e&&e.message?e.message:"Error",d=null==t&&e?e.code:t;return n.call(l,u,d,o,s,a),e&&null==l.cause&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",c&&Object.assign(l,c),l};const a=n},4172(e,t,o){"use strict";o.d(t,{E9:()=>i});const r=function*(e,t){let o=e.byteLength;if(!t||o{const s=async function*(e,t){for await(const o of n(e))yield*r(o,t)}(e,t);let a,c=0,l=e=>{a||(a=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await s.next();if(t)return l(),void e.close();let n=r.byteLength;if(o){let e=c+=n;o(e)}e.enqueue(new Uint8Array(r))}catch(e){throw l(e),e}},cancel:e=>(l(e),s.return())},{highWaterMark:2})}},4373(e){e.exports=function(e){var t=Object(e),o=[];for(var r in t)o.unshift(r);return function e(){for(;o.length;)if((r=o.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4467(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(9922);function n(e,t,o){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}},4633(e,t,o){var r=o(5172),n=o(6993),i=o(5869),s=o(887),a=o(1791),c=o(4373),l=o(579);function u(){"use strict";var t=n(),o=t.m(u),d=(Object.getPrototypeOf?Object.getPrototypeOf(o):o.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var m={throw:1,return:2,break:3,continue:3};function h(e){var t,o;return function(r){t||(t={stop:function(){return o(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return o(r.a,m[e],t)},delegateYield:function(e,n,i){return t.resultName=n,o(r.d,l(e),i)},finish:function(e){return o(r.f,e)}},o=function(e,o,n){r.p=t.prev,r.n=t.next;try{return e(o,n)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=u=function(){return{wrap:function(e,o,r,n){return t.w(h(e),o,r,n&&n.reverse())},isGeneratorFunction:p,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:a,async:function(e,t,o,r,n){return(p(t)?s:i)(h(e),t,o,r,n)},keys:c,values:l}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},4662(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(7275),n=o(7110);const i=e=>e instanceof n.A?{...e}:e;function s(e,t){t=t||{};const o={};function n(e,t,o,n){return r.A.isPlainObject(e)&&r.A.isPlainObject(t)?r.A.merge.call({caseless:n},e,t):r.A.isPlainObject(t)?r.A.merge({},t):r.A.isArray(t)?t.slice():t}function s(e,t,o,i){return r.A.isUndefined(t)?r.A.isUndefined(e)?void 0:n(void 0,e,0,i):n(e,t,0,i)}function a(e,t){if(!r.A.isUndefined(t))return n(void 0,t)}function c(e,t){return r.A.isUndefined(t)?r.A.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function l(o,r,i){return i in t?n(o,r):i in e?n(void 0,o):void 0}const u={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:l,headers:(e,t,o)=>s(i(e),i(t),0,!0)};return r.A.forEach(Object.keys({...e,...t}),function(n){const i=u[n]||s,a=i(e[n],t[n],n);r.A.isUndefined(a)&&i!==l||(o[n]=a)}),o}},4756(e,t,o){var r=o(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},4874(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(8458);class n{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const o=this;this.promise.then(e=>{if(!o._listeners)return;let t=o._listeners.length;for(;t-- >0;)o._listeners[t](e);o._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{o.subscribe(e),t=e}).then(e);return r.cancel=function(){o.unsubscribe(t)},r},e(function(e,n,i){o.reason||(o.reason=new r.A(e,n,i),t(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new n(function(t){e=t}),cancel:e}}}const i=n},5172(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},5267(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(665);function n(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function i(e,t){this._pairs=[],e&&(0,r.A)(e,this,t)}const s=i.prototype;s.append=function(e,t){this._pairs.push([e,t])},s.toString=function(e){const t=e?function(t){return e.call(this,t,n)}:n;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const a=i},5537(e,t,o){"use strict";o.d(t,{s:()=>i});class r extends Error{}function n(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(e,t)=>{let o=t.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}(t)}catch(e){return atob(t)}}function i(e,t){if("string"!=typeof e)throw new r("Invalid token specified: must be a string");t||(t={});const o=!0===t.header?0:1,i=e.split(".")[o];if("string"!=typeof i)throw new r(`Invalid token specified: missing part #${o+1}`);let s;try{s=n(i)}catch(e){throw new r(`Invalid token specified: invalid base64 for part #${o+1} (${e.message})`)}try{return JSON.parse(s)}catch(e){throw new r(`Invalid token specified: invalid json for part #${o+1} (${e.message})`)}}r.prototype.name="InvalidTokenError"},5546(e){function t(o,r,n,i){var s=Object.defineProperty;try{s({},"",{})}catch(o){s=0}e.exports=t=function(e,o,r,n){function i(o,r){t(e,o,function(e){return this._invoke(o,r,e)})}o?s?s(e,o,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[o]=r:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(o,r,n,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5579(e,t,o){"use strict";function r(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}o.d(t,{A:()=>r})},5869(e,t,o){var r=o(887);e.exports=function(e,t,o,n,i){var s=r(e,t,o,n,i);return s.next().then(function(e){return e.done?e.value:s.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},5978(e,t,o){"use strict";o.d(t,{A:()=>m});var r=o(7275),n=o(3967),i=o(7352),s=o(8683),a=o(4662),c=o(8262),l=o(3390),u=o(7110);const d=l.A.validators;class p{constructor(e){this.defaults=e||{},this.interceptors={request:new i.A,response:new i.A}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const o=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?o&&!String(e.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+o):e.stack=o}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=(0,a.A)(this.defaults,t);const{transitional:o,paramsSerializer:n,headers:i}=t;void 0!==o&&l.A.assertOptions(o,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1),null!=n&&(r.A.isFunction(n)?t.paramsSerializer={serialize:n}:l.A.assertOptions(n,{encode:d.function,serialize:d.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),l.A.assertOptions(t,{baseUrl:d.spelling("baseURL"),withXsrfToken:d.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=i&&r.A.merge(i.common,i[t.method]);i&&r.A.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=u.A.concat(c,i);const p=[];let m=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(m=m&&e.synchronous,p.unshift(e.fulfilled,e.rejected))});const h=[];let f;this.interceptors.response.forEach(function(e){h.push(e.fulfilled,e.rejected)});let g,y=0;if(!m){const e=[s.A.bind(this),void 0];for(e.unshift(...p),e.push(...h),g=e.length,f=Promise.resolve(t);yd});var r=o(7275),n=o(4062),i=o(807),s=o(665),a=o(1076),c=o(3820),l=o(7887);const u={transitional:i.A,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const o=t.getContentType()||"",n=o.indexOf("application/json")>-1,i=r.A.isObject(e);i&&r.A.isHTMLForm(e)&&(e=new FormData(e));if(r.A.isFormData(e))return n?JSON.stringify((0,l.A)(e)):e;if(r.A.isArrayBuffer(e)||r.A.isBuffer(e)||r.A.isStream(e)||r.A.isFile(e)||r.A.isBlob(e)||r.A.isReadableStream(e))return e;if(r.A.isArrayBufferView(e))return e.buffer;if(r.A.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return(0,a.A)(e,this.formSerializer).toString();if((c=r.A.isFileList(e))||o.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return(0,s.A)(c?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e,t,o){if(r.A.isString(e))try{return(t||JSON.parse)(e),r.A.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(o||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||u.transitional,o=t&&t.forcedJSONParsing,i="json"===this.responseType;if(r.A.isResponse(e)||r.A.isReadableStream(e))return e;if(e&&r.A.isString(e)&&(o&&!this.responseType||i)){const o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(e){if(o){if("SyntaxError"===e.name)throw n.A.from(e,n.A.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:c.A.classes.FormData,Blob:c.A.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};r.A.forEach(["delete","get","head","post","put","patch"],e=>{u.headers[e]={}});const d=u},6263(e,t,o){"use strict";o.d(t,{A:()=>d});var r=o(7275),n=o(3119),i=o(7013),s=o(7960),a=o(4062);const c={http:n.A,xhr:i.A,fetch:{get:s.J}};r.A.forEach(c,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const l=e=>`- ${e}`,u=e=>r.A.isFunction(e)||null===e||!1===e;const d={getAdapter:function(e,t){e=r.A.isArray(e)?e:[e];const{length:o}=e;let n,i;const s={};for(let l=0;l`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=o?e.length>1?"since :\n"+e.map(l).join("\n"):" "+l(e[0]):"as no adapter specified";throw new a.A("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i},adapters:c}},6305(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(3820);const n=r.A.hasStandardBrowserEnv?(i=new URL(r.A.origin),s=r.A.navigator&&/(msie|trident)/i.test(r.A.navigator.userAgent),e=>(e=new URL(e,r.A.origin),i.protocol===e.protocol&&i.host===e.host&&(s||i.port===e.port))):()=>!0;var i,s},6369(e,t,o){"use strict";function r(e){if(Array.isArray(e))return e}o.d(t,{A:()=>r})},6501(e,t,o){"use strict";o.d(t,{A:()=>r});const r="undefined"!=typeof Blob?Blob:null},6562(e,t,o){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}o.d(t,{A:()=>r})},6787(e,t,o){"use strict";function r(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}o.d(t,{A:()=>r})},6847(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(139),n=o(8556),i=o(6501);const s={isBrowser:!0,classes:{URLSearchParams:r.A,FormData:n.A,Blob:i.A},protocols:["http","https","file","blob","url","data"]}},6986(e,t,o){"use strict";function r(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r,n,i,s,a=[],c=!0,l=!1;try{if(i=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;c=!1}else for(;!(c=(r=i.call(o)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){l=!0,n=e}finally{try{if(!c&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(l)throw n}}return a}}o.d(t,{A:()=>r})},6993(e,t,o){var r=o(5546);function n(){var t,o,i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",a=i.toStringTag||"@@toStringTag";function c(e,n,i,s){var a=n&&n.prototype instanceof u?n:u,c=Object.create(a.prototype);return r(c,"_invoke",function(e,r,n){var i,s,a,c=0,u=n||[],d=!1,p={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,o){return i=e,s=0,a=t,p.n=o,l}};function m(e,r){for(s=e,a=r,o=0;!d&&c&&!n&&o3?(n=h===r)&&(a=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=m&&((n=e<2&&mr||r>h)&&(i[4]=e,i[5]=r,p.n=h,s=0))}if(n||e>1)return l;throw d=!0,r}return function(n,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,h),s=u,a=h;(o=s<2?t:a)||!d;){i||(s?s<3?(s>1&&(p.n=-1),m(s,a)):p.n=a:p.v=a);try{if(c=2,i){if(s||(n="next"),o=i[n]){if(!(o=o.call(i,a)))throw TypeError("iterator result is not an object");if(!o.done)return o;a=o.value,s<2&&(s=0)}else 1===s&&(o=i.return)&&o.call(i),s<2&&(a=TypeError("The iterator does not provide a '"+n+"' method"),s=1);i=t}else if((o=(d=p.n<0)?a:e.call(r,p))!==l)break}catch(e){i=t,s=1,a=e}finally{c=1}}return{value:o,done:d}}}(e,i,s),!0),c}var l={};function u(){}function d(){}function p(){}o=Object.getPrototypeOf;var m=[][s]?o(o([][s]())):(r(o={},s,function(){return this}),o),h=p.prototype=u.prototype=Object.create(m);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,r(e,a,"GeneratorFunction")),e.prototype=Object.create(h),e}return d.prototype=p,r(h,"constructor",p),r(p,"constructor",d),d.displayName="GeneratorFunction",r(p,a,"GeneratorFunction"),r(h),r(h,a,"Generator"),r(h,s,function(){return this}),r(h,"toString",function(){return"[object Generator]"}),(e.exports=n=function(){return{w:c,m:f}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},7013(e,t,o){"use strict";o.d(t,{A:()=>m});var r=o(7275),n=o(3853),i=o(807),s=o(4062),a=o(8458),c=o(5579),l=o(3820),u=o(7110),d=o(7837),p=o(8382);const m="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,o){const m=(0,p.A)(e);let h=m.data;const f=u.A.from(m.headers).normalize();let g,y,A,b,S,{responseType:v,onUploadProgress:w,onDownloadProgress:E}=m;function O(){b&&b(),S&&S(),m.cancelToken&&m.cancelToken.unsubscribe(g),m.signal&&m.signal.removeEventListener("abort",g)}let N=new XMLHttpRequest;function R(){if(!N)return;const r=u.A.from("getAllResponseHeaders"in N&&N.getAllResponseHeaders()),i={data:v&&"text"!==v&&"json"!==v?N.response:N.responseText,status:N.status,statusText:N.statusText,headers:r,config:e,request:N};(0,n.A)(function(e){t(e),O()},function(e){o(e),O()},i),N=null}N.open(m.method.toUpperCase(),m.url,!0),N.timeout=m.timeout,"onloadend"in N?N.onloadend=R:N.onreadystatechange=function(){N&&4===N.readyState&&(0!==N.status||N.responseURL&&0===N.responseURL.indexOf("file:"))&&setTimeout(R)},N.onabort=function(){N&&(o(new s.A("Request aborted",s.A.ECONNABORTED,e,N)),N=null)},N.onerror=function(t){const r=t&&t.message?t.message:"Network Error",n=new s.A(r,s.A.ERR_NETWORK,e,N);n.event=t||null,o(n),N=null},N.ontimeout=function(){let t=m.timeout?"timeout of "+m.timeout+"ms exceeded":"timeout exceeded";const r=m.transitional||i.A;m.timeoutErrorMessage&&(t=m.timeoutErrorMessage),o(new s.A(t,r.clarifyTimeoutError?s.A.ETIMEDOUT:s.A.ECONNABORTED,e,N)),N=null},void 0===h&&f.setContentType(null),"setRequestHeader"in N&&r.A.forEach(f.toJSON(),function(e,t){N.setRequestHeader(t,e)}),r.A.isUndefined(m.withCredentials)||(N.withCredentials=!!m.withCredentials),v&&"json"!==v&&(N.responseType=m.responseType),E&&([A,S]=(0,d.C1)(E,!0),N.addEventListener("progress",A)),w&&N.upload&&([y,b]=(0,d.C1)(w),N.upload.addEventListener("progress",y),N.upload.addEventListener("loadend",b)),(m.cancelToken||m.signal)&&(g=t=>{N&&(o(!t||t.type?new a.A(null,e,N):t),N.abort(),N=null)},m.cancelToken&&m.cancelToken.subscribe(g),m.signal&&(m.signal.aborted?g():m.signal.addEventListener("abort",g)));const I=(0,c.A)(m.url);I&&-1===l.A.protocols.indexOf(I)?o(new s.A("Unsupported protocol "+I+":",s.A.ERR_BAD_REQUEST,e)):N.send(h||null)})}},7110(e,t,o){"use strict";o.d(t,{A:()=>u});var r=o(7275),n=o(3325);const i=Symbol("internals");function s(e){return e&&String(e).trim().toLowerCase()}function a(e){return!1===e||null==e?e:r.A.isArray(e)?e.map(a):String(e)}function c(e,t,o,n,i){return r.A.isFunction(n)?n.call(this,t,o):(i&&(t=o),r.A.isString(t)?r.A.isString(n)?-1!==t.indexOf(n):r.A.isRegExp(n)?n.test(t):void 0:void 0)}class l{constructor(e){e&&this.set(e)}set(e,t,o){const i=this;function c(e,t,o){const n=s(t);if(!n)throw new Error("header name must be a non-empty string");const c=r.A.findKey(i,n);(!c||void 0===i[c]||!0===o||void 0===o&&!1!==i[c])&&(i[c||t]=a(e))}const l=(e,t)=>r.A.forEach(e,(e,o)=>c(e,o,t));if(r.A.isPlainObject(e)||e instanceof this.constructor)l(e,t);else if(r.A.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))l((0,n.A)(e),t);else if(r.A.isObject(e)&&r.A.isIterable(e)){let o,n,i={};for(const t of e){if(!r.A.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[n=t[0]]=(o=i[n])?r.A.isArray(o)?[...o,t[1]]:[o,t[1]]:t[1]}l(i,t)}else null!=e&&c(t,e,o);return this}get(e,t){if(e=s(e)){const o=r.A.findKey(this,e);if(o){const e=this[o];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=o.exec(e);)t[r[1]]=r[2];return t}(e);if(r.A.isFunction(t))return t.call(this,e,o);if(r.A.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=s(e)){const o=r.A.findKey(this,e);return!(!o||void 0===this[o]||t&&!c(0,this[o],o,t))}return!1}delete(e,t){const o=this;let n=!1;function i(e){if(e=s(e)){const i=r.A.findKey(o,e);!i||t&&!c(0,o[i],i,t)||(delete o[i],n=!0)}}return r.A.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let o=t.length,r=!1;for(;o--;){const n=t[o];e&&!c(0,this[n],n,e,!0)||(delete this[n],r=!0)}return r}normalize(e){const t=this,o={};return r.A.forEach(this,(n,i)=>{const s=r.A.findKey(o,i);if(s)return t[s]=a(n),void delete t[i];const c=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,o)=>t.toUpperCase()+o)}(i):String(i).trim();c!==i&&delete t[i],t[c]=a(n),o[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return r.A.forEach(this,(o,n)=>{null!=o&&!1!==o&&(t[n]=e&&r.A.isArray(o)?o.join(", "):o)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const o=new this(e);return t.forEach(e=>o.set(e)),o}static accessor(e){const t=(this[i]=this[i]={accessors:{}}).accessors,o=this.prototype;function n(e){const n=s(e);t[n]||(!function(e,t){const o=r.A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+o,{value:function(e,o,n){return this[r].call(this,t,e,o,n)},configurable:!0})})}(o,e),t[n]=!0)}return r.A.isArray(e)?e.forEach(n):n(e),this}}l.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),r.A.reduceDescriptors(l.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[o]=e}}}),r.A.freezeMethods(l);const u=l},7275(e,t,o){"use strict";o.d(t,{A:()=>Z});var r=o(2125);const{toString:n}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:s,toStringTag:a}=Symbol,c=(l=Object.create(null),e=>{const t=n.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const u=e=>(e=e.toLowerCase(),t=>c(t)===e),d=e=>t=>typeof t===e,{isArray:p}=Array,m=d("undefined");function h(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const f=u("ArrayBuffer");const g=d("string"),y=d("function"),A=d("number"),b=e=>null!==e&&"object"==typeof e,S=e=>{if("object"!==c(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||a in e||s in e)},v=u("Date"),w=u("File"),E=u("Blob"),O=u("FileList"),N=u("URLSearchParams"),[R,I,T,C]=["ReadableStream","Request","Response","Headers"].map(u);function P(e,t,{allOwnKeys:o=!1}={}){if(null==e)return;let r,n;if("object"!=typeof e&&(e=[e]),p(e))for(r=0,n=e.length;r0;)if(r=o[n],t===r.toLowerCase())return r;return null}const _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:o.g,D=e=>!m(e)&&e!==_;const k=(B="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>B&&e instanceof B);var B;const M=u("HTMLFormElement"),U=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),H=u("RegExp"),x=(e,t)=>{const o=Object.getOwnPropertyDescriptors(e),r={};P(o,(o,n)=>{let i;!1!==(i=t(o,n,e))&&(r[n]=i||o)}),Object.defineProperties(e,r)};const F=u("AsyncFunction"),G=(j="function"==typeof setImmediate,K=y(_.postMessage),j?setImmediate:K?(X=`axios@${Math.random()}`,W=[],_.addEventListener("message",({source:e,data:t})=>{e===_&&t===X&&W.length&&W.shift()()},!1),e=>{W.push(e),_.postMessage(X,"*")}):e=>setTimeout(e));var j,K,X,W;const z="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_):"undefined"!=typeof process&&process.nextTick||G,Z={isArray:p,isArrayBuffer:f,isBuffer:h,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=c(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:g,isNumber:A,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:S,isEmptyObject:e=>{if(!b(e)||h(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:R,isRequest:I,isResponse:T,isHeaders:C,isUndefined:m,isDate:v,isFile:w,isBlob:E,isRegExp:H,isFunction:y,isStream:e=>b(e)&&y(e.pipe),isURLSearchParams:N,isTypedArray:k,isFileList:O,forEach:P,merge:function e(){const{caseless:t,skipUndefined:o}=D(this)&&this||{},r={},n=(n,i)=>{const s=t&&L(r,i)||i;S(r[s])&&S(n)?r[s]=e(r[s],n):S(n)?r[s]=e({},n):p(n)?r[s]=n.slice():o&&m(n)||(r[s]=n)};for(let e=0,t=arguments.length;e(P(t,(t,n)=>{o&&y(t)?e[n]=(0,r.A)(t,o):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,o,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),o&&Object.assign(e.prototype,o)},toFlatObject:(e,t,o,r)=>{let n,s,a;const c={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)a=n[s],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==o&&i(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:u,endsWith:(e,t,o)=>{e=String(e),(void 0===o||o>e.length)&&(o=e.length),o-=t.length;const r=e.indexOf(t,o);return-1!==r&&r===o},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!A(t))return null;const o=new Array(t);for(;t-- >0;)o[t]=e[t];return o},forEachEntry:(e,t)=>{const o=(e&&e[s]).call(e);let r;for(;(r=o.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{let o;const r=[];for(;null!==(o=e.exec(t));)r.push(o);return r},isHTMLForm:M,hasOwnProperty:U,hasOwnProp:U,reduceDescriptors:x,freezeMethods:e=>{x(e,(t,o)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(o))return!1;const r=e[o];y(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")}))})},toObjectSet:(e,t)=>{const o={},r=e=>{e.forEach(e=>{o[e]=!0})};return p(e)?r(e):r(String(e).split(t)),o},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,o){return t.toUpperCase()+o}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:L,global:_,isContextDefined:D,isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[a]&&e[s])},toJSONObject:e=>{const t=new Array(10),o=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(h(e))return e;if(!("toJSON"in e)){t[r]=e;const n=p(e)?[]:{};return P(e,(e,t)=>{const i=o(e,r+1);!m(i)&&(n[t]=i)}),t[r]=void 0,n}}return e};return o(e,0)},isAsyncFn:F,isThenable:e=>e&&(b(e)||y(e))&&y(e.then)&&y(e.catch),setImmediate:G,asap:z,isIterable:e=>null!=e&&y(e[s])}},7352(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(7275);const n=class{constructor(){this.handlers=[]}use(e,t,o){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){r.A.forEach(this.handlers,function(t){null!==t&&e(t)})}}},7526(e,t){"use strict";t.byteLength=function(e){var t=a(e),o=t[0],r=t[1];return 3*(o+r)/4-r},t.toByteArray=function(e){var t,o,i=a(e),s=i[0],c=i[1],l=new n(function(e,t,o){return 3*(t+o)/4-o}(0,s,c)),u=0,d=c>0?s-4:s;for(o=0;o>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=r[e.charCodeAt(o)]<<2|r[e.charCodeAt(o+1)]>>4,l[u++]=255&t);1===c&&(t=r[e.charCodeAt(o)]<<10|r[e.charCodeAt(o+1)]<<4|r[e.charCodeAt(o+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i=[],s=16383,a=0,c=r-n;ac?c:a+s));1===n?(t=e[r-1],i.push(o[t>>2]+o[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"="));return i.join("")};for(var o=[],r=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)o[s]=i[s],r[i.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");return-1===o&&(o=t),[o,o===t?0:4-o%4]}function c(e){return o[e>>18&63]+o[e>>12&63]+o[e>>6&63]+o[63&e]}function l(e,t,o){for(var r,n=[],i=t;iv});var r=o(7275),n=o(2125),i=o(5978),s=o(4662),a=o(6013),c=o(7887),l=o(8458),u=o(4874),d=o(9575),p=o(9888),m=o(665),h=o(4062),f=o(605),g=o(8562),y=o(7110),A=o(6263),b=o(7693);const S=function e(t){const o=new i.A(t),a=(0,n.A)(i.A.prototype.request,o);return r.A.extend(a,i.A.prototype,o,{allOwnKeys:!0}),r.A.extend(a,o,null,{allOwnKeys:!0}),a.create=function(o){return e((0,s.A)(t,o))},a}(a.A);S.Axios=i.A,S.CanceledError=l.A,S.CancelToken=u.A,S.isCancel=d.A,S.VERSION=p.x,S.toFormData=m.A,S.AxiosError=h.A,S.Cancel=S.CanceledError,S.all=function(e){return Promise.all(e)},S.spread=f.A,S.isAxiosError=g.A,S.mergeConfig=s.A,S.AxiosHeaders=y.A,S.formToJSON=e=>(0,c.A)(r.A.isHTMLForm(e)?new FormData(e):e),S.getAdapter=A.A.getAdapter,S.HttpStatusCode=b.A,S.default=S;const v=S},7693(e,t,o){"use strict";o.d(t,{A:()=>n});const r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(r).forEach(([e,t])=>{r[t]=e});const n=r},7800(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(3145);function n(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?(0,r.A)(e,t):void 0}}},7837(e,t,o){"use strict";o.d(t,{C1:()=>s,Vj:()=>a,mM:()=>c});var r=o(3873),n=o(66),i=o(7275);const s=(e,t,o=3)=>{let i=0;const s=(0,r.A)(50,250);return(0,n.A)(o=>{const r=o.loaded,n=o.lengthComputable?o.total:void 0,a=r-i,c=s(a);i=r;e({loaded:r,total:n,progress:n?r/n:void 0,bytes:a,rate:c||void 0,estimated:c&&n&&r<=n?(n-r)/c:void 0,event:o,lengthComputable:null!=n,[t?"download":"upload"]:!0})},o)},a=(e,t)=>{const o=null!=e;return[r=>t[0]({lengthComputable:o,total:e,loaded:r}),t[1]]},c=e=>(...t)=>i.A.asap(()=>e(...t))},7887(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(7275);const n=function(e){function t(e,o,n,i){let s=e[i++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),c=i>=e.length;if(s=!s&&r.A.isArray(n)?n.length:s,c)return r.A.hasOwnProp(n,s)?n[s]=[n[s],o]:n[s]=o,!a;n[s]&&r.A.isObject(n[s])||(n[s]=[]);return t(e,o,n[s],i)&&r.A.isArray(n[s])&&(n[s]=function(e){const t={},o=Object.keys(e);let r;const n=o.length;let i;for(r=0;r{t(function(e){return r.A.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,o,0)}),o}return null}},7960(e,t,o){"use strict";o.d(t,{J:()=>b});var r=o(3820),n=o(7275),i=o(4062),s=o(2723),a=o(4172),c=o(7110),l=o(7837),u=o(8382),d=o(3853);const{isFunction:p}=n.A,m=(({Request:e,Response:t})=>({Request:e,Response:t}))(n.A.global),{ReadableStream:h,TextEncoder:f}=n.A.global,g=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},y=e=>{e=n.A.merge.call({skipUndefined:!0},m,e);const{fetch:t,Request:o,Response:y}=e,A=t?p(t):"function"==typeof fetch,b=p(o),S=p(y);if(!A)return!1;const v=A&&p(h),w=A&&("function"==typeof f?(E=new f,e=>E.encode(e)):async e=>new Uint8Array(await new o(e).arrayBuffer()));var E;const O=b&&v&&g(()=>{let e=!1;const t=new o(r.A.origin,{body:new h,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),N=S&&v&&g(()=>n.A.isReadableStream(new y("").body)),R={stream:N&&(e=>e.body)};A&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!R[e]&&(R[e]=(t,o)=>{let r=t&&t[e];if(r)return r.call(t);throw new i.A(`Response type '${e}' is not supported`,i.A.ERR_NOT_SUPPORT,o)})});const I=async(e,t)=>{const i=n.A.toFiniteNumber(e.getContentLength());return null==i?(async e=>{if(null==e)return 0;if(n.A.isBlob(e))return e.size;if(n.A.isSpecCompliantForm(e)){const t=new o(r.A.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return n.A.isArrayBufferView(e)||n.A.isArrayBuffer(e)?e.byteLength:(n.A.isURLSearchParams(e)&&(e+=""),n.A.isString(e)?(await w(e)).byteLength:void 0)})(t):i};return async e=>{let{url:r,method:p,data:m,signal:h,cancelToken:f,timeout:g,onDownloadProgress:A,onUploadProgress:S,responseType:v,headers:w,withCredentials:E="same-origin",fetchOptions:T}=(0,u.A)(e),C=t||fetch;v=v?(v+"").toLowerCase():"text";let P=(0,s.A)([h,f&&f.toAbortSignal()],g),L=null;const _=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let D;try{if(S&&O&&"get"!==p&&"head"!==p&&0!==(D=await I(w,m))){let e,t=new o(r,{method:"POST",body:m,duplex:"half"});if(n.A.isFormData(m)&&(e=t.headers.get("content-type"))&&w.setContentType(e),t.body){const[e,o]=(0,l.Vj)(D,(0,l.C1)((0,l.mM)(S)));m=(0,a.E9)(t.body,65536,e,o)}}n.A.isString(E)||(E=E?"include":"omit");const t=b&&"credentials"in o.prototype,i={...T,signal:P,method:p.toUpperCase(),headers:w.normalize().toJSON(),body:m,duplex:"half",credentials:t?E:void 0};L=b&&new o(r,i);let s=await(b?C(L,T):C(r,i));const u=N&&("stream"===v||"response"===v);if(N&&(A||u&&_)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});const t=n.A.toFiniteNumber(s.headers.get("content-length")),[o,r]=A&&(0,l.Vj)(t,(0,l.C1)((0,l.mM)(A),!0))||[];s=new y((0,a.E9)(s.body,65536,o,()=>{r&&r(),_&&_()}),e)}v=v||"text";let h=await R[n.A.findKey(R,v)||"text"](s,e);return!u&&_&&_(),await new Promise((t,o)=>{(0,d.A)(t,o,{data:h,headers:c.A.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:L})})}catch(t){if(_&&_(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new i.A("Network Error",i.A.ERR_NETWORK,e,L),{cause:t.cause||t});throw i.A.from(t,t&&t.code,e,L)}}},A=new Map,b=e=>{let t=e&&e.env||{};const{fetch:o,Request:r,Response:n}=t,i=[r,n,o];let s,a,c=i.length,l=A;for(;c--;)s=i[c],a=l.get(s),void 0===a&&l.set(s,a=c?new Map:y(t)),l=a;return a};b()},8262(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(9034),n=o(6787);function i(e,t,o){let i=!(0,r.A)(t);return e&&(i||0==o)?(0,n.A)(e,t):t}},8287(e,t,o){"use strict";const r=o(7526),n=o(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=c,t.IS=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,o){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,o)}function l(e,t,o){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const o=0|f(e,t);let r=a(o);const n=r.write(e,t);n!==o&&(r=r.slice(0,n));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return m(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return m(e,t,o);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return m(e,t,o);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,o);const n=function(e){if(c.isBuffer(e)){const t=0|h(e.length),o=a(t);return 0===o.length||e.copy(o,0,0,t),o}if(void 0!==e.length)return"number"!=typeof e.length||J(e.length)?a(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),a(e<0?0:0|h(e))}function p(e){const t=e.length<0?0:0|h(e.length),o=a(t);for(let r=0;r=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const o=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===o)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return Z(e).length;default:if(n)return r?-1:z(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,o){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===o||o>this.length)&&(o=this.length),o<=0)return"";if((o>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,o);case"utf8":case"utf-8":return R(this,t,o);case"ascii":return T(this,t,o);case"latin1":case"binary":return C(this,t,o);case"base64":return N(this,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,o);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,o){const r=e[t];e[t]=e[o],e[o]=r}function A(e,t,o,r,n){if(0===e.length)return-1;if("string"==typeof o?(r=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),J(o=+o)&&(o=n?0:e.length-1),o<0&&(o=e.length+o),o>=e.length){if(n)return-1;o=e.length-1}else if(o<0){if(!n)return-1;o=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,o,r,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,o):Uint8Array.prototype.lastIndexOf.call(e,t,o):b(e,[t],o,r,n);throw new TypeError("val must be string, number or Buffer")}function b(e,t,o,r,n){let i,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,o/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(n){let r=-1;for(i=o;ia&&(o=a-c),i=o;i>=0;i--){let o=!0;for(let r=0;rn&&(r=n):r=n;const i=t.length;let s;for(r>i/2&&(r=i/2),s=0;s>8,n=o%256,i.push(n),i.push(r);return i}(t,e.length-o),e,o,r)}function N(e,t,o){return 0===t&&o===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,o))}function R(e,t,o){o=Math.min(e.length,o);const r=[];let n=t;for(;n239?4:t>223?3:t>191?2:1;if(n+s<=o){let o,r,a,c;switch(s){case 1:t<128&&(i=t);break;case 2:o=e[n+1],128==(192&o)&&(c=(31&t)<<6|63&o,c>127&&(i=c));break;case 3:o=e[n+1],r=e[n+2],128==(192&o)&&128==(192&r)&&(c=(15&t)<<12|(63&o)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:o=e[n+1],r=e[n+2],a=e[n+3],128==(192&o)&&128==(192&r)&&128==(192&a)&&(c=(15&t)<<18|(63&o)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),n+=s}return function(e){const t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);let o="",r=0;for(;rr.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,n)):Uint8Array.prototype.set.call(r,t,n);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,n)}n+=t.length}return r},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;to&&(e+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,o,r,n){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===o&&(o=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||o>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=o)return 0;if(r>=n)return-1;if(t>=o)return 1;if(this===e)return 0;let i=(n>>>=0)-(r>>>=0),s=(o>>>=0)-(t>>>=0);const a=Math.min(i,s),l=this.slice(r,n),u=e.slice(t,o);for(let e=0;e>>=0,isFinite(o)?(o>>>=0,void 0===r&&(r="utf8")):(r=o,o=void 0)}const n=this.length-t;if((void 0===o||o>n)&&(o=n),e.length>0&&(o<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return S(this,e,t,o);case"utf8":case"utf-8":return v(this,e,t,o);case"ascii":case"latin1":case"binary":return w(this,e,t,o);case"base64":return E(this,e,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,o);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const I=4096;function T(e,t,o){let r="";o=Math.min(e.length,o);for(let n=t;nr)&&(o=r);let n="";for(let r=t;ro)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,o,r,n,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function k(e,t,o,r,n){j(t,r,n,e,o,7);let i=Number(t&BigInt(4294967295));e[o++]=i,i>>=8,e[o++]=i,i>>=8,e[o++]=i,i>>=8,e[o++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[o++]=s,s>>=8,e[o++]=s,s>>=8,e[o++]=s,s>>=8,e[o++]=s,o}function B(e,t,o,r,n){j(t,r,n,e,o,7);let i=Number(t&BigInt(4294967295));e[o+7]=i,i>>=8,e[o+6]=i,i>>=8,e[o+5]=i,i>>=8,e[o+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[o+3]=s,s>>=8,e[o+2]=s,s>>=8,e[o+1]=s,s>>=8,e[o]=s,o+8}function M(e,t,o,r,n,i){if(o+r>e.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function U(e,t,o,r,i){return t=+t,o>>>=0,i||M(e,0,o,4),n.write(e,t,o,r,23,4),o+4}function H(e,t,o,r,i){return t=+t,o>>>=0,i||M(e,0,o,8),n.write(e,t,o,r,52,8),o+8}c.prototype.slice=function(e,t){const o=this.length;(e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t>>=0,t>>>=0,o||_(e,t,this.length);let r=this[e],n=1,i=0;for(;++i>>=0,t>>>=0,o||_(e,t,this.length);let r=this[e+--t],n=1;for(;t>0&&(n*=256);)r+=this[e+--t]*n;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=$(function(e){K(e>>>=0,"offset");const t=this[e],o=this[e+7];void 0!==t&&void 0!==o||X(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+o*2**24;return BigInt(r)+(BigInt(n)<>>=0,"offset");const t=this[e],o=this[e+7];void 0!==t&&void 0!==o||X(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+o;return(BigInt(r)<>>=0,t>>>=0,o||_(e,t,this.length);let r=this[e],n=1,i=0;for(;++i=n&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,o){e>>>=0,t>>>=0,o||_(e,t,this.length);let r=t,n=1,i=this[e+--r];for(;r>0&&(n*=256);)i+=this[e+--r]*n;return n*=128,i>=n&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||_(e,2,this.length);const o=this[e]|this[e+1]<<8;return 32768&o?4294901760|o:o},c.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);const o=this[e+1]|this[e]<<8;return 32768&o?4294901760|o:o},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=$(function(e){K(e>>>=0,"offset");const t=this[e],o=this[e+7];void 0!==t&&void 0!==o||X(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(o<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],o=this[e+7];void 0!==t&&void 0!==o||X(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||_(e,4,this.length),n.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),n.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),n.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),n.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,o,r){if(e=+e,t>>>=0,o>>>=0,!r){D(this,e,t,o,Math.pow(2,8*o)-1,0)}let n=1,i=0;for(this[t]=255&e;++i>>=0,o>>>=0,!r){D(this,e,t,o,Math.pow(2,8*o)-1,0)}let n=o-1,i=1;for(this[t+n]=255&e;--n>=0&&(i*=256);)this[t+n]=e/i&255;return t+o},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,o){return e=+e,t>>>=0,o||D(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,o){return e=+e,t>>>=0,o||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,o){return e=+e,t>>>=0,o||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,o){return e=+e,t>>>=0,o||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,o){return e=+e,t>>>=0,o||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=$(function(e,t=0){return k(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=$(function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,o,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*o-1);D(this,e,t,o,r-1,-r)}let n=0,i=1,s=0;for(this[t]=255&e;++n>>=0,!r){const r=Math.pow(2,8*o-1);D(this,e,t,o,r-1,-r)}let n=o-1,i=1,s=0;for(this[t+n]=255&e;--n>=0&&(i*=256);)e<0&&0===s&&0!==this[t+n+1]&&(s=1),this[t+n]=(e/i|0)-s&255;return t+o},c.prototype.writeInt8=function(e,t,o){return e=+e,t>>>=0,o||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,o){return e=+e,t>>>=0,o||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,o){return e=+e,t>>>=0,o||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,o){return e=+e,t>>>=0,o||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,o){return e=+e,t>>>=0,o||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=$(function(e,t=0){return k(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=$(function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,o){return U(this,e,t,!0,o)},c.prototype.writeFloatBE=function(e,t,o){return U(this,e,t,!1,o)},c.prototype.writeDoubleLE=function(e,t,o){return H(this,e,t,!0,o)},c.prototype.writeDoubleBE=function(e,t,o){return H(this,e,t,!1,o)},c.prototype.copy=function(e,t,o,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(o||(o=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,o=void 0===o?this.length:o>>>0,e||(e=0),"number"==typeof e)for(n=t;n=r+4;o-=3)t=`_${e.slice(o-3,o)}${t}`;return`${e.slice(0,o)}${t}`}function j(e,t,o,r,n,i){if(e>o||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${o}${r}`,new x.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,o){K(t,"offset"),void 0!==e[t]&&void 0!==e[t+o]||X(t,e.length-(o+1))}(r,n,i)}function K(e,t){if("number"!=typeof e)throw new x.ERR_INVALID_ARG_TYPE(t,"number",e)}function X(e,t,o){if(Math.floor(e)!==e)throw K(e,o),new x.ERR_OUT_OF_RANGE(o||"offset","an integer",e);if(t<0)throw new x.ERR_BUFFER_OUT_OF_BOUNDS;throw new x.ERR_OUT_OF_RANGE(o||"offset",`>= ${o?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),F("ERR_OUT_OF_RANGE",function(e,t,o){let r=`The value of "${e}" is out of range.`,n=o;return Number.isInteger(o)&&Math.abs(o)>2**32?n=G(String(o)):"bigint"==typeof o&&(n=String(o),(o>BigInt(2)**BigInt(32)||o<-(BigInt(2)**BigInt(32)))&&(n=G(n)),n+="n"),r+=` It must be ${t}. Received ${n}`,r},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function z(e,t){let o;t=t||1/0;const r=e.length;let n=null;const i=[];for(let s=0;s55295&&o<57344){if(!n){if(o>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}n=o;continue}if(o<56320){(t-=3)>-1&&i.push(239,191,189),n=o;continue}o=65536+(n-55296<<10|o-56320)}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,o<128){if((t-=1)<0)break;i.push(o)}else if(o<2048){if((t-=2)<0)break;i.push(o>>6|192,63&o|128)}else if(o<65536){if((t-=3)<0)break;i.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return i}function Z(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,o,r){let n;for(n=0;n=t.length||n>=e.length);++n)t[n+o]=e[n];return n}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const q=function(){const e="0123456789abcdef",t=new Array(256);for(let o=0;o<16;++o){const r=16*o;for(let n=0;n<16;++n)t[r+n]=e[o]+e[n]}return t}();function $(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},8382(e,t,o){"use strict";o.d(t,{A:()=>d});var r=o(3820),n=o(7275),i=o(6305),s=o(9887),a=o(8262),c=o(4662),l=o(7110),u=o(3967);const d=e=>{const t=(0,c.A)({},e);let{data:o,withXSRFToken:d,xsrfHeaderName:p,xsrfCookieName:m,headers:h,auth:f}=t;if(t.headers=h=l.A.from(h),t.url=(0,u.A)((0,a.A)(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&h.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),n.A.isFormData(o))if(r.A.hasStandardBrowserEnv||r.A.hasStandardBrowserWebWorkerEnv)h.setContentType(void 0);else if(n.A.isFunction(o.getHeaders)){const e=o.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,o])=>{t.includes(e.toLowerCase())&&h.set(e,o)})}if(r.A.hasStandardBrowserEnv&&(d&&n.A.isFunction(d)&&(d=d(t)),d||!1!==d&&(0,i.A)(t.url))){const e=p&&m&&s.A.read(m);e&&h.set(p,e)}return t}},8458(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(4062);function n(e,t,o){r.A.call(this,null==e?"canceled":e,r.A.ERR_CANCELED,t,o),this.name="CanceledError"}o(7275).A.inherits(n,r.A,{__CANCEL__:!0});const i=n},8556(e,t,o){"use strict";o.d(t,{A:()=>r});const r="undefined"!=typeof FormData?FormData:null},8562(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(7275);function n(e){return r.A.isObject(e)&&!0===e.isAxiosError}},8683(e,t,o){"use strict";o.d(t,{A:()=>u});var r=o(9152),n=o(9575),i=o(6013),s=o(8458),a=o(7110),c=o(6263);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s.A(null,e)}function u(e){l(e),e.headers=a.A.from(e.headers),e.data=r.A.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return c.A.getAdapter(e.adapter||i.A.adapter,e)(e).then(function(t){return l(e),t.data=r.A.call(e,e.transformResponse,t),t.headers=a.A.from(t.headers),t},function(t){return(0,n.A)(t)||(l(e),t&&t.response&&(t.response.data=r.A.call(e,e.transformResponse,t.response),t.response.headers=a.A.from(t.response.headers))),Promise.reject(t)})}},9034(e,t,o){"use strict";function r(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}o.d(t,{A:()=>r})},9152(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(7275),n=o(6013),i=o(7110);function s(e,t){const o=this||n.A,s=t||o,a=i.A.from(s.headers);let c=s.data;return r.A.forEach(e,function(e){c=e.call(o,c,a.normalize(),t?t.status:void 0)}),a.normalize(),c}},9532(e,t,o){"use strict";o.d(t,{L4:()=>g,aG:()=>A,gQ:()=>y,mP:()=>S,oL:()=>m});var r,n,i=o(4467),s=(o(2284),o(467)),a=(o(3453),o(4756)),c=o(5537),l=(o(893),o(7536),o(3153)),u=o(3612);o(2936);function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function p(e){for(var t=1;t2&&(clearInterval(t),e(!0));case 1:case"end":return o.stop()}},o)})),50)}})},g=function(){var e=(0,s.A)(a.mark(function e(t){var o,r,n;return a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,f();case 1:return l.A.log("Utils getDataLayerObject: looking for this dataLayer object ",t),window.dataLayer=window.dataLayer||[],o="",l.A.log("Utils getDataLayerObject: here is dataLayer length ",window.dataLayer.length),r=function(e){return l.A.log("Utils dataLayerLoop: look for this element ",e),e[t]?(l.A.log("Utils dataLayerLoop: found ",e[t]),o=e[t],e[t]):(l.A.log("Utils dataLayerLoop: dataLayer search ",!1),!1)},n=window.dataLayer.some(r),e.abrupt("return",n?o:"");case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=(0,s.A)(a.mark(function e(){var t,o,r=arguments;return a.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=1,g(t);case 1:return o=e.sent,l.A.log("utils | pageType: page type is ",o),e.abrupt("return",o);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),A=function(){var e=(0,s.A)(a.mark(function e(){return a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,t){return u.A.entitlementsEnabled?void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.entitlementsReady?(l.A.log("Entitlements already present:",window.MNGAuthentication.entitlementsReady),void e(window.MNGAuthentication.entitlementsReady)):void window.addEventListener("entitlementsReady",function(o){try{var r=o.detail||{};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.entitlementsReady=r,l.A.log("Received entitlementsReady event:",r),e(r)}catch(e){l.A.error("Error handling entitlementsReady event:",e),t(e)}},{once:!0}):(l.A.log("Entitlements disabled in settings."),void e(!1))}));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),b=function(e){l.A.log("starting simpleEmailValidation");if(!e)return{valid:!1,message:"Please enter an email."};if(!/^(([^<>()[\]\\.,;:\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.test(e))return{valid:!1,message:"Please enter a valid email."};var t=e.match(/\.([^.\n\s]*)$/)[1].toUpperCase(),o=["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(t);return l.A.log("simpleEmailValidation: ","TLD search ".concat(o)),!1===o?{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=b;window.validatePhoneNumber=function(e){return/^[0-9]([0-9 -])*[0-9]$/.test(e)};var S=function(e){var t=e.text,o=e.boldText,r=void 0!==o&&o,n=e.title,i=e.legal,s=void 0===i?"":i,a=e.id,c=e.fullScreen,l=e.appendToId,u=e.closeConfirm,d=e.buttonText,p=e.autoDismiss,m=void 0===p||p,h=e.embedded,f=void 0!==h&&h,g=e.loginModal,y=void 0!==g&&g,A=e.homePage,b=e.canonicalURL,S=document.querySelector("#".concat(a)),w="";if(y){var E=encodeURIComponent(b);w='
\n
\n
\n
\n
\n
\n

').concat(n||"",'

\n
\n
\n\t\t\t\t\t\t\t\t\t').concat(t||"",'\n
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t').concat(s||"",'\n
\n
\n
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n \t
\n \t
\n \t
\n \t
\n \t
")}else w='
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t

').concat(n||"",'

\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t').concat(t||"",'\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t').concat(s||"","\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t").concat(u?'
\n\t\t\t\t\t\t\t\t
"):"","\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
");(S||((S=document.createElement("div")).id=a,S.classList="digisubs-mainModalWrapper"),S.innerHTML="",S.innerHTML=w,y)||S.querySelector("#digisubs-modal-button-container").addEventListener("click",function(){S.remove()});u&&S.querySelector(".digisubs-optional-button-container").addEventListener("click",function(){S.remove()});if(l){var O=document.querySelector("#".concat(l));if(O&&f){var N=document.getElementById("userProfileEntriesContainer").querySelectorAll(".user-profile-item-row");if(N.length>=2)N[1].parentNode.insertBefore(S,N[1].nextSibling)}else O.append(S)}var R=S.querySelector("#modalContainer");if(R&&R.addEventListener("click",v),m){var I=Math.min(Math.max(55*t.length,2500),7e3);I=I>2800?I:3500,setTimeout(function(){var e;(e=S).classList.add("fade-out"),setTimeout(function(){e.remove()},200)},I)}return S};function v(e){var t=document.getElementById("modalContainer"),o=document.getElementById("modal-wrap");t&&o&&e.target===t&&(t.classList.add("fade-out"),setTimeout(function(){t.style.display="none";var o=document.elementFromPoint(e.clientX,e.clientY);if(t.style.display="",t.remove(),o&&"A"===o.tagName)try{var r=new URL(o.href,window.location.origin);"http:"!==r.protocol&&"https:"!==r.protocol||window.location.assign(r.href)}catch(e){console.warn("URL no vĂ¡lida:",e)}},200))}var w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return new Promise(function(t,o){var r={sspw:null,sophiClient:null,engagePaywall:null,engageStatus:null},n=function(){var n=(0,s.A)(a.mark(function n(){var i,s,c,u,d,m,h,f,b,S,v;return a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,"1"!==(null===(i=window.sophi_config)||void 0===i?void 0:i.enableSophiSSPW)){n.next=1;break}if(!document.getElementById("server-paywall")){n.next=1;break}return r.sspw=!0,n.abrupt("return",t({paywall:!0,details:p({},r)}));case 1:return n.next=2,y();case 2:return c=n.sent,n.next=3,g("Paywall_Level");case 3:if(u=n.sent,"article"===c&&"free"!==u){n.next=4;break}return n.abrupt("return",t({paywall:!1,details:"article"!==c?"Page type is not an article":"Free article"}));case 4:return n.next=5,A();case 5:if(!(d=n.sent)||!d.isEntitled){n.next=6;break}return n.abrupt("return",t({paywall:!1,details:"Entitled User"}));case 6:if("premium"!==u){n.next=7;break}return n.abrupt("return",t({paywall:!0,details:"Premium article"}));case 7:if(m=null===(s=window.ConnextUtils)||void 0===s?void 0:s.runningSophi,l.A.log("checkPaywallStatus - Sophi is running: ",m),!m){n.next=8;break}window.ConnextUtils.connextAlreadyRan&&window.sophiWallConfig&&!window.sophiWallConfig.error&&"paywall"===window.sophiWallConfig.wallType?(r.sophiClient=!0,r.engageStatus=!0,r.engagePaywall=!0):window.addEventListener("onPaywallShown",function(){return"paywall"===window.sophiWallConfig.wallType&&(r.sophiClient=!0),t({paywall:!0,details:p({},r)})},{once:!0}),n.next=12;break;case 8:if(m){n.next=12;break}return h=window.ConnextUtils.connextReady("onPaywallShown",!1),f=new Promise(function(t,o){return setTimeout(function(){return o(new Error("No Engage paywall within 10 seconds, resolving as no paywall."))},e)}),n.prev=9,n.next=10,Promise.race([h,f]);case 10:!0===(b=n.sent)?(r.engagePaywall=!0,r.engageStatus="Engage paywall detected"):(r.engagePaywall=!1,r.engageStatus="Engage response: ".concat(b)),n.next=12;break;case 11:n.prev=11,S=n.catch(9),r.engagePaywall=!1,r.engageStatus="Engage response: ".concat(S);case 12:return n.abrupt("return",t({paywall:Object.values(r).some(function(e){return e}),details:p({},r)}));case 13:n.prev=13,v=n.catch(0),o(v);case 14:case"end":return n.stop()}},n,null,[[0,13],[9,11]])}));return function(){return n.apply(this,arguments)}}();n()})};"undefined"!=typeof window&&(window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.checkPaywallStatus=w)},9575(e,t,o){"use strict";function r(e){return!(!e||!e.__CANCEL__)}o.d(t,{A:()=>r})},9887(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(7275);const n=o(3820).A.hasStandardBrowserEnv?{write(e,t,o,n,i,s,a){if("undefined"==typeof document)return;const c=[`${e}=${encodeURIComponent(t)}`];r.A.isNumber(o)&&c.push(`expires=${new Date(o).toUTCString()}`),r.A.isString(n)&&c.push(`path=${n}`),r.A.isString(i)&&c.push(`domain=${i}`),!0===s&&c.push("secure"),r.A.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}}},9888(e,t,o){"use strict";o.d(t,{x:()=>r});const r="1.13.2"},9922(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(2284),n=o(2327);function i(e){var t=(0,n.A)(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e,t,r,n=o(467),i=o(4756),s=o(3153),a=o(3612),c=o(9532),l=o(2450),u={},d=window.location.hostname,p=l[d=d.replace("www.","").replace("preprod.","").replace("develop.","").replace("local","com")],m="https://ui-static-assets-prod.s3.us-west-1.amazonaws.com/img/",h='An error has occurred. Please try again.
\n\t
\n\tIf the issue persists,\n\tplease contact customer service.',f=function(){var e=(0,n.A)(i.mark(function e(){var t,o,r,n,a;return i.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s.A.log("Article Saving | init"),e.next=1,(0,c.gQ)();case 1:if("page"!==(o=e.sent)){e.next=2;break}return s.A.log("Article Saving | page type is not home, section, article, exit"),e.abrupt("return");case 2:return e.next=3,(0,c.aG)();case 3:if((r=e.sent).token&&r.adfree){e.next=4;break}return s.A.log("Article Saving | not a premium subscriber, exit"),e.abrupt("return");case 4:return e.next=5,v(r);case 5:if(null!==(u=JSON.parse(sessionStorage.getItem("articleIds")))&&null!==(t=u)&&void 0!==t&&t.timestamp){e.next=7;break}return u={},e.next=6,g();case 6:e.next=8;break;case 7:w(u.timestamp);case 8:if(s.A.log("Article Saving | page type is ",o),"article"===o){e.next=9;break}return s.A.log("Article Saving | page type is not article, exit"),e.abrupt("return");case 9:return s.A.log("Article Saving | page type is ",o),n=N,e.next=10,A();case 10:n(e.sent),e.next=12;break;case 11:throw e.prev=11,a=e.catch(0),s.A.error("Error during Article Saving initialization:",a),new Error("Article Saving initialization failed");case 12:case"end":return e.stop()}},e,null,[[0,11]])}));return function(){return e.apply(this,arguments)}}(),g=function(){var t=(0,n.A)(i.mark(function t(){var o,r,n,l,u;return i.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s.A.log("Article Saving | session data expired or missing - fetch articles ",e),e){t.next=1;break}return s.A.log("Article Saving | unable to get decodedUser - exit fetch"),t.abrupt("return");case 1:return t.next=2,(0,c.L4)("Publisher Domain");case 2:return o=t.sent,r=encodeURIComponent(e.uuid),n="".concat(a.A.entitlementsEndpoint,"savedArticles/?authId=").concat(r,"&domain=").concat(o),t.next=3,fetch(n,{method:"GET",headers:{"X-Api-Key":a.A.entitlementsApiKey}});case 3:if(200!==(l=t.sent).status){t.next=5;break}return t.next=4,l.json();case 4:u=t.sent,y(u.articles),t.next=6;break;case 5:s.A.log("Article Saving | error in fetch");case 6:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),y=function(e){var t=new Date;u.timestamp=t.getTime(),u.articles=e,s.A.log("Article Saving | set session data ",u),sessionStorage.setItem("articleIds",JSON.stringify(u))},A=function(){var e=(0,n.A)(i.mark(function e(){var o,n,a,l,d,p,m;return i.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s.A.log("Article Saving | create button"),o=document.querySelector(".articleSave"),n=!0,null===o&&(n=!1,o=document.createElement("span")),a=document.querySelector("#articleSaveContainer"),l=document.querySelector("#stickyArticleSaveContainer"),a?a.replaceChildren():(a=document.createElement("div")).setAttribute("id","articleSaveContainer"),l?l.replaceChildren():(l=document.createElement("div")).setAttribute("id","stickyArticleSaveContainer"),e.next=1,(0,c.L4)("Content ID");case 1:return t=e.sent,r=u.articles.find(function(e){return e.contentId===t}),s.A.log("Article Saving | check if article already saved ",u,r),r?(o.className="icon-bookmark2 removeSavedArticleButton articleSave",o.setAttribute("aria-pressed","true"),o.setAttribute("data-mng-click","remove-article-saved"),o.setAttribute("data-mng-category","saved-articles"),o.setAttribute("data-mng-action","remove-article-saved"),o.setAttribute("aria-label","This article is saved. Click again to remove from your saved list"),o.setAttribute("title","This article is saved. Click again to remove from your saved list."),d="deleteArticle"):(o.className="icon-bookmark3 saveArticleButton articleSave",o.setAttribute("aria-pressed","false"),o.setAttribute("data-mng-click","save-article"),o.setAttribute("data-mng-category","saved-articles"),o.setAttribute("data-mng-action","save-article"),o.setAttribute("aria-label","Save this article to read later."),o.setAttribute("title","Save this article to read later."),d="saveArticle"),o.setAttribute("tabindex","0"),n||(p=document.querySelector(".article-bottom-share .sd-sharing-enabled"),m=document.querySelector(".article-share .sd-sharing-enabled"),a.append(o.cloneNode(!0)),l.append(o),p&&p.insertBefore(a,p.firstChild),m&&m.insertBefore(l,m.firstChild)),e.abrupt("return",d);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),b=function(){var o=(0,n.A)(i.mark(function o(){var r,n,l,d,f,g,S,v,w;return i.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(s.A.log("Article Saving | begin article save"),r=Array.from(document.querySelectorAll(".saveArticleButton")),e){o.next=1;break}return s.A.log("Article Saving | unable to get decodedUser - exit save"),(0,c.mP)({title:"Please try logging in again.",text:"",id:"saveArticleModal",fullScreen:!1,appendToId:"page",closeConfirm:!0,buttonText:"OK!"}),o.abrupt("return",!1);case 1:if(!u){o.next=2;break}if(10!==u.articles.length){o.next=2;break}return s.A.log("Article Saving | reached max articles"),(0,c.mP)({title:"Out of Space",text:'You are out of space in your Saved Articles List.
\n\t\t\t\t
\n\t\t\t\tPlease remove articles from your list on the Reader Dashboard.',id:"saveArticleModal",fullScreen:!1,appendToId:"page",closeConfirm:!0,buttonText:"I'll do this later.",autoDismiss:!1,closeButtonIcon:!0}),o.abrupt("return",!1);case 2:return r.forEach(function(e){e.removeEventListener("click",b)}),E(".icon-bookmark3.saveArticleButton"),n="".concat(a.A.entitlementsEndpoint,"savedArticles"),o.next=3,(0,c.L4)("Publisher Domain");case 3:return l=o.sent,d={userId:e.uuid,publication:l,contentId:t},s.A.log("Article saving | attempting save the request is",d,n),o.prev=4,o.next=5,fetch(n,{method:"POST",headers:{"X-Api-Key":a.A.entitlementsApiKey},body:JSON.stringify(d)});case 5:return f=o.sent,o.next=6,f.json();case 6:if(g=o.sent,200!==f.status){o.next=8;break}return u&&y(g.upDatedArticleList),o.next=7,A();case 7:return S=o.sent,Array.from(document.querySelectorAll(".articleSave")).forEach(function(e){O(e,"article-save-click-success")}),N(S),console.log("Updated Saved Article list",g.upDatedArticleList.length),10===g.upDatedArticleList.length?(0,c.mP)({title:"This article has been saved.",text:'This article has been saved.
\n\t\t\t\t\t
\n\t\t\t\t\tYou are now out of space in your\n\t\t\t\t\tSaved Articles list.\n\t\t\t\t\tYou will need to remove items from the list before you can add more.
\n\t\t\t\t\t
\n\t\t\t\t\tYou can save even more articles on our mobile app.\n\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t'.concat(p.apps[0].play_store?"\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t"):"","\n\t\t\t\t\t\t\t").concat(p.apps[0].app_store?"\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t"):"","\n\t\t\t\t\t\t
\n\t\t\t\t\t
"),id:"saveArticleModal",fullScreen:!1,appendToId:"page",closeConfirm:!0,buttonText:"I'll do this later.",autoDismiss:!1,closeButtonIcon:!0}):(0,c.mP)({title:"",text:"This article has been saved.",boldText:!0,id:"saveArticleModal",fullScreen:!1,appendToId:"page",closeConfirm:!0,autoDismiss:!0,buttonText:"OK!"}),s.A.log("Article saving | Success! The response is",g),o.abrupt("return",g);case 8:if(422!==f.status){o.next=10;break}return s.A.log("Article Saving |reached max articles"),(0,c.mP)({title:"Out of Space",text:'You are out of space in your Saved Articles List.
\n\t\t\t\t\t
\n\t\t\t\t\tPlease remove articles from your list on the Reader Dashboard.
\n\t\t\t\t\t
\n\t\t\t\t\tYou can save even more articles on our mobile app.\n\t\t\t\t
\n\t\t\t\t\t'.concat(p.apps[0].play_store?"\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t"):"","\n\t\t\t\t\t\t\t").concat(p.apps[0].app_store?"\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t"):"","\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t"),id:"saveArticleModal",fullScreen:!1,appendToId:"page",closeConfirm:!0,buttonText:"I'll do this later.",autoDismiss:!1,closeButtonIcon:!0}),r.forEach(function(e){e.addEventListener("click",b)}),o.next=9,A();case 9:return v=o.sent,Array.from(document.querySelectorAll(".articleSave")).forEach(function(e){O(e,"article-save-422")}),N(v),o.abrupt("return",g);case 10:if(f.ok){o.next=11;break}return(0,c.mP)({title:"",text:h,id:"saveArticleModal",fullScreen:!1,appendToId:"page"}),Array.from(document.querySelectorAll(".articleSave")).forEach(function(e){e.setAttribute("data-mng-click","article-save-fail")}),r.forEach(function(e){e.addEventListener("click",b)}),s.A.log("Article saving | the response is",f.statusText),o.abrupt("return",g);case 11:return o.abrupt("return",!1);case 12:return o.prev=12,w=o.catch(4),(0,c.mP)({title:"",text:h,id:"saveArticleModal",fullScreen:!1,appendToId:"page"}),s.A.log("Article saving | save endpoint Failure: ",w),o.abrupt("return",new Error("Article saving | save article endpoint failure"));case 13:case"end":return o.stop()}},o,null,[[4,12]])}));return function(){return o.apply(this,arguments)}}(),S=function(){var t=(0,n.A)(i.mark(function t(){var o,n,l,d,p,m,f,g;return i.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s.A.log("Article Saving | begin article delete"),document.querySelectorAll(".removeSavedArticleButton").forEach(function(e){e.removeEventListener("click",S)}),e){t.next=1;break}return s.A.log("Article Saving | unable to get decodedUser - exit save"),(0,c.mP)({title:"",text:"Please log in again.",boldText:!0,id:"saveArticleModal",fullScreen:!1,appendToId:"page"}),t.abrupt("return",!1);case 1:return o="".concat(a.A.entitlementsEndpoint,"savedArticles"),E(".icon-bookmark2.removeSavedArticleButton"),t.next=2,(0,c.L4)("Publisher Domain");case 2:return n=t.sent,l={userId:e.uuid,savedDate:r.savedDate,publication:n},s.A.log("Article saving | attempting delete the request is",l,o),t.prev=3,t.next=4,fetch(o,{method:"DELETE",headers:{"X-Api-Key":a.A.entitlementsApiKey},body:JSON.stringify(l)});case 4:return d=t.sent,t.next=5,d.json();case 5:if(p=t.sent,200!==d.status){t.next=7;break}return s.A.log("Article saving | delete success",p),u&&y(p.upDatedArticleList),m=N,t.next=6,A();case 6:return m(t.sent),(0,c.mP)({title:"",text:"This article has been removed from your Saved Articles list.",boldText:!0,id:"saveArticleModal",fullScreen:!1,appendToId:"page",closeConfirm:!0,buttonText:"OK!",autoDismiss:!0}),t.abrupt("return",p);case 7:if(d.ok){t.next=9;break}return(0,c.mP)({title:"",text:h,id:"saveArticleModal",fullScreen:!1,appendToId:"page"}),s.A.log("Article saving | delete ERROR the response is",d.statusText),f=N,t.next=8,A();case 8:return f(t.sent),t.abrupt("return",p);case 9:return t.abrupt("return",!1);case 10:return t.prev=10,g=t.catch(3),(0,c.mP)({title:"",text:h,id:"saveArticleModal",fullScreen:!1,appendToId:"page"}),s.A.log("Article saving | deleteArticle endpoint Failure: ",g),t.abrupt("return",new Error("Article saving | delete article endpoint failure"));case 11:case"end":return t.stop()}},t,null,[[3,10]])}));return function(){return t.apply(this,arguments)}}(),v=function(){var t=(0,n.A)(i.mark(function t(o){return i.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,(0,c.oL)(o.token);case 1:e=t.sent;case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),w=function(e){s.A.log("Article Saving | checking time stamp, ",e);var t=(new Date-new Date(e))/6e4;s.A.log("Article Saving | time difference is ",t),t>3&&(s.A.log("Article Saving | session outdated, fetching"),g())},E=function(e){Array.from(document.querySelectorAll(e)).forEach(function(e){var t=document.createElement("div");t.classList.add("spring-spinner"),t.id="articleSaveSpinner",t.innerHTML='\n\t\t
\n\t\t
\n\t\t
\n\t\t
\n\t\t
\n\t\t
',e.parentNode.replaceChild(t,e)})},O=function(e,t){e.setAttribute("data-mng-click",t),e.click(),e.removeAttribute("data-mng-click")},N=function(e){Array.from(document.querySelectorAll(".articleSave")).forEach(function(t){"saveArticle"===e?t.addEventListener("click",b):"deleteArticle"===e&&t.addEventListener("click",S)})};document.addEventListener("DOMContentLoaded",f)})()})(); //# sourceMappingURL=mng-digisubs.articleSave.bundle.js.map;