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={Kg:!0},la={};try{la.__proto__=ka;ja=la.Kg;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.Vh||window.Ya||window.Xh;if(b&&b.oh&&b.oh.id)returna.D.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}catch(c){returna.D.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.D.info("Upgrading indexedDB "+a.C.P+" to v"+a.C.VERSION+"...");e=e.target.result;for(varfina.C.H)a.C.H.hasOwnProperty(f)&&!e.objectStoreNames.contains(a.C.H[f])&&e.createObjectStore(a.C.H[f])};d.onsuccess=function(e){varf=e.target.result;f.onversionchange=function(){f.close();"function"===typeofc&&c();a.D.error("Needed to close the database unexpectedly because of an upgrade in another tab")};
b(f)};d.onerror=function(e){a.D.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.D.error("Could not store object "+b+" in "+a+" on indexedDB "+f.C.P);"function"===typeofe&&e()},g.onsuccess=function(){"function"===typeofd&&d()}):(f.D.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.D.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.D.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.D.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.D.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.D.error("Could not delete record "+c+" from "+b+" on indexedDB "+a.C.P)}:a.D.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.D.info("Cursor closed midway through for "+b+" on indexedDB "+a.C.P),c(f)):a.D.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.D.error("Could not retrieve objects from "+
qa.prototype.clearData=function(){if(!sa(this))return!1;vara=[],b;for(binthis.C.H)this.C.H.hasOwnProperty(b)&&this.C.H[b]!==this.C.H.cd&&a.push(this.C.H[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.D.error("Could not clear "+this.source.name+" on indexedDB "+c.C.P)};d.onerror=function(){c.D.error("Could not clear object stores on indexedDB "+c.C.P)}})};varxa={Ed:function(a){if(void0!==a||void0===xa.Ea)xa.Ea=!!a;xa.De||(xa.De=!0)},Fb:function(){xa.De=!1;xa.Ea=void0;xa.D=void0},Rd:function(a){"function"!==typeofa?xa.info("Ignoring setLogger call since logger is not a function"):(xa.Ed(),xa.D=a)},Wd:function(){xa.Ed();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.D?xa.D(a):console.log(a))},warn:function(a){xa.Ea&&(a="Appboy SDK Warning: "+
lg:"openInAppMessagesInNewTab",mg:"openNewsFeedCardsInNewTab",pg:"requireExplicitInAppMessageDismissal",Tf:"doNotLoadFontAwesome",pe:"sdkFlavor",Xc:"language",kg:"openCardsInNewTab"};functionAa(a,b,c,d){a=Ba(a);return-1===a.indexOf(b)?(w.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.wc=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.Eb=c;this.Jb=(newDate).valueOf();this.zd=b}Oa.prototype.A=function(){return{g:this.ia,e:this.zd,c:this.Eb,l:this.Jb}};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)||w.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');returnd}functionRa(a,b,c){vard=null!=a&&"string"===typeofa&&(""===a||a.match(Sa));d||w.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');returnd}
functionTa(a,b,c,d,e){null==a&&(a={});if("object"!==typeofa||Ca(a))returnw.error(b+" requires that "+c+" be an object. Ignoring "+e+"."),[!1,null];b=JSON.stringify(a);if(Pa(b)>Ua)returnw.error("Could not "+d+" because "+c+" was greater than the max size of "+Va+"."),[!1,null];try{varf=JSON.parse(b)}catch(l){returnw.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,k="the "+e+' property "'+g+'"';(b=Ea(c)||Ca(c)?Xa(c,f[g]):Ya(c))||w.error("Cannot "+h+" because "+k+' "'+c+'" is invalid.');if(!b)return[!1,null]}}return[!0,f]}functionXa(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])),!Xa(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])),!Xa(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";varI={};functionM(a,b){this.f=a;this.G=b}p=M.prototype;p.o=function(a){null==a&&w.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.Lg=function(a,b){if(!Qa(a,"add alias","the alias",!1)||0>=a.length)returnw.error("addAlias requires a non-empty alias"),!1;if(!Qa(b,"add alias","the label",!1)||0>=b.length)returnw.error("addAlias requires a non-empty label"),!1;varc=this.G,d=new$a,e=ab(c.F),f=x.zf;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.wh=function(a){returnQa(a,"set first name","the firstName",!0)?cb(this.f,"first_name",a):!1};
p.Bh=function(a){returnQa(a,"set last name","the lastName",!0)?cb(this.f,"last_name",a):!1};p.uh=function(a){returnnull===a||"string"===typeofa&&null!=a.toLowerCase().match(Za)?cb(this.f,"email",a):(w.error('Cannot set email address - "'+a+'" did not pass RFC-5322 validation.'),!1)};p.xh=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.sh=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?(w.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.qh=function(a){returnQa(a,"set country","the country",!0)?cb(this.f,"country",a):!1};
p.yh=function(a){returnQa(a,"set home city","the homeCity",!0)?cb(this.f,"home_city",a):!1};p.Ah=function(a){returnQa(a,"set language","the language",!0)?cb(this.f,"language",a):!1};p.vh=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.Sd=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.Ch=function(a){returnQa(a,"set phone number","the phoneNumber",!0)?null===a||a.match(fb)?cb(this.f,"phone",a):(w.error('Cannot set phone number - "'+a+'" did not pass validation.'),!1):!1};p.ph=function(a){returncb(this.f,"image_url",a)};
p.Kc=function(a,b,c,d,e){if(null==a||null==b)returnw.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)?(w.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):90<a||-90>a||180<b||-180>b?(w.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?(w.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.G.Kc(this.f.o(),a,b,d,c,e).h};
p.Qd=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.G,x.Mf,a,b).h}returnthis.f.Qd(a,b)};
p.Mg=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.G,x.Jf,a,b).h};p.jh=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.G,x.Lf,a,b).h};
p.eh=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)?(w.error('Cannot increment custom user attribute because the given incrementValue "'+b+'" is not an integer.'),!1):gb(this.G,x.Kf,a,c).h};p.Nd=function(a,b,c,d,e){this.f.Nd(a,b,c,d,e);hb(this.G)};p.Nb=function(a){this.f.Nb(a)};
p.rh=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)returnw.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.G,e=c;c=new$a;if(ib(d.J,a))w.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),c.h=!1;else{varf=ab(d.F);
if(null===b&&null===e){varg=x.gg;a={key:a}}elseg=x.fg,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.Ng=function(a){return!Qa(a,"add user to subscription group","subscription group ID",!1)||0>=a.length?(w.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):jb(this.G,a,kb).h};
p.kh=function(a){return!Qa(a,"remove user from subscription group","subscription group ID",!1)||0>=a.length?(w.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):jb(this.G,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";I.User=M;I.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.Zd&&(c=a.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),null!=c))returnc=c.slice(1),c[0]=c[0].replace("OPR",ob.je),c[0]=c[0].replace("EdgA",ob.Tc),"Edg"===c[0]&&(c[0]=ob.Tc),[c[0],c[1]];if(b[1]===ob.fd&&(c=a.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),null!=c))returnc=c.slice(1),c[0]=c[0].replace("EdgiOS",ob.Tc),
functionAb(a){varb=a.R.Z(N.Rb);a.R.remove(N.Rb);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,x.Vc,(newDate).valueOf(),null,{e:e}));returna}
functionO(a,b,c){Aa(N,b,"StorageManager cannot store object.","StorageManager.KEYS.OBJECTS")&&a.R.store(b,c)}functionS(a,b){returnAa(N,b,"StorageManager cannot retrieve object.","StorageManager.KEYS.OBJECTS")?a.R.Z(b):!1}functionBb(a,b){Aa(N,b,"StorageManager cannot remove object.","StorageManager.KEYS.OBJECTS")&&a.R.remove(b)}wb.prototype.clearData=function(){for(vara=Ga(Cb),b=Ga(N),c=0;c<a.length;c++)this.nc.remove(Cb[a[c]]);for(a=0;a<b.length;a++)this.R.remove(N[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.Ge)returnw.info("Storage failure: object is \u2248"+d+" bytes which is greater than the max of "+this.Ge),!1;this.sd[a]=c;return!0};Lb.prototype.Z=function(a){a=this.sd[a];returnnull==a?null:a.value};
functionhc(a){if(a[U.ne])returnnull;varb=a[U.wa],c=a[U.TYPE],d=a[U.za],e=a[U.Ua],f=a[U.xa],g=a[U.Ra],h=Ja(a[U.ca]);vark=a[U.ba]===gc?null:Ja(a[U.ba]);varl=a[U.URL],m=a[U.ya],t=a[U.sa],q=a[U.ka],v=a[U.la],r=a[U.va],z=a[U.ta];a=a[U.V]||!1;if(c===ic.te||c===ic.cc)b=newjc(b,d,e,f,g,null,h,null,k,l,m,t,q,v,r,z);elseif(c===ic.Tb)b=newkc(b,d,e,f,g,null,h,null,k,l,m,t,q,v,r,z);elseif(c===ic.Sb)b=newlc(b,d,f,null,h,null,k,l,m,t,q,v,r,z);elseif(c===ic.Pc)b=newmc(b,d,h,k,q,v);elsereturnw.error("Ignoring card with unknown type "+
elseif(b===Oc||b===Pc)c=newQc(c,f,g,h,k,q,v,B,P,Q,R,Y,a.message_fields),c.Mh=a.trusted||!1;else{w.error("Ignoring message with unknown type "+b);return}c.jf=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,{yd:{configurable:!0,enumerable:!0,get:function(){return"START"}}});I.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?w.error(a):w.info(a),a="en");vd=a}varud,vd;functionwd(a,b){this.cards=a;this.lastUpdated=b}p=wd.prototype;p.bf=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].$(f,g,c)),e=e||!k):w.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.ea=function(a){if(null==this.bb||null==this.eb)return!1;varb=a[1];returna[0]===this.bb&&this.eb.ea(b)};Yd.prototype.A=function(){return{e:this.bb,pf:this.eb.A()}};functionZd(a,b){this.Za=a;this.Cb=b}Zd.prototype.ea=function(a){if(null==this.Za)return!1;varb=$d(a[0],this.Za);if(!b)return!1;varc=null==this.Cb||0===this.Cb.length;if(null!=this.Cb)for(vard=0;d<this.Cb.length;d++)if(this.Cb[d]===a[1]){c=!0;break}returnb&&c};Zd.prototype.A=function(){returnthis.Za};functionae(a){this.cb=a}ae.prototype.ea=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.ea=function(a){if(null==this.cb||null==this.eb)return!1;varb=a[1];returna[0]===this.cb&&this.eb.ea(b)};be.prototype.A=function(){return{id:this.cb,pf:this.eb.A()}};functionce(a){this.Za=a}ce.prototype.ea=function(a){returnnull==this.Za?!0:$d(a[0],this.Za)};ce.prototype.A=function(){returnthis.Za};varde={OPEN:"open",dd:"purchase",le:"push_click",Qc:"custom_event",$b:"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.ea(c))}function$d(a,b){varc=null;try{c=window.atob(a)}catch(d){returnw.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)||w.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.mb.length;b++)a.push(this.mb[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.Mb,tm:this.Oa,ss:this.ff,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={Uc:"inapp",se:"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):w.error("This browser does not have any supported ajax options!")),null!=b){vard=function(){"function"===typeofa.error&&a.error(b.status);"function"===typeofa.vc&&a.vc(!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.aa.Ab||(e+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.');
w.error("SDK Authentication failed "+e);Ee(a,b);Pb(a.aa.ve,c);return!1}if(f){e=f;switch(e){case"empty_response":returnbb(a.b,[newE(a.f.o(),x.Vc,(newDate).valueOf(),a.F.Cd,{e:"Received successful response with empty body."})]),w.info("Received successful response with empty body."),!1;case"invalid_json_response":returnbb(a.b,[newE(a.f.o(),x.Vc,(newDate).valueOf(),a.F.Cd,{e:"Received successful response with invalid JSON: "+c.response})]),w.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.yb;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"}w.error("Backend error: "+e)}return!1}
functionFe(a,b,c,d,e,f,g,h){null==d&&(d=!0);d&&Ge(a);vark=Ab(a.b),l=Gb(a.b),m=He(a.F);if(0<k.length)for(vart=a.f.o(),q=ba(k),v=q.next();!v.done;v=q.next()){v=v.value;varr=null==v.gb&&null==t||v.gb===t;v.type===x.re&&r&&(m=!0)}if(!h&&!m&&a.Va>=a.wg)w.info("Declining to flush data due to 50 consecutive authentication failures");elseif(h=c||m,!d||0!==k.length||0!==l.length||b||h){varz=!1,H=function(A,L){varJ=!1;xe({url:""+a.yb+"/data/",data:A,headers:L,h:function(G){null!=A.respond_with&&A.respond_with.triggers&&
Le(a,!1,!1,J));F[J][A]||(F[J][A]=[]);F[J][A].push(L)};k=ba(k);for(h=k.next();!h.done;h=k.next())b("events",h.value.wc());l=ba(l);for(k=l.next();!k.done;k=l.next())b("attributes",k.value);l=!1;k={};for(varKinF)a.aa.Ab&&K!==c?Ee(a,F[K]):(k.rb=Ae(a,F[K]),k.Mc=Me(a,k.rb),Ne(k.rb,function(A){returnfunction(){returnH(A.rb,A.Mc)}}(k)),l=!0),k={rb:k.rb,Mc:k.Mc};d&&!l?Ke(a):m&&(w.info("Invoking new session subscriptions"),Pb(a.qd))}elseKe(a),"function"===typeofg&&g(!0)}
"getting user personalization for message "+b.Pa;if((newDate).valueOf()-b.Ac>b.Oa)a.M(b.Pa,dd.vb);else{varl=Math.min(b.Oa,a.xg),m=a.yg;null==e&&(e=m);vart=Math.min(l,we(m,3*e));k+=". Retrying in "+t+"ms";setTimeout(function(){Pe(a,b,c,d,t)},t)}Oe(h,k)}})})}p=ye.prototype;
functionQe(a){if(null==a.campaignId&&null==a.cardId&&null==a.triggerId)returnw.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.Hc=function(a){varb=this,c=this.F.Cd(),d=ab(this.F);if(c=c!==d)yb(this.b,Cb.Rc),yb(this.b,Cb.hc);Fe(this,null,!1,null,null,null);hb(this);if(c&&null!=a&&(a.Hb()||a.Ka())){vare=function(){a.Dg?w.info("Push token maintenance is disabled, not refreshing token for backend."):a.subscribe()};c=za.ga;ua(newqa(c),c.H.ed,function(f,g){g&&e()},function(){varf=S(b.b,N.ec);(null==f||f)&&e()})}};
l||bb(f,[l])}}d?this.aa.Lc(d):(d=this.aa,Bb(d.b,N.ub),f=za.ga,va(newqa(f),f.H.oe,d.ue));for(d=0;d<b.length;d++)b[d].$a(null==e);null!=e&&Bb(this.b,N.sb);Bb(this.b,N.Yb);this.Hc(c);w.info('Changed user to "'+a+'".')}elsew.info('Current user is already "'+a+'". Doing nothing.')};p.pb=function(){returnnewM(this.f,this)};p.Ob=function(a){Ge(this);ab(this.F);Fe(this,null,null,null,null,null,a,!0)};p.Jc=function(){ab(this.F);Fe(this,!0)};
functionUe(a,b,c){ab(a.F);w.info("Requesting explicit trigger refresh.");Fe(a,null,!0,null,b,c)}p.Hd=function(a,b){varc=new$a,d=ab(this.F);if(-1!==Ie(this.J).Ze.indexOf(a))returnw.info('Custom Event "'+a+'" is blocklisted, ignoring.'),c;c.j.push(newE(this.f.o(),x.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.F);if(ib(a.J,c))returnw.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.Id=function(a,b,c,d,e){varf=new$a,g=ab(this.F);if(-1!==Ie(this.J).hf.indexOf(a))returnw.info('Purchase "'+a+'" is blocklisted, ignoring.'),f;f.j.push(newE(this.f.o(),x.ag,(newDate).valueOf(),g,{pid:a,c:c,p:b,q:d,pr:e}));f.h=bb(this.b,f.j);returnf};
p.Lb=function(a){varb=new$a,c=ab(this.F);if(ainstanceofFc)b.j.push(newE(this.f.o(),x.If,(newDate).valueOf(),c,{trigger_ids:[a.triggerId]}));else{if(!a.Md())returnw.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(),x.$f,(newDate).valueOf(),c,a))}b.h=bb(this.b,b.j);returnb};
p.Fc=function(a){varb=new$a,c=ab(this.F);if(!a.fb())returnw.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(),x.ie,(newDate).valueOf(),c,a));b.h=bb(this.b,b.j);returnb};
p.Ec=function(a,b){varc=new$a,d=ab(this.F);if(!a.fb())returnw.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)returnw.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(),x.ge,(newDate).valueOf(),d,b));c.h=bb(this.b,c.j);returnc};
p.Kb=function(a,b,c){vard=new$a,e=ab(this.F);if(!a.fb(c))returnw.info("This in-app message has already received a click. Ignoring analytics event."),d;a=Qe(a);if(null==a)returnd;c=x.ie;null!=b&&(a.bid=b,c=x.ge);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.F);a={trigger_ids:[a],error_code:b};c.j.push(newE(this.f.o(),x.Zf,(newDate).valueOf(),d,a));c.h=bb(this.b,c.j);returnc};
p.La=function(a,b){varc=new$a,d=ab(this.F);a.fb();if(null==a.url||""===a.url)returnw.info("Card "+a.id+" has no url. Not logging click to Braze servers."),c;if(b){vare=S(this.b,N.hb)||{};e[a.id]=!0;O(this.b,N.hb,e)}a=Re([a]);if(null==a)returnc;c.j.push(newE(this.f.o(),b?x.Df:x.Bf,(newDate).valueOf(),d,a));c.h=bb(this.b,c.j);returnc};
p.Dc=function(a){varb=new$a,c=ab(this.F);if(!a.Ld())returnw.info("Card "+a.id+" refused this dismissal. Ignoring analytics event."),b;vard=S(this.b,N.ua)||{};d[a.id]=!0;O(this.b,N.ua,d);a=Re([a]);if(null==a)returnb;b.j.push(newE(this.f.o(),x.Ef,(newDate).valueOf(),c,a));b.h=bb(this.b,b.j);returnb};functionVe(a,b){varc=new$a,d=ab(a.F);c.j.push(newE(a.f.o(),x.bg,(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(l){w.info("Intl.DateTimeFormat threw an error, probably https://bugs.chromium.org/p/chromium/issues/detail?id=811403, falling back to GTM offset: "+l.message)}g=e.getTimezoneOffset();e=parseInt(g/60);varh=parseInt(g%60),k="GMT";0!==g&&(k=k+(0>g?"+":"-")+(("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(h)).slice(-2)));g=k}b[d]=g;break;case"userAgent":b[d]=
p.Gd=function(a,b,c){vard=this;c=this.Je||c;this.qa()?this.rc?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?w.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):(w.error("Failed to unsubscribe device from push."),"function"===typeoff&&f(!1))}).catch(function(g){w.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.Fg,b,{api_key:a.Y,device_id:Be(a.ic).id},function(f){"granted"===f.permission&&a.Fa.Sd("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&&(w.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:w.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){w.info("Device successfully subscribed to push.");gf(a,g,d,newDate)}).catch(function(g){a.Ka()?(w.info("Permission for push notifications was denied."),"function"===typeofe&&e(!1)):w.error("Push subscription failed: "+g)})}
p.subscribe=function(a,b,c){vard=this;a=this.Je||a;if(this.qa())if(this.rc){if(!this.pd&&null!=window.location){vare=this.Le;-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))){w.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).Ib)w.info("Waiting for VAPID key from server config before subscribing to push."),lf(this.J,function(){d.subscribe(a,b,c)});else{varf=this.Hb();kf(function(){f||d.Fa.Sd("opted_in");df(d).then(function(g){null==g?(w.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?w.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):w.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,k,b,c)):h.expirationTime&&newDate(h.expirationTime)<=(newDate).valueOf()?(w.info("Push subscription is expired, creating new subscription."),ef(d,h,g,k,b,
c)):t&&Ca(t)?ef(d,h,g,k,b,c):null==m?(w.info("No push subscription creation date found, creating new subscription."),ef(d,h,g,k,b,c)):m<=(newDate).valueOf()?(w.info("Push subscription older than 6 months, creating new subscription."),ef(d,h,g,k,b,c)):(w.info("Device already subscribed to push, sending existing subscription to backend."),gf(d,h,b,l))}elseff(d,g,k,b,c)}).catch(function(h){w.error("Error checking current push subscriptions: "+h)})}).catch(function(g){w.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).");w.info(g);"function"===typeofc&&c(!0)},function(){w.info("Permission for push notifications was denied.");"function"===typeofc&&c(!1)})}}elsethis.td&&(null==a||""===a?w.error("You must supply the safariWebsitePushId argument in order to use registerAppboyPushMessages on Safari"):(e=window.safari.pushNotification.permission(a),
p.unsubscribe=function(a,b){varc=this;this.qa()?this.rc?navigator.serviceWorker.getRegistration().then(function(d){d&&d.pushManager.getSubscription().then(function(e){e&&(c.Fa.Nb(!0),e.unsubscribe().then(function(f){f?(w.info("Device successfully unsubscribed from push."),"function"===typeofa&&a()):(w.error("Failed to unsubscribe device from push."),"function"===typeofb&&b());c.pd||(d.unregister(),w.info("Service worker successfully unregistered."))}).catch(function(f){w.error("Push unsubscription error: "+f);
"function"===typeofb&&b()}))}).catch(function(e){w.error("Error unsubscribing from push: "+e);"function"===typeofb&&b()})}):this.td&&(this.Fa.Nb(!0),w.info("Device unsubscribed from push."),"function"===typeofa&&a()):w.info(this.bd)};functionJe(a,b,c,d,e,f,g){this.Ib=a||0;this.Ze=b||[];this.Re=c||[];this.hf=d||[];this.Jd=e;if(null==e||""===e)this.Jd=null;this.ra=f||null;this.Db=g||{}}Je.prototype.A=function(){return{s:"3.4.1",l:this.Ib,e:this.Ze,a:this.Re,p:this.hf,m:this.Jd,v:this.ra,c:this.Db}};functionmf(a){this.b=a;this.vd=newNb;this.we=newNb;this.qc=null}functionIe(a){if(null==a.qc){varb=S(a.b,N.qe);if(null!=b){varc=b.l;"3.4.1"!==b.s&&(c=0);b=newJe(c,b.e,b.a,b.p,b.m,b.v,b.c)}elseb=newJe;a.qc=b}returna.qc}functionlf(a,b){b=Ob(a.vd,b);a.xe&&a.vd.N(a.xe);a.xe=b}functionnf(a,b){Ob(a.we,b)}functionib(a,b){return-1!==Ie(a).Re.indexOf(b)};functionof(a,b,c,d){this.b=a;this.f=b;this.J=c;this.zb=1E3;d=parseFloat(d);isNaN(d)&&(d=1800);d<this.zb/1E3&&(w.info("Specified session timeout of "+d+"s is too small, using the minimum session timeout of "+this.zb/1E3+"s instead."),d=this.zb/1E3);this.Hg=d}functionTe(a,b,c){returnnewE(a.f.o(),x.ug,b,c.ia,{d:Ia(b-c.Eb)})}of.prototype.Cd=function(){vara=zb(this.b,Cb.Ta);returnnull==a?null:a.ia};
functionab(a){varb=(newDate).valueOf(),c=b+1E3*a.Hg,d=zb(a.b,Cb.Ta);if(null==d||(b-d.Eb<a.zb?0:d.zd<b)){vare="Generating session start event with time "+b;if(null!=d){varf=d.Jb;f-d.Eb<a.zb&&(f=d.Eb+a.Uh);d=Te(a,f,d);null==d||bb(a.b,[d]);e+=" (old session ended "+f+")"}e+=". Will expire "+c.valueOf();w.info(e);c=newOa(pa.Ia(),c);e=newE(a.f.o(),x.re,b,c.ia);null==e||bb(a.b,[e]);xb(a.b,Cb.Ta,c);null==S(a.b,N.bc)&&O(a.b,N.bc,b);returnc.ia}d.Jb=b;d.zd=c;xb(a.b,Cb.Ta,d);returnd.ia};functionpf(a,b){varc=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(N.gd,!0),localStorage.getItem(N.gd)&&(localStorage.removeItem(N.gd),c=!0)}catch(e){if(("QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0<localStorage.length)c=!0;elsethrowe;}}catch(e){w.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.hc);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.hc,a)}returnb};qf.prototype.Qd=function(a,b){if(ib(this.J,a))returnw.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,N.ua)||{},f=!1,g=0;g<b.length;g++){varh=b[g].url;!a.Ag&&h&&sd(h)?w.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,N.ua,e);returnc}p.uc=function(){for(vara=[],b=0;b<this.B.length;b++)a.push(this.B[b].A());O(this.b,N.tb,a)};
Bf.prototype.Gb=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=[],k=0;k<f.trigger_condition.length;k++)h.push(he(f.trigger_condition[k]));k=Ja(f.start_time);varl=Ja(f.end_time),m=f.priority,t=f.type,q=f.delay,v=f.re_eligibility,r=f.timeout,z=f.data;f=f.min_seconds_since_last_trigger;g=Aa(ve,t,"Could not construct Trigger from server data","Trigger.Types")?newre(g,h,k,l,m,t,z,q,v,r,f):null;null!=
this.X[g.id]&&(g.Ca=this.X[g.id],c[g.id]=this.X[g.id]);null!=this.L[g.id]&&(d[g.id]=this.L[g.id]);for(h=0;h<g.mb.length;h++)if(fe(g.mb[h],de.V,null)){b=!0;break}null!=g&&this.T.push(g)}Ha(this.X,c)||(this.X=c,O(this.b,N.ac,this.X));Ha(this.L,d)||(this.L=d,O(this.b,N.wb,this.L));a=[];for(c=0;c<this.T.length;c++)a.push(this.T[c].A());this.ud=(newDate).valueOf();O(this.b,N.hd,a);O(this.b,N.jd,this.ud);b&&(w.info("Trigger with test condition found, firing test."),this.pa(de.V));this.pa(de.OPEN);b=this.kc;
functionFf(a,b,c,d,e,f){functiong(){Ef(a);varl=f.pop();if(null!=l)if(Gf(a,l,c,d,e,f),te(l,c)){varm="Server aborted in-app message display, but the timeout on fallback trigger "+l.id+"has already elapsed.";0<f.length&&(m+=" Continuing to fall back.");w.info(m);a.G.M(l.id,dd.fe);g()}elsew.info("Server aborted in-app message display. Falling back to lower priority "+l.type+" trigger action "+l.id),m=1E3*l.ab-((newDate).valueOf()-c),0<m?a.na.push(setTimeout(function(){Ff(a,l,c,d,e,f)},m)):Ff(a,
l,c,d,e,f)}functionh(l){Ef(a);varm=(newDate).valueOf();te(b,c)?b.type===ve.se?a.G.M(b.id,dd.vb):a.G.M(b.id,dd.fe):!1===navigator.onLine&&b.type===ve.Uc&&l.imageUrl?(w.info("Not showing "+b.type+" trigger action "+b.id+" due to offline state."),a.G.M(b.id,dd.Rf)):(null==b.Ca||b.Mb!==se&&m-b.Ca>=1E3*b.Mb)&&Hf(a,b,m,d)?(Pb(a.ha,[l]),Ef(a),b.Ca=m,a.Ba=m,O(a.b,N.Yc,m),a.X[b.id]=m,O(a.b,N.ac,a.X)):w.info("Not displaying trigger "+b.id+" because display time fell outside of the acceptable time window.")}
switch(b.type){caseve.Uc:vark=Ec(b.data);if(null==k){w.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.G.M(b.id,dd.xb);break}h(k);break;caseve.se:k=Af(b.data,h,g,c,b.Oa);if(null==k){w.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.G.M(b.id,dd.xb);break}Pe(a.G,k,d,e);break;default:w.error("Trigger "+b.id+" was of unexpected type "+b.type+", ignoring."),a.G.M(b.id,dd.xb)}}
Bf.prototype.pa=function(a,b,c){vard=this;if(Aa(de,a,"Cannot fire trigger action.","TriggerEvents"))if(0<this.G.jb)w.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),this.kc.push(arguments);else{(S(this.b,N.jd)||0)>this.ud?Cf(this):Ef(this);for(vare=(newDate).valueOf(),f=e-this.Ba,g=!0,h=!0,k=[],l=0;l<this.T.length;l++){varm=this.T[l],t=e+1E3*m.ab;if((null==m.Ca||m.Mb!==se&&t-m.Ca>=1E3*m.Mb)&&(null==m.startTime||m.startTime<=e)&&(null==m.endTime||
m.endTime>=e)){for(varq=!1,v=0;v<m.mb.length;v++)if(fe(m.mb[v],a,b)){q=!0;break}q&&(g=!1,Hf(this,m,t,a)&&(h=!1,k.push(m)))}}if(g)w.info("Trigger event "+a+" did not match any trigger conditions.");elseif(h)w.info("Ignoring "+a+" trigger event because a trigger was displayed "+f/1E3+"s ago.");else{k.sort(function(z,H){returnz.priority-H.priority});varr=k.pop();null!=r&&(w.info("Firing "+r.type+" trigger action "+r.id+" from trigger event "+a+"."),Gf(this,r,e,a,c,k),0===r.ab?Ff(this,r,e,a,c,k):
functionHf(a,b,c,d){if(null==a.Ba)return!0;if(d===de.V)returnw.info("Ignoring minimum interval between trigger because it is a test type."),!0;b=b.ff;null==b&&(b=a.Eg);returnc-a.Ba>=1E3*b}functionGf(a,b,c,d,e,f){Ef(a);a.L[b.id]=a.L[b.id]||[];varg={};g.Ac=c;g.sf=d;varh;null!=e&&(h=e.A());g.wd=h;c=[];for(d=0;d<f.length;d++)c.push(f[d].id);g.Ad=c;a.L[b.id].push(g);O(a.b,N.wb,a.L)};"undefined"===typeofconsole&&(window.console={log:function(){}});varIf=window.Element.prototype;"function"!==typeofIf.matches&&(If.matches=If.msMatchesSelector||If.mozMatchesSelector||If.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){varJf=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};Jf.prototype=window.Event.prototype;window.CustomEvent=Jf};varKf;"object"===typeofmodule&&module.exports?Kf=module.exports:(window.appboy||(window.appboy={}),Kf=window.appboy);varLf=Kf;varX=newfunction(a){functionb(n,u,y){n="The '"+n+"' "+u+" is deprecated.";y&&(n+=" Please use '"+y+"' instead.");w.warn(n)}functionc(){w.Fb();T&&(Pb(J),J.K(),r.clearData(!1),r=null,D.clearData(!1),D=null,v.K(),v=null,F.K(),F=null,z.K(),z=null,t.K(),t=null,l.Fb(),K=l=null,af(A),m=f=h=A=null,G=[],k=null);Q=T=!1}functiond(){if(Q)return!1;if(!T)throwError("Appboy must be initialized before calling methods.");return!0}vare={Qg:function(n,u,y){returnnewrf(n,u,y)},Sg:function(n,u){returnnewZe(n,
H,D,F,K,A,L=newNb,J=newNb,G=[],T=!1,Q=!1;return{Hh:function(n){returnOb(L,n)},Gh:function(n){returnOb(J,n)},Fd:function(n,u){if(T)returnw.info("Braze has already been initialized with an API key."),!0;w.Ed(null!=u&&u[C.Uf]);if(null==n||""===n||"string"!==typeofn)returnw.error("Braze requires a valid API key to be initialized."),!1;f=n;h=u||{};if(vb.fh&&!h[C.wf])returnw.info("Ignoring activity from crawler bot "+navigator.userAgent),Q=!0,!1;g=u=pf(n,h[C.jg]||!1);vary=newIb(null,!0);if(y.Z("ab.optOut"))returnw.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)&&w.warn("Ignoring unknown initialization option '"+B+"'.");y=["mparticle","wordpress","tealium"];null!=h[C.pe]&&(B=h[C.pe],-1!==y.indexOf(B)?k=B:w.error("Invalid sdk flavor passed: "+B));varP=[];v=a.xc();G.push(v);r=a.Tg(v,u);P.push(r);F=a.xc();G.push(F);y=h[C.Oc];if(null==y||""===y||"string"!==typeofy)returnw.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.be]||h[C.Sc];h[C.Sc]&&b(C.Sc,"initialization option",C.be);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}elsew.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),B=null;q=a.Sg(u,B);B=newmf(u);t=a.xc();m=a.Qg(u,h[C.Vf],t);G.push(t);l=a.Wg(f,y,"3.4.1",k,h,
function(Db){if(T)for(varWa=0;Wa<P.length;Wa++)P[Wa].Gb(Db)},u,q,B,m);R=h[C.Xf];null==R&&(R=30);D=a.Xg(R,F,u,l);P.push(D);R=!0===h[C.Xd]||!0===h[C.ce];null!=h.enableHtmlInAppMessages&&b("enableHtmlInAppMessages","initialization option","allowUserSuppliedJavascript");z=a.xc();G.push(z);H=a.Rg(z,l,u,B,R);P.push(H);nf(B,function(){H.Na()});Se(l,function(){H.Na()});l.Fd();K=a.Vg(l.pb(),f,q,y,h,B,u);A=a.Ug(l.pb());u="Initialized ";h&&h[C.Oc]&&(u+='for the Braze backend at "'+h[C.Oc]+'" ');w.info(u+('with API key "'+
n+'".'));n=vb.language;u=!1;h&&(h[C.Xc]&&(b(C.Xc,"initialization option",C.$c),n=h[C.Xc],u=!0),h[C.$c]&&(n=h[C.$c],u=!0));td(n,u);Pb(L,h);returnT=!0},Fb:function(){w.info("Destroying appboy instance");g=null;c()},$g:function(n){d()&&(null==n&&w.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(q).id))},Wd:function(){w.Wd()},Rd:function(n){w.Rd(n)},Hc:function(){if(d()){l.Hc(K);
varn=za.ga,u=newqa(n);ua(u,n.H.me,function(y,B){functionP(){D.pa(de.le,[Y],Db)}varR=B.lastClick,Y=B.trackingString;w.info("Firing push click trigger from "+Y+" push click at "+R);varDb=We(l,R,Y);Ue(l,P,P);va(u,n.H.me,y)});wa(u,n.H.Af,function(y){xf(H,y)});wa(u,n.H.ke,function(y){varB=l;y=ba(y);for(varP=y.next();!P.done;P=y.next())if(P=P.value,P.api_key!==B.Y){varR=za.ga;(newqa(R)).setItem(R.H.ke,pa.Ia(),P)}elseEe(B,P)})}},$a:function(n,u){if(d())if(null==n||0===n.length||n!==n)w.error("changeUser requires a non-empty userId.");
elseif(997<Pa(n))w.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;l.$a(n.toString(),[r,H,D],K,u)}},pb:function(){if(d())returnl.pb()},bh:function(){if(d())returnh[C.$d]},Ob:function(n){d()&&l.Ob(n)},Jc:function(){d()&&l.Jc()},qf:function(n){if(d())returnOb(v,n)},Bc:function(){if(d())returnr.Bc()},Na:function(n,u){if(d())returnH.Na(n,u)},nf:function(n){if(d())returnOb(z,n)},nb:function(){if(d())returnH.nb(!1)},
Ih:function(n){if(d())returnb("subscribeToNewInAppMessages","method","subscribeToInAppMessage"),Ob(F,n)},rf:function(n){if(d())return"function"!==typeofn?null:Ob(F,function(u){n(u[0]);returnu.slice(1)})},Lb:function(n){if(d())returnninstanceofW||ninstanceofFc?l.Lb(n).h:(w.error("inAppMessage must be an InAppMessage object"),!1)},Fc:function(n){if(d()){if(!(ninstanceofW))returnw.error("inAppMessage must be an InAppMessage object"),!1;varu=l.Fc(n);if(u.h)for(vary=0;y<u.j.length;y++)D.pa(de.$b,
[n.triggerId],u.j[y]);returnu.h}},Ec:function(n,u){if(d()){if(!(ninstanceofGc))returnw.error("button must be an InAppMessageButton object"),!1;if(!(uinstanceofW))returnw.error("inAppMessage must be an InAppMessage object"),!1;vary=l.Ec(n,u);if(y.h)for(varB=0;B<y.j.length;B++)D.pa(de.$b,[u.triggerId,n.id],y.j[B]);returny.h}},Kb:function(n,u,y){if(d()){if(!(ninstanceofQc))returnw.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;y=l.Kb(n,u,y);
if(y.h)for(varB=0;B<y.j.length;B++)D.pa(de.$b,[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")?l.M(n.triggerId,u).h:!1:(w.error("inAppMessage must be an InAppMessage object"),!1)},Ma:function(n,u){if(d()){if(!Ca(n))returnw.error("cards must be an array"),!1;for(vary=0;y<n.length;y++)if(!(n[y]instanceofcc))returnw.error("Each card in cards must be a Card object"),
!1;returnl.Ma(n,u).h}},La:function(n,u){if(d())returnninstanceofcc?l.La(n,u).h:(w.error("card must be a Card object"),!1)},Dc:function(n){if(d())returnninstanceofcc?l.Dc(n).h:(w.error("card must be a Card object"),!1)},ef:function(){if(d())returnVe(l,ya.Wf).h},df:function(){if(d())returnVe(l,ya.Gf).h},N:function(n){if(d()){for(varu=ba(G),y=u.next();!y.done;y=u.next())y.value.N(n);L.N(n);J.N(n)}},K:function(){if(d())for(varn=ba(G),u=n.next();!u.done;u=n.next())u.value.K()},Hd:function(n,
n.fc,!0);c();Q=!0},nh:function(){(newIb(null,!0)).remove("ab.optOut");varn=za.ga;va(newqa(n),n.H.cd,n.fc);c()},Qh: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();T&&(r.clearData(!0),D.clearData(!0))}}},Z={},Mf;for(MfinI)Z[Mf]=I[Mf];Z.initialize=X.Fd;Z.destroy=X.Fb;Z.getDeviceId=X.$g;Z.toggleAppboyLogging=X.Wd;Z.setLogger=X.Rd;Z.openSession=X.Hc;Z.changeUser=X.$a;
"-");if(null==document.getElementById(m)){varq=document.createElement("style");q.innerHTML=qd.We;q.id=m;null!=k&&q.setAttribute("nonce",k);document.getElementsByTagName("head")[0].appendChild(q)}e||(document.addEventListener("keydown",t,!1),a.Gh(function(){document.removeEventListener("keydown",t)}))});return{Pg:function(){null==g&&(g=a.rf(function(m){a.display.mf(m)}));returng},mf:function(m,t,q){if(null==m)return!1;if(minstanceofFc)returnw.info("User received control for a multivariate test, logging to Braze servers."),
a.Lb(m),!0;if(!(minstanceofW))return!1;varv=minstanceofQc;if(v&&!m.Mh&&!f)returnw.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable these messages.'),a.M(m,dd.ee),!1;null==t&&(t=document.body);if(m.Ja()&&0<t.querySelectorAll(".ab-modal-interactions").length)returnw.info("Cannot show in-app message '"+m.message+"' because another message is being shown."),a.M(m,dd.xf),!1;if(bc.gh()){varr=bc.ah();if(r===bc.Sa.dc&&m.orientation===
Zc||r===bc.Sa.Wc&&"PORTRAIT"===m.orientation)returnw.info("Not showing "+("PORTRAIT"===m.orientation?"portrait":"landscape")+" in-app message '"+m.message+"' because the screen is currently "+(r===bc.Sa.dc?"portrait":"landscape")),a.M(m,dd.ng),!1}if(!f){r=!1;if(m.buttons&&0<m.buttons.length)for(varz=m.buttons,H=0;H<z.length;H++)z[H].clickAction===$c&&(r=sd(z[H].uri));elsem.clickAction===$c&&(r=sd(m.uri));if(r)returnw.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable these actions.'),
D=newwd(r(t,q),newDate);varF=D.$(a,d);if(H){if(null==D.lastUpdated||6E4<(newDate).valueOf()-D.lastUpdated.valueOf())w.info("Cached feed was older than max TTL of 60000 ms, requesting an update from the server."),Cd(D,a,F);varK=(newDate).valueOf();t=a.qf(function(A){varL=F.querySelectorAll(".ab-refresh-button")[0];if(null!=L){varJ=500,G=parseInt(F.getAttribute(Dd));J=isNaN(G)?J-((newDate).valueOf()-K):J-((newDate).valueOf()-G);setTimeout(function(){L.className=L.className.replace(/fa-spin/g,
F&&(A=K[L]);null!=A?(xd(a,A),A.parentNode.replaceChild(z,A)):F.appendChild(z);setTimeout(function(){z.className=z.className.replace("ab-hide","ab-show")},0);v&&z.focus();a.df();Bd(r,a,z)}varv=!1;null==m&&(m=document.body,v=!0);varr=null;r=a.nb();"function"===typeoft&&Fd(r,t(r.cards.slice()),r.lastUpdated,null,a,d);varz=r.$(a,d);(null==r.lastUpdated||6E4<(newDate).valueOf()-r.lastUpdated.valueOf())&&(null==h||6E4<(newDate).valueOf()-h.valueOf())&&(w.info("Cached content cards were older than max TTL of 60000 ms, requesting a sync from the server."),