(function(n){if(typeof exports=="object"&&typeof module!="undefined")module.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this;t.SmartBanner=n()}})(function(){var n;return function t(n,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!n[f]){if(h=typeof require=="function"&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};n[f][0].call(s.exports,function(t){var i=n[f][1][t];return u(i?i:t)},s,s.exports,t,n,i,r)}return i[f].exports}for(var e=typeof require=="function"&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){var f=n("xtend/mutable"),r=n("component-query"),i=n("get-doc"),e=i&&i.documentElement,h=n("cookie-cutter"),o=n("ua-parser-js"),s={ios:{appMeta:"apple-itunes-app",iconRels:["apple-touch-icon-precomposed","apple-touch-icon"],getStoreLink:function(){return"https://itunes.apple.com/"+this.options.appStoreLanguage+"/app/id"+this.appId}},android:{appMeta:"google-play-app",iconRels:["android-touch-icon","apple-touch-icon-precomposed","apple-touch-icon"],getStoreLink:function(){return"http://play.google.com/store/apps/details?id="+this.appId}},windows:{appMeta:"msApplication-ID",iconRels:["windows-touch-icon","apple-touch-icon-precomposed","apple-touch-icon"],getStoreLink:function(){return"https://www.microsoft.com/en-us/store/p/becu/9nblggh1xp9f"}}},u=function(n){var t=o(navigator.userAgent);(this.options=f({},{daysHidden:15,daysReminder:90,appStoreLanguage:"us",button:"OPEN",store:{ios:"On the App Store",android:"In Google Play",windows:"In the Windows Store"},price:{ios:"FREE",android:"FREE",windows:"FREE"},force:!1},n||{}),this.options.force?this.type=this.options.force:t.os.name==="Windows Phone"||t.os.name==="Windows Mobile"?this.type="windows":t.os.name==="iOS"&&parseInt(t.os.version)<6?this.type="ios":t.os.name==="Android"&&(this.type="android"),!this.type||navigator.standalone||becu.cookie.read("smartbanner-closed")||becu.cookie.read("smartbanner-installed"))||(f(this,s[this.type]),this.parseAppId())&&(this.create(),this.show())};u.prototype={constructor:u,create:function(){for(var u,n,e=this.getStoreLink(),o=this.options.price[this.type]+" - "+this.options.store[this.type],f,t=0;t<this.iconRels.length;t++)if(u=r('link[rel="'+this.iconRels[t]+'"]'),u){f=u.getAttribute("href");break}n=i.createElement("div");n.className="smartbanner smartbanner-"+this.type;n.innerHTML='<div class="smartbanner-container"><a href="javascript:void(0);" class="smartbanner-close">&times;<\/a><span class="smartbanner-icon" style="background-image: url('+f+')"><\/span><div class="smartbanner-info"><div class="smartbanner-title">'+this.options.title+"<\/div><div>"+this.options.author+"<\/div><span>"+o+'<\/span><\/div><a href="'+e+'" class="smartbanner-button"><span class="smartbanner-button-text">'+this.options.button+"<\/span><\/a><\/div>";i.body?i.body.appendChild(n):i&&i.addEventListener("DOMContentLoaded",function(){i.body.appendChild(n)});r(".smartbanner-button",n).addEventListener("click",this.install.bind(this),!1);r(".smartbanner-close",n).addEventListener("click",this.close.bind(this),!1)},hide:function(){e.classList.remove("smartbanner-show")},show:function(){e.classList.add("smartbanner-show")},close:function(){this.hide();becu.cookie.write("smartbanner-closed","true",{path:"/",expires:+new Date+this.options.daysHidden*864e5})},install:function(){this.hide();becu.cookie.write("smartbanner-installed","true",{path:"/",expires:+new Date+this.options.daysReminder*864e5})},parseAppId:function(){var n=r('meta[name="'+this.appMeta+'"]');if(n)return this.appId=this.type==="windows"?n.getAttribute("content"):/app-id=([^\s,]+)/.exec(n.getAttribute("content"))[1],this.appId}};t.exports=u},{"component-query":2,"cookie-cutter":3,"get-doc":4,"ua-parser-js":6,"xtend/mutable":7}],2:[function(n,t,i){function r(n,t){return t.querySelector(n)}i=t.exports=function(n,t){return t=t||document,r(n,t)};i.all=function(n,t){return t=t||document,t.querySelectorAll(n)};i.engine=function(n){if(!n.one)throw new Error(".one callback required");if(!n.all)throw new Error(".all callback required");return r=n.one,i.all=n.all,i}},{}],3:[function(n,t,i){var i=t.exports=function(n){n||(n={});typeof n=="string"&&(n={cookie:n});n.cookie===undefined&&(n.cookie="");var t={};return t.get=function(t){for(var r,f,u=n.cookie.split(/;\s*/),i=0;i<u.length;i++)if(r=u[i].split("="),f=unescape(r[0]),f===t)return unescape(r[1]);return undefined},t.set=function(t,i,r){r||(r={});var u=escape(t)+"="+escape(i);return r.expires&&(u+="; expires="+r.expires),r.path&&(u+="; path="+escape(r.path)),n.cookie=u,u},t},r;typeof document!="undefined"&&(r=i(document),i.get=r.get,i.set=r.set)},{}],4:[function(n,t){var i=n("has-dom");t.exports=i()?document:null},{"has-dom":5}],5:[function(n,t){"use strict";t.exports=function(){return typeof window!="undefined"&&typeof document!="undefined"&&typeof document.createElement=="function"}},{}],6:[function(t,i,r){(function(t,u){"use strict";var et="",ut="?",tt="function",g="undefined",it="object",ot="string",f="model",e="name",s="type",o="vendor",h="version",y="architecture",k="console",c="mobile",l="tablet",nt="smarttv",rt="wearable",p={extend:function(n,t){for(var i in t)"browser cpu device engine os".indexOf(i)!==-1&&t[i].length%2==0&&(n[i]=t[i].concat(n[i]));return n},has:function(n,t){return typeof n=="string"?t.toLowerCase().indexOf(n.toLowerCase())!==-1:!1},lowerize:function(n){return n.toLowerCase()},major:function(n){return typeof n===ot?n.split(".")[0]:u}},v={rgx:function(){for(var i,o=0,s,l,r,n,f,t,h=arguments,c,e;o<h.length&&!f;){if(c=h[o],e=h[o+1],typeof i===g){i={};for(r in e)n=e[r],typeof n===it?i[n[0]]=u:i[n]=u}for(s=l=0;s<c.length&&!f;)if(f=c[s++].exec(this.getUA()),!!f)for(r=0;r<e.length;r++)t=f[++l],n=e[r],typeof n===it&&n.length>0?n.length==2?i[n[0]]=typeof n[1]==tt?n[1].call(this,t):n[1]:n.length==3?i[n[0]]=typeof n[1]!==tt||n[1].exec&&n[1].test?t?t.replace(n[1],n[2]):u:t?n[1].call(this,t,n[2]):u:n.length==4&&(i[n[0]]=t?n[3].call(this,t.replace(n[1],n[2])):u):i[n]=t?t:u;o+=2}return i},str:function(n,t){var i,r;for(i in t)if(typeof t[i]===it&&t[i].length>0){for(r=0;r<t[i].length;r++)if(p.has(t[i][r],n))return i===ut?u:i}else if(p.has(t[i],n))return i===ut?u:i;return n}},w={browser:{oldsafari:{version:{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0","2000":"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0","7":"NT 6.1","8":"NT 6.2","8.1":"NT 6.3","10":["NT 6.4","NT 10.0"],RT:"ARM"}}}},ft={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[e,h],[/\s(opr)\/([\w\.]+)/i],[[e,"Opera"],h],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium)\/([\w\.-]+)/i],[e,h],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[e,"IE"],h],[/(edge)\/((\d+)?[\w\.]+)/i],[e,h],[/(yabrowser)\/([\w\.]+)/i],[[e,"Yandex"],h],[/(comodo_dragon)\/([\w\.]+)/i],[[e,/_/g," "],h],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,/(uc\s?browser|qqbrowser)[\/\s]?([\w\.]+)/i],[e,h],[/(dolfin)\/([\w\.]+)/i],[[e,"Dolphin"],h],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[e,"Chrome"],h],[/XiaoMi\/MiuiBrowser\/([\w\.]+)/i],[h,[e,"MIUI Browser"]],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)/i],[h,[e,"Android Browser"]],[/FBAV\/([\w\.]+);/i],[h,[e,"Facebook"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[h,[e,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[h,e],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[e,[h,v.str,w.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[e,h],[/(navigator|netscape)\/([\w\.-]+)/i],[[e,"Netscape"],h],[/fxios\/([\w\.-]+)/i],[h,[e,"Firefox"]],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[e,h]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,p.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[y,/ower/,"",p.lowerize]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[y,p.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[f,o,[s,l]],[/applecoremedia\/[\w\.]+ \((ipad)/],[f,[o,"Apple"],[s,l]],[/(apple\s{0,1}tv)/i],[[f,"Apple TV"],[o,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[o,f,[s,l]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[f,[o,"Amazon"],[s,l]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[f,v.str,w.device.amazon.model],[o,"Amazon"],[s,c]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[f,o,[s,c]],[/\((ip[honed|\s\w*]+);/i],[f,[o,"Apple"],[s,c]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[o,f,[s,c]],[/\(bb10;\s(\w+)/i],[f,[o,"BlackBerry"],[s,c]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7)/i],[f,[o,"Asus"],[s,l]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[o,"Sony"],[f,"Xperia Tablet"],[s,l]],[/(?:sony)?(?:(?:(?:c|d)\d{4})|(?:so[-l].+))\sbuild\//i],[[o,"Sony"],[f,"Xperia Phone"],[s,c]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[o,f,[s,k]],[/android.+;\s(shield)\sbuild/i],[f,[o,"Nvidia"],[s,k]],[/(playstation\s[3portablevi]+)/i],[f,[o,"Sony"],[s,k]],[/(sprint\s(\w+))/i],[[o,v.str,w.device.sprint.vendor],[f,v.str,w.device.sprint.model],[s,c]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[o,f,[s,l]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[o,[f,/_/g," "],[s,c]],[/(nexus\s9)/i],[f,[o,"HTC"],[s,l]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[f,[o,"Microsoft"],[s,k]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[o,"Microsoft"],[s,c]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i],[f,[o,"Motorola"],[s,c]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[f,[o,"Motorola"],[s,l]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n8000|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[o,"Samsung"],f,[s,l]],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-n900))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[o,"Samsung"],f,[s,c]],[/(samsung);smarttv/i],[o,f,[s,nt]],[/\(dtv[\);].+(aquos)/i],[f,[o,"Sharp"],[s,nt]],[/sie-(\w+)*/i],[f,[o,"Siemens"],[s,c]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[o,"Nokia"],f,[s,c]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[f,[o,"Acer"],[s,l]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[o,"LG"],f,[s,l]],[/(lg) netcast\.tv/i],[o,f,[s,nt]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i],[f,[o,"LG"],[s,c]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[f,[o,"Lenovo"],[s,l]],[/linux;.+((jolla));/i],[o,f,[s,c]],[/((pebble))app\/[\d\.]+\s/i],[o,f,[s,rt]],[/android.+;\s(glass)\s\d/i],[f,[o,"Google"],[s,rt]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus)?[\s_]*(?:\d\w)?)\s+build/i],[[f,/_/g," "],[o,"Xiaomi"],[s,c]],[/(mobile|tablet);.+rv\:.+gecko\//i],[[s,p.lowerize],o,f]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[h,[e,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[e,h],[/rv\:([\w\.]+).*(gecko)/i],[h,e]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[e,h],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[e,[h,v.str,w.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[e,"Windows"],[h,v.str,w.os.windows.version]],[/\((bb)(10);/i],[[e,"BlackBerry"],h],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[e,h],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[e,"Symbian"],h],[/\((series40);/i],[e],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[e,"Firefox OS"],h],[/(nintendo|playstation)\s([wids3portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[e,h],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[e,"Chromium OS"],h],[/(sunos)\s?([\w\.]+\d)*/i],[[e,"Solaris"],h],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[e,h],[/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],[[e,"iOS"],[h,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[e,"Mac OS"],[h,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(haiku)\s(\w+)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[e,h]]},a=function(n,i){if(!(this instanceof a))return new a(n,i).getResult();var u=n||(t&&t.navigator&&t.navigator.userAgent?t.navigator.userAgent:et),r=i?p.extend(ft,i):ft;return this.getBrowser=function(){var n=v.rgx.apply(this,r.browser);return n.major=p.major(n.version),n},this.getCPU=function(){return v.rgx.apply(this,r.cpu)},this.getDevice=function(){return v.rgx.apply(this,r.device)},this.getEngine=function(){return v.rgx.apply(this,r.engine)},this.getOS=function(){return v.rgx.apply(this,r.os)},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return u},this.setUA=function(n){return u=n,this},this.setUA(u),this},b,d;a.VERSION="0.7.9";a.BROWSER={NAME:e,MAJOR:"major",VERSION:h};a.CPU={ARCHITECTURE:y};a.DEVICE={MODEL:f,VENDOR:o,TYPE:s,CONSOLE:k,MOBILE:c,SMARTTV:nt,TABLET:l,WEARABLE:rt,EMBEDDED:"embedded"};a.ENGINE={NAME:e,VERSION:h};a.OS={NAME:e,VERSION:h};typeof r!==g?(typeof i!==g&&i.exports&&(r=i.exports=a),r.UAParser=a):typeof n===tt&&n.amd?n(function(){return a}):t.UAParser=a;b=t.jQuery||t.Zepto;typeof b!==g&&(d=new a,b.ua=d.getResult(),b.ua.get=function(){return d.getUA()},b.ua.set=function(n){var t,i;d.setUA(n);t=d.getResult();for(i in t)b.ua[i]=t[i]})})(typeof window=="object"?window:this)},{}],7:[function(n,t){function i(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)i.hasOwnProperty(r)&&(n[r]=i[r])}return n}t.exports=i},{}]},{},[1])(1)});new SmartBanner({daysHidden:365,daysReminder:365,appStoreLanguage:"us",title:"Mobile Banking",author:"BECU",button:"VIEW",store:{ios:"On the App Store",android:"In Google Play",windows:"In Windows store"},price:{ios:"FREE",android:"FREE",windows:"FREE"}})