functionea(a){a=["object"==typeofglobalThis&&globalThis,a,"object"==typeofwindow&&window,"object"==typeofself&&self,"object"==typeofglobal&&global];for(varb=0;b<a.length;++b){varc=a[b];if(c&&c.Math==Math)returnc}throwError("Cannot find global object");}varfa=ea(this);functionha(a,b){if(b)a:{varc=fa;a=a.split(".");for(vard=0;d<a.length-1;d++){vare=a[d];if(!(einc))breaka;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&da(c,a,{configurable:!0,writable:!0,value:b})}}varia;
if("function"==typeofObject.setPrototypeOf)ia=Object.setPrototypeOf;else{varja;a:{varka={Og:!0},la={};try{la.__proto__=ka;ja=la.Og;breaka}catch(a){}ja=!1}ia=ja?function(a,b){a.__proto__=b;if(a.__proto__!==b)thrownewTypeError(a+" is not extensible");returna}:null}varma=ia;
ha("String.prototype.repeat",function(a){returna?a:function(b){if(null==this)thrownewTypeError("The 'this' value for String.prototype.repeat must not be null or undefined");varc=this+"";if(0>b||1342177279<b)thrownewRangeError("Invalid count value");b|=0;for(vard="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;returnd}});
functionsa(a){try{if(null==ra(a))return!1;ra(a).open("Braze IndexedDB Support Test");if("undefined"!==typeofwindow){varb=window.bi||window.Ya||window.di;if(b&&b.wh&&b.wh.id)returna.F.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}catch(c){returna.F.info("Not using IndexedDB for storage due to following error: "+c),!1}}
functionta(a,b,c){vard=ra(a).open(a.C.P,a.C.VERSION);if(null==d)return"function"===typeofc&&c(),!1;d.onupgradeneeded=function(e){a.F.info("Upgrading indexedDB "+a.C.P+" to v"+a.C.VERSION+"...");e=e.target.result;for(varfina.C.G)a.C.G.hasOwnProperty(f)&&!e.objectStoreNames.contains(a.C.G[f])&&e.createObjectStore(a.C.G[f])};d.onsuccess=function(e){varf=e.target.result;f.onversionchange=function(){f.close();"function"===typeofc&&c();a.F.error("Needed to close the database unexpectedly because of an upgrade in another tab")};
b(f)};d.onerror=function(e){a.F.info("Could not open indexedDB "+a.C.P+" v"+a.C.VERSION+": "+e.target.errorCode);"function"===typeofc&&c();return!0};return!0}
qa.prototype.setItem=function(a,b,c,d,e){if(!sa(this))return"function"===typeofe&&e(),!1;varf=this;returnta(this,function(g){g.objectStoreNames.contains(a)?(g=g.transaction([a],"readwrite").objectStore(a).put(c,b),g.onerror=function(){f.F.error("Could not store object "+b+" in "+a+" on indexedDB "+f.C.P);"function"===typeofe&&e()},g.onsuccess=function(){"function"===typeofd&&d()}):(f.F.error("Could not store object "+b+" in "+a+" on indexedDB "+f.C.P+" - "+a+" is not a valid objectStore"),"function"===
typeofe&&e())},e)};qa.prototype.getItem=function(a,b,c){if(!sa(this))return!1;vard=this;returnta(this,function(e){e.objectStoreNames.contains(a)?(e=e.transaction([a],"readonly").objectStore(a).get(b),e.onerror=function(){d.F.error("Could not retrieve object "+b+" in "+a+" on indexedDB "+d.C.P)},e.onsuccess=function(f){f=f.target.result;null!=f&&c(f)}):d.F.error("Could not retrieve object "+b+" in "+a+" on indexedDB "+d.C.P+" - "+a+" is not a valid objectStore")})};
functionua(a,b,c,d){sa(a)?ta(a,function(e){e.objectStoreNames.contains(b)?(e=e.transaction([b],"readonly").objectStore(b).openCursor(null,"prev"),e.onerror=function(){a.F.error("Could not open cursor for "+b+" on indexedDB "+a.C.P);"function"===typeofd&&d()},e.onsuccess=function(f){f=f.target.result;null!=f&&null!=f.value&&null!=f.key?c(f.key,f.value):"function"===typeofd&&d()}):(a.F.error("Could not retrieve last record from "+b+" on indexedDB "+a.C.P+" - "+b+" is not a valid objectStore"),"function"===
typeofd&&d())},d):"function"===typeofd&&d()}functionva(a,b,c){sa(a)&&ta(a,function(d){d.objectStoreNames.contains(b)?d.transaction([b],"readwrite").objectStore(b)["delete"](c).onerror=function(){a.F.error("Could not delete record "+c+" from "+b+" on indexedDB "+a.C.P)}:a.F.error("Could not delete record "+c+" from "+b+" on indexedDB "+a.C.P+" - "+b+" is not a valid objectStore")})}
functionwa(a,b,c){sa(a)&&ta(a,function(d){if(d.objectStoreNames.contains(b)){vare=d.transaction([b],"readwrite").objectStore(b);d=e.openCursor();varf=[];d.onerror=function(){0<f.length?(a.F.info("Cursor closed midway through for "+b+" on indexedDB "+a.C.P),c(f)):a.F.error("Could not open cursor for "+b+" on indexedDB "+a.C.P)};d.onsuccess=function(g){varh=g.target.result;null!=h?(null!=h.value&&null!=h.key&&(e["delete"](h.key).onsuccess=function(){f.push(h.value)}),h.continue()):0<f.length&&c(f)}}elsea.F.error("Could not retrieve objects from "+
b+" on indexedDB "+a.C.P+" - "+b+" is not a valid objectStore")})}
qa.prototype.clearData=function(){if(!sa(this))return!1;vara=[],b;for(binthis.C.G)this.C.G.hasOwnProperty(b)&&this.C.G[b]!==this.C.G.xb&&a.push(this.C.G[b]);varc=this;returnta(this,function(d){d=d.transaction(a,"readwrite");for(vare=0;e<a.length;e++)d.objectStore(a[e]).clear().onerror=function(){c.F.error("Could not clear "+this.source.name+" on indexedDB "+c.C.P)};d.onerror=function(){c.F.error("Could not clear object stores on indexedDB "+c.C.P)}})};varxa={Gd:function(a){if(void0!==a||void0===xa.Ea)xa.Ea=!!a;xa.He||(xa.He=!0)},Jb:function(){xa.He=!1;xa.Ea=void0;xa.F=void0},Td:function(a){"function"!==typeofa?xa.info("Ignoring setLogger call since logger is not a function"):(xa.Gd(),xa.F=a)},Yd:function(){xa.Gd();xa.Ea?(console.log("Disabling Appboy logging"),xa.Ea=!1):(console.log("Enabled Appboy logging"),xa.Ea=!0)},info:function(a){xa.Ea&&(a="Appboy: "+a,null!=xa.F?xa.F(a):console.log(a))},warn:function(a){xa.Ea&&(a="Appboy SDK Warning: "+
pg:"openInAppMessagesInNewTab",qg:"openNewsFeedCardsInNewTab",tg:"requireExplicitInAppMessageDismissal",Xf:"doNotLoadFontAwesome",re:"sdkFlavor",$c:"language",og:"openCardsInNewTab"};functionAa(a,b,c,d){a=Ba(a);return-1===a.indexOf(b)?(x.error(c+" Valid values from "+d+' are "'+a.join('"/"')+'".'),!1):!0}functionCa(a){returnArray.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)}functionDa(a){return"[object Date]"===Object.prototype.toString.call(a)}functionEa(a){return"[object Object]"===Object.prototype.toString.call(a)}
d&&"function"===typeofe&&einstanceofe)&&"constructor"ina&&"constructor"inb)return!1}d=[];e=[];for(varf=d.length;f--;)if(d[f]===a)returne[f]===b;d.push(a);e.push(b);if(c){f=a.length;if(f!==b.length)return!1;for(;f--;)if(!Ha(a[f],b[f]))return!1}else{c=Ga(a);f=c.length;if(Ga(b).length!==f)return!1;for(;f--;){varg=c[f];if(!b.hasOwnProperty(g)||!Ha(a[g],b[g]))return!1}}d.pop();e.pop();return!0};functionIa(a,b){a/=1E3;b&&(a=Math.floor(a));returna}functionJa(a){varb=parseInt(a);returnnull==a||isNaN(b)?null:newDate(1E3*b)}functionKa(a){returnnull!=a&&Da(a)?a.toISOString().replace(/\.[0-9]{3}Z$/,""):a}functionLa(a){returnnull==a||""===a?null:newDate(a)};functionE(a,b,c,d,e){this.gb=a;this.type=b;this.time=null==c||""===c?(newDate).valueOf():c;this.sessionId=d;this.data=e}E.prototype.Ac=function(){vara={name:this.type,time:Ia(this.time),data:this.data||{},session_id:this.sessionId};null!=this.gb&&(a.user_id=this.gb);returna};E.prototype.A=function(){return{u:this.gb,t:this.type,ts:this.time,s:this.sessionId,d:this.data}};functionMa(a){returnnull!=a&&Ea(a)&&null!=a.t&&""!==a.t}functionNa(a){returnnewE(a.u,a.t,a.ts,a.s,a.d)};functionOa(a,b,c){null==a&&(a=pa.Ia());c=parseInt(c);if(isNaN(c)||0===c)c=(newDate).valueOf();this.ia=a;this.Ib=c;this.Ob=(newDate).valueOf();this.Cd=b}Oa.prototype.A=function(){return{g:this.ia,e:this.Cd,c:this.Ib,l:this.Ob}};functionPa(a){for(varb=a.length,c=a.length-1;0<=c;c--){vard=a.charCodeAt(c);127<d&&2047>=d?b++:2047<d&&65535>=d&&(b+=2);56320<=d&&57343>=d&&c--}returnb};functionQa(a,b,c,d){(d="string"===typeofa||null===a&&d)||x.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');returnd}functionRa(a,b,c){vard=null!=a&&"string"===typeofa&&(""===a||a.match(Sa));d||x.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');returnd}
functionTa(a,b,c,d,e){null==a&&(a={});if("object"!==typeofa||Ca(a))returnx.error(b+" requires that "+c+" be an object. Ignoring "+e+"."),[!1,null];b=JSON.stringify(a);if(Pa(b)>Ua)returnx.error("Could not "+d+" because "+c+" was greater than the max size of "+Va+"."),[!1,null];try{varf=JSON.parse(b)}catch(k){returnx.error("Could not "+d+" because "+c+" did not contain valid JSON."),[!1,null]}for(vargina){if(!Ra(g,d,"the "+e+" property name"))return[!1,null];c=a[g];if(null==c)deletea[g],deletef[g];
else{Da(c)&&(f[g]=Ka(c));varh=d,l="the "+e+' property "'+g+'"';(b=Ea(c)||Ca(c)?Wa(c,f[g]):Ya(c))||x.error("Cannot "+h+" because "+l+' "'+c+'" is invalid.');if(!b)return[!1,null]}}return[!0,f]}functionWa(a,b){if(Ca(a)&&Ca(b))for(varc=0;c<a.length&&c<b.length;c++){if(Da(a[c])&&(b[c]=Ka(a[c])),!Wa(a[c],b[c]))return!1}elseif(Ea(a)){c=ba(Ga(a));for(vard=c.next();!d.done;d=c.next())if(d=d.value,Da(a[d])&&(b[d]=Ka(a[d])),!Wa(a[d],b[d]))return!1}elsereturnYa(a);return!0}
functionYa(a){varb=typeofa;returnnull==a||"number"===b||"boolean"===b||Da(a)||"string"===b}varSa=/^[^\x00-\x1F\x22]+$/,Za=newRegExp(/^.+@.+\..+$/),Ua=51200,Va="50KB";varJ={};functionK(a,b){this.f=a;this.H=b}p=K.prototype;p.o=function(a){null==a&&x.error("getUserId must be supplied with a callback. e.g., appboy.getUser().getUserId(function(userId) {console.log('the user id is ' + userId)})");"function"===typeofa&&a(this.f.o())};
p.Pg=function(a,b){if(!Qa(a,"add alias","the alias",!1)||0>=a.length)returnx.error("addAlias requires a non-empty alias"),!1;if(!Qa(b,"add alias","the label",!1)||0>=b.length)returnx.error("addAlias requires a non-empty label"),!1;varc=this.H,d=new$a,e=ab(c.D),f=z.Df;d.j.push(newE(c.f.o(),f,(newDate).valueOf(),e,{a:a,l:b}));d.h=bb(c.b,d.j);returnd.h};p.Eh=function(a){returnQa(a,"set first name","the firstName",!0)?cb(this.f,"first_name",a):!1};
p.Ih=function(a){returnQa(a,"set last name","the lastName",!0)?cb(this.f,"last_name",a):!1};p.Ch=function(a){returnnull===a||"string"===typeofa&&null!=a.toLowerCase().match(Za)?cb(this.f,"email",a):(x.error('Cannot set email address - "'+a+'" did not pass RFC-5322 validation.'),!1)};p.Fh=function(a){"string"===typeofa&&(a=a.toLowerCase());returnnull===a||Aa(db,a,'Gender "'+a+'" is not a valid gender.',"User.Genders")?cb(this.f,"gender",a):!1};
p.Bh=function(a,b,c){if(null===a&&null===b&&null===c)returncb(this.f,"dob",null);a=parseInt(a);b=parseInt(b);c=parseInt(c);returnisNaN(a)||isNaN(b)||isNaN(c)||12<b||1>b||31<c||1>c?(x.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):cb(this.f,"dob",""+a+"-"+b+"-"+c)};p.yh=function(a){returnQa(a,"set country","the country",!0)?cb(this.f,"country",a):!1};
p.Gh=function(a){returnQa(a,"set home city","the homeCity",!0)?cb(this.f,"home_city",a):!1};p.Hh=function(a){returnQa(a,"set language","the language",!0)?cb(this.f,"language",a):!1};p.Dh=function(a){returnAa(eb,a,'Email notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?cb(this.f,"email_subscribe",a):!1};
p.Ud=function(a){returnAa(eb,a,'Push notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?cb(this.f,"push_subscribe",a):!1};p.Jh=function(a){returnQa(a,"set phone number","the phoneNumber",!0)?null===a||a.match(fb)?cb(this.f,"phone",a):(x.error('Cannot set phone number - "'+a+'" did not pass validation.'),!1):!1};p.xh=function(a){returncb(this.f,"image_url",a)};
p.Oc=function(a,b,c,d,e){if(null==a||null==b)returnx.error("Cannot set last-known location - latitude and longitude are required."),!1;a=parseFloat(a);b=parseFloat(b);null!=c&&(c=parseFloat(c));null!=d&&(d=parseFloat(d));null!=e&&(e=parseFloat(e));returnisNaN(a)||isNaN(b)||null!=c&&isNaN(c)||null!=d&&isNaN(d)||null!=e&&isNaN(e)?(x.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):90<a||-90>a||180<b||-180>b?(x.error("Cannot set last-known location - latitude and longitude are bounded by \u00b190 and \u00b1180 respectively."),
!1):null!=c&&0>c||null!=e&&0>e?(x.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.H.Oc(this.f.o(),a,b,d,c,e).h};
p.Sd=function(a,b){if(!Ra(a,"set custom user attribute","the given key"))return!1;varc=typeofb,d=Da(b),e=Ca(b);if("number"!==c&&"boolean"!==c&&!d&&!e&&null!==b&&!Ra(b,'set custom user attribute "'+a+'"',"the given value"))return!1;d&&(b=Ka(b));if(e){for(c=0;c<b.length;c++)if(!Ra(b[c],'set custom user attribute "'+a+'"',"the element in the given array"))return!1;returngb(this.H,z.Qf,a,b).h}returnthis.f.Sd(a,b)};
p.Qg=function(a,b){return!Ra(a,"add to custom user attribute array","the given key")||null!=b&&!Ra(b,"add to custom user attribute array","the given value")?!1:gb(this.H,z.Nf,a,b).h};p.qh=function(a,b){return!Ra(a,"remove from custom user attribute array","the given key")||null!=b&&!Ra(b,"remove from custom user attribute array","the given value")?!1:gb(this.H,z.Pf,a,b).h};
p.kh=function(a,b){if(!Ra(a,"increment custom user attribute","the given key"))return!1;null==b&&(b=1);varc=parseInt(b);returnisNaN(c)||c!==parseFloat(b)?(x.error('Cannot increment custom user attribute because the given incrementValue "'+b+'" is not an integer.'),!1):gb(this.H,z.Of,a,c).h};p.Pd=function(a,b,c,d,e){this.f.Pd(a,b,c,d,e);hb(this.H)};p.Sb=function(a){this.f.Sb(a)};
p.Ah=function(a,b,c){if(!Ra(a,"set custom location attribute","the given key"))return!1;if(null!==b||null!==c)if(b=parseFloat(b),c=parseFloat(c),isNaN(b)||90<b||-90>b||isNaN(c)||180<c||-180>c)returnx.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by \u00b190 and \u00b1180 respectively, or must both be null for removal."),!1;vard=this.H,e=c;c=new$a;if(ib(d.J,a))x.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),c.h=!1;else{varf=ab(d.D);
if(null===b&&null===e){varg=z.kg;a={key:a}}elseg=z.jg,a={key:a,latitude:b,longitude:e};c.j.push(newE(d.f.o(),g,(newDate).valueOf(),f,a));c.h=bb(d.b,c.j)}returnc.h};p.Rg=function(a){return!Qa(a,"add user to subscription group","subscription group ID",!1)||0>=a.length?(x.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):jb(this.H,a,kb).h};
p.rh=function(a){return!Qa(a,"remove user from subscription group","subscription group ID",!1)||0>=a.length?(x.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):jb(this.H,a,lb).h};varfb=/^[0-9 .\\(\\)\\+\\-]+$/,db={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},eb={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},kb="subscribed",lb="unsubscribed";J.User=K;J.User.Genders=db;
null];if(-1!==a.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(a.match(/\b(Roku)\b/))return["Roku",null];if(a.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(b[1]===ob.ae&&(c=a.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),null!=c))returnc=c.slice(1),c[0]=c[0].replace("OPR",ob.le),c[0]=c[0].replace("EdgA",ob.Wc),"Edg"===c[0]&&(c[0]=ob.Wc),[c[0],c[1]];if(b[1]===ob.hd&&(c=a.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),null!=c))returnc=c.slice(1),c[0]=c[0].replace("EdgiOS",ob.Wc),
functionAb(a){varb=a.R.Z(M.Wb);a.R.remove(M.Wb);null==b&&(b=[]);a=[];varc=!1,d=null;if(Ca(b))for(vare=0;e<b.length;e++)Ma(b[e])?a.push(Na(b[e])):d=e;elsec=!0;if(c||null!=d)e="Stored events could not be deserialized as Events",c&&(e+=", was "+Object.prototype.toString.call(b)+" not an array"),null!=d&&(e+=", value at index "+d+" does not look like an event"),e+=", serialized values were of type "+typeofb+": "+JSON.stringify(b),a.push(newE(null,z.Yc,(newDate).valueOf(),null,{e:e}));returna}
functionO(a,b,c){Aa(M,b,"StorageManager cannot store object.","StorageManager.KEYS.OBJECTS")&&a.R.store(b,c)}functionS(a,b){returnAa(M,b,"StorageManager cannot retrieve object.","StorageManager.KEYS.OBJECTS")?a.R.Z(b):!1}functionBb(a,b){Aa(M,b,"StorageManager cannot remove object.","StorageManager.KEYS.OBJECTS")&&a.R.remove(b)}wb.prototype.clearData=function(){for(vara=Ga(Cb),b=Ga(M),c=0;c<a.length;c++)this.rc.remove(Cb[a[c]]);for(a=0;a<b.length;a++)this.R.remove(M[b[a]])};
Lb.prototype.store=function(a,b){varc={value:b};vard=[];b=[b];for(vare=0;b.length;){varf=b.pop();if("boolean"===typeoff)e+=4;elseif("string"===typeoff)e+=2*f.length;elseif("number"===typeoff)e+=8;elseif("object"===typeoff&&-1===d.indexOf(f)){d.push(f);for(varginf)b.push(f[g])}}d=e;if(d>this.Ke)returnx.info("Storage failure: object is \u2248"+d+" bytes which is greater than the max of "+this.Ke),!1;this.ud[a]=c;return!0};Lb.prototype.Z=function(a){a=this.ud[a];returnnull==a?null:a.value};
functionhc(a){if(a[T.pe])returnnull;varb=a[T.wa],c=a[T.TYPE],d=a[T.za],e=a[T.Ua],f=a[T.xa],g=a[T.Ra],h=Ja(a[T.ea]);varl=a[T.ca]===gc?null:Ja(a[T.ca]);vark=a[T.URL],m=a[T.ya],q=a[T.sa],v=a[T.ka],t=a[T.la],w=a[T.va],r=a[T.ta];a=a[T.V]||!1;if(c===ic.xe||c===ic.ic)b=newjc(b,d,e,f,g,null,h,null,l,k,m,q,v,t,w,r);elseif(c===ic.Yb)b=newkc(b,d,e,f,g,null,h,null,l,k,m,q,v,t,w,r);elseif(c===ic.Xb)b=newlc(b,d,f,null,h,null,l,k,m,q,v,t,w,r);elseif(c===ic.Sc)b=newmc(b,d,h,l,v,t);elsereturnx.error("Ignoring card with unknown type "+
elseif(b===Oc||b===Pc)c=newQc(c,f,g,h,l,v,t,B,P,Q,R,Y,a.message_fields),c.Th=a.trusted||!1;else{x.error("Ignoring message with unknown type "+b);return}c.nf=b;returnc}functionRc(a,b){if(b&&b.parentNode){varc=b.closest(".ab-iam-root");null==c&&(c=b);a.Ja()&&null!=c.parentNode&&((b=c.parentNode.classList)&&b.contains(Sc)&&b.remove(Sc),document.body.removeEventListener("touchmove",Tc));c.className=c.className.replace(Uc,Vc)}returna.animateOut}
fa.Object.defineProperties(Nc.prototype,{Bd:{configurable:!0,enumerable:!0,get:function(){return"START"}}});J.SlideUpMessage=Nc;functiontd(a,b){ud={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:"\u0644\u064a\u0633 \u0644\u062f\u064a\u0646\u0627 \u0623\u064a \u062a\u062d\u062f\u064a\u062b. \u064a\u0631\u062c\u0649 \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649 \u0644\u0627\u062d\u0642\u0627\u064b",FEED_TIMEOUT_MESSAGE:"\u064a\u0631\u062c\u0649 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u0627"},
cs:{NO_CARDS_MESSAGE:"V tuto chv\u00edli pro v\u00e1s nem\u00e1me \u017e\u00e1dn\u00e9 aktualizace.<br/>Zkontrolujte pros\u00edm znovu pozd\u011bji.",FEED_TIMEOUT_MESSAGE:"Pros\u00edm zkuste to znovu pozd\u011bji."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.<br/>Pr\u00f8v venligst senere.",FEED_TIMEOUT_MESSAGE:"Pr\u00f8v venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verf\u00fcgbar.<br/>Bitte sp\u00e4ter noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte sp\u00e4ter noch einmal versuchen."},
es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.<br/>Por favor compru\u00e9belo m\u00e1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor int\u00e9ntelo m\u00e1s tarde."},"es-mx":{NO_CARDS_MESSAGE:"No tenemos ninguna actualizaci\u00f3n.<br/>Vuelva a verificar m\u00e1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, vuelva a intentarlo m\u00e1s 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\u00e4ivityksi\u00e4 ei ole saatavilla.<br/>Tarkista my\u00f6hemmin uudelleen.",
FEED_TIMEOUT_MESSAGE:"Yrit\u00e4 my\u00f6hemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise \u00e0 jour disponible.<br/>Veuillez v\u00e9rifier ult\u00e9rieurement.",FEED_TIMEOUT_MESSAGE:"Veuillez r\u00e9essayer ult\u00e9rieurement."},he:{NO_CARDS_MESSAGE:".\u05d0\u05d9\u05df \u05dc\u05e0\u05d5 \u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd. \u05d1\u05d1\u05e7\u05e9\u05d4 \u05d1\u05d3\u05d5\u05e7 \u05e9\u05d5\u05d1 \u05d1\u05e7\u05e8\u05d5\u05d1",FEED_TIMEOUT_MESSAGE:".\u05d1\u05d1\u05e7\u05e9\u05d4 \u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1 \u05d1\u05e7\u05e8\u05d5\u05d1"},
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\u00f9 tardi.",FEED_TIMEOUT_MESSAGE:"Riprovare pi\u00f9 tardi."},ja:{NO_CARDS_MESSAGE:"\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br/>\u5f8c\u3067\u3082\u3046\u4e00\u5ea6\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002",FEED_TIMEOUT_MESSAGE:"\u5f8c\u3067\u3082\u3046\u4e00\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002"},
ko:{NO_CARDS_MESSAGE:"\uc5c5\ub370\uc774\ud2b8\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc5d0 \ub2e4\uc2dc \ud655\uc778\ud574 \uc8fc\uc2ed\uc2dc\uc624.",FEED_TIMEOUT_MESSAGE:"\ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc2ed\uc2dc\uc624."},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\u00f8v igjen senere."},pl:{NO_CARDS_MESSAGE:"Brak aktualizacji.<br/>Prosz\u0119 sprawdzi\u0107 ponownie p\u00f3\u017aniej.",FEED_TIMEOUT_MESSAGE:"Prosz\u0119 spr\u00f3bowa\u0107 ponownie p\u00f3\u017aniej."},pt:{NO_CARDS_MESSAGE:"N\u00e3o temos atualiza\u00e7\u00f5es.<br/>Por favor, verifique mais tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, tente mais tarde."},"pt-br":{NO_CARDS_MESSAGE:"N\u00e3o temos nenhuma atualiza\u00e7\u00e3o.<br/>Verifique novamente mais tarde.",
sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.<br/>F\u00f6rs\u00f6k igen senare.",FEED_TIMEOUT_MESSAGE:"F\u00f6rs\u00f6k igen senare."},th:{NO_CARDS_MESSAGE:"\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e15 \u0e01\u0e23\u0e38\u0e13\u0e32\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07.",FEED_TIMEOUT_MESSAGE:"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07."},
if(null!=a&&null==ud[a]){varc=a.indexOf("-");0<c&&(a=a.substring(0,c))}null==ud[a]&&(a="Braze does not yet have a localization for language "+a+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.",b?x.error(a):x.info(a),a="en");vd=a}varud,vd;functionwd(a,b){this.cards=a;this.lastUpdated=b}p=wd.prototype;p.ff=function(){for(vara=0,b=0;b<this.cards.length;b++)this.cards[b].viewed||this.cards[b]instanceofmc||a++;returna};functionxd(a,b){b&&(b.className=b.className.replace("ab-show","ab-hide"),setTimeout(function(){b&&b.parentNode&&b.parentNode.removeChild(b)},qc));varc=b.getAttribute(yd);null!=c&&a.N(c)}p.Ma=function(a,b){a.Ma(b)};p.La=function(a,b){a.La(b)};
Ad?(d.appendChild(a.cards[h].aa(f,g,c)),e=e||!l):x.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.")}e||(c=document.createElement("div"),c.className="ab-no-cards-message",c.innerHTML=ud[vd].NO_CARDS_MESSAGE,c.setAttribute("role","article"),d.appendChild(c))}returnd}
Vd.prototype.A=function(){for(vara=[],b=0;b<this.filters.length;b++){for(varc=this.filters[b],d=[],e=0;e<c.length;e++)d.push(c[e].A());a.push(d)}returna};functionXd(a){for(varb=[],c=0;c<a.length;c++){for(vard=[],e=a[c],f=0;f<e.length;f++){varg=e[f];d.push(newHd(g.k,g.t,g.c,g.v))}b.push(d)}returnnewVd(b)};functionYd(a,b){this.bb=a;this.eb=b}Yd.prototype.fa=function(a){if(null==this.bb||null==this.eb)return!1;varb=a[1];returna[0]===this.bb&&this.eb.fa(b)};Yd.prototype.A=function(){return{e:this.bb,pf:this.eb.A()}};functionZd(a,b){this.Za=a;this.Gb=b}Zd.prototype.fa=function(a){if(null==this.Za)return!1;varb=$d(a[0],this.Za);if(!b)return!1;varc=null==this.Gb||0===this.Gb.length;if(null!=this.Gb)for(vard=0;d<this.Gb.length;d++)if(this.Gb[d]===a[1]){c=!0;break}returnb&&c};Zd.prototype.A=function(){returnthis.Za};functionae(a){this.cb=a}ae.prototype.fa=function(a){returnnull==this.cb||a[0]===this.cb};ae.prototype.A=function(){returnthis.cb};functionbe(a,b){this.cb=a;this.eb=b}be.prototype.fa=function(a){if(null==this.cb||null==this.eb)return!1;varb=a[1];returna[0]===this.cb&&this.eb.fa(b)};be.prototype.A=function(){return{id:this.cb,pf:this.eb.A()}};functionce(a){this.Za=a}ce.prototype.fa=function(a){returnnull==this.Za?!0:$d(a[0],this.Za)};ce.prototype.A=function(){returnthis.Za};varde={OPEN:"open",fd:"purchase",ne:"push_click",Tc:"custom_event",ec:"iam_click",V:"test"};functionee(a,b){this.type=a;this.data=b}functionfe(a,b,c){returnge[a.type]===b&&(null==a.data||a.data.fa(c))}function$d(a,b){varc=null;try{c=window.atob(a)}catch(d){returnx.info("Failed to unencode analytics id "+a+": "+d.message),!1}returnb===c.split("_")[0]}
functionte(a,b){varc=(newDate).valueOf()-b;(b=null==b||isNaN(c)||null==a.Oa||c<a.Oa)||x.info("Trigger action "+a.type+" is no longer eligible for display - fired "+c+"ms ago and has a timeout of "+a.Oa+"ms");return!b}re.prototype.A=function(){for(vara=[],b=0;b<this.ob.length;b++)a.push(this.ob[b].A());return{i:this.id,c:a,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.ab,r:this.Rb,tm:this.Oa,ss:this.kf,ld:this.Ca}};
functionue(a){for(varb=[],c=0;c<a.c.length;c++)b.push(qe(a.c[c]));returnnewre(a.i,b,La(a.s),La(a.e),a.p,a.t,a.da,a.d,a.r,a.tm,a.ss,a.ld)}varse=-1,ve={Xc:"inapp",we:"templated_iam"};functionwe(a,b){a=Math.ceil(a);b=Math.floor(b);returnMath.floor(Math.random()*(b-a+1))+a};functionxe(a){varb,c=!1;try{if(window.XMLHttpRequest&&(b=newXMLHttpRequest)&&"undefined"!==typeofb.withCredentials||("undefined"!==typeofXDomainRequest?(b=newXDomainRequest,c=b.async=!0):x.error("This browser does not have any supported ajax options!")),null!=b){vard=function(){"function"===typeofa.error&&a.error(b.status);"function"===typeofa.zc&&a.zc(!1)};b.onload=function(){if(c)varh=!0;else{if(4!==b.readyState)return;h=200<=b.status&&300>b.status||304===b.status}if(h){if("function"===
functionCe(a,b,c,d){vare=c.auth_error,f=c.error;if(!e&&!f)return!0;if(e){a.Va+=1;c={errorCode:e.error_code};d=ba(d);for(f=d.next();!f.done;f=d.next())f=f.value,Ca(f)&&"X-Braze-Auth-Signature"===f[0]&&(c.signature=f[1]);b.respond_with&&b.respond_with.user_id?c.userId=b.respond_with.user_id:b.user_id&&(c.userId=b.user_id);(d=e.reason)?(c.reason=d,e="due to "+d):e="with error code "+e.error_code+".";a.W.Db||(e+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.');
x.error("SDK Authentication failed "+e);De(a,b);Pb(a.W.ze,c);return!1}if(f){e=f;switch(e){case"empty_response":returnbb(a.b,[newE(a.f.o(),z.Yc,(newDate).valueOf(),a.D.Kb,{e:"Received successful response with empty body."})]),x.info("Received successful response with empty body."),!1;case"invalid_json_response":returnbb(a.b,[newE(a.f.o(),z.Yc,(newDate).valueOf(),a.D.Kb,{e:"Received successful response with invalid JSON: "+c.response})]),x.info("Received successful response with invalid JSON"),
!1;case"invalid_api_key":e='The API key "'+b.api_key+'" is invalid for the baseUrl '+a.Bb;break;case"blacklisted":e="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case"no_device_identifier":e="No device identifier. Please contact support@braze.com"}x.error("Backend error: "+e)}return!1}
functionFe(a,b,c,d,e,f,g,h){null==d&&(d=!0);d&&Ge(a);varl=Ab(a.b),k=Gb(a.b),m=He(a.D);if(0<l.length)for(varq=a.f.o(),v=ba(l),t=v.next();!t.done;t=v.next()){t=t.value;varw=null==t.gb&&null==q||t.gb===q;t.type===z.ve&&w&&(m=!0)}if(!h&&!m&&a.Va>=a.Ag)x.info("Declining to flush data due to 50 consecutive authentication failures");elseif(h=c||m,!d||0!==l.length||0!==k.length||b||h){varr=!1,F=function(A,N){varL=!1;xe({url:""+a.Bb+"/data/",data:A,headers:N,h:function(I){null!=A.respond_with&&A.respond_with.triggers&&
h)G[c]=Le(a,b,h),h&&a.lb++;b=function(A,N){varL=D(N.user_id);G[L]||(G[L]=Le(a,!1,!1,L));G[L][A]||(G[L][A]=[]);G[L][A].push(N)};l=ba(l);for(h=l.next();!h.done;h=l.next())b("events",h.value.Ac());k=ba(k);for(l=k.next();!l.done;l=k.next())b("attributes",l.value);k=!1;l={};for(varHinG)a.W.Db&&H!==c?De(a,G[H]):(l.ub=Ae(a,G[H]),l.Pc=Me(a,l.ub),Ne(l.ub,function(A){returnfunction(){returnF(A.ub,A.Pc)}}(l)),k=!0),l={ub:l.ub,Pc:l.Pc};d&&!k?Ke(a):m&&(x.info("Invoking new session subscriptions"),Pb(a.sd))}elseKe(a),
"getting user personalization for message "+b.Pa;if((newDate).valueOf()-b.Ec>b.Oa)a.M(b.Pa,dd.yb);else{vark=Math.min(b.Oa,a.Bg),m=a.Cg;null==e&&(e=m);varq=Math.min(k,we(m,3*e));l+=". Retrying in "+q+"ms";setTimeout(function(){Pe(a,b,c,d,q)},q)}Oe(h,l)}})})}p=ye.prototype;
functionQe(a){if(null==a.campaignId&&null==a.cardId&&null==a.triggerId)returnx.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;varb={};null!=a.cardId&&(b.card_ids=[a.cardId]);null!=a.campaignId&&(b.campaign_ids=[a.campaignId]);null!=a.triggerId&&(b.trigger_ids=[a.triggerId]);returnb}functionRe(a){for(varb=null,c=0;c<a.length;c++)null!=a[c].id&&""!==a[c].id&&(b=b||{},b.ids=b.ids||[],b.ids.push(a[c].id));returnb}
p.Lc=function(a){varb=this,c=this.D.Kb(),d=ab(this.D);if(c=c!==d)yb(this.b,Cb.Uc),yb(this.b,Cb.lc);Fe(this,null,!1,null,null,null);hb(this);if(c&&null!=a&&(a.Mb()||a.Ka())){vare=function(){a.Hg?x.info("Push token maintenance is disabled, not refreshing token for backend."):a.subscribe()};c=za.ba;ua(newqa(c),c.G.gd,function(f,g){g&&e()},function(){varf=S(b.b,M.kc);(null==f||f)&&e()})}};
k||bb(f,[k])}}d?this.W.Tb(d):(d=this.W,Bb(d.b,M.jb),f=za.ba,va(newqa(f),f.G.qe,d.ye));for(d=0;d<b.length;d++)b[d].$a(null==e);null!=e&&Bb(this.b,M.vb);Bb(this.b,M.cc);this.Lc(c);x.info('Changed user to "'+a+'".')}elseb="Doing nothing.",d&&S(this.W.b,M.jb)!==d&&(this.W.Tb(d),b="Updated SDK authentication signature"),x.info("Current user is already "+a+". "+b)};p.rb=function(){returnnewK(this.f,this)};p.tb=function(a){Ge(this);ab(this.D);Fe(this,null,null,null,null,null,a,!0)};
p.Nc=function(){ab(this.D);Fe(this,!0)};functionUe(a,b,c){ab(a.D);x.info("Requesting explicit trigger refresh.");Fe(a,null,!0,null,b,c)}p.Jd=function(a,b){varc=new$a,d=ab(this.D);if(-1!==Ie(this.J).cf.indexOf(a))returnx.info('Custom Event "'+a+'" is blocklisted, ignoring.'),c;c.j.push(newE(this.f.o(),z.CustomEvent,(newDate).valueOf(),d,{n:a,p:b}));c.h=bb(this.b,c.j);returnc};
functiongb(a,b,c,d){vare=new$a,f=ab(a.D);if(ib(a.J,c))returnx.info('Custom Attribute "'+c+'" is blocklisted, ignoring.'),e;e.j.push(newE(a.f.o(),b,(newDate).valueOf(),f,{key:c,value:d}));e.h=bb(a.b,e.j);returne}p.Kd=function(a,b,c,d,e){varf=new$a,g=ab(this.D);if(-1!==Ie(this.J).mf.indexOf(a))returnx.info('Purchase "'+a+'" is blocklisted, ignoring.'),f;f.j.push(newE(this.f.o(),z.eg,(newDate).valueOf(),g,{pid:a,c:c,p:b,q:d,pr:e}));f.h=bb(this.b,f.j);returnf};
p.Qb=function(a){varb=new$a,c=ab(this.D);if(ainstanceofFc)b.j.push(newE(this.f.o(),z.Mf,(newDate).valueOf(),c,{trigger_ids:[a.triggerId]}));else{if(!a.Od())returnx.info("This in-app message has already received an impression. Ignoring analytics event."),b;a=Qe(a);if(null==a)returnb;b.j.push(newE(this.f.o(),z.dg,(newDate).valueOf(),c,a))}b.h=bb(this.b,b.j);returnb};
p.Jc=function(a){varb=new$a,c=ab(this.D);if(!a.fb())returnx.info("This in-app message has already received a click. Ignoring analytics event."),b;a=Qe(a);if(null==a)returnb;b.j.push(newE(this.f.o(),z.ke,(newDate).valueOf(),c,a));b.h=bb(this.b,b.j);returnb};
p.Ic=function(a,b){varc=new$a,d=ab(this.D);if(!a.fb())returnx.info("This in-app message button has already received a click. Ignoring analytics event."),c;b=Qe(b);if(null==b)returnc;if(a.id===md)returnx.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),c;null!=a.id&&(b.bid=a.id);c.j.push(newE(this.f.o(),z.je,(newDate).valueOf(),d,b));c.h=bb(this.b,c.j);returnc};
p.Pb=function(a,b,c){vard=new$a,e=ab(this.D);if(!a.fb(c))returnx.info("This in-app message has already received a click. Ignoring analytics event."),d;a=Qe(a);if(null==a)returnd;c=z.ke;null!=b&&(a.bid=b,c=z.je);d.j.push(newE(this.f.o(),c,(newDate).valueOf(),e,a));d.h=bb(this.b,d.j);returnd};p.M=function(a,b){varc=new$a,d=ab(this.D);a={trigger_ids:[a],error_code:b};c.j.push(newE(this.f.o(),z.cg,(newDate).valueOf(),d,a));c.h=bb(this.b,c.j);returnc};
p.La=function(a,b){varc=new$a,d=ab(this.D);a.fb();if(null==a.url||""===a.url)returnx.info("Card "+a.id+" has no url. Not logging click to Braze servers."),c;if(b){vare=S(this.b,M.hb)||{};e[a.id]=!0;O(this.b,M.hb,e)}a=Re([a]);if(null==a)returnc;c.j.push(newE(this.f.o(),b?z.Hf:z.Ff,(newDate).valueOf(),d,a));c.h=bb(this.b,c.j);returnc};
p.Hc=function(a){varb=new$a,c=ab(this.D);if(!a.Nd())returnx.info("Card "+a.id+" refused this dismissal. Ignoring analytics event."),b;vard=S(this.b,M.ua)||{};d[a.id]=!0;O(this.b,M.ua,d);a=Re([a]);if(null==a)returnb;b.j.push(newE(this.f.o(),z.If,(newDate).valueOf(),c,a));b.h=bb(this.b,b.j);returnb};functionVe(a,b){varc=new$a,d=ab(a.D);c.j.push(newE(a.f.o(),z.fg,(newDate).valueOf(),d,{n:b}));c.h=bb(a.b,c.j);returnc}
typeofIntl.DateTimeFormat().resolvedOptions){varf=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=f&&""!==f){varg=f;breaka}}}catch(k){x.info("Intl.DateTimeFormat threw an error, probably https://bugs.chromium.org/p/chromium/issues/detail?id=811403, falling back to GTM offset: "+k.message)}g=e.getTimezoneOffset();e=parseInt(g/60);varh=parseInt(g%60),l="GMT";0!==g&&(l=l+(0>g?"+":"-")+(("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(h)).slice(-2)));g=l}b[d]=g;break;case"userAgent":b[d]=
p.Id=function(a,b,c){vard=this;c=this.Ne||c;this.qa()?this.vc?df(this).then(function(e){d.Ka()?b():null==e?b():e.pushManager.getSubscription().then(function(f){f?a():b()}).catch(function(){b()})}).catch(function(){b()}):null==c||""===c?x.error("You must supply the safariWebsitePushId argument in order to use isPushGranted on Safari"):"granted"===window.safari.pushNotification.permission(c).permission?a():b():b()};
functionef(a,b,c,d,e,f){b.unsubscribe().then(function(g){g?ff(a,c,d,e,f):(x.error("Failed to unsubscribe device from push."),"function"===typeoff&&f(!1))}).catch(function(g){x.error("Push unsubscription error: "+g);"function"===typeoff&&f(!1)})}
functionjf(a,b,c,d,e){if("default"===c.permission)try{window.safari.pushNotification.requestPermission(a.Jg,b,{api_key:a.$,device_id:Be(a.mc).id},function(f){"granted"===f.permission&&a.Fa.Ud("opted_in");jf(a,b,f,d,e)})}catch(f){hf(a,"Could not request permission for push: "+f,e)}else"denied"===c.permission?hf(a,"The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",e):"granted"===c.permission&&(x.info("Device successfully subscribed to push."),
gf(a,c.deviceToken,d,newDate))}functionkf(a,b,c){functiond(g){switch(g){case"granted":"function"===typeofa&&a();break;case"default":"function"===typeofb&&b();break;case"denied":"function"===typeofc&&c();break;default:x.error("Received unexpected permission result "+g)}}vare=!1,f=window.Notification.requestPermission(function(g){e&&d(g)});f?f.then(function(g){d(g)}):e=!0}
functionff(a,b,c,d,e){varf={userVisibleOnly:!0};null!=c&&(f.applicationServerKey=c);b.pushManager.subscribe(f).then(function(g){x.info("Device successfully subscribed to push.");gf(a,g,d,newDate)}).catch(function(g){a.Ka()?(x.info("Permission for push notifications was denied."),"function"===typeofe&&e(!1)):x.error("Push subscription failed: "+g)})}
p.subscribe=function(a,b,c){vard=this;a=this.Ne||a;if(this.qa())if(this.vc){if(!this.rd&&null!=window.location){vare=this.Pe;-1===e.indexOf(window.location.host)&&(e=window.location.host+e);-1===e.indexOf(window.location.protocol)&&(e=window.location.protocol+"//"+e);if(0!==window.location.href.indexOf(e.substr(0,e.lastIndexOf("/")+1))){x.error("Cannot subscribe to push from a path higher than the service worker location (tried to subscribe from "+window.location.pathname+" but service worker is at "+
e+")");return}}if(this.Ka())hf(this,"Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",c);elseif(this.J&&!Ie(this.J).ra&&0===Ie(this.J).Nb)x.info("Waiting for VAPID key from server config before subscribing to push."),lf(this.J,function(){d.subscribe(a,b,c)});else{varf=this.Mb();kf(function(){f||d.Fa.Ud("opted_in");df(d).then(function(g){null==g?(x.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerAppboyPushMessages."),
(12<h.options.applicationServerKey.byteLength?x.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):x.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription."),ef(d,h,g,l,b,c)):h.expirationTime&&newDate(h.expirationTime)<=(newDate).valueOf()?(x.info("Push subscription is expired, creating new subscription."),ef(d,h,g,l,b,
c)):q&&Ca(q)?ef(d,h,g,l,b,c):null==m?(x.info("No push subscription creation date found, creating new subscription."),ef(d,h,g,l,b,c)):m<=(newDate).valueOf()?(x.info("Push subscription older than 6 months, creating new subscription."),ef(d,h,g,l,b,c)):(x.info("Device already subscribed to push, sending existing subscription to backend."),gf(d,h,b,k))}elseff(d,g,l,b,c)}).catch(function(h){x.error("Error checking current push subscriptions: "+h)})}).catch(function(g){x.error("ServiceWorker registration failed: "+
g)})},function(){varg="Permission for push notifications was ignored.";d.Ka()&&(g+=" The browser has automatically blocked further permission requests for a period (probably 1 week).");x.info(g);"function"===typeofc&&c(!0)},function(){x.info("Permission for push notifications was denied.");"function"===typeofc&&c(!1)})}}elsethis.vd&&(null==a||""===a?x.error("You must supply the safariWebsitePushId argument in order to use registerAppboyPushMessages on Safari"):(e=window.safari.pushNotification.permission(a),
jf(this,a,e,b,c)));elsex.info(this.ed)};
p.unsubscribe=function(a,b){varc=this;this.qa()?this.vc?navigator.serviceWorker.getRegistration().then(function(d){d&&d.pushManager.getSubscription().then(function(e){e&&(c.Fa.Sb(!0),e.unsubscribe().then(function(f){f?(x.info("Device successfully unsubscribed from push."),"function"===typeofa&&a()):(x.error("Failed to unsubscribe device from push."),"function"===typeofb&&b());c.rd||(d.unregister(),x.info("Service worker successfully unregistered."))}).catch(function(f){x.error("Push unsubscription error: "+f);
"function"===typeofb&&b()}))}).catch(function(e){x.error("Error unsubscribing from push: "+e);"function"===typeofb&&b()})}):this.vd&&(this.Fa.Sb(!0),x.info("Device unsubscribed from push."),"function"===typeofa&&a()):x.info(this.ed)};functionJe(a,b,c,d,e,f,g){this.Nb=a||0;this.cf=b||[];this.Ve=c||[];this.mf=d||[];this.Ld=e;if(null==e||""===e)this.Ld=null;this.ra=f||null;this.Hb=g||{}}Je.prototype.A=function(){return{s:"3.5.1",l:this.Nb,e:this.cf,a:this.Ve,p:this.mf,m:this.Ld,v:this.ra,c:this.Hb}};functionmf(a){this.b=a;this.xd=newNb;this.Ae=newNb;this.uc=null}functionIe(a){if(null==a.uc){varb=S(a.b,M.te);if(null!=b){varc=b.l;"3.5.1"!==b.s&&(c=0);b=newJe(c,b.e,b.a,b.p,b.m,b.v,b.c)}elseb=newJe;a.uc=b}returna.uc}functionlf(a,b){b=Ob(a.xd,b);a.Be&&a.xd.N(a.Be);a.Be=b}functionnf(a,b){Ob(a.Ae,b)}functionib(a,b){return-1!==Ie(a).Ve.indexOf(b)};functionof(a,b,c,d){this.b=a;this.f=b;this.J=c;this.Cb=1E3;d=parseFloat(d);isNaN(d)&&(d=1800);d<this.Cb/1E3&&(x.info("Specified session timeout of "+d+"s is too small, using the minimum session timeout of "+this.Cb/1E3+"s instead."),d=this.Cb/1E3);this.Lg=d}functionTe(a,b,c){returnnewE(a.f.o(),z.yg,b,c.ia,{d:Ia(b-c.Ib)})}of.prototype.Kb=function(){vara=zb(this.b,Cb.Ta);returnnull==a?null:a.ia};
functionab(a){varb=(newDate).valueOf(),c=b+1E3*a.Lg,d=zb(a.b,Cb.Ta);if(null==d||(b-d.Ib<a.Cb?0:d.Cd<b)){vare="Generating session start event with time "+b;if(null!=d){varf=d.Ob;f-d.Ib<a.Cb&&(f=d.Ib+a.ai);d=Te(a,f,d);null==d||bb(a.b,[d]);e+=" (old session ended "+f+")"}e+=". Will expire "+c.valueOf();x.info(e);c=newOa(pa.Ia(),c);e=newE(a.f.o(),z.ve,b,c.ia);null==e||bb(a.b,[e]);xb(a.b,Cb.Ta,c);null==S(a.b,M.hc)&&O(a.b,M.hc,b);returnc.ia}d.Ob=b;d.Cd=c;xb(a.b,Cb.Ta,d);returnd.ia};functionpf(a,b){varc=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(M.jd,!0),localStorage.getItem(M.jd)&&(localStorage.removeItem(M.jd),c=!0)}catch(e){if(("QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0<localStorage.length)c=!0;elsethrowe;}}catch(e){x.info("Local Storage not supported!")}vard=navigator.cookieEnabled||"cookie"indocument&&(0<document.cookie.length||-1<(document.cookie="test").indexOf.call(document.cookie,"test"));b=newMb(a,d&&!b,
c);returnnewwb(b,c?newHb(a):newLb)};functionqf(a,b){this.J=a;this.b=b}qf.prototype.o=function(){vara=zb(this.b,Cb.lc);if(null==a)returnnull;varb=a.ia,c=Pa(b);if(997<c){for(;997<c;)b=b.slice(0,b.length-1),c=Pa(b);a.ia=b;xb(this.b,Cb.lc,a)}returnb};qf.prototype.Sd=function(a,b){if(ib(this.J,a))returnx.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),!1;varc={};c[a]=b;returncb(this,"custom",c)};functioncb(a,b,c){returnFb(a.b,a.o(),b,c)}
functionuf(a,b){for(varc=[],d=newDate,e=S(a.b,M.ua)||{},f=!1,g=0;g<b.length;g++){varh=b[g].url;!a.Eg&&h&&sd(h)?x.error('Card with url "'+h+'" will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable this card.'):(null==b[g].expiresAt||b[g].expiresAt>=d)&&!b[g].dismissed?c.push(b[g]):f=e[b[g].id]=!0}f&&O(a.b,M.ua,e);returnc}p.yc=function(){for(vara=[],b=0;b<this.B.length;b++)a.push(this.B[b].A());O(this.b,M.wb,a)};
Bf.prototype.Lb=function(a){varb=!1;if(null!=a&&a.triggers){Ef(this);varc={},d={};this.T=[];for(vare=0;e<a.triggers.length;e++){for(varf=a.triggers[e],g=f.id,h=[],l=0;l<f.trigger_condition.length;l++)h.push(he(f.trigger_condition[l]));l=Ja(f.start_time);vark=Ja(f.end_time),m=f.priority,q=f.type,v=f.delay,t=f.re_eligibility,w=f.timeout,r=f.data;f=f.min_seconds_since_last_trigger;g=Aa(ve,q,"Could not construct Trigger from server data","Trigger.Types")?newre(g,h,l,k,m,q,r,v,t,w,f):null;null!=
this.Y[g.id]&&(g.Ca=this.Y[g.id],c[g.id]=this.Y[g.id]);null!=this.L[g.id]&&(d[g.id]=this.L[g.id]);for(h=0;h<g.ob.length;h++)if(fe(g.ob[h],de.V,null)){b=!0;break}null!=g&&this.T.push(g)}Ha(this.Y,c)||(this.Y=c,O(this.b,M.fc,this.Y));Ha(this.L,d)||(this.L=d,O(this.b,M.zb,this.L));a=[];for(c=0;c<this.T.length;c++)a.push(this.T[c].A());this.wd=(newDate).valueOf();O(this.b,M.kd,a);O(this.b,M.md,this.wd);b&&(x.info("Trigger with test condition found, firing test."),this.pa(de.V));this.pa(de.OPEN);b=this.oc;
functionFf(a,b,c,d,e,f){functiong(){Ef(a);vark=f.pop();if(null!=k)if(Gf(a,k,c,d,e,f),te(k,c)){varm="Server aborted in-app message display, but the timeout on fallback trigger "+k.id+"has already elapsed.";0<f.length&&(m+=" Continuing to fall back.");x.info(m);a.H.M(k.id,dd.ie);g()}elsex.info("Server aborted in-app message display. Falling back to lower priority "+k.type+" trigger action "+k.id),m=1E3*k.ab-((newDate).valueOf()-c),0<m?a.na.push(setTimeout(function(){Ff(a,k,c,d,e,f)},m)):Ff(a,
k,c,d,e,f)}functionh(k){Ef(a);varm=(newDate).valueOf();te(b,c)?b.type===ve.we?a.H.M(b.id,dd.yb):a.H.M(b.id,dd.ie):!1===navigator.onLine&&b.type===ve.Xc&&k.imageUrl?(x.info("Not showing "+b.type+" trigger action "+b.id+" due to offline state."),a.H.M(b.id,dd.Vf)):(null==b.Ca||b.Rb!==se&&m-b.Ca>=1E3*b.Rb)&&Hf(a,b,m,d)?(Pb(a.ha,[k]),Ef(a),b.Ca=m,a.Ba=m,O(a.b,M.ad,m),a.Y[b.id]=m,O(a.b,M.fc,a.Y)):x.info("Not displaying trigger "+b.id+" because display time fell outside of the acceptable time window.")}
switch(b.type){caseve.Xc:varl=Ec(b.data);if(null==l){x.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.H.M(b.id,dd.Ab);break}h(l);break;caseve.we:l=Af(b.data,h,g,c,b.Oa);if(null==l){x.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.H.M(b.id,dd.Ab);break}Pe(a.H,l,d,e);break;default:x.error("Trigger "+b.id+" was of unexpected type "+b.type+", ignoring."),a.H.M(b.id,dd.Ab)}}
Bf.prototype.pa=function(a,b,c){vard=this;if(Aa(de,a,"Cannot fire trigger action.","TriggerEvents"))if(0<this.H.lb)x.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),this.oc.push(arguments);else{(S(this.b,M.md)||0)>this.wd?Cf(this):Ef(this);for(vare=(newDate).valueOf(),f=e-this.Ba,g=!0,h=!0,l=[],k=0;k<this.T.length;k++){varm=this.T[k],q=e+1E3*m.ab;if((null==m.Ca||m.Rb!==se&&q-m.Ca>=1E3*m.Rb)&&(null==m.startTime||m.startTime<=e)&&(null==m.endTime||
m.endTime>=e)){for(varv=!1,t=0;t<m.ob.length;t++)if(fe(m.ob[t],a,b)){v=!0;break}v&&(g=!1,Hf(this,m,q,a)&&(h=!1,l.push(m)))}}if(g)x.info("Trigger event "+a+" did not match any trigger conditions.");elseif(h)x.info("Ignoring "+a+" trigger event because a trigger was displayed "+f/1E3+"s ago.");else{l.sort(function(r,F){returnr.priority-F.priority});varw=l.pop();null!=w&&(x.info("Firing "+w.type+" trigger action "+w.id+" from trigger event "+a+"."),Gf(this,w,e,a,c,l),0===w.ab?Ff(this,w,e,a,c,l):
functionHf(a,b,c,d){if(null==a.Ba)return!0;if(d===de.V)returnx.info("Ignoring minimum interval between trigger because it is a test type."),!0;b=b.kf;null==b&&(b=a.Ig);returnc-a.Ba>=1E3*b}functionGf(a,b,c,d,e,f){Ef(a);a.L[b.id]=a.L[b.id]||[];varg={};g.Ec=c;g.wf=d;varh;null!=e&&(h=e.A());g.yd=h;c=[];for(d=0;d<f.length;d++)c.push(f[d].id);g.Dd=c;a.L[b.id].push(g);O(a.b,M.zb,a.L)};varIf={GOOGLE_TAG_MANAGER:"gg",MPARTICLE:"mp",SEGMENT:"sg",TEALIUM:"tl",MANUAL:"manu",NPM:"npm",CDN:"wcd",SHOPIFY:"shp"};J.BrazeSdkMetadata=If;"undefined"===typeofconsole&&(window.console={log:function(){}});varJf=window.Element.prototype;"function"!==typeofJf.matches&&(Jf.matches=Jf.msMatchesSelector||Jf.mozMatchesSelector||Jf.webkitMatchesSelector||function(a){a=(this.document||this.ownerDocument).querySelectorAll(a);for(varb=0;a[b]&&a[b]!==this;)++b;return!!a[b]});
if("function"!==typeofwindow.CustomEvent){varKf=function(a,b){b=b||{bubbles:!1,cancelable:!1,detail:null};varc=document.createEvent("CustomEvent");c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail);returnc};Kf.prototype=window.Event.prototype;window.CustomEvent=Kf};varLf;"object"===typeofmodule&&module.exports?Lf=module.exports:(window.appboy||(window.appboy={}),Lf=window.appboy);varMf=Lf;varX=newfunction(a){functionb(n,u,y){n="The '"+n+"' "+u+" is deprecated.";y&&(n+=" Please use '"+y+"' instead.");x.warn(n)}functionc(){x.Jb();V&&(Pb(L),L.K(),w.clearData(!1),w=null,D.clearData(!1),D=null,t.K(),t=null,G.K(),G=null,r.K(),r=null,q.K(),q=null,k.Jb(),H=k=null,af(A),m=f=h=A=null,I=[],l=null);Q=V=!1}functiond(){if(Q)return!1;if(!V)throwError("Appboy must be initialized before calling methods.");return!0}vare={Ug:function(n,u,y){returnnewrf(n,u,y)},Wg:function(n,u){returnnewZe(n,
F,D,G,H,A,N=newNb,L=newNb,I=[],V=!1,Q=!1;return{Oh:function(n){returnOb(N,n)},Nh:function(n){returnOb(L,n)},Hd:function(n,u){if(V)returnx.info("Braze has already been initialized with an API key."),!0;x.Gd(null!=u&&u[C.Yf]);if(null==n||""===n||"string"!==typeofn)returnx.error("Braze requires a valid API key to be initialized."),!1;f=n;h=u||{};if(vb.lh&&!h[C.Af])returnx.info("Ignoring activity from crawler bot "+navigator.userAgent),Q=!0,!1;g=u=pf(n,h[C.ng]||!1);vary=newIb(null,!0);if(y.Z("ab.optOut"))returnx.info("Ignoring all activity due to previous opt out"),
y.store("ab.optOut","This-cookie-will-expire-in-"+Jb(y)),Q=!0,!1;y=ba(Ga(h));for(varB=y.next();!B.done;B=y.next())B=B.value,-1===Ba(C).indexOf(B)&&x.warn("Ignoring unknown initialization option '"+B+"'.");y=["mparticle","wordpress","tealium"];null!=h[C.re]&&(B=h[C.re],-1!==y.indexOf(B)?l=B:x.error("Invalid sdk flavor passed: "+B));varP=[];t=a.Bc();I.push(t);w=a.Xg(t,u);P.push(w);G=a.Bc();I.push(G);y=h[C.Rc];if(null==y||""===y||"string"!==typeofy)returnx.error("Braze requires a valid SDK Endpoint to be initialized. Please set the 'baseUrl' initialization option to the value of your SDK Endpoint."),
!1;y=y.replace(/(\.[a-z]+)[^\.]*$/i,"$1/api/v3");0!==y.indexOf("http")&&(y="https://"+y);B=h[C.ee]||h[C.Vc];h[C.Vc]&&b(C.Vc,"initialization option",C.ee);if(null!=B)if(Ca(B)){for(varR=[],Y=0;Y<B.length;Y++)Aa(Xe,B[Y],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&R.push(B[Y]);B=R}elsex.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),B=null;v=a.Wg(u,B);B=newmf(u);q=a.Bc();m=a.Ug(u,h[C.Zf],q);I.push(q);k=a.$g(f,y,"3.5.1",l,h,
function(Db){if(V)for(varXa=0;Xa<P.length;Xa++)P[Xa].Lb(Db)},u,v,B,m);R=h[C.ag];null==R&&(R=30);D=a.ah(R,G,u,k);P.push(D);R=!0===h[C.Zd]||!0===h[C.fe];null!=h.enableHtmlInAppMessages&&b("enableHtmlInAppMessages","initialization option","allowUserSuppliedJavascript");r=a.Bc();I.push(r);F=a.Vg(r,k,u,B,R);P.push(F);nf(B,function(){F.Na()});Se(k,function(){F.Na()});k.Hd();H=a.Zg(k.rb(),f,v,y,h,B,u);A=a.Yg(k.rb());u="Initialized ";h&&h[C.Rc]&&(u+='for the Braze backend at "'+h[C.Rc]+'" ');x.info(u+('with API key "'+
n+'".'));n=vb.language;u=!1;h&&(h[C.$c]&&(b(C.$c,"initialization option",C.cd),n=h[C.$c],u=!0),h[C.cd]&&(n=h[C.cd],u=!0));td(n,u);Pb(N,h);returnV=!0},Jb:function(){x.info("Destroying appboy instance");g=null;c()},gh:function(n){d()&&(null==n&&x.error("getDeviceId must be supplied with a callback. e.g., appboy.getDeviceId(function(deviceId) {console.log('the device id is ' + deviceId)})"),"function"===typeofn&&n(Be(v).id))},Yd:function(){x.Yd()},Td:function(n){x.Td(n)},Lc:function(){if(d()){k.Lc(H);
varn=za.ba,u=newqa(n);ua(u,n.G.oe,function(y,B){functionP(){D.pa(de.ne,[Y],Db)}varR=B.lastClick,Y=B.trackingString;x.info("Firing push click trigger from "+Y+" push click at "+R);varDb=We(k,R,Y);Ue(k,P,P);va(u,n.G.oe,y)});wa(u,n.G.Ef,function(y){xf(F,y)});wa(u,n.G.me,function(y){varB=k;y=ba(y);for(varP=y.next();!P.done;P=y.next())if(P=P.value,P.api_key!==B.$){varR=za.ba;(newqa(R)).setItem(R.G.me,pa.Ia(),P)}elseDe(B,P)})}},$a:function(n,u){if(d())if(null==n||0===n.length||n!==n)x.error("changeUser requires a non-empty userId.");
elseif(997<Pa(n))x.error('Rejected user id "'+n+'" because it is longer than 997 bytes.');else{if(null!=u&&!Qa(u,"set signature for new user","signature",!1))return!1;k.$a(n.toString(),[w,F,D],H,u)}},rb:function(){if(d())returnk.rb()},ih:function(){if(d())returnh[C.be]},tb:function(n){d()&&k.tb(n)},Nc:function(){d()&&k.Nc()},uf:function(n){if(d())returnOb(t,n)},Fc:function(){if(d())returnw.Fc()},Na:function(n,u){if(d())returnF.Na(n,u)},tf:function(n){if(d())returnOb(r,n)},pb:function(){if(d())returnF.pb(!1)},
Ph:function(n){if(d())returnb("subscribeToNewInAppMessages","method","subscribeToInAppMessage"),Ob(G,n)},vf:function(n){if(d())return"function"!==typeofn?null:Ob(G,function(u){n(u[0]);returnu.slice(1)})},Qb:function(n){if(d())returnninstanceofW||ninstanceofFc?k.Qb(n).h:(x.error("inAppMessage must be an InAppMessage object"),!1)},Jc:function(n){if(d()){if(!(ninstanceofW))returnx.error("inAppMessage must be an InAppMessage object"),!1;varu=k.Jc(n);if(u.h)for(vary=0;y<u.j.length;y++)D.pa(de.ec,
[n.triggerId],u.j[y]);returnu.h}},Ic:function(n,u){if(d()){if(!(ninstanceofGc))returnx.error("button must be an InAppMessageButton object"),!1;if(!(uinstanceofW))returnx.error("inAppMessage must be an InAppMessage object"),!1;vary=k.Ic(n,u);if(y.h)for(varB=0;B<y.j.length;B++)D.pa(de.ec,[u.triggerId,n.id],y.j[B]);returny.h}},Pb:function(n,u,y){if(d()){if(!(ninstanceofQc))returnx.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;y=k.Pb(n,u,y);
if(y.h)for(varB=0;B<y.j.length;B++)D.pa(de.ec,[n.triggerId,u],y.j[B]);returny.h}},M:function(n,u){if(d())returnninstanceofW||ninstanceofFc?Aa(dd,u,u+" is not a valid in-app message display failure","InAppMessage.DisplayFailures")?k.M(n.triggerId,u).h:!1:(x.error("inAppMessage must be an InAppMessage object"),!1)},Ma:function(n,u){if(d()){if(!Ca(n))returnx.error("cards must be an array"),!1;for(vary=0;y<n.length;y++)if(!(n[y]instanceofcc))returnx.error("Each card in cards must be a Card object"),
!1;returnk.Ma(n,u).h}},La:function(n,u){if(d())returnninstanceofcc?k.La(n,u).h:(x.error("card must be a Card object"),!1)},Hc:function(n){if(d())returnninstanceofcc?k.Hc(n).h:(x.error("card must be a Card object"),!1)},jf:function(){if(d())returnVe(k,ya.$f).h},hf:function(){if(d())returnVe(k,ya.Kf).h},N:function(n){if(d()){for(varu=ba(I),y=u.next();!y.done;y=u.next())y.value.N(n);N.N(n);L.N(n)}},K:function(){if(d())for(varn=ba(I),u=n.next();!u.done;u=n.next())u.value.K()},Jd:function(n,
(B=1);if(null==n||0>=n.length)returnx.error('logPurchase requires a non-empty productId, got "'+n+'", ignoring.'),!1;if(!Ra(n,"log purchase","the purchase name"))return!1;varR=parseFloat(u);if(isNaN(R))returnx.error("logPurchase requires a numeric price, got "+u+", ignoring."),!1;R=R.toFixed(2);u=parseInt(B);if(isNaN(u))returnx.error("logPurchase requires an integer quantity, got "+B+", ignoring."),!1;if(1>u||100<u)returnx.error("logPurchase requires a quantity >1 and <100, got "+u+", ignoring."),
!1;y=y.toUpperCase();if(-1==="AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BRL BSD BTC BTN BWP BYR BZD CAD CDF CHF CLF CLP CNY COP CRC CUC CUP CVE CZK DJF DKK DOP DZD EEK EGP ERN ETB EUR FJD FKP GBP GEL GGP GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS IMP INR IQD IRR ISK JEP JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LTL LVL LYD MAD MDL MGA MKD MMK MNT MOP MRO MTL MUR MVR MWK MXN MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLL SOS SRD STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD UYU UZS VEF VND VUV WST XAF XAG XAU XCD XDR XOF XPD XPF XPT YER ZAR ZMK ZMW ZWL".split(" ").indexOf(y))returnx.error("logPurchase requires a valid currencyCode, got "+
y+", ignoring."),!1;varY=ba(Ta(P,"logPurchase","purchaseProperties",'log purchase "'+n+'"',"purchase"));B=Y.next().value;Y=Y.next().value;if(!B)return!1;B=k.Kd(n,R,y,u,Y);if(B.h)for(x.info("Logged "+u+" purchase"+(1<u?"s":"")+' of "'+n+'" for '+y+" "+R+"."),y=0;y<B.j.length;y++)D.pa(de.fd,[n,P],B.j[y]);returnB.h}},qa:function(){if(d())returnH.qa()},Ka:function(){if(d())returnH.Ka()},Id:function(n,u,y){d()&&(b("isPushGranted","method","isPushPermissionGranted"),H.Id(n,u,y))},Mb:function(){if(d())returnH.Mb()},
ph:function(n,u,y){if(d())returnH.subscribe(y,function(B,P,R){k.tb();"function"===typeofn&&n(B,P,R)},u)},Uh:function(n,u){if(d())returnH.unsubscribe(n,u)},Tb:function(n){if(d()){if(""===n||!Qa(n,"set signature","signature",!1))return!1;m.Tb(n);return!0}},Xd:function(n){if(d())returnm.Xd(n)},Sh:function(){d()&&(b("trackLocation","method"),A.watchPosition())},zd:function(n){if(d()){if(!Ca(n))returnx.error("Cannot set SDK metadata because metadata is not an array."),!1;for(varu=ba(n),y=u.next();!y.done;y=
u.next())if(!Aa(If,y.value,"sdkMetadata contained an invalid value.","BrazeSdkMetadata"))return!1;k.zd(n);return!0}},Mh:function(){b("stopWebTracking","method","disableSDK");null!=k&&k.tb();varn=newIb(null,!0);n.store("ab.optOut","This-cookie-will-expire-in-"+Jb(n));n=za.ba;(newqa(n)).setItem(n.G.xb,n.kb,!0);c();Q=!0},bh:function(){null!=k&&k.tb();varn=newIb(null,!0);n.store("ab.optOut","This-cookie-will-expire-in-"+Jb(n));n=za.ba;(newqa(n)).setItem(n.G.xb,n.kb,!0);c();Q=!0},vh:function(){b("resumeWebTracking",
"method","enableSDK");(newIb(null,!0)).remove("ab.optOut");varn=za.ba;va(newqa(n),n.G.xb,n.kb);c()},dh:function(){(newIb(null,!0)).remove("ab.optOut");varn=za.ba;va(newqa(n),n.G.xb,n.kb);c()},mh:function(){return!!(newIb(null,!0)).Z("ab.optOut")},Xh:function(){if(null==g)throwError("Appboy must be initialized before calling methods.");g.clearData();for(varn=Ga(za),u=0;u<n.length;u++)(newqa(za[n[u]])).clearData();V&&(w.clearData(!0),D.clearData(!0))}}},Z={},Nf;for(NfinJ)Z[Nf]=J[Nf];
"-");if(null==document.getElementById(m)){varv=document.createElement("style");v.innerHTML=qd.$e;v.id=m;null!=l&&v.setAttribute("nonce",l);document.getElementsByTagName("head")[0].appendChild(v)}e||(document.addEventListener("keydown",q,!1),a.Nh(function(){document.removeEventListener("keydown",q)}))});return{Tg:function(){null==g&&(g=a.vf(function(m){a.display.sf(m)}));returng},sf:function(m,q,v){if(null==m)return!1;if(minstanceofFc)returnx.info("User received control for a multivariate test, logging to Braze servers."),
a.Qb(m),!0;if(!(minstanceofW))return!1;vart=minstanceofQc;if(t&&!m.Th&&!f)returnx.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable these messages.'),a.M(m,dd.ge),!1;null==q&&(q=document.body);if(m.Ja()&&0<q.querySelectorAll(".ab-modal-interactions").length)returnx.info("Cannot show in-app message '"+m.message+"' because another message is being shown."),a.M(m,dd.Bf),!1;if(bc.nh()){varw=bc.hh();if(w===bc.Sa.jc&&m.orientation===
Zc||w===bc.Sa.Zc&&"PORTRAIT"===m.orientation)returnx.info("Not showing "+("PORTRAIT"===m.orientation?"portrait":"landscape")+" in-app message '"+m.message+"' because the screen is currently "+(w===bc.Sa.jc?"portrait":"landscape")),a.M(m,dd.rg),!1}if(!f){w=!1;if(m.buttons&&0<m.buttons.length)for(varr=m.buttons,F=0;F<r.length;F++)r[F].clickAction===$c&&(w=sd(r[F].uri));elsem.clickAction===$c&&(w=sd(m.uri));if(w)returnx.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable these actions.'),
D=newwd(w(q,v),newDate);varG=D.aa(a,d);if(F){if(null==D.lastUpdated||6E4<(newDate).valueOf()-D.lastUpdated.valueOf())x.info("Cached feed was older than max TTL of 60000 ms, requesting an update from the server."),Cd(D,a,G);varH=(newDate).valueOf();q=a.uf(function(A){varN=G.querySelectorAll(".ab-refresh-button")[0];if(null!=N){varL=500,I=parseInt(G.getAttribute(Dd));L=isNaN(I)?L-((newDate).valueOf()-H):L-((newDate).valueOf()-I);setTimeout(function(){N.className=N.className.replace(/fa-spin/g,
G&&(A=H[N]);null!=A?(xd(a,A),A.parentNode.replaceChild(r,A)):G.appendChild(r);setTimeout(function(){r.className=r.className.replace("ab-hide","ab-show")},0);t&&r.focus();a.hf();Bd(w,a,r)}vart=!1;null==m&&(m=document.body,t=!0);varw=null;w=a.pb();"function"===typeofq&&Fd(w,q(w.cards.slice()),w.lastUpdated,null,a,d);varr=w.aa(a,d);(null==w.lastUpdated||6E4<(newDate).valueOf()-w.lastUpdated.valueOf())&&(null==h||6E4<(newDate).valueOf()-h.valueOf())&&(x.info("Cached content cards were older than max TTL of 60000 ms, requesting a sync from the server."),