cdn.gravitec.media
Open in
urlscan Pro
45.133.44.3
Public Scan
URL:
https://cdn.gravitec.media/track.min.js
Submission: On April 07 via api from LU — Scanned from DE
Submission: On April 07 via api from LU — Scanned from DE
Form analysis
0 forms found in the DOMText Content
!function(e){var n={};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=n,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)r.d(t,o,function(n){return e[n]}.bind(null,o));return t},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="",r(r.s=3)}([function(e,n,r){var t=r(1),o=r(2);e.exports=function(e,n,r){var i=n&&r||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||t)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n)for(var u=0;u<16;++u)n[i+u]=a[u];return n||o(a)}},function(e,n){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var t=new Uint8Array(16);e.exports=function(){return r(t),t}}else{var o=new Array(16);e.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),o[n]=e>>>((3&n)<<3)&255;return o}}},function(e,n){for(var r=[],t=0;t<256;++t)r[t]=(t+256).toString(16).substr(1);e.exports=function(e,n){var t=n||0,o=r;return[o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]]].join("")}},function(e,n,r){"use strict";function t(e,n,r){var t={path:"/"},o=new Date;o.setTime(o.getTime()+864e5*r),t.expires=o.toUTCString();var i=encodeURIComponent(e)+"="+encodeURIComponent(n);for(var a in t){i+="; "+a;var u=t[a];!0!==u&&(i+="="+u)}document.cookie=i}function o(e){var n=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return n?decodeURIComponent(n[1]):void 0}function i(e){t(e,"",0)}r.r(n);var a="".concat("https://api.gravitec.media","/api/stats/track"),u="GN_IS_DEBUG_KEY",c="GN_USER_ID_KEY",f="GN_SESSION_ID_KEY",d="GN_CONTACT_ID_KEY",s="contact_id",p=r(0),l=r.n(p),g={debug:function(){if(w()){for(var e,n=new Error,r=n.stack.split("\n")[2],t=r.indexOf("at "),o=r.slice(t+1,r.length),i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];(e=console).log.apply(e,[o].concat(a))}},info:function(){var e;(e=console).log.apply(e,arguments)},error:function(){var e;(e=console).error.apply(e,arguments)}},v=365;function w(){return!!o(u)}function y(){t(u,1,v)}function m(){i(u)}function b(){var e=l()();return g.debug(e),e}function C(e,n){return g.debug(n),e+"?"+function(e){var n=[];for(var r in e)n.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return n.join("&")}(n)}var _=730;function h(){var e=o(c);return g.debug(e),e||(e=b()),t(c,e,_),e}var N=1/24/2;var I=730;function R(){var e=o(d),n=function(e){if("URLSearchParams"in window)return new URLSearchParams(window.location.search).get(e)||void 0;g.error("URLSearchParams is not supported on this old browser")}(s);return n&&e!==n&&(e=n),e&&t(d,e,I),e}function S(){return window.GravitecNetNewsConfig&&window.GravitecNetNewsConfig.regId?window.GravitecNetNewsConfig.regId:null}function x(){g.debug("Creating Params");var e=function(){if(void 0!==window.GravitecNetNewsConfig)return window.GravitecNetNewsConfig.appKey;g.error("NotFound GravitecNetNewsConfig")}(),n=R(),r=S();if(e){var i,u={app_key:e,user_id:h(),utmb:(i=o(f),g.debug(i),i||(i=b()),t(f,i,N),i),path:window.location.href,referrer:document.referrer||""};n&&(u.contact_id=n),r&&(u.reg_id=r),function(e,n){var r=C(a,n);if(window.fetch)fetch(r).then((function(e){g.debug(r)})).catch((function(e){g.error(e)}));else{var t=new XMLHttpRequest;t.open("GET",r,!0),t.onreadystatechange=function(){4==t.readyState&&(t.status>=400?g.error(t.responseText):g.debug(r))},t.send(null)}}(0,u)}else g.error("You must specify appKey")}!function(e,n){try{g.debug("Init"),e.GravitecNews={setCookie:t,getCookie:o,deleteCookie:i,enableDebug:y,disableDebug:m,getUserId:h,getContactId:R,getRegId:S,trackPageView:x},x()}catch(e){n.error(e)}}(window,console)}]);