(function(d, c) {
var a = "144e1bb6fa796840b2323709bbb2f595";
c.reviveAsync = c.reviveAsync || {};
(function(e) {
if (typeof e.CustomEvent === "function") {
return false
}
function g(i, j) {
j = j || {
bubbles: false,
cancelable: false,
detail: undefined
};
var h = document.createEvent("CustomEvent");
h.initCustomEvent(i, j.bubbles, j.cancelable, j.detail);
return h
}
g.prototype = e.Event.prototype;
e.CustomEvent = g
}
)(c);
try {
if (!c.reviveAsync.hasOwnProperty(a)) {
var f = c.reviveAsync[a] = {
id: Object.keys(c.reviveAsync).length,
name: "revive",
seq: 0,
main: function() {
var e = function() {
var g = false;
try {
if (!g) {
g = true;
d.removeEventListener("DOMContentLoaded", e, false);
c.removeEventListener("load", e, false);
f.addEventListener("start", f.start);
f.addEventListener("refresh", f.refresh);
f.dispatchEvent("start", {
start: true
})
}
} catch (h) {
console.log(h)
}
};
f.dispatchEvent("init");
if (d.readyState === "complete") {
setTimeout(e)
} else {
d.addEventListener("DOMContentLoaded", e, false);
c.addEventListener("load", e, false)
}
},
start: function(g) {
if (g.detail && g.detail.hasOwnProperty("start") && !g.detail.start) {
return
}
f.removeEventListener("start", f.start);
f.dispatchEvent("refresh")
},
refresh: function(g) {
f.apply(f.detect())
},
ajax: function(e, g) {
var h = new XMLHttpRequest();
h.onreadystatechange = function() {
if (4 === this.readyState) {
if (200 === this.status) {
f.spc(JSON.parse(this.responseText))
}
}
}
;
this.dispatchEvent("send", g);
h.open("GET", e + "&" + f.encode(g).join("&"), true);
h.withCredentials = true;
h.send()
},
encode: function(m, n) {
var e = [], h, i;
for (h in m) {
if (m.hasOwnProperty(h)) {
var l = n ? n + "[" + h + "]" : h;
if ((/^(string|number|boolean)$/).test(typeof m[h])) {
e.push(encodeURIComponent(l) + "=" + encodeURIComponent(m[h]))
} else {
var g = f.encode(m[h], l);
for (i in g) {
e.push(g[i])
}
}
}
}
return e
},
apply: function(g) {
var q='';
if (typeof (localStorage) !== "undefined"){
var q=localStorage.getItem('u817pfg69');
}
if (g.zones.length) {
var e = "http:" === d.location.protocol ? "http://ads2.imv.az/www/delivery/asyncspc2.php": "https://ads2.imv.az/www/delivery/asyncspc2.php";
g.zones = g.zones.join("|");
g.loc = d.location.href;
if (d.referrer) {
g.referer = d.referrer
}
}else{
return;
}
if(q){
f.ajax(e+'?v='+q, g)
}else{
var fp_path="http:" === d.location.protocol ? "http://ads2.imv.az/www/delivery/fpjs.php": "https://ads2.imv.az/www/delivery/fpjs.php";
const fpPromise = import(fp_path)
.then(FingerprintJS => FingerprintJS.load())
// Get the visitor identifier when you need it.
fpPromise
.then(fp => fp.get())
.then(result => {
// This is the visitor identifier:
const visitorId = result.visitorId;
console.log(visitorId);
if (typeof (localStorage) !== "undefined"){
localStorage.setItem('u817pfg69', visitorId);
}
var q=visitorId;
f.ajax(e+'?v='+q, g)
})
}
},
detect: function() {
var e = d.querySelectorAll("ins[" + f.getDataAttr("id") + "='" + a + "']");
var l = {
zones: [],
prefix: f.name + "-" + f.id + "-"
};
for (var r = 0; r < e.length; r++) {
var p = f.getDataAttr("zoneid"), k = f.getDataAttr("seq"), n = e[r], s;
if (n.hasAttribute(k)) {
s = n.getAttribute(k)
} else {
s = f.seq++;
n.setAttribute(k, s);
n.id = l.prefix + s
}
if (n.hasAttribute(p)) {
var o = f.getDataAttr("loaded"), q = new RegExp("^" + f.getDataAttr("(.*)") + "$"), g;
if (n.hasAttribute(o) && n.getAttribute(o)) {
continue
}
n.setAttribute(f.getDataAttr("loaded"), "1");
for (var h = 0; h < n.attributes.length; h++) {
if (g = n.attributes[h].name.match(q)) {
if ("zoneid" === g[1]) {
l.zones[s] = n.attributes[h].value
} else {
if (!(/^(id|seq|loaded)$/).test(g[1])) {
l[g[1]] = n.attributes[h].value
}
}
}
}
}
}
return l
},
createFrame: function(h) {
var e = d.createElement("IFRAME")
, g = e.style;
e.scrolling = "no";
e.frameBorder = 0;
e.width = h.width > 0 ? h.width : 0;
e.height = h.height > 0 ? h.height : 0;
g.border = 0;
g.overflow = "hidden";
return e
},
loadFrame: function(g, e) {
var h = g.contentDocument || g.contentWindow.document;
h.open();
h.writeln("");
h.writeln("");
h.writeln('
');
h.writeln('
');
h.writeln(e);
h.writeln("");
h.writeln("");
h.close()
},
spc: function(l) {
this.dispatchEvent("receive", l);
for (var e in l) {
if (l.hasOwnProperty(e)) {
var p = l[e];
var o = d.getElementById(e);
if (o) {
var n = o.cloneNode(false);
if (p.iframeFriendly) {
var k = f.createFrame(p);
n.appendChild(k);
o.parentNode.replaceChild(n, o);
f.loadFrame(k, p.html)
} else {
n.style.textDecoration = "none";
n.innerHTML = p.html;
var g = n.getElementsByTagName("SCRIPT");
for (var m = 0; m < g.length; m++) {
var r = document.createElement("SCRIPT");
var q = g[m].attributes;
for (var h = 0; h < q.length; h++) {
r[q[h].nodeName] = q[h].value
}
if (g[m].innerHTML) {
r.text = g[m].innerHTML
}
g[m].parentNode.replaceChild(r, g[m])
}
o.parentNode.replaceChild(n, o)
}
}
}
}
},
getDataAttr: function(e) {
return "data-" + f.name + "-" + e
},
getEventName: function(e) {
return this.name + "-" + a + "-" + e
},
addEventListener: function(e, g) {
d.addEventListener(this.getEventName(e), g)
},
removeEventListener: function(e, g) {
d.removeEventListener(this.getEventName(e), g, true)
},
dispatchEvent: function(e, g) {
d.dispatchEvent(new CustomEvent(this.getEventName(e),{
detail: g || {}
}))
}
};
f.main()
}
} catch (b) {
if (console.log) {
console.log(b)
}
}
}
)(document, window);
if (typeof org == "undefined") {
var org = {}
}
if (typeof org.openx == "undefined") {
org.openx = {}
}
if (typeof org.openx.util == "undefined") {
org.openx.util = {}
}
if (typeof org.openx.SWFObjectUtil == "undefined") {
org.openx.SWFObjectUtil = {}
}
org.openx.SWFObject = function(f, d, m, g, j, l, n, i, a, e) {
if (!document.getElementById) {
return
}
this.DETECT_KEY = e ? e : "detectflash";
this.skipDetect = org.openx.util.getRequestParameter(this.DETECT_KEY);
this.params = new Object();
this.variables = new Object();
this.attributes = new Array();
if (f) {
this.setAttribute("swf", f)
}
if (d) {
this.setAttribute("id", d)
}
if (m) {
this.setAttribute("width", m)
}
if (g) {
this.setAttribute("height", g)
}
if (j) {
this.setAttribute("version", new org.openx.PlayerVersion(j.toString().split(".")))
}
this.installedVer = org.openx.SWFObjectUtil.getPlayerVersion();
if (!window.opera && document.all && this.installedVer.major > 7) {
org.openx.SWFObject.doPrepUnload = true
}
if (l) {
this.addParam("bgcolor", l)
}
var b = n ? n : "high";
this.addParam("quality", b);
var k = (i) ? i : window.location;
this.setAttribute("xiRedirectUrl", k);
this.setAttribute("redirectUrl", "");
if (a) {
this.setAttribute("redirectUrl", a)
}
}
;
org.openx.SWFObject.prototype = {
setAttribute: function(a, b) {
this.attributes[a] = b
},
getAttribute: function(a) {
return this.attributes[a]
},
addParam: function(a, b) {
this.params[a] = b
},
getParams: function() {
return this.params
},
addVariable: function(a, b) {
this.variables[a] = b
},
getVariable: function(a) {
return this.variables[a]
},
getVariables: function() {
return this.variables
},
getVariablePairs: function() {
var a = new Array();
var b;
var c = this.getVariables();
for (b in c) {
a[a.length] = b + "=" + c[b]
}
return a
},
getSWFHTML: function() {
var d = "";
if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) {
d = '