/* * Braze Web SDK v3.2.0 * (c) Braze, Inc. 2021 - http://braze.com * License available at https://github.com/Appboy/appboy-web-sdk/blob/master/LICENSE * Compiled on 2021-02-25 */ (function(){(function(b,a){if("function"===typeof define&&define.amd)define([],a);else if("object"===typeof module&&module.exports){var e = a();module.exports=e;module.exports.default=e}else if(b.appboy){var d=a(),c;for(c in d)b.appboy[c]=d[c]}else b.appboy=a()})("undefined"!==typeof self?self:this,function(){var appboyInterface={};var q;function aa(a){var b=0;return function(){return bb||1342177279>>=1)c+=c;return d}}); ia("Promise",function(a){function b(f){this.Jb=0;this.Cd=void 0;this.nb=[];var h=this.jd();try{f(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.Ea=null}function d(f){return f instanceof b?f:new b(function(h){h(f)})}if(a)return a;c.prototype.te=function(f){if(null==this.Ea){this.Ea=[];var h=this;this.ue(function(){h.hg()})}this.Ea.push(f)};var e=ha.setTimeout;c.prototype.ue=function(f){e(f,0)};c.prototype.hg=function(){for(;this.Ea&&this.Ea.length;){var f=this.Ea;this.Ea=[];for(var h= 0;h=a.length)return w.error("addAlias requires a non-empty alias"),!1;if(!Qa(b,"add alias","the label",!1)||0>=b.length)return w.error("addAlias requires a non-empty label"),!1;var c=this.H,d=new Va,e=Wa(c.D),g=x.Ze;d.j.push(new A(c.f.o(),g,(new Date).valueOf(),e,{a:a,l:b}));d.h=J(c.b,d.j);return d.h};q.Dg=function(a){return Qa(a,"set first name","the firstName",!0)?M(this.f,"first_name",a):!1}; q.Hg=function(a){return Qa(a,"set last name","the lastName",!0)?M(this.f,"last_name",a):!1};q.Bg=function(a){return null===a||"string"===typeof a&&null!=a.toLowerCase().match(Ua)?M(this.f,"email",a):(w.error('Cannot set email address - "'+a+'" did not pass RFC-5322 validation.'),!1)};q.Eg=function(a){"string"===typeof a&&(a=a.toLowerCase());return null===a||Ca(Xa,a,'Gender "'+a+'" is not a valid gender.',"User.Genders")?M(this.f,"gender",a):!1}; q.Ag=function(a,b,c){if(null===a&&null===b&&null===c)return M(this.f,"dob",null);a=parseInt(a);b=parseInt(b);c=parseInt(c);return isNaN(a)||isNaN(b)||isNaN(c)||12b||31c?(w.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):M(this.f,"dob",""+a+"-"+b+"-"+c)};q.yg=function(a){return Qa(a,"set country","the country",!0)?M(this.f,"country",a):!1}; q.Fg=function(a){return Qa(a,"set home city","the homeCity",!0)?M(this.f,"home_city",a):!1};q.Gg=function(a){return Qa(a,"set language","the language",!0)?M(this.f,"language",a):!1};q.Cg=function(a){return Ca(Ya,a,'Email notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?M(this.f,"email_subscribe",a):!1}; q.Fd=function(a){return Ca(Ya,a,'Push notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?M(this.f,"push_subscribe",a):!1};q.Ig=function(a){return Qa(a,"set phone number","the phoneNumber",!0)?null===a||a.match(Za)?M(this.f,"phone",a):(w.error('Cannot set phone number - "'+a+'" did not pass validation.'),!1):!1};q.xg=function(a){return M(this.f,"image_url",a)}; q.Ec=function(a,b,c,d,e){if(null==a||null==b)return w.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));return isNaN(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):90a||180b?(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.H.Ec(this.f.o(),a,b,d,c,e).h}; q.Dd=function(a,b){if(!Ra(a,"set custom user attribute","the given key"))return!1;var c=typeof b,d=Fa(b),e=Ea(b);if("number"!==c&&"boolean"!==c&&!d&&!e&&null!==b&&!Ra(b,'set custom user attribute "'+a+'"',"the given value"))return!1;d&&(b=La(b));if(e){for(c=0;cb||isNaN(c)||180c)return w.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;var d=this.H,e=c;c=new Va;if(bb(d.I,a))w.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),c.h=!1;else{var g=Wa(d.D); if(null===b&&null===e){var f=x.Df;a={key:a}}else f=x.Cf,a={key:a,latitude:b,longitude:e};c.j.push(new A(d.f.o(),f,(new Date).valueOf(),g,a));c.h=J(d.b,c.j)}return c.h};var Za=/^[0-9 .\\(\\)\\+\\-]+$/,Xa={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},Ya={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"};D.User=H;D.User.Genders=Xa;D.User.NotificationSubscriptionTypes=Ya;D.User.prototype.getUserId=H.prototype.o; D.User.prototype.setFirstName=H.prototype.Dg;D.User.prototype.setLastName=H.prototype.Hg;D.User.prototype.setEmail=H.prototype.Bg;D.User.prototype.setGender=H.prototype.Eg;D.User.prototype.setDateOfBirth=H.prototype.Ag;D.User.prototype.setCountry=H.prototype.yg;D.User.prototype.setHomeCity=H.prototype.Fg;D.User.prototype.setLanguage=H.prototype.Gg;D.User.prototype.setEmailNotificationSubscriptionType=H.prototype.Cg;D.User.prototype.setPushNotificationSubscriptionType=H.prototype.Fd; D.User.prototype.setPhoneNumber=H.prototype.Ig;D.User.prototype.setAvatarImageUrl=H.prototype.xg;D.User.prototype.setLastKnownLocation=H.prototype.Ec;D.User.prototype.setCustomUserAttribute=H.prototype.Dd;D.User.prototype.addToCustomAttributeArray=H.prototype.Yf;D.User.prototype.removeFromCustomAttributeArray=H.prototype.sg;D.User.prototype.incrementCustomUserAttribute=H.prototype.ng;D.User.prototype.addAlias=H.prototype.Xf;D.User.prototype.setCustomLocationAttribute=H.prototype.zg;function cb(){}cb.prototype.od=function(){};cb.prototype.qd=function(){};cb.prototype.lb=function(){};function db(a,b){if(a&&b)if(a=a.toLowerCase(),Ea(b.O))for(var c=0;cthis.ke)return w.info("Storage failure: object is \u2248"+d+" bytes which is greater than the max of "+this.ke),!1;this.cd[a]=c;return!0};zb.prototype.Y=function(a){a=this.cd[a];return null==a?null:a.value}; zb.prototype.remove=function(a){this.cd[a]=null};function Ab(a,b,c){this.ka=[];b&&this.ka.push(new wb(a));c&&this.ka.push(new vb(a));this.ka.push(new zb)}Ab.prototype.store=function(a,b){for(var c=!0,d=0;dMath.abs(h)&&25<=Math.abs(f)?(0f&&b===Lb&&c(g),e=d=null):25<=Math.abs(h)&&(0h&&b===Nb&&0===a.scrollTop&&c(g),e=d=null)}})} function Ob(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttribute("viewBox",a);d.setAttribute("xmlns","http://www.w3.org/2000/svg");a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d",b);null!=c&&a.setAttribute("fill",c);d.appendChild(a);return d}var Fb=null,Mb="up",Nb="down",Kb="left",Lb="right";function Pb(a,b,c){var d=document.createElement("button");d.setAttribute("aria-label",a);d.setAttribute("tabindex","0");d.setAttribute("role","button");Gb(d,"touchstart",function(){});d.className="ab-close-button";a=Ob("0 0 15 15","M15 1.5L13.5 0l-6 6-6-6L0 1.5l6 6-6 6L1.5 15l6-6 6 6 1.5-1.5-6-6 6-6z",b);d.appendChild(a);d.addEventListener("keydown",function(e){if(32===e.keyCode||13===e.keyCode)c(),e.stopPropagation()});d.onclick=function(e){c();e.stopPropagation()};return d};var Qb={pg:function(){return 600>=screen.width},kg:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?Qb.Oa.Lc:Qb.Oa.Zb;if("screen"in window){var a=window.screen.orientation||screen.bh||screen.eh;null!=a&&"object"===typeof a&&(a=a.type);if("landscape-primary"===a||"landscape-secondary"===a)return Qb.Oa.Lc}return Qb.Oa.Zb},qg:function(a,b,c){c||null!=b&&b.metaKey?window.open(a):window.location=a},Oa:{Zb:0,Lc:1}};D.WindowUtils=Qb; D.WindowUtils.openUri=Qb.qg;function Rb(a,b,c,d,e,g,f,h,l,k,m,n,t,r,v,B){this.id=a;this.viewed=b||!1;this.title=c||"";this.imageUrl=d;this.description=e||"";this.created=g||null;this.updated=f||null;this.categories=h||[];this.expiresAt=l||null;this.url=k;this.linkText=m;n=parseFloat(n);this.aspectRatio=isNaN(n)?null:n;this.extras=t;this.pinned=r||!1;this.dismissible=v||!1;this.dismissed=!1;this.clicked=B||!1;this.test=!1;this.Zc=this.W=null}function Sb(a){null==a.W&&(a.W=new Bb);return a.W} function Tb(a){null==a.Zc&&(a.Zc=new Bb);return a.Zc}q=Rb.prototype;q.Kb=function(a){return Cb(Sb(this),a)};q.Hd=function(a){return Cb(Tb(this),a)};q.N=function(a){Sb(this).N(a);Tb(this).N(a)};q.L=function(){Sb(this).L();Tb(this).L()};q.zd=function(){this.viewed=!0};q.cb=function(){this.clicked=this.viewed=!0;Db(Sb(this))};q.yd=function(){return this.dismissible&&!this.dismissed?(this.dismissed=!0,Db(Tb(this)),!0):!1}; function Ub(a,b){if(null==b||b[T.ua]!==a.id)return!0;if(b[T.Ud])return!1;if(null!=b[T.ba]&&null!=a.updated&&b[T.ba]>>24}function gc(a){a=parseInt(a);if(isNaN(a))return"";var b=parseFloat(b);isNaN(b)&&(b=1);a>>>=0;var c=a&255,d=(a&65280)>>>8,e=(a&16711680)>>>16;return(lb.Va===eb.Ub?8>>24)/255*b].join()+")":"rgb("+[e,d,c].join()+")"};function W(a,b,c,d,e,g,f,h,l,k,m,n,t,r,v,B,z,E,G,F,K,N,L,X,fa,p,u,y,C,I,O){this.message=a;this.messageAlignment=b||hc;this.duration=n||5E3;this.slideFrom=c||ic;this.extras=d||{};this.campaignId=e;this.cardId=g;this.triggerId=f;this.clickAction=h||jc;this.uri=l;this.openTarget=k||kc;this.dismissType=m||lc;this.icon=t;this.imageUrl=r;this.imageStyle=v||mc;this.iconColor=B||nc.Xc;this.iconBackgroundColor=z||nc.Kd;this.backgroundColor=E||nc.Xc;this.textColor=G||nc.Md;this.closeButtonColor=F||nc.qf;this.animateIn= K;null==this.animateIn&&(this.animateIn=!0);this.animateOut=N;null==this.animateOut&&(this.animateOut=!0);this.header=L;this.headerAlignment=X||hc;this.headerTextColor=fa||nc.Md;this.frameColor=p||nc.Hf;this.buttons=u||[];this.cropType=y||oc;this.orientation=C;this.htmlId=I;this.css=O;this.ee=this.Sa=this.fe=!1;this.W=new Bb;this.dc=new Bb}q=W.prototype;q.Fa=function(){return!0};q.Ve=function(){return this.Fa()};function pc(a){return null!=a.htmlId&&4a.target.clientHeight||a.preventDefault()} q.Ac=function(a){this.Fa()&&null!=a.parentNode&&this.orientation!==Nc&&(null!=a.parentNode.classList&&a.parentNode.classList.add(Gc),document.body.addEventListener("touchmove",Hc,Eb()?{passive:!1}:!1));a.className+=" "+Ic};q.ma=function(){var a="";this.animateIn&&(a+=" ab-animate-in");this.animateOut&&(a+=" ab-animate-out");return a}; var nc={Md:4281545523,Xc:4294967295,Kd:4278219733,rf:4293914607,sf:4283782485,Hf:3224580915,qf:4288387995},Sc={Nd:"hd",Ye:"ias",Ff:"of",tf:"do",sb:"umt",qb:"tf",Od:"te"},ic="BOTTOM",Tc={TOP:"TOP",BOTTOM:ic},Qc="NEWS_FEED",Oc="URI",jc="NONE",Uc={NEWS_FEED:Qc,URI:Oc,NONE:jc},lc="AUTO_DISMISS",Vc={AUTO_DISMISS:lc,MANUAL:"SWIPE"},kc="NONE",Pc="BLANK",Wc={NONE:kc,BLANK:Pc},mc="TOP",Mc="GRAPHIC",Xc={TOP:mc,GRAPHIC:Mc},Nc="LANDSCAPE",Yc={PORTRAIT:"PORTRAIT",LANDSCAPE:Nc},hc="CENTER",Zc={START:"START",CENTER:hc, END:"END"},Rc="CENTER_CROP",oc="FIT_CENTER",$c={CENTER_CROP:Rc,FIT_CENTER:oc},Ac="SLIDEUP",vc="MODAL",wc="MODAL_STYLED",yc="FULL",Cc="WEB_HTML",Dc="HTML",Lc=500,Ic="ab-show",Jc="ab-hide",Gc="ab-pause-scrolling";D.InAppMessage=W;D.InAppMessage.SlideFrom=Tc;D.InAppMessage.ClickAction=Uc;D.InAppMessage.DismissType=Vc;D.InAppMessage.OpenTarget=Wc;D.InAppMessage.ImageStyle=Xc;D.InAppMessage.TextAlignment=Zc;D.InAppMessage.Orientation=Yc;D.InAppMessage.CropType=$c; D.InAppMessage.prototype.subscribeToClickedEvent=W.prototype.Kb;D.InAppMessage.prototype.subscribeToDismissedEvent=W.prototype.Hd;D.InAppMessage.prototype.removeSubscription=W.prototype.N;D.InAppMessage.prototype.removeAllSubscriptions=W.prototype.L;D.InAppMessage.prototype.closeMessage=W.prototype.ye;function uc(a,b,c,d,e,g,f){this.text=a||"";this.backgroundColor=b||nc.Kd;this.textColor=c||nc.Xc;this.borderColor=d||this.backgroundColor;this.clickAction=e||jc;this.uri=g;null==f&&(f=ad);this.id=f;this.Sa=!1;this.W=new Bb}uc.prototype.Kb=function(a){return Cb(this.W,a)};uc.prototype.N=function(a){this.W.N(a)};uc.prototype.L=function(){this.W.L()};uc.prototype.cb=function(){return this.Sa?!1:(this.Sa=!0,Db(this.W),!0)};var ad=-1;D.InAppMessageButton=uc; D.InAppMessageButton.prototype.subscribeToClickedEvent=uc.prototype.Kb;D.InAppMessageButton.prototype.removeSubscription=uc.prototype.N;D.InAppMessageButton.prototype.removeAllSubscriptions=uc.prototype.L;function tc(a){this.triggerId=a}D.ControlMessage=tc;function bd(a){var b=a.querySelectorAll(".ab-close-button, .ab-message-button");if(0Please check again later.",FEED_TIMEOUT_MESSAGE:"Sorry, this refresh timed out.
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.
Zkontrolujte pros\u00edm znovu pozd\u011bji.",FEED_TIMEOUT_MESSAGE:"Pros\u00edm zkuste to znovu pozd\u011bji."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.
Pr\u00f8v venligst senere.",FEED_TIMEOUT_MESSAGE:"Pr\u00f8v venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verf\u00fcgbar.
Bitte sp\u00e4ter noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte sp\u00e4ter noch einmal versuchen."}, es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.
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.
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.
Proovige hiljem uuesti.",FEED_TIMEOUT_MESSAGE:"Palun proovige hiljem uuesti."},fi:{NO_CARDS_MESSAGE:"P\u00e4ivityksi\u00e4 ei ole saatavilla.
Tarkista my\u00f6hemmin uudelleen.", FEED_TIMEOUT_MESSAGE:"Yrit\u00e4 my\u00f6hemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise \u00e0 jour disponible.
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"}, hi:{NO_CARDS_MESSAGE:"\u0939\u092e\u093e\u0930\u0947 \u092a\u093e\u0938 \u0915\u094b\u0908 \u0905\u092a\u0921\u0947\u091f \u0928\u0939\u0940\u0902 \u0939\u0948\u0902\u0964 \u0915\u0943\u092a\u092f\u093e \u092c\u093e\u0926 \u092e\u0947\u0902 \u092b\u093f\u0930 \u0938\u0947 \u091c\u093e\u0901\u091a \u0915\u0930\u0947\u0902.\u0964",FEED_TIMEOUT_MESSAGE:"\u0915\u0943\u092a\u092f\u093e \u092c\u093e\u0926 \u092e\u0947\u0902 \u0926\u094b\u092c\u093e\u0930\u093e \u092a\u094d\u0930\u092f\u093e\u0938 \u0915\u0930\u0947\u0902\u0964."}, 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.
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
\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.
Probeer het later opnieuw.",FEED_TIMEOUT_MESSAGE:"Probeer het later opnieuw."},no:{NO_CARDS_MESSAGE:"Vi har ingen oppdateringer.
Vennligst sjekk igjen senere.", FEED_TIMEOUT_MESSAGE:"Vennligst pr\u00f8v igjen senere."},pl:{NO_CARDS_MESSAGE:"Brak aktualizacji.
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.
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.
Verifique novamente mais tarde.", FEED_TIMEOUT_MESSAGE:"Tente novamente mais tarde."},ru:{NO_CARDS_MESSAGE:"\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b.
\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0437\u0436\u0435.",FEED_TIMEOUT_MESSAGE:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435."}, sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.
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."}, uk:{NO_CARDS_MESSAGE:"\u041e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0456.
\u043b\u0430\u0441\u043a\u0430, \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0437\u043d\u043e\u0432\u0443 \u043f\u0456\u0437\u043d\u0456\u0448\u0435.",FEED_TIMEOUT_MESSAGE:"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437 \u043f\u0456\u0437\u043d\u0456\u0448\u0435."}, vi:{NO_CARDS_MESSAGE:"Ch\u00fang t\u00f4i kh\u00f4ng c\u00f3 c\u1eadp nh\u1eadt n\u00e0o.
Vui l\u00f2ng ki\u1ec3m tra l\u1ea1i sau.",FEED_TIMEOUT_MESSAGE:"Vui l\u00f2ng th\u1eed l\u1ea1i sau."},"zh-hk":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.
\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},"zh-hans":{NO_CARDS_MESSAGE:"\u6682\u65f6\u6ca1\u6709\u66f4\u65b0.
\u8bf7\u7a0d\u540e\u518d\u8bd5.",FEED_TIMEOUT_MESSAGE:"\u8bf7\u7a0d\u5019\u518d\u8bd5."}, "zh-hant":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.
\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},"zh-tw":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.
\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},zh:{NO_CARDS_MESSAGE:"\u6682\u65f6\u6ca1\u6709\u66f4\u65b0.
\u8bf7\u7a0d\u540e\u518d\u8bd5.",FEED_TIMEOUT_MESSAGE:"\u8bf7\u7a0d\u5019\u518d\u8bd5."}};null!=a&&(a=a.toLowerCase()); if(null!=a&&null==id[a]){var c=a.indexOf("-");0this.G;case xd:return this.Cc===wd?null!=b&&Fa(b)&&((new Date).valueOf()-b.valueOf())/1E3<=this.G:typeof b===typeof this.G&&b>=this.G;case Ed:return typeof b===typeof this.G&&b=this.G: typeof b===typeof this.G&&b<=this.G;case Fd:return null!=b&&"string"===typeof b&&typeof b===typeof this.G&&null!=b.match(this.G);case Gd:return null!=b;case Hd:return null==b;case zd:return null!=b&&Fa(b)&&(b.valueOf()-(new Date).valueOf())/1E3this.G;case Id:return null==b||typeof b!==typeof this.G||"string"!==typeof b||null==b.match(this.G)}return!1}; vd.prototype.A=function(){var a=this.G;Fa(this.G)&&(a=Ja(a.valueOf()));return{k:this.Le,t:this.Cc,c:this.ib,v:a}};var Bd=1,Cd=2,Dd=3,xd=4,Ed=5,yd=6,Fd=10,Gd=11,Hd=12,zd=15,Ad=16,Id=17,wd="date";function Jd(a){this.filters=a}Jd.prototype.ca=function(a){for(var b=!0,c=0;cb.status||304===b.status}if(h){if("function"=== typeof a.h){try{var l=JSON.parse(b.responseText)}catch(k){a.h({error:""===b.responseText?"empty_response":"invalid_json_response",response:b.responseText})}l&&a.h(l)}"function"===typeof a.qc&&a.qc(!0)}else d()};b.onerror=function(){d()};b.ontimeout=function(){d()};var e=JSON.stringify(a.data);if(c)b.onprogress=function(){},b.open("post",a.url);else{b.open("POST",a.url,!0);b.setRequestHeader("Content-type","application/json");b.setRequestHeader("X-Requested-With","XMLHttpRequest");for(var g=a.headers|| [],f=0;fxe(B).Cb){z=new ye(z.time,z.events_blacklist,z.attributes_blacklist,z.purchases_blacklist,z.messaging_session_timeout,z.vapid_public_key,z.content_cards);var E=!1;null!=z.pa&&xe(B).pa!==z.pa&&(E=!0);var G=!1;null!=z.xb.enabled&&(xe(B).xb.enabled||!1)!==z.xb.enabled&&(G=!0);B.lc=z;Q(B.b,P.Vd,z.A());E&&Db(B.fd);G&&Db(B.Zd)}}if(null==t.respond_with||t.respond_with.user_id==a.f.o())null!=t.device&&Q(a.b,P.Tb,t.device),a.Lf(v),"function"===typeof e&&e()}},error:function(){n&&(a.gb=Math.max(a.gb- 1,0));J(a.b,h);for(var v=0;vb.Ka)a.K(b.La,Sc.qb);else{var k=Math.min(b.Ka,a.Jf),m=a.Kf;null==e&&(e=m);var n=Math.min(k,ke(m,3*e));l+=". Retrying in "+n+"ms";setTimeout(function(){Be(a,b,c,d,n)},n)}Ae(h,l)}})})}q=me.prototype; q.Ja=function(a,b,c){var d=this,e=ne(this,{});e.last_full_sync_at=a;e.last_card_updated_at=b;a=this.f.o();null!=a&&(e.user_id=a);var g=[["X-Braze-Api-Key",this.$],["X-Braze-DataRequest","true"],["X-Braze-ContentCardsRequest","true"]];we(e,function(){le({url:""+d.tb+"/content_cards/sync",data:e,headers:g,h:function(f){pe(d,e,f)&&c(f)},error:function(f){Ae(f,"retrieving content cards")}})})}; function ue(a,b,c){var d={};b&&(d.feed=!0);c&&(d.triggers=!0);b=a.f.o();null!=b&&(d.user_id=b);d.config={config_time:xe(a.I).Cb};return{respond_with:d}}function ve(a,b){a=[["X-Braze-Api-Key",a.$]];var c=!1;null!=b.respond_with&&b.respond_with.triggers&&(a.push(["X-Braze-TriggersRequest","true"]),c=!0);null!=b.respond_with&&b.respond_with.feed&&(a.push(["X-Braze-FeedRequest","true"]),c=!0);c&&a.push(["X-Braze-DataRequest","true"]);return a} function Ce(a){if(null==a.campaignId&&null==a.cardId&&null==a.triggerId)return w.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;var b={};null!=a.cardId&&(b.card_ids=[a.cardId]);null!=a.campaignId&&(b.campaign_ids=[a.campaignId]);null!=a.triggerId&&(b.trigger_ids=[a.triggerId]);return b}function De(a){for(var b=null,c=0;cf?"+":"-")+(("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(h)).slice(-2)));f=l}b[d]=f;break;case "userAgent":b[d]= lb.userAgent}}return b};function Me(a){this.Ca=a;this.nc=null;this.re="geolocation"in navigator}Me.prototype.Vf=function(a){var b=this;if(document.hidden){Ne(this);var c=function(){document.hidden||(document.removeEventListener("visibilitychange",c,!1),b.watchPosition())};document.addEventListener("visibilitychange",c,!1)}this.Ca.Ec(a.coords.latitude,a.coords.longitude,a.coords.accuracy,a.coords.altitude,a.coords.altitudeAccuracy)}; Me.prototype.Uf=function(a){a.code===a.PERMISSION_DENIED?w.info(a.message):w.error("Could not detect user location: "+a.code+" - "+a.message)};Me.prototype.watchPosition=function(){this.re?(Ne(this),this.nc=navigator.geolocation.watchPosition(this.Vf.bind(this),this.Uf.bind(this)),w.info("Requested Geolocation")):w.info(this.Pc)};function Ne(a){a.re?null!=a.nc&&(navigator.geolocation.clearWatch(a.nc),a.nc=null,w.info("Stopped watching Geolocation")):w.info(a.Pc)};function Oe(a,b,c,d,e){this.endpoint=a||null;this.ze=b||null;this.publicKey=c||null;this.Vg=d||null;this.pa=e||null}Oe.prototype.A=function(){return{e:this.endpoint,c:this.ze,p:this.publicKey,u:this.Vg,v:this.pa}};function Pe(a,b,c,d,e,g,f,h,l,k){this.Ca=a;this.$=b;this.cc=c;this.Rf=d;this.pe=e||"/service-worker.js";this.ne=g;this.I=f;this.ad=h||!1;this.Pf=l||!1;this.b=k;this.mc="serviceWorker"in navigator&&"undefined"!==typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window;this.dd="safari"in window&&"pushNotification"in window.safari}q=Pe.prototype;q.oa=function(){return this.mc||this.dd}; q.Ga=function(){var a=this.oa()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,b=this.oa()&&(!("Notification"in window)||null==window.Notification);return a||b};q.Bb=function(){return this.oa()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission}; q.td=function(a,b,c){var d=this;c=this.ne||c;this.oa()?this.mc?Qe(this).then(function(e){d.Ga()?b():null==e?b():e.pushManager.getSubscription().then(function(g){g?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()}; function Re(a,b,c,d,e,g){b.unsubscribe().then(function(f){f?Se(a,c,d,e,g):(w.error("Failed to unsubscribe device from push."),"function"===typeof g&&g(!1))}).catch(function(f){w.error("Push unsubscription error: "+f);"function"===typeof g&&g(!1)})} function Te(a,b,c,d){var e=function(h){if("string"===typeof h)return h;if(0!==h.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return h.endpoint;var l=h.endpoint;h.subscriptionId&&-1===h.endpoint.indexOf(h.subscriptionId)&&(l=h.endpoint+"/"+h.subscriptionId);return l}(b),g=null,f=null;if(null!=b.getKey)try{g=btoa(String.fromCharCode.apply(null,new Uint8Array(b.getKey("p256dh")))),f=btoa(String.fromCharCode.apply(null,new Uint8Array(b.getKey("auth"))))}catch(h){if("invalid arguments"!== h.message)throw h;}b=function(h){var l;return h.options&&(l=h.options.applicationServerKey)&&l.byteLength&&01E3*c)&&Q(a.b,P.Xb,b);return c} function Wa(a){var b=(new Date).valueOf(),c=b+1E3*a.Tf,d=pb(a.b,rb.Qa);if(null==d||(b-d.yb=d?b++:2047=d&&(b+=2);56320<=d&&57343>=d&&c--}return b};function cf(a,b){this.I=a;this.b=b}cf.prototype.o=function(){var a=pb(this.b,rb.bc);if(null==a)return null;var b=a.ga,c=bf(b);if(997=d)&&!b[f].dismissed?c.push(b[f]):g=e[b[f].id]=!0}g&&Q(a.b,P.sa,e);return c}q.pc=function(){for(var a=[],b=0;bd.updated?-1:d.updated>c.updated?1:0});var b=Math.max(this.ya||0,this.Ba||0);0===b&&(b=void 0);return new od(a,Ka(b))}; q.Xa=function(a){a||(this.B=[],Db(this.fa,new od(this.B.slice(),null)),S(this.b,P.pb),S(this.b,P.eb),S(this.b,P.fb),S(this.b,P.sa));this.ya=this.Ba=0;S(this.b,P.Rb);S(this.b,P.Qb)};q.clearData=function(a){this.ya=this.Ba=0;this.B=[];Db(this.fa,new od(this.B.slice(),null));a&&(S(this.b,P.pb),S(this.b,P.eb),S(this.b,P.fb),S(this.b,P.sa),S(this.b,P.Rb),S(this.b,P.Qb))};function hf(a){return xe(a.I).xb.enabled?!0:(0!==xe(a.I).Cb&&(Db(a.fa,new od([],(new Date).valueOf())),S(a.b,P.pb)),!1)};function kf(a,b){this.fa=a;this.b=b;this.Da()}oa(kf,df);q=kf.prototype;q.Da=function(){for(var a=R(this.b,P.Oc)||[],b=[],c=0;c=b)&&a.push(this.B[c]);return new kd(a,this.hb)};q.clearData=function(a){null==a&&(a=!1);this.B=[];this.hb=null;a&&(S(this.b,P.Oc),S(this.b,P.Nc));Db(this.fa,new kd(this.B.slice(),this.hb))};function lf(a,b,c,d,e){this.La=a;this.Xe=b;this.We=c;this.uc=d;this.Ka=e}function mf(a,b,c,d,e){return null==a||null==a.trigger_id?null:new lf(a.trigger_id,b,c,d,e)};function nf(a,b,c,d){this.Qf=a;this.fa=b;this.b=c;this.H=d;this.ec=[];this.la=[];this.za=null;this.J={};this.X={};of(this);pf(this)}oa(nf,df);function qf(a){a.za=R(a.b,P.Mc)||a.za;a.J=R(a.b,P.rb)||a.J;a.X=R(a.b,P.Wb)||a.X;for(var b=0;bh.length&&(a.J[g.id]=h,d=!0,0===a.J[g.id].length&&delete a.J[g.id])}}d&&Q(a.b,P.rb,a.J)} nf.prototype.Ab=function(a){var b=!1;if(null!=a&&a.triggers){qf(this);var c={},d={};this.T=[];for(var e=0;e=1E3*b.Gb)&&tf(a,b,m,d)?(Db(a.fa,[k]),qf(a),b.Aa=m,a.za=m,Q(a.b,P.Mc,m),a.X[b.id]=m,Q(a.b,P.Wb,a.X)):w.info("Not displaying trigger "+b.id+" because display time fell outside of the acceptable time window.")} switch(b.type){case je.Jc:var l=sc(b.data);if(null==l){w.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.H.K(b.id,Sc.sb);break}h(l);break;case je.Xd:l=mf(b.data,h,f,c,b.Ka);if(null==l){w.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.H.K(b.id,Sc.sb);break}Be(a.H,l,d,e);break;default:w.error("Trigger "+b.id+" was of unexpected type "+b.type+", ignoring."),a.H.K(b.id,Sc.sb)}} nf.prototype.na=function(a,b,c){var d=this;if(Ca(Sd,a,"Cannot fire trigger action.","TriggerEvents"))if(0this.ed?of(this):qf(this);for(var e=(new Date).valueOf(),g=e-this.za,f=!0,h=!0,l=[],k=0;k=1E3*m.Gb)&&(null==m.startTime||m.startTime<=e)&&(null==m.endTime|| m.endTime>=e)){for(var t=!1,r=0;r=1E3*b}function sf(a,b,c,d,e,g){qf(a);a.J[b.id]=a.J[b.id]||[];var f={};f.uc=c;f.Ue=d;var h;null!=e&&(h=e.A());f.gd=h;c=[];for(d=0;d=p.length)return w.error('logCustomEvent requires a non-empty eventName, got "'+ p+'". Ignoring event.'),!1;if(!Ra(p,"log custom event","the event name")||!c(u,"logCustomEvent","eventProperties",'log custom event "'+p+'"',"event"))return!1;var y=m.ud(p,b(u));if(y.h){w.info('Logged custom event "'+p+'".');for(var C=0;C=p.length)return w.error('logPurchase requires a non-empty productId, got "'+p+'", ignoring.'),!1;if(!Ra(p,"log purchase","the purchase name"))return!1; var O=parseFloat(u);if(isNaN(O))return w.error("logPurchase requires a numeric price, got "+u+", ignoring."),!1;O=O.toFixed(2);u=parseInt(C);if(isNaN(u))return w.error("logPurchase requires an integer quantity, got "+C+", ignoring."),!1;if(1>u||1001 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))return w.error("logPurchase requires a valid currencyCode, got "+ y+", ignoring."),!1;if(!c(I,"logPurchase","purchaseProperties",'log purchase "'+p+'"',"purchase"))return!1;C=m.vd(p,O,y,u,b(I));if(C.h)for(w.info("Logged "+u+" purchase"+(1 .ab-close-button")[0], null!=t&&Ib(t))}}c=k.openInAppMessagesInNewTab||!1;d=k.openCardsInNewTab||k.openNewsFeedCardsInNewTab||!1;e=k.requireExplicitInAppMessageDismissal||!1;g=k.enableHtmlInAppMessages||!1;!0===k.allowUserSuppliedJavascript&&(g=!0);f=null;l=k.contentSecurityNonce||null;k.doNotLoadFontAwesome||null!==document.querySelector('link[rel=stylesheet][href="https://use.fontawesome.com/7f85a56ba4.css"]')||(k=document.createElement("link"),k.setAttribute("rel","stylesheet"),k.setAttribute("href","https://use.fontawesome.com/7f85a56ba4.css"), document.getElementsByTagName("head")[0].appendChild(k));k="ab-css-definitions-"+"3.2.0".replace(/\./g,"-");if(null==document.getElementById(k)){var n=document.createElement("style");n.innerHTML=ed.Ae;n.id=k;null!=l&&n.setAttribute("nonce",l);document.getElementsByTagName("head")[0].appendChild(n)}e||(document.addEventListener("keydown",m,!1),a.Mg(function(){document.removeEventListener("keydown",m)}))});return{$f:function(){null==f&&(f=a.Te(function(k){a.display.Qe(k)}));return f},Qe:function(k, m,n){if(null==k)return!1;if(k instanceof tc)return w.info("User received control for a multivariate test, logging to Braze servers."),a.Fb(k),!0;if(!(k instanceof W))return!1;var t=k instanceof Ec;if(t&&!k.Sg&&!g)return w.error('HTML in-app messages are disabled. Use the "enableHtmlInAppMessages" option for appboy.initialize to enable these messages.'),a.K(k,Sc.Nd),!1;null==m&&(m=document.body);if(k.Fa()&&0