trc.karakok.net
Open in
urlscan Pro
185.122.202.234
Public Scan
URL:
https://trc.karakok.net/v1/kntrc.js?t=1734778
Submission: On December 22 via api from US — Scanned from DE
Submission: On December 22 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
/*! * KARAKOK.NET Web Tracking js v1.0.2 * Powered by KARKOK.NET IT Core and guaranteed to High Level Software. * Developer and Idea Community: mkarakok, zaydin, hkaya, skarakok, hkoca, and you can be.. */ ((n,t,i)=>{var d,p,lt,tt,er,g,w,it,b,o,at,rt,ut,f,s,vt,ii,ot=0,yt=[];const ri=0,or="GET",ui="POST",y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=30,fi=i+"_ca",sr=a*60,ei=i+"_bd",hr=a*60,oi=i+"_tc",cr=a*60,si=i+"_le",lr=a*60,hi=i+"_ci",ci=i+"_si",ar=a*60,li=i+"_sh",vr=a*60,ai=i+"_ec",yr=86400,vi=i+"_re",pr=86400,yi=i+"_lt",wr=300,pt=i+"_lc",br=a*60,pi=i+"_ti",kr=a*60,wi=3e3,dr="/refCode/verify",gr="/webActivity/post",nu="/webActivity/live",tu="/clientActivity/post",iu="/commercial/post",ru="/commercial/postDetail",nt="isSuccessful",uu=()=>{b=c(fi),r(b)?(o=!0,bi()):sf(w.concat(dr,"?v=",it,"&d=",tt)).then(n=>{let t=v(n);t[nt]?(o=!0,b=t.result.id,e(fi,b,sr),lu(t.result.blockedDomains),au(t.result.transfersCodes),vu(t.result.eventsToListen),bi()):(o=!1,ir(t.error.message))})},bi=()=>{yu(),pu(),wu(),bu(),ku(),fu("onload"),du(),gu()},fu=i=>{if(o){let h=c(yi);if(r(h)&&u(h)===g)ki(!0,"reload");else{let h={Ki:b,Ec:r(f)?u(f):null,Tc:r(s)?u(s):null,Fh:r(d)?u(d):null,Rh:p===tt?null:p,Rl:lt,Dh:tt,Dl:g,Lt:i,Fa:vt,Ci:u(rt),Si:u(ut),Dm:n.matchMedia("(prefers-color-scheme: dark)").matches||t.body.classList.contains("dark")||t.body.classList.contains("dark-mode"),Sw:parseInt(n.innerWidth),Sh:parseInt(n.innerHeight)};et(w.concat(gr),h).then(n=>{let t=v(n);t[nt]?(at=parseInt(t.result.id),e(pi,l(at),kr),ki(!1,"onpage")):(o=!1,k())})}}},ki=(n,r)=>{e(yi,l(g),wr),t.dispatchEvent(new Event(i,{bubbles:!0})),wt(n,r)},wt=(n,t)=>{k(),o&&(ot=0,n&&di(t),ii=setInterval(()=>{di(t)},wi),setTimeout(()=>{bt({def:"visitTimeouted",des:"Ziyaret zaman aşımı sınırına ulaşıldı!",obj:null}),k()},a*6e4-3e3))},di=()=>{if(o){let n=ti(),t={Ti:n,Sc:parseInt(wi/1e3)};et(w.concat(nu),t).then(n=>{let t=v(n);t[nt]?ot=0:(ot++,ot>=5&&k())})}},k=()=>{clearInterval(ii)};n.addEventListener("focus",()=>{},!1);n.addEventListener("blur",()=>{},!1);n.addEventListener("offline",()=>{k()},!1);n.addEventListener("online",()=>{wt(!0,"onpage")},!1);n.addEventListener("unload",()=>{k()},!1);t.addEventListener("visibilitychange",()=>{t.visibilityState==="hidden"?k():wt(!0,"return")},!1);t.addEventListener("click",n=>{eu(n)},!1);const eu=t=>{yt.includes("click")&&bt({def:i+"_gc",des:null,obj:{cx:parseInt(t.clientX),cy:parseInt(t.clientY),pt:t.pointerType,sx:parseInt(n.scrollX),sy:parseInt(n.scrollY)}})},bt=n=>{let t=ti(),i={Ki:b,Ti:t,Df:n.def,Ds:n.des,Op:n.obj};et(w.concat(tu),i).then(n=>{let t=v(n);t[nt]})};n[i]={pushEvent:n=>bt(n),commercial:{notifyItem:n=>ou(n),cancelItem:n=>su(n),notify:n=>gi(n,0),confirm:n=>gi(n,2),cancel:()=>hu()}};const ou=n=>{if(o){let t=ni(),i=gt(n,t);if(t>0)nr(i);else{let n=dt({});n.Items.push(i);kt(n)}}},su=n=>{if(o){let t=ni(),i=gt(n,t);i.Ds=9;t>0&&nr(i)}},gi=(n,t)=>{if(o){ft(n.status)&&(n.status=t);let i=dt(n);r(n.items)&&n.items.forEach(n=>{ft(n.status)&&(n.status=t);let r=gt(n,i.Ci);i.Items.push(r)});kt(i)}},hu=()=>{if(o){let n=dt({status:9});kt(n)}},kt=n=>{et(w.concat(iu),n).then(n=>{let t=v(n);t[nt]&&tr(t.result)})},nr=n=>{et(w.concat(ru),n).then(n=>{let t=v(n);t[nt]&&tr(t.result)})},tr=n=>{let t=parseInt(n.id);t>0?(t=l(t),e(pt,t,br)):hf(pt)},dt=n=>{let t=ti(),i=ni();return{Ki:b,Ti:t,Ci:i,Ec:r(f)?u(f):r(s)?u(s):null,Cs:n.status||0,Dn:n.devNote||n.note,Sh:n.shipping||0,In:n.installment||0,Pt:n.payType||0,Cu:n.customerType||n.cusType,Items:[]}},gt=(n,t)=>({Ci:t,Ds:n.status||0,Uc:n.unicode||n.code||n.uniCode,Nm:n.name,Dc:n.description,Co:n.company,Br:n.brand,Ct:n.category,Dt:n.detail,Pl:n.permalink||n.link,Up:n.unitPrice||0,Tr:n.taxRate||0,Dr:n.discountRate||0,Np:n.netPrice||0,Qn:n.quantity||1}),ni=()=>{let n=c(pt);return r(n)?parseInt(u(n)):0},cu=()=>{let n=t.querySelector("["+i+"]");return r(n)?n.getAttribute(i):null},ti=()=>{let n=c(pi);return u(n)},lu=n=>{ft(n)&&(n=[]),e(ei,l(st(n)),hr)},au=n=>{ft(n)&&(n=[]),e(oi,l(st(n)),cr)},vu=n=>{ft(n)&&(n=[]),e(si,l(st(n)),lr)},yu=()=>{rt=localStorage.getItem(hi),r(rt)||(rt=rr()),localStorage.setItem(hi,rt)},pu=()=>{ut=c(ci),r(ut)||(ut=rr()),e(ci,ut,ar)},wu=()=>{if(d=c(li),r(p)&&tt!==p){let n=v(u(c(ei)));n.includes(p)===!1&&(d=l(p))}r(d)&&e(li,d,vr)},bu=()=>{g.includes(i)?(f=ur(i),r(f)&&(f=l(f),e(ai,f,yr),vt=!0)):(f=c(ai),r(f))},ku=()=>{g.includes("ref"+i)?(s=ur("ref"+i),r(s)&&(s=l(s),e(vi,s,pr))):(s=c(vi),r(s))},du=()=>{let n=c(si);yt=n?v(u(n)):[]},gu=()=>{n.addEventListener("load",()=>{let n=r(f)?u(f):null;if(r(n)){let f=c(oi);if(f&&(f=v(u(f)),f.length>0)){let u=nf(f,"key",n);if(r(u)){let n=t.querySelectorAll("a[href]");if(r(n))for(let t=0;t<n.length;t++){let r=n[t].getAttribute("href");r.includes(u.val)&&n[t].setAttribute("href",ef(r,`ref${i}`,u.key))}}}}},!1)},lf=n=>console.log("%c ✔ KNTRC %c "+n,"background:#07a300;color:white;border-radius:10px",""),ir=n=>console.log("%c ⚠ KNTRC %c %c"+n,"background:#bf0000;color:white;border-radius:10px","","color:#b10000;border-bottom:1px dotted #b10000"),r=n=>typeof n!="undefined"&&n!==undefined&&n!==NaN&&n!==null&&n!==""&&n!==" ",ft=n=>typeof n=="undefined"||n===undefined||n===NaN||n===null||n===""||n===" ",h=(n,t,i)=>n.indexOf(t,i),nf=(n,t,i)=>{for(var r=0;r<n.length;r++)if(n[r][t]===i)return n[r];return null},v=n=>JSON.parse(n),st=n=>JSON.stringify(n),ht=n=>r(n)?n.replace("www.",""):n,tf=n=>r(n)?n.match(/:\/\/(.[^/]+)/)[1]:"",rf=()=>{let n=t.querySelector("["+i+"]");return r(n)?n.getAttribute("src").includes("localhost"):!1},uf=()=>{let n=rf(),t=ri>0?Math.floor(Math.random()*ri)+1:0,i=n?"":t>0?`s${t}.`:"",r=n?"":"trc.",u=n?"localhost":"karakok.net",f=n?":7154":"",e=n?"/v1":"/v1";return"https".concat("://",i,r,u,f,e)},rr=()=>l(`${Date.now().toString()}${Math.floor(Math.random()*898)+101}`),ur=n=>{let i=ff(t.location.href);for(let t in i)if(t===n)return i[t];return null},ff=n=>{n||(n=location.href);let r=h(n,"?"),t=h(n,"#");if(t===-1&&r===-1)return{};t===-1&&(t=n.length);let u=r===-1||t===r+1?n.substring(t):n.substring(r+1,t),i={};return u.split("&").forEach(n=>{if(n){n=n.split("+").join(" ");let r=h(n,"="),t=r>-1?n.substr(0,r):n,f=r>-1?ct(n.substr(r+1)):"",u=h(t,"[");if(u===-1)i[ct(t)]=f;else{let r=h(t,"]",u),n=ct(t.substring(u+1,r));t=ct(t.substring(0,u));i[t]||(i[t]=[]);n?i[t][n]=f:i[t].push(f)}}}),i},ct=n=>decodeURIComponent(n),ef=(n,t,i)=>{let r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),u=h(n,"?")!==-1?"&":"?";return n.match(r)?n.replace(r,"$1"+t+"="+i+"$2"):n+u+t+"="+i},sf=n=>fr({method:or,url:n}),et=(n,t)=>fr({method:ui,url:n,data:t}),fr=n=>{try{return new Promise(function(t,i){var u=new XMLHttpRequest;u.open(n.method,n.url,!0);u.onload=function(){this.status>=200&&this.status<300?t(u.response):i({status:this.status,statusText:u.statusText})};u.onerror=function(){i({status:this.status,statusText:u.statusText})};n.method===ui&&r(n.data)?(u.setRequestHeader("Content-type","application/json;charset=UTF-8"),u.send(st(n.data))):u.send()})}catch(t){}},e=(n,i,u,f)=>{let e;if(u){let n=new Date;n.setTime(n.getTime()+u*1e3);e="; expires="+n.toGMTString()}else e="";f=r(f)?"; path="+f:"; path=/";t.cookie=n.concat("=",i,e,f,"; secure")},c=n=>{let i=n+"=",r=t.cookie.split(";");for(let n=0;n<r.length;n++){let t=r[n];while(t.charAt(0)===" ")t=t.substring(1,t.length);if(h(t,i)===0)return t.substring(i.length,t.length)}return null},hf=n=>e(n,"null",-1),l=n=>{n=escape(n);let o="",u,t,i="",s,h,f,r="",e=0;do u=n.charCodeAt(e++),t=n.charCodeAt(e++),i=n.charCodeAt(e++),s=u>>2,h=(u&3)<<4|t>>4,f=(t&15)<<2|i>>6,r=i&63,isNaN(t)?f=r=64:isNaN(i)&&(r=64),o=o+y.charAt(s)+y.charAt(h)+y.charAt(f)+y.charAt(r),u=t=i="",s=h=f=r="";while(e<n.length);return o},u=n=>{let t="",e,o,s="",c,u,i,f="",r=0;/[^A-Za-z0-9\+\/\=]/g.exec(n);n=n.replace(/[^A-Za-z0-9\+\/\=]/g,"");do c=h(y,n.charAt(r++)),u=h(y,n.charAt(r++)),i=h(y,n.charAt(r++)),f=h(y,n.charAt(r++)),e=c<<2|u>>4,o=(u&15)<<4|i>>2,s=(i&3)<<6|f,t=t+String.fromCharCode(e),i!==64&&(t=t+String.fromCharCode(o)),f!==64&&(t=t+String.fromCharCode(s)),e=o=s="",c=u=i=f="";while(r<n.length);return unescape(t)},cf=()=>{lt=ht(t.referrer),p=ht(tf(lt)),tt=ht(t.location.host),er=t.location.pathname,g=ht(t.location.href),vt=!1,at=0,it=cu(),r(it)?(it=l(it),w=uf(),uu()):ir("tracking key not found!")};cf()})(window,document,"kntrc");