PageSourceSearch

https://www.citizensvoice.com/wp-content/plugins/mng-digisubs/stat…/mng-digisubs.apple.bundle.js?m=1790890291g

js citizensvoice.com collected 2026-10-02 04:09:36 UTC 323,900 bytes, 3 lines download raw bytes

vendor: 2,472 bytes, lines 1-2
1/*! For license information please see mng-digisubs.apple.bundle.js.LICENSE.txt */
2(()=>{var e={5172(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},6993(e,t,n){var r=n(5546);function o(){var t,n,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 r(c,"_invoke",function(e,r,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,n){return i=e,a=0,s=t,p.n=n,l}};function m(e,r){for(a=e,s=r,n=0;!d&&c&&!o&&n<u.length;n++){var o,i=u[n],m=p.p,h=i[2];e>3?(o=h===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=m&&((o=e<2&&m<i[1])?(a=0,p.v=r,p.n=i[1]):m<h&&(o=e<3||i[0]>r||r>h)&&(i[4]=e,i[5]=r,p.n=h,a=0))}if(o||e>1)return l;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,h),a=u,s=h;(n=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"),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=t}else if((n=(d=p.n<0)?s:e.call(r,p))!==l)break}catch(e){i=t,a=1,s=e}finally{c=1}}return{value:n,done:d}}}(e,i,a),!0),c}var l={};function u(){}function d(){}function p(){}n=Object.getPrototypeOf;var m=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),h=p.prototype=u.prototype=Object.create(m);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,r(e,s,"GeneratorFunction")),e.prototype=Object.create(h),e}return d.prototype=p,r(h,"constructor",p),r(p,"constructor",d),d.displayName="GeneratorFunction",r(p,s,"GeneratorFunction"),r(h),r(h,s,"Generator"),r(h,a,function(){return this}),r(h,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:c,m:f}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},5869(e,t,n){var r=n(887);e.exports=function(e,t,n,o,i){var a=r(e,t,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},887(e,t,n){var r=n(6993),o=n(1791);e.exports=function(e,t,n,i,a){return new o(r().w(e,t,n,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports}
vendor: 6,038 bytes, line 2
2,1791(e,t,n){var r=n(5172),o=n(5546);e.exports=function e(t,n){function i(e,o,a,s){try{var c=t[e](o),l=c.value;return l instanceof r?n.resolve(l.v).then(function(e){i("next",e,a,s)},function(e){i("throw",e,a,s)}):n.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,r){function o(){return new n(function(t,n){i(e,r,t,n)})}return a=a?a.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},5546(e){function t(n,r,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}e.exports=t=function(e,n,r,o){function i(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4373(e){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.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},4633(e,t,n){var r=n(5172),o=n(6993),i=n(5869),a=n(887),s=n(1791),c=n(4373),l=n(579);function u(){"use strict";var t=o(),n=t.m(u),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__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,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,m[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,l(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}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,n,r,o){return t.w(h(e),n,r,o&&o.reverse())},isGeneratorFunction:p,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,o){return(p(t)?a:i)(h(e),t,n,r,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},579(e,t,n){var r=n(3738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},3738(e){function t(n){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(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4756(e,t,n){var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},3612(e,t,n){"use strict";var r,o,i,a,s;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,enableReaderDashboardv2:!!window.authentication_config&&"1"===window.authentication_config.enableReaderDashboardv2,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:"",enableUpgradeSubscription:!!window.authentication_config&&"1"===window.authentication_config.enableUpgradeSubscription,oneTapEnabled:!!window.authentication_config&&"1"===window.authentication_config.oneTapEnabled,forceLogoutOnExpiredIdToken:!!window.authentication_config&&"1"===window.authentication_config.forceLogoutOnExpiredIdToken,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.linaC
2heckOnArticles,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,updatePaymentEnabled:!!window.authentication_config&&"1"===window.authentication_config.enableUpdatePayment,enableSocialSigninModal:!!window.authentication_config&&"1"===window.authentication_config.enableSocialSigninModal,enableSocialAllPages:!!window.authentication_config&&"1"===window.authentication_config.enableSocialAllPages,enableSocialHomepage:!!window.authentication_config&&"1"===window.authentication_config.enableSocialHomepage,enableSocialArticle:!!window.authentication_config&&"1"===window.authentication_config.enableSocialArticle,enableSocialSection:!!window.authentication_config&&"1"===window.authentication_config.enableSocialSection};n.d(t,["A",0,c])}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],i=t[r++],a=0===i?{enumerable:!0,value:t[r++]}:{enumerable:!0,get:i};n.o(e,o)||Object.defineProperty(e,o,a)}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{"use strict";var e={};function t(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function r(e){return function(){var n=this,r=arguments;return new Promise(function(o,i){var a=e.apply(n,r);function s(e){t(a,o,i,s,c,"next",e)}function c(e){t(a,o,i,s,c,"throw",e)}s(void 0)})}}n.r(e),n.d(e,{hasBrowserEnv:()=>Pl,hasStandardBrowserEnv:()=>Cl,hasStandardBrowserWebWorkerEnv:()=>Nl,navigator:()=>Ol,origin:()=>Il});var o=n(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 n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;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,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}
2finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}class u extends Error{}function d(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 n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return atob(t)}}function p(e,t){this.v=e,this.k=t}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function f(e){return new p(e,0)}function y(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(e,t){return e.get(h(e,t))}function v(e,t,n){y(e,t),t.set(e,n)}function w(e,t,n){return e.set(h(e,t),n),n}function A(e,t){y(e,t),t.add(e)}function b(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e){return function(){return new P(e.apply(this,arguments))}}function P(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,s=a instanceof p;Promise.resolve(s?a.v:a).then(function(n){if(s){var c="return"===t&&a.k?t:"next";if(!a.k||n.done)return r(c,n);n=e[c](n).value}o(!!i.done,n)},function(e){r("throw",e)})}catch(e){o(2,e)}}function o(e,o){2===e?t.reject(o):t.resolve({value:o,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise(function(i,a){var s={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,o))})}
vendor: 24,461 bytes, line 2
2,"function"!=typeof e.return&&(this.return=void 0)}u.prototype.name="InvalidTokenError","function"==typeof SuppressedError&&SuppressedError,P.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},P.prototype.next=function(e){return this._invoke("next",e)},P.prototype.throw=function(e){return this._invoke("throw",e)},P.prototype.return=function(e){return this._invoke("return",e)};Error;var O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},C={},N={};Object.defineProperty(N,"__esModule",{value:!0});var I=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,n){var r=e.locked.get(t);void 0===r?void 0===n?e.locked.set(t,[]):e.locked.set(t,[n]):void 0!==n&&(r.unshift(n),e.locked.set(t,r))},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise(function(n,r){e.isLocked(t)?e.addToLocked(t,n):(e.addToLocked(t),n())})},this.unlock=function(t){var n=e.locked.get(t);if(void 0!==n&&0!==n.length){var r=n.pop();e.locked.set(t,n),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}();N.default=function(){return I.getInstance()};var D=O&&O.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((r=r.apply(e,t||[])).next())})},k=O&&O.__generator||function(e,t){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]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},L=O;Object.defineProperty(C,"__esModule",{value:!0});var M=N,x="browser-tabs-lock-key",U={key:function(e){return D(L,void 0,void 0,function(){return k(this,function(e){throw new Error("Unsupported")})})},getItem:function(e){return D(L,void 0,void 0,function(){return k(this,function(e){throw new Error("Unsupported")})})},clear:function(){return D(L,void 0,void 0,function(){return k(this,function(e){return[2,window.localStorage.clear()]})})},removeItem:function(e){return D(L,void 0,void 0,function(){return k(this,function(e){throw new Error("Unsupported")})})},setItem:function(e,t){return D(L,void 0,void 0,function(){return k(this,function(e){throw new Error("Unsupported")})})},keySync:function(e){return window.localStorage.key(e)},getItemSync:function(e){return window.localStorage.getItem(e)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(e){return window.localStorage.removeItem(e)},setItemSync:function(e,t){return window.localStorage.setItem(e,t)}};function B(e){return new Promise(function(t){return setTimeout(t,e)})}function H(e){for(var t="",n=0;n<e;n++)t+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"[Math.floor(61*Math.random())];return t}var F=function(){function e(t){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+H(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=t,void 0===e.waiters&&(e.waiters=[])}return e.prototype.acquireLock=function(t,n){return void 0===n&&(n=5e3),D(this,void 0,void 0,function(){var r,o,i,a,s,c,l;return k(this,function(u){switch(u.label){case 0:r=Date.now()+H(4),o=Date.now()+n,i=x+"-"+t,a=void 0===this.storageHandler?U:this.storageHandler,u.label=1;case 1:return Date.now()<o?[4,B(30)]:[3,8];case 2:return u.sent(),null!==a.getItemSync(i)?[3,5]:(s=this.id+"-"+t+"-"+r,[4,B(Math.floor(25*Math.random()))]);case 3:return u.sent(),a.setItemSync(i,JSON.stringify({id:this.id,iat:r,timeoutKey:s,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,B(30)];case 4:return u.sent(),null!==(c=a.getItemSync(i))&&(l=JSON.parse(c)).id===this.id&&l.iat===r?(this.acquiredIatSet.add(r),this.refreshLockWhileAcquired(i,r),[2,!0]):[3,7];case 5:return e.lockCorrector(void 0===this.storageHandler?U:this.storageHandler),[4,this.waitForSomethingToChange(o)];case 6:u.sent(),u.label=7;case 7:return r=Date.now()+H(4),[3,1];case 8:return[2,!1]}})})},e.prototype.refreshLockWhileAcquired=function(e,t){return D(this,void 0,void 0,function(){var n=this;return k(this,function(r){return setTimeout(function(){return D(n,void 0,void 0,function(){var n,r,o;return k(this,function(i){switch(i.label){case 0:return[4,M.default().lock(t)];case 1:return i.sent(),this.acquiredIatSet.has(t)?(n=void 0===this.storageHandler?U:this.storageHandler,null===(r=n.getItemSync(e))?(M.default().unlock(t),[2]):((o=JSON.parse(r)).timeRefreshed=Date.now(),n.setItemSync(e,JSON.stringify(o)),M.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):(M.default().unlock(t),[2])}})})},1e3),[2]})})},e.prototype.waitForSomethingToChange=function(t){return D(this,void 0,void 0,function(){return k(this,function(n){switch(n.label){case 0:return[4,new Promise(function(n){var r=!1,o=Date.now(),i=!1;function a(){if(i||(window.removeEventListener("storage",a),e.removeFromWaiting(a),clearTimeout(s),i=!0),!r){r=!0;var t=50-(Date.now()-o);t>0?setTimeout(n,t):n(null)}}window.addEventListener("storage",a),e.addToWaiting(a);var s=setTimeout(a,Math.max(0,t-Date.now()))})];case 1:return n.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 D(this,void 0,void 0,function(){return k(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 D(this,void 0,void 0,function(){var n,r,o,i;return k(this,function(a){switch(a.label){case 0:return n=void 0===this.storageHandler?U:this.storageHandler,r=x+"-"+t,null===(o=n.getItemSync(r))?[2]:(i=JSON.parse(o)).id!==this.id?[3,2]:[4,M.default().lock(i.iat)];case 1:a.sent(),this.acquiredIatSet.delete(i.iat),n.removeItemSync(r),M.default().unlock(i.iat),e.notifyWaiters(),a.label=2;case 2:return[2]}})})},e.lockCorrector=function(t){for(var n=Date.now()-5e3,r=t,o=[],i=0;;){var a=r.keySync(i);if(null===a)break;o.push(a),i++}for(var s=!1,c=0;c<o.length;c++){var l=o[c];if(l.includes(x)){var u=r.getItemSync(l);if(null!==u){var d=JSON.parse(u);(void 0===d.timeRefreshed&&d.timeAcquired<n||void 0!==d.timeRefreshed&&d.timeRefreshed<n)&&(r.removeItemSync(l),s=!0)}}}s&&e.notifyWaiters()},e.waiters=void 0,e}();C.default=F;new TextEncoder,new TextDecoder;let j;if(Uint8Array.prototype.toBase64)j=e=>(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e.toBase64({alphabet:"base64url",omitPadding:!0}));else{const e=32768;j=t=>{t instanceof ArrayBuffer&&(t=new Uint8Array(t));const n=[];for(let r=0;r<t.byteLength;r+=e)n.push(String.fromCharCode.apply(null,t.subarray(r,r+e)));return btoa(n.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}}Error;Error;var G=O&&O.__assign||function(){return G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},G.apply(this,arguments)};var W;!function(e){e.Code="code",e.ConnectCode="connect_code"}(W||(W={}));var K;var J;!function(e){e.Bearer="Bearer",e.DPoP="DPoP"}(J||(J={}));Error;var X,Y;let q;if("undefined"==typeof navigator||null===(X=navigator.userAgent)||void 0===X||null===(Y=X.startsWith)||void 0===Y||!Y.call(X,"Mozilla/5.0 ")){const e="v3.8.6";q="".concat("oauth4webapi","/").concat(e)}function z(e,t){if(null==e)return!1;try{return e instanceof t||Object.getPrototypeOf(e)[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}catch(e){return!1}}const V="ERR_INVALID_ARG_VALUE",Z="ERR_INVALID_ARG_TYPE";function Q(e,t,n){const r=new TypeError(e,{cause:n});return Object.assign(r,{code:t}),r}const ee=Symbol(),te=Symbol(),ne=Symbol(),re=Symbol(),oe=Symbol(),ie=Symbol(),ae=new TextEncoder,se=new TextDecoder;function ce(e){return"string"==typeof e?ae.encode(e):se.decode(e)}let le,ue;if(Uint8Array.prototype.toBase64)le=e=>(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e.toBase64({alphabet:"base64url",omitPadding:!0}));else{const e=32768;le=t=>{t instanceof ArrayBuffer&&(t=new Uint8Array(t));const n=[];for(let r=0;r<t.byteLength;r+=e)n.push(String.fromCharCode.apply(null,t.subarray(r,r+e)));return btoa(n.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}}function de(e){return"string"==typeof e?ue(e):le(e)}ue=Uint8Array.fromBase64?e=>{try{return Uint8Array.fromBase64(e,{alphabet:"base64url"})}catch(e){throw Q("The input to be decoded is not correctly encoded.",V,e)}}:e=>{try{const t=atob(e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}catch(e){throw Q("The input to be decoded is not correctly encoded.",V,e)}};class pe extends Error{constructor(e,t){var n;super(e,t),b(this,"code",void 0),this.name=this.constructor.name,this.code=ft,null===(n=Error.captureStackTrace)||void 0===n||n.call(Error,this,this.constructor)}}class me extends Error{constructor(e,t){var n;super(e,t),b(this,"code",void 0),this.name=this.constructor.name,null!=t&&t.code&&(this.code=null==t?void 0:t.code),null===(n=Error.captureStackTrace)||void 0===n||n.call(Error,this,this.constructor)}}function he(e,t,n){return new me(e,{code:t,cause:n})}function fe(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function ye(e){z(e,Headers)&&(e=Object.fromEntries(e.entries()));const t=new Headers(null!=e?e:{});if(q&&!t.has("user-agent")&&t.set("user-agent",q),t.has("authorization"))throw Q('"options.headers" must not include the "authorization" header name',V);return t}function ge(e,t){if(void 0!==t){if("function"==typeof t&&(t=t(e.href)),!(t instanceof AbortSignal))throw Q('"options.signal" must return or be an instance of AbortSignal',Z);return t}}function ve(e){return e.includes("//")?e.replace("//","/"):e}function we(e,t,n,r,o){try{if("number"!=typeof e||!Number.isFinite(e))throw Q("".concat(n," must be a number"),Z,o);if(e>0)return;if(t){if(0!==e)throw Q("".concat(n," must be a non-negative number"),V,o);return}throw Q("".concat(n," must be a positive number"),V,o)}catch(e){if(r)throw he(e.message,r,o);throw e}}function Ae(e,t,n,r){try{if("string"!=typeof e)throw Q("".concat(t," must be a string"),Z,r);if(0===e.length)throw Q("".concat(t," must not be empty"),V,r)}catch(e){if(n)throw he(e.message,n,r);throw e}}function be(e){!function(e,t){if(qe(e)!==t)throw function(e){let t='"response" content-type must be ';for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(r.length>2){const e=r.pop();t+="".concat(r.join(", "),", or ").concat(e)}else 2===r.length?t+="".concat(r[0]," or ").concat(r[1]):t+=r[0];return he(t,At,e)}(e,t)}(e,"application/json")}function Se(){return de(crypto.getRandomValues(new Uint8Array(32)))}function Ee(e){switch(e.algorithm.name){case"RSA-PSS":return function(e){switch(e.algorithm.hash.name){case"SHA-256":return"PS256";case"SHA-384":return"PS384";case"SHA-512":return"PS512";default:throw new pe("unsupported RsaHashedKeyAlgorithm hash name",{cause:e})}}(e);case"RSASSA-PKCS1-v1_5":return function(e){switch(e.algorithm.hash.name){case"SHA-256":return"RS256";case"SHA-384":return"RS384";case"SHA-512":return"RS512";default:throw new pe("unsupported RsaHashedKeyAlgorithm hash name",{cause:e})}}(e);case"ECDSA":return function(e){switch(e.algorithm.namedCurve){case"P-256":return"ES256";case"P-384":return"ES384";case"P-521":return"ES512";default:throw new pe("unsupported EcKeyAlgorithm namedCurve",{cause:e})}}(e);case"Ed25519":case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":return e.algorithm.name;case"EdDSA":return"Ed25519";default:throw new pe("unsupported CryptoKey algorithm name",{cause:e})}}function _e(e){const t=null==e?void 0:e[te];return"number"==typeof t&&Number.isFinite(t)?t:0}function Re(e){const t=null==e?void 0:e[ne];return"number"==typeof t&&Number.isFinite(t)&&-1!==Math.sign(t)?t:30}function Te(){return Math.floor(Date.now()/1e3)}function Pe(e){if("object"!=typeof e||null===e)throw Q('"as" must be an object',Z);Ae(e.issuer,'"as.issuer"')}function Oe(e){if("object"!=typeof e||null===e)throw Q('"client" must be an object',Z);Ae(e.client_id,'"client.client_id"')}function Ce(e){return Ae(e,'"clientSecret"'),(t,n,r,o)=>{r.set("client_id",n.client_id),r.set("client_secret",e)}}function Ne(e,t){const n=e instanceof CryptoKey?{key:i}:(null==i?void 0:i.key)instanceof CryptoKey?(void 0!==i.kid&&Ae(i.kid,'"kid"'),{key:i.key,kid:i.kid}):{},r=n.key,o=n.kid;var i;return function(e,t){if(function(e,t){if(!(e instanceof CryptoKey))throw Q("".concat(t," must be a CryptoKey"),Z)}(e,t),"private"!==e.type)throw Q("".concat(t," must be a private CryptoKey"),V)}(r,'"clientPrivateKey.key"'),async(e,n,i,a)=>{var s;const c={alg:Ee(r),kid:o},l=function(e,t){const n=Te()+_e(t);return{jti:Se(),aud:e.issuer,exp:n+60,iat:n,nbf:n,iss:t.client_id,sub:t.client_id}}(e,n);null==t||null===t[oe]||void 0===s||s.call(t,c,l),i.set("client_id",n.client_id),i.set("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),i.set("client_assertion",await async function(e,t,n){if(!n.usages.includes("sign"))throw Q('CryptoKey instances used for signing assertions must include "sign" in their "usages"',V);const r="".concat(de(ce(JSON.stringify(e))),".").concat(de(ce(JSON.stringify(t)))),o=de(await crypto.subtle.sign(function(e){switch(e.algorithm.name){case"ECDSA":return{name:e.algorithm.name,hash:Dt(e)};case"RSA-PSS":switch(It(e),e.algorithm.hash.name){case"SHA-256":case"SHA-384":case"SHA-512":return{name:e.algorithm.name,saltLength:parseInt(e.algorithm.hash.name.slice(-3),10)>>3};default:throw new pe("unsupported RSA-PSS hash name",{cause:e})}case"RSASSA-PKCS1-v1_5":return It(e),e.algorithm.name;case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":case"Ed25519":return e.algorithm.name}throw new pe("unsupported CryptoKey algorithm name",{cause:e})}(n),n,ce(r)));return"".concat(r,".").concat(o)}(c,l,r))}}const Ie=URL.parse?(e,t)=>URL.parse(e,t):(e,t)=>{try{return new URL(e,t)}catch(e){return null}};function De(e,t){if(t&&"https:"!==e.protocol)throw he("only requests to HTTPS are allowed",St,e);if("https:"!==e.protocol&&"http:"!==e.protocol)throw he("only HTTP and HTTPS requests are allowed",Et,e)}function ke(e,t,n,r){let o;if("string"!=typeof e||!(o=Ie(e)))throw he("authorization server metadata does not contain a valid ".concat(n?'"as.mtls_endpoint_aliases.'.concat(t,'"'):'"as.'.concat(t,'"')),void 0===e?Pt:Ot,{attribute:n?"mtls_endpoint_aliases.".concat(t):t});return De(o,r),o}function Le(e,t,n,r){return n&&e.mtls_endpoint_aliases&&t in e.mtls_endpoint_aliases?ke(e.mtls_endpoint_aliases[t],t,n,r):ke(e[t],t,n,r)}class Me extends Error{constructor(e,t){var n;super(e,t),b(this,"cause",void 0),b(this,"code",void 0),b(this,"error",void 0),b(this,"status",void 0),b(this,"error_description",void 0),b(this,"response",void 0),this.name=this.constructor.name,this.code=ht,this.cause=t.cause,this.error=t.cause.error,this.status=t.response.status,this.error_description=t.cause.error_description,Object.defineProperty(this,"response",{enumerable:!1,value:t.response}),null===(n=Error.captureStackTrace)||void 0===n||n.call(Error,this,this.constructor)}}class xe extends Error{constructor(e,t){var n,r;super(e,t),b(this,"cause",void 0),b(this,"code",void 0),b(this,"error",void 0),b(this,"error_description",void 0),this.name=this.constructor.name,this.code=yt,this.cause=t.cause,this.error=t.cause.get("error"),this.error_description=null!==(n=t.cause.get("error_description"))&&void 0!==n?n:void 0,null===(r=Error.captureStackTrace)||void 0===r||r.call(Error,this,this.constructor)}}class Ue extends Error{constructor(e,t){var n;super(e,t),b(this,"cause",void 0),b(this,"code",void 0),b(this,"response",void 0),b(this,"status",void 0),this.name=this.constructor.name,this.code=mt,this.cause=t.cause,this.status=t.response.status,this.response=t.response,Object.defineProperty(this,"response",{enumerable:!1}),null===(n=Error.captureStackTrace)||void 0===n||n.call(Error,this,this.constructor)}}const Be="[a-zA-Z0-9!#$%&\\'\\*\\+\\-\\.\\^_`\\|~]+",He="("+Be+')\\s*=\\s*"((?:[^"\\\\]|\\\\[\\s\\S])*)"',Fe="("+Be+")\\s*=\\s*("+Be+")",je=new RegExp("^[,\\s]*("+Be+")"),Ge=new RegExp("^[,\\s]*"+He+"[,\\s]*(.*)"),We=new RegExp("^[,\\s]*"+Fe+"[,\\s]*(.*)"),Ke=new RegExp("^([a-zA-Z0-9\\-\\._\\~\\+\\/]+={0,2})(?:$|[,\\s])(.*)");async function Je(e,t,n){if(e.status!==t){let t;var r;if(nt(e),t=await async function(e){if(e.status>399&&e.status<500){Nt(e),be(e);try{const t=await e.clone().json();if(fe(t)&&"string"==typeof t.error&&t.error.length)return t}catch(e){}}}(e))throw await(null===(r=e.body)||void 0===r?void 0:r.cancel()),new Me("server responded with an error in the response body",{cause:t,response:e});throw he('"response" is not a conform '.concat(n," response (unexpected HTTP status code)"),bt,e)}}function Xe(e){if(!st.has(e))throw Q('"options.DPoP" is not a valid DPoPHandle',V)}const Ye=Symbol();function qe(e){var t;return null===(t=e.headers.get("content-type"))||void 0===t?void 0:t.split(";")[0]}async function ze(e,t,n,r,o){if(Pe(e),Oe(t),!z(r,Response))throw Q('"response" must be an instance of Response',Z);if(nt(r),200!==r.status)throw he('"response" is not a conform UserInfo Endpoint response (unexpected HTTP status code)',bt,r);let i;if(Nt(r),"application/jwt"===qe(r)){const n=await kt(await r.text(),Lt.bind(void 0,t.userinfo_signed_response_alg,e.userinfo_signing_alg_values_supported,void 0),_e(t),Re(t),null==o?void 0:o[ie]).then(rt.bind(void 0,t.client_id)).then(it.bind(void 0,e)),i=n.claims,a=n.jwt;Qe.set(r,a)}else{if(t.userinfo_signed_response_alg)throw he("JWT UserInfo Response expected",gt,r);await Bt(r)}if(Ae(i.sub,'"response" body "sub" property',wt,{body:i}),n===Ye);else if(Ae(n,'"expectedSubject"'),i.sub!==n)throw he('unexpected "response" body "sub" property value',Tt,{expected:n,body:i,attribute:"sub"});return i}async function Ve(e,t,n,r,o,i,a){return await n(e,t,o,i),i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),((null==a?void 0:a[re])||fetch)(r.href,{body:o,headers:Object.fromEntries(i.entries()),method:"POST",redirect:"manual",signal:ge(r,null==a?void 0:a.signal)})}async function Ze(e,t,n,r,o,i){var a;const s=Le(e,"token_endpoint",t.use_mtls_endpoint_aliases,!0!==(null==i?void 0:i[ee]));o.set("grant_type",r);const c=ye(null==i?void 0:i.headers);c.set("accept","application/json"),void 0!==(null==i?void 0:i.DPoP)&&(Xe(i.DPoP),await i.DPoP.addProof(s,c,"POST"));const l=await Ve(e,t,n,s,o,c,i);return null==i||null===(a=i.DPoP)||void 0===a||a.cacheNonce(l,s),l}const $e=new WeakMap,Qe=new WeakMap;function et(e){if(!e.id_token)return;const t=$e.get(e);if(!t)throw Q('"ref" was already garbage collected or did not resolve from the proper sources',V);return t}async function tt(e,t,n,r,o,i){if(Pe(e),Oe(t),!z(n,Response))throw Q('"response" must be an instance of Response',Z);await Je(n,200,"Token Endpoint"),Nt(n);const a=await Bt(n);if(Ae(a.access_token,'"response" body "access_token" property',wt,{body:a}),Ae(a.token_type,'"response" body "token_type" property',wt,{body:a}),a.token_type=a.token_type.toLowerCase(),void 0!==a.expires_in){let e="number"!=typeof a.expires_in?parseFloat(a.expires_in):a.expires_in;we(e,!0,'"response" body "expires_in" property',wt,{body:a}),a.expires_in=e}if(void 0!==a.refresh_token&&Ae(a.refresh_token,'"response" body "refresh_token" property',wt,{body:a}),void 0!==a.scope&&"string"!=typeof a.scope)throw he('"response" body "scope" property must be a string',wt,{body:a});if(void 0!==a.id_token){Ae(a.id_token,'"response" body "id_token" property',wt,{body:a});const i=["aud","exp","iat","iss","sub"];!0===t.require_auth_time&&i.push("auth_time"),void 0!==t.default_max_age&&(we(t.default_max_age,!0,'"client.default_max_age"'),i.push("auth_time")),null!=r&&r.length&&i.push(...r);const s=await kt(a.id_token,Lt.bind(void 0,t.id_token_signed_response_alg,e.id_token_signing_alg_values_supported,"RS256"),_e(t),Re(t),o).then(ut.bind(void 0,i)).then(at.bind(void 0,e)).then(ot.bind(void 0,t.client_id)),c=s.claims,l=s.jwt;if(Array.isArray(c.aud)&&1!==c.aud.length){if(void 0===c.azp)throw he('ID Token "aud" (audience) claim includes additional untrusted audiences',Rt,{claims:c,claim:"aud"});if(c.azp!==t.client_id)throw he('unexpected ID Token "azp" (authorized party) claim value',Rt,{expected:t.client_id,claims:c,claim:"azp"})}void 0!==c.auth_time&&we(c.auth_time,!0,'ID Token "auth_time" (authentication time)',wt,{claims:c}),Qe.set(n,l),$e.set(a,c)}if(void 0!==(null==i?void 0:i[a.token_type]))i[a.token_type](n,a);else if("dpop"!==a.token_type&&"bearer"!==a.token_type)throw new pe("unsupported `token_type` value",{cause:{body:a}});return a}function nt(e){let t;if(t=function(e){if(!z(e,Response))throw Q('"response" must be an instance of Response',Z);const t=e.headers.get("www-authenticate");if(null===t)return;const n=[];let r=t;for(;r;){var o;let t=r.match(je);const c=null===(o=t)||void 0===o?void 0:o[1].toLowerCase();if(!c)return;const l=r.substring(t[0].length);if(l&&!l.match(/^[\s,]/))return;const u=l.match(/^\s+(.*)$/),d=!!u;r=u?u[1]:void 0;const p={};let m;if(d)for(;r;){let n,o;if(t=r.match(Ge)){var i=R(t,4);if(n=i[1],o=i[2],r=i[3],o.includes("\\"))try{o=JSON.parse('"'.concat(o,'"'))}catch(e){}p[n.toLowerCase()]=o}else{if(!(t=r.match(We))){if(t=r.match(Ke)){if(Object.keys(p).length)break;var a=R(t,3);m=a[1],r=a[2];break}return}var s=R(t,4);n=s[1],o=s[2],r=s[3],p[n.toLowerCase()]=o}}else r=l||void 0;const h={scheme:c,parameters:p};m&&(h.token68=m),n.push(h)}return n.length?n:void 0}(e))throw new Ue("server responded with a challenge in the WWW-Authenticate HTTP Header",{cause:t,response:e})}function rt(e,t){return void 0!==t.claims.aud?ot(e,t):t}function ot(e,t){if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e))throw he('unexpected JWT "aud" (audience) claim value',Rt,{expected:e,claims:t.claims,claim:"aud"})}else if(t.claims.aud!==e)throw he('unexpected JWT "aud" (audience) claim value',Rt,{expected:e,claims:t.claims,claim:"aud"});return t}function it(e,t){return void 0!==t.claims.iss?at(e,t):t}function at(e,t){var n,r;const o=null!==(n=null===(r=e[Ft])||void 0===r?void 0:r.call(e,t))&&void 0!==n?n:e.issuer;if(t.claims.iss!==o)throw he('unexpected JWT "iss" (issuer) claim value',Rt,{expected:o,claims:t.claims,claim:"iss"});return t}const st=new WeakSet,ct=Symbol(),lt={aud:"audience",c_hash:"code hash",client_id:"client id",exp:"expiration time",iat:"issued at",iss:"issuer",jti:"jwt id",nonce:"nonce",s_hash:"state hash",sub:"subject",ath:"access token hash",htm:"http method",htu:"http uri",cnf:"confirmation",auth_time:"authentication time"};function ut(e,t){for(const n of e)if(void 0===t.claims[n])throw he('JWT "'.concat(n,'" (').concat(lt[n],") claim missing"),wt,{claims:t.claims});return t}const dt=Symbol(),pt=Symbol();const mt="OAUTH_WWW_AUTHENTICATE_CHALLENGE",ht="OAUTH_RESPONSE_BODY_ERROR",ft="OAUTH_UNSUPPORTED_OPERATION",yt="OAUTH_AUTHORIZATION_RESPONSE_E
2RROR",gt="OAUTH_JWT_USERINFO_EXPECTED",vt="OAUTH_PARSE_ERROR",wt="OAUTH_INVALID_RESPONSE",At="OAUTH_RESPONSE_IS_NOT_JSON",bt="OAUTH_RESPONSE_IS_NOT_CONFORM",St="OAUTH_HTTP_REQUEST_FORBIDDEN",Et="OAUTH_REQUEST_PROTOCOL_FORBIDDEN",_t="OAUTH_JWT_TIMESTAMP_CHECK_FAILED",Rt="OAUTH_JWT_CLAIM_COMPARISON_FAILED",Tt="OAUTH_JSON_ATTRIBUTE_COMPARISON_FAILED",Pt="OAUTH_MISSING_SERVER_METADATA",Ot="OAUTH_INVALID_SERVER_METADATA";async function Ct(e){if(!z(e,Response))throw Q('"response" must be an instance of Response',Z);await Je(e,200,"Revocation Endpoint")}function Nt(e){if(e.bodyUsed)throw Q('"response" body has been used already',V)}function It(e){const t=e.algorithm;if("number"!=typeof t.modulusLength||t.modulusLength<2048)throw new pe("unsupported ".concat(t.name," modulusLength"),{cause:e})}function Dt(e){switch(e.algorithm.namedCurve){case"P-256":return"SHA-256";case"P-384":return"SHA-384";case"P-521":return"SHA-512";default:throw new pe("unsupported ECDSA namedCurve",{cause:e})}}async function kt(e,t,n,r,o){let i,a,s=e.split("."),c=s[0],l=s[1],u=s.length;if(5===u){if(void 0===o)throw new pe("JWE decryption is not configured",{cause:e});var d=(e=await o(e)).split(".");c=d[0],l=d[1],u=d.length}if(3!==u)throw he("Invalid JWT",wt,e);try{i=JSON.parse(ce(de(c)))}catch(e){throw he("failed to parse JWT Header body as base64url encoded JSON",vt,e)}if(!fe(i))throw he("JWT Header must be a top level object",wt,e);if(t(i),void 0!==i.crit)throw new pe('no JWT "crit" header parameter extensions are supported',{cause:{header:i}});try{a=JSON.parse(ce(de(l)))}catch(e){throw he("failed to parse JWT Payload body as base64url encoded JSON",vt,e)}if(!fe(a))throw he("JWT Payload must be a top level object",wt,e);const p=Te()+n;if(void 0!==a.exp){if("number"!=typeof a.exp)throw he('unexpected JWT "exp" (expiration time) claim type',wt,{claims:a});if(a.exp<=p-r)throw he('unexpected JWT "exp" (expiration time) claim value, expiration is past current timestamp',_t,{claims:a,now:p,tolerance:r,claim:"exp"})}if(void 0!==a.iat&&"number"!=typeof a.iat)throw he('unexpected JWT "iat" (issued at) claim type',wt,{claims:a});if(void 0!==a.iss&&"string"!=typeof a.iss)throw he('unexpected JWT "iss" (issuer) claim type',wt,{claims:a});if(void 0!==a.nbf){if("number"!=typeof a.nbf)throw he('unexpected JWT "nbf" (not before) claim type',wt,{claims:a});if(a.nbf>p+r)throw he('unexpected JWT "nbf" (not before) claim value',_t,{claims:a,now:p,tolerance:r,claim:"nbf"})}if(void 0!==a.aud&&"string"!=typeof a.aud&&!Array.isArray(a.aud))throw he('unexpected JWT "aud" (audience) claim type',wt,{claims:a});return{header:i,claims:a,jwt:e}}function Lt(e,t,n,r){if(void 0===e)if(Array.isArray(t)){if(!t.includes(r.alg))throw he('unexpected JWT "alg" header parameter',wt,{header:r,expected:t,reason:"authorization server metadata"})}else{if(void 0===n)throw he('missing client or server configuration to verify used JWT "alg" header parameter',void 0,{client:e,issuer:t,fallback:n});if("string"==typeof n?r.alg!==n:"function"==typeof n?!n(r.alg):!n.includes(r.alg))throw he('unexpected JWT "alg" header parameter',wt,{header:r,expected:n,reason:"default value"})}else if("string"==typeof e?r.alg!==e:!e.includes(r.alg))throw he('unexpected JWT "alg" header parameter',wt,{header:r,expected:e,reason:"client configuration"})}function Mt(e,t){const n=e.getAll(t),r=n[0];if(n.length>1)throw he('"'.concat(t,'" parameter must be provided only once'),wt);return r}const xt=Symbol(),Ut=Symbol();async function Bt(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:be;try{t=await e.json()}catch(t){throw n(e),he('failed to parse "response" body as JSON',vt,t)}if(!fe(t))throw he('"response" body must be a top level object',wt,{body:t});return t}const Ht=Symbol(),Ft=Symbol(),jt=new TextEncoder,Gt=new TextDecoder,Wt=new TextDecoder("utf-8",{fatal:!0});function Kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce((e,t)=>e+t.length,0),o=new Uint8Array(r);let i=0;for(const e of t)o.set(e,i),i+=e.length;return o}function Jt(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(r>127)throw new TypeError("non-ASCII string encountered in encode()");t[n]=r}return t}const Xt=function(e){return new TypeError("CryptoKey does not support this operation, its ".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"algorithm.name"," must be ").concat(e))};const Yt=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(r.length>2){const t=r.pop();e+="one of type ".concat(r.join(", "),", or ").concat(t,".")}else 2===r.length?e+="one of type ".concat(r[0]," or ").concat(r[1],"."):e+="of type ".concat(r[0],".");if(null==t)e+=" Received ".concat(t);else if("function"==typeof t&&t.name)e+=" Received function ".concat(t.name);else if("object"==typeof t&&null!=t){var i;null!==(i=t.constructor)&&void 0!==i&&i.name&&(e+=" Received an instance of ".concat(t.constructor.name))}return e}("Key for the ".concat(e," algorithm must be "),t,...r)};
vendor: 55,360 bytes, line 2
2class qt extends Error{constructor(e,t){var n;super(e,t),b(this,"code","ERR_JOSE_GENERIC"),this.name=this.constructor.name,null===(n=Error.captureStackTrace)||void 0===n||n.call(Error,this,this.constructor)}}b(qt,"code","ERR_JOSE_GENERIC");class zt extends qt{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unspecified",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unspecified";super(e,{cause:{claim:n,reason:r,payload:t}}),b(this,"code","ERR_JWT_CLAIM_VALIDATION_FAILED"),b(this,"claim",void 0),b(this,"reason",void 0),b(this,"payload",void 0),this.claim=n,this.reason=r,this.payload=t}}b(zt,"code","ERR_JWT_CLAIM_VALIDATION_FAILED");class Vt extends qt{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unspecified",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unspecified";super(e,{cause:{claim:n,reason:r,payload:t}}),b(this,"code","ERR_JWT_EXPIRED"),b(this,"claim",void 0),b(this,"reason",void 0),b(this,"payload",void 0),this.claim=n,this.reason=r,this.payload=t}}b(Vt,"code","ERR_JWT_EXPIRED");class Zt extends qt{constructor(){super(...arguments),b(this,"code","ERR_JOSE_ALG_NOT_ALLOWED")}}b(Zt,"code","ERR_JOSE_ALG_NOT_ALLOWED");class $t extends qt{constructor(){super(...arguments),b(this,"code","ERR_JOSE_NOT_SUPPORTED")}}b($t,"code","ERR_JOSE_NOT_SUPPORTED"),b(class extends qt{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"decryption operation failed",arguments.length>1?arguments[1]:void 0),b(this,"code","ERR_JWE_DECRYPTION_FAILED")}},"code","ERR_JWE_DECRYPTION_FAILED"),b(class extends qt{constructor(){super(...arguments),b(this,"code","ERR_JWE_INVALID")}},"code","ERR_JWE_INVALID");class Qt extends qt{constructor(){super(...arguments),b(this,"code","ERR_JWS_INVALID")}}b(Qt,"code","ERR_JWS_INVALID");class en extends qt{constructor(){super(...arguments),b(this,"code","ERR_JWT_INVALID")}}b(en,"code","ERR_JWT_INVALID"),b(class extends qt{constructor(){super(...arguments),b(this,"code","ERR_JWK_INVALID")}},"code","ERR_JWK_INVALID");class tn extends qt{constructor(){super(...arguments),b(this,"code","ERR_JWKS_INVALID")}}b(tn,"code","ERR_JWKS_INVALID");class nn extends qt{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"no applicable key found in the JSON Web Key Set",arguments.length>1?arguments[1]:void 0),b(this,"code","ERR_JWKS_NO_MATCHING_KEY")}}b(nn,"code","ERR_JWKS_NO_MATCHING_KEY");class rn extends qt{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"multiple matching keys found in the JSON Web Key Set",arguments.length>1?arguments[1]:void 0),b(this,Symbol.asyncIterator,T(function*(){})),b(this,"code","ERR_JWKS_MULTIPLE_MATCHING_KEYS")}}b(rn,"code","ERR_JWKS_MULTIPLE_MATCHING_KEYS");class on extends qt{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"request timed out",arguments.length>1?arguments[1]:void 0),b(this,"code","ERR_JWKS_TIMEOUT")}}b(on,"code","ERR_JWKS_TIMEOUT");class an extends qt{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"signature verification failed",arguments.length>1?arguments[1]:void 0),b(this,"code","ERR_JWS_SIGNATURE_VERIFICATION_FAILED")}}b(an,"code","ERR_JWS_SIGNATURE_VERIFICATION_FAILED");const sn=e=>{if("CryptoKey"===(null==e?void 0:e[Symbol.toStringTag]))return!0;try{return e instanceof CryptoKey}catch(e){return!1}};function cn(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(e);const t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}const ln="The input to be decoded is not correctly encoded.";function un(e){if(Uint8Array.fromBase64)try{return Uint8Array.fromBase64("string"==typeof e?e:Gt.decode(e),{alphabet:"base64url"})}catch(e){throw new TypeError(ln,{cause:e})}let t=e;if(t instanceof Uint8Array&&(t=Gt.decode(t)),t.includes("+")||t.includes("/"))throw new TypeError(ln);t=t.replace(/-/g,"+").replace(/_/g,"/");try{return cn(t)}catch(e){throw new TypeError(ln)}}function dn(e){let t=e;return"string"==typeof t&&(t=jt.encode(t)),Uint8Array.prototype.toBase64?t.toBase64({alphabet:"base64url",omitPadding:!0}):function(e){if(Uint8Array.prototype.toBase64)return e.toBase64();const t=[];for(let n=0;n<e.length;n+=32768)t.push(String.fromCharCode.apply(null,e.subarray(n,n+32768)));return btoa(t.join(""))}(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function pn(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function mn(e){return pn(e)&&Array.isArray(e.keys)&&Array.from(e.keys).every(pn)}function hn(e,t,n){try{return un(e)}catch(e){throw new n("Failed to base64url decode the ".concat(t))}}async function fn(e,t){var n,r,o,i;if("RSA"===t.kty&&"oth"in t&&void 0!==t.oth)throw new $t('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');if(!e.kty.includes(t.kty))throw new $t('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');const a=null!==(n=null===(r=e.resolve)||void 0===r?void 0:r.call(e,{kty:t.kty,crv:t.crv}))&&void 0!==n?n:e.subtle,s=!(!t.d&&!t.priv),c=E({},t);return"AKP"!==c.kty&&delete c.alg,delete c.use,crypto.subtle.importKey("jwk",c,a,null!==(o=t.ext)&&void 0!==o?o:!s,null!==(i=t.key_ops)&&void 0!==i?i:e.usages[s?1:0])}function yn(e){return E({__proto__:null},e)}const gn=e=>e[Symbol.toStringTag];function vn(e,t,n){const r=e.alg,o=e.secret,i="decrypt"===n||"sign"===n;if(o&&t instanceof Uint8Array)return[wn,t];if(pn(t)){const a=function(e){const t=yn(e);if(void 0!==t.ext&&"boolean"!=typeof t.ext)throw new TypeError('"ext" (Extractable) Parameter must be a boolean');if(void 0!==t.key_ops){const e=t.key_ops,n=Array.isArray(e)?[...e]:void 0;if(!n||n.some(e=>"string"!=typeof e)||new Set(n).size!==n.length)throw new TypeError('"key_ops" (Key Operations) Parameter must be an array of unique strings');t.key_ops=n}return t}(t);if("string"!=typeof a.kty)throw new TypeError(o?Yt(r,t,"CryptoKey","KeyObject","JSON Web Key","Uint8Array"):Yt(r,t,"CryptoKey","KeyObject","JSON Web Key"));if(!(o?"oct"===a.kty&&"string"==typeof a.k:"oct"!==a.kty&&(i?"AKP"===a.kty&&"string"==typeof a.priv||"string"==typeof a.d:void 0===a.d&&void 0===a.priv)))throw new TypeError(o?'JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present':"JSON Web Key for this operation must be a ".concat(i?"private":"public"," JWK"));return((e,t,n)=>{const r=e.alg;if(void 0!==t.use){const e="sign"===n||"verify"===n?"sig":"enc";if(t.use!==e)throw new TypeError('Invalid key for this operation, its "use" must be "'.concat(e,'" when present'))}if(void 0!==t.alg&&t.alg!==r)throw new TypeError('Invalid key for this operation, its "alg" must be "'.concat(r,'" when present'));if(Array.isArray(t.key_ops)){var o;const r="encrypt"===n||"decrypt"===n?null===(o=e.ops)||void 0===o?void 0:o["encrypt"===n?0:1]:n;if(r&&!t.key_ops.includes(r))throw new TypeError('Invalid key for this operation, its "key_ops" must include "'.concat(r,'" when present'))}})(e,a,n),[Sn,t,a]}if(!(e=>sn(e)||(e=>"KeyObject"===(null==e?void 0:e[Symbol.toStringTag]))(e))(t))throw new TypeError(o?Yt(r,t,"CryptoKey","KeyObject","JSON Web Key","Uint8Array"):Yt(r,t,"CryptoKey","KeyObject","JSON Web Key"));if(o){if("secret"!==t.type)throw new TypeError("".concat(gn(t),' instances for symmetric algorithms must be of type "secret"'))}else{if("secret"===t.type)throw new TypeError("".concat(gn(t),' instances for asymmetric algorithms must not be of type "secret"'));const e=i?"private":"public";if(("public"===t.type||"private"===t.type)&&t.type!==e){const r="sign"===n?"signing":"verify"===n?"verifying":"".concat(n.slice(0,-1),"tion");throw new TypeError("".concat(gn(t)," instances for asymmetric algorithm ").concat(r,' must be of type "').concat(e,'"'))}}return sn(t)?[An,t]:[bn,t]}const wn=0,An=1,bn=2,Sn=3;let En;const _n={__proto__:null,prime256v1:"P-256",secp384r1:"P-384",secp521r1:"P-521"};function Rn(e,t,n){En||(En=new WeakMap);const r=En.get(e);return n&&(r?r[t]=n:En.set(e,{[t]:n})),null!=n?n:null==r?void 0:r[t]}const Tn=async(e,t,n)=>{var r;return null!==(r=Rn(e,n.alg))&&void 0!==r?r:Rn(e,n.alg,await fn(n,E(E({},t),{},{alg:n.alg})))};async function Pn(e,t,n){const r=vn(e,t,n);switch(r[0]){case wn:case An:return r[1];case Sn:{const t=r[1],n=r[2];if("oct"===n.kty)return un(n.k);if(!Object.isFrozen(t)){const e=t.key_ops;Array.isArray(e)&&Object.freeze(e),Object.freeze(t)}return Tn(t,n,e)}case bn:{const t=r[1];return"secret"===t.type?t.export():"toCryptoKey"in t&&"function"==typeof t.toCryptoKey?((e,t)=>{var n,r,o;const i=Rn(e,t.alg);if(i)return i;const a="public"===e.type,s=t.usages[a?0:1],c=e.asymmetricKeyType,l=_n[null===(n=e.asymmetricKeyDetails)||void 0===n?void 0:n.namedCurve],u=null!==(r=null===(o=t.resolve)||void 0===o?void 0:o.call(t,{crv:l,asymmetricKeyType:c}))&&void 0!==r?r:t.subtle;return Rn(e,t.alg,e.toCryptoKey(u,a,s))})(t,e):Tn(t,t.export({format:"jwk"}),e)}}}function On(e){const t={__proto__:null};for(const n in e)t[n]=E(E({},e[n]),{},{alg:n});return t}const Cn=[["encrypt","wrapKey"],["decrypt","unwrapKey"]],Nn=[[],["deriveBits"]],In=[[],[]];function Dn(e){return{kty:["RSA"],subtle:{name:"RSA-OAEP",hash:"SHA-".concat(e)},usages:Cn,ops:["wrapKey","unwrapKey"]}}function kn(){return{kty:["EC","OKP"],subtle:{name:"ECDH"},resolve:e=>{let t=e.kty,n=e.crv,r=e.asymmetricKeyType;if("X25519"===n||"x25519"===r)return{name:"X25519"};if("OKP"===t)throw new $t('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');return{name:"ECDH",namedCurve:n}},usages:Nn,ops:[void 0,"deriveBits"]}}function Ln(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{kty:["oct"],secret:!0,subtle:{name:t?"AES-GCM":"AES-KW",length:e},usages:In,ops:t?["encrypt","decrypt"]:["wrapKey","unwrapKey"]}}function Mn(){return{kty:["oct"],secret:!0,subtle:{name:"PBKDF2"},usages:In,ops:["deriveBits","deriveBits"]}}const xn=On({dir:{kty:["oct"],secret:!0,subtle:{name:"AES-GCM"},usages:In,ops:["encrypt","decrypt"]},"RSA-OAEP":Dn(1),"RSA-OAEP-256":Dn(256),"RSA-OAEP-384":Dn(384),"RSA-OAEP-512":Dn(512),"ECDH-ES":kn(),"ECDH-ES+A128KW":kn(),"ECDH-ES+A192KW":kn(),"ECDH-ES+A256KW":kn(),A128KW:Ln(128),A192KW:Ln(192),A256KW:Ln(256),A128GCMKW:Ln(128,!0),A192GCMKW:Ln(192,!0),A256GCMKW:Ln(256,!0),"PBES2-HS256+A128KW":Mn(),"PBES2-HS384+A192KW":Mn(),"PBES2-HS512+A256KW":Mn()}),Un=["encrypt","decrypt"];function Bn(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{kty:["oct"],secret:!0,subtle:{name:t?"AES-CBC":"AES-GCM",length:e},usages:In,ops:Un,cekBits:e,ivBits:t?128:96,cbc:t}}On({A128GCM:Bn(128),A192GCM:Bn(192),A256GCM:Bn(256),"A128CBC-HS256":Bn(256,!0),"A192CBC-HS384":Bn(384,!0),"A256CBC-HS512":Bn(512,!0)});const Hn={__proto__:null,b64:!0};function Fn(e,t){if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw new TypeError('"'.concat(e,'" option must be an array of strings'));if(t)return new Set(t)}function jn(e,t,n,r,o){if(void 0!==o.crit&&void 0===(null==r?void 0:r.crit))throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!r||void 0===r.crit)return[];if(!Array.isArray(r.crit)||0===r.crit.length||r.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');const i=void 0===n?t:E(E({__proto__:null},n),t);for(const t of r.crit){if(!(t in i))throw new $t('Extension Header Parameter "'.concat(t,'" is not recognized'));if(!Object.hasOwn(o,t)||void 0===o[t])throw new e('Extension Header Parameter "'.concat(t,'" is missing'));if(i[t]&&(!Object.hasOwn(r,t)||void 0===r[t]))throw new e('Extension Header Parameter "'.concat(t,'" MUST be integrity protected'))}return r.crit}function Gn(e,t){if(t.includes("b64")){const t=e.b64;if("boolean"!=typeof t)throw new Qt('The "b64" (base64url-encode payload) Header Parameter must be a boolean');return t}return!0}var Wn,Kn;let Jn,Xn;if("undefined"==typeof navigator||null===(Wn=navigator.userAgent)||void 0===Wn||null===(Kn=Wn.startsWith)||void 0===Kn||!Kn.call(Wn,"Mozilla/5.0 ")){const e="v6.8.4";Xn="".concat("openid-client","/").concat(e),Jn={"user-agent":Xn}}const Yn=e=>qn.get(e);let qn,zn;function Vn(e){return void 0!==e?Ce(e):(zn||(zn=new WeakMap),(e,t,n,r)=>{let o;return(o=zn.get(t))||(function(e,t){if("string"!=typeof e)throw tr("".concat(t," must be a string"),er);if(0===e.length)throw tr("".concat(t," must not be empty"),Qn)}(t.client_secret,'"metadata.client_secret"'),o=Ce(t.client_secret),zn.set(t,o)),o(e,t,n,r)})}const Zn=Ye,$n=re,Qn="ERR_INVALID_ARG_VALUE",er="ERR_INVALID_ARG_TYPE";function tr(e,t,n){const r=new TypeError(e,{cause:n});return Object.assign(r,{code:t}),r}class nr extends Error{constructor(e,t){var n;super(e,t),b(this,"code",void 0),this.name=this.constructor.name,this.code=null==t?void 0:t.code,null===(n=Error.captureStackTrace)||void 0===n||n.call(Error,this,this.constructor)}}function rr(e,t,n){return new nr(e,{cause:t,code:n})}function or(e){if(e instanceof TypeError||e instanceof nr||e instanceof Me||e instanceof xe||e instanceof Ue)throw e;if(e instanceof me)switch(e.code){case St:throw rr("only requests to HTTPS are allowed",e,e.code);case Et:throw rr("only requests to HTTP or HTTPS are allowed",e,e.code);case bt:throw rr("unexpected HTTP response status code",e.cause,e.code);case At:throw rr("unexpected response content-type",e.cause,e.code);case vt:throw rr("parsing error occured",e,e.code);case wt:throw rr("invalid response encountered",e,e.code);case Rt:throw rr("unexpected JWT claim value encountered",e,e.code);case Tt:throw rr("unexpected JSON attribute value encountered",e,e.code);case _t:throw rr("JWT timestamp claim value failed validation",e,e.code);default:throw rr(e.message,e,e.code)}if(e instanceof pe)throw rr("unsupported operation",e,e.code);if(e instanceof DOMException)switch(e.name){case"OperationError":throw rr("runtime operation error",e,ft);case"NotSupportedError":throw rr("runtime unsupported operation",e,ft);case"TimeoutError":throw rr("operation timed out",e,"OAUTH_TIMEOUT");case"AbortError":throw rr("operation aborted",e,"OAUTH_ABORT")}throw new nr("something went wrong",{cause:e})}async function ir(e,t,n,r,o){const i=await async function(e,t){var n,r;if(!(e instanceof URL))throw tr('"server" must be an instance of URL',er);const o=!e.href.includes("/.well-known/"),i=null!==(null==t?void 0:t.timeout)&&void 0!==n?n:30,a=AbortSignal.timeout(1e3*i),s=await(o?async function(e,t){return async function(e,t,n,r){if(!(e instanceof URL))throw Q('"'.concat("issuerIdentifier",'" must be an instance of URL'),Z);De(e,!0!==(null==r?void 0:r[ee]));const o=n(new URL(e.href)),i=ye(null==r?void 0:r.headers);return i.set("accept","application/json"),((null==r?void 0:r[re])||fetch)(o.href,{body:void 0,headers:Object.fromEntries(i.entries()),method:"GET",redirect:"manual",signal:ge(o,null==r?void 0:r.signal)})}(e,0,e=>{switch(null==t?void 0:t.algorithm){case void 0:case"oidc":!function(e){e.pathname=ve("".concat(e.pathname,"/").concat(".well-known/openid-configuration"))}(e);break;case"oauth2":!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];"/"===e.pathname?e.pathname=t:e.pathname=ve("".concat(t,"/").concat(n?e.pathname:e.pathname.replace(/(\/)$/,"")))}(e,".well-known/oauth-authorization-server");break;default:throw Q('"options.algorithm" must be "oidc" (default), or "oauth2"',V)}return e},t)}(e,{algorithm:null==t?void 0:t.algorithm,[re]:null==t?void 0:t[$n],[ee]:null==t||null===t.execute||void 0===r?void 0:r.includes(mr),signal:a,headers:new Headers(Jn)}):((null==t?void 0:t[$n])||fetch)((De(e,null==t||null===t.execute||void 0===c||!c.includes(mr)),e.href),{headers:Object.fromEntries(new Headers(E({accept:"application/json"},Jn)).entries()),body:void 0,method:"GET",redirect:"manual",signal:a})).then(e=>async function(e,t){const n=e;if(!(n instanceof URL)&&n!==Ht)throw Q('"expectedIssuerIdentifier" must be an instance of URL',Z);if(!z(t,Response))throw Q('"response" must be an instance of Response',Z);if(200!==t.status)throw he('"response" is not a conform Authorization Server Metadata response (unexpected HTTP status code)',bt,t);Nt(t);const r=await Bt(t);if(Ae(r.issuer,'"response" body "issuer" property',wt,{body:r}),n!==Ht&&new URL(r.issuer).href!==n.href)throw he('"response" body "issuer" property does not match the expected value',Tt,{expected:n.href,body:r,attribute:"issuer"});return r}(Ht,e)).catch(or);var c;return o&&new URL(s.issuer).href!==e.href&&(function(e,t,n){return!("https://login.microsoftonline.com"!==e.origin||null!=n&&n.algorithm&&"oidc"!==n.algorithm||(t[ar]=!0,0))}(e,s,t)||function(e,t){return!(!e.hostname.endsWith(".b2clogin.com")||null!=t&&t.algorithm&&"oidc"!==t.algorithm)}(e,t)||(()=>{throw new nr("discovered metadata issuer does not match the expected issuer",{code:Tt,cause:{expected:e.href,body:s,attribute:"issuer"}})})()),s}(e,o),a=new sr(i,t,n,r);let s=Yn(a);if(null!=o&&o[$n]&&(s.fetch=o[$n]),null!=o&&o.timeout&&(s.timeout=o.timeout),null!=o&&o.execute)for(const e of o.execute)e(a);return a}new TextDecoder;const ar=Symbol();class sr{constructor(e,t,n,r){var o,i,a,s,c;if("string"!=typeof t||!t.length)throw tr('"clientId" must be a non-empty string',er);if("string"==typeof n&&(n={client_secret:n}),void 0!==(null===(o=n)||void 0===o?void 0:o.client_id)&&t!==n.client_id)throw tr('"clientId" and "metadata.client_id" must be the same',Qn);const l=E(E({},structuredClone(n)),{},{client_id:t});let u;l[te]=null!==(i=null===(a=n)||void 0===a?void 0:a[te])&&void 0!==i?i:0,l[ne]=null!==(s=null===(c=n)||void 0===c?void 0:c[ne])&&void 0!==s?s:30,u=r||("string"==typeof l.client_secret&&l.client_secret.length?Vn(l.client_secret):(e,t,n,r)=>{n.set("client_id",t.client_id)});let d=Object.freeze(l);const p=structuredClone(e);ar in e&&(p[Ft]=t=>{let n=t.claims.tid;return e.issuer.replace("{tenantid}",n)});let m=Object.freeze(p);qn||(qn=new WeakMap),qn.set(this,{__proto__:null,as:m,c:d,auth:u,tlsOnly:!0,jwksCache:{}})}serverMetadata(){const e=structuredClone(Yn(this).as);return function(e){Object.defineProperties(e,function(e){return{supportsPKCE:{__proto__:null,value(){var t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"S256";return!0===(null===(t=e.code_challenge_methods_supported)||void 0===t?void 0:t.includes(n))}}}}(e))}(e),e}clientMetadata(){return structuredClone(Yn(this).c)}get timeout(){return Yn(this).timeout}set timeout(e){Yn(this).timeout=e}get[$n](){return Yn(this).fetch}set[$n](e){Yn(this).fetch=e}}function cr(e){Object.defineProperties(e,function(e){let t;if(void 0!==e.expires_in){const n=new Date;n.setSeconds(n.getSeconds()+e.expires_in),t=n.getTime()}return{expiresIn:{__proto__:null,value(){if(t){const e=Date.now();return t>e?Math.floor((t-e)/1e3):0}}},claims:{__proto__:null,value(){try{return et(this)}catch(e){return}}}}}(e))}async function lr(e,t,n){var r;let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=null===e.headers.get("retry-after")||void 0===r?void 0:r.trim();if(void 0===i)return;let a;if(/^\d+$/.test(i))parseInt(i,10);else{const e=new Date(i);if(Number.isFinite(e.getTime())){const t=new Date,n=e.getTime()-t.getTime();n>0&&Math.ceil(n/1e3)}}if(o&&!Number.isFinite(a))throw new me("invalid Retry-After header value",{cause:e});a>t&&await ur(a-t,n)}function ur(e,t){return new Promise((n,r)=>{const o=e=>{try{t.throwIfAborted()}catch(e){return void r(e)}if(e<=0)return void n();const i=Math.min(e,5);setTimeout(()=>o(e-i),1e3*i)};o(e)})}async function dr(e,t){wr(e);const n=Yn(e),r=n.as,o=n.c,i=n.auth,a=n.fetch,s=n.tlsOnly,c=n.timeout;return async function(e,t,n,r,o){Pe(e),Oe(t);const i=Le(e,"backchannel_authentication_endpoint",t.use_mtls_endpoint_aliases,!0!==(null==o?void 0:o[ee])),a=new URLSearchParams(r);a.set("client_id",t.client_id);const s=ye(null==o?void 0:o.headers);return s.set("accept","application/json"),Ve(e,t,n,i,a,s,o)}(r,o,i,t,{[re]:a,[ee]:!s,headers:new Headers(Jn),signal:Ar(c)}).then(e=>async function(e,t,n){if(Pe(e),Oe(t),!z(n,Response))throw Q('"response" must be an instance of Response',Z);await Je(n,200,"Backchannel Authentication Endpoint"),Nt(n);const r=await Bt(n);Ae(r.auth_req_id,'"response" body "auth_req_id" property',wt,{body:r});let o="number"!=typeof r.expires_in?parseFloat(r.expires_in):r.expires_in;return we(o,!0,'"response" body "expires_in" property',wt,{body:r}),r.expires_in=o,void 0!==r.interval&&we(r.interval,!1,'"response" body "interval" property',wt,{body:r}),r}(r,o,e)).catch(or)}async function pr(e,t,n,r){var o,i;wr(e),new URLSearchParams(n);let a=null!==t.interval&&void 0!==o?o:5;const s=null!==(null==r?void 0:r.signal)&&void 0!==i?i:AbortSignal.timeout(1e3*t.expires_in);try{await ur(a,s)}catch(e){or(e)}const c=Yn(e),l=c.as,u=c.c,d=c.auth,p=c.fetch,m=c.tlsOnly,h=c.nonRepudiation,f=c.timeout,y=c.decrypt,g=(o,i)=>pr(e,E(E({},t),{},{interval:o}),n,E(E({},r),{},{signal:s,flag:i})),v=function(e,t){const n=Ar(t);if(!n)return{signal:e,cleanup(){}};const r=new AbortController,o=e=>{const t=e.target;r.abort(t.reason)};return e.aborted?r.abort(e.reason):n.aborted?r.abort(n.reason):(e.addEventListener("abort",o,{once:!0}),n.addEventListener("abort",o,{once:!0})),{signal:r.signal,cleanup(){e.removeEventListener("abort",o),n.removeEventListener("abort",o)}}}(s,f),w=await async function(e,t,n,r,o){Pe(e),Oe(t),Ae(r,'"authReqId"');const i=new URLSearchParams(null==o?void 0:o.additionalParameters);return i.set("auth_req_id",r),Ze(e,t,n,"urn:openid:params:grant-type:ciba",i,o)}(l,u,d,t.auth_req_id,{[re]:p,[ee]:!m,additionalParameters:n,DPoP:null==r?void 0:r.DPoP,headers:new Headers(Jn),signal:v.signal}).catch(or).finally(v.cleanup);var A;if(503===w.status&&w.headers.has("retry-after"))return await lr(w,a,s,!0),await(null===w.body||void 0===A?void 0:A.cancel()),g(a);const b=async function(e,t,n,r){return tt(e,t,n,void 0,null==r?void 0:r[ie],null==r?void 0:r.recognizedTokenTypes)}(l,u,w,{[ie]:y});let S;try{await b}catch(e){if(Sr(e,r))return g(a,Er);if(e instanceof Me)switch(e.error){case"slow_down":0;case"authorization_pending":return await lr(e.response,a,s),g(a)}or(e)}return S.id_token&&await(null==h?void 0:h(w)),cr(S),S}function mr(e){Yn(e).tlsOnly=!1}async function hr(e,t,n,r,o){if(wr(e),!((null==o?void 0:o.flag)===Er||t instanceof URL||function(e){try{return"Request"===Object.getPrototypeOf(e)[Symbol.toStringTag]}catch(e){return!1}}(t)))throw tr('"currentUrl" must be an instance of URL, or Request',er);let i,a;const s=Yn(e),c=s.as,l=s.c,u=s.auth,d=s.fetch,p=s.tlsOnly,m=s.jarm,h=s.hybrid,f=s.nonRepudiation,y=s.timeout,g=s.decrypt,v=s.implicit;if((null==o?void 0:o.flag)===Er)o.authResponse,o.redirectUri;else{if(!(t instanceof URL)){const e=t;switch(new URL(t.url),e.method){case"GET":break;case"POST":const n=new URLSearchParams(await async function(e){if("POST"!==e.method)throw Q("form_post responses are expected to use the POST method",V,{cause:e});if("application/x-www-form-urlencoded"!==qe(e))throw Q("form_post responses are expected to use the application/x-www-form-urlencoded content-type",V,{cause:e});return async function(e){if(e.bodyUsed)throw Q("form_post Request instances must contain a readable body",V,{cause:e});return e.text()}(e)}(e));if(h)t.hash=n.toString();else for(const e of n.entries()){var w=R(e,2);const n=w[0],r=w[1];t.searchParams.append(n,r)}break;default:throw tr("unexpected Request HTTP method",Qn)}}switch(function(e){return new URL(e).search="",e.hash="",e.href}(t),!0){case!!m:await m(t,null==n?void 0:n.expectedState);break;case!!h:await h(t,null==n?void 0:n.expectedNonce,null==n?void 0:n.expectedState,null==n?void 0:n.maxAge);break;case!!v:throw new TypeError("authorizationCodeGrant() cannot be used by response_type=id_token clients");default:try{(function(e,t,n,r){if(Pe(e),Oe(t),n instanceof URL&&n.searchParams,!(n instanceof URLSearchParams))throw Q('"parameters" must be an instance of URLSearchParams, or URL',Z);if(Mt(n,"response"))throw he('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()',wt,{parameters:n});const o=Mt(n,"iss"),i=Mt(n,"state");if(!o&&e.authorization_response_iss_parameter_supported)throw he('response parameter "iss" (issuer) missing',wt,{parameters:n});if(o&&o!==e.issuer)throw he('unexpected "iss" (issuer) response parameter value',wt,{expected:e.issuer,parameters:n});switch(r){case void 0:case Ut:if(void 0!==i)throw he('unexpected "state" response parameter encountered',wt,{expected:void 0,parameters:n});break;case xt:break;default:if(Ae(r,'"expectedState" argument'),i!==r)throw he(void 0===i?'response parameter "state" missing':'unexpected "state" response parameter value',wt,{expected:r,parameters:n})}if(Mt(n,"error"))throw new xe("authorization response from the server is an error",{cause:n});const a=Mt(n,"id_token"),s=Mt(n,"token");if(void 0!==a||void 0!==s)throw new pe("implicit and hybrid flows are not supported");return new URLSearchParams(n),st.add(c),c;var c})(c,l,t.searchParams,null==n?void 0:n.expectedState)}catch(e){or(e)}}}const A=await async function(e,t,n,r,o,i,a){if(Pe(e),Oe(t),!st.has(r))throw Q('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()',V);Ae(o,'"redirectUri"');const s=Mt(r,"code");if(!s)throw he('no authorization code in "callbackParameters"',wt);const c=new URLSearchParams(null==a?void 0:a.additionalParameters);return c.set("redirect_uri",o),c.set("code",s),i!==ct&&(Ae(i,'"codeVerifier"'),c.set("code_verifier",i)),Ze(e,t,n,"authorization_code",c,a)}(c,l,u,i,a,(null==n?void 0:n.pkceCodeVerifier)||ct,{additionalParameters:r,[re]:d,[ee]:!p,DPoP:null==o?void 0:o.DPoP,headers:new Headers(Jn),signal:Ar(y)}).catch(or);"string"!=typeof(null==n?void 0:n.expectedNonce)&&"number"!=typeof(null==n?void 0:n.maxAge)||(n.idTokenExpected=!0);const b=async function(e,t,n,r){return"string"==typeof(null==r?void 0:r.expectedNonce)||"number"==typeof(null==r?void 0:r.maxAge)||null!=r&&r.requireIdToken?async function(e,t,n,r,o,i,a){const s=[];switch(r){case void 0:0;break;case dt:break;default:Ae(r,'"expectedNonce" argument'),s.push("nonce")}switch(null!=o||t.default_max_age,o){case void 0:0;break;case pt:break;default:we(o,!0,'"maxAge" argument'),s.push("auth_time")}const c=await tt(e,t,n,s,i,a);Ae(c.id_token,'"response" body "id_token" property',wt,{body:c});const l=et(c);if(o!==pt){const e=Te()+_e(t),n=Re(t);if(l.auth_time+o<e-n)throw he("too much time has elapsed since the last End-User authentication",_t,{claims:l,now:e,tolerance:n,claim:"auth_time"})}if(r===dt){if(void 0!==l.nonce)throw he('unexpected ID Token "nonce" claim value',Rt,{expected:void 0,claims:l,claim:"nonce"})}else if(l.nonce!==r)throw he('unexpected ID Token "nonce" claim value',Rt,{expected:r,claims:l,claim:"nonce"});return c}(e,t,n,r.expectedNonce,r.maxAge,r[ie],r.recognizedTokenTypes):async function(e,t,n,r,o){const i=await tt(e,t,n,void 0,r,o),a=et(i);if(a){if(void 0!==t.default_max_age){we(t.default_max_age,!0,'"client.default_max_age"');const e=Te()+_e(t),n=Re(t);if(a.auth_time+t.default_max_age<e-n)throw he("too much time has elapsed since the last End-User authentication",_t,{claims:a,now:e,tolerance:n,claim:"auth_time"})}if(void 0!==a.nonce)throw he('unexpected ID Token "nonce" claim value',Rt,{expected:void 0,claims:a,claim:"nonce"})}return i}(e,t,n,null==r?void 0:r[ie],null==r?void 0:r.recognizedTokenTypes)}(c,l,A,{expectedNonce:null==n?void 0:n.expectedNonce,maxAge:null==n?void 0:n.maxAge,requireIdToken:null==n?void 0:n.idTokenExpected,[ie]:g});let S;try{await b}catch(t){if(Sr(t,o))return hr(e,void 0,n,r,E(E({},o),{},{flag:Er,authResponse:i,redirectUri:a}));or(t)}return S.id_token&&await(null==f?void 0:f(A)),cr(S),S}async function fr(e,t,n,r){wr(e),new URLSearchParams(n);const o=Yn(e),i=o.as,a=o.c,s=o.auth,c=o.fetch,l=o.tlsOnly,u=o.nonRepudiation,d=o.timeout,p=o.decrypt,m=await async function(e,t,n,r,o){Pe(e),Oe(t),Ae(r,'"refreshToken"');const i=new URLSearchParams(null==o?void 0:o.additionalParameters);return i.set("refresh_token",r),Ze(e,t,n,"refresh_token",i,o)}(i,a,s,t,{[re]:c,[ee]:!l,additionalParameters:n,DPoP:null==r?void 0:r.DPoP,headers:new Headers(Jn),signal:Ar(d)}).catch(or),h=async function(e,t,n,r){return tt(e,t,n,void 0,null==r?void 0:r[ie],null==r?void 0:r.recognizedTokenTypes)}(i,a,m,{[ie]:p});let f;try{await h}catch(o){if(Sr(o,r))return fr(e,t,n,E(E({},r),{},{flag:Er}));or(o)}return f.id_token&&await(null==u?void 0:u(m)),cr(f),f}async function yr(e,t,n){wr(e),new URLSearchParams(t);const r=Yn(e),o=r.as,i=r.c,a=r.auth,s=r.fetch,c=r.tlsOnly,l=r.timeout,u=await async function(e,t,n,r,o){return Pe(e),Oe(t),Ze(e,t,n,"client_credentials",new URLSearchParams(r),o)}(o,i,a,t,{[re]:s,[ee]:!c,DPoP:null==n?void 0:n.DPoP,headers:new Headers(Jn),signal:Ar(l)}).catch(or),d=async function(e,t,n){return tt(e,t,n,void 0,void 0,void 0)}(o,i,u);let p;try{await d}catch(r){if(Sr(r,n))return yr(e,t,E(E({},n),{},{flag:Er}));or(r)}return cr(p),p}function gr(e,t){wr(e);const n=Yn(e),r=n.as,o=n.c,i=n.tlsOnly,a=n.hybrid,s=n.jarm,c=n.implicit,l=Le(r,"authorization_endpoint",!1,i);if(new URLSearchParams(t).has("client_id")||t.set("client_id",o.client_id),!t.has("request_uri")&&!t.has("request")){if(t.has("response_type")||t.set("response_type",a?"code id_token":c?"id_token":"code"),c&&!t.has("nonce"))throw tr("response_type=id_token clients must provide a nonce parameter in their authorization request parameters",Qn);s&&t.set("response_mode","jwt")}for(const e of t.entries()){var u=R(e,2);const t=u[0],n=u[1];l.searchParams.append(t,n)}return l}async function vr(e,t,n){wr(e);const r=gr(e,t),o=Yn(e),i=o.as,a=o.c,s=o.auth,c=o.fetch,l=o.tlsOnly,u=o.timeout,d=await async function(e,t,n,r,o){var i;Pe(e),Oe(t);const a=Le(e,"pushed_authorization_request_endpoint",t.use_mtls_endpoint_aliases,!0!==(null==o?void 0:o[ee])),s=new URLSearchParams(r);s.set("client_id",t.client_id);const c=ye(null==o?void 0:o.headers);c.set("accept","application/json"),void 0!==(null==o?void 0:o.DPoP)&&(Xe(o.DPoP),await o.DPoP.addProof(a,c,"POST"));const l=await Ve(e,t,n,a,s,c,o);return null==o||null===o.DPoP||void 0===i||i.cacheNonce(l,a),l}(i,a,s,r.searchParams,{[re]:c,[ee]:!l,DPoP:null==n?void 0:n.DPoP,headers:new Headers(Jn),signal:Ar(u)}).catch(or),p=async function(e,t,n){if(Pe(e),Oe(t),!z(n,Response))throw Q('"response" must be an instance of Response',Z);await Je(n,201,"Pushed Authorization Request Endpoint"),Nt(n);const r=await Bt(n);Ae(r.request_uri,'"response" body "request_uri" property',wt,{body:r});let o="number"!=typeof r.expires_in?parseFloat(r.expires_in):r.expires_in;return we(o,!0,'"response" body "expires_in" property',wt,{body:r}),r.expires_in=o,r}(i,a,d);let m;try{await p}catch(r){if(Sr(r,n))return vr(e,t,E(E({},n),{},{flag:Er}));or(r)}return gr(e,{request_uri:m.request_uri})}function wr(e){if(!(e instanceof sr))throw tr('"config" must be an instance of Configuration',er);if(Object.getPrototypeOf(e)!==sr.prototype)throw tr("subclassing Configuration is not allowed",Qn)}function Ar(e){return e?AbortSignal.timeout(1e3*e):void 0}async function br(e,t,n,r){wr(e);const o=Yn(e),i=o.as,a=o.c,s=o.fetch,c=o.tlsOnly,l=o.nonRepudiation,u=o.timeout,d=o.decrypt,p=await async function(e,t,n,r){Pe(e),Oe(t);const o=Le(e,"userinfo_endpoint",t.use_mtls_endpoint_aliases,!0!==(null==r?void 0:r[ee])),i=ye(null==r?void 0:r.headers);return t.userinfo_signed_response_alg?i.set("accept","application/jwt"):(i.set("accept","application/json"),i.append("accept","application/jwt")),async function(e,t,n,r,o,i){var a;if(Ae(e,'"accessToken"'),!(n instanceof URL))throw Q('"url" must be an instance of URL',Z);De(n,!0!==(null==i?void 0:i[ee])),ye(r),null!=i&&i.DPoP&&(Xe(i.DPoP),await i.DPoP.addProof(n,r,"GET".toUpperCase(),e)),r.set("authorization","".concat(r.has("dpop")?"DPoP":"Bearer"," ").concat(e));const s=await((null==i?void 0:i[re])||fetch)(n.href,{duplex:z(null,ReadableStream)?"half":void 0,body:null,headers:Object.fromEntries(r.entries()),method:"GET",redirect:"manual",signal:ge(n,null==i?void 0:i.signal)});return null==i||null===i.DPoP||void 0===a||a.cacheNonce(s,n),s}(n,0,o,i,0,E(E({},r),{},{[te]:_e(t)}))}(i,a,t,{[re]:s,[ee]:!c,DPoP:null==r?void 0:r.DPoP,headers:new Headers(Jn),signal:Ar(u)}).catch(or);let m,h=ze(i,a,n,p,{[ie]:d});try{await h}catch(o){if(Sr(o,r))return br(e,t,n,E(E({},r),{},{flag:Er}));or(o)}return"application/jwt"===qe(p)&&await(null==l?void 0:l(p)),m}function Sr(e,t){return!(null==t||!t.DPoP||t.flag===Er)&&function(e){if(e instanceof Ue){const t=e.cause,n=t[0];return 1===t.length&&"dpop"===n.scheme&&"use_dpop_nonce"===n.parameters.error}return e instanceof Me&&"use_dpop_nonce"===e.error}(e)}Object.freeze(sr.prototype);const Er=Symbol();async function _r(e,t,n,r){wr(e);const o=Yn(e),i=o.as,a=o.c,s=o.auth,c=o.fetch,l=o.tlsOnly,u=o.timeout,d=o.decrypt,p=o.nonRepudiation,m=await async function(e,t,n,r,o,i){return Pe(e),Oe(t),Ae(r,'"grantType"'),Ze(e,t,n,r,new URLSearchParams(o),i)}(i,a,s,t,new URLSearchParams(n),{[re]:c,[ee]:!l,DPoP:null==r?void 0:r.DPoP,headers:new Headers(Jn),signal:Ar(u)}).catch(or);let h;"urn:ietf:params:oauth:grant-type:token-exchange"===t&&(h={n_a:()=>{}});const f=async function(e,t,n,r){return tt(e,t,n,void 0,null==r?void 0:r[ie],null==r?void 0:r.recognizedTokenTypes)}(i,a,m,{[ie]:d,recognizedTokenTypes:h});let y;try{y=await f}catch(o){if(Sr(o,r))return _r(e,t,n,E(E({},r),{},{flag:Er}));or(o)}return y.id_token&&await(null==p?void 0:p(m)),cr(y),y}async function Rr(e,t,n){return t instanceof Uint8Array?crypto.subtle.importKey("raw",t,e.subtle,!1,[n]):(function(e,t,n){var r;const o=e.algorithm;if(o.name!==t.name)throw Xt(t.name);if(t.hash&&(null===(r=o.hash)||void 0===r?void 0:r.name)!==t.hash)throw Xt(t.hash,"algorithm.hash");if(t.namedCurve&&o.namedCurve!==t.namedCurve)throw Xt(t.namedCurve,"algorithm.namedCurve");if(void 0!==t.length&&o.length!==t.length)throw Xt(t.length,"algorithm.length");!function(e,t){if(t&&!e.usages.includes(t))throw new TypeError("CryptoKey does not support this operation, its usages must include ".concat(t,"."))}(e,n)}(t,e.subtle,n),e.minRsaBits&&function(e,t){const n=t.algorithm.modulusLength;if("number"!=typeof n||n<2048)throw new TypeError("".concat(e," requires key modulusLength to be 2048 bits or larger"))}(e.alg,t),t)}const Tr=[["verify"],["sign"]];function Pr(e){const t={name:"HMAC",hash:"SHA-".concat(e)};return{kty:["oct"],secret:!0,subtle:t,signing:t,usages:Tr}}function Or(e,t){const n={name:t?"RSA-PSS":"RSASSA-PKCS1-v1_5",hash:"SHA-".concat(e)};return{kty:["RSA"],subtle:n,signing:t?E(E({},n),{},{saltLength:t}):n,usages:Tr,minRsaBits:2048}}function Cr(e,t){return{kty:["EC"],crv:e,subtle:{name:"ECDSA",namedCurve:e},signing:{name:"ECDSA",hash:"SHA-".concat(t)},usages:Tr}}function Nr(){const e={name:"Ed25519"};return{kty:["OKP"],crv:"Ed25519",subtle:e,signing:e,usages:Tr}}function Ir(e){const t={name:"ML-DSA-".concat(e)};return{kty:["AKP"],subtle:t,signing:t,usages:Tr}}const Dr=On({HS256:Pr(256),HS384:Pr(384),HS512:Pr(512),RS256:Or(256),RS384:Or(384),RS512:Or(512),PS256:Or(256,32),PS384:Or(384,48),PS512:Or(512,64),ES256:Cr("P-256",256),ES384:Cr("P-384",384),ES512:Cr("P-521",512),EdDSA:Nr(),Ed25519:Nr(),"ML-DSA-44":Ir(44),"ML-DSA-65":Ir(65),"ML-DSA-87":Ir(87)});function kr(e){const t="string"==typeof e?Dr[e]:void 0;if(!t)throw new $t("alg ".concat(e," is not supported either by JOSE or your javascript runtime"));return t}async function Lr(e,t,n){if(e instanceof Uint8Array&&Gt.decode(e),"string"!=typeof e)throw new Qt("Compact JWS must be a string or Uint8Array");const r=e.split("."),o=r[0],i=r[1],a=r[2];if(3!==r.length)throw new Qt("Invalid Compact JWS");const s={payload:i,protected:o,signature:a},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0===e?{}:function(e,t,n){let r;try{JSON.parse(Wt.decode(un(e)))}catch(e){throw new t(n)}if(!pn(r))throw new t(n);return r}(e,Qt,"JWS Protected Header is invalid");return t}(o),l=function(e,t,n){const r=Gn(e,jn(Qt,Hn,n[1],e,t)),o=t.alg;if("string"!=typeof o||!o)throw new Qt('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(n[0]&&!n[0].has(o))throw new Zt('"alg" (Algorithm) Header Parameter value not allowed');return[r,o]}(c,c,t),u=R(l,2),d=u[0],p=u[1],m=d?i:function(e){try{return Jt(e)}catch(e){throw new Qt("JWS Compact Serialization payload must use only ASCII characters")}}(i);return async function(e,t,n,r,o,i,a){var s;let c=!1;"function"==typeof n&&(await n(o,e),!0);const l="string"==typeof a,u=kr(i),d=Kt(void 0!==r?Jt(r):new Uint8Array,Jt("."),l?null!==t[2]&&void 0!==s?s:t[2]=function(e,t,n){try{return Jt(e)}catch(e){throw new n("The ".concat("payload"," is not a valid base64url string"))}}(a,0,Qt):a),p=hn(e.signature,"signature",Qt),m=await Pn(u,n,"verify");if(!await async function(e,t,n,r){const o=await Rr(e,t,"verify");try{return await crypto.subtle.verify(e.signing,o,n,r)}catch(e){return!1}}(u,m,p,d))throw new an;return[l?hn(a,"payload",Qt):a,o,l,m,c]}(s,t,n,o,c,p,m)}const Mr=e=>Math.floor(e.getTime()/1e3),xr={s:1,m:60,h:3600,d:86400,w:604800,y:31557600},Ur=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,Br="check_failed";function Hr(){throw new TypeError("Invalid time period format")}function Fr(e){"string"!=typeof e&&Hr();const t=Ur.exec(e);(!t||t[4]&&t[1])&&Hr();const n=parseFloat(t[2]),r=Math.round(n*xr[t[3][0].toLowerCase()]);return Number.isFinite(r)||Hr(),"-"===t[1]||"ago"===t[4]?-r:r}function jr(e,t){if(!Number.isFinite(t))throw new TypeError("Invalid ".concat(e," input"));return t}function Gr(e,t){if("string"!=typeof t)throw new TypeError('"'.concat(e,'" claim must be a string'))}function Wr(e,t){return"number"==typeof e?jr(t,e):e instanceof Date?jr(t,Mr(e)):Mr(new Date)+Fr(e)}const Kr=e=>{const t=e.toLowerCase();return e.includes("/")?t:"application/".concat(t)};function Jr(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e[t];if(void 0!==r||n){if("number"!=typeof r)throw new zt('"'.concat(t,'" claim must be a number'),e,t,"invalid");return r}}function Xr(e,t){throw new zt('unexpected "'.concat(t,'" claim value'),e,t,Br)}function Yr(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{JSON.parse(Wt.decode(t))}catch(e){}if(!pn(n))throw new en("JWT Claims Set must be a top-level JSON object");const o=r.typ;if(void 0!==o&&("string"!=typeof e.typ||Kr(e.typ)!==Kr(o)))throw new zt('unexpected "typ" JWT header value',n,"typ",Br);const i=r.requiredClaims,a=void 0===i?[]:i,s=r.issuer,c=r.subject,l=r.audience,u=r.maxTokenAge,d=[...a];void 0!==u&&d.push("iat"),void 0!==l&&d.push("aud"),void 0!==c&&d.push("sub"),void 0!==s&&d.push("iss");for(const e of new Set(d.reverse()))if(!Object.hasOwn(n,e))throw new zt('missing required "'.concat(e,'" claim'),n,e,"missing");var p,m;void 0===s||(Array.isArray(s)?s:[s]).includes(n.iss)||Xr(n,"iss"),void 0!==c&&n.sub!==c&&Xr(n,"sub"),void 0===l||("string"==typeof n.aud?m.includes(p):Array.isArray(p)&&m.some(e=>p.includes(e)))||Xr(n,"aud");const h=r.clockTolerance;let f=0;if("string"==typeof h)Fr(h);else if(void 0!==h){if("number"!=typeof h)throw new TypeError("Invalid clockTolerance option type");0}jr("clockTolerance option",f);const y=r.currentDate,g=jr("currentDate option",Mr(void 0===y?new Date:y)),v=Jr(n,"iat",void 0!==u),w=Jr(n,"nbf");if(void 0!==w&&w>g+f)throw new zt('"nbf" claim timestamp check failed',n,"nbf",Br);const A=Jr(n,"exp");if(void 0!==A&&A<=g-f)throw new Vt('"exp" claim timestamp check failed',n,"exp",Br);if(void 0!==u){const e=g-v;if(e-f>jr("maxTokenAge option","number"==typeof u?u:Fr(u)))throw new Vt('"iat" claim timestamp check failed (too far in the past)',n,"iat",Br);if(e<-f)throw new zt('"iat" claim timestamp check failed (it should be in the past)',n,"iat",Br)}return n}let qr;function zr(e){return qr.get(e)}async function Vr(e,t,n,r,o){const i=R(function(e){if(void 0===e)return[void 0,""];const t=function(e,t){let n,r;try{n=JSON.stringify(t),r=JSON.parse(n)}catch(t){throw new e("JOSE Header is not valid JSON",{cause:t})}if(!pn(r))throw new e("JOSE Header is not a JSON object");return[r,n]}(Qt,e);return[t[0],dn(t[1])]}(t),2),a=i[0],s=i[1];if(!a)throw new Qt("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");(function(e,t,n){return function(e,t){const n=(null!=t?t:{}).crit;if(Array.isArray(n)&&new Set(n).size!==n.length)throw new e('"crit" (Critical) Header Parameter MUST NOT contain duplicate values')}(Qt,e),Gn(e,jn(Qt,Hn,n,e,t))})(a,a,n)||o();const c=function(e){const t=e.alg;if("string"!=typeof t||!t)throw new Qt('JWS "alg" (Algorithm) Header Parameter missing or invalid');return kr(t)}(a),l=dn(e),u=await async function(e,t,n,r){const o=Kt(Jt(e),Jt("."),t),i=await Pn(n,r,"sign");return dn(await async function(e,t,n){const r=await Rr(e,t,"sign"),o=await crypto.subtle.sign(e.signing,r,n);return new Uint8Array(o)}(n,i,o))}(s,Jt(l),c,r);return"".concat(s,".").concat(l,".").concat(u)}const Zr=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pn(e))throw new TypeError("JWT Claims Set MUST be an object");(qr||(qr=new WeakMap)).set(this,structuredClone(e))}setIssuer(e){return Gr("iss",e),zr(this).iss=e,this}setSubject(e){return Gr("sub",e),zr(this).sub=e,this}setAudience(e){return function(e){if("string"!=typeof e&&(!Array.isArray(e)||Array.from(e).some(e=>"string"!=typeof e)))throw new TypeError('"aud" claim must be a string or an array of strings')}(e),zr(this).aud=e,this}setJti(e){return Gr("jti",e),zr(this).jti=e,this}setNotBefore(e){return zr(this).nbf=Wr(e,"setNotBefore"),this}setExpirationTime(e){return zr(this).exp=Wr(e,"setExpirationTime"),this}setIssuedAt(e){return zr(this).iat=void 0===e?Mr(new Date):"string"==typeof e?jr("setIssuedAt",Mr(new Date)+Fr(e)):Wr(e,"setIssuedAt"),this}};var $r=new WeakMap;class Qr extends Zr{constructor(){super(...arguments),v(this,$r,void 0)}setProtectedHeader(e){return function(e){if(void 0!==e)throw new TypeError("".concat("setProtectedHeader"," can only be called once"))}(g($r,this)),w($r,this,e),this}async sign(e,t){return Vr(function(e){const t=zr(e);for(const e of["iat","nbf","exp"]){const n=t[e];if("number"==typeof n&&!Number.isFinite(n))throw new TypeError('"'.concat(e,'" claim must be a finite number'))}return jt.encode(JSON.stringify(t))}(this),g($r,this),null==t?void 0:t.crit,e,()=>{throw new en("JWTs MUST NOT use unencoded payload")})}}const eo='"alg" (Algorithm)';function to(){throw new $t("Invalid or unsupported ".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:'JWK "alg" (Algorithm) Parameter'," value"))}const no=(e,t)=>{if(e.byteLength!==t.length)return!1;for(let n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0},ro=e=>{const t=e.data[e.pos++];if(void 0===t)throw new Error("Unexpected end of ASN.1 input");return t},oo=e=>{const t=ro(e);if(128&t){const n=127&t;let r=0;for(let t=0;t<n;t++)r=r<<8|ro(e);return r}return t},io=(e,t,n)=>{if(ro(e)!==t)throw new Error(n)},ao=(e,t)=>{if(t<0||e.pos+t>e.data.length)throw new Error("Unexpected end of ASN.1 input");const n=e.data.subarray(e.pos,e.pos+t);return e.pos+=t,n},so=e=>{const t=(e=>{io(e,6,"Expected algorithm OID");const t=oo(e);return ao(e,t)})(e);if(no(t,[43,101,110]))return"X25519";if(!no(t,[42,134,72,206,61,2,1]))throw new Error("Unsupported key algorithm");io(e,6,"Expected curve OID");const n=oo(e),r=ao(e,n);if(no(r,[42,134,72,206,61,3,1,7]))return"P-256";if(no(r,[43,129,4,0,34]))return"P-384";if(no(r,[43,129,4,0,35]))return"P-521";throw new Error("Unsupported named curve")},co=(e,t,n)=>{const r=(e=>cn(e.replace(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"")))(e);return(async(e,t,n,r)=>{const o=function(e){if(void 0!==e&&"boolean"!=typeof e)throw new TypeError('"extractable" option must be a boolean');return e}(null==r?void 0:r.extractable),i=function(e,t){var n,r;return null!==(n="string"==typeof e?null!==(r=Dr[e])&&void 0!==r?r:xn[e]:void 0)&&void 0!==n?n:to(t)}(n,eo);i.secret&&to(eo);const a="spki"===e;let s;if(i.resolve)try{const n={data:t,pos:0};!function(e,t){if(io(e,48,"Invalid ".concat("spki"===t?"SPKI":"PKCS#8"," structure")),oo(e),"pkcs8"===t){io(e,2,"Expected version field");const t=oo(e);e.pos+=t}io(e,48,"Expected algorithm identifier"),oo(e)}(n,e),s=i.resolve({crv:so(n)})}catch(e){throw new $t("Invalid or unsupported key format")}else s=i.subtle;return crypto.subtle.importKey(e,t,s,null!=o?o:a,i.usages[a?0:1])})("pkcs8",r,t,n)};async function lo(e,t,n){const r=e.get(t)||e.set(t,{}).get(t),o=n.alg;if(void 0===r[o]){const e=await fn(n,E(E({},t),{},{alg:o,ext:!0}));if("public"!==e.type)throw new tn("JSON Web Key Set members must be public keys");r[o]=e}return r[o]}function uo(e){let t;try{structuredClone(e)}catch(e){}if(!mn(t))throw new tn("JSON Web Key Set malformed");const n=new WeakMap;return Object.defineProperty(async(e,r)=>{const o=E(E({},e),null==r?void 0:r.header),i=o.alg,a=o.kid,s="string"==typeof i?Dr[i]:void 0;if(!s||s.secret)throw new $t('Unsupported "alg" value for a JSON Web Key Set');const c=t.keys.filter(e=>function(e,t,n,r){const o=yn(e),i=o.kty,a=o.key_ops,s=o.ext,c=o.kid,l=o.alg,u=o.use,d=o.crv,p=Array.isArray(a)?[...a]:a;return(void 0===s||"boolean"==typeof s)&&(void 0===p||Array.isArray(p)&&p.every((e,t)=>"string"==typeof e&&p.indexOf(e)===t)&&p.includes("verify"))&&t.kty.includes(i)&&(void 0===r||"string"==typeof r&&r===c)&&(void 0===l?"AKP"!==i:n===l)&&(void 0===u||"sig"===u)&&(!t.crv||d===t.crv)}(e,s,i,a)),l=c[0],u=c.length;if(!u)throw new nn;if(1!==u){const e=new rn;throw e[Symbol.asyncIterator]=T(function*(){for(const e of c)try{yield yield f(lo(n,e,s))}catch(e){}}),e}return lo(n,l,s)},"jwks",{value:()=>structuredClone(t)})}var po,mo;let ho;if("undefined"==typeof navigator||null===(po=navigator.userAgent)||void 0===po||null===(mo=po.startsWith)||void 0===mo||!mo.call(po,"Mozilla/5.0 ")){const e="v6.2.10";ho="".concat("jose","/").concat(e)}const fo=Symbol(),yo=Symbol();function go(e,t){return Number.isFinite(e)&&Date.now()<e+t}function vo(e,t,n){if(Number.isNaN(e))throw new TypeError('"'.concat(n,'" option must not be NaN'));return"number"==typeof e?e:t}async function wo(e,t,n){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PRIVATE KEY-----"))throw new TypeError('"pkcs8" must be PKCS#8 formatted string');return co(e,t,n)}const Ao=["mfaToken"],bo=["mfaToken"];var So,Eo,_o,Ro,To,Po,Oo,Co,No,Io,Do,ko,Lo,Mo,xo,Uo,Bo,Ho,Fo,jo,Go,Wo,Ko,Jo,Xo,Yo,qo,zo,Vo,Zo,$o,Qo,ei,ti,ni,ri,oi,ii,ai,si,ci,li,ui,di,pi,mi,hi,fi,yi,gi,vi,wi;function Ai(e){if("object"!=typeof e||null===e)return{};const t=e;return{statusCode:"number"==typeof t.statusCode?t.statusCode:void 0,headers:t.headers instanceof Headers?t.headers:void 0,body:"string"==typeof t.body?t.body:void 0}}function bi(e){var t,n;if("object"!=typeof e||null===e)return{error:"unknown_error",error_description:String(e)};const r=e;let o;if(r.response instanceof Response)try{o=new Headers(r.response.headers),o.delete("set-cookie")}catch(e){o=void 0}const i={error:null!==(t=r.error)&&void 0!==t?t:"",error_description:null!==(n=r.error_description)&&void 0!==n?n:"",message:r.message,statusCode:"number"==typeof r.status?r.status:void 0,headers:o};if("mfa_required"===r.error&&r.cause){i.mfa_token="string"==typeof r.cause.mfa_token?r.cause.mfa_token:void 0;const e=r.cause.mfa_requirements;"object"==typeof e&&null!==e&&(i.mfa_requirements=e)}return i}var Si=class extends Error{constructor(e,t){super(t),b(this,"code",void 0),this.name="NotSupportedError",this.code=e}},Ei=class extends Error{constructor(e,t,n){super(t),b(this,"cause",void 0),b(this,"code",void 0),b(this,"statusCode",void 0),b(this,"headers",void 0),b(this,"body",void 0),this.code=e,this.cause=n&&{error:n.error,error_description:n.error_description,message:n.message,mfa_token:n.mfa_token,mfa_requirements:n.mfa_requirements};const r=Ai(n);this.statusCode=r.statusCode,this.headers=r.headers,this.body=r.body}},_i=class extends Ei{constructor(e,t){super("token_by_code_error",e,t),this.name="TokenByCodeError"}},Ri=class extends Ei{constructor(e,t){super("token_by_client_credentials_error",e,t),this.name="TokenByClientCredentialsError"}},Ti=class extends Ei{constructor(e,t){super("token_by_refresh_token_error",e,t),this.name="TokenByRefreshTokenError"}},Pi=class extends Ei{constructor(e,t){super("token_by_password_error",e,t),this.name="TokenByPasswordError"}},Oi=class extends Ei{constructor(e,t){super("token_for_connection_error",e,t),this.name="TokenForConnectionErrorCode"}},Ci=class extends Ei{constructor(e,t){super("token_exchange_error",e,t),this.name="TokenExchangeError"}},Ni=class extends Ei{constructor(e,t){super("token_revocation_error",e,t),this.name="TokenRevocationError"}},Ii=class extends Ei{constructor(e,t){super("user_info_error",e,t),this.name="UserInfoError"}},Di=class extends Error{constructor(e){super(e),b(this,"code","verify_logout_token_error"),this.name="VerifyLogoutTokenError"}},ki=class extends Ei{constructor(e){super("backchannel_authentication_error","There was an error when trying to use Client-Initiated Backchannel Authentication.",e),b(this,"code","backchannel_authentication_error"),this.name="BackchannelAuthenticationError"}},Li=class extends Ei{constructor(e){super("build_authorization_url_error","There was an error when trying to build the authorization URL.",e),this.name="BuildAuthorizationUrlError"}},Mi=class extends Ei{constructor(e){super("build_link_user_url_error","There was an error when trying to build the Link User URL.",e),this.name="BuildLinkUserUrlError"}},xi=class extends Ei{constructor(e){super("build_unlink_user_url_error","There was an error when trying to build the Unlink User URL.",e),this.name="BuildUnlinkUserUrlError"}},Ui=class extends Error{constructor(){super("The client secret or client assertion signing key must be provided."),b(this,"code","missing_client_auth_error"),this.name="MissingClientAuthError"}},Bi=class extends Error{constructor(e){super(e),b(this,"code","organization_validation_error"),this.name="OrganizationValidationError"}},Hi=class extends Error{constructor(e){super(e||"fullResponse: true requested but no HTTP Response was captured. This is a bug in CapturingFetch."),b(this,"code","missing_captured_response_error"),this.name="MissingCapturedResponseError"}};function Fi(e){try{const t=new Headers(e);return t.delete("set-cookie"),t}catch(e){return new Headers}}function ji(e,t,n){var r;const o="object"==typeof t&&null!==t?t:void 0,i=null!==(r=null==o?void 0:o.response)&&void 0!==r?r:n,a="number"==typeof(null==o?void 0:o.status)?o.status:null==i?void 0:i.status;"number"==typeof a&&(e.statusCode=a),null!=i&&i.headers&&(e.headers=Fi(i.headers))}function Gi(e){return Object.entries(e).filter(e=>void 0!==R(e,2)[1]).reduce((e,t)=>E(E({},e),{},{[t[0]]:t[1]}),{})}function Wi(e){if(!e.trim())throw new Bi("organization must not be blank")}function Ki(e,t){if(!e)return;const n=t.trim();if(n.startsWith("org_")){const t=e.org_id;if("string"!=typeof t)throw new Bi("Organization Id (org_id) claim must be a string present in the ID token");if(t!==n)throw new Bi('Organization Id (org_id) claim value mismatch in the ID token; expected "'.concat(n,'", found "').concat(t,'"'))}else{const t=e.org_name;if("string"!=typeof t)throw new Bi("Organization Name (org_name) claim must be a string present in the ID token");if(t.toLowerCase()!==n.toLowerCase())throw new Bi('Organization Name (org_name) claim value mismatch in the ID token; expected "'.concat(n,'", found "').concat(t,'"'))}}var Ji=class extends Error{constructor(e,t,n){super(t),b(this,"cause",void 0),b(this,"code",void 0),b(this,"statusCode",void 0),b(this,"headers",void 0),b(this,"body",void 0),this.code=e,this.cause=n&&{error:n.error,error_description:n.error_description,message:n.message};const r=Ai(n);this.statusCode=r.statusCode,this.headers=r.headers,this.body=r.body}},Xi=class extends Ji{constructor(e,t){super("mfa_list_authenticators_error",e,t),this.name="MfaListAuthenticatorsError"}},Yi=class extends Ji{constructor(e,t){super("mfa_enrollment_error",e,t),this.name="MfaEnrollmentError"}},qi=class extends Ji{constructor(e,t){super("mfa_delete_authenticator_error",e,t),this.name="MfaDeleteAuthenticatorError"}},zi=class extends Ji{constructor(e,t){super("mfa_challenge_error",e,t),this.name="MfaChallengeError"}},Vi=class extends Ji{constructor(e,t){super("mfa_verify_error",e,t),this.name="MfaVerifyError"}};function Zi(e){return{id:e.id,authenticatorType:e.authenticator_type,active:e.active,name:e.name,oobChannels:e.oob_channels,type:e.type}}var $i=class e{constructor(e,t,n,r,o,i,a){b(this,"accessToken",void 0),b(this,"idToken",void 0),b(this,"refreshToken",void 0),b(this,"expiresAt",void 0),b(this,"scope",void 0),b(this,"claims",void 0),b(this,"authorizationDetails",void 0),b(this,"tokenType",void 0),b(this,"issuedTokenType",void 0),b(this,"recoveryCode",void 0),b(this,"act",void 0),this.accessToken=e,this.idToken=n,this.refreshToken=r,this.expiresAt=t,this.scope=o,this.claims=i,this.authorizationDetails=a}static fromTokenEndpointResponse(t){const n=t.id_token?t.claims():void 0,r=new e(t.access_token,Math.floor(Date.now()/1e3)+Number(t.expires_in),t.id_token,t.refresh_token,t.scope,n,t.authorization_details);return r.tokenType=t.token_type,r.issuedTokenType=t.issued_token_type,r}};function Qi(e,t){if(!1===t.enabled)return e;const n={name:t.name,version:t.version},r=btoa(JSON.stringify(n));return async(t,n)=>{const o=t instanceof Request?new Headers(t.headers):new Headers;return null!=n&&n.headers&&new Headers(n.headers).forEach((e,t)=>{o.set(t,e)}),o.set("Auth0-Client",r),e(t,E(E({},n),{},{headers:o}))}}function ea(e){var t,n;return!1===(null==e?void 0:e.enabled)?e:{enabled:!0,name:null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"@auth0/auth0-auth-js",version:null!==(n=null==e?void 0:e.version)&&void 0!==n?n:"1.16.0"}}function ta(e){let t;const n=async(n,r)=>{const o=await e(n,r);return t=o.clone(),o};return n.getCapturedResponse=()=>t,n}function na(e,t,n){if(!t)return e;const r=t.signal,o=t.headers,i=t.customFetch,a=i?Qi(i,n):e;return r||o?async(e,t)=>{const n=o?new Headers(e instanceof Request?e.headers:void 0):void 0;if(n&&null!=t&&t.headers&&new Headers(t.headers).forEach((e,t)=>n.set(t,e)),o)for(const e of Object.entries(o)){var i=R(e,2);const t=i[0],r=i[1],o=t.toLowerCase();"authorization"!==o&&"auth0-client"!==o&&n.set(t,r)}const s=function(e,t){if(!e)return{signal:null!=t?t:void 0};if(!t)return{signal:e};if("undefined"!=typeof AbortSignal&&"function"==typeof AbortSignal.any)return{signal:AbortSignal.any([e,t])};const n=new AbortController,r=[e,t],o=r.find(e=>e.aborted);if(o)return n.abort(o.reason),{signal:n.signal};const i=[],a=()=>{r.forEach((e,t)=>{const n=i[t];n&&e.removeEventListener("abort",n)})};return r.forEach((e,t)=>{const r=()=>{a(),n.abort(e.reason)};i[t]=r,e.addEventListener("abort",r,{once:!0})}),{signal:n.signal,cleanup:a}}(r,null==t?void 0:t.signal);try{return await a(e,E(E(E({},t),n&&{headers:n}),{},{signal:s.signal}))}finally{var c;null===(c=s.cleanup)||void 0===c||c.call(s)}}:a}var ra={otp:"http://auth0.com/oauth/grant-type/mfa-otp",oob:"http://auth0.com/oauth/grant-type/mfa-oob","recovery-code":"http://auth0.com/oauth/grant-type/mfa-rec
2overy-code"},oa=(So=new WeakMap,Eo=new WeakMap,_o=new WeakMap,Ro=new WeakMap,To=new WeakMap,Po=new WeakMap,Oo=new WeakMap,Co=new WeakSet,class{constructor(e){var t,n;A(this,Co),v(this,So,void 0),v(this,Eo,void 0),v(this,_o,void 0),v(this,Ro,void 0),v(this,To,void 0),v(this,Po,void 0),v(this,Oo,void 0),w(So,this,"https://".concat(e.domain)),w(Eo,this,e.clientId),w(_o,this,e.clientSecret),w(Ro,this,null!==(t=e.customFetch)&&void 0!==t?t:function(){return fetch(...arguments)}),w(To,this,null!==(n=e.telemetryConfig)&&void 0!==n?n:ea()),w(Po,this,e.getConfiguration),w(Oo,this,e.createCaptureConfiguration)}async listAuthenticators(e,t){const n="".concat(g(So,this),"/mfa/authenticators"),r=e.mfaToken,o=await h(Co,this,ia).call(this,t)(n,{method:"GET",headers:{Authorization:"Bearer ".concat(r),"Content-Type":"application/json"}});if(!o.ok){const e=await o.clone().text(),t=o.status,n=Fi(o.headers);let i;try{i=JSON.parse(e)}catch(r){throw new Xi("Failed to list authenticators",{error:"unknown_error",error_description:"Failed to list authenticators",statusCode:t,headers:n,body:e})}throw new Xi(i.error_description||"Failed to list authenticators",E(E({},i),{},{statusCode:t,headers:n,body:e}))}return(await o.json()).map(Zi)}async enrollAuthenticator(e,t){const n="".concat(g(So,this),"/mfa/associate"),r=e.mfaToken,o=_(e,Ao),i={authenticator_types:o.authenticatorTypes};"oobChannels"in o&&(i.oob_channels=o.oobChannels),"phoneNumber"in o&&o.phoneNumber&&(i.phone_number=o.phoneNumber),"email"in o&&o.email&&(i.email=o.email);const a=await h(Co,this,ia).call(this,t)(n,{method:"POST",headers:{Authorization:"Bearer ".concat(r),"Content-Type":"application/json"},body:JSON.stringify(i)});if(!a.ok){const e=await a.clone().text(),t=a.status,n=Fi(a.headers);let o;try{o=JSON.parse(e)}catch(r){throw new Yi("Failed to enroll authenticator",{error:"unknown_error",error_description:"Failed to enroll authenticator",statusCode:t,headers:n,body:e})}throw new Yi(o.error_description||"Failed to enroll authenticator",E(E({},o),{},{statusCode:t,headers:n,body:e}))}return function(e){if("otp"===e.authenticator_type)return{authenticatorType:"otp",secret:e.secret,barcodeUri:e.barcode_uri,recoveryCodes:e.recovery_codes,id:e.id};if("oob"===e.authenticator_type)return{authenticatorType:"oob",oobChannel:e.oob_channel,oobCode:e.oob_code,bindingMethod:e.binding_method,id:e.id,barcodeUri:e.barcode_uri,recoveryCodes:e.recovery_codes};throw new Error("Unexpected authenticator type: ".concat(e.authenticator_type))}(await a.json())}async deleteAuthenticator(e,t){const n=e.authenticatorId,r=e.mfaToken,o="".concat(g(So,this),"/mfa/authenticators/").concat(encodeURIComponent(n)),i=await h(Co,this,ia).call(this,t)(o,{method:"DELETE",headers:{Authorization:"Bearer ".concat(r),"Content-Type":"application/json"}});if(!i.ok){const e=await i.clone().text(),t=i.status,n=Fi(i.headers);let o;try{o=JSON.parse(e)}catch(r){throw new qi("Failed to delete authenticator",{error:"unknown_error",error_description:"Failed to delete authenticator",statusCode:t,headers:n,body:e})}throw new qi(o.error_description||"Failed to delete authenticator",E(E({},o),{},{statusCode:t,headers:n,body:e}))}}async challengeAuthenticator(e,t){const n="".concat(g(So,this),"/mfa/challenge"),r=e.mfaToken,o=_(e,bo),i={mfa_token:r,client_id:g(Eo,this),challenge_type:o.challengeType};g(_o,this)&&(i.client_secret=g(_o,this)),o.authenticatorId&&(i.authenticator_id=o.authenticatorId);const a=await h(Co,this,ia).call(this,t)(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!a.ok){const e=await a.clone().text(),t=a.status,n=Fi(a.headers);let o;try{o=JSON.parse(e)}catch(r){throw new zi("Failed to challenge authenticator",{error:"unknown_error",error_description:"Failed to challenge authenticator",statusCode:t,headers:n,body:e})}throw new zi(o.error_description||"Failed to challenge authenticator",E(E({},o),{},{statusCode:t,headers:n,body:e}))}return function(e){const t={challengeType:e.challenge_type};return void 0!==e.oob_code&&(t.oobCode=e.oob_code),void 0!==e.binding_method&&(t.bindingMethod=e.binding_method),t}(await a.json())}async verify(e,t){if(!g(Po,this))throw new Error("MFA verify requires a configuration provider (getConfiguration was not set)");const n={mfa_token:e.mfaToken};if(e.audience&&(n.audience=e.audience),"otp"===e.factorType?n.otp=e.otp:"oob"===e.factorType?(n.oob_code=e.oobCode,e.bindingCode&&(n.binding_code=e.bindingCode)):"recovery-code"===e.factorType&&(n.recovery_code=e.recoveryCode),e.fullResponse){var r;if(!g(Oo,this))throw new Error("MFA verify fullResponse requires a capture-config factory (createCaptureConfiguration was not set)");const s=ta(null!==(r=(await g(Po,this).call(this,t))[$n])&&void 0!==r?r:fetch),c=await g(Oo,this).call(this,s);
vendor: 31,106 bytes, line 2
2try{const t=await _r(c,ra[e.factorType],n),r=$i.fromTokenEndpointResponse(t);t.recovery_code&&(r.recoveryCode=t.recovery_code);const o=s.getCapturedResponse();if(!o)throw new Hi;return{data:r,response:o}}catch(e){var o,i,a;if(e instanceof Hi)throw e;if(e instanceof Vi)throw e;const t=e,n=new Vi(t.error_description||t.message||"Failed to verify MFA challenge",{error:null!==(o=t.error)&&void 0!==o?o:"mfa_verify_error",error_description:null!==(i=null!==(a=t.error_description)&&void 0!==a?a:t.message)&&void 0!==i?i:"Failed to verify MFA challenge"});throw ji(n,e,s.getCapturedResponse()),n}}const s=await g(Po,this).call(this,t);try{const t=await _r(s,ra[e.factorType],n),r=$i.fromTokenEndpointResponse(t);return t.recovery_code&&(r.recoveryCode=t.recovery_code),r}catch(e){var c,l,u;if(e instanceof Vi)throw e;const t=e,n=new Vi(t.error_description||t.message||"Failed to verify MFA challenge",{error:null!==(c=t.error)&&void 0!==c?c:"mfa_verify_error",error_description:null!==(l=null!==(u=t.error_description)&&void 0!==u?u:t.message)&&void 0!==l?l:"Failed to verify MFA challenge"});throw ji(n,e),n}}});function ia(e){return na(g(Ro,this),e,g(To,this))}var aa=class extends Error{constructor(e,t,n){super(t),b(this,"cause",void 0),b(this,"code",void 0),b(this,"statusCode",void 0),b(this,"headers",void 0),b(this,"body",void 0),this.code=e,this.cause=n&&{error:n.error,error_description:n.error_description,message:n.message};const r=Ai(n);this.statusCode=r.statusCode,this.headers=r.headers,this.body=r.body}},sa=class extends aa{constructor(e,t){super("passkey_register_error",e,t),this.name="PasskeyRegisterError"}},ca=class extends aa{constructor(e,t){super("passkey_challenge_error",e,t),this.name="PasskeyChallengeError"}},la=class extends aa{constructor(e,t){super("passkey_get_token_error",e,t),this.name="PasskeyGetTokenError",this.cause=t&&{error:t.error,error_description:t.error_description,message:t.message,mfa_token:t.mfa_token,mfa_requirements:t.mfa_requirements}}};function ua(e){return e.useMtls?{}:e.clientSecret?{client_secret:e.clientSecret}:{}}var da="urn:okta:params:oauth:grant-type:webauthn",pa=(No=new WeakMap,Io=new WeakMap,Do=new WeakMap,ko=new WeakMap,Lo=new WeakMap,Mo=new WeakMap,xo=new WeakSet,class{constructor(e){var t,n;A(this,xo),v(this,No,void 0),v(this,Io,void 0),v(this,Do,void 0),v(this,ko,void 0),v(this,Lo,void 0),v(this,Mo,void 0),w(No,this,"https://".concat(e.domain)),w(Io,this,e.clientId),w(Do,this,{clientSecret:e.clientSecret,useMtls:e.useMtls}),w(ko,this,null!==(t=e.customFetch)&&void 0!==t?t:function(){return fetch(...arguments)}),w(Lo,this,null!==(n=e.telemetryConfig)&&void 0!==n?n:ea()),w(Mo,this,e.grantRequest)}async register(e,t){const n="".concat(g(No,this),"/passkey/register"),r=E(E(E(E(E(E(E(E({},e.email&&{email:e.email}),e.name&&{name:e.name}),e.phoneNumber&&{phone_number:e.phoneNumber}),e.username&&{username:e.username}),e.givenName&&{given_name:e.givenName}),e.familyName&&{family_name:e.familyName}),e.nickname&&{nickname:e.nickname}),e.picture&&{picture:e.picture}),o=E(E({client_id:g(Io,this)},ua(g(Do,this))),{},{user_profile:r});e.realm&&(o.realm=e.realm),e.organization&&(o.organization=e.organization),e.userMetadata&&(o.user_metadata=e.userMetadata);const i=await h(xo,this,ma).call(this,t)(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!i.ok){const e=await h(xo,this,ha).call(this,i),t=new sa(e.error_description||"Failed to request signup challenge",e);throw t.statusCode=i.status,t.headers=Fi(i.headers),t}return{authSession:(a=await i.json()).auth_session,authnParamsPublicKey:E({},a.authn_params_public_key)};var a}async challenge(e,t){const n="".concat(g(No,this),"/passkey/challenge"),r=E({client_id:g(Io,this)},ua(g(Do,this)));null!=e&&e.realm&&(r.realm=e.realm),null!=e&&e.organization&&(r.organization=e.organization);const o=await h(xo,this,ma).call(this,t)(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!o.ok){const e=await h(xo,this,ha).call(this,o),t=new ca(e.error_description||"Failed to request login challenge",e);throw t.statusCode=o.status,t.headers=Fi(o.headers),t}return{authSession:(i=await o.json()).auth_session,authnParamsPublicKey:E({},i.authn_params_public_key)};var i}async getTokenByPasskey(e,t){void 0!==e.organization&&Wi(e.organization);const n=new URLSearchParams({auth_session:e.authSession,authn_response:JSON.stringify(e.credential)});let r;e.realm&&n.append("realm",e.realm),e.scope&&n.append("scope",e.scope),e.audience&&n.append("audience",e.audience),e.organization&&n.append("organization",e.organization);try{r=await g(Mo,this).call(this,da,n,t,e.fullResponse)}catch(e){if(e instanceof Hi)throw e;const t=bi(e),n=new la(t.error_description||"Failed to exchange passkey credential for tokens.",t);throw ji(n,e),n}if(e.fullResponse){const t=r;return e.organization&&Ki(t.data.claims,e.organization),t}const o=r;return e.organization&&Ki(o.claims,e.organization),o}});function ma(e){return na(g(ko,this),e,g(Lo,this))}async function ha(e){const t=await e.clone().text();try{return E(E({},JSON.parse(t)),{},{statusCode:e.status,headers:e.headers,body:t})}catch(n){return{error:"unknown_error",error_description:"HTTP ".concat(e.status," ").concat(e.statusText),statusCode:e.status,headers:e.headers,body:t}}}var fa=class extends Error{constructor(e,t,n){super(t),b(this,"cause",void 0),b(this,"code",void 0),b(this,"statusCode",void 0),b(this,"headers",void 0),b(this,"body",void 0),Object.setPrototypeOf(this,new.target.prototype),this.code=e,this.cause=n&&(n.error||n.error_description)?{error:n.error,error_description:n.error_description,message:n.message,mfa_token:n.mfa_token,mfa_requirements:n.mfa_requirements}:void 0;const r=Ai(n);this.statusCode=r.statusCode,this.headers=r.headers,this.body=r.body}},ya=class extends fa{constructor(e,t){super("passwordless_start_error",e,t),this.name="PasswordlessStartError"}},ga=class extends fa{constructor(e,t){super("passwordless_verify_error",e,t),this.name="PasswordlessVerifyError"}},va=class extends fa{constructor(e,t){super("passwordless_db_get_token_error",e,t),this.name="PasswordlessDbGetTokenError"}},wa=class extends fa{constructor(e,t,n,r,o){super("passwordless_challenge_error",e,n),b(this,"statusCode",void 0),b(this,"validationErrors",void 0),this.name="PasswordlessChallengeError",this.statusCode=t,this.validationErrors=r,this.headers=null!=o?o:this.headers}};function Aa(e){return/^\+[1-9]\d{1,14}$/.test(e)}async function ba(e,t,n){if(e.useMtls)return{};if(e.clientAssertionSigningKey){var r;const o=null!==(r=e.clientAssertionSigningAlg)&&void 0!==r?r:"RS256",i=e.clientAssertionSigningKey instanceof CryptoKey?e.clientAssertionSigningKey:await wo(e.clientAssertionSigningKey,o);return{client_assertion:await new Qr({}).setProtectedHeader({alg:o}).setIssuer(t).setSubject(t).setAudience("https://".concat(n,"/")).setJti(crypto.randomUUID()).setIssuedAt().setExpirationTime("".concat(120,"s")).sign(i),client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}if(e.clientSecret)return{client_secret:e.clientSecret};throw new Ui}var Sa=(Uo=new WeakMap,Bo=new WeakMap,Ho=new WeakMap,Fo=new WeakMap,jo=new WeakMap,Go=new WeakMap,Wo=new WeakMap,Ko=new WeakSet,class{constructor(e){var t,n;A(this,Ko),v(this,Uo,void 0),v(this,Bo,void 0),v(this,Ho,void 0),v(this,Fo,void 0),v(this,jo,void 0),v(this,Go,void 0),v(this,Wo,void 0),w(Bo,this,e.domain),w(Uo,this,"https://".concat(e.domain)),w(Ho,this,e.clientId),w(Fo,this,null!==(t=e.customFetch)&&void 0!==t?t:function(){return fetch(...arguments)}),w(jo,this,null!==(n=e.telemetryConfig)&&void 0!==n?n:ea()),w(Go,this,{clientSecret:e.clientSecret,clientAssertionSigningKey:e.clientAssertionSigningKey,clientAssertionSigningAlg:e.clientAssertionSigningAlg,useMtls:e.useMtls}),w(Wo,this,e.grantRequest)}async sendEmail(e,t){const n=await h(Ko,this,_a).call(this,function(e){var t;const n=null!==(t=e.send)&&void 0!==t?t:"code",r={email:e.email,connection:"email",send:n};return"link"===n&&e.authParams&&(r.authParams=e.authParams),r}(e),"Failed to send passwordless email",e.language,t);if(e.fullResponse)return{data:void 0,response:n}}async sendSms(e,t){if(!Aa(e.phoneNumber))throw new ya("Phone number must be in E.164 format (e.g. +14155550100).");const n=await h(Ko,this,_a).call(this,function(e){return{phone_number:e.phoneNumber,connection:"sms"}}(e),"Failed to send passwordless SMS",e.language,t);if(e.fullResponse)return{data:void 0,response:n}}async challengeWithEmail(e,t){const n=function(e){var t;return{email:e.email,connection:e.connection,allow_signup:null!==(t=e.allowSignup)&&void 0!==t&&t}}(e);return h(Ko,this,Ra).call(this,n,"Failed to request email OTP challenge",t)}async challengeWithPhoneNumber(e,t){if(!Aa(e.phoneNumber))throw new wa("Phone number must be in E.164 format (e.g. +14155550100).",0,void 0,void 0);const n=function(e){var t;const n={phone_number:e.phoneNumber,connection:e.connection,allow_signup:null!==(t=e.allowSignup)&&void 0!==t&&t};return e.deliveryMethod&&(n.delivery_method=e.deliveryMethod),n}(e);return h(Ko,this,Ra).call(this,n,"Failed to request phone OTP challenge",t)}async getTokenByPasswordlessDbConnection(e,t){const n=new URLSearchParams({auth_session:e.authSession,otp:e.otp});if(e.scope&&n.append("scope",e.scope),e.audience&&n.append("audience",e.audience),!g(Wo,this))throw new va("Missing grant request delegate.",bi(new Error("missing grantRequest")));try{return await g(Wo,this).call(this,"http://auth0.com/oauth/grant-type/passwordless/otp",n,t,e.fullResponse)}catch(e){if(e instanceof Hi)throw e;const t=new va("There was an error while trying to request a token.",bi(e)),n=e;throw t.statusCode=n._statusCode,t.headers=n._headers,t}}});function Ea(e){return na(g(Fo,this),e,g(jo,this))}async function _a(e,t,n,r){var o;const i=await ba(g(Go,this),g(Ho,this),g(Bo,this)),a=E(E({client_id:g(Ho,this)},e),i);let s;try{s=await h(Ko,this,Ea).call(this,r)("".concat(g(Uo,this),"/passwordless/start"),{method:"POST",headers:E({"Content-Type":"application/json"},n?{"x-request-language":n}:{}),body:JSON.stringify(a)})}catch(e){throw new ya("".concat(t,": a network error occurred."))}if(s.ok)return s;const c=await s.clone().text();let l;if(204!==s.status)try{l=JSON.parse(c)}catch(e){l=void 0}const u=new ya((null===(o=l)||void 0===o?void 0:o.error_description)||t,l);throw u.statusCode=s.status,u.headers=Fi(s.headers),u.body=c,u}async function Ra(e,t,n){var r,o;const i=await ba(g(Go,this),g(Ho,this),g(Bo,this)),a=E(E({client_id:g(Ho,this)},e),i);let s;try{s=await h(Ko,this,Ea).call(this,n)("".concat(g(Uo,this),"/otp/challenge"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})}catch(e){throw new wa("challenge error: a network error occurred.",0,void 0,void 0)}if(s.ok){let n;try{n=await s.json()}catch(e){throw new wa("".concat(t,": could not parse the response body."),s.status,void 0,void 0,Fi(s.headers))}return{authSession:n.auth_session}}const c=await s.clone().text();let l;try{l=JSON.parse(c)}catch(e){l=void 0}const u=l?E(E({},l),{},{statusCode:s.status,headers:s.headers,body:c}):{error:"",error_description:"",statusCode:s.status,headers:s.headers,body:c};throw new wa((null===(r=l)||void 0===r?void 0:r.error_description)||t,s.status,u,null===(o=l)||void 0===o?void 0:o.validation_errors,Fi(s.headers))}var Ta=class extends Error{constructor(e,t,n){super(t),b(this,"cause",void 0),b(this,"code",void 0),b(this,"statusCode",void 0),b(this,"headers",void 0),b(this,"body",void 0),Object.setPrototypeOf(this,new.target.prototype),this.code=e,this.cause=n&&{error:n.error,error_description:n.error_description,message:n.message};const r=Ai(n);this.statusCode=r.statusCode,this.headers=r.headers,this.body=r.body}},Pa=class extends Ta{constructor(e,t){super("signup_error",e,t),this.name="SignUpError"}},Oa=class extends Ta{constructor(e,t){super("change_password_error",e,t),this.name="ChangePasswordError"}};function Ca(e,t,n){for(const r of t)if(null===e[r]||void 0===e[r]||""===e[r])throw new n('Required parameter "'.concat(String(r),'" was null, undefined, or empty.'))}function Na(e){var t,n;return{id:null!==(t=null!==(n=e._id)&&void 0!==n?n:e.user_id)&&void 0!==t?t:e.id,email:"string"==typeof e.email?e.email:"",emailVerified:Boolean(e.email_verified),username:e.username,givenName:e.given_name,familyName:e.family_name,name:e.name,nickname:e.nickname,picture:e.picture,userMetadata:e.user_metadata}}var Ia=(Jo=new WeakMap,Xo=new WeakMap,Yo=new WeakMap,qo=new WeakMap,zo=new WeakSet,class{constructor(e){var t,n;A(this,zo),v(this,Jo,void 0),v(this,Xo,void 0),v(this,Yo,void 0),v(this,qo,void 0),w(Jo,this,"https://".concat(e.domain)),w(Xo,this,e.clientId),w(Yo,this,null!==(t=e.customFetch)&&void 0!==t?t:function(){return fetch(...arguments)}),w(qo,this,null!==(n=e.telemetryConfig)&&void 0!==n?n:ea())}async signUp(e,t){var n;Ca(e,["email","password","connection"],Pa);const r=E({client_id:null!==(n=e.clientId)&&void 0!==n?n:g(Xo,this)},function(e){const t={email:e.email,password:e.password,connection:e.connection};return void 0!==e.username&&(t.username=e.username),void 0!==e.givenName&&(t.given_name=e.givenName),void 0!==e.familyName&&(t.family_name=e.familyName),void 0!==e.name&&(t.name=e.name),void 0!==e.nickname&&(t.nickname=e.nickname),void 0!==e.picture&&(t.picture=e.picture),void 0!==e.userMetadata&&(t.user_metadata=e.userMetadata),t}(e)),o=await h(zo,this,Da).call(this,"/dbconnections/signup",r,Pa,"Failed to sign up",t);if(e.fullResponse){const e=o.clone();return{data:Na(await o.json()),response:e}}return Na(await o.json())}async changePassword(e,t){var n;if(Ca(e,["connection"],Oa),!e.email&&!e.username)throw new Oa('Either "email" or "username" is required.');const r=E({client_id:null!==(n=e.clientId)&&void 0!==n?n:g(Xo,this)},function(e){const t={connection:e.connection};return void 0!==e.email&&(t.email=e.email),void 0!==e.username&&(t.username=e.username),void 0!==e.organization&&(t.organization=e.organization),t}(e)),o=await h(zo,this,Da).call(this,"/dbconnections/change_password",r,Oa,"Failed to request a password change",t);if(e.fullResponse){const e=o.clone();return{data:await o.text(),response:e}}return o.text()}});async function Da(e,t,n,r,o){const i=na(g(Yo,this),o,g(qo,this));let a;try{a=await i("".concat(g(Jo,this)).concat(e),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})}catch(e){throw new n("".concat(r,": a network error occurred."))}if(a.ok)return a;const s=await a.clone().text(),c=await async function(e){let t;try{t=await e.json()}catch(e){return}return"string"==typeof t.error?t:"string"==typeof t.code?{error:t.code,error_description:"string"==typeof t.description?t.description:""}:void 0}(a.clone()),l=new n((null==c?void 0:c.error_description)||r,null!=c?c:{error:"unknown_error",error_description:r});throw l.statusCode=a.status,l.headers=Fi(a.headers),l.body=s,l}var ka=class extends Error{constructor(e,t,n){super(t),b(this,"code",void 0),b(this,"cause",void 0),this.name="AnonymousSessionError",this.code=e,this.cause=n&&{error:n.error,error_description:n.error_description,message:n.message}}};async function La(e,t,n){if(e.useMtls)return{};if(e.clientAssertionSigningKey){var r;const o=null!==(r=e.clientAssertionSigningAlg)&&void 0!==r?r:"RS256",i=e.clientAssertionSigningKey instanceof CryptoKey?e.clientAssertionSigningKey:await wo(e.clientAssertionSigningKey,o);return{client_assertion:await new Qr({}).setProtectedHeader({alg:o}).setIssuer(t).setSubject(t).setAudience("https://".concat(n,"/")).setJti(crypto.randomUUID()).setIssuedAt().setExpirationTime("".concat(120,"s")).sign(i),client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}return e.clientSecret?{client_secret:e.clientSecret}:{}}var Ma=new Set(["session_expired","invalid_session_token"]);async function xa(e){const t="Request failed with status ".concat(e.status);let n={};try{n=await e.json()}catch(e){}return{error:"string"==typeof n.error?n.error:"server_error",error_description:"string"==typeof n.error_description?n.error_description:t}}var Ua=(Vo=new WeakMap,Zo=new WeakMap,$o=new WeakMap,Qo=new WeakMap,ei=new WeakMap,ti=new WeakMap,ni=new WeakMap,ri=new WeakMap,oi=new WeakSet,class{constructor(e){var t;A(this,oi),v(this,Vo,void 0),v(this,Zo,void 0),v(this,$o,void 0),v(this,Qo,void 0),v(this,ei,void 0),v(this,ti,void 0),v(this,ni,void 0),v(this,ri,void 0),w(Vo,this,e.domain),w(Zo,this,"https://".concat(e.domain)),w($o,this,e.clientId),w(Qo,this,e.clientSecret),w(ei,this,e.clientAssertionSigningKey),w(ti,this,e.clientAssertionSigningAlg),w(ni,this,e.useMtls),w(ri,this,null!==(t=e.customFetch)&&void 0!==t?t:function(){return fetch(...arguments)})}async createSession(e){const t={client_id:g($o,this)};null!=e&&e.audience&&(t.audience=e.audience),null!=e&&e.scope&&(t.scope=e.scope),null!=e&&e.metadata&&(t.metadata=e.metadata);const n=await h(oi,this,Ha).call(this,t);if(!n.sessionToken)throw new ka("server_error","session_token missing from create session response");return{sessionToken:n.sessionToken,accessToken:n.accessToken,expiresAt:n.expiresAt,sessionTokenExpiresAt:n.sessionTokenExpiresAt,scope:n.scope}}async getAccessToken(e){if(null==e||!e.sessionToken)return this.createSession({audience:null==e?void 0:e.audience,scope:null==e?void 0:e.scope});try{return await h(oi,this,Ba).call(this,e.sessionToken,e)}catch(t){if(t instanceof ka&&Ma.has(t.code))return E(E({},await this.createSession({audience:null==e?void 0:e.audience,scope:null==e?void 0:e.scope})),{},{sessionReplaced:!0});throw t}}async logout(){const e="".concat(g(Zo,this),"/anonymous/logout"),t={client_id:g($o,this)},n=await g(ri,this).call(this,e,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",redirect:"error",body:JSON.stringify(t)});if(!n.ok){const e=await xa(n);throw new ka(e.error,e.error_description||"Failed to end anonymous session",e)}}async mintTransferToken(e){const t="".concat(g(Zo,this),"/anonymous/token"),n={client_id:g($o,this),session_token:e,audience:"urn:auth0:anon_transfer"};try{const e=await La({clientSecret:g(Qo,this),clientAssertionSigningKey:g(ei,this),clientAssertionSigningAlg:g(ti,this),useMtls:g(ni,this)},g($o,this),g(Vo,this));Object.assign(n,e);const r=await g(ri,this).call(this,t,{method:"POST",headers:{"Content-Type":"application/json"},redirect:"error",body:JSON.stringify(n)});if(!r.ok)return null;const o=await r.json();return"string"==typeof o.anon_transfer_token?o.anon_transfer_token:null}catch(e){return null}}});async function Ba(e,t){const n={client_id:g($o,this),session_token:e};null!=t&&t.audience&&(n.audience=t.audience),null!=t&&t.scope&&(n.scope=t.scope);const r=await h(oi,this,Ha).call(this,n);return{sessionToken:e,accessToken:r.accessToken,expiresAt:r.expiresAt,sessionTokenExpiresAt:r.sessionTokenExpiresAt,scope:r.scope,sessionReplaced:!1}}async function Ha(e){const t="".concat(g(Zo,this),"/anonymous/token"),n=await La({clientSecret:g(Qo,this),clientAssertionSigningKey:g(ei,this),clientAssertionSigningAlg:g(ti,this),useMtls:g(ni,this)},g($o,this),g(Vo,this));Object.assign(e,n);const r=await g(ri,this).call(this,t,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",redirect:"error",body:JSON.stringify(e)});if(!r.ok){const e=await xa(r);throw new ka(e.error,e.error_description||"Anonymous token request failed",e)}let o;try{o=await r.json()}catch(e){throw new ka("server_error","Invalid response from anonymous token endpoint")}return function(e){const t=Math.floor(Date.now()/1e3);if("string"!=typeof e.access_token||!e.access_token)throw new ka("server_error","access_token missing or invalid in anonymous token response");const n=e.expires_in;if("number"!=typeof n||!Number.isFinite(n))throw new ka("server_error","expires_in missing or invalid in anonymous token response");return{accessToken:e.access_token,expiresAt:t+n,scope:e.scope,sessionToken:e.session_token,sessionTokenExpiresAt:"number"==typeof e.session_expires_in&&Number.isFinite(e.session_expires_in)?t+e.session_expires_in:void 0}}(o)}var Fa=(ii=new WeakMap,ai=new WeakMap,si=new WeakMap,class{constructor(e,t){v(this,ii,new Map),v(this,ai,void 0),v(this,si,void 0),w(si,this,Math.max(1,Math.floor(e))),w(ai,this,Math.max(0,Math.floor(t)))}get(e){const t=g(ii,this).get(e);if(t){if(!(Date.now()>=t.expiresAt))return g(ii,this).delete(e),g(ii,this).set(e,t),t.value;g(ii,this).delete(e)}}set(e,t,n){g(ii,this).has(e)&&g(ii,this).delete(e);const r=null!=n&&Number.isFinite(n)&&n>0?n:g(ai,this);for(g(ii,this).set(e,{value:t,expiresAt:Date.now()+r});g(ii,this).size>g(si,this);){const e=g(ii,this).keys().next().value;if(void 0===e)break;g(ii,this).delete(e)}}}),ja=new Map;function Ga(e){return{ttlMs:1e3*("number"==typeof(null==e?void 0:e.ttl)?e.ttl:600),maxEntries:"number"==typeof(null==e?void 0:e.maxEntries)&&e.maxEntries>0?e.maxEntries:100}}var Wa=class{static createDiscoveryCache(e){const t=(n=e.maxEntries,r=e.ttlMs,"".concat(n,":").concat(r));var n,r;let o=(i=t,ja.get(i));var i;return o||(o=new Fa(e.maxEntries,e.ttlMs),ja.set(t,o)),o}static createJwksCache(){return{}}},Ka="openid profile email offline_access",Ja=Object.freeze(new Set(["grant_type","client_id","client_secret","client_assertion","client_assertion_type","subject_token","subject_token_type","requested_token_type","actor_token","actor_token_type","audience","aud","resource","resources","resource_indicator","scope","connection","login_hint","organization","assertion"]));function Xa(e){if(null==e)throw new Ci("subject_token is required");if("string"!=typeof e)throw new Ci("subject_token must be a string");if(0===e.trim().length)throw new Ci("subject_token cannot be blank or whitespace");if(e!==e.trim())throw new Ci("subject_token must not include leading or trailing whitespace");if(/^bearer\s+/i.test(e))throw new Ci("subject_token must not include the 'Bearer ' prefix")}function Ya(e,t){if(t)for(const r of Object.entries(t)){var n=R(r,2);const t=n[0],o=n[1];if(!Ja.has(t))if(Array.isArray(o)){if(o.length>20)throw new Ci("Parameter '".concat(t,"' exceeds maximum array size of ").concat(20));o.forEach(n=>{e.append(t,n)})}else e.append(t,o)}}var qa="urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token",za="urn:ietf:params:oauth:grant-type:token-exchange",Va="urn:ietf:params:oauth:token-type:access_token";function Za(e,t){return(n,r)=>{const o=null==r?void 0:r.body;if(t!==da||!(o instanceof URLSearchParams))return e(n,r);const i={};for(const e of o){var a=R(e,2);const t=a[0],n=a[1];i[t]="authn_response"===t?JSON.parse(n):n}const s=new Headers(null==r?void 0:r.headers);return s.set("Content-Type","application/json"),e(n,E(E({},r),{},{headers:s,body:JSON.stringify(i)}))}}ci=new WeakMap,li=new WeakMap,ui=new WeakMap,di=new WeakMap,pi=new WeakMap,mi=new WeakMap,hi=new WeakMap,fi=new WeakMap,yi=new WeakMap,gi=new WeakMap,vi=new WeakMap,wi=new WeakSet;function $a(){const e=g(pi,this).domain.toLowerCase();return"".concat(e,"|mtls:").concat(g(pi,this).useMtls?"1":"0")}async function Qa(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=await h(wi,this,cs).call(this,n),o=new sr(e,g(pi,this).clientId,{client_secret:g(pi,this).clientSecret,use_mtls_endpoint_aliases:g(pi,this).useMtls},r);return o[$n]=null!=t?t:g(mi,this),o}function es(e){return na(g(mi,this),e,g(hi,this))}async function ts(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=await h(wi,this,ns).call(this,t),r=n.configuration,o=n.serverMetadata;if(!e)return{configuration:r,serverMetadata:o};const i=h(wi,this,es).call(this,e);return{configuration:await h(wi,this,Qa).call(this,o,i,t),serverMetadata:o}}async function ns(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=g(e?li:ci,this);if(t&&g(ui,this))return{configuration:t,serverMetadata:g(ui,this)};const n=h(wi,this,$a).call(this);e||await h(wi,this,cs).call(this,!1);const r=g(yi,this).get(n);if(r)return h(wi,this,rs).call(this,r.serverMetadata,e);const o=g(gi,this).get(n);if(o){const t=await o;return h(wi,this,rs).call(this,t.serverMetadata,e)}const i=(async()=>{const e=(await ir(new URL("https://".concat(g(pi,this).domain)),g(pi,this).clientId,{use_mtls_endpoint_aliases:g(pi,this).useMtls},(e,t,n,r)=>{n.set("client_id",t.client_id)},{[$n]:g(mi,this)})).serverMetadata();return g(yi,this).set(n,{serverMetadata:e}),{serverMetadata:e}})();i.catch(()=>{}),g(gi,this).set(n,i);try{const t=(await i).serverMetadata;return h(wi,this,rs).call(this,t,e)}finally{g(gi,this).delete(n)}}async function rs(e,t){const n=await h(wi,this,Qa).call(this,e,void 0,t);return w(ui,this,e),w(t?li:ci,this,n),{configuration:n,serverMetadata:e}}async function os(e,t,n){var r,o,i;const a=(await h(wi,this,ts).call(this,t)).configuration;if("audience"in e||"resource"in e)throw new Ci("audience and resource parameters are not supported for Token Vault exchanges");Xa(e.subjectToken);const s=new URLSearchParams({connection:e.connection,subject_token:e.subjectToken,subject_token_type:null!==e.subjectTokenType&&void 0!==r?r:Va,requested_token_type:null!==e.requestedTokenType&&void 0!==o?o:"http://auth0.com/oauth/token-type/federated-connection-access-token"});if(e.loginHint&&s.append("login_hint",e.loginHint),e.scope&&s.append("scope",e.scope),Ya(s,e.extra),n){var c;const t=ta(null!==a[$n]&&void 0!==c?c:g(mi,this)),r=await h(wi,this,Qa).call(this,a.serverMetadata(),t);try{const e=await _r(r,qa,s),n=$i.fromTokenEndpointResponse(e),o=t.getCapturedResponse();if(!o)throw new Hi;return{data:n,response:o}}catch(n){if(n instanceof Hi)throw n;const r=new Ci("Failed to exchange token for connection '".concat(e.connection,"'."),bi(n)),o=t.getCapturedResponse();throw r.statusCode=null==o?void 0:o.status,r.headers=o?Fi(o.headers):void 0,r}}const l=ta(null!==a[$n]&&void 0!==i?i:g(mi,this)),u=await h(wi,this,Qa).call(this,a.serverMetadata(),l);try{const e=await _r(u,qa,s);return $i.fromTokenEndpointResponse(e)}catch(t){const n=new Ci("Failed to exchange token for connection '".concat(e.connection,"'."),bi(t)),r=l.getCapturedResponse();throw n.statusCode=null==r?void 0:r.status,n.headers=r?Fi(r.headers):void 0,n}}function is(e,t,n){var r;if(n.organization&&Ki(e.claims,n.organization),n.actorToken)if(null!==e.claims&&void 0!==r&&r.act)e.act=e.claims.act;else try{e.act=function(e){if("string"!=typeof e)throw new en("JWTs must use Compact JWS serialization, JWT must be a string");const t=e.split("."),n=t[1],r=t.length;if(5===r)throw new en("Only JWTs using Compact JWS serialization can be decoded");if(3!==r)throw new en("Invalid JWT");if(!n)throw new en("JWTs must contain a payload");let o,i;try{un(n)}catch(e){throw new en("Failed to base64url decode the payload")}try{JSON.parse(Wt.decode(o))}catch(e){throw new en("Failed to parse the decoded payload as JSON")}if(!pn(i))throw new en("Invalid JWT Claims Set");return i}(t.access_token).act}catch(e){}return e}async function as(e,t,n){var r;const o=(await h(wi,this,ts).call(this,t)).configuration;if(Xa(e.subjectToken),void 0!==e.organization&&Wi(e.organization),void 0!==e.actorToken&&void 0===e.actorTokenType)throw new Ci("actorTokenType is required when actorToken is provided");const i=new URLSearchParams({subject_token_type:e.subjectTokenType,subject_token:e.subjectToken});if(e.audience&&i.append("audience",e.audience),e.scope&&i.append("scope",e.scope),e.requestedTokenType&&i.append("requested_token_type",e.requestedTokenType),e.organization&&i.append("organization",e.organization),e.actorToken&&i.append("actor_token",e.actorToken),e.actorTokenType&&i.append("actor_token_type",e.actorTokenType),Ya(i,e.extra),n){var a;const t=ta(null!==o[$n]&&void 0!==a?a:g(mi,this)),r=await h(wi,this,Qa).call(this,o.serverMetadata(),t);let s,c,l;try{if(await _r(r,za,i),$i.fromTokenEndpointResponse(c),t.getCapturedResponse(),!l)throw new Hi}catch(n){if(n instanceof Hi)throw n;const r=new Ci("Failed to exchange token of type '".concat(e.subjectTokenType,"'").concat(e.audience?" for audience '".concat(e.audience,"'"):"","."),bi(n)),o=t.getCapturedResponse();throw r.statusCode=null==o?void 0:o.status,r.headers=o?Fi(o.headers):void 0,r}return h(wi,this,is).call(this,s,c,e),{data:s,response:l}}const s=ta(null!==o[$n]&&void 0!==r?r:g(mi,this)),c=await h(wi,this,Qa).call(this,o.serverMetadata(),s);let l,u;try{await _r(c,za,i),$i.fromTokenEndpointResponse(u)}catch(t){const n=new Ci("Failed to exchange token of type '".concat(e.subjectTokenType,"'").concat(e.audience?" for audience '".concat(e.audience,"'"):"","."),bi(t)),r=s.getCapturedResponse();throw n.statusCode=null==r?void 0:r.status,n.headers=r?Fi(r.headers):void 0,n}return h(wi,this,is).call(this,l,u,e),l}async function ss(e,t,n){var r;const o=(await h(wi,this,ts).call(this,t)).configuration;if(n){var i;const t=ta(null!==o[$n]&&void 0!==i?i:g(mi,this)),n=await h(wi,this,Qa).call(this,o.serverMetadata(),t);try{const r=await _r(n,"http://auth0.com/oauth/grant-type/passwordless/otp",e),o=$i.fromTokenEndpointResponse(r),i=t.getCapturedResponse();if(!i)throw new Hi;return{data:o,response:i}}catch(e){if(e instanceof Hi)throw e;const n=new ga("There was an error while trying to request a token.",bi(e)),r=t.getCapturedResponse();throw n.statusCode=null==r?void 0:r.status,n.headers=r?Fi(r.headers):void 0,n}}const a=ta(null!==o[$n]&&void 0!==r?r:g(mi,this)),s=await h(wi,this,Qa).call(this,o.serverMetadata(),a);try{const t=await _r(s,"http://auth0.com/oauth/grant-type/passwordless/otp",e);return $i.fromTokenEndpointResponse(t)}catch(e){const t=new ga("There was an error while trying to request a token.",bi(e)),n=a.getCapturedResponse();throw t.statusCode=null==n?void 0:n.status,t.headers=n?Fi(n.headers):void 0,t}}async function cs(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=!!g(pi,this).clientSecret||!!g(pi,this).clientAssertionSigningKey||!!g(pi,this).useMtls;return e&&!t?(e,t,n,r)=>{n.set("client_id",t.client_id)}:(g(di,this)||w(di,this,(async()=>{if(!g(pi,this).clientSecret&&!g(pi,this).clientAssertionSigningKey&&!g(pi,this).useMtls)throw new Ui;if(g(pi,this).useMtls)return(e,t,n,r)=>{n.set("client_id",t.client_id)};let e=g(pi,this).clientAssertionSigningKey;return!e||e instanceof CryptoKey||await wo(e,g(pi,this).clientAssertionSigningAlg||"RS256"),e?function(e){return Ne(e,void 0)}(e):Vn(g(pi,this).clientSecret)})().catch(e=>{throw w(di,this,void 0),e})),g(di,this))}async function ls(e){const t=(await h(wi,this,ns).call(this)).configuration,n=Se(),r=await function(e){return async function(e){return Ae(e,"codeVerifier"),de(await crypto.subtle.digest("SHA-256",ce(e)))}(e)}(n),o=Gi(E(E({},g(pi,this).authorizationParams),null==e?void 0:e.authorizationParams)),i=new URLSearchParams(E(E({scope:Ka},o),{},{client_id:g(pi,this).clientId,code_challenge:r,code_challenge_method:"S256"}));return{authorizationUrl:null!=e&&e.pushedAuthorizationRequests?await vr(t,i):await gr(t,i),codeVerifier:n}}new Fa(1e3,6e4);Error;new WeakMap,new WeakMap;var us=n(3612);const ds=function(){if(us.A.debug){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
2(e=console).log.apply(e,["MNGDigisubs:"].concat(n))}},ps=function(){if(us.A.debug){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).error.apply(e,["MNGDigisubs:"].concat(n))}},ms="auth0_sub",hs="mng-entitlements",fs="__MNG_Session",ys="regwallUserIsSubscribed";function gs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function ws(e,t,n){return t&&vs(e.prototype,t),n&&vs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var As=function(){function e(){gs(this,e),s(this,"readyPromise",null),s(this,"readyResolved",!1),s(this,"readyValue",!1)}return ws(e,[{key:"blueConicReady",value:function(){var t=this,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).timeout,r=Date.now();if(this.readyResolved&&!0===this.readyValue)return ds("BlueConicUtils | blueConicReady | returning cached value:",this.readyValue),Promise.resolve(!0);if(this.readyPromise)return ds("BlueConicUtils | blueConicReady | returning existing promise"),this.readyPromise;var o=null!=n?n:e.DEFAULT_TIMEOUT;return ds("BlueConicUtils | blueConicReady | checking BC readiness"),this.readyPromise=new Promise(function(e){var n,i=setTimeout(function(){t.readyResolved||(ds("BlueConicUtils | blueConicReady | timeout at:",(Date.now()-r)/1e3,"s"),t.resolveReady(!1,e))},o);if(null!==(n=window.blueConicClient)&&void 0!==n&&n.profile)return ds("BlueConicUtils | blueConicReady | BC already ready"),void t.resolveReady(!0,e);var a=function(){var n;if(!t.readyResolved)if(null!==(n=window.blueConicClient)&&void 0!==n&&n.event){ds("BlueConicUtils | blueConicReady | BC client detected");var o=window.blueConicClient.event.subscribe(window.blueConicClient.event.onReady,{},function(){clearTimeout(i),ds("BlueConicUtils | blueConicReady | onReady fired at:",(Date.now()-r)/1e3,"s"),null==o||o(),t.resolveReady(!0,e)})}else setTimeout(a,500)};a()}),this.readyPromise}},{key:"resolveReady",value:function(e,t){this.readyResolved||(ds("BlueConicUtils | blueConicReady | resolved with:",e),this.readyResolved=!0,this.readyValue=e,t(e),!1===e&&(this.readyPromise=null,this.readyResolved=!1))}}])}();s(As,"DEFAULT_TIMEOUT",3e3);new As;var bs,Ss;function Es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Es(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}window.addEventListener("mng-all-islands-ready",function(e){bs||(bs=e,Ss&&(ds("utils | Dispatching mng-auth-complete event (islands were not ready): ",Ss),window.dispatchEvent(Ss)))}),ds("Waiting for islands ready");var Rs=function(){var e=window.location.href;return new URL(e)},Ts=function(e){for(var t="".concat(e,"="),n=decodeURIComponent(document.cookie).split(";"),r=0;r<n.length;r+=1){var o=n[r].trimLeft();if(0===o.indexOf(t))return o.substring(t.length,o.length)}return!1},Ps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Rs().hostname;if(e&&"string"==typeof e&&e.length>0&&(t=e,e.includes("vipdev.lndo.site")))return"".concat(e.split(".")[0],".com");var n=t.split(".");return"".concat(n[n.length-2],".").concat(n[n.length-1])},Os=function(){var e=Ps();return".".concat(e)},Cs=function(e,t,n){var r="".concat(e,"=").concat(t,";");void 0!==n?(ds("Setting cookie with options: ",n),Object.entries(n).forEach(function(e){var t=l(e,2),n=t[0],o=t[1];if("expires"===n){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),r+="expires=".concat(i.toUTCString(),";")}else r+="".concat(n,"=").concat(o,";")})):r+="path=/;",document.cookie=r},Ns=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="".concat(e,"= ;expires= Thu, 01 Jan 1970 00:00:00 GMT;"),o=Ps(),i=[o,"www".concat(o),".www".concat(o)];n&&i.push(n),Object.entries(t).forEach(function(e){var t=l(e,2),n=t[0],o=t[1];r+="".concat(n,"=").concat(o,";")}),0===Object.keys(t).length&&(r+="path=/;
2"),document.cookie=r,i.forEach(function(e){document.cookie=r.concat("domain=",e,";")})},Is=function(){return Rs().host.replace(/^(?:www\.|develop\.|staging\.|preprod\.)/,"").replace("vipdev.lndo.site","com")},Ds=function(e){return function(e,t){if("string"!=typeof e)throw new u("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new u(`Invalid token specified: missing part #${n+1}`);let o;try{o=d(r)}catch(e){throw new u(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(o)}catch(e){throw new u(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}(e)},ks=function(){var e=Ps();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)},Ls=function(){return"complete"===document.readyState},Ms=function(){return new Promise(function(e){if(("interactive"===document.readyState||Ls())&&window.dataLayer)ds("Utils digisubsDataLayerLoaded: ","Document is in interactive state, resolving."),e();else{ds("Utils digisubsDataLayerLoaded: ","Waiting for the dataLayer to load...");var t=setInterval(r(o.mark(function n(){return o.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:window.dataLayer&&window.dataLayer.length>2&&(clearInterval(t),e(!0));case 1:case"end":return n.stop()}},n)})),50)}})},xs=function(){var e=r(o.mark(function e(t){var n,r,i;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Ms();case 1:return ds("Utils getDataLayerObject: looking for this dataLayer object ",t),window.dataLayer=window.dataLayer||[],n="",ds("Utils getDataLayerObject: here is dataLayer length ",window.dataLayer.length),r=function(e){return ds("Utils dataLayerLoop:  look for this element ",e),e[t]?(ds("Utils dataLayerLoop: found ",e[t]),n=e[t],e[t]):(ds("Utils dataLayerLoop: dataLayer search ",!1),!1)},i=window.dataLayer.some(r),e.abrupt("return",i?n:"");case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Us=function(){var e=r(o.mark(function e(){var t,n,r=arguments;return o.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,xs(t);case 1:return n=e.sent,ds("utils | pageType: page type is ",n),e.abrupt("return",n);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),Bs=function(){return new Promise(function(e,t){void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.authenticationReady?(ds("utils | Authentication already ready: ",window.MNGAuthentication.authenticationReady),e(window.MNGAuthentication.authenticationReady)):(ds("utils | Adding authenticationReady listener..."),window.addEventListener("authenticationReady",function(n){try{var r=n.detail||{};ds("utils | Event: authentication ready: ",r),e(r)}catch(e){ds(e),t(e)}},!1))})},Hs=function(){var e=r(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 us.A.entitlementsEnabled?void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.entitlementsReady?(ds("Entitlements already present:",window.MNGAuthentication.entitlementsReady),void e(window.MNGAuthentication.entitlementsReady)):void window.addEventListener("entitlementsReady",function(n){try{var r=n.detail||{};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.entitlementsReady=r,ds("Received entitlementsReady event:",r),e(r)}catch(e){ps("Error handling entitlementsReady event:",e),t(e)}},{once:!0}):(ds("Entitlements disabled in settings."),void e(!1))}));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),Fs=function(){ds("Clearing entitlements...");try{Ns(hs,{path:"/"})}catch(e){ds("Failed to delete legacy cookie: ",e)}try{Ns(hs,{path:"/",domain:Ps(),expires:365,secure:!0})}catch(e){ds("Failed to delete entitlements cookie: ",e)}try{window.localStorage.removeItem(fs)}catch(e){ds("Failed to remove local storage: ",e)}},js=function(e){ds("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(),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","COMM
2BANK","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","SO
2CIAL","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 ds("simpleEmailValidation: ","TLD search ".concat(n)),!1===n?{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=js;window.validatePhoneNumber=function(e){return/^[0-9]([0-9 -])*[0-9]$/.test(e)};
2var Gs=function(e){Ss=new CustomEvent("mng-auth-check-complete",{detail:e}),bs?(ds("utils | Dispatching mng-auth-complete event (islands were ready): ",e),window.dispatchEvent(Ss)):ds("Islands not ready")};window.addEventListener("authenticationReady",function(e){return Gs(e.detail)});var Ws=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return new Promise(function(t,n){var i={sspw:null,sophiClient:null,engagePaywall:null,engageStatus:null},a=function(){var a=r(o.mark(function r(){var a,s,c,l,u,d,p,m,h,f,y;return o.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,"1"!==(null===(a=window.sophi_config)||void 0===a?void 0:a.enableSophiSSPW)){r.next=1;break}if(!document.getElementById("server-paywall")){r.next=1;break}return i.sspw=!0,r.abrupt("return",t({paywall:!0,details:_s({},i)}));case 1:return r.next=2,Us();case 2:return c=r.sent,r.next=3,xs("Paywall_Level");case 3:if(l=r.sent,"article"===c&&"free"!==l){r.next=4;break}return r.abrupt("return",t({paywall:!1,details:"article"!==c?"Page type is not an article":"Free article"}));case 4:return r.next=5,Hs();case 5:if(!(u=r.sent)||!u.isEntitled){r.next=6;break}return r.abrupt("return",t({paywall:!1,details:"Entitled User"}));case 6:if("premium"!==l){r.next=7;break}return r.abrupt("return",t({paywall:!0,details:"Premium article"}));case 7:if(d=null===(s=window.ConnextUtils)||void 0===s?void 0:s.runningSophi,ds("checkPaywallStatus - Sophi is running: ",d),!d){r.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:_s({},i)})},{once:!0}),r.next=12;break;case 8:if(d){r.next=12;break}return p=window.ConnextUtils.connextReady("onPaywallShown"),m=new Promise(function(t,n){return setTimeout(function(){return n(new Error("No Engage paywall within 10 seconds, resolving as no paywall."))},e)}),r.prev=9,r.next=10,Promise.race([p,m]);case 10:!0===(h=r.sent)?(i.engagePaywall=!0,i.engageStatus="Engage paywall detected"):(i.engagePaywall=!1,i.engageStatus="Engage response: ".concat(h)),r.next=12;break;case 11:r.prev=11,f=r.catch(9),i.engagePaywall=!1,i.engageStatus="Engage response: ".concat(f);case 12:return r.abrupt("return",t({paywall:Object.values(i).some(function(e){return e}),details:_s({},i)}));case 13:r.prev=13,y=r.catch(0),n(y);case 14:case"end":return r.stop()}},r,null,[[0,13],[9,11]])}));return function(){return a.apply(this,arguments)}}();a()})};"undefined"!=typeof window&&(window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.checkPaywallStatus=Ws);var Ks=function(){function e(){gs(this,e),s(this,"pendingSets",new Map),s(this,"flushTimer",null),s(this,"hasFlushed",!1),s(this,"isPaused",!1)}return ws(e,[{key:"pauseTargeting",value:function(t){if(!this.isPaused&&!this.hasFlushed)if(e.isAvailable())try{window.admiral("targeting","pause",t),this.isPaused=!0,ds("AdmiralUtils | pauseTargeting | paused (".concat(t,"ms auto-resume)."))}catch(e){ps("AdmiralUtils | pauseTargeting | failed",e)}else ds("AdmiralUtils | pauseTargeting | window.admiral is not available, skipping pause.")}},{key:"queueSet",value:function(e,t){if(this.hasFlushed)ds('AdmiralUtils | queueSet | already ready — skipping late set for "'.concat(e,'".'));else{var n=null==t?"":String(t);this.pendingSets.set(e,n)}}},{key:"flush",value:function(){if(!this.hasFlushed){if(this.flushTimer&&(clearTimeout(this.flushTimer),this.flushTimer=null),!e.isAvailable())return ds("AdmiralUtils | flush | window.admiral is not available, skipping flush."),void this.pendingSets.clear();try{this.pendingSets.forEach(function(e,t){window.admiral("targeting","set",t,e),ds('AdmiralUtils | flush | set "'.concat(t,'" = "').concat(e,'"'))}),window.admiral("targeting","ready"),this.hasFlushed=!0,this.isPaused=!1,this.pendingSets.clear(),ds("AdmiralUtils | flush | targeting ready.")}catch(e){ps("AdmiralUtils | flush | failed",e)}}}},{key:"scheduleReady",value:function(){var t=this;if(!this.hasFlushed)if(this.flushTimer)ds("AdmiralUtils | scheduleReady | deadline already set — ignoring repeated call.");else{var n=e.DEFAULT_READY_DELAY_MS;this.flushTimer=setTimeout(function(){t.flushTimer=null,t.flush()},n),ds("AdmiralUtils | scheduleReady | targeting ready scheduled in ".concat(n,"ms."))}}}],[{key:"isAvailable",value:function(){return"function"==typeof window.admiral}},{key:"getInstance",value:function(){return window.admiralUtils||(window.admiralUtils=new e),window.admiralUtils}}])}();s(Ks,"DEFAULT_READY_DELAY_MS",2e3);function Js(e,t){return function(){return e.apply(t,arguments)}}const{toString:Xs}=Object.prototype,{getPrototypeOf:Ys}=Object,{iterator:qs,toStringTag:zs}=Symbol,Vs=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Zs=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),$s=(e,t,n)=>e===Object.prototype||!n&&null===t,Qs=(e,t)=>{let n=e;const r=[];for(;null!=n;){if(-1!==r.indexOf(n))return!1;r.push(n);const o=Ys(n);if($s(n,o,n===e))return!1;if(Vs(n,t))return!0;n=o}return!1},ec=(tc=Object.create(null),e=>{const t=Xs.call(e);return tc[t]||(tc[t]=t.slice(8,-1).toLowerCase())});var tc;const nc=e=>(e=e.toLowerCase(),t=>ec(t)===e),rc=e=>t=>typeof t===e,{isArray:oc}=Array,ic=rc("undefined");function ac(e){return null!==e&&!ic(e)&&null!==e.constructor&&!ic(e.constructor)&&lc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sc=nc("ArrayBuffer");const cc=rc("string"),lc=rc("function"),uc=rc("number"),dc=e=>null!==e&&"object"==typeof e,pc=e=>{if(!dc(e))return!1;const t=Ys(e);return!(null!==t&&t!==Object.prototype&&null!==Ys(t)||Qs(e,zs)||Qs(e,qs))},mc=nc("Date"),hc=nc("File"),fc=nc("Blob"),yc=nc("FileList"),gc=nc("Set");const vc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},wc=void 0!==vc.FormData?vc.FormData:void 0,Ac=nc("URLSearchParams"),[bc,Sc,Ec,_c]=["ReadableStream","Request","Response","Headers"].map(nc);function Rc(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),oc(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ac(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Tc(e,t){if(ac(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Pc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,Oc=e=>!ic(e)&&e!==Pc;const Cc=(Nc="undefined"!=typeof Uint8Array&&Ys(Uint8Array),e=>Nc&&e instanceof Nc);var Nc;const Ic=nc("HTMLFormElement"),{propertyIsEnumerable:Dc}=Object.prototype,kc=nc("RegExp"),Lc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Rc(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const Mc=nc("AsyncFunction"),xc=(Uc="function"==typeof setImmediate,Bc=lc(Pc.postMessage),Uc?setImmediate:Bc?(Hc=`axios@${Math.random()}`,Fc=[],Pc.addEventListener("message",({source:e,data:t})=>{e===Pc&&t===Hc&&Fc.length&&Fc.shift()()},!1),e=>{Fc.push(e),Pc.postMessage(Hc,"*")}):e=>setTimeout(e));var Uc,Bc,Hc,Fc;const jc="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Pc):"undefined"!=typeof process&&process.nextTick||xc,Gc=e=>null!=e&&lc(e[qs]),Wc={isArray:oc,isArrayBuffer:sc,isBuffer:ac,isFormData:e=>{if(!e)return!1;if(wc&&e instanceof wc)return!0;const t=Ys(e);if(!t||t===Object.prototype)return!1;if(!lc(e.append))return!1;const n=ec(e);return"formdata"===n||"object"===n&&lc(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&sc(e.buffer),t},isString:cc,isNumber:uc,isBoolean:e=>!0===e||!1===e,isObject:dc,isPlainObject:pc,isEmptyObject:e=>{if(!dc(e)||ac(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:bc,isRequest:Sc,isResponse:Ec,isHeaders:_c,isUndefined:ic,isDate:mc,isFile:hc,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:fc,isRegExp:kc,isFunction:lc,isStream:e=>dc(e)&&lc(e.pipe),isURLSearchParams:Ac,isTypedArray:Cc,isFileList:yc,forEach:Rc,merge:function e(...t){const{caseless:n,skipUndefined:r}=Oc(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=n&&"string"==typeof i&&Tc(o,i)||i,s=Vs(o,a)?o[a]:void 0;pc(s)&&pc(t)?o[a]=e(s,t):pc(t)?o[a]=e({},t):oc(t)?o[a]=t.slice():r&&ic(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++){const n=t[e];if(!n||ac(n))continue;if(Rc(n,i),"object"!=typeof n||oc(n))continue;const r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){const t=r[e];Dc.call(n,t)&&i(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:r}={})=>(Rc(t,(t,r)=>{n&&lc(t)?Object.defineProperty(e,r,{__proto__:null,value:Js(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),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,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
vendor: 4,686 bytes, line 2
2configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{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],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Ys(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ec,kindOfTest:nc,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(oc(e))return e;let t=e.length;if(!uc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[qs]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Ic,hasOwnProperty:Vs,hasOwnProp:Vs,hasOwnInPrototypeChain:Qs,getSafeProp:(e,t)=>null!=e&&Qs(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=Ys(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(Zs(t))return!1;const n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let i=e;for(;null!=i&&-1===o.indexOf(i);){o.push(i);const a=i===e?t:Ys(i);if($s(i,a,i===e))break;const s=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(i));for(const t of s)Zs(t)||Vs(r,t)||(n[t]=e[t],r[t]=!0);i=a}return n},reduceDescriptors:Lc,freezeMethods:e=>{Lc(e,(t,n)=>{if(lc(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];lc(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return oc(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Tc,global:Pc,isContextDefined:Oc,isSpecCompliantForm:function(e){return!!(e&&lc(e.append)&&"FormData"===e[zs]&&e[qs])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(dc(e)){if(t.has(e))return;if(ac(e))return e;if(!("toJSON"in e)){let r;if(t.add(e),gc(e)){r=[];for(const t of e){const e=n(t);!ic(e)&&r.push(e)}}else r=oc(e)?[]:{},Rc(e,(e,t)=>{const o=n(e);!ic(o)&&(r[t]=o)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:Mc,isThenable:e=>e&&(dc(e)||lc(e))&&lc(e.then)&&lc(e.catch),setImmediate:xc,asap:jc,isIterable:Gc,isSafeIterable:e=>null!=e&&Qs(e,qs)&&Gc(e)},Kc=Wc.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"]),Jc=e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim();const i=Wc.hasOwnProp(t,n);!n||i&&Wc.hasOwnProp(Kc,n)||("set-cookie"===n?i?t[n].push(r):t[n]=[r]:t[n]=i?t[n]+", "+r:r)}),t};n.dn(Jc);const Xc=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Yc=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function qc(e,t){return Wc.isArray(e)?e.map(e=>qc(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function zc(e){const t=Object.create(null);return Wc.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>qc(e,Yc))(e)}),t}const Vc=Symbol("internals");function Zc(e){return e&&String(e).trim().toLowerCase()}function $c(e){return!1===e||null==e?e:Wc.isArray(e)?e.map($c):(e=>qc(e,Xc))(String(e))}const Qc=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function el(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function tl(e,t,n,r,o){return Wc.isFunction(r)?r.call(this,t,n):(o&&(t=n),Wc.isString(t)?Wc.isString(r)?-1!==t.indexOf(r):Wc.isRegExp(r)?r.test(t):void 0:void 0)}class nl{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Zc(t);if(!o)return;const i=Wc.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=$c(e))}const i=(e,t)=>
vendor: 4,314 bytes, line 2
2Wc.forEach(e,(e,n)=>o(e,n,t));if(Wc.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Wc.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(Jc(e),t);else if(Wc.isObject(e)&&Wc.isSafeIterable(e)){let n,r,o=Object.create(null);for(const t of e){if(!Wc.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],Wc.hasOwnProp(o,r)?(n=o[r],o[r]=Wc.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Zc(e)){const n=Wc.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Wc.isFunction(t))return t.call(this,e,n);if(Wc.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Zc(e)){const n=Wc.findKey(this,e);return!(!n||void 0===this[n]||t&&!tl(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Zc(e)){const o=Wc.findKey(n,e);!o||t&&!tl(0,n[o],o,t)||(delete n[o],r=!0)}}return Wc.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!tl(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Wc.forEach(this,(r,o)=>{const i=Wc.findKey(n,o);if(i)return t[i]=$c(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=$c(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Wc.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Wc.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){const e=this.get("set-cookie");return Wc.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),n=String(e);let r=0,o=!1,i=!1;function a(e){const o=el(n.slice(r,e)),i=o.indexOf("=");if(i<1)return;const a=el(o.slice(0,i));if(!Qc.test(a))return;const s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;const c=el(o.slice(i+1));t[s]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let r=1;r<t;r++){const o=e.charCodeAt(r);if(34===o)return e;if(92===o&&(r+=1,r>=t))return e;n+=e[r]}return n}(c)}for(let e=0;e<n.length;e++){const t=n.charCodeAt(e);o?i?i=!1:92===t?i=!0:34===t&&(o=!1):34===t?o=!0:44!==t&&59!==t||(a(e),r=e+1)}return a(n.length),t}(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Vc]=this[Vc]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Zc(e);t[r]||(!function(e,t){const n=Wc.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return Wc.isArray(e)?e.forEach(r):r(e),this}}nl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Wc.reduceDescriptors(nl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Wc.freezeMethods(nl);const rl=nl,ol="[REDACTED ****]";function il(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(Wc.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof rl&&(e=e.toJSON()),r.push(e),Wc.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);Wc.isUndefined(r)||(t[n]=r)});else{if(!Wc.isPlainObject(e)&&function(e){if(Wc.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Wc.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,i]of Object.entries(e)){const e=n.has(r.toLowerCase())?ol:o(i);Wc.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}function al(e){try{return String(e)}catch(e){return""}}
vendor: 4,872 bytes, line 2
2class sl extends Error{static from(e,t,n,r,o,i){let a=e.message;!a&&Wc.isArray(e.errors)&&e.errors.length&&(a=function(e){return e.errors.map(e=>{try{return e&&e.message?al(e.message):al(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(e));const s=new sl(a,t||e.code,n,r,o);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&Wc.hasOwnProp(e,"redact")?e.redact:void 0,n=Wc.isArray(t)&&t.length>0?il(e,t):Wc.toJSONObject(e);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:n,code:this.code,status:this.status}}}sl.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",sl.ERR_BAD_OPTION="ERR_BAD_OPTION",sl.ECONNABORTED="ECONNABORTED",sl.ETIMEDOUT="ETIMEDOUT",sl.ECONNREFUSED="ECONNREFUSED",sl.ERR_NETWORK="ERR_NETWORK",sl.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",sl.ERR_DEPRECATED="ERR_DEPRECATED",sl.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",sl.ERR_BAD_REQUEST="ERR_BAD_REQUEST",sl.ERR_CANCELED="ERR_CANCELED",sl.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",sl.ERR_INVALID_URL="ERR_INVALID_URL",sl.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const cl=sl;function ll(e){return Wc.isPlainObject(e)||Wc.isArray(e)}function ul(e){return Wc.endsWith(e,"[]")?e.slice(0,-2):e}function dl(e,t,n){return e?e.concat(t).map(function(e,t){return e=ul(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const pl=Wc.toFlatObject(Wc,{},null,function(e){return/^is[A-Z]/.test(e)});const ml=function(e,t,n){if(!Wc.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(e,t)=>{const r=Wc.getSafeProp(n,e);return Wc.isUndefined(r)?t:r},o=r("metaTokens",!0),i=r("visitor")||h,a=r("dots",!1),s=r("indexes",!1),c=r("Blob")||"undefined"!=typeof Blob&&Blob,l=r("maxDepth",100),u=c&&Wc.isSpecCompliantForm(t),d=[];if(!Wc.isFunction(i))throw new TypeError("visitor must be a function");function p(e){if(null===e)return"";if(Wc.isDate(e))return e.toISOString();if(Wc.isBoolean(e))return e.toString();if(!u&&Wc.isBlob(e))throw new cl("Blob is not supported. Use a Buffer instead.");if(Wc.isArrayBuffer(e)||Wc.isTypedArray(e)){if(u&&"function"==typeof c)return new c([e]);throw new cl("Blob is not supported. Use a Buffer instead.",cl.ERR_NOT_SUPPORT)}return e}function m(e){if(e>l)throw new cl("Object is too deeply nested ("+e+" levels). Max depth: "+l,cl.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,r){let i=e;if(Wc.isReactNative(t)&&Wc.isReactNativeBlob(e))return t.append(dl(r,n,a),p(e)),!1;if(e&&!r&&"object"==typeof e)if(Wc.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e,t){if(l===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!Wc.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),m(t+n.length-1),r})}(e,1);else if(Wc.isArray(e)&&function(e){return Wc.isArray(e)&&!e.some(ll)}(e)||(Wc.isFileList(e)||Wc.endsWith(n,"[]"))&&(i=Wc.toArray(e)))return n=ul(n),i.forEach(function(e,r){!Wc.isUndefined(e)&&null!==e&&t.append(!0===s?dl([n],r,a):null===s?n:n+"[]",p(e))}),!1;return!!ll(e)||(t.append(dl(r,n,a),p(e)),!1)}const f=Object.assign(pl,{defaultVisitor:h,convertValue:p,isVisitable:ll});if(!Wc.isObject(e))throw new TypeError("data must be an object");return function e(n,r,o=0){if(!Wc.isUndefined(n)){if(m(o),-1!==d.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));d.push(n),Wc.forEach(n,function(n,a){!0===(!(Wc.isUndefined(n)||null===n)&&i.call(t,n,Wc.isString(a)?a.trim():a,r,f))&&e(n,r?r.concat(a):[a],o+1)}),d.pop()}}(e),t};function hl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function fl(e,t){this._pairs=[],e&&ml(e,this,t)}const yl=fl.prototype;yl.append=function(e,t){this._pairs.push([e,t])},yl.toString=function(e){const t=e?t=>e.call(this,t,hl):hl;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const gl=fl;function vl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function wl(e,t,n){if(!t)return e;e=e||"";const r=Wc.isFunction(n)?{serialize:n}:n,o=Wc.getSafeProp(r,"encode")||vl,i=Wc.getSafeProp(r,"serialize");let a;if(a=i?i(t,r):Wc.isURLSearchParams(t)?t.toString():new gl(t,r).toString(o),a){const t=e.indexOf("#");
vendor: 20,670 bytes, line 2
2-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const Al=Symbol("internals");function bl(e){return e?e.length:0}function Sl(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function El(e,t){const n=e.handlers,r=bl(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()),t.handlersLength=r}const _l=class{constructor(){this.handlers=[],this[Al]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){const r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[Al];null==this.handlers&&(this.handlers=[]),El(this,o);const i=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(i,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(e){const t=this[Al];El(this,t);const n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(Sl(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],El(this,this[Al]))}forEach(e){const t=this[Al];El(this,t),t.iterationDepth++;try{Wc.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(El(this,t),Sl(this.handlers),t.handlersLength=bl(this.handlers))}}},Rl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Tl={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:gl,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Pl="undefined"!=typeof window&&"undefined"!=typeof document,Ol="object"==typeof navigator&&navigator||void 0,Cl=Pl&&(!Ol||["ReactNative","NativeScript","NS"].indexOf(Ol.product)<0),Nl="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Il=Pl&&window.location.href||"http://localhost",Dl={...e,...Tl};function kl(e){if(e>100)throw new cl("FormData field is too deeply nested ("+e+" levels). Max depth: 100",cl.ERR_FORM_DATA_DEPTH_EXCEEDED)}const Ll=function(e){function t(e,n,r,o){kl(o);let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Wc.isArray(r)?r.length:i,s)return Wc.hasOwnProp(r,i)?r[i]=Wc.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a;Wc.hasOwnProp(r,i)&&Wc.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Wc.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(Wc.isFormData(e)&&Wc.isFunction(e.entries)){const n={};return Wc.forEachEntry(e,(e,r)=>{t(function(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;null!==(r=n.exec(e));)kl(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}(e),r,n,0)}),n}return null},Ml=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),xl=(e,t)=>null!=e&&Wc.hasOwnProp(e,t)?e[t]:void 0;const Ul={transitional:Rl,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Wc.isObject(e);o&&Wc.isHTMLForm(e)&&(e=new FormData(e));if(Wc.isFormData(e))return r?JSON.stringify(Ll(e)):e;if(Wc.isArrayBuffer(e)||Wc.isBuffer(e)||Wc.isStream(e)||Wc.isFile(e)||Wc.isBlob(e)||Wc.isReadableStream(e))return e;if(Wc.isArrayBufferView(e))return e.buffer;if(Wc.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=xl(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ml(e,new Dl.classes.URLSearchParams,{visitor:function(e,t,n,r){return Dl.isNode&&Wc.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=Wc.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=xl(this,"env"),r=n&&n.FormData;return ml(i?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Wc.isString(e))try{return(t||JSON.parse)(e),Wc.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=xl(this,"transitional")||Ul.transitional,n=t&&t.forcedJSONParsing,r=xl(this,"responseType"),o="json"===r;if(Wc.isResponse(e)||Wc.isReadableStream(e))return e;if(e&&Wc.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,xl(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw cl.from(e,cl.ERR_BAD_RESPONSE,this,null,xl(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dl.classes.FormData,Blob:Dl.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Wc.forEach(Ml,e=>{Ul.headers[e]={}});const Bl=Ul;function Hl(e,t){const n=this||Bl,r=t||n,o=rl.from(r.headers);let i=r.data;return Wc.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Fl(e){return!(!e||!e.__CANCEL__)}const jl=class extends cl{constructor(e,t,n){super(e??"canceled",cl.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Gl(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new cl("Request failed with status code "+n.status,n.status>=400&&n.status<500?cl.ERR_BAD_REQUEST:cl.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Wl=/[\t\n\r]/g;function Kl(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(Wl,"")}function Jl(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}const Xl=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=r[a];o||(o=c),n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const p=l&&c-l;return p?Math.round(1e3*d/p):void 0}};const Yl=function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n),(...e)=>a(e)]},ql=(e,t,n=3)=>{let r=0;const o=Xl(50,250);return Yl(n=>{if(!n||!Wc.isNumber(n.loaded))return;const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(i,a):i),c=Math.max(0,s-r),l=o(c);r=Math.max(r,s);e({loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a?(a-s)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},zl=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Vl=(e,t=Wc.asap)=>(...n)=>t(()=>e(...n)),Zl=Dl.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Dl.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Dl.origin),Dl.navigator&&/(msie|trident)/i.test(Dl.navigator.userAgent)):()=>!0,$l=Dl.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];Wc.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Wc.isString(r)&&s.push(`path=${r}`),Wc.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),Wc.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch(e){return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};const Ql=/^https?:(?!\/\/)/i;function eu(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ol}@`),n=t.indexOf("#"),r=(-1===n?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ol}`);return-1===n?r:`${r}#${o=t.slice(n+1),o?o.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${ol}`):o}`;var o}function tu(e,t){if("string"==typeof e){const n=Kl(e);if(Ql.test(n))throw new cl(`Invalid URL ${JSON.stringify(eu(n))}: missing "//" after protocol`,cl.ERR_INVALID_URL,t)}}function nu(e,t,n,r){tu(t,r);let o=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(o||!1===n)?(tu(e,r),function(e,t){if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const ru=e=>e instanceof rl?{...e}:e;function ou(e,t){e=e||{},t=t||{};const n=Object.create(null);function r(e,t,n,r){return Wc.isPlainObject(e)&&Wc.isPlainObject(t)?Wc.merge.call({caseless:r},e,t):Wc.isPlainObject(t)?Wc.merge({},t):Wc.isArray(t)?t.slice():t}function o(e,t,n,o){return Wc.isUndefined(t)?Wc.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Wc.isUndefined(t))return r(void 0,t)}function a(e,t){return Wc.isUndefined(t)?Wc.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return Wc.hasOwnProp(t,i)?r(n,o):Wc.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutErrorMessage: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,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(ru(e),ru(t),0,!0)};var l;return Wc.forEach((l={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(l).concat(Object.getOwnPropertySymbols(l).filter(e=>Object.getOwnPropertyDescriptor(l,e).enumerable)):Object.keys(l)),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=Wc.hasOwnProp(c,r)?c[r]:o,a=i(Wc.hasOwnProp(e,r)?e[r]:void 0,Wc.hasOwnProp(t,r)?t[r]:void 0,r);Wc.isUndefined(a)&&i!==s||(n[r]=a)}),Wc.hasOwnProp(t,"validateStatus")&&Wc.isUndefined(t.validateStatus)&&!1===function(n){const r=Wc.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Wc.isUndefined(r)){if(!Wc.isPlainObject(r))return;if(Wc.hasOwnProp(r,n))return r[n]}const o=Wc.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Wc.isPlainObject(o)&&Wc.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(Wc.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const iu=["content-type","content-length"];const au=function(e){const t=ou({},e),n=e=>Wc.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),a=n("xsrfCookieName");let s=n("headers");const c=n("auth"),l=n("baseURL"),u=n("allowAbsoluteUrls"),d=n("url");if(t.headers=s=rl.from(s),t.url=wl(nu(l,d,u,t),n("params"),n("paramsSerializer")),c){const t=Wc.getSafeProp(c,"username")||"",n=Wc.getSafeProp(c,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw cl.from(t,cl.ERR_BAD_OPTION_VALUE,e)}}if(Wc.isFormData(r)){const e=Wc.getSafeProp(r,"getHeaders");Dl.hasStandardBrowserEnv||Dl.hasStandardBrowserWebWorkerEnv||Wc.isReactNative(r)?s.setContentType(void 0):Wc.isFunction(e)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach(([t,n])=>{iu.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(s,e.call(r),n("formDataHeaderPolicy"))}if(Dl.hasStandardBrowserEnv){Wc.isFunction(o)&&(o=o(t));if(!0===o||null==o&&Zl(t.url)){const e=i&&a&&$l.read(a);e&&s.set(i,e)}}return t},su="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=au(e);let o=r.data;const i=rl.from(r.headers).normalize();let a,s,c,l,u,d,{responseType:p,onUploadProgress:m,onDownloadProgress:h}=r;function f(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let y=new XMLHttpRequest;function g(o){if(!y)return;if(!(0!==y.status||"file"===(Jl(Kl(r.url))||Jl(Dl.origin))||y.responseURL&&y.responseURL.startsWith("file:")))return n(new cl("Request aborted",cl.ECONNABORTED,e,y)),f(),void(y=null);try{o?d&&d(o):u&&u()}catch(e){setTimeout(()=>{throw e})}if(!y)return;const i=rl.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());Gl(function(e){t(e),f()},function(e){n(e),f()},{data:p&&"text"!==p&&"json"!==p?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:i,config:e,request:y}),y=null}y.open(r.method.toUpperCase(),r.url,!0),y.timeout=r.timeout,"onloadend"in y?y.onloadend=g:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&y.responseURL.startsWith("file:"))&&setTimeout(g)},y.onabort=function(){y&&(n(new cl("Request aborted",cl.ECONNABORTED,e,y)),f(),y=null)},y.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new cl(r,cl.ERR_NETWORK,e,y);o.event=t||null,n(o),f(),y=null},y.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Rl;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new cl(t,o.clarifyTimeoutError?cl.ETIMEDOUT:cl.ECONNABORTED,e,y)),f(),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&Wc.forEach(zc(i),function(e,t){y.setRequestHeader(t,e)}),Wc.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),p&&"json"!==p&&(y.responseType=r.responseType),h&&([c,u,d]=ql(h,!0),y.addEventListener("progress",c)),m&&y.upload&&([s,l]=ql(m),y.upload.addEventListener("progress",s),y.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(a=t=>{y&&(n(!t||t.type?new jl(null,e,y):t),y.abort(),f(),y=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=Jl(r.url);if(v&&!Dl.protocols.includes(v))return n(new cl("Unsupported protocol "+v+":",cl.ERR_BAD_REQUEST,e)),void f();y.send(o||null)})},cu=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof cl?t:new jl(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new cl(`timeout of ${t}ms exceeded`,cl.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=>{r||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))});const{signal:s}=n;return s.unsubscribe=()=>Wc.asap(a),s},lu=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},uu=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},du=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of uu(e))yield*lu(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},pu=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,mu=(e,t,n)=>t+2<n&&pu(e.charCodeAt(t+1))&&pu(e.charCodeAt(t+2)),hu=e=>e<=57?e-48:(223&e)-55,fu=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,yu=e=>9===e||10===e||12===e||13===e||32===e,gu=e=>{const t=e.length;let n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)},vu=e=>{const t=e.length;let n=0,r=0,o=!1;for(let i=0;i<t;i++){let a=e.charCodeAt(i);37===a&&mu(e,i,t)&&(a=16*hu(e.charCodeAt(i+1))+hu(e.charCodeAt(i+2)),i+=2),yu(a)||(61!==a?!fu(a)||r>0?o=!0:n++:r++)}return o||r>2||r>0&&(n+r)%4!=0||n%4==1?gu(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(n)},wu=(e,t)=>{if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(r))return t(o);let i=0;for(let e=0,t=o.length;e<t;e++){const n=o.charCodeAt(e);if(37===n&&mu(o,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=o.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i};const Au={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:bu}=Wc,Su=e=>{if(!Wc.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Eu=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},_u=e=>{const t=void 0!==Wc.global&&null!==Wc.global?Wc.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Wc.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:a}=e,s=o?bu(o):"function"==typeof fetch,c=bu(i),l=bu(a);if(!s)return!1;const u=s&&bu(n),d=s&&("function"==typeof r?(p=new r,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const m=c&&u&&Eu(()=>{let e=!1;const t=new i(Dl.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),h=l&&u&&Eu(()=>Wc.isReadableStream(new a("").body)),f={stream:h&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new cl(`Response type '${e}' is not supported`,cl.ERR_NOT_SUPPORT,n)})});const y=async e=>{if(null==e)return 0;if(Wc.isBlob(e))return e.size;if(Wc.isSpecCompliantForm(e)){const t=new i(Dl.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Wc.isArrayBufferView(e)||Wc.isArrayBuffer(e)?e.byteLength:(Wc.isURLSearchParams(e)&&(e+=""),Wc.isString(e)?(await d(e)).byteLength:void 0)};return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:p,onDownloadProgress:g,onUploadProgress:v,responseType:w,headers:A,withCredentials:b="same-origin",fetchOptions:S,maxContentLength:E,maxBodyLength:_,maxRedirects:R}=au(e);const T=Wc.isNumber(E)&&E>-1,P=Wc.isNumber(_)&&_>-1;let O=o||fetch;w=w?(w+"").toLowerCase():"text";let C=cu([l,d&&d.toAbortSignal()],p),N=null;const I=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let D,k=null;const L=()=>new cl("Request body larger than maxBodyLength limit",cl.ERR_BAD_REQUEST,e,N);try{let o;const l=(x="auth",Wc.hasOwnProp(e,x)?e[x]:void 0);if(l){const e=Wc.getSafeProp(l,"username")||"";o={username:e,password:Wc.getSafeProp(l,"password")||""}}if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)){const e=new URL(t,Dl.origin);if(!o&&(e.username||e.password)){const t=Su(e.username);o={username:t,password:Su(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(o&&(A.delete("authorization"),A.set("Authorization","Basic "+btoa((M=(o.username||"")+":"+(o.password||""),encodeURIComponent(M).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),T&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){const t="string"==typeof e?e.indexOf("#"):-1;return wu(-1===t?e:e.slice(0,t),vu)}(t);if(n>E)throw new cl("maxContentLength size of "+E+" exceeded",cl.ERR_BAD_RESPONSE,e,N)}if(P&&"get"!==n&&"head"!==n){const e=await y(s);if("number"==typeof e&&isFinite(e)&&(D=e,e>_))throw L()}const d=P&&(Wc.isReadableStream(s)||Wc.isStream(s)),p=(e,t,n)=>du(e,65536,e=>{if(P&&e>_)throw k=L();t&&t(e)},n);if(m&&"get"!==n&&"head"!==n&&(v||d)){if(D=D??await(async(e,t)=>{const n=Wc.toFiniteNumber(e.getContentLength());return n??y(t)})(A,s),0!==D||d){let e,n=new i(t,{method:"POST",body:s,duplex:"half"});if(Wc.isFormData(s)&&(e=n.headers.get("content-type"))&&A.setContentType(e),n.body){const[e,t]=v&&zl(D,ql(Vl(v)))||[];s=p(n.body,e,t)}}}else if(d&&!c&&u&&"get"!==n&&"head"!==n)s=p(s);else if(d&&c&&!m&&"get"!==n&&"head"!==n)throw new cl("Stream request bodies are not supported by the current fetch implementation",cl.ERR_NOT_SUPPORT,e,N
vendor: 9,663 bytes, line 2
2);Wc.isString(b)||(b=b?"include":"omit");const U=c&&"credentials"in i.prototype;if(Wc.isFormData(s)){const e=A.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&A.delete("content-type")}A.set("User-Agent","axios/1.20.0",!1);const B=null==S?S:Object.assign(Object.create(null),S);B&&(delete B.body,delete B.headers,delete B.method,delete B.signal,delete B.duplex,delete B.credentials);const H=Object.assign(Object.create(null),B,{signal:C,method:n.toUpperCase(),headers:zc(A.normalize()),body:s,duplex:"half",credentials:U?b:void 0});c&&(Wc.forEach(Au,(e,t)=>{void 0===H[t]&&(H[t]=e)}),void 0===H.signal&&(H.signal=null),void 0===H.body&&(H.body=null)),0===R&&(H.redirect="manual",B&&(B.redirect="manual")),N=c&&new i(t,H);let F=await(c?O(N,B):O(t,H));const j=rl.from(F.headers);if(T){const t=Wc.toFiniteNumber(j.getContentLength());if(null!=t&&t>E)throw new cl("maxContentLength size of "+E+" exceeded",cl.ERR_BAD_RESPONSE,e,N)}const G=h&&("stream"===w||"response"===w);if(h&&F.body&&(g||T||G&&I)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=F[e]});const n=Wc.toFiniteNumber(j.getContentLength()),[r,o]=g&&zl(n,ql(Vl(g),!0))||[];let i=0;const s=t=>{if(T&&(i=t,i>E))throw new cl("maxContentLength size of "+E+" exceeded",cl.ERR_BAD_RESPONSE,e,N);r&&r(t)};F=new a(du(F.body,65536,s,()=>{o&&o(),I&&I()}),t)}w=w||"text";let W=await f[Wc.findKey(f,w)||"text"](F,e);if(T&&!h&&!G){let t;if(null!=W&&("number"==typeof W.byteLength?t=W.byteLength:"number"==typeof W.size?t=W.size:"string"==typeof W&&(t="function"==typeof r?(new r).encode(W).byteLength:W.length)),"number"==typeof t&&t>E)throw new cl("maxContentLength size of "+E+" exceeded",cl.ERR_BAD_RESPONSE,e,N)}return!G&&I&&I(),await new Promise((t,n)=>{Gl(t,n,{data:W,headers:rl.from(F.headers),status:F.status,statusText:F.statusText,config:e,request:N})})}catch(t){if(I&&I(),C&&C.aborted&&C.reason instanceof cl){const n=C.reason;throw n.config=e,N&&(n.request=N),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(k)throw N&&!k.request&&(k.request=N),k;if(t instanceof cl)throw N&&!t.request&&(t.request=N),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const n=new cl("Network Error",cl.ERR_NETWORK,e,N,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw cl.from(t,t&&t.code,e,N,t&&t.response)}var M,x}},Ru=new Map,Tu=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,c=i.length,l=Ru;for(;c--;)a=i[c],s=l.get(a),void 0===s&&l.set(a,s=c?new Map:_u(t)),l=s;return s},Pu=(Tu(),{http:null,xhr:su,fetch:{get:Tu}});Wc.forEach(Pu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Ou=e=>`- ${e}`,Cu=e=>Wc.isFunction(e)||null===e||!1===e;const Nu={getAdapter:function(e,t){e=Wc.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!Cu(r)&&(o=Pu[(n=String(r)).toLowerCase()],void 0===o))throw new cl(`Unknown adapter '${n}'`);if(o&&(Wc.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Ou).join("\n"):" "+Ou(e[0]):"as no adapter specified";throw new cl("There is no suitable adapter to dispatch the request "+t,cl.ERR_NOT_SUPPORT)}return o},adapters:Pu};function Iu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jl(null,e)}function Du(e){const t=Wc.toSafeFlatObject(e);Iu(t),t.headers=rl.from(Wc.getSafeProp(t,"headers")),t.data=Hl.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return Nu.getAdapter(t.adapter||Bl.adapter,t)(t).then(function(e){Iu(t),t.response=e;try{e.data=Hl.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=rl.from(e.headers),e},function(e){if(!Fl(e)&&(Iu(t),e&&e.response)){t.response=e.response;try{e.response.data=Hl.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=rl.from(e.response.headers)}return Promise.reject(e)})}const ku={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ku[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Lu={};ku.transitional=function(e,t,n){function r(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new cl(r(o," has been removed"+(t?" in "+t:"")),cl.ERR_DEPRECATED);return t&&!Lu[o]&&(Lu[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},ku.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Mu={assertOptions:function(e,t,n){if("object"!=typeof e||null===e)throw new cl("options must be an object",cl.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new cl("option "+i+" must be "+n,cl.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new cl("Unknown option "+i,cl.ERR_BAD_OPTION)}},validators:ku},xu=Mu.validators;class Uu{constructor(e){this.defaults=e||{},this.interceptors={request:new _l,response:new _l}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack;let r="";if("string"==typeof n){const e=n.indexOf("\n");r=-1===e?"":n.slice(e+1)}if(e.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),o=-1===n?"":r.slice(n+1);String(e.stack).endsWith(o)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ou(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Mu.assertOptions(n,{silentJSONParsing:xu.transitional(xu.boolean),forcedJSONParsing:xu.transitional(xu.boolean),clarifyTimeoutError:xu.transitional(xu.boolean),legacyInterceptorReqResOrdering:xu.transitional(xu.boolean),advertiseZstdAcceptEncoding:xu.transitional(xu.boolean),validateStatusUndefinedResolves:xu.transitional(xu.boolean)},!1),null!=r&&(Wc.isFunction(r)?t.paramsSerializer={serialize:r}:Mu.assertOptions(r,{encode:xu.function,serialize:xu.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Mu.assertOptions(t,{baseUrl:xu.spelling("baseURL"),withXsrfToken:xu.spelling("withXSRFToken")},!0),t.method=(Wc.getSafeProp(t,"method")||Wc.getSafeProp(this.defaults,"method")||"get").toLowerCase();let i=o&&Wc.merge(o.common,o[t.method]);o&&Wc.forEach(Ml.concat("common"),e=>{delete o[e]}),t.headers=rl.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||Rl;n&&n.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(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=[Du.bind(this),void 0];for(e.unshift(...a),e.push(...c),u=e.length,l=Promise.resolve(t);d<u;)l=l.then(e[d++],e[d++]);return l}u=a.length;let p=t;for(;d<u;){const e=a[d++],t=a[d++];try{p=e?e(p):p}catch(e){if(!t){l=Promise.reject(e);break}try{const n=t.call(this,e);Wc.isThenable(n)&&(l=Promise.resolve(n).then(()=>Du.call(this,p)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=Du.call(this,p)}catch(e){l=Promise.reject(e)}for(d=0,u=c.length;d<u;)l=l.then(c[d++],c[d++]);return l}getUri(e){return wl(nu((e=ou(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}Wc.forEach(["delete","get","head","options"],function(e){Uu.prototype[e]=function(t,n){return this.request(ou(n||{},{method:e,url:t,data:n&&Wc.hasOwnProp(n,"data")?n.data:void 0}))}}),Wc.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,o){return this.request(ou(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Uu.prototype[e]=t(),"query"!==e&&(Uu.prototype[e+"Form"]=t(!0))});const Bu=Uu;class Hu{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 n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new jl(e,r,o),t(n.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 Hu(function(t){e=t});return{token:t,cancel:e}}}const Fu=Hu;const ju={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
2alContent: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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ju).forEach(([e,t])=>{void 0===ju[t]&&(ju[t]=e)});const Gu=ju;const Wu=function e(t){const n=new Bu(t),r=Js(Bu.prototype.request,n);return Wc.extend(r,Bu.prototype,n,{allOwnKeys:!0}),Wc.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ou(t,n))},r}(Bl);Wu.Axios=Bu,Wu.CanceledError=jl,Wu.CancelToken=Fu,Wu.isCancel=Fl,Wu.VERSION="1.20.0",Wu.toFormData=ml,Wu.AxiosError=cl,Wu.Cancel=Wu.CanceledError,Wu.all=function(e){return Promise.all(e)},Wu.spread=function(e){return function(t){return e.apply(null,t)}},Wu.isAxiosError=function(e){return Wc.isObject(e)&&!0===e.isAxiosError},Wu.mergeConfig=ou,Wu.AxiosHeaders=rl,Wu.formToJSON=e=>Ll(Wc.isHTMLForm(e)?new FormData(e):e),Wu.getAdapter=Nu.getAdapter,Wu.HttpStatusCode=Gu,Wu.default=Wu;const Ku=Wu;var Ju,Xu,Yu=function(){try{var e=localStorage.getItem(fs);return"string"==typeof e?e:"{}"}catch(e){ds("Unable to get session from local storage: ",e)}return"{}"},qu=function(e){try{ds("Setting local storage session",e),localStorage.setItem(fs,e)}catch(e){ds("Unable to save session from local storage: ",e)}},zu=function(e){try{Cs(hs,e,{path:"/",domain:Os(),expires:365,secure:!0})}catch(e){ds("Unable to save session to cookie storage: ",e)}},Vu=function(){var e=r(o.mark(function e(t){var n,r,i;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=us.A.sessionServer,r="".concat(n,"/api/session"),ds("Updating server session: ",r),e.next=1,Ku.post(r,t,{withCredentials:!0});case 1:e.next=3;break;case 2:e.prev=2,i=e.catch(0),ds("Failed to update session server: ",i);case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),Zu=function(){var e=r(o.mark(function e(t){var n,r,i,a,s,c,l,u,d,p,m,h,f,y,g,v,w,A,b,S,E,_,R,T,P,O,C,N,I;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=Yu(),r=JSON.parse(n),i=r.accessToken,a=void 0===i?null:i,s=r.idToken,c=void 0===s?null:s,l=r.entitlementToken,u=void 0===l?null:l,d=r.expiration,p=void 0===d?null:d,m=r.entitlementSource,h=void 0===m?null:m,f=r.isEntitled,y=void 0===f?null:f,g=r.adFree,v=void 0===g?null:g,w=r.entitlementLevel,A=void 0===w?null:w,b=t.accessToken,S=t.idToken,E=t.entitlementToken,_=t.expiration,R=t.entitlementSource,T=t.isEntitled,P=t.adFree,O=t.entitlementLevel,C={accessToken:b??a,idToken:S??c,entitlementToken:E??u,expiration:_??p,entitlementSource:R??h,isEntitled:T??y,adFree:P??v,entitlementLevel:O??A},ds("Current session data: ",r),ds("New session data: ",t),ds("Updated session data:",C),N=JSON.stringify(C),qu(N),""!==C.entitlementToken&&"string"==typeof C.entitlementToken&&zu(C.entitlementToken),n===N){e.next=1;break}return e.next=1,Vu(C);case 1:e.next=3;break;case 2:e.prev=2,I=e.catch(0),ds("Unable to save session: ",I);case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();window.authentication_config.isEmbedLoginEnabled;window.addEventListener("mng-all-islands-ready",function(e){Ju||(Ju=e,Xu&&(ds("utils | Dispatching mng-entitlement-check-complete event (islands were not ready): ",Xu),window.dispatchEvent(Xu)))});var $u=function(e){Cs(hs,e,{path:"/",domain:Os(),expires:365,secure:!0})},Qu=function(){var e=r(o.mark(function e(t){var n,r;return o.wrap(function(e){for(;;
2)switch(e.prev=e.next){case 0:if(e.prev=0,$u(t),ds("About to decode token before saving: ",t),n=Ds(t),!window.authentication_config.sessionManagementEnabled){e.next=2;break}return e.next=1,Zu({entitlementToken:t,expiration:n.entitlement_expiry,entitlementSource:n.entitlement_source,isEntitled:n.entitlement_entitled,adFree:n.entitlement_extras_adfree||!1,entitlementLevel:n.entitlement_level});case 1:e.next=3;break;case 2:window.localStorage.setItem(fs,JSON.stringify({entitlementToken:t,expiration:n.entitlement_expiry,entitlementSource:n.entitlement_source,isEntitled:n.entitlement_entitled,adFree:n.entitlement_extras_adfree||!1,entitlementLevel:n.entitlement_level}));case 3:e.next=5;break;case 4:e.prev=4,r=e.catch(0),ds("Entitlements: Failed to save token: ",r);case 5:case"end":return e.stop()}},e,null,[[0,4]])}));return function(t){return e.apply(this,arguments)}}(),ed=function(){var e=r(o.mark(function e(t){var n,r,a,s,c,l,u,d,p,m;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(ds("Entitlements: create token start..."),ds("Entitlements: createToken payload with ",t),"object"===i(t)||"string"==typeof t.sub){e.next=1;break}throw new Error("No user info to create token");case 1:if(n=window.location.hostname,r=Ps(n),t.sub&&(a=t.sub),t.idToken&&(s=t.idToken),s||a){e.next=2;break}throw new Error("No idToken or uuid provided.");case 2:return c={publication:r.replace("vipdev.lndo.site","com"),requestSource:"website"},s?c.idToken=s:a&&(c.uuid=a),l="".concat(us.A.entitlementsEndpoint,"session/create"),ds("Entitlements: create payload",c),e.prev=3,e.next=4,$.ajax({type:"POST",url:l,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8","X-Api-Key":us.A.entitlementsApiKey},data:JSON.stringify(c)});case 4:if("boolean"!=typeof(u=e.sent).success){e.next=6;break}if(u.success){e.next=5;break}return e.abrupt("return",new Error("Entitlements | API returned no JWT"));case 5:d=u.data.jwt,ds("Entitlements: Token Created: ",d),e.next=7;break;case 6:d=u.jwt;case 7:return e.next=8,Qu(d);case 8:return e.abrupt("return",d);case 9:if(e.prev=9,p=e.catch(3),ds("Entitlements: Create Token Failure: ",p),Fs(),!window.authentication_config.sessionManagementEnabled){e.next=13;break}return e.prev=10,e.next=11,Zu({entitlementToken:null});case 11:e.next=13;break;case 12:e.prev=12,m=e.catch(10),ps("Entitlements: Save Session Failure during error handling: ",m);case 13:throw new Error("Entitlements Refresh failure");case 14:case"end":return e.stop()}},e,null,[[3,9],[10,12]])}));return function(t){return e.apply(this,arguments)}}(),td=function(e){Xu=new CustomEvent("mng-entitlement-check-complete",{detail:e}),Ju?(ds("utils | Dispatching mng-entitlement-check-complete event (islands were ready): ",e),window.dispatchEvent(Xu)):ds("Islands not ready")};window.addEventListener("entitlementsReady",function(e){return td(e.detail)});var nd=function(){var e=JSON.parse(window.localStorage.getItem(fs));return null!=e&&(ds("Subscriber Check: : ",e.isEntitled),e.isEntitled)},rd=function(){var e=r(o.mark(function e(){var t,n,r,i,a,s,c,l,u,d,p,m,h,f,y,g,v,w=arguments;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(w.length>0&&void 0!==w[0]?w[0]:{}).forceRecheck,n=void 0!==t&&t,e.prev=1,r=window.localStorage.getItem(ys),i=Ts(ms),a=Rs(),s=Is(),c=Ts("clearEntCache"),!(n||c||a.searchParams.has("newUser"))){e.next=7;break}return l="".concat(us.A.entitlementsEndpoint,"session/create"),e.next=2,Bs();case 2:return u=e.sent,d={uuid:u.claims.auth0Id,publication:s},e.prev=3,e.next=4,$.ajax({type:"DELETE",url:l,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8","X-Api-Key":us.A.entitlementsApiKey},data:JSON.stringify(d)});case 4:e.sent&&(ds("loggedOutNewSubscriberActions","Entitlements: Cache cleared"),Ns("clearEntCache")),e.next=6;break;case 5:e.prev=5,g=e.catch(3),ds("loggedOutNewSubscriberActions","Entitlements:  Cache clear Failure - ".concat(g.message));case 6:e.next=8;break;case 7:ds("loggedOutNewSubscriberActions","There is no clearEntCache cookie");case 8:if(ds("loggedOutNewSubscriberActions","Checking if this is a new regwall subscriber"),!(n||c||"false"===r&&a.searchParams.has("newUser")&&i)){e.next=11;break}return p=!1,m={sub:i,email_verified:!0},e.next=9,ed(m);
2case 9:if((h=e.sent)&&""!==h&&(f=Ds(h),y=f.entitlement_entitled,p=y),ds("loggedOutNewSubscriberActions","New regwall user is entitled: ".concat(p)),!p){e.next=10;break}return window.localStorage.setItem(ys,"true"),window.ConnextUtils.rerunConnextEntitlements(),e.abrupt("return",!0);case 10:case 11:return e.abrupt("return",!1);case 12:return e.prev=12,v=e.catch(1),ds("loggedOutNewSubscriberActions error",v),e.abrupt("return",!1);case 13:case"end":return e.stop()}},e,null,[[1,12],[3,5]])}));return function(){return e.apply(this,arguments)}}();window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.isUserAdFree=function(){var e,t=JSON.parse(window.localStorage.getItem(fs));return null!=t?(ds("Ad Free Check: : ",t.adFree),(t.idToken||null!==(e=window.MNGAuthentication)&&void 0!==e&&null!==(e=e.authenticationReady)&&void 0!==e&&e.idToken)&&t.adFree||us.A.isAdfreeArticle):us.A.isAdfreeArticle},window.MNGAuthentication.isUserSubscriber=nd,window.MNGAuthentication.loggedOutNewSubscriberActions=rd;const od=JSON.parse('{"macombdaily.com":{"code":"MD","logo":"MD_Logo.png","title":"Macomb Daily","tribune":false,"cluster":["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":"[email protected]","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":["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":"[email protected]","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":["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":"[email protected]","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"}]},"thenewsherald.com":{"code":"TNH","logo":"TNH_Logo.png","title":"The News-Herald","tribune":false,"cluster":[],"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":"[email protected]","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":""}]}
2,"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":" [email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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"}]}
2,"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":"[email protected]","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","mainlinemedianews.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":"[email protected]","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","mainlinemedianews.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":"[email protected]","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","mainlinemedianews.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":"[email protected]","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","mainlinemedianews.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":"[email protected]","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"}
2]},"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","mainlinemedianews.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":"[email protected]","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","mainlinemedianews.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":"[email protected]","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","mainlinemedianews.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":"[email protected]","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":"[email protected]","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":"[email protected]","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"}]}
2,"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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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"}]}
2,"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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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/detail
2s?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":"[email protected]","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":"[email protected]","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":"[email protected]","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":""}]}
2,"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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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"}]}
2,"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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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"}]}
2,"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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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"}]}
2,"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":"[email protected]","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":"[email protected]","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_7c590f01490190db0ed02a5070e20f
201"}]},"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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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"}]}
2,"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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","address1":"PO Box 1377","address2":"Baltimore, MD 21278","timeZone":"Eastern","supp
2ortHours":""},"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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","address1":"PO Box 2833","address2":"Orlando, FL 32802","timeZone":"Eastern","supp
2ortHours":""},"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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","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":"[email protected]","address1":"305 Linden St.","address2":"Scranton, PA 18503","timeZone":"Eastern","supp
2ortHours":"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":"[email protected]","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":[]},"pressdemocrat.com":{"code":"PD","logo":"PD_Logo.png","title":"The Press Democrat","tribune":false,"cluster":["sonomanews.com","petalumanews.com"],"clusterName":"PDNG","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) 575-7500","email":"[email protected]","address1":"416 B Street","address2":"Santa Rosa, CA 95401","timeZone":"Pacific","supportHours":"Monday - Friday 7:00 a.m. - 5:00 p.m. \\\\n Saturday 7:00 a.m. - 10:30 a.m. \\\\n Sunday 7:30 a.m. - 10:30 a.m. \\\\n Holidays 7:30 a.m. - 10:30 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/the-press-democrat-eedition/id591168598","play_store":"https://play.google.com/store/apps/details?id=com.santarosapressdemocrat.android.prod"}]},"sonomanews.com":{"code":"SIT","logo":"SIT_Logo.png","title":"Sonoma Index-Tribune","tribune":false,"cluster":["pressdemocrat.com","petalumanews.com"],"clusterName":"PDNG","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) 575-7500","email":"[email protected]","address1":"416 B Street","address2":"Santa Rosa, CA 95401","timeZone":"Pacific","supportHours":"Monday - Friday 7:00 a.m. - 5:00 p.m. \\\\n Saturday 7:00 a.m. - 10:30 a.m. \\\\n Sunday 7:30 a.m. - 10:30 a.m. \\\\n Holidays 7:30 a.m. - 10:30 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/the-sonoma-index-tribune/id959583528","play_store":"https://play.google.com/store/apps/details?id=com.sonomaindextribune.android.prod"}]},"petalumanews.com":{"code":"AC","logo":"AC_Logo.png","title":"Petaluma Argus Courier","tribune":false,"cluster":["pressdemocrat.com","sonomanews.com"],"clusterName":"PDNG","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) 575-7500","email":"[email protected]","address1":"416 B Street","address2":"Santa Rosa, CA 95401","timeZone":"Pacific","supportHours":"Monday - Friday 7:00 a.m. - 5:00 p.m. \\\\n Saturday 7:00 a.m. - 10:30 a.m. \\\\n Sunday 7:30 a.m. - 10:30 a.m. \\\\n Holidays 7:30 a.m. - 10:30 a.m."},"apps":[{"app_store":"https://apps.apple.com/us/app/petaluma-argus-courier/id787425680","play_store":"https://play.google.com/store/apps/details?id=com.petalumaarguscourier.android.prod"}]},"mainlinemedianews.com":{"code":"MLTI","logo":"MLTI_Logo.png","title":"Mainline Media News","tribune":false,"cluster":["readingeagle.com","thereporteronline.com","timesherald.com","pottsmerc.com","trentonian.com","dailylocal.com","delcotimes.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-5161","email":"[email protected]","address1":"390 Eagleview Blvd.","address2":"Exton, PA 19341","timeZone":"Eastern","supp
2ortHours":""},"apps":[{"app_store":"","play_store":""}]}}');var id=function(){return ws(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".apple-pay-button",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Apple",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];gs(this,e),s(this,"formatNum",function(e){return Number.isInteger(e)?e.toFixed(2):e}),this.paymentSource=n,this.buttonSelector=t,this.twoStepPaywall=r,this.dynamicOfferCodeId="",this.siteName=Is(),this.siteNameParsed=this.siteName.replace("www.","").replace("preprod.","").replace("develop.","").replace("staging.",""),this.offerGroup=null,this.offerId=null,this.terms="",this.tokenReady=!1,this.paywayRequestToken=null,this.transactionName="",this.site=od[this.siteNameParsed],this.siteCode=this.site.code,this.loggedInUserData=null,this.email="",this.uuid="",this.offerDetails=null,this.sourceId=0,this.serviceUrl="https://paywayws.com/PaywayWS/AccessTokens",this.billingUrl="https://paywayws.com/PaywayWS/CreditCards",this.safeURL="",this.onApplePayClick=this.thirdPartyPaymentButtonClicked.bind(this),this.paymentDescription=null,this.promoLabel=null,this.promoUnit=null,this.promoCount=null,this.promoAmount=null,this.regularLabel=null,this.regularUnit=null,this.regularCount=null,this.regularAmount=null,this.promoDuration=null},[{key:"queuePaywaySession",value:(i=r(o.mark(function e(){var t,n,r,i,a,s,c,l,u,d;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(ds("APPLE PAY |  queue session started"),e.prev=1,t=document.querySelector(this.buttonSelector)){e.next=2;break}return ds("APPLE PAY | no button found, exiting queue"),e.abrupt("return");case 2:return this.paymentDescription=t.dataset.description,this.promoLabel=t.dataset.promoLabel,this.promoUnit=t.dataset.promoIntervalUnit,this.promoCount=t.dataset.promoIntervalCount,this.promoAmount=t.dataset.promoAmount,this.regularLabel=t.dataset.regularLabel,this.regularUnit=t.dataset.regularIntervalUnit,this.regularCount=t.dataset.regularIntervalCount,this.regularAmount=t.dataset.regularAmount,this.promoDuration=t.dataset.promoDuration,n=document.querySelector(".terms"),e.next=3,xs("URL");case 3:return this.safeURL=e.sent,ds("APPLE PAY | dataset",t.dataset),this.safeURL.includes("staging")||this.safeURL.includes("develop")?(this.serviceUrl="https://paywaywsdev.com/PaywayWS/AccessTokens",this.billingUrl="https://paywaywsdev.com/PaywayWS/CreditCards",this.offerGroup=t.dataset.offergroup,this.offerId=t.dataset.offercode,this.safeURL.includes("chicagotribune")?(ds("APPLE PAY | Chicago stage /dev"),this.offerGroup="4214",this.offerId="11082"):this.safeURL.includes("sandiego")?(this.offerGroup="2878",this.offerId="5795"):this.safeURL.includes("republicanherald")?(this.offerGroup="1852",this.offerId="4638"):(this.offerGroup=t.dataset.offergroup,this.offerId=t.dataset.offercode),n&&(this.terms=n.textContent)):(this.offerGroup=t.dataset.offergroup,this.offerId=t.dataset.offercode,n&&(this.terms=n.textContent)),this.sourceId=window.apple_config.sourceId?parseInt(window.apple_config.sourceId,10):0,e.next=4,this.resolveOfferDetails();case 4:if(this.offerDetails=e.sent,ds("APPLE PAY | offer ",this.offerDetails),!window.MNGAuthentication){e.next=6;break}return e.next=5,MNGAuthentication.getUserInfo();case 5:this.loggedInUserData=e.sent,this.uuid=this.loggedInUserData.userId,this.email=this.loggedInUserData.email;case 6:return r="".concat(us.A.entitlementsEndpoint,"payway/queue_transaction"),i=String(this.offerDetails.promo.amount).replace(".",""),a={amount:i,eciType:1,sourceId:this.sourceId,tax:"0",transactionNotes1:"",transactionNotes2:"",transactionNotes3:"",request:"queueAuthorize"},ds("APPLE PAY | sending queue object ",a),e.next=7,fetch(r,{method:"POST",headers:{"X-Api-Key":us.A.entitlementsApiKey},body:JSON.stringify(a)});case 7:return s=e.sent,e.next=8,s.json();case 8:c=e.sent,ds("APPLE PAY |request token received from entitler"),this.paywayRequestToken=c.data.paywayRequestToken,this.transactionName=c.data.transactionName,c.data.paywayRequestToken&&(ds("APPLE PAY |  queue session success, showing button "),n&&(n.style.display="block"),this.twoStepPaywall&&((l=document.querySelector("#apple-available"))&&l.style.setProperty("display","flex","important"),(u=document.querySelector("#appleButton"))&&u.addEventListener("click",this.showApplePay,{once:!0})),t.style.setProperty("display","block","important"),t.removeEventListener("click",this.onApplePayClick),t.addEventListener("click",this.onApplePayClick,{once:!0}),t.disabled=!1,ds("APPLE PAY | queue success "),window.MG2DL.push({event:"g2i_action_shown",actionType:"paywall",actionName:"apple_pay"})),e.next=10;break;case 9:e.prev=9,d=e.catch(1),ds("APPLE PAY ERROR | queue failed error ",d),this.errorHandler("Payway","queue failed");case 10:case"end":return e.stop()}},e,this,[[1,9]])})),function(){return i.apply(this,arguments)})},{key:"getBillingDataLocallyWithOfferCode",value:function(e,t){var n={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 y
2our 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",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:1},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:!1,promo:{label:"Standard Digital: 1 Year Trial",amount:"0.01",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount: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",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount: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",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount: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",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount: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",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount: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",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount: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",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount: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",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount: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",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount: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",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount: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",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount: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",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount: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",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:2},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",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",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",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:2},regularBilling:{label:"Regular Billing",amount:"21.99",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:30,type:"final"}}},4214:{11082:{billingAgreement:this.terms,offerId:11082,promoDuration:"1 year",paymentDescription:"$0.01 for 1 year introductory rate, then your payment method will be charged $19.96 every four weeks",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"0.01",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:1},regularBilling:{label:"Regular Billing",amount:"19.96",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:28,type:"final"}}},10493:{22449:{billingAgreement:this.terms,offerId:22449,promoDuration:"1 year",paymentDescription:"$0.01 for 1 year introductory rate, then your payment method will be charged $19.96 every four weeks",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"0.01",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:1},regularBilling:{label:"Regular Billing",amount:"19.96",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:28,type:"final"}}},10511:{22498:{billingAgreement:this.terms,offerId:22498,promoDuration:"1 year",paymentDescription:"$1.00 for 1 year introductory rate, then your payment method will be charged  $4.99 per week, billed every 4 weeks ($19.96 total)",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"1.00",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:1},regularBilling:{label:"Regular Billing",amount:"19.96",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:28,type:"final"}}},2878:{5795:{billingAgreement:this.terms,offerId:5795,promoDuration:"1 year",paymentDescription:"$0.01 for 1 year introductory rate, then your payment method will be charged $19.96 every four weeks",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"0.01",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentIntervalCount:1},regularBilling:{label:"Regular Billing",amount:"19.96",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:28,type:"final"}}},3014:{23816:{billingAgreement:this.terms,offerId:23816,promoDuration:"1 year",paymentDescription:"$1.00 for 1 year introductory rate, then your payment method will be charged $19.96 every 4 weeks",trialIsRecurring:!0,promo:{label:"Standard Digital: 1 Year Trial",amount:"1.00",paymentTiming:"recurring",recurringPaymentIntervalUnit:"year",recurringPaymentCount:1},regularBilling:{label:"Regular Billing",amount:"19.96",paymentTiming:"recurring",recurringPaymentIntervalUnit:"day",recurringPaymentIntervalCount:28,type:"final"}}}};if(n[e]&&n[e][t]){var r=n[e][t],o=r.promoDuration,i=this.getFutureDate(o);return r.regularBilling.recurringPaymentStartDate=i,r.trialIsRecurring&&(r.promo.recurringPaymentEndDate=i),r}return null}},{key:"resolveOfferDetails",value:(n=r(o.mark(function e(){var t,n,r,i,a,s,c,l,u,d,p,m;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this.paymentDescription&&this.promoLabel&&this.promoUnit&&this.promoCount&&this.promoAmount&&this.regularLabel&&this.regularAmount&&this.regularUnit&&this.regularCount)){e.next=3;break}if(ds("APPLE PAY | using offer details from self manage paywall "),t=parseInt(this.promoUnit,10),!Number.isNaN(t)){e.next=1;break}return e.abrupt("return",this.getBillingDataLocallyWithOfferCode(this.offerGroup,this.offerId));case 1:if(this.promoUnit=t,n=parseInt(this.regularUnit,10),!Number.isNaN(n)){e.next=2;break}return e.abrupt("return",this.getBillingDataLocallyWithOfferCode(this.offerGroup,this.offerId));case 2:return this.regularUnit=n,e.abrupt("return",{billingAgreement:this.terms,offerId:this.offerId,promoDuration:"".concat(this.promoUnit," ").concat(this.promoCount," "),paymentDescription:this.paymentDescription,trialIsRecurring:!1,promo:{label:this.promoLabel,amount:this.promoAmount,paymentTiming:"recurring",recurringPaymentIntervalUnit:this.promoCount,recurringPaymentIntervalCount:this.promoUnit},regularBilling:{label:this.regularLabel,amount:this.regularAmount,paymentTiming:"recurring",recurringPaymentIntervalUnit:this.regularCount,recurringPaymentIntervalCount:this.regularUnit,type:"final"}});case 3:return a="".concat(us.A.entitlementsEndpoint,"payway/get_offer"),s={domain:this.siteNameParsed,offerGroupId:this.offerGroup,offerId:this.offerId},ds("APPLE PAY | sending to Naviga server call ",s),e.next=4,fetch(a,{method:"POST",headers:{"X-Api-Key":us.A.entitlementsApiKey},body:JSON.stringify(s)});case 4:return c=e.sent,e.next=5,c.json();case 5:if(l=e.sent,ds("APPLE PAY | result from Naviga server call ",null==l||null===(r=l.data)||void 0===r||null===(r=r.Result)||void 0===r?void 0:r.Offers[0]),u=null==l||null===(i=l.data)||void 0===i||null===(i=i.Result)||void 0===i?void 0:i.Offers[0],ds("APPLE PAY | result from Naviga server call ",u),u){e.next=6;break}return e.abrupt("return",this.getBillingDataLocallyWithOfferCode(this.offerGroup,this.offerId));case 6:return d=this.normalizeInterval(u.PromotionalTermUnit,u.PromotionalTermLength),p=this.normalizeInterval(u.BillingSystemCode5,u.BillingSystemCode7),this.paymentDescription=u.Marketing.MarketingConfirmationName,this.promoLabel=u.Mar
2keting.MarketingPrice,this.promoUnit=d.unit,this.promoCount=d.count,this.promoAmount=this.formatNum(u.ProductPriceGroups[0].SolConProductPrice),this.regularLabel=u.Marketing.MarketingTitle,this.regularUnit=p.unit,this.regularCount=p.count,this.regularAmount=this.formatNum(u.ProductPriceGroups[0].AppleRenewPrice),m={billingAgreement:this.terms,offerId:this.offerId,promoDuration:"".concat(this.promoUnit," ").concat(this.promoCount," "),paymentDescription:this.paymentDescription,trialIsRecurring:!1,promo:{label:"Standard Digital Access",amount:String(this.promoAmount),paymentTiming:"recurring",recurringPaymentIntervalUnit:this.promoUnit,recurringPaymentIntervalCount:this.promoCount},regularBilling:{label:"Standard Digital Access",amount:String(this.regularAmount),paymentTiming:"recurring",recurringPaymentIntervalCount:this.regularCount,recurringPaymentIntervalUnit:this.regularUnit,type:"final"}},e.abrupt("return",m);case 7:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"normalizeInterval",value:function(e,t){return e=String(e||"").trim().toLowerCase(),t=parseInt(t,10)||1,"week"===e?{unit:"day",count:7*t}:{unit:e,count:t}}},{key:"getFutureDate",value:function(e){var t=l(e.split(" "),2),n=t[0],r=t[1],o=parseInt(n,10),i=new Date,a=r.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:"showApplePay",value:function(e){var t=document.querySelector("#opt__select");t&&t.style.setProperty("display","none","important");var n=document.querySelector("#apl__contain");n&&n.style.setProperty("display","block","important")}},{key:"thirdPartyPaymentButtonClicked",value:(t=r(o.mark(function e(){var t,n,r,i;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:try{ds("APPLE PAY | transaction button clicked - payment processing started"),window.dataLayer.push({event:"apple-pay-button-clicked",userAction:"click",uiSection:"paywall",uiElementType:"button"}),t=ks()?"TribuneCEP":"MNG",n=this.paywayRequestToken,(new Date).toISOString(),r=[],this.offerDetails.promo&&r.push(this.offerDetails.promo),r.push(this.offerDetails.regularBilling),i={requiredBillingContactFields:["postalAddress","phone"],countryCode:"US",currencyCode:"USD",merchantCapabilities:["supports3DS","supportsDebit","supportsCredit"],supportedNetworks:["visa","masterCard","amex","discover"],lineItems:r,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}},ds("APPLE PAY | payment request data ",i),this.initApplePaySession(i,n)}catch(e){this.errorHandler("Digisubs","payment options fail"),ds("APPLE PAY ERROR | Failed to initialize payment options",e)}case 1:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"initApplePaySession",value:(e=r(o.mark(function e(t,n){var i,a,s,c,l,u,d,p=this;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,ds("APPLE PAY |  Apple Pay starting session with req object "),i=new ApplePaySession(14,t),a="".concat(us.A.entitlementsEndpoint,"payway/create_subscription"),s=new URL(this.safeURL),c=s.hostname,i.onvalidatemerchant=function(){var e=r(o.mark(function e(t){var r,a,s,l,u,d;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return ds("APPLE PAY |  Apple Pay validating merchant"),e.prev=1,r={request:"getApplePaySession",url:t.validationURL,domain:c,merchantIdentifier:"merchant.com.payway.mng",paywayRequestToken:n},a=JSON.stringify(r),ds("APPLE PAY |  Apple Pay validating merchant req body"),e.next=2,fetch(p.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 l=e.sent,p.errorHandler("Payway","accessToken fail"),ds("APPLE PAY ERROR | Merchant validation error: ".concat(s.status," ").concat(l)),e.abrupt("return");case 4:return e.next=5,s.text();case 5:u=e.sent,u=JSON.parse(u);try{i.completeMerchantValidation(JSON.parse(u.appleSessionToken))}catch(e){p.errorHandler("apple","completeMerchantValidation fail"),ds("APPLE PAY ERROR | Cannot init complete merch validation ",e)}e.next=7;break;case 6:e.prev=6,d=e.catch(1),p.errorHandler("apple","onvalidatemerchant fail"),ds("APPLE PAY ERROR | Apple Validation reply error: ".concat(d.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=r(o.mark(function e(t){var r,s,c,l,u,d,m,h,f,y,g,v,w,A,b,S,E,_,R,T,P,O,C,N,I,D,k,L,M,x,U,B,H;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return ds("APPLE PAY |  Apple Pay payment authorized event"),b={accountInputMode:"applePay",paywayRequestToken:p.paywayRequestToken,transactionName:p.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===(r=t.payment.billingContact)||void 0===r?void 0:r.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===(l=t.payment.billingContact)||void 0===l?void 0:l.locality)||"",state:(null===(u=t.payment.billingContact)||void 0===u?void 0:u.administrativeArea)||"",zip:(null===(d=t.payment.billingContact)||void 0===d?void 0:d.postalCode)||"",email:(null===(m=p.loggedInUserData)||void 0===m?void 0:m.email)||"",phone:(null===(h=t.payment.billingContact)||void 0===h?void 0:h.phoneNumber)||""}},S={paywayRequestToken:n,applePayData:t.payment,firstName:(null===(f=t.payment.billingContact)||void 0===f?void 0:f.givenName)||"",lastName:(null===(y=t.payment.billingContact)||void 0===y?void 0:y.familyName)||"",address:(null===(g=t.payment.billingContact)||void 0===g||null===(g=g.addressLines)||void 0===g?void 0:g.join(" "))||"",city:(null===(v=t.payment.billingContact)||void 0===v?void 0:v.locality)||"",state:(null===(w=t.payment.billingContact)||void 0===w?void 0:w.administrativeArea)||"",zip:(null===(A=t.payment.billingContact)||void 0===A?void 0:A.postalCode)||"",email:p.email||"",offerId:p.offerId,offerGroupId:p.offerGroup,uuid:p.uuid||"",domain:p.siteNameParsed,paymentAmount:p.offerDetails.promo.amount,sourceId:p.sourceId,phone:t.payment.billingContact.phoneNumber?t.payment.billingContact.phoneNumber:""},e.prev=1,R=p.twoStepPaywall?document.querySelector("#apl__btns"):document.querySelector(".apple-pay-button"),null===(E=R)||void 0===E||null===(E=E.style)||void 0===E||E.setProperty("display","none","important"),null===(_=R)||void 0===_||_.removeEventListener("click",p.onApplePayClick),p.addLoadMessage(),e.next=2,fetch(p.billingUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});case 2:return T=e.sent,e.next=3,T.text();case 3:if(e.sent,ds("APPLE PAY | Response from Payway"),e.prev=4,ds("APPLE PAY | starting entitler req to naviga for new sub start"),!T.ok){e.next=12;break}return i.completePayment(ApplePaySession.STATUS_SUCCESS),e.next=5,fetch(a,{method:"POST",headers:{"X-Api-Key":us.A.entitlementsApiKey},body:JSON.stringify(S)});case 5:if(e.sent.ok){e.next=6;break}return ds("APPLE PAY | response from entitler NOT OK!!"),p.errorHandler("Digisubs","subscription request fail"),(C=document.querySelector("#creatingSubtext"))&&C.remove(),e.abrupt("return");case 6:return null===(P=window.MG2DL)||void 0===P||P.push({event:"g2i_subscription_success",payment_type:null===(O=p.offerDetails)||void 0===O||null===(O=O.regularBilling)||void 0===O?void 0:O.paymentTiming,sp_offerPlanName:"apple_pay"}),ds("APPLE PAY | response from entitler and refreshing token"),e.next=7,Bs();case 7:if(N=e.sent,ds("APPLE PAY |  getting tokens auth data"),!N){e.next=11;break}if(!p.twoStepPaywall){e.next=9;break}return e.next=8,rd({forceRecheck:!0});case 8:null==(I=document.querySelector("#apple-available"))||I.style.setProperty("display","none","important"),null==(D=document.querySelector("#adhoc__plan"))||D.style.setProperty("display","none","important"),null==(k=document.querySelector("#adhoc__cancel"))||k.style.setProperty("display","none","important"),null==(L=document.querySelector("#adhoc__success"))||L.style.setProperty("display","block","important"),null==(M=document.querySelector("#creatingSubtext"))||M.style.setProperty("display","none","important"),null==(x=document.querySelector(".terms"))||x.style.setProperty("display","none","important"),e.next=11;break;case 9:return e.next=10,rd({forceRecheck:!0});case 10:window.Connext.CloseTemplates(),window.location.reload(),ds("APPLE PAY |  Created new token for new Apple subscriber user");case 11:e.next=13;break;case 12:p.errorHandler("Payway","payway session fail"),i.completePayment(ApplePaySession.STATUS_FAILURE);case 13:e.next=15;break;case 14:e.prev=14,B=e.catch(4),document.querySelector(".error").style.display="block",ds("APPLE PAY ERROR | Naviga failed category ",B),(U=document.querySelector("#creatingSubtext"))&&U.remove();case 15:e.next=17;break;case 16:e.prev=16,H=e.catch(1),p.errorHandler("Digisubs","API error"),ds("APPLE PAY ERROR | Payment error: ".concat(H));case 17:case"end":return e.stop()}},e,null,[[1,16],[4,14]])}));return function(t){return e.apply(this,arguments)}}(),i.oncancel=function(e){window.dataLayer.push({event:"apple-pay-cancel"}),ds("APPLE PAY | User canceled Apple Pay session."),p.queuePaywaySession()},e.prev=1,e.next=2,ApplePaySession.applePayCapabilities("merchant.com.payway.mng");case 2:l=e.sent,ds("APPLE PAY | applePayCapabilities result:",JSON.stringify(l)),e.next=4;break;case 3:e.prev=3,u=e.catch(1),ds("APPLE PAY | applePayCapabilities threw:",u);case 4:try{i.begin()}catch(e){this.errorHandler("Apple","start fail",!1),ds("APPLE PAY ERROR | Apple Pay session failed to start:",e)}e.next=6;break;case 5:e.prev=5,d=e.catch(0),this.errorHandler("Digisubs","other",!1),ds("APPLE PAY ERROR | Apple Failed to process payment",d);case 6:case"end":return e.stop()}},e,this,[[0,5],[1,3]])}
2)),function(t,n){return e.apply(this,arguments)})},{key:"addLoadMessage",value:function(){var e=document.querySelector("#adhoc__newbody");if(e){var t=document.createElement("div");t.id="creatingSubtext",t.textContent="Creating Your Subscription...",t.style.fontWeight="700",t.style.fontSize="20px",t.style.padding="1rem 0",t.style.color="black";var n=e.querySelector("p.terms");n?n.insertAdjacentElement("afterend",t):e.appendChild(t)}}},{key:"errorHandler",value:function(e,t){(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&(document.querySelector(".error").style.display="block"),window.dataLayer.push({event:"apple-pay-error",errorSource:e,errorData:t})}}]);var e,t,n,i}();const ad=id;var sd=function(){document.addEventListener("onPaywallShown",function(){var e=r(o.mark(function e(t){var n,r,i,a,s,c,l,u,d,p,m,h;return o.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(ds("APPLE PAY | Paywall shown, checking Apple Pay availability"),n=!1,r=window.apple_config.loggedOutPurchaseEnabled,(i=document.querySelector(".error"))&&(i.style.display="none"),a=document.querySelector(".apple-pay-button"),s=document.querySelector("#apple-available"),(c=document.querySelector(".terms"))&&(c.style.display="none"),s&&(n=!0,s.style.setProperty("display","none","important")),!n&&a&&a.style.setProperty("display","none","important"),!!window.ApplePaySession){e.next=1;break}return ds("APPLE PAY | ApplePaySession not available"),null===(l=window.MG2DL)||void 0===l||l.push({event:"g2i_action_not_shown"}),e.abrupt("return");case 1:if(window.ApplePaySession.canMakePayments()){e.next=2;break}return ds("APPLE PAY | canMakePayments() returned false"),null===(u=window.MG2DL)||void 0===u||u.push({event:"g2i_action_not_shown"}),e.abrupt("return");case 2:if(r){e.next=8;break}return e.prev=3,e.next=4,Bs();case 4:if(null!=(d=e.sent)&&d.idToken){e.next=5;break}return ds("APPLE PAY | Not logged in, exit"),null===(p=window.MG2DL)||void 0===p||p.push({event:"g2i_action_not_shown"}),e.abrupt("return");case 5:e.next=7;break;case 6:return e.prev=6,m=e.catch(3),ds("APPLE PAY | Auth failed",m),e.abrupt("return");case 7:e.next=9;break;case 8:return e.abrupt("return");case 9:return e.prev=10,e.next=11,window.ApplePaySession.canMakePaymentsWithActiveCard("merchant.com.payway.mng");case 11:if(e.sent){e.next=12;break}return ds("APPLE PAY | No active Apple Pay card found, exit"),e.abrupt("return");case 12:e.next=14;break;case 13:return e.prev=13,h=e.catch(10),ds("APPLE PAY | canMakePaymentsWithActiveCard threw:",h),e.abrupt("return");case 14:ds("APPLE PAY | User has active card — queueing session"),new ad(".apple-pay-button","Apple",n).queuePaywaySession();case 15:case"end":return e.stop()}},e,null,[[3,6],[10,13]])}));return function(t){return e.apply(this,arguments)}}(),{once:!0})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",sd,{once:!0}):sd()})()})();
3//# sourceMappingURL=mng-digisubs.apple.bundle.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.