s.abla.io Open in urlscan Pro
51.159.25.214  Public Scan

URL: https://s.abla.io/abla.js
Submission: On May 24 via manual from DE — Scanned from FR

Form analysis 0 forms found in the DOM

Text Content

!function(){"use strict";var t=function(t,e,a){var n=t[e];return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return a.apply(null,e),n.apply(t,e)}},e=function(){var t=window.doNotTrack,e=window.navigator,a=window.external,n="msTrackingProtectionEnabled",r=t||e.doNotTrack||e.msDoNotTrack||a&&n in a&&a[n]();return"1"==r||"yes"===r};!function(a){var n=a.screen,r=n.width,i=n.height,o=a.navigator.language,c=a.location,s=c.hostname,l=c.pathname,u=c.search,d=a.localStorage,f=a.sessionStorage,v=a.document,p=a.history,h=v.querySelectorAll("script[data-website-id]"),g=h[h.length-1];if(g){var b,w=g.getAttribute.bind(g),m=w("data-website-id"),y=w("data-host-url"),S="false"!==w("data-auto-track"),k=w("data-do-not-track"),E=w("data-cache"),T=w("data-domains")||"",q=T.split(",").map((function(t){return t.trim()})),A=/^abla--([a-z]+)--([\w]+[\w-]*)--([a-z]+)--([a-z]+)(--[a-zA-Z0-9_.-]+)?$/,N="[class*='abla--']",j="abla.cache",z=function(){return d&&d.getItem("abla.disabled")||k&&e()||T&&!q.includes(s)},L=y?(b=y)&&b.length>1&&b.endsWith("/")?b.slice(0,-1):b:g.src.split("/").slice(0,-1).join("/"),O=r+"x"+i,I={},_=""+l+u,x=v.referrer,H=function(t,e,n){if(!z()){var r={website:n,hostname:s,screen:O,language:o,cache:E&&f.getItem(j)};Object.keys(e).forEach((function(t){r[t]=e[t]})),function(t,e,a){var n=new XMLHttpRequest;n.open("POST",t,!0),n.setRequestHeader("Content-Type","application/json"),n.onreadystatechange=function(){4===n.readyState&&a(n.response)},n.send(JSON.stringify(e))}(L+"/api/collect",{type:t,payload:r},(function(t){E&&a.localStorage.setItem(j,t)}))}},M=function(t,e,a){void 0===t&&(t=_),void 0===e&&(e=x),void 0===a&&(a=m),H("pageview",{url:t,referrer:e},a)},P=function(t,e,a,n,r,i,o){void 0===e&&(e="custom"),void 0===i&&(i=_),void 0===o&&(o=m),H("event",{event_type:e,event_value:t,html:a,periode:n,custom:r,url:i},o)},R=function(t){t.className.split(" ").forEach((function(e){if(A.test(e)){var a=e.split("--"),n=a[1],r=a[2],i=a[3],o=a[4],c=a[5],s=I[e]?I[e]:I[e]=function(){return P(r,n,i,o,c)};t.addEventListener(n,s,!0)}}))},C=function(t){t.forEach((function(t){var e=t.target;R(e),e.querySelectorAll(N).forEach(R)}))},D=function(t,e,a){if(a){x=_;var n=a.toString();(_="http"===n.substring(0,4)?"/"+n.split("/").splice(3).join("/"):n)!==x&&M()}};if(!a.abla){var J=function(t){return P(t)};J.trackView=M,J.trackEvent=P,a.abla=J}if(S&&!z()){p.pushState=t(p,"pushState",D),p.replaceState=t(p,"replaceState",D);var V=function(){switch(v.readyState){case"interactive":v.querySelectorAll(N).forEach(R),new MutationObserver(C).observe(v,{childList:!0,subtree:!0});break;case"complete":M()}};v.addEventListener("readystatechange",V,!0),V()}}}(window)}();