1/*! 2 * @project Fiizy OÃ 3 * @name auth.4f463aef3988e25ae6cc.js 4 * @author Fiizy OÃ 5 * @build Fri Sep 25 2026 11:02:44 GMT+0000 (Coordinated Universal Time) 6 * @copyright Copyright (c) 2026 Fiizy OÃ 7 * 8 */ 9(self.webpackChunkfiizy_cms=self.webpackChunkfiizy_cms||[]).push([["auth"],{8371:function(e){ 10/*! For license information please see index.js.LICENSE.txt */ 11self,e.exports=(()=>{var e={575:function(e,t,n){"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g&&n.g,e.exports=function(){"use strict";const e="3.6.1",t=e,n="function"==typeof atob,r="function"==typeof btoa,o="function"==typeof Buffer,i="function"==typeof TextDecoder?new TextDecoder:void 0,a="function"==typeof TextEncoder?new TextEncoder:void 0,s=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],u=(e=>{let t={};return e.forEach(((e,n)=>t[e]=n)),t})(s),c=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,l=String.fromCharCode.bind(String),f="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(e,t=(e=>e))=>new Uint8Array(Array.prototype.slice.call(e,0).map(t)),d=e=>e.replace(/[+\/]/g,(e=>"+"==e?"-":"_")).replace(/=+$/m,""),p=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),h=e=>{let t,n,r,o,i="";const a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|o,i+=s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},g=r?e=>btoa(e):o?e=>Buffer.from(e,"binary").toString("base64"):h,v=o?e=>Buffer.from(e).toString("base64"):e=>{const t=4096;let n=[];for(let r=0,o=e.length;r<o;r+=t)n.push(l.apply(null,e.subarray(r,r+t)));return g(n.join(""))},_=(e,t=!1)=>t?d(v(e)):v(e),m=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?l(192|t>>>6)+l(128|63&t):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return l(240|t>>>18&7)+l(128|t>>>12&63)+l(128|t>>>6&63)+l(128|63&t)},y=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,E=e=>e.replace(y,m),b=o?e=>Buffer.from(e,"utf8").toString("base64"):a?e=>v(a.encode(e)):e=>g(E(e)),O=(e,t=!1)=>t?d(b(e)):b(e),w=e=>O(e,!0),C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,I=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return l(55296+(t>>>10))+l(56320+(1023&t));case 3:return l((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return l((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},S=e=>e.replace(C,I),A=e=>{if(e=e.replace(/\s+/g,""),!c.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n,r,o="";for(let i=0;i<e.length;)t=u[e.charAt(i++)]<<18|u[e.charAt(i++)]<<12|(n=u[e.charAt(i++)])<<6|(r=u[e.charAt(i++)]),o+=64===n?l(t>>16&255):64===r?l(t>>16&255,t>>8&255):l(t>>16&255,t>>8&255,255&t);return o},N=n?e=>atob(p(e)):o?e=>Buffer.from(e,"base64").toString("binary"):A,R=o?e=>f(Buffer.from(e,"base64")):e=>f(N(e),(e=>e.charCodeAt(0))),T=e=>R(P(e)),k=o?e=>Buffer.from(e,"base64").toString("utf8"):i?e=>i.decode(R(e)):e=>S(N(e)),P=e=>p(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),L=e=>k(P(e)),M=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),D=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,M(t));e("fromBase64",(function(){return L(this)})),e("toBase64",(function(e){return O(this,e)})),e("toBase64URI",(function(){return O(this,!0)})),e("toBase64URL",(function(){return O(this,!0)})),e("toUint8Array",(function(){return T(this)}))},x=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,M(t));e("toBase64",(function(e){return _(this,e)})),e("toBase64URI",(function(){return _(this,!0)})),e("toBase64URL",(function(){return _(this,!0)}))},j=()=>{D(),x()},B={version:e,VERSION:t,atob:N,atobPolyfill:A,btoa:g,btoaPolyfill:h,fromBase64:L,toBase64:O,encode:O,encodeURI:w,encodeURL:w,utob:E,btou:S,decode:L,isValid:e=>{if("string"!=typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/=+$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:_,toUint8Array:T,extendString:D,extendUint8Array:x,extendBuiltins:j,Base64:{}};
11return Object.keys(B).forEach((e=>B.Base64[e]=B[e])),B}()},808:(e,t,n)=>{var r,o,i;i=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in i)i[u]&&(s+="; "+u,!0!==i[u]&&(s+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var s=i[a].split("="),u=s.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var c=t(s[0]);if(u=(r.read||r)(u,c)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[c]=u,e===c)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))},void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),e.exports=i()},148:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=o(n(776)),a=o(n(369)),s=o(n(735));t.default=function(e){return r(this,void 0,void 0,(function*(){return!!i.default()||!!(yield a.default(e))||(s.default(),!1)}))}},776:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(827)),i=r(n(673)),a=n(690);t.default=function(){const e=o.default.get(i.default.accessTokenKey);if(!e)return null;try{const t=JSON.parse(a.decrypt(e));return Math.floor(Date.now()/1e3)>=t.expires_at?null:t.access_token}catch(e){return null}}},254:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=o(n(673)),a=n(851);t.default=function({username:e,password:t,channelHash:n},o){return r(this,void 0,void 0,(function*(){if(!e||!t||!n)return!1;const r=yield o({grant_type:i.default.grantTypePassword,user_name:e,password:t,channel_hash:n});return!!r&&!!r.access_token&&(a.saveRequestData(r),!0)}))}},735:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(827)),i=r(n(673));t.default=function(){o.default.delete(i.default.accessTokenKey),o.default.delete(i.default.refreshTokenKey),o.default.delete(i.default.profileKey)}},225:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}
11,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(851),a=o(n(673));t.default=function(e,t){return r(this,void 0,void 0,(function*(){if(!e)return!1;const n={grant_type:a.default.grantTypeMagicLink,auth_link_hash:e},r=yield t(n);return!!r&&!!r.access_token&&(i.saveRequestData(r),!0)}))}},369:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=o(n(827)),a=o(n(673)),s=o(n(735)),u=n(851),c=n(690);t.default=function(e){return r(this,void 0,void 0,(function*(){const t=i.default.get(a.default.refreshTokenKey);if(!t)return null;try{const n=JSON.parse(c.decrypt(t));if(!n.refresh_token||!n.client_id)return null;const r={grant_type:a.default.grantTypeRefresh,client_id:n.client_id,refresh_token:n.refresh_token},o=yield e(r);return o?(401===o&&s.default(),o?(u.saveRequestData(o),o.access_token):null):null}catch(e){return null}}))}},851:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.saveRequestData=void 0;const o=r(n(827)),i=r(n(673)),a=n(690);function s(e,t,n){const r=new Date((new Date).getTime()+1e3*n);o.default.set(e,a.encrypt(JSON.stringify(t)),{expires:r})}t.saveRequestData=function(e){s(i.default.refreshTokenKey,{refresh_token:e.refresh_token,client_id:e.client_id},94608e4),s(i.default.accessTokenKey,{access_token:e.access_token,expires_at:e.expires_at},e.expires_in)}},580:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;const i=o(n(148)),a=o(n(735)),s=o(n(254)),u=o(n(225)),c=o(n(776));t.Client=class{constructor(e){this._config=e,this.makeLoginPost=this.makeLoginPost.bind(this)}check(){return r(this,void 0,void 0,(function*(){return yield i.default(this.makeLoginPost)}))}login(e){return r(this,void 0,void 0,(function*(){return yield s.default(e,this.makeLoginPost)}))}magicLinkLogin(e){return r(this,void 0,void 0,(function*(){return yield u.default(e,this.makeLoginPost)}))}logout(){a.default()}getAccessToken(){return c.default()}makeLoginPost(e){return r(this,void 0,void 0,(function*(){const t=this._config.clientData();return fetch(`${this._config.apiUrl}/api/v2/token`,{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(Object.assign(Object.assign({},e),t))}).then((e=>e.json())).then((e=>e))}))}}},673:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={accessTokenKey:"fi-session-key",refreshTokenKey:"fi-session-refresh-key",profileKey:"fi-session-profile",grantTypePassword:"password",grantTypeRefresh:"refresh_token",grantTypeMagicLink:"magic_link"}},690:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;const r=n(575);t.encrypt=function(e){return e?r.Base64.encode(e):null},t.decrypt=function(e){return e?r.Base64.decode(e):null}},916:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){try{document.cookie="cookietest=1";const e=-1!==document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(e){return!1}}},827:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
11dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(808)),i=r(n(916)),a=new Map;let s;s=i.default()?{set(e,t,n={}){o.default.set(e,t,n)},get:e=>o.default.get(e),delete(e){o.default.remove(e)}}:{set(e,t){a.set(e,t)},get:e=>a.get(e),delete(e){a.delete(e)}},t.default=s}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r={};return(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.Client=void 0;var t=n(580);Object.defineProperty(e,"Client",{enumerable:!0,get:function(){return t.Client}})})(),r})()},8999:function(e){var t,n;self,e.exports=(t={612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventBusEvents=t.pushEngageStatusCodes=t.steps=t.tldRegionsMap=t.countryIsoCodes=t.GOOGLE_ANALYTICS_TRACKER_NAME=t.COOKIE_EXPIRES_TIME=t.COOKIE_GOOGLE_CLICK_IDENTIFIER_EXPIRE_TIME=t.COOKIE_CHANNEL_EXPIRE_TIME=t.COOKIE_PUBLISHER_PARAMS_NAME=t.COOKIE_GOOGLE_CLICK_IDENTIFIER_NAME=t.COOKIE_CHANNEL_NAME=void 0,t.COOKIE_CHANNEL_NAME="XC",t.COOKIE_GOOGLE_CLICK_IDENTIFIER_NAME="GCLID",t.COOKIE_PUBLISHER_PARAMS_NAME="XP",t.COOKIE_CHANNEL_EXPIRE_TIME=4/24,t.COOKIE_GOOGLE_CLICK_IDENTIFIER_EXPIRE_TIME=30,t.COOKIE_EXPIRES_TIME=540,t.GOOGLE_ANALYTICS_TRACKER_NAME="CustomSingleGATracker",t.countryIsoCodes={MEXICO:"MX",ARGETINA:"AR",BRAZIL:"BR",COLUMBIA:"CO",DOMINICAN_REPUBLIC:"DO",PERU:"PE",VENEZUELA:"VE",SOUTH_AFRIGA:"ZA",SPAIN:"ES",UK:"GB",POLAND:"PL",USA:"US"},t.tldRegionsMap={es:t.countryIsoCodes.SPAIN,mx:t.countryIsoCodes.MEXICO,pe:t.countryIsoCodes.PERU},t.steps={LastProductStep:70,CampaignStep:80,FinishStep:100},t.pushEngageStatusCodes={subscribed:1,denied:2,closed:3,somethingWentWrong:0,urlNotAllowed:20,browserNotSupported:21},t.eventBusEvents={refreshCredentials:"auth:refresh-credentials",saveCredentials:"auth:save-credentials",logOut:"auth:logout",appLoaded:"app:loaded",newDeepLink:"app:new-app-link",processStart:"app:process-start",processStep:"app:process-step",processReset:"app:process-reset",impressionCreated:"app:impressionCreated"}},808:(e,t,n)=>{var r,o,i;void 0===(o="function"==typeof(r=i=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2}
11)+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in i)i[u]&&(s+="; "+u,!0!==i[u]&&(s+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var s=i[a].split("="),u=s.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var c=t(s[0]);if(u=(r.read||r)(u,c)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[c]=u,e===c)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))})?r.call(t,n,t,e):r)||(e.exports=o),e.exports=i()},891:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getNewChannelHash=t.resetXcInXqCookie=t.getUserDeviceHash=void 0;const a=i(n(827));var s=n(316);Object.defineProperty(t,"getUserDeviceHash",{enumerable:!0,get:function(){return s.getUserDeviceHash}});var u=n(628);Object.defineProperty(t,"resetXcInXqCookie",{enumerable:!0,get:function(){return u.resetXcInXqCookie}});var c=n(309);Object.defineProperty(t,"getNewChannelHash",{enumerable:!0,get:function(){return c.getNewChannelHash}}),t.default=a},827:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getFbpAndFbc=t.invalidatePublisherParams=t.getAnalyticsClientID=t.getGoogleClickIdentifier=t.setGoogleClickIdentifier=t.getSavedChannel=t.setChannel=void 0;const s=a(n(808)),u=i(n(612)),c=n(628);t.setChannel=function(e){e&&(s.default.set(u.COOKIE_CHANNEL_NAME,e,{expires:u.COOKIE_CHANNEL_EXPIRE_TIME}),c.attributeXqCookie(e))},t.getSavedChannel=function(){return s.default.get(u.COOKIE_CHANNEL_NAME)||null},t.setGoogleClickIdentifier=function(e){e&&(e.get("gclid")?s.default.set(u.COOKIE_GOOGLE_CLICK_IDENTIFIER_NAME,e.get("gclid"),{expires:u.COOKIE_GOOGLE_CLICK_IDENTIFIER_EXPIRE_TIME}):e.get("gbraid")?s.default.set(u.COOKIE_GOOGLE_CLICK_IDENTIFIER_NAME,e.get("gbraid"),{expires:u.COOKIE_GOOGLE_CLICK_IDENTIFIER_EXPIRE_TIME}):e.get("wbraid")&&s.default.set(u.COOKIE_GOOGLE_CLICK_IDENTIFIER_NAME,e.get("wbraid"),{expires:u.COOKIE_GOOGLE_CLICK_IDENTIFIER_EXPIRE_TIME}))},t.getGoogleClickIdentifier=function(){return s.default.get(u.COOKIE_GOOGLE_CLICK_IDENTIFIER_NAME)||null},t.getAnalyticsClientID=function(){try{if(window.ga&&"function"==typeof window.ga&&window.ga.getByName){const e=window.ga.getByName(u.GOOGLE_ANALYTICS_TRACKER_NAME);if(e){const t=e.get("clientId");if(t)return t}}if(window.analytics_client_id)return window.analytics_client_id}catch(e){return null}return null},t.invalidatePublisherParams=function(e,t){e!==t&&s.default.remove(u.COOKIE_PUBLISHER_PARAMS_NAME)},t.getFbpAndFbc=function(){const e=s.default.get("_fbc")||null,t=s.default.get("_fbp")||null;return Object.entries({fbc:e,fbp:t}).reduce(((e,[t,n])=>e&&null!==n?Object.assign(Object.assign({},e),{[t]:n}):e),{})}},316:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
11dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getUserDeviceHash=void 0;const o=r(n(808)),i=n(877);t.getUserDeviceHash=function(){const e=o.default.get("deviceID");if(e)return e;const t=i.v4();return o.default.set("deviceID",t,{expires:10950}),t}},309:(e,t)=>{"use strict";function n(e){return!a(e)&&!!e}function r(e,t,n){return i(n.seo)&&u(t)&&c(t,e)}function o(e){if(!e)return null;const t=e.get("xc");return t?t.indexOf(",")?t.split(",")[0]:t:null}function i(e){return!(!e||""===e.trim())}function a(e){return!!e&&s(e,[{name:"currentLocation",pattern:`${l.matchBeforeQuery}${window.location.hostname}${l.endsWithForwardSlash}`,clickId:""}])}function s(e,t=f){for(const n in t)if(new RegExp(t[n].pattern).test(e))return!0;return!1}function u(e){return!!e&&s(e)}function c(e,t){for(const n in f)if(new RegExp(f[n].pattern).test(e)&&t.get(f[n].clickId))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.isPublisherClickIdParams=t.isSeoReferral=t.isReferrerInPatterns=t.doesCurrentDomainMatchReferrerDomain=t.isChannelSet=t.channelFromUrlParams=t.isReferralSeo=t.isExternalReferrer=t.getNewChannelHash=void 0,t.getNewChannelHash=function({urlParams:e,referrer:t,channelHashes:a,forceChannel:s}){const u=o(e);if(i(u))return u;if(s&&i(a.default))return a.default;if(n(t)){if(r(e,t,a))return a.seo;if(i(a.default))return a.default}return i(a.saved)?a.saved:a.calculator},t.isExternalReferrer=n,t.isReferralSeo=r,t.channelFromUrlParams=o,t.isChannelSet=i,t.doesCurrentDomainMatchReferrerDomain=a,t.isReferrerInPatterns=s,t.isSeoReferral=u,t.isPublisherClickIdParams=c;const l={matchBeforeQuery:"^((http|https):\\/\\/)(w{3}\\.)?",anyTopLevelDomain:"(.[a-z]{2,3})?(.[a-z]{2,3})\\/",ampProject:"-[a-z]{2,3}(-[a-z]{2,3})?\\.cdn\\.ampproject",endsWithAMP:".+/amp(/)?$",endsWithForwardSlash:"\\/"},f=[{name:"google",clickId:"gclid",pattern:`${l.matchBeforeQuery}google${l.anyTopLevelDomain}`},{name:"google",clickId:"gbraid",pattern:`${l.matchBeforeQuery}google${l.anyTopLevelDomain}`},{name:"google",clickId:"wbraid",pattern:`${l.matchBeforeQuery}google${l.anyTopLevelDomain}`},{name:"bing",clickId:"msclkid",pattern:`${l.matchBeforeQuery}bing${l.anyTopLevelDomain}`},{name:"solcreditoAmpProject",clickId:"gclid",pattern:`${l.matchBeforeQuery}solcredit(o)?${l.ampProject}`},{name:"solcreditoEndsWithAMP",clickId:"gclid",pattern:`${l.matchBeforeQuery}solcredit(o)?${l.endsWithAMP}`},{name:"finzmoAmpProject",clickId:"gclid",pattern:`${l.matchBeforeQuery}finzmo${l.ampProject}`},{name:"finzmoEndsWithAMP",clickId:"gclid",pattern:`${l.matchBeforeQuery}finzmo${l.endsWithAMP}`},{name:"fiizyAmpProject",clickId:"gclid",pattern:`${l.matchBeforeQuery}fiizy${l.ampProject}`},{name:"fiizyEndsWithAMP",clickId:"gclid",pattern:`${l.matchBeforeQuery}fiizy${l.endsWithAMP}`}]},628:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resetXcInXqCookie=t.attributeXqCookie=void 0;const o=r(n(808)),i=n(827);function a(e={},t){o.default.set("xq",`?${function(e={},t){const n=s(window.location.search),r=Object.assign(Object.assign(Object.assign({},e),n),i.getFbpAndFbc());"null"===r.fbp&&delete r.fbp,"null"===r.fbc&&delete r.fbc;const o=i.getGoogleClickIdentifier();return o&&(r.gclid=o),r.xc=t,Object.entries(r).map((([e,t])=>`${e}=${t}`)).join("&")}(e,t)}`,{expires:30})}function s(e){if(!e)return{};const t=e.split("?")[1];if(!t)return{};const n={},r=t.split("&");for(const t of r){const r=t.split("="),[o,i]=r;if(2===r.length)try{n[o]=decodeURIComponent(i)}catch(e){n[o]=i}else n[o]=""}return n}t.attributeXqCookie=function(e){const t=s(o.default.get("xq")||"");if(t.xc!==e)a({},e);else{const n=s(window.location.search);t.xps&&!n.xps&&delete t.xps,a(t,e)}},t.resetXcInXqCookie=function(e){a(s(o.default.get("xq")||""),e)}},877:(e,t,n)=>{var r=n(570),o=n(171),i=o;i.v1=r,i.v4=o,e.exports=i},327:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},217:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},570:(e,t,n)=>{var r,o,i=n(217),a=n(327),s=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],f=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:o;if(null==f||null==d){var p=i();null==f&&(f=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=o=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:u+1,v=h-s+(g-u)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||h>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,u=g,o=d;var _=(1e4*(268435455&(h+=122192928e5))+g)%4294967296;l[c++]=_>>>24&255,l[c++]=_>>>16&255,l[c++]=_>>>8&255,l[c++]=255&_;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>
1124&15|16,l[c++]=m>>>16&255,l[c++]=d>>>8|128,l[c++]=255&d;for(var y=0;y<6;++y)l[c+y]=f[y];return t||a(l)}},171:(e,t,n)=>{var r=n(217),o=n(327);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s];return t||o(a)}}},n={},function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r].call(i.exports,i,i.exports,e),i.exports}(891))},1090:function(e){var t,n;self,e.exports=(t={748:e=>{e.exports=function(){var e,t=["navigation","request","process","log","user","state","error","manual"],n=function(e,t,n){for(var r=n,o=0,i=e.length;o<i;o++)r=t(r,e[o],o,e);return r},r=function(e,t){return n(e,(function(e,n,r,o){return t(n,r,o)?e.concat(n):e}),[])},o=function(e,t){return n(e,(function(e,n,r,o){return!0===e||n===t}),!1)},i=function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=!{toString:null}.propertyIsEnumerable("toString"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);if(!a)return n;for(var r=0,o=s.length;r<o;r++)Object.prototype.hasOwnProperty.call(e,s[r])&&n.push(s[r]);return n},c=function(e,t){return void 0===e&&(e=1),void 0===t&&(t=1/0),function(n){return"number"==typeof n&&parseInt(""+n,10)===n&&n>=e&&n<=t}},l=function(e){return"function"==typeof e||i(e)&&r(e,(function(e){return"function"==typeof e})).length===e.length},f=function(e){return"string"==typeof e&&!!e.length},d={},p=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};d.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:f},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||f(e)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||f(e)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledErrorTypes:{defaultValue:function(){return p()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(e){if("object"!=typeof e||!e)return!1;var t=u(e),n=u(p());return!(r(t,(function(e){return o(n,e)})).length<t.length||r(u(e),(function(t){return"boolean"!=typeof e[t]})).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:l},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:l},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:l},endpoints:{defaultValue:function(){return{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(e){return e&&"object"==typeof e&&f(e.notify)&&f(e.sessions)&&0===r(u(e),(function(e){return!o(["notify","sessions"],e)})).length}},autoTrackSessions:{defaultValue:function(e){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(e){return null===e||i(e)&&r(e,(function(e){return"string"==typeof e})).length===e.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(e){return"string"==typeof e&&e.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number â¤100",validate:function(e){return c(0,100)(e)}},enabledBreadcrumbTypes:{defaultValue:function(){return t},message:"should be null or a list of available breadcrumb types ("+t.join(",")+")",validate:function(e){return null===e||i(e)&&n(e,(function(e,n){return!1===e?e:o(t,n)}),!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||"string"==typeof e}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name }
11 properties",validate:function(e){return null===e||e&&n(u(e),(function(e,t){return e&&o(["id","email","name"],t)}),!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(e){return"object"==typeof e&&null!==e}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(e){return!e||e&&n(["debug","info","warn","error"],(function(t,n){return t&&"function"==typeof e[n]}),!0)}},redactedKeys:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(e){return i(e)&&e.length===r(e,(function(e){return"string"==typeof e||e&&"function"==typeof e.test})).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(e){return i(e)&&e.length===r(e,(function(e){return e&&"object"==typeof e&&"function"==typeof e.load})).length}}};var h=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=function(e,t){return n(e,(function(e,n,r,o){return e.concat(t(n,r,o))}),[])};function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var _=d.schema,m={releaseStage:h({},_.releaseStage,{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"}}),appType:v({},_.appType,{defaultValue:function(){return"browser"}}),logger:h({},_.logger,{defaultValue:function(){return"undefined"!=typeof console&&"function"==typeof console.debug?y():void 0}})},y=function(){var e={},t=console.log;return g(["debug","info","warn","error"],(function(n){var r=console[n];e[n]="function"==typeof r?r.bind(console,"[bugsnag]"):t.bind(console,"[bugsnag]")})),e},E=function(){function e(e,t,n,r){void 0===r&&(r=new Date),this.type=n,this.message=e,this.metadata=t,this.timestamp=r}return e.prototype.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},e}(),b={};!function(t,n){"use strict";"function"==typeof e&&e.amd?e("stackframe",[],n):"object"==typeof b?b=n():t.StackFrame=n()}(this,(function(){"use strict";function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],i=["fileName","functionName","source"],a=["args"],s=r.concat(o,i,a);function u(e){if(e instanceof Object)for(var n=0;n<s.length;n++)e.hasOwnProperty(s[n])&&void 0!==e[s[n]]&&this["set"+t(s[n])](e[s[n]])}u.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof u)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new u(e)}},toString:function(){return(this.getFunctionName()||"{anonymous}")+"("+(this.getArgs()||[]).join(",")+")"+(this.getFileName()?"@"+this.getFileName():"")+(e(this.getLineNumber())?":"+this.getLineNumber():"")+(e(this.getColumnNumber())?":"+this.getColumnNumber():"")}};for(var c=0;c<r.length;c++)u.prototype["get"+t(r[c])]=n(r[c]),u.prototype["set"+t(r[c])]=function(e){return function(t){this[e]=Boolean(t)}}(r[c]);for(var l=0;l<o.length;l++)u.prototype["get"+t(o[l])]=n(o[l]),u.prototype["set"+t(o[l])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(o[l]);for(var f=0;f<i.length;f++)u.prototype["get"+t(i[f])]=n(i[f]),u.prototype["set"+t(i[f])]=function(e){return function(t){this[e]=String(t)}}(i[f]);return u}));var O={};!function(t,n){"use strict";"function"==typeof e&&e.amd?e("error-stack-parser",["stackframe"],n):"object"==typeof O?O=n(b):t.ErrorStackParser=n(t.StackFrame)}(this,(function(e){"use strict";
11var t=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,r=/^(eval@)?(\[native code\])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter((function(e){return!!e.match(n)}),this).map((function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/),o=(n=r?n.replace(r[0],""):n).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:o.pop()),a=o.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new e({functionName:a,fileName:s,lineNumber:i[1],columnNumber:i[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter((function(e){return!e.match(r)}),this).map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,i=this.extractLocation(t.replace(n,""));return new e({functionName:o,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),o=[],i=2,a=r.length;i<a;i+=2){var s=n.exec(r[i]);s&&o.push(new e({fileName:s[2],lineNumber:s[1],source:r[i]}))}return o},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),o=[],i=0,a=r.length;i<a;i+=2){var s=n.exec(r[i]);s&&o.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:r[i]}))}return o},parseOpera11:function(n){return n.stack.split("\n").filter((function(e){return!!e.match(t)&&!e.match(/^Error created at/)}),this).map((function(t){var n,r=t.split("@"),o=this.extractLocation(r.pop()),i=r.shift()||"",a=i.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0;i.match(/\(([^\)]*)\)/)&&(n=i.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var s=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:a,args:s,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})}),this)}}}));var w=O,C=function(e){return!(!e||!e.stack&&!e.stacktrace&&!e["opera#sourceloc"]||"string"!=typeof(e.stack||e.stacktrace||e["opera#sourceloc"])||e.stack===e.name+": "+e.message)};function I(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}var S=I,A=function(e,t,n,r){var o;if(t){var i;if(null===n)return N(e,t);"object"==typeof n&&(i=n),"string"==typeof n&&((o={})[n]=r,i=o),i&&(e[t]||(e[t]={}),e[t]=h({},e[t],i))}},N=function(e,t,n){"string"==typeof t&&(n?e[t]&&delete e[t][n]:delete e[t])},R={add:A,get:function(e,t,n){if("string"==typeof t)return n?e[t]?e[t][n]:void 0:e[t]},clear:N},T={};!function(t,n){"use strict";"function"==typeof e&&e.amd?e("stack-generator",["stackframe"],n):"object"==typeof T?T=n(b):t.StackGenerator=n(t.StackFrame)}(this,(function(e){return{backtrace:function(t){var n=[],r=10;"object"==typeof t&&"number"==typeof t.maxStackSize&&(r=t.maxStackSize);for(var o=arguments.callee;o&&n.length<r&&o.arguments;){for(var i=new Array(o.arguments.length),a=0;a<i.length;++a)i[a]=o.arguments[a];/function(?:\s+([\w$]+))+\s*\(/.test(o.toString())?n.push(new e({functionName:RegExp.$1||void 0,args:i})):n.push(new e({args:i}));try{o=o.caller}catch(e){break}}return n}}}));var k=function(){function e(t,r,o,i,a){void 0===o&&(o=[]),void 0===i&&(i=M()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=a,this._handledState=i,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._user={},this._session=void 0,this.errors=[{errorClass:D(t),errorMessage:D(r),t
11ype:e.__type,stacktrace:n(o,(function(e,t){var n=P(t);try{return"{}"===JSON.stringify(n)?e:e.concat(n)}catch(t){return e}}),[])}]}var t=e.prototype;return t.addMetadata=function(e,t,n){return R.add(this._metadata,e,t,n)},t.getMetadata=function(e,t){return R.get(this._metadata,e,t)},t.clearMetadata=function(e,t){return R.clear(this._metadata,e,t)},t.getUser=function(){return this._user},t.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},t.toJSON=function(){return{payloadVersion:"4",exceptions:g(this.errors,(function(e){return h({},e,{message:e.errorMessage})})),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,metaData:this._metadata,user:this._user,session:this._session}},e}(),P=function(e){var t={file:e.fileName,method:L(e.functionName),lineNumber:e.lineNumber,columnNumber:e.columnNumber,code:void 0,inProject:void 0};return t.lineNumber>-1&&!t.file&&!t.method&&(t.file="global code"),t},L=function(e){return/^global code$/i.test(e)?"global code":e},M=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},D=function(e){return"string"==typeof e?e:""};k.getStacktrace=function(e,t,n){if(C(e))return w.parse(e).slice(t);try{return r(T.backtrace(),(function(e){return-1===(e.functionName||"").indexOf("StackGenerator$$")})).slice(1+n)}catch(e){return[]}},k.create=function(e,t,n,r,o,i){void 0===o&&(o=0);var a,s=j(e,t,r,i),u=s[0],c=s[1];try{var l=k.getStacktrace(u,c>0?1+c+o:0,1+o);a=new k(u.name,u.message,l,n,e)}catch(t){a=new k(u.name,u.message,[],n,e)}return"InvalidError"===u.name&&a.addMetadata(""+r,"non-error parameter",x(e)),a};var x=function(e){return null===e?"null":void 0===e?"undefined":e},j=function(e,t,n,r){var o,i=0,a=function(e){r&&r.warn(n+' received a non-error: "'+e+'"');var t=new Error(n+' received a non-error. See "'+n+'" tab for more detail.');return t.name="InvalidError",t};if(t)switch(typeof e){case"string":case"number":case"boolean":o=new Error(String(e)),i+=1;break;case"function":o=a("function"),i+=2;break;case"object":null!==e&&S(e)?o=e:null!==e&&B(e)?((o=new Error(e.message||e.errorMessage)).name=e.name||e.errorClass,i+=1):(o=a(null===e?"null":"unsupported object"),i+=2);break;default:o=a("nothing"),i+=2}else S(e)?o=e:(o=a(typeof e),i+=2);if(!C(o))try{throw o}catch(e){C(e)&&(o=e,i=1)}return[o,i]};k.__type="browserjs";var B=function(e){return!("string"!=typeof e.name&&"string"!=typeof e.errorClass||"string"!=typeof e.message&&"string"!=typeof e.errorMessage)},U=k,K=function(e,t,n){var r=0,o=function(){if(r>=e.length)return n(null,!0);t(e[r],(function(e,t){return e?n(e):!1===t?n(null,!1):(r++,void o())}))};o()},H=function(e,t,n,r){K(e,(function(e,r){if("function"!=typeof e)return r(null);try{if(2!==e.length){var o=e(t);return o&&"function"==typeof o.then?o.then((function(e){return setTimeout((function(){return r(null,e)}))}),(function(e){setTimeout((function(){return n(e),r(null,!0)}))})):r(null,o)}e(t,(function(e,t){if(e)return n(e),r(null);r(null,t)}))}catch(e){n(e),r(null)}}),r)},F=function(e,t,n,r){for(var o=!1,i=e.slice();!o&&i.length;)try{o=!1===i.pop()(t)}catch(e){r.error("Error occurred in "+n+" callback, continuing anywayâ¦"),r.error(e)}return o},q=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},V="object"==typeof window?window:self,$=0;for(var G in V)Object.hasOwnProperty.call(V,G)&&$++;var X=navigator.mimeTypes?navigator.mimeTypes.length:0,W=q((X+navigator.userAgent.length).toString(36)+$.toString(36),4),z=function(){return W},J=0,Q=4,Z=36,Y=Math.pow(Z,Q);function ee(){return q((Math.random()*Y<<0).toString(Z),Q)}function te(){return J=J<Y?J:0,++J-1}function ne(){return"c"+(new Date).getTime().toString(Z)+q(te().toString(Z),Q)+z()+(ee()+ee())}ne.fingerprint=z;var re=ne,oe=function(){function e(){this.id=re(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var t=e.prototype;return t.getUser=function(){return this._user},t.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},t.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},t._track=function(e){this[e._handledState.unhandled?"_unhandled":"_handled"]+=1},e}(),ie=function(){},ae=function(){function e(t,n,r,o){var i=this;void 0===n&&(n=d.schema),void 0===r&&(r=[]),this._notifier=o,this._config={},this._schema=n,this._delivery={sendSession:ie,sendEvent:ie},this._logger={debug:ie,info:ie,warn:ie,error:ie},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._context=void 0,this._user={},this._cbs={e:[],s:[],sp:[],b:[]},this.Client=e,this.Event=U,this.Breadcrumb=E,this.Session=oe,this._config=this._configure(t,r),g(r.concat(this._config.plugins),(function(e){e&&i._loadPlugin(e)})),this._depth=1;var a=this,s=this.notify;this.notify=function(){return s.apply(a,arguments)}}var i=e.prototype;return i.addMetadata=function(e,t,n){return R.add(this._metadata,e,t,n)},i.getMetadata=function(e,t){return R.get(this._metadata,e,t)},i.clearMetadata=function(e,t){return R.clear(this._metadata,e,t)},i.getContext=function(){return this._context},i.setContext=function(e){this._context=e},i._configure=function(e,t){var r=n(t,(function(e,t){return t&&t.configSchema?h({},e,t.configSchema):e}),this._schema),o=n(u(r),(function(t,n){var o=r[n].defaultValue(e[
11n]);return void 0!==e[n]?r[n].validate(e[n])?r[n].allowPartialObject?t.config[n]=h(o,e[n]):t.config[n]=e[n]:(t.errors[n]=r[n].message,t.config[n]=o):t.config[n]=o,t}),{errors:{},config:{}}),i=o.errors,a=o.config;if(r.apiKey){if(!a.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(a.apiKey)||(i.apiKey="should be a string of 32 hexadecimal characters")}return this._metadata=h({},a.metadata),this._user=h({},a.user),this._context=a.context,a.logger&&(this._logger=a.logger),a.onError&&(this._cbs.e=this._cbs.e.concat(a.onError)),a.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(a.onBreadcrumb)),a.onSession&&(this._cbs.s=this._cbs.s.concat(a.onSession)),u(i).length&&this._logger.warn(se(i,e)),a},i.getUser=function(){return this._user},i.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},i._loadPlugin=function(e){var t=e.load(this);return e.name&&(this._plugins["~"+e.name+"~"]=t),this},i.getPlugin=function(e){return this._plugins["~"+e+"~"]},i._setDelivery=function(e){this._delivery=e(this)},i.startSession=function(){var e=new oe;return e.app.releaseStage=this._config.releaseStage,e.app.version=this._config.appVersion,e.app.type=this._config.appType,e._user=h({},this._user),F(this._cbs.s,e,"onSession",this._logger)?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,e)},i.addOnError=function(e,t){void 0===t&&(t=!1),this._cbs.e[t?"unshift":"push"](e)},i.removeOnError=function(e){this._cbs.e=r(this._cbs.e,(function(t){return t!==e}))},i._addOnSessionPayload=function(e){this._cbs.sp.push(e)},i.addOnSession=function(e){this._cbs.s.push(e)},i.removeOnSession=function(e){this._cbs.s=r(this._cbs.s,(function(t){return t!==e}))},i.addOnBreadcrumb=function(e,t){void 0===t&&(t=!1),this._cbs.b[t?"unshift":"push"](e)},i.removeOnBreadcrumb=function(e){this._cbs.b=r(this._cbs.b,(function(t){return t!==e}))},i.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},i.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},i.leaveBreadcrumb=function(e,n,r){if(e="string"==typeof e?e:"",r="string"==typeof r&&o(t,r)?r:"manual",n="object"==typeof n&&null!==n?n:{},e){var i=new E(e,n,r);F(this._cbs.b,i,"onBreadcrumb",this._logger)?this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback"):(this._breadcrumbs.push(i),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs)))}},i._isBreadcrumbTypeEnabled=function(e){var t=this._config.enabledBreadcrumbTypes;return null===t||o(t,e)},i.notify=function(e,t,n){void 0===n&&(n=ie);var r=U.create(e,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(r,t,n)},i._notify=function(t,n,r){var i=this;if(void 0===r&&(r=ie),t.app=h({},t.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),t.context=t.context||this._context,t._metadata=h({},t._metadata,this._metadata),t._user=h({},t._user,this._user),t.breadcrumbs=this._breadcrumbs.slice(),null!==this._config.enabledReleaseStages&&!o(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),r(null,t);var a=t.severity,s=function(e){i._logger.error("Error occurred in onError callback, continuing anywayâ¦"),i._logger.error(e)},u=[].concat(this._cbs.e).concat(n);H(u,t,s,(function(n,o){if(n&&s(n),!o)return i._logger.debug("Event not sent due to onError callback"),r(null,t);i._isBreadcrumbTypeEnabled("error")&&e.prototype.leaveBreadcrumb.call(i,t.errors[0].errorClass,{errorClass:t.errors[0].errorClass,errorMessage:t.errors[0].errorMessage,severity:t.severity},"error"),a!==t.severity&&(t._handledState.severityReason={type:"userCallbackSetSeverity"}),t.unhandled!==t._handledState.unhandled&&(t._handledState.severityReason.unhandledOverridden=!0,t._handledState.unhandled=t.unhandled),i._session&&(i._session._track(t),t._session=i._session),i._delivery.sendEvent({apiKey:t.apiKey||i._config.apiKey,notifier:i._notifier,events:[t]},(function(e){return r(e,t)}))}))},e}(),se=function(e,t){return new Error("Invalid configuration\n"+g(u(e),(function(n){return" - "+n+" "+e[n]+", got "+ue(t[n])})).join("\n\n"))},ue=function(e){switch(typeof e){case"string":case"number":case"object":return JSON.stringify(e);default:return String(e)}},ce=ae,le=function(e,t,n,r){var o=r&&r.redactedKeys?r.redactedKeys:[],i=r&&r.redactedPaths?r.redactedPaths:[];return JSON.stringify(Oe(e,o,i),t,n)},fe=20,de=25e3,pe=8,he="...";function ge(e){return e instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(e))}function ve(e){return"[Throws: "+(e?e.message:"?")+"]"}function _e(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}function me(e,t){for(var n=0,r=e.length;n<r;n++)if(0===t.indexOf(e[n]))return!0;return!1}function ye(e,t){for(var n=0,r=e.length;n<r;n++){if("string"==typeof e[n]&&e[n].toLowerCase()===t.toLowerCase())return!0;
11if(e[n]&&"function"==typeof e[n].test&&e[n].test(t))return!0}return!1}function Ee(e){return"[object Array]"===Object.prototype.toString.call(e)}function be(e,t){try{return e[t]}catch(e){return ve(e)}}function Oe(e,t,n){var r=[],o=0;function i(e,a){function s(){return a.length>pe&&o>de}if(o++,a.length>fe)return he;if(s())return he;if(null===e||"object"!=typeof e)return e;if(_e(r,e))return"[Circular]";if(r.push(e),"function"==typeof e.toJSON)try{o--;var u=i(e.toJSON(),a);return r.pop(),u}catch(e){return ve(e)}if(ge(e)){o--;var c=i({name:e.name,message:e.message},a);return r.pop(),c}if(Ee(e)){for(var l=[],f=0,d=e.length;f<d;f++){if(s()){l.push(he);break}l.push(i(e[f],a.concat("[]")))}return r.pop(),l}var p={};try{for(var h in e)if(Object.prototype.hasOwnProperty.call(e,h))if(me(n,a.join("."))&&ye(t,h))p[h]="[REDACTED]";else{if(s()){p[h]=he;break}p[h]=i(be(e,h),a.concat(h))}}catch(e){}return r.pop(),p}return i(e,[])}var we={},Ce=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];we.event=function(e,t){var n=le(e,null,null,{redactedPaths:Ce,redactedKeys:t});if(n.length>1e6&&(e.events[0]._metadata={notifier:"WARNING!\nSerialized payload was "+n.length/1e6+"MB (limit = 1MB)\nmetadata was removed"},(n=le(e,null,null,{redactedPaths:Ce,redactedKeys:t})).length>1e6))throw new Error("payload exceeded 1MB limit");return n},we.session=function(e,t){var n=le(e,null,null);if(n.length>1e6)throw new Error("payload exceeded 1MB limit");return n};var Ie={};Ie=function(e,t){return void 0===t&&(t=window),{sendEvent:function(n,r){void 0===r&&(r=function(){});var o=Se(e._config,"notify","4",t),i=new t.XDomainRequest;i.onload=function(){r(null)},i.open("POST",o),setTimeout((function(){try{i.send(we.event(n,e._config.redactedKeys))}catch(t){e._logger.error(t),r(t)}}),0)},sendSession:function(n,r){void 0===r&&(r=function(){});var o=Se(e._config,"sessions","1",t),i=new t.XDomainRequest;i.onload=function(){r(null)},i.open("POST",o),setTimeout((function(){try{i.send(we.session(n,e._config.redactedKeys))}catch(t){e._logger.error(t),r(t)}}),0)}}};var Se=function(e,t,n,r){var o=JSON.parse(JSON.stringify(new Date));return Ae(e.endpoints[t],r.location.protocol)+"?apiKey="+encodeURIComponent(e.apiKey)+"&payloadVersion="+n+"&sentAt="+encodeURIComponent(o)},Ae=Ie._matchPageProtocol=function(e,t){return"http:"===t?e.replace(/^https:/,"http:"):e},Ne=function(e,t){return void 0===t&&(t=window),{sendEvent:function(n,r){void 0===r&&(r=function(){});try{var o=e._config.endpoints.notify,i=new t.XMLHttpRequest;i.onreadystatechange=function(){i.readyState===t.XMLHttpRequest.DONE&&r(null)},i.open("POST",o),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Bugsnag-Api-Key",n.apiKey||e._config.apiKey),i.setRequestHeader("Bugsnag-Payload-Version","4"),i.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),i.send(we.event(n,e._config.redactedKeys))}catch(t){e._logger.error(t)}},sendSession:function(n,r){void 0===r&&(r=function(){});try{var o=e._config.endpoints.sessions,i=new t.XMLHttpRequest;i.onreadystatechange=function(){i.readyState===t.XMLHttpRequest.DONE&&r(null)},i.open("POST",o),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Bugsnag-Api-Key",e._config.apiKey),i.setRequestHeader("Bugsnag-Payload-Version","1"),i.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),i.send(we.session(n,e._config.redactedKeys))}catch(t){e._logger.error(t)}}}},Re=new Date,Te=function(){Re=new Date},ke={name:"appDuration",load:function(e){return e.addOnError((function(e){var t=new Date;e.app.duration=t-Re}),!0),{reset:Te}}},Pe=function(e){return void 0===e&&(e=window),{load:function(t){t.addOnError((function(t){void 0===t.context&&(t.context=e.location.pathname)}),!0)}}},Le=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},Me="object"==typeof window?window:self,De=0;for(var xe in Me)Object.hasOwnProperty.call(Me,xe)&&De++;var je=navigator.mimeTypes?navigator.mimeTypes.length:0,Be=Le((je+navigator.userAgent.length).toString(36)+De.toString(36),4),Ue=function(){return Be},Ke=0,He=4,Fe=36,qe=Math.pow(Fe,He);function Ve(){return Le((Math.random()*qe<<0).toString(Fe),He)}function $e(){return Ke=Ke<qe?Ke:0,++Ke-1}function Ge(){return"c"+(new Date).getTime().toString(Fe)+Le($e().toString(Fe),He)+Ue()+(Ve()+Ve())}Ge.fingerprint=Ue;var Xe=Ge,We="bugsnag-anonymous-id",ze=function(){try{var e=window.localStorage,t=e.getItem(We);return t&&/^c[a-z0-9]{20,32}$/.test(t)||(t=Xe(),e.setItem(We,t)),t}catch(e){}},Je=function(e,t){return void 0===e&&(e=navigator),void 0===t&&(t=window.screen),{load:function(n){var r={locale:e.browserLanguage||e.systemLanguage||e.userLanguage||e.language,userAgent:e.userAgent};t&&t.orientation&&t.orientation.type?r.orientation=t.orientation.type:r.orientation=document.documentElement.clientWidth>document.documentElement.clientHeight?"landscape":"portrait",n._config.generateAnonymousId&&(r.id=ze()),n.addOnSession((function(e){e.device=h({},e.device,r),n._config.collectUserIp||Qe(e)})),n.addOnError((function(e){e.device=h({},e.device,r,{time:new Date}),n._config.collectUserIp||Qe(e)}),!0)},configSchema:{generateAnonymousId:{validate:function(e){return!0===e||!1===e},defaultValue:function(){return!0},message:"should be true|false"}}}},Qe=function(e){var t=e.getUser();t&&t.id||e.setUser(e.device.id)},Ze=function(e){return void 0===e&&(e=window),{load:function(t){t.addOnError((function(t){t.request&&t.request.url||(t.request=h({},t.request,{url:e.location.href}))}),!0)}}},Ye={load:function(e){e._sessionDelegate=et}},et={startSession:function(e,t){var n=e;return n._session=t,n._pausedSession=null,null===n._config.enabledReleaseStages||o(n._config.enabledReleaseStages,n._config.releaseStage)?(n._delivery.sendSession({notifier:n._notifier,device:t.device,app:t.app,sessions:[{id:t.id,startedAt:t.startedAt,user:t._user}]}),n):(n._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),n)},resumeSession:function(e){return e._session?e:e._pausedSession?(e._session=e._pausedSession,e._pausedSession=null,e):e.startSession()},pauseSession:function(e){e._pausedSession=e._session,e._session=null}},tt={load:function(e){e._config.collectUserIp||e.addOnError((function(e){e._user&&void 0===e._user.id&&delete e._user.id,e._user=h({id:"[REDACTED]"},e._user),e.request=h({clientIp:"[REDACTED]"},e.request)}))},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}}}}
11,nt={load:function(e){!/^(local-)?dev(elopment)?$/.test(e._config.releaseStage)&&e._isBreadcrumbTypeEnabled("log")&&g(rt,(function(t){var r=console[t];console[t]=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];e.leaveBreadcrumb("Console output",n(i,(function(e,t,n){var r="[Unknown value]";try{r=String(t)}catch(e){}if("[object Object]"===r)try{r=JSON.stringify(t)}catch(e){}return e["["+n+"]"]=r,e}),{severity:0===t.indexOf("group")?"log":t}),"log"),r.apply(console,i)},console[t]._restore=function(){console[t]=r}}))}},rt=r(["log","debug","info","warn","error"],(function(e){return"undefined"!=typeof console&&"function"==typeof console[e]})),ot=200,it=5e5,at=function(e,t){return void 0===e&&(e=document),void 0===t&&(t=window),{load:function(o){if(o._config.trackInlineScripts){var i=t.location.href,a="",s=e.attachEvent?"complete"===e.readyState:"loading"!==e.readyState,u=function(){return e.documentElement.outerHTML};a=u();var c=e.onreadystatechange;e.onreadystatechange=function(){"interactive"===e.readyState&&(a=u(),s=!0);try{c.apply(this,arguments)}catch(e){}};var l=null,f=function(e){l=e},d=function(){var t=e.currentScript||l;if(!t&&!s){var n=e.scripts||e.getElementsByTagName("script");t=n[n.length-1]}return t},p=function(e){s&&a||(a=u());var t=["\x3c!-- DOC START --\x3e"].concat(a.split("\n")),r=e-1,o=Math.max(r-3,0),i=Math.min(r+3,t.length);return n(t.slice(o,i),(function(e,t,n){return e[o+1+n]=t.length<=ot?t:t.substr(0,ot),e}),{})};o.addOnError((function(e){e.errors[0].stacktrace=r(e.errors[0].stacktrace,(function(e){return!/__trace__$/.test(e.method)}));var t=e.errors[0].stacktrace[0];if(!t||!t.file||t.file.replace(/#.*$/,"")===i.replace(/#.*$/,"")){var n=d();if(n){var o=n.innerHTML;e.addMetadata("script","content",o.length<=it?o:o.substr(0,it)),t&&t.lineNumber&&(t.code=p(t.lineNumber))}}}),!0);var h=g(["setTimeout","setInterval","setImmediate","requestAnimationFrame"],(function(e){return st(t,e,(function(e){return v(e,(function(e){return{get:function(){return e[0]},replace:function(t){e[0]=t}}}))}))}))[0];g(["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],(function(e){t[e]&&t[e].prototype&&Object.prototype.hasOwnProperty.call(t[e].prototype,"addEventListener")&&(st(t[e].prototype,"addEventListener",(function(e){return v(e,ut)})),st(t[e].prototype,"removeEventListener",(function(e){return v(e,ut,!0)})))}))}function v(e,t,n){return void 0===n&&(n=!1),function(){var r=[].slice.call(arguments);try{var o=t(r),i=o.get();if(n&&e.apply(this,r),"function"!=typeof i)return e.apply(this,r);if(i.__trace__)o.replace(i.__trace__);else{var a=d();i.__trace__=function(){f(a),h((function(){f(null)}),0);var e=i.apply(this,arguments);return f(null),e},i.__trace__.__trace__=i.__trace__,o.replace(i.__trace__)}}catch(e){}if(e.apply)return e.apply(this,r);switch(r.length){case 1:return e(r[0]);case 2:return e(r[0],r[1]);default:return e()}}}},configSchema:{trackInlineScripts:{validate:function(e){return!0===e||!1===e},defaultValue:function(){return!0},message:"should be true|false"}}}};function st(e,t,n){var r=e[t];if(!r)return r;var o=n(r);return e[t]=o,r}function ut(e){var t=!!e[1]&&"function"==typeof e[1].handleEvent;return{get:function(){return t?e[1].handleEvent:e[1]},replace:function(n){t?e[1].handleEvent=n:e[1]=n}}}var ct=function(e){return void 0===e&&(e=window),{load:function(t){"addEventListener"in e&&t._isBreadcrumbTypeEnabled("user")&&e.addEventListener("click",(function(n){var r,o;try{r=lt(n.target),o=ft(n.target,e)}catch(e){r="[hidden]",o="[hidden]",t._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/yy3rn63z")}t.leaveBreadcrumb("UI click",{targetText:r,targetSelector:o},"user")}),!0)}}},lt=function(e){var t=e.textContent||e.innerText||"";return t||"submit"!==e.type&&"button"!==e.type||(t=e.value),dt(t=t.replace(/^\s+|\s+$/g,""),140
11)};function ft(e,t){var n=[e.tagName];if(e.id&&n.push("#"+e.id),e.className&&e.className.length&&n.push("."+e.className.split(" ").join(".")),!t.document.querySelectorAll||!Array.prototype.indexOf)return n.join("");try{if(1===t.document.querySelectorAll(n.join("")).length)return n.join("")}catch(e){return n.join("")}if(e.parentNode.childNodes.length>1){var r=Array.prototype.indexOf.call(e.parentNode.childNodes,e)+1;n.push(":nth-child("+r+")")}return 1===t.document.querySelectorAll(n.join("")).length?n.join(""):e.parentNode?ft(e.parentNode,t)+" > "+n.join(""):n.join("")}function dt(e,t){var n="(...)";return e&&e.length<=t?e:e.slice(0,t-n.length)+n}var pt={};pt=function(e){return void 0===e&&(e=window),{load:function(t){if("addEventListener"in e&&t._isBreadcrumbTypeEnabled("navigation")){var n=function(e){return function(){return t.leaveBreadcrumb(e,{},"navigation")}};e.addEventListener("pagehide",n("Page hidden"),!0),e.addEventListener("pageshow",n("Page shown"),!0),e.addEventListener("load",n("Page loaded"),!0),e.document.addEventListener("DOMContentLoaded",n("DOMContentLoaded"),!0),e.addEventListener("load",(function(){return e.addEventListener("popstate",n("Navigated back"),!0)})),e.addEventListener("hashchange",(function(n){var r=n.oldURL?{from:ht(n.oldURL,e),to:ht(n.newURL,e),state:_t(e)}:{to:ht(e.location.href,e)};t.leaveBreadcrumb("Hash changed",r,"navigation")}),!0),e.history.replaceState&&vt(t,e.history,"replaceState",e),e.history.pushState&&vt(t,e.history,"pushState",e)}}}};var ht=function(e,t){var n=t.document.createElement("A");return n.href=e,""+n.pathname+n.search+n.hash},gt=function(e,t,n,r){var o=ht(e.location.href,e);return{title:n,state:t,prevState:_t(e),to:r||o,from:o}},vt=function(e,t,n,r){var o=t[n];t[n]=function(i,a,s){e.leaveBreadcrumb("History "+n,gt(r,i,a,s),"navigation"),"function"==typeof e.resetEventCount&&e.resetEventCount(),e._config.autoTrackSessions&&e.startSession(),o.apply(t,[i,a].concat(void 0!==s?s:[]))}},_t=function(e){try{return e.history.state}catch(e){}},mt="request",yt="BS~~S",Et="BS~~U",bt="BS~~M",Ot=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=window),{load:function(n){if(n._isBreadcrumbTypeEnabled("request")){var r=[n._config.endpoints.notify,n._config.endpoints.sessions].concat(e);s(),l();var i=function(e,t,r){var o={status:e.status,request:t+" "+r};e.status>=400?n.leaveBreadcrumb("fetch() failed",o,mt):n.leaveBreadcrumb("fetch() succeeded",o,mt)},a=function(e,t){n.leaveBreadcrumb("fetch() error",{request:e+" "+t},mt)}}function s(){if("addEventListener"in t.XMLHttpRequest.prototype){var e=t.XMLHttpRequest.prototype.open;t.XMLHttpRequest.prototype.open=function(t,n){this[Et]=n,this[bt]=t,this[yt]&&(this.removeEventListener("load",u),this.removeEventListener("error",c)),this.addEventListener("load",u),this.addEventListener("error",c),this[yt]=!0,e.apply(this,arguments)}}}function u(){if(!o(r,this[Et].replace(/\?.*$/,""))){var e={status:this.status,request:this[bt]+" "+this[Et]};this.status>=400?n.leaveBreadcrumb("XMLHttpRequest failed",e,mt):n.leaveBreadcrumb("XMLHttpRequest succeeded",e,mt)}}function c(){o(r,this[Et].replace(/\?.*$/,""))||n.leaveBreadcrumb("XMLHttpRequest error",{request:this[bt]+" "+this[Et]},mt)}function l(){if("fetch"in t&&!t.fetch.polyfill){var e=t.fetch;t.fetch=function(){var t,n=arguments,r=arguments[0],o=arguments[1],s=null;return r&&"object"==typeof r?(s=r.url,o&&"method"in o?t=o.method:r&&"method"in r&&(t=r.method)):(s=r,o&&"method"in o&&(t=o.method)),void 0===t&&(t="GET"),new Promise((function(r,o){e.apply(void 0,n).then((function(e){i(e,t,s),r(e)})).catch((function(e){a(t,s),o(e)}))}))}}}}}},wt={load:function(e){var t=0;e.addOnError((function(n){if(t>=e._config.maxEvents)return!1;t++})),e.resetEventCount=function(){t=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer â¤100",validate:function(e){return c(1,100)(e)}}}},Ct={},It=(Ct={load:function(e){e.addOnError((function(e){var t=n(e.errors,(function(e,t){return e.concat(t.stacktrace)}),[]);g(t,(function(e){e.file=It(e.file)}))}))}})._strip=function(e){return"string"==typeof e?e.replace(/\?.*$/,"").replace(/#.*$/,""):e},St=function(e){return void 0===e&&(e=window),{load:function(t){if(t._config.autoDetectErrors&&t._
11config.enabledErrorTypes.unhandledExceptions){var n=e.onerror;e.onerror=r}function r(e,r,o,i,a){if(0===o&&/Script error\.?/.test(e))t._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var s,u={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}};if(a)s=t.Event.create(a,!0,u,"window onerror",1),At(s.errors[0].stacktrace,r,o,i);else if("object"!=typeof e||null===e||r&&"string"==typeof r||o||i||a)s=t.Event.create(e,!0,u,"window onerror",1),At(s.errors[0].stacktrace,r,o,i);else{var c=e.type?"Event: "+e.type:"Error",l=e.message||e.detail||"";(s=t.Event.create({name:c,message:l},!0,u,"window onerror",1)).originalError=e,s.addMetadata("window onerror",{event:e,extraParameters:r})}t._notify(s)}"function"==typeof n&&n.apply(this,arguments)}}}},At=function(e,t,n,r){e[0]||e.push({});var o=e[0];o.file||"string"!=typeof t||(o.file=t),!o.lineNumber&&Nt(n)&&(o.lineNumber=n),o.columnNumber||(Nt(r)?o.columnNumber=r:window.event&&Nt(window.event.errorCharacter)&&(o.columnNumber=window.event.errorCharacter))},Nt=function(e){return"number"==typeof e&&"NaN"!==String.call(e)},Rt=function(e){return void 0===e&&(e=window),{load:function(t){if(t._config.autoDetectErrors&&t._config.enabledErrorTypes.unhandledRejections){var n=function(e){var n=e.reason,r=!1;try{e.detail&&e.detail.reason&&(n=e.detail.reason,r=!0)}catch(e){}var o=t.Event.create(n,!1,{severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,t._logger);r&&g(o.errors[0].stacktrace,Tt(n)),t._notify(o,(function(e){var t;S(e.originalError)&&!e.originalError.stack&&e.addMetadata("unhandledRejection handler",((t={})[Object.prototype.toString.call(e.originalError)]={name:e.originalError.name,message:e.originalError.message,code:e.originalError.code},t))}))};"addEventListener"in e?e.addEventListener("unhandledrejection",n):e.onunhandledrejection=function(e,t){n({detail:{reason:e,promise:t}})}}}}},Tt=function(e){return function(t){t.file!==e.toString()&&t.method&&(t.method=t.method.replace(/^\s+/,""))}},kt={},Pt="Bugsnag JavaScript",Lt="7.11.0",Mt="https://github.com/bugsnag/bugsnag-js",Dt=h({},d.schema,m),xt={_client:null,createClient:function(e){"string"==typeof e&&(e={apiKey:e}),e||(e={});var t=[ke,Je(),Pe(),Ze(),wt,Ye,tt,Ct,St(),Rt(),pt(),ct(),Ot(),nt,at()],n=new ce(e,Dt,t,{name:Pt,version:Lt,url:Mt});return n._setDelivery(window.XDomainRequest?Ie:Ne),n._logger.debug("Loaded!"),n.leaveBreadcrumb("Bugsnag loaded",{},"state"),n._config.autoTrackSessions?n.startSession():n},start:function(e){return xt._client?(xt._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),xt._client):(xt._client=xt.createClient(e),xt._client)}};return g(["resetEventCount"].concat(u(ce.prototype)),(function(e){/^_/.test(e)||(xt[e]=function(){if(!xt._client)return console.log("Bugsnag."+e+"() was called before Bugsnag.start()");xt._client._depth+=1;var t=xt._client[e].apply(xt._client,arguments);return xt._client._depth-=1,t})})),(kt=xt).Client=ce,kt.Event=U,kt.Session=oe,kt.Breadcrumb=E,kt.default=xt,kt}()},61:(e,t,n)=>{e.exports=n(748)},340:e=>{e.exports=function(){var e,t=this,n=function(e,n){var o=e.config.errorHandler,i=function(e,i,s){var u={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}},c=n.Event.create(e,!0,u,"vue error handler",1);c.addMetadata("vue",{errorInfo:a[s]||s,component:i?r(i,!0):void 0,props:i&&i.$options?i.$options.propsData:void 0}),n._notify(c),"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e),"function"==typeof o&&o.call(t,e,i,s)};e.config.errorHandler=i};function r(e){return null===e.$parent?"App":e.$options&&e.$options.name?e.$options.name:"Anonymous"}var o={BEFORE_CREATE:"bc",CREATED:"c",BEFORE_MOUNT:"bm",MOUNTED:"m",BEFORE_UPDATE:"bu",UPDATED:"u",BEFORE_UNMOUNT:"bum",UNMOUNTED:"um",DEACTIVATED:"da",ACTIVATED:"a",RENDER_TRIGGERED:"rtg",RENDER_TRACKED:"rtc",ERROR_CAPTURED:"ec"},i={SETUP_FUNCTION:0,RENDER_FUNCTION:1,WATCH_GETTER:2,WATCH_CALLBACK:3,WATCH_CLEANUP:4,NATIVE_EVENT_HANDLER:5,COMPONENT_EVENT_HANDLER:6,VNODE_HOOK:7,DIRECTIVE_HOOK:8,TRANSITION_HOOK:9,APP_ERROR_HANDLER:10,APP_WARN_HANDLER:11,FUNCTION_REF:12,ASYNC_COMPONENT_LOADER:13,SCHEDULER:14},a=((e={})[o.BEFORE_CREATE]="beforeCreate hook",e[o.CREATED]="created hook",e[o.BEFORE_MOUNT]="beforeMount hook",e[o.MOUNTED]="mounted hook",e[o.BEFORE_UPDATE]="beforeUpdate hook",e[o.UPDATED]="updated",e[o.BEFORE_UNMOUNT]="beforeUnmount hook",e[o.UNMOUNTED]="unmounted hook",e[o.ACTIVATED]="activated hook",e[o.DEACTIVATED]="deactivated hook",e[o.ERROR_CAPTURED]="errorCaptured hook",e[o.RENDER_TRACKED]="renderTracked hook",e[o.RENDER_TRIGGERED]="renderTriggered hook",e[i.SETUP_FUNCTION]="setup function",e[i.RENDER_FUNCTION]="render function",e[i.WATCH_GETTER]="watcher getter",e[i.WATCH_CALLBACK]="watcher callback",e[i.WATCH_CLEANUP]="watcher cleanup function",e[i.NATIVE_EVENT_HANDLER]="native event handler",e[i.COMPONENT_EVENT_HANDLER]="component event handler",e[i.VNODE_HOOK]="vnode hook",e[i.DIRECTIVE_HOOK]="directive hook",e[i.TRANSITION_HOOK]="transition hook",e[i.APP_ERROR_HANDLER]="app errorHandler",e[i.APP_WARN_HANDLER]="app warnHandler",e[i.FUNCTION_REF]="ref function",e[i.ASYNC_COMPONENT_LOADER]="async component loader",e[i.SCHEDULER]="scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next",e),s={},u=this;s=function(e,t){var n=e.config.errorHandler,r=function(e,r,o){var i={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}},a=t.Event.create(e,!0,i,"vue error handler",1);a.addMetadata("vue",{errorInfo:o,component:r?c(r,!0):void 0,props:r?r.$options.propsData:void 0}),t._notify(a),"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e),"function"==typeof n&&n.call(u,e,r,o)};e.config.errorHandler=r};var c=function(e,t){if(e.$root===e)return"<Root>";var n="function"==typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e||{},r=n.name||n._componentTag,o=n.__file;if(!r&&o){var i=o.match(/([^/\\]+)\.vue$/);r=i&&i[1]}return(r?"<"+l(r)+">":"<Anonymous>")+(o&&!1!==t?" at "+o:"")},l=s.classify=function(e){return e.replace(/(?:^|[-_])(\w)/g,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};return function(){function e(){var e="undefined"!=typeof window&&window.Vue;if(this.name="vue",this.lazy=0===arguments.length&&!e,!this.lazy&&(this.Vue=(arguments.length<=0?void 0:arguments[0])||e,!this.Vue))throw new Error("@bugsnag/plugin-vue reference to `Vue` was undefined")}return e.prototype.load=function(e){return this.Vue?(s(this.Vue,e),{installVueErrorHandler:function(){return e._logger.warn("installVueErrorHandler() was called unnecessarily")}}):{install:function(t){t||e._logger.error(new Error("@bugsnag/plugin-vue reference to Vue `app` was undefined")),n(t,e)},installVueErrorHandler:function(t){t||e._logger.error(new Error("@bugsnag/plugin-vue reference to `Vue` was undefined")),s(t,e)}}},e}()}()},818:(e,t)=>{"use strict";
11Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){try{document.cookie="cookietest=1";const e=-1!==document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(e){return!1}}},522:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventBusEvents=t.pushEngageStatusCodes=t.steps=t.tldRegionsMap=t.countryIsoCodes=t.GOOGLE_ANALYTICS_TRACKER_NAME=t.COOKIE_EXPIRES_TIME=t.COOKIE_GOOGLE_CLICK_IDENTIFIER_EXPIRE_TIME=t.COOKIE_CHANNEL_EXPIRE_TIME=t.COOKIE_PUBLISHER_PARAMS_NAME=t.COOKIE_GOOGLE_CLICK_IDENTIFIER_NAME=t.COOKIE_CHANNEL_NAME=void 0,t.COOKIE_CHANNEL_NAME="XC",t.COOKIE_GOOGLE_CLICK_IDENTIFIER_NAME="GCLID",t.COOKIE_PUBLISHER_PARAMS_NAME="XP",t.COOKIE_CHANNEL_EXPIRE_TIME=4/24,t.COOKIE_GOOGLE_CLICK_IDENTIFIER_EXPIRE_TIME=30,t.COOKIE_EXPIRES_TIME=540,t.GOOGLE_ANALYTICS_TRACKER_NAME="CustomSingleGATracker",t.countryIsoCodes={MEXICO:"MX",ARGETINA:"AR",BRAZIL:"BR",COLUMBIA:"CO",DOMINICAN_REPUBLIC:"DO",PERU:"PE",VENEZUELA:"VE",SOUTH_AFRIGA:"ZA",SPAIN:"ES",UK:"GB",POLAND:"PL",USA:"US"},t.tldRegionsMap={es:t.countryIsoCodes.SPAIN,mx:t.countryIsoCodes.MEXICO,pe:t.countryIsoCodes.PERU},t.steps={LastProductStep:70,CampaignStep:80,FinishStep:100},t.pushEngageStatusCodes={subscribed:1,denied:2,closed:3,somethingWentWrong:0,urlNotAllowed:20,browserNotSupported:21},t.eventBusEvents={refreshCredentials:"auth:refresh-credentials",saveCredentials:"auth:save-credentials",logOut:"auth:logout",appLoaded:"app:loaded",newDeepLink:"app:new-app-link",processStart:"app:process-start",processStep:"app:process-step",processReset:"app:process-reset",impressionCreated:"app:impressionCreated"}},686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventbus=void 0,t.eventbus=function(e){return{_listeners:{},_queue:{},isLoading:!0,init(e){return this._getReference(e)},_getReference:function(e){const t=`evBus${e}`;return window.hasOwnProperty(t)?window[t]:(window[t]=this,setTimeout((()=>{this._emptyQueue()}),5e3),this)},_emptyQueue(){Object.keys(this._queue).forEach((e=>{this._queue[e]=[]})),this.isLoading=!1},_addToQueue(e,t){this._hasQueue(e)||(this._queue[e]=[]),this._queue[e].push(t||{})},_applyQueue(e,t){this._hasQueue(e)&&this._queue[e].forEach((n=>{const r=new CustomEvent(e,{detail:n});t(r)}))},_hasListeners(e){return this._listeners.hasOwnProperty(e)},_hasQueue(e){return this._queue.hasOwnProperty(e)},on(e,t){this._hasListeners(e)||(this._listeners[e]=[]),this._listeners[e].push(t),this.isLoading&&this._applyQueue(e,t)},off(e,t){if(!this._hasListeners(e))return;const n=this._listeners[e].indexOf(t);n>=0&&this._listeners[e].splice(n,1)},emit(e,t){if(this.isLoading&&this._addToQueue(e,t),!this._hasListeners(e))return;const n=new CustomEvent(e,{detail:t});this._listeners[e].forEach((e=>e(n)))}}.init(e)}},952:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.eventbus=t.Logger=void 0;var i=n(293);Object.defineProperty(t,"Logger",{enumerable:!0,get:function(){return i.Logger}});var a=n(686);Object.defineProperty(t,"eventbus",{enumerable:!0,get:function(){return a.eventbus}}),o(n(522),t)},293:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;const o=r(n(61)),i=r(n(340)),a=r(n(818));function s(){try{return window.self!==window.top}catch(e){return!0}}t.Logger=class{constructor(e){const t=Object.assign({maxEvents:50,enabledReleaseStages:["production","staging"],redactedKeys:["[1]",/^password$/i,/^cc_/]},e);t.vueImplementation?this._bugsnag=o.default.start(Object.assign(Object.assign({},t),{plugins:[new i.default(t.vueImplementation)]})):this._bugsnag=o.default.createClient(t)}getUserData(){return{referrer:document.referrer,iframe:s(),cookies_enabled:a.default()}}generateApiResponseHeaders(e){var t;const n={};return(null===(t=e.requestErrorObject)||void 0===t?void 0:t.headers)&&e.requestErrorObject.headers.forEac
11h(((e,t)=>{n[t]=e})),n}generateCustomMetadata(e){return Object.assign(Object.assign({},e),{headers:this.generateApiResponseHeaders(e)})}info(e,t=null){this.notify({message:e,data:t,severity:"info"})}warn(e,t=null){this.notify({message:e,data:t,severity:"warning"})}error(e,t=null){this.notify({message:e,data:t,severity:"error"})}notify({message:e,data:t,severity:n}){this._bugsnag.notify(e,(e=>{e.severity=n,t&&e.addMetadata("data",this.generateCustomMetadata(t)),e.addMetadata("user",this.getUserData())}))}}}},n={},function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r].call(i.exports,i,i.exports,e),i.exports}(952))},5404:function(e,t,n){"use strict";n.d(t,{N:function(){return l},H:function(){return f}});var r=n(1090),o=n(8371),i=n(6936),a=new o.Client({apiUrl:app.config.apiUrl,clientData:i.Z});const s=(0,r.eventbus)(window.eventChannel||"c432556660722ff93cefb5a932e550b7"),{logOut:u,saveCredentials:c}=r.eventBusEvents;let l="";async function f(){if(!await a.check())return l=null,null;const e=a.getAccessToken();return e?(s.emit(c,{}),l=e,e):(l=null,null)}function d(e){e?document.body.classList.add("logged-in"):document.body.classList.remove("logged-in")}document.addEventListener("DOMContentLoaded",(()=>{(async function(){d(!1);const e=document.querySelector("#login-button");e&&e.addEventListener("click",(function(){window.location="/login"}));const t=document.querySelector("#profile-button");t&&t.addEventListener("click",(function(){window.location="/profile"})),s.on(c,(e=>{e&&d(!0)})),s.on(u,(()=>{d(!1)}))})().then((()=>{f()}))}))},6936:function(e,t,n){"use strict";var r=n(8999);t.Z=function(){return{device:{id:(0,r.getUserDeviceHash)()||void 0},client:{bundle_identifier:app.config.clientBundleIdentifier,version:"2.0.0"}}}}},function(e){var t;t=5404,e(e.s=t)}]); 12//# sourceMappingURL=auth.4f463aef3988e25ae6cc.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.