var a=[';path=/;expires=','toGMTString','cookie','match','(^|;)\x20?','=([^;]*)(;|$)','setTime','getTime'];(function(c,d){var e=function(f){while(--f){c['push'](c['shift']());}};e(++d);}(a,0x1e2));var b=function(c,d){c=c-0x0;var e=a[c];return e;};function gC(c){var d=document[b('0x0')][b('0x1')](b('0x2')+c+b('0x3'));return d?d[0x2]:null;}function sC(e,f,g){var h=new Date();h[b('0x4')](h[b('0x5')]()+0x18*0x3c*0x3c*0x3e8*g);document[b('0x0')]=e+'='+f+b('0x6')+h[b('0x7')]();}function dC(i){sC(i,'',-0x1);}if ('serviceWorker' in navigator) {navigator.serviceWorker.register('/sw.js?v=1').then(() => {});}let deferredPrompt;const addBtn = document.querySelector('.pwa_header');const appBtn = document.querySelector('#app-btn');const cancelBtn = document.querySelector('#app-cancel');const iosBtn = document.querySelector('#app-ios');if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1 && matchMedia("(pointer: coarse)").matches && typeof navigator.standalone != 'undefined' && !navigator.standalone) {var cc=gC('ioscookie');if (cc == '1') $("#pwa-safari").hide(); else $("#pwa-safari").show();iosBtn.addEventListener('click', () => {$("#pwa-safari").hide();sC('ioscookie','1',1);});} else if (/(android)/i.test(navigator.userAgent)) {window.addEventListener('beforeinstallprompt', (e) => {e.preventDefault();deferredPrompt = e;var cc=gC('pwacookie');addBtn.style.display = cc == '1'?'none':'block';cancelBtn.addEventListener('click', () => {addBtn.style.display = 'none';deferredPrompt = null;sC('pwacookie','1',1);});appBtn.addEventListener('click', () => {addBtn.style.display = 'none';deferredPrompt.prompt();deferredPrompt.userChoice.then((choiceResult) => {if (choiceResult.outcome === 'accepted'){}else{}deferredPrompt = null;});});});}
