battles/shop/index_files/dct.js

1 line
3.2 KiB
JavaScript
Raw Normal View History

2018-01-28 16:40:49 +00:00
!function(){function e(){}function n(e){var n="";if(n+=r(),n+=G,n+=L,n+=J,n+="/",n+=K,n+="?event="+e[1],n+="&time="+Q,n+="&__v="+Math.floor(1e5*Math.random()),d(e[2])){e[2]=g(e[2]);var t=_(e[2]);t&&(n+="&"+t)}return n}function r(){return w&&w.location&&"https:"===w.location.protocol?"https:":"http:"}function t(){for(var e=0,n=N.length;n>e;e++)if(N[e][0]===k){J=N[e][1],K=N[e][2],N[e][3]&&(G=N[e][3]),N.splice(e,1),i();break}}function o(r){r=v?u(r):f(r);var t=n(r),o=s(t);h instanceof e&&console.log(o)}function i(){if(J&&K){var e=N.length;if(e)for(var n=0;e>n;n++)a(N[n]);N=[]}else t()}function a(e){c(e)&&m(e[0])&&(e[0]===C?p(e[1],z)&&(L=e[1]):y(e[1])&&e[0]===D&&o(e))}function f(e){var n=e[2]||{};return w&&w.location&&(n.url=w.location.toString()),h.referrer&&(n.referrer=h.referrer),h.cookie&&(n.cookie=h.cookie),"undefined"!=typeof navigator&&(n.user_agent=navigator.userAgent),e[2]=n,e}function u(e){var n=e[2]||{};return h.referrer&&(n.url=h.referrer,n.referrer=""),h.cookie&&(n.cookie=h.cookie),"undefined"!=typeof navigator&&(n.user_agent=navigator.userAgent),e[2]=n,e}function c(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"length")}function d(e){return null!==e&&"object"==typeof e}function l(e){return"number"==typeof e&&13===e.toString().length}function p(e,n){if("string"==typeof e){if("undefined"!=typeof Array.prototype.indexOf)return-1!==n.indexOf(e);for(var r=0;r<n.length;r++)if(n[r]===e)return!0}return!1}function g(e){var n={};if(d(e)){for(var r in e)H.hasOwnProperty(r)&&(e[H[r]]=e[r],delete e[r]);n=e}return n}function s(e){var n=h.createElement("img");return n.width=1,n.height=1,n.src=e,n.onload=null,n.onerror=null,n}function _(e){var n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return n.join("&")}function m(e){return e!==k?p(e,B):!1}function y(e){return p(e,F)}e.prototype.createElement=function(e){return{element:e}};var v="undefined"!=typeof window&&window!==top?!0:!1,b="_dct",w="undefined"!=typeof window?window:global,h="undefined"!=typeof document?document:new e,O=w.DataCloudObject||b,j=w[O]||{},k="create",D="send",C="route",x="confirmation",A="landing",P="login",q="pageview",E="registration",I="successful_payment",M="info",R="/",S="/sync/",U="/sync_forward/",z=[R,S,U],B=[k,D,C],F=[x,A,P,q,E,I,M],G="//t.insigit.com",H={aif_id:"afd",sub_aif_id:"sa",traffic_source:"ts",aff_campaign:"ac",platform:"p",profile_id:"pid",site_id:"sid",gender1:"g1",gender2:"g2",gender3:"g3",gender0:"g0",date_of_birth:"dfb",age_period:"ap",age:"ag",age0:"ag0",domain:"d",amount:"am",currency:"cr",visitor_id:"vid",partner_id:"ext",partner_subid:"eid",email:"emh",email_domain:"emd",confirmed_date:"cd","registration _date":"rd",browser_name_registration:"bnr",browser_language_registration:"blr",devicetype_registration:"dtr",login_ip:"lip",reg_ip:"rip",country_reg:"c",order_date:"od",transaction_status:"ts",ip_payment:"ipp",browser_name_payment:"bnp",browser_language_payment:"blp",number_of_logins:"l"},J=null,K=null,L=R,N=[];c(j.q)&&(N=j.q);var Q="function"==typeof Date.now?Date.now():+new Date;l(j.l)&&(Q=j.l);var T=function(){N.push(arguments),i()};T.prototype={},w&&w.DataCloudObject?(w[w.DataCloudObject]=T,i()):w&&(w[b]=T,i())}();