1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3876],{39364:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});let i={init:function(t){void 0===t&&void 0!==i.zg||(i.zg=!!t),i.t||(i.t=!0)},destroy:function(){i.t=!1,i.zg=void 0,i.vd=void 0},setLogger:function(t){"function"==typeof t?(i.init(),i.vd=t):i.info("Ignoring setLogger call since logger is not a function")},toggleLogging:function(){i.init(),i.zg?(console.log("Disabling Braze logging"),i.zg=!1):(console.log("Enabled Braze logging"),i.zg=!0)},info:function(t){if(i.zg){let e="Braze: "+t;null!=i.vd?i.vd(e):console.log(e)}},warn:function(t){if(i.zg){let e="Braze SDK Warning: "+t+" (v5.5.0)";null!=i.vd?i.vd(e):console.warn(e)}},error:function(t){if(i.zg){let e="Braze SDK Error: "+t+" (v5.5.0)";null!=i.vd?i.vd(e):console.error(e)}}},s={Tn:function(t){let e=atob((t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/")),i=new Uint8Array(e.length);for(let t=0;t<e.length;++t)i[t]=e.charCodeAt(t);return i}},a={CustomEvent:"ce",Pr:"p",Ku:"pc",Ua:"i",Ls:"ie",M:"cci",R:"ccic",k:"ccc",F:"ccd",ql:"ss",xl:"se",Xi:"si",$i:"sc",Oi:"sbc",mo:"iec",Ju:"lr",Eu:"uae",O:"ci",D:"cc",Xu:"lcaa",Gu:"lcar",On:"inc",Ln:"add",Rn:"rem",$n:"set",Bn:"ncam",Hu:"sgu",Fr:"ffi"},r={Ar:"feed_displayed"};var n={W:function(){let t=(t=!1)=>{let e=(Math.random().toString(16)+"000000000").substr(2,8);return t?"-"+e.substr(0,4)+"-"+e.substr(4,4):e};return t()+t(!0)+t(!0)+t()}};class o{constructor(t,e){this.database=t,this.vd=e,this.parent="undefined"==typeof window?self:window,this.database=t,this.vd=e}Dd(){if("indexedDB"in this.parent)return this.parent.indexedDB}isSupported(){var t;try{if(null==this.Dd())return!1;{let e=null==(t=this.Dd())?void 0:t.open("Braze IndexedDB Support Test");if(e&&(e.onupgradeneeded=()=>e.result.close(),e.onsuccess=()=>e.result.close()),"undefined"!=typeof window){let t=window,e=t.chrome||t.browser||t.pd;if(e&&e.runtime&&e.runtime.id)return this.vd.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}}catch(t){return this.vd.info("Not using IndexedDB for storage due to following error: "+t),!1}}Bd(t,e){var i;let s=null==(i=this.Dd())?void 0:i.open(this.database.Sd,this.database.VERSION);if(null==s)return"function"==typeof e&&e(),!1;let a=this;return s.onupgradeneeded=t=>{var e;a.vd.info("Upgrading indexedDB "+a.database.Sd+" to v"+a.database.VERSION+"...");let i=null==(e=t.target)?void 0:e.result;for(let t in a.database.hs)a.database.hs.hasOwnProperty(t)&&!i.objectStoreNames.contains(a.database.hs[t])&&i.createObjectStore(a.database.hs[t])},s.onsuccess=i=>{var s;let r=null==(s=i.target)?void 0:s.result;r.onversionchange=()=>{r.close(),"function"==typeof e&&e(),a.vd.error("Needed to close the database unexpectedly because of an upgrade in another tab")},t(r)},s.onerror=t=>{var i;return a.vd.info("Could not open indexedDB "+a.database.Sd+" v"+a.database.VERSION+": "+(null==(i=t.target)?void 0:i.errorCode)),"function"==typeof e&&e(),!0},!0}setItem(t,e,i,s,a){if(!this.isSupported())return"function"==typeof a&&a(),!1;let r=this;return this.Bd(n=>{if(!n.objectStoreNames.contains(t))return r.vd.error("Could not store object "+e+" in "+t+" on indexedDB "+r.database.Sd+" - "+t+" is not a valid objectStore"),"function"==typeof a&&a(),void n.close();let o=n.transaction([t],"readwrite");o.oncomplete=()=>n.close();let l=o.objectStore(t).put(i,e);l.onerror=()=>{r.vd.error("Could not store object "+e+" in "+t+" on indexedDB "+r.database.Sd),"function"==typeof a&&a()},l.onsuccess=()=>{"function"==typeof s&&s()}},a)}getItem(t,e,i){if(!this.isSupported())return!1;let s=this;return this.Bd(a=>{if(!a.objectStoreNames.contains(t))return s.vd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+s.database.Sd+" - "+t+" is not a valid objectStore"),void a.close();let r=a.transaction([t],"readonly");r.oncomplete=()=>a.close();let n=r.objectStore(t).get(e);n.onerror=()=>{s.vd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+s.database.Sd)},n.onsuccess=t=>{var e;let s=null==(e=t.target)?void 0:e.result;null!=s&&i(s)}})}jr(t,e,i){if(!this.isSupported())return"function"==typeof i&&i(),!1;let s=this;return this.Bd(a=>{if(!a.objectStoreNames.contains(t))return s.vd.error("Could not retrieve last record from "+t+" on indexedDB "+s.database.Sd+" - "+t+" is not a valid objectStore"),"function"==typeof i&&i(),void a.close();let r=a.transaction([t],"readonly");r.oncomplete=()=>a.close();let n=r.objectStore(t).openCursor(null,"prev");n.onerror=()=>{s.vd.error("Could not open cursor for "+t+" on indexedDB "+s.database.Sd),"function"==typeof i&&i()},n.onsuccess=t=>{var s;let a=null==(s=t.target)?void 0:s.result;null!=a&&null!=a.value&&null!=a.key?e(a.key,a.value):"function"==typeof i&&i()}},i)}re(t,e){if(!this.isSupported())return!1;let i=this;return this.Bd(s=>{if(!s.objectStoreNames.contains(t))return i.vd.error("Could not delete record "+e+" from "+t+" on indexedDB "+i.database.Sd+" - "+t+" is not a valid objectStore"),void s.close();let a=s.transaction([t],"readwrite");a.oncomplete=()=>s.close(),a.objectStore(t).delete(e).onerror=()=>{i.vd.error("Could not delete record "+e+" from "+t+" on indexedDB "+i.database.Sd)}})}ss(t,e){if(!this.isSupported())return!1;let i=this;return this.Bd(s=>{if(!s.objectStoreNames.contains(t))return i.vd.error("Could not retrieve objects from "+t+" on indexedDB "+i.database.Sd+" - "+t+" is not a valid objectStore"),void s.close();let a=s.transaction([t],"readwrite");a.oncomplete=()=>s.close();let r=a.objectStore(t),n=r.openCursor(),o=[];n.onerror=()=>{o.length>0?(i.vd.info("Cursor closed midway through for "+t+" on indexedDB "+i.database.Sd),e(o)):i.vd.error("Could not open cursor for "+t+" on indexedDB "+i.database.Sd)},n.onsuccess=t=>{var i;let s=null==(i=t.target)?void 0:i.result;null!=s?(null!=s.value&&null!=s.key&&(r.delete(s.key).onsuccess=()=>{o.push(s.value)}),"function"==typeof s.continue&&s.continue()):o.length>0&&e(o)}})}clearData(){if(!this.isSupported())return!1;let t=[];for(let e in this.database.hs)this.database.hs.hasOwnProperty(e)&&this.database.hs[e]!==this.database.hs.ae&&t.push(this.database.hs[e]);let e=this;return this.Bd(function(i){let s=i.transaction(t,"readwrite");s.oncomplete=()=>i.close();for(let i=0;i<t.length;i++){let a=t[i];s.objectStore(a).clear().onerror=function(){e.vd.error("Could not clear "+this.source.name+" on indexedDB "+e.database.Sd)}}s.onerror=function(){e.vd.error("Could not clear object stores on indexedDB "+e.database.Sd)}})}}o.ts={Zt:{Sd:"AppboyServiceWorkerAsyncStorage",VERSION:6,hs:{Ka:"data",hr:"pushClicks",cu:"pushSubscribed",Cd:"fallbackDevice",es:"cardUpdates",ae:"optOut",wr:"pendingData",jh:"sdkAuthenticationSignature"},ie:1}};
1var l={Eo:"allowCrawlerActivity",_o:"baseUrl",Io:"noCookies",So:"devicePropertyAllowlist",Aa:"disablePushTokenMaintenance",Ao:"enableLogging",No:"enableSdkAuthentication",qa:"manageServiceWorkerExternally",Oo:"minimumIntervalBetweenTriggerActionsInSeconds",Ro:"sessionTimeoutInSeconds",Po:"appVersion",Lo:"appVersionNumber",Ma:"serviceWorkerLocation",ka:"safariWebsitePushId",zn:"localization",bo:"contentSecurityNonce",Do:"allowUserSuppliedJavascript",jo:"inAppMessageZIndex",ho:"openInAppMessagesInNewTab",en:"openNewsFeedCardsInNewTab",Lh:"requireExplicitInAppMessageDismissal",Mo:"doNotLoadFontAwesome",Uo:"deviceId",_a:"serviceWorkerScope",Wo:"sdkFlavor",tn:"openCardsInNewTab"};function u(t){let e=[];for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&void 0!==t[i]&&e.push(t[i]);return e}function h(t,e,s,a){let r=u(t);return -1!==r.indexOf(e)||(i.error(`${s} Valid values from ${a} are "${r.join('"/"')}".`),!1)}function c(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function d(t){return"[object Date]"===Object.prototype.toString.call(t)}function p(t){return"[object Object]"===Object.prototype.toString.call(t)}function b(t){let e=[];for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.push(i);return e}function f(t,e){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;let i=t.toString();if(i!==e.toString())return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}let s="[object Array]"===i;if(!s){if("object"!=typeof t||"object"!=typeof e)return!1;let i=t.constructor,s=e.constructor;if(i!==s&&!("function"==typeof i&&i instanceof i&&"function"==typeof s&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}let a=[],r=[],n=a.length;for(;n--;)if(a[n]===t)return r[n]===e;if(a.push(t),r.push(e),s){if((n=t.length)!==e.length)return!1;for(;n--;)if(!f(t[n],e[n]))return!1}else{let i,s=b(t);if(n=s.length,b(e).length!==n)return!1;for(;n--;)if(i=s[n],!Object.prototype.hasOwnProperty.call(e,i)||!f(t[i],e[i]))return!1}return a.pop(),r.pop(),!0}function m(t,e=!1){let i=t/1e3;return e&&(i=Math.floor(i)),i}function g(t){if(null==t)return null;let e=parseInt(t.toString());return isNaN(e)?null:new Date(1e3*e)}function v(t){return null!=t&&d(t)?t.toISOString().replace(/\.[0-9]{3}Z$/,""):t}function w(t){return null==t||""===t?null:new Date(t)}function y(t){return(new Date().valueOf()-t.valueOf())/1e3}function x(t){return(t.valueOf()-new Date().valueOf())/1e3}let E="inAppMessage must be an InAppMessage object",S="must be a Card object",k="setCustomUserAttribute",C="Braze must be initialized before calling methods.";class A{constructor(){this._e={}}Nt(t){if("function"!=typeof t)return null;let e=n.W();return this._e[e]=t,e}removeSubscription(t){delete this._e[t]}removeAllSubscriptions(){this._e={}}ic(){return Object.keys(this._e).length}Rt(t){let e=[];for(let i in this._e){let s=this._e[i];e.push(s(t))}return e}}class _{constructor(t,e,i,s,a,r,n,o,l,u,h,c,d,p,b,f){this.id=t,this.viewed=e,this.title=i,this.imageUrl=s,this.description=a,this.created=r,this.updated=n,this.categories=o,this.expiresAt=l,this.url=u,this.linkText=h,this.aspectRatio=c,this.extras=d,this.pinned=p,this.dismissible=b,this.clicked=f,this.id=t,this.viewed=e||!1,this.title=i||"",this.imageUrl=s,this.description=a||"",this.created=r||null,this.updated=n||null,this.categories=o||[],this.expiresAt=l||null,this.url=u,this.linkText=h,null==c?this.aspectRatio=null:(c=parseFloat(c.toString()),this.aspectRatio=isNaN(c)?null:c),this.extras=d||{},this.pinned=p||!1,this.dismissible=b||!1,this.dismissed=!1,this.clicked=f||!1,this.isControl=!1,this.test=!1,this.Et=null,this.Tt=null,this.It=null}subscribeToClickedEvent(t){return this.St().Nt(t)}subscribeToDismissedEvent(t){return this.At().Nt(t)}removeSubscription(t){this.St().removeSubscription(t),this.At().removeSubscription(t)}removeAllSubscriptions(){this.St().removeAllSubscriptions(),this.At().removeAllSubscriptions()}dismissCard(){if(!this.dismissible||this.dismissed)return;"function"==typeof this.logCardDismissal&&this.logCardDismissal();let t=this.T;!t&&this.id&&(t=document.getElementById(this.id)),t&&(t.style.height=t.offsetHeight+"px",t.className=t.className+" ab-hide",setTimeout(function(){t&&t.parentNode&&(t.style.height="0",t.style.margin="0",setTimeout(function(){t&&t.parentNode&&t.parentNode.removeChild(t)},_.Dt))},500))}St(){return null==this.Et&&(this.Et=new A),this.Et}At(){return null==this.Tt&&(this.Tt=new A),this.Tt}K(){let t=new Date().valueOf();return!(null!=this.It&&t-this.It<_.Ct)&&(this.It=t,this.viewed=!0,!0)}p(){this.viewed=!0,this.clicked=!0,this.St().Rt()}N(){return!(!this.dismissible||this.dismissed)&&(this.dismissed=!0,this.At().Rt(),!0)}Lt(t){if(null==t||t[_._t.ht]!==this.id)return!0;
1if(t[_._t.Ot])return!1;if(null!=t[_._t.nt]&&null!=this.updated&&parseInt(t[_._t.nt])<m(this.updated.valueOf()))return!0;if(t[_._t.et]&&!this.viewed&&(this.viewed=!0),t[_._t.zt]&&!this.clicked&&(this.clicked=t[_._t.zt]),null!=t[_._t.rt]&&(this.title=t[_._t.rt]),null!=t[_._t.ot]&&(this.imageUrl=t[_._t.ot]),null!=t[_._t.ct]&&(this.description=t[_._t.ct]),null!=t[_._t.nt]){let e=g(t[_._t.nt]);null!=e&&(this.updated=e)}if(null!=t[_._t.lt]){let e;e=t[_._t.lt]===_.Mt?null:g(t[_._t.lt]),this.expiresAt=e}if(null!=t[_._t.URL]&&(this.url=t[_._t.URL]),null!=t[_._t.ft]&&(this.linkText=t[_._t.ft]),null!=t[_._t.xt]){let e=parseFloat(t[_._t.xt].toString());this.aspectRatio=isNaN(e)?null:e}return null!=t[_._t.bt]&&(this.extras=t[_._t.bt]),null!=t[_._t.gt]&&(this.pinned=t[_._t.gt]),null!=t[_._t.jt]&&(this.dismissible=t[_._t.jt]),null!=t[_._t.kt]&&(this.test=t[_._t.kt]),!0}Y(){i.error("Must be implemented in a subclass")}}_.Mt=-1,_._t={ht:"id",et:"v",jt:"db",Ot:"r",nt:"ca",gt:"p",lt:"ea",bt:"e",Z:"tp",ot:"i",rt:"tt",ct:"ds",URL:"u",ft:"dm",xt:"ar",zt:"cl",kt:"t"},_.it={st:"captioned_image",Pt:"text_announcement",Ut:"short_news",Gt:"banner_image",Xt:"control"},_.tt={ht:"id",et:"v",jt:"db",dt:"cr",nt:"ca",gt:"p",ut:"t",lt:"ea",bt:"e",Z:"tp",ot:"i",rt:"tt",ct:"ds",URL:"u",ft:"dm",xt:"ar",zt:"cl",kt:"s"},_.vt={Vt:"ADVERTISING",Wt:"ANNOUNCEMENTS",wt:"NEWS",Ft:"SOCIAL"},_.Dt=400,_.Ct=1e4;class N extends _{constructor(t,e,i,s,a,r,n,o,l,u,h,c,d,p){super(t,e,null,i,null,s,a,r,n,o,l,u,h,c,d,p),this._="ab-image-only",this.S=!1,this.test=!1}Y(){let t={};return t[_.tt.Z]=_.it.Gt,t[_.tt.ht]=this.id,t[_.tt.et]=this.viewed,t[_.tt.ot]=this.imageUrl,t[_.tt.nt]=this.updated,t[_.tt.dt]=this.created,t[_.tt.ut]=this.categories,t[_.tt.lt]=this.expiresAt,t[_.tt.URL]=this.url,t[_.tt.ft]=this.linkText,t[_.tt.xt]=this.aspectRatio,t[_.tt.bt]=this.extras,t[_.tt.gt]=this.pinned,t[_.tt.jt]=this.dismissible,t[_.tt.zt]=this.clicked,t[_.tt.kt]=this.test,t}}class T extends _{constructor(t,e,i,s,a,r,n,o,l,u,h,c,d,p,b,f){super(t,e,i,s,a,r,n,o,l,u,h,c,d,p,b,f),this._="ab-captioned-image",this.S=!0,this.test=!1}Y(){let t={};return t[_.tt.Z]=_.it.st,t[_.tt.ht]=this.id,t[_.tt.et]=this.viewed,t[_.tt.rt]=this.title,t[_.tt.ot]=this.imageUrl,t[_.tt.ct]=this.description,t[_.tt.nt]=this.updated,t[_.tt.dt]=this.created,t[_.tt.ut]=this.categories,t[_.tt.lt]=this.expiresAt,t[_.tt.URL]=this.url,t[_.tt.ft]=this.linkText,t[_.tt.xt]=this.aspectRatio,t[_.tt.bt]=this.extras,t[_.tt.gt]=this.pinned,t[_.tt.jt]=this.dismissible,t[_.tt.zt]=this.clicked,t[_.tt.kt]=this.test,t}}class I extends _{constructor(t,e,i,s,a,r,n,o,l,u,h,c,d,p,b,f){super(t,e,i,s,a,r,n,o,l,u,h,c,d,p,b,f),this._="ab-classic-card",this.S=!0}Y(){let t={};return t[_.tt.Z]=_.it.Ut,t[_.tt.ht]=this.id,t[_.tt.et]=this.viewed,t[_.tt.rt]=this.title,t[_.tt.ot]=this.imageUrl,t[_.tt.ct]=this.description,t[_.tt.nt]=this.updated,t[_.tt.dt]=this.created,t[_.tt.ut]=this.categories,t[_.tt.lt]=this.expiresAt,t[_.tt.URL]=this.url,t[_.tt.ft]=this.linkText,t[_.tt.xt]=this.aspectRatio,t[_.tt.bt]=this.extras,t[_.tt.gt]=this.pinned,t[_.tt.jt]=this.dismissible,t[_.tt.zt]=this.clicked,t[_.tt.kt]=this.test,t}}class O extends _{constructor(t,e,i,s,a,r){super(t,e,null,null,null,null,i,null,s,null,null,null,a,r),this.isControl=!0,this._="ab-control-card",this.S=!1}Y(){let t={};return t[_.tt.Z]=_.it.Xt,t[_.tt.ht]=this.id,t[_.tt.et]=this.viewed,t[_.tt.nt]=this.updated,t[_.tt.lt]=this.expiresAt,t[_.tt.bt]=this.extras,t[_.tt.gt]=this.pinned,t[_.tt.kt]=this.test,t}}function D(t){let e,i=null==t?void 0:t.j(tl.C._E);return i&&(e={label:i.l,name:i.a}),e}class P{constructor(t,e,i,s,a){this.userId=t,this.type=e,this.time=i,this.sessionId=s,this.data=a,this.userId=t,this.type=e,this.time=function(t){return null==t||""===t?new Date().valueOf():t}(i),this.sessionId=s,this.data=a}Mr(){var t;let e={name:this.type,time:m(this.time),data:this.data||{},session_id:this.sessionId};null!=this.userId&&(e.user_id=this.userId);let i=(null==(t=eA.Sr())?void 0:t.Fh())||!1;if(!e.user_id&&!i){let t=D(eA.l());t&&(e.alias=t)}return e}Y(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(t){return new P(t.user_id,t.name,t.time,t.session_id,t.data)}static RE(t){return null!=t&&p(t)&&null!=t.t&&""!==t.t}static qn(t){return new P(t.u,t.t,t.ts,t.s,t.d)}}let z=t=>t instanceof Error?t.message:String(t);class U{constructor(t,e,i){this.eu=t,null==t&&(t=n.W()),!i||isNaN(i)?this.Dl=new Date().valueOf():this.Dl=i,this.eu=t,this.Wl=new Date().valueOf(),this.Hl=e}Y(){return`g:${encodeURIComponent(this.eu)}|e:${this.Hl}|c:${this.Dl}|l:${this.Wl}`}static hE(t){let e;if("string"!=typeof t)return null;let i=t.lastIndexOf("|e:"),s=t.substring(0,i),a=s.split("g:")[1];return e=/[|:]/.test(a)?encodeURIComponent(a):a,t=t.replace(s,`g:${e}`)}static qn(t){let e;if("string"==typeof t)try{let i=t.split("|");if(!c(i)||4!==i.length)return null;let s=t=>t.split(":")[1],a=t=>{let e=parseInt(s(t));if(!isNaN(e))return e};(e=new U(decodeURIComponent(s(i[0])),a(i[1]),a(i[2]))).Wl=a(i[3])}catch(e){i.info(`Unable to parse cookie string ${t}, failed with error: ${z(e)}`)}else{if(null==t||null==t.g)return null;(e=new U(t.g,t.e,t.c)).Wl=t.l}return e}}function M(t){let e=t.length;for(let i=t.length-1;i>=0;i--){let s=t.charCodeAt(i);s>127&&s<=2047?e++:s>2047&&s<=65535&&(e+=2),s>=56320&&s<=57343&&i--}return e}let R={types:{ro:"container",logCustomEvent:"logCustomEvent",setEmailNotificationSubscriptionType:"setEmailNotificationSubscriptionType",setPushNotificationSubscriptionType:"setPushNotificationSubscriptionType",setCustomUserAttribute:"setCustomUserAttribute",requestPushPermission:"requestPushPermission",addToSubscriptionGroup:"addToSubscriptionGroup",removeFromSubscriptionGroup:"removeFromSubscriptionGroup",addToCustomAttributeArray:"addToCustomAttributeArray",removeFromCustomAttributeArray:"removeFromCustomAttributeArray",no:"openLink",ao:"openLinkInWebView"},properties:{type:"type",oo:"steps",eo:"args"}},L={Vi:"unknownBrazeAction",Yi:"noPushPrompt"},B=(t,e)=>{switch(t){case L.Vi:return`${e} contains an unknown braze action type and will not be displayed.`;case L.Yi:return`${e} contains a push prompt braze action, but is not eligible for a push prompt. Ignoring.`;default:return""}};function F(t){try{let e=t.match(Y),s=e?e[0].length:null,a=s?t.substring(s):null;if(null==s||s>t.length-1||!a)return void i.error(`Did not find base64 encoded brazeAction in url to process : ${t}`);let r=function(t){try{t=t.replace(/-/g,"+").replace(/_/g,"/");let e=window.atob(t),i=new Uint8Array(e.length);for(let t=0;t<e.length;t++)i[t]=e.charCodeAt(t);let s=new Uint16Array(i.buffer);return String.fromCharCode(...s)}catch(t){return i.error("Unable to decode Base64: "+t),null}}(a);return r?JSON.parse(r):void i.error(`Failed to decode base64 encoded brazeAction: ${a}`)}catch(e){return void i.error(`Failed to process brazeAction URL ${t} : ${z(e)}`)}}function $(t,e){let i=!1;if(e){for(let s of e)if(i=i||t(s))return!0}return!1}function q(t){let e=R.properties.type,i=R.properties.oo;try{var s;let a;if(null==t)return!0;let r=t[e];return r===R.types.ro?$(q,t[i]):(s=r,a=!1,Object.keys(R.types).forEac
1h(t=>{R.types[t]!==s.toString()||(a=!0)}),!a)}catch(t){return!0}}let j=/^[^\x00-\x1F\x22]+$/,G=/[$.]/,K=["$add","$update","$remove","$identifier_key","$identifier_value","$new_object","$time","$google_ad_personalization","$google_ad_user_data"],X=new RegExp(/^.+@.+\..+$/),Y=/^brazeActions:\/\/v\d+\//;function H(t,e,s){let a=null!=t&&"string"==typeof t&&(""===t||null!=t.match(j));return a||i.error(`Cannot ${e} because ${s} "${t}" is invalid.`),a}function J(t){return null!=t&&t.match(G)&&-1===K.indexOf(t)&&i.warn("Custom attribute keys cannot contain '$' or '.'"),H(t,"set custom user attribute","the given key")}function W(t){let e=typeof t;return null==t||"number"===e||"boolean"===e||d(t)||"string"===e}function V(t,e,s,a=!1){let r="string"==typeof t||null===t&&a;return r||i.error(`Cannot ${e} because ${s} "${t}" is invalid.`),r}function Z(t,e,s,a,r){let n,o,l;if(null==t&&(t={}),"object"!=typeof t||c(t))return i.error(`${e} requires that ${s} be an object. Ignoring ${r}.`),[!1,null];e===k?(n=76800,o="75KB"):(n=51200,o="50KB");let u=JSON.stringify(t);if(M(u)>n)return i.error(`Could not ${a} because ${s} was greater than the max size of ${o}.`),[!1,null];try{l=JSON.parse(u)}catch(t){return i.error(`Could not ${a} because ${s} did not contain valid JSON.`),[!1,null]}for(let s in t){if(e===k&&!J(s)||!H(s,a,`the ${r} property name`))return[!1,null];let n=t[s];if(e!==k&&null==n){delete t[s],delete l[s];continue}if(d(n)&&(l[s]=v(n)),!function(t,e,s,a,r){let n;return(n=p(t)||c(t)?function t(e,s,a){let r=-1!==a;if(r&&a>50)return i.error("Nested attributes cannot be more than 50 levels deep."),!1;let n=r?a+1:-1;if(c(e)&&c(s)){for(let i=0;i<e.length&&i<s.length;i++)if(d(e[i])&&(s[i]=v(e[i])),!t(e[i],s[i],n))return!1}else{if(!p(e))return W(e);for(let i of b(e)){let a=e[i];if(r&&!J(i)||(d(a)&&(s[i]=v(a)),!t(a,s[i],n)))return!1}}return!0}(t,e,r?1:-1):W(t))||i.error(`Cannot ${s} because ${a} "${t}" is invalid.`),n}(n,l[s],a,`the ${r} property "${s}"`,e===k))return[!1,null]}return[!0,l]}function Q(t){if(!(R.properties.type in t))return!1;switch(t[R.properties.type]){case R.types.ro:if(R.properties.oo in t)return!0;break;case R.types.logCustomEvent:case R.types.setEmailNotificationSubscriptionType:case R.types.setPushNotificationSubscriptionType:case R.types.setCustomUserAttribute:case R.types.addToSubscriptionGroup:case R.types.removeFromSubscriptionGroup:case R.types.addToCustomAttributeArray:case R.types.removeFromCustomAttributeArray:case R.types.no:case R.types.ao:if(R.properties.eo in t)return!0;break;case R.types.requestPushPermission:return!0}return!1}class tt{constructor(t,e){this.yt=t,this.Ui=e,this.yt=t,this.Ui=e}getUserId(t){let e=this.yt.getUserId();if("function"!=typeof t)return e;i.warn("The callback for getUserId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getUser().getUserId()`)"),t(e)}addAlias(t,e){return!V(t,"add alias","the alias",!1)||t.length<=0?(i.error("addAlias requires a non-empty alias"),!1):!V(e,"add alias","the label",!1)||e.length<=0?(i.error("addAlias requires a non-empty label"),!1):this.Ui.Cn(t,e).L}setFirstName(t){return!!V(t,"set first name","the firstName",!0)&&this.yt.nu("first_name",t)}setLastName(t){return!!V(t,"set last name","the lastName",!0)&&this.yt.nu("last_name",t)}setEmail(t){return null===t||"string"==typeof t&&null!=t.toLowerCase().match(X)?this.yt.nu("email",t):(i.error(`Cannot set email address - "${t}" did not pass RFC-5322 validation.`),!1)}setGender(t){return"string"==typeof t&&(t=t.toLowerCase()),!(null!==t&&!h(tt.Genders,t,`Gender "${t}" is not a valid gender.`,"User.Genders"))&&this.yt.nu("gender",t)}setDateOfBirth(t,e,s){return null===t&&null===e&&null===s?this.yt.nu("dob",null):(t=null!=t?parseInt(t.toString()):null,e=null!=e?parseInt(e.toString()):null,s=null!=s?parseInt(s.toString()):null,null==t||null==e||null==s||isNaN(t)||isNaN(e)||isNaN(s)||e>12||e<1||s>31||s<1?(i.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):this.yt.nu("dob",`${t}-${e}-${s}`))}setCountry(t){return!!V(t,"set country","the country",!0)&&this.yt.nu("country",t)}setHomeCity(t){return!!V(t,"set home city","the homeCity",!0)&&this.yt.nu("home_city",t)}setLanguage(t){return!!V(t,"set language","the language",!0)&&this.yt.nu("language",t)}setEmailNotificationSubscriptionType(t){return!!h(tt.NotificationSubscriptionTypes,t,`Email notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.yt.nu("email_subscribe",t)}setPushNotificationSubscriptionType(t){return!!h(tt.NotificationSubscriptionTypes,t,`Push notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.yt.nu("push_subscribe",t)}setPhoneNumber(t){return!!V(t,"set phone number","the phoneNumber",!0)&&(null===t||t.match(tt.En)?this.yt.nu("phone",t):(i.error(`Cannot set phone number - "${t}
1" did not pass validation.`),!1))}setLastKnownLocation(t,e,s,a,r){return null==t||null==e?(i.error("Cannot set last-known location - latitude and longitude are required."),!1):(t=parseFloat(t.toString()),e=parseFloat(e.toString()),null!=s&&(s=parseFloat(s.toString())),null!=a&&(a=parseFloat(a.toString())),null!=r&&(r=parseFloat(r.toString())),isNaN(t)||isNaN(e)||null!=s&&isNaN(s)||null!=a&&isNaN(a)||null!=r&&isNaN(r)?(i.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):t>90||t<-90||e>180||e<-180?(i.error("Cannot set last-known location - latitude and longitude are bounded by \xb190 and \xb1180 respectively."),!1):null!=s&&s<0||null!=r&&r<0?(i.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.Ui.setLastKnownLocation(this.yt.getUserId(),t,e,a,s,r).L)}setCustomUserAttribute(t,e,s){if(!J(t))return!1;let r=e=>{let[i]=Z(e,k,"attribute value",`set custom user attribute "${t}"`,"custom user attribute");return i};if(c(e)){let[s,n]=function(t,e){let s=!1,a=!1,r=()=>{i.error("Custom attribute arrays must be either string arrays or object arrays.")};for(let i of e)if("string"==typeof i){if(a)return r(),[!1,!1];if(!H(i,`set custom user attribute "${t}"`,"the element in the given array"))return[!1,!1];s=!0}else{if(!p(i)||s)return r(),[!1,!1];if(!Z(i,k,"attribute value",`set custom user attribute "${t}"`,"custom user attribute"))return[!1,!1];a=!0}return[s,a]}(t,e);if(!s&&!n&&0!==e.length)return!1;if(s||0===e.length)return this.Ui.Fn(a.$n,t,e).L;for(let t of e)if(!r(t))return!1}else if(p(e)){if(!r(e))return!1;if(s)return this.Ui.Fn(a.Bn,t,e).L}else if(!(void 0!==e&&W(e))||(d(e)&&(e=v(e)),"string"==typeof e&&!H(e,`set custom user attribute "${t}"`,"the element in the given array")))return!1;return this.yt.setCustomUserAttribute(t,e)}addToCustomAttributeArray(t,e){return!!H(t,"add to custom user attribute array","the given key")&&!(null!=e&&!H(e,"add to custom user attribute array","the given value"))&&this.Ui.Fn(a.Ln,t,e).L}removeFromCustomAttributeArray(t,e){return!!H(t,"remove from custom user attribute array","the given key")&&!(null!=e&&!H(e,"remove from custom user attribute array","the given value"))&&this.Ui.Fn(a.Rn,t,e).L}incrementCustomUserAttribute(t,e){if(!H(t,"increment custom user attribute","the given key"))return!1;null==e&&(e=1);let s=parseInt(e.toString());return isNaN(s)||s!==parseFloat(e.toString())?(i.error(`Cannot increment custom user attribute because the given incrementValue "${e}" is not an integer.`),!1):this.Ui.Fn(a.On,t,s).L}setCustomLocationAttribute(t,e,s){return!!H(t,"set custom location attribute","the given key")&&((null!==e||null!==s)&&(e=null!=e?parseFloat(e.toString()):null,s=null!=s?parseFloat(s.toString()):null,null==e&&null!=s||null!=e&&null==s||null!=e&&(isNaN(e)||e>90||e<-90)||null!=s&&(isNaN(s)||s>180||s<-180))?(i.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by \xb190 and \xb1180 respectively, or must both be null for removal."),!1):this.Ui.Gn(t,e,s).L)}addToSubscriptionGroup(t){return!V(t,"add user to subscription group","subscription group ID",!1)||t.length<=0?(i.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ui.Hn(t,tt.Kn.SUBSCRIBED).L}removeFromSubscriptionGroup(t){return!V(t,"remove user from subscription group","subscription group ID",!1)||t.length<=0?(i.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ui.Hn(t,tt.Kn.UNSUBSCRIBED).L}Pn(t,e,i,s,a){this.yt.Pn(t,e,i,s,a),this.Ui.Mn()}Sn(t){this.yt.Sn(t)}}tt.Genders={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},tt.NotificationSubscriptionTypes={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},tt.En=/^[0-9 .\\(\\)\\+\\-]+$/,tt.Kn={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},tt.Yn="user_id",tt.lu="custom",tt.lr=997;class te{constructor(){}ef(){}sf(){}Da(t){}static ff(t,e){if(t&&e){if(t=t.toLowerCase(),c(e.nf)){for(let i=0;i<e.nf.length;i++)if(-1!==t.indexOf(e.nf[i].toLowerCase()))return e.identity}else if(-1!==t.indexOf(e.nf.toLowerCase()))return e.identity}}}let ti={rO:"Chrome",eO:"Edge",oO:"Opera",Bg:"Safari",OO:"Firefox"},ts={xg:"Android",io:"iOS",Pg:"Mac",Og:"Windows"};class ta extends te{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.browser=null,this.version=null,this.userAgentData){let t=this.hc();this.browser=t.browser||"Unknown Browser",this.version=t.version||"Unknown Version"}this.OS=null}ef(){return this.browser}sf(){return this.version}Da(t){if(this.OS)return Promise.resolve(this.OS);let e=e=>{for(let i=0;i<t.length;i++){let s=ta.ff(e,t[i]);if(s)return this.OS=s,this.OS}return e};return this.userAgentData.platform?Promise.resolve(e(this.userAgentData.platform)):this.getHighEntropyValues().then(t=>t.platform?e(t.platform):navigator.platform).catch(()=>navigator.platform)}hc(){let t={},e=this.userAgentData.brands;if(e&&e.length)for(let i of e){let e=this.uc(ti),s=i.brand.match(e);if(s&&s.length>0){t.browser=s[0],t.version=i.version;break}}return t}uc(t){let e=[];for(let i in t)e.push(t[i]);return RegExp("("+e.join("|")+")","i")}getHighEntropyValues(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}class tr extends te{constructor(){super(),this.fd=tr.hc(navigator.userAgent||"")}ef(){return this.fd[0]||"Unknown Browser"}sf(){return this.fd[1]||"Unknown Version"}Da(t){for(let e=0;e<t.length;
1e++){let i=t[e].string,s=tr.ff(i,t[e]);if(s)return s===ts.Pg&&navigator.maxTouchPoints>1&&(s=ts.io),Promise.resolve(s)}return Promise.resolve(navigator.platform)}static hc(t){let e,i=t.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(-1!==t.indexOf("(Web0S; Linux/SmartTV)"))return["LG Smart TV",null];if(-1!==t.indexOf("CrKey"))return["Chromecast",null];if(-1!==t.indexOf("BRAVIA")||-1!==t.indexOf("SonyCEBrowser")||-1!==t.indexOf("SonyDTV"))return["Sony Smart TV",null];if(-1!==t.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(t.match(/\b(Roku)\b/))return["Roku",null];if(t.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(i[1]===ti.rO&&null!=(e=t.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/)))return(e=e.slice(1))[0]=e[0].replace("OPR",ti.oO),e[0]=e[0].replace("EdgA",ti.eO),"Edg"===e[0]&&(e[0]=ti.eO),[e[0],e[1]];if(i[1]===ti.Bg&&null!=(e=t.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/)))return(e=e.slice(1))[0]=e[0].replace("EdgiOS",ti.eO),[e[0],e[1]];if((i=i[2]?[i[1],i[2]]:[null,null])[0]===ti.Bg&&null!=(e=t.match(/version\/(\.?\d+(\.\d+)*)/i))&&i.splice(1,1,e[1]),null!=(e=t.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&i.splice(1,1,e[2]),i[0]===ti.oO&&null!=(e=t.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",e[1]||""];if(i[0]){let t=i[0].toLowerCase();"crios"===t&&(i[0]=ti.rO),"tizen"===t&&(i[0]="Samsung Smart TV",i[1]=null),"samsungbrowser"===t&&(i[0]="Samsung Browser")}return i}}class tn{constructor(){let t=navigator.userAgentData?ta:tr;this.Sg=new t,this.userAgent=navigator.userAgent,this.browser=this.Sg.ef(),this.version=this.Sg.sf(),this.OS=null,this.Da().then(t=>this.OS=t);let e=navigator;this.language=(e.userLanguage||e.language||e.browserLanguage||e.systemLanguage||"").toLowerCase(),this.Qo=tn.vg(this.userAgent)}IE(){return this.browser===ti.Bg}Ca(){return this.OS||null}Da(){return this.OS?Promise.resolve(this.OS):this.Sg.Da(tn.kg).then(t=>(this.OS=t,t))}static vg(t){t=t.toLowerCase();let e=["googlebot","bingbot","slurp","duckduckbot","baiduspider","yandex","facebookexternalhit","sogou","ia_archiver","https://github.com/prerender/prerender","aolbuild","bingpreview","msnbot","adsbot","mediapartners-google","teoma","taiko"];for(let i=0;i<e.length;i++)if(-1!==t.indexOf(e[i]))return!0;return!1}}tn.kg=[{string:navigator.platform,nf:"Win",identity:ts.Og},{string:navigator.platform,nf:"Mac",identity:ts.Pg},{string:navigator.platform,nf:"BlackBerry",identity:"BlackBerry"},{string:navigator.platform,nf:"FreeBSD",identity:"FreeBSD"},{string:navigator.platform,nf:"OpenBSD",identity:"OpenBSD"},{string:navigator.platform,nf:"Nintendo",identity:"Nintendo"},{string:navigator.platform,nf:"SunOS",identity:"SunOS"},{string:navigator.platform,nf:"PlayStation",identity:"PlayStation"},{string:navigator.platform,nf:"X11",identity:"X11"},{string:navigator.userAgent,nf:["iPhone","iPad","iPod"],identity:ts.io},{string:navigator.platform,nf:"Pike v",identity:ts.io},{string:navigator.userAgent,nf:["Web0S"],identity:"WebOS"},{string:navigator.platform,nf:["Linux armv7l","Android"],identity:ts.xg},{string:navigator.userAgent,nf:["Android"],identity:ts.xg},{string:navigator.platform,nf:"Linux",identity:"Linux"}];let to=new tn,tl={iu:{su:"ab.storage.userId",Uo:"ab.storage.deviceId",El:"ab.storage.sessionId"},C:{ec:"ab.test",tE:"ab.storage.events",eE:"ab.storage.attributes",sE:"ab.storage.attributes.anonymous_user",Fa:"ab.storage.device",Jh:"ab.storage.sdk_metadata",Qh:"ab.storage.session_id_for_cached_metadata",In:"ab.storage.pushToken",Ai:"ab.storage.newsFeed",Bi:"ab.storage.lastNewsFeedRefresh",J:"ab.storage.cardImpressions",ul:"ab.storage.serverConfig",rE:"ab.storage.triggers",oE:"ab.storage.triggers.ts",Nl:"ab.storage.messagingSessionStart",bs:"ab.storage.cc",js:"ab.storage.ccLastFullSync",Rs:"ab.storage.ccLastCardUpdated",nE:"ab.storage.ccRateLimitCurrentTokenCount",Ru:"ab.storage.globalRateLimitCurrentTokenCount",bu:"ab.storage.dynamicRateLimitCurrentTokenCount",v:"ab.storage.ccClicks",H:"ab.storage.ccImpressions",A:"ab.storage.ccDismissals",aE:"ab.storage.lastDisplayedTriggerTimesById",iE:"ab.storage.lastDisplayedTriggerTime",EE:"ab.storage.triggerFireInstancesById",wh:"ab.storage.signature",xs:"ab.storage.brazeSyncRetryCount",Us:"ab.storage.sdkVersion",vi:"ab.storage.ff",wi:"ab.storage.ffImpressions",zi:"ab.storage.ff
1LastRefreshAt",Si:"ab.storage.ff.sessionId",lE:"ab.storage.lastReqToEndpoint",SE:"ab.storage.requestAttempts",Xr:"ab.storage.deferredIam",du:"ab.storage.lastSdkReq",_E:"ab.storage.alias"},se:"ab.optOut"};class tu{constructor(t,e){this.uE=t,this.TE=e,this.uE=t,this.TE=e}Vh(t){let e=b(tl.iu),i=new tu.ee(t);for(let t of e)i.remove(tl.iu[t])}uu(t,e){let i=null;null!=e&&e instanceof U&&(i=e.Y()),this.uE.store(t,i)}cE(t){let e=this.tu(t);null!=e&&(e.Wl=new Date().valueOf(),this.uu(t,e))}tu(t){let e,i=this.uE.br(t),s=(t=>{let e;try{e=JSON.parse(t)}catch(t){e=null}return e})(i);if(s)(e=U.qn(s)||null)&&this.uu(t,e);else{let s=U.hE(i);e=U.qn(s)||null,s!==i&&e&&this.uu(t,e)}return e}Al(t){this.uE.remove(t)}Kh(){let t;for(let e of b(tl.iu))null!=(t=this.tu(tl.iu[e]))&&this.uu(tl.iu[e],t)}zo(t){let e;if(null==t||0===t.length)return!1;e=c(t)?t:[t];let i=this.TE.br(tl.C.tE);null!=i&&c(i)||(i=[]);for(let t=0;t<e.length;t++)i.push(e[t].Y());return this.TE.store(tl.C.tE,i)}kl(t){return null!=t&&this.zo([t])}AE(){let t=this.TE.br(tl.C.tE);this.TE.remove(tl.C.tE),null==t&&(t=[]);let e=[],i=!1,s=null;if(c(t))for(let i=0;i<t.length;i++)P.RE(t[i])?e.push(P.qn(t[i])):s=i;else i=!0;if(i||null!=s){let r="Stored events could not be deserialized as Events";i&&(r+=", was "+Object.prototype.toString.call(t)+" not an array"),null!=s&&(r+=", value at index "+s+" does not look like an event"),r+=", serialized values were of type "+typeof t+": "+JSON.stringify(t),e.push(new P(null,a.Ls,new Date().valueOf(),null,{e:r}))}return e}I(t,e){return!!h(tl.C,t,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&this.TE.store(t,e)}j(t){return!!h(tl.C,t,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")&&this.TE.br(t)}ii(t){return!!h(tl.C,t,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&(this.TE.remove(t),!0)}clearData(){let t=b(tl.iu),e=b(tl.C);for(let e=0;e<t.length;e++){let i=t[e];this.uE.remove(tl.iu[i])}for(let t=0;t<e.length;t++){let i=e[t];this.TE.remove(tl.C[i])}}gE(t){return t||tl.C.sE}Pa(t){let e=this.TE.br(tl.C.eE);null==e&&(e={});let i=this.gE(t[tt.Yn]),s=e[i];for(let a in t)a!==tt.Yn&&(null==e[i]||s&&null==s[a])&&this.mu(t[tt.Yn],a,t[a])}mu(t,e,i){let s=this.TE.br(tl.C.eE);null==s&&(s={});let a=this.gE(t),r=s[a];if(null==r&&(r={},null!=t&&(r[tt.Yn]=t)),e===tt.lu)for(let t in null==r[e]&&(r[e]={}),i)r[e][t]=i[t];else r[e]=i;return s[a]=r,this.TE.store(tl.C.eE,s)}OE(){let t=this.TE.br(tl.C.eE);this.TE.remove(tl.C.eE);let e=[];for(let i in t)null!=t[i]&&e.push(t[i]);return e}ru(t){let e=this.TE.br(tl.C.eE);if(null!=e){let i=this.gE(null),s=e[i];null!=s&&(e[i]=void 0,this.TE.store(tl.C.eE,e),s[tt.Yn]=t,this.Pa(s))}let i=this.tu(tl.iu.El),s=null;null!=i&&(s=i.eu);let a=this.AE();if(null!=a)for(let e=0;e<a.length;e++){let i=a[e];null==i.userId&&i.sessionId==s&&(i.userId=t),this.kl(i)}}dE(){return this.TE.fE}}tu.rc=class{constructor(t){this.rn=t,this.rn=t,this.fE=to.IE()?3:10}bE(t){return t+"."+this.rn}store(t,e){try{return localStorage.setItem(this.bE(t),JSON.stringify({v:e})),!0}catch(t){return i.info("Storage failure: "+z(t)),!1}}br(t){try{let e=null,i=localStorage.getItem(this.bE(t));return null!=i&&(e=JSON.parse(i)),null==e?null:e.v}catch(t){return i.info("Storage retrieval failure: "+z(t)),null}}remove(t){try{localStorage.removeItem(this.bE(t))}catch(t){return i.info("Storage removal failure: "+z(t)),!1}}},tu.ac=class{constructor(){this.mE={},this.KE=5242880,this.fE=3}store(t,e){let s=this.YE(e);return s>this.KE?(i.info("Storage failure: object is â"+s+" bytes which is greater than the max of "+this.KE),!1):(this.mE[t]={value:e},!0)}YE(t){let e=[],i=[t],s=0;for(;i.length;){let t=i.pop();if("boolean"==typeof t)s+=4;else if("string"==typeof t)s+=2*t.length;else if("number"==typeof t)s+=8;else if("object"==typeof t&&-1===e.indexOf(t))for(let s in e.push(t),t)i.push(t[s])}return s}br(t){let e=this.mE[t];return null==e?null:e.value}remove(t){this.mE[t]=null}},tu.ee=class{constructor(t,e){this.rn=t,this.NE=e,this.rn=t,this.CE=this.GE(),this.DE=576e3,this.NE=!!e}bE(t){return null!=this.rn?t+"."+this.rn:t}GE(){let t=0,e=document.location.hostname,i=e.split("."),s="ab._gd";
1for(;t<i.length-1&&-1===document.cookie.indexOf(s+"="+s);)t++,e="."+i.slice(-1-t).join("."),document.cookie=s+"="+s+";domain="+e+";";return document.cookie=s+"=;expires="+new Date(0).toUTCString()+";domain="+e+";",e}ne(){let t=new Date;return t.setTime(t.getTime()+60*this.DE*1e3),t.getFullYear()}ME(){let t=u(tl.iu),e=document.cookie.split(";");for(let i=0;i<e.length;i++){let s=e[i];for(;" "===s.charAt(0);)s=s.substring(1);let a=!1;for(let e=0;e<t.length;e++)if(0===s.indexOf(t[e])){a=!0;break}if(a){let t=s.split("=")[0];-1===t.indexOf("."+this.rn)&&this.pE(t)}}}store(t,e){let s;this.ME();let a=new Date;a.setTime(a.getTime()+60*this.DE*1e3);let r="expires="+a.toUTCString(),n="domain="+this.CE;s=this.NE?e:encodeURIComponent(e);let o=this.bE(t)+"="+s+";"+r+";"+n+";path=/";return o.length>=4093?(i.info("Storage failure: string is "+o.length+" chars which is too large to store as a cookie."),!1):(document.cookie=o,!0)}br(t){let e=[],s=this.bE(t)+"=",a=document.cookie.split(";");for(let r=0;r<a.length;r++){let n=a[r];for(;" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(s))try{let t;t=this.NE?n.substring(s.length,n.length):decodeURIComponent(n.substring(s.length,n.length)),e.push(t)}catch(e){return i.info("Storage retrieval failure: "+z(e)),this.remove(t),null}}return e.length>0?e[e.length-1]:null}remove(t){this.pE(this.bE(t))}pE(t){let e=t+"=;expires="+new Date(0).toUTCString();document.cookie=e,document.cookie=e+";path=/";let i=e+";domain="+this.CE;document.cookie=i,document.cookie=i+";path=/"}},tu.tc=class{constructor(t,e,i){this.rn=t,this.vE=[],e&&this.vE.push(new tu.ee(t)),i&&this.vE.push(new tu.rc(t)),this.vE.push(new tu.ac)}store(t,e){let i=!0;for(let s=0;s<this.vE.length;s++)i=this.vE[s].store(t,e)&&i;return i}br(t){for(let e=0;e<this.vE.length;e++){let i=this.vE[e].br(t);if(null!=i)return i}return null}remove(t){new tu.ee(this.rn).remove(t);for(let e=0;e<this.vE.length;e++)this.vE[e].remove(t)}};class th{constructor(t,e,i){this.u=t,this.Jn=e,this.Qn=i,this.u=t,this.Jn=e||!1,this.Qn=i,this.Xn=new A,this.Zn=0,this.gh=1}Fh(){return this.Jn}kh(){return this.u.j(tl.C.wh)}setSdkAuthenticationSignature(t){let e=this.kh();this.u.I(tl.C.wh,t);let s=o.ts.Zt;new o(s,i).setItem(s.hs.jh,this.gh,t),e!==t&&this.Vs()}xh(){this.u.ii(tl.C.wh);let t=o.ts.Zt;new o(t,i).re(t.hs.jh,this.gh)}subscribeToSdkAuthenticationFailures(t){return this.Qn.Nt(t)}qh(t){this.Qn.Rt(t)}yh(){this.Xn.removeAllSubscriptions()}Bh(){this.Zn+=1}Gh(){return this.Zn}Vs(){this.Zn=0}}class tc{constructor(){}Ss(t){}changeUser(t=!1){}clearData(t=!1){}}class td{constructor(t){this.id=t,this.id=t}Mr(){let t={};return null!=this.browser&&(t.browser=this.browser),null!=this.Ta&&(t.browser_version=this.Ta),null!=this.os&&(t.os_version=this.os),null!=this.resolution&&(t.resolution=this.resolution),null!=this.language&&(t.locale=this.language),null!=this.timeZone&&(t.time_zone=this.timeZone),null!=this.userAgent&&(t.user_agent=this.userAgent),t}}var tp={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"};class tb{constructor(t,e){this.u=t,this.Ia=e,this.u=t,null==e&&(e=u(tp)),this.Ia=e}ce(t=!0){let e=this.u.tu(tl.iu.Uo);null==e&&(e=new U(n.W()),t&&this.u.uu(tl.iu.Uo,e));let i=new td(e.eu);for(let t=0;t<this.Ia.length;t++)switch(this.Ia[t]){case tp.BROWSER:i.browser=to.browser;break;case tp.BROWSER_VERSION:i.Ta=to.version;break;case tp.OS:i.os=this.Da();break;case tp.RESOLUTION:i.Sa=screen.width+"x"+screen.height;break;case tp.LANGUAGE:i.language=to.language;break;case tp.TIME_ZONE:i.timeZone=this.Oa(new Date);break;case tp.USER_AGENT:i.userAgent=to.userAgent}return i}Da(){if(to.Ca())return to.Ca();let t=this.u.j(tl.C.Fa);return t&&t.os_version?t.os_version:to.Da()}Oa(t){let e=!1;if("undefined"!=typeof Intl&&"function"==typeof Intl.DateTimeFormat)try{if("function"==typeof Intl.DateTimeFormat().resolvedOptions){let t=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=t&&""!==t)return t}}catch(t){i.info("Intl.DateTimeFormat threw an error, cannot detect user's time zone:"+z(t)),e=!0}if(e)return"";let s=t.getTimezoneOffset();return this.Ga(s)}Ga(t){let e=Math.trunc(t/60),i=Math.trunc(t%60),s="GMT";return 0!==t&&(s+=(t<0?"+":"-")+(("00"+Math.abs(e)).slice(-2)+":")+("00"+Math.abs(i)).slice(-2)),s}}var tf={Na:"invalid_api_key",Xa:"blacklisted",$a:"no_device_identifier",Ba:"invalid_json_response",Ra:"empty_response"};let tm={_s:{Ka:"data",Xs:"content_cards/sync",Ri:"feature_flags/sync",Tr:"template"},ku:t=>null==t?void 0:t.j(tl.C.lE),sm:t=>null==t?void 0:t.j(tl.C.SE),nm:(t,e)=>{null==t||t.I(tl.C.lE,e)},um:(t,e)=>{null==t||t.I(tl.C.SE,e)},Wa:(t,e)=>{if(!t||!e)return -1;let i=tm.ku(t);if(null==i)return -1;let s=i[e];return null==s||isNaN(s)?-1:s},Ya:(t,e)=>{let i=1;if(!t||!e)return i;let s=tm.sm(t);return null==s?i:null==(i=s[e])||isNaN(i)?1:i},Hs:(t,e,i)=>{if(!t||!e)return;let s=tm.ku(t);null==s&&(s={}),s[e]=i,tm.nm(t,s)}
1,Ws:(t,e,i)=>{if(!t||!e)return;let s=tm.sm(t);null==s&&(s={}),s[e]=i,tm.um(t,s)},ti:(t,e)=>{if(!t||!e)return;let i=tm.Ya(t,e);tm.Ws(t,e,i+1)}};class tg{constructor(t,e,i,s,a,r,n,o,l,u,h,c){this.on=t,this.u=e,this.Ko=i,this.yt=s,this.oi=a,this.qt=r,this.rn=n,this.Go=o,this.Bo=l,this.Vo=u,this.appVersion=h,this.Xh=c,this.Hh=t=>null==t?"":`${t} `,this.on=t,this.u=e,this.Ko=i,this.yt=s,this.oi=a,this.qt=r,this.rn=n,this.Go=o,this.Bo=l,this.Vo=u,this.appVersion=h,this.Xh=c,this.Yh=["npm"]}$s(t,e=!1,i=!1){let s=this.on.ce(!i),a=s.Mr();f(this.u.j(tl.C.Fa),a)||(t.device=a),t.api_key=this.rn,t.time=m(new Date().valueOf(),!0);let r=this.u.j(tl.C.Jh)||[],n=this.u.j(tl.C.Qh)||"";if(this.Yh.length>0&&(!f(r,this.Yh)||n!==this.oi.xi())&&(t.sdk_metadata=this.Yh),t.sdk_version=this.Bo,this.Vo&&(t.sdk_flavor=this.Vo),t.app_version=this.appVersion,t.app_version_code=this.Xh,t.device_id=s.id,e){let e=this.yt.getUserId();null!=e&&(t.user_id=e)}if(!t.user_id&&!this.Ko.Fh()){let e=D(this.u);e&&(t.alias=e)}return t}Qs(t,e,s){let r=e.auth_error,n=e.error;if(!r&&!n)return!0;if(r){let e;this.Ko.Bh();let a={errorCode:r.error_code};for(let t of s)c(t)&&"X-Braze-Auth-Signature"===t[0]&&(a.signature=t[1]);t.respond_with&&t.respond_with.user_id?a.userId=t.respond_with.user_id:t.user_id&&(a.userId=t.user_id);let n=r.reason;return n?(a.reason=n,e=`due to ${n}`):e=`with error code ${r.error_code}.`,this.Ko.Fh()||(e+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),i.error(`SDK Authentication failed ${e}`),this.Zh(t.events||[],t.attributes||[]),this.Ko.qh(a),!1}if(n){let s,r=n;switch(r){case tf.Ra:return s="Received successful response with empty body.",e_.q(a.Ls,{e:s}),i.info(s),!1;case tf.Ba:return s="Received successful response with invalid JSON",e_.q(a.Ls,{e:s+": "+e.response}),i.info(s),!1;case tf.Na:r=`The API key "${t.api_key}" is invalid for the baseUrl ${this.Go}`;break;case tf.Xa:r="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case tf.$a:r="No device identifier. Please contact [email protected]"}i.error("Backend error: "+r)}return!1}La(t,e,i,s){return!!(t&&0!==t.length||e&&0!==e.length||i||s)}Ea(t,e,i,s,a=!1){let r=[],n=t=>t||"",o=n(this.yt.getUserId()),l=this.Ir(t,e),u=[],h=[],c,d=null;if(i.length>0){let t=[];for(let e of i){if(c=e.Mr(),this.Ko.Fh()){if(o&&!c.user_id){d||(d={}),d.events||(d.events=[]),d.events.push(c);continue}if(n(c.user_id)!==o){h.push(c);continue}}t.push(c)}t.length>0&&(l.events=t)}if(s.length>0){let t=[];for(let e of s)e&&(this.Ko.Fh()&&n(e.user_id)!==o?u.push(e):t.push(e));t.length>0&&(l.attributes=t)}if(this.Zh(h,u),l=this.$s(l,!0,a),d){let t={requestData:d=this.$s(d,!1,a),headers:this.Ps(d,tm._s.Ka)};r.push(t)}if(l&&!this.La(l.events,l.attributes,t,e))return d?r:null;let p={requestData:l,headers:this.Ps(l,tm._s.Ka)};return r.push(p),r}Zh(t,e){if(t){let e=[];for(let i of t){let t=P.fromJson(i);t.time=1e3*t.time,e.push(t)}this.u.zo(e)}if(e)for(let t of e)this.u.Pa(t)}Ys(t,e){let s="HTTP error ";null!=t&&(s+=t+" "),s+=e,i.error(s)}qr(t){return e_.q(a.Ua,{n:t})}Ir(t,e,i){let s={};t&&(s.feed=!0),e&&(s.triggers=!0);let a=null!=i?i:this.yt.getUserId();if(a&&(s.user_id=a),!s.user_id&&!this.Ko.Fh()){let t=D(this.u);t&&(s.alias=t)}return s.config={config_time:this.qt.hi()},{respond_with:s}}Ha(t){let e=new Date().valueOf(),i="7200000",s=tm.Wa(this.u,t);return -1!==s&&(i=(e-s).toString()),i}Ps(t,e,i=!1){let s=[["X-Braze-Api-Key",this.rn]],a=this.Ha(e);s.push(["X-Braze-Last-Req-Ms-Ago",a]);let r=tm.Ya(this.u,e).toString();s.push(["X-Braze-Req-Attempt",r]);let n=!1;if(null!=t.respond_with&&t.respond_with.triggers&&(s.push(["X-Braze-TriggersRequest","true"]),n=!0),null!=t.respond_with&&t.respond_with.feed&&(s.push(["X-Braze-FeedRequest","true"]),n=!0),e===tm._s.Xs){s.push(["X-Braze-ContentCardsRequest","true"]);let t=this.u.j(tl.C.xs);t&&i||(t=0,this.u.I(tl.C.xs,t)),s.push(["BRAZE-SYNC-RETRY-COUNT",t.toString()]),n=!0}if(e===tm._s.Ri&&(s.push(["X-Braze-FeatureFlagsRequest","true"]),n=!0),n&&s.push(["X-Braze-DataRequest","true"]),this.Ko.Fh()){let t=this.Ko.kh();null!=t&&s.push(["X-Braze-Auth-Signature",t])}return s}Ja(t,e,s,a){window.setTimeout(()=>{i.info(`Retrying rate limited ${this.Hh(a)}SDK request.`),this.Gs(e,s,a)},t)}Gs(t,e,s,a){if(!this.Qa(s))return i.info(`${this.Hh(s)}SDK request being rate limited.`),void("function"==typeof a&&a());let r=this.Va();if(!r.Za)return i.info(`${this.Hh(s)}SDK request being rate limited. Request will be retried in ${Math.trunc(r.au/1e3)} seconds.`),void this.Ja(r.au,t,e,s);this.u.I(tl.C.du,new Date().valueOf());let n=t.device;n&&n.os_version instanceof Promise?n.os_version.then(i=>{t.device.os_version=i,e(r.fu)}):e(r.fu)}vu(t){var e;null==(e=this.u)||e.I(tl.C.Ru,t)}gu(t,e){let i=this.pu();null==i&&(i={}),i[t]=e,this.u.I(tl.C.bu,i)}qu(){var t;return null==(t=this.u)?void 0:t.j(tl.C.Ru)}pu(){var t;return null==(t=this.u)?void 0:t.j(tl.C.bu)}Au(t,e,i,s,a=""){let r;if(a){let t=this.pu();r=null==t||isNaN(t[a])?e:t[a]}else(null==(r=this.qu())||isNaN(r))&&(r=e);return Math.min(r+(t-s)/1e3/i,e)}Du(t,e){return Math.max(0,(1-t)*e*1e3)}Tu(t,e=""){var i,s,a,r,n;let o={Za:!0,fu:-1,au:0};if(null==t&&(t=!0),!t&&!e)return o;let l,u,h=null;if(t)h=null==(i=this.u)?void 0:i.j(tl.C.du);else{let t=tm.ku(this.u);if(null==t||null==t[e])return o;h=t[e]}if(null==h||isNaN(h)||(t?(l=(null==(s=this.qt)?void 0:s.Cu())||-1,u=(null==(a=this.qt)?void 0:a.Su())||-1):(l=(null==(r=this.qt)?void 0:r.Bu(e))||-1,u=(null==(n=this.qt)?void 0:n.wu(e))||-1),-1===l||-1===u))return o;let c=new Date().valueOf(),d=this.Au(c,l,u,h,e);return d<1?(o.Za=!1,o.au=this.Du(d,u)):(o.fu=d=Math.trunc(d)-1,t?this.vu(d):this.gu(e,d)),o}Va(){return this.Tu(!0)}Qa(t){let e=this.Tu(!1,t);return!(e&&!e.Za)}Vs(){this.Ko.Vs()}Os(){return this.Go}addSdkMetadata(t){for(let e of t)-1===this.Yh.indexOf(e)&&this.Yh.push(e)}}let tv={Ks:t=>{let e,s;try{let a=!1;if(window.XMLHttpRequest&&(a=!0),!a)return void i.error("This browser does not have any supp
1orted ajax options!");e=new XMLHttpRequest;let r=()=>{"function"==typeof t.error&&t.error(e.status),"function"==typeof t.Zs&&t.Zs(!1)};for(let i of(e.onload=()=>{if(4===e.readyState)if(e.status>=200&&e.status<300||304===e.status){if("function"==typeof t.L){let i,s;try{i=JSON.parse(e.responseText),s=e.getAllResponseHeaders()}catch(a){let i={error:""===e.responseText?tf.Ra:tf.Ba,response:e.responseText};(0,t.L)(i,s)}i&&t.L(i,s)}"function"==typeof t.Zs&&t.Zs(!0)}else r()},e.onerror=()=>{r()},e.ontimeout=()=>{r()},s=JSON.stringify(t.data),e.open("POST",t.url,!0),e.setRequestHeader("Content-type","application/json"),e.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.headers||[]))e.setRequestHeader(i[0],i[1]);e.send(s)}catch(t){i.error(`Network request error: ${z(t)}`)}}},tw=(t,e)=>(t=Math.ceil(t),Math.floor(Math.random()*((e=Math.floor(e))-t+1))+t);class ty{constructor(t=!1,e=[]){this.L=t,this.ge=e,this.L=t,this.ge=e}P(t){this.L=this.L&&t.L,this.ge.push(...t.ge)}}let tx={pn:()=>"serviceWorker"in navigator&&"undefined"!=typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,yn:()=>"safari"in window&&"pushNotification"in window.safari&&"function"==typeof window.safari.pushNotification.permission&&"function"==typeof window.safari.pushNotification.requestPermission,isPushSupported:()=>tx.pn()||tx.yn(),isPushBlocked:()=>{let t=tx.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,e=tx.isPushSupported()&&(!("Notification"in window)||null==window.Notification);return t||e},isPushPermissionGranted:()=>tx.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission,Wi:()=>!tx.isPushBlocked()&&tx.isPushSupported()&&!tx.isPushPermissionGranted()};class tE{constructor(t,e,i,s,a,r,n,o,l,u){this.rn=t,this.baseUrl=e,this.oi=i,this.on=s,this.yt=a,this.qt=r,this.u=n,this.yu=o,this.Ko=l,this.$t=u,this.rn=t,this.baseUrl=e,this.ju=0,this.fE=n.dE()||0,this.$u=null,this.oi=i,this.on=s,this.yt=a,this.qt=r,this.u=n,this.Ko=l,this.$t=u,this.yu=o,this.Fu=new A,this.Lu=null,this.Mu=50,this.Pu=!1}xu(t,e){return!t&&!e&&this.Ko.Gh()>=this.Mu}Iu(t){let e=this.oi.Gl();if(t.length>0){let i=this.yt.getUserId();for(let s of t){let t=!s.userId&&!i||s.userId===i;s.type===a.ql&&t&&(e=!0)}}return e}Nu(t=!1,e=!1,s=!0,a,r,n,o=!1,l=!1){s&&this.Ou();let u=this.u.AE(),h=this.u.OE(),c=!1,d=(t,e,i=-1)=>{let o=!1,l=new Date().valueOf();tm.Hs(this.u,tm._s.Ka,l),-1!==i&&e.push(["X-Braze-Req-Tokens-Remaining",i.toString()]),tv.Ks({url:this.baseUrl+"/data/",data:t,headers:e,L:i=>{null!=t.respond_with&&t.respond_with.triggers&&(this.ju=Math.max(this.ju-1,0)),this.$t.Qs(t,i,e)?(this.Ko.Vs(),this.qt.al(i),null!=t.respond_with&&t.respond_with.user_id!=this.yt.getUserId()||(null!=t.device&&this.u.I(tl.C.Fa,t.device),null!=t.sdk_metadata&&(this.u.I(tl.C.Jh,t.sdk_metadata),this.u.I(tl.C.Qh,this.oi.xi())),this.yu(i),tm.Ws(this.u,tm._s.Ka,1),"function"==typeof a&&a())):i.auth_error&&(o=!0)},error:()=>{null!=t.respond_with&&t.respond_with.triggers&&(this.ju=Math.max(this.ju-1,0)),this.$t.Zh(t.events,t.attributes),"function"==typeof r&&r()},Zs:t=>{if("function"==typeof n&&n(t),s&&!c){if(t&&!o)this.zu();else{tm.ti(this.u,tm._s.Ka);let t=this.$u;(null==t||t<1e3*this.fE)&&(t=1e3*this.fE),this.zu(Math.min(3e5,tw(1e3*this.fE,3*t)))}c=!0}}})},p=this.Iu(u),b=e||p;if(this.xu(o,p))return void i.info("Declining to flush data due to 50 consecutive authentication failures");if(s&&!this.$t.La(u,h,t,b))return this.zu(),void("function"==typeof n&&n(!0));let f=this.$t.Ea(t,b,u,h,l);b&&this.ju++;let m=!1;if(f)for(let t of f)this.$t.Gs(t.requestData,e=>d(t.requestData,t.headers,e),tm._s.Ka,r),m=!0;this.Ko.Fh()&&s&&!m?this.zu():p&&(i.info("Invoking new session subscriptions"),this.Fu.Rt())}Uu(){return this.ju>0}zu(t=1e3*this.fE){this.Pu||(this.Ou(),this.Lu=window.setTimeout(()=>{if(document.hidden){let t="visibilitychange",e=()=>{document.hidden||(document.removeEventListener(t,e,!1),this.Nu())};document.addEventListener(t,e,!1)}else this.Nu()},t),this.$u=t)}
1Ou(){null!=this.Lu&&(clearTimeout(this.Lu),this.Lu=null)}initialize(){this.Pu=!1,this.zu()}destroy(){this.Fu.removeAllSubscriptions(),this.Ko.yh(),this.Ou(),this.Pu=!0,this.Nu(void 0,void 0,!1,void 0,void 0,void 0,void 0,!0),this.Lu=null}mr(t){return this.Fu.Nt(t)}openSession(){let t=this.oi.xi()!==this.oi.xo();t&&(this.u.cE(tl.iu.Uo),this.u.cE(tl.iu.su)),this.Nu(void 0,!1,void 0,()=>{this.u.ii(tl.C.wi)}),this.Mn(),t&&Promise.resolve().then(function(){return ip}).then(t=>{if(this.Pu)return;let e=t.default.m();if(null!=e&&(tx.isPushPermissionGranted()||tx.isPushBlocked())){let t=()=>{e.mn()?i.info("Push token maintenance is disabled, not refreshing token for backend."):e.subscribe()},s=()=>{let e=this.u.j(tl.C.In);(null==e||e)&&t()},a=o.ts.Zt;new o(a,i).jr(a.hs.cu,(e,i)=>{i&&t()},s)}})}_u(){this.u.ii(tl.C.vi),this.u.ii(tl.C.bs),this.u.ii(tl.C.Xr)}changeUser(t,e,s){let a=this.yt.getUserId();if(a!==t){this.oi.yl(),this._u(),null!=a&&this.Nu(void 0,!1,void 0,void 0,void 0),this.yt.ou(t),s?this.Ko.setSdkAuthenticationSignature(s):this.Ko.xh();for(let t=0;t<e.length;t++)e[t].changeUser(null==a);null!=a&&this.u.ii(tl.C.J),this.u.ii(tl.C.Fa),this.u.ii(tl.C.nE),this.u.ii(tl.C._E),this.openSession(),i.info('Changed user to "'+t+'".')}else{let e="Doing nothing.";s&&this.Ko.kh()!==s&&(this.Ko.setSdkAuthenticationSignature(s),e="Updated SDK authentication signature"),i.info(`Current user is already ${t}. ${e}`)}}requestImmediateDataFlush(t){this.Ou(),this.oi.xo(),this.Nu(void 0,void 0,void 0,void 0,()=>{i.error("Failed to flush data, request will be retried automatically.")},t,!0)}requestFeedRefresh(){this.oi.xo(),this.Nu(!0)}$r(t,e){this.oi.xo(),i.info("Requesting explicit trigger refresh."),this.Nu(void 0,!0,void 0,t,e)}Cn(t,e){let s=a.Eu,r={a:t,l:e},n=e_.q(s,r);return n&&(i.info(`Logged alias ${t} with label ${e}`),this.u.I(tl.C._E,r)),n}Fn(t,e,s){if(this.qt.hu(e))return i.info(`Custom Attribute "${e}" is blocklisted, ignoring.`),new ty;let a=e_.q(t,{key:e,value:s});if(a){let t="object"==typeof s?JSON.stringify(s,null,2):s;i.info(`Logged custom attribute: ${e} with value: ${t}`)}return a}setLastKnownLocation(t,e,s,r,n,o){let l={latitude:e,longitude:s};null!=r&&(l.altitude=r),null!=n&&(l.ll_accuracy=n),null!=o&&(l.alt_accuracy=o);let u=e_.q(a.Ju,l,t||void 0);return u&&i.info(`Set user last known location as ${JSON.stringify(l,null,2)}`),u}kr(t,e){let i=this.oi.xo();return new P(this.yt.getUserId(),a.Ku,t,i,{cid:e})}Wu(t,e){return new o(t,e)}Mn(){let t=o.ts.Zt;this.Wu(t,i).setItem(t.hs.Ka,1,{baseUrl:this.baseUrl,data:{api_key:this.rn,device_id:this.on.ce().id},userId:this.yt.getUserId(),sdkAuthEnabled:this.Ko.Fh()})}yr(t){for(let e of t)if(e.api_key===this.rn)this.$t.Zh(e.events,e.attributes);else{let t=o.ts.Zt;new o(t,i).setItem(t.hs.wr,n.W(),e)}}Gn(t,e,s){let r,n;return this.qt.hu(t)?(i.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new ty):(null===e&&null===s?(r=a.Gu,n={key:t}):(r=a.Xu,n={key:t,latitude:e,longitude:s}),e_.q(r,n))}Hn(t,e){return e_.q(a.Hu,{group_id:t,status:e})}}class tS{constructor(t=0,e=[],i=[],s=[],a=null,r=null,n={enabled:!1},o={enabled:!1,refresh_rate_limit:void 0},l={enabled:!0,capacity:30,refill_rate:30,endpoint_overrides:{}}){this.hl=t,this.gl=e,this.fl=i,this.bl=s,this.Rl=a,this.cl=r,this.ml=n,this.ai=o,this.ol=l,this.hl=t,this.gl=e,this.fl=i,this.bl=s,this.Rl=a,this.cl=r,this.ml=n,this.ai=o,this.ol=l}Y(){return{s:"5.5.0",l:this.hl,e:this.gl,a:this.fl,p:this.bl,m:this.Rl,v:this.cl,c:this.ml,f:this.ai,grl:this.ol}}static qn(t){let e=t.l;return"5.5.0"!==t.s&&(e=0),new tS(e,t.e,t.a,t.p,t.m,t.v,t.c,t.f,t.grl)}}class tk{constructor(t){this.u=t,this.u=t,this.tl=new A,this.el=new A,this.il=new A,this.sl=null,this.rl=null}ll(){if(null==this.rl){let t=this.u.j(tl.C.ul);this.rl=null!=t?tS.qn(t):new tS}return this.rl}hi(){return this.ll().hl}al(t){if(null!=t&&null!=t.config){let e=t.config;if(e.time>this.ll().hl){let t=t=>null==t?this.ll().ol:t,i=new tS(e.time,e.events_blacklist,e.attributes_blacklist,e.purchases_blacklist,e.messaging_session_timeout,e.vapid_public_key,e.content_cards,e.feature_flags,t(e.global_request_rate_limit)),s=!1;null!=i.cl&&this.Wn()!==i.cl&&(s=!0);let a=!1;null!=i.ml.enabled&&this.ei()!==i.ml.enabled&&(a=!0);let r=!1;null!=i.ai.enabled&&this.mi()!==i.ai.enabled&&(r=!0),this.rl=i,this.u.I(tl.C.ul,i.Y()),s&&this.tl.Rt(),a&&this.el.Rt(),r&&this.il.Rt()}}}_n(t){let e=this.tl.Nt(t);return this.sl&&this.tl.removeSubscription(this.sl),this.sl=e,e}Ms(t){return this.el.Nt(t)}bi(t){return this.il.Nt(t)}me(t){return -1!==this.ll().gl.indexOf(t)}hu(t){return -1!==this.ll().fl.indexOf(t)}Dr(t){return -1!==this.ll().bl.indexOf(t)}dl(){return this.ll().Rl}Wn(){return this.ll().cl}ei(){return this.ll().ml.enabled||!1}Cl(){let t=this.ll().ol;return!(!t||null==t.enabled)&&t.enabled}Cu(){if(!this.Cl())return -1;let t=this.ll().ol;return null==t.capacity||t.capacity<10?-1:t.capacity}Su(){if(!this.Cl())return -1;let t=this.ll().ol;return null==t.refill_rate||t.refill_rate<=0?-1:t.refill_rate}vl(t){let e=this.ll().ol.endpoint_overrides;return null==e?null:e[t]}Bu(t){let e=this.vl(t);return null==e||isNaN(e.capacity)||e.capacity<=0?-1:e.capacity}wu(t){let e=this.vl(t);return null==e||isNaN(e.refill_rate)||e.refill_rate<=0?-1:e.refill_rate}mi(){return this.ll().ai.enabled&&null==this.Di()?(e_.q(a.Ls,{e:"Missing feature flag refresh_rate_limit."}),!1):this.ll().ai.enabled||!1}Di(){return this.ll().ai.refresh_rate_limit}}class tC{constructor(t,e,s,a){this.u=t,this.yt=e,this.qt=s,this.wl=a,this.u=t,this.yt=e,this.qt=s,this.Sl=1e3,(null==a||isNaN(a))&&(a=1800),a<this.Sl/1e3&&(i.info("Specified session timeout of "+a+"s is too small, using the minimum session timeout of "+this.Sl/1e3+"s instead."),a=this.Sl/1e3),this.wl=a}jl(t,e){return new P(this.yt.getUserId(),a.xl,t,e.eu,{d:m(t-e.Dl)})}xi(){let t=this.u.tu(tl.iu.El);return null==t?null:t.eu}Gl(){let t=new Date().valueOf(),e=this.qt.dl(),i=this.u.j(tl.C.Nl);if(null!=i&&null==e)return!1;let s=!1;return null==i?s=!0:null!=e&&(s=t-i>1e3*e),s&&this.u.I(tl.C.Nl,t),s}zl(t,e){return null==e||null==e.Hl||!(t-e.Dl<this.Sl)&&e.Hl<t}xo(){let t=new Date().valueOf(),e=t+1e3*this.wl,s=this.u.tu(tl.iu.El);if(this.zl(t,s)){let r="Generating session start event with time "+t;if(null!=s){let t=s.Wl;t-s.Dl<this.Sl&&(t=s.Dl+this.Sl),this.u.kl(this.jl(t,s)),r+=" (old session ended "+t+")"}r+=". Will expire "+e.valueOf(),i.info(r);let o=new U(n.W(),e);return this.u.kl(new P(this.yt.getUserId(),a.ql,t,o.eu)),this.u.uu(tl.iu.El,o),null==this.u.j(tl.C.Nl)&&this.u.I(tl.C.Nl,t),o.eu}if(null!=s)return s.Wl=t,s.Hl=e,this.u.uu(tl.iu.El,s),s.eu}yl(){let t=this.u.tu(tl.iu.El);null!=t&&(this.u.Al(tl.iu.El),this.u.kl(this.jl(new Date().valueOf(),t)))}}let tA={Wh:function(t,e=!1){let s,a=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(tl.C.ec,"true"),localStorage.getItem(tl.C.ec)&&(localStorage.removeItem(tl.C.ec),a=!0)}catch(t){if(!(t instanceof Error&&("QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&localStorage.length>0))throw t;a=!0}}catch(t){i.info("Local Storage not supported!")}let r=tA.oc(),n=new tu.tc(t,r&&!e,a);return s=a?new tu.rc(t):new tu.ac,new tu(n,s)}
1,oc:function(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)}};class t_{constructor(t,e){this.triggerId=t,this.messageExtras=e,this.triggerId=t,this.messageExtras=e,this.extras={},this.isControl=!0}static fromJson(t){return new t_(t.trigger_id,t.message_extras)}}let tN={dc:null,po:function(t,e=!1,i=!1,s=!1){if(null==t)return!1;e=e||!1,i=i||!1;let a=t.getBoundingClientRect();return null!=a&&(a.top>=0&&a.top<=(window.innerHeight||document.documentElement.clientHeight)||!e)&&(a.left>=0||!s)&&(a.bottom>=0&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!i)&&(a.right<=(window.innerWidth||document.documentElement.clientWidth)||!s)}},tT={Oe:"up",Qe:"down",U:"left",V:"right"};function tI(){if(null==tN.dc){tN.dc=!1;try{let t=Object.defineProperty({},"passive",{get:()=>{tN.dc=!0}});window.addEventListener("testPassive",()=>{},t),window.removeEventListener("testPassive",()=>{},t)}catch(t){i.error(z(t))}}return tN.dc}function tO(t,e,i=()=>{}){t.addEventListener(e,i,!!tI()&&{passive:!0})}function tD(t){if(t.onclick){let e=document.createEvent("MouseEvents");e.initEvent("click",!0,!0),t.onclick.apply(t,[e])}}function tP(t,e,i){let s=null,a=null;tO(t,"touchstart",t=>{s=t.touches[0].clientX,a=t.touches[0].clientY}),tO(t,"touchmove",r=>{if(null==s||null==a)return;let n=s-r.touches[0].clientX,o=a-r.touches[0].clientY;Math.abs(n)>Math.abs(o)&&Math.abs(n)>=25?((n>0&&e===tT.U||n<0&&e===tT.V)&&i(r),s=null,a=null):Math.abs(o)>=25&&((o>0&&e===tT.Oe&&t.scrollTop===t.scrollHeight-t.offsetHeight||o<0&&e===tT.Qe&&0===t.scrollTop)&&i(r),s=null,a=null)})}function tz(t,e,i){let s="http://www.w3.org/2000/svg",a=document.createElementNS(s,"svg");a.setAttribute("viewBox",t),a.setAttribute("xmlns",s);let r=document.createElementNS(s,"path");return r.setAttribute("d",e),null!=i&&r.setAttribute("fill",i),a.appendChild(r),a}let tU={Fo:32,lo:9,To:13,mh:27},tM=t=>null!==t&&"IFRAME"===t.tagName;class tR{constructor(t,e,i,s,a,r,n,o,l,u,h,c,d,p,b,f,m,g,v,w,y,x,E,S,k,C,_,N,T,I){this.message=t,this.messageAlignment=e,this.slideFrom=i,this.extras=s,this.triggerId=a,this.clickAction=r,this.uri=n,this.openTarget=o,this.dismissType=l,this.duration=u,this.icon=h,this.imageUrl=c,this.imageStyle=d,this.iconColor=p,this.iconBackgroundColor=b,this.backgroundColor=f,this.textColor=m,this.closeButtonColor=g,this.animateIn=v,this.animateOut=w,this.header=y,this.headerAlignment=x,this.headerTextColor=E,this.frameColor=S,this.buttons=k,this.cropType=C,this.orientation=_,this.htmlId=N,this.css=T,this.messageExtras=I,this.message=t,this.messageAlignment=e||tR.TextAlignment.CENTER,this.duration=u||5e3,this.slideFrom=i||tR.SlideFrom.BOTTOM,this.extras=s||{},this.triggerId=a,this.clickAction=r||tR.ClickAction.NONE,this.uri=n,this.openTarget=o||tR.OpenTarget.NONE,this.dismissType=l||tR.DismissType.AUTO_DISMISS,this.icon=h,this.imageUrl=c,this.imageStyle=d||tR.ImageStyle.TOP,this.iconColor=p||tR.th.ih,this.iconBackgroundColor=b||tR.th.sh,this.backgroundColor=f||tR.th.ih,this.textColor=m||tR.th.hh,this.closeButtonColor=g||tR.th.eh,this.animateIn=v,null==this.animateIn&&(this.animateIn=!0),this.animateOut=w,null==this.animateOut&&(this.animateOut=!0),this.header=y,this.headerAlignment=x||tR.TextAlignment.CENTER,this.headerTextColor=E||tR.th.hh,this.frameColor=S||tR.th.Eh,this.buttons=k||[],this.cropType=C||tR.CropType.FIT_CENTER,this.orientation=_,this.htmlId=N,this.css=T,this.isControl=!1,this.messageExtras=I,this.nh=!1,this.Th=!1,this.vo=!1,this.oh=!1,this.Re=null,this.ke=null,this.Et=new A,this.rh=new A,this.qe=tR.TextAlignment.CENTER}subscribeToClickedEvent(t){return this.Et.Nt(t)}subscribeToDismissedEvent(t){return this.rh.Nt(t)}removeSubscription(t){this.Et.removeSubscription(t),this.rh.removeSubscription(t)}removeAllSubscriptions(){this.Et.removeAllSubscriptions(),this.rh.removeAllSubscriptions()}closeMessage(){this.Cr(this.Re)}$e(){return!0}do(){return this.$e()}Ce(){return null!=this.htmlId&&this.htmlId.length>4}ve(){return this.Ce()&&null!=this.css&&this.css.length>0}we(){if(this.Ce()&&this.ve())return this.htmlId+"-css"}K(){return!this.Th&&(this.Th=!0,!0)}Wr(){return this.Th}p(t){return!this.vo&&(this.vo=!0,this.Et.Rt(),!0)}N(){return!this.oh&&(this.oh=!0,this.rh.Rt(),!0)}hide(t){if(t&&t.parentNode){let e=t.closest(".ab-iam-root");
1if(null==e&&(e=t),this.$e()&&null!=e.parentNode){let t=e.parentNode.classList;t&&t.contains(tR.lh)&&t.remove(tR.lh),document.body.removeEventListener("touchmove",tR.uh)}e.className=e.className.replace(tR.ah,tR.Ih)}return this.animateOut||!1}Cr(t,e){let i,s;if(null==t)return;this.Re=null;let a=!1;(i=-1===t.className.indexOf("ab-in-app-message")?t.getElementsByClassName("ab-in-app-message")[0]:t)&&(a=this.hide(i));let r=document.body;null!=r&&(s=r.scrollTop);let n=()=>{if(t&&t.parentNode){let e=t.closest(".ab-iam-root");null==e&&(e=t),e.parentNode&&e.parentNode.removeChild(e)}let i=this.we();if(null!=i){let t=document.getElementById(i);t&&t.parentNode&&t.parentNode.removeChild(t)}null!=r&&"Safari"===to.browser&&(r.scrollTop=s),e?e():this.N()};a?setTimeout(n,tR.Ah):n(),this.ke&&this.ke.focus()}Ge(){return document.createTextNode(this.message||"")}Ae(t){let e="";this.message||this.header||!this.$e()||(e="Modal Image"),t.setAttribute("alt",e)}static uh(t){if(t.targetTouches&&t.targetTouches.length>1)return;let e=t.target;e&&e.classList&&e.classList.contains("ab-message-text")&&e.scrollHeight>e.clientHeight||document.querySelector(`.${tR.lh}`)&&t.cancelable&&t.preventDefault()}Oh(t){let e=t.parentNode;this.$e()&&null!=e&&this.orientation!==tR.Orientation.LANDSCAPE&&(null!=e.classList&&e.classList.add(tR.lh),document.body.addEventListener("touchmove",tR.uh,!!tI()&&{passive:!1})),t.className+=" "+tR.ah}static _h(t){if(t.keyCode===tU.mh&&!eA.nn(ek.Lh)&&document.querySelectorAll(".ab-modal-interactions").length>0){let t=document.getElementsByClassName("ab-html-message"),e=!1;for(let i of t){let t=null;tM(i)&&i.contentWindow&&(t=i.contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0]),null!=t&&(tD(t),e=!0)}if(!e){let t=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];null!=t&&tD(t)}}}Nh(){this.nh||eA.nn(ek.Lh)||(document.addEventListener("keydown",tR._h,!1),eA.Sh(()=>{document.removeEventListener("keydown",tR._h)}),this.nh=!0)}Y(t){let e={};return t&&(e[tR.tt.Yr]=this.message,e[tR.tt.Zr]=this.messageAlignment,e[tR.tt.Rh]=this.slideFrom,e[tR.tt.bt]=this.extras,e[tR.tt.ea]=this.triggerId,e[tR.tt.ra]=this.clickAction,e[tR.tt.URI]=this.uri,e[tR.tt.sa]=this.openTarget,e[tR.tt.ta]=this.dismissType,e[tR.tt.ia]=this.duration,e[tR.tt.aa]=this.icon,e[tR.tt.ot]=this.imageUrl,e[tR.tt.oa]=this.imageStyle,e[tR.tt.pa]=this.iconColor,e[tR.tt.ma]=this.iconBackgroundColor,e[tR.tt.na]=this.backgroundColor,e[tR.tt.ua]=this.textColor,e[tR.tt.ca]=this.closeButtonColor,e[tR.tt.fa]=this.animateIn,e[tR.tt.da]=this.animateOut,e[tR.tt.la]=this.header,e[tR.tt.ga]=this.headerAlignment,e[tR.tt.ja]=this.headerTextColor,e[tR.tt.xa]=this.frameColor,e[tR.tt.za]=this.buttons,e[tR.tt.ha]=this.cropType,e[tR.tt.va]=this.orientation,e[tR.tt.wa]=this.htmlId,e[tR.tt.CSS]=this.css,e[tR.tt.Z]=t,e[tR.tt.ya]=this.messageExtras),e}}tR.th={hh:0xff333333,ih:0xffffffff,sh:0xff0073d5,Mh:0xffefefef,Dh:0xff555555,Eh:0xc0333333,eh:0xff9b9b9b},tR.Le={Ch:"hd",ze:"ias",dh:"of",Uh:"do",bh:"umt",Ph:"tf",ph:"te"},tR.SlideFrom={TOP:"TOP",BOTTOM:"BOTTOM"},tR.ClickAction={NEWS_FEED:"NEWS_FEED",URI:"URI",NONE:"NONE"},tR.DismissType={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},tR.OpenTarget={NONE:"NONE",BLANK:"BLANK"},tR.ImageStyle={TOP:"TOP",GRAPHIC:"GRAPHIC"},tR.Orientation={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},tR.TextAlignment={START:"START",CENTER:"CENTER",END:"END"},tR.CropType={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},tR.Be={Qr:"SLIDEUP",Lr:"MODAL",Ue:"MODAL_STYLED",Hr:"FULL",Kr:"WEB_HTML",Me:"HTML",Ve:"HTML_FULL"},tR.Ah=500,tR.fh=200,tR.ah="ab-show",tR.Ih="ab-hide",tR.lh="ab-pause-scrolling",tR.tt={Yr:"m",Zr:"ma",Rh:"sf",bt:"e",ea:"ti",ra:"ca",URI:"u",sa:"oa",ta:"dt",ia:"d",aa:"i",ot:"iu",oa:"is",pa:"ic",ma:"ibc",na:"bc",ua:"tc",ca:"cbc",fa:"ai",da:"ao",la:"h",ga:"ha",ja:"htc",xa:"fc",za:"b",ha:"ct",va:"o",wa:"hi",CSS:"css",Z:"type",uo:"messageFields",ya:"me"};class tL extends tR{constructor(t,e,i,s,a,r,n,o,l,u,h,c){super(t,void 0,void 0,e,i,void 0,void 0,void 0,s=s||tR.DismissType.MANUAL,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,r,n,void 0,void 0,void 0,o,void 0,void 0,void 0,l,u,c),this.messageFields=h,this.messageFields=h}do(){return!1}p(t){if(this.xe===tR.Be.Kr){if(this.vo)return!1;this.vo=!0}return this.Et.Rt(t),!0}Y(){let t=super.Y(tL.it);return t[tR.tt.uo]=this.messageFields,t}static Jr(t){return new tL(t[tR.tt.Yr],t[tR.tt.bt],t[tR.tt.ea],t[tR.tt.ta],t[tR.tt.ia],t[tR.tt.fa],t[tR.tt.da],t[tR.tt.xa],t[tR.tt.wa],t[tR.tt.CSS],t[tR.tt.uo],t[tR.tt.ya])}}tL.it=tR.Be.Kr;class tB{constructor(t,e,i,s,a,r,n){this.text=t,this.backgroundColor=e,this.textColor=i,this.borderColor=s,this.clickAction=a,this.uri=r,this.id=n,this.text=t||"",this.backgroundColor=e||tR.th.sh,this.textColor=i||tR.th.ih,this.borderColor=s||this.backgroundColor,this.clickAction=a||tR.ClickAction.NONE,this.uri=r,null==n&&(n=tB.Ki),this.id=n,this.vo=!1,this.Et=new A}subscribeToClickedEvent(t){return this.Et.Nt(t)}removeSubscription(t){this.Et.removeSubscription(t)}removeAllSubscriptions(){this.Et.removeAllSubscriptions()}p(){return!this.vo&&(this.vo=!0,this.Et.Rt(),!0)}static fromJson(t){return new tB(t.text,t.bg_color,t.text_color,t.border_color,t.click_action,t.uri,t.id)}}tB.Ki=-1;class tF extends tR{constructor(t,e,i,s,a,r,n,o,l,u,h,c,d,p,b,f,m,g,v,w,y,x,E,S,k,C,A,_,N){super(t,e,void 0,i,s,a,r,n,o=o||tR.DismissType.MANUAL,l,u,h,c,d,p,b,f,m,g,v,w,y,x,E,S,k=k||tR.CropType.CENTER_CROP,C=C||tR.Orientation.PORTRAIT,A,_,N),this.qe=tR.TextAlignment.CENTER}Y(){return super.Y(tF.it)}static Jr(t){return new tF(t[tR.tt.Yr],t[tR.tt.Zr],t[tR.tt.bt],t[tR.tt.ea],t[tR.tt.ra],t[tR.tt.URI],t[tR.tt.sa],t[tR.tt.ta],t[tR.tt.ia],t[tR.tt.aa],t[tR.tt.ot],t[tR.tt.oa],t[tR.tt.pa],t[tR.tt.ma],t[tR.tt.na],t[tR.tt.ua],t[tR.tt.ca],t[tR.tt.fa],t[tR.tt.da],t[tR.tt.la],t[tR.tt.ga],t[tR.tt.ja],t[tR.tt.xa],tG(t[tR.tt.za]),t[tR.tt.ha],t[tR.tt.va],t[tR.tt.wa],t[tR.tt.CSS],t[tR.tt.ya])}}tF.it=tR.Be.Hr;class t$ extends tR{constructor(t,e,i,s,a,r,n,o,l,u,h,c,d,p,b,f,m,g,v,w,y,x,E,S,k,C,A,_){super(t,e,void 0,i,s,a,r,n,o=o||tR.DismissType.MANUAL,l,u,h,c,d,p,b,f,m,g,v,w,y,x,E,S,k=k||tR.CropType.FIT_CENTER,void 0,C,A,_),this.qe=tR.TextAlignment.CENTER}Y(){return super.Y(t$.it)}static Jr(t){return new t$(t[tR.tt.Yr],t[tR.tt.Zr],t[tR.tt.bt],t[tR.tt.ea],t[tR.tt.ra],t[tR.tt.URI],t[tR.tt.sa],t[tR.tt.ta],t[tR.tt.ia],t[tR.tt.aa],t[tR.tt.ot],t[tR.tt.oa],t[tR.tt.pa],t[tR.tt.ma],t[tR.tt.na],t[tR.tt.ua],t[tR.tt.ca],t[tR.tt.fa],t[tR.tt.da],t[tR.tt.la],t[tR.tt.ga],t[tR.tt.ja],t[tR.tt.xa],tG(t[tR.tt.za]),t[tR.tt.ha],t[tR.tt.wa],t[tR.tt.CSS],t[tR.tt.ya])}}t$.it=tR.Be.Lr;class tq extends tR{constructor(t,e,i,s,a,r,n,o,l,u,h,c,d,p,b,f,m,g,v,w,y,x){super(t,e=e||tR.TextAlignment.START,i,s,a,r,n,o,l,u,h,c,void 0,d,p,b=b||tR.th.Mh,f=f||tR.th.Dh,m,g,v,void 0,void 0,void 0,void 0,void 0,void 0,void 0,w,y,x),this.qe=tR.TextAlignment.START}$e(){return!1}Ge(){let t=document.createElement("span");return t.appendChild(document.createTextNode(this.message||"")),t}Oh(t){let e=t.getElementsByClassName("ab-in-app-message")[0];tN.po(e,!0,!0)||(this.slideFrom===tR.SlideFrom.TOP?e.style.top="0px":e.style.bottom="0px"),super.Oh(t)}Y(){return super.Y(tq.it)}static Jr(t){return new tq(t[tR.tt.Yr],t[tR.tt.Zr],t[tR.tt.Rh],t[tR.tt.bt],t[tR.tt.ea],t[tR.tt.ra],t[tR.tt.URI],t[tR.tt.sa],t[tR.tt.ta],t[tR.tt.ia],t[tR.tt.aa],t[tR.tt.ot],t[tR.tt.pa],t[tR.tt.ma],t[tR.tt.na],t[tR.tt.ua],t[tR.tt.ca],t[tR.tt.fa],t[tR.tt.da],t[tR.tt.wa],t[tR.tt.CSS],t[tR.tt.ya])}}function tj(t){let e;if(!t)return null;if(t.is_control)return t_.fromJson(t);let s=t.type;null!=s&&(s=s.toUpperCase());let a=t.message,r=t.text_align_message,n=t.slide_from,o=t.extras,l=t.trigger_id,u=t.click_action,h=t.uri,c=t.open_target,d=t.message_close,p=t.duration,b=t.icon,f=t.image_url,m=t.image_style,g=t.icon_color,v=t.icon_bg_color,w=t.bg_color,y=t.text_color,x=t.close_btn_color,E=t.header,S=t.text_align_header,k=t.header_text_color,C=t.frame_color,A=[],_=t.btns;null==_&&(_=[]);for(let t=0;t<_.length;t++)A.push(tB.fromJson(_[t]));let N=t.crop_type,T=t.orientation,I=t.animate_in,O=t.animate_out,D=t.html_id,P=t.css;null!=D&&""!==D&&null!=P&&""!==P||(D=void 0,P=void 0);let z=t.message_extras;if(s===t$.it||s===tR.Be.Ue)e=new t$(a,r,o,l,u,h,c,d,p,b,f,m,g,v,w,y,x,I,O,E,S,k,C,A,N,D,P,z);else if(s===tF.it)e=new tF(a,r,o,l,u,h,c,d,p,b,f,m,g,v,w,y,x,I,O,E,S,k,C,A,N,T,D,P,z);else if(s===tq.it)e=new tq(a,r,n,o,l,u,h,c,d,p,b,f,g,v,w,y,x,I,O,D,P,z);else{if(s!==tL.it&&s!==tR.Be.Me&&s!==tR.Be.Ve)return void i.error("Ignoring message with unknown type "+s);(e=new tL(a,o,l,d,p,I,O,C,D,P,t.message_fields,z)).trusted=t.trusted||!1}return e.xe=s,e}function tG(t){let e=[];for(let i of t)e.push(new tB(i.text,i.backgroundColor,i.textColor,i.borderColor,i.clickAction,i.uri,i.id));return e}tq.it=tR.Be.Qr;class tK{constructor(t){this.Bl=t,this.Bl=t}Jl(t){return null==this.Bl||this.Bl===t[0]}static fromJson(t){return new tK(t?t.event_name:null)}Y(){return this.Bl}}class tX{constructor(t,e,i,s){this.Tl=t,this._l=e,this.comparator=i,this.Ll=s,this.Tl=t,this._l=e,this.comparator=i,this.Ll=s,this._l===tX.Ol.Il&&this.comparator!==tX.Ql.Ul&&this.comparator!==tX.Ql.Xl&&this.comparator!==tX.Ql.Fl&&this.comparator!==tX.Ql.Kl&&(this.Ll=g(this.Ll))}Jl(t){let e=null;switch(null!=t&&(e=t[this.Tl]),this.comparator){case tX.Ql.Pl:return null!=e&&e.valueOf()===this.Ll.valueOf();case tX.Ql.Yl:return null==e||e.valueOf()!==this.Ll.valueOf();case tX.Ql.Zl:return null!=e&&typeof e==typeof this.Ll&&e>this.Ll;case tX.Ql.Ul:return this._l===tX.Ol.Il?null!=e&&d(e)&&y(e)<=this.Ll.valueOf():null!=e&&typeof e==typeof this.Ll&&e>=this.Ll;case tX.Ql.$l:return null!=e&&typeof e==typeof this.Ll&&e<this.Ll;case tX.Ql.Xl:return this._l===tX.Ol.Il?null!=e&&d(e)&&y(e)>=this.Ll.valueOf():null!=e&&typeof e==typeof this.Ll&&e<=this.Ll;case tX.Ql.Qu:return null!=e&&"string"==typeof e&&typeof e==typeof this.Ll&&null!=e.match(this.Ll);case tX.Ql.Vu:return null!=e;case tX.Ql.Yu:return null==e;case tX.Ql.Fl:return null!=e&&d(e)&&x(e)<this.Ll;case tX.Ql.Kl:return null!=e&&d(e)&&x(e)>this.Ll;case tX.Ql.Zu:return null==e||typeof e!=typeof this.Ll||"string"!=typeof e||null==e.match(this.Ll)}return!1}static fromJson(t){return new tX(t.property_key,t.property_type,t.comparator,t.property_value)}Y(){let t=this.Ll;return d(this.Ll)&&(t=m(t.valueOf())),{k:this.Tl,t:this._l,c:this.comparator,v:t}}static qn(t){return new tX(t.k,t.t,t.c,t.v)}}tX.Ol={yE:"boolean",HE:"number",LE:"string",Il:"date"},tX.Ql={Pl:1,Yl:2,Zl:3,Ul:4,$l:5,Xl:6,Qu:10,Vu:11,Yu:12,Fl:15,Kl:16,Zu:17};class tY{constructor(t){this.filters=t,this.filters=t}Jl(t){let e=!0;for(let i=0;i<this.filters.length;i++){let s=this.filters[i],a=!1;for(let e=0;e<s.length;e++)if(s[e].Jl(t)){a=!0;break}if(!a){e=!1;break}}return e}static fromJson(t){if(null==t||!c(t))return null;let e=[];for(let i=0;i<t.length;i++){let s=[],a=t[i];for(let t=0;t<a.length;t++)s.push(tX.fromJson(a[t]));e.push(s)}return new tY(e)}Y(){let t=[];for(let e=0;e<this.filters.length;e++){let i=this.filters[e],s=[];for(let t=0;t<i.length;t++)s.push(i[t].Y());t.push(s)}return t}static qn(t){let e=[];for(let i=0;i<t.length;i++){let s=[],a=t[i];for(let t=0;t<a.length;t++)s.push(tX.qn(a[t]));e.push(s)}return new tY(e)}}class tH{constructor(t,e){this.Bl=t,this.Ml=e,this.Bl=t,this.Ml=e}Jl(t){if(null==this.Bl||null==this.Ml)return!1;let e=t[0],i=t[1];return e===this.Bl&&this.Ml.Jl(i)}static fromJson(t){return new tH(t?t.event_name:null,t?tY.fromJson(t.property_filters):null)}Y(){return{e:this.Bl,pf:this.Ml?this.Ml.Y():null}}}class tJ{constructor(t,e){this.tf=t,this.if=e,this.tf=t,this.if=e}Jl(t){if(null==this.tf)return!1;let e=t0.rf(t[0],this.tf);if(!e)return!1;let i=null==this.if||0===this.if.length;if(null!=this.if){for(let e=0;e<this.if.length;e++)if(this.if[e]===t[1]){i=!0;break}}return e&&i}static fromJson(t){return new tJ(t?t.id:null,t?t.buttons:null)}Y(){return this.tf}}class tW{constructor(t){this.productId=t,this.productId=t}Jl(t){return null==this.productId||t[0]===this.productId}static fromJson(t){return new tW(t?t.product_id:null)}Y(){return this.productId}}class tV{constructor(t,e){this.productId=t,this.Ml=e,this.productId=t,this.Ml=e}Jl(t){if(null==this.productId||null==this.Ml)return!1;let e=t[0],i=t[1];return e===this.productId&&this.Ml.Jl(i)}static fromJson(t){return new tV(t?t.product_id:null,t?tY.fromJson(t.property_filters):null)}Y(){return{id:this.productId,pf:this.Ml?this.Ml.Y():null}}}class tZ{constructor(t){this.tf=t,this.tf=t}Jl(t){return null==this.tf||t0.rf(t[0],this.tf)}static fromJson(t){return new tZ(t?t.campaign_id:null)}Y(){return this.tf}}var tQ={OPEN:"open",Rr:"purchase",vr:"push_click",ue:"custom_event",Vr:"iam_click",kt:"test"};class t0{constructor(t,e){this.type=t,this.data=e,this.type=t,this.data=e}sc(t,e){return t0.cc[this.type]===t&&(null==this.data||this.data.Jl(e))}static rf(t,e){let s=null;try{s=window.atob(t)}catch(e){return i.info("Failed to unencode analytics id "+t+": "+z(e)),!1}return e===s.split("_")[0]}static fromJson(t){let e=t.type,i=null;switch(e){case t0.Er.OPEN:case t0.Er.kt:break;case t0.Er.Rr:i=tW.fromJson(t.data);break;case t0.Er.nc:i=tV.fromJson(t.data);break;case t0.Er.vr:i=tZ.fromJson(t.data);break;case t0.Er.ue:i=tK.fromJson(t.data);break;case t0.Er.lc:i=tH.fromJson(t.data);break;case t0.Er.Vr:i=tJ.fromJson(t.data)}return new t0(e,i)}
1Y(){return{t:this.type,d:this.data?this.data.Y():null}}static qn(t){let e,i=null;switch(t.t){case t0.Er.OPEN:case t0.Er.kt:break;case t0.Er.Rr:i=new tW(t.d);break;case t0.Er.nc:i=new tV((e=t.d||{}).id,tY.qn(e.pf||[]));break;case t0.Er.vr:i=new tZ(t.d);break;case t0.Er.ue:i=new tK(t.d);break;case t0.Er.lc:i=new tH((e=t.d||{}).e,tY.qn(e.pf||[]));break;case t0.Er.Vr:i=new tJ(t.d)}return new t0(t.t,i)}}t0.Er={OPEN:"open",Rr:"purchase",nc:"purchase_property",vr:"push_click",ue:"custom_event",lc:"custom_event_property",Vr:"iam_click",kt:"test"},t0.cc={},t0.cc[t0.Er.OPEN]=tQ.OPEN,t0.cc[t0.Er.Rr]=tQ.Rr,t0.cc[t0.Er.nc]=tQ.Rr,t0.cc[t0.Er.vr]=tQ.vr,t0.cc[t0.Er.ue]=tQ.ue,t0.cc[t0.Er.lc]=tQ.ue,t0.cc[t0.Er.Vr]=tQ.Vr,t0.cc[t0.Er.kt]=tQ.kt;class t1{constructor(t,e=[],i,s,a=0,r,n,o=0,l=t1.td,u,h,c){this.id=t,this.sd=e,this.startTime=i,this.endTime=s,this.priority=a,this.type=r,this.data=n,this.ed=o,this.rd=l,this.Or=u,this.hd=h,this.od=c,this.id=t,this.sd=e||[],void 0===i&&(i=null),this.startTime=i,void 0===s&&(s=null),this.endTime=s,this.priority=a||0,this.type=r,this.ed=o||0,null==u&&(u=1e3*(this.ed+30)),this.Or=u,this.data=n,null!=l&&(this.rd=l),this.hd=h,this.od=c||null}nd(t){return null==this.od||this.rd!==t1.td&&t-this.od>=1e3*this.rd}ad(t){this.od=t}ud(t){return Math.max(t+1e3*this.ed-new Date().valueOf(),0)}dd(t){let e=new Date().valueOf()-t,s=null==t||isNaN(e)||null==this.Or||e<this.Or;return s||i.info(`Trigger action ${this.type} is no longer eligible for display - fired ${e}ms ago and has a timeout of ${this.Or}ms.`),!s}static fromJson(t){let e=t.id,i=[];for(let e=0;e<t.trigger_condition.length;e++)i.push(t0.fromJson(t.trigger_condition[e]));let s=g(t.start_time),a=g(t.end_time),r=t.priority,n=t.type,o=t.delay,l=t.re_eligibility,u=t.timeout,c=t.data,d=t.min_seconds_since_last_trigger;return h(t1.Er,n,"Could not construct Trigger from server data","Trigger.Types")?new t1(e,i,s,a,r,n,c,o,l,u,d):null}Y(){let t=[];for(let e=0;e<this.sd.length;e++)t.push(this.sd[e].Y());return{i:this.id,c:t,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.ed,r:this.rd,tm:this.Or,ss:this.hd,ld:this.od}}static qn(t){let e=[],i=t.c||[];for(let t=0;t<i.length;t++)e.push(t0.qn(i[t]));return new t1(t.i,e,w(t.s),w(t.e),t.p,t.t,t.da,t.d,t.r,t.tm,t.ss,t.ld)}}function t3(t,e,i){let s=t||document.querySelector("head"),a=`ab-${e}-css-definitions-${"5.5.0".replace(/\./g,"-")}`;if(!s)return;let r=s.ownerDocument||document;if(null==r.getElementById(a)){let t=r.createElement("style");t.innerHTML=i||"",t.id=a;let e=eA.nn(ek.bo);null!=e&&t.setAttribute("nonce",e),s.appendChild(t)}}function t5(){if(eA.nn(ek.Mo))return;let t="https://use.fontawesome.com/7f85a56ba4.css";if(null===document.querySelector('link[rel=stylesheet][href="'+t+'"]')){let e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),document.getElementsByTagName("head")[0].appendChild(e)}}function t2(){t3(void 0,"feed","body>.ab-feed{position:fixed;top:0;right:0;bottom:0;width:421px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}body>.ab-feed .ab-feed-body{position:absolute;top:0;left:0;right:0;border:none;border-left:1px solid #d0d0d0;padding-top:70px;min-height:100%}body>.ab-feed .ab-initial-spinner{float:none}body>.ab-feed .ab-no-cards-message{position:absolute;width:100%;margin-left:-20px;top:40%}.ab-feed{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);-moz-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);box-shadow:0 1px 7px 1px rgba(66,82,113,.15);width:402px;background-color:#eee;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif;font-size:13px;line-height:130%;letter-spacing:normal;overflow-y:auto;overflow-x:visible;z-index:9011;-webkit-overflow-scrolling:touch}.ab-feed :focus,.ab-feed:focus{outline:0}.ab-feed .ab-feed-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #d0d0d0;border-top:none;padding:20px 20px 0 20px}.ab-feed.ab-effect-slide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px);-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-feed.ab-effect-slide.ab-show{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-feed.ab-effect-slide.ab-hide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card{position:relative;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;width:100%;border:1px solid #d0d0d0;margin-bottom:20px;overflow:hidden;background-color:#fff;-webkit-transition:height .4s ease-in-out,margin .4s ease-in-out;-moz-transition:height .4s ease-in-out,margin .4s ease-in-out;-o-transition:height .4s ease-in-out,margin .4s ease-in-out;transition:height .4s ease-in-out,margin .4s ease-in-out}.ab-feed .ab-card .ab-pinned-indicator{position:absolute;right:0;top:0;margin-right:-1px;width:0;height:0;border-style:solid;border-width:0 24px 24px 0;border-color:transparent #1676d0 transparent transparent}.ab-feed .ab-card .ab-pinned-indicator .fa-star{position:absolute;right:-21px;top:2px;font-size:9px;color:#fff}.ab-feed .ab-card.ab-effect-card.ab-hide{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-left{-webkit-transform:translateX(-450px);-moz-transform:translateX(-450px);-ms-transform:translateX(-450px);transform:translateX(-450px)}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-right{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card.ab-effect-card.ab-hide:not(.ab-swiped-left):not(.ab-swiped-right){opacity:0}.ab-feed .ab-card .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021;opacity:0;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;transition:.5s}.ab-feed .ab-card .ab-close-button[dir=rtl]{left:0}.ab-feed .ab-card .ab-close-button[dir=ltr]{right:0}.ab-feed .ab-card .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-feed .ab-card .ab-close-button svg.ab-chevron{display:none}.ab-feed .ab-card .ab-close-button:active{background-color:transparent}.ab-feed .ab-card .ab-close-button:focus{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover svg{fill-opacity:.8}.ab-feed .ab-card .ab-close-button:hover{opacity:1}.ab-feed .ab-card .ab-close-button:focus{opacity:1}.ab-feed .ab-card a{float:none;color:inherit;text-decoration:none}.ab-feed .ab-card a:hover{text-decoration:underline}.ab-feed .ab-card .ab-image-area{float:none;display:inline-block;vertical-align:top;line-height:0;overflow:hidden;width:100%;-webkit-box-sizing:initial;-moz-box-sizing:initial;box-sizing:initial}.ab-feed .ab-card .ab-image-area img{float:none;height:auto;width:100%}
1.ab-feed .ab-card.ab-image-only .ab-card-body{display:none}.ab-feed .ab-card .ab-card-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;width:100%;position:relative}.ab-feed .ab-card .ab-unread-indicator{position:absolute;bottom:0;margin-right:-1px;width:100%;height:5px;background-color:#1676d0}.ab-feed .ab-card .ab-unread-indicator.read{background-color:transparent}.ab-feed .ab-card .ab-title{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:18px;line-height:130%;padding:20px 25px 0 25px}.ab-feed .ab-card .ab-description{float:none;color:#545454;padding:15px 25px 20px 25px;word-wrap:break-word;white-space:pre-wrap}.ab-feed .ab-card .ab-description.ab-no-title{padding-top:20px}.ab-feed .ab-card .ab-url-area{float:none;color:#1676d0;margin-top:12px;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif}.ab-feed .ab-card.ab-classic-card .ab-card-body{min-height:40px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body{min-height:100px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body[dir=ltr]{padding-left:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body[dir=rtl]{padding-right:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area{width:60px;height:60px;padding:20px 0 25px 25px;position:absolute}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area[dir=rtl]{padding:20px 25px 25px 0}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;max-width:100%;max-height:100%;width:auto;height:auto}.ab-feed .ab-card.ab-classic-card.with-image .ab-title{background-color:transparent;font-size:16px}.ab-feed .ab-card.ab-classic-card.with-image .ab-description{padding-top:10px}.ab-feed .ab-card.ab-control-card{height:0;width:0;margin:0;border:0}.ab-feed .ab-feed-buttons-wrapper{float:none;position:relative;background-color:#282828;height:50px;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);z-index:1}.ab-feed .ab-feed-buttons-wrapper .ab-close-button,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{float:none;cursor:pointer;color:#fff;font-size:18px;padding:16px;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{font-size:22px}.ab-feed .ab-feed-buttons-wrapper .ab-close-button{float:right}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover{padding-top:12px;padding-right:14px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{padding-left:17px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{padding-top:13px;padding-left:14px}.ab-feed .ab-no-cards-message{text-align:center;margin-bottom:20px}@media (max-width:600px){body>.ab-feed{width:100%}}"),t5()}function t4(){t3(void 0,"iam",".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:9011;-webkit-tap-highlight-color:transparent}.ab-iam-root.v3:focus{outline:0}.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-show,.ab-iam-root.v3.ab-effect-html.ab-show,.ab-iam-root.v3.ab-effect-modal.ab-show{opacity:1}.ab-iam-root.v3.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-html.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-modal.ab-show.ab-animate-in{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide,.ab-iam-root.v3.ab-effect-html.ab-hide,.ab-iam-root.v3.ab-effect-modal.ab-hide{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-html.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-modal.ab-hide.ab-animate-out{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-slide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-show .ab-in-app-message{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-iam-root.v3.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left{-webkit-transform:translateX(-535px);-moz-transform:translateX(-535px);-ms-transform:translateX(-535px);transform:translateX(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up{-webkit-transform:translateY(-535px);-moz-transform:translateY(-535px);-ms-transform:translateY(-535px);transform:translateY(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down{-webkit-transform:translateY(535px);-moz-transform:translateY(535px);-ms-transform:translateY(535px);transform:translateY(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3 .ab-ios-scroll-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;pointer-events:all;touch-action:auto;-webkit-overflow-scrolling:touch}.ab-iam-root.v3 .ab-in-app-message{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:fixed;text-align:center;-webkit-box-shadow:0 0 4px rgba(0,0,0,.3);-moz-box-shadow:0 0 4px rgba(0,0,0,.3);box-shadow:0 0 4px rgba(0,0,0,.3);line-height:normal;letter-spacing:normal;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif;z-index:9011;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333;color-scheme:normal}.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message .ab-close-button[dir=rtl]{left:0}.ab-iam-root.v3 .ab-in-app-message .ab-close-button[dir=ltr]{right:0}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-text{float:none;line-height:1.5;margin:20px 25px;max-width:100%;overflow:hidden;overflow-y:auto;vertical-align:text-bottom;word-wrap:break-word;white-space:pre-wrap;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb{-webkit-appearance:none;border:4px solid transparent;background-clip:padding-box;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;background-color:rgba(0,0,0,.2)}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-header{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;font-size:20px;margin-bottom:10px;line-height:1.3}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:14px;font-weight:700;margin:20px;margin-top:calc(constant(safe-area-inset-top,0) + 20px);margin-right:calc(constant(safe-area-inset-right,0) + 20px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 20px);margin-left:calc(constant(safe-area-inset-left,0) + 20px);margin-top:calc(env(safe-area-inset-top,0) + 20px);margin-right:calc(env(safe-area-inset-right,0) + 20px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 20px);margin-left:calc(env(safe-area-inset-left,0) + 20px);max-height:150px;padding:10px;right:0;background-color:#efefef}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text{opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 25px 5px 10px;max-width:430px;vertical-align:middle;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text[dir=rtl]{border-width:5px 10px 5px 25px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{dis
1play:block;max-height:150px;overflow:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:365px;border-top:0;border-bottom:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button[dir=rtl]{left:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button[dir=ltr]{right:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}
1.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-html-message{background-color:transparent;border:none;height:100%;overflow:auto;position:relative;touch-action:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-message-buttons{position:absolute;bottom:0;width:100%;padding:17px 25px 30px 25px;z-index:inherit;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-iam-root.v3 .ab-in-app-message .ab-message-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif;height:44px;line-height:normal;letter-spacing:normal;margin:0;max-width:100%;min-width:80px;padding:0 12px;position:relative;text-transform:none;width:48%;width:calc(50% - 5px);border:1px solid #1b78cf;-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;word-wrap:normal;white-space:nowrap}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:active:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.08)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:focus:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.15)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-iam-root.v3 .ab-in-app-message .ab-icon{float:none;display:inline-block;padding:10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-iam-root.v3 .ab-centered{margin:auto;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-iam-root.v3 .ab-page-blocker{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9001;pointer-events:all;background-color:rgba(51,51,51,.75)}@media (max-width:600px){.ab-iam-root.v3 .ab-in-app-message.ab-slideup{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-close-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic),.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-message-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:480px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}}@media (max-height:750px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-height:91vh;max-height:calc(100vh - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text{max-height:65vh;max-height:calc(100vh - 30px - 60px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image{max-height:45vh;max-height:calc(100vh - 30px - 155.17241379310346px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon{max-height:45vh;max-height:calc(100vh - 30px - 70px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons{max-height:50vh;max-height:calc(100vh - 30px - 93px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image{max-height:30vh;max-height:calc(100vh - 30px - 155.17241379310346px - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon{max-height:30vh;max-height:calc(100vh - 30px - 70px - 93px - 20px)}}@media (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area img{max-height:100%;max-width:100%}}@media (max-height:750px) and (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important;width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-height:480px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:750px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-
1area-inset-bottom,0)}}"),t5()}function t8(t,e,i,s="ltr"){let a=document.createElement("button");a.setAttribute("aria-label",t),a.setAttribute("tabindex","0"),a.setAttribute("role","button"),a.dir=s,tO(a,"touchstart"),a.className="ab-close-button";let r=tz("0 0 15 15","M15 1.5L13.5 0l-6 6-6-6L0 1.5l6 6-6 6L1.5 15l6-6 6 6 1.5-1.5-6-6 6-6z",e);return a.appendChild(r),a.addEventListener("keydown",t=>{t.keyCode!==tU.Fo&&t.keyCode!==tU.To||(i(),t.stopPropagation())}),a.onclick=t=>{i(),t.stopPropagation()},a}function t6(t,e){return null==t||isNaN(t=parseInt(t.toString()))?"":(e&&!isNaN(parseFloat(e.toString()))||(e=1),"rgba("+[(0xff0000&(t>>>=0))>>>16,(65280&t)>>>8,255&t,((0xff000000&t)>>>24)/255*e].join(",")+")")}function t7(t){if(!eA.X())return!1;if(!(t instanceof tR||t instanceof t_))return i.error(E),!1;let e=t instanceof t_?a.mo:a.Xi;return ev.m().q(t,e).L}function t9(t){if(!eA.X())return!1;if(!(t instanceof tR))return i.error(E),!1;let e=ev.m().q(t,a.$i);if(e){t.Wr()||t7(t);for(let i=0;i<e.ge.length;i++)ex.rr().fe(tQ.Vr,[t.triggerId],e.ge[i])}return e.L}t1.Er={_r:"inapp",md:"templated_iam"},t1.td=-1;let et={PORTRAIT:0,LANDSCAPE:1},ee={openUri:function(t,e,i){t&&(e||null!=i&&i.metaKey?window.open(t):window.location=t)},fo:function(){return screen.width<=600},co:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?et.LANDSCAPE:et.PORTRAIT;let t=window;if("screen"in t){let e=t.screen.orientation||screen.mozOrientation||screen.msOrientation;return null!=e&&"object"==typeof e&&(e=e.type),"landscape-primary"===e||"landscape-secondary"===e?et.LANDSCAPE:et.PORTRAIT}return et.PORTRAIT},Zo:function(){return window.location.href}};function ei(){if(eA.X())return eA.pr()}function es(t,e,s){if(eA.X())if(Y.test(t)){let e=F(t);if(!e)return;let s=t=>{if(!Q(t))return void i.error(`Decoded Braze Action json is invalid: ${JSON.stringify(t,null,2)}`);let e=R.properties.type,a=R.properties.oo,r=R.properties.eo,n=t[e];if(n===R.types.ro)for(let e of t[a])s(e);else{let e,s,a=t[r];switch(n){case R.types.logCustomEvent:Promise.resolve().then(function(){return e8}).then(({logCustomEvent:t})=>{eA.so()?t(...s=Array.prototype.slice.call(a)):i.error(C)});break;case R.types.requestPushPermission:Promise.resolve().then(function(){return im}).then(({requestPushPermission:t})=>{eA.so()?"Safari"===to.browser&&to.OS===ts.io?window.navigator.standalone&&t():t():i.error(C)});break;case R.types.setEmailNotificationSubscriptionType:case R.types.setPushNotificationSubscriptionType:case R.types.setCustomUserAttribute:case R.types.addToSubscriptionGroup:case R.types.removeFromSubscriptionGroup:case R.types.addToCustomAttributeArray:case R.types.removeFromCustomAttributeArray:(e=ei())&&e[n](...Array.prototype.slice.call(a));break;case R.types.no:case R.types.ao:s=Array.prototype.slice.call(a),ee.openUri(...s);break;default:i.info(`Ignoring unknown Braze Action: ${n}`)}}};s(e)}else ee.openUri(t,e,s)}function ea(t){null==t&&(t="");let e=t.split("?").slice(1).join("?"),i={};if(null!=e){let t=e.split("&");for(let e=0;e<t.length;e++){let s=t[e].split("=");""!==s[0]&&(i[s[0]]=s[1])}}return i}function er(t){return!(!t||0!==(t=t.toString().toLowerCase()).lastIndexOf("javascript:",0)&&0!==t.lastIndexOf("data:",0))}function en(t,e,s){if(!eA.X())return!1;if(!(t instanceof tL))return i.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let r=a.$i;null!=e&&(r=a.Oi);let n=ev.m().q(t,r,e,s);if(n.L)for(let i=0;i<n.ge.length;i++)ex.rr().fe(tQ.Vr,[t.triggerId,e],n.ge[i]);return n.L}let eo=(t,e,i,s)=>{let a=i.getAttribute("href"),r=i.onclick;return n=>{if(null!=r&&"function"==typeof r&&!1===r.bind(i)(n))return;let o=ea(a).abButtonId;if(null!=o&&""!==o||(o=i.getAttribute("id")||void 0),null!=a&&""!==a&&0!==a.indexOf("#")){let r="blank"===(i.getAttribute("target")||"").toLowerCase().replace("_",""),l=s||t.openTarget===tR.OpenTarget.BLANK||r,u=()=>{en(t,o,a),ee.openUri(a,l,n)};l?u():t.Cr(e,u)}else en(t,o,a||void 0);return n.stopPropagation(),!1}},el=(t,e,i)=>{let s=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${i}['"]\\)`,a=t.match(new RegExp(s));if(a){let i=`${a[1]}.setAttribute("nonce", "${e}")`;return`${t.slice(0,a.index+a[0].length)};${i};${t.slice(a.index+a[0].length)}`}return null};function eu(t,e){var s;if(!eA.X())return!1;if(!(t instanceof tB))return i.error("button must be an InAppMessageButton object"),!1;if(!(e instanceof tR))return i.error(E),!1;let a=ev.m().Ji(t,e);if(a.L)for(let i=0;i<a.ge.length;i++)ex.rr().fe(tQ.Vr,[e.triggerId,null==(s=t.id)?void 0:s.toString()],a.ge[i]);return a.L}let eh={Je:t=>{let e=t.querySelectorAll(".ab-close-button, .ab-message-text, .ab-message-button");for(let t=0;t<e.length;t++)e[t].tabIndex=0;if(e.length>0){let i=e[0],s=e[e.length-1];t.addEventListener("keydown",e=>{let a=document.activeElement;e.keyCode===tU.lo&&(e.shiftKey||a!==s&&a!==t?e.shiftKey&&(a===i||a===t)&&(e.preventDefault(),s.focus()):(e.preventDefault(),i.focus()))})}},Ke:(t,e)=>{e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),e.setAttribute("aria-label","Modal Message"),t&&e.setAttribute("aria-labelledby",t)},He:(t,e,i,s)=>{if(t.buttons&&t.buttons.length>0){let a=document.createElement("div");a.className="ab-message-buttons",i.appendChild(a);let r=i.getElementsByClassName("ab-message-text")[0];null!=r&&(r.className+=" ab-with-buttons");let n=a=>r=>(t.Cr(i,()=>{eu(a,t),a.clickAction===tR.ClickAction.URI?es(a.uri||"",s||t.openTarget===tR.OpenTarget.BLANK,r):a.clickAction===tR.ClickAction.NEWS_FEED&&e()}),r.stopPropagation(),!1);for(let e=0;e<t.buttons.length;e++){let i=t.buttons[e],s=document.createElement("button");s.className="ab-message-button",s.setAttribute("type","button"),tO(s,"touchstart");let r=i.text;""===i.text&&(r="\xa0"),s.appendChild(document.createTextNode(r)),t.ve()||(s.style.backgroundColor=t6(i.backgroundColor),s.style.color=t6(i.textColor),s.style.borderColor=t6(i.borderColor)),s.onclick=n(i),a.appendChild(s)}}}};var ec={en:{NO_CARDS_MESSAGE:"We have no updates for you at this time.<br/>Please check again later.",FEED_TIMEOUT_MESSAGE:"Sorry, this refresh timed out.<br/>Please try again later."},ar:{NO_CARDS_MESSAGE:"ÙÙØ³ ÙØ¯ÙÙØ§ Ø£Ù ØªØØ¯ÙØ«. ÙØ±Ø¬Ù Ø§ÙØªØÙÙ Ù
رة Ø£Ø®Ø±Ù ÙØ§ØÙاÙ",FEED_TIMEOUT_MESSAGE:"ÙØ±Ø¬Ù ØªÙØ±Ø§Ø± اÙÙ
ØØ§ÙÙØ© ÙØ§ØÙا"},cs:{NO_CARDS_MESSAGE:"V tuto chv\xedli pro v\xe1s nem\xe1me ž\xe1dn\xe9 aktualizace.<br/>Zkontrolujte pros\xedm znovu pozdÄji.",FEED_TIMEOUT_MESSAGE:"Pros\xedm zkuste to znovu pozdÄji."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.<br/>Pr\xf8v venligst senere.",FEED_TIMEOUT_MESSAGE:"Pr\xf8v venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verf\xfcgbar.<br/>Bitte sp\xe4ter noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte sp\xe4ter noch einmal versuchen."}
1,es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.<br/>Por favor compru\xe9belo m\xe1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor int\xe9ntelo m\xe1s tarde."},"es-mx":{NO_CARDS_MESSAGE:"No tenemos ninguna actualizaci\xf3n.<br/>Vuelva a verificar m\xe1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, vuelva a intentarlo m\xe1s tarde."},et:{NO_CARDS_MESSAGE:"Uuendusi pole praegu saadaval.<br/>Proovige hiljem uuesti.",FEED_TIMEOUT_MESSAGE:"Palun proovige hiljem uuesti."},fi:{NO_CARDS_MESSAGE:"P\xe4ivityksi\xe4 ei ole saatavilla.<br/>Tarkista my\xf6hemmin uudelleen.",FEED_TIMEOUT_MESSAGE:"Yrit\xe4 my\xf6hemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise \xe0 jour disponible.<br/>Veuillez v\xe9rifier ult\xe9rieurement.",FEED_TIMEOUT_MESSAGE:"Veuillez r\xe9essayer ult\xe9rieurement."},he:{NO_CARDS_MESSAGE:".××× ×× × ×¢×××× ××. ×××§×©× ××××§ ש×× ×קר××",FEED_TIMEOUT_MESSAGE:".×××§×©× × ×¡× ×©×× ×קר××"},hi:{NO_CARDS_MESSAGE:"हमारॠपास à¤à¥à¤ à¤
पडà¥à¤ नहà¥à¤ हà¥à¤à¥¤ à¤à¥à¤ªà¤¯à¤¾ बाद मà¥à¤ फिर सॠà¤à¤¾à¤à¤ à¤à¤°à¥à¤.।",FEED_TIMEOUT_MESSAGE:"à¤à¥à¤ªà¤¯à¤¾ बाद मà¥à¤ दà¥à¤¬à¤¾à¤°à¤¾ पà¥à¤°à¤¯à¤¾à¤¸ à¤à¤°à¥à¤à¥¤."},id:{NO_CARDS_MESSAGE:"Kami tidak memiliki pembaruan. Coba lagi nanti.",FEED_TIMEOUT_MESSAGE:"Coba lagi nanti."},it:{NO_CARDS_MESSAGE:"Non ci sono aggiornamenti.<br/>Ricontrollare pi\xf9 tardi.",FEED_TIMEOUT_MESSAGE:"Riprovare pi\xf9 tardi."},ja:{NO_CARDS_MESSAGE:"ã¢ãããã¼ãã¯ããã¾ããã<br/>å¾ã§ããä¸åº¦ç¢ºèªãã¦ãã ããã",FEED_TIMEOUT_MESSAGE:"å¾ã§ããä¸åº¦è©¦ãã¦ãã ããã"},ko:{NO_CARDS_MESSAGE:"ì
ë°ì´í¸ê° ììµëë¤. ë¤ìì ë¤ì íì¸í´ 주ììì¤.",FEED_TIMEOUT_MESSAGE:"ëì¤ì ë¤ì ìëí´ ì£¼ììì¤."},ms:{NO_CARDS_MESSAGE:"Tiada kemas kini. Sila periksa kemudian.",FEED_TIMEOUT_MESSAGE:"Sila cuba kemudian."},nl:{NO_CARDS_MESSAGE:"Er zijn geen updates.<br/>Probeer het later opnieuw.",FEED_TIMEOUT_MESSAGE:"Probeer het later opnieuw."},no:{NO_CARDS_MESSAGE:"Vi har ingen oppdateringer.<br/>Vennligst sjekk igjen senere.",FEED_TIMEOUT_MESSAGE:"Vennligst pr\xf8v igjen senere."},pl:{NO_CARDS_MESSAGE:"Brak aktualizacji.<br/>ProszÄ sprawdziÄ ponownie p\xf3źniej.",FEED_TIMEOUT_MESSAGE:"ProszÄ spr\xf3bowaÄ ponownie p\xf3źniej."},pt:{NO_CARDS_MESSAGE:"N\xe3o temos atualiza\xe7\xf5es.<br/>Por favor, verifique mais tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, tente mais tarde."},"pt-br":{NO_CARDS_MESSAGE:"N\xe3o temos nenhuma atualiza\xe7\xe3o.<br/>Verifique novamente mais tarde.",FEED_TIMEOUT_MESSAGE:"Tente novamente mais tarde."},ru:{NO_CARDS_MESSAGE:"ÐÐ±Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ Ð½ÐµÐ´Ð¾ÑÑÑпнÑ.<br/>ÐожалÑйÑÑа, пÑовеÑÑÑе Ñнова позже.",FEED_TIMEOUT_MESSAGE:"ÐожалÑйÑÑа, повÑоÑиÑе попÑÑÐºÑ Ð¿Ð¾Ð·Ð¶Ðµ."},sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.<br/>
1F\xf6rs\xf6k igen senare.",FEED_TIMEOUT_MESSAGE:"F\xf6rs\xf6k igen senare."},th:{NO_CARDS_MESSAGE:"à¹à¸£à¸²à¹à¸¡à¹à¸¡à¸µà¸à¸²à¸£à¸à¸±à¸à¹à¸à¸ à¸à¸£à¸¸à¸à¸²à¸à¸£à¸§à¸à¸ªà¸à¸à¸ ายหลัà¸.",FEED_TIMEOUT_MESSAGE:"à¸à¸£à¸¸à¸à¸²à¸¥à¸à¸à¹à¸«à¸¡à¹à¸ ายหลัà¸."},uk:{NO_CARDS_MESSAGE:"ÐÐ½Ð¾Ð²Ð»ÐµÐ½Ð½Ñ Ð½ÐµÐ´Ð¾ÑÑÑпнÑ.<br/>лаÑка, пеÑевÑÑÑе Ð·Ð½Ð¾Ð²Ñ Ð¿ÑзнÑÑе.",FEED_TIMEOUT_MESSAGE:"ÐÑÐ´Ñ Ð»Ð°Ñка, ÑпÑобÑйÑе Ñе Ñаз пÑзнÑÑе."},vi:{NO_CARDS_MESSAGE:"Ch\xfang t\xf4i kh\xf4ng c\xf3 cáºp nháºt n\xe0o.<br/>Vui l\xf2ng kiá»m tra lại sau.",FEED_TIMEOUT_MESSAGE:"Vui l\xf2ng thá» lại sau."},"zh-hk":{NO_CARDS_MESSAGE:"æ«ææ²ææ´æ°.<br/>è«ç¨åå試.",FEED_TIMEOUT_MESSAGE:"è«ç¨åå試."},"zh-hans":{NO_CARDS_MESSAGE:"ææ¶æ²¡ææ´æ°.<br/>请ç¨ååè¯.",FEED_TIMEOUT_MESSAGE:"请ç¨ååè¯."},"zh-hant":{NO_CARDS_MESSAGE:"æ«ææ²ææ´æ°.<br/>è«ç¨åå試.",FEED_TIMEOUT_MESSAGE:"è«ç¨åå試."},"zh-tw":{NO_CARDS_MESSAGE:"æ«ææ²ææ´æ°.<br/>è«ç¨åå試.",FEED_TIMEOUT_MESSAGE:"è«ç¨åå試."},zh:{NO_CARDS_MESSAGE:"ææ¶æ²¡ææ´æ°.<br/>请ç¨ååè¯.",FEED_TIMEOUT_MESSAGE:"请ç¨ååè¯."}};class ed{constructor(t,e=!1){if(this.language=t,null!=t&&(t=t.toLowerCase()),null!=t&&null==ec[t]){let e=t.indexOf("-");e>0&&(t=t.substring(0,e))}if(null==ec[t]){let s="Braze does not yet have a localization for language "+t+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.";e?i.error(s):i.info(s),t="en"}this.language=t}get(t){return ec[this.language][t]}wo(){switch(this.language){case"ar":case"he":case"fa":return"rtl";default:return"ltr"}}}let ep={t:!1,i:null,m:()=>{if(ep.o(),!ep.i){let t=to.language,e=!1;eA.nn(ek.zn)&&(t=eA.nn(ek.zn),e=!0),ep.i=new ed(t,e)}return ep.i},o:()=>{ep.t||(eA.g(ep),ep.t=!0)},destroy:()=>{ep.i=null,ep.t=!1}};function eb(t,e,s){let a;if(!eA.X())return;if(t4(),null==t)return!1;if(t instanceof t_)return i.info("User received control for a multivariate test, logging to Braze servers."),t7(t),!0;if(!(t instanceof tR)||t.constructor===tR)return!1;t.Nh();let r=t instanceof tL;if(r&&!t.trusted&&!eA.tr())return i.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),!1;if(null==e&&(e=document.body),t.$e()&&e.querySelectorAll(".ab-modal-interactions").length>0)return i.info(`Cannot show in-app message ${t.message} because another message is being shown.`),!1;if(ee.fo()){let e=ee.co();if(e===et.PORTRAIT&&t.orientation===tR.Orientation.LANDSCAPE||e===et.LANDSCAPE&&t.orientation===tR.Orientation.PORTRAIT){let s=e===et.PORTRAIT?"portrait":"landscape",a=t.orientation===tR.Orientation.PORTRAIT?"portrait":"landscape";return i.info(`Not showing ${a} in-app message ${t.message} because the screen is currently ${s}`),!1}}if(!eA.tr()){let e=!1;if(t.buttons&&t.buttons.length>0){let i=t.buttons;for(let t=0;t<i.length;t++)i[t].clickAction===tR.ClickAction.URI&&(e=er(i[t].uri))}else t.clickAction===tR.ClickAction.URI&&(e=er(t.uri));if(e)return i.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),!1}let o=document.createElement("div");if(o.className="ab-iam-root v3",o.className+=(a="",t.animateIn&&(a+=" ab-animate-in"),t.animateOut&&(a+=" ab-animate-out"),t instanceof tF?a+=" ab-effect-fullscreen":t instanceof tL?a+=" ab-effect-html":t instanceof t$?a+=" ab-effect-modal":t instanceof tq&&(a+=" ab-effect-slide"),a),o.setAttribute("role","complementary"),t.Ce()&&(o.id=t.htmlId),eA.nn(ek.jo)&&(o.style.zIndex=(eA.nn(ek.jo)+1).toString()),e.appendChild(o),t.ve()){let e=document.createElement("style");e.innerHTML=t.css,e.id=t.we(),null!=eA.nn(ek.bo)&&e.setAttribute("nonce",eA.nn(ek.bo)),document.getElementsByTagName("head")[0].appendChild(e)}let l=t instanceof tq,u=function(t,e,s,a,r,o,l,u=document.body,h="ltr"){if(t.ke=document.activeElement,t instanceof tL)return function(t,e,s,a,r,n){let o=document.createElement("iframe");o.setAttribute("title","Modal Message"),r&&(o.style.zIndex=(r+1).toString());let l=null;if(null!=n){(l=document.createElement("html")).innerHTML=t.message||"";let e=l.getElementsByTagName("style");for(let t=0;t<e.length;t++)e[t].setAttribute("nonce",n);let i=l.getElementsByTagName("script");for(let t=0;t<i.length;t++){i[t].setAttribute("nonce",n),i[t].innerHTML=i[t].innerHTML.replace(/<style>/g,`<style nonce='${n}'>`);let e=el(i[t].innerHTML,n,"script");e&&(i[t].innerHTML=e);let s=el(i[t].innerHTML,n,"style");s&&(i[t].innerHTML=s)}}if(o.srcdoc=l?l.innerHTML:t.message||"",o.onload=()=>{let r=o.contentWindow;r.focus();let l=r.document.getElementsByTagName("head")[0];if(null!=l){if(t.ve()){let e=document.createElement("style");e.innerHTML=t.css||"",e.id=t.we()||"",null!=n&&e.setAttribute("nonce",n),l.appendChild(e)}let e=r.document.createElement("base");null!=e&&(e.setAttribute("target","_parent"),l.appendChild(e))}let u=r.document.getElementsByTagName("title");u&&u.length>0&&o.setAttribute("title",u[0].textContent||"");let h=((t,e,s)=>{let a={closeMessage:function(){t.Cr(e)},logClick:function(){en(t,...arguments)},display:{},web:{}},r=function(){return function(){let t=arguments;Promise.resolve().then(function(){return im}).then(e=>{eA.so()?e.requestPushPermission(...Array.prototype.slice.call(t)):i.error(C)})}},n={requestImmediateDataFlush:function(){let t=arguments;Promise.resolve().then(function(){return it}).then(({requestImmediateDataFlush:e})=>{eA.so()?e(...Array.prototype.slice.call(t)):i.error(C)})},logCustomEvent:function(){let t=arguments;Promise.resolve().then(function(){return e8}).then(({logCustomEvent:e})=>
1{if(!eA.so())return void i.error(C);e(...Array.prototype.slice.call(t))})},logPurchase:function(){let t=arguments;Promise.resolve().then(function(){return e7}).then(({logPurchase:e})=>{if(!eA.so())return void i.error(C);e(...Array.prototype.slice.call(t))})},unregisterPush:function(){let t=arguments;Promise.resolve().then(function(){return iv}).then(({unregisterPush:e})=>{eA.so()?e(...Array.prototype.slice.call(t)):i.error(C)})},requestPushPermission:r(),changeUser:function(){let t=arguments;Promise.resolve().then(function(){return e2}).then(({changeUser:e})=>{if(!eA.so())return void i.error(C);e(...Array.prototype.slice.call(t))})}},o=function(t){return function(){n[t](...Array.prototype.slice.call(arguments))}};for(let t of b(n))a[t]=o(t);let l=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup"],u=function(t){return function(){let e=ei();e&&e[t](...Array.prototype.slice.call(arguments))}},h={};for(let t=0;t<l.length;t++)h[l[t]]=u(l[t]);a.getUser=function(){return h};let c={showFeed:s},d=function(i){return function(){let s=arguments;t.Cr(e,function(){c[i](...Array.prototype.slice.call(s))})}},p=a.display;for(let t of b(c))p[t]=d(t);let f={registerAppboyPushMessages:r()},m=function(t){return function(){f[t](...Array.prototype.slice.call(arguments))}},g=a.web;for(let t of b(f))g[t]=m(t);return a})(t,o,e);if(r.appboyBridge=h,r.brazeBridge=h,t.xe!==tR.Be.Me){let e=r.document.getElementsByTagName("a");for(let i=0;i<e.length;i++)e[i].onclick=eo(t,o,e[i],a);let i=r.document.getElementsByTagName("button");for(let e=0;e<i.length;e++)i[e].onclick=eo(t,o,i[e],a)}let c=r.document.body;if(null!=c){t.Ce()&&(c.id=t.htmlId||"");let e=document.createElement("hidden");e.onclick=h.closeMessage,e.className="ab-programmatic-close-button",c.appendChild(e)}r.dispatchEvent(new CustomEvent("ab.BridgeReady")),-1!==o.className.indexOf("ab-start-hidden")&&(o.className=o.className.replace("ab-start-hidden",""),s(o))},o.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",to.OS===ts.io){let e=document.createElement("div");return e.className="ab-ios-scroll-wrapper",e.appendChild(o),t.Re=e,e}return t.Re=o,o}(t,e,s,r,o,l);let c=function(t,e,s,a,r,o,l=document.body,u="ltr"){var h;let c=null,d=document.createElement("div");d.dir=u,d.className="ab-in-app-message ab-start-hidden ab-background",o&&(d.style.zIndex=(o+1).toString()),t.$e()&&(d.className+=" ab-modal-interactions",d.setAttribute("tabindex","-1")),t.ve()||(d.style.color=t6(t.textColor),d.style.backgroundColor=t6(t.backgroundColor),null==(h=t.backgroundColor)||isNaN(h=parseInt(h.toString()))||(0xff000000&h)>>>24!=0||(d.className+=" ab-no-shadow"));let p=()=>{-1!==d.className.indexOf("ab-start-hidden")&&(d.className=d.className.replace("ab-start-hidden",""),document.querySelectorAll(".ab-iam-img-loading").length>0?a(`Cannot show in-app message ${t.message} because another message is being shown.`,tR.Le.ze):s(d))},b=(e=!0)=>{let s=document.querySelectorAll(".ab-iam-root");s&&0!==s.length||(s=l.querySelectorAll(".ab-iam-root")),s&&s.length>0&&(s[0].classList.remove("ab-iam-img-loading"),c&&(clearTimeout(c),c=null),e?p():i.error(`Cannot show in-app message ${t.message} because the image failed to load.`))};t.imageStyle===tR.ImageStyle.GRAPHIC&&(d.className+=" graphic"),t.orientation===tR.Orientation.LANDSCAPE&&(d.className+=" landscape"),null!=t.buttons&&0===t.buttons.length&&(t.clickAction!==tR.ClickAction.NONE&&(d.className+=" ab-clickable"),d.onclick=i=>(t.Cr(d,()=>{t9(t),t.clickAction===tR.ClickAction.URI?es(t.uri||"",r||t.openTarget===tR.OpenTarget.BLANK,i):t.clickAction===tR.ClickAction.NEWS_FEED&&e()}),i.stopPropagation(),!1));let f=t8("Close Message",t.ve()?void 0:t6(t.closeButtonColor),()=>{t.Cr(d)},u);d.appendChild(f),o&&(f.style.zIndex=(o+2).toString());let m=document.createElement("div");m.className="ab-message-text",m.dir=u;let g=(t.messageAlignment||t.qe).toLowerCase();m.className+=" "+g+"-aligned";let v=!1,w=document.createElement("div");if(w.className="ab-image-area",t.imageUrl){if(t.cropType===tR.CropType.CENTER_CROP){let e=document.createElement("span");e.className="ab-center-cropped-img",e.style.backgroundImage="url("+t.imageUrl+")",e.setAttribute("role","img"),e.setAttribute("aria-label","Modal Image"),t.Ae(e),w.appendChild(e)}else{let e=document.createElement("img");if(e.setAttribute("src",t.imageUrl),t.Ae(e),0===document.querySelectorAll(".ab-iam-img-loading").length){v=!0;let t=document.querySelectorAll(".ab-iam-root");t&&t.length>0&&t[0].classList.add("ab-iam-img-loading"),c=window.setTimeout(()=>{b(!1)},6e4),e.onload=()=>{b()},e.onerror=()=>{b(!1)}}w.appendChild(e)}d.appendChild(w),m.className+=" ab-with-image"}else if(t.icon){w.className+=" ab-icon-area";let e=document.createElement("span");e.className="ab-icon",t.ve()||(e.style.backgroundColor=t6(t.iconBackgroun
1dColor),e.style.color=t6(t.iconColor));let i=document.createElement("i");i.className="fa",i.appendChild(document.createTextNode(t.icon)),i.setAttribute("aria-hidden","true"),e.appendChild(i),w.appendChild(e),d.appendChild(w),m.className+=" ab-with-icon"}if(tO(m,"touchstart"),t.header&&t.header.length>0){let e=document.createElement("h1");e.className="ab-message-header",t.De=n.W(),e.id=t.De;let i=(t.headerAlignment||tR.TextAlignment.CENTER).toLowerCase();e.className+=" "+i+"-aligned",t.ve()||(e.style.color=t6(t.headerTextColor)),e.appendChild(document.createTextNode(t.header)),m.appendChild(e)}return m.appendChild(t.Ge()),d.appendChild(m),v||p(),t.Re=d,d}(t,e,s,a,r,o,u,h);if(t instanceof tF||t instanceof t$){let i=t instanceof tF?"ab-fullscreen":"ab-modal";c.className+=` ${i} ab-centered`,eh.He(t,e,c,r),eh.Je(c),eh.Ke(t.De,c)}else if(t instanceof tq){let e,i;c.className+=" ab-slideup";let s=c.getElementsByClassName("ab-close-button")[0];if(null!=s){let e=tz("0 0 11.38 19.44","M11.38 9.72l-9.33 9.72L0 17.3l7.27-7.58L0 2.14 2.05 0l9.33 9.72z",t.ve(
1)?void 0:t6(t.closeButtonColor));e.setAttribute("class","ab-chevron"),s.appendChild(e)}tP(c,tT.U,t=>{c.className+=" ab-swiped-left",null!=s&&null!=s.onclick&&s.onclick(t)}),tP(c,tT.V,t=>{c.className+=" ab-swiped-right",null!=s&&null!=s.onclick&&s.onclick(t)}),t.slideFrom===tR.SlideFrom.TOP?(e=tT.Oe,i=" ab-swiped-up"):(e=tT.Qe,i=" ab-swiped-down"),tP(c,e,t=>{c.className+=i,null!=s&&null!=s.onclick&&s.onclick(t)})}return c}(t,()=>{Promise.resolve().then(function(){return iu}).then(t=>{eA.so()?t.showFeed():i.error(C)})},e=>{if(t.$e()&&t.do()){let i=document.createElement("div");if(i.className="ab-page-blocker",t.ve()||(i.style.backgroundColor=t6(t.frameColor)),eA.nn(ek.jo)&&(i.style.zIndex=eA.nn(ek.jo).toString()),o.appendChild(i),!eA.nn(ek.Lh)){let s=new Date().valueOf();i.onclick=i=>{new Date().valueOf()-s>tR.fh&&(t.Cr(e),i.stopPropagation())}}o.appendChild(e),e.focus(),t.Oh(o)}else if(l){let i=document.querySelectorAll(".ab-slideup"),s=null;for(let t=i.length-1;t>=0;t--)if(i[t]!==e){s=i[t];break}if(t.slideFrom===tR.SlideFrom.TOP){let t=0;null!=s&&(t=s.offsetTop+s.offsetHeight),e.style.top=Math.max(t,0)+"px"}else{let t=0;null!=s&&(t=(window.innerHeight||document.documentElement.clientHeight)-s.offsetTop),e.style.bottom=Math.max(t,0)+"px"}}else r&&!eA.nn(ek.Lh)&&tM(e)&&e.contentWindow&&e.contentWindow.addEventListener("keydown",function(e){e.keyCode===tU.mh&&t.closeMessage()});t7(t),t.dismissType===tR.DismissType.AUTO_DISMISS&&setTimeout(()=>{o.contains(e)&&t.Cr(e)},t.duration),"function"==typeof s&&s()},t=>{i.info(t)},eA.nn(ek.ho),eA.nn(ek.jo),eA.nn(ek.bo),e,ep.m().wo());return(r||l)&&(o.appendChild(u),t.Oh(o)),!0}function ef(t){if(eA.X())return"function"!=typeof t?null:ev.m().Mi(function(e){return t(e[0]),e.slice(1)})}class em{constructor(t,e,i,s){this.$t=t,this.oi=e,this.u=i,this.yt=s,this.$t=t,this.oi=e,this.u=i,this.yt=s,this._e=new A,eA.Ht(this._e),this.Xe=1e3,this.We=6e4,this.Ye=null}Ze(){return this._e}Mi(t){return this._e.Nt(t)}_i(){return this.Ye}Pi(t){this.Ye=t}q(t,e,s,r){let n,o=new ty;if(t instanceof t_)n={trigger_ids:[t.triggerId]};else{if(e===a.$i||t instanceof tL&&e===a.Oi){if(!t.p(r))return i.info("This in-app message has already received a click. Ignoring analytics event."),o}else if(e===a.Xi&&!t.K())return i.info("This in-app message has already received an impression. Ignoring analytics event."),o;n=this.Hi(t)}return null==n?o:(t.messageExtras&&(n.message_extras=t.messageExtras),null!=s&&(n.bid=s),e_.q(e,n))}Ji(t,e){let s=new ty;if(!t.p())return i.info("This in-app message button has already received a click. Ignoring analytics event."),s;let r=this.Hi(e);return null==r?s:t.id===tB.Ki?(i.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),s):(null!=t.id&&(r.bid=t.id),e_.q(a.Oi,r))}Li(t){let e=t.messageFields;return null!=e&&e.is_push_primer||!1}Qi(t){let e;if(!(t instanceof tR))return;let i=t=>{if(!t)return;let e=F(t);return q(e)?B(L.Vi,"In-App Message"):function t(e){if(!e||!Q(e))return!1;let i=R.properties.type,s=R.properties.oo,a=e[i];return a===R.types.ro?$(t,e[s]):a===R.types.requestPushPermission}(e)&&!tx.Wi()?B(L.Yi,"In-App Message"):void 0};if(this.Li(t)&&!tx.Wi())return"In-App Message contains a push prompt, but is not eligible for a push prompt. Ignoring.";for(let s of t.buttons||[])if(s.clickAction===tR.ClickAction.URI&&s.uri&&Y.test(s.uri)&&(e=i(s.uri)))return e;return t.clickAction===tR.ClickAction.URI&&t.uri&&Y.test(t.uri)?i(t.uri):void 0}Zi(t,e,s,a){let r=this.$t;if(!r)return;let n=r.Ir(!1,!1),o=r.$s(n);o.template={trigger_id:t.triggerId,trigger_event_type:e},null!=s&&(o.template.data=s.Mr());let l=r.Ps(o,tm._s.Tr);r.Gs(o,(r=-1)=>{if(!this.$t)return;let n=new Date().valueOf();tm.Hs(this.u,tm._s.Tr,n),-1!==r&&l.push(["X-Braze-Req-Tokens-Remaining",r.toString()]),tv.Ks({url:`${this.$t.Os()}/template/`,data:o,headers:l,L:e=>{if(tm.Ws(this.u,tm._s.Tr,1),!this.$t.Qs(o,e,l))return void("function"==typeof t.Br&&t.Br());if(this.$t.Vs(),null==e||null==e.templated_message)return;let s=e.templated_message;if(s.type!==t1.Er._r)return;let a=tj(s.data);if(null==a)return;let r=this.Qi(a);if(r)return i.error(r),void("function"==typeof t.Br&&t.Br());"function"==typeof t.Gr&&t.Gr(a)},error:i=>{let r=`getting user personalization for message ${t.triggerId}`;if(new Date().valueOf()-t.Nr<t.Or){tm.ti(this.u,tm._s.Tr);let i=Math.min(t.Or,this.We),n=this.Xe;null==a&&(a=n);let o=Math.min(i,tw(n,3*a));r+=`. Retrying in ${o} ms`,setTimeout(()=>{this.Zi(t,e,s,o)},o)}this.$t.Ys(i,r)}})},tm._s.Tr)}Hi(t){if(null==t.triggerId)return i.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;let e={};return null!=t.triggerId&&(e.trigger_ids=[t.triggerId]),e}je(t){return!!this.u&&!(!(t&&t instanceof tR&&t.constructor!==tR)||t instanceof t_)&&this.u.I(tl.C.Xr,t.Y())}Se(){let t;if(!this.u)return null;let e=this.u.j(tl.C.Xr);if(!e)return null;switch(e.type){case tR.Be.Hr:t=tF.Jr(e);break;case tR.Be.Kr:case tR.Be.Me:case tR.Be.Ve:t=tL.Jr(e);break;case tR.Be.Lr:case tR.Be.Ue:t=t$.Jr(e);break;case tR.Be.Qr:t=tq.Jr(e)}return t&&this.Ur(),t}Ur(){this.u&&this.u.ii(tl.C.Xr)}}let eg={i:null,t:!1,m:()=>
1(eg.o(),eg.i||(eg.i=new em(eA.nr(),eA.zr(),eA.l(),eA.er())),eg.i),o:()=>{eg.t||(eA.g(eg),eg.t=!0)},destroy:()=>{eg.i=null,eg.t=!1}};var ev=eg;class ew{constructor(t,e,i,s,a){this.triggerId=t,this.Gr=e,this.Br=i,this.Nr=s,this.Or=a,this.triggerId=t,this.Gr=e,this.Br=i,this.Nr=s,this.Or=a}static fromJson(t,e,i,s,a){return null==t||null==t.trigger_id?null:new ew(t.trigger_id,e,i,s,a)}}class ey extends tc{constructor(t,e,i,s,a){super(),this.tg=t,this.Bt=e,this.u=i,this.Ui=s,this.ig=a,this.tg=t,this.Bt=e,this.u=i,this.Ui=s,this.ig=a,this.sg=[],this.eg=[],this.hg=null,this.ng={},this.og={},this.triggers=[],this.lg=0,this.ag(),this.gg()}fg(){if(this.u){this.hg=this.u.j(tl.C.iE)||this.hg,this.ng=this.u.j(tl.C.EE)||this.ng,this.og=this.u.j(tl.C.aE)||this.og;for(let t=0;t<this.triggers.length;t++){let e=this.triggers[t];e.id&&null!=this.og[e.id]&&e.ad(this.og[e.id])}}}ag(){if(!this.u)return;this.lg=this.u.j(tl.C.oE)||0;let t=this.u.j(tl.C.rE)||[],e=[];for(let i=0;i<t.length;i++)e.push(t1.qn(t[i]));this.triggers=e,this.fg()}gg(){let t=this,e=function(e,i,s,a,r){return function(){t.cg(e,i,s,a,r)}},i={};for(let t of this.triggers)t.id&&(i[t.id]=t);let s=!1;for(let t=0;t<this.triggers.length;t++){let a=this.triggers[t];if(a.id&&null!=this.ng[a.id]){let t=this.ng[a.id],r=[];for(let s=0;s<t.length;s++){let n=t[s],o=a.ud(n.Nr||0);if(o>0){let t,s;r.push(n),null!=n.ug&&(t=n.ug),null!=n.dg&&P.RE(n.dg)&&(s=P.qn(n.dg));let l=[];if(n.pg&&c(n.pg))for(let t=0;t<n.pg.length;t++){let e=i[n.pg[t]];null!=e&&l.push(e)}this.eg.push(window.setTimeout(e(a,n.Nr||0,t,s,l),o))}}this.ng[a.id].length>r.length&&(this.ng[a.id]=r,s=!0,0===this.ng[a.id].length&&delete this.ng[a.id])}}s&&this.u&&this.u.I(tl.C.EE,this.ng)}mg(){if(!this.u)return;let t=[];for(let e=0;e<this.triggers.length;e++)t.push(this.triggers[e].Y());this.lg=new Date().valueOf(),this.u.I(tl.C.rE,t),this.u.I(tl.C.oE,this.lg)}bg(){this.u&&((this.u.j(tl.C.oE)||0)>this.lg?this.ag():this.fg())}Ss(t){let e=!1;if(null!=t&&t.triggers){let s;this.ig.Ur(),this.fg();let a={},r={};this.triggers=[];for(let i=0;i<t.triggers.length;i++){let s=t1.fromJson(t.triggers[i]);if(s){s.id&&null!=this.og[s.id]&&(s.ad(this.og[s.id]),a[s.id]=this.og[s.id]),s.id&&null!=this.ng[s.id]&&(r[s.id]=this.ng[s.id]);for(let t=0;t<s.sd.length;t++)if(s.sd[t].sc(tQ.kt,null)){e=!0;break}this.triggers.push(s)}}f(this.og,a)||(this.og=a,this.u&&this.u.I(tl.C.aE,this.og)),f(this.ng,r)||(this.ng=r,this.u&&this.u.I(tl.C.EE,this.ng)),this.mg(),e&&(i.info("Trigger with test condition found, firing test."),this.fe(tQ.kt)),this.fe(tQ.OPEN);let n=this.sg;this.sg=[];for(let t=0;t<n.length;t++)s=Array.prototype.slice.call(n[t]),this.fe(...s)}}cg(t,e,s,a,r){let n,o,l,u=a=>{this.fg();let r=new Date().valueOf();t.dd(e)||(!1===navigator.onLine&&t.type===t1.Er._r&&a.imageUrl?i.info(`Not showing ${t.type} trigger action ${t.id} due to offline state.`):t.nd(r)&&this.wg(t,r,s)?0===this.Bt.ic()?i.info(`Not displaying trigger ${t.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.Bt.Rt([a]),this.yg(t,r)):i.info(`Not displaying trigger ${t.id} because display time fell outside of the acceptable time window.`))},h=()=>{this.fg();let n=r.pop();if(null!=n)if(this.Tg(n,e,s,a,r),n.dd(e)){let t=`Server aborted in-app message display, but the timeout on fallback trigger ${n.id} has already elapsed.`;r.length>0&&(t+=" Continuing to fall back."),i.info(t),h()}else{i.info(`Server aborted in-app message display. Falling back to lower priority ${n.type} trigger action ${t.id}.`);let o=1e3*n.ed-(new Date().valueOf()-e);o>0?this.eg.push(window.setTimeout(()=>{this.cg(n,e,s,a,r)},o)):this.cg(n,e,s,a,r)}};switch(t.type){case t1.Er._r:if(null==(n=tj(t.data))){i.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`);break}if(o=this.ig.Qi(n)){i.error(o),h();break}u(n);break;case t1.Er.md:if(null==(l=ew.fromJson(t.data,u,h,e,t.Or||0))){i.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`);break}this.ig.Zi(l,s,a);break;default:i.error(`Trigger ${t.id} was of unexpected type ${t.type}, ignoring.`)}}fe(t,e=null,s){if(!h(tQ,t,"Cannot fire trigger action.","TriggerEvents"))return;if(this.Ui&&this.Ui.Uu())return i.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.sg.push(arguments);this.bg();let a=new Date().valueOf(),r=a-(this.hg||0),n=!0,o=!0,l=[];for(let i=0;i<this.triggers.length;i++){let s=this.triggers[i],r=a+1e3*s.ed;if(s.nd(r)&&(null==s.startTime||s.startTime.valueOf()<=a)&&(null==s.endTime||s.endTime.valueOf()>=a)){let i=!1;for(let a=0;a<s.sd.length;a++)if(s.sd[a].sc(t,e)){i=!0;break}i&&(n=!1,this.wg(s,r,t)&&(o=!1,l.push(s)))}}if(n)return void i.info(`Trigger event ${t} did not match any trigger conditions.`);if(o)return void i.info(`Ignoring ${t} trigger event because a trigger was displayed ${r/1e3}s ago.`);l.sort((t,e)=>t.priority-e.priority);let u=l.pop();null!=u&&(i.info(`Firing ${u.type} trigger action ${u.id} from trigger event ${t}.`),this.Tg(u,a,t,s,l),0===u.ed?this.cg(u,a,t,s,l):this.eg.push(window.setTimeout(()=>{this.cg(u,a,t,s,l)},1e3*u.ed)))}changeUser(t=!1){if(this.triggers=[],this.u&&this.u.ii(tl.C.rE),!t){this.sg=[],this.hg=null,this.og={},this.ng={};for(let t=0;t<this.eg.length;t++)clearTimeout(this.eg[t]);this.eg=[],this.u&&(this.u.ii(tl.C.iE),this.u.ii(tl.C.aE),this.u.ii(tl.C.EE))}}clearData(){this.triggers=[],this.hg=null,this.og={},this.ng={};for(let t=0;t<this.eg.length;t++)clearTimeout(this.eg[t]);this.eg=[]}wg(t,e,s){if(null==this.hg)return!0;
1if(s===tQ.kt)return i.info("Ignoring minimum interval between trigger because it is a test type."),!0;let a=t.hd;return null==a&&(a=this.tg),e-this.hg>=1e3*a}Tg(t,e,i,s,a){let r;this.fg(),t.id&&(this.ng[t.id]=this.ng[t.id]||[]);let n={};n.Nr=e,n.ug=i,null!=s&&(r=s.Y()),n.dg=r;let o=[];for(let t of a)t.id&&o.push(t.id);n.pg=o,t.id&&this.ng[t.id].push(n),this.u&&this.u.I(tl.C.EE,this.ng)}yg(t,e){this.fg(),t.ad(e),this.hg=e,t.id&&(this.og[t.id]=e),this.u&&(this.u.I(tl.C.iE,e),this.u.I(tl.C.aE,this.og))}}let ex={t:!1,provider:null,rr:()=>(ex.o(),ex.provider||ex.rg(),ex.provider),rg:()=>{if(!ex.provider){let t=eA.nn(ek.Oo);ex.provider=new ey(null!=t?t:30,ev.m().Ze(),eA.l(),eA.cr(),ev.m()),eA.ar(ex.provider)}},o:()=>{ex.t||(ex.rg(),eA.g(ex),ex.t=!0)},destroy:()=>{ex.provider=null,ex.t=!1}};class eE{constructor(t,e,i,s,a){this.endpoint=t,this.Vn=e,this.publicKey=i,this.Vl=s,this.cl=a,this.endpoint=t||null,this.Vn=e||null,this.publicKey=i||null,this.Vl=s||null,this.cl=a||null}Y(){return{e:this.endpoint,c:this.Vn,p:this.publicKey,u:this.Vl,v:this.cl}}static qn(t){return new eE(t.e,w(t.c),t.p,t.u,t.v)}}class eS{constructor(t,e){this.qt=t,this.u=e,this.qt=t,this.u=e}getUserId(){let t=this.u.tu(tl.iu.su);if(null==t)return null;let e=t.eu,i=M(e);if(i>tt.lr){for(;i>tt.lr;)i=M(e=e.slice(0,e.length-1));t.eu=e,this.u.uu(tl.iu.su,t)}return e}ou(t){let e=null==this.getUserId();this.u.uu(tl.iu.su,new U(t)),e&&this.u.ru(t)}setCustomUserAttribute(t,e){if(this.qt.hu(t))return i.info('Custom Attribute "'+t+'" is blocklisted, ignoring.'),!1;let s={};return s[t]=e,this.nu(tt.lu,s,!0)}nu(t,e,s=!1,a=!1){let r=this.u.mu(this.getUserId(),t,e),n="",o=t,l=e;return s&&(n=" custom","object"==typeof e&&(o=Object.keys(e)[0],"object"==typeof(l=e[o])&&(l=JSON.stringify(l,null,2)))),!a&&r&&i.info(`Logged${n} attribute ${o} with value ${l}`),r}Pn(t,e,s,a,r){this.nu("push_token",t,!1,!0),this.nu("custom_push_public_key",s,!1,!0),this.nu("custom_push_user_auth",a,!1,!0),this.nu("custom_push_vapid_public_key",r,!1,!0);let n=o.ts.Zt,l=new o(n,i),u=new eE(t,e,s,a,r);this.u.I(tl.C.In,u.Y()),l.setItem(n.hs.cu,n.ie,!0)}Sn(t){if(this.nu("push_token",null,!1,!0),this.nu("custom_push_public_key",null,!1,!0),this.nu("custom_push_user_auth",null,!1,!0),this.nu("custom_push_vapid_public_key",null,!1,!0),t){let t=o.ts.Zt,e=new o(t,i);this.u.I(tl.C.In,!1),e.setItem(t.hs.cu,t.ie,!1)}}}let ek={Eo:"allowCrawlerActivity",_o:"baseUrl",Io:"noCookies",Aa:"disablePushTokenMaintenance",Ao:"enableLogging",No:"enableSdkAuthentication",qa:"manageServiceWorkerExternally",Oo:"minimumIntervalBetweenTriggerActionsInSeconds",Ro:"sessionTimeoutInSeconds",Po:"appVersion",Lo:"appVersionNumber",Ma:"serviceWorkerLocation",ka:"safariWebsitePushId",zn:"localization",bo:"contentSecurityNonce",Do:"allowUserSuppliedJavascript",jo:"inAppMessageZIndex",ho:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",en:"openNewsFeedCardsInNewTab",Lh:"requireExplicitInAppMessageDismissal",Mo:"doNotLoadFontAwesome",Uo:"deviceId",_a:"serviceWorkerScope",Wo:"sdkFlavor"};class eC{constructor(){this.rn="",this.Bo="",this.Vo=void 0,this.Ko=null,this.on=null,this.$t=null,this.Ui=null,this.qt=null,this.oi=null,this.u=null,this.yt=null,this.Go="",this.isInitialized=!1,this.$o=!1,this.qo=new A,this.Jo=new A,this.options={},this.Yo=[],this.Ho=[],this._e=[],this.Bo="5.5.0"}Xo(t){this.qo.Nt(t)}Sh(t){this.Jo.Nt(t)}initialize(t,e){if(this.so())return i.info("Braze has already been initialized with an API key."),!0;this.options=e||{};let s=this.nn(ek.Ao),a=ea(ee.Zo());if(a&&"true"===a.brazeLogging&&(s=!0),i.init(s),i.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),null==t||""===t||"string"!=typeof t)return i.error("Braze requires a valid API key to be initialized."),!1;this.rn=t;let r=this.nn(ek._o);if(null==r||""===r||"string"!=typeof r)return i.error("Braze requires a valid baseUrl to be initialized."),!1;!1===/^https?:/.test(r)&&(r=`https://${r}`);let n=r;if((r=document.createElement("a")).href=n,"/"===r.pathname&&(r=`${r}api/v3`),this.Go=r.toString(),to.Qo&&!this.nn(ek.Eo))return i.info("Ignoring activity from crawler bot "+navigator.userAgent),this.$o=!0,!1;let o=this.nn(ek.Io)||!1;if(this.u=tA.Wh(t,o),o&&this.u.Vh(t),new tu.ee(null,!0).br(tl.se))return i.info("Ignoring all activity due to previous opt out"),this.$o=!0,!1;for(let t of b(this.options))-1===u(l).indexOf(t)&&i.warn(`Ignoring unknown initialization option '${t}'.`);if(null!=this.nn(ek.Wo)){let t=this.nn(ek.Wo);-1!==["mparticle","wordpress","tealium"].indexOf(t)?this.Vo=t:i.error("Invalid sdk flavor passed: "+t)}let d=this.nn(l.So);if(null!=d)if(c(d)){let t=[];for(let e=0;e<d.length;
1e++)h(tp,d[e],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&t.push(d[e]);d=t}else i.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),d=null;let p=this.nn(ek.Uo);if(p){let t=new U(p);this.u.uu(tl.iu.Uo,t)}this.on=new tb(this.u,d),this.qt=new tk(this.u),this.yt=new eS(this.qt,this.u),this.oi=new tC(this.u,this.yt,this.qt,this.nn(ek.Ro));let f=new A;return this.Ko=new th(this.u,this.nn(ek.No),f),this.Ht(f),this.$t=new tg(this.on,this.u,this.Ko,this.yt,this.oi,this.qt,this.rn,this.Go,this.Bo,this.Vo||"",this.nn(ek.Po),this.nn(ek.Lo)),this.Ui=new tE(this.rn,this.Go,this.oi,this.on,this.yt,this.qt,this.u,t=>{if(this.so())for(let e of this.gr())e.Ss(t)},this.Ko,this.$t),this.Ui.initialize(),o||this.u.Kh(),i.info(`Initialized for the Braze backend at "${this.nn(ek._o)}" with API key "${this.rn}".`),ex.o(),this.qt.bi(()=>{var t;this.isInitialized&&(null==(t=this.qt)?void 0:t.mi())&&Promise.resolve().then(function(){return ik}).then(t=>{this.isInitialized&&(0,t.default)()})}),this.Ui.mr(()=>{var t;this.isInitialized&&(null==(t=this.qt)?void 0:t.mi())&&Promise.resolve().then(function(){return ik}
1).then(t=>{this.isInitialized&&(0,t.default)(void 0,void 0,!0)})}),this.qo.Rt(this.options),this.isInitialized=!0,window.dispatchEvent(new CustomEvent("braze.initialized")),!0}destroy(t){if(i.destroy(),this.so()){for(let t of(this.Jo.Rt(),this.Jo.removeAllSubscriptions(),this.Yo))t.destroy();for(let t of(this.Yo=[],this.Ho))t.clearData(!1);this.Ho=[],this.removeAllSubscriptions(),this._e=[],null!=this.Ui&&this.Ui.destroy(),this.Ui=null,this.Ko=null,this.on=null,this.$t=null,this.qt=null,this.oi=null,this.yt=null,this.options={},this.Vo=void 0,this.isInitialized=!1,this.$o=!1,t&&(this.u=null)}}X(){return!this.$h()&&(!!this.so()||(console.warn(C),!1))}ba(){return this.rn}Sr(){return this.Ko}Os(){return this.Go}te(){return this.on}nr(){return this.$t}nn(t){return this.options[t]}gr(){return this.Ho}cr(){return this.Ui}ir(){return this.qt}zr(){return this.oi}l(){return this.u}pr(){if(this.yt&&this.Ui)return new tt(this.yt,this.Ui)}er(){return this.yt}tr(){return!0===this.nn(ek.Do)}g(t){let e=!1;for(let i of this.Yo)i===t&&(e=!0);e||this.Yo.push(t)}ar(t){let e=!1;for(let i of this.Ho)i.constructor===t.constructor&&(e=!0);t instanceof tc&&!e&&this.Ho.push(t)}Ht(t){t instanceof A&&this._e.push(t)}removeAllSubscriptions(){if(this.X())for(let t of this._e)t.removeAllSubscriptions()}removeSubscription(t){if(this.X())for(let e of this._e)e.removeSubscription(t)}oe(t){this.$o=t}so(){return this.isInitialized}$h(){return this.$o}ks(){return this.Bo}}let eA=new eC;var e_={q:(t,e,s)=>{var a,r;let n=new ty,o=eA.zr();if(!o)return i.info(`Not logging event with type "${t}" because the current session ID could not be found.`),n;let l=o.xo();return n.ge.push(new P(s||(null==(a=eA.er())?void 0:a.getUserId()),t,new Date().valueOf(),l,e)),n.L=(null==(r=eA.l())?void 0:r.zo(n.ge))||!1,n}};class eN{constructor(t){this.u=t,this.u=t}h(t,e){let s=new ty;if(t.p(),null==t.url||""===t.url)return i.info(`Card ${t.id} has no url. Not logging click to Braze servers.`),s;if(e&&t.id&&this.u){let e=this.u.j(tl.C.v)||{};e[t.id]=!0,this.u.I(tl.C.v,e)}let r=this.$([t]);if(null==r)return s;let n=e?a.k:a.D;return e_.q(n,r)}B(t){let e=new ty;if(!t.N())return i.info(`Card ${t.id} refused this dismissal. Ignoring analytics event.`),e;if(t.id&&this.u){let e=this.u.j(tl.C.A)||{};e[t.id]=!0,this.u.I(tl.C.A,e)}let s=this.$([t]);return null==s?e:e_.q(a.F,s)}G(t,e){let s=new ty(!0),r=[],n=[],o={};for(let s of(this.u&&(o=e?this.u.j(tl.C.H)||{}:this.u.j(tl.C.J)||{}),t))s.K()?(s instanceof O?n.push(s):r.push(s),s.id&&(o[s.id]=!0)):i.info(`Card ${s.id} logged an impression too recently. Ignoring analytics event.`);let l=this.$(r),u=this.$(n);if(null==l&&null==u)return s.L=!1,s;if(this.u&&(e?this.u.I(tl.C.H,o):this.u.I(tl.C.J,o)),null!=l){let t=e?a.M:a.O,i=e_.q(t,l);s.P(i)}if(null!=u&&e){let t=e_.q(a.R,u);s.P(t)}return s}$(t){let e,i=null;for(let s=0;s<t.length;s++)null!=(e=t[s].id)&&""!==e&&((i=i||{}).ids=i.ids||[],i.ids.push(e));return i}}let eT={t:!1,i:null,m:()=>(eT.o(),eT.i||(eT.i=new eN(eA.l())),eT.i),o:()=>{eT.t||(eA.g(eT),eT.t=!0)},destroy:()=>{eT.i=null,eT.t=!1}};function eI(t,e){return!!eA.X()&&(t instanceof _?eT.m().h(t,e).L:(i.error("card "+S),!1))}function eO(t){return!!eA.X()&&(t instanceof _?eT.m().B(t).L:(i.error("card "+S),!1))}function eD(t,e){if(!eA.X())return!1;if(!c(t))return i.error("cards must be an array"),!1;for(let e of t)if(!(e instanceof _))return i.error(`Each card in cards ${S}`),!1;return eT.m().G(t,e).L}class eP{constructor(t,e){this.cards=t,this.lastUpdated=e,this.cards=t,this.lastUpdated=e}getUnreadCardCount(){let t=0;for(let e of this.cards)e.viewed||e instanceof O||t++;return t}dr(){i.error("Must be implemented in a subclass")}logCardImpressions(t){i.error("Must be implemented in a subclass")}logCardClick(t){i.error("Must be implemented in a subclass")}sr(){i.error("Must be implemented in a subclass")}}function ez(t,e,s,a,r,n,o,l,u,h,c,d,p,b,f,m,g,v){let w;if(e===_.it.Pt||e===_.it.Ut)w=new I(t,s,a,r,n,o,l,u,h,c,d,p,b,f,m,g);else if(e===_.it.st)w=new T(t,s,a,r,n,o,l,u,h,c,d,p,b,f,m,g);else if(e===_.it.Gt)w=new N(t,s,r,o,l,u,h,c,d,p,b,f,m,g);else{if(e!==_.it.Xt)return i.error("Ignoring card with unknown type "+e),null;w=new O(t,s,l,h,b,f)}return v&&(w.test=v),w}function eU(t){if(t[_._t.Ot])return null;let e=t[_._t.ht],i=t[_._t.Z],s=t[_._t.et],a=t[_._t.rt],r=t[_._t.ot],n=t[_._t.ct],o=g(t[_._t.nt]);return ez(e,i,s,a,r,n,o,o,null,t[_._t.lt]===_.Mt?null:g(t[_._t.lt]),t[_._t.URL],t[_._t.ft],t[_._t.xt],t[_._t.bt],t[_._t.gt],t[_._t.jt],t[_._t.zt],t[_._t.kt]||!1)}function eM(t){return ez(t[_.tt.ht],t[_.tt.Z],t[_.tt.et],t[_.tt.rt],t[_.tt.ot],t[_.tt.ct],w(t[_.tt.dt]),w(t[_.tt.nt]),t[_.tt.ut],w(t[_.tt.lt]),t[_.tt.URL],t[_.tt.ft],t[_.tt.xt],t[_.tt.bt],t[_.tt.gt],t[_.tt.jt],t[_.tt.zt],t[_.tt.kt]||!1)||void 0}eP.ur=6e4,eP.Ah=500,eP.Co=1e4;class eR extends tc{constructor(t,e,s,a,r){super(),this.yt=t,this.u=e,this.qt=s,this.Jt=a,this.$t=r,this.yt=t,this.u=e,this.qt=s,this.Jt=a,this.$t=r,this.Bt=new A,eA.Ht(this.Bt),this.Kt=0,this.Qt=0,this.cards=[],this.Yt();let n=o.ts.Zt;new o(n,i).ss(n.hs.es,t=>{this.rs(t)}),this.ns=null,this.os=null,this.ls=null,this.us=null,this.cs=null,this.fs=10,this.ds=0}ps(){return this.ns}vs(t){this.ns=t}ws(){return this.os}Cs(t){this.os=t}Yt(){if(!this.u)return;let t=this.u.j(tl.C.bs)||[],e=[];for(let i=0;i<t.length;i++){let s=eM(t[i]);null!=s&&e.push(s)}this.cards=this.gs(this.ys(e,!1)),this.Kt=this.u.j(tl.C.js)||this.Kt,this.Qt=this.u.j(tl.C.Rs)||this.Qt}Ns(t,e=!1,i=0,s=0){let a;if(e)for(let t of(a=[],this.cards))t.test&&a.push(t);else a=this.cards.slice();for(let i=0;i<t.length;i++){let s=t[i],r=null;for(let t=0;t<this.cards.length;t++)if(s.id===this.cards[t].id){r=this.cards[t];break}if(e){let t=eU(s);null!=r&&r.viewed&&t&&(t.viewed=!0),null!=t&&a.push(t)}else if(null==r){let t=eU(s);null!=t&&a.push(t)}else if(!r.Lt(s)){for(let t=0;t<a.length;t++)if(s.id===a[t].id){a.splice(t,1);break}}}this.cards=this.gs(this.ys(a,e)),this.Ts(),this.Kt=i,this.Qt=s,this.u&&(this.u.I(tl.C.js,this.Kt),this.u.I(tl.C.Rs,this.Qt))}Ss(t){if(this.Ds()&&null!=t&&t.cards){this.u&&this.u.I(tl.C.Us,eA.ks());let e=t.full_sync;e||this.Yt(),this.Ns(t.cards,e,t.last_full_sync_at,t.last_card_updated_at),this.Bt.Rt(this.As(!0))}}Fs(t){this.u&&this.u.I(tl.C.xs,t)}zs(t,e,i){let s,r=()=>{this.qs(e,i,!0)},n=t?(t=>{let e,i,s={},a=t.toString().split("\r\n");if(!a)return s;for(let t of a)t&&(e=t.slice(0,t.indexOf(":")).toLowerCase().trim(),i=t.slice(t.indexOf(":")+1).trim(),s[e]=i);return s})(t):null;if(this.Es(),!n||!n["retry-after"])return void this.Fs(0);let o=n["retry-after"];if(isNaN(o)&&!isNaN(Date.parse(o)))(s=Date.parse(o)-new Date().getTime())<0&&r();else{if(isNaN(parseFloat(o.toString())))return e_.q(a.Ls,{e:"Received unexpected value for retry-after header in /sync response: "+o}),void this.Fs(0);s=1e3*parseFloat(o.toString())}this.ls=window.setTimeout(()=>{r()},s);let l=0;this.u&&(l=this.u.j(tl.C.xs)),(null==l||isNaN(parseInt(l.toString())))&&(l=0),this.Fs(parseInt(l.toString())+1)}rs(t){var e;if(!this.Ds())return;this.Yt();let i=this.cards.slice(),s=null;s=null==(e=this.yt)?void 0:e.getUserId();for(let e=0;e<t.length;e++)if(s===t[e].userId||null==s&&null==t[e].userId){let s=t[e].card,a=null;for(let t=0;t<this.cards.length;t++)if(s.id===this.cards[t].id){a=this.cards[t];break}if(null==a){let t=eU(s);null!=t&&i.push(t)}else if(!a.Lt(s)){for(let t=0;t<i.length;t++)if(s.id===i[t].id){i.splice(t,1);break}}}this.cards=this.gs(this.ys(i,!1)),this.Ts(),this.Bt.Rt(this.As(!0))}ys(t,e){let i={},s={},a={};this.u&&(i=this.u.j(tl.C.v)||{},s=this.u.j(tl.C.H)||{},a=this.u.j(tl.C.A)||{});let r={},n={},o={};for(let e=0;e<t.length;e++){let l=t[e].id;l&&(i[l]&&(t[e].clicked=!0,r[l]=!0),s[l]&&(t[e].viewed=!0,n[l]=!0),a[l]&&(t[e].dismissed=!0,o[l]=!0))}return e&&this.u&&(this.u.I(tl.C.v,r),this.u.I(tl.C.H,n),this.u.I(tl.C.A,o)),t}gs(t){let e=[],s=new Date,a={};this.u&&(a=this.u.j(tl.C.A)||{});let r=!1;for(let n=0;n<t.length;n++){let o=t[n].url;if(!this.Jt&&o&&er(o)){i.error(`Card with url ${o} will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable this card.`);continue}let l=t[n].expiresAt,u=!0;if(null!=l&&(u=l>=s),u=u&&!t[n].dismissed)e.push(t[n]);else{let e=t[n].id;e&&(a[e]=!0),r=!0}}return r&&this.u&&this.u.I(tl.C.A,a),e}Ts(){var t;let e=[];for(let t=0;t<this.cards.length;t++)e.push(this.cards[t].Y());null==(t=this.u)||t.I(tl.C.bs,e)}Es(){this.ls&&(clearTimeout(this.ls),this.ls=null)}Is(){null!=this.us&&(clearTimeout(this.us),this.us=null)}Js(t=1e3*this.fs,e,i){this.Is(),this.us=window.setTimeout(()=>{this.qs(e,i,!0)},t),this.cs=t}qs(t,e,i=!1,s=!0){var a;let r=this.$t,n=this.u;if(!r||!n)return void("function"==typeof e&&e());if(i||(this.Es(),this.Fs(0)),!this.Ds())return void(null==(a=this.qt)||a.Ms(()=>{this.qs(t,e)}));s&&this.Is();let o=r.$s({},!0);n.j(tl.C.Us)!==eA.ks()&&this.Bs(),o.last_full_sync_at=this.Kt,o.last_card_updated_at=this.Qt;let l=r.Ps(o,tm._s.Xs,i),u=!1;r.Gs(o,(i=-1)=>
1{if(this.u){let t=new Date().valueOf();tm.Hs(this.u,tm._s.Xs,t)}-1!==i&&l.push(["X-Braze-Req-Tokens-Remaining",i.toString()]),tv.Ks({url:`${r.Os()}/content_cards/sync`,data:o,headers:l,L:(i,s)=>{if(!r.Qs(o,i,l))return u=!0,void("function"==typeof e&&e());r.Vs(),this.zs(s,t,e),this.Ss(i),u=!1,tm.Ws(this.u,tm._s.Xs,1),"function"==typeof t&&t()},error:t=>{r.Ys(t,"retrieving content cards"),u=!0,"function"==typeof e&&e()},Zs:()=>{if(u&&s&&!this.us&&this.ds+1<3){tm.ti(this.u,tm._s.Xs);let i=this.cs;(null==i||i<1e3*this.fs)&&(i=1e3*this.fs),this.Js(Math.min(3e5,tw(1e3*this.fs,3*i)),t,e),this.ds=this.ds+1}}})},tm._s.Xs,e)}As(t){t||this.Yt();let e=this.gs(this.cards);e.sort((t,e)=>t.pinned&&!e.pinned?-1:e.pinned&&!t.pinned?1:t.updated&&e.updated&&t.updated>e.updated?-1:t.updated&&e.updated&&e.updated>t.updated?1:0);let i=Math.max(this.Qt||0,this.Kt||0);return 0===i&&(i=void 0),this.u&&this.u.j(tl.C.Rs)===this.Qt&&void 0===i&&(i=this.Qt),new eF(e,g(i))}si(t){return this.Bt.Nt(t)}Bs(){this.Kt=0,this.Qt=0,this.u&&(this.u.ii(tl.C.js),this.u.ii(tl.C.Rs))}changeUser(t){t||(this.cards=[],this.Bt.Rt(new eF(this.cards.slice(),null)),this.u&&(this.u.ii(tl.C.bs),this.u.ii(tl.C.v),this.u.ii(tl.C.H),this.u.ii(tl.C.A))),this.Bs()}clearData(t){this.Kt=0,this.Qt=0,this.cards=[],this.Bt.Rt(new eF(this.cards.slice(),null)),t&&this.u&&(this.u.ii(tl.C.bs),this.u.ii(tl.C.v),this.u.ii(tl.C.H),this.u.ii(tl.C.A),this.u.ii(tl.C.js),this.u.ii(tl.C.Rs))}Ds(){return!!this.qt&&(!!this.qt.ei()||(0!==this.qt.hi()&&this.ri(),!1))}ri(){this.Bt.Rt(new eF([],new Date)),this.u&&this.u.ii(tl.C.bs)}}let eL={t:!1,provider:null,rr:()=>(eL.o(),eL.provider||(eL.provider=new eR(eA.er(),eA.l(),eA.ir(),eA.tr(),eA.nr()),eA.ar(eL.provider)),eL.provider),o:()=>{eL.t||(eA.g(eL),eL.t=!0)},destroy:()=>{eL.provider=null,eL.t=!1}};function eB(t,e){if(eA.X())return eL.rr().qs(t,e)}class eF extends eP{constructor(t,e){super(t,e)}getUnviewedCardCount(){return super.getUnreadCardCount()}logCardImpressions(t){eD(t,!0)}logCardClick(t){return eI(t,!0)}sr(){eB()}dr(){return!0}}function e$(t){if(null!=t){let e=t.querySelectorAll(".ab-unread-indicator")[0];null!=e&&(e.className+=" read")}}function eq(t,e){let i=e.querySelectorAll(".ab-image-area"),s,a=0;for(let e of(i.length>0&&(a=i[0].offsetWidth),t))if((s=e.T)&&e.imageUrl&&"number"==typeof e.aspectRatio){let t=a/e.aspectRatio;t&&(s.style.height=`${t}px`)}}function ej(t){eA.X()&&eA.removeSubscription(t)}eF.ur=6e4;let eG="data-last-requested-refresh",eK={};function eX(t){t&&(t.className=t.className.replace("ab-show","ab-hide"),setTimeout(()=>{t&&t.parentNode&&t.parentNode.removeChild(t)},eP.Ah));let e=t.getAttribute("data-update-subscription-id");null!=e&&ej(e);let i=t.getAttribute("data-listener-id");null!=i&&(window.removeEventListener("scroll",eK[i]),delete eK[i])}function eY(t,e){let s=ep.m(),a=document.createElement("div");if(a.className="ab-feed-body",a.setAttribute("aria-label","Feed"),a.setAttribute("role","feed"),null==t.lastUpdated){let t=document.createElement("div");t.className="ab-no-cards-message";let e=document.createElement("i");e.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner",t.appendChild(e),a.appendChild(t)}else{let r=!1,o=e=>t.logCardClick(e);for(let l of t.cards){let u=l instanceof O;!u||t.dr()?(a.appendChild(function(t,e,i,s="ltr"){let a=document.createElement("div");a.dir=s,a.className="ab-card ab-effect-card "+t._,t.id&&(a.setAttribute("data-ab-card-id",t.id),a.setAttribute("id",t.id)),a.setAttribute("role","article"),a.setAttribute("tabindex","0");let r="",o=!1;t.url&&""!==t.url&&(r=t.url,o=!0);let l=s=>(e$(a),o&&(e(t),es(r,i,s)),!1);if(t.pinned){let t=document.createElement("div");t.className="ab-pinned-indicator";let e=document.createElement("i");e.className="fa fa-star",t.appendChild(e),a.appendChild(t)}if(t.imageUrl&&""!==t.imageUrl){let e,i=document.createElement("div");i.dir=s,i.className="ab-image-area";let n=document.createElement("img");if(n.setAttribute("src",t.imageUrl),n.onload=()=>{a.style.height="auto"},e="",t.title||t.description||(e="Feed Image"),n.setAttribute("alt",e),i.appendChild(n),a.className+=" with-image",o&&!t.S){let t=document.createElement("a");t.setAttribute("href",r),t.onclick=l,t.appendChild(i),a.appendChild(t)}else a.appendChild(i)}let u=document.createElement("div");if(u.className="ab-card-body",u.dir=s,t.dismissible){t.logCardDismissal=()=>eO(t);let e=t8("Dismiss Card",void 0,t.dismissCard.bind(t),s);a.appendChild(e),tP(u,tT.U,t=>{a.className+=" ab-swiped-left",e.onclick(t)}),tP(u,tT.V,t=>{a.className+=" ab-swiped-right",e.onclick(t)})}let h="",c=!1;
1if(t.title&&""!==t.title&&(h=t.title,c=!0),c){let t=document.createElement("h1");if(t.className="ab-title",t.id=n.W(),a.setAttribute("aria-labelledby",t.id),o){let e=document.createElement("a");e.setAttribute("href",r),e.onclick=l,e.appendChild(document.createTextNode(h)),t.appendChild(e)}else t.appendChild(document.createTextNode(h));u.appendChild(t)}let d=document.createElement("div");if(d.className=c?"ab-description":"ab-description ab-no-title",d.id=n.W(),a.setAttribute("aria-describedby",d.id),t.description&&d.appendChild(document.createTextNode(t.description)),o){let e=document.createElement("div");e.className="ab-url-area";let i=document.createElement("a");i.setAttribute("href",r),t.linkText&&i.appendChild(document.createTextNode(t.linkText)),i.onclick=l,e.appendChild(i),d.appendChild(e)}u.appendChild(d),a.appendChild(u);let p=document.createElement("div");return p.className="ab-unread-indicator",t.viewed&&(p.className+=" read"),a.appendChild(p),t.T=a,a}(l,o,e,s.wo())),r=r||!u):i.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.")}if(!r){let t=document.createElement("div");t.className="ab-no-cards-message",t.innerHTML=s.get("NO_CARDS_MESSAGE")||"",t.setAttribute("role","article"),a.appendChild(t)}}return a}function eH(t,e){if(null!=t&&null!=e){let l=[],u=e.querySelectorAll(".ab-card");t.yo||(t.yo={});for(let e=0;e<u.length;e++){var i,s,a,r,n,o;let h=u[e].getAttribute("data-ab-card-id"),c=(i=u[e],tN.po(i,!0,!1,!1)),d=(s=u[e],tN.po(s,!1,!0,!1));if(t.yo[h]){c||d||e$(u[e]);continue}let p=null!=(a=u[e])&&!!a.getAttribute("data-ab-had-top-impression"),b=null!=(r=u[e])&&!!r.getAttribute("data-ab-had-bottom-impression"),f=p,m=b;if(!p&&c&&(p=!0,null!=(n=u[e])&&n.setAttribute("data-ab-had-top-impression","true")),!b&&d&&(b=!0,null!=(o=u[e])&&o.setAttribute("data-ab-had-bottom-impression","true")),p&&b){if(f&&m)continue;for(let e of t.cards)if(e.id===h){t.yo[e.id]=!0,l.push(e);break}}}l.length>0&&t.logCardImpressions(l)}}function eJ(t,e){if(null==t||null==e)return;e.setAttribute("aria-busy","true");let i=e.querySelectorAll(".ab-refresh-button")[0];null!=i&&(i.className+=" fa-spin");let s=new Date().valueOf().toString();e.setAttribute("data-last-requested-refresh",s),setTimeout(()=>{if(e.getAttribute("data-last-requested-refresh")===s){let t=e.querySelectorAll(".fa-spin");for(let e=0;e<t.length;
1e++)t[e].className=t[e].className.replace(/fa-spin/g,"");let i=e.querySelectorAll(".ab-initial-spinner")[0];if(null!=i){let t=document.createElement("span");t.innerHTML=ep.m().get("FEED_TIMEOUT_MESSAGE")||"",null!=i.parentNode&&(i.parentNode.appendChild(t),i.parentNode.removeChild(i))}"true"===e.getAttribute("aria-busy")&&e.setAttribute("aria-busy","false")}},eP.Co),t.sr()}function eW(t,e,i){let s=document.createElement("div");s.className="ab-feed ab-hide ab-effect-slide",s.setAttribute("role","dialog"),s.setAttribute("aria-label","Feed"),s.setAttribute("tabindex","-1");let a=document.createElement("div");a.className="ab-feed-buttons-wrapper",a.setAttribute("role","group"),s.appendChild(a);let r=document.createElement("i");r.className="fa fa-times ab-close-button",r.setAttribute("aria-label","Close Feed"),r.setAttribute("tabindex","0"),r.setAttribute("role","button");let o=t=>{eX(s),t.stopPropagation()};r.addEventListener("keydown",t=>{t.keyCode!==tU.Fo&&t.keyCode!==tU.To||o(t)}),r.onclick=o;let l=document.createElement("i");l.className="fa fa-refresh ab-refresh-button",t&&null==t.lastUpdated&&(l.className+=" fa-spin"),l.setAttribute("aria-label","Refresh Feed"),l.setAttribute("tabindex","0"),l.setAttribute("role","button");let u=e=>{eJ(t,s),e.stopPropagation()};l.addEventListener("keydown",t=>{t.keyCode!==tU.Fo&&t.keyCode!==tU.To||u(t)}),l.onclick=u,a.appendChild(l),a.appendChild(r),s.appendChild(eY(t,e));let h=()=>eH(t,s);if(s.addEventListener("scroll",h),!i){window.addEventListener("scroll",h);let t=n.W();eK[t]=h,s.setAttribute("data-listener-id",t)}return s}function eV(t,e,s,a,r){if(!c(e))return;let n=[];for(let t of e)if(t instanceof _){if(t.url&&Y.test(t.url)&&q(F(t.url))){i.error(B(L.Vi,"Content Card"));continue}n.push(t)}if(t.cards=n,t.lastUpdated=s,null!=a)if(a.setAttribute("aria-busy","false"),null==t.lastUpdated)eX(a);else{let e=a.querySelectorAll(".ab-feed-body")[0];if(null!=e){let i=eY(t,r);e.parentNode&&e.parentNode.replaceChild(i,e),eH(t,i.parentNode)}}}function eZ(t,e){t&&e.setAttribute("data-update-subscription-id",t)}function eQ(t){if(!eA.X())return;let e=document.querySelectorAll(".ab-feed");for(let i=0;i<e.length;i++)(null==t||null!=t&&e[i].parentNode===t)&&eX(e[i])}function e0(t,e){var s;if(!eA.X())return;t2();let a=!1;null==t&&(t=document.body,a=!0);let r=eA.nn(ek.tn)||eA.nn(ek.en)||!1,n=eL.rr().As(!1);"function"==typeof e&&eV(n,e(n.cards.slice()),n.lastUpdated,null,r);let o=eW(n,r,a),l=eL.rr(),u=l.ps();(null==n.lastUpdated||new Date().valueOf()-n.lastUpdated.valueOf()>eF.ur)&&(null==u||new Date().valueOf()-u>eF.ur)&&(i.info(`Cached content cards were older than max TTL of ${eF.ur} ms, requesting an update from the server.`),eJ(n,o),l.vs(new Date().valueOf()));let h=new Date().valueOf();eZ(e1(function(t){let i=o.querySelectorAll(".ab-refresh-button")[0];if(null!=i){let t,e=t=500-(new Date().valueOf()-h),s=o.getAttribute(eG);s&&(isNaN(e=parseInt(s))||(t-=new Date().valueOf()-e)),setTimeout(function(){i.className=i.className.replace(/fa-spin/g,"")},Math.max(t,0))}let s=t.cards;"function"==typeof e&&(s=e(s.slice())),eV(n,s,t.lastUpdated,o,r)}),o);let c=function(t){let e=t.querySelectorAll(".ab-feed"),i=null;for(let s=0;s<e.length;s++)e[s].parentNode===t&&(i=e[s]);null!=i?(eX(i),null!=i.parentNode&&i.parentNode.replaceChild(o,i)):t.appendChild(o),setTimeout(function(){o.className=o.className.replace("ab-hide","ab-show")},0),a&&o.focus(),eH(n,o),eq(n.cards,t)};null!=t?c(t):window.onload=(s=window.onload,function(){"function"==typeof s&&s(new Event("oldLoad")),c(document.body)})}function e1(t){if(!eA.X())return;let e=eL.rr(),i=e.si(t);if(!e.ws()){let t=eA.cr();if(t){let i=t.mr(()=>{e.qs()});i&&e.Cs(i)}}return i}var e3={GOOGLE_TAG_MANAGER:"gg",MPARTICLE:"mp",SEGMENT:"sg",TEALIUM:"tl",MANUAL:"manu",NPM:"npm",CDN:"wcd",SHOPIFY:"shp"};function e5(t,e){if(!eA.X())return;if(null==t||0===t.length||t!=t)return void i.error("changeUser requires a non-empty userId.");if(M(t)>tt.lr)return void i.error(`Rejected user id "${t}" because it is longer than ${tt.lr} bytes.`);if(null!=e&&!V(e,"set signature for new user","signature"))return;let s=eA.cr();s&&s.changeUser(t.toString(),eA.gr(),e)}var e2=Object.freeze({__proto__:null,changeUser:e5});function e4(t,e){if(!eA.X())return!1;if(null==t||t.length<=0)return i.error(`logCustomEvent requires a non-empty eventName, got "${t}". Ignoring event.`),!1;if(!H(t,"log custom event","the event name"))return!1;let[s,r]=Z(e,"logCustomEvent","eventProperties",`log custom event "${t}"`,"event");
1if(!s)return!1;let n=eA.ir();if(n&&n.me(t))return i.info(`Custom Event "${t}" is blocklisted, ignoring.`),!1;let o=e_.q(a.CustomEvent,{n:t,p:r});if(o.L)for(let s of(i.info(`Logged custom event "${t}".`),o.ge))ex.rr().fe(tQ.ue,[t,e],s);return o.L}var e8=Object.freeze({__proto__:null,logCustomEvent:e4});function e6(t,e,s,r,n){if(!eA.X())return!1;if(null==s&&(s="USD"),null==r&&(r=1),null==t||t.length<=0)return i.error(`logPurchase requires a non-empty productId, got "${t}", ignoring.`),!1;if(!H(t,"log purchase","the purchase name"))return!1;if(null==e||isNaN(parseFloat(e.toString())))return i.error(`logPurchase requires a numeric price, got ${e}, ignoring.`),!1;let o=parseFloat(e.toString()).toFixed(2);if(null==r||isNaN(parseInt(r.toString())))return i.error(`logPurchase requires an integer quantity, got ${r}, ignoring.`),!1;let l=parseInt(r.toString());if(l<1||l>100)return i.error(`logPurchase requires a quantity >1 and <100, got ${l}, ignoring.`),!1;if(-1===["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTC","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTL","LVL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MTL","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XCD","XDR","XOF","XPD","XPF","XPT","YER","ZAR","ZMK","ZMW","ZWL"].indexOf(s=null!=s?s.toUpperCase():s))return i.error(`logPurchase requires a valid currencyCode, got ${s}, ignoring.`),!1;let[u,h]=Z(n,"logPurchase","purchaseProperties",`log purchase "${t}"`,"purchase");if(!u)return!1;let c=eA.ir();if(c&&c.Dr(t))return i.info(`Purchase "${t}" is blocklisted, ignoring.`),!1;let d=e_.q(a.Pr,{pid:t,c:s,p:o,q:l,pr:h});if(d.L)for(let e of(i.info(`Logged ${l} purchase${l>1?"s":""} of "${t}" for ${s} ${o}.`),d.ge))ex.rr().fe(tQ.Rr,[t,n],e);return d.L}var e7=Object.freeze({__proto__:null,logPurchase:e6});function e9(t){if(!eA.X())return;let e=eA.cr();e&&e.requestImmediateDataFlush(t)}var it=Object.freeze({__proto__:null,requestImmediateDataFlush:e9});class ie extends tc{constructor(t,e){super(),this.u=t,this.Ui=e,this.cards=[],this.ki=null,this.u=t,this.Ui=e,this.Bt=new A,eA.Ht(this.Bt),this.Yt()}Yt(){let t=[];this.u&&(t=this.u.j(tl.C.Ai)||[]);let e=[];for(let i=0;i<t.length;i++){let s=eM(t[i]);null!=s&&e.push(s)}this.cards=e,this.u&&(this.ki=w(this.u.j(tl.C.Bi)))}Ei(t){let e=[],i={};this.u&&(i=this.u.j(tl.C.J)||{});let s={};for(let r=0;r<t.length;r++){var a;let n=ez((a=t[r]).id,a.type,a.viewed,a.title,a.image,a.description,g(a.created),g(a.updated),a.categories,g(a.expires_at),a.url,a.domain,a.aspect_ratio,a.extras,!1,!1);if(null!=n){let t=n.id;t&&i[t]&&(n.viewed=!0,s[t]=!0),e.push(n)}}this.cards=e,this.Ts(),this.ki=new Date,this.u&&(this.u.I(tl.C.J,s),this.u.I(tl.C.Bi,this.ki))}Ts(){var t;let e=[];for(let t=0;t<this.cards.length;t++)e.push(this.cards[t].Y());null==(t=this.u)||t.I(tl.C.Ai,e)}Ss(t){null!=t&&t.feed&&(this.Yt(),this.Ei(t.feed),this.Bt.Rt(new ia(this.cards.slice(),this.ki)))}Gi(){this.Yt();let t=[],e=new Date;for(let i=0;i<this.cards.length;i++){let s=this.cards[i].expiresAt,a=!0;null!=s&&(a=s>=e),a&&t.push(this.cards[i])}return new ia(t,this.ki)}qs(){this.Ui&&this.Ui.requestFeedRefresh()}si(t){return this.Bt.Nt(t)}clearData(t){null==t&&(t=!1),this.cards=[],this.ki=null,t&&this.u&&(this.u.ii(tl.C.Ai),this.u.ii(tl.C.Bi)),this.Bt.Rt(new ia(this.cards.slice(),this.ki))}}let ii={t:!1,provider:null,rr:()=>(ii.o(),ii.provider||(ii.provider=new ie(eA.l(),eA.cr()),eA.ar(ii.provider)),ii.provider),o:()=>{ii.t||(eA.g(ii),ii.t=!0)},destroy:()=>{ii.provider=null,ii.t=!1}};function is(){if(eA.X())return ii.rr().qs()}class ia extends eP{constructor(t,e){super(t,e)}logCardImpressions(t){eD(t,!1)}logCardClick(t){return eI(t,!1)}sr(){is()}dr(){return!1}}function ir(){if(!eA.X())return;let t=document.querySelectorAll(".ab-feed");for(let e=0;e<t.length;e++)eX(t[e])}function io(){var t;
1if(eA.X())return null==(t=eA.nr())?void 0:t.qr(r.Ar).L}function il(t,e,s){var a;if(!eA.X())return;t2();let r=(t,e)=>{if(null==e)return t;let i=[];for(let t=0;t<e.length;t++)i.push(e[t].toLowerCase());let s=[];for(let e=0;e<t.length;e++){let a=[],r=t[e].categories||[];for(let t=0;t<r.length;t++)a.push(r[t].toLowerCase());(function(t){null==t&&(t=[]);let e=[],i=arguments.length;for(let s=0,a=t.length;s<a;s++){let a=t[s];if(-1!==e.indexOf(a))continue;let r=1;for(r=1;r<i&&-1!==arguments[r].indexOf(a);r++);r===i&&e.push(a)}return e})(a,i).length>0&&s.push(t[e])}return s},n=eA.nn(ek.tn)||eA.nn(ek.en)||!1,o=!1;null==t&&(t=document.body,o=!0);let l,u=!1;null==e?(eV(l=ii.rr().Gi(),r(l.cards,s),l.lastUpdated,null,n),u=!0):l=new ia(r(e,s),new Date);let h=eW(l,n,o);if(u){(null==l.lastUpdated||new Date().valueOf()-l.lastUpdated.valueOf()>ia.ur)&&(i.info(`Cached feed was older than max TTL of ${ia.ur} ms, requesting an update from the server.`),eJ(l,h));let t=new Date().valueOf();eZ(ih(function(e){let i=h.querySelectorAll(".ab-refresh-button")[0];if(null!=i){let e;e=500-(new Date().valueOf()-t);let s=h.getAttribute(eG);if(s){let t=parseInt(s);isNaN(t)||(e-=new Date().valueOf()-t)}setTimeout(function(){i.className=i.className.replace(/fa-spin/g,"")},Math.max(e,0))}eV(l,r(e.cards,s),e.lastUpdated,h,n)}),h)}let c=t=>{let e=t.querySelectorAll(".ab-feed"),i=null;for(let s=0;s<e.length;s++)e[s].parentNode===t&&(i=e[s]);null!=i?(eX(i),i.parentNode&&i.parentNode.replaceChild(h,i)):t.appendChild(h),setTimeout(function(){h.className=h.className.replace("ab-hide","ab-show")},0),o&&h.focus(),io(),eH(l,h),l&&eq(l.cards,t)};null!=t?c(t):window.onload=(a=window.onload,function(){"function"==typeof a&&a(new Event("oldLoad")),c(document.body)})}var iu=Object.freeze({__proto__:null,showFeed:il});function ih(t){if(eA.X())return ii.rr().si(t)}class ic{constructor(t,e,i,s,a,r,n,o,l,u,h){this.sn=t,this.rn=e,this.on=i,this.un=a,this.an=r,this.hn=n,this.qt=o,this.cn=l,this.fn=u,this.u=h,this.sn=t,this.rn=e,this.on=i,this.ln=s+"/safari/"+e,this.un=a||"/service-worker.js",this.hn=n,this.qt=o,this.cn=l||!1,this.fn=u||!1,this.u=h,this.dn=tx.pn(),this.bn=tx.yn()}mn(){return this.fn}gn(t,e,s,a,r){t.unsubscribe().then(t=>{t?this.vn(e,s,a,r):(i.error("Failed to unsubscribe device from push."),"function"==typeof r&&r(!1))}).catch(t=>{i.error("Push unsubscription error: "+t),"function"==typeof r&&r(!1)})}wn(t,e,s){var a;let r,n=(t=>{if("string"==typeof t)return t;if(0!==t.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return t.endpoint;let e=t.endpoint;return t.kn&&-1===t.endpoint.indexOf(t.kn)&&(e=t.endpoint+"/"+t.kn),e})(t),o=null,l=null;if(null!=t.getKey)try{let e=Array.from(new Uint8Array(t.getKey("p256dh"))),i=Array.from(new Uint8Array(t.getKey("auth")));o=btoa(String.fromCharCode.apply(null,e)),l=btoa(String.fromCharCode.apply(null,i))}catch(t){i.error(z(t))}let u=t.options&&(r=t.options.applicationServerKey)&&r.byteLength&&r.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(r)))).replace(/\+/g,"-").replace(/\//g,"_"):null;null==(a=this.sn)||a.Pn(n,e,o,l,u),n&&"function"==typeof s&&s(n,o,l)}Dn(){var t;null==(t=this.sn)||t.Sn(!0)}An(t,e){var s;null==(s=this.sn)||s.Sn(!1),i.info(t),"function"==typeof e&&e(!1)}jn(t,e,s,a){var r;if("default"===e.permission)try{window.safari.pushNotification.requestPermission(this.ln,t,{api_key:this.rn,device_id:(null==(r=this.on)?void 0:r.ce().id)||""},e=>{"granted"===e.permission&&this.sn&&this.sn.setPushNotificationSubscriptionType(tt.NotificationSubscriptionTypes.OPTED_IN),this.jn(t,e,s,a)})}catch(t){this.An("Could not request permission for push: "+t,a)}else"denied"===e.permission?this.An("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",a):"granted"===e.permission&&(i.info("Device successfully subscribed to push."),this.wn(e.deviceToken,new Date,s))}requestPermission(t,e,s){let a=a=>{switch(a){case"granted":return void("function"==typeof t&&t());case"default":return void("function"==typeof e&&e());case"denied":return void("function"==typeof s&&s());default:i.error("Received unexpected permission result "+a)}},r=!1;if("default"!==window.Notification.permission)a(Notification.permission);else{let t=window.Notification.requestPermission(t=>{r&&a(t)});t?t.then(t=>{a(t)}):r=!0}}vn(t,e,s,a){let r={userVisibleOnly:!0};null!=e&&(r.applicationServerKey=e),t.pushManager.subscribe(r).then(t=>{i.info("Device successfully subscribed to push."),this.wn(t,new Date,s)}).catch(t=>{tx.isPushBlocked()?(i.info("Permission for push notifications was denied."),"function"==typeof a&&a(!1)):(i.error("Push subscription failed: "+t),"function"==typeof a&&a(!0))})}xn(){if(this.cn)return navigator.serviceWorker.getRegistration(this.un);let t=this.an?{scope:this.an}:void 0;return navigator.serviceWorker.register(this.un,t).then(()=>navigator.serviceWorker.ready.then(t=>
1(t&&"function"==typeof t.update&&t.update().catch(t=>{i.info("ServiceWorker update failed: "+t)}),t)))}Nn(t){this.cn||(t.unregister(),i.info("Service worker successfully unregistered."))}subscribe(t,e){if(!tx.isPushSupported())return i.info(ic.Un),void("function"==typeof e&&e(!1));if(this.dn){if(!this.cn&&null!=window.location){let t=this.un;-1===t.indexOf(window.location.host)&&(t=window.location.host+t),-1===t.indexOf(window.location.protocol)&&(t=window.location.protocol+"//"+t)}if(tx.isPushBlocked())return void this.An("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",e);if(this.qt&&!this.qt.Wn()&&0===this.qt.hi())return i.info("Waiting for VAPID key from server config before subscribing to push."),void this.qt._n(()=>{this.subscribe(t,e)});let a=tx.isPushPermissionGranted(),r=()=>{!a&&this.sn&&this.sn.setPushNotificationSubscriptionType(tt.NotificationSubscriptionTypes.OPTED_IN),this.xn().then(a=>{if(null==a)return i.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerPush."),void("function"==typeof e&&e(!0));a.pushManager.getSubscription().then(r=>{var n;let o=null;if(null!=(null==(n=this.qt)?void 0:n.Wn())&&(o=s.Tn(this.qt.Wn())),r){let s,n=null,l=null;if(this.u&&(s=this.u.j(tl.C.In)),s&&!c(s)){let t;try{t=eE.qn(s).Vn}catch(e){t=null}null==t||isNaN(t.getTime())||0===t.getTime()||(l=new Date(n=t)).setMonth(n.getMonth()+6)}null!=o&&r.options&&r.options.applicationServerKey&&r.options.applicationServerKey.byteLength&&r.options.applicationServerKey.byteLength>0&&!f(o,new Uint8Array(r.options.applicationServerKey))?(r.options.applicationServerKey.byteLength>12?i.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):i.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription."),this.gn(r,a,o,t,e)):r.expirationTime&&new Date(r.expirationTime).valueOf()<=new Date().valueOf()?(i.info("Push subscription is expired, creating new subscription."),this.gn(r,a,o,t,e)):s&&c(s)?this.gn(r,a,o,t,e):null==l?(i.info("No push subscription creation date found, creating new subscription."),this.gn(r,a,o,t,e)):l.valueOf()<=new Date().valueOf()?(i.info("Push subscription older than 6 months, creating new subscription."),this.gn(r,a,o,t,e)):(i.info("Device already subscribed to push, sending existing subscription to backend."),this.wn(r,n,t))}else this.vn(a,o,t,e)}).catch(t=>{i.error("Error checking current push subscriptions: "+t)})}).catch(t=>{i.error("ServiceWorker registration failed: "+t)})};this.requestPermission(r,()=>{let t="Permission for push notifications was ignored.";tx.isPushBlocked()&&(t+=" The browser has automatically blocked further permission requests for a period (probably 1 week)."),i.info(t),"function"==typeof e&&e(!0)},()=>{i.info("Permission for push notifications was denied."),"function"==typeof e&&e(!1)})}else if(this.bn){if(null==this.hn||""===this.hn)return i.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"),void("function"==typeof e&&e(!0));let s=window.safari.pushNotification.permission(this.hn);this.jn(this.hn,s,t,e)}}unsubscribe(t,e){if(!tx.isPushSupported())return i.info(ic.Un),void("function"==typeof e&&e());this.dn?navigator.serviceWorker.getRegistration(this.un).then(s=>{s?s.pushManager.getSubscription().then(a=>{a?(this.Dn(),a.unsubscribe().then(a=>{a?(i.info("Device successfully unsubscribed from push."),"function"==typeof t&&t()):(i.error("Failed to unsubscribe device from push."),"function"==typeof e&&e()),this.Nn(s)}).catch(t=>{i.error("Push unsubscription error: "+t),"function"==typeof e&&e()})):(i.info("Device already unsubscribed from push."),"function"==typeof t&&t())}).catch(t=>{i.error("Error unsubscribing from push: "+t),"function"==typeof e&&e()}):(i.info("Device already unsubscribed from push."),"function"==typeof t&&t())}):this.bn&&(this.Dn(),i.info("Device unsubscribed from push."),"function"==typeof t&&t())}}ic.Un="Push notifications are not supported in this browser.";let id={t:!1,i:null,m:()=>(id.o(),id.i||(id.i=new ic(eA.pr(),eA.ba(),eA.te(),eA.Os(),eA.nn(ek.Ma),eA.nn(ek._a),eA.nn(ek.ka),eA.ir(),eA.nn(ek.qa),eA.nn(ek.Aa),eA.l())),id.i),o:()=>{id.t||(eA.g(id),id.t=!0)},destroy:()=>{id.i=null,id.t=!1}};var ip=Object.freeze({__proto__:null,default:id});function ib(t,e){if(eA.X())return id.m().subscribe((e,i,s)=>{let a=eA.cr();a&&a.requestImmediateDataFlush(),"function"==typeof t&&t(e,i,s)},e)}var im=Object.freeze({__proto__:null,requestPushPermission:ib});function ig(t,e){if(eA.X())return id.m().unsubscribe(t,e)}var iv=Object.freeze({__proto__:null,unregisterPush:ig});class iw{constructor(t,e=!1,i={},s){this.id=t,this.enabled=e,this.properties=i,this.trackingString=s,this.id=t,this.enabled=e,this.properties=i,this.trackingString=s}he(t,e,i){let s=this.properties[t];return null==s?(this.ye(t),null):e(s)?s.value:(this.Pe(i),null)}getStringProperty(t){return this.he(t,this.be,"string")}getNumberProperty(t){return this.he(t,this.Ie,"number")}getBooleanProperty(t){return this.he(t,this.de,"boolean")}getImageProperty(t){return this.he(t,this.Te,"image")}getJsonProperty(t){return this.he(t,this.Ee,"jsonobject")}getTimestampProperty(t){return this.he(t,this.Ne,"datetime")}Y(){let t={};return t[iw.tt.ht]=this.id,t[iw.tt.le]=this.enabled,t[iw.tt.pe]=this.properties,t[iw.tt.Fe]=this.trackingString,t}Pe(t){i.info(`Property is not of type ${t}.`)}ye(t){i.info(`${t} not found in feature flag properties.`)}be(t){return"string"===t.type&&"string"==typeof t.value}Ie(t){return"number"===t.type&&"number"==typeof t.value}de(t){return"boolean"===t.type&&"boolean"==typeof t.value}Te(t){return"image"===t.type&&"string"==typeof t.value}Ee(t){return"jsonobject"===t.type&&"object"==typeof t.value&&t.value.constructor==Object}Ne(t){return"datetime"===t.type&&"number"==typeof t.value}}iw.tt={ht:"id",le:"e",pe:"pr",Fe:"fts"},iw._t={ht:"id",le:"enabled",pe:"properties",Fe:"fts"};class iy extends tc{constructor(t,e,i,s){super(),this.qt=t,this.$t
1=e,this.u=i,this.oi=s,this.ai=[],this.ni=0,this.qt=t,this.$t=e,this.u=i,this.oi=s,this.li=null,this.ui=new A,this.fi=10,this.ci=null,this.di=null,eA.Ht(this.ui)}Ss(t){var e;if((null==(e=this.qt)?void 0:e.mi())&&null!=t&&t.feature_flags){for(let e of(this.ai=[],t.feature_flags)){let t=function(t){if(t[iw._t.ht]&&"boolean"==typeof t[iw._t.le])return new iw(t[iw._t.ht],t[iw._t.le],t[iw._t.pe],t[iw._t.Fe]);i.info(`Unable to create feature flag from ${JSON.stringify(t,null,2)}`)}(e);t&&this.ai.push(t)}this.ni=new Date().getTime(),this.gi(),this.ui.Rt(this.ai)}}Fi(){let t={};this.u&&(t=this.u.j(tl.C.vi));let e={};for(let s in t){let a=function(t){if(t[iw.tt.ht]&&"boolean"==typeof t[iw.tt.le])return new iw(t[iw.tt.ht],t[iw.tt.le],t[iw.tt.pe],t[iw.tt.Fe]);i.info(`Unable to deserialize feature flag from ${JSON.stringify(t,null,2)}`)}(t[s]);a&&(e[a.id]=a)}return e}pi(){var t;return(null==(t=this.u)?void 0:t.j(tl.C.wi))||{}}ji(t){this.u&&this.u.I(tl.C.wi,t)}si(t){return this.ui.Nt(t)}refreshFeatureFlags(t,e,i=!1,s=!0){let a=()=>{"function"==typeof e&&e(),this.ui.Rt(this.ai)};if(!this.yi(i))return!this.li&&this.qt&&(this.li=this.qt.bi(()=>{this.refreshFeatureFlags(t,e)})),void a();let r=this.$t;if(!r)return void a();s&&this.Ci();let n=r.$s({},!0),o=r.Ps(n,tm._s.Ri),l=!1;r.Gs(n,(r=-1)=>{if(!this.$t)return void a();let u=new Date().valueOf();tm.Hs(this.u,tm._s.Ri,u),-1!==r&&o.push(["X-Braze-Req-Tokens-Remaining",r.toString()]),tv.Ks({url:`${this.$t.Os()}/feature_flags/sync`,headers:o,data:n,L:e=>{if(!this.$t.Qs(n,e,o))return l=!0,void a();this.$t.Vs(),this.Ss(e),l=!1,tm.Ws(this.u,tm._s.Ri,1),"function"==typeof t&&t()},error:t=>{this.$t.Ys(t,"retrieving feature flags"),l=!0,a()},Zs:()=>{if(s&&l&&!this.di){tm.ti(this.u,tm._s.Ri);let s=this.ci;(null==s||s<1e3*this.fi)&&(s=1e3*this.fi),this.Ti(Math.min(3e5,tw(1e3*this.fi,3*s)),t,e,i)}}})},tm._s.Ri,e)}Ci(){null!=this.di&&(clearTimeout(this.di),this.di=null)}Ti(t=1e3*this.fi,e,i,s=!1){this.Ci(),this.di=window.setTimeout(()=>{this.refreshFeatureFlags(e,i,s)},t),this.ci=t}yi(t){if(!this.qt)return!1;if(!t){let t=this.qt.Di();if(null==t)return!1;let e=!1;if(!isNaN(t)){if(-1===t)return i.info("Feature flag refreshes not allowed"),!1;e=new Date().getTime()>=(this.ni||0)+1e3*t}if(!e)return i.info(`Feature flag refreshes were rate limited to ${t} seconds`),!1}return this.qt.mi()}Ii(){var t;return(null==(t=this.u)?void 0:t.j(tl.C.Si))||null}qi(){var t,e;null==(t=this.u)||t.I(tl.C.Si,null==(e=this.oi)?void 0:e.xi())}Ni(){var t;let e=null==(t=this.oi)?void 0:t.xi(),i=this.Ii();return null==i||e===i}gi(){if(!this.u)return;let t={};for(let e of this.ai){let i=e.Y();t[e.id]=i}this.u.I(tl.C.vi,t),this.u.I(tl.C.zi,this.ni),this.qi()}}let ix={t:!1,provider:null,rr:()=>(ix.o(),ix.provider||(ix.provider=new iy(eA.ir(),eA.nr(),eA.l(),eA.zr()),eA.ar(ix.provider)),ix.provider),o:()=>{ix.t||(eA.g(ix),ix.t=!0)},destroy:()=>{ix.provider=null,ix.t=!1}};function iE(t,e,i=!1){if(eA.X())return ix.rr().refreshFeatureFlags(t,e,i)}function iS(t,e){iE(t,e)}var ik=Object.freeze({__proto__:null,refreshFeatureFlags:iS,default:iE});function iC(){if(!eA.X())return;let t=[],e=eA.ir();if(e&&!e.mi())return i.info("Feature flags are not enabled."),t;let s=ix.rr().Fi();for(let e in s)t.push(s[e]);return t}var iA=function(t){var e=t.default;if("function"==typeof e){var i=function(){return e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var s=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:function(){return t[e]}})}),i}(Object.freeze({__proto__:null,WindowUtils:ee,logCardClick:eI,logCardDismissal:eO,logCardImpressions:eD,logContentCardImpressions:function(t){return eD(t,!0)},logContentCardClick:function(t){return eI(t,!0)},Card:_,ImageOnly:N,CaptionedImage:T,ClassicCard:I,ControlCard:O,ContentCards:eF,getCachedContentCards:function(){if(eA.X())return eL.rr().As(!1)},hideContentCards:eQ,requestContentCardsRefresh:eB,showContentCards:e0,subscribeToContentCardsUpdates:e1,toggleContentCards:function(t,e){eA.X()&&(document.querySelectorAll(".ab-feed").length>0?eQ():e0(t,e))},addSdkMetadata:function(t){if(!eA.X())return;let e=eA.nr();if(e){if(!c(t))return i.error("Cannot set SDK metadata because metadata is not an array."),!1;
1for(let e of t)if(!h(e3,e,"sdkMetadata contained an invalid value.","BrazeSdkMetadata"))return!1;return e.addSdkMetadata(t),!0}},changeUser:e5,destroy:function(){i.info("Destroying Braze instance"),eA.destroy(!0)},BrazeSdkMetadata:e3,DeviceProperties:tp,disableSDK:function(){let t=eA.cr();t&&t.requestImmediateDataFlush();let e=new tu.ee(null,!0),s="This-cookie-will-expire-in-"+e.ne();e.store(tl.se,s);let a=o.ts.Zt;new o(a,i).setItem(a.hs.ae,a.ie,!0),i.info("disableSDK was called"),eA.destroy(!1),eA.oe(!0)},enableSDK:function(){new tu.ee(null,!0).remove(tl.se);let t=o.ts.Zt;new o(t,i).re(t.hs.ae,t.ie),i.info("enableSDK was called"),eA.destroy(!1),eA.oe(!1)},getDeviceId:function(t){if(!eA.X())return;let e=eA.te();if(!e)return;let s=e.ce().id;if("function"!=typeof t)return s;i.warn("The callback for getDeviceId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getDeviceId()`)"),t(s)},getUser:ei,initialize:function(t,e){return eA.initialize(t,e)},isDisabled:function(){return!!new tu.ee(null,!0).br(tl.se)},isInitialized:function(){return eA.so()},logCustomEvent:e4,logPurchase:e6,openSession:function(){if(!eA.X())return;let t=eA.cr();if(!t)return;t.openSession();let e=o.ts.Zt,s=new o(e,i);s.jr(e.hs.hr,(a,r)=>{let n=r.lastClick,o=r.trackingString;i.info(`Firing push click trigger from ${o} push click at ${n}`);let l=t.kr(n,o),u=function(){ex.rr().fe(tQ.vr,[o],l)};t.$r(u,u),s.re(e.hs.hr,a)}),s.ss(e.hs.wr,function(e){t.yr(e)})},removeAllSubscriptions:function(){eA.X()&&eA.removeAllSubscriptions()},removeSubscription:ej,requestImmediateDataFlush:e9,setLogger:function(t){i.setLogger(t)},setSdkAuthenticationSignature:function(t){if(!eA.X()||""===t||!V(t,"set signature","signature",!1))return!1;let e=eA.Sr();return!!e&&(e.setSdkAuthenticationSignature(t),!0)},subscribeToSdkAuthenticationFailures:function(t){var e;if(eA.X())return null==(e=eA.Sr())?void 0:e.subscribeToSdkAuthenticationFailures(t)},toggleLogging:function(){i.toggleLogging()},wipeData:function(){let t=eA.l();if(null==t)return void i.warn(C);t.clearData();let e=b(o.ts);for(let t=0;t<e.length;t++){let s=e[t],a=o.ts[s];new o(a,i).clearData()}if(eA.X())for(let t of eA.gr())t.clearData(!0)},handleBrazeAction:function(t,e){es(t,e)},Feed:ia,getCachedFeed:function(){if(eA.X())return ii.rr().Gi()},destroyFeed:ir,logFeedDisplayed:io,requestFeedRefresh:is,showFeed:il,subscribeToFeedUpdates:ih,toggleFeed:function(t,e,i){eA.X()&&(document.querySelectorAll(".ab-feed").length>0?ir():il(t,e,i))},InAppMessage:tR,InAppMessageButton:tB,ControlMessage:t_,FullScreenMessage:tF,HtmlMessage:tL,ModalMessage:t$,SlideUpMessage:tq,automaticallyShowInAppMessages:function(){if(!eA.X())return;t4();let t=ev.m();if(null==t._i()){let e=ef(t=>eb(t));t.Pi(e)}return t._i()},logInAppMessageButtonClick:eu,logInAppMessageClick:t9,logInAppMessageHtmlClick:en,logInAppMessageImpression:t7,showInAppMessage:eb,subscribeToInAppMessage:ef,deferInAppMessage:function(t){if(eA.X())return t instanceof t_?(i.info("Not deferring since this is a ControlMessage."),!1):t instanceof tR?ev.m().je(t):(i.info("Not an instance of InAppMessage, ignoring."),!1)},getDeferredInAppMessage:function(){if(eA.X())return ev.m().Se()},isPushBlocked:function(){if(eA.X())return tx.isPushBlocked()},isPushPermissionGranted:function(){if(eA.X())return tx.isPushPermissionGranted()},isPushSupported:function(){if(eA.X())return tx.isPushSupported()},requestPushPermission:ib,unregisterPush:ig,User:tt,FeatureFlag:iw,refreshFeatureFlags:iS,getFeatureFlag:function(t){if(!eA.X())return;let e=eA.ir();if(e&&!e.mi())return i.info("Feature flags are not enabled."),null;let s=ix.rr().Fi();return s[t]?s[t]:null},subscribeToFeatureFlagsUpdates:function(t){if(!eA.X())return;let e=ix.rr();if(e.Ni()){let e=iC();e&&"function"==typeof t&&t(e)}return e.si(t)},getAllFeatureFlags:iC,logFeatureFlagImpression:function(t){if(!eA.X())return;if(!t)return!1;let e="Not logging a feature flag impression. The feature flag was not part of any matching experiment.",s=ix.rr().Fi();if(!s[t])return i.info(e),!1;let r=s[t].trackingString;if(!r)return i.info(e),!1;let n=ix.rr().pi();return n[r]?(i.info("Not logging another feature flag impression. This ID was already logged this session."),!1):(n[r]=!0,ix.rr().ji(n),e_.q(a.Fr,{fid:t,fts:r}).L)}}));window.braze=iA;var i_="Appboy",iN={PageView:3,PageEvent:4,Commerce:16},iT=mParticle.CommerceEventType,iI={"01":"sdk.iad-01.braze.com","02":"sdk.iad-02.braze.com","03":"sdk.iad-03.braze.com","04":"sdk.iad-04.braze.com","05":"sdk.iad-05.braze.com","06":"sdk.iad-06.braze.com","08":"sdk.iad-08.braze.com",EU:"sdk.fra-01.braze.eu",EU02:"sdk.fra-02.braze.eu"},iO=function(){var t,e,i,s,a,r,n=this,o={};n.name=i_,n.suffix="v5";var l={$LastName:"setLastName",$FirstName:"setFirstName",Email:"setEmail",$Gender:"setGender",$Country:"setCountry",$City:"setHomeCity",$Mobile:"setPhoneNumber",$Age:"setDateOfBirth",last_name:"setLastName",first_name:"setFirstName",email:"setEmail",gender:"setGender",country:"setCountry",home_city:"setHomeCity",email_subscribe:"setEmailNotificationSubscriptionType",push_subscribe:"setPushNotificationSubscriptionType",phone:"setPhoneNumber",dob:"setDateOfBirth"},u=!1,h=!1,c=["$google_ad_user_data","$google_ad_personalization"];function d(t){let e;switch(t){case iT.ProductAddToCart:e="add_to_cart";break;case iT.ProductRemoveFromCart:e="remove_from_cart";break;case iT.ProductCheckout:e="checkout";break;case iT.ProductCheckoutOption:e="checkout_option";break;case iT.ProductClick:e="click";break;case iT.ProductViewDetail:e="view_detail";break;case iT.ProductPurchase:e="purchase";break;case iT.ProductRefund:e="refund";break;case iT.ProductAddToWishlist:e="add_to_wishlist";break;case iT.ProductRemoveFromWishlist:e="remove_from_wishlist";break;case iT.PromotionView:e="view";break;case iT.PromotionClick:e="click";break;case iT.ProductImpression:e="Impression";break;default:e="unknown"}return["eCommerce",e].join(" - ")}function p(t,e){if("dob"===t)if(!(e instanceof Date))return"Can't call removeUserAttribute or setUserAttribute on forwarder "+i_+", removeUserAttribute or setUserAttribute must set 'dob' to a date";else k("braze.getUser().setDateOfBirth",e.getFullYear(),e.getMonth()+1,e.getDate()),braze.getUser().setDateOfBirth(e.getFullYear(),e.getMonth()+1,e.getDate());else if("$Age"===t)if("number"!=typeof e)return"$Age must be a number";else{var i=new Date().getFullYear()-e;k("braze.getUser().setDateOfBirth",i,1,1),braze.getUser().setDateOfBirth(i,1,1)}else{if(null==e&&(e=""),"string"!=typeof e)return"Can't call removeUserAttribute or setUserAttribute on forwarder "+i_+", removeUserAttribute or setUserAttribute must set this value to a string";var s=[];s.push(e),k("braze.getUser()."+l[t],s);var a=braze.getUser();if(!a[l[t]].apply(a,s))return"removeUserAttribute or setUserAttribute on forwarder "+i_+" failed to call, an invali
1d attribute value was passed in"}}function b(t){var e=E(t.EventName),i=S(t.EventAttributes);return null==i?"Properties did not pass validation for "+e:(k("braze.logCustomEvent",e,i),!0===braze.logCustomEvent(e,i))}function f(t){let e=[];return t&&0!==t.length&&t.forEach(function(t){var i=function(t){var e={};for(var i in t)switch(i){case"Sku":e.Id=t[i];break;case"Name":e.Name=h?t.Sku:t.Name;break;case"CouponCode":e["Coupon Code"]=t[i];break;case"TotalAmount":e["Total Product Amount"]=t[i];break;default:e[i]=t[i]}return e}(S(t));e.push(i)}),e}function m(t){k("calling MpBrazeKit.onUserIdentified");try{var i,s=t.getUserIdentities().userIdentities;(i="MPID"===e.userIdentificationType?t.getMPID():s[e.userIdentificationType.toLowerCase()])&&(k("braze.changeUser",i),braze.changeUser(i)),s.email&&(k("braze.getUser().setEmail",s.email),braze.getUser().setEmail(s.email))}catch(t){k("Error in calling MpBrazeKit.onUserIdentified",t.message)}}function g(t){for(var e in t)braze.getUser().setCustomUserAttribute(e,t[e])}function v(t){if(!a)return{};for(var e={},i={google_ad_user_data:"$google_ad_user_data",google_ad_personalization:"$google_ad_personalization"},s=0;s<=a.length-1;s++){var r=a[s],n=r.map.toLowerCase(),o=i[r.value];t[n]&&o&&-1!==c.indexOf(o)&&(e[o]=t[n].Consented)}return e}function w(i){var a,r,n;braze.addSdkMetadata(["mp"]),braze.subscribeToInAppMessage(function(t){var i=!0,s=!1;if(t instanceof braze.InAppMessage&&"push-primer"===(t.extras||{})["msg-id"]){if(s=!0,!1===braze.isPushSupported()||braze.isPushPermissionGranted()||braze.isPushBlocked()){i=!1;return}t.buttons[0]&&t.buttons[0].subscribeToClickedEvent(function(){braze.requestPushPermission()})}(s&&i||!s&&"True"===e.register_inapp)&&braze.showInAppMessage(t)});let o=null!==mParticle.Identity?mParticle.Identity.getCurrentUser():null,l=o?o.getMPID():null;if(o&&l){m(o),s&&(iz(a=v((r={},(n=o.getConsentState())&&n.getGDPRConsentState&&(r=n.getGDPRConsentState()),r)))||(t=JSON.stringify(a),g(a)))}braze.openSession(),i.softPushCustomEventName&&(k("braze.logCustomEvent",i.softPushCustomEventName),braze.logCustomEvent(i.softPushCustomEventName))}function y(t){if(t){var e=t.replace(/&/g,"&");e=t.replace(/"/g,'"');try{var i=JSON.parse(e);if(i&&i.JS)return"https://"+i.JS+"/api/v3"}catch(t){console.log("Unable to configure custom Braze cluster: "+t.toString())}}}function x(t){if("string"==typeof t)if("$"===t.substr(0,1))return t.replace(/^\$+/g,"");else return t;return null}function E(t){if("string"==typeof t)return x(t);if(Array.isArray(t)){var e=[];for(var i in t){var s=x(t[i]);if(null==s)return null;e.push(s)}return e}return t}function S(t){var e,i,s,a={};if(null==t&&(t={}),"object"!=typeof t)return null;for(var r in t)e=t[r],i=E(r),s="string"==typeof e?E(e):e,a[i]=s;return a}function k(t){var e="mParticle - Braze Web Kit log:",i=Array.prototype.slice.call(arguments,1);e+="\n"+t+":\n",i.forEach(function(t){iP(t)||Array.isArray(t)?e+=JSON.stringify(t):e+=t,e+=",\n"}),n.logger.verbose(e)}this.init=function(t,l,c,d,p,b,f,m,g){n.logger||(n.logger={verbose:function(){}}),r=g;try{if(e=t,u="True"===e.bundleCommerceEventData,h="True"===e.forwardSkuAsProductName,i=l,o.sessionTimeoutInSeconds=e.ABKSessionTimeoutKey||1800,o.sdkFlavor="mparticle",o.allowUserSuppliedJavascript="True"==e.enableHtmlInAppMessages,o.doNotLoadFontAwesome="True"==e.doNotLoadFontAwesome,e.safariWebsitePushId&&(o.safariWebsitePushId=e.safariWebsitePushId),e.serviceWorkerLocation&&(o.serviceWorkerLocation=e.serviceWorkerLocation),e.consentMappingSDK){var v;v=e.consentMappingSDK,(a=JSON.parse(v.replace(/"/g,'"'))).length&&(s=!0)}var x=e.cluster||e.dataCenterLocation;if(iI.hasOwnProperty(x))o.baseUrl=iI[x];else{var E=y(x);E&&(o.baseUrl=E)}if(r&&r["28"]){var S=r["28"];"function"==typeof S.initOptions&&S.initOptions(o)}if(!0!==c)braze.initialize(e.apiKey,o),w(e);else{if(!braze.initialize(e.apiKey,o))return"Failed to initialize: "+i_;w(e)}return"Successfully initialized: "+i_}catch(t){return"Failed to initialize: "+i_+" with error: "+t.message}},this.process=function(s){var r,o,l,c=!1;if(function(e){if(t&&!iz(a)){var i,s=(i=e.ConsentState)&&i.getGDPRConsentState?i.getGDPRConsentState():{};if(!iz(s)){var r=v(s),n=JSON.stringify(r);n!==t&&(g(r),t=n)}}}(s),s.EventDataType==iN.Commerce)c=function(t){var e,i,s,a,r,n,o=!1;if(t.EventCategory!==iT.ProductPurchase){return!0===(e=t,o=u?function(t){let e={},i=d(t.EventCategory);try{switch(t.EventCategory){case iT.PromotionClick:case iT.PromotionView:e.promotions=(s=t.PromotionAction)&&s.PromotionList?s.PromotionList:[];break;case iT.ProductImpression:e.impressions=(a=t.ProductImpressions).length?a.map(function(t){return{"Product Impression List":t.ProductImpressionList,products:f(t.ProductList)}}):[];break;default:t.ProductAction.ProductList&&(e.products=f(t.ProductAction.ProductList));var s,a,r=t.ProductAction.TransactionId,n=t.ProductAction.TotalAmount,o=t.ProductAction.TaxAmount,l=t.ProductAction.ShippingAmount,u=t.ProductAction.Affiliation;r&&(e["Transaction Id"]=r),n&&(e["Total Amount"]=n),o&&(e["Tax Amount"]=o),l&&(e["Shipping Amou
1nt"]=l),u&&(e.Affiliation=u)}var h=S(t.EventAttributes);let c={EventName:i,EventAttributes:iD(e,h)};return b(c)}catch(t){return"Error logging commerce event"+t.message}}(e):function(t){var e=!1,i=mParticle.eCommerce.expandCommerceEvent(t);if(null!==i){for(var s=0;s<i.length;s++){var a=!1;try{e=b(i[s]),!0===e&&(a=!0)}catch(t){return"Error logging page event"+t.message}}e=!0===a}return e}(e))}return!0==(!0==(u?(s=iD((i=t).EventAttributes,{products:[]}),a=d(i.EventCategory),!!i.ProductAction&&(i.ProductAction.TransactionId&&(s["Transaction Id"]=i.ProductAction.TransactionId),i.ProductAction.ProductList&&i.ProductAction.ProductList.length&&(s.products=f(i.ProductAction.ProductList)),k("braze.logPurchase",a,i.ProductAction.TotalAmount,i.CurrencyCode,1,s),!0===braze.logPurchase(a,i.ProductAction.TotalAmount,i.CurrencyCode,1,s))):(n=!1,(r=t).ProductAction.ProductList&&r.ProductAction.ProductList.forEach(function(t){var e=E(h?t.Sku:t.Name);null==t.Attributes&&(t.Attributes={}),t.Attributes.Sku=t.Sku;var i=S(iD(t.Attributes,{"Transaction Id":r.ProductAction.TransactionId}));if(null==i)return"Properties did not pass validation for "+e;var s=parseFloat(t.Price);k("braze.logPurchase",e,s,r.CurrencyCode,t.Quantity,i),n=braze.logPurchase(e,s,r.CurrencyCode,t.Quantity,i)}),!0===n)))}(s);else if(s.EventDataType==iN.PageEvent)c=b(s);else{if(s.EventDataType!=iN.PageView)return"Can't send event type to forwarder "+i_+", event type is not supported";"True"==e.forwardScreenViews&&((l=s.EventAttributes||{}).hostname=window.location.hostname,l.title=window.document.title,k("braze.logCustomEvent",r=E("True"===e.setEventNameForPageView?s.EventName:window.location.pathname),o=S(l)),c=!0===braze.logCustomEvent(r,o))}!0===c&&i&&i(n,s)},this.setUserIdentity=function(t,e){if("1"===window.mParticle.getVersion().split(".")[0])if(e==window.mParticle.IdentityType.CustomerId)k("braze.changeUser",t),braze.changeUser(t);else{if(e!=window.mParticle.IdentityType.Email)return"Can't call setUserIdentity on forwarder "+i_+", identity type not supported.";k("braze.getUser().setEmail",t),braze.getUser().setEmail(t)}},this.setUserAttribute=function(t,e){if(t in l)return p(t,e);var i=E(t),s=E(e);if(null!=e&&null==s)return"Value did not pass validation for "+t;k("braze.getUser().setCustomUserAttribute",i,s),braze.getUser().setCustomUserAttribute(i,s)},this.onUserIdentified=m,this.removeUserAttribute=function(t){if(t in l)return p(t,null);var e=E(t);k("braze.getUser().setCustomUserAttribute",e,null),braze.getUser().setCustomUserAttribute(e,null)},this.decodeClusterSetting=y};function iD(){for(var t={},e=0;e<arguments.length;e+=1)for(var i=arguments[e],s=Object.keys(i),a=0;a<s.length;a+=1)t[s[a]]=i[s[a]];return t}function iP(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}function iz(t){return null==t||!(Object.keys(t)||t).length}window&&window.mParticle&&window.mParticle.addForwarder&&window.mParticle.addForwarder({name:i_,constructor:iO,getId:function(){return 28},suffix:"v5"}),e.default={register:function(t){var e=[i_,"v5"].join("-");return t?iP(t)?void(iP(t.kits)||(t.kits={}),t.kits[e]={constructor:iO},window.console.log("Successfully registered "+e+" to your mParticle configuration")):void window.console.log("'config' must be an object. You passed in a "+typeof t):void window.console.log("You must pass a config object to register the kit "+e)},getVersion:function(){return"5.0.1"}}}}]); 2//# sourceMappingURL=d12f1bfe.48f9efd415b91765.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.