Commit 384dbcf9 by niuxiaolin

latest ui 08/09/2019 15:04:07

parent 114c2df8
function $g(a, b) {
b || (b = document.createElement("canvas"));
b.getContext("2d").drawImage(a, 0, 0)
}
var ah = 256,
bh = 32;
function ch() {
this.P = s
}
var dh;
D.We(function(a) {
if (!a.U.Hs) {
var b = new ch;
Bb(a.Ya, b.za(a.U.yc));
b.P = a.Ya.lastChild;
a.$.d0 = b
}
});
ch.prototype.za = function(a) {
a = ['<div id=zoomer style="position:absolute;z-index:0;top:0px;left:0px;overflow:hidden;visibility:hidden;cursor:' + a + '">'];
a.push('<div class="BMap_zoomer" style="top:0;left:0;"></div>');
a.push('<div class="BMap_zoomer" style="top:0;right:0;"></div>');
a.push('<div class="BMap_zoomer" style="bottom:0;left:0;"></div>');
a.push('<div class="BMap_zoomer" style="bottom:0;right:0;"></div>');
a.push("</div>");
return a.join("")
};
ch.prototype.action = function(a, b) {
if (!dh) {
var c = this.P;
if (c) {
var e = 4 / 3,
f = Math.ceil((b ? 60 : 120) / 2),
g = Math.max(15, f / e),
i = c.style;
i.width = 2 * f + "px";
i.height = 2 * g + "px";
i.visibility = "visible";
c = c.children;
b ? (c[0].style.backgroundPosition = "0 0", c[1].style.backgroundPosition = "-7px 0", c[2].style.backgroundPosition = "0 -7px", c[3].style.backgroundPosition = "-7px -7px") : (c[0].style.backgroundPosition = "-7px -7px", c[1].style.backgroundPosition = "0 -7px", c[2].style.backgroundPosition = "-7px 0", c[3].style.backgroundPosition = "0 0");
var c = s,
k = a.x - f,
m = a.y - g;
if (!isNaN(k) && !isNaN(m)) {
i.left = k + "px";
i.top = m + "px";
var n = Math.ceil((b ? 120 : 60) / 2),
o = Math.max(15, n / e),
n = n - f,
o = Math.ceil(o - g),
q = this.P.style;
dh && dh.end();
dh = new ub({
Hc: 20,
duration: 240,
$b: vb.hC,
oo: 100,
za: function(a) {
if (!(a < 0.1)) {
var b = Math.ceil(n * a),
a = Math.ceil(o * a);
q.width = (f + b) * 2 + "px";
q.height = (g + a) * 2 + "px";
q.left = k - b + "px";
q.top = m - a + "px"
}
},
finish: function() {
dh = t;
setTimeout(function() {
i.visibility = "hidden"
}, 300)
}
})
}
}
}
};
D.We(function(a) {
function b(a) {
if (g.U.vo) {
var b = new Q("ondeepzoommousewheel");
c(a, ma(b, a));
k.U_.call(k, b);
Db(a)
}
}
function c(a, b) {
var c = a.srcElement || a.target,
e = a.offsetX || a.layerX || 0,
f = a.offsetY || a.layerY || 0,
i = s,
k = s;
1 !== c.nodeType && (c = c.parentNode);
for (; c && c !== g.Ya;) {
c.ea && (z.lang.Mc(c.ea) instanceof ib && (i = z.lang.Mc(c.ea)), z.lang.Mc(c.ea) instanceof tc && (k = z.lang.Mc(c.ea)));
if (!(0 === c.clientWidth && 0 === c.clientHeight && c.offsetParent && "TD" === c.offsetParent.nodeName) && "http://www.w3.org/2000/svg" !== c.namespaceURI) e += c.offsetLeft || 0, f += c.offsetTop || 0;
else if ("http://www.w3.org/2000/svg" === c.namespaceURI && D.Ep) {
var A = D.Ep.hs(g).bf;
if (-1 < navigator.userAgent.indexOf("Opera") && "svg" !== c.tagName) {
if (c = z.lang.Mc(c.ea)) c = c.te(), e += g.Rb(c.Se()).x, f += g.Rb(c.Lf()).y;
break
}
if (39 <= z.ga.Qe || 51 <= z.ga.Zv) e = a.layerX || 0, f = a.layerY || 0;
if (A && !(window.ActiveXObject || "ActiveXObject" in window)) e += parseFloat(A.style.left) + g.offsetX, f += parseFloat(A.style.top) + g.offsetY;
if (A && ((window.ActiveXObject || "ActiveXObject" in window) && "svg" === c.nodeName.toLowerCase()) && !c.ea) e += parseFloat(A.style.left) + g.offsetX, f += parseFloat(A.style.top) + g.offsetY;
if ((9 <= z.ga.ma || -1 < navigator.userAgent.toLowerCase().indexOf("trident")) && "svg" !== c.nodeName.toLowerCase()) {
e += g.offsetX;
f += g.offsetY;
break
}
if (!z.ga.ma) break
}
c = c.offsetParent
}
if ((65 <= z.ga.Zv || 60 <= z.ga.Qe) && "ondeepzoommousewheel" === b.type) {
e = a.clientX + window.scrollX;
f = a.clientY + window.scrollY;
for (c = g.Ua(); c;) e -= c.offsetLeft, f -= c.offsetTop, c = c.offsetParent
}
b.offsetX = e;
b.offsetY = f;
b.pixel = b.mb = new R(e, f);
b.point = b.point = g.Ib(b.mb);
b.overlay = b.sb = i;
b.domEvent = a;
b.Cb = k;
return b
}
function e(a) {
var b = g.$,
e = !b.qx && !b.sx;
if (b.Kx) clearTimeout(b.Kx), b.Kx = s, e && (g.dispatchEvent(c(a, ma(new Q("onrightclick"), a))), g.Wa |= ah, g.dispatchEvent(c(a, ma(new Q("onrightdblclick"), a))), g.Wa ^= ah);
else {
e && g.dispatchEvent(c(a, ma(new Q("onrightclick"), a)));
var f = c(a, ma(new Q("onrightclickex"), a));
b.Kx = setTimeout(function() {
b.Kx = s;
e && g.dispatchEvent(f)
}, g.U.zB)
}
}
function f(a) {
if (g.U.vo) {
var b = g.$;
b.qb && (b.qb.stop(), b.qb = s, setTimeout(function() {
g.dispatchEvent(new Q("onmoveend"))
}, 1));
g.Wa |= bh;
a = window.event || a;
g.Bc = g.Va;
b = new Q("onmousewheel");
b.xp = 0 <= a.wheelDelta || 0 > a.detail;
var e = new Date;
b.xp === p && g.Va === g.va().Xh() || b.xp === t && g.Va === g.va().aj() || 220 > e - i ? g.Wa ^= bh : (i = e, c(a, ma(b, a)), g.dispatchEvent(b), g.Wa ^= bh, a.returnValue = t);
Db(a)
}
}
var g = a;
g.YX = a.Nd();
a.Ya.a4 = ea(t);
z.V(g.platform, "mousemove", function(a) {
0 === g.Wa && g.dispatchEvent(c(a, ma(new Q("onmousemove"), a)))
});
z.V(g.platform, "mousedown", function(a) {
if (g.U.pC) {
a = window.event || a;
z.ga.ma || Db(a);
var b = g.$;
b.Ic = p;
var e = a.srcElement || a.target;
b.qb && (b.qb.stop(), b.qb = s, g.dispatchEvent(new Q("onmoveend")));
b.Jt = a.clientX || a.pageX || 0;
for (b.Kt = a.clientY || a.pageY || 0; e && e !== g.Ya;) {
if (z.R.ws(e, "BMap_Marker")) {
b.Ic = t;
var f = z.lang.Mc(e.ea);
if (f instanceof V && f.K.cf === p || f.K.Wb === p) return
}
e = e.parentNode
}
z.ga.ma && g.xe.setCapture && g.xe.setCapture();
g.dispatchEvent(c(a, ma(new Q("onmousedown"), a)));
g.U.Wb && (!(g.Wa & 8) && 2 !== a.button) && (b.Vo = b.Jt, b.sk = b.Kt, b.Ex = g.offsetX, b.o = g.offsetY, g.Wa |= 8, g.platform.style.cursor = 0 === g.$.re.length ? g.U.Gd : "pointer")
}
});
z.V(document, "mousemove", function(a) {
var a = window.event || a,
b = g.$,
e = a.clientX || a.pageX || 0,
f = a.clientY || a.pageY || 0;
if (b.Jt || b.Kt) b.qx = e - b.Jt, b.sx = f - b.Kt;
var i = eb(),
k = 40 < i - b.xL;
if (!(18 > i - b.Ms) && (k && (b.xL = i), b.Ms = i, g.Wa & 8 && g.U.Wb)) {
var y = g.platform.style;
y.cursor.replace(/"|\s/g, "") !== g.U.Gd && (y.cursor = g.U.Gd);
b.Mj || (g.dispatchEvent(c(a, ma(new Q("ondragstart"), a))), g.dispatchEvent(new Q("onmovestart")), b.$B = new R(e, f), b.aC = i);
0 === b.Vo && (0 === b.sk && g.$.z3) && (b.Vo = e, b.sk = f, b.Ex = g.offsetX, b.o = g.offsetY);
if (0 !== e - b.Vo || 0 !== f - b.sk) g.$.Mj = p, g.dispatchEvent(c(a, ma(new Q("ondragging"), a))), g.Je(b.Ex + e - b.Vo, b.o + f - b.sk, s, k)
}
});
z.V(document, "mouseup", function(a) {
z.ga.ma && g.xe.releaseCapture && g.xe.releaseCapture();
var b = g.$;
b.m4 && g.Y1(p);
var a = window.event || a,
e = a.clientX || a.pageX,
f = a.clientY || a.pageY;
if (g.Wa & 8 && g.U.Wb) {
g.Wa ^= 8;
g.platform.style.cursor = 0 === b.re.length ? g.U.yc : "pointer";
if (g.$.Mj) {
var i = c(a, ma(new Q("ondragend"), a));
g.dispatchEvent(i);
eh(g, new R(e, f))
}
b.Mj = t
}
b.Ic = t;
2 === a.button && (b.Jt = s, b.Kt = s, b.qx = 0, b.sx = 0);
g.dispatchEvent(c(a, ma(new Q("onmouseup"), a)))
});
4 <= z.ga.Qe ? (z.V(g.Ya, "mouseup", function(a) {
2 === a.button && e(a)
}), z.V(g.Ya, "contextmenu", function(a) {
oa(a)
})) : z.V(g.Ya, "contextmenu", function(a) {
e(a);
oa(a)
});
var i = new Date,
k;
a.U.TJ && (k = new fh(a), a.M1 = k);
if (z.ga.ma && 9 >= z.ga.ma || g.YX) k = s;
z.V(g.Ya, "mousewheel", k ? b : f);
window.addEventListener && g.Ya.addEventListener("DOMMouseScroll", k ? b : f, t);
z.V(g.platform, "click", function(a) {
var b = new Q("onclick"),
e = new Q("onclickex"),
f = g.$;
c(a, ma(b, a));
c(a, ma(e, a));
if (!g.Wa) {
var i = !f.qx && !f.sx;
i && g.dispatchEvent(b);
if (!f.Ci) f.Ci = setTimeout(function() {
f.Ci = s;
i && g.dispatchEvent(e)
}, g.U.zB)
}
f.Jt = s;
f.Kt = s;
f.qx = 0;
f.sx = 0
});
z.V(g.platform, "dblclick", function(a) {
if (!g.Wa) {
g.Wa = g.Wa | ah;
z.ga.ma && g.dispatchEvent(c(a, ma(new Q("onclick"), a)));
var b = g.$;
if (b.Ci) {
clearTimeout(b.Ci);
b.Ci = s
}
g.dispatchEvent(c(a, ma(new Q("ondblclick"), a)));
g.Wa = g.Wa ^ ah
}
});
z.V(document, "mousedown", function(b) {
var b = window.event || b,
b = b.srcElement || b.target,
c = g.$;
c.rB = c.rB ? z.R.contains(a.Ya, b) : z.R.contains(a.platform, b)
})
});
function eh(a, b) {
if (a.U.vw) {
var c = a.$,
e = eb();
if (100 < e - c.Ms) a.dispatchEvent(new Q("onmoveend")), c.Mj = t;
else {
var f = c.$B,
g = [0 < b.x - f.x ? 1 : -1, 0 < b.y - f.y ? 1 : -1],
e = Fb(f, b) / ((e - c.aC) / 1E3) / 2,
i = e / 1.8,
k = 0.4 * i * e / 1E3,
m = Math.abs(f.x - b.x),
n = 0,
o = 0;
0 === Math.abs(f.y - b.y) ? n = m : (f = Math.abs(f.x - b.x) / Math.abs(f.y - b.y), o = Math.round(Math.sqrt(k * k / (1 + f * f))), n = Math.round(f * o)); - 1 === g[0] && (n = -n); - 1 === g[1] && (o = -o);
c.qb && (c.qb.stop(), c.qb = s, a.dispatchEvent(new Q("onmoveend")));
var q = e / 1E3,
v = a.offsetX,
w = a.offsetY,
y = t;
c.qb = new ub({
duration: i,
Hc: 30,
$b: function(a) {
a = a * q / 1.8;
return q * a - 0.9 * a * a
},
za: function(b) {
b = b * 3.6 / (q * q);
y = !y;
a.Je(v + Math.round(b * n), w + Math.round(b * o), s, y)
},
finish: function() {
c.qb = s;
a.Je(v + Math.round(n), w + Math.round(o));
a.dispatchEvent(new Q("onmoveend"))
},
Ws: function(b) {
c.qb = s;
b = b * 3.6 / (q * q);
a.Je(v + Math.round(b * n), w + Math.round(b * o));
setTimeout(function() {
a.dispatchEvent(new Q("onmoveend"))
}, 1)
}
})
}
} else a.dispatchEvent(new Q("onmoveend"))
}
function fh(a) {
this.map = a;
this.oh = a.oh;
this.JU = gh();
this.Od = 0;
this.dE = 1;
this.cE = this.Vg = s;
this.SD = 1;
this.TD = -1;
this.xD = t;
this.pc = 19;
this.gc = 3;
this.AL = 0;
this.uk = "";
this.Cs = t;
this.LD = this.zL = 0;
this.aJ()
}
var hh = fh.prototype;
hh.aJ = function() {
var a = this,
b = a.map;
a.pc = b.U.pc || 19;
a.gc = b.U.gc || 3;
b.addEventListener("onmaptypechange", function() {
a.pc = b.U.pc || 19;
a.gc = b.U.gc || 3
})
};
hh.U_ = function(a) {
var b = this,
c = b.map,
e = c.$;
b.pc = c.U.pc || 19;
b.gc = c.U.gc || 3;
e.qb && (e.qb.stop(), e.qb = s, c.dispatchEvent(new Q("onmoveend")));
var f = Math.floor(a.domEvent.timeStamp),
g = f - this.AL,
i = 0 <= a.domEvent.wheelDelta,
e = Math.abs(a.domEvent.wheelDelta),
k = Math.abs(a.domEvent.deltaY);
100 < g && (this.Cs = t, this.uk = ih(e, k, a.N1), this.Od = 0, this.DM = s);
"padScroll" === this.uk && (0 === k && 0 === g && this.Cs === t) && (this.Cs = p);
if (0 !== g) {
this.AL = f;
if ("padScroll" === this.uk && 40 > g) {
b.Od = i ? b.Od + 0.13 : b.Od - 0.16;
var f = a.domEvent.wheelDelta - this.zL,
g = f - this.LD,
m = this.LD;
this.LD = f;
this.zL = a.domEvent.wheelDelta;
this.yL = i;
if ("boolean" === typeof this.yL && i !== this.yL || "padScroll" === this.uk && 3 === e && !isNaN(g) && 50 < Math.abs(f - m)) b.Lk && (b.Lk.stop(), b.Lk = s);
else if (0 !== this.DM)
if (0 > f && 0 < m || 0 < f && 0 > m) 5 > k && (this.Cs = t);
else return
}
this.DM = this.Od;
e = a.domEvent.wheelDelta / 120 || -a.domEvent.detail / 3;
0 === e && z.ga.Qe && (e = -a.domEvent.deltaY);
if (0 !== e && (e = Math.ceil(Math.abs(e)) * (0 <= e ? 1 : -1), "padPinch" === this.uk && (e = a.domEvent.deltaY), k = 0 < e ? 1 : -1, c = c.ka(), 0 > k && (b.SD = -1), 0 < k && (b.TD = 1), f = b.gc, !(c >= b.pc && 0 < k && 1 === b.SD || c <= f && 0 > k && -1 === b.TD))) {
"mouseWheel" !== this.uk && (e *= 0.6);
b.Od += e;
"mouseWheel" === this.uk && (b.Od = b.CL(b.Od));
var n = new R(a.mb.x, a.mb.y);
if ("mouseWheel" !== this.uk) {
if (!b.Lk && !b.Ik && !(0 === b.Od || b.Cs === p)) b.Ik = setTimeout(function() {
var a = Math.abs(b.Od),
a = Math.round(a);
b.Od = i ? a : -a;
b.Od = b.CL(b.Od);
b.Od !== 0 && b.fO(n, b.Od);
b.Ik = s
}, 30)
} else b.Lk && (b.Lk.stop(), b.Lk = s), b.Ik && clearTimeout(b.Ik), b.Ik = setTimeout(function() {
b.fO(n, b.Od);
b.Ik = s
}, 25)
}
}
};
hh.CL = function(a) {
var b = this.gc,
c = this.pc,
e = this.map.ka(),
a = Math.min(Math.max(a, -3), 3);
e + a > c ? a = c - e : e + a < b && (a = b - e);
return a
};
hh.fO = function(a, b) {
var c = new P(0, 0),
e = this,
f = e.map,
g = e.oh,
i = Math.pow(2, b),
k = e.dE,
m, n = f.width,
o = f.height,
q = (a.x - n / 2) / n,
v = (a.y - o / 2) / o,
w = g.hc,
y = g.Hg,
A = w.style,
B = y.style,
C, F, E = e.JU;
e.xD || (e.xD = p, f.dispatchEvent(new Q("onzoomstart")));
f.Oc && z.R.aa(f.Oc);
g.ml.style.visibility = "hidden";
g.hg && (g.hg.style.visibility = "hidden");
g.An.style.visibility = "hidden";
if (!e.Vg) {
A[E] || (A[E] = "translate3d(0,0,0)");
var G = e.cE;
G && (G.parentNode && G.parentNode.removeChild(G), e.cE = s);
e.cE = e.Vg = w.cloneNode(p);
(e.se || !f.U.Xi) && f.platform.insertBefore(e.Vg, f.platform.firstChild)
}
g.Hg.style.visibility = "hidden";
if (!e.se && f.U.Xi) {
if (w = e.CM) w.parentNode && w.parentNode.removeChild(w), e.CM = s;
e.se = y.cloneNode(p);
w = e.se.firstChild;
for (G = 0; G < w.childElementCount; G++) $g(y.firstChild.children[G], w.children[G]);
$g(y.lastElementChild, e.se.lastElementChild);
e.se.style.visibility = "";
e.CM = e.se;
f.platform.insertBefore(e.se, f.platform.firstChild)
}
A.visibility = "hidden";
B.visibility = "hidden";
var N = e.Vg.style;
f.U.aM === t && (N.display = "none");
if (f.U.Xi) var L = e.se.children[0].style,
M = e.se.children[1].style;
e.Lk = new ub({
Hc: 60,
duration: f.U.to ? 400 : 1,
$b: vb.Vr,
za: function(a) {
if (b > 0) {
m = k + a * (i - k);
C = -n * (m - 1) * q - c.width * a;
F = -o * (m - 1) * v - c.height * a
} else {
m = k - a * (k - i);
C = n * (1 - m) * q;
F = o * (1 - m) * v
}
N[E] = "translate3d(" + C + "px, " + F + "px, 0) scale(" + m + ")";
if (f.U.Xi) {
L[E] = "translate3d(" + C + "px, " + F + "px, 0) scale(" + m + ")";
M[E] = "translate3d(" + C + "px, " + F + "px, 0) scale(" + m + ")"
}
e.dE = m
},
finish: function() {
var c = f.ka(),
c = Math.round(c + b);
f.Bc = f.Va;
f.Va = c;
var c = g.uz(a),
i = f.va().dc(f.ka());
f.fc = new J(c.lng + (f.width / 2 - a.x) * i, c.lat - (f.height / 2 - a.y) * i);
f.pe = f.Pc.eh(f.fc, f.Vb);
A.visibility = "";
B.visibility = "";
g.Rf();
f.Oc && (z.ga.ma && z.ga.ma < 8 || document.compatMode === "BackCompat" ? z.R.show(f.Oc) : setTimeout(function() {
z.R.show(f.Oc)
}, 100));
g.ml.style.visibility = "";
g.An.style.visibility = "";
g.Hg.style.visibility = "";
f.dispatchEvent(new Q("onzoomend"));
e.Od = 0;
e.dE = 1;
setTimeout(function() {
e.NM()
}, 100);
e.NM();
e.Lk = s;
e.SD = 1;
e.TD = -1;
e.xD = t
}
})
};
hh.NM = function() {
this.Vg && (Sc(this.Vg), this.Vg.parentNode && (this.Vg.parentNode.removeChild(this.Vg), this.Vg.innerHTML = "", this.Vg = s));
this.se && this.map.U.Xi && (Sc(this.se), this.se.parentNode && (this.se.parentNode.removeChild(this.se), this.se.innerHTML = "", this.se = s))
};
function gh() {
var a = "transform",
b = document.createElement("div"),
c = ["Webkit", "Moz", "O", "ms"],
e = c.length,
f = "",
b = b.style;
a in b && (f = a);
for (a = a.replace(/^[a-z]/, function(a) {
return a.toUpperCase()
}); e--;) {
var g = c[e] + a;
if (g in b) {
f = g;
break
}
}
return f
}
function ih(a, b, c) {
var e = "mouseWheel";
if (120 === a && 1 > b) e = "padPinch";
else if (!isNaN(a) && (10 > a || 120 !== a) && 0 === b % 1) e = "padScroll";
z.ga.Qe && 0 === c && (e = "padScroll");
z.ga.Mx && 12 === a && (e = "mouseWheel");
return e
};
D.We(function(a) {
z.V(document, "keydown", function(b) {
a.$.oi == p && (a.$.oi = t);
if (a.U.ww && a.$.rB) switch (b = window.event || b, b.keyCode || b.which) {
case 43:
case 189:
case 109:
a.$.Ic = p;
a.dispatchEvent(new Q("onminuspress"));
break;
case 43:
case 61:
case 187:
case 107:
a.$.Ic = p;
a.dispatchEvent(new Q("onpluspress"));
break;
case 33:
a.$.Ic = t;
a.$.oi = p;
a.tg(0, Math.round(0.8 * a.height));
oa(b);
break;
case 34:
a.$.Ic = t;
a.$.oi = p;
a.tg(0, -Math.round(0.8 * a.height));
oa(b);
break;
case 35:
a.$.Ic = t;
a.$.oi = p;
a.tg(-Math.round(0.8 * a.width), 0);
oa(b);
break;
case 36:
a.$.Ic = t;
a.$.oi = p;
a.tg(Math.round(0.8 * a.width), 0);
oa(b);
break;
case 37:
a.$.Ic = p;
a.$.mc |= 1;
a.hb();
oa(b);
break;
case 38:
a.$.Ic = p;
a.$.mc |= 2;
a.hb();
oa(b);
break;
case 39:
a.$.Ic = p;
a.$.mc |= 4;
a.hb();
oa(b);
break;
case 40:
a.$.Ic = p, a.$.mc |= 8, a.hb(), oa(b)
}
});
z.V(document, "keyup", function(b) {
if (a.U.ww) switch (b = window.event || b, b.keyCode || b.which) {
case 37:
a.$.mc &= -2;
0 != a.$.mc && a.hb();
break;
case 38:
a.$.mc &= -3;
0 != a.$.mc && a.hb();
break;
case 39:
a.$.mc &= -5;
0 != a.$.mc && a.hb();
break;
case 40:
a.$.mc &= -9, 0 != a.$.mc && a.hb()
}
a.$.Ic = t
});
Oa.prototype.hb = function() {
if (!this.hb.ux || !(this.hb.Wz == this.$.mc && this.$.oi == p)) {
var a = this,
c = a.$.mc;
a.hb.Wz = c;
a.hb.dx = 30;
a.hb.duration = 999;
a.hb.df = a.hb.ef = 0;
c & 1 && (a.hb.df = 1);
c & 2 && (a.hb.ef = 1);
c & 4 && (a.hb.df = -1);
c & 8 && (a.hb.ef = -1);
c & 1 && c & 4 && (a.hb.df = 0);
c & 2 && c & 8 && (a.hb.ef = 0);
if (!a.hb.ux) {
a.hb.ux = p;
a.hb.time = eb();
a.hb.cU = a.hb.time;
a.dispatchEvent(new Q("onmovestart"));
var e = new ub({
Hc: a.hb.dx,
duration: a.hb.duration,
$b: vb.FL,
za: function() {
var c = a.hb,
g = a.$.mc;
if (a.hb.Wz != g) {
a.hb.Wz = g;
if (g & 1) c.df = 1;
if (g & 2) c.ef = 1;
if (g & 4) c.df = -1;
if (g & 8) c.ef = -1;
if (g & 1 && g & 4) c.df = 0;
if (g & 2 && g & 8) c.ef = 0
}
if (a.$.oi == p) {
c.df = 0;
c.ef = 0
}
var g = eb(),
i = Math.pow((g - c.cU) / c.duration, 2);
if (!a.$.mc) {
c.ux = t;
e.NE = p;
a.hb.time = eb();
setTimeout(function() {
a.dispatchEvent(new Q("onmoveend"))
}, 40)
}
var k = g - c.time,
m = c.df * k * i >= 0 ? Math.ceil(c.df * k * i) : Math.floor(c.df * k * i),
i = c.ef * k * i >= 0 ? Math.ceil(c.ef * k * i) : Math.floor(c.ef * k * i);
if (m != 0 && i != 0) {
m = Math.round(m * 0.7);
i = Math.round(i * 0.7)
}
c.time = g;
a.Je(a.offsetX + m, a.offsetY + i)
},
finish: function() {
a.hb.time = eb();
setTimeout(function() {
a.ZF()
}, a.hb.dx)
}
})
}
}
};
Oa.prototype.ZF = function() {
var a = this,
c = a.hb;
a.$.oi && (c.df = 0, c.ef = 0);
if (a.$.mc) {
var e = eb(),
f = e - c.time,
g = Math.ceil(c.df * f),
f = Math.ceil(c.ef * f);
c.time = e;
a.Je(a.offsetX + g, a.offsetY + f);
setTimeout(function() {
a.ZF()
}, c.dx)
} else c.ux = t, a.dispatchEvent(new Q("onmoveend"))
}
});
/**/_jsload2&&_jsload2('oppc', 'function $g(a,b){b||(b=document.createElement("canvas"));b.getContext("2d").drawImage(a,0,0)}var ah=256,bh=32;function ch(){this.P=s}var dh;D.We(function(a){if(!a.U.Hs){var b=new ch;Bb(a.Ya,b.za(a.U.yc));b.P=a.Ya.lastChild;a.$.d0=b}}); ch.prototype.za=function(a){a=[\'<div id=zoomer style="position:absolute;z-index:0;top:0px;left:0px;overflow:hidden;visibility:hidden;cursor:\'+a+\'">\'];a.push(\'<div class="BMap_zoomer" style="top:0;left:0;"></div>\');a.push(\'<div class="BMap_zoomer" style="top:0;right:0;"></div>\');a.push(\'<div class="BMap_zoomer" style="bottom:0;left:0;"></div>\');a.push(\'<div class="BMap_zoomer" style="bottom:0;right:0;"></div>\');a.push("</div>");return a.join("")}; ch.prototype.action=function(a,b){if(!dh){var c=this.P;if(c){var e=4/3,f=Math.ceil((b?60:120)/2),g=Math.max(15,f/e),i=c.style;i.width=2*f+"px";i.height=2*g+"px";i.visibility="visible";c=c.children;b?(c[0].style.backgroundPosition="0 0",c[1].style.backgroundPosition="-7px 0",c[2].style.backgroundPosition="0 -7px",c[3].style.backgroundPosition="-7px -7px"):(c[0].style.backgroundPosition="-7px -7px",c[1].style.backgroundPosition="0 -7px",c[2].style.backgroundPosition="-7px 0",c[3].style.backgroundPosition= "0 0");var c=s,k=a.x-f,m=a.y-g;if(!isNaN(k)&&!isNaN(m)){i.left=k+"px";i.top=m+"px";var n=Math.ceil((b?120:60)/2),o=Math.max(15,n/e),n=n-f,o=Math.ceil(o-g),q=this.P.style;dh&&dh.end();dh=new ub({Hc:20,duration:240,$b:vb.hC,oo:100,za:function(a){if(!(a<0.1)){var b=Math.ceil(n*a),a=Math.ceil(o*a);q.width=(f+b)*2+"px";q.height=(g+a)*2+"px";q.left=k-b+"px";q.top=m-a+"px"}},finish:function(){dh=t;setTimeout(function(){i.visibility="hidden"},300)}})}}}};D.We(function(a){function b(a){if(g.U.vo){var b=new Q("ondeepzoommousewheel");c(a,ma(b,a));k.U_.call(k,b);Db(a)}}function c(a,b){var c=a.srcElement||a.target,e=a.offsetX||a.layerX||0,f=a.offsetY||a.layerY||0,i=s,k=s;1!==c.nodeType&&(c=c.parentNode);for(;c&&c!==g.Ya;){c.ea&&(z.lang.Mc(c.ea)instanceof ib&&(i=z.lang.Mc(c.ea)),z.lang.Mc(c.ea)instanceof tc&&(k=z.lang.Mc(c.ea)));if(!(0===c.clientWidth&&0===c.clientHeight&&c.offsetParent&&"TD"===c.offsetParent.nodeName)&&"http://www.w3.org/2000/svg"!==c.namespaceURI)e+= c.offsetLeft||0,f+=c.offsetTop||0;else if("http://www.w3.org/2000/svg"===c.namespaceURI&&D.Ep){var A=D.Ep.hs(g).bf;if(-1<navigator.userAgent.indexOf("Opera")&&"svg"!==c.tagName){if(c=z.lang.Mc(c.ea))c=c.te(),e+=g.Rb(c.Se()).x,f+=g.Rb(c.Lf()).y;break}if(39<=z.ga.Qe||51<=z.ga.Zv)e=a.layerX||0,f=a.layerY||0;if(A&&!(window.ActiveXObject||"ActiveXObject"in window))e+=parseFloat(A.style.left)+g.offsetX,f+=parseFloat(A.style.top)+g.offsetY;if(A&&((window.ActiveXObject||"ActiveXObject"in window)&&"svg"=== c.nodeName.toLowerCase())&&!c.ea)e+=parseFloat(A.style.left)+g.offsetX,f+=parseFloat(A.style.top)+g.offsetY;if((9<=z.ga.ma||-1<navigator.userAgent.toLowerCase().indexOf("trident"))&&"svg"!==c.nodeName.toLowerCase()){e+=g.offsetX;f+=g.offsetY;break}if(!z.ga.ma)break}c=c.offsetParent}if((65<=z.ga.Zv||60<=z.ga.Qe)&&"ondeepzoommousewheel"===b.type){e=a.clientX+window.scrollX;f=a.clientY+window.scrollY;for(c=g.Ua();c;)e-=c.offsetLeft,f-=c.offsetTop,c=c.offsetParent}b.offsetX=e;b.offsetY=f;b.pixel=b.mb= new R(e,f);b.point=b.point=g.Ib(b.mb);b.overlay=b.sb=i;b.domEvent=a;b.Cb=k;return b}function e(a){var b=g.$,e=!b.qx&&!b.sx;if(b.Kx)clearTimeout(b.Kx),b.Kx=s,e&&(g.dispatchEvent(c(a,ma(new Q("onrightclick"),a))),g.Wa|=ah,g.dispatchEvent(c(a,ma(new Q("onrightdblclick"),a))),g.Wa^=ah);else{e&&g.dispatchEvent(c(a,ma(new Q("onrightclick"),a)));var f=c(a,ma(new Q("onrightclickex"),a));b.Kx=setTimeout(function(){b.Kx=s;e&&g.dispatchEvent(f)},g.U.zB)}}function f(a){if(g.U.vo){var b=g.$;b.qb&&(b.qb.stop(), b.qb=s,setTimeout(function(){g.dispatchEvent(new Q("onmoveend"))},1));g.Wa|=bh;a=window.event||a;g.Bc=g.Va;b=new Q("onmousewheel");b.xp=0<=a.wheelDelta||0>a.detail;var e=new Date;b.xp===p&&g.Va===g.va().Xh()||b.xp===t&&g.Va===g.va().aj()||220>e-i?g.Wa^=bh:(i=e,c(a,ma(b,a)),g.dispatchEvent(b),g.Wa^=bh,a.returnValue=t);Db(a)}}var g=a;g.YX=a.Nd();a.Ya.a4=ea(t);z.V(g.platform,"mousemove",function(a){0===g.Wa&&g.dispatchEvent(c(a,ma(new Q("onmousemove"),a)))});z.V(g.platform,"mousedown",function(a){if(g.U.pC){a= window.event||a;z.ga.ma||Db(a);var b=g.$;b.Ic=p;var e=a.srcElement||a.target;b.qb&&(b.qb.stop(),b.qb=s,g.dispatchEvent(new Q("onmoveend")));b.Jt=a.clientX||a.pageX||0;for(b.Kt=a.clientY||a.pageY||0;e&&e!==g.Ya;){if(z.R.ws(e,"BMap_Marker")){b.Ic=t;var f=z.lang.Mc(e.ea);if(f instanceof V&&f.K.cf===p||f.K.Wb===p)return}e=e.parentNode}z.ga.ma&&g.xe.setCapture&&g.xe.setCapture();g.dispatchEvent(c(a,ma(new Q("onmousedown"),a)));g.U.Wb&&(!(g.Wa&8)&&2!==a.button)&&(b.Vo=b.Jt,b.sk=b.Kt,b.Ex=g.offsetX,b.o= g.offsetY,g.Wa|=8,g.platform.style.cursor=0===g.$.re.length?g.U.Gd:"pointer")}});z.V(document,"mousemove",function(a){var a=window.event||a,b=g.$,e=a.clientX||a.pageX||0,f=a.clientY||a.pageY||0;if(b.Jt||b.Kt)b.qx=e-b.Jt,b.sx=f-b.Kt;var i=eb(),k=40<i-b.xL;if(!(18>i-b.Ms)&&(k&&(b.xL=i),b.Ms=i,g.Wa&8&&g.U.Wb)){var y=g.platform.style;y.cursor.replace(/"|\\s/g,"")!==g.U.Gd&&(y.cursor=g.U.Gd);b.Mj||(g.dispatchEvent(c(a,ma(new Q("ondragstart"),a))),g.dispatchEvent(new Q("onmovestart")),b.$B=new R(e,f),b.aC= i);0===b.Vo&&(0===b.sk&&g.$.z3)&&(b.Vo=e,b.sk=f,b.Ex=g.offsetX,b.o=g.offsetY);if(0!==e-b.Vo||0!==f-b.sk)g.$.Mj=p,g.dispatchEvent(c(a,ma(new Q("ondragging"),a))),g.Je(b.Ex+e-b.Vo,b.o+f-b.sk,s,k)}});z.V(document,"mouseup",function(a){z.ga.ma&&g.xe.releaseCapture&&g.xe.releaseCapture();var b=g.$;b.m4&&g.Y1(p);var a=window.event||a,e=a.clientX||a.pageX,f=a.clientY||a.pageY;if(g.Wa&8&&g.U.Wb){g.Wa^=8;g.platform.style.cursor=0===b.re.length?g.U.yc:"pointer";if(g.$.Mj){var i=c(a,ma(new Q("ondragend"),a)); g.dispatchEvent(i);eh(g,new R(e,f))}b.Mj=t}b.Ic=t;2===a.button&&(b.Jt=s,b.Kt=s,b.qx=0,b.sx=0);g.dispatchEvent(c(a,ma(new Q("onmouseup"),a)))});4<=z.ga.Qe?(z.V(g.Ya,"mouseup",function(a){2===a.button&&e(a)}),z.V(g.Ya,"contextmenu",function(a){oa(a)})):z.V(g.Ya,"contextmenu",function(a){e(a);oa(a)});var i=new Date,k;a.U.TJ&&(k=new fh(a),a.M1=k);if(z.ga.ma&&9>=z.ga.ma||g.YX)k=s;z.V(g.Ya,"mousewheel",k?b:f);window.addEventListener&&g.Ya.addEventListener("DOMMouseScroll",k?b:f,t);z.V(g.platform,"click", function(a){var b=new Q("onclick"),e=new Q("onclickex"),f=g.$;c(a,ma(b,a));c(a,ma(e,a));if(!g.Wa){var i=!f.qx&&!f.sx;i&&g.dispatchEvent(b);if(!f.Ci)f.Ci=setTimeout(function(){f.Ci=s;i&&g.dispatchEvent(e)},g.U.zB)}f.Jt=s;f.Kt=s;f.qx=0;f.sx=0});z.V(g.platform,"dblclick",function(a){if(!g.Wa){g.Wa=g.Wa|ah;z.ga.ma&&g.dispatchEvent(c(a,ma(new Q("onclick"),a)));var b=g.$;if(b.Ci){clearTimeout(b.Ci);b.Ci=s}g.dispatchEvent(c(a,ma(new Q("ondblclick"),a)));g.Wa=g.Wa^ah}});z.V(document,"mousedown",function(b){var b= window.event||b,b=b.srcElement||b.target,c=g.$;c.rB=c.rB?z.R.contains(a.Ya,b):z.R.contains(a.platform,b)})}); function eh(a,b){if(a.U.vw){var c=a.$,e=eb();if(100<e-c.Ms)a.dispatchEvent(new Q("onmoveend")),c.Mj=t;else{var f=c.$B,g=[0<b.x-f.x?1:-1,0<b.y-f.y?1:-1],e=Fb(f,b)/((e-c.aC)/1E3)/2,i=e/1.8,k=0.4*i*e/1E3,m=Math.abs(f.x-b.x),n=0,o=0;0===Math.abs(f.y-b.y)?n=m:(f=Math.abs(f.x-b.x)/Math.abs(f.y-b.y),o=Math.round(Math.sqrt(k*k/(1+f*f))),n=Math.round(f*o));-1===g[0]&&(n=-n);-1===g[1]&&(o=-o);c.qb&&(c.qb.stop(),c.qb=s,a.dispatchEvent(new Q("onmoveend")));var q=e/1E3,v=a.offsetX,w=a.offsetY,y=t;c.qb=new ub({duration:i, Hc:30,$b:function(a){a=a*q/1.8;return q*a-0.9*a*a},za:function(b){b=b*3.6/(q*q);y=!y;a.Je(v+Math.round(b*n),w+Math.round(b*o),s,y)},finish:function(){c.qb=s;a.Je(v+Math.round(n),w+Math.round(o));a.dispatchEvent(new Q("onmoveend"))},Ws:function(b){c.qb=s;b=b*3.6/(q*q);a.Je(v+Math.round(b*n),w+Math.round(b*o));setTimeout(function(){a.dispatchEvent(new Q("onmoveend"))},1)}})}}else a.dispatchEvent(new Q("onmoveend"))} function fh(a){this.map=a;this.oh=a.oh;this.JU=gh();this.Od=0;this.dE=1;this.cE=this.Vg=s;this.SD=1;this.TD=-1;this.xD=t;this.pc=19;this.gc=3;this.AL=0;this.uk="";this.Cs=t;this.LD=this.zL=0;this.aJ()}var hh=fh.prototype;hh.aJ=function(){var a=this,b=a.map;a.pc=b.U.pc||19;a.gc=b.U.gc||3;b.addEventListener("onmaptypechange",function(){a.pc=b.U.pc||19;a.gc=b.U.gc||3})}; hh.U_=function(a){var b=this,c=b.map,e=c.$;b.pc=c.U.pc||19;b.gc=c.U.gc||3;e.qb&&(e.qb.stop(),e.qb=s,c.dispatchEvent(new Q("onmoveend")));var f=Math.floor(a.domEvent.timeStamp),g=f-this.AL,i=0<=a.domEvent.wheelDelta,e=Math.abs(a.domEvent.wheelDelta),k=Math.abs(a.domEvent.deltaY);100<g&&(this.Cs=t,this.uk=ih(e,k,a.N1),this.Od=0,this.DM=s);"padScroll"===this.uk&&(0===k&&0===g&&this.Cs===t)&&(this.Cs=p);if(0!==g){this.AL=f;if("padScroll"===this.uk&&40>g){b.Od=i?b.Od+0.13:b.Od-0.16;var f=a.domEvent.wheelDelta- this.zL,g=f-this.LD,m=this.LD;this.LD=f;this.zL=a.domEvent.wheelDelta;this.yL=i;if("boolean"===typeof this.yL&&i!==this.yL||"padScroll"===this.uk&&3===e&&!isNaN(g)&&50<Math.abs(f-m))b.Lk&&(b.Lk.stop(),b.Lk=s);else if(0!==this.DM)if(0>f&&0<m||0<f&&0>m)5>k&&(this.Cs=t);else return}this.DM=this.Od;e=a.domEvent.wheelDelta/120||-a.domEvent.detail/3;0===e&&z.ga.Qe&&(e=-a.domEvent.deltaY);if(0!==e&&(e=Math.ceil(Math.abs(e))*(0<=e?1:-1),"padPinch"===this.uk&&(e=a.domEvent.deltaY),k=0<e?1:-1,c=c.ka(),0>k&& (b.SD=-1),0<k&&(b.TD=1),f=b.gc,!(c>=b.pc&&0<k&&1===b.SD||c<=f&&0>k&&-1===b.TD))){"mouseWheel"!==this.uk&&(e*=0.6);b.Od+=e;"mouseWheel"===this.uk&&(b.Od=b.CL(b.Od));var n=new R(a.mb.x,a.mb.y);if("mouseWheel"!==this.uk){if(!b.Lk&&!b.Ik&&!(0===b.Od||b.Cs===p))b.Ik=setTimeout(function(){var a=Math.abs(b.Od),a=Math.round(a);b.Od=i?a:-a;b.Od=b.CL(b.Od);b.Od!==0&&b.fO(n,b.Od);b.Ik=s},30)}else b.Lk&&(b.Lk.stop(),b.Lk=s),b.Ik&&clearTimeout(b.Ik),b.Ik=setTimeout(function(){b.fO(n,b.Od);b.Ik=s},25)}}}; hh.CL=function(a){var b=this.gc,c=this.pc,e=this.map.ka(),a=Math.min(Math.max(a,-3),3);e+a>c?a=c-e:e+a<b&&(a=b-e);return a}; hh.fO=function(a,b){var c=new P(0,0),e=this,f=e.map,g=e.oh,i=Math.pow(2,b),k=e.dE,m,n=f.width,o=f.height,q=(a.x-n/2)/n,v=(a.y-o/2)/o,w=g.hc,y=g.Hg,A=w.style,B=y.style,C,F,E=e.JU;e.xD||(e.xD=p,f.dispatchEvent(new Q("onzoomstart")));f.Oc&&z.R.aa(f.Oc);g.ml.style.visibility="hidden";g.hg&&(g.hg.style.visibility="hidden");g.An.style.visibility="hidden";if(!e.Vg){A[E]||(A[E]="translate3d(0,0,0)");var G=e.cE;G&&(G.parentNode&&G.parentNode.removeChild(G),e.cE=s);e.cE=e.Vg=w.cloneNode(p);(e.se||!f.U.Xi)&& f.platform.insertBefore(e.Vg,f.platform.firstChild)}g.Hg.style.visibility="hidden";if(!e.se&&f.U.Xi){if(w=e.CM)w.parentNode&&w.parentNode.removeChild(w),e.CM=s;e.se=y.cloneNode(p);w=e.se.firstChild;for(G=0;G<w.childElementCount;G++)$g(y.firstChild.children[G],w.children[G]);$g(y.lastElementChild,e.se.lastElementChild);e.se.style.visibility="";e.CM=e.se;f.platform.insertBefore(e.se,f.platform.firstChild)}A.visibility="hidden";B.visibility="hidden";var N=e.Vg.style;f.U.aM===t&&(N.display="none");if(f.U.Xi)var L= e.se.children[0].style,M=e.se.children[1].style;e.Lk=new ub({Hc:60,duration:f.U.to?400:1,$b:vb.Vr,za:function(a){if(b>0){m=k+a*(i-k);C=-n*(m-1)*q-c.width*a;F=-o*(m-1)*v-c.height*a}else{m=k-a*(k-i);C=n*(1-m)*q;F=o*(1-m)*v}N[E]="translate3d("+C+"px, "+F+"px, 0) scale("+m+")";if(f.U.Xi){L[E]="translate3d("+C+"px, "+F+"px, 0) scale("+m+")";M[E]="translate3d("+C+"px, "+F+"px, 0) scale("+m+")"}e.dE=m},finish:function(){var c=f.ka(),c=Math.round(c+b);f.Bc=f.Va;f.Va=c;var c=g.uz(a),i=f.va().dc(f.ka());f.fc= new J(c.lng+(f.width/2-a.x)*i,c.lat-(f.height/2-a.y)*i);f.pe=f.Pc.eh(f.fc,f.Vb);A.visibility="";B.visibility="";g.Rf();f.Oc&&(z.ga.ma&&z.ga.ma<8||document.compatMode==="BackCompat"?z.R.show(f.Oc):setTimeout(function(){z.R.show(f.Oc)},100));g.ml.style.visibility="";g.An.style.visibility="";g.Hg.style.visibility="";f.dispatchEvent(new Q("onzoomend"));e.Od=0;e.dE=1;setTimeout(function(){e.NM()},100);e.NM();e.Lk=s;e.SD=1;e.TD=-1;e.xD=t}})}; hh.NM=function(){this.Vg&&(Sc(this.Vg),this.Vg.parentNode&&(this.Vg.parentNode.removeChild(this.Vg),this.Vg.innerHTML="",this.Vg=s));this.se&&this.map.U.Xi&&(Sc(this.se),this.se.parentNode&&(this.se.parentNode.removeChild(this.se),this.se.innerHTML="",this.se=s))}; function gh(){var a="transform",b=document.createElement("div"),c=["Webkit","Moz","O","ms"],e=c.length,f="",b=b.style;a in b&&(f=a);for(a=a.replace(/^[a-z]/,function(a){return a.toUpperCase()});e--;){var g=c[e]+a;if(g in b){f=g;break}}return f}function ih(a,b,c){var e="mouseWheel";if(120===a&&1>b)e="padPinch";else if(!isNaN(a)&&(10>a||120!==a)&&0===b%1)e="padScroll";z.ga.Qe&&0===c&&(e="padScroll");z.ga.Mx&&12===a&&(e="mouseWheel");return e};D.We(function(a){z.V(document,"keydown",function(b){a.$.oi==p&&(a.$.oi=t);if(a.U.ww&&a.$.rB)switch(b=window.event||b,b.keyCode||b.which){case 43:case 189:case 109:a.$.Ic=p;a.dispatchEvent(new Q("onminuspress"));break;case 43:case 61:case 187:case 107:a.$.Ic=p;a.dispatchEvent(new Q("onpluspress"));break;case 33:a.$.Ic=t;a.$.oi=p;a.tg(0,Math.round(0.8*a.height));oa(b);break;case 34:a.$.Ic=t;a.$.oi=p;a.tg(0,-Math.round(0.8*a.height));oa(b);break;case 35:a.$.Ic=t;a.$.oi=p;a.tg(-Math.round(0.8*a.width), 0);oa(b);break;case 36:a.$.Ic=t;a.$.oi=p;a.tg(Math.round(0.8*a.width),0);oa(b);break;case 37:a.$.Ic=p;a.$.mc|=1;a.hb();oa(b);break;case 38:a.$.Ic=p;a.$.mc|=2;a.hb();oa(b);break;case 39:a.$.Ic=p;a.$.mc|=4;a.hb();oa(b);break;case 40:a.$.Ic=p,a.$.mc|=8,a.hb(),oa(b)}});z.V(document,"keyup",function(b){if(a.U.ww)switch(b=window.event||b,b.keyCode||b.which){case 37:a.$.mc&=-2;0!=a.$.mc&&a.hb();break;case 38:a.$.mc&=-3;0!=a.$.mc&&a.hb();break;case 39:a.$.mc&=-5;0!=a.$.mc&&a.hb();break;case 40:a.$.mc&=-9, 0!=a.$.mc&&a.hb()}a.$.Ic=t});Oa.prototype.hb=function(){if(!this.hb.ux||!(this.hb.Wz==this.$.mc&&this.$.oi==p)){var a=this,c=a.$.mc;a.hb.Wz=c;a.hb.dx=30;a.hb.duration=999;a.hb.df=a.hb.ef=0;c&1&&(a.hb.df=1);c&2&&(a.hb.ef=1);c&4&&(a.hb.df=-1);c&8&&(a.hb.ef=-1);c&1&&c&4&&(a.hb.df=0);c&2&&c&8&&(a.hb.ef=0);if(!a.hb.ux){a.hb.ux=p;a.hb.time=eb();a.hb.cU=a.hb.time;a.dispatchEvent(new Q("onmovestart"));var e=new ub({Hc:a.hb.dx,duration:a.hb.duration,$b:vb.FL,za:function(){var c=a.hb,g=a.$.mc;if(a.hb.Wz!=g){a.hb.Wz= g;if(g&1)c.df=1;if(g&2)c.ef=1;if(g&4)c.df=-1;if(g&8)c.ef=-1;if(g&1&&g&4)c.df=0;if(g&2&&g&8)c.ef=0}if(a.$.oi==p){c.df=0;c.ef=0}var g=eb(),i=Math.pow((g-c.cU)/c.duration,2);if(!a.$.mc){c.ux=t;e.NE=p;a.hb.time=eb();setTimeout(function(){a.dispatchEvent(new Q("onmoveend"))},40)}var k=g-c.time,m=c.df*k*i>=0?Math.ceil(c.df*k*i):Math.floor(c.df*k*i),i=c.ef*k*i>=0?Math.ceil(c.ef*k*i):Math.floor(c.ef*k*i);if(m!=0&&i!=0){m=Math.round(m*0.7);i=Math.round(i*0.7)}c.time=g;a.Je(a.offsetX+m,a.offsetY+i)},finish:function(){a.hb.time= eb();setTimeout(function(){a.ZF()},a.hb.dx)}})}}};Oa.prototype.ZF=function(){var a=this,c=a.hb;a.$.oi&&(c.df=0,c.ef=0);if(a.$.mc){var e=eb(),f=e-c.time,g=Math.ceil(c.df*f),f=Math.ceil(c.ef*f);c.time=e;a.Je(a.offsetX+g,a.offsetY+f);setTimeout(function(){a.ZF()},c.dx)}else c.ux=t,a.dispatchEvent(new Q("onmoveend"))}}); ');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment