(function(){var EVENT_CONNECTION_ESTABLISHED='connectionEstablished';var EVENT_CHAT_OPENED='chatIsOpened';var EVENT_CHAT_CLOSED='chatIsClosed';var EVENT_MESSAGE='message';var EVENT_UNREAD_MESSAGES='unreadMessages';var EVENT_PIXEL_ACCEPTED='pixelAccepted';var EVENT_SET_FINGERPRINT='setUpFingerPrint';this.MiaChatWrapper=function(){var BOTTOM_LEFT='bottom_left';var BOTTOM_RIGHT='bottom_right';var _this=this;var defaults={maxWidth:340,maxHeight:430,button:null,renderAddress:null,assetsUrl:null,position:BOTTOM_RIGHT,wrapperId:'mia-chat-wrapper',buttonId:'mia-chat-button',initHash:'',socketHost:'',isDevMode:!1,messages:{newMessages:'New messages',newMessage:'New message',greetingText:'Need assistance? Click here!'}};_this.chatId=null;_this.options=(typeof arguments[0]==='object')?extendDefaults(defaults,arguments[0]):defaults;socket.options=_this.options;favicon.init(_this.options);window.document.addEventListener('mia:open',function(event){event.preventDefault();event.stopPropagation();_this.showChat()});window.document.addEventListener('mia:close',function(event){event.preventDefault();event.stopPropagation();_this.hideChat()});window.document.addEventListener(EVENT_CONNECTION_ESTABLISHED,function(event){event.socketConnection.subscribe(_this.options.initHash,function(topic,data){_this.chatId=data.chatId;function chatEventName(event){return _this.chatId+'::'+event} event.socketConnection.subscribe(chatEventName(EVENT_MESSAGE),_this.processNewMessage);event.socketConnection.subscribe(chatEventName(EVENT_UNREAD_MESSAGES),_this.processUnreadMessages);event.socketConnection.subscribe(chatEventName(EVENT_PIXEL_ACCEPTED),_this.processPixel);Fingerprint2.get(function(components){socket.connection.publish(chatEventName(EVENT_SET_FINGERPRINT),{hash:Fingerprint2.x64hash128(components.map(function(pair){return pair.value}).join(),31)})})})});socket.connect();_this.processNewMessage=function(topic,data){var newMessageEvent=new Event('mia:message');newMessageEvent.messageHtml=data;window.document.dispatchEvent(newMessageEvent)};_this.processUnreadMessages=function(topic,data){var unreadMessagesQuantity=data.quantity;var isClosedTab=document.visibilityState==='hidden';var unreadMessagesEvent=new Event('mia:unreadMessages');unreadMessagesEvent.quantity=unreadMessagesQuantity;window.document.dispatchEvent(unreadMessagesEvent);var button=document.getElementById(_this.options.buttonId);var counterWrapper=button.querySelector('.mia-chat-counter.animated');var text=button.querySelector('.mia-chat-header-text.animated');var logo=button.querySelector('.mia-chat-logo-image');if(unreadMessagesQuantity>0){var counterPrev=counterWrapper.querySelector('.prev');var counterCurrent=counterWrapper.querySelector('.current');counterPrev.innerHTML=unreadMessagesQuantity-1;counterCurrent.innerHTML=unreadMessagesQuantity;logo.style.display='none';counterWrapper.style.display='block';if(unreadMessagesQuantity===1||isClosedTab){counterPrev.innerHTML=unreadMessagesQuantity;text.innerHTML=_this.options.messages.newMessage;text.classList.add('fadeIn')}else{text.innerHTML=_this.options.messages.newMessages;var duration=500;var interval=20;var startTime=Date.now();var size=counterPrev.clientHeight;var iterationSize=size/(duration/interval);counterCurrent.style.marginTop=(-size)+'px';var timer=setInterval(function(){var timePassed=Date.now()-startTime;if(timePassed>=duration){clearInterval(timer);counterCurrent.style.marginTop='0px';return} var currentOffset=parseFloat(counterCurrent.style.marginTop);counterCurrent.style.marginTop=(currentOffset+iterationSize)+'px'},interval)} isClosedTab&&favicon.flash(unreadMessagesQuantity)}else{logo.style.display='inline-block';counterWrapper.style.display='none';text.innerHTML=_this.options.messages.greetingText;text.classList.remove('fadeIn');favicon.stopFlash()} window.onfocus=favicon.stopFlash};_this.processPixel=function(topic,data){var pixelImg=document.body.querySelector('img.msp-pixel');if(pixelImg===null){var pixelNode=document.createElement('img');pixelNode.src=data.pixel;pixelNode.classList.add('msp-pixel');pixelNode.style.display='none';document.body.appendChild(pixelNode)}else{if(data.pixel!==pixelImg.src){pixelImg.src=data.pixel}}};_this.render=function(){var iFrame=document.createElement('iframe');iFrame.setAttribute('src',_this.options.renderAddress);iFrame.style.width='100%';iFrame.style.height='100%';iFrame.style.border='0';iFrame.style.margin='0';iFrame.style.padding='0';iFrame.style.scroll='no';var target=document.querySelector('[data-mia-chat="wrapper"]')||document.body;var isDefaultPosition=(target===document.body);var button=document.createElement('div');button.id=_this.options.buttonId;button.innerHTML=_this.options.button;button.style.width=_this.getChatWidth();button.style.margin='0';button.style.padding='0';button.style.zIndex='100000000';button.onclick=_this.showChat;var wrapper=document.createElement('div');wrapper.id=_this.options.wrapperId;wrapper.className='mia-chat';wrapper.style.margin='0';wrapper.style.padding='0';wrapper.style.overflow='hidden';wrapper.style.zIndex='100000001';if(isDefaultPosition){wrapper.style.position=button.style.position='fixed';switch(_this.options.position){case BOTTOM_LEFT:wrapper.style.left=button.style.left='0px';wrapper.style.bottom=button.style.bottom='0px';break;default:wrapper.style.right=button.style.right='0px';wrapper.style.bottom=button.style.bottom='0px'}}else{wrapper.style.position=button.style.position='absolute';wrapper.style.left=button.style.left='0px';wrapper.style.bottom=button.style.bottom='0px'} var closeButton=document.createElement('div');closeButton.style.width='20px';closeButton.style.height='20px';closeButton.style.position='absolute';closeButton.style.top='2px';closeButton.style.right='6px';closeButton.style.cursor='pointer';closeButton.onclick=_this.hideChat;wrapper.appendChild(iFrame);wrapper.appendChild(closeButton);target.appendChild(wrapper);target.appendChild(button);_this.setChatSize();window.onresize=_this.setChatSize;localStorage.getItem('mia:isOpened')==='1'?_this.showChat():_this.hideChat()};_this.setChatSize=function(){var wrapper=document.getElementById(_this.options.wrapperId);wrapper.style.width=_this.getChatWidth();if(localStorage.getItem('mia:isOpened')==='1'){wrapper.style.height=_this.getChatHeight()} var button=document.getElementById(_this.options.buttonId);button.style.width=_this.getChatWidth()};_this.getChatWidth=function(suffix='px'){return(window.innerWidth<_this.options.maxWidth?window.innerWidth:_this.options.maxWidth)+suffix};_this.getChatHeight=function(suffix='px'){return(window.innerHeight<_this.options.maxHeight?window.innerHeight:_this.options.maxHeight)+suffix};_this.hideChat=function(){document.getElementById(_this.options.wrapperId).style.height='0px';window.document.dispatchEvent(new Event('mia:isClosed'));localStorage.setItem('mia:isOpened','0');socket.connection.publish(_this.initEventName(EVENT_CHAT_CLOSED))};_this.showChat=function(){window.document.dispatchEvent(new Event('mia:isOpened'));localStorage.setItem('mia:isOpened','1');socket.connection.publish(_this.initEventName(EVENT_CHAT_OPENED));_this.setChatSize()};_this.initEventName=function(event){return _this.options.initHash+'::'+event};_this.render();var openButtons=document.querySelectorAll('[data-mia-chat="open"]');forEach(openButtons,function(index,button){button.onclick=_this.showChat});var closeButtons=document.querySelectorAll('[data-mia-chat="close"]');forEach(closeButtons,function(index,button){button.onclick=_this.hideChat})};function forEach(array,callback,scope){for(var i=0;i1){modifiedTitle=messagesQuantity+' '+this.options.messages.newMessages} favicon.setFavicon(modifiedFavicon);favicon.setTitle(modifiedTitle);var isDefault=!1;this.interval=setInterval(function(){favicon.setFavicon(isDefault?favicon.defaultFavicon:modifiedFavicon);favicon.setTitle(isDefault?favicon.defaultTitle:modifiedTitle);isDefault=!isDefault},interval)},stopFlash:function(){if(favicon.interval){clearInterval(favicon.interval);favicon.setFavicon(favicon.defaultFavicon);favicon.setTitle(favicon.defaultTitle)}},setFavicon:function(modifiedFavicon){if(this.defaultFavicon.length<1){return} window.document.querySelector("link[rel*='icon']").href=modifiedFavicon},setTitle:function(modifiedTitle){if(this.defaultTitle.length<1){return} window.document.title=modifiedTitle}};"use strict";var AUTOBAHNJS_VERSION="?.?.?",AUTOBAHNJS_DEBUG=!0,ab=window.ab={};ab._version=AUTOBAHNJS_VERSION,Array.prototype.indexOf||(Array.prototype.indexOf=function(o){if(null===this)throw new TypeError;var e=new Object(this),n=e.length>>>0;if(0===n)return-1;var s=0;if(arguments.length>0&&((s=Number(arguments[1]))!=s?s=0:0!==s&&s!==1/0&&s!==-1/0&&(s=(s>0||-1)*Math.floor(Math.abs(s)))),s>=n)return-1;for(var r=s>=0?s:Math.max(n-Math.abs(s),0);r>>0;if("[object Function]"!=={}.toString.call(o))throw new TypeError(o+" is not a function");for(e&&(n=e),s=0;s-1?ab._sliceUserAgent("Chrome"," ","/"):o.indexOf("Safari")>-1?ab._sliceUserAgent("Safari"," ","/"):o.indexOf("Firefox")>-1?ab._sliceUserAgent("Firefox"," ","/"):o.indexOf("MSIE")>-1?ab._sliceUserAgent("MSIE",";"," "):null},ab.browserNotSupportedMessage="Browser does not support WebSockets (RFC6455)",ab._idchars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ab._idlen=16,ab._subprotocol="wamp",ab._newid=function(){for(var o="",e=0;e1){console.group("Log Item");for(var e=0;e=0){var s=o.substring(0,n);if(this._index[s])return this._index[s]+o.substring(n+1)}return 1==e?o:null},ab.PrefixMap.prototype.shrink=function(o,e){if(-1==(n=o.indexOf(":")))for(var n=o.length;n>0;n-=1){var s=o.substring(0,n),r=this._rindex[s];if(r)return r+":"+o.substring(n)}return 1==e?o:null},ab._MESSAGE_TYPEID_WELCOME=0,ab._MESSAGE_TYPEID_PREFIX=1,ab._MESSAGE_TYPEID_CALL=2,ab._MESSAGE_TYPEID_CALL_RESULT=3,ab._MESSAGE_TYPEID_CALL_ERROR=4,ab._MESSAGE_TYPEID_SUBSCRIBE=5,ab._MESSAGE_TYPEID_UNSUBSCRIBE=6,ab._MESSAGE_TYPEID_PUBLISH=7,ab._MESSAGE_TYPEID_EVENT=8,ab.CONNECTION_CLOSED=0,ab.CONNECTION_LOST=1,ab.CONNECTION_UNREACHABLE=2,ab.CONNECTION_UNSUPPORTED=3,ab.Session=function(o,e,n,s){var r=this;if(r._wsuri=o,r._options=s,r._websocket_onopen=e,r._websocket_onclose=n,r._websocket=null,r._websocket_connected=!1,r._session_id=null,r._calls={},r._subscriptions={},r._prefixes=new ab.PrefixMap,r._txcnt=0,r._rxcnt=0,"WebSocket"in window)r._websocket=new WebSocket(r._wsuri,[ab._subprotocol]);else{if(!("MozWebSocket"in window)){if(void 0!==n)return void n(ab.CONNECTION_UNSUPPORTED);throw ab.browserNotSupportedMessage}r._websocket=new MozWebSocket(r._wsuri,[ab._subprotocol])}r._websocket.onmessage=function(o){ab._debugws&&(r._rxcnt+=1,console.group("WS Receive"),console.info(r._wsuri+" ["+r._session_id+"]"),console.log(r._rxcnt),console.log(o.data),console.groupEnd());var e=JSON.parse(o.data);if(e[1]in r._calls){if(e[0]===ab._MESSAGE_TYPEID_CALL_RESULT){var n=r._calls[e[1]],s=e[2];if(ab._debugrpc&&void 0!==n._ab_callobj){console.group("WAMP Call",n._ab_callobj[2]),console.timeEnd(n._ab_tid),console.group("Arguments");for(var i=3;i3){if(!(arguments[2]instanceof Array))throw"invalid argument type(s)";if(!(arguments[3]instanceof Array))throw"invalid argument type(s)";s=arguments[2],r=arguments[3],i=[ab._MESSAGE_TYPEID_PUBLISH,o,e,s,r]}else if(arguments.length>2)if("boolean"==typeof arguments[2])n=arguments[2],i=[ab._MESSAGE_TYPEID_PUBLISH,o,e,n];else{if(!(arguments[2]instanceof Array))throw"invalid argument type(s)";s=arguments[2],i=[ab._MESSAGE_TYPEID_PUBLISH,o,e,s]}else i=[ab._MESSAGE_TYPEID_PUBLISH,o,e];ab._debugpubsub&&(console.group("WAMP Publish"),console.info(this._wsuri+" ["+this._session_id+"]"),console.log(o),console.log(e),null!==n?console.log(n):null!==s&&(console.log(s),null!==r&&console.log(r)),console.groupEnd()),this._send(i)};(function(name,context,definition){'use strict' if(typeof window!=='undefined'&&typeof window.define==='function'&&window.define.amd){window.define(definition)}else if(typeof module!=='undefined'&&module.exports){module.exports=definition()}else if(context.exports){context.exports=definition()}else{context[name]=definition()}})('Fingerprint2',this,function(){'use strict' var x64Add=function(m,n){m=[m[0]>>>16,m[0]&0xffff,m[1]>>>16,m[1]&0xffff] n=[n[0]>>>16,n[0]&0xffff,n[1]>>>16,n[1]&0xffff] var o=[0,0,0,0] o[3]+=m[3]+n[3] o[2]+=o[3]>>>16 o[3]&=0xffff o[2]+=m[2]+n[2] o[1]+=o[2]>>>16 o[2]&=0xffff o[1]+=m[1]+n[1] o[0]+=o[1]>>>16 o[1]&=0xffff o[0]+=m[0]+n[0] o[0]&=0xffff return[(o[0]<<16)|o[1],(o[2]<<16)|o[3]]} var x64Multiply=function(m,n){m=[m[0]>>>16,m[0]&0xffff,m[1]>>>16,m[1]&0xffff] n=[n[0]>>>16,n[0]&0xffff,n[1]>>>16,n[1]&0xffff] var o=[0,0,0,0] o[3]+=m[3]*n[3] o[2]+=o[3]>>>16 o[3]&=0xffff o[2]+=m[2]*n[3] o[1]+=o[2]>>>16 o[2]&=0xffff o[2]+=m[3]*n[2] o[1]+=o[2]>>>16 o[2]&=0xffff o[1]+=m[1]*n[3] o[0]+=o[1]>>>16 o[1]&=0xffff o[1]+=m[2]*n[2] o[0]+=o[1]>>>16 o[1]&=0xffff o[1]+=m[3]*n[1] o[0]+=o[1]>>>16 o[1]&=0xffff o[0]+=(m[0]*n[3])+(m[1]*n[2])+(m[2]*n[1])+(m[3]*n[0]) o[0]&=0xffff return[(o[0]<<16)|o[1],(o[2]<<16)|o[3]]} var x64Rotl=function(m,n){n%=64 if(n===32){return[m[1],m[0]]}else if(n<32){return[(m[0]<>>(32-n)),(m[1]<>>(32-n))]}else{n-=32 return[(m[1]<>>(32-n)),(m[0]<>>(32-n))]}} var x64LeftShift=function(m,n){n%=64 if(n===0){return m}else if(n<32){return[(m[0]<>>(32-n)),m[1]<>>1]) h=x64Multiply(h,[0xff51afd7,0xed558ccd]) h=x64Xor(h,[0,h[0]>>>1]) h=x64Multiply(h,[0xc4ceb9fe,0x1a85ec53]) h=x64Xor(h,[0,h[0]>>>1]) return h} var x64hash128=function(key,seed){key=key||'' seed=seed||0 var remainder=key.length%16 var bytes=key.length-remainder var h1=[0,seed] var h2=[0,seed] var k1=[0,0] var k2=[0,0] var c1=[0x87c37b91,0x114253d5] var c2=[0x4cf5ad43,0x2745937f] for(var i=0;i>>0).toString(16)).slice(-8)+('00000000'+(h1[1]>>>0).toString(16)).slice(-8)+('00000000'+(h2[0]>>>0).toString(16)).slice(-8)+('00000000'+(h2[1]>>>0).toString(16)).slice(-8)} var defaultOptions={preprocessor:null,audio:{timeout:1000,excludeIOS11:!0},fonts:{swfContainerId:'fingerprintjs2',swfPath:'flash/compiled/FontList.swf',userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{'enumerateDevices':!0,'pixelRatio':!0,'doNotTrack':!0,'fontsFlash':!0},NOT_AVAILABLE:'not available',ERROR:'error',EXCLUDED:'excluded'} var each=function(obj,iterator){if(Array.prototype.forEach&&obj.forEach===Array.prototype.forEach){obj.forEach(iterator)}else if(obj.length===+obj.length){for(var i=0,l=obj.length;ib.name){return 1} if(a.name=0){os='Windows Phone'}else if(userAgent.indexOf('win')>=0){os='Windows'}else if(userAgent.indexOf('android')>=0){os='Android'}else if(userAgent.indexOf('linux')>=0){os='Linux'}else if(userAgent.indexOf('iphone')>=0||userAgent.indexOf('ipad')>=0){os='iOS'}else if(userAgent.indexOf('mac')>=0){os='Mac'}else{os='Other'} var mobileDevice=(('ontouchstart' in window)||(navigator.maxTouchPoints>0)||(navigator.msMaxTouchPoints>0)) if(mobileDevice&&os!=='Windows Phone'&&os!=='Android'&&os!=='iOS'&&os!=='Other'){return!0} if(typeof oscpu!=='undefined'){oscpu=oscpu.toLowerCase() if(oscpu.indexOf('win')>=0&&os!=='Windows'&&os!=='Windows Phone'){return!0}else if(oscpu.indexOf('linux')>=0&&os!=='Linux'&&os!=='Android'){return!0}else if(oscpu.indexOf('mac')>=0&&os!=='Mac'&&os!=='iOS'){return!0}else if((oscpu.indexOf('win')===-1&&oscpu.indexOf('linux')===-1&&oscpu.indexOf('mac')===-1)!==(os==='Other')){return!0}} if(platform.indexOf('win')>=0&&os!=='Windows'&&os!=='Windows Phone'){return!0}else if((platform.indexOf('linux')>=0||platform.indexOf('android')>=0||platform.indexOf('pike')>=0)&&os!=='Linux'&&os!=='Android'){return!0}else if((platform.indexOf('mac')>=0||platform.indexOf('ipad')>=0||platform.indexOf('ipod')>=0||platform.indexOf('iphone')>=0)&&os!=='Mac'&&os!=='iOS'){return!0}else if((platform.indexOf('win')===-1&&platform.indexOf('linux')===-1&&platform.indexOf('mac')===-1)!==(os==='Other')){return!0} return typeof navigator.plugins==='undefined'&&os!=='Windows'&&os!=='Windows Phone'} var getHasLiedBrowser=function(){var userAgent=navigator.userAgent.toLowerCase() var productSub=navigator.productSub var browser if(userAgent.indexOf('firefox')>=0){browser='Firefox'}else if(userAgent.indexOf('opera')>=0||userAgent.indexOf('opr')>=0){browser='Opera'}else if(userAgent.indexOf('chrome')>=0){browser='Chrome'}else if(userAgent.indexOf('safari')>=0){browser='Safari'}else if(userAgent.indexOf('trident')>=0){browser='Internet Explorer'}else{browser='Other'} if((browser==='Chrome'||browser==='Safari'||browser==='Opera')&&productSub!=='20030107'){return!0} var tempRes=eval.toString().length if(tempRes===37&&browser!=='Safari'&&browser!=='Firefox'&&browser!=='Other'){return!0}else if(tempRes===39&&browser!=='Internet Explorer'&&browser!=='Other'){return!0}else if(tempRes===33&&browser!=='Chrome'&&browser!=='Opera'&&browser!=='Other'){return!0} var errFirefox try{throw 'a'}catch(err){try{err.toSource() errFirefox=!0}catch(errOfErr){errFirefox=!1}} return errFirefox&&browser!=='Firefox'&&browser!=='Other'} var isCanvasSupported=function(){var elem=document.createElement('canvas') return!!(elem.getContext&&elem.getContext('2d'))} var isWebGlSupported=function(){if(!isCanvasSupported()){return!1} var glContext=getWebglCanvas() return!!window.WebGLRenderingContext&&!!glContext} var isIE=function(){if(navigator.appName==='Microsoft Internet Explorer'){return!0}else if(navigator.appName==='Netscape'&&/Trident/.test(navigator.userAgent)){return!0} return!1} var hasSwfObjectLoaded=function(){return typeof window.swfobject!=='undefined'} var hasMinFlashInstalled=function(){return window.swfobject.hasFlashPlayerVersion('9.0.0')} var addFlashDivNode=function(options){var node=document.createElement('div') node.setAttribute('id',options.fonts.swfContainerId) document.body.appendChild(node)} var loadSwfAndDetectFonts=function(done,options){var hiddenCallback='___fp_swf_loaded' window[hiddenCallback]=function(fonts){done(fonts)} var id=options.fonts.swfContainerId addFlashDivNode() var flashvars={onReady:hiddenCallback} var flashparams={allowScriptAccess:'always',menu:'false'} window.swfobject.embedSWF(options.fonts.swfPath,id,'1','1','9.0.0',!1,flashvars,flashparams,{})} var getWebglCanvas=function(){var canvas=document.createElement('canvas') var gl=null try{gl=canvas.getContext('webgl')||canvas.getContext('experimental-webgl')}catch(e){} if(!gl){gl=null} return gl} var components=[{key:'userAgent',getData:UserAgent},{key:'language',getData:languageKey},{key:'colorDepth',getData:colorDepthKey},{key:'deviceMemory',getData:deviceMemoryKey},{key:'pixelRatio',getData:pixelRatioKey},{key:'hardwareConcurrency',getData:hardwareConcurrencyKey},{key:'screenResolution',getData:screenResolutionKey},{key:'availableScreenResolution',getData:availableScreenResolutionKey},{key:'timezoneOffset',getData:timezoneOffset},{key:'timezone',getData:timezone},{key:'sessionStorage',getData:sessionStorageKey},{key:'localStorage',getData:localStorageKey},{key:'indexedDb',getData:indexedDbKey},{key:'addBehavior',getData:addBehaviorKey},{key:'openDatabase',getData:openDatabaseKey},{key:'cpuClass',getData:cpuClassKey},{key:'platform',getData:platformKey},{key:'doNotTrack',getData:doNotTrackKey},{key:'plugins',getData:pluginsComponent},{key:'canvas',getData:canvasKey},{key:'webgl',getData:webglKey},{key:'webglVendorAndRenderer',getData:webglVendorAndRendererKey},{key:'adBlock',getData:adBlockKey},{key:'hasLiedLanguages',getData:hasLiedLanguagesKey},{key:'hasLiedResolution',getData:hasLiedResolutionKey},{key:'hasLiedOs',getData:hasLiedOsKey},{key:'hasLiedBrowser',getData:hasLiedBrowserKey},{key:'touchSupport',getData:touchSupportKey},{key:'fonts',getData:jsFontsKey,pauseBefore:!0},{key:'fontsFlash',getData:flashFontsKey,pauseBefore:!0},{key:'audio',getData:audioKey},{key:'enumerateDevices',getData:enumerateDevicesKey}] var Fingerprint2=function(options){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")} Fingerprint2.get=function(options,callback){if(!callback){callback=options options={}}else if(!options){options={}} extendSoft(options,defaultOptions) options.components=options.extraComponents.concat(components) var keys={data:[],addPreprocessedComponent:function(key,value){if(typeof options.preprocessor==='function'){value=options.preprocessor(key,value)} keys.data.push({key:key,value:value})}} var i=-1 var chainComponents=function(alreadyWaited){i+=1 if(i>=options.components.length){callback(keys.data) return} var component=options.components[i] if(options.excludes[component.key]){chainComponents(!1) return} if(!alreadyWaited&&component.pauseBefore){i-=1 setTimeout(function(){chainComponents(!0)},1) return} try{component.getData(function(value){keys.addPreprocessedComponent(component.key,value) chainComponents(!1)},options)}catch(error){keys.addPreprocessedComponent(component.key,String(error)) chainComponents(!1)}} chainComponents(!1)} Fingerprint2.getPromise=function(options){return new Promise(function(resolve,reject){Fingerprint2.get(options,resolve)})} Fingerprint2.getV18=function(options,callback){if(callback==null){callback=options options={}} return Fingerprint2.get(options,function(components){var newComponents=[] for(var i=0;i\n .mia-chat-counter {\n background: #fff;\n border-radius: 57px;\n width: 18px;\n height: 21px;\n margin: 15px 7px 0;\n line-height: 22px;\n color: #18b44c ;\n text-align: center;\n font-weight: bold;\n font-size: 14px;\n overflow: hidden;\n display: none;\n float: left;\n animation: pulse 2s infinite;\n }\n .animated {\n -webkit-animation-duration: 1s;\n animation-duration: 1s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n\n .fadeIn {\n animation-name: fadeIn;\n }\n\n @-webkit-keyframes pulse {\n 0% {\n -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.4);\n }\n 70% {\n -webkit-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n }\n 100% {\n -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n }\n }\n\n @keyframes pulse {\n 0% {\n -moz-box-shadow: 0 0 0 0 rgba(222, 225, 216, 0);\n box-shadow: 0 0 0 0 rgba(222, 225, 216, 0.6);\n }\n 70% {\n -moz-box-shadow: 0 0 0 10px rgba(222, 225, 216, 0);\n box-shadow: 0 0 0 10px rgba(222, 225, 216, 0);\n }\n 100% {\n -moz-box-shadow: 0 0 0 0 rgba(222, 225, 216, 0);\n box-shadow: 0 0 0 0 rgba(222, 225, 216, 0);\n }\n }\n\n
\n
\n
0
\n
-1
\n
\n \n \n Need assistance? Click here! \n
","messages":{"newMessages":"New messages","newMessage":"New message","greetingText":"Need assistance? Click here!"}})