PageSourceSearch

https://www.americastestkitchen.com/about-us/espresso-assets/_next/static/chunks/7373-4dad556181d82d37.js

js americastestkitchen.com collected 2026-10-09 22:12:12 UTC 187,677 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7373],{3205:(e,t,i)=>{i.d(t,{g:()=>c,x:()=>d});var n=i(5239),a=i(57334),s=i(23295),r=i(43278),o=i(39451),l=i(59795),u=i(88166),h=i(68842);function c(e){let t;if(!e)return null;if(e.is_control)return n.A.fromJson(e);let i=e.type;null!=i&&(i=i.toUpperCase());let c=e.message,d=e.text_align_message,p=e.slide_from,m=e.extras,g=e.trigger_id,b=e.click_action,f=e.uri,v=e.open_target,A=e.message_close,w=e.duration,y=e.icon,S=e.image_url,E=e.image_style,x=e.icon_color,T=e.icon_bg_color,C=e.bg_color,k=e.text_color,O=e.close_btn_color,_=e.header,I=e.text_align_header,N=e.header_text_color,R=e.frame_color,M=[],z=e.btns;null==z&&(z=[]);for(let e=0;e<z.length;e++)M.push(r.A.fromJson(z[e]));let D=e.crop_type,P=e.orientation,B=e.animate_in,U=e.animate_out,$=e.html_id,L=e.css;null!=$&&""!==$&&null!=L&&""!==L||($=void 0,L=void 0);let G=e.message_extras,F=e.language,j=e.image_alt;if(i===h.o6.aE||i===h.o6.UE)t=new o.A(c,d,m,g,b,f,v,A,w,y,S,E,x,T,C,k,O,B,U,_,I,N,R,M,D,$,L,G,F,j);else if(i===h.o6.cE)t=new a.A(c,d,m,g,b,f,v,A,w,y,S,E,x,T,C,k,O,B,U,_,I,N,R,M,D,P,$,L,G,F,j);else if(i===h.o6.sE)t=new l.A(c,d,p,m,g,b,f,v,A,w,y,S,x,T,C,k,O,B,U,$,L,G,F,j);else{if(i!==h.o6.iE&&i!==h.o6.PE&&i!==h.o6.nE)return void u.A.error("Ignoring message with unknown type "+i);{let i=e.message_fields;(t=new s.A(c,m,g,A,w,B,U,R,$,L,i,G)).trusted=e.trusted||!1}}return t.ko=i,t}function d(e){let t=[];for(let i of e)t.push(new r.A(i.text,i.backgroundColor,i.textColor,i.borderColor,i.clickAction,i.uri,i.id));return t}},4794:(e,t,i)=>{i.d(t,{$k:()=>n,Fn:()=>s,MF:()=>c,T:()=>d,_S:()=>u,em:()=>p,et:()=>l,mO:()=>r,uR:()=>o,uy:()=>a,xm:()=>h});let n=100,a=30,s=30,r=72e5,o=15,l=1,u=200,h=1e4,c=3,d=3e5,p={ee:"Braze must be initialized before calling methods.",je:"logCustomEvent",Ku:"setCustomUserAttribute"}},5113:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(16491);class a{constructor(){this.In={}}Kt(e){if("function"!=typeof e)return null;let t=n.A.de();return this.In[t]=e,t}removeSubscription(e){delete this.In[e]}removeAllSubscriptions(){this.In={}}Le(){return Object.keys(this.In).length}A(e){let t=[];for(let i in this.In){let n=this.In[i];t.push(n(e))}return t}}},5239:(e,t,i)=>{i.d(t,{A:()=>n});class n{constructor(e,t){this.triggerId=e,this.messageExtras=t,this.triggerId=e,this.messageExtras=t,this.extras={},this.isControl=!0,this.Zt=!1}static fromJson(e){return new n(e.trigger_id,e.message_extras)}gs(){return!this.Zt&&(this.Zt=!0,!0)}sm(){return this.Zt}}},6546:(e,t,i)=>{i.d(t,{A:()=>O});var n=i(28005),a=i(74693),s=i(5239),r=i(23295),o=i(16539),l=i(43278),u=i(14566),h=i(3205),c=i(72732),d=i(20785),p=i(39102),m=i(88166),g=i(5113),b=i(71851),f=i(42729),v=i(26034),A=i(80336),w=i(26063),y=i(9825),S=i(57334),E=i(39451),x=i(59795),T=i(68842);class C{constructor(e,t,i,n){this.B=e,this.j=t,this.C=i,this.Ss=n,this.B=e,this.j=t,this.C=i,this.Ss=n,this.In=new g.A,a.Ay.S(this.In),this.An=1e3,this.Dn=6e4,this.Bn=null,this._n=null,this.qn=null}Pn(){return this.In}En(e){return this.In.Kt(e)}Gn(){return this.Bn}Nn(e){this.Bn=e}wt(e,t,i,n){let a,o=new d.A;if(t===p.w.Fn||e instanceof s.A){if(!e.gs())return m.A.info("This in-app message has already received an impression. Ignoring analytics event."),o}else if((t===p.w.On||e instanceof r.A&&t===p.w.Xn)&&!e.ss(n))return m.A.info("This in-app message has already received a click. Ignoring analytics event."),o;return null==(a=e instanceof s.A?{trigger_ids:[e.triggerId]}:this.Hn(e))?o:(e.messageExtras&&(a.message_extras=e.messageExtras),null!=i&&(a.bid=i),u.A.wt(t,a))}Jn(e,t){let i=new d.A;if(!e.ss())return m.A.info("This in-app message button has already received a click. Ignoring analytics event."),i;let n=this.Hn(t);return null==n?i:e.id===l.A.Kn?(m.A.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),i):(null!=e.id&&(n.bid=e.id),u.A.wt(p.w.Xn,n))}Ln(e){let t=e.messageFields;return null!=t&&t.is_push_primer||!1}Qn(e){let t;if(!(e instanceof o.A))return;let i=e=>{if(!e)return;let t=(0,v.jj)(e);if((0,v.qj)(t))return(0,v.$6)(v.mY.Un,"In-App Message");if((0,v.dy)(t)){let e=A.A.Vn();if(!e.Wn)return A.A.Yn(e.reason,"In-App Message")}};if(this.Ln(e)){let e=A.A.Vn();if(!e.Wn)return A.A.Yn(e.reason,"In-App Message")}for(let n of e.buttons||[])if(n.clickAction===T.Os.URI&&n.uri&&f.nx.test(n.uri)&&(t=i(n.uri)))return t;return e.clickAction===T.Os.URI&&e.uri&&f.nx.test(e.uri)?i(e.uri):void 0}Zn(e,t){t!==this.qn&&this._o(),this._n=e,this.qn=t}_o(){null!=this._n&&(clearTimeout(this._n),this._n=null,this.qn=null)}Xo(e,t,i,a){let s=this.B;if(!s)return;this.qn&&e.triggerId!==this.qn&&(this._o(),w.A.Li(this.C,w.A.it.Yo));let r=s.Zo(!1),o=s.Z(r);o.template={trigger_id:e.triggerId,trigger_event_type:t},null!=i&&(o.template.data=i.ta());let l=s.tt(o,w.A.it.Yo);s.et(o,(s=-1)=>{let r=this.B;if(!r)return;let u=new Date().valueOf();w.A.nt(this.C,w.A.it.Yo,u),-1!==s&&l.push(["X-Braze-Req-Tokens-Remaining",s.toString()]);let d,p,g=!1;n.A.ot({url:`${r.ht()}/template/`,data:o,headers:l,lt:t=>{if(!r.ut(o,t,l))return void("function"==typeof e.ia&&e.ia());if(r.ct(),null==t||null==t.templated_message)return;let i=t.templated_message;if(i.type!==b.A.la.oa)return;let n=(0,h.g)(i.data);if(null==n)return;let a=this.Qn(n);a?(m.A.error(a),"function"==typeof e.ia&&e.ia()):"function"==typeof e.ua&&e.ua(n)},error:t=>{g=!0,d=t,p=`getting user personalization for message ${e.triggerId}.`},ft:(n,s)=>{if(new Date().valueOf()-e.ma<e.ca){let n=0;if(g){let t=Math.min(e.ca,this.Dn),i=this.An;null==a&&(a=i),n=Math.min(t,(0,c.C)(i,3*a))}r.yt(s,()=>{this.Xo(e,t,i,n)},w.A.it.Yo,t=>this.Zn(t,e.triggerId),()=>this._o(),n)}g&&r.dt(d,p)}})},w.A.it.Yo)}Hn(e){if(null==e.triggerId)return m.A.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;let t={};return null!=e.triggerId&&(t.trigger_ids=[e.triggerId]),t}jn(e){return!!this.C&&!(!(e&&e instanceof o.A&&e.constructor!==o.A)||e instanceof s.A)&&this.C.It(y.d.Tt.pa,e.qt())}sa(){let e;if(!this.C)return null;let t=this.C.Rt(y.d.Tt.pa);if(!t)return null;switch(t.type){case T.o6.cE:e=S.A.ha(t);break;case T.o6.iE:case T.o6.PE:case T.o6.nE:e=r.A.ha(t);break;case T.o6.aE:case T.o6.UE:e=E.A.ha(t);break;case T.o6.sE:e=x.A.ha(t)}return e&&this.fa(),e}fa(){this.C&&this.C.Qt(y.d.Tt.pa)}}let k={na:null,i:!1,ra:()=>(k.t(),k.na||(k.na=new C(a.Ay.m(),a.Ay.u(),a.Ay.p(),a.Ay.ir())),k.na),t:()=>{k.i||(a.Ay.g(k),k.i=!0)},destroy:()=>{k.na=null,k.i=!1}},O=k},9482:(e,t,i)=>{i.d(t,{A:()=>n});let n={OPEN:"open",Rr:"purchase",Fr:"push_click",he:"custom_event",rm:"iam_click",Ls:"test"}},9825:(e,t,i)=>{i.d(t,{A:()=>d,d:()=>c});var n=i(95883),a=i(31463),s=i(44259),r=i(39102),o=i(88166),l=i(75632),u=i(49134),h=i(83736);let c={Ou:{Cu:"ab.storage.userId",Wh:"ab.storage.deviceId",um:"ab.storage.sessionId"},Tt:{_c:"ab.test",QE:"ab.storage.events",ZE:"ab.storage.attributes",$E:"ab.storage.attributes.anonymous_user",Ba:"ab.storage.device",Ka:"ab.storage.sdk_metadata",Pa:"ab.storage.session_id_for_cached_metadata",Uu:"ab.storage.pushToken",tS:"ab.storage.cardImpressions",tc:"ab.storage.serverConfig",eS:"ab.storage.triggers",sS:"ab.storage.triggers.ts",dm:"ab.storage.messagingSessionStart",Ci:"ab.storage.cc",gi:"ab.storage.ccLastFullSync",ji:"ab.storage.ccLastCardUpdated",Ml:"ab.storage.globalRateLimitCurrentTokenCount",Ll:"ab.storage.dynamicRateLimitCurrentTokenCount",ns:"ab.storage.ccClicks",hs:"ab.storage.ccImpressions",us:"ab.storage.ccDismissals",rS:"ab.storage.lastDisplayedTriggerTimesById",oS:"ab.storage.lastDisplayedTriggerTime",nS:"ab.storage.triggerFireInstancesById",fh:"ab.storage.signature",aS:"ab.storage.brazeSyncRetryCount",ki:"ab.storage.sdkVersion",Fo:"ab.storage.ff",jo:"ab.storage.ffImpressions",qo:"ab.storage.ff
1LastRefreshAt",Do:"ab.storage.ff.sessionId",iS:"ab.storage.lastReqToEndpoint",ES:"ab.storage.requestAttempts",pa:"ab.storage.deferredIam",Cl:"ab.storage.lastSdkReq",SS:"ab.storage.alias",St:"ab.storage.banners",Wt:"ab.storage.banners.impressions",Mt:"ab.storage.banners.dismissals",_t:"ab.storage.banners.sessionId",Gt:"ab.storage.banners.lastRequestedTime",Ke:"ab.storage.dust.mite",Qe:"ab.storage.dust.host",Ve:"ab.storage.dust.auth",Xe:"ab.storage.dust.expiration"},ce:"ab.optOut"};class d{constructor(e,t){this.lS=e,this._S=t,this.lS=e,this._S=t}hl(e){let t=(0,s.HP)(c.Ou),i=new d.le(e);for(let e of t)i.remove(c.Ou[e])}Iu(e,t){let i=null;null!=t&&t instanceof a.A&&(i=t.qt()),this.lS.store(e,i)}uS(e){let t=this.$u(e);null!=t&&(t.pm=new Date().valueOf(),this.Iu(e,t))}$u(e){let t,i=this.lS.wr(e),n=(e=>{let t;try{t=JSON.parse(e)}catch(e){t=null}return t})(i);if(n)(t=a.A._u(n)||null)&&this.Iu(e,t);else{let n=a.A.cS(i);t=a.A._u(n)||null,n!==i&&t&&this.Iu(e,t)}return t}jm(e){this.lS.remove(e)}ll(){let e;for(let t of(0,s.HP)(c.Ou))null!=(e=this.$u(c.Ou[t]))&&this.Iu(c.Ou[t],e)}ol(e){let t;if(null==e||0===e.length)return!1;t=(0,s.cy)(e)?e:[e];let i=this._S.wr(c.Tt.QE);null!=i&&(0,s.cy)(i)||(i=[]);for(let e=0;e<t.length;e++)i.push(t[e].qt());return this._S.store(c.Tt.QE,i)}gm(e){return null!=e&&this.ol([e])}TS(){let e=this._S.wr(c.Tt.QE);this._S.remove(c.Tt.QE),null==e&&(e=[]);let t=[],i=!1,a=null;if((0,s.cy)(e))for(let i=0;i<e.length;i++)n.A.hS(e[i])?t.push(n.A._u(e[i])):a=i;else i=!0;if(i||null!=a){let s="Stored events could not be deserialized as Events";i&&(s+=", was "+Object.prototype.toString.call(e)+" not an array"),null!=a&&(s+=", value at index "+a+" does not look like an event"),s+=", serialized values were of type "+typeof e+": "+JSON.stringify(e),t.push(new n.A(null,r.w.Ya,new Date().valueOf(),null,{e:s}))}return t}It(e,t){return!!(0,s.BY)(c.Tt,e,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&this._S.store(e,t)}Rt(e){return!!(0,s.BY)(c.Tt,e,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")&&this._S.wr(e)}Qt(e){return!!(0,s.BY)(c.Tt,e,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&(this._S.remove(e),!0)}clearData(){let e=(0,s.HP)(c.Ou),t=(0,s.HP)(c.Tt);for(let t=0;t<e.length;t++){let i=e[t];this.lS.remove(c.Ou[i])}for(let e=0;e<t.length;e++){let i=t[e];this._S.remove(c.Tt[i])}}AS(e){return e||c.Tt.$E}vl(e){let t=this._S.wr(c.Tt.ZE);null==t&&(t={});let i=this.AS(e[l.A.Sa]),n=t[i];for(let a in e)a!==l.A.Sa&&(null==t[i]||n&&null==n[a])&&this.Eu(e[l.A.Sa],a,e[a])}Eu(e,t,i){let n=this._S.wr(c.Tt.ZE);null==n&&(n={});let a=this.AS(e),s=n[a];if(null==s&&(s={},null!=e&&(s[l.A.Sa]=e)),t===l.A.Bu)for(let e in null==s[t]&&(s[t]={}),i)s[t][e]=i[e];else s[t]=i;return n[a]=s,this._S.store(c.Tt.ZE,n)}gS(){let e=this._S.wr(c.Tt.ZE);this._S.remove(c.Tt.ZE);let t=[];for(let i in e)null!=e[i]&&t.push(e[i]);return t}Lu(e){let t=this._S.wr(c.Tt.ZE);if(null!=t){let i=this.AS(null),n=t[i];null!=n&&(t[i]=void 0,this._S.store(c.Tt.ZE,t),n[l.A.Sa]=e,this.vl(n))}let i=this.$u(c.Ou.um),n=null;null!=i&&(n=i.Tu);let a=this.TS();if(null!=a)for(let t=0;t<a.length;t++){let i=a[t];null==i.userId&&i.sessionId==n&&(i.userId=e),this.gm(i)}}RS(){return this._S.dS}}d.wc=class{constructor(e){this.tu=e,this.tu=e,this.dS=u.A.IS()?3:10}bS(e){return e+"."+this.tu}store(e,t){try{return localStorage.setItem(this.bS(e),JSON.stringify({v:t})),!0}catch(e){return o.A.info("Storage failure: "+(0,h.u)(e)),!1}}wr(e){try{let t=null,i=localStorage.getItem(this.bS(e));return null!=i&&(t=JSON.parse(i)),null==t?null:t.v}catch(e){return o.A.info("Storage retrieval failure: "+(0,h.u)(e)),null}}remove(e){try{localStorage.removeItem(this.bS(e))}catch(e){return o.A.info("Storage removal failure: "+(0,h.u)(e)),!1}}},d.Rc=class{constructor(){this.fS={},this.mS=5242880,this.dS=3}store(e,t){let i=this.KS(t);return i>this.mS?(o.A.info("Storage failure: object is ≈"+i+" bytes which is greater than the max of "+this.mS),!1):(this.fS[e]={value:t},!0)}KS(e){let t=[],i=[e],n=0;for(;i.length;){let e=i.pop();if("boolean"==typeof e)n+=4;else if("string"==typeof e)n+=2*e.length;else if("number"==typeof e)n+=8;else if("object"==typeof e&&-1===t.indexOf(e))for(let n in t.push(e),e)i.push(e[n])}return n}wr(e){let t=this.fS[e];return null==t?null:t.value}remove(e){this.fS[e]=null}},d.le=class{constructor(e,t,i){this.tu=e,this.YS=t,this.tu=e,this.NS=this.DS(),this.GS=24*("number"==typeof i&&i>0?i:400)*60,this.CS={},this.YS=!!t}bS(e){return null!=this.tu?e+"."+this.tu:e}DS(){let e=0,t=document.location.hostname,i=t.split("."),n="ab._gd";
1for(;e<i.length-1&&-1===document.cookie.indexOf(n+"="+n);)e++,t="."+i.slice(-1-e).join("."),document.cookie=n+"="+n+";domain="+t+";";return document.cookie=n+"=;expires="+new Date(0).toUTCString()+";domain="+t+";",t}me(){let e=new Date;return e.setTime(e.getTime()+60*this.GS*1e3),e.getFullYear()}MS(){let e=(0,s.zu)(c.Ou),t=document.cookie.split(";");for(let i=0;i<t.length;i++){let n=t[i];for(;" "===n.charAt(0);)n=n.substring(1);let a=!1;for(let t=0;t<e.length;t++)if(0===n.indexOf(e[t])){a=!0;break}if(a){let e=n.split("=")[0];-1===e.indexOf("."+this.tu)&&this.pS(e)}}}store(e,t){let i;this.MS();let n=this.bS(e),a=new Date;a.setTime(a.getTime()+60*this.GS*1e3);let s="expires="+a.toUTCString(),r="domain="+this.NS,l=n+"="+(i=this.YS?t:encodeURIComponent(t))+";"+s+";"+r+";path=/";if(l.length>=4093)return o.A.info("Storage failure: string is "+l.length+" chars which is too large to store as a cookie."),this.CS[n]=!0,this.pS(n),!1;try{document.cookie=l}catch(e){return o.A.info("Storage failure: "+(0,h.u)(e)),this.CS[n]=!0,!1}let u=this.YS?String(i):decodeURIComponent(i);return this.vS(n)!==u?(o.A.info(`Storage failure: unable to verify cookie write for "${n}". Falling back to other storage.`),this.CS[n]=!0,this.pS(n),!1):(delete this.CS[n],!0)}wr(e){let t=this.bS(e);return this.CS[t]?null:this.vS(t)}vS(e){let t=[],i=e+"=",n=document.cookie.split(";");for(let a=0;a<n.length;a++){let s=n[a];for(;" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(i))try{let e;e=this.YS?s.substring(i.length,s.length):decodeURIComponent(s.substring(i.length,s.length)),t.push(e)}catch(t){return o.A.info("Storage retrieval failure: "+(0,h.u)(t)),this.pS(e),null}}return t.length>0?t[t.length-1]:null}remove(e){this.pS(this.bS(e))}pS(e){let t=e+"=;expires="+new Date(0).toUTCString();document.cookie=t,document.cookie=t+";path=/";let i=t+";domain="+this.NS;document.cookie=i,document.cookie=i+";path=/"}},d.Ec=class{constructor(e,t,i,n){this.tu=e,this.US=[],t&&this.US.push(new d.le(e,void 0,n)),i&&this.US.push(new d.wc(e)),this.US.push(new d.Rc)}store(e,t){let i=!0;for(let n=0;n<this.US.length;n++)i=this.US[n].store(e,t)&&i;return i}wr(e){for(let t=0;t<this.US.length;t++){let i=this.US[t].wr(e);if(null!=i)return i}return null}remove(e){new d.le(this.tu).remove(e);for(let t=0;t<this.US.length;t++)this.US[t].remove(e)}}},10416:(e,t,i)=>{i.d(t,{B:()=>g});var n=i(6546),a=i(74693),s=i(48662),r=i(3205),o=i(95883),l=i(44259),u=i(9825);class h{constructor(e,t,i,n,a){this.triggerId=e,this.ua=t,this.ia=i,this.ma=n,this.ca=a,this.triggerId=e,this.ua=t,this.ia=i,this.ma=n,this.ca=a}static fromJson(e,t,i,n,a){return null==e||null==e.trigger_id?null:new h(e.trigger_id,t,i,n,a)}}var c=i(71851),d=i(9482),p=i(88166);class m extends s.A{constructor(e,t,i,n,a){super(),this.tg=e,this.Rs=t,this.C=i,this.Ru=n,this.ig=a,this.tg=e,this.Rs=t,this.C=i,this.Ru=n,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.C){this.hg=this.C.Rt(u.d.Tt.oS)||this.hg,this.ng=this.C.Rt(u.d.Tt.nS)||this.ng,this.og=this.C.Rt(u.d.Tt.rS)||this.og;for(let e=0;e<this.triggers.length;e++){let t=this.triggers[e];t.id&&null!=this.og[t.id]&&t.md(this.og[t.id])}}}ag(){if(!this.C)return;this.lg=this.C.Rt(u.d.Tt.sS)||0;let e=this.C.Rt(u.d.Tt.eS)||[],t=[];for(let i=0;i<e.length;i++)t.push(c.A._u(e[i]));this.triggers=t,this.fg()}gg(){let e=this,t=function(t,i,n,a,s){return function(){e.cg(t,i,n,a,s)}},i={};for(let e of this.triggers)e.id&&(i[e.id]=e);let n=!1;for(let e=0;e<this.triggers.length;e++){let a=this.triggers[e];if(a.id&&null!=this.ng[a.id]){let e=this.ng[a.id],s=[];for(let n=0;n<e.length;n++){let r=e[n],u=a.gd(r.ma||0);if(u>0){let e,n;s.push(r),null!=r.ug&&(e=r.ug),null!=r.dg&&o.A.hS(r.dg)&&(n=o.A._u(r.dg));let h=[];if(r.pg&&(0,l.cy)(r.pg))for(let e=0;e<r.pg.length;e++){let t=i[r.pg[e]];null!=t&&h.push(t)}this.eg.push(window.setTimeout(t(a,r.ma||0,e,n,h),u))}}this.ng[a.id].length>s.length&&(this.ng[a.id]=s,n=!0,0===this.ng[a.id].length&&delete this.ng[a.id])}}n&&this.C&&this.C.It(u.d.Tt.nS,this.ng)}mg(){if(!this.C)return;let e=[];for(let t=0;t<this.triggers.length;t++)e.push(this.triggers[t].qt());this.lg=new Date().valueOf(),this.C.It(u.d.Tt.eS,e),this.C.It(u.d.Tt.sS,this.lg)}bg(){this.C&&((this.C.Rt(u.d.Tt.sS)||0)>this.lg?this.ag():this.fg())}I(e){let t=!1;if(null!=e&&e.triggers){let i;this.ig.fa(),this.fg();let n={},a={};this.triggers=[];for(let i=0;i<e.triggers.length;i++){let s=c.A.fromJson(e.triggers[i]);if(s){s.id&&null!=this.og[s.id]&&(s.md(this.og[s.id]),n[s.id]=this.og[s.id]),s.id&&null!=this.ng[s.id]&&(a[s.id]=this.ng[s.id]);for(let e=0;e<s.ed.length;e++)if(s.ed[e].Vc(d.A.Ls,null)){t=!0;break}this.triggers.push(s)}}(0,l.n4)(this.og,n)||(this.og=n,this.C&&this.C.It(u.d.Tt.rS,this.og)),(0,l.n4)(this.ng,a)||(this.ng=a,this.C&&this.C.It(u.d.Tt.nS,this.ng)),this.mg(),t&&(p.A.info("Trigger with test c
1ondition found, firing test."),this.Ee(d.A.Ls)),this.Ee(d.A.OPEN);let s=this.sg;this.sg=[];for(let e=0;e<s.length;e++)i=Array.prototype.slice.call(s[e]),this.Ee(...i)}}cg(e,t,i,n,a){let s,o,l,u=n=>{this.fg();let a=new Date().valueOf();e.fd(t)||(!1===navigator.onLine&&e.type===c.A.la.oa&&n.imageUrl?p.A.info(`Not showing ${e.type} trigger action ${e.id} due to offline state.`):e.dd(a)&&this.wg(e,a,i)?0===this.Rs.Le()?p.A.info(`Not displaying trigger ${e.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.Rs.A([n]),this.yg(e,a)):p.A.info(`Not displaying trigger ${e.id} because display time fell outside of the acceptable time window.`))},d=()=>{this.fg();let s=a.pop();if(null!=s)if(this.Tg(s,t,i,n,a),s.fd(t)){let e=`Server aborted in-app message display, but the timeout on fallback trigger ${s.id} has already elapsed.`;a.length>0&&(e+=" Continuing to fall back."),p.A.info(e),d()}else{p.A.info(`Server aborted in-app message display. Falling back to lower priority ${s.type} trigger action ${e.id}.`);let r=1e3*s.hd-(new Date().valueOf()-t);r>0?this.eg.push(window.setTimeout(()=>{this.cg(s,t,i,n,a)},r)):this.cg(s,t,i,n,a)}};switch(e.type){case c.A.la.oa:if(null==(s=(0,r.g)(e.data))){p.A.error(`Could not parse trigger data for trigger ${e.id}, ignoring.`);break}if(o=this.ig.Qn(s)){p.A.error(o),d();break}u(s);break;case c.A.la.pd:if(null==(l=h.fromJson(e.data,u,d,t,e.ca||0))){p.A.error(`Could not parse trigger data for trigger ${e.id}, ignoring.`);break}this.ig.Xo(l,i,n);break;default:p.A.error(`Trigger ${e.id} was of unexpected type ${e.type}, ignoring.`)}}Ee(e,t=null,i){if(!(0,l.BY)(d.A,e,"Cannot fire trigger action.","TriggerEvents"))return;if(this.Ru&&this.Ru.Ic())return p.A.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.sg.push(arguments);this.bg();let n=new Date().valueOf(),a=n-(this.hg||0),s=!0,r=!0,o=[];for(let i=0;i<this.triggers.length;i++){let a=this.triggers[i],l=n+1e3*a.hd;if(a.dd(l)&&(null==a.startTime||a.startTime.valueOf()<=n)&&(null==a.endTime||a.endTime.valueOf()>=n)){let i=!1;for(let n=0;n<a.ed.length;n++)if(a.ed[n].Vc(e,t)){i=!0;break}i&&(s=!1,this.wg(a,l,e)&&(r=!1,o.push(a)))}}if(s)return void p.A.info(`Trigger event ${e} did not match any trigger conditions.`);if(r)return void p.A.info(`Ignoring ${e} trigger event because a trigger was displayed ${a/1e3}s ago.`);o.sort((e,t)=>e.priority-t.priority);let u=o.pop();null!=u&&(p.A.info(`Firing ${u.type} trigger action ${u.id} from trigger event ${e}.`),this.Tg(u,n,e,i,o),0===u.hd?this.cg(u,n,e,i,o):this.eg.push(window.setTimeout(()=>{this.cg(u,n,e,i,o)},1e3*u.hd)))}changeUser(e=!1){if(this.triggers=[],this.C&&this.C.Qt(u.d.Tt.eS),!e){this.sg=[],this.hg=null,this.og={},this.ng={};for(let e=0;e<this.eg.length;e++)clearTimeout(this.eg[e]);this.eg=[],this.C&&(this.C.Qt(u.d.Tt.oS),this.C.Qt(u.d.Tt.rS),this.C.Qt(u.d.Tt.nS))}}clearData(){this.triggers=[],this.hg=null,this.og={},this.ng={};for(let e=0;e<this.eg.length;e++)clearTimeout(this.eg[e]);this.eg=[]}wg(e,t,i){if(null==this.hg)return!0;if(i===d.A.Ls)return p.A.info("Ignoring minimum interval between trigger because it is a test type."),!0;let n=e.ad;return null==n&&(n=this.tg),t-this.hg>=1e3*n}Tg(e,t,i,n,a){let s;this.fg(),e.id&&(this.ng[e.id]=this.ng[e.id]||[]);let r={};r.ma=t,r.ug=i,null!=n&&(s=n.qt()),r.dg=s;let o=[];for(let e of a)e.id&&o.push(e.id);r.pg=o,e.id&&this.ng[e.id].push(r),this.C&&this.C.It(u.d.Tt.nS,this.ng)}yg(e,t){this.fg(),e.md(t),this.hg=t,e.id&&(this.og[e.id]=t),this.C&&(this.C.It(u.d.Tt.oS,t),this.C.It(u.d.Tt.rS,this.og))}}let g={i:!1,provider:null,o:()=>(g.t(),g.provider||g.rg(),g.provider),rg:()=>{if(!g.provider){let e=a.Ay.er(a.lw.Dh);g.provider=new m(null!=e?e:30,n.A.ra().Pn(),a.Ay.p(),a.Ay.nn(),n.A.ra()),a.Ay.v(g.provider)}},t:()=>{g.i||(g.rg(),a.Ay.g(g),g.i=!0)},destroy:()=>{g.provider=null,g.i=!1}}},11514:(e,t,i)=>{i.d(t,{c:()=>n});let n={Ao:32,Wo:9,Lo:13,rh:27}},14566:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(88166),a=i(74693),s=i(95883),r=i(20785);let o={wt:(e,t,i)=>{var o,l;
1let u=new r.A,h=a.Ay.u();if(!h)return n.A.info(`Not logging event with type "${e}" because the current session ID could not be found.`),u;let c=h.el();return u.Ce.push(new s.A(i||(null==(o=a.Ay.ir())?void 0:o.getUserId()),e,new Date().valueOf(),c,t)),u.lt=(null==(l=a.Ay.p())?void 0:l.ol(u.Ce))||!1,u}}},16491:(e,t,i)=>{i.d(t,{A:()=>n});let n={de:function(){if("u">typeof window&&window.crypto){if("function"==typeof window.crypto.randomUUID)return window.crypto.randomUUID();if("function"==typeof window.crypto.getRandomValues)try{let e=new Uint8Array(16);window.crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;let t=Array.from(e,e=>("0"+e.toString(16)).slice(-2));return[t.slice(0,4).join(""),t.slice(4,6).join(""),t.slice(6,8).join(""),t.slice(8,10).join(""),t.slice(10,16).join("")].join("-")}catch(e){}}let e=(e=!1)=>{let t=(Math.random().toString(16)+"000000000").substr(2,8);return e?"-"+t.substr(0,4)+"-"+t.substr(4,4):t};return e()+e(!0)+e(!0)+e()}}},16539:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(74693),a=i(49134),s=i(53334),r=i(11514),o=i(5113),l=i(24560),u=i(68842);class h{constructor(e,t,i,n,a,s,r,l,h,c,d,p,m,g,b,f,v,A,w,y,S,E,x,T,C,k,O,_,I,N,R,M){this.message=e,this.messageAlignment=t,this.slideFrom=i,this.extras=n,this.triggerId=a,this.clickAction=s,this.uri=r,this.openTarget=l,this.dismissType=h,this.duration=c,this.icon=d,this.imageUrl=p,this.imageStyle=m,this.iconColor=g,this.iconBackgroundColor=b,this.backgroundColor=f,this.textColor=v,this.closeButtonColor=A,this.animateIn=w,this.animateOut=y,this.header=S,this.headerAlignment=E,this.headerTextColor=x,this.frameColor=T,this.buttons=C,this.cropType=k,this.orientation=O,this.htmlId=_,this.css=I,this.messageExtras=N,this.language=R,this.altImageText=M,this.message=e,this.messageAlignment=t||u.KP.CENTER,this.duration=c||5e3,this.slideFrom=i||u.r2.BOTTOM,this.extras=n||{},this.triggerId=a,this.clickAction=s||u.Os.NONE,this.uri=r,this.openTarget=l||u.vG.NONE,this.dismissType=h||u.uR.AUTO_DISMISS,this.icon=d,this.imageUrl=p,this.imageStyle=m||u.uy.TOP,this.iconColor=g||u.S9.AE,this.iconBackgroundColor=b||u.S9._E,this.backgroundColor=f||u.S9.AE,this.textColor=v||u.S9.IE,this.closeButtonColor=A||u.S9.NE,this.animateIn=w,null==this.animateIn&&(this.animateIn=!0),this.animateOut=y,null==this.animateOut&&(this.animateOut=!0),this.header=S,this.headerAlignment=E||u.KP.CENTER,this.headerTextColor=x||u.S9.IE,this.frameColor=T||u.S9.SE,this.buttons=C||[],this.cropType=k||u.A5.FIT_CENTER,this.orientation=O,this.htmlId=_,this.css=I,this.isControl=!1,this.messageExtras=N,this.language=R,this.altImageText=M,this.th=!1,this.Zt=!1,this.rd=!1,this.sh=!1,this.Eo=null,this.$o=null,this.ti=new o.A,this.ih=new o.A,this.Go=u.KP.CENTER}subscribeToClickedEvent(e){return this.ti.Kt(e)}subscribeToDismissedEvent(e){return this.ih.Kt(e)}removeSubscription(e){this.ti.removeSubscription(e),this.ih.removeSubscription(e)}removeAllSubscriptions(){this.ti.removeAllSubscriptions(),this.ih.removeAllSubscriptions()}closeMessage(){this.tl(this.Eo)}zo(){return!0}od(){return this.zo()}Bo(){return null!=this.htmlId&&this.htmlId.length>4}Mo(){return this.Bo()&&null!=this.css&&this.css.length>0}Oo(){if(this.Bo()&&this.Mo())return this.htmlId+"-css"}gs(){return!this.Zt&&(this.Zt=!0,!0)}sm(){return this.Zt}ss(e){return!this.rd&&(this.rd=!0,this.ti.A(),!0)}ls(){return!this.sh&&(this.sh=!0,this.ih.A(),!0)}hide(e){if(e&&e.parentNode){let t=e.closest(".ab-iam-root");if(null==t&&(t=e),this.zo()&&null!=t.parentNode){let e=t.parentNode.classList;e&&e.contains(u.iA.TE)&&e.remove(u.iA.TE),document.body.removeEventListener("touchmove",h.hh)}t.className=t.className.replace(u.Xn,u.Ef)}return this.animateOut||!1}tl(e,t){let i,n;if(null==e)return;this.Eo=null;let s=!1;(i=-1===e.className.indexOf("ab-in-app-message")?e.getElementsByClassName("ab-in-app-message")[0]:e)&&(s=this.hide(i));let r=document.body;null!=r&&(n=r.scrollTop);let o=()=>{if(e&&e.parentNode){let t=e.closest(".ab-iam-root");null==t&&(t=e),t.parentNode&&t.parentNode.removeChild(t)}let i=this.Oo();if(null!=i){let e=document.getElementById(i);e&&e.parentNode&&e.parentNode.removeChild(e)}null!=r&&"Safari"===a.A.browser&&(r.scrollTop=n),t?t():this.ls()};s?setTimeout(o,u.Oy.gr):o(),this.$o&&this.$o.focus()}Ko(){return document.createTextNode(this.message||"")}Ho(e){e.setAttribute("alt",this.altImageText||"")}static hh(e){if(e.targetTouches&&e.targetTouches.length>1)return;let t=e.target;t&&t.classList&&t.classList.contains("ab-message-text")&&t.scrollHeight>t.clientHeight||document.querySelector(`.${u.iA.TE}`)&&e.cancelable&&e.preventDefault()}eh(e){let t=e.parentNode;this.zo()&&null!=t&&this.orientation!==u.I5.LANDSCAPE&&(null!=t.classList&&t.classList.add(u.iA.TE),document.body.addEventListener("touchmove",h.hh,!!(0,s.CF)()&&{passive:!1})),e.className+=" "+u.Xn}static nh(e){if(e.keyCode===r.c.rh&&!n.Ay.er(n.lw.oh)&&document.querySelectorAll(".ab-modal-interactions").length>0){let e=document.getElementsByClassName("ab-html-message"),t=!1;for(let i of e){let e=null;(0,l.B)(i)&&i.contentWindow&&(e=i.contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0]),null!=e&&((0,s.jp)(e),t=!0)}if(!t){let e=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];null!=e&&(0,s.jp)(e)}}}lh(){this.th||n.Ay.er(n.lw.oh)||(document.addEventListener("keydown",h.nh,!1),n.Ay.uh(()=>{document.removeEventListener("keydown",h.nh)}),this.th=!0)}qt(e){let t={};return e&&(t[u.Ot.rE]=this.message,t[u.Ot.mE]=this.messageAlignment,t[u.Ot.GE]=this.slideFrom,t[u.Ot.Fs]=this.extras,t[u.Ot.FE]=this.triggerId,t[u.Ot.HE]=this.clickAction,t[u.Ot.URI]=this.uri,t[u.Ot.xE]=this.openTarget,t[u.Ot.BE]=this.dismissType,t[u.Ot.lE]=this.duration,t[u.Ot.bE]=this.icon,t[u.Ot.
1ys]=this.imageUrl,t[u.Ot.gE]=this.imageStyle,t[u.Ot.YE]=this.iconColor,t[u.Ot.KE]=this.iconBackgroundColor,t[u.Ot.XE]=this.backgroundColor,t[u.Ot.dE]=this.textColor,t[u.Ot.hE]=this.closeButtonColor,t[u.Ot.yE]=this.animateIn,t[u.Ot.uE]=this.animateOut,t[u.Ot.WE]=this.header,t[u.Ot.fE]=this.headerAlignment,t[u.Ot.jE]=this.headerTextColor,t[u.Ot.kE]=this.frameColor,t[u.Ot.vE]=this.buttons,t[u.Ot.wE]=this.cropType,t[u.Ot.zE]=this.orientation,t[u.Ot.VE]=this.htmlId,t[u.Ot.CSS]=this.css,t[u.Ot.xs]=e,t[u.Ot.JE]=this.messageExtras,t[u.Ot.LANGUAGE]=this.language,t[u.Ot.Ks]=this.altImageText),t}}h.ah=u.S9,h.mh=u.HE,h.SlideFrom=u.r2,h.ClickAction=u.Os,h.DismissType=u.uR,h.OpenTarget=u.vG,h.ImageStyle=u.uy,h.Orientation=u.I5,h.TextAlignment=u.KP,h.CropType=u.A5,h.dh=u.o6,h.gr=u.Oy.gr,h.pE=u.Oy.pE,h.bs=u.Ot},20785:(e,t,i)=>{i.d(t,{A:()=>n});class n{constructor(e=!1,t=[]){this.lt=e,this.Ce=t,this.lt=e,this.Ce=t}ps(e){this.lt=this.lt&&e.lt,this.Ce.push(...e.Ce)}}},22056:(e,t,i)=>{i.d(t,{c:()=>n,u:()=>a});let n={rO:"Chrome",eO:"Edge",oO:"Opera",Bg:"Safari",OO:"Firefox",Sg:"ChatGPTBrowser"},a={Dg:"Android",co:"iOS",Pg:"Mac",kg:"Windows"}},23295:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(68842),a=i(16539);class s extends a.A{constructor(e,t,i,a,s,r,o,l,u,h,c,d){super(e,void 0,void 0,t,i,void 0,void 0,void 0,a=a||n.uR.MANUAL,s,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,r,o,void 0,void 0,void 0,l,void 0,void 0,void 0,u,h,d,void 0,void 0),this.messageFields=c,this.messageFields=c}od(){return!1}ss(e){if(this.ko===n.o6.iE){if(this.rd)return!1;this.rd=!0}return this.ti.A(e),!0}qt(){let e=super.qt(n.o6.iE);return e[n.Ot.qE]=this.messageFields,e}static ha(e){return new s(e[n.Ot.rE],e[n.Ot.Fs],e[n.Ot.FE],e[n.Ot.BE],e[n.Ot.lE],e[n.Ot.yE],e[n.Ot.uE],e[n.Ot.kE],e[n.Ot.VE],e[n.Ot.CSS],e[n.Ot.qE],e[n.Ot.JE])}}},24560:(e,t,i)=>{i.d(t,{B:()=>n});let n=e=>null!==e&&"IFRAME"===e.tagName},26034:(e,t,i)=>{i.d(t,{$6:()=>u,V:()=>o,dy:()=>p,jj:()=>h,mY:()=>l,qj:()=>d});var n=i(88166),a=i(83736),s=i(45999),r=i(42729);let o={types:{io:"container",logCustomEvent:"logCustomEvent",setEmailNotificationSubscriptionType:"setEmailNotificationSubscriptionType",setPushNotificationSubscriptionType:"setPushNotificationSubscriptionType",setCustomUserAttribute:"setCustomUserAttribute",requestPushPermission:"requestPushPermission",addToSubscriptionGroup:"addToSubscriptionGroup",removeFromSubscriptionGroup:"removeFromSubscriptionGroup",addToCustomAttributeArray:"addToCustomAttributeArray",removeFromCustomAttributeArray:"removeFromCustomAttributeArray",mo:"openLink",uo:"openLinkInWebView"},properties:{type:"type",eo:"steps",so:"args"}},l={Un:"unknownBrazeAction",Zc:"noPushPrompt"},u=(e,t)=>e===l.Un?`${t} contains an unknown braze action type and will not be displayed.`:"";function h(e){try{let t=e.match(r.nx),i=t?t[0].length:null,a=i?e.substring(i):null;if(null==i||i>e.length-1||!a)return void n.A.error(`Did not find base64 encoded brazeAction in url to process : ${e}`);let o=(0,s.u)(a);return o?JSON.parse(o):void n.A.error(`Failed to decode base64 encoded brazeAction: ${a}`)}catch(t){return void n.A.error(`Failed to process brazeAction URL ${e} : ${(0,a.u)(t)}`)}}function c(e,t){let i=!1;if(t){for(let n of t)if(i=i||e(n))return!0}return!1}function d(e){let t=o.properties.type,i=o.properties.eo;try{if(null==e)return!0;let n=e[t];return n===o.types.io?c(d,e[i]):!(0,r.To)(n)}catch(e){return!0}}function p(e){if(!e||!(0,r.xs)(e))return!1;let t=o.properties.type,i=o.properties.eo,n=e[t];return n===o.types.io?c(p,e[i]):n===o.types.requestPushPermission}},26063:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(4794),a=i(9825);let s={it:{pn:"data",Ji:"content_cards/sync",Co:"feature_flags/sync",Yo:"template",st:"banners/sync"},Pl:e=>null==e?void 0:e.Rt(a.d.Tt.iS),Am:e=>null==e?void 0:e.Rt(a.d.Tt.ES),Rm:(e,t)=>{null==e||e.It(a.d.Tt.iS,t)},qm:(e,t)=>{null==e||e.It(a.d.Tt.ES,t)},ql:(e,t)=>{if(!e||!t)return -1;let i=s.Pl(e);if(null==i)return -1;let n=i[t];return null==n||isNaN(n)?-1:n},Al:(e,t)=>
1{let i=n.et;if(!e||!t)return i;let a=s.Am(e);return null==a?i:null==(i=a[t])||isNaN(i)?n.et:i},nt:(e,t,i)=>{if(!e||!t)return;let n=s.Pl(e);null==n&&(n={}),n[t]=i,s.Rm(e,n)},Dl:(e,t,i)=>{if(!e||!t)return;let n=s.Am(e);null==n&&(n={}),n[t]=i,s.qm(e,n)},Li:(e,t)=>{e&&t&&s.Dl(e,t,n.et)},zl:(e,t)=>{if(!e||!t)return;let i=s.Al(e,t);s.Dl(e,t,i+1)}},r=s},26549:(e,t,i)=>{i.r(t),i.d(t,{changeUser:()=>l});var n=i(74693),a=i(45999),s=i(88166),r=i(75632),o=i(42729);function l(e,t){if(!n.Ay.rr())return;if(null==e||0===e.length||e!=e)return void s.A.error("changeUser requires a non-empty userId.");if((0,a.N)(e)>r.A.br)return void s.A.error(`Rejected user id "${e}" because it is longer than ${r.A.br} bytes.`);if(null!=t&&!(0,o.rK)(t,"set signature for new user","signature"))return;let i=n.Ay.nn();i&&i.changeUser(e.toString(),n.Ay.vr(),t)}},28005:(e,t,i)=>{i.d(t,{A:()=>o,s:()=>r});var n=i(88166),a=i(79472),s=i(83736);let r=e=>{let t,i,n={},a=e.toString().split("\r\n");if(!a)return n;for(let e of a)e&&(t=e.slice(0,e.indexOf(":")).toLowerCase().trim(),i=e.slice(e.indexOf(":")+1).trim(),n[t]=i);return n},o={ot:e=>{let t,i;try{let s=!1;if(window.XMLHttpRequest&&(s=!0),!s)return void n.A.error("This browser does not have any supported ajax options!");t=new XMLHttpRequest;let r=i=>{"function"==typeof e.error&&e.error(t.status),"function"==typeof e.ft&&e.ft(!1,i)};for(let n of(t.onload=()=>{let i=!1;if(4!==t.readyState)return;i=t.status>=200&&t.status<300||304===t.status;let n=t.getAllResponseHeaders();if(i){if("function"==typeof e.lt){let i;try{i=JSON.parse(t.responseText)}catch(s){let i={error:""===t.responseText?a.A.Wa:a.A.Qa,response:t.responseText};(0,e.lt)(i,n)}i&&e.lt(i,n)}"function"==typeof e.ft&&e.ft(!0,n)}else r(n)},t.onerror=()=>{r(t.getAllResponseHeaders())},t.ontimeout=()=>{r()},i=JSON.stringify(e.data),t.open("POST",e.url,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.headers||[]))t.setRequestHeader(n[0],n[1]);t.send(i)}catch(e){n.A.error(`Network request error: ${(0,s.u)(e)}`)}}}},31463:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(16491),a=i(88166),s=i(44259),r=i(83736);class o{constructor(e,t,i){this.Tu=e,null==e&&(e=n.A.de()),!i||isNaN(i)?this.lm=new Date().valueOf():this.lm=i,this.Tu=e,this.pm=new Date().valueOf(),this.fm=t}qt(){return`g:${encodeURIComponent(this.Tu)}|e:${this.fm}|c:${this.lm}|l:${this.pm}`}static cS(e){let t;if("string"!=typeof e)return null;let i=e.lastIndexOf("|e:"),n=e.substring(0,i),a=n.split("g:")[1];return t=/[|:]/.test(a)?encodeURIComponent(a):a,e=e.replace(n,`g:${t}`)}static _u(e){let t;if("string"==typeof e)try{let i=e.split("|");if(!(0,s.cy)(i)||4!==i.length)return null;let n=e=>e.split(":")[1],a=e=>{let t=parseInt(n(e));if(!isNaN(t))return t};(t=new o(decodeURIComponent(n(i[0])),a(i[1]),a(i[2]))).pm=a(i[3])}catch(t){a.A.info(`Unable to parse cookie string ${e}, failed with error: ${(0,r.u)(t)}`)}else{if(null==e||null==e.g)return null;(t=new o(e.g,e.e,e.c)).pm=e.l}return t}}},39102:(e,t,i)=>{i.d(t,{w:()=>n});let n={CustomEvent:"ce",Pr:"p",Uc:"pc",ev:"ca",gl:"i",Ya:"ie",ds:"cci",js:"ccic",os:"ccc",cs:"ccd",wm:"ss",hm:"se",Fn:"si",On:"sc",Xn:"sbc",tv:"sfe",om:"iec",Oc:"lr",Nc:"uae",Kc:"lcaa",Jc:"lcar",Zu:"inc",Qu:"add",Xu:"rem",Yu:"set",Vu:"ncam",Wc:"sgu",xo:"ffi",ro:"bi",Dt:"bc",Ft:"bd"}},39451:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(68842),a=i(3205),s=i(16539);class r extends s.A{constructor(e,t,i,a,s,r,o,l,u,h,c,d,p,m,g,b,f,v,A,w,y,S,E,x,T,C,k,O,_,I){super(e,t,void 0,i,a,s,r,o,l=l||n.uR.MANUAL,u,h,c,d,p,m,g,b,f,v,A,w,y,S,E,x,T=T||n.A5.FIT_CENTER,void 0,C,k,O,_,I),this.Go=n.KP.CENTER}qt(){return super.qt(n.o6.aE)}static ha(e){return new r(e[n.Ot.rE],e[n.Ot.mE],e[n.Ot.Fs],e[n.Ot.FE],e[n.Ot.HE],e[n.Ot.URI],e[n.Ot.xE],e[n.Ot.BE],e[n.Ot.lE],e[n.Ot.bE],e[n.Ot.ys],e[n.Ot.gE],e[n.Ot.YE],e[n.Ot.KE],e[n.Ot.XE],e[n.Ot.dE],e[n.Ot.hE],e[n.Ot.yE],e[n.Ot.uE],e[n.Ot.WE],e[n.Ot.fE],e[n.Ot.jE],e[n.Ot.kE],(0,a.x)(e[n.Ot.vE]),e[n.Ot.wE],e[n.Ot.VE],e[n.Ot.CSS],e[n.Ot.JE],e[n.Ot.LANGUAGE],e[n.Ot.Ks])}}},42729:(e,t,i)=>{i.d(t,{B9:()=>w,Dz:()=>m,To:()=>S,Z2:()=>A,ZJ:()=>g,fB:()=>v,nx:()=>p,rK:()=>f,uZ:()=>b,xs:()=>y});var n=i(44259),a=i(45999),s=i(88166),r=i(59606),o=i(26034),l=i(4794);let u=/^[^\x00-\x1F\x22]+$/,h=/[$.]/,c=["$add","$update","$remove","$identifier_key","$identifier_value","$new_object","$time","$google_ad_personalization","$google_ad_user_data"],d=/^[^@\s]+@[^@\s]+\.[^@\s]+$/,p=/^brazeActions:\/\/v\d+\//;function m(e,t,i){let n=null!=e&&"string"==typeof e&&(""===e||null!=e.match(u));return n||s.A.error(`Cannot ${t} because ${i} "${e}
1" is invalid.`),n}function g(e){return null!=e&&e.match(h)&&-1===c.indexOf(e)&&s.A.warn("Custom attribute keys cannot contain '$' or '.'"),m(e,"set custom user attribute","the given key")}function b(e){let t=typeof e;return null==e||"number"===t||"boolean"===t||(0,n.$P)(e)||"string"===t}function f(e,t,i,n=!1){let a="string"==typeof e||null===e&&n;return a||s.A.error(`Cannot ${t} because ${i} "${e}" is invalid.`),a}function v(e,t,i,o,u){let h,c,d;if(null==e&&(e={}),"object"!=typeof e||(0,n.cy)(e))return s.A.error(`${t} requires that ${i} be an object. Ignoring ${u}.`),[!1,null];t===l.em.Ku?(h=76800,c="75KB"):(h=51200,c="50KB");let p=JSON.stringify(e);if((0,a.N)(p)>h)return s.A.error(`Could not ${o} because ${i} was greater than the max size of ${c}.`),[!1,null];try{d=JSON.parse(p)}catch(e){return s.A.error(`Could not ${o} because ${i} did not contain valid JSON.`),[!1,null]}for(let i in e){if(t===l.em.Ku&&!g(i)||!m(i,o,`the ${u} property name`))return[!1,null];let a=e[i];if(t!==l.em.Ku&&null==a){delete e[i],delete d[i];continue}if((0,n.$P)(a)&&(d[i]=(0,r.EQ)(a)),!function(e,t,i,a,o){let l;return(l=(0,n.Gv)(e)||(0,n.cy)(e)?function e(t,i,a){let o=-1!==a;if(o&&a>50)return s.A.error("Nested attributes cannot be more than 50 levels deep."),!1;let l=o?a+1:-1;if((0,n.cy)(t)&&(0,n.cy)(i)){for(let a=0;a<t.length&&a<i.length;a++)if((0,n.$P)(t[a])&&(i[a]=(0,r.EQ)(t[a])),!e(t[a],i[a],l))return!1}else{if(!(0,n.Gv)(t))return b(t);for(let a of(0,n.HP)(t)){let s=t[a];if(o&&!g(a)||((0,n.$P)(s)&&(i[a]=(0,r.EQ)(s)),!e(s,i[a],l)))return!1}}return!0}(e,t,o?1:-1):b(e))||s.A.error(`Cannot ${i} because ${a} "${e}" is invalid.`),l}(a,d[i],o,`the ${u} property "${i}"`,t===l.em.Ku))return[!1,null]}return[!0,d]}function A(e,t){let i=!1,a=!1,r=()=>{s.A.error("Custom attribute arrays must be either string arrays or object arrays.")};for(let s of t)if("string"==typeof s){if(a)return r(),[!1,!1];if(!m(s,`set custom user attribute "${e}"`,"the element in the given array"))return[!1,!1];i=!0}else{if(!(0,n.Gv)(s)||i)return r(),[!1,!1];if(!v(s,l.em.Ku,"attribute value",`set custom user attribute "${e}"`,"custom user attribute"))return[!1,!1];a=!0}return[i,a]}function w(e){if("string"!=typeof e)return!1;let t=e.length;return!(0===t||t>256)&&d.test(e.toLowerCase())}function y(e){if(!(o.V.properties.type in e))return!1;switch(e[o.V.properties.type]){case o.V.types.io:if(o.V.properties.eo in e)return!0;break;case o.V.types.logCustomEvent:case o.V.types.setEmailNotificationSubscriptionType:case o.V.types.setPushNotificationSubscriptionType:case o.V.types.setCustomUserAttribute:case o.V.types.addToSubscriptionGroup:case o.V.types.removeFromSubscriptionGroup:case o.V.types.addToCustomAttributeArray:case o.V.types.removeFromCustomAttributeArray:case o.V.types.mo:case o.V.types.uo:if(o.V.properties.so in e)return!0;break;case o.V.types.requestPushPermission:return!0}return!1}function S(e){let t=!1;return Object.keys(o.V.types).forEach(i=>{o.V.types[i]!==e.toString()||(t=!0)}),t}},43278:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(5113),a=i(68842);class s{constructor(e,t,i,r,o,l,u){this.text=e,this.backgroundColor=t,this.textColor=i,this.borderColor=r,this.clickAction=o,this.uri=l,this.id=u,this.text=e||"",this.backgroundColor=t||a.S9._E,this.textColor=i||a.S9.AE,this.borderColor=r||this.backgroundColor,this.clickAction=o||a.Os.NONE,this.uri=l,null==u&&(u=s.Kn),this.id=u,this.rd=!1,this.ti=new n.A}subscribeToClickedEvent(e){return this.ti.Kt(e)}removeSubscription(e){this.ti.removeSubscription(e)}removeAllSubscriptions(){this.ti.removeAllSubscriptions()}ss(){return!this.rd&&(this.rd=!0,this.ti.A(),!0)}static fromJson(e){return new s(e.text,e.bg_color,e.text_color,e.border_color,e.click_action,e.uri,e.id)}}s.Kn=-1},43925:(e,t,i)=>{i.d(t,{n:()=>a});var n=i(74693);function a(e,t){return n.Ay.initialize(e,t)}},44259:(e,t,i)=>{i.d(t,{$P:()=>o,BY:()=>s,Gv:()=>l,HP:()=>u,cy:()=>r,n4:()=>function e(t,i){if(t===i)return 0!==t||1/t==1/i;if(null==t||null==i)return t===i;let n=t.toString();if(n!==i.toString())return!1;switch(n){case"[object RegExp]":case"[object String]":return""+t==""+i;case"[object Number]":return+t!=+t?+i!=+i:0==+t?1/t==1/i:+t==+i;case"[object Date]":case"[object Boolean]":return+t==+i}let a="[object Array]"===n;if(!a){if("object"!=typeof t||"object"!=typeof i)return!1;let e=t.constructor,n=i.constructor;if(e!==n&&!("function"==typeof e&&e instanceof e&&"function"==typeof n&&n instanceof n)&&"constructor"in t&&"constructor"in i)return!1}let s=[],r=[],o=s.length;for(;o--;)if(s[o]===t)return r[o]===i;if(s.push(t),r.push(i),a){if((o=t.length)!==i.length)return!1;for(;o--;)if(!e(t[o],i[o]))return!1}else{let n,a=u(t);if(o=a.length,u(i).length!==o)return!1;for(;o--;)if(n=a[o],!Object.prototype.hasOwnProperty.call(i,n)||!e(t[n],i[n]))return!1}return s.pop(),r.pop(),!0},zu:()=>a});var n=i(88166);function a(e){let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&void 0!==e[i]&&t.push(e[i]);return t}function s(e,t,i,s){let r=a(e);return -1!==r.indexOf(t)||(n.A.error(`${i} Valid values from ${s}
1 are "${r.join('"/"')}".`),!1)}function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function o(e){return"[object Date]"===Object.prototype.toString.call(e)}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t}},45999:(e,t,i)=>{i.d(t,{N:()=>a,u:()=>s});var n=i(88166);function a(e){let t=e.length;for(let i=e.length-1;i>=0;i--){let n=e.charCodeAt(i);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&i--}return t}function s(e){try{e=e.replace(/-/g,"+").replace(/_/g,"/");let t=window.atob(e),i=new Uint8Array(t.length);for(let e=0;e<t.length;e++)i[e]=t.charCodeAt(e);let n=new Uint16Array(i.buffer);return String.fromCharCode(...n)}catch(e){return n.A.error("Unable to decode Base64: "+e),null}}},48662:(e,t,i)=>{i.d(t,{A:()=>n});class n{I(e){}changeUser(e=!1){}clearData(e=!1){}}},49134:(e,t,i)=>{i.d(t,{A:()=>u});var n=i(44259);class a{ef(){}ff(){}Fa(e){}static nf(e,t){if(e&&t){if(e=e.toLowerCase(),(0,n.cy)(t.cf)){for(let i=0;i<t.cf.length;i++)if(-1!==e.indexOf(t.cf[i].toLowerCase()))return t.identity}else if(-1!==e.indexOf(t.cf.toLowerCase()))return t.identity}}}var s=i(22056);class r extends a{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.browser=null,this.version=null,this.userAgentData){const e=this.hf();this.browser=e.browser||"Unknown Browser",this.version=e.version||"Unknown Version"}this.OS=null}ef(){return this.browser}ff(){return this.version}Fa(e){if(this.OS)return Promise.resolve(this.OS);let t=t=>{for(let i=0;i<e.length;i++){let n=r.nf(t,e[i]);if(n)return this.OS=n,this.OS}return t};return this.userAgentData.platform?Promise.resolve(t(this.userAgentData.platform)):this.getHighEntropyValues().then(e=>e.platform?t(e.platform):navigator.platform).catch(()=>navigator.platform)}hf(){let e={},t=this.userAgentData.brands;if(t&&t.length)for(let i of t){let t=this.uf(s.c),n=i.brand.match(t);if(n&&n.length>0){e.browser=n[0],e.version=i.version;break}}return e}uf(e){let t=[];for(let i in e)t.push(e[i]);return RegExp("("+t.join("|")+")","i")}getHighEntropyValues(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}class o extends a{constructor(){super(),this.Sd=o.hf(navigator.userAgent||"")}ef(){return this.Sd[0]||"Unknown Browser"}ff(){return this.Sd[1]||"Unknown Version"}Fa(e){for(let t=0;t<e.length;t++){let i=e[t].string,n=o.nf(i,e[t]);if(n)return n===s.u.Pg&&navigator.maxTouchPoints>1&&(n=s.u.co),Promise.resolve(n)}return Promise.resolve(navigator.platform)}static hf(e){let t,i=e.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chatgptbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(-1!==e.indexOf("(Web0S; Linux/SmartTV)"))return["LG Smart TV",null];if(-1!==e.indexOf("CrKey"))return["Chromecast",null];if(-1!==e.indexOf("BRAVIA")||-1!==e.indexOf("SonyCEBrowser")||-1!==e.indexOf("SonyDTV"))return["Sony Smart TV",null];if(-1!==e.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(e.match(/\b(Roku)\b/))return["Roku",null];if(e.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(i[1]===s.c.rO){if(e.includes(s.c.Sg))return[s.c.Sg,i[2]];if(null!=(t=e.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/)))return(t=t.slice(1))[0]=t[0].replace("OPR",s.c.oO),t[0]=t[0].replace("EdgA",s.c.eO),"Edg"===t[0]&&(t[0]=s.c.eO),[t[0],t[1]]}if(i[1]===s.c.Bg&&null!=(t=e.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/)))return(t=t.slice(1))[0]=t[0].replace("EdgiOS",s.c.eO),[t[0],t[1]];if((i=i[2]?[i[1],i[2]]:[null,null])[0]===s.c.Bg&&null!=(t=e.match(/version\/(\.?\d+(\.\d+)*)/i))&&i.splice(1,1,t[1]),null!=(t=e.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&i.splice(1,1,t[2]),i[0]===s.c.oO&&null!=(t=e.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",t[1]||""];if(i[0]){let e=i[0].toLowerCase();"crios"===e&&(i[0]=s.c.rO),"tizen"===e&&(i[0]="Samsung Smart TV",i[1]=null),"samsungbrowser"===e&&(i[0]="Samsung Browser")}return i}}class l{constructor(){let e;e=navigator.userAgent.toLowerCase().includes(s.c.Sg.toLowerCase())||!navigator.userAgentData?o:r,this.vg=new e,this.userAgent=navigator.userAgent,this.browser=this.vg.ef(),this.version=this.vg.ff(),this.OS=null,this.Fa().then(e=>this.OS=e);const t=navigator;this.language=(t.userLanguage||t.language||t.browserLanguage||t.systemLanguage||"").toLowerCase(),this.il=l.xg(this.userAgent)}IS(){return this.browser===s.c.Bg}Aa(){return this.OS||null}Fa(){return this.OS?Promise.resolve(this.OS):this.vg.Fa(l.Og).then(e=>(this.OS=e,e))}static xg(e){e=e.toLowerCase();let t=["bot","slurp","baiduspider","yandex","facebookexternalhit","sogou","ia_archiver","https://github.com/prerender/prerender","aolbuild","bingpreview","mediapartners-google","teoma","taiko","facebookexternalhit","facebookcatalog","meta-webindexer","meta-externalads","meta-externalagent","meta-externalfetcher"];for(let i=0;i<t.length;i++)if(-1!==e.indexOf(t[i]))return!0;return!1}}l.Og=[{string:navigator.platform,cf:"Win",identity:s.u.kg},{string:navigator.platform,cf:"Mac",identity:s.u.Pg},{string:navigator.platform,cf:"BlackBerry",identity:"BlackBerry"},{string:navigator.platform,cf:"FreeBSD",identity:"FreeBSD"},{string:navigator.platform,cf:"OpenBSD",identity:"OpenBSD"},{string:navigator.platform,cf:"Nintendo",identity:"Nintendo"},{string:navigator.platform,cf:"SunOS",identity:"SunOS"},{string:navigator.platform,cf:"PlayStation",identity:"PlayStation"},{string:navigator.platform,cf:"X11",identity:"X11"},{string:navigator.userAgent,cf:["iPhone","iPad","iPod"],identity:s.u.co},{string:navigator.platform,cf:"Pike v",identity:s.u.co},{string:navigator.userAgent,cf:["Web0S"],identity:"WebOS"},{string:navigator.userAgent,cf:"Tizen",identity:"Tizen"},{string:navigator.userAgent,cf:"Coolita",identity:"Other Smart TV"},{string:navigator.userAgent,cf:"WhaleTV",identity:"Other Smart TV"},{string:navigator.platform,cf:["Linux armv7l","Android"],identity:s.u.Dg},{string:navigator.userAgent,cf:["Android"],identity:s.u.Dg},{string:navigator.platform,cf:"Linux",identity:"Linux"}];let u=new l},50319:(e,t,i)=>{i.d(t,{w:()=>a});var n=i(74693);function a(){if(n.Ay.rr())return n.Ay.zr()}},52522:(e,t,i)=>{i.d(t,{v:()=>L});var n=i(74693),a=i(5239),s=i(23295),r=i(16539),o=i(59795),l=i(57334),u=i(39451),h=i(53334),c=i(11514);function d(e,t){return null==e||isNaN(e=parseInt(e.toString()))?"":(t&&!isNaN(parseFloat(t.toString()))||(t=1),"rgba("+[(0xff0000&(e>>>=0))>>>16,(65280&e)>>>8,255&e,((0xff000000&e)>>>24)/255*t].join(",")+")")}var p=i(6546),m=i(68842),g=i(88166),b=i(39102);function f(e){if(!n.Ay.rr())return!1;if(!(e instanceof r.A||e instanceof a.A))return g.A.error(m.iA.EE),!1;let t=e instanceof a.A?b.w.om:b.w.Fn;return p.A.ra().wt(e,t).lt}var v=i(9482),A=i(10416),w=i(4794),y=i(26034),S=i(49134),E=i(22056),x=i(42729),T=i(82798),C=i(50319);function k(e,t,a){if(n.Ay.rr())if(x.nx.test(e)){let t=(0,y.jj)(e);if(!t)return;let a=e=>{if(!(0,x.xs)(e))return void g.A.error(`Decoded Braze Action json is invali
1d: ${JSON.stringify(e,null,2)}`);let t=y.V.properties.type,s=y.V.properties.eo,r=y.V.properties.so,o=e[t];if(o===y.V.types.io)for(let t of e[s])a(t);else{let t,a,s=e[r];switch(o){case y.V.types.logCustomEvent:Promise.resolve().then(i.bind(i,59752)).then(({logCustomEvent:e})=>{n.Ay.ao()?e(...a=Array.prototype.slice.call(s)):g.A.error(w.em.ee)});break;case y.V.types.requestPushPermission:i.e(8842).then(i.bind(i,28842)).then(({requestPushPermission:e})=>{n.Ay.ao()?"Safari"===S.A.browser&&S.A.OS===E.u.co?window.navigator.standalone&&e():e():g.A.error(w.em.ee)});break;case y.V.types.setEmailNotificationSubscriptionType:case y.V.types.setPushNotificationSubscriptionType:case y.V.types.setCustomUserAttribute:case y.V.types.addToSubscriptionGroup:case y.V.types.removeFromSubscriptionGroup:case y.V.types.addToCustomAttributeArray:case y.V.types.removeFromCustomAttributeArray:(t=(0,C.w)())&&t[o](...Array.prototype.slice.call(s));break;case y.V.types.mo:case y.V.types.uo:a=Array.prototype.slice.call(s),T.uD.openUri(...a);break;default:g.A.info(`Ignoring unknown Braze Action: ${o}`)}}};a(t)}else T.uD.openUri(e,t,a)}function O(e,t,i){if(!n.Ay.rr())return!1;if(!(e instanceof s.A))return g.A.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let a=b.w.On;null!=t&&(a=b.w.Xn);let r=p.A.ra().wt(e,a,t,i);if(r.lt)for(let i=0;i<r.Ce.length;i++)A.B.o().Ee(v.A.rm,[e.triggerId,t],r.Ce[i]);return r.lt}var _=i(66167);let I=(e,t,i,n)=>{let a=i.getAttribute("href"),s=i.onclick;return r=>{if(null!=s&&"function"==typeof s&&!1===s.bind(i)(r))return;let o=(0,_.y)(a).abButtonId;if(null!=o&&""!==o||(o=i.getAttribute("id")||void 0),null!=a&&""!==a&&0!==a.indexOf("#")){let s="blank"===(i.getAttribute("target")||"").toLowerCase().replace("_",""),l=n||e.openTarget===m.vG.BLANK||s,u=()=>{O(e,o,a),T.uD.openUri(a,l,r)};l?u():e.tl(t,u)}else O(e,o,a||void 0);return r.stopPropagation(),!1}};var N=i(44259),R=i(75632);let M=(e,t,i)=>{let n=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${i}['"]\\)`,a=e.match(new RegExp(n));if(a){let i=`${a[1]}.setAttribute("nonce", "${t}")`;return`${e.slice(0,a.index+a[0].length)};${i};${e.slice(a.index+a[0].length)}`}return null};var z=i(43278),D=i(16491),P=i(24560);let B={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."},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 U{constructor(e,t=!1){if(this.language=e,null!=e&&(e=e.toLowerCase()),null!=e&&null==B[e]){const t=e.indexOf("-");t>0&&(e=e.substring(0,t))}if(null==B[e]){const i="Braze does not yet have a localization for language "+e+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.";t?g.A.error(i):g.A.info(i),e="en"}this.language=e}get(e){return B[this.language][e]}wa(){switch(this.language){case"ar":case"he":case"fa":return"rtl";default:return"ltr"}}}let $={i:!1,na:null,ra:()=>{if($.t(),!$.na){let e=S.A.language,t=!1;n.Ay.er(n.lw.qa)&&(e=n.Ay.er(n.lw.qa),t=!0),$.na=new U(e,t)}return $.na},t:()=>{$.i||(n.Ay.g($),$.i=!0)},destroy:()=>{$.na=null,$.i=!1}};function L(e,t,y){let x;if(!n.Ay.rr())return;if(!function(e,t){let i=e||document.querySelector("head"),a=`ab-iam-css-definitions-${"6.7.1".replace(/\./g,"-")}`;if(!i)return;let s=i.ownerDocument||document;if(null==s.getElementById(a)){let e=s.createElement("style");e.innerHTML=t||"",e.id=a;let r=n.Ay.er(n.lw.sr);null!=r&&e.setAttribute("nonce",r),i.appendChild(e)}}(void 0,".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-close-button svg.ab-chevron.rtl{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.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{position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img img{width:100%;height:100%;object-fit:cover;object-position:center}.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.827
158621px}.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}.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-close-button svg.ab-chevron.rtl{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.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
1%}.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)}}"),function(){if(n.Ay.er(n.lw.Uh))return;let e="https://use.fontawesome.com/7f85a56ba4.css";if(null===document.querySelector('link[rel=stylesheet][href="'+e+'"]')){let t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(t)}}(),null==e)return!1;if(e instanceof a.A)return g.A.info("User received control for a multivariate test, logging to Braze servers."),f(e),!0;if(!(e instanceof r.A)||e.constructor===r.A)return!1;e.lh();let B=e instanceof s.A;if(B&&!e.trusted&&!n.Ay.ar())return g.A.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),!1;if(null==t&&(t=document.body),e.zo()&&t.querySelectorAll(".ab-modal-interactions").length>0)return g.A.info(`Cannot show in-app message ${e.message} because another message is being shown.`),!1;if(T.uD.da()){let t=T.uD.ga();if(t===T.j3.PORTRAIT&&e.orientation===m.I5.LANDSCAPE||t===T.j3.LANDSCAPE&&e.orientation===m.I5.PORTRAIT){let i=t===T.j3.PORTRAIT?"portrait":"landscape",n=e.orientation===m.I5.PORTRAIT?"portrait":"landscape";return g.A.info(`Not showing ${n} in-app message ${e.message} because the screen is currently ${i}`),!1}}if(!n.Ay.ar()){let t=!1;if(e.buttons&&e.buttons.length>0){let i=e.buttons;for(let e=0;e<i.length;e++)if(i[e].clickAction===m.Os.URI){let n=i[e].uri;t=(0,_.P)(n)}}else e.clickAction===m.Os.URI&&(t=(0,_.P)(e.uri));if(t)return g.A.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),!1}let U=document.createElement("div");if(U.className="ab-iam-root v3",U.className+=(x="",e.animateIn&&(x+=" ab-animate-in"),e.animateOut&&(x+=" ab-animate-out"),e instanceof l.A?x+=" ab-effect-fullscreen":e instanceof s.A?x+=" ab-effect-html":e instanceof u.A?x+=" ab-effect-modal":e instanceof o.A&&(x+=" ab-effect-slide"),x),e.language&&!B&&(U.lang=e.language),e.Bo()&&(U.id=e.htmlId),n.Ay.er(n.lw.ja)&&(U.style.zIndex=(n.Ay.er(n.lw.ja)+1).toString()),t.appendChild(U),e.Mo()){let t=document.createElement("style");t.innerHTML=e.css,t.id=e.Oo(),null!=n.Ay.er(n.lw.sr)&&t.setAttribute("nonce",n.Ay.er(n.lw.sr)),document.getElementsByTagName("head")[0].appendChild(t)}let L=e instanceof o.A,G=function(e,t,a,y,x,T,_=document.body,P="ltr"){if(e.$o=document.activeElement,e instanceof s.A){let a=document.createElement("iframe");if(a.setAttribute("title","Modal Message"),x&&(a.style.zIndex=(x+1).toString()),((e,t,i)=>{let n=null;if(null!=i){(n=document.createElement("html")).innerHTML=t||"";let e=n.getElementsByTagName("style");for(let t=0;t<e.length;t++)e[t].setAttribute("nonce",i);let a=n.getElementsByTagName("script");for(let e=0;e<a.length;e++){a[e].setAttribute("nonce",i),a[e].innerHTML=a[e].innerHTML.replace(/<style>/g,`<style nonce='${i}'>`);let t=M(a[e].innerHTML,i,"script");t&&(a[e].innerHTML=t);let n=M(a[e].innerHTML,i,"style");n&&(a[e].innerHTML=n)}}e.srcdoc=n?n.innerHTML:t||""})(a,e.message,T),a.onload=()=>{let s=a.contentWindow;s.focus();let r=s.document.getElementsByTagName("head")[0];if(null!=r){if(e.Mo()){let t=document.createElement("style");t.innerHTML=e.css||"",t.id=e.Oo()||"",null!=T&&t.setAttribute("nonce",T),r.appendChild(t)}let t=s.document.createElement("base");null!=t&&(t.setAttribute("target","_parent"),r.appendChild(t))}let o=s.document.getElementsByTagName("title");o&&o.length>0&&a.setAttribute("title",o[0].textContent||"");let l=Object.assign(Object.assign({},((e,t)=>{let a={display:{},web:{}},s=function(){return function(){let e=arguments;i.e(8842).then(i.bind(i,28842)).then(t=>{n.Ay.ao()?t.requestPushPermission(...Array.prototype.slice.call(e)):g.A.error(w.em.ee)})}},r={requestImmediateDataFlush:function(){let e=arguments;i.e(2116).then(i.bind(i,32116)).then(({requestImmediateDataFlush:t})=>{n.Ay.ao()?t(...Array.prototype.slice.call(e)):g.A.error(w.em.ee)})},logCustomEvent:function(){let e=arguments;Promise.resolve().then(i.bind(i,59752)).then(({logCustomEvent:t})=>{n.Ay.ao()?t(...Array.prototype.slice.call(e)):g.A.error(w.em.ee)})},logPurchase:function(){let e=arguments;i.e(1697).then(i.bind(i,11697)).then(({logPurchase:t})=>{n.Ay.ao()?t(...Array.prototype.slice.call(e)):g.A.error(w.em.ee)})},unregisterPush:function(){let e=arguments;i.e(743).then(i.bind(i,30743)).then(({unregisterPush:t})=>{n.Ay.ao()?t(...Array.prototype.slice.call(e)):g.A.error(w.em.ee)})},requestPushPermission:s(),changeUser:function(){let e=arguments;Promise.resolve().then(i.bind(i,26549)).then(({changeUser:t})=>{n.Ay.ao()?t(...Array.prototype.slice.call(e)):g.A.error(w.em.ee)})}},o=function(e){return function(){r[e](...Array.prototype.slice.call(arguments))}};for(let e of(0,N.HP)(r))a[e]=o(e);let l=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup","setLineId"],u=function(e){return function(){let t=(0,C.w)();t&&t[e](...Array.prototype.slice.call(arguments))}},h={};for(let e=0;e<l.length;e++)h[l[e]]=u(l[e]);a.getUser=function(){return h};let c={},d=function(i){return function(){let n=arguments;"function"!=typeof t?c[i](...Array.prototype.slice.call(n)):t(e,function(){c[i](...Array.prototype.slice.call(n))})}},p=a.display;for(let e of(0,N.HP)(c))p[e]=d(e);let m={registerAppboyPushMessages:s()},b=function(e){return function(){m[e](...Array.prototype.slice.call(arguments))}},f=a.web;for(let e of(0,N.HP)(m))f[e]=b(e);return a.NotificationSubscriptionTypes=R.A.NotificationSubscriptionTypes,a})(a,(t,i)=>
1e.tl(t,i))),{closeMessage:function(){e.tl(a)},logClick:function(){O(e,...arguments)}});if(s.appboyBridge=l,s.brazeBridge=l,e.ko!==m.o6.PE){let t=s.document.getElementsByTagName("a");for(let i=0;i<t.length;i++)t[i].onclick=I(e,a,t[i],y);let i=s.document.getElementsByTagName("button");for(let t=0;t<i.length;t++)i[t].onclick=I(e,a,i[t],y)}let u=s.document.body;if(null!=u){e.Bo()&&(u.id=e.htmlId||"");let t=document.createElement("hidden");t.onclick=l.closeMessage,t.className="ab-programmatic-close-button",u.appendChild(t)}s.dispatchEvent(new CustomEvent("ab.BridgeReady")),-1!==a.className.indexOf("ab-start-hidden")&&(a.className=a.className.replace("ab-start-hidden",""),t(a))},a.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",S.A.OS===E.u.co){let t=document.createElement("div");return t.className="ab-ios-scroll-wrapper",t.appendChild(a),e.Eo=t,t}return e.Eo=a,a}let B=function(e,t,i,a,s,o=document.body,l="ltr"){var u;let w=null,y=document.createElement("div");y.dir=l,y.className="ab-in-app-message ab-start-hidden ab-background",s&&(y.style.zIndex=(s+1).toString()),e.zo()&&(y.className+=" ab-modal-interactions",y.setAttribute("tabindex","-1")),e.Mo()||(y.style.color=d(e.textColor),y.style.backgroundColor=d(e.backgroundColor),null==(u=e.backgroundColor)||isNaN(u=parseInt(u.toString()))||(0xff000000&u)>>>24!=0||(y.className+=" ab-no-shadow"));let S=()=>{-1!==y.className.indexOf("ab-start-hidden")&&(y.className=y.className.replace("ab-start-hidden",""),document.querySelectorAll(".ab-iam-img-loading").length>0?i(`Cannot show in-app message ${e.message} because another message is being shown.`,m.HE.tE):t(y))},E=(t=!0)=>{let i=document.querySelectorAll(".ab-iam-root");i&&0!==i.length||(i=o.querySelectorAll(".ab-iam-root")),i&&i.length>0&&(i[0].classList.remove("ab-iam-img-loading"),w&&(clearTimeout(w),w=null),t?S():g.A.error(`Cannot show in-app message ${e.message} because the image failed to load.`))};if(e.imageStyle===m.uy.GRAPHIC&&(y.className+=" graphic"),e.orientation===m.I5.LANDSCAPE&&(y.className+=" landscape"),null!=e.buttons&&0===e.buttons.length){e.clickAction!==m.Os.NONE&&(y.className+=" ab-clickable");let t=t=>(e.tl(y,()=>{(function(e){if(!n.Ay.rr())return;if(!(e instanceof r.A))return g.A.error(m.iA.EE);let t=p.A.ra().wt(e,b.w.On);if(t){e.sm()||f(e);for(let i=0;i<t.Ce.length;i++)A.B.o().Ee(v.A.rm,[e.triggerId],t.Ce[i])}t.lt})(e),e.clickAction===m.Os.URI&&k(e.uri||"",a||e.openTarget===m.vG.BLANK,t)}),t.stopPropagation(),!1);y.onclick=t,y.addEventListener("keydown",e=>{if(e.keyCode===c.c.Lo||e.keyCode===c.c.Ao)return t(e)})}let x=function(e,t,i,n="ltr"){let a=document.createElement("button");a.setAttribute("aria-label",e),a.setAttribute("role","button"),a.dir=n,(0,h.P4)(a,"touchstart"),a.className="ab-close-button";let s=(0,h.RJ)("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",t);return a.appendChild(s),s.setAttribute("aria-hidden","true"),a.addEventListener("keydown",e=>{e.keyCode!==c.c.Ao&&e.keyCode!==c.c.Lo||(i(),e.stopPropagation())}),a.onclick=e=>{i(),e.stopPropagation()},a}("Close Message",e.Mo()?void 0:d(e.closeButtonColor),()=>{e.tl(y)},l);y.appendChild(x),s&&(x.style.zIndex=(s+2).toString());let T=document.createElement("div");T.className="ab-message-text",T.dir=l,T.setAttribute("role","article");let C=(e.messageAlignment||e.Go).toLowerCase();T.className+=" "+C+"-aligned";let O=!1,_=document.createElement("div");if(_.className="ab-image-area",e.imageUrl){let t=document.createElement("img");if(t.setAttribute("src",e.imageUrl),e.Ho(t),0===document.querySelectorAll(".ab-iam-img-loading").length){O=!0;let e=document.querySelectorAll(".ab-iam-root");e&&e.length>0&&e[0].classList.add("ab-iam-img-loading"),w=window.setTimeout(()=>{E(!1)},6e4),t.onload=()=>{E()},t.onerror=()=>{E(!1)}}if(e.cropType===m.A5.CENTER_CROP){let e=document.createElement("div");e.className="ab-center-cropped-img",e.appendChild(t),_.appendChild(e)}else _.appendChild(t);y.appendChild(_),T.className+=" ab-with-image"}else if(e.icon){_.className+=" ab-icon-area";let t=document.createElement("span");t.className="ab-icon",e.Mo()||(t.style.backgroundColor=d(e.iconBackgroun
1dColor),t.style.color=d(e.iconColor));let i=document.createElement("i");i.className="fa",i.appendChild(document.createTextNode(e.icon)),i.setAttribute("aria-hidden","true"),t.appendChild(i),_.appendChild(t),y.appendChild(_),T.className+=" ab-with-icon"}if((0,h.P4)(T,"touchstart"),e.header&&e.header.length>0){let t=document.createElement("h1");t.className="ab-message-header",e.Jo=D.A.de(),t.id=e.Jo;let i=(e.headerAlignment||m.KP.CENTER).toLowerCase();t.className+=" "+i+"-aligned",e.Mo()||(t.style.color=d(e.headerTextColor)),t.appendChild(document.createTextNode(e.header)),T.appendChild(t)}let I=e.Ko();return T.appendChild(I),y.appendChild(T),O||S(),e.Eo=y,y}(e,t,a,y,x,_,P);if(e instanceof l.A||e instanceof u.A){var U,$;let t=e instanceof l.A?"ab-fullscreen":"ab-modal";B.className+=` ${t} ab-centered`,((e,t,i)=>{if(e.buttons&&e.buttons.length>0){let a=document.createElement("div");a.className="ab-message-buttons",t.appendChild(a);let s=t.getElementsByClassName("ab-message-text")[0];null!=s&&(s.className+=" ab-with-buttons");let o=a=>s=>(e.tl(t,()=>{(function(e,t){var i;if(!n.Ay.rr())return;if(!(e instanceof z.A))return g.A.error("button must be an InAppMessageButton object");if(!(t instanceof r.A))return g.A.error(m.iA.EE);let a=p.A.ra().Jn(e,t);if(a.lt)for(let n=0;n<a.Ce.length;n++)A.B.o().Ee(v.A.rm,[t.triggerId,null==(i=e.id)?void 0:i.toString()],a.Ce[n]);a.lt})(a,e),a.clickAction===m.Os.URI&&k(a.uri||"",i||e.openTarget===m.vG.BLANK,s)}),s.stopPropagation(),!1);for(let t=0;t<e.buttons.length;t++){let i=e.buttons[t],n=document.createElement("button");n.className="ab-message-button",n.setAttribute("type","button"),(0,h.P4)(n,"touchstart");let s=i.text;""===i.text&&(s="\xa0"),n.appendChild(document.createTextNode(s)),e.Mo()||(n.style.backgroundColor=d(i.backgroundColor),n.style.color=d(i.textColor),n.style.borderColor=d(i.borderColor)),n.onclick=o(i),a.appendChild(n)}}})(e,B,y),(e=>{let t=e.querySelectorAll(".ab-close-button, .ab-message-button");for(let e=0;e<t.length;e++)t[e].tabIndex=0;if(t.length>0){let i=t[0],n=t[t.length-1];e.addEventListener("keydown",t=>{let a=document.activeElement;t.keyCode===c.c.Wo&&(t.shiftKey||a!==n&&a!==e?t.shiftKey&&(a===i||a===e)&&(t.preventDefault(),n.focus()):(t.preventDefault(),i.focus()))})}})(B),U=e.Jo,($=B).setAttribute("role","dialog"),$.setAttribute("aria-modal","true"),U?$.setAttribute("aria-labelledby",U):$.setAttribute("aria-label","Modal Message")}else if(e instanceof o.A){let t,i;B.className+=" ab-slideup",B.setAttribute("tabindex","0"),B.setAttribute("role","alert");let n=B.getElementsByClassName("ab-close-button")[0];if(null!=n){let t=(0,h.RJ)("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",e.Mo()?void 0:d(e.closeButtonColor));t.setAttribute("class",`ab-chevron ${P}`),n.appendChild(t)}(0,h.sr)(B,h.X.ie,e=>{B.className+=" ab-swiped-left",null!=n&&null!=n.onclick&&n.onclick(e)}),(0,h.sr)(B,h.X.ne,e=>{B.className+=" ab-swiped-right",null!=n&&null!=n.onclick&&n.onclick(e)}),e.slideFrom===m.r2.TOP?(t=h.X.Uo,i=" ab-swiped-up"):(t=h.X.Vo,i=" ab-swiped-down"),(0,h.sr)(B,t,e=>{B.className+=i,null!=n&&null!=n.onclick&&n.onclick(e)})}return B}(e,t=>{if(e.zo()&&e.od()){let i=document.createElement("div");if(i.className="ab-page-blocker",e.Mo()||(i.style.backgroundColor=d(e.frameColor)),n.Ay.er(n.lw.ja)&&(i.style.zIndex=n.Ay.er(n.lw.ja).toString()),U.appendChild(i),!n.Ay.er(n.lw.oh)){let n=new Date().valueOf();i.onclick=i=>{new Date().valueOf()-n>m.Oy.pE&&(e.tl(t),i.stopPropagation())}}U.appendChild(t),t.focus(),e.eh(U)}else if(L){let i=document.querySelectorAll(".ab-slideup"),n=null;for(let e=i.length-1;e>=0;e--)if(i[e]!==t){n=i[e];break}if(e.slideFrom===m.r2.TOP){let e=0;null!=n&&(e=n.offsetTop+n.offsetHeight),t.style.top=Math.max(e,0)+"px"}else{let e=0;null!=n&&(e=(window.innerHeight||document.documentElement.clientHeight)-n.offsetTop),t.style.bottom=Math.max(e,0)+"px"}}else B&&!n.Ay.er(n.lw.oh)&&(0,P.B)(t)&&t.contentWindow&&t.contentWindow.addEventListener("keydown",function(t){t.keyCode===c.c.rh&&e.closeMessage()});
1f(e),e.dismissType===m.uR.AUTO_DISMISS&&setTimeout(()=>{U.contains(t)&&e.tl(t)},e.duration),"function"==typeof y&&y()},e=>{g.A.info(e)},n.Ay.er(n.lw.ba),n.Ay.er(n.lw.ja),n.Ay.er(n.lw.sr),t,$.ra().wa());return(B||L)&&(U.appendChild(G),e.eh(U)),!0}},53007:(e,t,i)=>{i.d(t,{b:()=>a});var n=i(9825);function a(e){let t,i=null==e?void 0:e.Rt(n.d.Tt.SS);return i&&(t={label:i.l,name:i.a}),t}},53334:(e,t,i)=>{i.d(t,{CF:()=>o,P4:()=>l,RJ:()=>c,X:()=>r,e0:()=>s,jp:()=>u,sr:()=>h});var n=i(88166),a=i(83736);let s={lp:null,td:function(e,t=!1,i=!1,n=!1){if(null==e)return!1;t=t||!1,i=i||!1;let a=e.getBoundingClientRect();return null!=a&&(a.top>=0&&a.top<=(window.innerHeight||document.documentElement.clientHeight)||!t)&&(a.left>=0||!n)&&(a.bottom>=0&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!i)&&(a.right<=(window.innerWidth||document.documentElement.clientWidth)||!n)}},r={Uo:"up",Vo:"down",ie:"left",ne:"right"};function o(){if(null==s.lp){s.lp=!1;try{let e=Object.defineProperty({},"passive",{get:()=>{s.lp=!0}});window.addEventListener("testPassive",()=>{},e),window.removeEventListener("testPassive",()=>{},e)}catch(e){n.A.error((0,a.u)(e))}}return s.lp}function l(e,t,i=()=>{}){e.addEventListener(t,i,!!o()&&{passive:!0})}function u(e){if(e.onclick){let t=document.createEvent("MouseEvents");t.initEvent("click",!0,!0),e.onclick.apply(e,[t])}}function h(e,t,i){let n=null,a=null;l(e,"touchstart",e=>{n=e.touches[0].clientX,a=e.touches[0].clientY}),l(e,"touchmove",s=>{if(null==n||null==a)return;let o=n-s.touches[0].clientX,l=a-s.touches[0].clientY;Math.abs(o)>Math.abs(l)&&Math.abs(o)>=25?((o>0&&t===r.ie||o<0&&t===r.ne)&&i(s),n=null,a=null):Math.abs(l)>=25&&((l>0&&t===r.Uo&&e.scrollTop===e.scrollHeight-e.offsetHeight||l<0&&t===r.Vo&&0===e.scrollTop)&&i(s),n=null,a=null)})}function c(e,t,i){let n="http://www.w3.org/2000/svg",a=document.createElementNS(n,"svg");a.setAttribute("viewBox",e),a.setAttribute("xmlns",n);let s=document.createElementNS(n,"path");return s.setAttribute("d",t),null!=i&&s.setAttribute("fill",i),a.appendChild(s),a}},57334:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(68842),a=i(3205),s=i(16539);class r extends s.A{constructor(e,t,i,a,s,r,o,l,u,h,c,d,p,m,g,b,f,v,A,w,y,S,E,x,T,C,k,O,_,I,N){l=l||n.uR.MANUAL,C=C||n.I5.PORTRAIT,super(e,t,void 0,i,a,s,r,o,l,u,h,c,d,p,m,g,b,f,v,A,w,y,S,E,x,T=T||n.A5.CENTER_CROP,C,k,O,_,I,N),this.Go=n.KP.CENTER}qt(){return super.qt(n.o6.cE)}static ha(e){return new r(e[n.Ot.rE],e[n.Ot.mE],e[n.Ot.Fs],e[n.Ot.FE],e[n.Ot.HE],e[n.Ot.URI],e[n.Ot.xE],e[n.Ot.BE],e[n.Ot.lE],e[n.Ot.bE],e[n.Ot.ys],e[n.Ot.gE],e[n.Ot.YE],e[n.Ot.KE],e[n.Ot.XE],e[n.Ot.dE],e[n.Ot.hE],e[n.Ot.yE],e[n.Ot.uE],e[n.Ot.WE],e[n.Ot.fE],e[n.Ot.jE],e[n.Ot.kE],(0,a.x)(e[n.Ot.vE]),e[n.Ot.wE],e[n.Ot.zE],e[n.Ot.VE],e[n.Ot.CSS],e[n.Ot.JE],e[n.Ot.LANGUAGE],e[n.Ot.Ks])}}},59606:(e,t,i)=>{i.d(t,{DA:()=>c,EQ:()=>o,Jd:()=>h,S3:()=>u,UK:()=>a,YX:()=>s,Zo:()=>r,jU:()=>l});var n=i(44259);function a(e,t=!1){let i=e/1e3;return t&&(i=Math.floor(i)),i}function s(e){return 1e3*e}function r(e){if(null==e)return null;let t=parseInt(e.toString());return isNaN(t)?null:new Date(1e3*t)}function o(e){return null!=e&&(0,n.$P)(e)?e.toISOString().replace(/\.[0-9]{3}Z$/,""):e}function l(e){return null==e||""===e?null:new Date(e)}function u(e){return null==e||""===e?new Date().valueOf():e}function h(e){return(new Date().valueOf()-e.valueOf())/1e3}function c(e){return(e.valueOf()-new Date().valueOf())/1e3}},59752:(e,t,i)=>{i.r(t),i.d(t,{logCustomEvent:()=>c});var n=i(74693),a=i(14566),s=i(88166),r=i(39102),o=i(9482),l=i(10416),u=i(42729),h=i(4794);function c(e,t){if(!n.Ay.rr())return!1;if(null==e||e.length<=0)return s.A.error(`logCustomEvent requires a non-empty eventName, got "${e}". Ignoring event.`),!1;if(!(0,u.Dz)(e,"log custom event","the event name"))return!1;let[i,c]=(0,u.fB)(t,h.em.je,"eventProperties",`log custom event "${e}"`,"event");if(!i)return!1;let d=n.Ay.l();if(d&&d.$e(e))return s.A.info(`Custom Event "${e}" is blocklisted, ignoring.`),!1;let p=a.A.wt(r.w.CustomEvent,{n:e,p:c});if(p.lt)for(let i of(s.A.info(`Logged custom event "${e}".`),p.Ce))l.B.o().Ee(o.A.he,[e,t],i);return p.lt}},59795:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(16539),a=i(53334),s=i(68842);class r extends n.A{constructor(e,t,i,n,a,r,o,l,u,h,c,d,p,m,g,b,f,v,A,w,y,S,E,x){b=b||s.S9.LE,g=g||s.S9.OE,super(e,t=t||s.KP.START,i,n,a,r,o,l,u,h,c,d,void 0,p,m,g,b,f,v,A,void 0,void 0,void 0,void 0,void 0,void 0,void 0,w,y,S,E,x),this.Go=s.KP.START}zo(){return!1}Ko(){let e=document.createElement("span");return e.appendChild(document.createTextNode(this.message||"")),e}eh(e){let t=e.getElementsByClassName("ab-in-app-message")[0];a.e0.td(t,!0,!0)||(this.slideFrom===s.r2.TOP?t.style.top="0px":t.style.bottom="0px"),super.eh(e)}qt(){return super.qt(s.o6.sE)}static ha(e){return new r(e[s.Ot.rE],e[s.Ot.mE],e[s.Ot.GE],e[s.Ot.Fs],e[s.Ot.FE],e[s.Ot.HE],e[s.Ot.URI],e[s.Ot.xE],e[s.Ot.BE],e[s.Ot.lE],e[s.Ot.bE],e[s.Ot.ys],e[s.Ot.YE],e[s.Ot.KE],e[s.Ot.XE],e[s.Ot.dE],e[s.Ot.hE],e[s.Ot.yE],e[s.Ot.uE],e[s.Ot.VE],e[s.Ot.CSS],e[s.Ot.JE],e[s.Ot.LANGUAGE],e[s.Ot.Ks])}}},62152:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(59606);class a{constructor(e,t,i,n,a){this.endpoint=e,this.Wu=t,this.publicKey=i,this.zc=n,this.rc=a,this.endpoint=e||null,this.Wu=t||null,this.publicKey=i||null,this.zc=n||null,this.rc=a||null}qt(){return{e:this.endpoint,c:this.Wu,p:this.publicKey,u:this.zc,v:this.rc}}static _u(e){return new a(e.e,(0,n.jU)(e.c),e.p,e.u,e.v)}}},66167:(e,t,i)=>{function n(e){null==e&&(e="");let t=e.split("?").slice(1).join("?"),i={};if(null!=t){let e=t.split("&");for(let t=0;t<e.length;t++){let n=e[t].split("=");""!==n[0]&&(i[n[0]]=n[1])}}return i}function a(e){return!(!e||0!==(e=e.toString().toLowerCase()).lastIndexOf("javascript:",0)&&0!==e.lastIndexOf("data:",0))}i.d(t,{P:()=>a,y:()=>n})},68842:(e,t,i)=>{i.d(t,{A5:()=>p,Ef:()=>f,HE:()=>s,I5:()=>c,KP:()=>d,Os:()=>o,Ot:()=>v,Oy:()=>g,S9:()=>a,Xn:()=>b,iA:()=>n,o6:()=>m,r2:()=>r,uR:()=>l,uy:()=>h,vG:()=>u});let n={EE:"inAppMessage must be an InAppMessage object",TE:"ab-pause-scrolling"},a={IE:0xff333333,AE:0xffffffff,_E:0xff0073d5,OE:0xffefefef,LE:0xff555555,SE:0xc0333333,NE:0xff9b9b9b},s={RE:"hd",tE:"ias",ME:"of",eE:"do",oE:"umt",CE:"tf",DE:"te"},r={TOP:"TOP",BOTTOM:"BOTTOM"},o={URI:"URI",NONE:"NONE"}
1,l={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},u={NONE:"NONE",BLANK:"BLANK"},h={TOP:"TOP",GRAPHIC:"GRAPHIC"},c={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},d={START:"START",CENTER:"CENTER",END:"END"},p={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},m={sE:"SLIDEUP",aE:"MODAL",UE:"MODAL_STYLED",cE:"FULL",iE:"WEB_HTML",PE:"HTML",nE:"HTML_FULL"},g={gr:500,pE:200},b="ab-show",f="ab-hide",v={rE:"m",mE:"ma",GE:"sf",Fs:"e",FE:"ti",HE:"ca",URI:"u",xE:"oa",BE:"dt",lE:"d",bE:"i",ys:"iu",gE:"is",YE:"ic",KE:"ibc",XE:"bc",dE:"tc",hE:"cbc",yE:"ai",uE:"ao",WE:"h",fE:"ha",jE:"htc",kE:"fc",vE:"b",wE:"ct",zE:"o",VE:"hi",CSS:"css",xs:"type",qE:"messageFields",JE:"me",LANGUAGE:"l",Ks:"ia"}},71851:(e,t,i)=>{i.d(t,{A:()=>f});var n=i(59606),a=i(88166);class s{constructor(e){this.Gc=e,this.Gc=e}Hc(e){return null==this.Gc||this.Gc===e[0]}static fromJson(e){return new s(e?e.event_name:null)}qt(){return this.Gc}}var r=i(44259);class o{constructor(e,t,i,a){this.tT=e,this.sT=t,this.comparator=i,this.eT=a,this.tT=e,this.sT=t,this.comparator=i,this.eT=a,this.sT===o.lT.iT&&this.comparator!==o.hT.rT&&this.comparator!==o.hT.nT&&this.comparator!==o.hT.uT&&this.comparator!==o.hT.oT&&(this.eT=(0,n.Zo)(this.eT))}Hc(e){let t=null;switch(null!=e&&(t=e[this.tT]),this.comparator){case o.hT.ET:return null!=t&&t.valueOf()===this.eT.valueOf();case o.hT.aT:return null==t||t.valueOf()!==this.eT.valueOf();case o.hT.TT:return null!=t&&typeof t==typeof this.eT&&t>this.eT;case o.hT.rT:return this.sT===o.lT.iT?null!=t&&(0,r.$P)(t)&&(0,n.Jd)(t)<=this.eT.valueOf():null!=t&&typeof t==typeof this.eT&&t>=this.eT;case o.hT.cT:return null!=t&&typeof t==typeof this.eT&&t<this.eT;case o.hT.nT:return this.sT===o.lT.iT?null!=t&&(0,r.$P)(t)&&(0,n.Jd)(t)>=this.eT.valueOf():null!=t&&typeof t==typeof this.eT&&t<=this.eT;case o.hT.AT:return null!=t&&"string"==typeof t&&typeof t==typeof this.eT&&null!=t.match(this.eT);case o.hT._T:return null!=t;case o.hT.fT:return null==t;case o.hT.uT:return null!=t&&(0,r.$P)(t)&&(0,n.DA)(t)<this.eT;case o.hT.oT:return null!=t&&(0,r.$P)(t)&&(0,n.DA)(t)>this.eT;case o.hT.pT:return null==t||typeof t!=typeof this.eT||"string"!=typeof t||null==t.match(this.eT)}return!1}static fromJson(e){return new o(e.property_key,e.property_type,e.comparator,e.property_value)}qt(){let e=this.eT;return(0,r.$P)(this.eT)&&(e=(0,n.UK)(e.valueOf())),{k:this.tT,t:this.sT,c:this.comparator,v:e}}static _u(e){return new o(e.k,e.t,e.c,e.v)}}o.lT={yT:"boolean",ST:"number",NT:"string",iT:"date"},o.hT={ET:1,aT:2,TT:3,rT:4,cT:5,nT:6,AT:10,_T:11,fT:12,uT:15,oT:16,pT:17};class l{constructor(e){this.filters=e,this.filters=e}Hc(e){let t=!0;for(let i=0;i<this.filters.length;i++){let n=this.filters[i],a=!1;for(let t=0;t<n.length;t++)if(n[t].Hc(e)){a=!0;break}if(!a){t=!1;break}}return t}static fromJson(e){if(null==e||!(0,r.cy)(e))return null;let t=[];for(let i=0;i<e.length;i++){let n=[],a=e[i];for(let e=0;e<a.length;e++)n.push(o.fromJson(a[e]));t.push(n)}return new l(t)}qt(){let e=[];for(let t=0;t<this.filters.length;t++){let i=this.filters[t],n=[];for(let e=0;e<i.length;e++)n.push(i[e].qt());e.push(n)}return e}static _u(e){let t=[];for(let i=0;i<e.length;i++){let n=[],a=e[i];for(let e=0;e<a.length;e++)n.push(o._u(a[e]));t.push(n)}return new l(t)}}class u{constructor(e,t){this.Gc=e,this.tf=t,this.Gc=e,this.tf=t}Hc(e){if(null==this.Gc||null==this.tf)return!1;let t=e[0],i=e[1];return t===this.Gc&&this.tf.Hc(i)}static fromJson(e){return new u(e?e.event_name:null,e?l.fromJson(e.property_filters):null)}qt(){return{e:this.Gc,pf:this.tf?this.tf.qt():null}}}class h{constructor(e,t){this.if=e,this.rf=t,this.if=e,this.rf=t}Hc(e){if(null==this.if)return!1;let t=b.sf(e[0],this.if);if(!t)return!1;let i=null==this.rf||0===this.rf.length;if(null!=this.rf){for(let t=0;t<this.rf.length;t++)if(this.rf[t]===e[1]){i=!0;break}}return t&&i}static fromJson(e){return new h(e?e.id:null,e?e.buttons:null)}qt(){return this.if}}class c{constructor(e){this.productId=e,this.productId=e}Hc(e){return null==this.productId||e[0]===this.productId}static fromJson(e){return new c(e?e.product_id:null)}qt(){return this.productId}}class d{constructor(e,t){this.productId=e,this.tf=t,this.productId=e,this.tf=t}Hc(e){if(null==this.productId||null==this.tf)return!1;let t=e[0],i=e[1];return t===this.productId&&this.tf.Hc(i)}static fromJson(e){return new d(e?e.product_id:null,e?l.fromJson(e.property_filters):null)}qt(){return{id:this.productId,pf:this.tf?this.tf.qt():null}}}class p{constructor(e){this.if=e,this.if=e}Hc(e){return null==this.if||b.sf(e[0],this.if)}static fromJson(e){return new p(e?e.campaign_id:null)}qt(){return this.if}}var m=i(9482),g=i(83736);class b{constructor(e,t){this.type=e,this.data=t,this.type=e,this.data=t}Vc(e,t){return b.Yc[this.type]===e&&(null==this.data||this.data.Hc(t))}static sf(e,t){let i=null;try{i=window.atob(e)}catch(t){return a.A.info("Failed to unencode analytics id "+e+": "+(0,g.u)(t)),!1}return t===i.split("_")[0]}static fromJson(e){let t=e.type,i=null;switch(t){case b.la.OPEN:case b.la.Ls:break;case b.la.Rr:i=c.fromJson(e.data);break;case b.la.Qc:i=d.fromJson(e.data);break;case b.la.Fr:i=p.fromJson(e.data);break;case b.la.he:i=s.fromJson(e.data);break;case b.la.Xc:i=u.fromJson(e.data);break;case b.la.rm:i=h.fromJson(e.data)}
1return new b(t,i)}qt(){return{t:this.type,d:this.data?this.data.qt():null}}static _u(e){let t,i=null;switch(e.t){case b.la.OPEN:case b.la.Ls:break;case b.la.Rr:i=new c(e.d);break;case b.la.Qc:i=new d((t=e.d||{}).id,l._u(t.pf||[]));break;case b.la.Fr:i=new p(e.d);break;case b.la.he:i=new s(e.d);break;case b.la.Xc:i=new u((t=e.d||{}).e,l._u(t.pf||[]));break;case b.la.rm:i=new h(e.d)}return new b(e.t,i)}}b.la={OPEN:"open",Rr:"purchase",Qc:"purchase_property",Fr:"push_click",he:"custom_event",Xc:"custom_event_property",rm:"iam_click",Ls:"test"},b.Yc={},b.Yc[b.la.OPEN]=m.A.OPEN,b.Yc[b.la.Rr]=m.A.Rr,b.Yc[b.la.Qc]=m.A.Rr,b.Yc[b.la.Fr]=m.A.Fr,b.Yc[b.la.he]=m.A.he,b.Yc[b.la.Xc]=m.A.he,b.Yc[b.la.rm]=m.A.rm,b.Yc[b.la.Ls]=m.A.Ls;class f{constructor(e,t=[],i,n,a=0,s,r,o=0,l=f.sd,u,h,c){this.id=e,this.ed=t,this.startTime=i,this.endTime=n,this.priority=a,this.type=s,this.data=r,this.hd=o,this.nd=l,this.ca=u,this.ad=h,this.ud=c,this.id=e,this.ed=t||[],void 0===i&&(i=null),this.startTime=i,void 0===n&&(n=null),this.endTime=n,this.priority=a||0,this.type=s,this.hd=o||0,null==u&&(u=1e3*(this.hd+30)),this.ca=u,this.data=r,null!=l&&(this.nd=l),this.ad=h,this.ud=c||null}dd(e){return null==this.ud||this.nd!==f.sd&&e-this.ud>=1e3*this.nd}md(e){this.ud=e}gd(e){return Math.max(e+1e3*this.hd-new Date().valueOf(),0)}fd(e){let t=new Date().valueOf()-e,i=null==e||isNaN(t)||null==this.ca||t<this.ca;return i||a.A.info(`Trigger action ${this.type} is no longer eligible for display - fired ${t}ms ago and has a timeout of ${this.ca}ms.`),!i}static fromJson(e){let t=e.id,i=[];for(let t=0;t<e.trigger_condition.length;t++)i.push(b.fromJson(e.trigger_condition[t]));let a=(0,n.Zo)(e.start_time),s=(0,n.Zo)(e.end_time),o=e.priority,l=e.type,u=e.delay,h=e.re_eligibility,c=e.timeout,d=e.data,p=e.min_seconds_since_last_trigger;return(0,r.BY)(f.la,l,"Could not construct Trigger from server data","Trigger.Types")?new f(t,
1i,a,s,o,l,d,u,h,c,p):null}qt(){let e=[];for(let t=0;t<this.ed.length;t++)e.push(this.ed[t].qt());return{i:this.id,c:e,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.hd,r:this.nd,tm:this.ca,ss:this.ad,ld:this.ud}}static _u(e){let t=[],i=e.c||[];for(let e=0;e<i.length;e++)t.push(b._u(i[e]));return new f(e.i,t,(0,n.jU)(e.s),(0,n.jU)(e.e),e.p,e.t,e.da,e.d,e.r,e.tm,e.ss,e.ld)}}f.la={oa:"inapp",pd:"templated_iam"},f.sd=-1},72732:(e,t,i)=>{i.d(t,{C:()=>n});let n=(e,t)=>(e=Math.ceil(e),Math.floor(Math.random()*((t=Math.floor(t))-e+1))+e)},74693:(e,t,i)=>{i.d(t,{lw:()=>W,Ay:()=>Y});var n=i(9825),a=i(5113),s=i(95718),r=i(88166);class o{constructor(e,t,i){this.C=e,this.gh=t,this.bh=i,this.C=e,this.gh=t||!1,this.bh=i,this.Sh=new a.A,this.Ah=0,this.ph=1}Fh(){return this.gh}kh(){return this.C.Rt(n.d.Tt.fh)}setSdkAuthenticationSignature(e){let t=this.kh();this.C.It(n.d.Tt.fh,e);let i=s.A.Ps.$s;new s.A(i,r.A).setItem(i.Os.wh,this.ph,e),t!==e&&this.ct()}jh(){this.C.Qt(n.d.Tt.fh);let e=s.A.Ps.$s;new s.A(e,r.A).ge(e.Os.wh,this.ph)}subscribeToSdkAuthenticationFailures(e){return this.bh.Kt(e)}Ch(e){this.bh.A(e)}xh(){this.Sh.removeAllSubscriptions()}Eh(){this.Ah+=1}Ih(){return this.Ah}ct(){this.Ah=0}}var l=i(48662),u=i(49134);class h{constructor(e){this.id=e,this.id=e}ta(){let e={};return null!=this.browser&&(e.browser=this.browser),null!=this.Oa&&(e.browser_version=this.Oa),null!=this.os&&(e.os_version=this.os),null!=this.resolution&&(e.resolution=this.resolution),null!=this.language&&(e.locale=this.language),null!=this.timeZone&&(e.time_zone=this.timeZone),null!=this.userAgent&&(e.user_agent=this.userAgent),e}}let c={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"};var d=i(31463),p=i(16491),m=i(44259),g=i(83736);class b{constructor(e,t){this.C=e,this.Da=t,this.C=e,null==t&&(t=(0,m.zu)(c)),this.Da=t}ve(e=!0){let t=this.C.$u(n.d.Ou.Wh);null==t&&(t=new d.A(p.A.de()),e&&this.C.Iu(n.d.Ou.Wh,t));let i=new h(t.Tu);for(let e=0;e<this.Da.length;e++)switch(this.Da[e]){case c.BROWSER:i.browser=u.A.browser;break;case c.BROWSER_VERSION:i.Oa=u.A.version;break;case c.OS:i.os=this.Fa();break;case c.RESOLUTION:i.Ga=screen.width+"x"+screen.height;break;case c.LANGUAGE:i.language=u.A.language;break;case c.TIME_ZONE:i.timeZone=this.Ja(new Date);break;case c.USER_AGENT:i.userAgent=u.A.userAgent}return i}Fa(){if(u.A.Aa())return u.A.Aa();let e=this.C.Rt(n.d.Tt.Ba);return e&&e.os_version?e.os_version:u.A.Fa()}Ja(e){let t=!1;if("u">typeof Intl&&"function"==typeof Intl.DateTimeFormat)try{if("function"==typeof Intl.DateTimeFormat().resolvedOptions){let e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=e&&""!==e)return e}}catch(e){r.A.info("Intl.DateTimeFormat threw an error, cannot detect user's time zone:"+(0,g.u)(e)),t=!0}if(t)return"";let i=e.getTimezoneOffset();return this.Ha(i)}Ha(e){let t=Math.trunc(e/60),i=Math.trunc(e%60),n="GMT";return 0!==e&&(n+=(e<0?"+":"-")+(("00"+Math.abs(t)).slice(-2)+":")+("00"+Math.abs(i)).slice(-2)),n}}var f=i(79472),v=i(95883),A=i(59606),w=i(14566),y=i(39102),S=i(26063),E=i(4794),x=i(53007),T=i(28005);class C{constructor(e,t,i,n,a,s,r,o,l,u,h,c){this.eu=e,this.C=t,this.Gh=i,this.Ss=n,this.j=a,this.h=s,this.tu=r,this.Yh=o,this.Vh=l,this.Kh=u,this.appVersion=h,this.Ra=c,this.$a=e=>null==e?"":`${e} `,this.eu=e,this.C=t,this.Gh=i,this.Ss=n,this.j=a,this.h=s,this.tu=r,this.Yh=o,this.Vh=l,this.Kh=u,this.appVersion=h,this.Ra=c,this.Xa=["npm"],this.La={}}Z(e,t=!1,i=!1){let a=this.eu.ve(!i),s=a.ta(),r=this.C.Rt(n.d.Tt.Ba);(0,m.n4)(r,s)||(e.device=s),e.api_key=this.tu,e.time=(0,A.UK)(new Date().valueOf(),!0);let o=this.C.Rt(n.d.Tt.Ka)||[],l=this.C.Rt(n.d.Tt.Pa)||"";this.Xa.length>0&&(!(0,m.n4)(o,this.Xa)||l!==this.j.kt())&&(e.sdk_metadata=this.Xa),e.sdk_version=this.Vh,this.Kh&&(e.sdk_flavor=this.Kh),e.app_version=this.appVersion,e.app_version_code=this.Ra,e.device_id=a.id;let u=this.Ss.getUserId();if(t&&null!==u&&(e.user_id=u),!u&&!this.Gh.Fh()){let t=(0,x.b)(this.C);t&&(e.alias=t)}return e}ut(e,t,i){let n=t.auth_error,a=t.error;if(!n&&!a)return!0;
1if(n){let t;this.Gh.Eh();let a={errorCode:n.error_code};for(let e of i)(0,m.cy)(e)&&"X-Braze-Auth-Signature"===e[0]&&(a.signature=e[1]);e.respond_with&&e.respond_with.user_id?a.userId=e.respond_with.user_id:e.user_id&&(a.userId=e.user_id);let s=n.reason;return s?(a.reason=s,t=`due to ${s}`):t=`with error code ${n.error_code}.`,this.Gh.Fh()||(t+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),r.A.error(`SDK Authentication failed ${t}`),this.Ua(e.events||[],e.attributes||[]),this.Gh.Ch(a),!1}if(a){let i,n=a;switch(n){case f.A.Wa:return i="Received successful response with empty body.",w.A.wt(y.w.Ya,{e:i}),r.A.info(i),!1;case f.A.Qa:return i="Received successful response with invalid JSON",w.A.wt(y.w.Ya,{e:i+": "+t.response}),r.A.info(i),!1;case f.A.Va:n=`The API key "${e.api_key}" is invalid for the baseUrl ${this.Yh}`;break;case f.A.Za:n="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case f.A.dl:n="No device identifier. Please contact [email protected]"}r.A.error("Backend error: "+n)}return!1}fl(e,t,i){return!!(e&&0!==e.length||t&&0!==t.length||i)}ml(e,t,i,n=!1){let a=[],s=e=>e||"",r=s(this.Ss.getUserId()),o=this.Zo(e),l=[],u=[],h,c=null;if(t.length>0){let e=[];for(let i of t){if(h=i.ta(),this.Gh.Fh()){if(r&&!h.user_id){c||(c={}),c.events||(c.events=[]),c.events.push(h);continue}if(s(h.user_id)!==r){u.push(h);continue}}e.push(h)}e.length>0&&(o.events=e)}if(i.length>0){let e=[];for(let t of i)t&&(this.Gh.Fh()&&s(t.user_id)!==r?l.push(t):e.push(t));e.length>0&&(o.attributes=e)}if(this.Ua(u,l),o=this.Z(o,!1,n),c){let e={requestData:c=this.Z(c,!1,n),headers:this.tt(c,S.A.it.pn)};a.push(e)}if(o&&!this.fl(o.events,o.attributes,e))return c?a:null;let d={requestData:o,headers:this.tt(o,S.A.it.pn)};return a.push(d),a}Ua(e,t){if(e){let t=[];for(let i of e){let e=v.A.fromJson(i);e.time=(0,A.YX)(e.time),t.push(e)}this.C.ol(t)}if(t)for(let e of t)this.C.vl(e)}dt(e,t){let i="HTTP error ";null!=e&&(i+=e+" "),i+=t,r.A.error(i)}Rl(e){return w.A.wt(y.w.gl,{n:e})}Zo(e,t){let i={};e&&(i.triggers=!0);let n=null!=t?t:this.Ss.getUserId();if(n&&(i.user_id=n),!i.user_id&&!this.Gh.Fh()){let e=(0,x.b)(this.C);e&&(i.alias=e)}return i.config={config_time:this.h.Ot()},{respond_with:i}}bl(e){let t=new Date().valueOf(),i=E.mO.toString(),n=S.A.ql(this.C,e);return -1!==n&&(i=(t-n).toString()),i}tt(e,t,i=!1){let n=[["X-Braze-Api-Key",this.tu]],a=this.bl(t);n.push(["X-Braze-Last-Req-Ms-Ago",a]);let s=S.A.Al(this.C,t).toString();n.push(["X-Braze-Req-Attempt",s]);let r=!1;if(null!=e.respond_with&&e.respond_with.triggers&&(n.push(["X-Braze-TriggersRequest","true"]),r=!0),t===S.A.it.Ji){n.push(["X-Braze-ContentCardsRequest","true"]);let e=S.A.Al(this.C,S.A.it.Ji);e&&!i||(e=1,S.A.Dl(this.C,S.A.it.Ji,e));let t=Math.max(0,e-1);n.push(["BRAZE-SYNC-RETRY-COUNT",t.toString()]),r=!0}if(t===S.A.it.Co&&(n.push(["X-Braze-FeatureFlagsRequest","true"]),r=!0),r&&n.push(["X-Braze-DataRequest","true"]),this.Gh.Fh()){let e=this.Gh.kh();null!=e&&n.push(["X-Braze-Auth-Signature",e])}return n}Tl(e,t,i,n){if(this.La[n])return;let a=window.setTimeout(()=>{r.A.info(`Retrying rate limited ${this.$a(n)}SDK request.`),this.et(t,i,n)},e);this.La[n]=a}fo(){for(let e in this.La){let t=this.La[e];window.clearTimeout(t)}this.La={}}et(e,t,i,a){if(!this.kl(i))return r.A.info(`${this.$a(i)}SDK request being rate limited.`),void("function"==typeof a&&a());let s=this.yl();if(!s.wl)return this.Tl(s.Nl,e,t,i),void r.A.info(`${this.$a(i)}SDK request being rate limited. Request will be retried in ${Math.trunc(s.Nl/1e3)} seconds.`);this.C.It(n.d.Tt.Cl,new Date().valueOf());let o=e.device;o&&o.os_version instanceof Promise?o.os_version.then(i=>{e.device.os_version=i,t(s.Sl)}):t(s.Sl)}Bl(e){let t=e?(0,T.s)(e):null;if(!t||!t["retry-after"])return null;let i=t["retry-after"];return isNaN(i)&&!isNaN(Date.parse(i))?{type:"date",value:Date.parse(i)}:isNaN(parseFloat(i.toString()))?(w.A.wt(y.w.Ya,{e:"Received unexpected value for retry-after header in /sync response: "+i}),null):{type:"timestamp",value:1e3*parseFloat(i.toString())}}yt(e,t,i,n,a,s){let r;if(S.A.Al(this.C,i)>=E.uR)return;s=s||0;let o=this.Bl(e);a();let l=e=>{n(window.setTimeout(()=>{t()},e)),S.A.zl(this.C,i)};if(o&&!isNaN(o.value)){switch(o.type){case"date":(r=o.value-new Date().getTime()+s)<0&&t();break;case"timestamp":r=o.value+s}l(r)}else s?l(s):S.A.Li(this.C,i)}jl(e){var t;null==(t=this.C)||t.It(n.d.Tt.Ml,e)}$l(e,t){let i=this.Xl();null==i&&(i={}),i[e]=t,this.C.It(n.d.Tt.Ll,i)}El(){var e;return null==(e=this.C)?void 0:e.Rt(n.d.Tt.Ml)}Xl(){var e;return null==(e=this.C)?void 0:e.Rt(n.d.Tt.Ll)}Fl(e,t,i,n,a=""){let s;if(a){let e=this.Xl();s=null==e||isNaN(e[a])?t:e[a]}else(null==(s=this.El())||isNaN(s))&&(s=t);return Math.min(s+(e-n)/1e3/i,t)}Kl(e,t){return Math.max(0,(1-e)*t*1e3)}Il(e,t=""){var i,a,s,r,o;let l={wl:!0,Sl:-1,Nl:0};if(null==e&&(e=!0),!e&&!t)return l;let u,h,c=null;if(e)c=null==(i=this.C)?void 0:i.Rt(n.d.Tt.Cl);else{let e=S.A.Pl(this.C);if(null==e||null==e[t])return l;c=e[t]}if(null==c||isNaN(c)||(e?(u=(null==(a=this.h)?void 0:a.Ul())||-1,h=(null==(s=this.h)?void 0:s.xl())||-1):(u=(null==(r=this.h)?void 0:r.Hl(t))||-1,h=(null==(o=this.h)?void 0:o.Ol
1(t))||-1),-1===u||-1===h))return l;let d=new Date().valueOf(),p=this.Fl(d,u,h,c,t);return p<1?(l.wl=!1,l.Nl=this.Kl(p,h)):(l.Sl=p=Math.trunc(p)-1,e?this.jl(p):this.$l(t,p)),l}yl(){return this.Il(!0)}kl(e){let t=this.Il(!1,e);return!(t&&!t.wl)}ct(){this.Gh.ct()}ht(){return this.Yh}addSdkMetadata(e){for(let t of e)-1===this.Xa.indexOf(t)&&this.Xa.push(t)}}var k=i(68842),O=i(20785),_=i(80336),I=i(72732);class N{constructor(e,t,i,n,s,r,o,l,u,h){this.tu=e,this.baseUrl=t,this.j=i,this.eu=n,this.Ss=s,this.h=r,this.C=o,this.bc=l,this.Gh=u,this.B=h,this.tu=e,this.baseUrl=t,this.kc=0,this.dS=o.RS()||0,this.yc=null,this.j=i,this.eu=n,this.Ss=s,this.h=r,this.C=o,this.Gh=u,this.B=h,this.bc=l,this.jc=new a.A,this.Ac=null,this.Dc=50,this.$c=!1,this.qc=!1}Cc(e,t){return!e&&!t&&this.Gh.Ih()>=this.Dc}Mc(e){let t=this.j.am();if(e.length>0){let i=this.Ss.getUserId();for(let n of e){let e=!n.userId&&!i||n.userId===i;n.type===y.w.wm&&e&&(t=!0)}}return t}Tc(e=!1,t=!0,i,a,s,o=!1,l=!1){t&&this.Lc();let u=this.C.TS(),h=this.C.gS(),c=!1,d=(e,r,o=-1)=>{let l=new Date().valueOf();S.A.nt(this.C,S.A.it.pn,l),-1!==o&&r.push(["X-Braze-Req-Tokens-Remaining",o.toString()]);let u=!1;T.A.ot({url:this.baseUrl+"/data/",data:e,headers:r,lt:t=>{null!=e.respond_with&&e.respond_with.triggers&&(this.kc=Math.max(this.kc-1,0)),this.B.ut(e,t,r)?(this.Gh.ct(),this.h.sc(t),null!=e.respond_with&&e.respond_with.user_id!=this.Ss.getUserId()||(null!=e.device&&this.C.It(n.d.Tt.Ba,e.device),null!=e.sdk_metadata&&(this.C.It(n.d.Tt.Ka,e.sdk_metadata),this.C.It(n.d.Tt.Pa,this.j.kt())),this.bc(t),S.A.Dl(this.C,S.A.it.pn,1),"function"==typeof i&&i())):t.auth_error&&(u=!0)},error:()=>{u=!0,null!=e.respond_with&&e.respond_with.triggers&&(this.kc=Math.max(this.kc-1,0)),this.B.Ua(e.events,e.attributes),"function"==typeof a&&a()},ft:(e,i)=>{"function"==typeof s&&s(!u);let n=this.B.Bl(i),a=0;if(n)switch(n.type){case"date":a=Math.max(n.value-new Date().valueOf(),0);break;case"timestamp":a=n.value}if(t&&!c){if(u){S.A.zl(this.C,S.A.it.pn);let e=this.h.vt(),t=this.h.gt(),i=this.h.bt(),n=this.yc;(null==n||n<e)&&(n=e);let s=Math.min(i,(0,I.C)(e,n*t))+a;this.Fc(s)}else this.Fc(Math.max(1e3*this.dS,a));c=!0}}})},p=this.Mc(u),m=e||p;if(this.Cc(o,p))return void r.A.info("Declining to flush data due to 50 consecutive authentication failures");if(t&&!this.B.fl(u,h,m))return this.Fc(),void("function"==typeof s&&s(!0));let g=this.B.ml(m,u,h,l);m&&this.kc++;let b=!1;if(g)for(let e of g)this.B.et(e.requestData,t=>d(e.requestData,e.headers,t),S.A.it.pn,a),b=!0;this.Gh.Fh()&&t&&!b?this.Fc():p&&(r.A.info("Invoking new session subscriptions"),this.jc.A(),this.qc=!0)}Ic(){return this.kc>0}Fc(e=1e3*this.dS){this.$c||(this.Lc(),this.Ac=window.setTimeout(()=>{if(document.hidden){let e="visibilitychange",t=()=>{document.hidden||(document.removeEventListener(e,t,!1),this.Tc())};document.addEventListener(e,t,!1)}else this.Tc()},e),this.yc=e)}Lc(){null!=this.Ac&&(clearTimeout(this.Ac),this.Ac=null)}initialize(){this.$c=!1,this.Fc()}destroy(){this.jc.removeAllSubscriptions(),this.Gh.xh(),this.Lc(),this.$c=!0,this.Tc(void 0,!1,void 0,void 0,void 0,void 0,!0),this.Ac=null,this.qc=!1}rn(e){return this.qc?(e(),null):this.jc.Kt(e)}openSession(){let e=this.j.kt()!==this.j.el();e&&(this.C.uS(n.d.Ou.Wh),this.C.uS(n.d.Ou.Cu)),this.Tc(!1,void 0,()=>{e&&(this.C.Qt(n.d.Tt.jo),this.C.Qt(n.d.Tt.Wt))}),this.Ea(),e&&i.e(8259).then(i.bind(i,78259)).then(e=>{if(this.$c)return;let t=e.default.ra();if(null!=t&&(_.A.isPushPermissionGranted()||_.A.isPushBlocked())){let e=()=>{t.du()?r.A.info("Push token maintenance is disabled, not refreshing token for backend."):t.subscribe()},i=()=>{let t=this.C.Rt(n.d.Tt.Uu);(null==t||t)&&e()},a=s.A.Ps.$s;new s.A(a,r.A).kr(a.Os.Fu,(t,i)=>{i&&e()},i)}})}Pc(){this.C.Qt(n.d.Tt.Fo),this.C.Qt(n.d.Tt.Ci),this.C.Qt(n.d.Tt.pa)}xc(){this.C.Qt(n.d.Tt.Cl),this.C.Qt(n.d.Tt.iS),this.C.Qt(n.d.Tt.Ml),this.C.Qt(n.d.Tt.Ll)}changeUser(e,t,i){let a=this.Ss.getUserId();if(a!==e){this.j.Sm(),this.Pc(),function(){let e=document.querySelectorAll(".ab-iam-root");for(let t=0;t<e.length;t++){let i=e[t];if(i.id){let e=i.id+"-css",t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}i.parentNode&&i.parentNode.removeChild(i)}let t=document.getElementsByClassName(k.iA.TE);for(let e=0;e<t.length;e++){let i=t[e].classList;i.contains(k.iA.TE)&&i.remove(k.iA.TE)}}(),null!=a&&this.Tc(void 0,!1,void 0,void 0,void 0),this.Ss.Ju(e),i?this.Gh.setSdkAuthenticationSignature(i):this.Gh.jh();for(let e=0;e<t.length;e++)t[e].changeUser(null==a);
1this.B.fo(),null!=a&&this.C.Qt(n.d.Tt.tS),this.C.Qt(n.d.Tt.Ba),this.C.Qt(n.d.Tt.SS),this.xc(),this.openSession(),r.A.info('Changed user to "'+e+'".')}else{let t="Doing nothing.";i&&this.Gh.kh()!==i&&(this.Gh.setSdkAuthenticationSignature(i),t="Updated SDK authentication signature"),r.A.info(`Current user is already ${e}. ${t}`)}}requestImmediateDataFlush(e){this.Lc(),this.j.el(),this.Tc(void 0,void 0,void 0,()=>{r.A.error("Failed to flush data, request will be retried automatically.")},e,!0)}Sr(e,t){this.j.el(),r.A.info("Requesting explicit trigger refresh."),this.Tc(!0,void 0,e,t)}Gu(e,t){let i=y.w.Nc,a={a:e,l:t},s=w.A.wt(i,a);return s&&(r.A.info(`Logged alias ${e} with label ${t}`),this.C.It(n.d.Tt.SS,a)),s}Mu(e,t,i){if(this.h.qu(t))return r.A.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new O.A;let n=w.A.wt(e,{key:t,value:i});if(n){let e="object"==typeof i?JSON.stringify(i,null,2):i;r.A.info(`Logged custom attribute: ${t} with value: ${e}`)}return n}setLastKnownLocation(e,t,i,n,a,s){let o={latitude:t,longitude:i};null!=n&&(o.altitude=n),null!=a&&(o.ll_accuracy=a),null!=s&&(o.alt_accuracy=s);let l=w.A.wt(y.w.Oc,o,e||void 0);return l&&r.A.info(`Set user last known location as ${JSON.stringify(o,null,2)}`),l}yr(e,t){let i=this.j.el();return new v.A(this.Ss.getUserId(),y.w.Uc,e,i,{cid:t})}Bc(e,t){return new s.A(e,t)}Ea(){let e=s.A.Ps.$s;this.Bc(e,r.A).setItem(e.Os.pn,1,{baseUrl:this.baseUrl,data:{api_key:this.tu,device_id:this.eu.ve().id},userId:this.Ss.getUserId(),sdkAuthEnabled:this.Gh.Fh()})}Ar(e){for(let t of e)if(t.api_key===this.tu)this.B.Ua(t.events,t.attributes);else{let e=s.A.Ps.$s;new s.A(e,r.A).setItem(e.Os.qr,p.A.de(),t)}}Na(e,t,i){let n,a;return this.h.qu(e)?(r.A.info(`Custom Attribute "${e}" is blocklisted, ignoring.`),new O.A):(null===t&&null===i?(n=y.w.Jc,a={key:e}):(n=y.w.Kc,a={key:e,latitude:t,longitude:i}),w.A.wt(n,a))}va(e,t){return w.A.wt(y.w.Wc,{group_id:e,status:t})}}class R{constructor(e=0,t=[],i=[],n=[],a=null,s=null,r={enabled:!1},o={enabled:!1,refresh_rate_limit:void 0},l={enabled:!0,capacity:E.uy,refill_rate:E.Fn,endpoint_overrides:{}},u=null,h=null,c=null,d=null){this.ec=e,this.uc=t,this.oc=i,this.ac=n,this.cc=a,this.rc=s,this.lc=r,this.Xr=o,this.nc=l,this.banners=u,this.dust=h,this.vc=c,this.fc=d}qt(){return{s:"6.7.1",l:this.ec,e:this.uc,a:this.oc,p:this.ac,m:this.cc,v:this.rc,c:this.lc,f:this.Xr,grl:this.nc,b:this.banners,d:this.dust,rb:this.vc,mst:this.fc}}static _u(e){let t=e.l;return"6.7.1"!==e.s&&(t=0),new R(t,e.e,e.a,e.p,e.m,e.v,e.c,e.f,e.grl,e.b,e.d,e.rb,e.mst)}}class M{constructor(e){this.C=e,this.C=e,this.Gl=new a.A,this._l=new a.A,this.Vl=new a.A,this.Jl=new a.A,this.Ql=new a.A,this.Wl=null,this.Yl=null}Zl(){if(null==this.Yl){let e=this.C.Rt(n.d.Tt.tc);this.Yl=null!=e?R._u(e):new R}return this.Yl}Ot(){return this.Zl().ec}sc(e){var t,i,a,s;if(null!=e&&null!=e.config){let r=e.config;if(r.time>this.Zl().ec){let e=e=>null==e?this.Zl().nc:e,o=new R(r.time,r.events_blacklist,r.attributes_blacklist,r.purchases_blacklist,r.messaging_session_timeout,r.vapid_public_key,r.content_cards,r.feature_flags,e(r.global_request_rate_limit),r.banners,r.dust,r.request_backoff,r.minimum_session_timeout),l=!1;null!=o.rc&&this.ju()!==o.rc&&(l=!0);let u=!1;null!=o.lc.enabled&&this.Bi()!==o.lc.enabled&&(u=!0);let h=!1;null!=o.Xr.enabled&&this.lo()!==o.Xr.enabled&&(h=!0);let c=!1;null!=(null==(t=o.banners)?void 0:t.enabled)&&this.Jt()!==(null==(i=o.banners)?void 0:i.enabled)&&(c=!0);let d=!1;null!=(null==(a=o.dust)?void 0:a.enabled)&&this.fn()!==(null==(s=o.dust)?void 0:s.enabled)&&(d=!0),this.Yl=o,this.C.It(n.d.Tt.tc,o.qt()),l&&this.Gl.A(),u&&this._l.A(),h&&this.Vl.A(),c&&this.Jl.A(),d&&this.Ql.A()}}}xu(e){let t=this.Gl.Kt(e);return this.Wl&&this.Gl.removeSubscription(this.Wl),this.Wl=t,t}Mi(e){return this._l.Kt(e)}bo(e){return this.Vl.Kt(e)}V(e){return this.Jl.Kt(e)}Tr(e){return this.Ql.Kt(e)}$e(e){return -1!==this.Zl().uc.indexOf(e)}qu(e){return -1!==this.Zl().oc.indexOf(e)}Dr(e){return -1!==this.Zl().ac.indexOf(e)}hc(){return this.Zl().cc}ju(){return this.Zl().rc}Bi(){return this.Zl().lc.enabled||!1}dc(){let e=this.Zl().nc;return!(!e||null==e.enabled)&&e.enabled}Ul(){if(!this.dc())return -1;let e=this.Zl().nc;return null==e.capacity||e.capacity<10?-1:e.capacity}xl(){if(!this.dc())return -1;let e=this.Zl().nc;return null==e.refill_rate||e.refill_rate<=0?-1:e.refill_rate}mc(e){let t=this.Zl().nc.endpoint_overrides;return null==t?null:t[e]}Hl(e){let t=this.mc(e);return null==t||isNaN(t.capacity)||t.capacity<=0?-1:t.capacity}Ol(e){let t=this.mc(e);return null==t||isNaN(t.refill_rate)||t.refill_rate<=0?-1:t.refill_rate}lo(){return this.Zl().Xr.enabled&&null==this.Ro()?(w.A.wt(y.w.Ya,{e:"Missing feature flag refresh_rate_limit."}),!1):this.Zl().Xr.enabled||!1}Ro(){return this.Zl().Xr.refresh_rate_limit}Jt(){var e;return(null==(e=this.Zl().banners)?void 0:e.enabled)||null}re(){var e;return(null==(e=this.Zl().banners)?void 0:e.max_placements)||0}Xt(){var e;let t=null==(e=this.Zl().banners)?void 0:e.dismissals_cache_size;return null!=t&&"number"==typeof t&&t>0?t:E._S}fn(){var e;return(null==(e=this.Zl().dust)?void 0:e.enabled)||!1}vt(){var e;let t=null==(e=this.Zl().vc)?void 0:e.min_sleep_duration_ms;return null!=t?t:E.xm}gt(){var e;let t=null==(e=this.Zl().vc)?void 0:e.scale_factor;return null!=t?t:E.MF}bt(){var e;let t=null==(e=this.Zl().vc)?void 0:e.max_sleep_duration_ms;return null!=t?t:E.T}gc(){return this.Zl().fc}}class z{constructor(e,t,i,n){this.C=e,this.Ss=t,this.h=i,this.tm=n,this.C=e,this.Ss=t,this.h=i;const a=this.h.gc();this.im=a?1e3*a:1e4,(null==n||isNaN(n))&&(n=1800),n<this.im/1e3&&r.A.info("Specified session timeout of "+n+"s is too small, using the minimum session timeout of "+this.im/1e3+"s instead."),this.tm=Math.max(n,this.im/1e3)}nm(e,t){return new v.A(this.Ss.getUserId(),y.w.hm,e,t.Tu,{d:(0,A.UK)(e-t.lm)})}al(){return this.C.$u(n.d.Ou.um)}kt(){let e=this.C.$u(n.d.Ou.um);return null==e?null:e.Tu}am(){let e=new Date().valueOf(),t=this.h.hc();if(null==t)return!1;let i=this.C.Rt(n.d.Tt.dm),a=null==i||e-i>1e3*t;return a&&this.C.It(n.d.Tt.dm,e),a}ul(e,t){return null==t||null==t.fm||!(e-t.lm<this.im)&&t.fm<e}el(){let e=new Date().valueOf(),t=e+1e3*this.tm,i=this.C.$u(n.d.Ou.um);if(this.ul(e,i)){let a="Generating session start event with time "+e;if(null!=i){let e=i.pm;e-i.lm<this.im&&(e=i.lm+this.im),this.C.gm(this.nm(e,i)),a+=" (old session ended "+e+")"}a+=". Will expire "+t.valueOf(),r.A.info(a);let s=new d.A(p.A.de(),t);return this.C.gm(new v.A(this.Ss.getUserId(),y.w.wm,e,s.Tu)),this.C.Iu(n.d.Ou.um,s),null==this.C.Rt(n.d.Tt.dm)&&this.C.It(n.d.Tt.dm,e),s.Tu}if(null!=i)return i.pm=e,i.fm=t,this.C.Iu(n.d.Ou.um,i),i.Tu}Sm(){let e=this.C.$u(n.d.Ou.um);null!=e&&(this.C.jm(n.d.Ou.um),this.C.gm(this.nm(new Date().valueOf(),e)))}}let D={rl:function(e,t=!1,i){let a,s=D.Sc(),r=D.sl(),o=new n.A.Ec(e,s&&!t,r,i);return a=r?new n.A.wc(e):new n.A.Rc,new n.A(o,a)}
1,Sc:function(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)},sl:function(){let e=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(n.d.Tt._c,"true"),localStorage.getItem(n.d.Tt._c)?(localStorage.removeItem(n.d.Tt._c),e=!0):e=!1}catch(t){if(!(t instanceof Error&&("QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&localStorage.length>0))throw t;e=!0}}catch(e){r.A.info("Local Storage not supported!")}return e}};var P=i(10416);function B(){return"u">typeof SharedWorker}class U{constructor(e){this.Wr=null,this.Lr=null,this.isConnected=!1,this.Ir=null,this.Mr=null,this.Be=e.Be,this.Pe=e.Pe,this.He=e.He,this.Je=e.Je}initialize(){if(!B())return r.A.info("SharedWorker not supported, will use direct connection"),!1;try{let e=new Blob(['\n"use strict";\nconst workerSelf = self;\nlet eventSource = null;\nlet currentConfig = null;\nlet retryCount = 0;\nlet retryTimeoutId = null;\nlet connectionInProgress = false;\nconst maxRetries = 5;\nconst connectedPorts = new Map();\nlet lastSleepMs = null;\nlet currentRcs = null;\nlet ttlTimeoutId = null;\nlet leaderPortId = null;\nlet ddrTimeoutId = null;\nconst fn = {\n    startConnection: null,\n    handleMessage: null,\n};\nfunction broadcast(message) {\n    connectedPorts.forEach((portInfo, portId) => {\n        try {\n            portInfo.port.postMessage(message);\n        }\n        catch (_a) {\n            connectedPorts.delete(portId);\n        }\n    });\n}\nfunction randomInclusive(min, max) {\n    return Math.floor(Math.random() * (max - min + 1)) + min;\n}\nfunction electLeader() {\n    if (leaderPortId && connectedPorts.has(leaderPortId)) {\n        return;\n    }\n    const firstPortId = connectedPorts.keys().next().value;\n    leaderPortId = firstPortId || null;\n    if (leaderPortId) {\n        console.log("[Braze Real-Time] Elected leader port:", leaderPortId);\n    }\n}\nfunction promoteToLeader(portId) {\n    if (connectedPorts.has(portId) && leaderPortId !== portId) {\n        leaderPortId = portId;\n        console.log("[Braze Real-Time] Promoted to leader (tab became active):", portId);\n    }\n}\nfunction sendToLeader(message) {\n    electLeader();\n    if (!leaderPortId) {\n        console.warn("[Braze Real-Time] No leader to send message to");\n        return;\n    }\n    const leader = connectedPorts.get(leaderPortId);\n    if (leader) {\n        try {\n            leader.port.postMessage(message);\n        }\n        catch (_a) {\n            connectedPorts.delete(leaderPortId);\n            leaderPortId = null;\n            sendToLeader(message);\n        }\n    }\n}\nfunction closeConnection() {\n    connectionInProgress = false;\n    if (retryTimeoutId !== null) {\n        clearTimeout(retryTimeoutId);\n        retryTimeoutId = null;\n    }\n    if (ttlTimeoutId !== null) {\n        clearTimeout(ttlTimeoutId);\n        ttlTimeoutId = null;\n    }\n    if (ddrTimeoutId !== null) {\n        clearTimeout(ddrTimeoutId);\n        ddrTimeoutId = null;\n    }\n    if (eventSource) {\n        eventSource.close();\n        eventSource = null;\n        broadcast({ type: "disconnected" });\n    }\n}\nfunction retryWithBackoff() {\n    if (!currentConfig) {\n        return;\n    }\n    retryCount++;\n    const { minSleepMs, maxSleepMs, scaleFactor } = currentConfig.backoff;\n    let previousSleepMs = lastSleepMs;\n    if (previousSleepMs == null || previousSleepMs < minSleepMs) {\n        previousSleepMs = minSleepMs;\n    }\n    const backoffMs = Math.min(maxSleepMs, randomInclusive(minSleepMs, previousSleepMs * scaleFactor));\n    lastSleepMs = backoffMs;\n    console.log("[Braze Real-Time] Retrying in " + backoffMs + "ms (attempt " + retryCount + "/" + maxRetries + ")");\n    retryTimeoutId = setTimeout(function () {\n        retryTimeoutId = null;\n        fn.startConnection();\n    }, backoffMs);\n}\nfunction startConnection(oldEventSourceToClose) {\n    if (!currentConfig) {\n        return;\n    }\n    if (eventSource && !oldEventSourceToClose) {\n        console.warn("[Braze Real-Time] Connection already exists");\n        return;\n    }\n    if (connectionInProgress && !oldEventSourceToClose) {\n        console.warn("[Braze Real-Time] Connection attempt already in progress");\n        return;\n    }\n    connectionInProgress = true;\n    const { dustHost, mite, auth } = currentConfig;\n    const dustHostWithScheme = /^https?:\\/\\//i.test(dustHost) ? dustHost : "https://" + dustHost;\n    let queryString = "mite=" + encodeURIComponent(mite) + "&attempts=" + retryCount;
1\n    if (auth) {\n        queryString += "&auth=" + encodeURIComponent(auth);\n    }\n    if (currentRcs) {\n        queryString += "&rcs=" + encodeURIComponent(currentRcs);\n    }\n    const subscribeUrl = dustHostWithScheme + "/sse?" + queryString;\n    try {\n        const newEventSource = new EventSource(subscribeUrl);\n        newEventSource.onopen = function () {\n            if (oldEventSourceToClose) {\n                console.log("[Braze Real-Time] Gapless reconnection: new connection established, closing old connection");\n                oldEventSourceToClose.close();\n            }\n            else {\n                console.log("[Braze Real-Time] Connection established");\n            }\n            eventSource = newEventSource;\n            connectionInProgress = false;\n            retryCount = 0;\n            lastSleepMs = null;\n            broadcast({ type: "connected" });\n        };\n        newEventSource.addEventListener("msg", function (event) {\n            fn.handleMessage(event.data);\n        });\n        newEventSource.onerror = function () {\n            const readyState = newEventSource ? newEventSource.readyState : -1;\n            if (readyState === 0) {\n                console.log("[Braze Real-Time] Failed to connect");\n            }\n            else {\n                console.log("[Braze Real-Time] Connection lost");\n            }\n            if (oldEventSourceToClose && eventSource !== newEventSource) {\n                console.log("[Braze Real-Time] Gapless reconnection failed, keeping old connection");\n                newEventSource.close();\n                connectionInProgress = false;\n                if (retryCount < maxRetries) {\n                    retryWithBackoff();\n                }\n                return;\n            }\n            closeConnection();\n            if (retryCount < maxRetries) {\n                retryWithBackoff();\n            }\n            else {\n                console.error("[Braze Real-Time] Max retries reached");\n                broadcast({ type: "error", error: "Max retry attempts reached" });\n            }\n        };\n    }\n    catch (error) {\n        connectionInProgress = false;\n        console.error("[Braze Real-Time] Failed to create EventSource:", error);\n        broadcast({ type: "error", error: String(error) });\n    }\n}\nfunction handleTtlMessage(tMs, rcs) {\n    if (typeof tMs !== "number") {\n        return;\n    }\n    if (typeof rcs === "string") {\n        currentRcs = rcs;\n    }\n    console.log("[Braze Real-Time] TTL set to " + tMs + "ms, will perform gapless reconnection when expired");\n    if (ttlTimeoutId !== null) {\n        clearTimeout(ttlTimeoutId);\n    }\n    ttlTimeoutId = setTimeout(function () {\n        ttlTimeoutId = null;\n        console.log("[Braze Real-Time] TTL expired, performing gapless reconnection");\n        startConnection(eventSource || undefined);\n    }, tMs);\n}\nfunction handleDdrMessage(rMs, reason) {\n    if (typeof rMs !== "number") {\n        return;\n    }\n    const jitter = Math.random() * rMs * 0.3;\n    const waitMs = Math.round(rMs + jitter);\n    const reasonStr = reason ? " (" + reason + ")" : "";\n    console.log("[Braze Real-Time] Admin requested disconnect" + reasonStr + ", reconnecting in " + waitMs + "ms");\n    if (ddrTimeoutId !== null) {\n        clearTimeout(ddrTimeoutId);\n    }\n    closeConnection();\n    ddrTimeoutId = setTimeout(function () {\n        ddrTimeoutId = null;\n        fn.startConnection();\n    }, waitMs);\n}\nfunction handleMessage(data) {\n    try {\n        const message = JSON.parse(data);\n        if (!message.type) {\n            console.warn("[Braze Real-Time] Message without type:", message);\n            return;\n        }\n        if (message.type === "ttl" && message.body) {\n            handleTtlMessage(message.body.t_ms, message.body.rcs);\n            return;\n        }\n        if (message.type === "ddr" && message.body) {\n            handleDdrMessage(message.body.r_ms, message.body.e);\n            return;\n        }\n        console.log("[Braze Real-Time] Routing \'" + message.type + "\' message to leader");\n        sendToLeader({ type: "message", data: message });\n    }\n    catch (error) {\n        console.warn("[Braze Real-Time] Failed to parse message:", error);\n    }\n}\nfn.startConnection = startConnection;\nfn.handleMessage = handleMessage;\nfunction handlePortMessage(port, portId, message) {\n    switch (message.type) {\n        case "connect":\n            if (currentConfig &&\n                (currentConfig.mite !== message.config.mite || currentConfig.dustHost !== message.config.dustHost)) {\n                console.log("[Braze Real-Time] Config changed, reconnecting");\n                closeConnection();\n                retryCount = 0;\n                lastSleepMs = null;\n                currentRcs = null;\n            }\n            currentConfig = message.config;\n            electLeader();\n            if (!eventSource && !connectionInProgress) {\n                startConnection();\n            }\n            else if (eventSource) {\n                port.postMessage({ type: "connected" });\n            }\n            break;\n        case "disconnect":\n            connectedPorts.delete(portId);\n            if (portId === leaderPortId) {\n                leaderPortId = null;\n                electLeader();\n            }\n            if (connectedPorts.size === 0) {\n                console.log("[Braze Real-Time] No more ports, closing connection");\n                closeConnection();\n                currentConfig = null;\n                currentRcs = null;\n                leaderPortId = null;\n            }\n            break;\n        case "tab_active":\n            promoteToLeader(portId);\n            break;\n        case "ping":\n            port.postMessage({ type: "pong" });\n            break;\n        default:\n            console.warn("[Braze Real-Time] Unknown message type:", message.type);\n    }\n}\nworkerSelf.onconnect = function (event) {\n    const port = event.ports[0];\n    const portId = "port-" + Date.now() + "-" + Math.random().toString(36).substr(2, 9);\n    connectedPorts.set(portId, { port: port });\n    port.onmessage = function (messageEvent) {\n        try {\n            handlePortMessage(port, portId, messageEvent.data);\n        }\n        catch (error) {\n            console.error("[Braze Real-Time] Error handling message:", error);\n        }\n    };\n    port.onmessageerror = function () {\n        console.warn("[Braze Real-Time] Message error from port:", portId);\n        connectedPorts.delete(portId);\n    };\n    port.start();\n};\n'],{type:"application/javascript"});return this.Lr=URL.createObjectURL(e),this.Wr=new SharedWorker(this.Lr,{name:"braze-dust-worker"}),this.Wr.port.onmessage=e=>{this.Ur(e.data)},this.Wr.port.onmessageerror=()=>{r.A.warn("Message error from real-time messaging worker")},this.Wr.onerror=e=>{var t;r.A.error(`Real-time messaging worker error: ${e.message||"unknown error"}`),null==(t=this.Je)||t.call(this,"SharedWorker error")},this.Wr.port.start(),this.Vr(),this.Er(),r.A.info("Real-time messaging worker initialized"),!0}catch(e){return r.A.error(`Failed to create real-time messaging worker: ${e instanceof Error?e.message:String(e)}`),this._r(),!1}}Ur(e){var t,i,n;switch(e.type){case"connected":r.A.info("Real-time messaging connection established via SharedWorker"),this.isConnected=!0,null==(t=this.Pe)||t.call(this);break;case"disconnected":r.A.info("Real-time messaging connection closed via SharedWorker"),this.isConnected=!1,null==(i=this.He)||i.call(this);break;case"message":this.Be(e.data);break;case"error":r.A.error(`Real-time messaging error: ${e.error}`),null==(n=this.Je)||n.call(this,e.error)}}Vr(){this.Ir=window.setInterval(()=>{this.Wr&&this.Gr({type:"ping"})},3e4)}Jr(){null!==this.Ir&&(window.clearInterval(this.Ir),this.Ir=null)}Er(){this.Mr=()=>{"visible"===document.visibilityState&&this.Wr&&this.Gr({type:"tab_active"})},document.addEventListener("visibilitychange",this.Mr)}Kr(){this.Mr&&(document.removeEventListener("visibilitychange",this.Mr),this.Mr=null)}Gr(e){this.Wr&&this.Wr.port.postMessage(e)}connect(e){this.Wr?(this.Gr({type:"connect",zn:e}),r.A.info("Connecting to real-time messaging")):r.A.error("Cannot connect: real-time messaging worker not initialized")}disconnect(){this.Wr&&(this.Gr({type:"disconnect"}),this.isConnected=!1,r.A.info("Disconnecting from real-time messaging"))}cn(){return this.isConnected}isInitialized(){return null!==this.Wr}_r(){this.Jr(),this.Kr(),this.Wr&&(this.Wr.port.close(),this.Wr=null),this.Lr&&(URL.revokeObjectURL(this.Lr),this.Lr=null),this.isConnected=!1}destroy(){this.disconnect(),this._r(),r.A.info("Real-time messaging worker destroyed")}}class $ extends l.A{constructor(e,t,i,n,a=!0){super(),this.B=e,this.C=t,this.h=i,this.B=e,this.C=t,this.h=i,this.mite=null,this.Wi=null,this.Gi=null,this.Hi=null,this.Oi=n||null,this.Ki=null,this.Qi=null,this.T=null,this.Vi=0,this.Xi=5,this.Yi=null,this.Zi=null,this._i=!0,this.we=null,this.Se=null,this.ke=null,this.ye=null,this.Re=!1,this.Me=new Map,this.xe=null,this.De=null,this.We=null,this.Fe=this.Ue(a),this.Ne=!1,this.Te=0,this.ze()}Ue(e){return e?B()?"sharedworker":(r.A.info("SharedWorker not supported, using direct EventSource (multi-tab will gracefully degrade)"),"direct"):(r.A.info("Shared connection disabled, using direct EventSource"),"direct")}Ae(){this.We=new U({Be:e=>{this.Ge(e)},Pe:()=>{this.qe()},He:()=>{},Je:e=>{r.A.error(`Real-time messaging SharedWorker error: ${e}`)}}),this.We.initialize()||(r.A.info("SharedWorker initialization failed, falling back to direct EventSource"),this.Fe="direct",this.We=null)}qe(){this.Vi=0,this.we=null,this._i=!0,this.Ne=!1,this.Te=0}Ge(e){if(!e.type)return void r.A.warn(`Received real-time message without type: ${JSON.stringify(e)}`);let t="sharedworker"===this.Fe?"SharedWorker":"Direct";r.A.info(`Received real-time message of type '${e.type}' via ${t}`);let i=this.Me.get(e.type);if(i&&i.Le()>0)try{i.A(e)}catch(t){r.A.error(`Error invoking subscription for message type '${e.type}': ${t}`)}else r.A.info(`No subscribers for real-time message type '${e.type}'`)}Oe(){return"sharedworker"===this.Fe}Ie(){return this.Fe}ze(){if(this.C){let e=this.C.Rt(n.d.Tt.Ke),t=this.C.Rt(n.d.Tt.Qe),i=this.C.Rt(n.d.Tt.Ve),a=this.C.Rt(n.d.Tt.Xe);e&&t?(this.mite=e,this.Wi=t,this.Gi=i,this.Hi=a,r.A.info("Restored real-time messaging configuration from storage")):(e||t)&&(r.A.warn("Incomplete real-time messaging configuration in storage, clearing"),this.Ye())}}Hr(){this.xe||this.De||(this.xe=this.Ze("ddr",e=>
1{if(!e.body||"number"!=typeof e.body._e)return;let t=Math.random()*e.body._e*.3,i=Math.round(e.body._e+t),n=e.body.e?` (${e.body.e})`:"";r.A.info(`Admin requested disconnect${n}, reconnecting in ${i}ms`),this.sn(),setTimeout(()=>this.en(),i)}),this.De=this.Ze("ttl",e=>{if(!e.body||"number"!=typeof e.body.on)return;let t=e.body.on;r.A.info(`Time to live set to ${t}ms, will reconnect when expired`),"sharedworker"!==this.Fe&&("string"==typeof e.body.hn&&(this.Ki=e.body.hn),null!==this.Zi&&window.clearTimeout(this.Zi),this.Zi=window.setTimeout(()=>{this.Zi=null,r.A.info("Time to live expired, performing gapless reconnection"),this.an()},t))}))}ln(){this.Se||this.ke||(this.ye=()=>{this.Re=!0,this._i=!1},window.addEventListener("beforeunload",this.ye),this.Se=()=>{var e;this.Re=!0,(this.Qi||(null==(e=this.We)?void 0:e.cn()))&&(r.A.info("Page unloading, closing real-time connection gracefully"),this._i=!1,this.sn())},window.addEventListener("pagehide",this.Se),this.ke=e=>{var t;let i=this.Qi||(null==(t=this.We)?void 0:t.cn());e.persisted&&this.un()&&!i&&(r.A.info("Page restored from bfcache, reconnecting"),this.Re=!1,this.qe(),this.en())},window.addEventListener("pageshow",this.ke))}Lt(){return this.T}$t(e){this.T=e}Ze(e,t){if("function"!=typeof t)return null;let i=this.Me.get(e);return i||(i=new a.A,this.Me.set(e,i),Y.S(i)),i.Kt(t)}dn(e,t){let i=this.Me.get(e);i&&i.removeSubscription(t)}un(){return!!(this.mite&&this.Wi)}gn(){return!!this.Hi&&Math.floor(new Date().valueOf()/1e3)>=this.Hi}Ye(){this.mite=null,this.Wi=null,this.Gi=null,this.Hi=null,this.Ki=null,this.C&&(this.C.Qt(n.d.Tt.Ke),this.C.Qt(n.d.Tt.Qe),this.C.Qt(n.d.Tt.Ve),this.C.Qt(n.d.Tt.Xe))}mn(e,t){let i=()=>{"function"==typeof t&&t()},a=this.B,s=this.C;if(!a||!s)return r.A.error("NetworkManager or StorageManager not available"),void i();if(!this.h||!this.h.fn())return r.A.info("Real-time messaging is not enabled, skipping refresh"),void i();this.un()?r.A.info("Refreshing real-time messaging configuration"):r.A.info("Fetching initial real-time messaging configuration");let o=a.Z({},!0),l=a.tt(o,S.A.it.pn,!1),u=new Date().valueOf();S.A.nt(s,S.A.it.pn,u),T.A.ot({url:`${a.ht()}/dust/config`,headers:l,data:o,lt:t=>{a.ut(o,t,l)?(a.ct(),t.mite&&t.host?(this.mite=t.mite,this.Wi=t.host,this.Gi=t.auth||null,this.Hi=t.expiration||null,r.A.info("Received real-time messaging configuration from server"),s.It(n.d.Tt.Ke,t.mite),s.It(n.d.Tt.Qe,t.host),t.auth?s.It(n.d.Tt.Ve,t.auth):s.Qt(n.d.Tt.Ve),t.expiration?s.It(n.d.Tt.Xe,t.expiration):s.Qt(n.d.Tt.Xe),this.en(),"function"==typeof e&&e()):(r.A.info("Real-time messaging configuration not available - this SDK version may not be supported"),this.Ye(),i())):(r.A.error("Failed to validate server response for real-time messaging configuration"),i())},error:e=>{a.dt(e,"retrieving DUST config"),i()}})}en(){if(!this.h||!this.h.fn())return;if(!this.un())return void r.A.error("Cannot start real-time subscription without configuration");if(this.gn())return r.A.info("Real-time messaging auth token has expired, refreshing configuration"),void this.mn(()=>{this.en()},()=>{r.A.error("Failed to refresh expired real-time messaging configuration")});let e=this.mite,t=this.Oi||this.Wi;if(e&&t)switch(this.Fe){case"sharedworker":this.vn(e,t);break;case"direct":this.Qi&&(r.A.info("Real-time connection already exists, closing before starting new subscription"),this.sn()),this.wn()}}bn(){var e,t,i;let n,a,s=this.mite,r=this.Oi||this.Wi;return s&&r?(e=this.Vi,t=this.Gi||void 0,i=this.Ki||void 0,n=/^https?:\/\//i.test(r)?r:`https://${r}`,a=`mite=${encodeURIComponent(s)}&attempts=${e}`,t&&(a+=`&auth=${encodeURIComponent(t)}`),i&&(a+=`&rcs=${encodeURIComponent(i)}`),`${n}/sse?${a}`):null}vn(e,t){var i,n,a;if(this.We||this.Ae(),!this.We)return r.A.info("SharedWorker initialization failed, falling back to direct EventSource"),this.Fe="direct",void this.Sn();this.Oi&&r.A.info(`Using custom real-time messaging host: ${this.Oi}`),r.A.info("Starting real-time subscription via SharedWorker");let s=(null==(i=this.h)?void 0:i.vt())||E.xm,o=(null==(n=this.h)?void 0:n.bt())||E.T,l=(null==(a=this.h)?void 0:a.gt())||E.MF;this.We.connect({mite:e,Wi:t,auth:this.Gi||void 0,kn:{yn:s,$n:o,Rn:l}})}Sn(){this.Qi&&(r.A.info("Real-time connection already exists, closing before starting new subscription"),this.Cn()),this.wn()}wn(e){let t=this.bn();
1if(t){this.Oi&&r.A.info(`Using custom real-time messaging host: ${this.Oi}`);try{let i=new EventSource(t);i.onopen=()=>{e?(r.A.info("Gapless reconnection: new connection established, closing old connection"),e.close()):r.A.info("Real-time messaging connection established"),this.Qi=i,this.Vi=0,this.we=null,this._i=!0,this.Ne=!0},i.addEventListener("msg",e=>{this.Mn(e.data)}),i.onerror=()=>{let t=i.readyState;return this.Re||(0===t?r.A.info("Real-time messaging failed to connect"):r.A.info("Real-time messaging connection lost")),e&&this.Qi!==i?(r.A.info("Gapless reconnection failed, keeping old connection"),i.close(),void(this._i&&this.Vi<this.Xi&&this.xn())):(this.Cn(),this.Ne&&(this.Te++,this.Te>1)?(r.A.info("Real-time messaging connection lost twice after successful connect (likely multi-tab conflict), yielding to other tab"),void(this._i=!1)):void(this._i&&this.Vi<this.Xi?this.xn():(this.Vi>=this.Xi&&r.A.error(`Max retry attempts (${this.Xi}) reached for real-time messaging, giving up for current session`),this._i=!1)))}}catch(e){r.A.error(`Failed to create real-time messaging connection: ${e instanceof Error?e.message:String(e)}`)}}}xn(){var e,t,i;this.Vi++;let n=(null==(e=this.h)?void 0:e.vt())||E.xm,a=(null==(t=this.h)?void 0:t.gt())||E.MF,s=(null==(i=this.h)?void 0:i.bt())||E.T,o=this.we;(null==o||o<n)&&(o=n);let l=Math.min(s,(0,I.C)(n,o*a));this.we=l,r.A.info(`Retrying real-time messaging connection in ${l}ms (attempt ${this.Vi}/${this.Xi})`),this.Yi=window.setTimeout(()=>{this.Yi=null,this.en()},l)}an(){if(this.un()){if(this.gn())return r.A.info("Auth token expired during gapless reconnection, falling back to regular reconnection"),this.sn(),void this.en();null!==this.Zi&&(window.clearTimeout(this.Zi),this.Zi=null),this.wn(this.Qi||void 0)}else r.A.error("Cannot perform gapless reconnection without configuration")}sn(){var e;switch(this.Fe){case"sharedworker":null==(e=this.We)||e.disconnect();break;case"direct":this.Cn()}}Cn(){null!==this.Yi&&(window.clearTimeout(this.Yi),this.Yi=null),null!==this.Zi&&(window.clearTimeout(this.Zi),this.Zi=null),this.Qi&&(this.Qi.close(),this.Qi=null,r.A.info("Real-time messaging connection closed"))}Mn(e){try{let t=JSON.parse(e);this.Ge(t)}catch(e){r.A.warn(`Failed to parse real-time message: ${e instanceof Error?e.message:String(e)}`)}}changeUser(e=!1){this.sn(),e||(this.un()&&r.A.info("Clearing cached real-time messaging configuration for user change"),this.Ye()),this.qe()}clearData(e=!1){this._i=!1,this.sn(),e&&(this.un()&&r.A.info("Clearing cached real-time messaging configuration (wipeData)"),this.Ye()),this.qe()}destroy(){this._i=!1,this.sn(),this.Ye(),this.We&&(this.We.destroy(),this.We=null),this.xe&&(this.dn("ddr",this.xe),this.xe=null),this.De&&(this.dn("ttl",this.De),this.De=null),this.ye&&(window.removeEventListener("beforeunload",this.ye),this.ye=null),this.Se&&(window.removeEventListener("pagehide",this.Se),this.Se=null),this.ke&&(window.removeEventListener("pageshow",this.ke),this.ke=null),this.T&&(Y.removeSubscription(this.T),this.T=null)}}let L={i:!1,provider:null,o:()=>{if(L.t(),!L.provider){let e=Y.er("dustHost");L.provider=new $(Y.m(),Y.p(),Y.l(),e),Y.v(L.provider),L.provider.Hr()}return L.provider},t:()=>{L.i||(Y.g(L),L.i=!0)},destroy:()=>{L.provider&&L.provider.destroy(),L.provider=null,L.i=!1}};var G=i(45999),F=i(62152),j=i(75632);class q{constructor(e,t){this.h=e,this.C=t,this.h=e,this.C=t}getUserId(){let e=this.C.$u(n.d.Ou.Cu);if(null==e)return null;let t=e.Tu,i=(0,G.N)(t);if(i>j.A.br){for(;i>j.A.br;)t=t.slice(0,t.length-1),i=(0,G.N)(t);e.Tu=t,this.C.Iu(n.d.Ou.Cu,e)}return t}Ju(e){let t=null==this.getUserId();this.C.Iu(n.d.Ou.Cu,new d.A(e)),t&&this.C.Lu(e)}setCustomUserAttribute(e,t){if(this.h.qu(e))return r.A.info('Custom Attribute "'+e+'" is blocklisted, ignoring.'),!1;let i={};return i[e]=t,this.zu(j.A.Bu,i,!0)}zu(e,t,i=!1,n=!1){let a=this.C.Eu(this.getUserId(),e,t),s="",o=e,l=t;return i&&(s=" custom","object"==typeof t&&(o=Object.keys(t)[0],"object"==typeof(l=t[o])&&(l=JSON.stringify(l,null,2)))),!n&&a&&r.A.info(`Logged${s} attribute ${o} with value ${l}`),a}gu(e,t,i,a,o){this.zu("push_token",e,!1,!0),this.zu("custom_push_public_key",i,!1,!0),this.zu("custom_push_user_auth",a,!1,!0),this.zu("custom_push_vapid_public_key",o,!1,
1!0);let l=s.A.Ps.$s,u=new s.A(l,r.A),h=new F.A(e,t,i,a,o);this.C.It(n.d.Tt.Uu,h.qt()),u.setItem(l.Os.Fu,l.be,!0)}wu(e){if(this.zu("push_token",null,!1,!0),this.zu("custom_push_public_key",null,!1,!0),this.zu("custom_push_user_auth",null,!1,!0),this.zu("custom_push_vapid_public_key",null,!1,!0),e){let e=s.A.Ps.$s,t=new s.A(e,r.A);this.C.It(n.d.Tt.Uu,!1),t.setItem(e.Os.Fu,e.be,!1)}}}var H=i(66167),V=i(82798);let K={_h:"allowCrawlerActivity",Nh:"baseUrl",se:"cookieExpiryInDays",Oh:"noCookies",Th:"devicePropertyAllowlist",ka:"disablePushTokenMaintenance",Rh:"enableLogging",Ph:"enableSdkAuthentication",_a:"manageServiceWorkerExternally",Dh:"minimumIntervalBetweenTriggerActionsInSeconds",Lh:"sessionTimeoutInSeconds",yh:"appVersion",Mh:"appVersionNumber",xa:"serviceWorkerLocation",Ma:"safariWebsitePushId",qa:"localization",sr:"contentSecurityNonce",nr:"allowUserSuppliedJavascript",ja:"inAppMessageZIndex",ba:"openInAppMessagesInNewTab",oh:"requireExplicitInAppMessageDismissal",Uh:"doNotLoadFontAwesome",Wh:"deviceId",ya:"serviceWorkerScope",Qe:"dustHost",Bh:"sdkFlavor",tn:"openCardsInNewTab"},W={_h:"allowCrawlerActivity",Nh:"baseUrl",se:"cookieExpiryInDays",Oh:"noCookies",Th:"devicePropertyAllowlist",ka:"disablePushTokenMaintenance",Rh:"enableLogging",Ph:"enableSdkAuthentication",_a:"manageServiceWorkerExternally",Dh:"minimumIntervalBetweenTriggerActionsInSeconds",Lh:"sessionTimeoutInSeconds",yh:"appVersion",Mh:"appVersionNumber",xa:"serviceWorkerLocation",Ma:"safariWebsitePushId",qa:"localization",sr:"contentSecurityNonce",nr:"allowUserSuppliedJavascript",ja:"inAppMessageZIndex",ba:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",oh:"requireExplicitInAppMessageDismissal",Uh:"doNotLoadFontAwesome",Wh:"deviceId",ya:"serviceWorkerScope",Qe:"dustHost",Bh:"sdkFlavor"};class X{constructor(){this.tu="",this.Vh="",this.Kh=void 0,this.Gh=null,this.eu=null,this.B=null,this.Ru=null,this.h=null,this.j=null,this.C=null,this.Ss=null,this.Yh="",this.isInitialized=!1,this.$h=!1,this.qh=new a.A,this.Hh=new a.A,this.options={},this.Jh=[],this.Xh=[],this.In=[],this.Vh="6.7.1"}Zh(e){this.qh.Kt(e)}uh(e){this.Hh.Kt(e)}initialize(e,t){var s,l,h;if(this.ao())return r.A.info("Braze has already been initialized with an API key."),!0;this.options=t||{};let p=this.er(W.Rh),g=(0,H.y)(V.uD.Qh());if(g&&"true"===g.brazeLogging&&(p=!0),r.A.init(p),r.A.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),null==e||""===e||"string"!=typeof e)return r.A.error("Braze requires a valid API key to be initialized."),!1;this.tu=e;let f=this.er(W.Nh);if(null==f||""===f||"string"!=typeof f)return r.A.error("Braze requires a valid baseUrl to be initialized."),!1;!1===/^https?:/.test(f)&&(f=`https://${f}`);let v=f;if((f=document.createElement("a")).href=v,"/"===f.pathname&&(f=`${f}api/v3`),this.Yh=f.toString(),u.A.il&&!this.er(W._h))return r.A.info("Ignoring activity from crawler bot "+navigator.userAgent),this.$h=!0,!1;let A=this.er(W.Oh)||!1,w=this.er(W.se),y=D.sl();if(this.C=D.rl(e,A,w),A&&this.C.hl(e),new n.A.le(null,!0).wr(n.d.ce))return r.A.info("Ignoring all activity due to previous opt out"),this.$h=!0,!1;for(let e of(0,m.HP)(this.options))-1===(0,m.zu)(K).indexOf(e)&&r.A.warn(`Ignoring unknown initialization option '${e}'.`);if(null!=this.er(W.Bh)){let e=this.er(W.Bh);-1!==["mparticle","wordpress","tealium"].indexOf(e)?this.Kh=e:r.A.error("Invalid sdk flavor passed: "+e)}let S=this.er(K.Th);if(null!=S)if((0,m.cy)(S)){let e=[];for(let t=0;t<S.length;t++)(0,m.BY)(c,S[t],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&e.push(S[t]);S=e}else r.A.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),S=null;let E=this.er(W.Wh);if(E){let e=new d.A(E);this.C.Iu(n.d.Ou.Wh,e)}this.eu=new b(this.C,S),this.h=new M(this.C),this.Ss=new q(this.h,this.C),this.j=new z(this.C,this.Ss,this.h,this.er(W.Lh));let x=new a.A;this.Gh=new o(this.C,this.er(W.Ph),x),this.S(x),this.B=new C(this.eu,this.C,this.Gh,this.Ss,this.j,this.h,this.tu,this.Yh,this.Vh,this.Kh||"",this.er(W.yh),this.er(W.Mh)),this.Ru=new N(this.tu,this.Yh,this.j,this.eu,this.Ss,this.h,this.C,e=>{if(this.ao())for(let t of this.vr())t.I(e)},this.Gh,this.B),this.Ru.initialize(),A||this.C.ll(),r.A.info(`Initialized for the Braze backend at "${this.er(W.Nh)}" with API key "${this.tu}".`),P.B.t(),function(){let e=Y.l(),t=Y.nn();if(!e||!t)return;let i=L.o(),n=()=>
1{if(!i.Lt()){i.ln();let n=t.rn(()=>{e.fn()&&i.mn()});return n&&i.$t(n),i.un()&&i.en(),n}return i.Lt()};e.Tr(()=>{Y.ao()&&(e.fn()?(i.mn(),n()):(i.sn(),i.un()&&i.Ye()))}),e.fn()&&n()}(),this.h.bo(()=>{var e;this.isInitialized&&(null==(e=this.h)?void 0:e.lo())&&i.e(3544).then(i.bind(i,81163)).then(e=>{this.isInitialized&&(0,e.default)()})}),this.Ru.rn(()=>{var e;this.isInitialized&&(null==(e=this.h)?void 0:e.lo())&&i.e(3544).then(i.bind(i,81163)).then(e=>{this.isInitialized&&(0,e.default)(void 0,void 0,!0)})}),this.qh.A(this.options),this.isInitialized=!0,window.dispatchEvent(new CustomEvent("braze.initialized"));let T=null==(s=this.j)?void 0:s.al();return y||null==T||(null==(l=this.j)?void 0:l.ul(new Date().valueOf(),T))||null==(h=this.Ru)||h.Sr(),!0}destroy(e){if(r.A.destroy(),this.ao()){for(let e of(this.Hh.A(),this.Hh.removeAllSubscriptions(),this.Jh))e.destroy();for(let e of(this.Jh=[],this.Xh))e.clearData(!1);this.B&&this.B.fo(),this.Xh=[],this.removeAllSubscriptions(),this.In=[],null!=this.Ru&&this.Ru.destroy(),this.Ru=null,this.Gh=null,this.eu=null,this.B=null,this.h=null,this.j=null,this.Ss=null,this.options={},this.Kh=void 0,this.isInitialized=!1,this.$h=!1,e&&(this.C=null)}}rr(){return!this.cl()&&(!!this.ao()||(console.warn(E.em.ee),!1))}za(){return this.tu}Br(){return this.Gh}ht(){return this.Yh}ue(){return this.eu}m(){return this.B}er(e){return this.options[e]}vr(){return this.Xh}nn(){return this.Ru}l(){return this.h}u(){return this.j}p(){return this.C}zr(){if(this.Ss&&this.Ru)return new j.A(this.Ss,this.Ru)}ir(){return this.Ss}ar(){return!0===this.er(W.nr)}g(e){let t=!1;for(let i of this.Jh)i===e&&(t=!0);t||this.Jh.push(e)}v(e){let t=!1;for(let i of this.Xh)i.constructor===e.constructor&&(t=!0);e instanceof l.A&&!t&&this.Xh.push(e)}S(e){e instanceof a.A&&this.In.push(e)}removeAllSubscriptions(){if(this.rr())for(let e of this.In)e.removeAllSubscriptions()}removeSubscription(e){if(this.rr())for(let t of this.In)t.removeSubscription(e)}fe(e){this.$h=e}ao(){return this.isInitialized}cl(){return this.$h}dr(e,t){return this.rr()?L.o().Ze(e,t):null}zi(){return this.Vh}}let Y=new X},75632:(e,t,i)=>{i.d(t,{A:()=>u});var n=i(44259),a=i(88166),s=i(39102),r=i(42729),o=i(4794),l=i(59606);class u{constructor(e,t){this.Ss=e,this.Ru=t,this.Ss=e,this.Ru=t}getUserId(e){let t=this.Ss.getUserId();if("function"!=typeof e)return t;a.A.warn("The callback for getUserId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getUser().getUserId()`)"),e(t)}addAlias(e,t){return!(0,r.rK)(e,"add alias","the alias",!1)||e.length<=0?(a.A.error("addAlias requires a non-empty alias"),!1):!(0,r.rK)(t,"add alias","the label",!1)||t.length<=0?(a.A.error("addAlias requires a non-empty label"),!1):this.Ru.Gu(e,t).lt}setFirstName(e){return!!(0,r.rK)(e,"set first name","the firstName",!0)&&this.Ss.zu("first_name",e)}setLastName(e){return!!(0,r.rK)(e,"set last name","the lastName",!0)&&this.Ss.zu("last_name",e)}setEmail(e){return null===e||(0,r.B9)(e)?this.Ss.zu("email",e):(a.A.error(`Cannot set email address - "${e}" did not pass RFC-5322 validation.`),!1)}setGender(e){return"string"==typeof e&&(e=e.toLowerCase()),!(null!==e&&!(0,n.BY)(u.Genders,e,`Gender "${e}" is not a valid gender.`,"User.Genders"))&&this.Ss.zu("gender",e)}setDateOfBirth(e,t,i){return null===e&&null===t&&null===i?this.Ss.zu("dob",null):(e=null!=e?parseInt(e.toString()):null,t=null!=t?parseInt(t.toString()):null,i=null!=i?parseInt(i.toString()):null,null==e||null==t||null==i||isNaN(e)||isNaN(t)||isNaN(i)||t>12||t<1||i>31||i<1?(a.A.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):this.Ss.zu("dob",`${e}-${t}-${i}`))}setCountry(e){return!!(0,r.rK)(e,"set country","the country",!0)&&this.Ss.zu("country",e)}setHomeCity(e){return!!(0,r.rK)(e,"set home city","the homeCity",!0)&&this.Ss.zu("home_city",e)}setLanguage(e){return!!(0,r.rK)(e,"set language","the language",!0)&&this.Ss.zu("language",e)}setEmailNotificationSubscriptionType(e){return!!(0,n.BY)(u.NotificationSubscriptionTypes,e,`Email notification setting "${e}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Ss.zu("email_subscribe",e)}setPushNotificationSubscriptionType(e){return!!(0,n.BY)(u.NotificationSubscriptionTypes,e,`Push notification setting "${e}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Ss.zu("push_subscribe",e)}setPhoneNumber(e){return!!(0,r.rK)(e,"set phone number","the phoneNumber",!0)&&(null===e||e.match(u.Hu)?this.Ss.zu("phone",e):(a.A.error(`Cannot set phone number - "${e}
1" did not pass validation.`),!1))}setLastKnownLocation(e,t,i,n,s){return null==e||null==t?(a.A.error("Cannot set last-known location - latitude and longitude are required."),!1):(e=parseFloat(e.toString()),t=parseFloat(t.toString()),null!=i&&(i=parseFloat(i.toString())),null!=n&&(n=parseFloat(n.toString())),null!=s&&(s=parseFloat(s.toString())),isNaN(e)||isNaN(t)||null!=i&&isNaN(i)||null!=n&&isNaN(n)||null!=s&&isNaN(s)?(a.A.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):e>90||e<-90||t>180||t<-180?(a.A.error("Cannot set last-known location - latitude and longitude are bounded by \xb190 and \xb1180 respectively."),!1):null!=i&&i<0||null!=s&&s<0?(a.A.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.Ru.setLastKnownLocation(this.Ss.getUserId(),e,t,n,i,s).lt)}setCustomUserAttribute(e,t,i){if(!(0,r.ZJ)(e))return!1;let a=t=>{let[i]=(0,r.fB)(t,o.em.Ku,"attribute value",`set custom user attribute "${e}"`,"custom user attribute");return i};if((0,n.cy)(t)){let[i,n]=(0,r.Z2)(e,t);if(!i&&!n&&0!==t.length)return!1;if(i||0===t.length)return this.Ru.Mu(s.w.Yu,e,t).lt;for(let e of t)if(!a(e))return!1}else if((0,n.Gv)(t)){if(!a(t))return!1;if(i)return this.Ru.Mu(s.w.Vu,e,t).lt}else if(!(void 0!==t&&(0,r.uZ)(t))||((0,n.$P)(t)&&(t=(0,l.EQ)(t)),"string"==typeof t&&!(0,r.Dz)(t,`set custom user attribute "${e}"`,"the element in the given array")))return!1;return this.Ss.setCustomUserAttribute(e,t)}addToCustomAttributeArray(e,t){return!!(0,r.Dz)(e,"add to custom user attribute array","the given key")&&!(null!=t&&!(0,r.Dz)(t,"add to custom user attribute array","the given value"))&&this.Ru.Mu(s.w.Qu,e,t).lt}removeFromCustomAttributeArray(e,t){return!!(0,r.Dz)(e,"remove from custom user attribute array","the given key")&&!(null!=t&&!(0,r.Dz)(t,"remove from custom user attribute array","the given value"))&&this.Ru.Mu(s.w.Xu,e,t).lt}incrementCustomUserAttribute(e,t){if(!(0,r.Dz)(e,"increment custom user attribute","the given key"))return!1;null==t&&(t=1);let i=parseInt(t.toString());return isNaN(i)||i!==parseFloat(t.toString())?(a.A.error(`Cannot increment custom user attribute because the given incrementValue "${t}" is not an integer.`),!1):this.Ru.Mu(s.w.Zu,e,i).lt}setCustomLocationAttribute(e,t,i){return!!(0,r.Dz)(e,"set custom location attribute","the given key")&&((null!==t||null!==i)&&(t=null!=t?parseFloat(t.toString()):null,i=null!=i?parseFloat(i.toString()):null,null==t&&null!=i||null!=t&&null==i||null!=t&&(isNaN(t)||t>90||t<-90)||null!=i&&(isNaN(i)||i>180||i<-180))?(a.A.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.Ru.Na(e,t,i).lt)}addToSubscriptionGroup(e){return!(0,r.rK)(e,"add user to subscription group","subscription group ID",!1)||e.length<=0?(a.A.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ru.va(e,u.Ia.SUBSCRIBED).lt}removeFromSubscriptionGroup(e){return!(0,r.rK)(e,"remove user from subscription group","subscription group ID",!1)||e.length<=0?(a.A.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ru.va(e,u.Ia.UNSUBSCRIBED).lt}setLineId(e){return(0,r.rK)(e,"set LINE user ID","the ID",!0)&&0!==(null==e?void 0:e.length)?e&&e.length>u.Ca?(a.A.error(`Rejected LINE user ID ${e} because it is longer than ${u.Ca} characters.`),!1):this.Ss.zu("native_line_id",e):(a.A.error("setLineId requires a non-empty ID"),!1)}gu(e,t,i,n,a){this.Ss.gu(e,t,i,n,a),this.Ru.Ea()}wu(e){this.Ss.wu(e)}}u.Genders={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},u.NotificationSubscriptionTypes={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},u.Hu=/^[0-9 .\\(\\)\\+\\-]+$/,u.Ia={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},u.Sa="user_id",u.Bu="custom",u.br=997,u.Ca=33},79472:(e,t,i)=>{i.d(t,{A:()=>n});let n={Va:"invalid_api_key",Za:"blacklisted",dl:"no_device_identifier",Qa:"invalid_json_response",Wa:"empty_response",__:"sdk_auth_error"}},80336:(e,t,i)=>{i.d(t,{A:()=>a});let n={cu:()=>
1"serviceWorker"in navigator&&"u">typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,lu:()=>"safari"in window&&"pushNotification"in window.safari&&"function"==typeof window.safari.pushNotification.permission&&"function"==typeof window.safari.pushNotification.requestPermission,isPushSupported:()=>n.cu()||n.lu(),isPushBlocked:()=>{let e=n.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,t=n.isPushSupported()&&(!("Notification"in window)||null==window.Notification);return e||t},isPushPermissionGranted:()=>n.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission,Vn:()=>n.isPushBlocked()?{Wn:!1,reason:"blocked"}:n.isPushSupported()?n.isPushPermissionGranted()?{Wn:!1,reason:"permissionGranted"}:{Wn:!0}:{Wn:!1,reason:"unsupported"},Yn:(e,t)=>"blocked"===e?`${t} containing a push prompt is not being shown because the user has already declined push permission prompt.`:"unsupported"===e?`${t} containing a push prompt is not being shown because the browser doesn't support push notifications.`:`${t} containing a push prompt is not being shown because the user has already accepted the permission prompt.`},a=n},82798:(e,t,i)=>{i.d(t,{j3:()=>n,uD:()=>a});let n={PORTRAIT:0,LANDSCAPE:1},a={openUri:function(e,t,i){e&&(t||null!=i&&i.metaKey?window.open(e):window.location=e)},da:function(){return screen.width<=600},ga:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?n.LANDSCAPE:n.PORTRAIT;let e=window;if("screen"in e){let t=e.screen.orientation||screen.mozOrientation||screen.msOrientation;return null!=t&&"object"==typeof t&&(t=t.type),"landscape-primary"===t||"landscape-secondary"===t?n.LANDSCAPE:n.PORTRAIT}return n.PORTRAIT},Qh:function(){return window.location.href}}},83736:(e,t,i)=>{i.d(t,{u:()=>n});let n=e=>e instanceof Error?e.message:String(e)},88121:(e,t,i)=>{i.d(t,{z:()=>s});var n=i(74693),a=i(6546);function s(e){if(n.Ay.rr())return"function"!=typeof e?null:a.A.ra().En(function(t){return e(t[0]),t.slice(1)})}},88166:(e,t,i)=>{i.d(t,{A:()=>a});let n={init:function(e){void 0===e&&void 0!==n.zg||(n.zg=!!e),n.i||(n.i=!0)},destroy:function(){n.i=!1,n.zg=void 0,n.vd=void 0},setLogger:function(e){"function"==typeof e?(n.init(),n.vd=e):n.info("Ignoring setLogger call since logger is not a function")},toggleLogging:function(){n.init(),n.zg?(console.log("Disabling Braze logging"),n.zg=!1):(console.log("Enabled Braze logging"),n.zg=!0)},info:function(e){if(n.zg){let t="Braze: "+e;null!=n.vd?n.vd(t):console.log(t)}},warn:function(e){if(n.zg){let t="Braze SDK Warning: "+e+" (v6.7.1)";null!=n.vd?n.vd(t):console.warn(t)}},error:function(e){if(n.zg){let t="Braze SDK Error: "+e+" (v6.7.1)";null!=n.vd?n.vd(t):console.error(t)}}},a=n},95122:(e,t,i)=>{i.d(t,{f:()=>l});var n=i(74693),a=i(95718),s=i(88166),r=i(9482),o=i(10416);function l(){if(!n.Ay.rr())return;let e=n.Ay.nn();if(!e)return;e.openSession();let t=a.A.Ps.$s,i=new a.A(t,s.A);i.kr(t.Os.$r,(n,a)=>{let l=a.lastClick,u=a.trackingString;s.A.info(`Firing push click trigger from ${u} push click at ${l}`);let h=e.yr(l,u),c=function(){o.B.o().Ee(r.A.Fr,[u],h)};e.Sr(c,c),i.ge(t.Os.$r,n)}),i.Xs(t.Os.qr,function(t){e.Ar(t)})}},95718:(e,t,i)=>{i.d(t,{A:()=>n});class n{constructor(e,t){this.database=e,this.vd=t,this.parent="u"<typeof window?self:window,this.database=e,this.vd=t}Dd(){if("indexedDB"in this.parent)return this.parent.indexedDB}isSupported(){var e;try{if(null==this.Dd())return!1;{let t=null==(e=this.Dd())?void 0:e.open("Braze IndexedDB Support Test");if(t&&(t.onupgradeneeded=()=>t.result.close(),t.onsuccess=()=>t.result.close()),"u">typeof window){let e=window,t=e.chrome||e.browser||e.Bd;if(t&&t.runtime&&t.runtime.id)return this.vd.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}}catch(e){return this.vd.info("Not using IndexedDB for storage due to following error: "+e),!1}}Cd(e,t){var i;let n=null==(i=this.Dd())?void 0:i.open(this.database.xd,this.database.VERSION);if(null==n)return"function"==typeof t&&t(),!1;let a=this;return n.onupgradeneeded=e=>{var t;a.vd.info("Upgrading indexedDB "+a.database.xd+" to v"+a.database.VERSION+"...");let i=null==(t=e.target)?void 0:t.result;for(let e in a.database.Os)a.database.Os.hasOwnProperty(e)&&!i.objectStoreNames.contains(a.database.Os[e])&&i.createObjectStore(a.database.Os[e])},n.onsuccess=i=>{var n;let s=null==(n=i.target)?void 0:n.result;s.onversionchange=()=>{s.close(),"function"==typeof t&&t(),a.vd.error("Needed to close the database unexpectedly because of an upgrade in another tab")},e(s)},n.onerror=e=>{var i;return a.vd.info("Could not open indexedDB "+a.database.xd+" v"+a.database.VERSION+": "+(null==(i=e.target)?void 0:i.errorCode)),"function"==typeof t&&t(),!0},!0}setItem(e,t,i,n,a){if(!this.isSupported())return"function"==typeof a&&a(),!1;let s=this;return this.Cd(r=>{if(!r.objectStoreNames.contains(e))return s.vd.error("Could not store object "+t+" in "+e+" on indexedDB "+s.database.xd+" - "+e+" is not a valid objectStore"),"function"==typeof a&&a(),void r.close();let o=r.transaction([e],"readwrite");o.oncomplete=()=>r.close();let l=o.objectStore(e).put(i,t);l.onerror=()=>{s.vd.error("Could not store object "+t+" in "+e+" on indexedDB "+s.database.xd),"function"==typeof a&&a()},l.onsuccess=()=>{"function"==typeof n&&n()}},a)}getItem(e,t,i){if(!this.isSupported())return!1;let n=this;return this.Cd(a=>{if(!a.objectStoreNames.contains(e))return n.vd.error("Could not retrieve object "+t+" in "+e+" on indexedDB "+n.database.xd+" - "+e+" is not a valid objectStore"),void a.close();let s=a.transaction([e],"readonly");s.oncomplete=()=>a.close();let r=s.objectStore(e).get(t);r.onerror=()=>{n.vd.error("Could not retrieve object "+t+" in "+e+" on indexedDB "+n.database.xd)},r.onsuccess=e=>{var t;let n=null==(t=e.target)?void 0:t.result;null!=n&&i(n)}})}kr(e,t,i){if(!this.isSupported())return"function"==typeof i&&i(),!1;let n=this;return this.Cd(a=>{if(!a.objectStoreNames.contains(e))return n.vd.error("Could not retrieve last record from "+e+" on indexedDB "+n.database.xd+" - "+e+" is not a valid objectStore"),"function"==typeof i&&i(),void a.close();let s=a.transaction([e],"readonly");s.oncomplete=()=>a.close();let r=s.objectStore(e).openCursor(null,"prev");r.onerror=()=>{n.vd.error("Could not open cursor for "+e+" on indexedDB "+n.database.xd),"function"==typeof i&&i()},r.onsuccess=e=>{var n;let a=null==(n=e.target)?void 0:n.result;null!=a&&null!=a.value&&null!=a.key?t(a.key,a.value):"function"==typeof i&&i()}},i)}ge(e,t){if(!this.isSupported())return!1;let i=this;return this.Cd(n=>{if(!n.objectStoreNames.contains(e))return i.vd.error("Could not delete record "+t+" from "+e+" on indexedDB "+i.database.xd+" - "+e+" is not a valid objectStore"),void n.close();let a=n.transaction([e],"readwrite");a.oncomplete=()=>n.close(),a.objectStore(e).delete(t).onerror=()=>{i.vd.error("Could not delete record "+t+" from "+e+" on indexedDB "+i.database.xd)}})}Xs(e,t){if(!this.isSupported())return!1;let i=this;return this.Cd(n=>{if(!n.objectStoreNames.contains(e))return i.vd.error("Could not retrieve objects from "+e+" on indexedDB "+i.database.xd+" - "+e+" is not a valid objectStore"),void n.close();let a=n.transaction([e],"readwrite");a.oncomplete=()=>n.close();let s=a.objectStore(e),r=s.openCursor(),o=[];r.onerror=()=>{o.length>0?(i.vd.info("Cursor closed midway through for "+e+" on indexedDB "+i.database.xd),t(o)):i.vd.error("Could not open cursor for "+e+" on indexedDB "+i.database.xd)},r.onsuccess=e=>{var i;let n=null==(i=e.target)?void 0:i.result;null!=n?(null!=n.value&&null!=n.key&&(s.delete(n.key).onsuccess=()=>{o.push(n.value)}),"function"==typeof n.continue&&n.continue()):o.length>0&&t(o)}})}clearData(){if(!this.isSupported())return!1;let e=[];for(let t in this.database.Os)this.database.Os.hasOwnProperty(t)&&this.database.Os[t]!==this.database.Os.pe&&e.push(this.database.Os[t]);let t=this;return this.Cd(function(i){let n=i.transaction(e,"readwrite");n.oncomplete=()=>i.close();for(let i=0;i<e.length;i++){let a=e[i];n.objectStore(a).clear().onerror=function(){t.vd.error("Could not clear "+this.source.name+" on indexedDB "+t.database.xd)}}n.onerror=function(){t.vd.error("Could not clear object stores on indexedDB "+t.database.xd)}})}}n.Ps={$s:{xd:"AppboyServiceWorkerAsyncStorage",VERSION:6,Os:{pn:"data",$r:"pushClicks",Fu:"pushSubscribed",yd:"fallbackDevice",_s:"cardUpdates",pe:"optOut",qr
1:"pendingData",wh:"sdkAuthenticationSignature"},be:1}}},95883:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(74693),a=i(53007),s=i(44259),r=i(59606);class o{constructor(e,t,i,n,a){this.userId=e,this.type=t,this.time=i,this.sessionId=n,this.data=a,this.userId=e,this.type=t,this.time=(0,r.S3)(i),this.sessionId=n,this.data=a}ta(){var e;let t={name:this.type,time:(0,r.UK)(this.time),data:this.data||{},session_id:this.sessionId};null!=this.userId&&(t.user_id=this.userId);let i=(null==(e=n.Ay.Br())?void 0:e.Fh())||!1;if(!t.user_id&&!i){let e=(0,a.b)(n.Ay.p());e&&(t.alias=e)}return t}qt(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(e){return new o(e.user_id,e.name,e.time,e.session_id,e.data)}static hS(e){return null!=e&&(0,s.Gv)(e)&&null!=e.t&&""!==e.t}static _u(e){return new o(e.u,e.t,e.ts,e.s,e.d)}}}}]);
2//# sourceMappingURL=7373-4dad556181d82d37.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.