var trackInit=null;function ___init(){var e=[];function a(){return(window.callPhantom||window._phantom||window.phantom)&&e.push(1),window.__nightmare&&e.push(2),navigator.webdriver&&e.push(3),(document.__selenium_unwrapped||document.__webdriver_evaluate||document.__driver_evaluate)&&e.push(4),e}function d(){return(new Date).getTimezoneOffset()}function r(e){const t=window.document.querySelector(`meta[property='${e}']`);if(t){const n=t.getAttribute("content");if(0<n.trim().length)return n}return null}function o(){return new Promise(function(t,n){var e,i="Unknown";function r(e){t({isPrivate:e,browserName:i})}function o(e){return e===eval.toString().length}function a(){if(void 0!==navigator.maxTouchPoints)try{window.indexedDB.open("test",1).onupgradeneeded=function(e){e=e.target?.result;try{e.createObjectStore("test",{autoIncrement:!0}).put(new Blob),r(!1)}catch(e){let t=e;return"string"!=typeof(t=e instanceof Error?e.message??e:t)?r(!1):r(/BlobURLs are not yet supported/.test(t))}}}catch(e){return void r(!1)}else{var e=window.openDatabase,t=window.localStorage;try{e(null,null,null,null)}catch(e){return void r(!0)}try{t.setItem("test","1"),t.removeItem("test")}catch(e){return void r(!0)}r(!1)}}function d(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(e,t){r(t<(void 0!==(t=window).performance&&void 0!==t.performance.memory&&void 0!==t.performance.memory.jsHeapSizeLimit?performance.memory.jsHeapSizeLimit:1073741824))},function(e){n(new Error("detectIncognito somehow failed to query storage quota: "+e.message))})}function c(){void 0!==self.Promise&&void 0!==self.Promise.allSettled?d():(0,window.webkitRequestFileSystem)(0,1,function(){r(!1)},function(){r(!0)})}void 0!==(e=navigator.vendor)&&0===e.indexOf("Apple")&&o(37)?(i="Safari",a()):void 0!==(e=navigator.vendor)&&0===e.indexOf("Google")&&o(33)?(e=navigator.userAgent,i=e.match(/Chrome/)?void 0!==navigator.brave?"Brave":e.match(/Edg/)?"Edge":e.match(/OPR/)?"Opera":"Chrome":"Chromium",c()):void 0!==document.documentElement&&void 0!==document.documentElement.style.MozAppearance&&o(37)?(i="Firefox",r(void 0===navigator.serviceWorker)):void 0!==navigator.msSaveBlob&&o(39)?(i="Internet Explorer",r(void 0===window.indexedDB)):n(new Error("detectIncognito cannot determine the browser"))})}if(window===window.parent){async function c(e,t,n=null){try{t.b=a(),t.bc=0<t.b.length}catch(e){}try{t.title=r("og:title")||window.document.title}catch(e){}try{var i=r("og:image");i&&(t.image=i)}catch(e){}try{t.t=d()}catch(e){}try{t.cg=await o()}catch(e){}return window===window.parent?!0!==trackInit?(trackInit=!0,{event:e,referrer:document.referrer||"",data:t,callback:n}):null:(console.log("Loaded in iframe"),null)}var n,i,t,l,s="data.digitalks.az";window.digitalks&&(n="d30d74fc-47f6-4619-9716-be6880a1ce95",window.digitalks._c.user_id=n,window.digitalks._c.page_url&&"{{Page URL}}"!==window.digitalks._c.page_url||(window.digitalks._c.page_url=window.location.href),window.digitalks._c.referrer&&"{{Referrer}}"!==window.digitalks._c.referrer||(window.digitalks._c.referrer=document.referrer||""),i=!1,setTimeout(function(){i=!0},1e4),t=(t=window.digitalks.script_id)||window.digitalks._c.script_id,setInterval(function(){var e;i&&(e=window.digitalks._e,window.digitalks._e=[],e.forEach(async function(e){var t,n,i=e[0],r=e.slice(1),o={};switch(i){case"track":o=await c.apply(null,r);break;case"identify":o=function(e,t=null){try{obj.b=a()}catch(e){}try{obj.t=d()}catch(e){}return{event:"identify",referrer:document.referrer||"",data:e,callback:t}}.apply(null,r)}null!==o&&((e=window.digitalks.script_id)||(e=window.digitalks._c.script_id,o.config={},Object.assign(o.config,window.digitalks._c),delete o.config.script_id),t=o.callback,delete o.callback,i=encodeURIComponent(JSON.stringify(o)),(n=document.createElement("img")).src="//"+s+"/v1/pixels/"+e+"/1x1.png?data="+i+"&cb="+Math.random(),n.style.display="none",t&&(n.onload=function(e){t()}),document.body.appendChild(n))}))},100),window.addEventListener("message",function(e){var t=e.data;"string"==typeof t&&e.origin.includes("//"+s)&&(n!==t&&(window.digitalks._c.user_id=t,window.digitalks._c.iframe_user_id=!0),i=!0)},!1),(l=document.createElement("iframe")).src="//"+s+"/v1/iframes/"+t+"/iframe.html?user_id="+n+"&cb="+Math.random(),l.width="0",l.height="0",l.frameBorder="0",document.body.appendChild(l)),digitalks._c&&digitalks._c.page_url?digitalks._c.page_url:window.location.href;{let i=[],r=[];function u(){for(let t=0;t<i.length;t++){var n=document.querySelector(i[t]);if(n){let e=r[t];r.splice(t,1),i.splice(t,1),e(n)}}}new MutationObserver(u).observe(document,{childList:!0,subtree:!0}),digitalks.track("view",{})}}else console.log("Iframe")}"loading"!==document.readyState?___init():document.addEventListener("DOMContentLoaded",___init);