8449 lines
1.6 MiB
8449 lines
1.6 MiB
(function(config) {
|
||
! function(global, factory) { "object" == typeof exports && "undefined" != typeof module ? module.exports = factory() : "function" == typeof define && define.amd ? define(factory) : (global = global || self).AMap = factory() }(this, function() { "use strict"; var shared, worker, AMap;
|
||
|
||
function define(_, chunk) { var sharedChunk, workerBundleString;
|
||
shared ? worker ? (workerBundleString = 'var sharedChunk = {key:"' + config[0] + '",db:"' + (config[14] || "") + '",nebulaVersion:"' + (config[15] || "") + '",movingDraw:' + Boolean(window.movingDraw) + ',host:"' + config[2] + '",}; (' + shared + ")(sharedChunk); (" + worker + ")(sharedChunk);", sharedChunk = { key: config[0], movingDraw: window.movingDraw }, shared(sharedChunk), sharedChunk = chunk(sharedChunk), workerBundleString = "undefined" != typeof URL ? window.URL.createObjectURL(new Blob([workerBundleString], { type: "text/javascript" })) : "", (AMap = sharedChunk(config)).getConfig().workerUrl = workerBundleString) : worker = chunk : shared = chunk }
|
||
define(["exports"], function(exports) { var extend = function(f) { for (var t, r, i = Array.prototype.slice.call(arguments, 1), o = 0, n = i.length; o < n; o += 1)
|
||
for (var a in t = i[o] || {}) t.hasOwnProperty(a) && ("function" == typeof(r = t[a]) && f.prototype ? f.prototype[a] = r : f[a] = r); return f };
|
||
|
||
function isBrowser() { return "undefined" != typeof window && "undefined" != typeof document }
|
||
|
||
function isWasmSuppport() { try { if ("object" == typeof WebAssembly && "function" == typeof WebAssembly.instantiate && TextDecoder && TextEncoder) { var f = new WebAssembly.Module(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0])); if (f instanceof WebAssembly.Module) return new WebAssembly.Instance(f) instanceof WebAssembly.Instance } } catch (f) {} return !1 } var testWepP = function(f) { var e = new Image;
|
||
e.src = "data:image/webp;base64,UklGRi4AAABXRUJQVlA4TCEAAAAvAUAAEB8wAiMwAgSSNtse/cXjxyCCmrYNWPwmHRH9jwMA", e.onload = e.onerror = function() { f(2 === e.height) } };
|
||
|
||
function isWorkerEnv() { try { return document, !1 } catch (f) { return !0 } }
|
||
|
||
function getSupport(f) {
|
||
function e(f) { return -1 !== r.indexOf(f) } var t = { runSupport: (new Date).getTime() },
|
||
j = isWasmSuppport(),
|
||
r = navigator.userAgent.toLowerCase(),
|
||
U = !0,
|
||
i = e("macintosh"),
|
||
F = e("ipad;") || e("ipad "),
|
||
o = e("ipod touch;"),
|
||
n = e("iphone;") || e("iphone "),
|
||
o = n || F || o,
|
||
a = (i || o) && e("safari") && e("version/"),
|
||
l = e("macwechat"),
|
||
s = e("windowswechat"),
|
||
R = { touch: !1, mac: i, Ue: !1, webkit: !1, $e: !1, scale: 1, android: !1, DW: isWorkerEnv(), wasm: j, safari: a, AQ: l, gQ: s, amapRunTime: t }; if (isBrowser()) { var d = window,
|
||
s = (l = document).documentElement,
|
||
c = /([a-z0-9]*\d+[a-z0-9]*)/,
|
||
D = "google swiftshader;microsoft basic render driver;vmware svga 3d;Intel 965GM;Intel B43;Intel G41;Intel G45;Intel G965;Intel GMA 3600;Intel Mobile 4;Intel Mobile 45;Intel Mobile 965".split(";"),
|
||
u = "ActiveXObject" in d,
|
||
y = 0 != window.detectRetina && ("devicePixelRatio" in d && 1 < d.devicePixelRatio || u && "matchMedia" in d && d.matchMedia("(min-resolution:144dpi)") && d.matchMedia("(min-resolution:144dpi)").matches),
|
||
B = e("windows nt"),
|
||
b = (r.search(/windows nt [1-5]\./), r.search(/windows nt 5\.[12]/), e("windows nt 10"), e("windows phone")),
|
||
G = e("Mb2345Browser"),
|
||
V = (o && r.search(/ os [456]_/), o && r.search(/ os [4-8]_/), o && r.search(/ os [78]_/), o && e("os 8_"), o && e("os 10_")),
|
||
p = e("android"),
|
||
h = 0,
|
||
z = (p && (h = parseInt(r.split("android")[1]) || 0), p && h < 4),
|
||
S = (p && 5 <= h || r.search(/android 4.4/), p ? "android" : o ? "ios" : B ? "windows" : i ? "mac" : "other"),
|
||
h = u && !d.XMLHttpRequest,
|
||
W = u && !l.querySelector,
|
||
v = u && !l.addEventListener,
|
||
H = u && e("msie 9"),
|
||
q = u && e("msie 10"),
|
||
Y = u && e("rv:11"),
|
||
K = v || H,
|
||
g = e("edge"),
|
||
M = (e("qtweb"), e("ucbrowser")),
|
||
X = e("alipay") || p && M,
|
||
Z = (e("miuibrowser"), e("micromessenger")),
|
||
w = e("dingtalk"),
|
||
J = e("mqqbrowser"),
|
||
Q = e("baidubrowser"),
|
||
m = e("crios/"),
|
||
k = e("chrome/"),
|
||
m = !((k || m) && e("chromium")) && (k && 30 < parseInt(r.split("chrome/")[1]) || m && 30 < parseInt(r.split("crios/")[1])),
|
||
ff = e("firefox"),
|
||
x = ff && 27 < parseInt(r.split("firefox/")[1]),
|
||
T = a && 7 < parseInt(r.split("version/")[1]),
|
||
A = (o && e("aliapp"), p || o || b || e("mobile")),
|
||
b = "ontouchstart" in l,
|
||
ef = d.navigator && d.navigator.msPointerEnabled && !!d.navigator.msMaxTouchPoints,
|
||
tf = d.navigator && !!d.navigator.maxTouchPoints,
|
||
rf = !b && (tf || ef),
|
||
b = b || rf,
|
||
_ = function() { if (!A) return d.devicePixelRatio || 1; var f = document.getElementsByTagName("meta"); if (window.parent && window.parent !== window) try { if (window.parent.location.origin !== window.location.origin) return 1;
|
||
f = window.parent.document.getElementsByTagName("meta") } catch (f) { return 1 }
|
||
for (var t, r, e, o = f.length - 1; 0 <= o; --o)
|
||
if ("viewport" === f[o].name) return t = void 0, -1 !== (e = f[o].content).indexOf("initial-scale") && (t = parseFloat(e.split("initial-scale=")[1])), r = -1 !== e.indexOf("minimum-scale") ? parseFloat(e.split("minimum-scale=")[1]) : 0, e = -1 !== e.indexOf("maximum-scale") ? parseFloat(e.split("maximum-scale=")[1]) : 1 / 0, t ? r <= e ? e < t ? e : t < r ? r : t : (console && console.log && console.log("viewport参数不合法"), null) : r <= e ? 1 <= r ? 1 : Math.min(e, 1) : (console && console.log && console.log("viewport参数不合法"), null) }(),
|
||
of = y && (!A || !!_ && 1 <= _),
|
||
nf = u && "transition" in s.style,
|
||
af = !!l.createElementNS && !!l.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect,
|
||
P = l.createElement("canvas"),
|
||
lf = !(!P || !P.getContext),
|
||
l = window.URL || window.webkitURL,
|
||
sf = !0 !== window.disableWorker && !u && !(M && p && !m) && window.Worker && l && l.createObjectURL && window.Blob,
|
||
I = "",
|
||
C = "",
|
||
N = 0,
|
||
l = 0 != window.higtQualityRender || !y,
|
||
df = window.movingDraw,
|
||
$ = { alpha: !0, antialias: l, depth: !0, stencil: !0 },
|
||
L = (l = function() { if (lf && sf)
|
||
for (var f, t = ["webgl", "experimental-webgl", "moz-webgl"], r = null, i = 0; i < t.length; i += 1) { try { r = P.getContext(t[i], $) } catch (f) {} if (r) { if (r.drawingBufferWidth !== P.width || r.drawingBufferHeight !== P.height) return !1; if (!r.getShaderPrecisionFormat || !r.getParameter || !r.getExtension) return !1; if (N = r.getParameter(r.MAX_RENDERBUFFER_SIZE), !(o = r.getParameter(r.MAX_VIEWPORT_DIMS))) return !1;
|
||
N = Math.min(N, o[0], o[1]), a && "mac" == S && (N = Math.min(N, 4096)); var o = Math.max(screen.width, screen.height); if (of && (o *= Math.min(2, window.devicePixelRatio || 1)), N < o) return !1; if (r.getShaderPrecisionFormat(35632, 36338).precision < 23 || r.getShaderPrecisionFormat(35633, 36338).precision < 23) return !1; var e = n = o = void 0,
|
||
n = (f = C = r.getExtension("WEBGL_debug_renderer_info") ? r.getParameter(37446) : null) ? (o = null, 0 <= (f = (f = (n = (f = f.toLowerCase()).match(/angle \((.*)\)/)) ? (f = n[1]).replace(/\s*direct3d.*$/, "") : f).replace(/\s*\([^\)]*wddm[^\)]*\)/, "")).indexOf("intel") ? (o = ["Intel"], 0 <= f.indexOf("mobile") && o.push("Mobile"), (0 <= f.indexOf("gma") || 0 <= f.indexOf("graphics media accelerator")) && o.push("GMA"), 0 <= f.indexOf("haswell") ? o.push("Haswell") : 0 <= f.indexOf("ivy") ? o.push("HD 4000") : 0 <= f.indexOf("sandy") ? o.push("HD 3000") : 0 <= f.indexOf("ironlake") ? o.push("HD") : (0 <= f.indexOf("hd") && o.push("HD"), (e = f.match(c)) && o.push(e[1].toUpperCase())), o.join(" ")) : 0 <= f.indexOf("nvidia") || 0 <= f.indexOf("quadro") || 0 <= f.indexOf("geforce") || 0 <= f.indexOf("nvs") ? (o = ["nVidia"], 0 <= f.indexOf("geforce") && o.push("geForce"), 0 <= f.indexOf("quadro") && o.push("Quadro"), 0 <= f.indexOf("nvs") && o.push("NVS"), f.match(/\bion\b/) && o.push("ION"), f.match(/gtx\b/) ? o.push("GTX") : f.match(/gts\b/) ? o.push("GTS") : f.match(/gt\b/) ? o.push("GT") : f.match(/gs\b/) ? o.push("GS") : f.match(/ge\b/) ? o.push("GE") : f.match(/fx\b/) && o.push("FX"), (e = f.match(c)) && o.push(e[1].toUpperCase().replace("GS", "")), 0 <= f.indexOf("titan") ? o.push("TITAN") : 0 <= f.indexOf("ti") && o.push("Ti"), o.join(" ")) : 0 <= f.indexOf("amd") || 0 <= f.indexOf("ati") || 0 <= f.indexOf("radeon") || 0 <= f.indexOf("firegl") || 0 <= f.indexOf("firepro") ? (o = ["AMD"], 0 <= f.indexOf("mobil") && o.push("Mobility"), 0 <= (n = f.indexOf("radeon")) && o.push("Radeon"), 0 <= f.indexOf("firepro") ? o.push("FirePro") : 0 <= f.indexOf("firegl") && o.push("FireGL"), 0 <= f.indexOf("hd") && o.push("HD"), (e = (f = 0 <= n ? f.substring(n) : f).match(c)) && o.push(e[1].toUpperCase().replace("HD", "")), o.join(" ")) : f.substring(0, 100)) : null; if (n) { if (-1 < n.indexOf("google swiftshader")) return U = !1; if (-1 !== D.indexOf(n)) return !1 } return I = t[i], !0 } }
|
||
return !1 })(),
|
||
cf = void 0 === f[8] || f[8],
|
||
L = window.Uint8Array && cf && !window.forbidenWebGL && L && (window.forceWebGL || (m || x || T || g || Z || w) && "other" != S),
|
||
m = window.forceWebGLBaseRender || L ? "w" : "d",
|
||
x = e("webkit"),
|
||
T = "WebKitCSSMatrix" in d && "m11" in new window.WebKitCSSMatrix,
|
||
w = "MozPerspective" in s.style,
|
||
s = "vV" in s.style,
|
||
uf = nf || T || w || s,
|
||
f = void 0 !== f[12] ? f[12] : null,
|
||
O = !0; try { void 0 === d.localStorage ? O = !1 : (E = (new Date).getTime() + "", d.localStorage.setItem("_test", E), d.localStorage.getItem("_test") !== E && (O = !1), d.localStorage.removeItem("_test")) } catch (f) { O = !1 } var E = parseInt(r.split("chrome/")[1]),
|
||
R = { iPad: F, iPhone: n, size: n ? 100 : p ? 200 : 500, mac: i, windows: B, ios: o, uT: V, android: p, android23: z, cT: X, plat: S, baidu: Q, qq: J, safari: a, wechat: Z, ie: u, ie6: h, ie7: W, ie9: H, ie10: q, ielt9: v, fT: K, ie11: Y, edge: g, hT: u && !Y, lT: G, RL: O, vT: f, geolocation: A || u && !v || g, SL: M, uc: M && !k, chrome: k, gT: !0, firefox: ff, hardwareAccEnabled: U, $e: A, mobileWebkit: A && x, mobileWebkit3d: A && T, mobileOpera: A && d.opera, Ue: y, bT: _, Mr: of, touch: b, msPointer: ef, pointer: tf, yT: rf, pT: k && 57 <= E, mT: !A && k && 64 <= E, webkit: x, ie3d: nf, webkit3d: T, gecko3d: w, opera3d: s, any3d: uf, isSvg: af, isCanvas: lf, isWorker: sf, TT: !1, isWebGL: L, AT: I, xT: $, ST: C, wT: N, MT: !1, movingDraw: df, baseRender: cf ? m : "d", scale: y ? 2 : 1, getContext: function(f, e) { var t = {}; return extend(t, $), extend(t, e), f.getContext(I, t) }, mH: !1, wasm: j, amapRunTime: t, sY: l };
|
||
testWepP(function(f) { R.mH = f }) } return R } var Browser = getSupport("undefined" == typeof config ? [] : config),
|
||
canceledWorkerFetch = ("undefined" != typeof createImageBitmap && "undefined" != typeof ImageBitmap && (Browser.imageBitmap = !0), Boolean(Browser.DW ? !Browser.safari && !Browser.AQ && !Browser.gQ && self.fetch && self.Request && self.AbortController && self.Request.prototype.hasOwnProperty("signal") : !Browser.safari && !Browser.AQ && !Browser.gQ && window.fetch && window.Request && window.AbortController && window.Request.prototype.hasOwnProperty("signal"))),
|
||
freeGlobal = (Browser.LZ = canceledWorkerFetch, Browser.amapRunTime = { workerTime: {} }, "object" == typeof global && global && global.Object === Object && global),
|
||
freeSelf = "object" == typeof self && self && self.Object === Object && self,
|
||
root = freeGlobal || freeSelf || Function("return this")(),
|
||
Symbol$1 = root.Symbol,
|
||
objectProto = Object.prototype,
|
||
hasOwnProperty = objectProto.hasOwnProperty,
|
||
nativeObjectToString = objectProto.toString,
|
||
symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
||
|
||
function getRawTag(f) { var e = hasOwnProperty.call(f, symToStringTag),
|
||
t = f[symToStringTag]; try { var r = !(f[symToStringTag] = void 0) } catch (f) {} var i = nativeObjectToString.call(f); return r && (e ? f[symToStringTag] = t : delete f[symToStringTag]), i } var objectProto$1 = Object.prototype,
|
||
nativeObjectToString$1 = objectProto$1.toString;
|
||
|
||
function objectToString(f) { return nativeObjectToString$1.call(f) } var nullTag = "[object Null]",
|
||
undefinedTag = "[object Undefined]",
|
||
symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
||
|
||
function baseGetTag(f) { return null == f ? void 0 === f ? undefinedTag : nullTag : (symToStringTag$1 && symToStringTag$1 in Object(f) ? getRawTag : objectToString)(f) }
|
||
|
||
function isObjectLike(f) { return null != f && "object" == typeof f } var symbolTag = "[object Symbol]";
|
||
|
||
function isSymbol(f) { return "symbol" == typeof f || isObjectLike(f) && baseGetTag(f) == symbolTag }
|
||
|
||
function arrayMap(f, e) { for (var t = -1, r = null == f ? 0 : f.length, i = Array(r); ++t < r;) i[t] = e(f[t], t, f); return i } var isArray = Array.isArray,
|
||
INFINITY = 1 / 0,
|
||
symbolProto = Symbol$1 ? Symbol$1.prototype : void 0,
|
||
symbolToString = symbolProto ? symbolProto.toString : void 0;
|
||
|
||
function baseToString(f) { var e; return "string" == typeof f ? f : isArray(f) ? arrayMap(f, baseToString) + "" : isSymbol(f) ? symbolToString ? symbolToString.call(f) : "" : "0" == (e = f + "") && 1 / f == -INFINITY ? "-0" : e } var reWhitespace = /\s/;
|
||
|
||
function trimmedEndIndex(f) { for (var e = f.length; e-- && reWhitespace.test(f.charAt(e));); return e } var reTrimStart = /^\s+/;
|
||
|
||
function baseTrim(f) { return f && f.slice(0, trimmedEndIndex(f) + 1).replace(reTrimStart, "") }
|
||
|
||
function isObject(f) { var e = typeof f; return null != f && ("object" == e || "function" == e) } var NAN = NaN,
|
||
reIsBadHex = /^[-+]0x[0-9a-f]+$/i,
|
||
reIsBinary = /^0b[01]+$/i,
|
||
reIsOctal = /^0o[0-7]+$/i,
|
||
freeParseInt = parseInt;
|
||
|
||
function toNumber(f) { if ("number" == typeof f) return f; if (isSymbol(f)) return NAN; if ("string" != typeof(f = isObject(f) ? isObject(e = "function" == typeof f.valueOf ? f.valueOf() : f) ? e + "" : e : f)) return 0 === f ? f : +f;
|
||
f = baseTrim(f); var e = reIsBinary.test(f); return e || reIsOctal.test(f) ? freeParseInt(f.slice(2), e ? 2 : 8) : reIsBadHex.test(f) ? NAN : +f } var INFINITY$1 = 1 / 0,
|
||
MAX_INTEGER = 17976931348623157e292;
|
||
|
||
function toFinite(f) { return f ? (f = toNumber(f)) === INFINITY$1 || f === -INFINITY$1 ? (f < 0 ? -1 : 1) * MAX_INTEGER : f == f ? f : 0 : 0 === f ? f : 0 }
|
||
|
||
function toInteger(f) { var e = (f = toFinite(f)) % 1; return f == f ? e ? f - e : f : 0 }
|
||
|
||
function identity(f) { return f } var asyncTag = "[object AsyncFunction]",
|
||
funcTag = "[object Function]",
|
||
genTag = "[object GeneratorFunction]",
|
||
proxyTag = "[object Proxy]";
|
||
|
||
function isFunction(f) { return !!isObject(f) && ((f = baseGetTag(f)) == funcTag || f == genTag || f == asyncTag || f == proxyTag) } var coreJsData = root["__core-js_shared__"],
|
||
maskSrcKey = function() { var f = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.Xb || ""); return f ? "Symbol(src)_1." + f : "" }();
|
||
|
||
function isMasked(f) { return maskSrcKey && maskSrcKey in f } var funcProto = Function.prototype,
|
||
funcToString = funcProto.toString;
|
||
|
||
function toSource(f) { if (null != f) { try { return funcToString.call(f) } catch (f) {} try { return f + "" } catch (f) {} } return "" } var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
|
||
reIsHostCtor = /^\[object .+?Constructor\]$/,
|
||
funcProto$1 = Function.prototype,
|
||
objectProto$2 = Object.prototype,
|
||
funcToString$1 = funcProto$1.toString,
|
||
hasOwnProperty$1 = objectProto$2.hasOwnProperty,
|
||
reIsNative = RegExp("^" + funcToString$1.call(hasOwnProperty$1).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
||
|
||
function baseIsNative(f) { return isObject(f) && !isMasked(f) && (isFunction(f) ? reIsNative : reIsHostCtor).test(toSource(f)) }
|
||
|
||
function getValue(f, e) { return null == f ? void 0 : f[e] }
|
||
|
||
function getNative(f, e) { return baseIsNative(f = getValue(f, e)) ? f : void 0 } var WeakMap = getNative(root, "WeakMap"),
|
||
objectCreate = Object.create,
|
||
baseCreate = function() {
|
||
function e() {} return function(f) { return isObject(f) ? objectCreate ? objectCreate(f) : (e.prototype = f, f = new e, e.prototype = void 0, f) : {} } }();
|
||
|
||
function apply(f, e, t) { switch (t.length) {
|
||
case 0:
|
||
return f.call(e);
|
||
case 1:
|
||
return f.call(e, t[0]);
|
||
case 2:
|
||
return f.call(e, t[0], t[1]);
|
||
case 3:
|
||
return f.call(e, t[0], t[1], t[2]) } return f.apply(e, t) }
|
||
|
||
function copyArray(f, e) { var t = -1,
|
||
r = f.length; for (e = e || Array(r); ++t < r;) e[t] = f[t]; return e } var HOT_COUNT = 800,
|
||
HOT_SPAN = 16,
|
||
nativeNow = Date.now;
|
||
|
||
function shortOut(t) { var r = 0,
|
||
i = 0; return function() { var f = nativeNow(),
|
||
e = HOT_SPAN - (f - i); if (i = f, 0 < e) { if (++r >= HOT_COUNT) return arguments[0] } else r = 0; return t.apply(void 0, arguments) } }
|
||
|
||
function constant(f) { return function() { return f } } var defineProperty = function() { try { var f = getNative(Object, "defineProperty"); return f({}, "", {}), f } catch (f) {} }(),
|
||
baseSetToString = defineProperty ? function(f, e) { return defineProperty(f, "toString", { configurable: !0, enumerable: !1, value: constant(e), writable: !0 }) } : identity,
|
||
setToString = shortOut(baseSetToString);
|
||
|
||
function arrayEach(f, e) { for (var t = -1, r = null == f ? 0 : f.length; ++t < r && !1 !== e(f[t], t, f);); return f }
|
||
|
||
function baseFindIndex(f, e, t, r) { for (var i = f.length, o = t + (r ? 1 : -1); r ? o-- : ++o < i;)
|
||
if (e(f[o], o, f)) return o;
|
||
return -1 } var MAX_SAFE_INTEGER = 9007199254740991,
|
||
reIsUint = /^(?:0|[1-9]\d*)$/;
|
||
|
||
function isIndex(f, e) { var t = typeof f; return !!(e = null == e ? MAX_SAFE_INTEGER : e) && ("number" == t || "symbol" != t && reIsUint.test(f)) && -1 < f && f % 1 == 0 && f < e }
|
||
|
||
function baseAssignValue(f, e, t) { "__proto__" == e && defineProperty ? defineProperty(f, e, { configurable: !0, enumerable: !0, value: t, writable: !0 }) : f[e] = t }
|
||
|
||
function eq(f, e) { return f === e || f != f && e != e } var objectProto$3 = Object.prototype,
|
||
hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
||
|
||
function assignValue(f, e, t) { var r = f[e];
|
||
hasOwnProperty$2.call(f, e) && eq(r, t) && (void 0 !== t || e in f) || baseAssignValue(f, e, t) }
|
||
|
||
function copyObject(f, e, t, r) { for (var i = !t, o = (t = t || {}, -1), n = e.length; ++o < n;) { var a = e[o],
|
||
l = r ? r(t[a], f[a], a, t, f) : void 0;
|
||
(i ? baseAssignValue : assignValue)(t, a, void 0 === l ? f[a] : l) } return t } var nativeMax = Math.max;
|
||
|
||
function overRest(o, n, a) { return n = nativeMax(void 0 === n ? o.length - 1 : n, 0),
|
||
function() { for (var f = arguments, e = -1, t = nativeMax(f.length - n, 0), r = Array(t); ++e < t;) r[e] = f[n + e]; for (var e = -1, i = Array(n + 1); ++e < n;) i[e] = f[e]; return i[n] = a(r), apply(o, this, i) } }
|
||
|
||
function baseRest(f, e) { return setToString(overRest(f, e, identity), f + "") } var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
||
|
||
function isLength(f) { return "number" == typeof f && -1 < f && f % 1 == 0 && f <= MAX_SAFE_INTEGER$1 }
|
||
|
||
function isArrayLike(f) { return null != f && isLength(f.length) && !isFunction(f) }
|
||
|
||
function isIterateeCall(f, e, t) { var r; return isObject(t) && ("number" == (r = typeof e) ? isArrayLike(t) && isIndex(e, t.length) : "string" == r && e in t) && eq(t[e], f) }
|
||
|
||
function createAssigner(a) { return baseRest(function(f, e) { var t = -1,
|
||
r = e.length,
|
||
i = 1 < r ? e[r - 1] : void 0,
|
||
o = 2 < r ? e[2] : void 0,
|
||
i = 3 < a.length && "function" == typeof i ? (r--, i) : void 0; for (o && isIterateeCall(e[0], e[1], o) && (i = r < 3 ? void 0 : i, r = 1), f = Object(f); ++t < r;) { var n = e[t];
|
||
n && a(f, n, t, i) } return f }) } var objectProto$4 = Object.prototype;
|
||
|
||
function isPrototype(f) { var e = f && f.constructor; return f === ("function" == typeof e && e.prototype || objectProto$4) }
|
||
|
||
function baseTimes(f, e) { for (var t = -1, r = Array(f); ++t < f;) r[t] = e(t); return r } var argsTag = "[object Arguments]";
|
||
|
||
function baseIsArguments(f) { return isObjectLike(f) && baseGetTag(f) == argsTag } var objectProto$5 = Object.prototype,
|
||
hasOwnProperty$3 = objectProto$5.hasOwnProperty,
|
||
propertyIsEnumerable = objectProto$5.propertyIsEnumerable,
|
||
isArguments = baseIsArguments(function() { return arguments }()) ? baseIsArguments : function(f) { return isObjectLike(f) && hasOwnProperty$3.call(f, "callee") && !propertyIsEnumerable.call(f, "callee") };
|
||
|
||
function stubFalse() { return !1 } var freeExports = "object" == typeof exports && exports && !exports.nodeType && exports,
|
||
freeModule = freeExports && "object" == typeof module && module && !module.nodeType && module,
|
||
moduleExports = freeModule && freeModule.exports === freeExports,
|
||
Buffer = moduleExports ? root.Zb : void 0,
|
||
nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0,
|
||
isBuffer = nativeIsBuffer || stubFalse,
|
||
argsTag$1 = "[object Arguments]",
|
||
arrayTag = "[object Array]",
|
||
boolTag = "[object Boolean]",
|
||
dateTag = "[object Date]",
|
||
errorTag = "[object Error]",
|
||
funcTag$1 = "[object Function]",
|
||
mapTag = "[object Map]",
|
||
numberTag = "[object Number]",
|
||
objectTag = "[object Object]",
|
||
regexpTag = "[object RegExp]",
|
||
setTag = "[object Set]",
|
||
stringTag = "[object String]",
|
||
weakMapTag = "[object WeakMap]",
|
||
arrayBufferTag = "[object ArrayBuffer]",
|
||
dataViewTag = "[object DataView]",
|
||
float32Tag = "[object Float32Array]",
|
||
float64Tag = "[object Float64Array]",
|
||
int8Tag = "[object Int8Array]",
|
||
int16Tag = "[object Int16Array]",
|
||
int32Tag = "[object Int32Array]",
|
||
uint8Tag = "[object Uint8Array]",
|
||
uint8ClampedTag = "[object Uint8ClampedArray]",
|
||
uint16Tag = "[object Uint16Array]",
|
||
uint32Tag = "[object Uint32Array]",
|
||
typedArrayTags = {};
|
||
|
||
function baseIsTypedArray(f) { return isObjectLike(f) && isLength(f.length) && !!typedArrayTags[baseGetTag(f)] }
|
||
|
||
function baseUnary(e) { return function(f) { return e(f) } }
|
||
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = !0, typedArrayTags[argsTag$1] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = !1; var freeExports$1 = "object" == typeof exports && exports && !exports.nodeType && exports,
|
||
freeModule$1 = freeExports$1 && "object" == typeof module && module && !module.nodeType && module,
|
||
moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1,
|
||
freeProcess = moduleExports$1 && freeGlobal.process,
|
||
nodeUtil = function() { try { var f = freeModule$1 && freeModule$1.Qb && freeModule$1.Qb("util").types; return f || freeProcess && freeProcess.tg && freeProcess.tg("util") } catch (f) {} }(),
|
||
nodeIsTypedArray = nodeUtil && nodeUtil.rg,
|
||
isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray,
|
||
objectProto$6 = Object.prototype,
|
||
hasOwnProperty$4 = objectProto$6.hasOwnProperty;
|
||
|
||
function arrayLikeKeys(f, e) { var t, r = isArray(f),
|
||
i = !r && isArguments(f),
|
||
o = !r && !i && isBuffer(f),
|
||
n = !r && !i && !o && isTypedArray(f),
|
||
a = r || i || o || n,
|
||
l = a ? baseTimes(f.length, String) : [],
|
||
s = l.length; for (t in f) !e && !hasOwnProperty$4.call(f, t) || a && ("length" == t || o && ("offset" == t || "parent" == t) || n && ("buffer" == t || "byteLength" == t || "byteOffset" == t) || isIndex(t, s)) || l.push(t); return l }
|
||
|
||
function overArg(e, t) { return function(f) { return e(t(f)) } } var nativeKeys = overArg(Object.keys, Object),
|
||
objectProto$7 = Object.prototype,
|
||
hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
||
|
||
function baseKeys(f) { if (!isPrototype(f)) return nativeKeys(f); var e, t = []; for (e in Object(f)) hasOwnProperty$5.call(f, e) && "constructor" != e && t.push(e); return t }
|
||
|
||
function keys(f) { return (isArrayLike(f) ? arrayLikeKeys : baseKeys)(f) } var objectProto$8 = Object.prototype,
|
||
hasOwnProperty$6 = objectProto$8.hasOwnProperty,
|
||
assign = createAssigner(function(f, e) { if (isPrototype(e) || isArrayLike(e)) copyObject(e, keys(e), f);
|
||
else
|
||
for (var t in e) hasOwnProperty$6.call(e, t) && assignValue(f, t, e[t]) });
|
||
|
||
function nativeKeysIn(f) { var e = []; if (null != f)
|
||
for (var t in Object(f)) e.push(t); return e } var objectProto$9 = Object.prototype,
|
||
hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
||
|
||
function baseKeysIn(f) { if (!isObject(f)) return nativeKeysIn(f); var e, t = isPrototype(f),
|
||
r = []; for (e in f)("constructor" != e || !t && hasOwnProperty$7.call(f, e)) && r.push(e); return r }
|
||
|
||
function keysIn(f) { return isArrayLike(f) ? arrayLikeKeys(f, !0) : baseKeysIn(f) } var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
||
reIsPlainProp = /^\w*$/;
|
||
|
||
function isKey(f, e) { var t; return !isArray(f) && ("number" == (t = typeof f) || "symbol" == t || "boolean" == t || null == f || isSymbol(f) || reIsPlainProp.test(f) || !reIsDeepProp.test(f) || null != e && f in Object(e)) } var nativeCreate = getNative(Object, "create");
|
||
|
||
function hashClear() { this.ng = nativeCreate ? nativeCreate(null) : {}, this.size = 0 }
|
||
|
||
function hashDelete(f) { return f = this.has(f) && delete this.ng[f], this.size -= f ? 1 : 0, f } var HASH_UNDEFINED = "__lodash_hash_undefined__",
|
||
objectProto$a = Object.prototype,
|
||
hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
||
|
||
function hashGet(f) { var e, t = this.ng; return nativeCreate ? (e = t[f]) === HASH_UNDEFINED ? void 0 : e : hasOwnProperty$8.call(t, f) ? t[f] : void 0 } var objectProto$b = Object.prototype,
|
||
hasOwnProperty$9 = objectProto$b.hasOwnProperty;
|
||
|
||
function hashHas(f) { var e = this.ng; return nativeCreate ? void 0 !== e[f] : hasOwnProperty$9.call(e, f) } var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
||
|
||
function hashSet(f, e) { var t = this.ng; return this.size += this.has(f) ? 0 : 1, t[f] = nativeCreate && void 0 === e ? HASH_UNDEFINED$1 : e, this }
|
||
|
||
function Hash(f) { var e = -1,
|
||
t = null == f ? 0 : f.length; for (this.clear(); ++e < t;) { var r = f[e];
|
||
this.set(r[0], r[1]) } }
|
||
|
||
function listCacheClear() { this.ng = [], this.size = 0 }
|
||
|
||
function assocIndexOf(f, e) { for (var t = f.length; t--;)
|
||
if (eq(f[t][0], e)) return t;
|
||
return -1 }
|
||
Hash.prototype.clear = hashClear, Hash.prototype.delete = hashDelete, Hash.prototype.get = hashGet, Hash.prototype.has = hashHas, Hash.prototype.set = hashSet; var arrayProto = Array.prototype,
|
||
splice = arrayProto.splice;
|
||
|
||
function listCacheDelete(f) { var e = this.ng; return !((f = assocIndexOf(e, f)) < 0 || (f == e.length - 1 ? e.pop() : splice.call(e, f, 1), --this.size, 0)) }
|
||
|
||
function listCacheGet(f) { var e = this.ng; return (f = assocIndexOf(e, f)) < 0 ? void 0 : e[f][1] }
|
||
|
||
function listCacheHas(f) { return -1 < assocIndexOf(this.ng, f) }
|
||
|
||
function listCacheSet(f, e) { var t = this.ng,
|
||
r = assocIndexOf(t, f); return r < 0 ? (++this.size, t.push([f, e])) : t[r][1] = e, this }
|
||
|
||
function ListCache(f) { var e = -1,
|
||
t = null == f ? 0 : f.length; for (this.clear(); ++e < t;) { var r = f[e];
|
||
this.set(r[0], r[1]) } }
|
||
ListCache.prototype.clear = listCacheClear, ListCache.prototype.delete = listCacheDelete, ListCache.prototype.get = listCacheGet, ListCache.prototype.has = listCacheHas, ListCache.prototype.set = listCacheSet; var Map = getNative(root, "Map");
|
||
|
||
function mapCacheClear() { this.size = 0, this.ng = { hash: new Hash, map: new(Map || ListCache), string: new Hash } }
|
||
|
||
function isKeyable(f) { var e = typeof f; return "string" == e || "number" == e || "symbol" == e || "boolean" == e ? "__proto__" !== f : null === f }
|
||
|
||
function getMapData(f, e) { return f = f.ng, isKeyable(e) ? f["string" == typeof e ? "string" : "hash"] : f.map }
|
||
|
||
function mapCacheDelete(f) { return f = getMapData(this, f).delete(f), this.size -= f ? 1 : 0, f }
|
||
|
||
function mapCacheGet(f) { return getMapData(this, f).get(f) }
|
||
|
||
function mapCacheHas(f) { return getMapData(this, f).has(f) }
|
||
|
||
function mapCacheSet(f, e) { var t = getMapData(this, f),
|
||
r = t.size; return t.set(f, e), this.size += t.size == r ? 0 : 1, this }
|
||
|
||
function MapCache(f) { var e = -1,
|
||
t = null == f ? 0 : f.length; for (this.clear(); ++e < t;) { var r = f[e];
|
||
this.set(r[0], r[1]) } }
|
||
MapCache.prototype.clear = mapCacheClear, MapCache.prototype.delete = mapCacheDelete, MapCache.prototype.get = mapCacheGet, MapCache.prototype.has = mapCacheHas, MapCache.prototype.set = mapCacheSet; var FUNC_ERROR_TEXT = "Expected a function";
|
||
|
||
function memoize(r, i) { if ("function" != typeof r || null != i && "function" != typeof i) throw new TypeError(FUNC_ERROR_TEXT);
|
||
|
||
function o() { var f = arguments,
|
||
e = i ? i.apply(this, f) : f[0],
|
||
t = o.cache; return t.has(e) ? t.get(e) : (f = r.apply(this, f), o.cache = t.set(e, f) || t, f) } return o.cache = new(memoize.Cache || MapCache), o }
|
||
memoize.Cache = MapCache; var MAX_MEMOIZE_SIZE = 500;
|
||
|
||
function memoizeCapped(f) { var e = (f = memoize(f, function(f) { return e.size === MAX_MEMOIZE_SIZE && e.clear(), f })).cache; return f } var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
|
||
reEscapeChar = /\\(\\)?/g,
|
||
stringToPath = memoizeCapped(function(f) { var i = []; return 46 === f.charCodeAt(0) && i.push(""), f.replace(rePropName, function(f, e, t, r) { i.push(t ? r.replace(reEscapeChar, "$1") : e || f) }), i });
|
||
|
||
function toString(f) { return null == f ? "" : baseToString(f) }
|
||
|
||
function castPath(f, e) { return isArray(f) ? f : isKey(f, e) ? [f] : stringToPath(toString(f)) } var INFINITY$2 = 1 / 0;
|
||
|
||
function toKey(f) { var e; return "string" == typeof f || isSymbol(f) ? f : "0" == (e = f + "") && 1 / f == -INFINITY$2 ? "-0" : e }
|
||
|
||
function baseGet(f, e) { for (var t = 0, r = (e = castPath(e, f)).length; null != f && t < r;) f = f[toKey(e[t++])]; return t && t == r ? f : void 0 }
|
||
|
||
function get(f, e, t) { return void 0 === (f = null == f ? void 0 : baseGet(f, e)) ? t : f }
|
||
|
||
function arrayPush(f, e) { for (var t = -1, r = e.length, i = f.length; ++t < r;) f[i + t] = e[t]; return f } var getPrototype = overArg(Object.getPrototypeOf, Object);
|
||
|
||
function stackClear() { this.ng = new ListCache, this.size = 0 }
|
||
|
||
function stackDelete(f) { var e = this.ng,
|
||
f = e.delete(f); return this.size = e.size, f }
|
||
|
||
function stackGet(f) { return this.ng.get(f) }
|
||
|
||
function stackHas(f) { return this.ng.has(f) } var LARGE_ARRAY_SIZE = 200;
|
||
|
||
function stackSet(f, e) { var t = this.ng; if (t instanceof ListCache) { var r = t.ng; if (!Map || r.length < LARGE_ARRAY_SIZE - 1) return r.push([f, e]), this.size = ++t.size, this;
|
||
t = this.ng = new MapCache(r) } return t.set(f, e), this.size = t.size, this }
|
||
|
||
function Stack(f) { f = this.ng = new ListCache(f), this.size = f.size }
|
||
|
||
function baseAssign(f, e) { return f && copyObject(e, keys(e), f) }
|
||
|
||
function baseAssignIn(f, e) { return f && copyObject(e, keysIn(e), f) }
|
||
Stack.prototype.clear = stackClear, Stack.prototype.delete = stackDelete, Stack.prototype.get = stackGet, Stack.prototype.has = stackHas, Stack.prototype.set = stackSet; var freeExports$2 = "object" == typeof exports && exports && !exports.nodeType && exports,
|
||
freeModule$2 = freeExports$2 && "object" == typeof module && module && !module.nodeType && module,
|
||
moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2,
|
||
Buffer$1 = moduleExports$2 ? root.Zb : void 0,
|
||
allocUnsafe = Buffer$1 ? Buffer$1.ig : void 0;
|
||
|
||
function cloneBuffer(f, e) { return e ? f.slice() : (e = f.length, e = allocUnsafe ? allocUnsafe(e) : new f.constructor(e), f.eg(e), e) }
|
||
|
||
function arrayFilter(f, e) { for (var t = -1, r = null == f ? 0 : f.length, i = 0, o = []; ++t < r;) { var n = f[t];
|
||
e(n, t, f) && (o[i++] = n) } return o }
|
||
|
||
function stubArray() { return [] } var objectProto$c = Object.prototype,
|
||
propertyIsEnumerable$1 = objectProto$c.propertyIsEnumerable,
|
||
nativeGetSymbols = Object.getOwnPropertySymbols,
|
||
getSymbols = nativeGetSymbols ? function(e) { return null == e ? [] : (e = Object(e), arrayFilter(nativeGetSymbols(e), function(f) { return propertyIsEnumerable$1.call(e, f) })) } : stubArray;
|
||
|
||
function copySymbols(f, e) { return copyObject(f, getSymbols(f), e) } var nativeGetSymbols$1 = Object.getOwnPropertySymbols,
|
||
getSymbolsIn = nativeGetSymbols$1 ? function(f) { for (var e = []; f;) arrayPush(e, getSymbols(f)), f = getPrototype(f); return e } : stubArray;
|
||
|
||
function copySymbolsIn(f, e) { return copyObject(f, getSymbolsIn(f), e) }
|
||
|
||
function baseGetAllKeys(f, e, t) { return e = e(f), isArray(f) ? e : arrayPush(e, t(f)) }
|
||
|
||
function getAllKeys(f) { return baseGetAllKeys(f, keys, getSymbols) }
|
||
|
||
function getAllKeysIn(f) { return baseGetAllKeys(f, keysIn, getSymbolsIn) } var DataView = getNative(root, "DataView"),
|
||
Promise$1 = getNative(root, "Promise"),
|
||
Set = getNative(root, "Set"),
|
||
mapTag$1 = "[object Map]",
|
||
objectTag$1 = "[object Object]",
|
||
promiseTag = "[object Promise]",
|
||
setTag$1 = "[object Set]",
|
||
weakMapTag$1 = "[object WeakMap]",
|
||
dataViewTag$1 = "[object DataView]",
|
||
dataViewCtorString = toSource(DataView),
|
||
mapCtorString = toSource(Map),
|
||
promiseCtorString = toSource(Promise$1),
|
||
setCtorString = toSource(Set),
|
||
weakMapCtorString = toSource(WeakMap),
|
||
getTag = baseGetTag,
|
||
getTag$1 = ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$1 || Map && getTag(new Map) != mapTag$1 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set) != setTag$1 || WeakMap && getTag(new WeakMap) != weakMapTag$1) && (getTag = function(f) { var e = baseGetTag(f); if (f = (f = e == objectTag$1 ? f.constructor : void 0) ? toSource(f) : "") switch (f) {
|
||
case dataViewCtorString:
|
||
return dataViewTag$1;
|
||
case mapCtorString:
|
||
return mapTag$1;
|
||
case promiseCtorString:
|
||
return promiseTag;
|
||
case setCtorString:
|
||
return setTag$1;
|
||
case weakMapCtorString:
|
||
return weakMapTag$1 }
|
||
return e }), getTag),
|
||
objectProto$d = Object.prototype,
|
||
hasOwnProperty$a = objectProto$d.hasOwnProperty;
|
||
|
||
function initCloneArray(f) { var e = f.length,
|
||
t = new f.constructor(e); return e && "string" == typeof f[0] && hasOwnProperty$a.call(f, "index") && (t.index = f.index, t.input = f.input), t } var Uint8Array$1 = root.Uint8Array;
|
||
|
||
function cloneArrayBuffer(f) { var e = new f.constructor(f.byteLength); return new Uint8Array$1(e).set(new Uint8Array$1(f)), e }
|
||
|
||
function cloneDataView(f, e) { return e = e ? cloneArrayBuffer(f.buffer) : f.buffer, new f.constructor(e, f.byteOffset, f.byteLength) } var reFlags = /\w*$/;
|
||
|
||
function cloneRegExp(f) { var e = new f.constructor(f.source, reFlags.exec(f)); return e.lastIndex = f.lastIndex, e } var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0,
|
||
symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : void 0;
|
||
|
||
function cloneSymbol(f) { return symbolValueOf ? Object(symbolValueOf.call(f)) : {} }
|
||
|
||
function cloneTypedArray(f, e) { return e = e ? cloneArrayBuffer(f.buffer) : f.buffer, new f.constructor(e, f.byteOffset, f.length) } var boolTag$1 = "[object Boolean]",
|
||
dateTag$1 = "[object Date]",
|
||
mapTag$2 = "[object Map]",
|
||
numberTag$1 = "[object Number]",
|
||
regexpTag$1 = "[object RegExp]",
|
||
setTag$2 = "[object Set]",
|
||
stringTag$1 = "[object String]",
|
||
symbolTag$1 = "[object Symbol]",
|
||
arrayBufferTag$1 = "[object ArrayBuffer]",
|
||
dataViewTag$2 = "[object DataView]",
|
||
float32Tag$1 = "[object Float32Array]",
|
||
float64Tag$1 = "[object Float64Array]",
|
||
int8Tag$1 = "[object Int8Array]",
|
||
int16Tag$1 = "[object Int16Array]",
|
||
int32Tag$1 = "[object Int32Array]",
|
||
uint8Tag$1 = "[object Uint8Array]",
|
||
uint8ClampedTag$1 = "[object Uint8ClampedArray]",
|
||
uint16Tag$1 = "[object Uint16Array]",
|
||
uint32Tag$1 = "[object Uint32Array]";
|
||
|
||
function initCloneByTag(f, e, t) { var r = f.constructor; switch (e) {
|
||
case arrayBufferTag$1:
|
||
return cloneArrayBuffer(f);
|
||
case boolTag$1:
|
||
case dateTag$1:
|
||
return new r(+f);
|
||
case dataViewTag$2:
|
||
return cloneDataView(f, t);
|
||
case float32Tag$1:
|
||
case float64Tag$1:
|
||
case int8Tag$1:
|
||
case int16Tag$1:
|
||
case int32Tag$1:
|
||
case uint8Tag$1:
|
||
case uint8ClampedTag$1:
|
||
case uint16Tag$1:
|
||
case uint32Tag$1:
|
||
return cloneTypedArray(f, t);
|
||
case mapTag$2:
|
||
return new r;
|
||
case numberTag$1:
|
||
case stringTag$1:
|
||
return new r(f);
|
||
case regexpTag$1:
|
||
return cloneRegExp(f);
|
||
case setTag$2:
|
||
return new r;
|
||
case symbolTag$1:
|
||
return cloneSymbol(f) } }
|
||
|
||
function initCloneObject(f) { return "function" != typeof f.constructor || isPrototype(f) ? {} : baseCreate(getPrototype(f)) } var mapTag$3 = "[object Map]";
|
||
|
||
function baseIsMap(f) { return isObjectLike(f) && getTag$1(f) == mapTag$3 } var nodeIsMap = nodeUtil && nodeUtil.isMap,
|
||
isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap,
|
||
setTag$3 = "[object Set]";
|
||
|
||
function baseIsSet(f) { return isObjectLike(f) && getTag$1(f) == setTag$3 } var nodeIsSet = nodeUtil && nodeUtil.og,
|
||
isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet,
|
||
CLONE_DEEP_FLAG = 1,
|
||
CLONE_FLAT_FLAG = 2,
|
||
CLONE_SYMBOLS_FLAG = 4,
|
||
argsTag$2 = "[object Arguments]",
|
||
arrayTag$1 = "[object Array]",
|
||
boolTag$2 = "[object Boolean]",
|
||
dateTag$2 = "[object Date]",
|
||
errorTag$1 = "[object Error]",
|
||
funcTag$2 = "[object Function]",
|
||
genTag$1 = "[object GeneratorFunction]",
|
||
mapTag$4 = "[object Map]",
|
||
numberTag$2 = "[object Number]",
|
||
objectTag$2 = "[object Object]",
|
||
regexpTag$2 = "[object RegExp]",
|
||
setTag$4 = "[object Set]",
|
||
stringTag$2 = "[object String]",
|
||
symbolTag$2 = "[object Symbol]",
|
||
weakMapTag$2 = "[object WeakMap]",
|
||
arrayBufferTag$2 = "[object ArrayBuffer]",
|
||
dataViewTag$3 = "[object DataView]",
|
||
float32Tag$2 = "[object Float32Array]",
|
||
float64Tag$2 = "[object Float64Array]",
|
||
int8Tag$2 = "[object Int8Array]",
|
||
int16Tag$2 = "[object Int16Array]",
|
||
int32Tag$2 = "[object Int32Array]",
|
||
uint8Tag$2 = "[object Uint8Array]",
|
||
uint8ClampedTag$2 = "[object Uint8ClampedArray]",
|
||
uint16Tag$2 = "[object Uint16Array]",
|
||
uint32Tag$2 = "[object Uint32Array]",
|
||
cloneableTags = {};
|
||
|
||
function baseClone(t, r, i, f, e, o) { var n, a = r & CLONE_DEEP_FLAG,
|
||
l = r & CLONE_FLAT_FLAG,
|
||
s = r & CLONE_SYMBOLS_FLAG; if (void 0 === (n = i ? e ? i(t, f, e, o) : i(t) : n)) { if (!isObject(t)) return t; if (f = isArray(t)) { if (n = initCloneArray(t), !a) return copyArray(t, n) } else { var d = getTag$1(t),
|
||
c = d == funcTag$2 || d == genTag$1; if (isBuffer(t)) return cloneBuffer(t, a); if (d == objectTag$2 || d == argsTag$2 || c && !e) { if (n = l || c ? {} : initCloneObject(t), !a) return l ? copySymbolsIn(t, baseAssignIn(n, t)) : copySymbols(t, baseAssign(n, t)) } else { if (!cloneableTags[d]) return e ? t : {};
|
||
n = initCloneByTag(t, d, a) } } if (c = (o = o || new Stack).get(t)) return c;
|
||
o.set(t, n), isSet(t) ? t.forEach(function(f) { n.add(baseClone(f, r, i, f, t, o)) }) : isMap(t) && t.forEach(function(f, e) { n.set(e, baseClone(f, r, i, e, t, o)) }); var u = f ? void 0 : (s ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys)(t);
|
||
arrayEach(u || t, function(f, e) { u && (f = t[e = f]), assignValue(n, e, baseClone(f, r, i, e, t, o)) }) } return n }
|
||
cloneableTags[argsTag$2] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$2] = cloneableTags[dataViewTag$3] = cloneableTags[boolTag$2] = cloneableTags[dateTag$2] = cloneableTags[float32Tag$2] = cloneableTags[float64Tag$2] = cloneableTags[int8Tag$2] = cloneableTags[int16Tag$2] = cloneableTags[int32Tag$2] = cloneableTags[mapTag$4] = cloneableTags[numberTag$2] = cloneableTags[objectTag$2] = cloneableTags[regexpTag$2] = cloneableTags[setTag$4] = cloneableTags[stringTag$2] = cloneableTags[symbolTag$2] = cloneableTags[uint8Tag$2] = cloneableTags[uint8ClampedTag$2] = cloneableTags[uint16Tag$2] = cloneableTags[uint32Tag$2] = !0, cloneableTags[errorTag$1] = cloneableTags[funcTag$2] = cloneableTags[weakMapTag$2] = !1; var CLONE_SYMBOLS_FLAG$1 = 4;
|
||
|
||
function clone(f) { return baseClone(f, CLONE_SYMBOLS_FLAG$1) } var CLONE_DEEP_FLAG$1 = 1,
|
||
CLONE_SYMBOLS_FLAG$2 = 4;
|
||
|
||
function cloneDeep(f) { return baseClone(f, CLONE_DEEP_FLAG$1 | CLONE_SYMBOLS_FLAG$2) } var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
||
|
||
function setCacheAdd(f) { return this.ng.set(f, HASH_UNDEFINED$2), this }
|
||
|
||
function setCacheHas(f) { return this.ng.has(f) }
|
||
|
||
function SetCache(f) { var e = -1,
|
||
t = null == f ? 0 : f.length; for (this.ng = new MapCache; ++e < t;) this.add(f[e]) }
|
||
|
||
function arraySome(f, e) { for (var t = -1, r = null == f ? 0 : f.length; ++t < r;)
|
||
if (e(f[t], t, f)) return !0;
|
||
return !1 }
|
||
|
||
function cacheHas(f, e) { return f.has(e) }
|
||
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd, SetCache.prototype.has = setCacheHas; var COMPARE_PARTIAL_FLAG = 1,
|
||
COMPARE_UNORDERED_FLAG = 2;
|
||
|
||
function equalArrays(f, e, t, r, i, o) { var n = t & COMPARE_PARTIAL_FLAG,
|
||
a = f.length; if (a != (l = e.length) && !(n && a < l)) return !1; var l = o.get(f),
|
||
s = o.get(e); if (l && s) return l == e && s == f; var d = -1,
|
||
c = !0,
|
||
u = t & COMPARE_UNORDERED_FLAG ? new SetCache : void 0; for (o.set(f, e), o.set(e, f); ++d < a;) { var y, b = f[d],
|
||
p = e[d]; if (void 0 !== (y = r ? n ? r(p, b, d, e, f, o) : r(b, p, d, f, e, o) : y)) { if (y) continue;
|
||
c = !1; break } if (u) { if (!arraySome(e, function(f, e) { if (!cacheHas(u, e) && (b === f || i(b, f, t, r, o))) return u.push(e) })) { c = !1; break } } else if (b !== p && !i(b, p, t, r, o)) { c = !1; break } } return o.delete(f), o.delete(e), c }
|
||
|
||
function mapToArray(f) { var t = -1,
|
||
r = Array(f.size); return f.forEach(function(f, e) { r[++t] = [e, f] }), r }
|
||
|
||
function setToArray(f) { var e = -1,
|
||
t = Array(f.size); return f.forEach(function(f) { t[++e] = f }), t } var COMPARE_PARTIAL_FLAG$1 = 1,
|
||
COMPARE_UNORDERED_FLAG$1 = 2,
|
||
boolTag$3 = "[object Boolean]",
|
||
dateTag$3 = "[object Date]",
|
||
errorTag$2 = "[object Error]",
|
||
mapTag$5 = "[object Map]",
|
||
numberTag$3 = "[object Number]",
|
||
regexpTag$3 = "[object RegExp]",
|
||
setTag$5 = "[object Set]",
|
||
stringTag$3 = "[object String]",
|
||
symbolTag$3 = "[object Symbol]",
|
||
arrayBufferTag$3 = "[object ArrayBuffer]",
|
||
dataViewTag$4 = "[object DataView]",
|
||
symbolProto$2 = Symbol$1 ? Symbol$1.prototype : void 0,
|
||
symbolValueOf$1 = symbolProto$2 ? symbolProto$2.valueOf : void 0;
|
||
|
||
function equalByTag(f, e, t, r, i, o, n) { switch (t) {
|
||
case dataViewTag$4:
|
||
if (f.byteLength != e.byteLength || f.byteOffset != e.byteOffset) return !1;
|
||
f = f.buffer, e = e.buffer;
|
||
case arrayBufferTag$3:
|
||
return !(f.byteLength != e.byteLength || !o(new Uint8Array$1(f), new Uint8Array$1(e)));
|
||
case boolTag$3:
|
||
case dateTag$3:
|
||
case numberTag$3:
|
||
return eq(+f, +e);
|
||
case errorTag$2:
|
||
return f.name == e.name && f.message == e.message;
|
||
case regexpTag$3:
|
||
case stringTag$3:
|
||
return f == e + "";
|
||
case mapTag$5:
|
||
var a = mapToArray;
|
||
case setTag$5:
|
||
var l, a = a || setToArray; return f.size == e.size || r & COMPARE_PARTIAL_FLAG$1 ? (l = n.get(f)) ? l == e : (r |= COMPARE_UNORDERED_FLAG$1, n.set(f, e), l = equalArrays(a(f), a(e), r, i, o, n), n.delete(f), l) : !1;
|
||
case symbolTag$3:
|
||
if (symbolValueOf$1) return symbolValueOf$1.call(f) == symbolValueOf$1.call(e) } return !1 } var COMPARE_PARTIAL_FLAG$2 = 1,
|
||
objectProto$e = Object.prototype,
|
||
hasOwnProperty$b = objectProto$e.hasOwnProperty;
|
||
|
||
function equalObjects(f, e, t, r, i, o) { var n = t & COMPARE_PARTIAL_FLAG$2,
|
||
a = getAllKeys(f),
|
||
l = a.length; if (l != getAllKeys(e).length && !n) return !1; for (var s = l; s--;) { var d = a[s]; if (!(n ? d in e : hasOwnProperty$b.call(e, d))) return !1 } var c = o.get(f),
|
||
u = o.get(e); if (c && u) return c == e && u == f; for (var y = !0, b = (o.set(f, e), o.set(e, f), n); ++s < l;) { var p, h = f[d = a[s]],
|
||
S = e[d]; if (!(void 0 === (p = r ? n ? r(S, h, d, e, f, o) : r(h, S, d, f, e, o) : p) ? h === S || i(h, S, t, r, o) : p)) { y = !1; break }
|
||
b = b || "constructor" == d } return y && !b && (c = f.constructor) != (u = e.constructor) && "constructor" in f && "constructor" in e && !("function" == typeof c && c instanceof c && "function" == typeof u && u instanceof u) && (y = !1), o.delete(f), o.delete(e), y } var COMPARE_PARTIAL_FLAG$3 = 1,
|
||
argsTag$3 = "[object Arguments]",
|
||
arrayTag$2 = "[object Array]",
|
||
objectTag$3 = "[object Object]",
|
||
objectProto$f = Object.prototype,
|
||
hasOwnProperty$c = objectProto$f.hasOwnProperty;
|
||
|
||
function baseIsEqualDeep(f, e, t, r, i, o) { var n = isArray(f),
|
||
a = isArray(e),
|
||
l = n ? arrayTag$2 : getTag$1(f),
|
||
a = a ? arrayTag$2 : getTag$1(e),
|
||
s = (l = l == argsTag$3 ? objectTag$3 : l) == objectTag$3,
|
||
d = (a = a == argsTag$3 ? objectTag$3 : a) == objectTag$3; if ((a = l == a) && isBuffer(f)) { if (!isBuffer(e)) return !1;
|
||
s = !(n = !0) } return a && !s ? (o = o || new Stack, n || isTypedArray(f) ? equalArrays(f, e, t, r, i, o) : equalByTag(f, e, l, t, r, i, o)) : t & COMPARE_PARTIAL_FLAG$3 || (n = s && hasOwnProperty$c.call(f, "__wrapped__"), l = d && hasOwnProperty$c.call(e, "__wrapped__"), !n && !l) ? a && equalObjects(f, e, t, r, i, o = o || new Stack) : i(n ? f.value() : f, l ? e.value() : e, t, r, o = o || new Stack) }
|
||
|
||
function baseIsEqual(f, e, t, r, i) { return f === e || (null == f || null == e || !isObjectLike(f) && !isObjectLike(e) ? f != f && e != e : baseIsEqualDeep(f, e, t, r, baseIsEqual, i)) } var COMPARE_PARTIAL_FLAG$4 = 1,
|
||
COMPARE_UNORDERED_FLAG$2 = 2;
|
||
|
||
function baseIsMatch(f, e, t, r) { var i = t.length,
|
||
o = i,
|
||
n = !r; if (null == f) return !o; for (f = Object(f); i--;) { var a = t[i]; if (n && a[2] ? a[1] !== f[a[0]] : !(a[0] in f)) return !1 } for (; ++i < o;) { var l = (a = t[i])[0],
|
||
s = f[l],
|
||
d = a[1]; if (n && a[2]) { if (void 0 === s && !(l in f)) return !1 } else { var c, u = new Stack; if (!(void 0 === (c = r ? r(s, d, l, f, e, u) : c) ? baseIsEqual(d, s, COMPARE_PARTIAL_FLAG$4 | COMPARE_UNORDERED_FLAG$2, r, u) : c)) return !1 } } return !0 }
|
||
|
||
function isStrictComparable(f) { return f == f && !isObject(f) }
|
||
|
||
function getMatchData(f) { for (var e = keys(f), t = e.length; t--;) { var r = e[t],
|
||
i = f[r];
|
||
e[t] = [r, i, isStrictComparable(i)] } return e }
|
||
|
||
function matchesStrictComparable(e, t) { return function(f) { return null != f && f[e] === t && (void 0 !== t || e in Object(f)) } }
|
||
|
||
function baseMatches(e) { var t = getMatchData(e); return 1 == t.length && t[0][2] ? matchesStrictComparable(t[0][0], t[0][1]) : function(f) { return f === e || baseIsMatch(f, e, t) } }
|
||
|
||
function baseHasIn(f, e) { return null != f && e in Object(f) }
|
||
|
||
function hasPath(f, e, t) { for (var r = -1, i = (e = castPath(e, f)).length, o = !1; ++r < i;) { var n = toKey(e[r]); if (!(o = null != f && t(f, n))) break;
|
||
f = f[n] } return o || ++r != i ? o : !!(i = null == f ? 0 : f.length) && isLength(i) && isIndex(n, i) && (isArray(f) || isArguments(f)) }
|
||
|
||
function hasIn(f, e) { return null != f && hasPath(f, e, baseHasIn) } var COMPARE_PARTIAL_FLAG$5 = 1,
|
||
COMPARE_UNORDERED_FLAG$3 = 2;
|
||
|
||
function baseMatchesProperty(t, r) { return isKey(t) && isStrictComparable(r) ? matchesStrictComparable(toKey(t), r) : function(f) { var e = get(f, t); return void 0 === e && e === r ? hasIn(f, t) : baseIsEqual(r, e, COMPARE_PARTIAL_FLAG$5 | COMPARE_UNORDERED_FLAG$3) } }
|
||
|
||
function baseProperty(e) { return function(f) { return null == f ? void 0 : f[e] } }
|
||
|
||
function basePropertyDeep(e) { return function(f) { return baseGet(f, e) } }
|
||
|
||
function property(f) { return isKey(f) ? baseProperty(toKey(f)) : basePropertyDeep(f) }
|
||
|
||
function baseIteratee(f) { return "function" == typeof f ? f : null == f ? identity : "object" == typeof f ? isArray(f) ? baseMatchesProperty(f[0], f[1]) : baseMatches(f) : property(f) }
|
||
|
||
function createBaseFor(l) { return function(f, e, t) { for (var r = -1, i = Object(f), o = t(f), n = o.length; n--;) { var a = o[l ? n : ++r]; if (!1 === e(i[a], a, i)) break } return f } } var baseFor = createBaseFor();
|
||
|
||
function baseForOwn(f, e) { return f && baseFor(f, e, keys) }
|
||
|
||
function createBaseEach(o, n) { return function(f, e) { if (null != f) { if (!isArrayLike(f)) return o(f, e); for (var t = f.length, r = n ? t : -1, i = Object(f);
|
||
(n ? r-- : ++r < t) && !1 !== e(i[r], r, i);); } return f } } var baseEach = createBaseEach(baseForOwn);
|
||
|
||
function castFunction(f) { return "function" == typeof f ? f : identity }
|
||
|
||
function forEach(f, e) { return (isArray(f) ? arrayEach : baseEach)(f, castFunction(e)) }
|
||
|
||
function arrayEvery(f, e) { for (var t = -1, r = null == f ? 0 : f.length; ++t < r;)
|
||
if (!e(f[t], t, f)) return !1;
|
||
return !0 }
|
||
|
||
function baseEvery(f, r) { var i = !0; return baseEach(f, function(f, e, t) { return i = !!r(f, e, t) }), i }
|
||
|
||
function every(f, e, t) { return (isArray(f) ? arrayEvery : baseEvery)(f, baseIteratee(e = t && isIterateeCall(f, e, t) ? void 0 : e)) }
|
||
|
||
function baseFilter(f, r) { var i = []; return baseEach(f, function(f, e, t) { r(f, e, t) && i.push(f) }), i }
|
||
|
||
function filter(f, e) { return (isArray(f) ? arrayFilter : baseFilter)(f, baseIteratee(e)) }
|
||
|
||
function createFind(o) { return function(f, e, t) { var r, i = Object(f); return isArrayLike(f) || (r = baseIteratee(e), f = keys(f), e = function(f) { return r(i[f], f, i) }), -1 < (e = o(f, e, t)) ? i[r ? f[e] : e] : void 0 } } var nativeMax$1 = Math.max;
|
||
|
||
function findIndex(f, e, t) { var r = null == f ? 0 : f.length; return r ? ((t = null == t ? 0 : toInteger(t)) < 0 && (t = nativeMax$1(r + t, 0)), baseFindIndex(f, baseIteratee(e), t)) : -1 } var find = createFind(findIndex);
|
||
|
||
function baseMap(f, r) { var i = -1,
|
||
o = isArrayLike(f) ? Array(f.length) : []; return baseEach(f, function(f, e, t) { o[++i] = r(f, e, t) }), o }
|
||
|
||
function map(f, e) { return (isArray(f) ? arrayMap : baseMap)(f, baseIteratee(e)) }
|
||
|
||
function forIn(f, e) { return null == f ? f : baseFor(f, castFunction(e), keysIn) } var mapTag$6 = "[object Map]",
|
||
setTag$6 = "[object Set]",
|
||
objectProto$g = Object.prototype,
|
||
hasOwnProperty$d = objectProto$g.hasOwnProperty;
|
||
|
||
function isEmpty(f) { if (null != f) { if (isArrayLike(f) && (isArray(f) || "string" == typeof f || "function" == typeof f.splice || isBuffer(f) || isTypedArray(f) || isArguments(f))) return !f.length; var e, t = getTag$1(f); if (t == mapTag$6 || t == setTag$6) return !f.size; if (isPrototype(f)) return !baseKeys(f).length; for (e in f)
|
||
if (hasOwnProperty$d.call(f, e)) return !1 } return !0 }
|
||
|
||
function isEqual(f, e) { return baseIsEqual(f, e) }
|
||
|
||
function isUndefined(f) { return void 0 === f }
|
||
|
||
function baseSome(f, r) { var i; return baseEach(f, function(f, e, t) { return !(i = r(f, e, t)) }), !!i }
|
||
|
||
function some(f, e, t) { return (isArray(f) ? arraySome : baseSome)(f, baseIteratee(e = t && isIterateeCall(f, e, t) ? void 0 : e)) } var projections = {},
|
||
Projection = function() {
|
||
function f(f, e, t, r) { this.project = e, this.unproject = t, this.getResolution = r, projections[f] = this } return f.prototype.moveWithPixel = function(f, e, t) { var t = this.getResolution(t),
|
||
r = e[0] * t,
|
||
e = e[1] * t,
|
||
t = this.project(f[0], f[1]); return this.unproject(t[0] + r, t[1] + e) }, f.prototype.moveWithPos = function(f, e) { return f = [(f = this.project(f[0], f[1]))[0] + e[0], f[1] + e[1]], this.unproject(f[0], f[1]) }, f }(),
|
||
ProjectionManager = { getProjection: function(f) { return projections[f] } },
|
||
LngLat = new Projection("EPSG:4326", function(f, e) { return [f, e] }, function(f, e) { return [f, e] }, function(f) { return .703125 / Math.pow(2, f) }),
|
||
SphericalMercator = function() { var r = Math.PI / 180,
|
||
t = 180 / Math.PI,
|
||
i = 6378137; return new Projection("EPSG:3857", function(f, e) { var t = 85.0511287798,
|
||
t = (e = Math.max(Math.min(t, e), -t), f * r),
|
||
f = e * r,
|
||
f = Math.log(Math.tan(Math.PI / 4 + f / 2)); return [t * i, f * i] }, function(f, e) { return [f / i * t, (2 * Math.atan(Math.exp(e / i)) - Math.PI / 2) * t] }, function(f) { return 156543.03392804097 / Math.pow(2, f) }) }(),
|
||
LCS = function() {
|
||
function f() { this.hg = [-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244], this.cg = 128, this.vg = 128, this.lg = (this.hg[2] - this.hg[0]) / this.cg, this.dg = (this.hg[3] - this.hg[1]) / this.vg } return f.prototype.setMap = function(f) { this.map = f }, f.prototype.getSize = function() { return [this.lg, this.dg] }, f.prototype.getNum = function() { return [this.cg, this.vg] }, f.prototype.getLocalByLnglat = function(f) { var e = (e = ProjectionManager.getProjection("EPSG:3857")).project.apply(e, f); return this.getLocalByCoord(e) }, f.prototype.getLocalByCoord = function(f) { var e = Math.floor(f[0] / this.lg),
|
||
t = Math.floor(f[1] / this.dg),
|
||
r = this.getLocalCenterByXY(e, t); return { Sa: [f[0] - r.center[0], f[1] - r.center[1]], x: e, y: t, center: r.center, Ro: r.Ro } }, f.prototype.getLocalCenterByXY = function(f, e) { var t = { x: f, y: e, center: [0, 0], Ro: [0, 0, 0, 0] }; return t.center = [(f + .5) * this.lg, (e + .5) * this.dg], t.Ro = [f * this.lg, e * this.dg, (f + 1) * this.lg, (e + 1) * this.dg], t }, f.prototype.getDeltaCoord = function(f) { var e = this.getLocalByCoord(f); return [f[0] - e.center[0], f[1] - e.center[1]] }, f }(),
|
||
lcs = new LCS,
|
||
E4326 = ProjectionManager.getProjection("EPSG:4326"),
|
||
E3857 = ProjectionManager.getProjection("EPSG:3857"),
|
||
HALF_WORLD_SIZE = 20037508.342789244,
|
||
LngLat$1 = { Ro: [-180, -90, 180, 90], project: function(f, e, t) { return f = E4326.project(f, e), this.transform(f[0], f[1], t) }, unproject: function(f, e, t) { return f = this.Xs(f, e, t), E4326.unproject(f[0], f[1]) }, transform: function(f, e, t) { var t = void 0 === t ? 180 : 256 << t,
|
||
i = this.Ro[2] - this.Ro[0],
|
||
o = this.Ro[3] - this.Ro[1]; return [f = (f - this.Ro[0]) / i * (2 * t), e = t - (e - this.Ro[1]) / o * t] }, Xs: function(f, e, t) { return [f = 360 * (f / (2 * (t = void 0 === t ? 180 : 256 << t)) - .5), e = 180 * -(e / t - .5)] }, nt: function(f, e, t) { return this.Xs(f, e, t) }, wu: function(f, e, t) { return this.Xs(f, e, t) }, yo: function(f, e, t) { var r = 0 < f / this.Ro[3] ? Math.abs(Math.floor(f / this.Ro[3])) : Math.abs(Math.ceil(f / this.Ro[3])),
|
||
i = 0 < e / this.Ro[3] ? Math.abs(Math.floor(e / this.Ro[3])) : Math.abs(Math.ceil(e / this.Ro[3])),
|
||
o = f % this.Ro[3],
|
||
n = e % this.Ro[3],
|
||
o = this.transform(o, n, t),
|
||
n = (f = this.wu(f, f, t)[0] * r + o[0], e = this.wu(e, e, t)[1] * i + o[1], this.transform(0, 0, t)); return [f - n[0], e - n[1]] }, Bb: function(f, e, t) { return t.X(f, e) }, qb: function(f, e, t) { return t.H(f, e) }, Gd: function(f, e, t, r) { var i = r.X(f[0], f[1]); return [(r = r.X(f[0] + e, f[1] + t))[0] - i[0], r[1] - i[1]] } },
|
||
SphericalMercator$1 = { Ro: [-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244], project: function(f, e, t) { return f = E3857.project(f, e), this.transform(f[0], f[1], t) }, unproject: function(f, e, t) { return f = this.Xs(f, e, t), E3857.unproject(f[0], f[1]) }, transform: function(f, e, t) { f = Math.min(20037508.342789244, Math.max(f, -20037508.342789244)), e = Math.min(20037508.342789244, Math.max(e, -20037508.342789244)), t = void 0 === t ? 40075016.68557849 : 256 * Math.pow(2, t); var r = this.Ro[2] - this.Ro[0],
|
||
i = this.Ro[3] - this.Ro[1]; return [f = (f - this.Ro[0]) / r * t, e = t - (e - this.Ro[1]) / i * t] }, Xs: function(f, e, t) { return [f = (f / (t = void 0 === t ? 40075016.68557849 : 256 * Math.pow(2, t)) - .5) * this.Ro[2] * 2, e = -(e / t - .5) * this.Ro[2] * 2] }, nt: function(f, e, t, r) { return [f = this.Xs(f, e, t)[0] - this.Ro[0], e = this.Ro[2] - this.Xs(f, e, t)[1]] }, wu: function(f, e, t, r) { var i = r.center,
|
||
o = r.size,
|
||
r = (r.rotation || 0) / 180 * Math.PI,
|
||
e = (f = this.transform(f, e, t))[0],
|
||
f = f[1],
|
||
t = e - (i = this.transform(i[0], i[1], t))[0],
|
||
e = f - i[1],
|
||
f = Math.sqrt(Math.pow(t, 2) + Math.pow(e, 2)),
|
||
i = 0 == e ? Math.PI / 2 : Math.atan(Math.abs(t / e)),
|
||
i = t * e <= 0 ? i + r : i - r,
|
||
r = 0 < e ? 1 : -1; return [o[0] / 2 + f * Math.sin(0 < t ? i : -i), o[1] / 2 + f * Math.cos(i) * r] }, yo: function(f, e, t, r) { var i = 0 < f / this.Ro[3] ? Math.abs(Math.floor(f / this.Ro[3])) : Math.abs(Math.ceil(f / this.Ro[3])),
|
||
o = 0 < e / this.Ro[3] ? Math.abs(Math.floor(e / this.Ro[3])) : Math.abs(Math.ceil(e / this.Ro[3])),
|
||
n = f % this.Ro[3],
|
||
a = e % this.Ro[3],
|
||
n = this.transform(n, a, t),
|
||
t = (a = this.transform(0, 0, t))[0],
|
||
a = a[1]; return [(f = t * i + n[0]) - t, (e = a * o + n[1]) - a] }, Bb: function(f, e, t) { return t.X(f, e) }, qb: function(f, e, t) { return t.H(f, e) }, Gd: function(f, e, t, r) { var i = r.X(f[0], f[1]); return [(r = r.X(f[0] + e, f[1] + t))[0] - i[0], r[1] - i[1]] } },
|
||
transform = { "EPSG:4326": LngLat$1, "EPSG:3857": SphericalMercator$1 },
|
||
LocalZoom = 13,
|
||
LocalTileZoom = 12,
|
||
AMapStyleSource = "",
|
||
zoomRange = [2, 26],
|
||
CONSTS = { ID: "__id__", Rp: zoomRange[1], Mp: zoomRange[0], jp: .8, Pp: .2, YM: 5, KM: { dom: "div", id: "_amap_custom_labellayer_div_", className: "amap-layer", style: { cssText: "position:absolute;top:0;left:0;", zIndex: "", width: "", height: "", visible: "" } }, Dp: { Op: 180, Ad: 70, Td: 360, t1: 300, e1: 30, Bd: Math.PI / 10 }, XM: { top: 3, right: 3, bottom: 3, left: 3 }, JM: { ZM: "top", QM: "right", tj: "bottom", LEFT: "left", nj: "middle", ij: "center", ej: "alphabetic" }, oj: { CLICK: "click", MOUSEOVER: "mouseover", MOUSEOUT: "mouseout", MOUSEMOVE: "mousemove", MOUSEDOWN: "mousedown", MOUSEUP: "mouseup", aj: "touchstart", uj: "touchend" }, sj: { rank: 1, angle: 0, opacity: 1, offset: [0, 0], zooms: zoomRange, icon: { type: "image", image: "://visuallocal.amap.com/public/poi-marker.png", clipOrigin: [0, 0], clipSize: [36, 36], size: [36, 36], anchor: "bottom-center", angel: 0, retina: !0, zooms: zoomRange }, text: { type: "billboard", direction: "top", offset: [0, 0], zooms: zoomRange, style: { fj: 6, fontFamily: "sans-serif", fontSize: 12, fontWeight: "normal", fillColor: [0, 0, 0, 1], strokeWidth: 0, strokeColor: [.988, .988, .988, 1], borderColor: "transparent", padding: [3, 3, 3, 3], backgroundColor: "" } } }, hj: { cj: { opacity: .2 }, vj: "fadeIn", lj: "fadeOut", dj: { bj: "start", RUNNING: "running", pj: "complete" }, yj: { mj: "opacity", gj: "size" } }, _d: 3, wj: "_AMap_sdf_com_words", Mj: 128, pc: ["://sdf.amap.com", "://sdf01.amap.com", "://sdf02.amap.com", "://sdf03.amap.com", "://sdf04.amap.com"], sp: 4, Cd: .78125, Ld: 205 / 256, Aj: { kj: "纹理加载失败,请重试", Oj: "资源加载失败,请重试" }, xj: "bufferChanged", Ij: "frameBufferChanged", Tj: "combineFrameBufferChanged", ic: 1, ud: 13, Cj: 12, Ej: "__icon_combination", Nj: "__text_combination", Lj: { file: { 0: "://c-webapi.amap.com/style_icon/2.0/icon-normal-big.png", 1: "://c-webapi.amap.com/style_icon/2.0/icon-biz-big.png" }, size: [40, 40], Rj: 10 }, Kp: { buffer: 3, family: "ios9", size: 24 }, _n: { Uj: [0, 0, 0, 1], Gp: [0, 0, 0, 0] }, gH: "sdf", RB: "sdfJson", FN: "version" },
|
||
DangerousFontSize = (function(f) { f.nebula = "nebula", f.nebulaLabel = "nebulaLabel" }(exports.n0 || (exports.n0 = {})), 24),
|
||
EnumLabelFragType = (function(f) { f[f.dynamic = 0] = "dynamic", f[f.icon = 1] = "icon" }(exports.cY || (exports.cY = {})), { icon: 0, bg: 6, tq: 8, text: 2 }),
|
||
defaultCap = ["butt", "butt"],
|
||
tmp1 = (function(f) { f.BLOB = "blob", f.TOLOAD = "toload", f.LOADING = "loading", f.LOADED = "loaded", f.UNLOADED = "unloaded", f.ERROR = "error", f.RELOADING = "reloading", f.UNCOMBINED = "uncombined", f.COMBINING = "combining", f.COMBINED = "combined" }(exports.uc || (exports.uc = {})), 4294901760),
|
||
tmp2 = 65535;
|
||
|
||
function getUploadName(f, e) { return ((f = tmp1 - (f << 16)) + (e = tmp2 - e)).toString(16) }
|
||
|
||
function staticSDFTileKeyToKey(f) { var e = (f = map(f.split(","), function(f) { return parseInt(f, 10) }))[1],
|
||
t = f[2]; return f[0] < 10 ? "lesszoom10" : (10 !== f[0] && (12 === f[0] ? (e = Math.floor(e / 4), t = Math.floor(t / 4)) : 14 === f[0] ? (e = Math.floor(e / 16), t = Math.floor(t / 16)) : 15 === f[0] && (e = Math.floor(e / 32), t = Math.floor(t / 32))), getUploadName(e, t)) } var labelsUtil = { Bj: function(f) { var e, t = {}; for (e in f = void 0 === f ? {} : f) f.hasOwnProperty(e) && (t[e] = 1); return t }, zj: function(f, e) { f.gs = e, f.qj = e.options || {}, f.Wj = e.Wj || {}, f.Fs = e.Fs || {}, f.Gj = e.Gj || {}, f.Hj = e.Hj || {}, f.Vj = e.Vj || {}, f.$j = e.$j || 0 }, Yj: function(f, e) { void 0 === f && (f = [NaN, NaN, NaN, NaN]), void 0 === e && (e = [0, 0, 0, 1]); for (var t = 0; t < f.length; t++) { var r = f[t];
|
||
isNaN(r) && (f[t] = e[t]) } return f }, Kj: function(f) { return [((16711680 & f) >> 16) / 255, ((65280 & f) >> 8) / 255, (255 & f) / 255, 1] }, Xj: function(f, e) { for (var t = [], r = (e = void 0 === e ? {} : e).qw, i = e.Aw, o = e.complete, n = 0, a = f; n < a.length; n++) { var l = a[n],
|
||
l = new Promise(l);
|
||
t.push(l) } var s = 0;
|
||
Promise.all(t).then(function() { r && r.apply(void 0, arguments), o && !s && (s = 1, o.apply(void 0, arguments)) }).catch(function() { i && i.apply(void 0, arguments), o && !s && (s = 1, o.apply(void 0, arguments)) }) }, Jj: function(f, e) { var t = f[0],
|
||
r = void 0 === (r = f[1]) ? 0 : r,
|
||
i = e[0],
|
||
o = void 0 === (o = e[1]) ? 0 : o; return (void 0 === t ? 0 : t) <= (i = void 0 === i ? 0 : i) ? i <= r ? o < r ? [i, o] : [i, r] : null : labelsUtil.Jj(e, f) }, measureText: function(f, e, t, r) { if (void 0 === e && (e = ""), "3D" === (r = void 0 === r ? "3D" : r)) return f.measureText(e, t) }, lnglatToContainer: function(f, e) { return (void 0 === (e = e.zoom) ? 20 : e) < LocalZoom ? f : (e = lcs.getLocalByCoord(f), vector.Ip(f, e.center)) }, Sd: function(f, e) { var t = f[0],
|
||
f = void 0 === (f = f[1]) ? 0 : f,
|
||
r = e[0],
|
||
e = void 0 === (e = e[1]) ? 0 : e,
|
||
r = Math.abs((void 0 === r ? 0 : r) - (void 0 === t ? 0 : t)),
|
||
t = Math.abs(e - f); return Math.sqrt(Math.pow(r, 2) + Math.pow(t, 2)) }, getAngle: function(f, e) { var t = f[0],
|
||
f = f[1],
|
||
r = (void 0 === (r = e[0]) ? 0 : r) - (void 0 === t ? 0 : t),
|
||
t = (void 0 === (e = e[1]) ? 0 : e) - (void 0 === f ? 0 : f); return 0 == r ? t < 0 ? 3 * Math.PI / 2 : Math.PI / 2 : 0 === (e = Math.atan(t / r)) || 0 < e ? 0 <= r ? e : e + Math.PI : 0 < r ? 2 * Math.PI + e : Math.PI + e }, Fd: function(f, e, t) { for (var r = f[0], i = void 0 === r ? 0 : r, o = void 0 === (r = f[1]) ? 0 : r, n = (void 0 === (f = e[0]) ? 0 : f) - i, a = (void 0 === (r = e[1]) ? 0 : r) - o, l = [], s = 0; s < t;) l.push([i + n / (t + 1) * (s + 1), o + a / (t + 1) * (s + 1)]), s++; return l }, OG: function(f, e, t) { return 0 !== t ? [f[0] + (e[0] - f[0]) * t, f[1] + (e[1] - f[1]) * t] : f }, Ed: function(f, e) { void 0 === e && (e = "ch"); var t, r, i, o = (f = void 0 === f ? [] : f).length; return !!o && (t = f[0], f = f[4 <= o ? Math.floor(o / 4 * 3) : o - 1], o = t[0], t = t[1], i = [(r = f[0]) - o, (f = f[1]) - t], ("ch" === e && 1 < Math.abs((f - t) / (r - o)) ? vector.Zj(i, [0, 1]) : vector.Zj(i, [1, 0])) < 0) }, Nd: function(f, e, t) { var r, i = f[0],
|
||
f = f[1],
|
||
o = e[0],
|
||
n = ((e = e[1]) - f) / (o - i),
|
||
o = [o - i, e - f]; return 1 < Math.abs(n) && "x" !== t ? (r = 0 < vector.Zj(o, [0, -1]) ? vector.Qj(o, [0, -1]) : vector.Qj(o, [0, 1]), 0 < n && (r = -r)) : (r = 0 < vector.Zj(o, [1, 0]) ? vector.Qj(o, [1, 0]) : vector.Qj(o, [-1, 0]), n < 0 && (r = -r)), r }, Od: function(f, e, t) { var r = t * Math.sin(e),
|
||
t = t * Math.cos(e); return [f[0] + t, f[1] + r] }, jd: function(f, e, t, r) { var f = vector.Ip(f, e),
|
||
i = vector.length(f),
|
||
t = vector.Ip(t, e),
|
||
o = vector.length(t),
|
||
f = vector.Zj(f, t),
|
||
f = Math.acos(f / (i * o)),
|
||
o = Math.PI - f,
|
||
f = i * Math.sin(o),
|
||
i = i * Math.cos(o),
|
||
o = Math.sqrt(Math.pow(r, 2) - Math.pow(f, 2)) - i,
|
||
r = 0 === t[0] ? 0 < t[1] ? Math.PI / 2 : -Math.PI / 2 : Math.atan(t[1] / t[0]),
|
||
f = Math.abs(o * Math.sin(r)),
|
||
i = o * Math.cos(r),
|
||
o = vector.Zj(t, [1, 0]),
|
||
r = vector.Zj(t, [0, 1]); return vector.add(e, [0 <= o ? i : -i, 0 <= r ? f : -f]) }, rank: function(f) { for (var e = [], t = 0; t < f.length; t++) { var r = parseFloat(f[t]);
|
||
r < 0 ? (f.splice(t--, 1), e.push(r)) : f[t] = r } return f.sort(function(f, e) { return f - e }), e.concat(f) }, $p: function(f) { var e = CONSTS.Mp,
|
||
t = CONSTS.Rp; return f[1] >= zoomRange[1] && (f[1] = t), f[0] <= zoomRange[0] && (f[0] = e), f }, toString: function(f, e) { void 0 === e && (e = 4); var t = ""; if (f)
|
||
for (var r = 0, i = f; r < i.length; r++) { var o = i[r];
|
||
t += (o + "").length < e ? o : o.toFixed(e) }
|
||
return t }, xf: function(f, e) { var t, r, i, o = [],
|
||
n = e.ja,
|
||
a = e.Fa,
|
||
l = e.Oa,
|
||
s = e.Ea; for (t in f) f.hasOwnProperty(t) && t !== CONSTS.gH && t !== CONSTS.FN && t !== CONSTS.RB && ("shields" === t || !n || (i = t.split("-"), r = parseInt(i[1], 10), i = parseInt(i[2], 10), n <= r && r <= l && a <= i && i <= s)) && o.push(f[t]); return o.length ? o : f }, EQ: function(f, e) { for (var t = [], r = e.length, i = 0; i < r - 1; i++) { var o = f.substring(e[i], e[i + 1]);
|
||
t.push(o) } return r ? t : Array.from(f) }, aQ: function(f) { for (var e = [], t = 0; t < f.length; t++) { for (var r = f[t], i = [], o = 0; o < r.length; o++) { var n = r.charCodeAt(o);
|
||
i.push(n) } var a = i.join("|");
|
||
e.push(a) } return e }, tQ: function(f, e, t) { var r = "",
|
||
i = [],
|
||
o = ""; if (f.name) { if (f.JQ && 0 < f.JQ.length) r = getSpiltLineWithSpiltIndex(f.name, f.JQ);
|
||
else if (t) { var n = t.lineBreak(f.name, { from: "labelsLayer", CO: [] }),
|
||
a = 0,
|
||
l = ""; if (2 <= n.oQ.length) { for (var s = 1, d = n.oQ.length - 1; s < d; s++) l += f.name.slice(a, n.oQ[s]) + " ", a = n.oQ[s];
|
||
l += f.name.slice(a) } else l = f.name;
|
||
r = l } else r = f.name;
|
||
o = "ch" } else { switch (e) {
|
||
case "en":
|
||
r = f.name_en, i = f.iQ, o = "en"; break;
|
||
case "local":
|
||
r = f.QQ, i = f.$G, o = f.CQ; break;
|
||
default:
|
||
r = f.BQ, o = "ch" }
|
||
r || (f.name_en ? (r = f.name_en, i = f.iQ, o = "en") : f.QQ && (r = f.QQ, i = f.$G, o = f.QQ)) } return { name: r, $G: i, type: o } } },
|
||
vector = { add: function(f, e) { for (var t = [], r = 0; r < f.length; r++) t[r] = f[r] + e[r]; return t }, Ip: function(f, e) { for (var t = [], r = 0; r < f.length; r++) t.push(f[r] - e[r]); return t }, multiply: function(f, e) { for (var t = [], r = 0, i = f; r < i.length; r++) { var o = i[r];
|
||
t.push(o * e) } return t }, Up: function(f, e) { for (var t = [], r = 0; r < f.length; r++) t[r] = f[r] / e; return t }, tA: function(f) { return this.multiply(f, -1) }, Zj: function(f, e) { var t = f[0],
|
||
f = f[1],
|
||
r = e[0]; return (void 0 === t ? 0 : t) * (void 0 === r ? 0 : r) + (void 0 === f ? 0 : f) * (void 0 === (e = e[1]) ? 0 : e) }, Qj: function(f, e) { var t = vector.Zj(f, e),
|
||
f = vector.length(f),
|
||
e = vector.length(e); return Math.acos(t / (f * e)) }, length: function(f) { var e = f[0],
|
||
f = f[1]; return Math.sqrt(Math.pow(e, 2) + Math.pow(f, 2)) } },
|
||
noop = function(f) {};
|
||
|
||
function getSpiltLineWithSpiltIndex(f, e) { if (e.shift(), 0 === e.length) return f; for (var t = "", r = 0, i = 0, o = e.length; i < o; i++) t += f.substr(r, e[i] - r) + " ", r = e[i]; return t + f.substr(e[e.length - 1]) } var XHR = { send: function(f, e) { void 0 === e && (e = {}); var t = new XMLHttpRequest,
|
||
i = void 0 === (r = e.qw) ? noop : r,
|
||
o = void 0 === (r = e.Aw) ? noop : r,
|
||
r = e.Me,
|
||
n = e.method,
|
||
e = e.content; return t.onreadystatechange = function() { if (4 === t.readyState && 200 === t.status) { var f = t.response; try { i(f) } catch (f) { o(f) } } else 404 === t.status && (t.abort(), o(Error("404"))) }, t.onerror = function(f) { t.abort(), o(f) }, t.open(n || "GET", f, !0), t.responseType = r || "json", t.send(e || void 0), t } },
|
||
scale = Browser.scale,
|
||
LabelsRenderUtil = { getBounds: function(f, e) { var t = (e = void 0 === e ? {} : e).zoom,
|
||
r = e.centerCoord,
|
||
i = (e.view, [150 * scale, 150 * scale, 150 * scale, 150 * scale]),
|
||
o = (f = f.boundsCoord)[0],
|
||
n = f[1],
|
||
a = f[2],
|
||
f = f[3],
|
||
l = this.nt(0, 0, t, e),
|
||
s = vector.Ip(this.nt(i[0], i[1], t, e), l),
|
||
i = vector.Ip(this.nt(i[2], i[3], t, e), l),
|
||
l = (e = LocalZoom <= t ? r : [0, 0])[0],
|
||
t = e[1]; return [
|
||
[o - l - Math.abs(i[1]), n - t - Math.abs(i[0])],
|
||
[a - l + Math.abs(s[1]), f - t + Math.abs(s[0])]
|
||
] }, gz: function(f, e) { var t = e[0],
|
||
e = e[1],
|
||
r = f[0],
|
||
f = f[1],
|
||
i = r - t[0],
|
||
t = f - t[1],
|
||
r = e[0] - r,
|
||
e = e[1] - f; return 0 <= i && 0 <= t && 0 <= r && 0 <= e }, getRank: function(f, e) { var t = (e = void 0 === e ? {} : e).forceShow,
|
||
e = e._z,
|
||
f = (f.data || {}).rank || 1; return void 0 !== t && t ? f - 1e5 : (void 0 === e ? 0 : e) / 100 * 2e5 + f }, wu: function(f, e, t, r) { var i, o, n, a, l, s; if (void 0 === f && (f = 0), void 0 === e && (e = 0), r) return l = r.viewState, a = r.size, i = r.transform, o = r.view, n = r.viewMode, s = r.centerCoord, r = void 0 === (r = r.positionType) ? "relative" : r, "2D" === n ? (n = { center: l.centerCoord, rotation: l.rotation, size: a }, l = (a = l.optimalZoom >= LocalZoom ? s : [0, 0])[0], s = a[1], i.wu(f + l, e + s, t, n)) : "relative" === r ? o.H(f, e) : o._u(f, e) }, r0: function(f, e, t, r, i) { var o, n, a, l, s, d; if (void 0 === f && (f = 0), void 0 === e && (e = 0), void 0 === t && (t = 0), i) return s = i.viewState, l = i.size, o = i.transform, n = i.view, a = i.viewMode, d = i.centerCoord, i = void 0 === (i = i.positionType) ? "relative" : i, "2D" === a ? (a = { center: s.centerCoord, rotation: s.rotation, size: l }, s = (l = s.optimalZoom >= LocalZoom ? d : [0, 0])[0], d = l[1], o.wu(f + s, e + d, r, a)) : "relative" === i ? n.H(f, e, t) : n._u(f, e, t) }, kz: function(f, e, t, r) { if (void 0 === f && (f = []), r = (r = void 0 === r ? {} : r).centerCoord, e < LocalZoom && LocalZoom <= t) { for (var i = r[0], o = r[1], n = [], a = 0, l = f; a < l.length; a++) { var s = l[a];
|
||
n.push([s[0] - i, s[1] - o]) } return n } return f }, nt: function(f, e, t, r) { void 0 === f && (f = 0), void 0 === e && (e = 0); var i = r.view,
|
||
o = r.transform; return "2D" === r.viewMode ? o.nt(f, e, t) : i.X(f, e) }, MG: function(f, e) { return f < LocalZoom - 1 ? [0, 0] : e } };
|
||
|
||
function isLngLat(f) { return f && "AMap.LngLat" === f.className }
|
||
|
||
function isPixel(f) { return f && "AMap.Pixel" === f.className }
|
||
|
||
function isSize(f) { return f && "AMap.Size" === f.className }
|
||
|
||
function isLayer(f) { return Boolean(f && f.el && "AMap.Layer" === f.el) }
|
||
|
||
function isVectorLayer(f) { return f && "AMap.VectorLayer" === f.CLASS_NAME }
|
||
|
||
function isOverlay(f) { return f && f.className && Util.startsWith(f.className, "Overlay") }
|
||
|
||
function isOverlayGroup(f) { return f && ("Overlay.OverlayGroup" === f.className || "Overlay.GeoJSON" === f.className) }
|
||
|
||
function isCircleMarker(f) { return f && f.className && "Overlay.CircleMarker" === f.className }
|
||
|
||
function isPolyline(f) { return f && f.className && "Overlay.Polyline" === f.className }
|
||
|
||
function isBezierCurve(f) { return f && f.className && "Overlay.BezierCurve" === f.className }
|
||
|
||
function isBounds(f) { return f && "AMap.Bounds" === f.className }
|
||
|
||
function isNumber(f) { return "number" == typeof(f = +f) && !isNaN(f) }
|
||
|
||
function isNumberArray(f) { return Array.isArray(f) && isNumber(f[0]) }
|
||
|
||
function isNumberArrayArray(f) { return Array.isArray(f) && isNumberArray(f[0]) }
|
||
|
||
function isNumberArrayArrayArray(f) { return Array.isArray(f) && isNumberArrayArray(f[0]) }
|
||
|
||
function isNumberArrayArrayArrayArray(f) { return Array.isArray(f) && isNumberArrayArrayArray(f[0]) }
|
||
|
||
function isLnglatLike(f) { return isLngLat(f) || isNumberArray(f) }
|
||
|
||
function isLnglatLikeArray(f) { return Array.isArray(f) && isLnglatLike(f[0]) }
|
||
|
||
function isLnglatLikeArrayArray(f) { return Array.isArray(f) && isLnglatLikeArray(f[0]) }
|
||
|
||
function isLnglatLikeArrayArrayArray(f) { return Array.isArray(f) && isLnglatLikeArrayArray(f[0]) }
|
||
|
||
function isInnerLabelsLayer(f) { return f && "AMap.Inner.LabelsLayer" === f.CLASS_NAME }
|
||
|
||
function isUndefined$1(f) { return void 0 === f }
|
||
|
||
function calcTileMectorBounds(f, e, t) { var r = ProjectionManager.getProjection("EPSG:3857"),
|
||
o = 180 / (f = Math.pow(2, f)),
|
||
i = (e = (i = 360 / f) * e - 180) + i,
|
||
t = (f = o * (f - t - 1) - 90) + o; return [e = (o = r.project(e, f))[0], f = o[1], (o = r.project(i, t))[0], o[1]] }
|
||
|
||
function parseLngLatData(f) { if (Array.isArray(f)) { var e; if (!Array.isArray(f[0])) return "string" == (e = typeof f[0]) || "number" == e ? new LngLat$2(f[0], f[1]) : f; for (var t = 0; t < f.length; t += 1) f[t] = parseLngLatData(f[t]) } return f }
|
||
|
||
function jsonLngLatData(f) { if (isLngLat(f)) return [f.getLng(), f.getLat()]; if (Array.isArray(f)) { for (var e = f.slice(0), t = 0; t < e.length; t += 1) e[t] = jsonLngLatData(e[t]); return e } return f } var Coordinate = { lr: function(f, e) { for (var t = 1 / 0, r = 0, i = 1, o = e.length; i < o; r = i, i += 1) t = Math.min(t, this.ur(f, [e[r], e[i]])); return Math.sqrt(t) }, ur: function(f, e) { return this.cr(f, this.closestOnSegment(f, e)) }, cr: function(f, e) { var t = f[0] - e[0]; return t * t + (f = f[1] - e[1]) * f }, pr: function(f, e, t, r) { var i, o; return r = r || 1e-6, t[0] === e[0] ? (i = Math.min(e[1], t[1]), o = Math.max(e[1], t[1]), Math.abs(f[0] - t[0]) < r && f[1] >= i && f[1] <= o) : (i = Math.min(e[0], t[0]), o = Math.max(e[0], t[0]), t = (t[1] - e[1]) / (t[0] - e[0]) * (f[0] - e[0]) + e[1], Math.abs(t - f[1]) < r && f[0] >= i && f[0] <= o) }, closestOnSegment: function(f, e) { var t, r = f[0],
|
||
f = f[1],
|
||
i = e[0],
|
||
e = e[1],
|
||
o = i[0],
|
||
i = i[1],
|
||
n = e[0],
|
||
a = n - o,
|
||
l = (e = e[1]) - i,
|
||
f = (r = 0 == a && 0 == l ? 0 : (a * (r - o) + l * (f - i)) / (a * a + l * l || 0)) <= 0 ? (t = o, i) : 1 <= r ? (t = n, e) : (t = o + r * a, i + r * l); return [t, f] }, isClockwise: function(f) { for (var e, t, r = f.length, i = 0, o = f[r - 1], n = o[0], a = o[1], l = 0; l < r; l += 1) i += ((e = (t = f[l])[0]) - n) * ((t = t[1]) + a), n = e, a = t; return 0 < i }, ss: function(f, e, t) { for (var r = f[0], i = f[1], o = !1, n = e.length, a = 0, l = n - 1; a < n; l = a, a += 1) { var s = !1,
|
||
d = e[a][0],
|
||
c = e[a][1],
|
||
u = e[l][0],
|
||
y = e[l][1]; if (d === r && c === i || u === r && y === i) return !!t; if (c < i == i <= y) { if (r === (u = (u - d) * (i - c) / (y - c) + d)) return !!t;
|
||
s = r < u }
|
||
s && (o = !o) } return o }, dr: function(f, e) { for (var t, r = function(f, e, t) { return (t[0] - e[0]) * (f[1] - e[1]) > (t[1] - e[1]) * (f[0] - e[0]) }, i = function(f, e, t, r) { var i = [f[0] - e[0], f[1] - e[1]],
|
||
o = [t[0] - r[0], t[1] - r[1]],
|
||
f = f[0] * e[1] - f[1] * e[0],
|
||
e = t[0] * r[1] - t[1] * r[0],
|
||
t = 1 / (i[0] * o[1] - i[1] * o[0]); return [(f * o[0] - e * i[0]) * t, (f * o[1] - e * i[1]) * t] }, o = f, n = e[e.length - 2], a = 0, l = e.length - 1; a < l; a++) { for (var s = e[a], d = o, o = [], c = d[d.length - 1], u = 0, y = d.length; u < y; u++) r(t = d[u], n, s) ? (r(c, n, s) || o.push(i(n, s, c, t)), o.push(t)) : r(c, n, s) && o.push(i(n, s, c, t)), c = t;
|
||
n = s } return o.length < 3 ? [] : (o.push(o[0]), o) } },
|
||
Pixel = function() {
|
||
function t(f, e, t) { if (void 0 === t && (t = !1), this.className = "AMap.Pixel", (isNaN(f) || isNaN(e)) && !window._AMapConfig) throw Error("Invalid Object: Pixel(" + f + ", " + e + ")");
|
||
this.x = t ? Math.round(f) : Number(f), this.y = t ? Math.round(e) : Number(e) } return t.prototype.getX = function() { return this.x }, t.prototype.round = function() { return new t(Math.round(this.x), Math.round(this.y)) }, t.prototype.getY = function() { return this.y }, t.prototype.toString = function() { return this.x + "," + this.y }, t.prototype.equals = function(f) { return f instanceof t && Math.max(Math.abs(this.x - f.x), Math.abs(this.y - f.y)) <= 1e-9 }, t.prototype.toArray = function() { return [this.x, this.y] }, t.prototype.subtract = function(f, e) { return new t(this.x - f.x, this.y - f.y, e) }, t.prototype.multiplyBy = function(f, e) { return new t(this.x * f, this.y * f, e) }, t.prototype.direction = function() { var f, e = this.x,
|
||
t = this.y; return 0 === e && 0 === t ? null : 0 === e ? 0 < t ? 90 : 270 : (f = 180 * Math.atan(t / e) / Math.PI, e < 0 && 0 < t || e < 0 && t < 0 ? 180 + f : 0 < e && t < 0 ? 360 + f : f) }, t.prototype.toJSON = function() { return [this.x, this.y] }, t }(),
|
||
commonjsGlobal = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
|
||
|
||
function commonjsRequire() { throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs") }
|
||
|
||
function unwrapExports(f) { return f && f.gP && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f }
|
||
|
||
function createCommonjsModule(f, e) { return f(e = { exports: {} }, e.exports), e.exports } var dist = createCommonjsModule(function(l, f) {
|
||
function s(f, e) { return e < f ? 1 : f < e ? -1 : 0 }
|
||
|
||
function S(f, e, t) { null === e ? (f.PP = !1, f.OP = !0) : (f._P === e._P ? (f.PP = !e.PP, f.OP = e.OP) : (f.PP = !e.OP, f.OP = e.NP() ? !e.PP : e.PP), e && (f.CP = !r(e, t) || e.NP() ? e.CP : e)), e = r(f, t), f.hN = e ? function(f, e) { var t, r = !f.PP,
|
||
i = !f.OP; switch (e) {
|
||
case T:
|
||
t = r && i; break;
|
||
case A:
|
||
t = r || i; break;
|
||
case I:
|
||
t = r ^ i; break;
|
||
case P:
|
||
t = f._P ? r && !i : i && !r } return t ? 1 : -1 }(f, t) : 0 }
|
||
|
||
function r(f, e) { switch (f.type) {
|
||
case n:
|
||
switch (e) {
|
||
case T:
|
||
return !f.OP;
|
||
case A:
|
||
return f.OP;
|
||
case P:
|
||
return f._P && f.OP || !f._P && !f.OP;
|
||
case I:
|
||
return !0 } break;
|
||
case k:
|
||
return e === T || e === A;
|
||
case x:
|
||
return e === P;
|
||
case m:
|
||
return !1 } return !1 }
|
||
|
||
function b(f, e) { return f[0] === e[0] && f[1] === e[1] }
|
||
|
||
function _(f, e, t, r, i) { var o, n, a, l, s = e[0],
|
||
d = r[0],
|
||
c = 0,
|
||
u = 0,
|
||
y = (s < d == -s < d ? (o = s, s = e[++c]) : (o = d, d = r[++u]), 0); if (c < f && u < t)
|
||
for (s < d == -s < d ? (a = o - ((n = s + o) - s), s = e[++c]) : (a = o - ((n = d + o) - d), d = r[++u]), o = n, 0 !== a && (i[y++] = a); c < f && u < t;) s < d == -s < d ? (a = o - ((n = o + s) - (l = n - o)) + (s - l), s = e[++c]) : (a = o - ((n = o + d) - (l = n - o)) + (d - l), d = r[++u]), o = n, 0 !== a && (i[y++] = a); for (; c < f;) a = o - ((n = o + s) - (l = n - o)) + (s - l), s = e[++c], o = n, 0 !== a && (i[y++] = a); for (; u < t;) a = o - ((n = o + d) - (l = n - o)) + (d - l), d = r[++u], o = n, 0 !== a && (i[y++] = a); return 0 === o && 0 !== y || (i[y++] = o), y }
|
||
|
||
function e(f) { return new(commonjsGlobal.Float64Array ? Float64Array : Array)(f) }
|
||
|
||
function i(f, e, t) { r = f[0], f = f[1], i = e[0], e = e[1]; var r, i, o, n, a, o = t[0],
|
||
a = (n = (f - (t = t[1])) * (i - o)) - (l = (r - o) * (e - t)),
|
||
l = 0 == n || 0 == l || 0 < n != 0 < l || (n = Math.abs(n + l), Math.abs(a) >= 33306690738754716e-32 * n) ? a : - function(f, e, t, r, i, o, n) { var a, l, s, d, c, u, y, b, p, h, S = f - i,
|
||
v = t - i,
|
||
g = e - o,
|
||
M = r - o,
|
||
w = S * M,
|
||
m = C * S,
|
||
k = m - (m - S),
|
||
x = S - k,
|
||
T = (N[0] = (y = x * (s = M - (l = (m = C * M) - (m - M))) - (w - k * l - x * l - k * s)) - ((d = y - (p = (x = g - (k = (m = C * g) - (m - g))) * (s = v - (l = (m = C * v) - (m - v))) - ((b = g * v) - k * l - x * l - k * s))) + (a = y - d)) + (a - p), N[1] = (u = w - ((c = w + d) - (a = c - w)) + (d - a)) - ((d = u - b) + (a = u - d)) + (a - b), N[2] = c - ((h = c + d) - (a = h - c)) + (d - a), N[3] = h, function(e) { for (var t = e[0], r = 1; r < 4; r++) t += e[r]; return t }(N)),
|
||
A = 22204460492503146e-32 * n; return A <= T || A <= -T || (f = f - (S + (a = f - S)) + (a - i), t = t - (v + (a = t - v)) + (a - i), i = e - (g + (a = e - g)) + (a - o), e = r - (M + (a = r - M)) + (a - o), 0 == f && 0 == i && 0 == t && 0 == e) || (A = 11093356479670487e-47 * n + 33306690738754706e-32 * Math.abs(T)) <= (T += S * e + M * f - (g * t + v * i)) || A <= -T ? T : (E[0] = (y = (x = f - (k = (m = C * f) - (m - f))) * (s = M - (l = (m = C * M) - (m - M))) - ((w = f * M) - k * l - x * l - k * s)) - ((d = y - (p = (x = i - (k = (m = C * i) - (m - i))) * (s = v - (l = (m = C * v) - (m - v))) - ((b = i * v) - k * l - x * l - k * s))) + (a = y - d)) + (a - p), E[1] = (u = w - ((c = w + d) - (a = c - w)) + (d - a)) - ((d = u - b) + (a = u - d)) + (a - b), E[2] = c - ((h = c + d) - (a = h - c)) + (d - a), E[3] = h, r = _(4, N, 4, E, $), E[0] = (y = (x = S - (k = (m = C * S) - (m - S))) * (s = e - (l = (m = C * e) - (m - e))) - ((w = S * e) - k * l - x * l - k * s)) - ((d = y - (p = (x = g - (k = (m = C * g) - (m - g))) * (s = t - (l = (m = C * t) - (m - t))) - ((b = g * t) - k * l - x * l - k * s))) + (a = y - d)) + (a - p), E[1] = (u = w - ((c = w + d) - (a = c - w)) + (d - a)) - ((d = u - b) + (a = u - d)) + (a - b), E[2] = c - ((h = c + d) - (a = h - c)) + (d - a), E[3] = h, o = _(r, $, 4, E, L), E[0] = (y = (x = f - (k = (m = C * f) - (m - f))) * (s = e - (l = (m = C * e) - (m - e))) - ((w = f * e) - k * l - x * l - k * s)) - ((d = y - (p = (x = i - (k = (m = C * i) - (m - i))) * (s = t - (l = (m = C * t) - (m - t))) - ((b = i * t) - k * l - x * l - k * s))) + (a = y - d)) + (a - p), E[1] = (u = w - ((c = w + d) - (a = c - w)) + (d - a)) - ((d = u - b) + (a = u - d)) + (a - b), E[2] = c - ((h = c + d) - (a = h - c)) + (d - a), E[3] = h, n = _(o, L, 4, E, O), O[n - 1]) }(r, f, i, e, o, t, n); return 0 < l ? -1 : l < 0 ? 1 : 0 }
|
||
|
||
function v(f, e) { var t = f.point,
|
||
r = e.point; return t[0] > r[0] ? 1 : t[0] < r[0] ? -1 : t[1] !== r[1] ? t[1] > r[1] ? 1 : -1 : (r = e, e = t, (t = f).left === r.left ? 0 === i(e, t.IP.point, r.IP.point) ? !t._P && r._P ? 1 : -1 : t.FP(r.IP.point) ? -1 : 1 : t.left ? 1 : -1) }
|
||
|
||
function p(f, e, t) { var r = new u(e, !1, f, f._P),
|
||
e = new u(e, !0, f.IP, f._P);
|
||
b(f.point, f.IP.point) && console.warn("what is that, a collapsed segment?", f), r.UP = e.UP = f.UP, 0 < v(e, f.IP) && (f.IP.left = !0, e.left = !1), f.IP.IP = e, f.IP = r, t.push(e), t.push(r) }
|
||
|
||
function h(f, e) { return f[0] * e[1] - f[1] * e[0] }
|
||
|
||
function g(f, e) { return f[0] * e[0] + f[1] * e[1] }
|
||
|
||
function M(f, e, t) { r = f.point, i = f.IP.point, c = e.point, y = e.IP.point; var r, i, n, a, l, d, c, u, y, i = [i[0] - r[0], i[1] - r[1]],
|
||
y = [y[0] - c[0], y[1] - c[1]],
|
||
l = [c[0] - r[0], c[1] - r[1]],
|
||
a = h(i, y),
|
||
d = g(i, i);
|
||
|
||
function s(f, e, t) { return [f[0] + e * t[0], f[1] + e * t[1]] } return 0 === (y = (l = 0 < a * a ? (n = h(l, y) / a) < 0 || 1 < n || (u = h(l, i) / a) < 0 || 1 < u ? null : 0 != n && 1 != n && (0 == u || 1 == u) ? [s(c, u, y)] : [s(r, n, i)] : !(0 < (a = h(l, i)) * a) && (u = (c = g(i, l) / d) + g(i, y) / d, n = Math.min(c, u), a = Math.max(c, u), n <= 1) && 0 <= a ? 1 === n ? [s(r, 0 < n ? n : 0, i)] : 0 === a ? [s(r, a < 1 ? a : 1, i)] : [s(r, 0 < n ? n : 0, i), s(r, a < 1 ? a : 1, i)] : null) ? l.length : 0) || 1 === y && (b(f.point, e.point) || b(f.IP.point, e.IP.point)) || 2 === y && f._P === e._P ? 0 : 1 === y ? (b(f.point, l[0]) || b(f.IP.point, l[0]) || p(f, l[0], t), b(e.point, l[0]) || b(e.IP.point, l[0]) || p(e, l[0], t), 1) : (u = c = !(d = []), b(f.point, e.point) ? c = !0 : 1 === v(f, e) ? d.push(e, f) : d.push(f, e), b(f.IP.point, e.IP.point) ? u = !0 : 1 === v(f.IP, e.IP) ? d.push(e.IP, f.IP) : d.push(f.IP, e.IP), c && u || c ? (e.type = m, f.type = e.PP === f.PP ? k : x, c && !u && p(d[1].IP, d[0].point, t), 2) : (u ? p(d[0], d[1].point, t) : d[0] !== d[3].IP ? (p(d[0], d[1].point, t), p(d[1], d[2].point, t)) : (p(d[0], d[1].point, t), p(d[3].IP, d[2].point, t)), 3)) }
|
||
|
||
function D(f, e) { var t, r; return f === e ? 0 : 0 !== i(f.point, f.IP.point, e.point) || 0 !== i(f.point, f.IP.point, e.IP.point) ? b(f.point, e.point) ? f.FP(e.IP.point) ? -1 : 1 : f.point[0] === e.point[0] ? f.point[1] < e.point[1] ? -1 : 1 : 1 === v(f, e) ? e.RP(f.point) ? -1 : 1 : f.FP(e.point) ? -1 : 1 : f._P !== e._P ? f._P ? -1 : 1 : (t = f.point, r = e.point, t[0] === r[0] && t[1] === r[1] ? (t = f.IP.point, r = e.IP.point, t[0] === r[0] && t[1] === r[1] ? 0 : f.UP > e.UP ? 1 : -1) : 1 === v(f, e) ? 1 : -1) }
|
||
|
||
function c(f, e) { return f < e ? -1 : e < f ? 1 : 0 }
|
||
|
||
function G(f, e, t, r, i, o) { for (var n = 0, a = f.length - 1; n < a; n++) { var l = f[n],
|
||
s = f[n + 1],
|
||
d = new u(l, !1, void 0, e),
|
||
c = new u(s, !1, d, e);
|
||
d.IP = c, l[0] === s[0] && l[1] === s[1] || (d.UP = c.UP = t, o || (d.DP = !1, c.DP = !1), 0 < v(d, c) ? c.left = !0 : d.left = !0, s = l[0], l = l[1], i[0] = U(i[0], s), i[1] = U(i[1], l), i[2] = y(i[2], s), i[3] = y(i[3], l), r.push(d), r.push(c)) } }
|
||
|
||
function t(f, e, t) { if ("number" == typeof f[0][0][0] && (f = [f]), l = e = "number" == typeof e[0][0][0] ? [e] : e, r = null, (s = f).length * l.length == 0 && (t === T ? r = R : t === P ? r = s : t !== A && t !== I || (r = 0 === s.length ? l : s)), r) return r === R ? null : r; var n, a = [1 / 0, 1 / 0, -1 / 0, -1 / 0],
|
||
l = [1 / 0, 1 / 0, -1 / 0, -1 / 0],
|
||
s = function(f, e, t, r, i) { for (var o, n, a, l, s = new j(null, v), d = 0, c = f.length; d < c; d++)
|
||
for (a = 0, l = (o = f[d]).length; a < l; a++)(n = 0 === a) && F++, G(o[a], !0, F, s, t, n); for (d = 0, c = e.length; d < c; d++)
|
||
for (a = 0, l = (o = e[d]).length; a < l; a++) n = 0 === a, (n = i !== P && n) && F++, G(o[a], !1, F, s, r, n); return s }(f, e, a, l, t),
|
||
r = f; if (f = e, e = t, n = null, (a[0] > l[2] || a[2] < l[0] || l[3] < a[1] || a[3] < l[1]) && (e === T ? n = R : e === P ? n = r : e !== A && e !== I || (n = r.concat(f))), n) return n === R ? null : n; for (var d = function(f) { for (var d = function(f) { for (var e, t, r = [], i = 0, o = f.length; i < o; i++)((e = f[i]).left && e.EP || !e.left && e.IP.EP) && r.push(e); for (var n = !1; !n;)
|
||
for (n = !0, i = 0, o = r.length; i < o; i++) i + 1 < o && 1 === v(r[i], r[i + 1]) && (t = r[i], r[i] = r[i + 1], r[i + 1] = t, n = !1); for (i = 0, o = r.length; i < o; i++)(e = r[i]).lN = i; for (i = 0, o = r.length; i < o; i++)(e = r[i]).left || (t = e.lN, e.lN = e.IP.lN, e.IP.lN = t); return r }(f), c = {}, u = [], y = 0, t = d.length; y < t; y++) ! function() { if (!c[y]) { var f, e, t, r, i = u.length,
|
||
o = (s = d[y], f = u, e = i, r = new V, null != s.CP ? (t = (s = s.CP).dN, 0 < s.hN ? null != (s = f[t]).gN ? (f[s = s.gN].vN.push(e), r.gN = s, r.depth = f[t].depth) : (f[t].vN.push(e), r.gN = t, r.depth = f[t].depth + 1) : (r.gN = null, r.depth = f[t].depth)) : (r.gN = null, r.depth = 0), r),
|
||
n = function(f) { c[f] = !0, d[f].dN = i },
|
||
a = y,
|
||
l = y,
|
||
s = d[y].point; for (o.points.push(s); n(a), n(a = d[a].lN), o.points.push(d[a].point), (a = function(f, e, t, r) { var i, o = f + 1,
|
||
n = e[f].point,
|
||
a = e.length; for (o < a && (i = e[o].point); o < a && i[0] === n[0] && i[1] === n[1];) { if (!t[o]) return o;
|
||
i = e[++o].point } for (o = f - 1; t[o] && r < o;) o--; return o }(a, d, c, l)) != l;);
|
||
u.push(o) } }(); return u }(function(f, e, t, r) { for (var i = new w(D), o = [], n = Math.min(e[2], t[2]); 0 !== f.length;) { var a, l, s, d, c, u = f.pop(); if (o.push(u), r === T && u.point[0] > n || r === P && u.point[0] > e[2]) break;
|
||
u.left ? (s = l = i.Xc(u), l = l !== (a = i.MP()) ? i.NM(l) : null, s = i.next(s), S(u, d = l ? l.key : null, r), s && 2 === M(u, s.key, f) && (S(u, d, r), S(u, s.key, r)), l && 2 === M(l.key, u, f) && (S(d, (c = (c = l) !== a ? i.NM(c) : null) ? c.key : null, r), S(u, d, r))) : (u = u.IP, s = l = i.find(u), l && s && (l = l !== a ? i.NM(l) : null, s = i.next(s), i.remove(u), s) && l && M(l.key, s.key, f)) } return o }(s, a, l, t)), c = [], u = 0; u < d.length; u++) { var y = d[u]; if (y.pN()) { for (var b = [y.points], p = 0; p < y.vN.length; p++) { var h = y.vN[p];
|
||
b.push(d[h].points) }
|
||
c.push(b) } } return c } var w, n, m, k, x, T, A, P, I, u, C, N, $, L, O, E, V, j, y, U, F, R, a = { size: { configurable: !0 } };
|
||
(w = function(f, e) { void 0 === e && (e = !1), this.bP = f = void 0 === f ? s : f, this.yP = null, this._size = 0, this.mP = !!e }).prototype.TP = function(f) { var e = f.right;
|
||
e && (f.right = e.left, e.left && (e.left.parent = f), e.parent = f.parent), f.parent ? f === f.parent.left ? f.parent.left = e : f.parent.right = e : this.yP = e, e && (e.left = f), f.parent = e }, w.prototype.wP = function(f) { var e = f.left;
|
||
e && (f.left = e.right, e.right && (e.right.parent = f), e.parent = f.parent), f.parent ? f === f.parent.left ? f.parent.left = e : f.parent.right = e : this.yP = e, e && (e.right = f), f.parent = e }, w.prototype.AP = function(f) { for (; f.parent;) { var e = f.parent;
|
||
e.parent ? e.left === f && e.parent.left === e ? (this.wP(e.parent), this.wP(e)) : e.right === f && e.parent.right === e ? (this.TP(e.parent), this.TP(e)) : e.left === f && e.parent.right === e ? (this.wP(e), this.TP(e)) : (this.TP(e), this.wP(e)) : e.left === f ? this.wP(e) : this.TP(e) } }, w.prototype.xP = function(f) { for (var e, t, r, i; f.parent;)(t = (e = f.parent).parent) && t.parent ? ((r = t.parent).left === t ? r.left = f : r.right = f, f.parent = r) : (f.parent = null, this.yP = f), r = f.left, i = f.right, f === e.left ? (t && (t.left === e ? (e.right ? (t.left = e.right, t.left.parent = t) : t.left = null, (e.right = t).parent = e) : (r ? (t.right = r).parent = t : t.right = null, (f.left = t).parent = f)), i ? (e.left = i).parent = e : e.left = null, (f.right = e).parent = f) : (t && (t.right === e ? (e.left ? (t.right = e.left, t.right.parent = t) : t.right = null, (e.left = t).parent = e) : (i ? (t.left = i).parent = t : t.left = null, (f.right = t).parent = f)), r ? (e.right = r).parent = e : e.right = null, (f.left = e).parent = f) }, w.prototype.replace = function(f, e) { f.parent ? f === f.parent.left ? f.parent.left = e : f.parent.right = e : this.yP = e, e && (e.parent = f.parent) }, w.prototype.MP = function(f) { if (f = void 0 === f ? this.yP : f)
|
||
for (; f.left;) f = f.left; return f }, w.prototype.SP = function(f) { if (f = void 0 === f ? this.yP : f)
|
||
for (; f.right;) f = f.right; return f }, w.prototype.Xc = function(f, e) { var t = this.yP,
|
||
r = null,
|
||
i = this.bP; if (this.mP)
|
||
for (; t;) { if (0 === i((r = t).key, f)) return;
|
||
t = i(t.key, f) < 0 ? t.right : t.left } else
|
||
for (; t;) t = i((r = t).key, f) < 0 ? t.right : t.left; return t = { key: f, data: e, left: null, right: null, parent: r }, r ? i(r.key, t.key) < 0 ? r.right = t : r.left = t : this.yP = t, this.xP(t), this._size++, t }, w.prototype.find = function(f) { for (var e = this.yP, t = this.bP; e;) { var r = t(e.key, f); if (r < 0) e = e.right;
|
||
else { if (!(0 < r)) return e;
|
||
e = e.left } } return null }, w.prototype.contains = function(f) { for (var e = this.yP, t = this.bP; e;) { var r = t(f, e.key); if (0 === r) return !0;
|
||
e = r < 0 ? e.left : e.right } return !1 }, w.prototype.remove = function(f) { var e; return !!(f = this.find(f)) && (this.xP(f), f.left ? f.right ? ((e = this.MP(f.right)).parent !== f && (this.replace(e, e.right), e.right = f.right, e.right.parent = e), this.replace(f, e), e.left = f.left, e.left.parent = e) : this.replace(f, f.left) : this.replace(f, f.right), this._size--, !0) }, w.prototype.removeNode = function(f) { var e; return !!f && (this.xP(f), f.left ? f.right ? ((e = this.MP(f.right)).parent !== f && (this.replace(e, e.right), e.right = f.right, e.right.parent = e), this.replace(f, e), e.left = f.left, e.left.parent = e) : this.replace(f, f.left) : this.replace(f, f.right), this._size--, !0) }, w.prototype.$P = function(f) { var e, t;
|
||
(f = this.find(f)) && (this.xP(f), e = f.left, f = f.right, t = null, e && (e.parent = null, t = this.SP(e), this.xP(t), this.yP = t), f && (e ? t.right = f : this.yP = f, f.parent = t), this._size--) }, w.prototype.pop = function() { var f = this.yP,
|
||
e = null; if (f) { for (; f.left;) f = f.left;
|
||
e = { key: f.key, data: f.data }, this.remove(f.key) } return e }, w.prototype.next = function(f) { var e = f; if (e)
|
||
if (e.right)
|
||
for (e = e.right; e && e.left;) e = e.left;
|
||
else
|
||
for (e = f.parent; e && e.right === f;) e = (f = e).parent;
|
||
return e }, w.prototype.NM = function(f) { var e = f; if (e)
|
||
if (e.left)
|
||
for (e = e.left; e && e.right;) e = e.right;
|
||
else
|
||
for (e = f.parent; e && e.left === f;) e = (f = e).parent;
|
||
return e }, w.prototype.forEach = function(f) { for (var e = this.yP, t = [], r = !1, i = 0; !r;) e ? (t.push(e), e = e.left) : 0 < t.length ? (f(e = t.pop(), i++), e = e.right) : r = !0; return this }, w.prototype.range = function(f, e, t, r) { for (var i = [], o = this.bP, n = this.yP; 0 !== i.length || n;)
|
||
if (n) i.push(n), n = n.left;
|
||
else { if (0 < o((n = i.pop()).key, e)) break; if (0 <= o(n.key, f) && t.call(r, n)) return this;
|
||
n = n.right }
|
||
return this }, w.prototype.keys = function() { for (var f = this.yP, e = [], t = [], r = !1; !r;) f ? (e.push(f), f = f.left) : 0 < e.length ? (f = e.pop(), t.push(f.key), f = f.right) : r = !0; return t }, w.prototype.values = function() { for (var f = this.yP, e = [], t = [], r = !1; !r;) f ? (e.push(f), f = f.left) : 0 < e.length ? (f = e.pop(), t.push(f.data), f = f.right) : r = !0; return t }, w.prototype.at = function(f) { for (var e = this.yP, t = [], r = !1, i = 0; !r;)
|
||
if (e) t.push(e), e = e.left;
|
||
else if (0 < t.length) { if (e = t.pop(), i === f) return e;
|
||
i++, e = e.right } else r = !0; return null }, w.prototype.load = function(f, e, t) { if (void 0 === f && (f = []), void 0 === e && (e = []), void 0 === t && (t = !1), 0 !== this._size) throw new Error("bulk-load: tree is not empty"); var r = f.length; return t && function f(e, t, r, i, o) { if (!(i <= r)) { for (var n = e[r + i >> 1], a = r - 1, l = i + 1;;) { for (; o(e[++a], n) < 0;); for (; 0 < o(e[--l], n);); if (l <= a) break; var s = e[a];
|
||
e[a] = e[l], e[l] = s, s = t[a], t[a] = t[l], t[l] = s }
|
||
f(e, t, r, l, o), f(e, t, l + 1, i, o) } }(f, e, 0, r - 1, this.bP), this.yP = function f(e, t, r, i, o) { var l, n = o - i; return 0 < n ? ((l = { key: l = t[n = i + Math.floor(n / 2)], data: r[n], parent: e }).left = f(l, t, r, i, n), l.right = f(l, t, r, n + 1, o), l) : null }(null, f, e, 0, r), this._size = r, this }, w.prototype.min = function() { var f = this.MP(this.yP); return f ? f.key : null }, w.prototype.max = function() { var f = this.SP(this.yP); return f ? f.key : null }, w.prototype.isEmpty = function() { return null === this.yP }, a.size.get = function() { return this._size }, w.LP = function(f, e, t, r, i) { return new w(t, i).load(f, e, r) }, Object.defineProperties(w.prototype, a), A = m = 1, P = k = 2, I = x = 3, a = { EP: { configurable: !(T = n = 0) } }, (u = function(f, e, t, r, i) { this.left = e, this.point = f, this.IP = t, this._P = r, this.type = i || n, this.PP = !1, this.OP = !1, this.CP = null, this.hN = 0, this.lN = -1, this.dN = -1, this.DP = !0 }).prototype.FP = function(f) { var e = this.point,
|
||
t = this.IP.point; return this.left ? 0 < (e[0] - f[0]) * (t[1] - f[1]) - (t[0] - f[0]) * (e[1] - f[1]) : 0 < (t[0] - f[0]) * (e[1] - f[1]) - (e[0] - f[0]) * (t[1] - f[1]) }, u.prototype.RP = function(f) { return !this.FP(f) }, u.prototype.NP = function() { return this.point[0] === this.IP.point[0] }, a.EP.get = function() { return 0 !== this.hN }, u.prototype.clone = function() { var f = new u(this.point, this.left, this.IP, this._P, this.type); return f.UP = this.UP, f.hN = this.hN, f.CP = this.CP, f.DP = this.DP, f.PP = this.PP, f.OP = this.OP, f }, Object.defineProperties(u.prototype, a), C = 134217729, N = e(4), $ = e(8), L = e(12), O = e(16), E = e(4), (V = function() { this.points = [], this.vN = [], this.gN = null, this.depth = null }).prototype.pN = function() { return null == this.gN }, (a = j = function o(f, e) { if (!(this instanceof o)) return new o(f, e); if (this.data = f || [], this.length = this.data.length, this.compare = e || c, 0 < this.length)
|
||
for (var t = (this.length >> 1) - 1; 0 <= t; t--) this.zP(t) }).prototype = { push: function(f) { this.data.push(f), this.length++, this.El(this.length - 1) }, pop: function() { var f; if (0 !== this.length) return f = this.data[0], this.length--, 0 < this.length && (this.data[0] = this.data[this.length], this.zP(0)), this.data.pop(), f }, GP: function() { return this.data[0] }, El: function(f) { for (var e = this.data, t = this.compare, r = e[f]; 0 < f;) { var i = f - 1 >> 1,
|
||
o = e[i]; if (0 <= t(r, o)) break;
|
||
e[f] = o, f = i }
|
||
e[f] = r }, zP: function(f) { for (var e = this.data, t = this.compare, r = this.length >> 1, i = e[f]; f < r;) { var o = 1 + (f << 1),
|
||
n = o + 1,
|
||
a = e[o]; if (n < this.length && t(e[n], a) < 0 && (a = e[o = n]), 0 <= t(a, i)) break;
|
||
e[f] = a, f = o }
|
||
e[f] = i } }, j.default = a, y = Math.max, U = Math.min, F = 0, R = [], a = { VP: A, BP: P, HP: T, WP: I }, f.ZP = function(f, e) { return t(f, e, P) }, f.qP = function(f, e) { return t(f, e, T) }, f.YP = a, f.union = function(f, e) { return t(f, e, A) }, f.xor = function(f, e) { return t(f, e, I) }, Object.defineProperty(f, "gP", { value: !0 }) }),
|
||
martinez = unwrapExports(dist),
|
||
Const = { vr: Math.PI / 180, mr: 180 / Math.PI, yr: 6378137 };
|
||
|
||
function getSphericalCrs(f, e) { var t = function(f) { switch (f) {
|
||
case "EPSG3857":
|
||
return ProjectionManager.getProjection("EPSG:3857");
|
||
case "EPSG4326":
|
||
return ProjectionManager.getProjection("EPSG:4326") } return ProjectionManager.getProjection("EPSG3857") }(f); return { project: function(f) { return Util.isArray(f) && (f = new LngLat$2(f[0], f[1])), t.project(f.lng, f.lat) }, unproject: function(f) { return Util.isArray(f) && (f = new Pixel(f[0], f[1])), t.unproject(f.x, f.y) }, normalizePoint: function(f) { return Util.parseLngLatData(f) }, distance: function(f, e) { if (e = this.normalizePoint(e), Util.isArray(e)) return this.distanceToLine(f, e);
|
||
f = this.normalizePoint(f); var t = Const.vr,
|
||
r = Math.cos,
|
||
i = f.lat * t,
|
||
f = f.lng * t,
|
||
o = e.lat * t,
|
||
e = e.lng * t,
|
||
t = 2 * Const.yr,
|
||
e = e - f,
|
||
f = (1 - r(o - i) + (1 - r(e)) * r(i) * r(o)) / 2; return t * Math.asin(Math.sqrt(f)) }, ringArea: function(f) { f = this.normalizeLine(f); var e = Const.yr * Const.vr,
|
||
t = 0,
|
||
r = f,
|
||
i = r.length; if (i < 3) return 0; for (var o = 0; o < i - 1; o += 1) { var n = r[o],
|
||
a = r[o + 1],
|
||
l = n.lng * e * Math.cos(n.lat * Const.vr),
|
||
n = n.lat * e,
|
||
s = a.lng * e * Math.cos(a.lat * Const.vr);
|
||
t += l * (a.lat * e) - s * n } var f = r[o],
|
||
d = r[0],
|
||
c = f.lng * e * Math.cos(f.lat * Const.vr),
|
||
f = f.lat * e,
|
||
u = d.lng * e * Math.cos(d.lat * Const.vr); return t += c * (d.lat * e) - u * f, .5 * Math.abs(t) }, sphericalCalotteArea: function(f) { var e = Const.yr,
|
||
f = e - e * Math.cos(f / e); return 2 * Math.PI * e * f } } }
|
||
|
||
function getPlanarCrs() { return { normalizePoint: function(f) { return f && f.x && f.y ? [f.x, f.y] : f }, distance: function(f, e) { var t = f[0] - e[0],
|
||
f = f[1] - e[1]; return Math.sqrt(t * t + f * f) }, project: function(f) { return f }, unproject: function(f) { return f }, ringArea: function(f) { for (var e = [0, 0], t = [0, 0], r = 0, i = f[0], o = f.length, n = 2; n < o; n++) { var a = f[n - 1],
|
||
l = f[n];
|
||
e[0] = i[0] - l[0], e[1] = i[1] - l[1], t[0] = i[0] - a[0], t[1] = i[1] - a[1], r += e[0] * t[1] - e[1] * t[0] } return r / 2 } } }
|
||
|
||
function isClockwise(f) { for (var e = 0, t = f.length, r = 0; r < t - 1; r++) { var i, o = f[r];
|
||
e += ((i = f[r + 1])[0] - o[0]) * (i[1] + o[1]) } return f[t - 1][0] === f[0][0] && f[t - 1][1] === f[0][1] || (o = f[t - 1], e += ((i = f[0])[0] - o[0]) * (i[1] + o[1])), 0 < e } var GeometryUtilCls = function() {
|
||
function e(f) { this.CLASS_NAME = "AMap.GeometryUtil", this._opts = assign({ onSegmentTolerance: 5, crs: "EPSG3857", maxZoom: zoomRange[1] }, f), this.setCrs(this._opts.crs) } return e.prototype.clone = function(f) { return new e(assign({}, this._opts, f)) }, e.prototype.isPoint = function(f) { return f && (f instanceof LngLat$2 || Util.isArray(f) && !isNaN(f[0])) }, e.prototype.normalizePoint = function(f) { return f }, e.prototype.normalizeLine = function(f) { for (var e = [], t = 0, r = f.length; t < r; t++) e.push(this.normalizePoint(f[t])); return e }, e.prototype.normalizeMultiLines = function(f) { for (var e = [], t = 0, r = (f = Util.isArray(f) && this.isPoint(f[0]) ? [f] : f).length; t < r; t++) e.push(this.normalizeLine(f[t])); return e }, e.prototype.setCrs = function(f) { f = f && f.project && f.unproject ? f : "plane" === f ? getPlanarCrs() : getSphericalCrs(f, this._opts.maxZoom), assign(this, f) }, e.prototype.distance = function(f, e) { throw new Error("distance Not implemented!") }, e.prototype.xr = function(f, e) { f = this.normalizeLine(f); for (var t = [], r = 0, i = (f = this.isPoint(f[0]) ? f : f[0]).length; r < i; r++) t.push(this.project(f[r])); return !0 === e ? t = this.makesureClockwise(t) : !1 === e && (t = this.makesureClockwise(t)).reverse(), t }, e.prototype.br = function(f) { for (var e = [], t = 0, r = f.length; t < r; t++) e.push(this.unproject(f[t])); return e }, e.prototype.closestOnSegment = function(f, e, t) { return f = Coordinate.closestOnSegment(this.project(f), this.xr([e, t])), this.unproject(f) }, e.prototype.closestOnLine = function(f, e) { for (var t, r = 1 / 0, i = 0, o = (e = this.normalizeLine(e)).length; i < o - 1; i++) { var n = this.closestOnSegment(f, e[i], e[i + 1]),
|
||
a = this.distance(f, n);
|
||
a < r && (r = a, t = n) } return t }, e.prototype.distanceToSegment = function(f, e, t) { return this.distanceToLine(f, [e, t]) }, e.prototype.distanceToLine = function(f, e) { e = this.normalizeLine(e); for (var t = 1 / 0, r = 0, i = (e = this.isPoint(e[0]) ? e : e[0]).length; r < i - 1; r++) var o = this.closestOnSegment(f, e[r], e[r + 1]),
|
||
t = Math.min(t, this.distance(f, o)); return t }, e.prototype.distanceToPolygon = function(f, e) { return this.isPointInRing(f, e) ? 0 : this.distanceToLine(f, e) }, e.prototype.isPointOnSegment = function(f, e, t, r) { return (!r && 0 !== r || r < 0) && (r = this._opts.onSegmentTolerance), this.distanceToSegment(f, e, t) <= r }, e.prototype.isPointOnLine = function(f, e, t) { for (var r = 0, i = (e = this.normalizeLine(e)).length; r < i - 1; r++)
|
||
if (this.isPointOnSegment(f, e[r], e[r + 1], t)) return !0;
|
||
return !1 }, e.prototype.isPointOnRing = function(f, e, t) { for (var r = 0, i = (e = this.normalizeLine(e)).length; r < i; r++)
|
||
if (this.isPointOnSegment(f, e[r], e[r === i - 1 ? 0 : r + 1], t)) return !0;
|
||
return !1 }, e.prototype.isPointOnPolygon = function(f, e, t) { for (var r = 0, i = (e = this.normalizeMultiLines(e)).length; r < i; r++)
|
||
if (this.isPointOnRing(f, e[r], t)) return !0;
|
||
return !1 }, e.prototype.makesureClockwise = function(f) { return isClockwise(f) || (f = [].concat(f)).reverse(), f }, e.prototype.makesureAntiClockwise = function(f) { return isClockwise(f) && (f = [].concat(f)).reverse(), f }, e.prototype.pointInRing = function(f, e, t) { for (var r = !1, i = 0; i < e.length && !r; i++)
|
||
if (a(f, e[i][0], t)) { for (var o = !1, n = 1; n < e[i].length && !o;) a(f, e[i][n], !t) && (o = !0), n++;
|
||
o || (r = !0) }
|
||
function a(f, e, t) { for (var r = !1, i = 0, o = (e = e[0][0] === e[e.length - 1][0] && e[0][1] === e[e.length - 1][1] ? e.slice(0, e.length - 1) : e).length - 1; i < e.length; o = i++) { var n = e[i][0],
|
||
a = e[i][1],
|
||
l = e[o][0],
|
||
s = e[o][1]; if (f[1] * (n - l) + a * (l - f[0]) + s * (f[0] - n) == 0 && (n - f[0]) * (l - f[0]) <= 0 && (a - f[1]) * (s - f[1]) <= 0) return !t;
|
||
a > f[1] != s > f[1] && f[0] < (l - n) * (f[1] - a) / (s - a) + n && (r = !r) } return r } return r }, e.prototype.isPointInBbox = function(f, e) { for (var t = 1 / 0, r = 1 / 0, i = -1 / 0, o = -1 / 0, n = 0; n < e.length; n++) var a = e[n],
|
||
t = Math.min(t, a[0]),
|
||
i = Math.max(i, a[0]),
|
||
r = Math.min(r, a[1]),
|
||
o = Math.max(o, a[1]); return f[0] > t && f[0] < i && f[1] > r && f[1] < o }, e.prototype.isPointInRing = function(f, e) { return e = this.normalizeLine(e), e = this.xr(e, !0), Coordinate.ss(this.project(f), e, !1) }, e.prototype.isRingInRing = function(f, e) { for (var t = 0, r = f.length; t < r; t++)
|
||
if (!this.isPointInRing(f[t], e)) return !1;
|
||
return !0 }, e.prototype.isRingInRingByOutsea = function(f, e) { for (var t = 0, r = f.length; t < r; t++)
|
||
if (this.isPointInRing(f[t], e)) return !0;
|
||
for (t = 0, r = e.length; t < r; t++)
|
||
if (this.isPointInRing(e[t], f)) return !0;
|
||
return !1 }, e.prototype.isRingInRingByMapbox = function(f, e) { for (var t = 0, r = f.length; t < r; t++)
|
||
if (!this.isPointInRing(f[t], e)) return !1;
|
||
return !0 }, e.prototype.isRingInRingByMapboxB = function(f, e) { for (var t = 0, r = f.length; t < r; t++)
|
||
if (this.isPointInRing(f[t], e)) return !0;
|
||
return !1 }, e.prototype.isPixelRingInRing = function(f, e) { for (var t = 0, r = f.length; t < r; t++)
|
||
if (Coordinate.ss(f[t], e, !1)) return !0;
|
||
return !1 }, e.prototype.isPointInPolygon = function(f, e) { for (var t, r = 0, i = (e = this.normalizeMultiLines(e)).length; r < i && (t = this.isPointInRing(f, e[r]), t = 0 < r ? !t : t); r += 1); return Boolean(t) }, e.prototype.isPointInPolygons = function(f, e) { for (var t = 0; t < e.length; t++) { for (var r = e[t], i = void 0, o = 0, n = (r = this.normalizeMultiLines(r)).length; o < n && (i = this.isPointInRing(f, r[o]), i = 0 < o ? !i : i); o += 1); if (i) return !0 } return !1 }, e.prototype.doesSegmentsIntersect = function(f, e, t, r) { f = (i = this.xr([f, e, t, r]))[0], e = i[1], t = i[2]; var i = ((r = i[3])[0] - t[0]) * (f[1] - t[1]) - (r[1] - t[1]) * (f[0] - t[0]),
|
||
n = (e[0] - f[0]) * (f[1] - t[1]) - (e[1] - f[1]) * (f[0] - t[0]); return 0 != (r = (r[1] - t[1]) * (e[0] - f[0]) - (r[0] - t[0]) * (e[1] - f[1])) && (t = n / r, 0 <= (e = i / r)) && e <= 1 && 0 <= t && t <= 1 }, e.prototype.doesSegmentLineIntersect = function(f, e, t) { for (var r = 0, i = (t = this.normalizeLine(t)).length; r < i - 1; r++)
|
||
if (this.doesSegmentsIntersect(f, e, t[r], t[r + 1])) return !0;
|
||
return !1 }, e.prototype.doesSegmentRingIntersect = function(f, e, t) { for (var r = 0, i = (t = this.normalizeLine(t)).length; r < i; r++)
|
||
if (this.doesSegmentsIntersect(f, e, t[r], t[r === i - 1 ? 0 : r + 1])) return !0;
|
||
return !1 }, e.prototype.doesSegmentPolygonIntersect = function(f, e, t) { for (var r = 0, i = (t = this.normalizeMultiLines(t)).length; r < i; r++)
|
||
if (this.doesSegmentRingIntersect(f, e, t[r])) return !0;
|
||
return !1 }, e.prototype.doesLineLineIntersect = function(f, e) { for (var t = 0, r = (f = this.normalizeLine(f)).length; t < r - 1; t++)
|
||
if (this.doesSegmentLineIntersect(f[t], f[t + 1], e)) return !0;
|
||
return !1 }, e.prototype.doesLineRingIntersect = function(f, e) { for (var t = 0, r = (f = this.normalizeLine(f)).length; t < r - 1; t++)
|
||
if (this.doesSegmentRingIntersect(f[t], f[t + 1], e)) return !0;
|
||
return !1 }, e.prototype.doesPolygonPolygonIntersect = function(f, e) { return !!(this.doesRingRingIntersect(e, f) || this.isRingInRing(f, e) || this.isRingInRing(e, f)) }, e.prototype.doesRingRingIntersect = function(f, e) { for (var t = 0, r = (f = this.normalizeLine(f)).length; t < r; t++)
|
||
if (this.doesSegmentRingIntersect(f[t], f[t === r - 1 ? 0 : t + 1], e)) return !0;
|
||
return !1 }, e.prototype.along = function(f, e) { for (var t = 0, r = 0; r < f.length - 1; r += 1) { var i, o = this.distance(f[r], f[r + 1]); if (!(o + t < e)) return [f[r][0] + (i = (e - t) / o) * (f[r + 1][0] - f[r][0]), f[r][1] + i * (f[r + 1][1] - f[r][1]), r];
|
||
t += o } return null }, e.prototype.gr = function(f, e) { for (var o, t = function(f) { return (s[0] - n[0]) * (f[1] - n[1]) > (s[1] - n[1]) * (f[0] - n[0]) }, r = function() { var f = [n[0] - s[0], n[1] - s[1]],
|
||
e = [c[0] - o[0], c[1] - o[1]],
|
||
t = n[0] * s[1] - n[1] * s[0],
|
||
r = c[0] * o[1] - c[1] * o[0],
|
||
i = 1 / (f[0] * e[1] - f[1] * e[0]); return [(t * e[0] - r * f[0]) * i, (t * e[1] - r * f[1]) * i] }, i = f = this.makesureAntiClockwise(f), n = (e = this.makesureClockwise(e))[e.length - 1], a = 0, l = e.length; a < l; a++) { for (var s = e[a], d = i, i = [], c = d[d.length - 1], u = 0, y = d.length; u < y; u++) t(o = d[u]) ? (t(c) || i.push(r()), i.push(o)) : t(c) && i.push(r()), c = o;
|
||
n = s } return i }, e.prototype.ringRingClip = function(f, e) { return f = this.xr(f), e = this.xr(e), isEqual(f[0], f[f.length - 1]) || f.push(f[0].slice()), isEqual(e[0], e[e.length - 1]) || e.push(e[0].slice()), (f = martinez.qP([f], [e])) && f[0] && f[0][0] ? this.br(f[0][0]) : [] }, e.prototype.ringArea = function(f) { throw new Error("distance Not implemented!") }, e.prototype.distanceOfLine = function(f) { for (var e = 0, t = 0, r = (f = this.normalizeLine(f)).length; t < r - 1; t++) e += this.distance(f[t], f[t + 1]); return e }, e.prototype.isClockwise = function(f) { return isClockwise(f = this.xr(f)) }, e.prototype.typePolygon = function(f) { return isArray(f) && isArray(f[0]) ? 2 === f[0][0].length || f[0][0] instanceof LngLat$2 ? "Polygon" : 2 < f[0][0].length && (2 === f[0][0][0].length || f[0][0][0] instanceof LngLat$2) ? "MultiPolygon" : "never" : "never" }, e }(),
|
||
GeometryUtilInstance = new GeometryUtilCls({}),
|
||
PlaneGeometryUtilInstance = new GeometryUtilCls({}),
|
||
GeometryUtil = (PlaneGeometryUtilInstance.setCrs("plane"), { distance: GeometryUtilInstance.distance.bind(GeometryUtilInstance), ringArea: GeometryUtilInstance.ringArea.bind(GeometryUtilInstance), isClockwise: GeometryUtilInstance.isClockwise.bind(GeometryUtilInstance), typePolygon: GeometryUtilInstance.typePolygon.bind(GeometryUtilInstance), makesureClockwise: GeometryUtilInstance.makesureClockwise.bind(GeometryUtilInstance), makesureAntiClockwise: GeometryUtilInstance.makesureAntiClockwise.bind(GeometryUtilInstance), distanceOfLine: GeometryUtilInstance.distanceOfLine.bind(GeometryUtilInstance), ringRingClip: GeometryUtilInstance.ringRingClip.bind(GeometryUtilInstance), doesSegmentsIntersect: GeometryUtilInstance.doesSegmentsIntersect.bind(GeometryUtilInstance), doesSegmentLineIntersect: GeometryUtilInstance.doesSegmentLineIntersect.bind(GeometryUtilInstance), doesSegmentRingIntersect: GeometryUtilInstance.doesSegmentRingIntersect.bind(GeometryUtilInstance), doesSegmentPolygonIntersect: GeometryUtilInstance.doesSegmentPolygonIntersect.bind(GeometryUtilInstance), doesLineLineIntersect: GeometryUtilInstance.doesLineLineIntersect.bind(GeometryUtilInstance), doesLineRingIntersect: GeometryUtilInstance.doesLineRingIntersect.bind(GeometryUtilInstance), doesRingRingIntersect: GeometryUtilInstance.doesRingRingIntersect.bind(GeometryUtilInstance), pointInRing: GeometryUtilInstance.pointInRing.bind(GeometryUtilInstance), isPointInRing: GeometryUtilInstance.isPointInRing.bind(GeometryUtilInstance), isPointInBbox: GeometryUtilInstance.isPointInBbox.bind(GeometryUtilInstance), isRingInRing: GeometryUtilInstance.isRingInRing.bind(GeometryUtilInstance), isPointInPolygon: GeometryUtilInstance.isPointInPolygon.bind(GeometryUtilInstance), isPointInPolygons: GeometryUtilInstance.isPointInPolygons.bind(GeometryUtilInstance), isPointOnSegment: GeometryUtilInstance.isPointOnSegment.bind(GeometryUtilInstance), isPointOnLine: GeometryUtilInstance.isPointOnLine.bind(GeometryUtilInstance), isPointOnRing: GeometryUtilInstance.isPointOnRing.bind(GeometryUtilInstance), isPointOnPolygon: GeometryUtilInstance.isPointOnPolygon.bind(GeometryUtilInstance), closestOnSegment: GeometryUtilInstance.closestOnSegment.bind(GeometryUtilInstance), closestOnLine: GeometryUtilInstance.closestOnLine.bind(GeometryUtilInstance), distanceToSegment: GeometryUtilInstance.distanceToSegment.bind(GeometryUtilInstance), distanceToLine: GeometryUtilInstance.distanceToLine.bind(GeometryUtilInstance) }),
|
||
PlaneGeometryUtil = { distance: PlaneGeometryUtilInstance.distance.bind(PlaneGeometryUtilInstance), ringArea: PlaneGeometryUtilInstance.ringArea.bind(PlaneGeometryUtilInstance), isClockwise: PlaneGeometryUtilInstance.isClockwise.bind(PlaneGeometryUtilInstance), typePolygon: PlaneGeometryUtilInstance.typePolygon.bind(PlaneGeometryUtilInstance), makesureClockwise: PlaneGeometryUtilInstance.makesureClockwise.bind(PlaneGeometryUtilInstance), makesureAntiClockwise: PlaneGeometryUtilInstance.makesureAntiClockwise.bind(PlaneGeometryUtilInstance), distanceOfLine: PlaneGeometryUtilInstance.distanceOfLine.bind(PlaneGeometryUtilInstance), ringRingClip: PlaneGeometryUtilInstance.ringRingClip.bind(PlaneGeometryUtilInstance), doesSegmentsIntersect: PlaneGeometryUtilInstance.doesSegmentsIntersect.bind(PlaneGeometryUtilInstance), doesSegmentLineIntersect: PlaneGeometryUtilInstance.doesSegmentLineIntersect.bind(PlaneGeometryUtilInstance), doesSegmentRingIntersect: PlaneGeometryUtilInstance.doesSegmentRingIntersect.bind(PlaneGeometryUtilInstance), doesSegmentPolygonIntersect: PlaneGeometryUtilInstance.doesSegmentPolygonIntersect.bind(PlaneGeometryUtilInstance), doesLineLineIntersect: PlaneGeometryUtilInstance.doesLineLineIntersect.bind(PlaneGeometryUtilInstance), doesLineRingIntersect: PlaneGeometryUtilInstance.doesLineRingIntersect.bind(PlaneGeometryUtilInstance), doesRingRingIntersect: PlaneGeometryUtilInstance.doesRingRingIntersect.bind(PlaneGeometryUtilInstance), pointInRing: PlaneGeometryUtilInstance.pointInRing.bind(PlaneGeometryUtilInstance), isPointInRing: PlaneGeometryUtilInstance.isPointInRing.bind(PlaneGeometryUtilInstance), isPointInBbox: PlaneGeometryUtilInstance.isPointInBbox.bind(PlaneGeometryUtilInstance), isRingInRing: PlaneGeometryUtilInstance.isRingInRing.bind(PlaneGeometryUtilInstance), isPointInPolygon: PlaneGeometryUtilInstance.isPointInPolygon.bind(PlaneGeometryUtilInstance), isPointInPolygons: PlaneGeometryUtilInstance.isPointInPolygons.bind(PlaneGeometryUtilInstance), isPointOnSegment: PlaneGeometryUtilInstance.isPointOnSegment.bind(PlaneGeometryUtilInstance), isPointOnLine: PlaneGeometryUtilInstance.isPointOnLine.bind(PlaneGeometryUtilInstance), isPointOnRing: PlaneGeometryUtilInstance.isPointOnRing.bind(PlaneGeometryUtilInstance), isPointOnPolygon: PlaneGeometryUtilInstance.isPointOnPolygon.bind(PlaneGeometryUtilInstance), closestOnSegment: PlaneGeometryUtilInstance.closestOnSegment.bind(PlaneGeometryUtilInstance), closestOnLine: PlaneGeometryUtilInstance.closestOnLine.bind(PlaneGeometryUtilInstance), distanceToSegment: PlaneGeometryUtilInstance.distanceToSegment.bind(PlaneGeometryUtilInstance), distanceToLine: PlaneGeometryUtilInstance.distanceToLine.bind(PlaneGeometryUtilInstance) },
|
||
LngLat$2 = function() {
|
||
function t(f, e, t) { if (void 0 === t && (t = !1), this.className = "AMap.LngLat", isNumberArray(f) ? (f = parseFloat(f[0]), e = parseFloat(f[1])) : (e = parseFloat(e), f = parseFloat(f)), (isNaN(f) || isNaN(e)) && !window._AMapConfig) throw Error("Invalid Object: LngLat(" + f + ", " + e + ")");!0 !== t && (e = Math.max(Math.min(e, 90), -90), f = (f + 180) % 360 + (f < -180 || 180 === f ? 180 : -180)), this.kT = e, this.KL = f, this.lng = Math.round(1e6 * f) / 1e6, this.lat = Math.round(1e6 * e) / 1e6, this.pos = ProjectionManager.getProjection("EPSG:3857").project(f, e) } return t.from = function(f) { return isLngLat(f) ? new t(f.KL, f.kT) : new t(f[0], f[1]) }, t.prototype.setLng = function(f) { return this.KL = f, this.lng = Math.round(1e6 * f) / 1e6, this }, t.prototype.setLat = function(f) { return this.kT = f, this.lat = Math.round(1e6 * f) / 1e6, this }, t.prototype.getLng = function() { return this.lng }, t.prototype.getLat = function() { return this.lat }, t.prototype.equals = function(f) { return (f = parseLngLatData(f)) instanceof t && Math.max(Math.abs(this.kT - f.kT), Math.abs(this.KL - f.KL)) <= 1e-9 }, t.prototype.add = function(f, e) { return new t(this.KL + f.KL, this.kT + f.kT, e) }, t.prototype.subtract = function(f, e) { return new t(this.KL - f.KL, this.kT - f.kT, e) }, t.prototype.divideBy = function(f, e) { return new t(this.KL / f, this.kT / f, e) }, t.prototype.multiplyBy = function(f, e) { return new t(this.KL * f, this.kT * f, e) }, t.prototype.offset = function(f, e) { if (isNaN(f) || isNaN(e)) throw Error("valid offset args, require number"); return f = 2 * Math.asin(Math.sin(Math.round(f) / 12756274) / Math.cos(this.kT * Math.PI / 180)), f = this.KL + 180 * f / Math.PI, e = 2 * Math.asin(Math.round(e) / 12756274), new t(f, this.kT + 180 * e / Math.PI) }, t.prototype.toString = function() { return this.lng + "," + this.lat }, t.prototype.toArray = function() { return [this.lng, this.lat] }, t.prototype.toJSON = function() { return [this.lng, this.lat] }, t.prototype.distanceTo = function(f) { return GeometryUtil.distance(this, f) }, t.prototype.distance = function(f) { return GeometryUtil.distance(this, f) }, t }(),
|
||
Size = function() {
|
||
function f(f, e, t) { if (void 0 === t && (t = !1), this.className = "AMap.Size", isNaN(f) || isNaN(e)) throw new Error("Invalid Object: Pixel(" + f + ", " + e + ")");
|
||
this.width = t ? Math.round(f) : Number(f), this.height = t ? Math.round(e) : Number(e) } return f.prototype.getWidth = function() { return this.width }, f.prototype.getHeight = function() { return this.height }, f.prototype.toString = function() { return this.width + "," + this.height }, f.prototype.toArray = function() { return [this.width, this.height] }, f }(),
|
||
easing = function() { var n = {},
|
||
a = "function" == typeof Float32Array;
|
||
|
||
function r(f, e) { return 1 - 3 * e + 3 * f }
|
||
|
||
function T(f, e, t) { return ((r(e, t) * f + (3 * t - 6 * e)) * f + 3 * e) * f }
|
||
|
||
function A(f, e, t) { return 3 * r(e, t) * f * f + 2 * (3 * t - 6 * e) * f + 3 * e }
|
||
|
||
function l(f) { return f } return function(g, e, M, t) { if (!(0 <= g && g <= 1 && 0 <= M && M <= 1)) throw new Error("bezier x values must be in [0, 1] range"); var f = arguments.toString(); if (n[f]) return n[f]; if (g === e && M === t) return l; for (var w = new(a ? Float32Array : Array)(11), r = 0; r < 11; ++r) w[r] = T(.1 * r, g, M); return n[f] = function(f) { return 0 === f ? 0 : 1 === f ? 1 : T(function(f) { for (var e = 0, t = 1; 10 !== t && w[t] <= f; ++t) e += .1; var r = e + (f - w[--t]) / (w[t + 1] - w[t]) * .1,
|
||
i = A(r, g, M); if (.001 <= i) { for (var o = f, n = r, a = g, l = M, s = 0; s < 4; ++s) { var d = A(n, a, l); if (0 === d) return n;
|
||
n -= (T(n, a, l) - o) / d } return n } if (0 === i) return r; for (var c, u, y = f, b = e, p = e + .1, h = g, S = M, v = 0; 0 < (c = T(u = b + (p - b) / 2, h, S) - y) ? p = u : b = u, 1e-7 < Math.abs(c) && ++v < 10;); return u }(f), e, t) } } }();
|
||
|
||
function getQuadBezierValue(f, e, t, r) { var i; return 1 <= f ? r : (i = 1 - f) * i * e + 2 * i * f * t + f * f * r }
|
||
|
||
function cubic(f, e, t, r, i) { var o, n, a, l; return 1 <= f ? i : (o = 3 * (t.pos[0] - e.pos[0]), n = 3 * (r.pos[0] - t.pos[0]) - o, l = i.pos[0] - e.pos[0] - o - n, a = 3 * (t.pos[1] - e.pos[1]), r = 3 * (r.pos[1] - t.pos[1]) - a, t = i.pos[1] - e.pos[1] - a - r, i = l * Math.pow(f, 3) + n * Math.pow(f, 2) + o * f + e.pos[0], l = t * Math.pow(f, 3) + r * Math.pow(f, 2) + a * f + e.pos[1], ProjectionManager.getProjection("EPSG:3857").unproject(i, l)) }
|
||
|
||
function quad(f, e, t, r) { return ProjectionManager.getProjection("EPSG:3857").unproject(getQuadBezierValue(f, e.pos[0], t.pos[0], r.pos[0]), getQuadBezierValue(f, e.pos[1], t.pos[1], r.pos[1])) }
|
||
|
||
function p20CoordsToLngLat(f, e) { return Array.isArray(e) && (e = new Pixel(e[0], e[1])), f.containerTolnglat(e, 20) }
|
||
|
||
function getSplitNum(f, e) { for (var r = [3, 300], t = Math.max(2, 4), i = 0, o = 0, n = 0, a = f.length; n < a - 1; n++) { var l = f[n],
|
||
s = f[n + 1];
|
||
i += Math.abs(s.pos[0] - l.pos[0]), o += Math.abs(s.pos[1] - l.pos[1]) } return Math.min(r[1], Math.max(r[0], Math.round(Math.max(i, o) / e / t))) }
|
||
|
||
function interpolateCoords(f, e) { var t = null; switch (e.length) {
|
||
case 3:
|
||
t = quad; break;
|
||
case 4:
|
||
t = cubic; break;
|
||
default:
|
||
return null } for (var r = [], i = [0].concat(e), o = 1; o < f - 2; o++) i[0] = o / f, r.push(t.apply(null, i)); return r.push(e[e.length - 1]), r }
|
||
|
||
function getCoordsWithControlPoints(f, e, t, r) { var i = null; return f && t && t.length && ((f = [f]).push.apply(f, t), f.push(e), i = interpolateCoords(getSplitNum(f, r), f)), i || [e] } var BezierUtil = { ag: quad, ug: cubic, sg: easing, xb: function(f, e) { for (var t = [], r = 0, i = f.length; r < i; r += 1) t.push.apply(t, getCoordsWithControlPoints(f[r - 1], f[r], f[r].controlPoints, e)); return t }, fg: function(f, e, t, r) { for (var i = this.xb(f, e, t, r), o = [], n = 0, a = i.length; n < a; n++) o.push(p20CoordsToLngLat(e, i[n])); return o } },
|
||
globalInstance = self,
|
||
TagMap = (function(f) { f.LITE = "lite", f.LEFT = "left", f.ALL = "all", f.NONE = "" }(exports.zB || (exports.zB = {})), { 2: "all", 3: "all", 4: "all", 5: "all", 6: "lite", 7: "all", 8: "lite", 9: "all", 10: "lite", 11: "lite", 12: "all", 13: "all", 14: "all", 15: "lite", 16: "lite", 17: "all", 18: "all", 19: "all", 20: "all" }),
|
||
colorNameDist = { aliceblue: "#f0f8ff", antiquewhite: "#faebd7", aqua: "#00ffff", aquamarine: "#7fffd4", azure: "#f0ffff", beige: "#f5f5dc", bisque: "#ffe4c4", black: "#000000", blanchedalmond: "#ffebcd", blue: "#0000ff", blueviolet: "#8a2be2", brown: "#a52a2a", burlywood: "#deb887", cadetblue: "#5f9ea0", chartreuse: "#7fff00", chocolate: "#d2691e", coral: "#ff7f50", cornflowerblue: "#6495ed", cornsilk: "#fff8dc", crimson: "#dc143c", cyan: "#00ffff", darkblue: "#00008b", darkcyan: "#008b8b", darkgoldenrod: "#b8860b", darkgray: "#a9a9a9", darkgreen: "#006400", darkkhaki: "#bdb76b", darkmagenta: "#8b008b", darkolivegreen: "#556b2f", darkorange: "#ff8c00", darkorchid: "#9932cc", darkred: "#8b0000", darksalmon: "#e9967a", darkseagreen: "#8fbc8f", darkslateblue: "#483d8b", darkslategray: "#2f4f4f", darkturquoise: "#00ced1", darkviolet: "#9400d3", deeppink: "#ff1493", deepskyblue: "#00bfff", dimgray: "#696969", dodgerblue: "#1e90ff", firebrick: "#b22222", floralwhite: "#fffaf0", forestgreen: "#228b22", fuchsia: "#ff00ff", gainsboro: "#dcdcdc", ghostwhite: "#f8f8ff", gold: "#ffd700", goldenrod: "#daa520", grey: "#808080", gray: "#808080", green: "#008000", greenyellow: "#adff2f", honeydew: "#f0fff0", hotpink: "#ff69b4", indianred: "#cd5c5c", indigo: "#4b0082", ivory: "#fffff0", khaki: "#f0e68c", lavender: "#e6e6fa", lavenderblush: "#fff0f5", lawngreen: "#7cfc00", lemonchiffon: "#fffacd", lightblue: "#add8e6", lightcoral: "#f08080", lightcyan: "#e0ffff", lightgoldenrodyellow: "#fafad2", lightgrey: "#d3d3d3", lightgreen: "#90ee90", lightpink: "#ffb6c1", lightsalmon: "#ffa07a", lightseagreen: "#20b2aa", lightskyblue: "#87cefa", lightslategray: "#778899", lightsteelblue: "#b0c4de", lightyellow: "#ffffe0", lime: "#00ff00", limegreen: "#32cd32", linen: "#faf0e6", magenta: "#ff00ff", maroon: "#800000", mediumaquamarine: "#66cdaa", mediumblue: "#0000cd", mediumorchid: "#ba55d3", mediumpurple: "#9370d8", mediumseagreen: "#3cb371", mediumslateblue: "#7b68ee", mediumspringgreen: "#00fa9a", mediumturquoise: "#48d1cc", mediumvioletred: "#c71585", midnightblue: "#191970", mintcream: "#f5fffa", mistyrose: "#ffe4e1", moccasin: "#ffe4b5", navajowhite: "#ffdead", navy: "#000080", oldlace: "#fdf5e6", olive: "#808000", olivedrab: "#6b8e23", orange: "#ffa500", orangered: "#ff4500", orchid: "#da70d6", palegoldenrod: "#eee8aa", palegreen: "#98fb98", paleturquoise: "#afeeee", palevioletred: "#d87093", papayawhip: "#ffefd5", peachpuff: "#ffdab9", peru: "#cd853f", pink: "#ffc0cb", plum: "#dda0dd", powderblue: "#b0e0e6", purple: "#800080", rebeccapurple: "#663399", red: "#ff0000", rosybrown: "#bc8f8f", royalblue: "#4169e1", saddlebrown: "#8b4513", salmon: "#fa8072", sandybrown: "#f4a460", seagreen: "#2e8b57", seashell: "#fff5ee", sienna: "#a0522d", silver: "#c0c0c0", skyblue: "#87ceeb", slateblue: "#6a5acd", slategray: "#708090", snow: "#fffafa", springgreen: "#00ff7f", steelblue: "#4682b4", tan: "#d2b48c", teal: "#008080", thistle: "#d8bfd8", tomato: "#ff6347", turquoise: "#40e0d0", violet: "#ee82ee", wheat: "#f5deb3", white: "#ffffff", whitesmoke: "#f5f5f5", yellow: "#ffff00", yellowgreen: "#9acd32" },
|
||
Util = function() { var r, n, e, t, i, o, a, l, s, d, f = { CLASS_NAME: "AMap.Util", WorldAxesCenter: { x: 0, y: 0 }, Single: {}, stamp: (e = !0 === Browser.DW, t = 1e5, i = "_amap_id", function(f) { return f[i] = e ? ++t : --t, f[i] }), singlton: function(f) { return b.Single[f] || new f }, getOptimalZoom: function(f) { return f < Math.floor(f) + .8 ? Math.floor(f) : Math.ceil(f) }, join: function(f, e) { if (f.join) return f.join(e); var t, r = []; for (t in f) f.hasOwnProperty(t) && r.push(t + "=" + (f[t] || "")); return r.join(e) }, getGuid: function(f, e) { return void 0 === e && (e = 10), (f || "") + Math.round(Math.random() * Math.pow(10, e)) + "_" + (new Date).getTime() }, uuid: (n = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""), function(f, e) { var t, o, r = n,
|
||
i = []; if (e = (e = void 0 === e ? 62 : e) || r.length, f = void 0 === f ? 0 : f)
|
||
for (t = 0; t < f; t++) i[t] = r[0 | Math.random() * e];
|
||
else
|
||
for (i[8] = i[13] = i[18] = i[23] = "-", i[14] = "4", t = 0; t < 36; t++) i[t] || (o = 0 | 16 * Math.random(), i[t] = r[19 === t ? 3 & o | 8 : o]); return i.join("") }), endsWith: function(f, e) { return f.endsWith ? f.endsWith(e) : !(f.length < e.length) && f.substr(f.length - e.length) === e }, mg: [], gg: 268435456, wg: [215440491, 106744817], Mg: { start: function(e) { e.startTime = new Date, e.jg = []; var r = (new Date).getTime();
|
||
e.id = b.requestAnimFrame(function t() { var f = (new Date).getTime();
|
||
e.jg.push(f - r), r = f, e.id = b.requestAnimFrame(t) }) }, cancel: function(f) { f.id && b.cancelAnimFrame(f.id) }, stop: function(f) { f.Ag = Date.now() - f.startTime, this.cancel(f), f.Mg = Math.round(1e3 / (f.Ag / (f.jg.length + 1))) } }, kg: function(f, e, t, r, i) { if (void 0 === i && (i = !1), f === e) return e; switch (r = void 0 === r ? "linear" : r) {
|
||
case "ease":
|
||
t = BezierUtil.sg(.25, .1, .25, 1)(t); break;
|
||
case "ease-in":
|
||
t = BezierUtil.sg(.42, 0, 1, 1)(t); break;
|
||
case "ease-out":
|
||
t = BezierUtil.sg(0, 0, .58, 1)(t); break;
|
||
case "ease-in-out":
|
||
t = BezierUtil.sg(.42, 0, .58, 1)(t) } return r = f + (e - f) * t, i && (r >>= 0), r }, createObjectURL: function(f, e) { void 0 === e && (e = "text/javascript; charset=utf-8"); var t = null; try { t = (globalInstance.URL || globalInstance.webkitURL).createObjectURL(new Blob([f], { type: e })) } catch (f) { t = null } return t }, revokeObjectURL: function(f) { try {
|
||
(globalInstance.URL || globalInstance.webkitURL).revokeObjectURL(f) } catch (f) {} }, Og: function(f) { for (var e = {}, t = 0, r = f.length; t < r; t++) e[f[t]] = t; return e }, EV: function(f, e) { var t = 180 / (e = Math.pow(2, e)); return [Math.floor(f[0] / (360 / e)) + e / 2, e / 2 - Math.ceil(f[1] / t)] }, WY: function(f, e, t) { void 0 === t && (t = !1); var r = [f[0], f[3]],
|
||
f = [f[2], f[1]],
|
||
r = this.EV(r, e),
|
||
f = this.EV(f, e),
|
||
i = r[0],
|
||
o = r[1],
|
||
n = f[0],
|
||
a = f[1]; if (t) return { ja: i, Fa: o, Oa: n, Ea: a, z: e };
|
||
this.Pa = { ja: i, Fa: o, Oa: n, Ea: a, z: e }; for (var l = [], s = i; s <= n; s += 1)
|
||
for (var d = o; d <= a; d += 1) l.push([e, s, d]); return l }, xg: function(f) { var e = {}; if (b.is(f, "object"))
|
||
for (var t in f) f.hasOwnProperty(t) && (e[f[t]] = t); return e }, Ig: function(f, e) { if (e.length < 5e4) f.push.apply(f, e);
|
||
else
|
||
for (var t = 0, r = e.length; t < r; t += 1) f.push(e[t]) }, clone: function(f) { if ("object" != typeof f || null === f) return f; if (f.Tg || this.is(f, "Float32Array") || this.is(f, "Uint16Array")) return f; var e, t = this.isArray(f) ? [] : {}; for (e in f) f.hasOwnProperty(e) && (t[e] = b.clone(f[e])); return t }, isInteger: function(f) { return (0 | f) === f }, vB: function(f) { return !isNaN(f) }, setPrototypeOf: "function" == typeof Object.setPrototypeOf ? Object.setPrototypeOf : function(f, e) { for (var t in e) f[t] = e[t] }, isFunction: function(f) { return "function" == typeof f }, _g: function(f, e) { if (void 0 === e && (e = "webgl"), !f) return f; for (var t = [], r = 0, i = f.length; r < i; r += 2) { var o = parseInt(f.substr(r, 2), 16);
|
||
("webgl" === e || "rgba" === e && 0 === r) && (o = this.format(o / 255, 3)), t.push(o) } return t.push(t.shift()), t }, Sg: function() {}, keys: "function" == typeof Object.keys ? Object.keys : function(f) { var e, t = []; for (e in f) f.hasOwnProperty(e) && t.push(e); return t }, map: function(t, r, i) { void 0 === i && (i = null); var o = []; return t && t.length ? (b.Cg(t, function() { for (var f = [], e = 0; e < arguments.length; e++) f[e] = arguments[e];
|
||
o[f[1]] = r.apply(i || t, f) }), o) : t }, forEach: function(f, e) { if (f && f.length) { var t = f.length; if (0 < t && (e(f[0], 0), 1 < t)) { e(f[1], 1); for (var r = 2; r < t; r++) e(f[r], r) } } }, Cg: function(f, e, t) { if (void 0 === t && (t = null), f && f.length)
|
||
for (var r = 0, i = f.length; r < i && !1 !== e.call(t, f[r], r, f); r++); }, find: function(f, e, t) { void 0 === t && (t = null); for (var r = 0, i = f.length; r < i; r++)
|
||
if ("function" == typeof e) { if (e.call(t, f[r], r, f)) return f[r] } else if (f[r] === e) return f[r]; return null }, isDOM: function(f) { return "object" == typeof HTMLElement ? f instanceof HTMLElement : f && "object" == typeof f && 1 === f.nodeType && "string" == typeof f.nodeName }, Eg: function(f, e) { for (var t, r, i = "ASDFGHJKLQWERTYUIO!sdfghjkleiu3~yr5-P&mq9`%zCN*b=8@^xpVM", o = "v5" < (e = e || "v5") ? (t = i.length, 512) : (i = i.substr(0, t = 27), 333), n = [], a = NaN, l = 0, s = f.length; l < s; l++) r = f[l], r = i.indexOf(r), a = isNaN(a) ? r * t : (n.push(a + r - o), NaN); return n }, Ng: function(f, e) { for (var t = 512 < e.length ? Math.round(Math.pow(e.length, .5)) : e.length, r = Math.ceil(e.length / t), i = 0; i < r; i += 1) { var o = t * i,
|
||
n = o + t;
|
||
n > e.length && (n = e.length); for (var a = o; a < n; a += 1) f(e[a]) } }, Lg: function(f) { var e; return /^rgba\(/.test(f) ? this.Dg(f) : ("#" === (e = f = this.colorNameToHex(f))[0] && (3 === (f = f.substring(1)).length && (f = f.replace(/./g, function(f) { return f + f })), e = this.argbHex2Rgba(8 === f.length ? f : "ff" + f)), this.Dg(e)) }, colorNameToHex: function(f) { return "string" == typeof(f = (f = void 0 === f ? "" : f).toLowerCase()) && colorNameDist[f] || f }, Rg: function(f, e, t) { var r = Math.floor(t / 2),
|
||
i = t - r; return [t, f & (r = (1 << r) - 1 << i) | e & (i = (1 << i) - 1), e & r | f & i] }, Pg: function(f) { return f ? encodeURIComponent(f) : "" }, getStyle: function(f, e, t, r) { var i = f[e].i[t]; if (void 0 === i) return null; if (t = f[e].s, "number" == typeof i) return t[i]; for (; void 0 === i[r.toString()] && !(--r < 3);); return "number" == typeof(f = i[r.toString()]) ? t[f] : null }, Dg: function(f) { return (f = f.split(","))[0] = parseFloat(f[0].split("rgba(")[1]) / 255, f[1] = parseFloat(f[1]) / 255, f[2] = parseFloat(f[2]) / 255, f[3] = parseFloat(f[3]), f }, Ug: function(f) { return (f = f.split(","))[0] = parseFloat(f[0].split("rgb(")[1]) / 255, f[1] = parseFloat(f[1]) / 255, f[2] = parseFloat(f[2]) / 255, f }, Bg: function(f) { return "rgba(" + 255 * f[0] + "," + 255 * f[1] + "," + 255 * f[2] + "," + f[3] + ")" }, color2Rgba: function(f) { return this.Bg(this.color2RgbaArray(f)) }, color2RgbaArray: function(f) { var e, t, r, i, o, n, a; return f instanceof Array ? (3 == f.length && f.push(1), f) : 0 == (e = this.colorNameToHex(f)).indexOf("rgb(") ? ((t = this.Ug(e)).push(1), t) : 0 == e.indexOf("rgba(") ? this.Dg(e) : 0 == e.indexOf("#") ? 4 === e.length ? (a = e.substr(1).replace(/./g, function(f) { return f + f }), this.zg(a)) : 7 == e.length ? this.zg(e.substr(1)) : 9 == e.length ? (t = e.substr(1), this.qg(t)) : void 0 : 0 === e.indexOf("hsla") ? (r = f.substr(5).split(","), i = parseInt(r[0], 10) / 360, o = parseInt(r[1], 10) / 100, n = parseInt(r[2], 10) / 100, t = parseFloat(r[3]), this.GQ(i, o, n, t)) : 0 === e.indexOf("hsl") ? (r = f.substr(4).split(","), i = parseInt(r[0], 10) / 360, o = parseInt(r[1], 10) / 100, n = parseInt(r[2], 10) / 100, this.GQ(i, o, n, 1)) : 3 === e.length ? (a = e.replace(/./g, function(f) { return f + f }), this.zg(a)) : 6 == e.length ? this.zg(e) : 8 == e.length ? this.qg(e) : void 0 }, GQ: function(f, e, t, r) { var i, o, n; return 0 === e ? i = o = n = t : (i = this.uQ(e = 2 * t - (t = t < .5 ? t * (1 + e) : t + e - t * e), t, f + 1 / 3), o = this.uQ(e, t, f), n = this.uQ(e, t, f - 1 / 3)), [i, o, n, r] }, uQ: function(f, e, t) { return t < 0 && (t += 1), 1 < t && --t, t < 1 / 6 ? f + 6 * (e - f) * t : t < .5 ? e : t < 2 / 3 ? f + (e - f) * (2 / 3 - t) * 6 : f }, rgbHex2Rgba: function(f) { return f.startsWith("#") && (f = f.slice(1)), b.argbHex2Rgba("ff" + f) }, argbHex2Rgba: function(f) { for (var e = [], t = 0, r = (f = f.startsWith("#") ? f.slice(1) : f).length; t < r; t += 2) e.push(parseInt(f.substr(t, 2), 16)); return e.push((e.shift() / 255).toFixed(2)), "rgba(" + e.join(",") + ")" }, Opacity2Rgba: function(f, e) { var t = e; return e && e[3] && f && (e[3] = Math.floor(255 * f)), t }, Hex2Rgba: function(f) { if ("string" != typeof f) return !1; for (var e = [], t = 0, r = f.length; t < r; t += 2) e.push(parseInt(f.substr(t, 2), 16)); return e.push(parseInt(e.shift())), e }, zg: function(f) { return this.uE(f + "ff") }, qg: function(f) { for (var e = [], t = 0, r = f.length; t < r; t += 2) e.push(parseInt(f.substr(t, 2), 16) / 255); return e.push(e.shift()), e }, uE: function(f) { return [((f = parseInt(f, 16)) >> 24 & 255) / 255, (f >> 16 & 255) / 255, (f >> 8 & 255) / 255, (255 & f) / 255] }, isEmpty: function(f) { for (var e in f)
|
||
if (f.hasOwnProperty(e)) return !1;
|
||
return !0 }, Wg: function(f, e) { return 0 <= e && f.splice(e, 1), f }, startsWith: function(f, e) { return f.startsWith ? f.startsWith(e) : f.substr(0, e.length) === e }, deleteItemFromArray: function(f, e) { return e = b.indexOf(f, e), b.Wg(f, e) }, deleteItemFromArrayByIndex: function(f, e) { return b.Wg(f, e) }, filter: function(f, t, r) { var i = []; return b.Cg(f, function(f, e) { t.call(r, f, e) && i.push(f) }), i }, indexOf: function(f, e) { if (f && f.length) { if (f.indexOf) return f.indexOf(e); for (var t = 0; t < f.length; t += 1)
|
||
if (f[t] === e) return t } return -1 }, Gg: function(f, e) { return f.endsWith ? f.endsWith(e) : !(f.length < e.length) && f.substr(f.length - e.length) == e }, bind: (r = !1, Boolean(Function.prototype.bind) && (r = !0), function(f, e) { var t = 2 < arguments.length ? Array.prototype.slice.call(arguments, 2) : null; return r ? t ? (t.unshift(e), f.bind.apply(f, t)) : f.bind(e) : function() { return f.apply(e, t || arguments) } }), setOptions: function(f, e) { return f.opts = assign({}, f.opts, e = e || {}), f.opts }, yn: function(f, e, t) { return "function" == typeof e ? this.Hg(f, !0, this.Vg(e, t, 1)) : this.Hg(f, !0) }, Hg: function(t, r, i, f, e, o, n) { var a; if (void 0 === (a = i ? e ? i(t, f, e) : i(t) : a)) { if (!this.$g(t)) return t; if (f = this.isArray(t)) { if (a = this.Yg(t), !r) return this.Kg(t, a) } else { var l = Object.prototype.toString.call(t),
|
||
s = "[object Function]" == l; if ("[object Object]" != l && "[object Arguments]" != l && (!s || e)) return e ? t : {}; if (a = this.Xg(s ? {} : t), !r) return this.baseAssign(a, t) }
|
||
n = n || []; for (var d = (o = o || []).length; d--;)
|
||
if (o[d] == t) return n[d];
|
||
o.push(t), n.push(a), (f ? this.Zg : this.Qg)(t, function(f, e) { a[e] = b.Hg(f, r, i, e, t, o, n) }) } return a }, baseAssign: function(f, e) { return null == e ? f : this.tM(e, Object.keys(e), f) }, $g: function(f) { var e = typeof f; return !!f && ("object" == e || "function" == e) }, rM: function(f) { return !!f && "object" == typeof f }, nM: function(f) { return "number" == typeof f && -1 < f && f % 1 == 0 && f <= 9007199254740991 }, Yg: function(f) { var e = f.length,
|
||
t = new Array(e); return e && "string" == typeof f[0] && Object.hasOwnProperty.call(f, "index") && (t.index = f.index, t.input = f.input), t }, Kg: function(f, e) { var t = -1,
|
||
r = f.length; for (e = e || Array(r); ++t < r;) e[t] = f[t]; return e }, Xg: function(f) { return new(f = "function" == typeof(f = f.constructor) && f instanceof f ? f : Object) }, Vg: function(o, n, f) { if ("function" != typeof o) return this.identity; if (void 0 === n) return o; switch (f) {
|
||
case 1:
|
||
return function(f) { return o.call(n, f) };
|
||
case 3:
|
||
return function(f, e, t) { return o.call(n, f, e, t) };
|
||
case 4:
|
||
return function(f, e, t, r) { return o.call(n, f, e, t, r) };
|
||
case 5:
|
||
return function(f, e, t, r, i) { return o.call(n, f, e, t, r, i) } } return function() { return o.apply(n, arguments) } }, Zg: function(f, e) { for (var t = -1, r = f.length; ++t < r && !1 !== e(f[t], t, f);); return f }, identity: function(f) { return f }, iM: function(l) { return function(f, e, t) { for (var r = b.eM(f), i = t(f), o = i.length, n = l ? o : -1; l ? n-- : ++n < o;) { var a = i[n]; if (!1 === e(r[a], a, r)) break } return f } }, Qg: function(f, e) { return b.iM()(f, e, Object.keys) }, eM: function(f) { return b.$g(f) ? f : Object(f) }, tM: function(f, e, t) { t = t || {}; for (var r = -1, i = e.length; ++r < i;) { var o = e[r];
|
||
t[o] = f[o] } return t }, oM: function() { return !1 }, aM: "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=", uM: Date.now ? function() { return Date.now() } : function() { return (new Date).getTime() }, sM: function(f, e, t, r) { var i, o, n, a, l, s, d; return a = r ? (i = 0, n = this.uM, function() { if ((o = n()) - i < e) return !1;
|
||
i = o, f.apply(t, arguments) }) : (d = function() { l = !1, s && (a.apply(t, s), s = !1) }, function() { l ? s = arguments : (l = !0, f.apply(t, arguments), setTimeout(d, e)) }) }, format: function(f, e) { return f === f << 0 ? f : +parseFloat(f + "").toFixed(e || 0) }, isArray: Array.isArray || function(f) { return this.is(f, "array") }, is: function(f, e) { return Object.prototype.toString.call(f).split(" ")[1].slice(0, -1).toLowerCase() === e.toLowerCase() }, includes: "function" == typeof Array.prototype.includes ? function(f, e) { return f.includes(e) } : function(f, e) { return -1 !== this.indexOf(f, e) }, fM: function(f) { var e = 0; if (0 !== f.length)
|
||
for (var t = 0, r = f.length; t < r; t += 1) e = (e << 5) - e + f.charCodeAt(t), e &= e; return e }, hM: function(f, e) { e = e ? Math.ceil(parseInt(e.substr(6)) / 24) : 1; for (var t = "", r = 0, i = f.length; r < i; r++) t += String.fromCharCode((f.charCodeAt(r) - 256 - e + 65535) % 65535); return t }, cM: function(f, e) { var t = (f + "").slice(-2),
|
||
r = (e + "").slice(-2),
|
||
i = (f = f.slice(0, -2), e = e.slice(0, -2), parseInt((r + t).slice(1))),
|
||
o = Math.ceil(i / 250) % 2 ? 1 : -1,
|
||
i = 1 < i / 500 ? 1 : -1; return f -= parseInt("1" + t) / 3e3 * o, e -= parseInt("1" + r) / 3e3 * i, new LngLat$2(parseFloat(f).toFixed(5), parseFloat(e).toFixed(5)) }, vM: function(f) { return "undefined" != typeof JSON && JSON.stringify ? b.fM(JSON.stringify(f)) : null }, lM: function(f, e) { var t = "_amap_hash"; return !e && f.hasOwnProperty(t) || (e = b.vM(f)) && (f[t] = e), f[t] }, parseLngLatData: function(f) { if (b.isArray(f)) { var e; if (!b.isArray(f[0])) return "string" == (e = typeof f[0]) || "number" == e ? new LngLat$2(f[0], f[1]) : f; for (var t = 0; t < f.length; t += 1) f[t] = b.parseLngLatData(f[t]) } return f }, dM: function(f) { for (var e = [], t = 0, r = f.length; t < r; t += 1) e[t] = [f[t].x, f[t].y]; return e }, bM: function(f) { return b.isArray(f) ? new Size(f[0], f[1]) : f }, hp: function(f, e) { var t, r = [0, 0],
|
||
i = b.getOptimalZoom(e.viewState.zoom); return f && LocalZoom <= i ? (i = lcs.getSize(), e = e.viewState.centerCoord, e = lcs.getLocalByCoord([e[0], e[1]]), t = f.x - e.x, e = f.y - e.y, 0 != t && (t *= i[0], r[0] = t), 0 != e && (e *= i[1], r[1] = e)) : f && (r[0] += f.center[0], r[1] += f.center[1]), r }, dS: function(f, e) { return f >= e[0] && f <= e[1] }, kD: function(f, e, t) { return void 0 === t && (t = !1), f = (f = void 0 === f ? "" : f).split(",")[0] || "", !t && f && e && TagMap[e] || "all" }, VF: function(f, e, t) { return !(t = void 0 !== t && t) && f && e && TagMap[e] || "all" }, LD: function(f, e) { return !(!f || !e) && (f = this.iN(f), this.iN(e) <= f) }, SD: function(f) { var e; switch (f = void 0 === f ? "all" : f) {
|
||
case "lite":
|
||
e = 0; break;
|
||
case "left":
|
||
e = 1; break;
|
||
default:
|
||
e = 2 } return e }, pW: function(f) { var e; switch (f = void 0 === f ? 2 : f) {
|
||
case 0:
|
||
e = exports.zB.LITE; break;
|
||
case 1:
|
||
e = exports.zB.LEFT; break;
|
||
default:
|
||
e = exports.zB.ALL } return e }, iN: function(f) { var e = 0; switch (f) {
|
||
case "lite":
|
||
e = 0; break;
|
||
case "left":
|
||
e = 1; break;
|
||
case "all":
|
||
e = 2 } return e }, loadBaxia: function(e) { var f, t;
|
||
window || e({ code: "0", I8t: "霸下加载失败" }), window.__AMap_web_baxia__ ? e({ code: "2", I8t: "霸下已加载,无需重复加载" }) : (window.__AMap_web_baxia__ = !0, f = document.body || document.head, (t = document.createElement("script")).type = "text/javascript", t.src = "//g.alicdn.com/??AWSC/AWSC/awsc.js,sd/baxia-entry/baxiaCommon.js", t.onerror = function(f) { window.__AMap_web_baxia__ = !1, e({ code: "0", I8t: "霸下加载失败" }) }, t.onload = function() { e({ code: "1", I8t: "霸下加载成功" }) }, f.appendChild(t)) }, getMarkUrl: function() { return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAAS1BMVEVHcEyWlpaOjo6NjY2QkJCPj4+SkpKNjY2Ojo6Ojo6YmJiZmZmOjo6Ojo6MjIyLi4uFhYWxsbGurq6rq6ugoKDMzMyMjIyIiIh/f3+kL2ynAAAAFnRSTlMACImbKUo47150Ehzdrcy731qBodA76gxQtQAACo1JREFUeNrt3FlyIysQBdDLPENJsm/W/lf6QiCpvYRXNuejI2r4yS5IZwI2tm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btv875ZPHn5Xd/SAN/hhV5r8udcoZGgf+GBMskCvJnixQK/6YxAjAkBZPPeBvsHeHybIBQJSEpxEUfj8Vh5wGSyVKKiow/5ERoJwh2QqWPFhJjcT0F/4DimuBcsQM8wCg0iDJES0UCfzmJJgS4LsIe/IAslQAmRyaDU+RGlAc+KV4KnwfD6cQ6zfgqQHAFxTylf/EwZ4P/FKP0wOITcHL6RHFYnEkg1vDIXtJv27SJ0yOCUA8Q4ENCY2pGTwl0ozTZMDL0ejxeyivB4UWTyVUEyxujICPhqQwA0AbYeBxOgCRrPgtbGwiZGuSAFgTSHYLuHjvQnbtNCMAhGTOjFjWaAgOv0CJJpDSjcvIbAAia2UE4jgooSWLd8b/Pq1jxKJFaBQuLXvdecpxMGGqogBlYSUBTWry79a/JgB3UVYapiLVDjkcrsyTHDePIgaTllfE7ICTCAA2NXK+oM4DYMDUzhugKT0qXJZiVXg6ZlQ5DkmYGpEde17zo2kaADkYoJ0WAOx5AIBvpMF1FCz2NtKKM+NJ0/lUSeHAlJhCS5/k4OhmuB6IKwnU84bJj4TLaMED2ekqJ82M8zXKDUmGEW2XjKdMoYPv7Hg6qPBiOQCY0+CCHKseJNmixxrIjxxNEJIr32mZH1ZpCfM6slsgScJHoEKUqnA5NhmS7OwKb3Xe0e4ImBwNABsYQnnXfsmx4x9DBz++cS3FmUpyaJctNQClVjQyYgGgxeFJSQXwHWKUiMkPksYqvDkmXIjPgNKdQpFbAYCbuBLHsaKIdCsqMUC5mUpaAAqFA4sKp5Ch9hHXtVcXKvKqJEAFjuSTGADIDwkiZF+vsGOSoLsI+2DEVLni9PW822gCed5xIWruXLBLA2DzSnDJpy5Su3bq68yvOAH4NIQMJhZYNkzm/H7lgNeHL1bhKp5x8qzGZXyJwmIThawmxRmYODxpakNK6EzrxRAwufMO+C7V4VrsbQSRrxYLnu6nn+GYKqyzsUmsUaFQf5Y4qvawojF9unx22Mu1O96slbzkAZQUAb9mbpMjOWAkwGsypBwqnix7Wek/YFqL/lkPdiBGXEuSqp0CgnGPgxyvtuZdwBqmlR8Ck2YB1vNpiH8NGQNAVRqLi7DD4cWLXuFSDhOpAQxmAFka8H12TN7rT2Mffn55HxvX/VxwGV4apk84VaIC1jdOdO89HZE8EyQlAYUNTzUoPFkZwP2UHnE5NeCtiV3LdUk5xhWYefV7hyRngjC00D8tsArhR42fo8VFFOM+O/aGFoCLr7nuZHgTAhmdtSV/rcad2uhMjuSBxgI8ZmNfZGDxHldipa8V/LKmbzbzRmFbTb5m7SR5ft/FAlAyPl8ds9C/nWkWxhrXdFC9G/osw4XzDHlNh5yR25zmLqb0XsGYFdFDMpTXde7psAOIweEqsis/hqqmB1BoAAzKebuf7n07CVPJWOzZAGA+vp2t8WTQHipKBYCicBWWWsXHcVY8OUl4DeoU2Cy+T72a1RI4yu0kj0f5N1YsDVBIaTcLQJMh4lJUJCnnSBZT6MpZaMbBc/Z80gFkDmXiHP66n3b1/H6+XwFErzClkQouQh8Z36lTGIzHm68MHHCkpMz6nuXoVPj4OVbaWXBNB5FOCcbVDpTUawF8ELIm7yqrBWZzm8S/5zpi0trolKL/7ONHueGSChv8HPeDrQqDRMBWnUQDQY76LvcSI7BSgapcxMyLlQQaLkmLW6d1jsDKI6vTYOIB3EoSv/KjIT0AJV+AKjlnBWTvUhOuajhaXIF1n76eK3kdAEoQVkaYAIyAqbEAcKLXS/VweBpSsGRnKoVNS8JlqCp+ruGKsFsA+rwh2ywVOO8ovPlO/+PY4kqAjUUBfvg11z/BV+0V4BWuIzIMklW7jDmlD0BLNgFoX1bzlNAK8P7J/kqAUVYRoOdte/8SMuiYcTE+DZLBOLwlsUA9cTtjrKdwaA/g3/KdRTpvQBlrNDQAlRQxsVzwmEYgZczPFlv1r3m88ncRymHcvNNE48mwROYiBm/s87ax6lJfPQPwVU45kgXgdSWDJLxp8UC6FQB+zuwvhyfPgz0jHJiKGzQA3Mi4ihJbEEYA/njcMlDuXydDixmh4yUHzoDXzK46loIp8tUKWSh//xJhK7iOHE2lBBPZ8HI/eI67XV9XChYz49Rr68IpwK62Z7BGAHAMjRRpyeIirLYwgVzzPQS8PM40H6cRpJqM6Xa2GgDdZ3yhF6jHeQMM3280smuvcB2JNzTGdSolkBaLY1S3FsgZrE3DrVbAvN4YUSWhA4ZYFIc3W3AtR5jB+rldkxITlkwKq3Ez2x0UMQC+3VrCMqvp893ppIQZl5ItPla/kgMZmpthd7zoFucU6CRH8l8HpiINkIq2wq4CpxUupTFDOd3U6m/zSt7vYDs+ShwUdm2B51y3mL4ECH3t5ivHgOsoCk+appGsGUA671iNuxuBrNr+KIXedaBN8XMiay1hc6Cw6k6RiMtIwQNlBnaO5AHAswKpKS/vYOFaLQAGOZIF1Hy/rqE/ufNWTg0YMrRYcB1RHveD5JCQsXSxQCCgkwLgdQ9kL8Crqted7Npq2pktJyWtjBsA53ElLlWKzIMKo0JFBQC3tFaz3wlADmnq39Zm4nAZgJW0Frmnzoyr8SNQaqB7zW/lGBwWTb+ev6teq91r7aMwAeXWAs2PE1lRZ1xNZE8eWgqePBPcu8NRgRmOq7ZDOXicr63sAtSgj5PVuJJ9Z8SFxJbxj5oX1rmMzyakXvFo0n0agkCRr7tVeGV9zeNxK1iVglG4kCZuRu60waQ+C1dA51znawA81+ac05VkT1HumGZrX6zCklLBpXhq2DiCvFJ+CdWCYcVj2KoIG6CEtgZ4inTtfrZDqAFXZkOYWV27gqfSyDmLszOdInWFq74SjJTcovWYGi0mQ4+Lyu7e+Tps+E/unImdDI2hYFHvs1hWDgesq8kx4Yp8GiInzWAEfsqd5wPKaIscOPBR5kWOgSb/OOWjfMYVGZEv7fPPXyZ1ds4Jen1GPGUG0fioVPNuP31sct5xaTYWfE4bvmr/DtiTEajM8x3qJBHLjxqv5JM94pcw4l65QDsgPyJgKfG9Sf2jrvmWhJdS8Eso10hZv2v4cYTQ36eTVZdWMCmp+F38bZBkkI6fjPhE/zm4YITJ4qlVhV+jxFnk9NprdTT4UEYMrOh1EPMpBmnrEX6RJKsA6FqzeFaPl8QBZA6gfar/5PHr2GQVgELvmeADdXk/UKvA9ez4/TRfR7Ua5W7xESoGPX49xfZeunFVpKe8WsMweyT8fpoW0HR4ip20AFRnSAp/wcrzTgwWl9Ztiz+iSgGgeOBvMpLwNMTiD1KaHVM6E/4gy5Ax2fsfHQFu/5nVbdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2a/gPlTyc0gUolCIAAAAASUVORK5CYII=" } };
|
||
|
||
function c(f) { var e = +new Date,
|
||
t = Math.max(0, (Browser.android ? 50 : 20) - (e - o)); return o = e + t, globalInstance.setTimeout(f, 50) }
|
||
|
||
function u(f) { globalInstance.clearTimeout(f) }
|
||
|
||
function y(f) { for (var e, t = ["webkit", "moz", "o", "ms"], r = 0; r < t.length && !e; r += 1) e = globalInstance[t[r] + f]; return e }
|
||
o = 0, Browser.DW ? (a = c, l = u, f.requestAnimFrame = function(f, e, t, r) { if (!t) return a(function() { e ? b.bind(f, e).call(e, r) : f() });
|
||
e ? b.bind(f, e).call(e, r) : f() }, f.cancelAnimFrame = function(f) { f && l.call(globalInstance, f) }) : (s = globalInstance.requestAnimationFrame || y("RequestAnimationFrame") || c, d = globalInstance.cancelAnimationFrame || y("CancelAnimationFrame") || y("CancelRequestAnimationFrame") || u, f.requestAnimFrame = function(f, e, t, r) { if (!t) return s(function() { e ? b.bind(f, e).call(e, r) : f() });
|
||
e ? b.bind(f, e).call(e, r) : f() }, f.cancelAnimFrame = function(f) { f && d.call(globalInstance, f) }), Browser.DW || (f.requestIdleCallback = globalInstance.requestIdleCallback ? function(f, e) { return globalInstance.requestIdleCallback(f, e) } : function(f, e) { void 0 === e && (e = {}); var t = b.uM(); return setTimeout(function() { f({ didTimeout: !1, timeRemaining: function() { return Math.max(0, 70 - (b.uM() - t)) } }) }, e.timeout || 0) }, f.cancelIdleCallback = globalInstance.cancelIdleCallback ? function(f) { return globalInstance.cancelIdleCallback(f) } : function(f) { clearTimeout(f) }); var b = f; return b }(),
|
||
extendStatics = function(f, e) { return (extendStatics = Object.setPrototypeOf || ({ __proto__: [] }
|
||
instanceof Array ? function(f, e) { f.__proto__ = e } : function(f, e) { for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && (f[t] = e[t]) }))(f, e) };
|
||
|
||
function __extends(f, e) { if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
||
|
||
function t() { this.constructor = f }
|
||
extendStatics(f, e), f.prototype = null === e ? Object.create(e) : (t.prototype = e.prototype, new t) }
|
||
|
||
function __decorate(f, e, t, r) { var i, o = arguments.length,
|
||
n = o < 3 ? e : null === r ? r = Object.getOwnPropertyDescriptor(e, t) : r; if ("object" == typeof Reflect && "function" == typeof Reflect.yV) n = Reflect.yV(f, e, t, r);
|
||
else
|
||
for (var a = f.length - 1; 0 <= a; a--)(i = f[a]) && (n = (o < 3 ? i(n) : 3 < o ? i(e, t, n) : i(e, t)) || n); return 3 < o && n && Object.defineProperty(e, t, n), n }
|
||
|
||
function __awaiter(f, n, a, l) { return new(a = a || Promise)(function(t, e) {
|
||
function r(f) { try { o(l.next(f)) } catch (f) { e(f) } }
|
||
|
||
function i(f) { try { o(l.throw(f)) } catch (f) { e(f) } }
|
||
|
||
function o(f) { var e;
|
||
f.done ? t(f.value) : ((e = f.value) instanceof a ? e : new a(function(f) { f(e) })).then(r, i) }
|
||
o((l = l.apply(f, n || [])).next()) }) }
|
||
|
||
function __generator(r, i) { var o, n, a, l = { label: 0, y8t: function() { if (1 & a[0]) throw a[1]; return a[1] }, m8t: [], b8t: [] },
|
||
s = { next: f(0), throw: f(1), return: f(2) }; return "function" == typeof Symbol && (s[Symbol.iterator] = function() { return this }), s;
|
||
|
||
function f(t) { return function(f) { var e = [t, f]; if (o) throw new TypeError("Generator is already executing."); for (; l = s && e[s = 0] ? 0 : l;) try { if (o = 1, n && (a = 2 & e[0] ? n.return : e[0] ? n.throw || ((a = n.return) && a.call(n), 0) : n.next) && !(a = a.call(n, e[1])).done) return a; switch (n = 0, (e = a ? [2 & e[0], a.value] : e)[0]) {
|
||
case 0:
|
||
case 1:
|
||
a = e; break;
|
||
case 4:
|
||
return l.label++, { value: e[1], done: !1 };
|
||
case 5:
|
||
l.label++, n = e[1], e = [0]; continue;
|
||
case 7:
|
||
e = l.b8t.pop(), l.m8t.pop(); continue;
|
||
default:
|
||
if (!(a = 0 < (a = l.m8t).length && a[a.length - 1]) && (6 === e[0] || 2 === e[0])) { l = 0; continue } if (3 === e[0] && (!a || e[1] > a[0] && e[1] < a[3])) l.label = e[1];
|
||
else if (6 === e[0] && l.label < a[1]) l.label = a[1], a = e;
|
||
else { if (!(a && l.label < a[2])) { a[2] && l.b8t.pop(), l.m8t.pop(); continue }
|
||
l.label = a[2], l.b8t.push(e) } }
|
||
e = i.call(r, l) } catch (f) { e = [6, f], n = 0 } finally { o = a = 0 }
|
||
if (5 & e[0]) throw e[1]; return { value: e[0] ? e[1] : void 0, done: !0 } } } }
|
||
|
||
function __spreadArrays() { for (var f = 0, e = 0, t = arguments.length; e < t; e++) f += arguments[e].length; for (var r = Array(f), i = 0, e = 0; e < t; e++)
|
||
for (var o = arguments[e], n = 0, a = o.length; n < a; n++, i++) r[i] = o[n]; return r }
|
||
exports.Ln = function() { return exports.Ln = Object.assign || function(f) { for (var e, t = 1, r = arguments.length; t < r; t++)
|
||
for (var i in e = arguments[t]) Object.prototype.hasOwnProperty.call(e, i) && (f[i] = e[i]); return f }, exports.Ln.apply(this, arguments) }; var _SuppressedError = "function" == typeof SuppressedError ? SuppressedError : function(f, e, t) { return (t = new Error(t)).name = "SuppressedError", t.error = f, t.S8t = e, t },
|
||
LabelFormat = function() {
|
||
function f() { this.Fs = {}, this.Es = {}, this.Ts = [] } return f.prototype.Ns = function(f, e) { e.lang && (this.lang = e.lang) }, f.prototype.rV = function(f, e) { return f }, f.prototype.Ws = function(f, e) { for (var t = this.Es, f = labelsUtil.EQ(f = void 0 === f ? "" : f, e = void 0 === e ? [] : e), r = labelsUtil.aQ(f), i = 0; i < r.length; i++) t[r[i]] = 1 }, f.id = "labelFormat", f }();
|
||
|
||
function noop$1() {} var URLObject = "undefined" != typeof window ? window.URL || window.webkitURL || { createObjectURL: function() { console.error("URL not exist, please use more popular browser") } } : URL || webkitURL || { createObjectURL: function() { console.error("URL not exist, please use more popular browser") } },
|
||
MockMap = function() {
|
||
function f() { this.gV = {} } return f.prototype.has = function(f) { return Boolean(this.gV[f]) }, f.prototype.set = function(f, e) { return this.gV[f] = e }, f.prototype.get = function(f) { return this.gV[f] }, f.prototype.pV = function(f) { delete this.gV[f] }, f.prototype.clear = function() { this.gV = {} }, f.prototype.forEach = function(f) { for (var e in this.gV) this.gV.hasOwnProperty(e) && f(this.gV[e]) }, f }(),
|
||
AdaptorMap = globalInstance.Map || MockMap,
|
||
SmartTypedArray = function() {
|
||
function f(f, e) { void 0 === e && (e = 1024), this.type = f, this.length = 0, this.uf = 0, this.value = this.cf(e) } return f.prototype.set = function(f) { this.check(f) && (f.length < this.uf ? this.value.set(f) : (this.cf(f.length), this.value.set(f), this.length = f.length)) }, f.prototype.check = function(f) { if (Array.isArray(f)) return !0; var e = !1; switch (this.type) {
|
||
case "uint8":
|
||
e = f instanceof Uint8Array; break;
|
||
case "int8":
|
||
e = f instanceof Int8Array; break;
|
||
case "uint16":
|
||
e = f instanceof Uint16Array; break;
|
||
case "int16":
|
||
e = f instanceof Int16Array; break;
|
||
case "uint32":
|
||
e = f instanceof Uint32Array; break;
|
||
case "int32":
|
||
e = f instanceof Int32Array; break;
|
||
case "float32":
|
||
e = f instanceof Float32Array; break;
|
||
case "float64":
|
||
e = f instanceof Float64Array; break;
|
||
default:
|
||
e = !1 } return e }, f.prototype.subarray = function(f, e) { return this.value.subarray(f, e) }, f.prototype.ff = function(f) { this.uf < f && this.cf(f), this.length = f }, f.prototype.cf = function(f) { var e = this.pf(),
|
||
t = this.value; return this.value = new e(f), t && this.value.set(t), this.uf = f, this.value }, f.prototype.pf = function() { var f = Float32Array; switch (this.type) {
|
||
case "uint8":
|
||
f = Uint8Array; break;
|
||
case "int8":
|
||
f = Int8Array; break;
|
||
case "uint16":
|
||
f = Uint16Array; break;
|
||
case "int16":
|
||
f = Int16Array; break;
|
||
case "uint32":
|
||
f = Uint32Array; break;
|
||
case "int32":
|
||
f = Int32Array; break;
|
||
case "float32":
|
||
f = Float32Array; break;
|
||
case "float64":
|
||
f = Float64Array; break;
|
||
default:
|
||
f = Float32Array } return f }, __decorate([InnerClass("SmartTypedArray")], f) }(),
|
||
INF = (function(f) { f[f.fontWidth = 0] = "fontWidth", f[f.fontHeight = 1] = "fontHeight", f[f.horiBearingX = 2] = "horiBearingX", f[f.horiBearingY = 3] = "horiBearingY", f[f.horiAdvance = 4] = "horiAdvance", f[f.posX = 5] = "posX", f[f.posY = 6] = "posY", f[f.iconWidth = 7] = "iconWidth", f[f.iconHeight = 8] = "iconHeight" }(exports.dY || (exports.dY = {})), 1e20),
|
||
ControlChars = [
|
||
[0, 31],
|
||
[127, 159]
|
||
],
|
||
ZeroWidthChars = [
|
||
[8203, 8207]
|
||
],
|
||
f = new SmartTypedArray("float64", 4096),
|
||
d = new SmartTypedArray("float64", 4096),
|
||
z = new SmartTypedArray("float64", 4096),
|
||
v = new SmartTypedArray("float64", 4096),
|
||
ua = navigator.userAgent,
|
||
TinySDF = function() {
|
||
function f(f, e, t, r, i, o, n) { this.fontSize = f || 24, this.buffer = void 0 === t ? 3 : t, this.MU = i || .25, this.fontFamily = o || "sans-serif", this.fontWeight = n || "lighter", this.radius = r || 8, this.size = e, this.xU(), f = e[0] * e[1], this.TU = new SmartTypedArray("float64", f), this.AU = new SmartTypedArray("float64", f), t = 0 <= ua.indexOf("Gecko/") || 0 <= ua.indexOf("Windows"), this.wU = Math.round(e[1] / 2 * (t ? 1.2 : 1)) } return f.prototype.bU = function(f) { this.size = f || [], this.xU(), this.mU() }, f.prototype.Ce = function(f) { var e = this.size,
|
||
t = e[0],
|
||
r = t * (e = e[1]); if (i = this.Nz) { i.clearRect(0, 0, t, e), i.fillText(f, this.buffer, this.wU); var o = i.getImageData(0, 0, t, e),
|
||
n = new Uint8ClampedArray(r),
|
||
a = ((i = new Array(9).fill(0))[0] = 1, i[1] = 1, f.charCodeAt(0)); if (this.RU(a)) return { bitmap: n, info: i }; for (var l = INF, s = INF, d = 0, c = 0, u = 0; u < r; u++) { var y, b = u - (y = Math.floor(u / t)) * t,
|
||
p = o.data[4 * u + 3] / 255;
|
||
0 < p && (y < l && (l = y), b < s && (s = b), d < y && (d = y), c < b) && (c = b), this.TU.value[u] = 1 == p ? 0 : 0 == p ? INF : Math.pow(Math.max(0, .5 - p), 2), this.AU.value[u] = 1 == p ? INF : 0 == p ? 0 : Math.pow(Math.max(0, p - .5), 2) } var i = this.buffer,
|
||
f = this.getWidth(f, c - s),
|
||
a = 32 === a ? [6, 6, 0, -21, 9, 0, 0, t, e] : [f, d - l, s, -l + i, f, s - 3, l - 3, t, e]; for (edt(this.TU.value, t, e), edt(this.AU.value, t, e), u = 0; u < r; u++) { var S = this.TU.value[u] - this.AU.value[u],
|
||
S = Math.max(0, Math.min(255, Math.round(255 - 255 * (S / this.radius + this.MU))));
|
||
n[u] = S } return { bitmap: n, info: a } } return {} }, f.prototype.getWidth = function(f, e) { var t; switch (f) {
|
||
case "y":
|
||
case "A":
|
||
case "T":
|
||
case "V":
|
||
case "W":
|
||
case "Y":
|
||
t = e; break;
|
||
default:
|
||
t = e + 2 } return t }, f.prototype.measureText = function(f) { return this.Nz.measureText(f) }, f.prototype.xU = function() { var f = this.size;
|
||
this.canvas || (this.canvas = document.createElement("canvas")), this.canvas.width = f[0], this.canvas.height = f[1], this.Nz = this.canvas.getContext("2d", { C8t: !0 }), this.Nz && (this.Nz.font = this.fontWeight + " " + this.fontSize + "px " + this.fontFamily, this.Nz.textBaseline = "middle", this.Nz.fillStyle = "black") }, f.prototype.mU = function() { var f = this.size,
|
||
e = ((e = f[0] * (f = f[1])) > this.AU.uf && (this.AU.ff(e), this.TU.ff(e)), 0 <= ua.indexOf("Gecko/") || 0 <= ua.indexOf("Windows"));
|
||
this.wU = Math.round(f / 2 * (e ? 1.2 : 1)) }, f.prototype.RU = function(f) { var e = this.SU(f, ControlChars),
|
||
f = this.SU(f, ZeroWidthChars); return e || f }, f.prototype.SU = function(f, e) { for (var t = 0, r = e; t < r.length; t++) { var i = r[t]; if (f >= i[0] && f <= i[1]) return !0 } }, f }();
|
||
|
||
function expandTypeArray(e) { f.ff(e), d.ff(e), z.ff(e), v.ff(e) }
|
||
|
||
function edt(e, t, r) { f.uf < r && expandTypeArray(r); for (var i = 0; i < t; i++) { for (var o = 0; o < r; o++) f.value[o] = e[o * t + i]; for (edt1d(f.value, d.value, v.value, z.value, r), o = 0; o < r; o++) e[o * t + i] = d.value[o] } for (f.uf < t && expandTypeArray(r), o = 0; o < r; o++) { for (i = 0; i < t; i++) f.value[i] = e[o * t + i]; for (edt1d(f.value, d.value, v.value, z.value, t), i = 0; i < t; i++) e[o * t + i] = Math.sqrt(d.value[i]) } }
|
||
|
||
function edt1d(f, e, t, r, i) { r[t[0] = 0] = -INF, r[1] = +INF; for (var o = 1, n = 0; o < i; o++) { for (var a = (f[o] + o * o - (f[t[n]] + t[n] * t[n])) / (2 * o - 2 * t[n]); a <= r[n];) n--, a = (f[o] + o * o - (f[t[n]] + t[n] * t[n])) / (2 * o - 2 * t[n]);
|
||
t[++n] = o, r[n] = a, r[n + 1] = +INF } for (n = o = 0; o < i; o++) { for (; r[n + 1] < o;) n++;
|
||
e[o] = (o - t[n]) * (o - t[n]) + f[t[n]] } } var LangConf = { ch: { type: "ch", size: [32, 32], fontSize: 24, name: "中文简体" }, en: { type: "en", size: [32, 32], fontSize: 24, name: "英文" }, th: { type: "th", size: [32, 32], fontSize: 24, name: "泰语" }, my: { type: "my", size: [56, 56], fontSize: 24, name: "缅甸语" }, ja: { type: "ja", size: [32, 32], fontSize: 24, name: "日文" }, km: { type: "km", size: [40, 40], fontSize: 24, name: "高棉语" }, PU: { type: "lao", size: [40, 40], fontSize: 24, name: "老挝语" }, $U: { type: "arabic", size: [40, 40], fontSize: 24, name: "阿拉伯语" }, default: { type: "ch", size: [32, 32], fontSize: 24, name: "汉语" } },
|
||
Lang = function() {
|
||
function f(f) { var e = (f = this.CU = f).type,
|
||
t = f.size,
|
||
f = f.fontSize,
|
||
e = (this.type = e, this.width = t[0]),
|
||
t = this.height = t[1];
|
||
this.NU = new TinySDF(f, [e, t], (e - f) / 2, 8, .25, "PingFang SC", "normal") } return f.prototype.Ce = function(f) { return this.type === LangConf.PU.type ? (this.width = 10 * Math.floor(this.NU.measureText(f).width / 10) + 10 + LangConf.PU.fontSize / 2, this.NU.bU([this.width, this.height])) : (this.type === LangConf.my.type || this.type === LangConf.PU.type || this.type === LangConf.th.type || this.type === LangConf.$U.type || this.type === LangConf.km.type) && 1 < f.length && (this.width = Math.floor(this.CU.size[0] * f.length * .5), this.NU.bU([this.width, this.height])), this.NU.Ce(f) }, f }(),
|
||
LangManager = function() {
|
||
function r() { this.OU = {} } return r.gG = function(f) { return f = f.split("|"), f = parseInt(f[0], 10), this.IU(f) }, r.kU = function(f) { for (var e = [], t = 0; t < f.length; t++) e.push(f.charCodeAt(t)); return r.gG(e.join("|")) }, r.LU = function(f) { return f = r.kU(f), -1 !== r.EU.indexOf(f) }, r.IU = function(f) { return 32 < f && f < 591 ? "en" : 4096 <= f && f <= 4255 ? "my" : 3584 <= f && f <= 3711 ? "th" : 6016 <= f && f <= 6143 ? "km" : 3712 <= f && f <= 3839 ? "lao" : 1536 <= f && f <= 1791 ? "arabic" : "ch" }, r.prototype.D$ = function(f) { var e, t = this.OU[f = void 0 === f ? "ch" : f]; return t || (e = LangConf[f] || LangConf.default, t = new Lang(e), this.OU[f] = t), t }, r.EU = [LangConf.my.type, LangConf.km.type, LangConf.PU.type], r }(),
|
||
CHN = [
|
||
["90.398619", "47.62125"],
|
||
["90.493569", "47.512157"],
|
||
["90.491338", "47.430787"],
|
||
["90.552986", "47.391174"],
|
||
["90.522859", "47.318461"],
|
||
["90.584915", "47.224989"],
|
||
["90.782025", "47.019194"],
|
||
["90.923517", "46.97996"],
|
||
["90.986624", "46.807403"],
|
||
["91.082926", "46.722064"],
|
||
["91.051812", "46.596604"],
|
||
["91.100242", "46.564068"],
|
||
["91.102624", "46.537196"],
|
||
["90.935125", "46.300398"],
|
||
["91.032801", "46.126363"],
|
||
["91.055181", "46.011658"],
|
||
["90.741148", "45.713536"],
|
||
["90.699563", "45.544726"],
|
||
["90.700228", "45.504993"],
|
||
["90.795887", "45.449956"],
|
||
["90.832257", "45.31629"],
|
||
["90.919719", "45.26871"],
|
||
["90.920899", "45.225065"],
|
||
["91.136978", "45.244316"],
|
||
["91.253943", "45.164928"],
|
||
["91.372068", "45.142003"],
|
||
["91.45689", "45.18485"],
|
||
["91.624753", "45.098124"],
|
||
["92.062061", "45.11548"],
|
||
["92.497694", "45.030848"],
|
||
["92.887666", "45.075869"],
|
||
["93.513157", "44.997233"],
|
||
["94.22699", "44.694971"],
|
||
["94.374082", "44.542037"],
|
||
["94.620202", "44.47394"],
|
||
["94.737532", "44.366876"],
|
||
["95.002041", "44.282908"],
|
||
["95.42701", "44.324539"],
|
||
["95.440292", "44.292217"],
|
||
["95.365491", "44.054053"],
|
||
["95.549126", "44.026335"],
|
||
["95.883651", "43.431746"],
|
||
["95.911953", "43.287656"],
|
||
["96.385653", "42.919774"],
|
||
["96.41151", "42.75927"],
|
||
["97.176454", "42.824161"],
|
||
["98.198333", "42.682435"],
|
||
["99.505985", "42.597497"],
|
||
["99.964106", "42.676693"],
|
||
["100.259793", "42.666107"],
|
||
["100.320604", "42.718863"],
|
||
["100.867753", "42.700052"],
|
||
["101.814637", "42.530852"],
|
||
["102.090733", "42.250567"],
|
||
["102.451458", "42.173439"],
|
||
["102.716911", "42.181644"],
|
||
["103.426452", "41.910629"],
|
||
["103.858223", "41.830321"],
|
||
["104.537873", "41.903108"],
|
||
["104.55755", "41.881352"],
|
||
["104.554117", "41.69046"],
|
||
["104.929798", "41.682608"],
|
||
["105.010371", "41.620463"],
|
||
["105.220141", "41.778353"],
|
||
["105.732529", "41.977008"],
|
||
["106.776853", "42.319288"],
|
||
["107.167833", "42.354897"],
|
||
["107.458928", "42.487147"],
|
||
["107.937949", "42.433308"],
|
||
["108.241189", "42.489425"],
|
||
["108.84269", "42.425722"],
|
||
["109.022141", "42.487574"],
|
||
["109.290662", "42.465227"],
|
||
["109.534657", "42.500548"],
|
||
["109.723763", "42.60669"],
|
||
["110.100045", "42.671172"],
|
||
["110.420666", "42.80617"],
|
||
["111.005001", "43.354829"],
|
||
["111.446257", "43.521761"],
|
||
["111.555004", "43.519925"],
|
||
["111.780481", "43.697712"],
|
||
["111.925235", "43.719055"],
|
||
["111.936243", "43.796237"],
|
||
["111.863286", "43.902314"],
|
||
["111.643689", "44.039247"],
|
||
["111.386948", "44.360034"],
|
||
["111.610923", "44.793044"],
|
||
["111.742544", "44.988614"],
|
||
["111.9942", "45.118751"],
|
||
["112.435906", "45.103062"],
|
||
["112.61512", "44.956037"],
|
||
["112.806373", "44.882816"],
|
||
["113.624854", "44.775834"],
|
||
["113.896701", "44.9424"],
|
||
["114.104283", "44.984106"],
|
||
["114.437113", "45.233044"],
|
||
["114.543629", "45.41585"],
|
||
["114.742713", "45.46746"],
|
||
["114.977202", "45.40645"],
|
||
["115.36123", "45.421513"],
|
||
["115.688202", "45.487095"],
|
||
["116.023886", "45.712008"],
|
||
["116.163919", "45.717567"],
|
||
["116.251037", "45.785617"],
|
||
["116.213851", "45.874652"],
|
||
["116.246574", "45.98171"],
|
||
["116.56904", "46.316673"],
|
||
["116.83033", "46.413023"],
|
||
["117.353361", "46.390324"],
|
||
["117.41533", "46.528251"],
|
||
["117.39222", "46.582448"],
|
||
["117.411768", "46.610108"],
|
||
["117.618878", "46.628442"],
|
||
["117.72387", "46.549579"],
|
||
["118.312433", "46.768455"],
|
||
["118.774374", "46.71799"],
|
||
["118.828619", "46.795917"],
|
||
["118.912926", "46.804113"],
|
||
["118.941979", "46.764971"],
|
||
["119.028625", "46.769292"],
|
||
["119.119864", "46.669494"],
|
||
["119.724391", "46.623078"],
|
||
["119.791059", "46.707882"],
|
||
["119.884572", "46.701717"],
|
||
["119.896224", "46.880494"],
|
||
["119.836485", "46.899381"],
|
||
["119.742007", "47.13776"],
|
||
["119.30249", "47.404711"],
|
||
["119.315214", "47.461827"],
|
||
["119.134262", "47.517476"],
|
||
["119.10804", "47.64174"],
|
||
["118.755577", "47.747779"],
|
||
["118.55396", "47.96464"],
|
||
["118.177657", "48.02096"],
|
||
["117.82558", "47.987997"],
|
||
["117.388809", "47.612384"],
|
||
["117.082887", "47.796869"],
|
||
["116.816533", "47.867783"],
|
||
["116.452289", "47.808327"],
|
||
["116.270714", "47.845797"],
|
||
["115.938377", "47.653883"],
|
||
["115.559971", "47.900966"],
|
||
["115.500727", "48.161305"],
|
||
["115.791907", "48.279437"],
|
||
["115.776629", "48.537807"],
|
||
["116.042275", "48.826715"],
|
||
["116.024444", "48.890046"],
|
||
["116.709459", "49.880215"],
|
||
["117.07866", "49.723328"],
|
||
["117.482128", "49.648667"],
|
||
["117.801998", "49.554185"],
|
||
["117.858689", "49.620567"],
|
||
["118.068073", "49.643304"],
|
||
["118.210831", "49.759243"],
|
||
["118.358674", "49.80286"],
|
||
["118.37378", "49.853853"],
|
||
["118.468623", "49.857768"],
|
||
["118.559926", "49.957101"],
|
||
["119.082034", "50.01451"],
|
||
["119.311051", "50.169532"],
|
||
["119.328389", "50.327724"],
|
||
["119.175332", "50.320094"],
|
||
["119.103534", "50.373674"],
|
||
["119.103642", "50.409488"],
|
||
["119.224019", "50.469114"],
|
||
["119.262214", "50.625767"],
|
||
["119.470096", "50.763554"],
|
||
["119.480245", "50.910299"],
|
||
["119.734497", "51.106944"],
|
||
["119.73542", "51.228925"],
|
||
["119.789064", "51.243368"],
|
||
["119.787948", "51.298691"],
|
||
["119.896417", "51.365189"],
|
||
["119.889615", "51.410731"],
|
||
["119.950318", "51.426267"],
|
||
["120.067241", "51.699773"],
|
||
["120.632029", "51.963004"],
|
||
["120.755196", "52.16206"],
|
||
["120.733974", "52.23734"],
|
||
["120.60276", "52.318868"],
|
||
["120.688398", "52.529211"],
|
||
["120.459208", "52.615218"],
|
||
["120.046556", "52.554881"],
|
||
["120.004778", "52.785297"],
|
||
["120.275145", "52.889292"],
|
||
["120.877526", "53.323248"],
|
||
["121.231921", "53.310391"],
|
||
["122.338707", "53.534212"],
|
||
["122.443142", "53.474191"],
|
||
["122.84101", "53.486577"],
|
||
["123.278553", "53.592823"],
|
||
["123.480492", "53.533829"],
|
||
["123.518364", "53.587614"],
|
||
["123.901491", "53.509565"],
|
||
["124.129157", "53.379309"],
|
||
["124.260864", "53.404185"],
|
||
["124.447374", "53.252351"],
|
||
["124.696798", "53.233398"],
|
||
["124.854212", "53.143501"],
|
||
["124.877429", "53.19179"],
|
||
["125.14374", "53.233437"],
|
||
["125.500989", "53.129213"],
|
||
["125.53472", "53.084642"],
|
||
["125.631731", "53.108131"],
|
||
["125.776978", "53.000452"],
|
||
["125.732839", "52.906456"],
|
||
["125.842016", "52.927481"],
|
||
["125.973551", "52.795444"],
|
||
["126.049747", "52.829373"],
|
||
["126.137295", "52.788424"],
|
||
["126.136093", "52.7501"],
|
||
["126.082878", "52.727183"],
|
||
["126.094744", "52.66376"],
|
||
["126.01078", "52.632295"],
|
||
["126.225078", "52.557751"],
|
||
["126.227546", "52.502887"],
|
||
["126.28664", "52.498733"],
|
||
["126.378071", "52.405299"],
|
||
["126.365626", "52.334723"],
|
||
["126.460233", "52.313556"],
|
||
["126.457937", "52.278438"],
|
||
["126.370797", "52.21752"],
|
||
["126.587327", "52.146539"],
|
||
["126.544647", "52.022831"],
|
||
["126.483493", "52.004144"],
|
||
["126.489866", "51.963387"],
|
||
["126.757379", "51.72942"],
|
||
["126.769931", "51.638237"],
|
||
["126.737959", "51.604012"],
|
||
["126.870396", "51.541384"],
|
||
["126.8313", "51.449554"],
|
||
["126.939726", "51.411373"],
|
||
["126.952021", "51.35238"],
|
||
["127.007918", "51.339647"],
|
||
["126.930671", "51.194554"],
|
||
["126.950047", "51.077214"],
|
||
["127.328668", "50.761993"],
|
||
["127.324612", "50.674039"],
|
||
["127.399564", "50.585975"],
|
||
["127.336199", "50.480736"],
|
||
["127.39435", "50.441709"],
|
||
["127.374866", "50.346296"],
|
||
["127.622938", "50.242265"],
|
||
["127.624762", "50.159938"],
|
||
["127.524126", "50.053819"],
|
||
["127.569466", "49.832087"],
|
||
["127.686474", "49.798414"],
|
||
["127.716987", "49.69577"],
|
||
["127.838395", "49.617717"],
|
||
["128.185065", "49.56898"],
|
||
["128.533065", "49.633229"],
|
||
["128.791094", "49.618148"],
|
||
["128.84167", "49.562161"],
|
||
["128.811865", "49.506248"],
|
||
["129.022107", "49.485245"],
|
||
["129.11165", "49.389985"],
|
||
["129.230032", "49.429552"],
|
||
["129.343135", "49.392234"],
|
||
["129.383497", "49.461849"],
|
||
["129.526126", "49.451932"],
|
||
["129.593332", "49.316758"],
|
||
["129.745059", "49.313625"],
|
||
["129.972146", "49.057136"],
|
||
["130.243692", "48.89923"],
|
||
["130.444579", "48.939218"],
|
||
["130.526934", "48.889044"],
|
||
["130.693552", "48.907086"],
|
||
["130.705612", "48.869994"],
|
||
["130.580449", "48.630526"],
|
||
["130.630317", "48.609845"],
|
||
["130.648105", "48.52472"],
|
||
["130.790884", "48.525345"],
|
||
["130.778868", "48.413864"],
|
||
["130.875106", "48.300724"],
|
||
["130.708423", "48.108792"],
|
||
["130.914073", "47.945556"],
|
||
["131.01546", "47.736076"],
|
||
["131.552374", "47.750448"],
|
||
["131.621768", "47.692216"],
|
||
["131.711934", "47.740348"],
|
||
["131.958075", "47.703033"],
|
||
["131.995368", "47.741041"],
|
||
["132.235458", "47.739381"],
|
||
["132.340472", "47.796162"],
|
||
["132.546873", "47.750881"],
|
||
["132.655685", "47.89209"],
|
||
["132.654505", "47.979308"],
|
||
["132.811511", "47.967327"],
|
||
["133.097413", "48.158185"],
|
||
["133.473394", "48.128346"],
|
||
["133.728504", "48.281365"],
|
||
["134.199908", "48.411499"],
|
||
["134.519091", "48.448618"],
|
||
["134.797053", "48.402511"],
|
||
["134.903462", "48.476549"],
|
||
["135.111473", "48.465979"],
|
||
["135.087461", "48.366044"],
|
||
["134.70854", "48.235879"],
|
||
["134.705815", "48.142967"],
|
||
["134.587133", "47.991745"],
|
||
["134.802439", "47.732613"],
|
||
["134.805079", "47.701502"],
|
||
["134.584837", "47.454022"],
|
||
["134.327302", "47.405829"],
|
||
["134.203448", "47.309543"],
|
||
["134.189801", "47.25835"],
|
||
["134.258273", "47.190339"],
|
||
["134.25029", "47.096963"],
|
||
["134.160018", "47.066453"],
|
||
["134.091868", "46.968583"],
|
||
["134.042215", "46.633997"],
|
||
["133.892806", "46.477753"],
|
||
["133.978872", "46.404235"],
|
||
["133.938468", "46.35728"],
|
||
["133.943124", "46.251663"],
|
||
["133.734856", "46.143924"],
|
||
["133.77584", "46.068467"],
|
||
["133.698828", "45.924364"],
|
||
["133.509421", "45.823745"],
|
||
["133.533154", "45.779212"],
|
||
["133.488886", "45.719859"],
|
||
["133.513906", "45.69461"],
|
||
["133.496869", "45.599732"],
|
||
["133.229721", "45.489276"],
|
||
["133.168674", "45.414886"],
|
||
["133.124621", "45.258199"],
|
||
["133.158975", "45.105773"],
|
||
["132.946351", "44.989767"],
|
||
["131.996377", "45.226214"],
|
||
["131.893723", "45.301592"],
|
||
["131.80903", "45.186922"],
|
||
["131.72307", "45.208468"],
|
||
["131.688416", "45.166214"],
|
||
["131.716461", "45.107939"],
|
||
["131.507506", "44.942491"],
|
||
["131.131804", "44.90387"],
|
||
["131.021662", "44.839439"],
|
||
["131.137726", "44.723122"],
|
||
["131.338398", "44.056058"],
|
||
["131.273661", "43.974086"],
|
||
["131.248341", "43.566337"],
|
||
["131.344342", "43.514183"],
|
||
["131.346252", "43.391702"],
|
||
["131.236002", "43.22857"],
|
||
["131.242955", "43.131057"],
|
||
["131.13749", "43.018486"],
|
||
["131.168904", "42.923466"],
|
||
["131.065779", "42.901952"],
|
||
["131.05005", "42.834641"],
|
||
["130.673962", "42.819219"],
|
||
["130.46123", "42.731347"],
|
||
["130.617421", "42.685874"],
|
||
["130.650616", "42.595365"],
|
||
["130.604267", "42.509264"],
|
||
["130.661752", "42.412289"],
|
||
["130.553477", "42.421191"],
|
||
["130.507536", "42.571366"],
|
||
["130.42958", "42.523293"],
|
||
["130.416105", "42.590452"],
|
||
["130.235238", "42.692151"],
|
||
["130.237405", "42.873951"],
|
||
["130.125611", "42.876169"],
|
||
["130.075765", "42.911319"],
|
||
["130.092008", "42.956423"],
|
||
["129.933178", "42.975108"],
|
||
["129.878311", "42.92378"],
|
||
["129.795163", "42.719399"],
|
||
["129.815032", "42.601778"],
|
||
["129.735103", "42.411401"],
|
||
["129.607751", "42.418118"],
|
||
["129.55415", "42.330996"],
|
||
["129.383025", "42.403749"],
|
||
["129.268527", "42.323223"],
|
||
["129.222093", "42.257635"],
|
||
["129.2434", "42.19201"],
|
||
["128.992774", "42.075243"],
|
||
["128.959644", "41.997184"],
|
||
["128.121765", "41.974471"],
|
||
["128.183949", "41.746614"],
|
||
["128.336234", "41.608881"],
|
||
["128.268621", "41.434008"],
|
||
["128.127944", "41.337429"],
|
||
["128.00482", "41.417516"],
|
||
["127.65285", "41.377517"],
|
||
["127.537794", "41.447986"],
|
||
["127.248116", "41.454805"],
|
||
["127.234962", "41.492217"],
|
||
["127.08566", "41.544545"],
|
||
["127.128081", "41.592273"],
|
||
["127.012339", "41.679643"],
|
||
["127.035706", "41.702541"],
|
||
["126.914964", "41.778689"],
|
||
["126.809177", "41.669562"],
|
||
["126.74607", "41.691325"],
|
||
["126.612003", "41.629975"],
|
||
["126.529799", "41.412013"],
|
||
["126.562243", "41.368516"],
|
||
["126.557908", "41.33825"],
|
||
["126.45328", "41.325763"],
|
||
["126.3043", "41.139979"],
|
||
["126.148946", "41.070584"],
|
||
["126.132917", "40.990783"],
|
||
["126.041744", "40.924117"],
|
||
["126.041787", "40.876401"],
|
||
["125.721896", "40.840697"],
|
||
["125.681319", "40.80754"],
|
||
["125.712733", "40.774611"],
|
||
["125.686641", "40.761853"],
|
||
["125.582743", "40.75319"],
|
||
["125.423162", "40.624246"],
|
||
["125.310595", "40.636606"],
|
||
["125.022783", "40.521123"],
|
||
["125.06057", "40.46396"],
|
||
["124.907556", "40.445935"],
|
||
["124.374311", "40.078794"],
|
||
["124.388452", "39.905638"],
|
||
["123.741782", "39.10294"],
|
||
["123.282201", "38.058466"],
|
||
["124.24299", "31.368588"],
|
||
["124.714351", "29.508006"],
|
||
["125.072136", "25.859069"],
|
||
["124.935837", "25.676612"],
|
||
["123.836839", "25.5127"],
|
||
["122.751321", "24.515956"],
|
||
["121.947788", "22.070621"],
|
||
["121.867355", "21.383021"],
|
||
["119.827087", "18.177352"],
|
||
["119.026527", "16.873489"],
|
||
["119.11665", "15.951676"],
|
||
["119.101406", "14.063252"],
|
||
["119.100623", "12.209516"],
|
||
["119.07742", "11.23357"],
|
||
["116.011301", "7.678721"],
|
||
["114.941852", "6.182877"],
|
||
["114.229887", "5.47862"],
|
||
["113.86269", "4.692236"],
|
||
["112.795642", "3.695169"],
|
||
["111.953841", "3.231846"],
|
||
["109.894631", "3.714037"],
|
||
["108.659956", "4.748032"],
|
||
["107.925439", "5.91737"],
|
||
["107.96348", "6.895899"],
|
||
["108.555028", "9.28242"],
|
||
["110.128544", "11.338543"],
|
||
["109.983314", "12.44102"],
|
||
["109.806102", "13.535124"],
|
||
["109.636428", "14.636855"],
|
||
["109.78629", "15.402577"],
|
||
["109.449813", "15.723154"],
|
||
["108.117871", "17.258818"],
|
||
["107.310076", "18.842045"],
|
||
["107.374728", "19.467179"],
|
||
["108.051095", "20.114414"],
|
||
["108.328478", "21.187373"],
|
||
["108.278139", "21.403412"],
|
||
["108.107378", "21.47839"],
|
||
["107.943356", "21.509097"],
|
||
["107.849844", "21.619412"],
|
||
["107.547355", "21.55724"],
|
||
["107.470751", "21.571209"],
|
||
["107.451932", "21.615722"],
|
||
["107.357798", "21.570152"],
|
||
["107.289755", "21.702532"],
|
||
["107.207551", "21.682454"],
|
||
["106.998789", "21.79714"],
|
||
["107.015655", "21.907972"],
|
||
["106.951239", "21.893876"],
|
||
["106.768184", "21.978429"],
|
||
["106.703854", "21.935422"],
|
||
["106.674027", "21.941175"],
|
||
["106.664565", "22.266461"],
|
||
["106.643493", "22.30484"],
|
||
["106.538715", "22.328641"],
|
||
["106.53142", "22.460275"],
|
||
["106.592939", "22.622033"],
|
||
["106.708553", "22.615477"],
|
||
["106.793547", "22.794758"],
|
||
["106.548972", "22.899047"],
|
||
["106.304634", "22.830954"],
|
||
["106.190543", "22.951201"],
|
||
["106.088791", "22.966118"],
|
||
["105.867991", "22.889816"],
|
||
["105.712488", "23.033058"],
|
||
["105.550311", "23.045755"],
|
||
["105.530806", "23.163759"],
|
||
["105.330691", "23.346393"],
|
||
["105.249667", "23.237422"],
|
||
["105.089657", "23.231409"],
|
||
["104.951169", "23.149476"],
|
||
["104.843495", "23.101267"],
|
||
["104.893084", "22.94393"],
|
||
["104.747257", "22.79551"],
|
||
["104.567764", "22.813411"],
|
||
["104.371855", "22.65974"],
|
||
["104.249053", "22.720536"],
|
||
["104.237015", "22.806132"],
|
||
["104.137495", "22.783462"],
|
||
["104.078336", "22.740585"],
|
||
["104.017096", "22.520843"],
|
||
["103.962035", "22.492019"],
|
||
["103.666692", "22.741534"],
|
||
["103.525093", "22.580551"],
|
||
["103.458703", "22.648987"],
|
||
["103.394201", "22.751092"],
|
||
["103.341286", "22.767397"],
|
||
["103.306804", "22.661878"],
|
||
["103.215652", "22.621855"],
|
||
["103.205309", "22.536362"],
|
||
["103.107505", "22.486567"],
|
||
["103.076606", "22.416444"],
|
||
["102.91784", "22.456309"],
|
||
["102.840786", "22.583305"],
|
||
["102.610223", "22.696625"],
|
||
["102.558017", "22.673838"],
|
||
["102.493515", "22.738071"],
|
||
["102.424293", "22.676273"],
|
||
["102.446694", "22.621241"],
|
||
["102.327948", "22.511268"],
|
||
["102.278531", "22.386786"],
|
||
["102.142661", "22.36867"],
|
||
["102.03475", "22.427651"],
|
||
["101.942096", "22.415036"],
|
||
["101.8765", "22.355136"],
|
||
["101.764791", "22.472926"],
|
||
["101.700847", "22.453176"],
|
||
["101.694624", "22.349917"],
|
||
["101.579332", "22.223979"],
|
||
["101.631925", "21.988099"],
|
||
["101.718335", "21.962549"],
|
||
["101.79863", "21.848016"],
|
||
["101.778824", "21.73654"],
|
||
["101.856952", "21.62392"],
|
||
["101.847124", "21.595911"],
|
||
["101.773932", "21.558438"],
|
||
["101.760328", "21.349162"],
|
||
["101.862724", "21.239522"],
|
||
["101.764727", "21.115389"],
|
||
["101.663511", "21.164623"],
|
||
["101.587808", "21.146813"],
|
||
["101.574161", "21.209359"],
|
||
["101.53264", "21.221881"],
|
||
["101.293538", "21.149214"],
|
||
["101.203866", "21.206559"],
|
||
["101.216612", "21.289294"],
|
||
["101.114173", "21.403592"],
|
||
["101.183052", "21.497378"],
|
||
["101.111941", "21.560533"],
|
||
["101.095719", "21.734009"],
|
||
["100.901892", "21.659343"],
|
||
["100.747526", "21.494902"],
|
||
["100.586185", "21.423588"],
|
||
["100.468576", "21.433695"],
|
||
["100.414267", "21.504705"],
|
||
["100.248806", "21.434534"],
|
||
["100.115855", "21.481604"],
|
||
["100.078626", "21.591362"],
|
||
["100.11579", "21.654357"],
|
||
["100.010068", "21.666462"],
|
||
["99.916813", "21.811046"],
|
||
["99.968591", "21.972539"],
|
||
["99.950867", "22.023392"],
|
||
["99.699748", "22.008512"],
|
||
["99.585378", "22.083453"],
|
||
["99.19384", "22.094388"],
|
||
["99.129961", "22.147006"],
|
||
["99.24403", "22.347694"],
|
||
["99.226069", "22.407775"],
|
||
["99.348979", "22.505302"],
|
||
["99.289627", "22.751963"],
|
||
["99.429595", "22.858203"],
|
||
["99.422858", "22.95454"],
|
||
["99.521735", "22.955884"],
|
||
["99.488432", "23.051046"],
|
||
["99.336512", "23.101188"],
|
||
["99.258964", "23.048934"],
|
||
["99.10449", "23.057463"],
|
||
["98.99924", "23.151389"],
|
||
["98.858693", "23.167152"],
|
||
["98.89811", "23.292382"],
|
||
["98.844295", "23.323341"],
|
||
["98.878284", "23.4184"],
|
||
["98.821571", "23.466061"],
|
||
["98.773527", "23.530055"],
|
||
["98.849638", "23.617887"],
|
||
["98.774085", "23.751823"],
|
||
["98.656368", "23.775684"],
|
||
["98.63961", "23.801661"],
|
||
["98.649909", "23.978332"],
|
||
["98.828974", "24.077833"],
|
||
["98.83893", "24.109859"],
|
||
["98.594849", "24.051324"],
|
||
["98.534853", "24.098401"],
|
||
["98.118939", "24.06406"],
|
||
["97.652578", "23.812007"],
|
||
["97.500916", "23.916402"],
|
||
["97.507889", "23.946076"],
|
||
["97.703905", "24.12772"],
|
||
["97.7321", "24.242073"],
|
||
["97.646012", "24.307132"],
|
||
["97.678134", "24.384313"],
|
||
["97.653759", "24.420913"],
|
||
["97.528617", "24.403523"],
|
||
["97.504349", "24.421636"],
|
||
["97.520614", "24.750904"],
|
||
["97.686181", "24.867223"],
|
||
["97.726886", "24.872596"],
|
||
["97.701159", "24.901891"],
|
||
["97.691374", "25.085579"],
|
||
["97.816257", "25.289948"],
|
||
["97.844152", "25.297669"],
|
||
["97.93803", "25.249897"],
|
||
["98.122308", "25.413237"],
|
||
["98.152177", "25.643055"],
|
||
["98.313818", "25.589382"],
|
||
["98.380058", "25.615679"],
|
||
["98.510756", "25.863626"],
|
||
["98.635018", "25.83211"],
|
||
["98.668857", "25.860517"],
|
||
["98.546226", "26.121072"],
|
||
["98.648708", "26.171346"],
|
||
["98.686366", "26.138757"],
|
||
["98.648", "26.279486"],
|
||
["98.751404", "26.620222"],
|
||
["98.701365", "26.849746"],
|
||
["98.733852", "27.033154"],
|
||
["98.685272", "27.065508"],
|
||
["98.663149", "27.194049"],
|
||
["98.708661", "27.325701"],
|
||
["98.657935", "27.422786"],
|
||
["98.67244", "27.532116"],
|
||
["98.574979", "27.540164"],
|
||
["98.537407", "27.61841"],
|
||
["98.464022", "27.631357"],
|
||
["98.417695", "27.512725"],
|
||
["98.29766", "27.498051"],
|
||
["98.144388", "27.832814"],
|
||
["98.155954", "27.920407"],
|
||
["98.109477", "27.953809"],
|
||
["98.111", "28.123353"],
|
||
["97.991245", "28.182664"],
|
||
["97.984571", "28.253152"],
|
||
["97.904449", "28.328541"],
|
||
["97.775702", "28.306704"],
|
||
["97.650433", "28.498038"],
|
||
["97.537651", "28.471615"],
|
||
["97.537544", "28.300942"],
|
||
["97.374809", "28.215134"],
|
||
["97.340262", "28.085365"],
|
||
["97.441328", "28.020526"],
|
||
["97.41045", "27.866111"],
|
||
["97.271254", "27.865238"],
|
||
["97.104206", "27.710621"],
|
||
["97.074959", "27.716851"],
|
||
["96.959302", "27.833554"],
|
||
["96.799979", "27.862962"],
|
||
["96.485238", "28.041967"],
|
||
["96.435456", "28.122218"],
|
||
["96.282742", "28.11548"],
|
||
["96.254032", "28.195619"],
|
||
["96.011753", "28.160892"],
|
||
["95.866721", "28.266533"],
|
||
["95.747824", "28.246895"],
|
||
["95.417182", "28.118906"],
|
||
["95.304315", "27.916842"],
|
||
["94.898787", "27.716889"],
|
||
["94.531603", "27.567615"],
|
||
["94.290032", "27.552854"],
|
||
["93.888688", "27.17204"],
|
||
["93.845987", "27.008916"],
|
||
["93.571308", "26.909059"],
|
||
["92.944937", "26.862668"],
|
||
["92.647405", "26.922873"],
|
||
["92.093539", "26.830122"],
|
||
["92.094247", "26.952103"],
|
||
["91.998589", "27.089524"],
|
||
["92.083004", "27.299047"],
|
||
["92.034273", "27.387239"],
|
||
["91.995907", "27.444668"],
|
||
["91.729424", "27.433927"],
|
||
["91.566002", "27.518015"],
|
||
["91.534996", "27.644815"],
|
||
["91.602566", "27.75719"],
|
||
["91.514804", "27.82382"],
|
||
["91.562676", "27.867913"],
|
||
["91.468799", "27.914302"],
|
||
["91.441784", "27.98019"],
|
||
["91.319818", "28.026891"],
|
||
["91.09123", "27.815659"],
|
||
["90.700164", "28.042914"],
|
||
["90.592875", "27.992071"],
|
||
["90.457885", "28.016188"],
|
||
["90.284765", "28.126494"],
|
||
["90.15898", "28.149257"],
|
||
["90.026414", "28.108761"],
|
||
["89.808083", "28.209972"],
|
||
["89.741178", "28.14466"],
|
||
["89.620585", "28.133666"],
|
||
["89.394701", "27.853894"],
|
||
["89.261577", "27.776101"],
|
||
["89.129934", "27.494282"],
|
||
["89.208705", "27.359876"],
|
||
["89.003119", "27.183627"],
|
||
["88.914757", "27.261172"],
|
||
["88.754318", "27.459692"],
|
||
["88.742559", "27.575756"],
|
||
["88.824484", "27.683585"],
|
||
["88.858366", "27.84585"],
|
||
["88.817167", "27.989323"],
|
||
["88.749833", "28.04227"],
|
||
["88.643789", "28.079175"],
|
||
["88.414536", "27.948938"],
|
||
["88.164768", "27.927649"],
|
||
["88.119621", "27.836742"],
|
||
["87.844298", "27.914245"],
|
||
["87.731731", "27.773994"],
|
||
["87.596998", "27.78341"],
|
||
["87.555606", "27.832169"],
|
||
["87.226918", "27.783961"],
|
||
["87.114007", "27.809055"],
|
||
["87.017899", "27.921014"],
|
||
["86.741974", "28.007834"],
|
||
["86.699681", "28.06541"],
|
||
["86.621253", "28.036683"],
|
||
["86.583402", "28.057988"],
|
||
["86.53626", "27.935498"],
|
||
["86.410089", "27.875861"],
|
||
["86.21079", "27.953771"],
|
||
["86.168518", "28.117581"],
|
||
["86.115561", "28.075237"],
|
||
["86.149271", "27.905693"],
|
||
["85.994046", "27.879218"],
|
||
["85.944521", "27.932939"],
|
||
["85.832512", "28.151055"],
|
||
["85.730202", "28.210313"],
|
||
["85.701256", "28.320003"],
|
||
["85.608344", "28.222546"],
|
||
["85.501399", "28.296408"],
|
||
["85.379283", "28.245137"],
|
||
["85.108273", "28.308745"],
|
||
["85.080035", "28.467918"],
|
||
["85.159664", "28.55567"],
|
||
["85.153999", "28.618263"],
|
||
["85.06716", "28.641711"],
|
||
["84.995663", "28.560816"],
|
||
["84.851232", "28.539159"],
|
||
["84.68178", "28.609315"],
|
||
["84.624424", "28.696084"],
|
||
["84.465938", "28.711423"],
|
||
["84.389849", "28.828396"],
|
||
["84.202845", "28.880867"],
|
||
["84.21602", "29.009754"],
|
||
["84.163899", "29.035197"],
|
||
["84.138279", "29.170731"],
|
||
["84.156046", "29.210987"],
|
||
["84.110534", "29.218441"],
|
||
["84.085858", "29.266484"],
|
||
["83.922973", "29.294016"],
|
||
["83.658078", "29.134976"],
|
||
["83.571818", "29.151918"],
|
||
["83.232014", "29.552591"],
|
||
["83.070545", "29.578981"],
|
||
["82.920063", "29.684809"],
|
||
["82.816744", "29.661877"],
|
||
["82.675381", "29.739992"],
|
||
["82.684436", "29.800693"],
|
||
["82.605515", "29.811846"],
|
||
["82.541184", "29.930689"],
|
||
["82.159367", "30.045582"],
|
||
["82.174859", "30.141657"],
|
||
["82.084479", "30.216893"],
|
||
["82.077913", "30.310431"],
|
||
["81.993091", "30.291904"],
|
||
["81.637645", "30.413095"],
|
||
["81.562006", "30.34101"],
|
||
["81.44238", "30.380465"],
|
||
["81.419613", "30.185719"],
|
||
["81.306617", "30.138261"],
|
||
["81.279452", "29.994378"],
|
||
["81.11603", "30.010804"],
|
||
["80.995588", "30.23662"],
|
||
["80.302677", "30.539587"],
|
||
["80.0878", "30.543727"],
|
||
["79.94236", "30.672449"],
|
||
["79.868267", "30.834188"],
|
||
["79.825373", "30.839126"],
|
||
["79.673774", "30.945519"],
|
||
["79.593372", "30.894565"],
|
||
["79.4033", "31.036535"],
|
||
["79.346716", "31.001927"],
|
||
["79.336288", "30.933391"],
|
||
["79.224193", "30.920174"],
|
||
["79.170227", "30.981969"],
|
||
["79.092743", "30.963258"],
|
||
["78.986249", "31.027673"],
|
||
["78.96668", "31.157988"],
|
||
["78.856924", "31.281503"],
|
||
["78.783796", "31.274131"],
|
||
["78.728542", "31.344273"],
|
||
["78.757918", "31.433515"],
|
||
["78.697536", "31.51499"],
|
||
["78.804524", "31.611708"],
|
||
["78.62458", "31.82264"],
|
||
["78.722126", "31.927562"],
|
||
["78.578596", "31.999524"],
|
||
["78.497701", "32.11424"],
|
||
["78.432641", "32.118838"],
|
||
["78.402622", "32.220389"],
|
||
["78.4762", "32.31131"],
|
||
["78.36638", "32.528271"],
|
||
["78.381336", "32.554898"],
|
||
["78.75176", "32.731065"],
|
||
["78.809223", "32.496551"],
|
||
["78.976872", "32.364195"],
|
||
["79.005883", "32.376536"],
|
||
["79.080126", "32.394077"],
|
||
["79.114029", "32.491665"],
|
||
["79.279168", "32.61355"],
|
||
["79.272795", "32.713951"],
|
||
["79.195912", "32.779409"],
|
||
["79.222884", "32.93039"],
|
||
["79.135616", "33.001861"],
|
||
["79.1289", "33.16414"],
|
||
["78.818901", "33.407102"],
|
||
["78.715496", "33.540948"],
|
||
["78.723736", "33.604683"],
|
||
["78.656015", "33.65053"],
|
||
["78.749506", "33.746395"],
|
||
["78.715582", "33.972994"],
|
||
["78.631468", "34.014908"],
|
||
["78.635867", "34.100789"],
|
||
["78.894839", "34.171104"],
|
||
["78.97243", "34.341399"],
|
||
["78.867137", "34.336615"],
|
||
["78.698266", "34.491737"],
|
||
["78.566988", "34.478543"],
|
||
["78.527312", "34.539705"],
|
||
["78.430667", "34.514354"],
|
||
["78.403587", "34.570207"],
|
||
["78.247139", "34.615374"],
|
||
["78.238835", "34.685346"],
|
||
["78.179204", "34.722162"],
|
||
["78.172767", "34.964414"],
|
||
["78.056982", "35.102584"],
|
||
["77.985699", "35.231108"],
|
||
["77.986279", "35.376996"],
|
||
["78.060694", "35.455461"],
|
||
["77.904546", "35.435236"],
|
||
["77.815948", "35.484733"],
|
||
["77.688854", "35.41908"],
|
||
["77.389219", "35.439747"],
|
||
["77.300084", "35.509365"],
|
||
["77.189727", "35.490691"],
|
||
["76.844516", "35.637645"],
|
||
["76.746969", "35.630442"],
|
||
["76.675837", "35.721674"],
|
||
["76.57151", "35.752903"],
|
||
["76.552477", "35.878323"],
|
||
["76.372211", "35.795695"],
|
||
["76.149781", "35.797227"],
|
||
["76.124933", "35.947734"],
|
||
["75.922673", "36.058952"],
|
||
["75.911558", "36.150212"],
|
||
["76.037836", "36.25097"],
|
||
["75.962627", "36.325913"],
|
||
["75.987883", "36.449905"],
|
||
["75.852334", "36.642976"],
|
||
["75.645268", "36.740208"],
|
||
["75.442793", "36.696296"],
|
||
["75.389578", "36.92691"],
|
||
["75.229053", "36.936669"],
|
||
["75.144038", "36.993436"],
|
||
["74.896481", "36.905551"],
|
||
["74.830134", "37.022531"],
|
||
["74.731107", "36.999897"],
|
||
["74.690745", "37.052831"],
|
||
["74.559724", "37.004866"],
|
||
["74.481919", "37.046871"],
|
||
["74.437845", "37.120308"],
|
||
["74.499922", "37.266966"],
|
||
["74.739861", "37.314987"],
|
||
["74.866312", "37.253902"],
|
||
["75.109062", "37.372562"],
|
||
["75.102367", "37.44057"],
|
||
["74.921629", "37.536802"],
|
||
["74.864573", "37.654148"],
|
||
["74.964759", "37.773242"],
|
||
["74.890065", "37.834937"],
|
||
["74.908884", "37.982278"],
|
||
["74.777327", "38.153069"],
|
||
["74.761705", "38.335766"],
|
||
["74.838288", "38.415972"],
|
||
["74.834661", "38.466073"],
|
||
["74.630191", "38.571841"],
|
||
["74.373536", "38.625873"],
|
||
["74.159667", "38.646204"],
|
||
["74.103234", "38.581"],
|
||
["74.111817", "38.521998"],
|
||
["74.000838", "38.494528"],
|
||
["73.77285", "38.599147"],
|
||
["73.670411", "38.8621"],
|
||
["73.725193", "38.95749"],
|
||
["73.802719", "38.951449"],
|
||
["73.807654", "38.986017"],
|
||
["73.72221", "39.008697"],
|
||
["73.473516", "39.38863"],
|
||
["73.616295", "39.498494"],
|
||
["73.852308", "39.511093"],
|
||
["73.918183", "39.600828"],
|
||
["73.897347", "39.705585"],
|
||
["73.808942", "39.800228"],
|
||
["73.93934", "39.994893"],
|
||
["73.923182", "40.040084"],
|
||
["74.206402", "40.150079"],
|
||
["74.349396", "40.120697"],
|
||
["74.57305", "40.295485"],
|
||
["74.65313", "40.30568"],
|
||
["74.68538", "40.371234"],
|
||
["74.834146", "40.370645"],
|
||
["74.764109", "40.445837"],
|
||
["74.82522", "40.547706"],
|
||
["74.991968", "40.485604"],
|
||
["75.234225", "40.478276"],
|
||
["75.595829", "40.68866"],
|
||
["75.623209", "40.675235"],
|
||
["75.670288", "40.537172"],
|
||
["75.761075", "40.482617"],
|
||
["75.702088", "40.361506"],
|
||
["75.718331", "40.319244"],
|
||
["75.831778", "40.356634"],
|
||
["75.909498", "40.327457"],
|
||
["75.962198", "40.405801"],
|
||
["76.169136", "40.4108"],
|
||
["76.276231", "40.468254"],
|
||
["76.350474", "40.381058"],
|
||
["76.518981", "40.485522"],
|
||
["76.629574", "40.63177"],
|
||
["76.618888", "40.769281"],
|
||
["76.705191", "40.836687"],
|
||
["76.738064", "40.970777"],
|
||
["76.866853", "41.052415"],
|
||
["77.002079", "41.102703"],
|
||
["77.174621", "41.038594"],
|
||
["77.761016", "41.051719"],
|
||
["77.819595", "41.177071"],
|
||
["78.104789", "41.252161"],
|
||
["78.153155", "41.41058"],
|
||
["78.633699", "41.494773"],
|
||
["78.691227", "41.573398"],
|
||
["79.204752", "41.752489"],
|
||
["79.314144", "41.836204"],
|
||
["79.760721", "41.919283"],
|
||
["79.886034", "42.062214"],
|
||
["80.133162", "42.067184"],
|
||
["80.141101", "42.212865"],
|
||
["80.253518", "42.271926"],
|
||
["80.176806", "42.427971"],
|
||
["80.233755", "42.509043"],
|
||
["80.134728", "42.629333"],
|
||
["80.233669", "42.836907"],
|
||
["80.527124", "42.908804"],
|
||
["80.358446", "43.012006"],
|
||
["80.363209", "43.05597"],
|
||
["80.77054", "43.196057"],
|
||
["80.751915", "43.283969"],
|
||
["80.657952", "43.321619"],
|
||
["80.722024", "43.489763"],
|
||
["80.498157", "43.799783"],
|
||
["80.367136", "44.112086"],
|
||
["80.382199", "44.282371"],
|
||
["80.320637", "44.484489"],
|
||
["80.375676", "44.600628"],
|
||
["80.200903", "44.711915"],
|
||
["80.153825", "44.809898"],
|
||
["79.982829", "44.769908"],
|
||
["79.863417", "44.896027"],
|
||
["79.863911", "44.925979"],
|
||
["80.099001", "45.081976"],
|
||
["80.380783", "45.073778"],
|
||
["80.472493", "45.151008"],
|
||
["80.593643", "45.1361"],
|
||
["80.723355", "45.20611"],
|
||
["80.897505", "45.157969"],
|
||
["81.777248", "45.412611"],
|
||
["81.933761", "45.262246"],
|
||
["82.295816", "45.254845"],
|
||
["82.544253", "45.206065"],
|
||
["82.569401", "45.340669"],
|
||
["82.52743", "45.402307"],
|
||
["82.265496", "45.514783"],
|
||
["82.238288", "45.626914"],
|
||
["82.311373", "45.780155"],
|
||
["82.319655", "45.956177"],
|
||
["82.440763", "46.003982"],
|
||
["82.822452", "46.775333"],
|
||
["83.012309", "47.24291"],
|
||
["83.148286", "47.241861"],
|
||
["83.371532", "47.179737"],
|
||
["83.583899", "47.087891"],
|
||
["83.927865", "46.999324"],
|
||
["84.753106", "47.038661"],
|
||
["84.955001", "46.896507"],
|
||
["85.227256", "47.083274"],
|
||
["85.529079", "47.087102"],
|
||
["85.670679", "47.295094"],
|
||
["85.656817", "47.416255"],
|
||
["85.581307", "47.505664"],
|
||
["85.500433", "48.023314"],
|
||
["85.564678", "48.210504"],
|
||
["85.778117", "48.445159"],
|
||
["86.21609", "48.461326"],
|
||
["86.297393", "48.520485"],
|
||
["86.571493", "48.56921"],
|
||
["86.745751", "48.738276"],
|
||
["86.72689", "48.79468"],
|
||
["86.785169", "48.850936"],
|
||
["86.706676", "48.980358"],
|
||
["86.708565", "49.011387"],
|
||
["86.889625", "49.162344"],
|
||
["87.145572", "49.183316"],
|
||
["87.435358", "49.10582"],
|
||
["87.476878", "49.120484"],
|
||
["87.490826", "49.169134"],
|
||
["87.836187", "49.198616"],
|
||
["87.895432", "49.115877"],
|
||
["87.87024", "49.056222"],
|
||
["87.9406", "48.974696"],
|
||
["87.803872", "48.87904"],
|
||
["88.125672", "48.72326"],
|
||
["88.023491", "48.591881"],
|
||
["88.35763", "48.495848"],
|
||
["88.450756", "48.423234"],
|
||
["88.527102", "48.435337"],
|
||
["88.631537", "48.352171"],
|
||
["88.608513", "48.280466"],
|
||
["88.657844", "48.207172"],
|
||
["88.828926", "48.136652"],
|
||
["88.942652", "48.146274"],
|
||
["89.088199", "48.017358"],
|
||
["89.571383", "48.066881"],
|
||
["89.777999", "47.863838"],
|
||
["90.077548", "47.910676"],
|
||
["90.155997", "47.747389"],
|
||
["90.399628", "47.669347"],
|
||
["90.413575", "47.647046"],
|
||
["90.398619", "47.62125"]
|
||
],
|
||
JPN = [
|
||
["145.824681", "43.408601"],
|
||
["145.802708", "43.198731"],
|
||
["145.188847", "43.068449"],
|
||
["144.992667", "42.907867"],
|
||
["143.970938", "42.890345"],
|
||
["143.384543", "42.351736"],
|
||
["143.299399", "41.875506"],
|
||
["142.95333", "42.100071"],
|
||
["142.391844", "42.272669"],
|
||
["141.369501", "42.535185"],
|
||
["140.832544", "42.147648"],
|
||
["141.028863", "41.945699"],
|
||
["141.296655", "41.765675"],
|
||
["141.564447", "41.265171"],
|
||
["141.675004", "40.481173"],
|
||
["141.829516", "40.300647"],
|
||
["141.982619", "40.122464"],
|
||
["142.142627", "39.594221"],
|
||
["142.025897", "39.368452"],
|
||
["142.021777", "39.317473"],
|
||
["141.850783", "38.901626"],
|
||
["140.939308", "35.65669"],
|
||
["139.436268", "34.193845"],
|
||
["137.347075", "34.1603"],
|
||
["135.63835", "33.29272"],
|
||
["133.488103", "32.70897"],
|
||
["131.614016", "31.325292"],
|
||
["130.633951", "28.842845"],
|
||
["127.785048", "25.789008"],
|
||
["126.597333", "26.344784"],
|
||
["128.404011", "28.563857"],
|
||
["128.940636", "30.856318"],
|
||
["128.544464", "32.79621"],
|
||
["129.194642", "34.475467"],
|
||
["129.324698", "34.765641"],
|
||
["129.502255", "34.700627"],
|
||
["129.480282", "33.855809"],
|
||
["130.439605", "33.915587"],
|
||
["130.801388", "34.159716"],
|
||
["130.791882", "34.445506"],
|
||
["131.121471", "34.437578"],
|
||
["131.298124", "34.567727"],
|
||
["132.535148", "35.287335"],
|
||
["132.978675", "36.154847"],
|
||
["133.268559", "36.366209"],
|
||
["134.710796", "35.708808"],
|
||
["135.303308", "35.794165"],
|
||
["136.404389", "36.456814"],
|
||
["136.612743", "37.37546"],
|
||
["137.409252", "37.580348"],
|
||
["137.291471", "36.906421"],
|
||
["137.982237", "37.126821"],
|
||
["138.504087", "37.383552"],
|
||
["138.758146", "37.83898"],
|
||
["139.207212", "38.04151"],
|
||
["139.310081", "38.315743"],
|
||
["139.737028", "38.85997"],
|
||
["139.403318", "39.234917"],
|
||
["139.952634", "39.328459"],
|
||
["140.002073", "39.745742"],
|
||
["139.695586", "39.824208"],
|
||
["139.679107", "40.025361"],
|
||
["139.935912", "40.077921"],
|
||
["140.001079", "40.309807"],
|
||
["139.922802", "40.434311"],
|
||
["139.828954", "40.646676"],
|
||
["139.95008", "40.766604"],
|
||
["139.957833", "41.432491"],
|
||
["140.001779", "42.027933"],
|
||
["139.389291", "42.038134"],
|
||
["139.346719", "42.242877"],
|
||
["139.63099", "42.291658"],
|
||
["139.72712", "42.641155"],
|
||
["139.942098", "42.710048"],
|
||
["140.194783", "42.842098"],
|
||
["140.30396", "42.856193"],
|
||
["140.309453", "43.306551"],
|
||
["140.393224", "43.399418"],
|
||
["140.61976", "43.355264"],
|
||
["140.788732", "43.238558"],
|
||
["140.923314", "43.24556"],
|
||
["141.029058", "43.24356"],
|
||
["141.083989", "43.216544"],
|
||
["141.141667", "43.185513"],
|
||
["141.336675", "43.240561"],
|
||
["141.328435", "43.731771"],
|
||
["141.350408", "43.792272"],
|
||
["141.594854", "43.937818"],
|
||
["141.565334", "44.291761"],
|
||
["141.70541", "44.45177"],
|
||
["141.708157", "44.742196"],
|
||
["141.683437", "45.002047"],
|
||
["141.226594", "45.076599"],
|
||
["141.053559", "45.165748"],
|
||
["140.987641", "45.335905"],
|
||
["140.943696", "45.481498"],
|
||
["141.201589", "45.501064"],
|
||
["141.972005", "45.52416"],
|
||
["142.341996", "45.204477"],
|
||
["142.567215", "45.014513"],
|
||
["142.747966", "44.801094"],
|
||
["143.487122", "44.343678"],
|
||
["144.463587", "44.078617"],
|
||
["144.874201", "44.098345"],
|
||
["145.125513", "44.222478"],
|
||
["145.300832", "44.391445"],
|
||
["145.487445", "44.320885"],
|
||
["145.111163", "43.848378"],
|
||
["145.420933", "43.545126"],
|
||
["145.451146", "43.393635"]
|
||
],
|
||
EAST = [
|
||
["73.757316", "29.95798"],
|
||
["73.045185", "28.989136"],
|
||
["72.434431", "28.60931"],
|
||
["72.060098", "28.097836"],
|
||
["71.631749", "27.60702"],
|
||
["70.67236", "27.593264"],
|
||
["69.82743", "27.041579"],
|
||
["70.337045", "26.566045"],
|
||
["70.070655", "26.098932"],
|
||
["70.070655", "25.85946"],
|
||
["70.290717", "25.713457"],
|
||
["70.626599", "25.671708"],
|
||
["70.68451", "25.201036"],
|
||
["70.974064", "24.791642"],
|
||
["70.811914", "24.612763"],
|
||
["70.139151", "24.465923"],
|
||
["69.268014", "24.435423"],
|
||
["68.313114", "24.267539"],
|
||
["67.911051", "23.808548"],
|
||
["68.547651", "23.00912"],
|
||
["69.11724", "22.684917"],
|
||
["68.748682", "22.406416"],
|
||
["69.301519", "21.536417"],
|
||
["70.153052", "20.55461"],
|
||
["71.170222", "20.332219"],
|
||
["72.234349", "21.204506"],
|
||
["72.501752", "21.087142"],
|
||
["72.627589", "19.003767"],
|
||
["72.973641", "16.878922"],
|
||
["74.267757", "13.888898"],
|
||
["75.369075", "10.48118"],
|
||
["76.976429", "7.781262"],
|
||
["78.374805", "8.242836"],
|
||
["79.427902", "9.641233"],
|
||
["80.513091", "10.734685"],
|
||
["80.254133", "11.953377"],
|
||
["80.702994", "13.082541"],
|
||
["80.402232", "15.312175"],
|
||
["82.991824", "16.887862"],
|
||
["85.259974", "19.051683"],
|
||
["87.784208", "21.10679"],
|
||
["89.263244", "21.658877"],
|
||
["89.121009", "23.437218"],
|
||
["88.869364", "23.717994"],
|
||
["88.93501", "24.317619"],
|
||
["88.267603", "24.596482"],
|
||
["88.727129", "25.073086"],
|
||
["89.186656", "25.132532"],
|
||
["88.891246", "25.626788"],
|
||
["88.650542", "25.666241"],
|
||
["88.201956", "25.892841"],
|
||
["88.420778", "26.12883"],
|
||
["88.54113", "26.285892"],
|
||
["89.241361", "26.020727"],
|
||
["89.613359", "25.863309"],
|
||
["89.657124", "25.330477"],
|
||
["90.190932", "25.070998"],
|
||
["91.175632", "25.051175"],
|
||
["91.811935", "25.05221"],
|
||
["92.234344", "24.983507"],
|
||
["92.104658", "24.649259"],
|
||
["91.844714", "24.363456"],
|
||
["91.46563", "24.215373"],
|
||
["90.999897", "23.839459"],
|
||
["91.216517", "23.054471"],
|
||
["91.389672", "22.300847"],
|
||
["92.125338", "20.623521"],
|
||
["93.946113", "18.753448"],
|
||
["92.823675", "16.135717"],
|
||
["91.224276", "9.998681"],
|
||
["93.522355", "5.752403"],
|
||
["96.409859", "0.991383"],
|
||
["100.048825", "-3.72227"],
|
||
["104.60328", "-7.736835"],
|
||
["114.01025", "-9.967468"],
|
||
["123.433702", "-11.032285"],
|
||
["123.717523", "-10.536628"],
|
||
["124.427075", "-10.257467"],
|
||
["125.004217", "-9.79418"],
|
||
["125.026253", "-9.527403"],
|
||
["125.12788", "-9.406056"],
|
||
["125.031601", "-9.358561"],
|
||
["124.946021", "-9.216037"],
|
||
["125.026253", "-9.168516"],
|
||
["125.192065", "-9.13155"],
|
||
["125.181368", "-8.982538"],
|
||
["124.999509", "-8.987821"],
|
||
["124.919277", "-8.924418"],
|
||
["125.095787", "-8.596662"],
|
||
["125.555784", "-8.088612"],
|
||
["125.721597", "-8.120384"],
|
||
["127.292232", "-8.326419"],
|
||
["132.424841", "-8.447132"],
|
||
["139.646777", "-8.512957"],
|
||
["141.039618", "-9.209048"],
|
||
["141.025347", "-6.894209"],
|
||
["140.978655", "-6.887392"],
|
||
["140.92235", "-6.851943"],
|
||
["140.912737", "-6.791946"],
|
||
["140.905871", "-6.737397"],
|
||
["140.850939", "-6.695117"],
|
||
["140.903124", "-6.59554"],
|
||
["140.945696", "-6.509588"],
|
||
["141.000442", "-6.341825"],
|
||
["140.971754", "-2.322171"],
|
||
["131.63417", "2.671779"],
|
||
["125.182746", "17.665698"],
|
||
["120.512231", "19.243264"],
|
||
["119.486602", "16.550429"],
|
||
["119.820154", "12.379244"],
|
||
["115.293339", "5.77989"],
|
||
["114.675587", "4.850295"],
|
||
["114.550618", "4.735342"],
|
||
["113.923024", "4.60805"],
|
||
["113.581092", "3.881824"],
|
||
["113.423754", "3.763395"],
|
||
["113.138025", "3.427757"],
|
||
["112.798973", "3.119213"],
|
||
["111.886744", "2.960093"],
|
||
["109.608393", "3.016867"],
|
||
["108.771364", "3.935896"],
|
||
["107.181008", "7.101455"],
|
||
["110.509765", "12.398562"],
|
||
["108.171244", "18.449712"],
|
||
["108.482399", "21.923911"],
|
||
["106.042422", "23.36869"],
|
||
["103.861684", "23.500971"],
|
||
["101.853026", "22.51803"],
|
||
["101.964992", "22.453371"],
|
||
["102.079606", "22.467488"],
|
||
["102.100842", "22.366033"],
|
||
["102.192713", "22.264854"],
|
||
["102.457234", "22.052786"],
|
||
["102.482552", "21.991854"],
|
||
["102.505944", "21.933096"],
|
||
["102.598494", "21.858522"],
|
||
["102.635027", "21.768076"],
|
||
["102.625285", "21.706993"],
|
||
["102.652076", "21.663993"],
|
||
["102.749497", "21.641356"],
|
||
["102.798208", "21.673047"],
|
||
["102.841349", "21.836472"],
|
||
["102.857688", "21.688772"],
|
||
["102.936435", "21.684707"],
|
||
["102.971433", "21.587108"],
|
||
["102.897061", "21.530145"],
|
||
["102.831439", "21.416153"],
|
||
["102.853313", "21.363197"],
|
||
["102.770191", "21.249074"],
|
||
["102.905811", "20.975636"],
|
||
["103.219101", "20.747931"],
|
||
["103.517772", "20.714677"],
|
||
["103.809332", "20.581588"],
|
||
["103.928404", "20.796397"],
|
||
["104.17602", "20.868718"],
|
||
["104.456453", "20.674762"],
|
||
["104.597217", "20.649539"],
|
||
["104.494205", "20.561152"],
|
||
["104.33078", "20.448774"],
|
||
["104.574769", "20.381484"],
|
||
["104.658948", "20.213054"],
|
||
["104.76838", "20.149846"],
|
||
["104.838529", "20.181454"],
|
||
["104.938282", "20.043215"],
|
||
["104.745932", "19.888842"],
|
||
["104.790827", "19.817585"],
|
||
["104.656142", "19.725166"],
|
||
["104.580381", "19.643265"],
|
||
["104.41625", "19.738372"],
|
||
["104.315236", "19.711959"],
|
||
["104.004834", "19.776374"],
|
||
["103.978829", "19.601517"],
|
||
["104.057089", "19.487272"],
|
||
["103.795479", "19.292317"],
|
||
["104.05618", "19.205901"],
|
||
["104.303857", "19.041792"],
|
||
["104.509718", "18.953592"],
|
||
["104.638381", "18.819682"],
|
||
["104.82816", "18.734411"],
|
||
["105.081179", "18.714495"],
|
||
["105.090265", "18.561021"],
|
||
["105.010482", "18.494337"],
|
||
["105.215532", "18.232365"],
|
||
["105.507333", "18.022503"],
|
||
["105.673181", "17.706155"],
|
||
["105.959258", "17.411042"],
|
||
["106.393016", "16.974064"],
|
||
["106.530565", "16.907086"],
|
||
["106.511314", "16.705452"],
|
||
["106.610307", "16.485756"],
|
||
["106.704089", "16.360817"],
|
||
["106.855183", "16.430793"],
|
||
["106.917705", "16.245803"],
|
||
["107.074009", "16.275813"],
|
||
["107.178212", "16.130721"],
|
||
["107.386617", "15.975505"],
|
||
["107.256364", "15.895346"],
|
||
["107.157745", "15.729918"],
|
||
["107.270294", "15.538977"],
|
||
["107.541111", "15.371176"],
|
||
["107.598724", "15.119441"],
|
||
["107.495192", "15.087312"],
|
||
["107.421241", "14.973038"],
|
||
["107.491494", "14.719275"],
|
||
["107.439728", "14.558285"],
|
||
["107.365777", "14.619117"],
|
||
["107.28443", "14.576179"],
|
||
["107.125343", "14.454386"],
|
||
["107.058787", "14.468707"],
|
||
["106.862816", "14.336197"],
|
||
["106.714913", "14.443644"],
|
||
["106.640961", "14.525985"],
|
||
["106.467176", "14.622607"],
|
||
["106.385829", "14.475868"],
|
||
["106.219438", "14.500928"],
|
||
["106.189858", "14.42932"],
|
||
["106.104814", "14.407834"],
|
||
["105.956911", "14.346944"],
|
||
["105.993887", "14.192854"],
|
||
["106.138092", "14.056594"],
|
||
["106.067838", "13.984846"],
|
||
["105.938423", "13.948964"],
|
||
["105.860774", "14.067355"],
|
||
["105.570516", "14.196239"],
|
||
["105.40579", "14.123984"],
|
||
["105.307739", "14.207645"],
|
||
["105.23322", "14.257067"],
|
||
["105.284207", "14.321679"],
|
||
["105.397946", "14.336879"],
|
||
["105.499919", "14.435654"],
|
||
["105.550906", "14.617894"],
|
||
["105.535217", "14.773437"],
|
||
["105.660723", "14.90613"],
|
||
["105.629347", "15.019802"],
|
||
["105.511685", "15.118269"],
|
||
["105.543062", "15.182626"],
|
||
["105.660723", "15.2848"],
|
||
["105.543062", "15.368016"],
|
||
["105.641113", "15.40205"],
|
||
["105.652879", "15.526792"],
|
||
["105.672489", "15.723201"],
|
||
["105.433244", "15.866611"],
|
||
["105.419865", "16.077323"],
|
||
["105.134284", "16.158015"],
|
||
["105.05029", "16.303179"],
|
||
["104.798307", "16.56635"],
|
||
["104.815106", "16.791639"],
|
||
["104.807079", "17.064937"],
|
||
["104.834545", "17.357467"],
|
||
["104.746654", "17.518618"],
|
||
["104.392993", "17.569592"],
|
||
["104.221867", "17.790865"],
|
||
["104.071113", "18.043041"],
|
||
["103.989584", "18.196169"],
|
||
["103.880878", "18.236734"],
|
||
["103.692584", "18.269917"],
|
||
["103.616878", "18.310466"],
|
||
["103.546996", "18.349162"],
|
||
["103.428584", "18.336313"],
|
||
["103.370348", "18.277339"],
|
||
["103.302336", "18.221647"],
|
||
["103.237773", "18.102183"],
|
||
["103.207191", "18.040806"],
|
||
["103.105249", "17.937384"],
|
||
["102.938746", "17.875949"],
|
||
["102.914959", "17.827432"],
|
||
["102.813018", "17.765959"],
|
||
["102.687291", "17.753015"],
|
||
["102.568359", "17.830667"],
|
||
["102.510593", "17.840371"],
|
||
["102.422244", "17.921219"],
|
||
["102.310109", "17.960013"],
|
||
["102.204769", "17.995566"],
|
||
["102.143605", "18.066652"],
|
||
["101.987295", "17.966477"],
|
||
["101.868364", "17.927685"],
|
||
["101.647491", "17.811257"],
|
||
["101.148809", "17.535022"],
|
||
["101.023374", "17.599797"],
|
||
["101.039054", "17.808912"],
|
||
["101.175591", "17.993048"],
|
||
["101.212078", "18.10208"],
|
||
["101.219896", "18.173904"],
|
||
["101.206865", "18.240749"],
|
||
["101.212078", "18.344679"],
|
||
["101.107829", "18.394147"],
|
||
["101.092192", "18.45349"],
|
||
["101.206865", "18.578877"],
|
||
["101.31372", "18.655442"],
|
||
["101.272021", "18.741845"],
|
||
["101.272021", "18.830671"],
|
||
["101.311114", "18.939171"],
|
||
["101.370997", "19.079681"],
|
||
["101.298023", "19.148632"],
|
||
["101.279779", "19.212632"],
|
||
["101.22818", "19.375675"],
|
||
["101.230424", "19.441269"],
|
||
["101.295484", "19.487804"],
|
||
["101.29997", "19.591402"],
|
||
["101.239397", "19.633668"],
|
||
["101.145173", "19.587175"],
|
||
["101.093574", "19.629442"],
|
||
["100.94102", "19.650571"],
|
||
["100.893907", "19.65691"],
|
||
["100.864742", "19.616763"],
|
||
["100.835578", "19.570265"],
|
||
["100.770518", "19.534326"],
|
||
["100.611233", "19.574493"],
|
||
["100.584312", "19.52164"],
|
||
["100.525983", "19.540669"],
|
||
["100.46541", "19.637894"],
|
||
["100.436245", "19.777288"],
|
||
["100.541687", "19.91867"],
|
||
["100.597773", "20.190526"],
|
||
["100.502946", "20.195053"],
|
||
["100.428788", "20.262059"],
|
||
["100.379218", "20.36601"],
|
||
["100.329779", "20.413638"],
|
||
["100.244635", "20.387895"],
|
||
["100.173224", "20.317079"],
|
||
["100.160865", "20.244943"],
|
||
["100.114789", "20.260301"],
|
||
["100.107922", "20.315689"],
|
||
["100.155988", "20.507461"],
|
||
["100.211891", "20.650056"],
|
||
["100.290818", "20.736459"],
|
||
["100.399973", "20.811825"],
|
||
["100.562866", "20.788277"],
|
||
["100.673701", "20.899705"],
|
||
["100.59616", "20.954029"],
|
||
["100.751867", "21.254036"],
|
||
["100.998402", "21.338663"],
|
||
["101.211622", "21.580378"],
|
||
["101.209043", "21.846211"],
|
||
["100.909901", "21.894492"],
|
||
["100.207565", "21.580378"],
|
||
["100.051491", "22.159742"],
|
||
["99.466212", "22.436515"],
|
||
["99.71333", "23.024318"],
|
||
["99.352488", "23.281431"],
|
||
["99.03983", "24.3247"],
|
||
["98.101855", "24.95993"],
|
||
["98.855913", "25.608485"],
|
||
["98.911088", "26.812993"],
|
||
["98.892697", "27.483968"],
|
||
["98.340947", "27.826069"],
|
||
["98.120247", "28.377665"],
|
||
["97.586888", "28.733061"],
|
||
["97.108705", "28.329109"],
|
||
["96.658506", "27.787659"],
|
||
["96.296725", "28.010502"],
|
||
["95.847241", "28.136253"],
|
||
["95.288126", "27.787659"],
|
||
["94.685158", "27.233428"],
|
||
["93.281889", "26.647032"],
|
||
["92.037851", "26.720259"],
|
||
["90.141229", "26.820605"],
|
||
["88.984724", "26.833974"],
|
||
["88.731159", "27.080308"],
|
||
["88.794435", "27.331629"],
|
||
["88.741186", "27.914582"],
|
||
["88.223484", "27.953015"],
|
||
["88.169108", "27.50057"],
|
||
["87.774017", "27.262697"],
|
||
["88.215457", "26.870398"],
|
||
["87.783036", "26.535989"],
|
||
["87.047344", "26.702224"],
|
||
["84.777332", "27.310285"],
|
||
["83.539214", "27.665305"],
|
||
["82.385985", "27.880248"],
|
||
["81.010299", "28.662263"],
|
||
["80.547568", "29.001896"],
|
||
["81.345045", "30.304903"],
|
||
["80.749935", "31.185747"],
|
||
["80.056967", "31.015739"],
|
||
["79.215234", "31.178494"],
|
||
["78.991224", "31.346766"],
|
||
["79.254658", "31.656243"],
|
||
["78.835019", "31.979804"],
|
||
["78.65109", "32.12011"],
|
||
["78.595912", "32.240756"],
|
||
["78.591313", "32.400075"],
|
||
["78.669483", "32.54361"],
|
||
["78.739513", "32.426665"],
|
||
["78.84424", "32.288005"],
|
||
["79.067657", "32.24668"],
|
||
["79.277111", "32.470789"],
|
||
["79.395802", "32.676713"],
|
||
["79.235221", "33.233259"],
|
||
["79.011803", "33.47819"],
|
||
["78.84424", "33.681772"],
|
||
["79.182009", "34.336185"],
|
||
["78.821102", "34.565916"],
|
||
["78.428537", "34.758609"],
|
||
["78.294895", "34.940474"],
|
||
["78.23791", "35.530039"],
|
||
["77.722544", "35.628785"],
|
||
["77.294994", "35.609184"],
|
||
["76.821489", "35.701892"],
|
||
["76.684572", "35.988603"],
|
||
["76.399329", "35.919333"],
|
||
["76.159724", "35.933192"],
|
||
["76.165429", "36.20986"],
|
||
["76.074151", "36.366207"],
|
||
["75.999987", "36.641347"],
|
||
["75.714744", "36.787688"],
|
||
["75.562518", "36.805399"],
|
||
["75.481245", "36.811057"],
|
||
["75.45651", "36.950968"],
|
||
["75.253968", "37.023882"],
|
||
["75.084541", "37.066268"],
|
||
["74.894884", "37.084426"],
|
||
["74.735572", "37.122745"],
|
||
["74.643309", "37.074934"],
|
||
["74.566145", "37.033976"],
|
||
["74.549925", "36.938948"],
|
||
["74.491692", "37.015218"],
|
||
["74.377803", "36.998366"],
|
||
["74.261908", "36.915016"],
|
||
["74.132106", "36.91687"],
|
||
["74.057933", "36.840851"],
|
||
["73.967535", "36.853836"],
|
||
["73.925813", "36.892775"],
|
||
["73.808039", "36.908632"],
|
||
["73.728388", "36.920709"],
|
||
["73.639124", "36.911926"],
|
||
["73.699986", "36.820121"],
|
||
["73.765904", "36.814624"],
|
||
["73.833196", "36.776135"],
|
||
["73.853795", "36.743128"],
|
||
["73.834569", "36.711208"],
|
||
["73.735692", "36.736525"],
|
||
["73.657414", "36.707906"],
|
||
["73.599736", "36.711208"],
|
||
["73.57227", "36.735425"],
|
||
["73.517339", "36.729922"],
|
||
["73.397862", "36.757433"],
|
||
["73.319585", "36.738726"],
|
||
["73.241307", "36.720664"],
|
||
["73.175389", "36.732772"],
|
||
["73.112218", "36.71516"],
|
||
["73.032567", "36.686532"],
|
||
["73.039433", "36.651284"],
|
||
["73.060033", "36.609405"],
|
||
["73.036687", "36.564195"],
|
||
["73.002355", "36.529994"],
|
||
["72.958409", "36.507921"],
|
||
["72.944676", "36.475904"],
|
||
["72.886998", "36.474799"],
|
||
["72.855412", "36.448292"],
|
||
["72.848546", "36.400777"],
|
||
["72.832334", "36.374217"],
|
||
["72.796629", "36.362053"],
|
||
["72.685258", "36.303681"],
|
||
["72.663286", "36.274901"],
|
||
["72.574022", "36.267151"],
|
||
["72.461412", "36.175196"],
|
||
["73.530389", "35.809316"],
|
||
["74.170542", "35.420826"],
|
||
["74.340245", "35.055408"],
|
||
["73.9237", "34.612198"],
|
||
["73.676858", "34.332391"],
|
||
["73.880481", "33.422673"],
|
||
["74.651862", "32.906095"],
|
||
["75.747223", "32.542685"],
|
||
["75.623802", "32.256112"],
|
||
["74.975842", "31.968632"],
|
||
["74.759855", "31.732749"],
|
||
["74.759855", "30.955369"],
|
||
["74.327882", "30.584206"],
|
||
["74.18929", "30.224947"],
|
||
["74.035013", "29.864372"]
|
||
],
|
||
getOutseaData = function(f) { return f && "mapbox" === f ? { boundsP16: [
|
||
[CHN]
|
||
], nebulaOutSea: [] } : { boundsP16: [
|
||
[CHN],
|
||
[JPN],
|
||
[EAST]
|
||
], nebulaOutSea: [
|
||
[JPN],
|
||
[EAST]
|
||
] } },
|
||
geoUtil = new GeometryUtilCls({}),
|
||
CONSTS$1 = { sV: "https://webapi.amap.com/style_icon/sprite_v8@2x.png", EU: [LangConf.my.type, LangConf.km.type, LangConf.PU.type, LangConf.th.type, LangConf.$U.type] },
|
||
MapboxLabelFormat = function(t) {
|
||
function f(f) { var e = t.call(this) || this; return e.kQ = {}, e } return __extends(f, t), f.prototype.Ns = function(f, e) { return t.prototype.Ns.call(this, f, e), this.rV(f, e) }, f.prototype.rV = function(f, e) { var t, r, i = (f.data || {}).poilabel || [],
|
||
o = f.road || [],
|
||
n = {},
|
||
a = this.hV(f); for (t in i) i.hasOwnProperty(t) && (r = i[t], r = this.nV(r, a, e.zoom, e.VQ), n[t] = r); return this.oV(o, {}), n }, f.prototype.nV = function(f, e, t, r) { for (var i = [], o = this.kQ, n = 0, a = f; n < a.length; n++) { var l, s, d, c, u, y, b, p, h, v = (S = a[n]).name,
|
||
g = S.position,
|
||
M = S.id,
|
||
w = S.minzoom,
|
||
m = S.maxzoom,
|
||
S = void 0 === (S = S.style) ? {} : S; "mapbox" !== r && 9 <= t && e && !this.uV(g[0]) || (l = S.lV, s = S.th, d = S.ih, y = S.nh, p = S.qU, b = S.eh, c = void 0 === (c = S.textAnchor) ? "bottom" : c, u = S.rh, S.sh, h = S.Kr, S = S.Qr, w = [w, m], m = null, y && p && b && (this.Fs[CONSTS$1.sV] = 1, m = [{ image: CONSTS$1.sV, size: [p[6] / 2, p[7] / 2], clipOrigin: [p[4], p[5]], clipSize: [p[6], p[7]] }]), y = null, v && h && (o[h] || (o[h] = Util.color2RgbaArray(h)), b = o[h], p = void 0, h = 0, o[S] || (o[S] = Util.color2RgbaArray(S || "")), o[S] && (p = o[S], h = 3), S = this.fV(v) ? [0, v.length] : [], this.Ws(v, S), y = { txt: v, $G: S, direction: c || "center", offset: [0, 0], style: { fontSize: u, fillColor: b, strokeColor: p, strokeWidth: h, fold: !1 } }), S = { data: { id: M, name: v, txt: v, position: g[0], positionType: "relative", zooms: [s, d], extData: { id: M, type: "poi" } }, opts: { zIndex: l, zooms: w, visible: !0 } }, m && (S.opts.icon = m), y && (S.opts.text = y), (S.opts.text || S.opts.icon) && i.push(S)) } return i }, f.prototype.oV = function(f, e) { for (var t = 0, r = f; t < r.length; t++) { var i = r[t].name,
|
||
o = this.fV(i) ? [0, i.length] : [];
|
||
i && this.Ws(i, o) } }, f.prototype.DQ = function(f, e) { for (var t = [], r = 0, i = f; r < i.length; r++) { var n = (o = i[r]).path,
|
||
a = o.name || "",
|
||
l = labelsUtil.aQ(a.split("")),
|
||
s = o.distance || 1e5;
|
||
o.style && o.style[1]; var d = void 0 === (d = (o = o.style || {}).th) ? zoomRange[0] : d,
|
||
c = void 0 === (c = o.ih) ? zoomRange[1] : c,
|
||
u = o.Kr,
|
||
y = o.Qr,
|
||
b = o.rh,
|
||
p = o.zIndex,
|
||
o = o.Hr;
|
||
a && n && n.length && t.push({ path: n, positionType: "absolute", name: a, $G: [], CO: l, rank: p, BG: void 0 === o ? "name_en" : o, distance: s, zooms: [d, c], style: { fontSize: b || 12, fillColor: u, strokeColor: y } }) } return t }, f.prototype.fV = function(f) { return f = LangManager.kU(f), -1 !== CONSTS$1.EU.indexOf(f) }, f.prototype.uV = function(f) { for (var e = ProjectionManager.getProjection("EPSG:3857").unproject(f[0], f[1]), t = getOutseaData("mapbox").boundsP16, r = 0; r < t.length; r++) { var i = t[r]; if (geoUtil.isPointInPolygon(e, i[0])) return !1 } return !0 }, f.prototype.hV = function(f) { return f = [
|
||
[(f = f.Ro)[0], f[1]],
|
||
[f[2], f[1]],
|
||
[f[2], f[3]],
|
||
[f[0], f[3]]
|
||
], this.cV(f) }, f.prototype.cV = function(f) { for (var e = [], t = 0; t < f.length; t++) { var r = f[t],
|
||
r = ProjectionManager.getProjection("EPSG:3857").unproject(r[0], r[1]);
|
||
e.push(r) } for (var i = getOutseaData("mapbox").boundsP16, o = 0; o < i.length; o++) { var n = i[o]; if (geoUtil.isRingInRingByMapboxB(e, n[0])) return !0 } return !1 }, f.id = "mapbox", f }(LabelFormat),
|
||
Color = function() {
|
||
function f(f) { this.type = "AMap.Color", this.rgba = [], this.Vb(f) } var e = f; return f.Wb = function(f, e) { return { rgba: f.rgba } }, f.Gb = function(f) { return new e(f.rgba) }, f.FV = function(f, e) { var t = (f = this.DV(f[0], f[1], f[2], f[3]))[0],
|
||
r = f[1],
|
||
i = f[2],
|
||
f = f[3]; return this.GQ(t += (.5 < t ? -.5 : .5) * e * .35, r -= (r - .5) * e * .35 * 5, i -= (i - .5) * e * .35, f) }, f.DV = function(f, e, t, r) { var i, o, n, a = Math.max(f, e, t),
|
||
l = Math.min(f, e, t),
|
||
s = (a + l) / 2; if (a === l) i = o = 0;
|
||
else { switch (n = a - l, o = .5 < s ? n / (2 - a - l) : n / (a + l), a) {
|
||
case f:
|
||
i = (e - t) / n + (e < t ? 6 : 0); break;
|
||
case e:
|
||
i = (t - f) / n + 2; break;
|
||
case t:
|
||
i = (f - e) / n + 4 }
|
||
i /= 6 } return [i, o, s, r] }, f.uQ = function(f, e, t) { return t < 0 && (t += 1), 1 < t && --t, t < 1 / 6 ? f + 6 * (e - f) * t : t < .5 ? e : t < 2 / 3 ? f + (e - f) * (2 / 3 - t) * 6 : f }, f.GQ = function(f, e, t, r) { var i, o, n; return 0 === e ? i = o = n = t : (i = this.uQ(e = 2 * t - (t = t < .5 ? t * (1 + e) : t + e - t * e), t, f + 1 / 3), o = this.uQ(e, t, f), n = this.uQ(e, t, f - 1 / 3)), [i, o, n, r] }, f.Hb = function(f, e) { void 0 === e && (e = []); for (var t = 0, r = f.length; t < r; t += 2) e[t / 2] = parseInt(f.substr(t, 2), 16); return e }, f.Yx = function(f) { return f.startsWith("#") && (f = f.substr(1)), colorNames[f] ? e.Hb(colorNames[f].substr(1)) : 1 === f.length ? e.Hb(f + f + f + f + f + f) : 3 === f.length ? e.Hb(f[0] + f[0] + f[1] + f[1] + f[2] + f[2]) : 6 === f.length ? e.Hb(f) : [0, 0, 0] }, f.normalize = function(f) { for (var e = [], t = 0, r = f.length; t < r; t++) e[t] = f[t] / 255; return e }, f.create = function(f) { return f ? new e(f) : null }, f.prototype.normalize = function() { return [this.rgba[0] / 255, this.rgba[1] / 255, this.rgba[2] / 255, this.rgba[3] / 255] }, f.prototype.Vb = function(f) { "string" == typeof f ? colorNames[f] ? this.Hb(colorNames[f].substr(1)) : 0 !== f.length && (1 === (f = f.startsWith("#") ? f.substr(1) : f).length ? this.Hb(f + f + f + f + f + f) : 3 === f.length ? this.Hb(f[0] + f[0] + f[1] + f[1] + f[2] + f[2]) : 6 === f.length ? this.Hb(f) : 8 === f.length ? this.$b(f) : f.startsWith("rgba(") ? this.Yb(colorNames[f].substr(1)) : f.startsWith("rgb(") && this.Kb(colorNames[f].substr(1))) : f instanceof Array && (this.rgba[0] = f[0], this.rgba[1] = f[1], this.rgba[2] = f[2], this.rgba[3] = f[3] || 255) }, f.prototype.Hb = function(f) { this.$b(f + "FF") }, f.prototype.$b = function(f) { for (var e = 0, t = f.length; e < t; e += 2) this.rgba[e / 2] = parseInt(f.substr(e, 2), 16) }, f.prototype.Kb = function(f) { f = f.split(","), this.rgba[0] = parseInt(f[0].substr(4), 10), this.rgba[1] = parseInt(f[1], 10), this.rgba[2] = parseInt(f[2], 10), this.rgba[3] = 255 }, f.prototype.Yb = function(f) { f = f.split(","), this.rgba[0] = parseInt(f[0].substr(5), 10), this.rgba[1] = parseInt(f[1], 10), this.rgba[2] = parseInt(f[2], 10), this.rgba[3] = 255 * parseFloat(f[3]) << 0 }, e = __decorate([InnerClass("Color")], f) }(),
|
||
colorNames = { aliceblue: "#f0f8ff", antiquewhite: "#faebd7", aqua: "#00ffff", aquamarine: "#7fffd4", azure: "#f0ffff", beige: "#f5f5dc", bisque: "#ffe4c4", black: "#000000", blanchedalmond: "#ffebcd", blue: "#0000ff", blueviolet: "#8a2be2", brown: "#a52a2a", burlywood: "#deb887", cadetblue: "#5f9ea0", chartreuse: "#7fff00", chocolate: "#d2691e", coral: "#ff7f50", cornflowerblue: "#6495ed", cornsilk: "#fff8dc", crimson: "#dc143c", cyan: "#00ffff", darkblue: "#00008b", darkcyan: "#008b8b", darkgoldenrod: "#b8860b", darkgray: "#a9a9a9", darkgreen: "#006400", darkkhaki: "#bdb76b", darkmagenta: "#8b008b", darkolivegreen: "#556b2f", darkorange: "#ff8c00", darkorchid: "#9932cc", darkred: "#8b0000", darksalmon: "#e9967a", darkseagreen: "#8fbc8f", darkslateblue: "#483d8b", darkslategray: "#2f4f4f", darkturquoise: "#00ced1", darkviolet: "#9400d3", deeppink: "#ff1493", deepskyblue: "#00bfff", dimgray: "#696969", dodgerblue: "#1e90ff", firebrick: "#b22222", floralwhite: "#fffaf0", forestgreen: "#228b22", fuchsia: "#ff00ff", gainsboro: "#dcdcdc", ghostwhite: "#f8f8ff", gold: "#ffd700", goldenrod: "#daa520", gray: "#808080", green: "#008000", greenyellow: "#adff2f", honeydew: "#f0fff0", hotpink: "#ff69b4", indianred: "#cd5c5c", indigo: "#4b0082", ivory: "#fffff0", khaki: "#f0e68c", lavender: "#e6e6fa", lavenderblush: "#fff0f5", lawngreen: "#7cfc00", lemonchiffon: "#fffacd", lightblue: "#add8e6", lightcoral: "#f08080", lightcyan: "#e0ffff", lightgoldenrodyellow: "#fafad2", lightgrey: "#d3d3d3", lightgreen: "#90ee90", lightpink: "#ffb6c1", lightsalmon: "#ffa07a", lightseagreen: "#20b2aa", lightskyblue: "#87cefa", lightslategray: "#778899", lightsteelblue: "#b0c4de", lightyellow: "#ffffe0", lime: "#00ff00", limegreen: "#32cd32", linen: "#faf0e6", magenta: "#ff00ff", maroon: "#800000", mediumaquamarine: "#66cdaa", mediumblue: "#0000cd", mediumorchid: "#ba55d3", mediumpurple: "#9370d8", mediumseagreen: "#3cb371", mediumslateblue: "#7b68ee", mediumspringgreen: "#00fa9a", mediumturquoise: "#48d1cc", mediumvioletred: "#c71585", midnightblue: "#191970", mintcream: "#f5fffa", mistyrose: "#ffe4e1", moccasin: "#ffe4b5", navajowhite: "#ffdead", navy: "#000080", oldlace: "#fdf5e6", olive: "#808000", olivedrab: "#6b8e23", orange: "#ffa500", orangered: "#ff4500", orchid: "#da70d6", palegoldenrod: "#eee8aa", palegreen: "#98fb98", paleturquoise: "#afeeee", palevioletred: "#d87093", papayawhip: "#ffefd5", peachpuff: "#ffdab9", peru: "#cd853f", pink: "#ffc0cb", plum: "#dda0dd", powderblue: "#b0e0e6", purple: "#800080", rebeccapurple: "#663399", red: "#ff0000", rosybrown: "#bc8f8f", royalblue: "#4169e1", saddlebrown: "#8b4513", salmon: "#fa8072", sandybrown: "#f4a460", seagreen: "#2e8b57", seashell: "#fff5ee", sienna: "#a0522d", silver: "#c0c0c0", skyblue: "#87ceeb", slateblue: "#6a5acd", slategray: "#708090", snow: "#fffafa", springgreen: "#00ff7f", steelblue: "#4682b4", tan: "#d2b48c", teal: "#008080", thistle: "#d8bfd8", tomato: "#ff6347", turquoise: "#40e0d0", violet: "#ee82ee", wheat: "#f5deb3", white: "#ffffff", whitesmoke: "#f5f5f5", yellow: "#ffff00", yellowgreen: "#9acd32" },
|
||
NebulaLabelFormat = function(t) {
|
||
function f(f) { var e = t.call(this) || this; return e.bt = 20, e.WW = 20, e._opts = {}, e.uA = {}, e.fff = 1, e.vn = f.vn, e } return __extends(f, t), f.prototype.Ns = function(f, e) { return e.lang && (this.lang = e.lang), this._opts = e, this.bt = e.zoom, this.WW = e.ZL, this.rV(f, e.R_) }, f.prototype.rV = function(f, e) { var t, r, i = f.data || {},
|
||
o = i.poilabel || [],
|
||
n = {},
|
||
a = f.cQ; for (t in o) o.hasOwnProperty(t) && (r = this.nV(o[t], { aV: f.zo.z < 10, cQ: a, R_: e }), n[t] = r); return i = i.roadName || [], i = this.oV(i, { R_: e }), n.eA = i, n }, f.prototype.nV = function(j, f) { for (var e, t, r, i, o, n, a, l, s, d, c, u, y, b, p, U = CONSTS.Lj, F = U.file, R = U.size, D = CONSTS.Mp, B = CONSTS.Pp, G = CONSTS.jp, V = this._opts.scale, z = (f = void 0 === f ? {} : f).aV, h = f.cQ, W = this.bt, H = [], q = this.lang, Y = !h && 5 <= W, S = 0, K = j; S < K.length; S++) { var v = K[S],
|
||
g = v.cw,
|
||
M = v.ew,
|
||
w = v.pos,
|
||
m = (E = labelsUtil.tQ(v, q, Y ? f.R_ : void 0)).name; if ((!v.Wt || "oversea" !== v.Wt || m) && (p = E.$G || [], N = v.rank, I = v.minzoom || D, z ? zoomRange[1] : v.maxzoom, e = v.Fp, t = v.Ep, console.log(), 3 === I && (I = 2), 10002 !== e || 28 !== t) && (r = this.oA(e, t, this.WW)) && (i = 1 < V || 9 < r.fontSize ? r.fontSize : 9, l = r.iconFile, s = r.showMode, d = r.forceShow, c = r.zIndex, v = r.zooms, k = labelsUtil.Jj([I, zoomRange[1]], v))) { for (var k, x = (k = labelsUtil.$p(k))[0], T = [], A = {}; x <= k[1];) { var _ = this.vn.dn(e, t, x);
|
||
_ && "0" !== _.iconID && (L = _.iconID, -1 === T.indexOf(L) && (T.push(L), A[L] = []), A[L].push(x)), x++ }(10002 !== e || 20 !== t && 18 !== t) && 16 < i && (i = 15); for (var P, I = [k[0] - B, k[1] + G], C = (10002 === e && (13 === t || 18 === t || 19 === t || 36 === t) && I[0] <= 3 && (I[0] = 2.5), u = l && "https" + F[l], v = { data: { id: g ? g + t : "", position: w, name: m, txt: m, rank: N, BG: E.type, extData: { Lp: e, Ap: t, id: g, type: "poi", bz: M } }, opts: { type: "billboard", angle: 0, forceShow: d, zIndex: c, visible: !0, zooms: I } }, y = r.xOffset || 0, b = r.yOffset || 0, []), w = void 0, N = [0, 0], $ = 0; $ < T.length; $++) { var L = T[$],
|
||
X = l && this.aA(parseInt(L, 10)),
|
||
Z = R,
|
||
O = labelsUtil.$p(A[L]),
|
||
J = 1;!m || "152" !== L && "153" !== L && "154" !== L || (J = m.length <= 2 ? 1 : m.length / 2), P = vector.Up(Z, 2), u && C.push({ type: "image", image: u, clipOrigin: vector.add(X, [0, 0]), clipSize: Z, size: [P[0] * J, P[1]], anchor: [10 - 20 * y / 24, 10 - 20 * b / 24], angle: 0, retina: !0, zooms: [O[0] - B, O[O.length - 1] + G] }) }
|
||
m && (N = "曾母暗沙" === m ? (w = "top", [0, 5]) : C.length && C[0].image ? (L = T[0], h && (w = "bottom", N = [0, 0]), "北京" === m ? (w = "top", [0, 3]) : "澳门" === m ? (w = "left", [0, -2]) : "合肥" === m || "太原" === m || "西安" === m || "郑州" === m || "杭州" === m || "台北" === m || "加德满都" === m ? (w = "bottom", [0, -3]) : 10002 !== e || 31 !== t && 32 !== t && 34 !== t && 5 !== t ? 1 === s || "152" !== L && "153" !== L && "154" !== L ? (w = "right", [0, -2]) : (w = "center", [0, -1]) : (w = "right", [-3, -3])) : (w = "center", [y, b])); var E = "" + e + t;
|
||
(g = this.uA[E]) ? (o = g.faceColor, n = g.borderColor, a = g.holoColor) : (o = r.faceColor && Color.normalize(r.faceColor.rgba), n = r.borderColor && Color.normalize(r.borderColor.rgba), a = 3 === r.showMode ? r.holoColor && Color.normalize(r.holoColor.rgba) : null, this.uA[E] = { faceColor: o, borderColor: n, holoColor: a }), M = m ? { direction: w, offset: N, $G: p, style: { fontSize: i, strokeWidth: 2, padding: [0, 1, 0, 1], fold: !h && 5 <= W } } : {}, v.opts && (v.opts.icon = C, v.opts.text = M), u && (this.Fs[u] = 1), m && this.Ws(m, p), H.push(v) } } return H }, f.prototype.oV = function(f, e) { for (var t = CONSTS.Lj, r = t.file, i = t.size, o = CONSTS.Mp, n = CONSTS.Rp, a = CONSTS.Pp, l = CONSTS.jp, s = [], d = this._opts.scale, c = this.lang, u = (e = void 0 === e ? {} : e) && e.R_ && e.R_.protocol || "https", y = 0, b = f; y < b.length; y++) { var p, h, S = b[y],
|
||
v = S.path,
|
||
g = S.rank,
|
||
M = S.minzoom || o,
|
||
w = S.maxzoom || n,
|
||
m = S.shield,
|
||
k = S.shieldType,
|
||
x = (S = labelsUtil.tQ(S, c)).name,
|
||
T = S.$G;
|
||
x && this.Ws(x, T), !m || (T = Math.floor(v.length / 2)) < 1 || (v = [v[T - 1], v[T]], (k = this.oA(40001, T = k, this.WW)) && (p = 1 < d || 9 < k.fontSize ? k.fontSize : 9, h = k.faceColor, k = k.iconID, v = { data: { id: Util.stamp(this), position: v, positionType: "relative", name: x, txt: m, rank: g, BG: S.type, extData: { type: "shield", Lp: 40001, Ap: T } }, opts: { type: "billboard", angle: 0, zooms: [M - a, w + l], visible: !0 } }, x = this.aA(parseInt(k, 10)), g = 1 < m.length / 4 ? m.length / 4 : 1, S = { type: "image", image: u + r[0], clipOrigin: x, clipSize: i, size: [24 * (1 < d ? g : 9 * g / 7), 24], anchor: "center", angle: 0, retina: !0 }, T = m ? { direction: "center", offset: [0, 0], style: { fontSize: p, fillColor: h && Color.normalize(h.rgba), strokeWidth: 0, padding: [0, 1, 0, 1] } } : {}, v.opts && (v.opts.text = T, v.opts.icon = [S]), m && this.Ws(m), s.push(v))) } return s }, f.prototype.DQ = function(f, e) { for (var t, r, i = CONSTS.Mp, o = CONSTS.Rp, n = CONSTS.Pp, a = CONSTS.jp, l = e.zoom, s = 0, d = [], c = this.lang, u = 0, y = f; u < y.length; u++) { var b, p, h, S, v, g, M, w, m, k, x, T, A = y[u];
|
||
(b = A.id) || (this.fff += 1, b = A.hpt), t = (p = labelsUtil.tQ(A, c)).name, r = p.$G || [], t && (p = p.type, h = labelsUtil.EQ(t, r), h = labelsUtil.aQ(h), S = A.rank, v = A.Fp, g = A.Ep, s = A.distance || 0, M = A.minzoom || i, w = A.maxzoom || o, m = (x = (x = this.vn.dn(v, g, l)) && x[1] || {}).fontSize, k = x.faceColor, x = x.borderColor, M = (T = labelsUtil.$p([M, w]))[0], w = 20 <= (w = T[1]) ? zoomRange[1] : w, t) && b && m && k && (T = { id: b, positionType: "relative", name: t, $G: r, CO: h, rank: S, BG: p, distance: s, zooms: [M - n, w + a], path: 0 < A.path.length ? A.path : void 0, style: { fontSize: m, fillColor: vector.Up(k.rgba, 255), strokeColor: x && vector.Up(x.rgba, 255) }, extData: { mainkey: v, subkey: g } }, d.push(T)) } return d }, f.prototype.aA = function(f) { var t = (e = CONSTS.Lj).Rj,
|
||
e = e.size,
|
||
r = Math.floor(f / t); return f % 10 == 0 && --r, [(f - t * r - 1) * e[0], r * e[1]] }, f.prototype.oA = function(f, e, t) { var r = [3, 20],
|
||
i = this.vn.dn(f, e, t),
|
||
o = this.vn.mn(f, e); if (!i)
|
||
for (var n = 1;
|
||
(r[0] <= t - n || t + n <= r[1]) && !(i = (i = this.vn.dn(f, e, t - n)) || this.vn.dn(f, e, t + n));) n++; return i && (i.zooms = o), i }, f.prototype.mN = function(f, e) { var t = [0, 0]; if ("0" === f) switch (e) {
|
||
case "3":
|
||
t = [6, 6]; break;
|
||
case "4":
|
||
case "5":
|
||
case "6":
|
||
t = [9, 9] }
|
||
return t }, f.prototype.TN = function(f, e, t) { var r = t = void 0 === t ? [0, 0] : t; if ("0" === f) switch (e) {
|
||
case "3":
|
||
r = [30, 30]; break;
|
||
case "4":
|
||
case "5":
|
||
case "6":
|
||
r = [20, 20] }
|
||
return r }, f.id = exports.n0.nebulaLabel, f }(LabelFormat),
|
||
TileCoord = (function(f) { f.TOLOAD = "toload", f.LOADING = "loading", f.LOADED = "loaded", f.UNLOADED = "unloaded", f.ERROR = "error", f.RELOADING = "reloading" }(exports.TileState || (exports.TileState = {})), function() {
|
||
function f(f, e, t) { this.x = e, this.y = t, this.z = f, this.key = f + "," + e + "," + t } var r = f; return f.prototype.s0 = function(f) { var e = f - this.z,
|
||
t = Math.floor(Math.pow(2, e) * this.x),
|
||
e = Math.floor(Math.pow(2, e) * this.y); return new r(f, t, e) }, r = __decorate([InnerClass("TileCoord")], f) }()),
|
||
Tile = function() {
|
||
function f(f) { this.type = "tile", this.Ro = [0, 0, 0, 0], this.stamp = 0, this.zo = f, this.status = exports.TileState.TOLOAD, this._v = null, this.data = {} } return f.YH = function(f) { return f.status === exports.TileState.LOADED || f.status === exports.TileState.RELOADING }, f.prototype.destroy = function() {}, f.prototype.nG = function(f) { this.type = f }, __decorate([InnerClass("Tile")], f) }(),
|
||
NebulaTile = function(e) {
|
||
function f() { var f = null !== e && e.apply(this, arguments) || this; return f.type = "nebula", f.region = "world", f.aN = exports.zB.NONE, f.BN = exports.zB.NONE, f } return __extends(f, e), Object.defineProperty(f.prototype, "tag", { get: function() { return this.nN }, set: function(f) { this.aN = this.tag, this.nN = f }, enumerable: !1, configurable: !0 }), Object.defineProperty(f.prototype, "gB", { get: function() { return this.VN }, set: function(f) { this.BN = this.gB, this.VN = f }, enumerable: !1, configurable: !0 }), Object.defineProperty(f.prototype, "data", { get: function() { var f = []; return this.qc && this.qc.Dc ? f.push(this.qc) : (this.sN && f.push(this.sN), this.uN && f.push(this.uN)), this.lU && this.lU.Dc ? f.push(this.lU) : (this.fU && f.push(this.fU), this.cU && f.push(this.cU)), this.zN && this.zN.labels ? f.push(this.zN) : (this.HN && f.push(this.HN), this.WN && f.push(this.WN)), this.dU && this.dU.labels ? f.push(this.dU) : (this.vU && f.push(this.vU), this.gU && f.push(this.gU)), f }, set: function(f) {}, enumerable: !1, configurable: !0 }), f.prototype.xa = function(f, e) { if (void 0 === e && (e = exports.zB.ALL), Object.keys(f)) switch (e) {
|
||
case exports.zB.LITE:
|
||
this.uN = exports.Ln(exports.Ln({}, this.uN), f); break;
|
||
case exports.zB.LEFT:
|
||
this.sN = exports.Ln(exports.Ln({}, this.sN), f); break;
|
||
default:
|
||
exports.zB.ALL, this.qc = exports.Ln(exports.Ln({}, this.qc), f) } }, f.prototype.JE = function(f, e) { if (void 0 === e && (e = exports.zB.ALL), Object.keys(f)) switch (e) {
|
||
case exports.zB.LITE:
|
||
this.cU = exports.Ln(exports.Ln({}, this.cU), f); break;
|
||
case exports.zB.LEFT:
|
||
this.fU = exports.Ln(exports.Ln({}, this.fU), f); break;
|
||
default:
|
||
exports.zB.ALL, this.lU = exports.Ln(exports.Ln({}, this.lU), f) } }, f.prototype.rO = function(f, e) { if (void 0 === e && (e = exports.zB.ALL), Object.keys(f)) switch (e) {
|
||
case exports.zB.LITE:
|
||
this.WN = exports.Ln(exports.Ln({}, this.WN), f); break;
|
||
case exports.zB.LEFT:
|
||
this.HN = exports.Ln(exports.Ln({}, this.HN), f); break;
|
||
default:
|
||
exports.zB.ALL, this.zN = exports.Ln(exports.Ln({}, this.zN), f) } }, f.prototype.qE = function(f, e) { if (void 0 === e && (e = exports.zB.ALL), Object.keys(f)) switch (e) {
|
||
case exports.zB.LITE:
|
||
this.gU = exports.Ln(exports.Ln({}, this.gU), f); break;
|
||
case exports.zB.LEFT:
|
||
this.vU = exports.Ln(exports.Ln({}, this.vU), f); break;
|
||
default:
|
||
exports.zB.ALL, this.dU = exports.Ln(exports.Ln({}, this.dU), f) } }, f.prototype.ID = function(f) { f && (f.uN && (this.uN = f.uN), f.sN && (this.sN = f.sN), f.qc && (this.qc = f.qc), f.WN && (this.WN = f.WN), f.HN && (this.HN = f.HN), f.zN) && (this.zN = f.zN) }, f.prototype.rN = function() { this.aN ? this.nN = this.aN : this.nN = exports.zB.NONE, this.BN && (this.VN = this.BN, this.nN = exports.zB.NONE) }, f.prototype.AB = function() { var f = []; return this.qc && this.qc.road && this.zN && this.zN.labels ? f.push(this.qc) : (this.sN && this.sN.road && this.HN && this.HN.labels && f.push(this.sN), this.uN && this.uN.road && this.WN && this.WN.labels && f.push(this.uN)), f }, f.prototype.LY = function(f, e) { for (var t = 0, r = this.data; t < r.length; t++) { var i = r[t];
|
||
i.Dc && i.Dc.upload(f, !0), i.$c && i.$c.upload(f, !0), i.A_ && i.A_.upload(f, !0), i.FD && i.FD.upload(f, !0) } }, f.prototype.destroy = function() { var f = this.data; if (f)
|
||
for (var e = 0, t = f; e < t.length; e++) { var r = t[e]; if (r.Dc && (r.Dc.destroy(), delete r.Dc), r.$c && (r.$c.destroy(), delete r.$c), r.labels) { for (var i = 0, o = r.labels; i < o.length; i++) o[i].destroy();
|
||
delete r.labels }
|
||
r.Ta = !1, delete r.gf } }, f.prototype.KE = function(f) { for (var e, t = this.data, r = [], i = 0, o = f; i < o.length; i++)(n = o[i]).road && r.push(n.road); for (var n, a = 0, l = t; a < l.length; a++)(n = l[a]).XE && (e = n.XE, this.pU(r, e)) }, f.prototype.reload = function() { delete this.lU, delete this.cU, delete this.fU, delete this.zN, delete this.WN, delete this.HN, delete this.VN, this.BN = exports.zB.NONE }, f.prototype.pU = function(f, e) { for (var t = 0, r = e; t < r.length; t++) { var i = r[t],
|
||
o = i.id; if (i.path) break; for (var n = 0, a = f; n < a.length; n++) { var l = a[n];
|
||
i.path = this.yU(l, o) } } }, f.prototype.yU = function(f, e) { for (var t = 0, r = f; t < r.length; t++) { var i = r[t]; if (i.id === e) return i.path } }, f.prototype.oN = function() { var f = this.qc; return !!(f = Object.keys(f || {})).length && (1 !== f.length || "sdfLoaded" !== f[0]) }, __decorate([InnerClass("NebulaTile")], f) }(Tile),
|
||
RasterTile = function(e) {
|
||
function f() { var f = null !== e && e.apply(this, arguments) || this; return f.type = "raster", f } return __extends(f, e), f.prototype.destroy = function() { var f = this.data;
|
||
f && (f.texture && (f.texture.destroy(), delete f.texture), f.zs && (f.zs.context.deleteBuffer(f.zs), delete f.zs), f.Js) && (f.Js.destroy(), delete f.Js) }, f }(Tile),
|
||
VectorTile = function(e) {
|
||
function f() { var f = null !== e && e.apply(this, arguments) || this; return f.type = "vector", f } return __extends(f, e), f.prototype.destroy = function() { var f = this.data;
|
||
f && (f.$c && (f.$c.destroy(), delete f.$c), f.Uc) && delete f.Uc }, __decorate([InnerClass("VectorTile")], f) }(Tile);
|
||
|
||
function quickselect(f, e, t, r, i) { quickselectStep(f, e, t || 0, r || f.length - 1, i || defaultCompare) }
|
||
|
||
function quickselectStep(f, e, t, r, i) { for (; t < r;) { 600 < r - t && (o = r - t + 1, n = e - t + 1, l = Math.log(o), a = .5 * Math.exp(2 * l / 3), l = .5 * Math.sqrt(l * a * (o - a) / o) * (n - o / 2 < 0 ? -1 : 1), quickselectStep(f, e, Math.max(t, Math.floor(e - n * a / o + l)), Math.min(r, Math.floor(e + (o - n) * a / o + l)), i)); var o, n, a, l, s = f[e],
|
||
d = t,
|
||
c = r; for (swap(f, t, e), 0 < i(f[r], s) && swap(f, t, r); d < c;) { for (swap(f, d, c), d++, c--; i(f[d], s) < 0;) d++; for (; 0 < i(f[c], s);) c-- }
|
||
0 === i(f[t], s) ? swap(f, t, c) : swap(f, ++c, r), c <= e && (t = c + 1), e <= c && (r = c - 1) } }
|
||
|
||
function swap(f, e, t) { var r = f[e];
|
||
f[e] = f[t], f[t] = r }
|
||
|
||
function defaultCompare(f, e) { return f < e ? -1 : e < f ? 1 : 0 } var rbush_1 = rbush,
|
||
default_1 = rbush,
|
||
Status, M;
|
||
|
||
function rbush(f, e) { if (!(this instanceof rbush)) return new rbush(f, e);
|
||
this.Bc = Math.max(4, f || 9), this.Wc = Math.max(2, Math.ceil(.4 * this.Bc)), e && this.Gc(e), this.clear() }
|
||
|
||
function findItem(f, e, t) { if (!t) return e.indexOf(f); for (var r = 0; r < e.length; r++)
|
||
if (t(f, e[r])) return r;
|
||
return -1 }
|
||
|
||
function calcBBox(f, e) { distBBox(f, 0, f.children.length, e, f) }
|
||
|
||
function distBBox(f, e, t, r, i) {
|
||
(i = i || createNode(null)).ja = 1 / 0, i.Fa = 1 / 0, i.Oa = -1 / 0, i.Ea = -1 / 0; for (var o, n = e; n < t; n++) o = f.children[n], extend$1(i, f.Zc ? r(o) : o); return i }
|
||
|
||
function extend$1(f, e) { f.ja = Math.min(f.ja, e.ja), f.Fa = Math.min(f.Fa, e.Fa), f.Oa = Math.max(f.Oa, e.Oa), f.Ea = Math.max(f.Ea, e.Ea) }
|
||
|
||
function compareNodeMinX(f, e) { return f.ja - e.ja }
|
||
|
||
function compareNodeMinY(f, e) { return f.Fa - e.Fa }
|
||
|
||
function bboxArea(f) { return (f.Oa - f.ja) * (f.Ea - f.Fa) }
|
||
|
||
function bboxMargin(f) { return f.Oa - f.ja + (f.Ea - f.Fa) }
|
||
|
||
function enlargedArea(f, e) { return (Math.max(e.Oa, f.Oa) - Math.min(e.ja, f.ja)) * (Math.max(e.Ea, f.Ea) - Math.min(e.Fa, f.Fa)) }
|
||
|
||
function intersectionArea(f, e) { var t = Math.max(f.ja, e.ja),
|
||
r = Math.max(f.Fa, e.Fa),
|
||
i = Math.min(f.Oa, e.Oa),
|
||
f = Math.min(f.Ea, e.Ea); return Math.max(0, i - t) * Math.max(0, f - r) }
|
||
|
||
function contains(f, e) { return f.ja <= e.ja && f.Fa <= e.Fa && e.Oa <= f.Oa && e.Ea <= f.Ea }
|
||
|
||
function intersects(f, e) { return e.ja <= f.Oa && e.Fa <= f.Ea && e.Oa >= f.ja && e.Ea >= f.Fa }
|
||
|
||
function createNode(f) { return { children: f, height: 1, Zc: !0, ja: 1 / 0, Fa: 1 / 0, Oa: -1 / 0, Ea: -1 / 0 } }
|
||
|
||
function multiSelect(f, e, t, r, i) { for (var o, n = [e, t]; n.length;)(t = n.pop()) - (e = n.pop()) <= r || (quickselect(f, o = e + Math.ceil((t - e) / r / 2) * r, e, t, i), n.push(e, o, o, t)) }
|
||
|
||
function getModule() { return M = M || { nS: function(clsName, clsText) { try { eval(clsText) } catch (e) { throw e } }, eS: { iS: "1722413142803", BY: !Browser.DW && config[13] } }, M }
|
||
rbush.prototype = { all: function() { return this.qc(this.data, []) }, search: function(f) { var e = this.data,
|
||
t = [],
|
||
r = this.Yc; if (intersects(f, e))
|
||
for (var i, o, n, a, l = []; e;) { for (i = 0, o = e.children.length; i < o; i++) n = e.children[i], intersects(f, a = e.Zc ? r(n) : n) && (e.Zc ? t.push(n) : contains(f, a) ? this.qc(n, t) : l.push(n));
|
||
e = l.pop() }
|
||
return t }, Vc: function(f) { var e = this.data,
|
||
t = this.Yc; if (intersects(f, e))
|
||
for (var r, i, o, n, a = []; e;) { for (r = 0, i = e.children.length; r < i; r++)
|
||
if (o = e.children[r], intersects(f, n = e.Zc ? t(o) : o)) { if (e.Zc || contains(f, n)) return !0;
|
||
a.push(o) }
|
||
e = a.pop() }
|
||
return !1 }, load: function(f) { if (f && f.length)
|
||
if (f.length < this.Wc)
|
||
for (var e = 0, t = f.length; e < t; e++) this.Xc(f[e]);
|
||
else { var r, i = this.Hc(f.slice(), 0, f.length - 1, 0);
|
||
this.data.children.length ? this.data.height === i.height ? this.Jc(this.data, i) : (this.data.height < i.height && (r = this.data, this.data = i, i = r), this.Kc(i, this.data.height - i.height - 1, !0)) : this.data = i }
|
||
return this }, Xc: function(f) { return f && this.Kc(f, this.data.height - 1), this }, clear: function() { return this.data = createNode([]), this }, remove: function(f, e) { if (f)
|
||
for (var t, r, i, o, n = this.data, a = this.Yc(f), l = [], s = []; n || l.length;) { if (n || (n = l.pop(), r = l[l.length - 1], t = s.pop(), o = !0), n.Zc && -1 !== (i = findItem(f, n.children, e))) return n.children.splice(i, 1), l.push(n), this.Qc(l), this;
|
||
o || n.Zc || !contains(n, a) ? r ? (t++, n = r.children[t], o = !1) : n = null : (l.push(n), s.push(t), n = (r = n).children[t = 0]) }
|
||
return this }, Yc: function(f) { return f }, tf: compareNodeMinX, if: compareNodeMinY, toJSON: function() { return this.data }, ef: function(f) { return this.data = f, this }, qc: function(f, e) { for (var t = []; f;) f.Zc ? e.push.apply(e, f.children) : t.push.apply(t, f.children), f = t.pop(); return e }, Hc: function(f, e, t, r) { var i, o = t - e + 1,
|
||
n = this.Bc; if (o <= n) calcBBox(i = createNode(f.slice(e, t + 1)), this.Yc);
|
||
else { r || (r = Math.ceil(Math.log(o) / Math.log(n)), n = Math.ceil(o / Math.pow(n, r - 1))), (i = createNode([])).Zc = !1, i.height = r; var a, l, s, d, c = Math.ceil(o / n),
|
||
u = c * Math.ceil(Math.sqrt(n)); for (multiSelect(f, e, t, u, this.tf), a = e; a <= t; a += u)
|
||
for (multiSelect(f, a, s = Math.min(a + u - 1, t), c, this.if), l = a; l <= s; l += c) d = Math.min(l + c - 1, s), i.children.push(this.Hc(f, l, d, r - 1));
|
||
calcBBox(i, this.Yc) } return i }, nf: function(f, e, t, r) { for (var i, o, n, a, l, s, d, c; r.push(e), !e.Zc && r.length - 1 !== t;) { for (d = c = 1 / 0, i = 0, o = e.children.length; i < o; i++) l = bboxArea(n = e.children[i]), (s = enlargedArea(f, n) - l) < c ? (c = s, d = l < d ? l : d, a = n) : s === c && l < d && (d = l, a = n);
|
||
e = a || e.children[0] } return e }, Kc: function(f, e, t) { var r = this.Yc,
|
||
t = t ? f : r(f),
|
||
i = []; for ((r = this.nf(t, this.data, e, i)).children.push(f), extend$1(r, t); 0 <= e && i[e].children.length > this.Bc;) this.af(i, e), e--;
|
||
this.sf(t, i, e) }, af: function(f, e) { var t = f[e],
|
||
r = t.children.length,
|
||
i = this.Wc,
|
||
i = (this.rf(t, i, r), this.hf(t, i, r));
|
||
(r = createNode(t.children.splice(i, t.children.length - i))).height = t.height, r.Zc = t.Zc, calcBBox(t, this.Yc), calcBBox(r, this.Yc), e ? f[e - 1].children.push(r) : this.Jc(t, r) }, Jc: function(f, e) { this.data = createNode([f, e]), this.data.height = f.height + 1, this.data.Zc = !1, calcBBox(this.data, this.Yc) }, hf: function(f, e, t) { for (var r, i, o, n, a, l = n = 1 / 0, s = e; s <= t - e; s++) i = intersectionArea(o = distBBox(f, 0, s, this.Yc), r = distBBox(f, s, t, this.Yc)), o = bboxArea(o) + bboxArea(r), i < l ? (l = i, a = s, n = o < n ? o : n) : i === l && o < n && (n = o, a = s); return a }, rf: function(f, e, t) { var r = f.Zc ? this.tf : compareNodeMinX,
|
||
i = f.Zc ? this.if : compareNodeMinY;
|
||
this.lf(f, e, t, r) < this.lf(f, e, t, i) && f.children.sort(r) }, lf: function(f, e, t, r) { f.children.sort(r); for (var i, o = this.Yc, n = distBBox(f, 0, e, o), a = distBBox(f, t - e, t, o), l = bboxMargin(n) + bboxMargin(a), s = e; s < t - e; s++) i = f.children[s], extend$1(n, f.Zc ? o(i) : i), l += bboxMargin(n); for (s = t - e - 1; e <= s; s--) i = f.children[s], extend$1(a, f.Zc ? o(i) : i), l += bboxMargin(a); return l }, sf: function(f, e, t) { for (var r = t; 0 <= r; r--) extend$1(e[r], f) }, Qc: function(f) { for (var e, t = f.length - 1; 0 <= t; t--) 0 === f[t].children.length ? 0 < t ? (e = f[t - 1].children).splice(e.indexOf(f[t]), 1) : this.clear() : calcBBox(f[t], this.Yc) }, Gc: function(f) { var e = ["return a", " - b", ";"];
|
||
this.tf = new Function("a", "b", e.join(f[0])), this.if = new Function("a", "b", e.join(f[1])), this.Yc = new Function("a", "return {minX: a" + f[0] + ", minY: a" + f[1] + ", maxX: a" + f[2] + ", maxY: a" + f[3] + "};") } }, rbush_1.default = default_1,
|
||
function(f) { f.loading = "loading", f.loaded = "loaded" }(Status = Status || {}); var M = getModule(),
|
||
Queue = function() {
|
||
function f() { this.tT = {} } return f.prototype.add = function(f, e) { for (var t = f.length, r = 0, i = function() {
|
||
(r += 1) === t && e && e() }, o = 0, n = f; o < n.length; o++) { var a = n[o];
|
||
this._add(a, i) } }, f.prototype.has = function(f) { return (f = this.tT[f]) && f.status === Status.loaded }, f.prototype.finish = function(f) { if (f = this.tT[f]) { f.status = Status.loaded; for (var e = 0, t = f.pI; e < t.length; e++) { var r = t[e];
|
||
r && r() } } }, f.prototype._add = function(f, e) { var t = this.tT[f];
|
||
t ? t.status === Status.loading ? t.pI.push(e) : e() : this.tT[f] = { pI: [e], status: Status.loading } }, f }(),
|
||
Module = getModule();
|
||
|
||
function InnerClass(e) { return function(f) { getModule()[e] = f } }
|
||
getModule().MapboxLabelFormat = MapboxLabelFormat, getModule().NebulaLabelFormat = NebulaLabelFormat, getModule()._LocalZoom = { Ra: 13, za: 12, Ge: "" }, getModule().Support = Browser, getModule().geo = { lcs: lcs, ProjectionManager: ProjectionManager }, getModule().transform = transform, getModule().Util = Util, getModule().TileState = exports.TileState, getModule().assign = assign, getModule().labelsUtil = labelsUtil, getModule().LabelsRenderUtil = LabelsRenderUtil, getModule().vector = vector, getModule().rbush = rbush_1, getModule().lodash = { map: map, find: find, assign: assign, every: every, some: some }; var isSupportFloat32Array = "undefined" != typeof Float32Array,
|
||
EPSILON = (isSupportFloat32Array || (window.Float32Array = void 0, setMatrixArrayType(Array)), 1e-6),
|
||
ARRAY_TYPE = "undefined" != typeof Float32Array ? Float32Array : Array;
|
||
|
||
function setMatrixArrayType(f) { ARRAY_TYPE = f }
|
||
|
||
function fromValues(f, e, t, r) { var i = new ARRAY_TYPE(4); return i[0] = f, i[1] = e, i[2] = t, i[3] = r, i }
|
||
|
||
function create() { var f = new ARRAY_TYPE(16); return ARRAY_TYPE != Float32Array && (f[1] = 0, f[2] = 0, f[3] = 0, f[4] = 0, f[6] = 0, f[7] = 0, f[8] = 0, f[9] = 0, f[11] = 0, f[12] = 0, f[13] = 0, f[14] = 0), f[0] = 1, f[5] = 1, f[10] = 1, f[15] = 1, f }
|
||
|
||
function identity$1(f) { return f[0] = 1, f[1] = 0, f[2] = 0, f[3] = 0, f[4] = 0, f[5] = 1, f[6] = 0, f[7] = 0, f[8] = 0, f[9] = 0, f[10] = 1, f[11] = 0, f[12] = 0, f[13] = 0, f[14] = 0, f[15] = 1, f }
|
||
|
||
function invert(f, e) { var t = e[0],
|
||
r = e[1],
|
||
i = e[2],
|
||
o = e[3],
|
||
n = e[4],
|
||
a = e[5],
|
||
l = e[6],
|
||
s = e[7],
|
||
d = e[8],
|
||
c = e[9],
|
||
u = e[10],
|
||
y = e[11],
|
||
b = e[12],
|
||
p = e[13],
|
||
h = e[14],
|
||
S = t * a - r * n,
|
||
v = t * l - i * n,
|
||
g = t * s - o * n,
|
||
M = r * l - i * a,
|
||
w = r * s - o * a,
|
||
m = i * s - o * l,
|
||
k = d * p - c * b,
|
||
x = d * h - u * b,
|
||
T = d * (e = e[15]) - y * b,
|
||
A = c * h - u * p,
|
||
_ = c * e - y * p,
|
||
P = u * e - y * h,
|
||
I = S * P - v * _ + g * A + M * T - w * x + m * k; return I ? (f[0] = (a * P - l * _ + s * A) * (I = 1 / I), f[1] = (i * _ - r * P - o * A) * I, f[2] = (p * m - h * w + e * M) * I, f[3] = (u * w - c * m - y * M) * I, f[4] = (l * T - n * P - s * x) * I, f[5] = (t * P - i * T + o * x) * I, f[6] = (h * g - b * m - e * v) * I, f[7] = (d * m - u * g + y * v) * I, f[8] = (n * _ - a * T + s * k) * I, f[9] = (r * T - t * _ - o * k) * I, f[10] = (b * w - p * g + e * S) * I, f[11] = (c * g - d * w - y * S) * I, f[12] = (a * x - n * A - l * k) * I, f[13] = (t * A - r * x + i * k) * I, f[14] = (p * v - b * M - h * S) * I, f[15] = (d * M - c * v + u * S) * I, f) : null }
|
||
|
||
function multiply(f, e, t) { var r = e[0],
|
||
i = e[1],
|
||
o = e[2],
|
||
n = e[3],
|
||
a = e[4],
|
||
l = e[5],
|
||
s = e[6],
|
||
d = e[7],
|
||
c = e[8],
|
||
u = e[9],
|
||
y = e[10],
|
||
b = e[11],
|
||
p = e[12],
|
||
h = e[13],
|
||
S = e[14],
|
||
e = e[15],
|
||
v = t[0],
|
||
g = t[1],
|
||
M = t[2],
|
||
w = t[3]; return f[0] = v * r + g * a + M * c + w * p, f[1] = v * i + g * l + M * u + w * h, f[2] = v * o + g * s + M * y + w * S, f[3] = v * n + g * d + M * b + w * e, v = t[4], g = t[5], M = t[6], w = t[7], f[4] = v * r + g * a + M * c + w * p, f[5] = v * i + g * l + M * u + w * h, f[6] = v * o + g * s + M * y + w * S, f[7] = v * n + g * d + M * b + w * e, v = t[8], g = t[9], M = t[10], w = t[11], f[8] = v * r + g * a + M * c + w * p, f[9] = v * i + g * l + M * u + w * h, f[10] = v * o + g * s + M * y + w * S, f[11] = v * n + g * d + M * b + w * e, v = t[12], g = t[13], M = t[14], w = t[15], f[12] = v * r + g * a + M * c + w * p, f[13] = v * i + g * l + M * u + w * h, f[14] = v * o + g * s + M * y + w * S, f[15] = v * n + g * d + M * b + w * e, f }
|
||
|
||
function getTranslation(f, e) { return f[0] = e[12], f[1] = e[13], f[2] = e[14], f }
|
||
|
||
function perspective(f, e, t, r, i) { return e = 1 / Math.tan(e / 2), f[0] = e / t, f[1] = 0, f[2] = 0, f[3] = 0, f[4] = 0, f[5] = e, f[6] = 0, f[7] = 0, f[8] = 0, f[9] = 0, f[11] = -1, f[12] = 0, f[13] = 0, f[15] = 0, null != i && i !== 1 / 0 ? (f[10] = (i + r) * (t = 1 / (r - i)), f[14] = 2 * i * r * t) : (f[10] = -1, f[14] = -2 * r), f }
|
||
|
||
function ortho(f, e, t, r, i, o, n) { var a = 1 / (e - t),
|
||
l = 1 / (r - i),
|
||
s = 1 / (o - n); return f[0] = -2 * a, f[1] = 0, f[2] = 0, f[3] = 0, f[4] = 0, f[5] = -2 * l, f[6] = 0, f[7] = 0, f[8] = 0, f[9] = 0, f[10] = 2 * s, f[11] = 0, f[12] = (e + t) * a, f[13] = (i + r) * l, f[14] = (n + o) * s, f[15] = 1, f }
|
||
|
||
function lookAt(f, e, t, r) { var i, o, n, a, l = e[0],
|
||
s = e[1],
|
||
e = e[2],
|
||
d = r[0],
|
||
c = r[1],
|
||
r = r[2],
|
||
u = t[0],
|
||
y = t[1],
|
||
t = t[2]; return Math.abs(l - u) < EPSILON && Math.abs(s - y) < EPSILON && Math.abs(e - t) < EPSILON ? identity$1(f) : (u = l - u, y = s - y, t = e - t, i = c * (t *= a = 1 / Math.hypot(u, y, t)) - r * (y *= a), r = r * (u *= a) - d * t, d = d * y - c * u, (a = Math.hypot(i, r, d)) ? (i *= a = 1 / a, r *= a, d *= a) : d = r = i = 0, c = y * d - t * r, o = t * i - u * d, n = u * r - y * i, (a = Math.hypot(c, o, n)) ? (c *= a = 1 / a, o *= a, n *= a) : n = o = c = 0, f[0] = i, f[1] = c, f[2] = u, f[3] = 0, f[4] = r, f[5] = o, f[6] = y, f[7] = 0, f[8] = d, f[9] = n, f[10] = t, f[11] = 0, f[12] = -(i * l + r * s + d * e), f[13] = -(c * l + o * s + n * e), f[14] = -(u * l + y * s + t * e), f[15] = 1, f) }
|
||
|
||
function equals(f, e) { var t = f[0],
|
||
r = f[1],
|
||
i = f[2],
|
||
o = f[3],
|
||
n = f[4],
|
||
a = f[5],
|
||
l = f[6],
|
||
s = f[7],
|
||
d = f[8],
|
||
c = f[9],
|
||
u = f[10],
|
||
y = f[11],
|
||
b = f[12],
|
||
p = f[13],
|
||
h = f[14],
|
||
f = f[15],
|
||
S = e[0],
|
||
v = e[1],
|
||
g = e[2],
|
||
M = e[3],
|
||
w = e[4],
|
||
m = e[5],
|
||
k = e[6],
|
||
x = e[7],
|
||
T = e[8],
|
||
A = e[9],
|
||
_ = e[10],
|
||
P = e[11],
|
||
I = e[12],
|
||
C = e[13],
|
||
N = e[14],
|
||
e = e[15]; return Math.abs(t - S) <= EPSILON * Math.max(1, Math.abs(t), Math.abs(S)) && Math.abs(r - v) <= EPSILON * Math.max(1, Math.abs(r), Math.abs(v)) && Math.abs(i - g) <= EPSILON * Math.max(1, Math.abs(i), Math.abs(g)) && Math.abs(o - M) <= EPSILON * Math.max(1, Math.abs(o), Math.abs(M)) && Math.abs(n - w) <= EPSILON * Math.max(1, Math.abs(n), Math.abs(w)) && Math.abs(a - m) <= EPSILON * Math.max(1, Math.abs(a), Math.abs(m)) && Math.abs(l - k) <= EPSILON * Math.max(1, Math.abs(l), Math.abs(k)) && Math.abs(s - x) <= EPSILON * Math.max(1, Math.abs(s), Math.abs(x)) && Math.abs(d - T) <= EPSILON * Math.max(1, Math.abs(d), Math.abs(T)) && Math.abs(c - A) <= EPSILON * Math.max(1, Math.abs(c), Math.abs(A)) && Math.abs(u - _) <= EPSILON * Math.max(1, Math.abs(u), Math.abs(_)) && Math.abs(y - P) <= EPSILON * Math.max(1, Math.abs(y), Math.abs(P)) && Math.abs(b - I) <= EPSILON * Math.max(1, Math.abs(b), Math.abs(I)) && Math.abs(p - C) <= EPSILON * Math.max(1, Math.abs(p), Math.abs(C)) && Math.abs(h - N) <= EPSILON * Math.max(1, Math.abs(h), Math.abs(N)) && Math.abs(f - e) <= EPSILON * Math.max(1, Math.abs(f), Math.abs(e)) }
|
||
|
||
function create$1() { var f = new ARRAY_TYPE(3); return ARRAY_TYPE != Float32Array && (f[0] = 0, f[1] = 0, f[2] = 0), f }
|
||
|
||
function fromValues$1(f, e, t) { var r = new ARRAY_TYPE(3); return r[0] = f, r[1] = e, r[2] = t, r }
|
||
|
||
function copy(f, e) { f[0] = e[0], f[1] = e[1], f[2] = e[2] }
|
||
|
||
function set(f, e, t, r) { return f[0] = e, f[1] = t, f[2] = r, f }
|
||
|
||
function subtract(f, e, t) { return f[0] = e[0] - t[0], f[1] = e[1] - t[1], f[2] = e[2] - t[2], f }
|
||
|
||
function cross(f, e, t) { var r = e[0],
|
||
i = e[1],
|
||
e = e[2],
|
||
o = t[0],
|
||
n = t[1],
|
||
t = t[2];
|
||
f[0] = i * t - e * n, f[1] = e * o - r * t, f[2] = r * n - i * o }
|
||
Math.hypot || (Math.hypot = function() { for (var f = 0, e = arguments.length; e--;) f += arguments[e] * arguments[e]; return Math.sqrt(f) }); var sub = subtract,
|
||
forEach$1 = function() { var l = create$1(); return function(f, e, t, r, i, o) { var n, a; for (e = e || 3, t = t || 0, a = r ? Math.min(r * e + t, f.length) : f.length, n = t; n < a; n += e) l[0] = f[n], l[1] = f[n + 1], l[2] = f[n + 2], i(l, l, o), f[n] = l[0], f[n + 1] = l[1], f[n + 2] = l[2]; return f } }();
|
||
|
||
function create$2() { var f = new ARRAY_TYPE(4); return ARRAY_TYPE != Float32Array && (f[0] = 0, f[1] = 0, f[2] = 0, f[3] = 0), f }
|
||
|
||
function fromValues$2(f, e, t, r) { var i = new ARRAY_TYPE(4); return i[0] = f, i[1] = e, i[2] = t, i[3] = r, i }
|
||
|
||
function scale$1(f, e, t) { return f[0] = e[0] * t, f[1] = e[1] * t, f[2] = e[2] * t, f[3] = e[3] * t, f }
|
||
|
||
function transformMat4(f, e, t) { var r = e[0],
|
||
i = e[1],
|
||
o = e[2],
|
||
e = e[3]; return f[0] = t[0] * r + t[4] * i + t[8] * o + t[12] * e, f[1] = t[1] * r + t[5] * i + t[9] * o + t[13] * e, f[2] = t[2] * r + t[6] * i + t[10] * o + t[14] * e, f[3] = t[3] * r + t[7] * i + t[11] * o + t[15] * e, f } var forEach$2 = function() { var l = create$2(); return function(f, e, t, r, i, o) { var n, a; for (e = e || 4, t = t || 0, a = r ? Math.min(r * e + t, f.length) : f.length, n = t; n < a; n += e) l[0] = f[n], l[1] = f[n + 1], l[2] = f[n + 2], l[3] = f[n + 3], i(l, l, o), f[n] = l[0], f[n + 1] = l[1], f[n + 2] = l[2], f[n + 3] = l[3]; return f } }();
|
||
|
||
function create$3() { var f = new ARRAY_TYPE(2); return ARRAY_TYPE != Float32Array && (f[0] = 0, f[1] = 0), f }
|
||
|
||
function clone$1(f) { var e = new ARRAY_TYPE(2); return e[0] = f[0], e[1] = f[1], e }
|
||
|
||
function fromValues$3(f, e) { var t = new ARRAY_TYPE(2); return t[0] = f, t[1] = e, t }
|
||
|
||
function copy$1(f, e) { f[0] = e[0], f[1] = e[1] }
|
||
|
||
function set$1(f, e, t) { return f[0] = e, f[1] = t, f }
|
||
|
||
function add(f, e, t) { f[0] = e[0] + t[0], f[1] = e[1] + t[1] }
|
||
|
||
function subtract$1(f, e, t) { return f[0] = e[0] - t[0], f[1] = e[1] - t[1], f }
|
||
|
||
function multiply$1(f, e, t) { return f[0] = e[0] * t[0], f[1] = e[1] * t[1], f }
|
||
|
||
function scale$2(f, e, t) { f[0] = e[0] * t, f[1] = e[1] * t }
|
||
|
||
function distance(f, e) { var t = e[0] - f[0],
|
||
e = e[1] - f[1]; return Math.hypot(t, e) }
|
||
|
||
function negate(f, e) { f[0] = -e[0], f[1] = -e[1] }
|
||
|
||
function normalize(f, e) { var t = e[0],
|
||
r = e[1];
|
||
0 < (t = t * t + r * r) && (t = 1 / Math.sqrt(t)), f[0] = e[0] * t, f[1] = e[1] * t }
|
||
|
||
function dot(f, e) { return f[0] * e[0] + f[1] * e[1] }
|
||
|
||
function cross$1(f, e, t) { e = e[0] * t[1] - e[1] * t[0], f[0] = f[1] = 0, f[2] = e }
|
||
|
||
function transformMat2(f, e, t) { var r = e[0],
|
||
e = e[1];
|
||
f[0] = t[0] * r + t[2] * e, f[1] = t[1] * r + t[3] * e }
|
||
|
||
function rotate(f, e, t, r) { var i = e[0] - t[0],
|
||
e = e[1] - t[1],
|
||
o = Math.sin(r),
|
||
r = Math.cos(r);
|
||
f[0] = i * r - e * o + t[0], f[1] = i * o + e * r + t[1] }
|
||
|
||
function angle(f, e) { var t = f[0],
|
||
f = f[1],
|
||
r = e[0],
|
||
i = t * t + f * f,
|
||
o = r * r + (e = e[1]) * e; return 1 < (t = (t * r + f * e) * (0 < i ? 1 / Math.sqrt(i) : i) * (0 < o ? 1 / Math.sqrt(o) : o)) ? 0 : t < -1 ? Math.PI : Math.acos(t) }
|
||
|
||
function equals$1(f, e) { var t = f[0],
|
||
f = f[1],
|
||
r = e[0],
|
||
e = e[1]; return Math.abs(t - r) <= EPSILON * Math.max(1, Math.abs(t), Math.abs(r)) && Math.abs(f - e) <= EPSILON * Math.max(1, Math.abs(f), Math.abs(e)) } var sub$1 = subtract$1,
|
||
mul = multiply$1,
|
||
dist$1 = distance,
|
||
forEach$3 = function() { var l = create$3(); return function(f, e, t, r, i, o) { var n, a; for (e = e || 2, t = t || 0, a = r ? Math.min(r * e + t, f.length) : f.length, n = t; n < a; n += e) l[0] = f[n], l[1] = f[n + 1], i(l, l, o), f[n] = l[0], f[n + 1] = l[1]; return f } }(),
|
||
Event = function() {
|
||
function f() { this.vI = {} } return f.addListener = function(f, e, t) { f.on(e, t) }, f.trigger = function(f, e, t) { f.emit(e, t) }, f.clearListeners = function(f, e) { f.clearEvents(e) }, f.addDomListener = function(f, e, t) { f.addEventListener(e, t) }, f.extend = function(f, t, r) { forEach(f = "string" == typeof f ? [f] : f, function(e) { t.on(e, function(f) { r.emit(e, f) }) }) }, f.prototype.on = function(f, e, t, r) { void 0 === t && (t = this), void 0 === r && (r = !1); for (var i = 0, o = Array.isArray(f) ? f : [f]; i < o.length; i++) { var n = o[i];
|
||
this._on(n, e, t, r) } return this }, f.prototype.off = function(f, e, t) { void 0 === t && (t = this); var r = this.vI; if (f in r)
|
||
for (var i = 0; i < r[f].length; i += 1)
|
||
if (r[f][i].fn === e && r[f][i].context === t) return r[f].splice(i, 1), this;
|
||
return this }, f.prototype.hasEvents = function(f, e, t) { void 0 === t && (t = this); var r = this.vI; if (f && e && f in r)
|
||
for (var i = 0; i < r[f].length; i += 1)
|
||
if (r[f][i].fn === e && r[f][i].context === t) return !0;
|
||
return !1 }, f.prototype.clearEvents = function(f) { return f ? this.vI[f] && delete this.vI[f] : this.vI = {}, this }, f.prototype.emit = function(f, e) { if (void 0 === e && (e = {}), f in this.vI) { for (var t = exports.Ln(exports.Ln({}, e), { type: f }), r = this.vI[f], i = 0, o = r.length; i < o; i += 1) { var n = r[i];
|
||
n && n.fn && (n.fn.call(n.context, t), n.once) && (this.vI[f].splice(i, 1), --i, --o) }
|
||
0 === r.length && delete this.vI[f] } return this }, f.prototype.getEvents = function() { return this.vI }, f.prototype._on = function(f, e, t, r) { var i; return void 0 === r && (r = !1), this.hasEvents(f, e, t = void 0 === t ? this : t) || ((i = this.vI)[f] = i[f] || [], i[f].push({ fn: e, context: t || this, once: r })), this }, f }(),
|
||
NebulaTileCoord = function() { var n = [-180, -90],
|
||
a = [180, 90],
|
||
l = a[0] - n[0],
|
||
s = a[1] - n[1]; return { ga: function(f, e, t, r) { void 0 === r && (r = "lnglat"); var t = Math.pow(2, t),
|
||
i = l / t,
|
||
t = s / t,
|
||
o = ProjectionManager.getProjection("EPSG:3857"); return "lnglat" === r ? [f * i + n[0], a[1] - e * t, (f + 1) * i + n[0], a[1] - (e + 1) * t] : "EPSG:3857" === r ? (r = o.project(f * i + n[0], a[1] - e * t), o = o.project((f + 1) * i + n[0], a[1] - (e + 1) * t), [r[0], r[1], o[0], o[1]]) : [0, 0, 0, 0] } } }(),
|
||
ComputeTileRange = function() {
|
||
function f() {} return f.ha = function(f, e) { for (var t = [f[0], f[3]], f = [f[2], f[1]], t = this.Ga(t, e), f = this.Ga(f, e), r = t[0], i = t[1], o = f[0], n = f[1], a = [], l = r; l <= o; l += 1)
|
||
for (var s = i; s <= n; s += 1) a.push([e, l, s]); return a }, f.Ga = function(f, e) { var t = 180 / (e = Math.pow(2, e)); return [Math.floor(f[0] / (360 / e)) + e / 2, e / 2 - Math.ceil(f[1] / t)] }, f.ra = function(f) { return { 2: 3, 3: 3, 4: 3, 5: 3, 6: 6, 7: 6, 8: 8, 9: 8, 10: 10, 11: 10, 12: 10, 13: 12, 14: 12, 15: 14, 16: 14, 17: 14, 18: 14, 19: 14, 20: 14, 21: 14, 22: 14 }[f] }, f }(),
|
||
Task = function() {
|
||
function f(f) { var t = this;
|
||
this.xN = f, this.cancel = function() { t.xN && t.xN.cancel(); for (var f = 0, e = t.children; f < e.length; f++) e[f].cancel.apply(t) }, this.children = [] } return f.prototype._H = function(f) { this.children.push(f) }, f }(),
|
||
LabelPlacement = function() {
|
||
function f(f) { this.options = {}, this.Gj = {}, this.Hj = {}, this.Vj = {}, this.Wj = {}, this.$j = 0, this.render = null, this.N8t = [], this.NO = {}, this.ac = f.z_, this.Mf = f.R_, this.io = f.canvas, this.NT = f.Nz } return f.prototype.nO = function(f, e) { this.iO = (e = void 0 === e ? {} : e).from || "inner", labelsUtil.zj(this, f), this.eO(e) }, f.prototype.destroy = function() {}, f.prototype.setRichtoImage = function(f) { f && (this.N8t = f) }, f.prototype.oO = function() { return this.gs.aO() }, f.prototype.uO = function() { return this.oO().viewMode, !0 }, f.prototype.eO = function(f) { var e, t, r, i, o, n, a = (f = void 0 === f ? {} : f).center,
|
||
l = this.Gj || {},
|
||
s = this.Vj || {},
|
||
d = this.Hj || {},
|
||
c = this.iO,
|
||
u = 0; for (e in l) l.hasOwnProperty(e) && e && (n = l[e] || {}, d[e] = this.sO(e, n), s[e] = this.fO(e, n, d[e], { from: c, center: a }), t = n.data.txt, r = (o = n.opts).icon, i = o.richText, o = o.text || {}, n = n.CO, t && n && (u += n.length + 1, o.style) && o.style.borderWidth && (u += 4), r && r.length && r[0].image && (u += r.length), i) && i.image && i.image.src && (u += 1);
|
||
this.$j = u, this.Vj = s, this.Hj = d }, f.prototype.hO = function(f, e) { var t = CONSTS.Mp,
|
||
r = CONSTS.Rp,
|
||
i = (f = void 0 === f ? [] : f)[0] || t,
|
||
f = f[1] || r; return [(t = (e = void 0 === e ? [] : e)[0] || t) < i ? i : t, f < (e = e[1] || r) ? f : e] }, f.prototype.cO = function(f, e) { var t = {}; return t.type = (f = void 0 === f ? {} : f).type || e.type, t.image = f.image || "", t.clipOrigin = f.clipOrigin || e.clipOrigin, t.clipSize = f.clipSize, t.size = f.size, t.offset = f.offset, t.anchor = f.anchor || e.anchor, t.angel = f.angel || e.angel, t.retina = f.retina || e.retina, t.zooms = f.zooms || e.zooms, t }, f.prototype.vO = function(f, e) { var t = {},
|
||
e = (t.type = (f = void 0 === f ? {} : f).type || e.type, t.direction = f.direction || e.direction, t.offset = f.offset || e.offset, t.zooms = f.zooms || e.zooms, e.style),
|
||
f = f.style || {},
|
||
r = (t.style = {}, t.style.fontFamily = f.fontFamily || e.fontFamily, t.style.fontSize = f.fontSize || e.fontSize, t.style.fontWeight = f.fontWeight || e.fontWeight, t.style.fillColor = f.fillColor || e.fillColor, f.strokeColor),
|
||
i = f.strokeWidth; return isUndefined(i) && isUndefined(r) ? t.style.strokeWidth = e.strokeWidth : isUndefined(i) && !isUndefined(r) ? t.style.strokeWidth = 1 : t.style.strokeWidth = f.strokeWidth, t.style.borderColor = f.borderColor, t.style.borderWidth = f.borderWidth, t.style.strokeColor = f.strokeColor || e.strokeColor, t.style.borderColor = f.borderColor || e.borderColor, t.style.backgroundColor = f.backgroundColor, t.style.padding = f.padding || e.padding, t.style.fold = void 0 !== f.fold && f.fold, t }, f.prototype.lO = function(f, e) { return f && "object" == typeof f && null !== f ? [(e = this.ac.getImage("rich-icon_" + e)).width || 36, e.height || 36] : [(e = (this.ac.Fs || {})[f] || {}).width || 36, e.height || 36] }, f.prototype.dO = function(f, e) { var t = CONSTS.sj,
|
||
e = ((t = this.cO(f, t.icon)).zooms = f.zooms || e.bO, this.hO(e.zooms, t.zooms)),
|
||
e = (t.zooms = e, ""); return f && f.hS && (e = f.hS), t.size && t.clipSize || (e = (f = this.lO(f.image || "", e))[0] || 0, f = f[1] || 0, t.size || (t.size = [e, f]), t.clipSize) || (t.clipSize = [e, f]), t }, f.prototype.pO = function(f, e) { var t = CONSTS.sj,
|
||
f = ((t = this.vO(f = void 0 === f ? {} : f, t.text)).zooms = f.zooms || e.bO, t.direction),
|
||
r = e.yO,
|
||
r = (f = this.mO(f || "", r)).textAlign,
|
||
f = f.verticalAlign,
|
||
r = (t.style && (t.style.textAlign = r, t.style.verticalAlign = f), this.hO(e.zooms, t.zooms)); return t.zooms = r, t }, f.prototype.sO = function(f, e) { var t, i = (r = e.data).id,
|
||
r = r && r.txt,
|
||
o = (e = e.opts || {}).angle || 0,
|
||
n = isUndefined(e.opacity) ? 1 : e.opacity,
|
||
a = e.icon,
|
||
l = e.richText,
|
||
s = e.text,
|
||
d = e.zooms,
|
||
e = e.visible,
|
||
c = { angle: o, opacity: n, zooms: this.options.zooms, bO: d },
|
||
u = (l && l.image && "string" != typeof l.image && (0 === Object.keys(a).length && l ? (l.hS !== i && (l.hS = i), a = [l], t = { img: l.image, startX: 0, startY: 0, status: l.LOADED, height: l.height, width: l.width, name: "rich-icon_" + i, type: "richImage" }, this.ac.addImageData("rich-icon_" + i, t)) : l && (l.hS !== i && (l.hS = i), t = { img: (a[0] = l).image, startX: 0, startY: 0, status: l.LOADED, height: l.height, width: l.width, name: "rich-icon_" + i, type: "richImage" }, this.ac.addImageData("rich-icon_" + i, t))), []); if (a)
|
||
for (var y = 0, b = a; y < b.length; y++) { var p = b[y];
|
||
u.push(this.dO(p, c)) }
|
||
return c.yO = !!a, (o = r ? this.pO(s, c) : null) && (o.txt = r), n = { icon: u, text: o, visible: e }, "labelsLayer" === this.iO && (n.showText = 1, n.showIcon = 1), n }, f.prototype.gO = function(f) { var e; return this.oO().zoom < LocalZoom ? f : (e = lcs.getLocalByCoord(f), vector.Ip(f, e.center)) }, f.prototype.wO = function(f, e) { var t, r; return e && e.image ? (r = CONSTS.sj.icon, t = e.size || this.lO(e.image), e = e.anchor || r.anchor, { size: t, origin: f, anchorOffset: r = this._getAnchorOffset(t, e), coords: vector.add(f, r) }) : { size: [0, 0], origin: f, anchorOffset: [0, 0], coords: f } }, f.prototype.MO = function(f, e, t) { var r, i, o, n, a, l; return "text" === (f = void 0 === f ? "icon" : f) ? (f = e.origin, e.start, n = t.padding, l = t.c, t = void 0, r = n.offsetX, i = n.offsetY, o = n.w, n = n.h, a = (this.uO() ? (t = l[0], l) : (t = f[0], f))[1], { x: t + r, y: a + i, width: o, height: n }) : (f = e.size, e.coords, { x: (l = e.c)[0], y: l[1], width: (t = void 0 === f ? [] : f)[0] || 0, height: t[1] || 0 }) }, f.prototype._getAnchorOffset = function(f, e) { var t = CONSTS.JM,
|
||
r = f[0] || 0,
|
||
i = f[1] || 0; if ("[object Array]" === Object.prototype.toString.apply(e)) { var f = e[0],
|
||
o = e[1]; if ("number" == typeof f && "number" == typeof o) return vector.tA(e) } else if ("string" == typeof e) { var o = (f = e.split("-"))[0],
|
||
e = f[1],
|
||
n = 0,
|
||
a = 0; switch (o !== t.ij || e || (o = t.nj, e = t.ij), e) {
|
||
case t.LEFT:
|
||
n = 0; break;
|
||
case t.ij:
|
||
n = -r / 2; break;
|
||
case t.QM:
|
||
n = -r; break;
|
||
default:
|
||
n = 0 } switch (o) {
|
||
case t.ZM:
|
||
a = 0; break;
|
||
case t.nj:
|
||
a = -i / 2; break;
|
||
case t.tj:
|
||
a = -i; break;
|
||
default:
|
||
a = 0 } return [n, a] } return [0, 0] }, f.prototype.jO = function(f) { return this._getAnchorOffset(f.size || [0, 0], "middle-center") }, f.prototype.AO = function(f, e, t, r) { var i, n = CONSTS.JM,
|
||
l = void 0 === (a = (r = void 0 === r ? {} : r).kO) ? 0 : a,
|
||
s = void 0 !== (a = r.yO) && a,
|
||
a = r.padding,
|
||
d = r.lines,
|
||
c = (r = this.jO(f))[0] || 0,
|
||
r = r[1] || 0,
|
||
u = f.anchorOffset || [],
|
||
y = u[0] || 0,
|
||
b = u[1] || 0,
|
||
p = (u = f.size || [])[0] || 0,
|
||
h = u[1] || 0,
|
||
S = y - c,
|
||
v = b - r,
|
||
g = a[0],
|
||
M = a[1],
|
||
w = a[2],
|
||
m = a[3],
|
||
k = .8 * l; switch (t) {
|
||
case n.ZM:
|
||
o = s ? (i = S, b - w - .2 * l - (x = k * d + 3 * (d - 1))) : (i = y + m, b + g); break;
|
||
case n.QM:
|
||
var x = k / 2 * d + 1.5 * (d - 1),
|
||
o = s ? (i = y + p + m, v - x) : (i = y - M, b - x - w); break;
|
||
case n.tj:
|
||
o = s ? (i = S, b + h + g) : (i = y + m, b - w - (x = k * d + 3 * (d - 1))); break;
|
||
case n.LEFT:
|
||
x = k / 2 * d + 1.5 * (d - 1);
|
||
o = s ? (i = y - M, v - x) : (i = y + m, b - x - w); break;
|
||
case n.nj:
|
||
case n.ij:
|
||
o = s ? (i = y + p / 2, v - (x = k / 2 * d + 1.5 * (d - 1))) : (i = y, b - (x = k / 2 * d + 1.5 * (d - 1)) - w); break;
|
||
default:
|
||
i = y, o = b - (x = k / 2 * d + 1.5 * (d - 1)) - w } return [i, o] }, f.prototype.OO = function(f, e) { var t, r, i = CONSTS.JM,
|
||
o = (e = void 0 === e ? {} : e).xO,
|
||
n = (e.kO, e.yO),
|
||
a = e.direction,
|
||
l = e.lines,
|
||
s = e.size,
|
||
d = (e.IO, f[0] || 0),
|
||
c = f[1] || 0; switch (this.mO(a, n).textAlign) {
|
||
case i.LEFT:
|
||
t = d, r = c; break;
|
||
case i.QM:
|
||
t = d - o, r = c; break;
|
||
case i.ij:
|
||
t = d - o / 2, r = c } return { x: t, y: r, w: o, h: this.TO(s, l), FO: d, _O: c } }, f.prototype.mO = function(f, e) { var t, r, i = CONSTS.JM; if (e) switch (f) {
|
||
case i.LEFT:
|
||
t = i.QM; break;
|
||
case i.QM:
|
||
t = i.LEFT; break;
|
||
case i.ZM:
|
||
case i.tj:
|
||
default:
|
||
t = i.ij, r = i.tj } else switch (f) {
|
||
case i.LEFT:
|
||
case i.ij:
|
||
case i.QM:
|
||
t = f, r = i.tj; break;
|
||
case i.ZM:
|
||
case i.tj:
|
||
case i.nj:
|
||
default:
|
||
t = i.LEFT, r = f }
|
||
return { textAlign: t, verticalAlign: r } }, f.prototype.TO = function(f, e) { return void 0 === f && (f = 12), (f *= 5 / 4) * (e = void 0 === e ? 1 : e) + 3 * (e - 1) }, f.prototype.CT = function(f, e) { return this.Mf ? this.Mf.measureText(f, e) : this.NT ? (this.NT.font = (e || 12) + "px", this.NT.measureText(f.join("")).width) : 0 }, f.prototype.SO = function(f, e, t) { var r, i, o, n, a, l, s, d; return e && t.txt ? (r = (n = CONSTS.sj.text).direction, i = n.offset, n = n.style, s = t.yO, a = t.CO, r = e.direction || r, i = e.offset || i, o = (e = e.style || n).fontSize || 12, d = e.padding || n.padding, e = !1 === e.fold ? 100 : n.fj, n = t.txt.length, t = (a = this.Mf.lineBreak(t.txt, { fontSize: o, CO: a, type: t.BG || "ch", fj: e, YQ: this.NT, from: t.from })).lines.length, l = this.TO(o, 1), a = { xO: a.maxWidth, kO: l, yO: s, direction: r, padding: d, fj: e, lines: t, size: o, IO: n }, l = this.AO(f, f.size, r, a), s = vector.add(l, i), d = vector.add(f.origin, s), e = this.OO(d, a), { origin: f.origin, offset: s, coords: d, start: e }) : { origin: f.origin, offset: [0, 0], coords: f.coords, start: {} } }, f.prototype.EO = function(f, e, t) { if (!e || !t.txt) return { offsetX: 0, offsetY: 0, w: 0, h: 0 }; var r, i, o = CONSTS.JM,
|
||
n = CONSTS.sj,
|
||
a = (f.coords, f.start),
|
||
l = (f = void 0 === (f = f.offset) ? [] : f)[0],
|
||
s = f[1],
|
||
d = a.w,
|
||
f = a.h,
|
||
a = t.yO,
|
||
n = (t = n.text).direction,
|
||
t = t.style,
|
||
n = e.direction || n,
|
||
c = (e = (e.style || t).padding || t.padding)[0],
|
||
t = e[1],
|
||
u = e[2],
|
||
y = e[3]; if (a) switch (n) {
|
||
case o.ZM:
|
||
r = l - d / 2 - y, i = s - c; break;
|
||
case o.QM:
|
||
r = l - y, i = s - c; break;
|
||
case o.tj:
|
||
r = l - d / 2 - y, i = s - c; break;
|
||
case o.LEFT:
|
||
r = l - d - y, i = s - c; break;
|
||
case o.nj:
|
||
case o.ij:
|
||
r = l - d / 2 - y, i = s - c; break;
|
||
default:
|
||
r = l - d / 2 - y, i = s + u } else switch (n) {
|
||
case o.ZM:
|
||
r = l - y, i = s + u; break;
|
||
case o.QM:
|
||
r = l - d - y, i = s + u; break;
|
||
case o.tj:
|
||
case o.LEFT:
|
||
r = l - y, i = s + u; break;
|
||
case o.nj:
|
||
case o.ij:
|
||
r = l - d / 2 - y, i = s - c; break;
|
||
default:
|
||
r = l - d / 2 - y, i = s + u }
|
||
return { offsetX: r, offsetY: i, w: d + y + t, h: f + c + u } }, f.prototype.fO = function(f, e, t, r) { var i = (r = void 0 === r ? {} : r).from,
|
||
o = r.center,
|
||
n = e.data,
|
||
a = e.opts || {},
|
||
l = n.position,
|
||
s = n.txt,
|
||
d = a.icon,
|
||
a = a.richText,
|
||
t = t.text,
|
||
e = e.CO,
|
||
c = this.oO().zoom,
|
||
c = (o[2] = o[2] || 0, i = "inner" !== i || "relative" !== n.positionType && LocalZoom <= c ? vector.Ip(l, o) : l, vector.add(i, [0, 0])),
|
||
o = !!(d = a && a.image && "string" != typeof a.image && 0 === Object.keys(d).length && a ? [a] : d); return { origin: i, icon: l = this.wO(c, d && d[0]), text: a = this.SO(l, t, { CO: e, txt: s, yO: o, BG: n.BG, from: r.from }), padding: this.EO(a, t, { txt: s, yO: o }) } }, f }(),
|
||
LabelGroup = function() {
|
||
function f() { this.oT = {}, this.index = 1 } return f.prototype.nT = function(f) { var e, t, r, i, o; return f ? (e = f.fontSize, o = void 0 === (o = f.fillColor) ? CONSTS.COLOR.Uj : o, t = void 0 === (t = f.strokeColor) ? CONSTS.COLOR.Uj : t, r = f.strokeWidth, i = f.backgroundColor, f = f.borderColor, o = labelsUtil.toString(o) + labelsUtil.toString(t) + (i ? labelsUtil.toString(i) : "" + (f ? labelsUtil.toString(f) : "")) + e + r, this.AS(o), this.oT[o]) : "" }, f.prototype.AS = function(f) { this.oT[f] || (this.oT[f] = this.index++) }, f }(),
|
||
labelGroup = new LabelGroup,
|
||
isSupportFloat64Array = "undefined" != typeof Float64Array,
|
||
isSupportFloat32Array$1 = "undefined" != typeof Float32Array,
|
||
RESIZE_MULTIPLIER = (isSupportFloat64Array ? setMatrixArrayType(Float64Array) : isSupportFloat32Array$1 ? setMatrixArrayType(Float32Array) : (window.Float32Array = void 0, setMatrixArrayType(Array)), 2),
|
||
DEFAULT_CAPACITY = 128,
|
||
StructArray = function() {
|
||
function f() { this.pM = !1, this.yM = -1, this.length = 0 } return f.Wb = function(f, e) { return f.trim(), e && (f.pM = !0, e.push(f.arrayBuffer)), { length: f.length, arrayBuffer: f.arrayBuffer } }, f.Gb = function(f) { var e = Object.create(this.prototype); return e.arrayBuffer = f.arrayBuffer, e.length = f.length, e.yM = f.arrayBuffer.byteLength / this.Rb, e.mM(), e }, f.prototype.trim = function() { this.length !== this.yM && (this.yM = this.length, this.arrayBuffer = this.arrayBuffer.slice(0, this.length * this.constructor.Rb), this.mM()) }, f.prototype.resize = function(f) { this.gM(f), this.length = f }, f.prototype.gM = function(f) { f > this.yM && (this.yM = Math.max(f, Math.floor(this.yM * RESIZE_MULTIPLIER), DEFAULT_CAPACITY), f = this.wM, this.arrayBuffer = new ArrayBuffer(this.yM * this.constructor.Rb), this.mM(), f) && this.wM.set(f) }, f }(),
|
||
FillArray = function(e) {
|
||
function f() { var f = e.call(this) || this; return f.pM = !1, f.resize(0), f } return __extends(f, e), f.prototype.kb = function(f, e) { var t = this.length;
|
||
this.resize(this.length + 1), this.MM(t, f, e) }, f.prototype.MM = function(f, e, t) { this.Mb[f *= 2] = e, this.Mb[1 + f] = t }, f.prototype.mM = function() { this.wM = new Uint8Array(this.arrayBuffer), this.Mb = new Float32Array(this.arrayBuffer) }, f.Rb = 8, f }(StructArray),
|
||
FillExtrusionArray = function(e) {
|
||
function f() { var f = e.call(this) || this; return f.pM = !1, f.resize(0), f } return __extends(f, e), f.prototype.kb = function(f, e, t, r, i, o) { var n = this.length;
|
||
this.resize(n + 1), this.MM(n, f, e, t, r, i, o) }, f.prototype.MM = function(f, e, t, r, i, o, n) { var a = 8 * f,
|
||
e = (this.Mb[a] = e, this.Mb[1 + a] = t, this.Mb[2 + a] = r, this.Mb[3 + a] = i, this.Mb[4 + a] = o[0], this.Mb[5 + a] = o[1], this.Mb[6 + a] = o[2], 16 * f);
|
||
this.jM[14 + e] = n[0], this.jM[15 + e] = n[1] }, f.prototype.mM = function() { this.wM = new Uint8Array(this.arrayBuffer), this.Mb = new Float32Array(this.arrayBuffer), this.jM = new Uint16Array(this.arrayBuffer) }, f.Rb = 32, f }(StructArray),
|
||
LinesIndexArray = function(e) {
|
||
function f() { var f = e.call(this) || this; return f.length = 0, f.resize(0), f } return __extends(f, e), f.prototype.kb = function(f, e) { var t = this.length;
|
||
this.resize(this.length + 1), this.MM(t, f, e) }, f.prototype.MM = function(f, e, t) { this.jM[f *= 2] = e, this.jM[1 + f] = t }, f.prototype.mM = function() { this.wM = new Uint8Array(this.arrayBuffer), this.jM = new Uint16Array(this.arrayBuffer) }, f.Rb = 4, f }(StructArray),
|
||
LinesIndexArrayUint = function(e) {
|
||
function f() { var f = e.call(this) || this; return f.length = 0, f.resize(0), f } return __extends(f, e), f.prototype.kb = function(f, e) { var t = this.length;
|
||
this.resize(this.length + 1), this.MM(t, f, e) }, f.prototype.MM = function(f, e, t) { this.UI[f *= 2] = e, this.UI[1 + f] = t }, f.prototype.mM = function() { this.wM = new Uint8Array(this.arrayBuffer), this.UI = new Uint32Array(this.arrayBuffer) }, f.Rb = 8, f }(StructArray),
|
||
LineArrayBuffer = function(e) {
|
||
function f() { var f = e.call(this) || this; return f.resize(0), f } return __extends(f, e), f.prototype.kb = function(f, e, t, r) { var i = this.length;
|
||
this.resize(i + 1), this.MM(i, f, e, t, r) }, f.prototype.MM = function(f, e, t, r, i) { f *= this.constructor.Rb / 4, this.Mb[f] = e[0], this.Mb[1 + f] = e[1], this.Mb[2 + f] = t[0], this.Mb[3 + f] = t[1], this.Mb[4 + f] = r, this.Mb[5 + f] = i[0], this.Mb[6 + f] = i[1] }, f.prototype.mM = function() { this.wM = new Uint8Array(this.arrayBuffer), this.Mb = new Float32Array(this.arrayBuffer) }, f.Rb = 28, f }(StructArray),
|
||
TriangleIndexArray = function(e) {
|
||
function f() { var f = e.call(this) || this; return f.resize(0), f } return __extends(f, e), f.prototype.kb = function(f, e, t) { var r = this.length;
|
||
this.resize(r + 1), this.MM(r, f, e, t) }, f.prototype.MM = function(f, e, t, r) { this.jM[f *= 3] = e, this.jM[1 + f] = t, this.jM[2 + f] = r }, f.prototype.mM = function() { this.wM = new Uint8Array(this.arrayBuffer), this.jM = new Uint16Array(this.arrayBuffer) }, f.Rb = 6, f }(StructArray),
|
||
TriangleIndexArrayUint = function(e) {
|
||
function f() { var f = e.call(this) || this; return f.resize(0), f } return __extends(f, e), f.prototype.kb = function(f, e, t) { var r = this.length;
|
||
this.resize(r + 1), this.MM(r, f, e, t) }, f.prototype.MM = function(f, e, t, r) { this.UI[f *= 3] = e, this.UI[1 + f] = t, this.UI[2 + f] = r }, f.prototype.mM = function() { this.wM = new Uint8Array(this.arrayBuffer), this.UI = new Uint32Array(this.arrayBuffer) }, f.Rb = 12, f }(StructArray),
|
||
SymbolArray = function(e) {
|
||
function f() { var f = e.call(this) || this; return f.pM = !1, f.resize(0), f } return __extends(f, e), f.prototype.kb = function(f, e, t) { var r = this.length;
|
||
this.resize(this.length + 1), this.MM(r, f, e, t) }, f.prototype.MM = function(f, e, t, r) { var f = 13 * f,
|
||
e = (this.Mb[f] = e, this.Mb[1 + f] = t, r.color),
|
||
t = r.borderColor,
|
||
i = r.radius,
|
||
o = r.borderWidth;
|
||
this.Mb[2 + f] = i, this.Mb[3 + f] = o, this.Mb[4 + f] = e[0], this.Mb[5 + f] = e[1], this.Mb[6 + f] = e[2], this.Mb[7 + f] = e[3], this.Mb[8 + f] = t[0], this.Mb[9 + f] = t[1], this.Mb[10 + f] = t[2], this.Mb[11 + f] = t[3], this.Mb[12 + f] = +(r.visible && r.filter) }, f.prototype.mM = function() { this.wM = new Uint8Array(this.arrayBuffer), this.Mb = new Float32Array(this.arrayBuffer) }, f.Rb = 52, f }(StructArray),
|
||
SimpleSymbolArray = function(e) {
|
||
function f() { var f = e.call(this) || this; return f.pM = !1, f.resize(0), f } return __extends(f, e), f.prototype.kb = function(f, e) { var t = this.length;
|
||
this.resize(this.length + 1), this.MM(t, f, e) }, f.prototype.MM = function(f, e, t) { this.Mb[f *= 2] = e, this.Mb[1 + f] = t }, f.prototype.mM = function() { this.wM = new Uint8Array(this.arrayBuffer), this.Mb = new Float32Array(this.arrayBuffer) }, f.Rb = 4, f }(StructArray),
|
||
SmartArrayBuffer = function() {
|
||
function f(f, e, t, r) { void 0 === r && (r = "ARRAY_BUFFER"), this.AM = f, this.kM = t, this.type = r, f && (this.buffer = "ARRAY_BUFFER" === r ? f.fe(e, t, "DYNAMIC_DRAW") : f.ve(e), this.uf = e.byteLength, this.byteLength = e.byteLength) } return f.prototype.update = function(f) { var e, t, r;
|
||
0 !== f.length && this.AM && (e = "ARRAY_BUFFER" === this.type, t = this.AM.gl, r = (e ? this.AM.de : this.AM.me).current, (e ? this.AM.de : this.AM.me).set(this.buffer), this.uf < f.byteLength ? (t.bufferData(t[this.type], f, t.STATIC_DRAW), this.byteLength = f.byteLength, this.uf = f.byteLength) : (t.bufferSubData(t[this.type], 0, f), this.byteLength = f.byteLength), (e ? this.AM.de : this.AM.me).set(r)) }, f.prototype.destroy = function() { this.buffer && this.AM && this.AM.deleteBuffer(this.buffer) }, f.prototype.TX = function() { this.AM = null }, __decorate([InnerClass("SmartArrayBuffer")], f) }(),
|
||
COS_HALF_SHARP_CORNER = Math.cos(Math.PI / 180 * 75),
|
||
prepMatClockwise = fromValues(0, -1, 1, 0),
|
||
perpMatCounterClockwise = fromValues(0, 1, -1, 0);
|
||
|
||
function perpCounterClockwise(f, e) { transformMat2(f, e, perpMatCounterClockwise) }
|
||
|
||
function perpClockwise(f, e) { transformMat2(f, e, prepMatClockwise) } var minRoundAngle = Math.PI / 9,
|
||
emptyVec2 = create$3(),
|
||
emptyVec3 = create$1(),
|
||
prevPos = create$3(),
|
||
currentPos = create$3(),
|
||
nextPos = create$3(),
|
||
tmpPos = create$3(),
|
||
currentNormal = create$3(),
|
||
nextNormal = create$3(),
|
||
distance$1 = 0,
|
||
nextDir = create$3(),
|
||
currentDir = create$3(),
|
||
negateCurrentNormal = create$3(),
|
||
lineJoin, lineCap, currentNormal_addLineVertex = create$3(),
|
||
leftNormal = create$3(),
|
||
rightNormal = create$3(),
|
||
offsetLeft = create$3(),
|
||
offsetRight = create$3(),
|
||
joinNormal_addMiter = create$3(),
|
||
tmp_addTiangleVertex = create$1(),
|
||
currentNormal_addTiangleVertex = create$3(),
|
||
nextNormal_addTiangleVertex = create$3(),
|
||
normal_addTiangleVertex = create$3(),
|
||
tmp_addRoundVertex = create$1(),
|
||
currentNormal_addRoundVertex = create$3(),
|
||
nextNormal_addRoundVertex = create$3(),
|
||
tmpNormal_addRoundVertex = create$3(),
|
||
roundCenter_addRoundVertex = create$3(),
|
||
CoreLineBucket = function() {
|
||
function c() { this._b = new LineArrayBuffer, this.e1 = this.e2 = this.e3 = -1, this.uploaded = !1 } return c.OM = function(f, e, t) { sub$1(f, e, t), normalize(f, f), perpCounterClockwise(f, f) }, c.xM = function(f, e, t) { add(f, e, t), 0 === f[0] && 0 === f[1] || normalize(f, f) }, c.prototype.hb = function(f, e) { if (f.length < 4) return { Iw: 0, distance: 0 }; "auto" === (e = void(distance$1 = 0) === e ? { X_: 1, lineJoin: "miter", lineCap: "butt" } : e).lineJoin && (e.lineJoin = "miter"), lineJoin = e.lineJoin, lineCap = e.lineCap || "butt"; for (var t, r = this.Qx.length, i = 0, o = f.length; i < o; i += 2) 0 === i ? (currentPos[0] = f[i], currentPos[1] = f[i + 1], nextPos[0] = f[i + 2], nextPos[1] = f[i + 3], c.OM(nextNormal, nextPos, currentPos), copy$1(currentNormal, nextNormal), sub$1(nextDir, nextPos, currentPos), normalize(nextDir, nextDir), "square" === lineCap ? this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, e.X_, "bevel") : ("round" === lineCap && (copy$1(negateCurrentNormal, currentNormal), negate(negateCurrentNormal, currentNormal), this.DI(currentPos, negateCurrentNormal, currentNormal, distance$1)), this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, "bevel")), copy$1(currentDir, nextDir), copy$1(prevPos, currentPos)) : i === o - 2 ? (currentPos[0] = f[i], currentPos[1] = f[i + 1], t = dist$1(currentPos, prevPos), distance$1 += t, "square" === lineCap ? this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !1, -1 * e.X_, "miter") : "round" === lineCap ? (this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !1, 0, "miter"), copy$1(negateCurrentNormal, nextNormal), negate(negateCurrentNormal, nextNormal), this.DI(currentPos, nextNormal, negateCurrentNormal, distance$1)) : this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, "miter")) : (currentPos[0] = f[i], currentPos[1] = f[i + 1], nextPos[0] = f[i + 2], nextPos[1] = f[i + 3], c.OM(nextNormal, nextPos, currentPos), 0 === nextNormal[0] && 0 === nextNormal[1] || (t = dist$1(currentPos, prevPos), distance$1 += t, sub$1(nextDir, nextPos, currentPos), normalize(nextDir, nextDir), this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, e.lineJoin), this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, e.lineJoin), copy$1(prevPos, currentPos), copy$1(currentNormal, nextNormal), copy$1(currentDir, nextDir))); return { Iw: 3 * (this.Qx.length - r), distance: distance$1 } }, c.prototype.g0 = function(f, e) { if (f.length < 2) return { Iw: 0, distance: 0 }; "auto" === (e = void(distance$1 = 0) === e ? { X_: 1, lineJoin: "miter", lineCap: "butt" } : e).lineJoin && (e.lineJoin = "miter"), lineJoin = e.lineJoin, lineCap = e.lineCap || "butt"; for (var t, r = this.Qx.length, i = 0, o = f.length; i < o; i++) 0 === i ? (currentPos[0] = f[i][0], currentPos[1] = f[i][1], nextPos[0] = f[i + 1][0], nextPos[1] = f[i + 1][1], c.OM(nextNormal, nextPos, currentPos), copy$1(currentNormal, nextNormal), sub$1(nextDir, nextPos, currentPos), normalize(nextDir, nextDir), "square" === lineCap ? this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, e.X_, "bevel") : ("round" === lineCap && (copy$1(negateCurrentNormal, currentNormal), negate(negateCurrentNormal, currentNormal), this.DI(currentPos, negateCurrentNormal, currentNormal, distance$1)), this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, "bevel")), copy$1(currentDir, nextDir), copy$1(prevPos, currentPos)) : i === o - 1 ? (currentPos[0] = f[i][0], currentPos[1] = f[i][1], t = dist$1(currentPos, prevPos), distance$1 += t, "square" === lineCap ? this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !1, -1 * e.X_, "miter") : "round" === lineCap ? (this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !1, 0, "miter"), copy$1(negateCurrentNormal, nextNormal), negate(negateCurrentNormal, nextNormal), this.DI(currentPos, nextNormal, negateCurrentNormal, distance$1)) : this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, "miter")) : (currentPos[0] = f[i][0], currentPos[1] = f[i][1], nextPos[0] = f[i + 1][0], nextPos[1] = f[i + 1][1], c.OM(nextNormal, nextPos, currentPos), 0 === nextNormal[0] && 0 === nextNormal[1] || (t = dist$1(currentPos, prevPos), distance$1 += t, sub$1(nextDir, nextPos, currentPos), normalize(nextDir, nextDir), this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, e.lineJoin), this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, e.lineJoin), copy$1(prevPos, currentPos), copy$1(currentNormal, nextNormal), copy$1(currentDir, nextDir))); return { Iw: 3 * (this.Qx.length - r), distance: distance$1 } }, c.prototype.eD = function(f, e, t) { if (void 0 === t && (t = 3e3), f.length < 4) return { Iw: 0, distance: 0 }; "auto" === (e = void(distance$1 = 0) === e ? { X_: 1, lineJoin: "miter", lineCap: "butt" } : e).lineJoin && (e.lineJoin = "miter"), lineJoin = e.lineJoin, lineCap = e.lineCap || "butt"; for (var r = this.Qx.length, i = 0, o = f.length; i < o; i += 2)
|
||
if (0 === i) currentPos[0] = f[i], currentPos[1] = f[i + 1], nextPos[0] = f[i + 2], nextPos[1] = f[i + 3], c.OM(nextNormal, nextPos, currentPos), copy$1(currentNormal, nextNormal), sub$1(nextDir, nextPos, currentPos), normalize(nextDir, nextDir), "square" === lineCap ? this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, e.X_, "bevel") : ("round" === lineCap && (copy$1(negateCurrentNormal, currentNormal), negate(negateCurrentNormal, currentNormal), this.DI(currentPos, negateCurrentNormal, currentNormal, distance$1)), this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, "bevel")), copy$1(currentDir, nextDir), copy$1(prevPos, currentPos);
|
||
else if (i === o - 2) { tmpPos[0] = f[i], tmpPos[1] = f[i + 1]; var n = dist$1(tmpPos, prevPos);
|
||
copy$1(tmpPos, prevPos); for (var a = 0; t < n - a;) tmpPos[0] = tmpPos[0] + currentDir[0] * t, tmpPos[1] = tmpPos[1] + currentDir[1] * t, a += t, this.IM(tmpPos, currentNormal, nextNormal, distance$1 + a, currentDir, !1, 0, "miter"), this.IM(tmpPos, currentNormal, nextNormal, distance$1 + a, currentDir, !0, 0, "miter");
|
||
currentPos[0] = f[i], currentPos[1] = f[i + 1], distance$1 += n, "square" === lineCap ? this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !1, -1 * e.X_, "miter") : "round" === lineCap ? (this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !1, 0, "miter"), copy$1(negateCurrentNormal, nextNormal), negate(negateCurrentNormal, nextNormal), this.DI(currentPos, nextNormal, negateCurrentNormal, distance$1)) : this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, "miter") } else if (currentPos[0] = f[i], currentPos[1] = f[i + 1], nextPos[0] = f[i + 2], nextPos[1] = f[i + 3], c.OM(nextNormal, nextPos, currentPos), 0 !== nextNormal[0] || 0 !== nextNormal[1]) { var l = dist$1(currentPos, prevPos); for (copy$1(tmpPos, prevPos), a = 0; t < l - a;) tmpPos[0] = tmpPos[0] + currentDir[0] * t, tmpPos[1] = tmpPos[1] + currentDir[1] * t, a += t, this.IM(tmpPos, currentNormal, currentNormal, distance$1 + a, currentDir, !1, 0, "miter"), this.IM(tmpPos, currentNormal, currentNormal, distance$1 + a, currentDir, !0, 0, "miter");
|
||
currentPos[0] = f[i], currentPos[1] = f[i + 1], distance$1 += l, sub$1(nextDir, nextPos, currentPos), normalize(nextDir, nextDir), this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, e.lineJoin), this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, e.lineJoin), copy$1(prevPos, currentPos), copy$1(currentNormal, nextNormal), copy$1(currentDir, nextDir) } return { Iw: 3 * (this.Qx.length - r), distance: distance$1 } }, c.prototype.Nx = function(f, e) { if (void 0 === e && (e = { lineJoin: "miter" }), f.length < 2) return { Iw: 0, distance: 0 }; for (var t, r, i = this.Qx.length, o = 0, n = f.length; o < n; o++) 0 === o ? (copy$1(currentPos, f[o]), t = f[o + 1], r = f[n - 2], c.OM(nextNormal, t, currentPos), c.OM(currentNormal, currentPos, r), sub$1(nextDir, t, currentPos), normalize(nextDir, nextDir), this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, e.lineJoin), copy$1(currentDir, nextDir), copy$1(currentNormal, nextNormal), copy$1(prevPos, currentPos)) : o === n - 1 ? (copy$1(currentPos, f[o]), copy$1(nextPos, f[1]), distance$1 += dist$1(currentPos, prevPos), c.OM(nextNormal, nextPos, currentPos), this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, e.lineJoin)) : (copy$1(currentPos, f[o]), copy$1(nextPos, f[o + 1]), distance$1 += dist$1(currentPos, prevPos), c.OM(nextNormal, nextPos, currentPos), sub$1(nextDir, nextPos, currentPos), normalize(nextDir, nextDir), this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, e.lineJoin), this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, e.lineJoin), copy$1(prevPos, currentPos), copy$1(currentNormal, nextNormal), copy$1(currentDir, nextDir)); return { Iw: 3 * (this.Qx.length - i), distance: distance$1 } }, c.prototype.destroy = function() { this.uploaded = !1, this.zs && (this.zs.destroy(), delete this.zs), this.Pc && (this.Pc.destroy(), delete this.Pc) }, c.prototype.IM = function(f, e, t, r, i, o, n, a) { copy$1(joinNormal_addMiter, emptyVec2), c.xM(joinNormal_addMiter, e, t); var l = dot(joinNormal_addMiter, e),
|
||
s = (scale$2(joinNormal_addMiter, joinNormal_addMiter, 1 / l), 0),
|
||
d = 0;
|
||
n && (d = s = n), "bevel" === a || "miter" === a && l < COS_HALF_SHARP_CORNER ? o ? this.SM(f, t, r, s, d, i) : (this.SM(f, e, r, s, d, i), this.e3 = this._b.length - 2, this.e2 = this.e3 - 1, this.e1 = this.e2 - 1, this.Qx.kb(this.e1, this.e2, this.e3), this.e1 = this.e2, this.e2 = this.e3, this.e3 = this.e3 + 1, this.Qx.kb(this.e1, this.e2, this.e3), this.CM(f, e, t, r)) : "round" === a ? o ? this.SM(f, t, r, s, d, i) : (this.SM(f, e, r, s, d, i), this.e3 = this._b.length - 2, this.e2 = this.e3 - 1, this.e1 = this.e2 - 1, this.Qx.kb(this.e1, this.e2, this.e3), this.e1 = this.e2, this.e2 = this.e3, this.e3 = this.e3 + 1, this.Qx.kb(this.e1, this.e2, this.e3), this.DI(f, e, t, r)) : (this.SM(f, joinNormal_addMiter, r, s, d, i), o || (this.e3 = this._b.length - 2, this.e2 = this.e3 - 1, this.e1 = this.e2 - 1, this.Qx.kb(this.e1, this.e2, this.e3), this.e1 = this.e2, this.e2 = this.e3, this.e3 = this.e3 + 1, this.Qx.kb(this.e1, this.e2, this.e3))) }, c.prototype.SM = function(f, e, t, r, i, o) { copy$1(currentNormal_addLineVertex, e), copy$1(leftNormal, currentNormal_addLineVertex), copy$1(rightNormal, currentNormal_addLineVertex), copy$1(offsetLeft, emptyVec2), copy$1(offsetRight, emptyVec2), scale$2(rightNormal, currentNormal_addLineVertex, -1), r && (perpCounterClockwise(offsetLeft, leftNormal), scale$2(offsetLeft, offsetLeft, r), add(leftNormal, offsetLeft, leftNormal)), i && (perpClockwise(offsetRight, rightNormal), scale$2(offsetRight, offsetRight, i), add(rightNormal, offsetRight, rightNormal)), this._b.kb(f, leftNormal, t, o), this._b.kb(f, rightNormal, t, o) }, c.prototype.CM = function(f, e, t, r) { void 0 === r && (r = 0), copy(tmp_addTiangleVertex, emptyVec3), copy$1(currentNormal_addTiangleVertex, e), copy$1(nextNormal_addTiangleVertex, t), copy$1(normal_addTiangleVertex, emptyVec2), cross$1(tmp_addTiangleVertex, currentNormal_addTiangleVertex, nextNormal_addTiangleVertex), e = 0 < tmp_addTiangleVertex[2], this._b.kb(f, normal_addTiangleVertex, r, normal_addTiangleVertex), e && (negate(currentNormal_addTiangleVertex, currentNormal_addTiangleVertex), negate(nextNormal_addTiangleVertex, nextNormal_addTiangleVertex)), this._b.kb(f, currentNormal_addTiangleVertex, r, normal_addTiangleVertex), this._b.kb(f, nextNormal_addTiangleVertex, r, normal_addTiangleVertex), this.e3 = this._b.length - 1, this.e2 = this.e3 - 1, this.e1 = this.e2 - 1, this.Qx.kb(this.e1, this.e2, this.e3) }, c.prototype.DI = function(f, e, t, r) { void 0 === r && (r = 0), copy(tmp_addRoundVertex, emptyVec3), copy$1(currentNormal_addRoundVertex, e), copy$1(nextNormal_addRoundVertex, t); var i = angle(currentNormal_addRoundVertex, nextNormal_addRoundVertex),
|
||
o = (cross$1(tmp_addRoundVertex, currentNormal_addRoundVertex, nextNormal_addRoundVertex), 0 < tmp_addRoundVertex[2]),
|
||
n = [];
|
||
n.push(currentNormal_addRoundVertex); for (var a = minRoundAngle; a < i; a += minRoundAngle) { var l = create$3();
|
||
rotate(l, currentNormal_addRoundVertex, fromValues$3(0, 0), o ? a : -1 * a), n.push(l) }
|
||
n.push(nextNormal_addRoundVertex), o && forEach(n, function(f) { negate(f, f) }), copy$1(roundCenter_addRoundVertex, emptyVec2), this._b.kb(f, roundCenter_addRoundVertex, r, roundCenter_addRoundVertex); var s = this._b.length - 1;
|
||
this._b.kb(f, n[0], r, roundCenter_addRoundVertex), this.e3 = this._b.length - 1, this.e2 = this.e3 - 1; for (var d = 1, c = n.length; d < c; d++) this._b.kb(f, n[d], r, roundCenter_addRoundVertex), this.e3 = this._b.length - 1, this.e2 = this.e3 - 1, this.Qx.kb(s, this.e2, this.e3) }, c }(),
|
||
PolylineBucket = function(e) {
|
||
function f() { var f = e.call(this) || this; return f.Qx = new TriangleIndexArrayUint, f } return __extends(f, e), f.prototype.upload = function(f, e) { void 0 === e && (e = !1), this.uploaded || (this.uploaded = !0, this.zs ? this.zs.update(this._b.Mb) : this.zs = new SmartArrayBuffer(f, this._b.Mb, LineArrayBuffer.Rb), this.Pc ? this.Pc.update(this.Qx.UI) : this.Pc = new SmartArrayBuffer(f, this.Qx.UI, 32, "ELEMENT_ARRAY_BUFFER"), e && (delete this.Qx, delete this._b)) }, f.prototype.reset = function() { this.uploaded = !1, this._b = new LineArrayBuffer, this.Qx = new TriangleIndexArrayUint, this.e1 = this.e2 = this.e3 = -1, this.uploaded = !1 }, f }(CoreLineBucket),
|
||
earcut_1 = earcut,
|
||
default_1$1 = earcut;
|
||
|
||
function earcut(f, e, t) { t = t || 2; var r, i, o, n, a, l = e && e.length,
|
||
s = l ? e[0] * t : f.length,
|
||
d = linkedList(f, 0, s, t, !0),
|
||
c = []; if (d && d.next !== d.NM) { if (l && (d = eliminateHoles(f, e, d, t)), f.length > 80 * t) { for (var u = r = f[0], y = i = f[1], b = t; b < s; b += t)(o = f[b]) < u && (u = o), (n = f[b + 1]) < y && (y = n), r < o && (r = o), i < n && (i = n);
|
||
a = 0 !== (a = Math.max(r - u, i - y)) ? 32767 / a : 0 }
|
||
earcutLinked(d, c, t, u, y, a, 0) } return c }
|
||
|
||
function linkedList(f, e, t, r, i) { var o, n; if (i === 0 < signedArea(f, e, t, r))
|
||
for (o = e; o < t; o += r) n = insertNode(o, f[o], f[o + 1], n);
|
||
else
|
||
for (o = t - r; e <= o; o -= r) n = insertNode(o, f[o], f[o + 1], n); return n && equals$2(n, n.next) && (removeNode(n), n = n.next), n }
|
||
|
||
function filterPoints(f, e) { if (!f) return f;
|
||
e = e || f; var t, r = f;
|
||
do { if (t = !1, r.LM || !equals$2(r, r.next) && 0 !== area(r.NM, r, r.next)) r = r.next;
|
||
else { if (removeNode(r), (r = e = r.NM) === r.next) break;
|
||
t = !0 } } while (t || r !== e); return e }
|
||
|
||
function earcutLinked(f, e, t, r, i, o, n) { if (f) {!n && o && indexCurve(f, r, i, o); for (var a, l, s = f; f.NM !== f.next;)
|
||
if (a = f.NM, l = f.next, o ? isEarHashed(f, r, i, o) : isEar(f)) e.push(a.i / t | 0), e.push(f.i / t | 0), e.push(l.i / t | 0), removeNode(f), f = l.next, s = l.next;
|
||
else if ((f = l) === s) { n ? 1 === n ? earcutLinked(f = cureLocalIntersections(filterPoints(f), e, t), e, t, r, i, o, 2) : 2 === n && splitEarcut(f, e, t, r, i, o) : earcutLinked(filterPoints(f), e, t, r, i, o, 1); break } } }
|
||
|
||
function isEar(f) { var e = f.NM,
|
||
t = f; if (!(0 <= area(e, t, f = f.next))) { for (var r = e.x, i = t.x, o = f.x, n = e.y, a = t.y, l = f.y, s = r < i ? r < o ? r : o : i < o ? i : o, d = n < a ? n < l ? n : l : a < l ? a : l, c = i < r ? o < r ? r : o : o < i ? i : o, u = a < n ? l < n ? n : l : l < a ? a : l, y = f.next; y !== e;) { if (y.x >= s && y.x <= c && y.y >= d && y.y <= u && pointInTriangle(r, n, i, a, o, l, y.x, y.y) && 0 <= area(y.NM, y, y.next)) return;
|
||
y = y.next } return 1 } }
|
||
|
||
function isEarHashed(f, e, t, r) { var i = f.NM,
|
||
o = f,
|
||
n = f.next; if (!(0 <= area(i, o, n))) { for (var a = i.x, l = o.x, s = n.x, d = i.y, c = o.y, u = n.y, y = a < l ? a < s ? a : s : l < s ? l : s, b = d < c ? d < u ? d : u : c < u ? c : u, p = l < a ? s < a ? a : s : s < l ? l : s, h = c < d ? u < d ? d : u : u < c ? c : u, S = zOrder(y, b, e, t, r), v = zOrder(p, h, e, t, r), g = f.DM, M = f.RM; g && g.z >= S && M && M.z <= v;) { if (g.x >= y && g.x <= p && g.y >= b && g.y <= h && g !== i && g !== n && pointInTriangle(a, d, l, c, s, u, g.x, g.y) && 0 <= area(g.NM, g, g.next)) return; if (g = g.DM, M.x >= y && M.x <= p && M.y >= b && M.y <= h && M !== i && M !== n && pointInTriangle(a, d, l, c, s, u, M.x, M.y) && 0 <= area(M.NM, M, M.next)) return;
|
||
M = M.RM } for (; g && g.z >= S;) { if (g.x >= y && g.x <= p && g.y >= b && g.y <= h && g !== i && g !== n && pointInTriangle(a, d, l, c, s, u, g.x, g.y) && 0 <= area(g.NM, g, g.next)) return;
|
||
g = g.DM } for (; M && M.z <= v;) { if (M.x >= y && M.x <= p && M.y >= b && M.y <= h && M !== i && M !== n && pointInTriangle(a, d, l, c, s, u, M.x, M.y) && 0 <= area(M.NM, M, M.next)) return;
|
||
M = M.RM } return 1 } }
|
||
|
||
function cureLocalIntersections(f, e, t) { var r = f;
|
||
do { var i = r.NM,
|
||
o = r.next.next } while (!equals$2(i, o) && intersects$1(i, r, r.next, o) && locallyInside(i, o) && locallyInside(o, i) && (e.push(i.i / t | 0), e.push(r.i / t | 0), e.push(o.i / t | 0), removeNode(r), removeNode(r.next), r = f = o), (r = r.next) !== f); return filterPoints(r) }
|
||
|
||
function splitEarcut(f, e, t, r, i, o) { var n = f;
|
||
do { for (var a, l = n.next.next; l !== n.NM;) { if (n.i !== l.i && isValidDiagonal(n, l)) return a = splitPolygon(n, l), n = filterPoints(n, n.next), a = filterPoints(a, a.next), earcutLinked(n, e, t, r, i, o, 0), earcutLinked(a, e, t, r, i, o, 0);
|
||
l = l.next } } while ((n = n.next) !== f) }
|
||
|
||
function eliminateHoles(f, e, t, r) { for (var i, o = [], n = 0, a = e.length; n < a; n++)(i = linkedList(f, e[n] * r, n < a - 1 ? e[n + 1] * r : f.length, r, !1)) === i.next && (i.LM = !0), o.push(getLeftmost(i)); for (o.sort(compareX), n = 0; n < o.length; n++) t = eliminateHole(o[n], t); return t }
|
||
|
||
function compareX(f, e) { return f.x - e.x }
|
||
|
||
function eliminateHole(f, e) { var t = findHoleBridge(f, e); return t ? (filterPoints(f = splitPolygon(t, f), f.next), filterPoints(t, t.next)) : e }
|
||
|
||
function findHoleBridge(f, e) { var t, r = e,
|
||
i = f.x,
|
||
o = f.y,
|
||
n = -1 / 0;
|
||
do { if (o <= r.y && o >= r.next.y && r.next.y !== r.y) { var a = r.x + (o - r.y) * (r.next.x - r.x) / (r.next.y - r.y); if (a <= i && n < a && (t = r.x < r.next.x ? r : r.next, (n = a) === i)) return t } } while ((r = r.next) !== e); if (!t) return null; for (var l, s = t, d = t.x, c = t.y, u = 1 / 0, r = t; i >= r.x && r.x >= d && i !== r.x && pointInTriangle(o < c ? i : n, o, d, c, o < c ? n : i, o, r.x, r.y) && (l = Math.abs(o - r.y) / (i - r.x), locallyInside(r, f)) && (l < u || l === u && (r.x > t.x || r.x === t.x && sectorContainsSector(t, r))) && (t = r, u = l), (r = r.next) !== s;); return t }
|
||
|
||
function sectorContainsSector(f, e) { return area(f.NM, f, e.NM) < 0 && area(e.next, f, f.next) < 0 }
|
||
|
||
function indexCurve(f, e, t, r) { for (var i = f; 0 === i.z && (i.z = zOrder(i.x, i.y, e, t, r)), i.DM = i.NM, i.RM = i.next, (i = i.next) !== f;);
|
||
i.DM.RM = null, i.DM = null, sortLinked(i) }
|
||
|
||
function sortLinked(f) { var e, t, r, i, o, n, a, l, s = 1;
|
||
do { for (t = f, o = f = null, n = 0; t;) { for (n++, r = t, e = a = 0; e < s && (a++, r = r.RM); e++); for (l = s; 0 < a || 0 < l && r;) 0 !== a && (0 === l || !r || t.z <= r.z) ? (t = (i = t).RM, a--) : (r = (i = r).RM, l--), o ? o.RM = i : f = i, i.DM = o, o = i;
|
||
t = r } } while (o.RM = null, s *= 2, 1 < n) }
|
||
|
||
function zOrder(f, e, t, r, i) { return (f = 1431655765 & ((f = 858993459 & ((f = 252645135 & ((f = 16711935 & ((f = (f - t) * i | 0) | f << 8)) | f << 4)) | f << 2)) | f << 1)) | (1431655765 & ((e = 858993459 & ((e = 252645135 & ((e = 16711935 & ((e = (e - r) * i | 0) | e << 8)) | e << 4)) | e << 2)) | e << 1)) << 1 }
|
||
|
||
function getLeftmost(f) { for (var e = f, t = f;
|
||
(e.x < t.x || e.x === t.x && e.y < t.y) && (t = e), (e = e.next) !== f;); return t }
|
||
|
||
function pointInTriangle(f, e, t, r, i, o, n, a) { return (f - n) * (o - a) <= (i - n) * (e - a) && (t - n) * (e - a) <= (f - n) * (r - a) && (i - n) * (r - a) <= (t - n) * (o - a) }
|
||
|
||
function isValidDiagonal(f, e) { return f.next.i !== e.i && f.NM.i !== e.i && !intersectsPolygon(f, e) && (locallyInside(f, e) && locallyInside(e, f) && middleInside(f, e) && (area(f.NM, f, e.NM) || area(f, e.NM, e)) || equals$2(f, e) && 0 < area(f.NM, f, f.next) && 0 < area(e.NM, e, e.next)) }
|
||
|
||
function area(f, e, t) { return (e.y - f.y) * (t.x - e.x) - (e.x - f.x) * (t.y - e.y) }
|
||
|
||
function equals$2(f, e) { return f.x === e.x && f.y === e.y }
|
||
|
||
function intersects$1(f, e, t, r) { var i = sign(area(f, e, t)),
|
||
o = sign(area(f, e, r)),
|
||
n = sign(area(t, r, f)),
|
||
a = sign(area(t, r, e)); return i !== o && n !== a || 0 === i && onSegment(f, t, e) || 0 === o && onSegment(f, r, e) || 0 === n && onSegment(t, f, r) || 0 === a && onSegment(t, e, r) }
|
||
|
||
function onSegment(f, e, t) { return e.x <= Math.max(f.x, t.x) && e.x >= Math.min(f.x, t.x) && e.y <= Math.max(f.y, t.y) && e.y >= Math.min(f.y, t.y) }
|
||
|
||
function sign(f) { return 0 < f ? 1 : f < 0 ? -1 : 0 }
|
||
|
||
function intersectsPolygon(f, e) { var t = f;
|
||
do { if (t.i !== f.i && t.next.i !== f.i && t.i !== e.i && t.next.i !== e.i && intersects$1(t, t.next, f, e)) return 1 } while ((t = t.next) !== f) }
|
||
|
||
function locallyInside(f, e) { return area(f.NM, f, f.next) < 0 ? 0 <= area(f, e, f.next) && 0 <= area(f, f.NM, e) : area(f, e, f.NM) < 0 || area(f, f.next, e) < 0 }
|
||
|
||
function middleInside(f, e) { for (var t = f, r = !1, i = (f.x + e.x) / 2, o = (f.y + e.y) / 2; t.y > o != t.next.y > o && t.next.y !== t.y && i < (t.next.x - t.x) * (o - t.y) / (t.next.y - t.y) + t.x && (r = !r), (t = t.next) !== f;); return r }
|
||
|
||
function splitPolygon(f, e) { var t = new Node(f.i, f.x, f.y),
|
||
r = new Node(e.i, e.x, e.y),
|
||
i = f.next,
|
||
o = e.NM; return (f.next = e).NM = f, (t.next = i).NM = t, (r.next = t).NM = r, (o.next = r).NM = o, r }
|
||
|
||
function insertNode(f, e, t, r) { return f = new Node(f, e, t), r ? (f.next = r.next, (f.NM = r).next.NM = f, r.next = f) : (f.NM = f).next = f, f }
|
||
|
||
function removeNode(f) { f.next.NM = f.NM, f.NM.next = f.next, f.DM && (f.DM.RM = f.RM), f.RM && (f.RM.DM = f.DM) }
|
||
|
||
function Node(f, e, t) { this.i = f, this.x = e, this.y = t, this.NM = null, this.next = null, this.z = 0, this.DM = null, this.RM = null, this.LM = !1 }
|
||
|
||
function signedArea(f, e, t, r) { for (var i = 0, o = e, n = t - r; o < t; o += r) i += (f[n] - f[o]) * (f[o + 1] + f[n + 1]), n = o; return i }
|
||
earcut.PM = function(f, e, t, r) { var i = e && e.length,
|
||
o = i ? e[0] * t : f.length,
|
||
n = Math.abs(signedArea(f, 0, o, t)); if (i)
|
||
for (var a = 0, l = e.length; a < l; a++) { var s = e[a] * t,
|
||
d = a < l - 1 ? e[a + 1] * t : f.length;
|
||
n -= Math.abs(signedArea(f, s, d, t)) }
|
||
for (var c = 0, a = 0; a < r.length; a += 3) { var u = r[a] * t,
|
||
y = r[a + 1] * t,
|
||
b = r[a + 2] * t;
|
||
c += Math.abs((f[u] - f[b]) * (f[1 + y] - f[1 + u]) - (f[u] - f[y]) * (f[1 + b] - f[1 + u])) } return 0 === n && 0 === c ? 0 : Math.abs((c - n) / n) }, earcut.UM = function(f) { for (var e = f[0][0].length, t = { rp: [], BM: [], dimensions: e }, r = 0, i = 0; i < f.length; i++) { for (var o = 0; o < f[i].length; o++)
|
||
for (var n = 0; n < e; n++) t.rp.push(f[i][o][n]);
|
||
0 < i && (r += f[i - 1].length, t.BM.push(r)) } return t }, earcut_1.default = default_1$1; var CoreFillBucket = function() {
|
||
function f() { this._b = new FillArray, this.zM = new FillArray, this.uploaded = !1 } return f.prototype.Nx = function(f, e) { if (f.length < 6) return 0; for (var t = this.Qx.length, r = this._b.length, i = earcut_1(f, e), o = 0, n = i.length; o < n; o += 3) this.Qx.kb(r + i[o], r + i[o + 1], r + i[o + 2]); for (o = 0, n = f.length; o < n; o += 2) this._b.kb(f[o], f[o + 1]); return 0 < (e = 3 * (this.Qx.length - t)) && (this.uploaded = !1), e }, f.prototype.Ew = function(f) { if (f.length < 2) return 0; for (var e = this.qM.length, t = this.zM.length, r = 0, i = f.length; r < i; r += 2) this.zM.kb(f[r][0], f[r][1]), this.zM.kb(f[r + 1][0], f[r + 1][1]), this.qM.kb(t + r, t + r + 1); return 0 < (e = 2 * (this.qM.length - e)) && (this.uploaded = !1), e }, f.prototype.destroy = function() { this.uploaded = !1, this.zs && (this.zs.context.deleteBuffer(this.zs), delete this.zs), this.Pc && (this.Pc.context.deleteBuffer(this.Pc), delete this.Pc), this.Ec && (this.Ec.context.deleteBuffer(this.Ec), delete this.Ec), this.Nc && (this.Nc.context.deleteBuffer(this.Nc), delete this.Nc) }, f }(),
|
||
PolygonBucket = function(e) {
|
||
function f() { var f = e.call(this) || this; return f.Qx = new TriangleIndexArrayUint, f.qM = new LinesIndexArrayUint, f } return __extends(f, e), f.prototype.upload = function(f, e) { void 0 === e && (e = !1), this.uploaded || (this.destroy(), this.uploaded = !0, this.zs = f.fe(this._b.Mb, FillArray.Rb), this.Pc = f.ve(this.Qx.UI), this.Ec = f.fe(this.zM.Mb, LinesIndexArray.Rb), this.Nc = f.ve(this.qM.UI), e && (delete this.Qx, delete this._b, delete this.zM, delete this.qM)) }, f.prototype.reset = function() { this._b = new FillArray, this.zM = new FillArray, this.Qx = new TriangleIndexArrayUint, this.qM = new LinesIndexArrayUint, this.uploaded = !1 }, f }(CoreFillBucket),
|
||
FaceTextureCoord = { empty: fromValues$3(-1, -1), Gm: fromValues$3(1, 1), qm: fromValues$3(0, 1), Nm: fromValues$3(1, 0), Um: fromValues$3(0, 0) },
|
||
MaxInfo = { Gm: create$3(), qm: create$3(), Nm: create$3(), Um: create$3() },
|
||
floorHeight = 6,
|
||
FillExtrusionBucket = function() {
|
||
function f() { this._b = new FillExtrusionArray, this.uploaded = !1 } return f.prototype.tz = function(f, e, t) { void 0 === e && (e = 100); for (var r = [], i = [], o = f.length, n = 0; n < o; n += 2) i[a = n / 2 * 3] = f[n], i[a + 1] = f[n + 1], i[a + 2] = 0; for (var a, n = 0; n < o; n += 2) r[a = n / 2 * 3] = f[n], r[a + 1] = f[n + 1], r[a + 2] = e; return this.Nx(r, e, t) + this.RI(i, r, t) }, f.prototype.RI = function(f, e, t) { var r = e.length,
|
||
i = e[2],
|
||
o = this._b.length;
|
||
f = f.concat(f.slice(0, 3)), e = e.concat(e.slice(0, 3)); for (var n = 0; n < r - 3; n += 3) { var a = Math.abs(f[n] - f[n + 3]),
|
||
l = Math.abs(f[n + 1] - f[n + 4]),
|
||
s = Math.round(i),
|
||
a = Math.round(Math.sqrt(Math.pow(a, 2) + Math.pow(l, 2))),
|
||
a = (0 < (l = fromValues$3(Math.ceil(a / floorHeight), Math.round(s / floorHeight)))[1] ? (mul(MaxInfo.qm, FaceTextureCoord.qm, l), mul(MaxInfo.Gm, FaceTextureCoord.Gm, l), mul(MaxInfo.Um, FaceTextureCoord.Um, l), mul(MaxInfo.Nm, FaceTextureCoord.Nm, l)) : (set$1(MaxInfo.qm, -1, -1), set$1(MaxInfo.Gm, -1, -1), set$1(MaxInfo.Um, -1, -1), set$1(MaxInfo.Nm, -1, -1)), this.zI(f.slice(n, n + 3), f.slice(n + 3, n + 6), e.slice(n + 3, n + 6)));
|
||
this._b.kb(f[n], f[n + 1], f[n + 2], i, a, MaxInfo.qm), this._b.kb(e[n + 3], e[n + 4], e[n + 5], i, a, MaxInfo.Nm), this._b.kb(f[n + 3], f[n + 4], f[n + 5], i, a, MaxInfo.Gm), this._b.kb(f[n], f[n + 1], f[n + 2], i, a, MaxInfo.qm), this._b.kb(e[n], e[n + 1], e[n + 2], i, a, MaxInfo.Um), this._b.kb(e[n + 3], e[n + 4], e[n + 5], i, a, MaxInfo.Nm) } return 0 < (o = this._b.length - o) && (this.uploaded = !1), o }, f.prototype.Nx = function(f, e, t) { if (f.length < 9) return 0; for (var r = this._b.length, i = earcut_1(f, t, 3), o = i.length - 1; 0 <= o; o--) { var n = 3 * i[o];
|
||
this._b.kb(f[n], f[1 + n], f[2 + n], e, fromValues$1(0, 0, 1), FaceTextureCoord.empty) } return 0 < (t = this._b.length - r) && (this.uploaded = !1), t }, f.prototype.zI = function(f, e, t) { var f = fromValues$1(f[0], f[1], f[2]),
|
||
e = fromValues$1(e[0], e[1], e[2]),
|
||
t = fromValues$1(t[0], t[1], t[2]),
|
||
r = create$1(),
|
||
i = create$1(),
|
||
o = create$1(); return sub(i, f, e), sub(o, t, e), cross(r, i, o), r }, f.prototype.upload = function(f, e) { void 0 === e && (e = !1), this.uploaded || (this.destroy(), this.uploaded = !0, this.zs = f.fe(this._b.Mb, FillExtrusionArray.Rb), e && delete this._b) }, f.prototype.destroy = function() { this.uploaded = !1, this.zs && (this.zs.context.deleteBuffer(this.zs), delete this.zs), this.Pc && (this.Pc.context.deleteBuffer(this.Pc), delete this.Pc) }, f.prototype.reset = function() { this._b = new FillExtrusionArray, this.uploaded = !1 }, f }(),
|
||
localStyle = { bgColor: "fff7f7f7", iconGridSize: 24, icons: "icons_3_15", stylemaps: [{ key: ["10001", "1"], browserStyle: ["6&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "2"], browserStyle: ["10&0&0&0&&0&2&1&0&0&-9"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "3"], browserStyle: ["105&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "4"], browserStyle: ["1&13&ff62718a&ffffffff&&0&2&0&1&0&0", "1&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "5"], browserStyle: ["122&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "6"], browserStyle: ["91&13&ff62718a&fff6f6f4&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "7"], browserStyle: ["92&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "8"], browserStyle: ["123&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "9"], browserStyle: ["76&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "10"], browserStyle: ["58&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "11"], browserStyle: ["100&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "12"], browserStyle: ["60&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "13"], browserStyle: ["77&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "14"], browserStyle: ["61&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "15"], browserStyle: ["59&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "16"], browserStyle: ["62&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "17"], browserStyle: ["99&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "18"], browserStyle: ["74&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "19"], browserStyle: ["63&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "20"], browserStyle: ["6&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "6&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10001", "21"], browserStyle: ["7&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "7&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10001", "22"], browserStyle: ["107&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "23"], browserStyle: ["53&13&ff3a5c9e&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "24"], browserStyle: ["56&13&ff62718a&ff62718a&&0&2&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "25"], browserStyle: ["51&13&ff3a5c9e&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "26"], browserStyle: ["52&13&ff3a5c9e&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "27"], browserStyle: ["7&0&0&0&&0&2&0&1&0&-9"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "28"], browserStyle: ["8&0&0&0&&0&2&0&1&0&-9"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "29"], browserStyle: ["75&13&ff62718a&ffffffff&&0&2&0&1&0&-11", "75&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "30"], browserStyle: ["9&0&0&0&&0&2&0&1&0&-9", "9&13&ff62718a&ffffffff&&0&1&0&1&0&-9"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "31"], browserStyle: ["144&0&0&0&&0&2&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "32"], browserStyle: ["65&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "33"], browserStyle: ["78&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "34"], browserStyle: ["79&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "35"], browserStyle: ["106&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "36"], browserStyle: ["55&0&0&0&&0&2&0&1&0&-11", "55&0&ff3a5c9e&ffffffff&&0&2&0&1&0&-11", "55&13&ff3a5c9e&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 1, 19, 2, 20, 2] }, { key: ["10001", "37"], browserStyle: ["112&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "38"], browserStyle: ["111&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "39"], browserStyle: ["83&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "40"], browserStyle: ["84&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "41"], browserStyle: ["108&0&ff62718a&ffffffff&&0&2&0&1&0&-11", "108&14&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 1, 20, 1] }, { key: ["10001", "42"], browserStyle: ["81&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "43"], browserStyle: ["82&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "44"], browserStyle: ["37&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "37&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "45"], browserStyle: ["38&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "38&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "46"], browserStyle: ["39&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "39&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "47"], browserStyle: ["40&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "40&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "48"], browserStyle: ["41&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "41&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "49"], browserStyle: ["29&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "29&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "51"], browserStyle: ["30&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "30&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "52"], browserStyle: ["34&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "34&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "53"], browserStyle: ["35&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "35&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "54"], browserStyle: ["36&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "36&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "55"], browserStyle: ["143&13&ff62718a&ffffffff&&0&2&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "57"], browserStyle: ["85&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "58"], browserStyle: ["86&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "59"], browserStyle: ["87&13&ff62718a&ffffffff&&0&2&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "60"], browserStyle: ["67&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "61"], browserStyle: ["68&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "62"], browserStyle: ["69&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "63"], browserStyle: ["88&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "64"], browserStyle: ["89&14&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "65"], browserStyle: ["26&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "26&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10001", "66"], browserStyle: ["27&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "27&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10001", "67"], browserStyle: ["28&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "28&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10001", "68"], browserStyle: ["124&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "69"], browserStyle: ["61&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "70"], browserStyle: ["64&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "71"], browserStyle: ["109&13&ff62718a&ffffffff&&0&2&0&1&0&-11", "109&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 1, 20, 1] }, { key: ["10001", "72"], browserStyle: ["110&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [19, 0, 20, 0] }, { key: ["10001", "73"], browserStyle: ["70&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "74"], browserStyle: ["122&14&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "75"], browserStyle: ["122&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "76"], browserStyle: ["122&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "77"], browserStyle: ["122&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "78"], browserStyle: ["122&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "79"], browserStyle: ["122&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "80"], browserStyle: ["91&13&ff62718a&fff6f6f4&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "81"], browserStyle: ["91&13&ff62718a&fff6f6f4&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "82"], browserStyle: ["124&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "83"], browserStyle: ["124&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "84"], browserStyle: ["124&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "85"], browserStyle: ["124&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "92"], browserStyle: ["123&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "93"], browserStyle: ["92&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "97"], browserStyle: ["92&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "98"], browserStyle: ["93&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "99"], browserStyle: ["92&13&ff825dba&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "100"], browserStyle: ["61&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "101"], browserStyle: ["61&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "102"], browserStyle: ["61&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "103"], browserStyle: ["6&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "104"], browserStyle: ["61&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "105"], browserStyle: ["60&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "106"], browserStyle: ["60&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "107"], browserStyle: ["60&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "108"], browserStyle: ["60&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "109"], browserStyle: ["94&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "110"], browserStyle: ["95&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "111"], browserStyle: ["96&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "112"], browserStyle: ["77&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "113"], browserStyle: ["97&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "114"], browserStyle: ["63&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "115"], browserStyle: ["63&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "116"], browserStyle: ["63&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "117"], browserStyle: ["63&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "118"], browserStyle: ["24&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "24&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10001", "119"], browserStyle: ["25&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "25&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10001", "120"], browserStyle: ["98&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "121"], browserStyle: ["101&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "122"], browserStyle: ["102&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "123"], browserStyle: ["103&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "124"], browserStyle: ["59&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "125"], browserStyle: ["59&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "126"], browserStyle: ["59&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "127"], browserStyle: ["59&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "128"], browserStyle: ["59&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "129"], browserStyle: ["104&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "130"], browserStyle: ["71&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "131"], browserStyle: ["65&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "132"], browserStyle: ["66&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "133"], browserStyle: ["76&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "134"], browserStyle: ["76&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "135"], browserStyle: ["76&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "136"], browserStyle: ["76&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "137"], browserStyle: ["73&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "138"], browserStyle: ["72&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "139"], browserStyle: ["58&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "140"], browserStyle: ["58&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "141"], browserStyle: ["58&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "142"], browserStyle: ["58&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "143"], browserStyle: ["58&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "144"], browserStyle: ["42&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "42&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "145"], browserStyle: ["31&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "31&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "146"], browserStyle: ["32&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "32&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "147"], browserStyle: ["33&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "33&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "149"], browserStyle: ["7&0&0&0&&0&2&0&1&0&-9"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "150"], browserStyle: ["8&0&0&0&&0&2&0&1&0&-9"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "151"], browserStyle: ["44&0&ff62718a&ffffffff&&1&2&0&1&0&-11", "44&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10001", "152"], browserStyle: ["43&0&ff62718a&ffffffff&&1&2&0&1&0&-11", "43&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10001", "153"], browserStyle: ["45&0&0&0&&1&2&0&1&0&-11", "45&0&ff62718a&ffffffff&&1&2&0&1&0&-11", "45&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 1, 19, 2, 20, 2] }, { key: ["10001", "163"], browserStyle: ["163&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "164"], browserStyle: ["63&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "165"], browserStyle: ["155&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "166"], browserStyle: ["91&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "167"], browserStyle: ["161&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "168"], browserStyle: ["140&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "169"], browserStyle: ["162&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "170"], browserStyle: ["156&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "171"], browserStyle: ["60&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "172"], browserStyle: ["51&13&ff3a5c9e&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "173"], browserStyle: ["157&13&ff62718a&ffffffff&&0&2&0&1&0&-11", "157&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 1, 20, 1] }, { key: ["10001", "174"], browserStyle: ["117&13&ff62718a&ffffffff&&0&2&0&1&0&-11", "117&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10001", "175"], browserStyle: ["145&13&ff62718a&ffffffff&&0&2&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10001", "176"], browserStyle: ["158&13&ff3a5c9e&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "177"], browserStyle: ["159&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "178"], browserStyle: ["160&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "188"], browserStyle: ["5&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "203"], browserStyle: ["70&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "204"], browserStyle: ["70&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "205"], browserStyle: ["165&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "206"], browserStyle: ["65&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "207"], browserStyle: ["64&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "208"], browserStyle: ["66&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "209"], browserStyle: ["130&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "210"], browserStyle: ["85&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "213"], browserStyle: ["171&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "214"], browserStyle: ["172&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10001", "215"], browserStyle: ["173&0&0&0&&0&2&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10002", "5"], browserStyle: ["4&13&ff555555&ffffffff&&0&1&0&1&0&0", "3&13&ff555555&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [6, 0, 7, 0, 8, 0, 9, 0, 10, 1, 11, 1] }, { key: ["10002", "6"], browserStyle: ["0&12&ffa3a3a3&ffffffff&&0&0&0&1&0&0", "0&14&ffa3a3a3&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [8, 0, 9, 0, 10, 1, 11, 1, 12, 1, 13, 0] }, { key: ["10002", "7"], browserStyle: ["4&12&ff555555&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0] }, { key: ["10002", "8"], browserStyle: ["0&12&ffa3a3a3&ffffffff&&0&0&0&1&0&0", "0&14&ffa3a3a3&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [8, 0, 9, 0, 10, 1, 11, 1, 12, 1] }, { key: ["10002", "9"], browserStyle: ["0&13&ffa3a3a3&ffffffff&&0&0&0&1&0&0", "0&14&ffa3a3a3&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10002", "10"], browserStyle: ["0&15&ffa3a3a3&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [13, 0, 14, 0, 15, 0] }, { key: ["10002", "11"], browserStyle: ["0&12&ff555b67&ffffffff&&0&0&0&1&0&0", "0&14&ff555b67&ffffffff&&0&0&0&1&0&0", "0&15&ff555b67&ffffffff&&0&0&0&1&0&0", "0&16&ff555b67&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [12, 0, 13, 1, 14, 1, 15, 2, 16, 2, 17, 2, 18, 2, 19, 3, 20, 3] }, { key: ["10002", "12"], browserStyle: ["0&10&ff62718a&ffffffff&&0&0&0&1&0&12", "0&11&ff62718a&ffffffff&&0&0&0&1&0&12"], levelStyleMapping: [6, 0, 7, 0, 8, 0, 9, 0, 10, 1, 11, 1, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10002", "13"], browserStyle: ["0&13&ff2e68c1&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10002", "14"], browserStyle: ["0&12&ffa3a3a3&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10002", "15"], browserStyle: ["0&13&ffa3a3a3&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10002", "16"], browserStyle: ["0&12&ff555b67&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10002", "17"], browserStyle: ["0&12&ffa3a3a3&ffffffff&&0&0&0&1&0&0", "0&13&ffa3a3a3&ffffffff&&0&0&0&1&0&0", "0&15&ffa3a3a3&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [12, 0, 13, 1, 14, 1, 15, 1, 16, 1, 17, 2, 18, 2, 19, 2, 20, 2] }, { key: ["10002", "18"], browserStyle: ["0&18&ffe04747&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [3, 0] }, { key: ["10002", "19"], browserStyle: ["0&13&ff6e6c6a&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [3, 0, 4, 0] }, { key: ["10002", "20"], browserStyle: ["0&20&ff252525&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [3, 0] }, { key: ["10002", "21"], browserStyle: ["117&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10002", "23"], browserStyle: ["0&11&ff62718a&ffffffff&&0&0&0&1&0&12", "0&12&ff62718a&ffffffff&&0&0&0&1&0&12"], levelStyleMapping: [6, 0, 7, 0, 8, 0, 9, 1, 10, 1, 11, 1, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10002", "24"], browserStyle: ["6&13&ff555555&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0] }, { key: ["10002", "25"], browserStyle: ["0&11&ffa3a3a3&ffffffff&&0&0&0&1&0&0", "0&12&ffa3a3a3&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 1] }, { key: ["10002", "26"], browserStyle: ["0&12&ff6e6c6a&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [4, 0] }, { key: ["10002", "27"], browserStyle: ["0&8&ff555555&ffffffff&&0&0&0&1&0&0", "0&11&ff555555&ffffffff&&0&0&0&1&0&0", "0&13&ff555555&ffffffff&&0&0&0&1&0&0", "0&15&ff555555&ffffffff&&0&0&0&1&0&0", "0&16&ff555555&ffffffff&&0&0&0&1&0&0", "0&18&ff555555&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [5, 0, 6, 1, 7, 1, 8, 2, 9, 3, 10, 4, 11, 5] }, { key: ["10002", "30"], browserStyle: ["2&14&ff252525&ffffffff&&0&1&0&1&0&0", "2&14&ff252525&ffffffff&&0&1&1&1&0&0", "3&14&ff252525&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [3, 0, 4, 1, 5, 2, 6, 2, 7, 2, 8, 2, 9, 2, 10, 2] }, { key: ["10002", "31"], browserStyle: ["3&14&ff252525&ffffffff&&0&1&1&1&0&0", "3&14&ff252525&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [5, 0, 6, 1, 7, 1, 8, 1, 9, 1, 10, 1] }, { key: ["10002", "32"], browserStyle: ["3&14&ff252525&ffffffff&&0&1&1&1&0&0", "3&14&ff252525&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [5, 0, 6, 1, 7, 1, 8, 1, 9, 1, 10, 1] }, { key: ["10002", "34"], browserStyle: ["3&14&ff252525&ffffffff&&0&1&1&1&0&0", "3&14&ff252525&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [5, 0, 6, 1, 7, 1, 8, 1, 9, 1, 10, 1] }, { key: ["10002", "35"], browserStyle: ["6&13&ff555555&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0] }, { key: ["10002", "36"], browserStyle: ["0&12&ff555555&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0] }, { key: ["10002", "37"], browserStyle: ["0&12&ffa3a3a3&ffffffff&&0&0&0&1&0&0", "0&14&ffa3a3a3&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [9, 0, 10, 1, 11, 1, 12, 1] }, { key: ["10002", "38"], browserStyle: ["0&13&ff2e68c1&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10002", "39"], browserStyle: ["3&14&ff424242&ffffffff&&0&1&0&1&0&0", "3&14&ff000000&ffffffff&&0&1&0&1&0&0", "3&15&ff000000&ffffffff&&0&1&0&1&0&0", "3&16&ff000000&ffffffff&&0&1&0&1&0&0", "0&16&ff000000&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [5, 0, 6, 1, 7, 2, 8, 3, 9, 3, 10, 4] }, { key: ["10002", "40"], browserStyle: ["3&14&ff424242&ffffffff&&0&1&0&1&0&0", "3&14&ff000000&ffffffff&&0&1&0&1&0&0", "3&15&ff000000&ffffffff&&0&1&0&1&0&0", "3&16&ff000000&ffffffff&&0&1&0&1&0&0", "0&16&ff000000&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [5, 0, 6, 1, 7, 2, 8, 3, 9, 3, 10, 4] }, { key: ["10002", "41"], browserStyle: ["6&13&ff6e6c6a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0] }, { key: ["10004", "1"], browserStyle: ["0&14&ffacb7d3&7fffffff&&0&0&0&1&0&0", "0&16&ffacb7d3&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "2"], browserStyle: ["0&14&ff656e82&7fffffff&&0&0&0&1&0&0", "0&14&ffb0b8cb&7fffffff&&0&0&0&1&0&0", "0&16&ffb0b8cb&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 1, 17, 2, 18, 2, 19, 2, 20, 2] }, { key: ["10004", "3"], browserStyle: ["0&14&ff6bb377&7fffffff&&0&0&0&1&0&0", "0&16&ff6bb377&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "4"], browserStyle: ["0&14&ffadc2cd&7fffffff&&0&0&0&1&0&0", "0&16&ffadc2cd&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "5"], browserStyle: ["0&14&ffd4a394&7fffffff&&0&0&0&1&0&0", "0&16&ffd4a394&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "6"], browserStyle: ["0&14&ffbf9da4&7fffffff&&0&0&0&1&0&0", "0&16&ffbf9da4&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "7"], browserStyle: ["0&14&ff6bb377&7fffffff&&0&0&0&1&0&0", "0&16&ff6bb377&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "8"], browserStyle: ["0&14&ffbdb0eb&7fffffff&&0&0&0&1&0&0", "0&16&ffbdb0eb&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "11"], browserStyle: ["0&14&ffacb7d3&7fffffff&&0&0&0&1&0&0", "0&16&ffacb7d3&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "12"], browserStyle: ["0&14&ffb0b8cb&7fffffff&&0&0&0&1&0&0", "0&16&ffb0b8cb&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "13"], browserStyle: ["0&14&ff6bb377&7fffffff&&0&0&0&1&0&0", "0&16&ff6bb377&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "14"], browserStyle: ["0&14&ffadc2cd&7fffffff&&0&0&0&1&0&0", "0&16&ffadc2cd&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "15"], browserStyle: ["0&14&ffd4a394&7fffffff&&0&0&0&1&0&0", "0&16&ffd4a394&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "16"], browserStyle: ["0&14&ffbf9da4&7fffffff&&0&0&0&1&0&0", "0&16&ffbf9da4&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "17"], browserStyle: ["0&14&ff6bb377&7fffffff&&0&0&0&1&0&0", "0&16&ff6bb377&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "18"], browserStyle: ["0&14&ffbdb0eb&7fffffff&&0&0&0&1&0&0", "0&16&ffbdb0eb&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "21"], browserStyle: ["0&14&ffd4a394&7fffffff&&0&0&0&1&0&0", "0&16&ffd4a394&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "22"], browserStyle: ["0&14&ffb0b8cb&7fffffff&&0&0&0&1&0&0", "0&16&ffb0b8cb&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10004", "23"], browserStyle: ["0&14&ffb0b8cb&7fffffff&&0&0&0&1&0&0", "0&16&ffb0b8cb&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10005", "1"], browserStyle: ["15&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "3"], browserStyle: ["28&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "5"], browserStyle: ["30&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "7"], browserStyle: ["47&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "9"], browserStyle: ["27&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "11"], browserStyle: ["24&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "13"], browserStyle: ["23&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "15"], browserStyle: ["22&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "17"], browserStyle: ["19&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "19"], browserStyle: ["44&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "21"], browserStyle: ["18&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "23"], browserStyle: ["16&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "25"], browserStyle: ["17&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "27"], browserStyle: ["25&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "29"], browserStyle: ["20&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "31"], browserStyle: ["29&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "33"], browserStyle: ["26&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "35"], browserStyle: ["61&13&ff62718a&ffffffff&&1&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "37"], browserStyle: ["21&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "39"], browserStyle: ["31&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "41"], browserStyle: ["152&9&ff2880e4&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "43"], browserStyle: ["32&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "45"], browserStyle: ["37&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "47"], browserStyle: ["45&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "49"], browserStyle: ["46&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "51"], browserStyle: ["34&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "53"], browserStyle: ["11&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "54"], browserStyle: ["14&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "55"], browserStyle: ["13&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "56"], browserStyle: ["12&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "57"], browserStyle: ["40&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "59"], browserStyle: ["176&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "86"], browserStyle: ["41&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "87"], browserStyle: ["49&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "88"], browserStyle: ["48&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "89"], browserStyle: ["50&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "90"], browserStyle: ["166&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "91"], browserStyle: ["167&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "92"], browserStyle: ["168&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "93"], browserStyle: ["169&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "94"], browserStyle: ["61&13&ff62718a&ffffffff&&1&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "95"], browserStyle: ["170&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "96"], browserStyle: ["174&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "97"], browserStyle: ["175&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "98"], browserStyle: ["177&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "99"], browserStyle: ["178&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "100"], browserStyle: ["61&13&ff62718a&ffffffff&&1&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "101"], browserStyle: ["61&13&ff62718a&ffffffff&&1&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "102"], browserStyle: ["61&13&ff62718a&ffffffff&&1&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "103"], browserStyle: ["179&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "104"], browserStyle: ["180&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "105"], browserStyle: ["186&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "106"], browserStyle: ["62&13&ff62718a&ffffffff&&1&1&0&1&0&0"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "107"], browserStyle: ["63&13&ff62718a&ffffffff&&1&1&0&1&0&0"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "108"], browserStyle: ["61&13&ff62718a&ffffffff&&1&1&0&1&0&0"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "109"], browserStyle: ["61&13&ff62718a&ffffffff&&1&1&0&1&0&0"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "110"], browserStyle: ["61&13&ff62718a&ffffffff&&1&1&0&1&0&0"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "111"], browserStyle: ["65&13&ff62718a&ffffffff&&1&1&0&1&0&0"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "112"], browserStyle: ["61&13&ff62718a&ffffffff&&1&1&0&1&0&0"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "113"], browserStyle: ["61&13&ff62718a&ffffffff&&1&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "114"], browserStyle: ["187&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "115"], browserStyle: ["188&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10005", "123"], browserStyle: ["35&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10006", "1"], browserStyle: ["5&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10006", "2"], browserStyle: ["154&12&ff2880e4&ffa8b1c7&&0&0&0&1&0&0"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "1"], browserStyle: ["6&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "6&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "2"], browserStyle: ["7&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "7&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "3"], browserStyle: ["24&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "24&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "4"], browserStyle: ["25&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "25&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "5"], browserStyle: ["1&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "1&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "6"], browserStyle: ["2&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "2&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "7"], browserStyle: ["3&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "3&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "8"], browserStyle: ["4&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "4&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "9"], browserStyle: ["5&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "5&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "10"], browserStyle: ["8&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "8&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "11"], browserStyle: ["9&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "9&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "12"], browserStyle: ["22&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "22&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "13"], browserStyle: ["23&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "23&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "14"], browserStyle: ["37&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "37&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "15"], browserStyle: ["38&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "38&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "16"], browserStyle: ["39&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "39&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "17"], browserStyle: ["40&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "40&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "18"], browserStyle: ["41&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "41&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "19"], browserStyle: ["29&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "29&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "20"], browserStyle: ["30&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "30&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "21"], browserStyle: ["34&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "34&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "22"], browserStyle: ["35&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "35&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "23"], browserStyle: ["36&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "36&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "24"], browserStyle: ["42&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "42&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "25"], browserStyle: ["31&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "31&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "26"], browserStyle: ["32&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "32&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "27"], browserStyle: ["33&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "33&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "28"], browserStyle: ["26&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "26&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "29"], browserStyle: ["27&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "27&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "30"], browserStyle: ["28&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "28&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "31"], browserStyle: ["46&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "46&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "32"], browserStyle: ["47&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "47&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "33"], browserStyle: ["52&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "52&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "34"], browserStyle: ["53&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "53&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "35"], browserStyle: ["54&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "54&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "36"], browserStyle: ["55&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "55&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "37"], browserStyle: ["56&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "56&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "38"], browserStyle: ["57&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "57&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "39"], browserStyle: ["58&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "58&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "40"], browserStyle: ["44&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "44&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "41"], browserStyle: ["43&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "43&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "42"], browserStyle: ["45&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "45&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "43"], browserStyle: ["58&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "44"], browserStyle: ["58&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "45"], browserStyle: ["58&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "46"], browserStyle: ["58&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "47"], browserStyle: ["58&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "164"], browserStyle: ["48&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "48&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "165"], browserStyle: ["49&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "49&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "166"], browserStyle: ["139&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10007", "167"], browserStyle: ["127&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10007", "168"], browserStyle: ["132&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10007", "169"], browserStyle: ["131&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10007", "170"], browserStyle: ["130&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "171"], browserStyle: ["134&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "172"], browserStyle: ["135&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "173"], browserStyle: ["136&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "174"], browserStyle: ["137&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "175"], browserStyle: ["138&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10007", "176"], browserStyle: ["126&13&ff805a40&ffffffff&&0&1&0&1&0&-11", "126&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "177"], browserStyle: ["133&13&ff805a40&ffffffff&&0&1&0&1&0&-11", "133&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "178"], browserStyle: ["128&13&ff825dba&ffffffff&&0&1&0&1&0&-11", "128&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "179"], browserStyle: ["125&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10007", "180"], browserStyle: ["63&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10007", "181"], browserStyle: ["129&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10007", "182"], browserStyle: ["50&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "50&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "183"], browserStyle: ["51&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "51&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "184"], browserStyle: ["11&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "11&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "185"], browserStyle: ["12&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "12&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "186"], browserStyle: ["13&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "13&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "187"], browserStyle: ["1&13&ff62718a&ffffffff&&0&2&0&1&0&0", "1&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10007", "188"], browserStyle: ["59&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "189"], browserStyle: ["72&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "190"], browserStyle: ["60&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "192"], browserStyle: ["94&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "193"], browserStyle: ["60&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "195"], browserStyle: ["60&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "196"], browserStyle: ["61&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "198"], browserStyle: ["121&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "200"], browserStyle: ["118&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10007", "201"], browserStyle: ["119&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10007", "202"], browserStyle: ["120&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10007", "203"], browserStyle: ["116&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["10007", "204"], browserStyle: ["21&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "21&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "205"], browserStyle: ["19&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "19&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "206"], browserStyle: ["20&13&ff62718a&ffffffff&&1&2&0&1&0&-11", "20&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 1, 20, 1] }, { key: ["10007", "208"], browserStyle: ["0&13&ff62718a&ffffffff&&0&0&0&1&0&0", "0&13&ff62718a&ffffffff&&0&0&1&1&0&0"], levelStyleMapping: [4, 0, 5, 0, 6, 1, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "209"], browserStyle: ["130&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10007", "210"], browserStyle: ["0&14&ff656e82&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [15, 0] }, { key: ["10007", "211"], browserStyle: ["0&14&ff656e82&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [15, 0, 16, 0] }, { key: ["10007", "212"], browserStyle: ["0&14&ff656e82&7fffffff&&0&0&0&1&0&0", "0&16&ff656e82&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [15, 0, 16, 0, 17, 1] }, { key: ["10007", "213"], browserStyle: ["0&14&ff656e82&7fffffff&&0&0&0&1&0&0", "0&16&ff656e82&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1] }, { key: ["10007", "214"], browserStyle: ["0&14&ff656e82&7fffffff&&0&0&0&1&0&0", "0&16&ff656e82&7fffffff&&0&0&0&1&0&0", "0&18&ff656e82&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [15, 0, 16, 0, 17, 1, 18, 1, 19, 2, 20, 2] }, { key: ["10008", "1"], browserStyle: ["141&0&0&0&&0&2&0&0&0&0"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10008", "2"], browserStyle: ["142&0&0&0&&0&2&0&0&0&0"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10009", "1"], browserStyle: ["0&17&ff3a5c9e&7fffffff&&0&0&0&1&0&0", "0&18&ff3a5c9e&7fffffff&&0&0&0&1&0&0", "0&19&ff3a5c9e&7fffffff&&0&0&0&1&0&0"], levelStyleMapping: [13, 0, 14, 0, 15, 1, 16, 2] }, { key: ["10010", "1"], browserStyle: ["6&12&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "2"], browserStyle: ["6&12&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "3"], browserStyle: ["6&0&0&0&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "4"], browserStyle: ["6&19&ff222222&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "5"], browserStyle: ["63&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "6"], browserStyle: ["107&13&ffcb5d27&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "7"], browserStyle: ["75&13&ff62718a&ffffffff&&0&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "8"], browserStyle: ["9&13&ff62718a&ffffffff&&0&2&0&1&0&-9"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "9"], browserStyle: ["74&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "10"], browserStyle: ["7&0&0&0&&0&2&0&1&0&-9", "7&8&ff62718a&ffffffff&&0&2&0&1&0&-9"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 1, 19, 1, 20, 1] }, { key: ["10010", "11"], browserStyle: ["8&0&0&0&&0&2&0&1&0&-9", "8&8&ff62718a&ffffffff&&0&2&0&1&0&-9"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 1, 19, 1, 20, 1] }, { key: ["10010", "12"], browserStyle: ["117&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "13"], browserStyle: ["60&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "14"], browserStyle: ["77&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "15"], browserStyle: ["61&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "16"], browserStyle: ["112&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "17"], browserStyle: ["111&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "18"], browserStyle: ["95&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "19"], browserStyle: ["96&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "20"], browserStyle: ["94&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "22"], browserStyle: ["87&13&ff62718a&ffffffff&&0&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "24"], browserStyle: ["92&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "25"], browserStyle: ["124&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "26"], browserStyle: ["123&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "27"], browserStyle: ["93&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "28"], browserStyle: ["78&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "29"], browserStyle: ["102&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "30"], browserStyle: ["62&13&ff368836&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "31"], browserStyle: ["89&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "32"], browserStyle: ["138&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "33"], browserStyle: ["6&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "34"], browserStyle: ["53&13&ff3a5c9e&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "35"], browserStyle: ["52&13&ff3a5c9e&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "36"], browserStyle: ["55&13&0&0&&0&2&0&1&0&-11", "55&13&ff3a5c9e&ffffffff&&0&2&0&1&0&-11", "55&13&ff3a5c9e&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 2] }, { key: ["10010", "37"], browserStyle: ["51&13&ff3a5c9e&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "39"], browserStyle: ["5&13&ff62718a&ffffffff&&0&2&0&1&0&0", "5&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10010", "41"], browserStyle: ["56&13&ff62718a&ffffffff&&0&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "42"], browserStyle: ["144&13&ff62718a&ffffffff&&0&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "43"], browserStyle: ["152&13&ff2880e4&ffffffff&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "44"], browserStyle: ["154&13&ff2880e4&ffa8b1c7&&0&0&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "45"], browserStyle: ["158&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "46"], browserStyle: ["159&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "47"], browserStyle: ["160&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "48"], browserStyle: ["98&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "49"], browserStyle: ["83&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "50"], browserStyle: ["81&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "51"], browserStyle: ["143&13&ff62718a&ffffffff&&0&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "52"], browserStyle: ["106&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "53"], browserStyle: ["58&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "54"], browserStyle: ["100&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "55"], browserStyle: ["72&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "56"], browserStyle: ["155&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "57"], browserStyle: ["126&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "58"], browserStyle: ["133&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "59"], browserStyle: ["133&13&ff805a40&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "60"], browserStyle: ["97&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "61"], browserStyle: ["108&13&ff62718a&ffffffff&&0&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "62"], browserStyle: ["109&13&ff62718a&ffffffff&&0&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "63"], browserStyle: ["110&13&ff62718a&ffffffff&&0&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "64"], browserStyle: ["84&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "65"], browserStyle: ["83&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "66"], browserStyle: ["122&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "67"], browserStyle: ["91&13&ff62718a&fff6f6f4&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "68"], browserStyle: ["85&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "69"], browserStyle: ["86&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "70"], browserStyle: ["101&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "71"], browserStyle: ["103&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "72"], browserStyle: ["88&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "75"], browserStyle: ["59&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "76"], browserStyle: ["99&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "77"], browserStyle: ["67&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "78"], browserStyle: ["70&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "79"], browserStyle: ["69&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "80"], browserStyle: ["104&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "81"], browserStyle: ["71&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "83"], browserStyle: ["65&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "84"], browserStyle: ["64&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "85"], browserStyle: ["65&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "86"], browserStyle: ["66&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "87"], browserStyle: ["105&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "88"], browserStyle: ["79&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "89"], browserStyle: ["79&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "90"], browserStyle: ["82&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "91"], browserStyle: ["73&13&ff62718a&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "92"], browserStyle: ["76&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "95"], browserStyle: ["0&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "96"], browserStyle: ["44&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "97"], browserStyle: ["43&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "98"], browserStyle: ["45&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "99"], browserStyle: ["6&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "100"], browserStyle: ["7&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "101"], browserStyle: ["25&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "102"], browserStyle: ["2&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "103"], browserStyle: ["1&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "104"], browserStyle: ["9&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "105"], browserStyle: ["22&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "106"], browserStyle: ["23&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "107"], browserStyle: ["3&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "108"], browserStyle: ["4&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "109"], browserStyle: ["5&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "110"], browserStyle: ["8&13&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "111"], browserStyle: ["27&11&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "112"], browserStyle: ["28&11&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "113"], browserStyle: ["26&11&ff62718a&ffffffff&&1&2&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "114"], browserStyle: ["68&13&ff825dba&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "115"], browserStyle: ["56&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "116"], browserStyle: ["51&13&ff3a5c9e&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "117"], browserStyle: ["140&13&ff3a5c9e&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "118"], browserStyle: ["42&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "119"], browserStyle: ["37&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "120"], browserStyle: ["38&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "121"], browserStyle: ["39&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "122"], browserStyle: ["40&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "123"], browserStyle: ["41&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "124"], browserStyle: ["29&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "125"], browserStyle: ["31&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "126"], browserStyle: ["30&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "127"], browserStyle: ["34&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "128"], browserStyle: ["32&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "129"], browserStyle: ["35&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "130"], browserStyle: ["36&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "131"], browserStyle: ["33&13&ff62718a&ffffffff&&1&1&0&1&0&-11"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "133"], browserStyle: ["98&13&ff222222&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "134"], browserStyle: ["144&13&ff222222&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "135"], browserStyle: ["158&13&ff222222&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "136"], browserStyle: ["117&13&ff222222&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "137"], browserStyle: ["159&13&ff222222&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "138"], browserStyle: ["160&13&ff222222&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "139"], browserStyle: ["160&13&ff222222&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "140"], browserStyle: ["159&13&ff222222&ffffffff&&0&1&0&1&0&-11"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "141"], browserStyle: ["161&13&ff222222&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "142"], browserStyle: ["200&13&ff222222&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10010", "143"], browserStyle: ["114&13&ff62718a&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10013", "4"], browserStyle: ["181&0&0&0&&0&2&0&1&0&0", "182&13&ffb59c49&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 1, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10013", "5"], browserStyle: ["181&0&0&0&&0&2&0&1&0&0", "182&13&ffb59c49&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [10, 0, 11, 1, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["10013", "6"], browserStyle: ["183&13&ffb59c49&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["10013", "7"], browserStyle: ["184&13&ff5f9b59&ffffffff&&0&1&0&1&0&0", "185&13&ff5f9b59&ffffffff&&0&1&0&1&0&0"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["20001", "1"], browserStyle: ["1&ffffac4d&solid_roundcap&&&&89|", "2&ffffac4d&solid_roundcap&&&&89|", "2&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&89|", "2&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&89|0&11&ff606066&ffffffff&89", "4&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&89|0&12&ff606066&ffffffff&89", "6&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&89|0&13&ff606066&ffffffff&89", "7&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&89|0&13&ff606066&ffffffff&89", "8&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&89|0&14&ff606066&ffffffff&89", "8&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&89|0&14&ff606066&ffffffff&89", "11&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&89|0&14&ff606066&ffffffff&89", "11&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&89|0&15&ff606066&ffffffff&89", "20&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&89|0&15&ff606066&ffffffff&89", "40&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&89|0&20&ff606066&ffffffff&89", "78&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&89|0&20&ff606066&ffffffff&89"], levelStyleMapping: [6, 0, 7, 0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17, 10, 18, 11, 19, 12, 20, 13] }, { key: ["20001", "2"], browserStyle: ["1&ffffac4d&solid_roundcap&&&&88|", "2&ffffac4d&solid_roundcap&&&&88|", "2&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&88|", "2&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&88|0&11&ff606066&ffffffff&88", "4&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&88|0&12&ff606066&ffffffff&88", "6&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&88|0&13&ff606066&ffffffff&88", "7&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&88|0&13&ff606066&ffffffff&88", "8&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&88|0&14&ff606066&ffffffff&88", "8&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&88|0&14&ff606066&ffffffff&88", "11&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&88|0&14&ff606066&ffffffff&88", "11&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&88|0&15&ff606066&ffffffff&88", "20&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&88|0&15&ff606066&ffffffff&88", "40&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&88|0&20&ff606066&ffffffff&88", "78&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&88|0&20&ff606066&ffffffff&88"], levelStyleMapping: [6, 0, 7, 0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17, 10, 18, 11, 19, 12, 20, 13] }, { key: ["20001", "3"], browserStyle: ["1&ffffac4d&solid_roundcap&&&&31|", "2&ffffac4d&solid_roundcap&&&&31|", "2&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&31|", "2&ffffac4d&solid_roundcap&2&fff09c3c&solid_roundcap&31|0&11&ff606066&ffffffff&31", "4&ffffc482&solid_roundcap&2&fff09c3c&solid_roundcap&31|0&12&ff606066&ffffffff&31", "6&ffffc482&solid_roundcap&2&fff09c3c&solid_roundcap&31|0&13&ff606066&ffffffff&31", "7&ffffc482&solid_roundcap&2&fff09c3c&solid_roundcap&31|0&13&ff606066&ffffffff&31", "8&ffffc482&solid_roundcap&2&fff09c3c&solid_roundcap&31|0&14&ff606066&ffffffff&31", "8&ffffc482&solid_roundcap&2&fff09c3c&solid_roundcap&31|0&14&ff606066&ffffffff&31", "11&ffffc482&solid_roundcap&2&fff09c3c&solid_roundcap&31|0&14&ff606066&ffffffff&31", "11&ffffc482&solid_roundcap&2&fff09c3c&solid_roundcap&31|0&15&ff606066&ffffffff&31", "20&ffffc482&solid_roundcap&2&fff09c3c&solid_roundcap&31|0&15&ff606066&ffffffff&31", "40&ffffc482&solid_roundcap&2&fff09c3c&solid_roundcap&31|0&20&ff606066&ffffffff&31", "78&ffffc482&solid_roundcap&2&fff09c3c&solid_roundcap&31|0&20&ff606066&ffffffff&31"], levelStyleMapping: [6, 0, 7, 0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17, 10, 18, 11, 19, 12, 20, 13] }, { key: ["20001", "5"], browserStyle: ["1&ffffac4d&solid&&&&89|", "1&ffffac4d&solid_roundcap&2&fff09c3c&solid&89|", "2&ffffac4d&solid_roundcap&2&fff09c3c&solid&89|"], levelStyleMapping: [6, 0, 7, 0, 8, 1, 9, 2, 10, 2, 11, 2, 12, 2, 13, 2, 14, 2, 15, 2, 16, 2, 17, 2, 18, 2, 19, 2, 20, 2] }, { key: ["20001", "6"], browserStyle: ["3&ffffffff&solid&&&&50|", "2&ffffffff&solid_roundcap&3&ffd7d7d7&solid&50|", "5&ffffffff&solid_roundcap&0&ffd7d7d7&solid&50|", "5&ffffffff&solid_roundcap&0&ffd7d7d7&solid&50|", "5&ffffffff&solid_roundcap&0&ffd7d7d7&solid&50|"], levelStyleMapping: [14, 0, 15, 1, 16, 1, 17, 2, 18, 3, 19, 4, 20, 4] }, { key: ["20002", "1"], browserStyle: ["1&fffed151&solid&&&&87|", "1&fffed151&solid_roundcap&1&fff7bf5f&solid&87|", "1&fffed151&solid_roundcap&2&fff7bf5f&solid&87|", "2&fffed151&solid_roundcap&2&fff7bf5f&solid&87|", "3&fffed151&solid_roundcap&2&fff7bf5f&solid&87|0&12&ff606066&ffffffff&87", "3&fffed151&solid_roundcap&2&fff7bf5f&solid&87|0&13&ff606066&ffffffff&87", "3&fffed151&solid_roundcap&2&fff7bf5f&solid&87|0&13&ff606066&ffffffff&87", "6&fffed151&solid_roundcap&2&fff7bf5f&solid&87|0&14&ff606066&ffffffff&87", "6&fffed151&solid_roundcap&2&fff7bf5f&solid&87|0&14&ff606066&ffffffff&87", "10&fffed151&solid_roundcap&2&fff7bf5f&solid&87|0&14&ff606066&ffffffff&87", "10&fffed151&solid_roundcap&2&fff7bf5f&solid&87|0&15&ff606066&ffffffff&87", "18&fffed151&solid_roundcap&2&fff7bf5f&solid&87|0&15&ff606066&ffffffff&87", "36&fffed151&solid_roundcap&2&fff7bf5f&solid&87|0&20&ff606066&ffffffff&87", "70&fffed151&solid_roundcap&2&fff7bf5f&solid&87|0&20&ff606066&ffffffff&87"], levelStyleMapping: [7, 0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17, 10, 18, 11, 19, 12, 20, 13] }, { key: ["20002", "2"], browserStyle: ["1&fffed151&solid&&&&86|", "1&fffed151&solid_roundcap&1&fff7bf5f&solid&86|", "1&fffed151&solid_roundcap&2&fff7bf5f&solid&86|", "2&fffed151&solid_roundcap&2&fff7bf5f&solid&86|", "3&fffed151&solid_roundcap&2&fff7bf5f&solid&86|", "3&fffed151&solid_roundcap&2&fff7bf5f&solid&86|", "3&fffed151&solid_roundcap&2&fff7bf5f&solid&86|", "6&fffed151&solid_roundcap&2&fff7bf5f&solid&86|", "6&fffed151&solid_roundcap&2&fff7bf5f&solid&86|", "10&fffed151&solid_roundcap&2&fff7bf5f&solid&86|", "10&fffed151&solid_roundcap&2&fff7bf5f&solid&86|0&15&ff606066&ffffffff&86", "18&fffed151&solid_roundcap&2&fff7bf5f&solid&86|0&15&ff606066&ffffffff&86", "36&fffed151&solid_roundcap&2&fff7bf5f&solid&86|0&20&ff606066&ffffffff&86", "70&fffed151&solid_roundcap&2&fff7bf5f&solid&86|0&20&ff606066&ffffffff&86"], levelStyleMapping: [7, 0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17, 10, 18, 11, 19, 12, 20, 13] }, { key: ["20002", "3"], browserStyle: ["1&fffede84&solid&&&&31|", "1&fffede84&solid_roundcap&1&fff7bf5f&solid&31|", "1&fffede84&solid_roundcap&2&fff7bf5f&solid&31|", "2&fffede84&solid_roundcap&2&fff7bf5f&dash(2,2)&31|", "3&fffede84&solid_roundcap&2&fff7bf5f&dash(2,2)&31|0&12&ff606066&ffffffff&31", "3&fffede84&solid_roundcap&2&fff7bf5f&dash(2,2)&31|0&13&ff606066&ffffffff&31", "3&fffede84&solid_roundcap&2&fff7bf5f&dash(2,2)&31|0&13&ff606066&ffffffff&31", "6&fffede84&solid_roundcap&2&fff7bf5f&dash(2,2)&31|0&14&ff606066&ffffffff&31", "6&fffede84&solid_roundcap&2&fff7bf5f&dash(2,2)&31|0&14&ff606066&ffffffff&31", "10&fffede84&solid_roundcap&2&fff7bf5f&dash(2,2)&31|0&14&ff606066&ffffffff&31", "10&fffede84&solid_roundcap&2&fff7bf5f&dash(2,2)&31|0&15&ff606066&ffffffff&31", "18&fffede84&solid_roundcap&2&fff7bf5f&dash(2,2)&31|0&15&ff606066&ffffffff&31", "36&fffede84&solid_roundcap&2&fff7bf5f&dash(2,2)&31|0&20&ff606066&ffffffff&31", "70&fffede84&solid_roundcap&2&fff7bf5f&dash(2,2)&31|0&20&ff606066&ffffffff&31"], levelStyleMapping: [7, 0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17, 10, 18, 11, 19, 12, 20, 13] }, { key: ["20003", "1"], browserStyle: ["1&ffffe5a9&solid&&&&85|", "1&fffff0bb&solid_roundcap&2&fff7d78c&solid&85|", "2&fffff0bb&solid_roundcap&2&fff7d78c&solid&85|", "2&fffff0bb&solid_roundcap&2&fff7d78c&solid&85|0&12&ff606066&ffffffff&85", "3&fffff0bb&solid_roundcap&2&fff7d78c&solid&85|0&13&ff606066&ffffffff&85", "3&fffff0bb&solid_roundcap&2&fff7d78c&solid&85|0&13&ff606066&ffffffff&85", "5&fffff0bb&solid_roundcap&2&fff7d78c&solid&85|0&14&ff606066&ffffffff&85", "5&fffff0bb&solid_roundcap&2&fff7d78c&solid&85|0&14&ff606066&ffffffff&85", "10&fffff0bb&solid_roundcap&2&fff7d78c&solid&85|0&14&ff606066&ffffffff&85", "10&fffff0bb&solid_roundcap&2&fff7d78c&solid&85|0&15&ff606066&ffffffff&85", "16&fffff0bb&solid_roundcap&2&fff7d78c&solid&85|0&15&ff606066&ffffffff&85", "26&fffff0bb&solid_roundcap&2&fff7d78c&solid&85|0&20&ff606066&ffffffff&85", "50&fffff0bb&solid_roundcap&2&fff7d78c&solid&85|0&20&ff606066&ffffffff&85"], levelStyleMapping: [7, 0, 8, 0, 9, 1, 10, 2, 11, 3, 12, 4, 13, 5, 14, 6, 15, 7, 16, 8, 17, 9, 18, 10, 19, 11, 20, 12] }, { key: ["20003", "2"], browserStyle: ["1&ffffe5a9&solid&&&&84|", "1&fffff0bb&solid_roundcap&2&fff7d78c&solid&84|", "2&fffff0bb&solid_roundcap&2&fff7d78c&solid&84|", "2&fffff0bb&solid_roundcap&2&fff7d78c&solid&84|", "3&fffff0bb&solid_roundcap&2&fff7d78c&solid&84|", "3&fffff0bb&solid_roundcap&2&fff7d78c&solid&84|", "5&fffff0bb&solid_roundcap&2&fff7d78c&solid&84|", "5&fffff0bb&solid_roundcap&2&fff7d78c&solid&84|", "10&fffff0bb&solid_roundcap&2&fff7d78c&solid&84|", "10&fffff0bb&solid_roundcap&2&fff7d78c&solid&84|0&15&ff606066&ffffffff&84", "16&fffff0bb&solid_roundcap&2&fff7d78c&solid&84|0&15&ff606066&ffffffff&84", "26&fffff0bb&solid_roundcap&2&fff7d78c&solid&84|0&20&ff606066&ffffffff&84", "50&fffff0bb&solid_roundcap&2&fff7d78c&solid&84|0&20&ff606066&ffffffff&84"], levelStyleMapping: [7, 0, 8, 0, 9, 1, 10, 2, 11, 3, 12, 4, 13, 5, 14, 6, 15, 7, 16, 8, 17, 9, 18, 10, 19, 11, 20, 12] }, { key: ["20003", "3"], browserStyle: ["1&ffffe5a9&solid&&&&31|", "1&&solid_roundcap&2&ffffe5a9&solid&31|", "1&fffff0bb&solid_roundcap&2&fff7d78c&solid&31|", "2&fffff0bb&solid_roundcap&2&fff7d78c&dash(2,2)&31|", "2&fffff0bb&solid_roundcap&2&fff7d78c&dash(2,2)&31|0&12&ff606066&ffffffff&31", "3&fffff0bb&solid_roundcap&2&fff7d78c&dash(2,2)&31|0&13&ff606066&ffffffff&31", "3&fffff0bb&solid_roundcap&2&fff7d78c&dash(2,2)&31|0&13&ff606066&ffffffff&31", "5&fffff0bb&solid_roundcap&2&fff7d78c&dash(2,2)&31|0&14&ff606066&ffffffff&31", "5&fffff0bb&solid_roundcap&2&fff7d78c&dash(2,2)&31|0&14&ff606066&ffffffff&31", "10&fffff0bb&solid_roundcap&2&fff7d78c&dash(2,2)&31|0&14&ff606066&ffffffff&31", "10&fffff0bb&solid_roundcap&2&fff7d78c&dash(2,2)&31|0&15&ff606066&ffffffff&31", "16&fffff0bb&solid_roundcap&2&fff7d78c&dash(2,2)&31|0&15&ff606066&ffffffff&31", "26&fffff0bb&solid_roundcap&2&fff7d78c&dash(2,2)&31|0&20&ff606066&ffffffff&31", "50&fffff0bb&solid_roundcap&2&fff7d78c&dash(2,2)&31|0&20&ff606066&ffffffff&31"], levelStyleMapping: [7, 0, 8, 1, 9, 2, 10, 3, 11, 4, 12, 5, 13, 6, 14, 7, 15, 8, 16, 9, 17, 10, 18, 11, 19, 12, 20, 13] }, { key: ["20003", "5"], browserStyle: ["3&ffffffff&solid&&&&50|", "2&ffffffff&solid_roundcap&0&ffd7d7d7&solid&50|", "2&ffffffff&solid_roundcap&3&ffd7d7d7&solid&50|", "5&ffffffff&solid_roundcap&0&ffd7d7d7&solid&50|", "5&ffffffff&solid_roundcap&0&ffd7d7d7&solid&50|", "5&ffffffff&solid_roundcap&0&ffd7d7d7&solid&50|"], levelStyleMapping: [14, 0, 15, 1, 16, 2, 17, 3, 18, 4, 19, 5, 20, 5] }, { key: ["20003", "6"], browserStyle: ["1&fff0dcc0&solid&&&&85|", "1&fff0dcc0&solid_roundcap&2&ffe9b253&solid&85|", "2&fff8d291&solid_roundcap&2&ffe9b253&solid&85|", "2&fff8d291&solid_roundcap&2&ffe9b253&solid&85|0&12&ff7f4b24&fffefefd&85", "3&fff8d291&solid_roundcap&2&ffe9b253&solid&85|0&13&ff7f4b24&fffefefd&85", "3&fff8d291&solid_roundcap&2&ffe9b253&solid&85|0&13&ff7f4b24&fffefefd&85", "5&fff8d291&solid_roundcap&2&ffdfb265&solid&85|0&14&ff7f4b24&fffefefd&85", "5&fff8d291&solid_roundcap&2&ffdfb265&solid&85|0&14&ff7f4b24&fffefefd&85", "10&fff8d291&solid_roundcap&2&ffdfb265&solid&85|0&14&ff7f4b24&fffefefd&85", "10&fff8d291&solid_roundcap&2&ffdfb265&solid&85|0&15&ff7f4b24&fffefefd&85", "12&fff8d291&solid_roundcap&2&ffdfb265&solid&85|0&15&ff7f4b24&fffefefd&85", "12&fff8d291&solid_roundcap&2&ffdfb265&solid&85|0&20&ff7f4b24&fffefefd&85"], levelStyleMapping: [7, 0, 8, 0, 9, 1, 10, 2, 11, 3, 12, 4, 13, 5, 14, 6, 15, 7, 16, 8, 17, 9, 18, 10, 19, 11, 20, 11] }, { key: ["20004", "1"], browserStyle: ["1&fffff0bb&solid&&&&69|", "1&fff7d78c&solid&&&&69|", "2&fffff0bb&solid_roundcap&2&fff7d78c&solid&69|", "3&fffff0bb&solid_roundcap&2&fff7d78c&solid&69|", "3&fffff0bb&solid_roundcap&2&fff7d78c&solid&69|", "5&fffff0bb&solid_roundcap&2&fff7d78c&solid&69|0&14&ff827a70&ffffffff&69", "5&fffff0bb&solid_roundcap&2&fff7d78c&solid&69|0&14&ff827a70&ffffffff&69", "8&fffff0bb&solid_roundcap&2&fff7d78c&solid&69|0&14&ff827a70&ffffffff&69", "8&fffff0bb&solid_roundcap&2&fff7d78c&solid&69|0&15&ff827a70&ffffffff&69", "12&fffff0bb&solid_roundcap&2&fff7d78c&solid&69|0&15&ff827a70&ffffffff&69", "22&fffff0bb&solid_roundcap&2&fff7d78c&solid&69|0&18&ff827a70&ffffffff&69", "36&fffff0bb&solid_roundcap&2&fff7d78c&solid&69|0&18&ff827a70&ffffffff&69"], levelStyleMapping: [9, 0, 10, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7, 17, 8, 18, 9, 19, 10, 20, 11] }, { key: ["20004", "2"], browserStyle: ["1&fffff0bb&solid&&&&68|", "1&fffff0bb&solid&&&&68|", "2&fffff0bb&solid_roundcap&2&fff7d78c&solid&68|", "3&fffff0bb&solid_roundcap&2&fff7d78c&solid&68|", "3&fffff0bb&solid_roundcap&2&fff7d78c&solid&68|", "5&fffff0bb&solid_roundcap&2&fff7d78c&solid&68|", "5&fffff0bb&solid_roundcap&2&fff7d78c&solid&68|", "8&fffff0bb&solid_roundcap&2&fff7d78c&solid&68|0&13&ff827a70&ffffffff&68", "12&fffff0bb&solid_roundcap&2&fff7d78c&solid&68|0&13&ff827a70&ffffffff&68", "22&fffff0bb&solid_roundcap&2&fff7d78c&solid&68|0&13&ff827a70&ffffffff&68", "36&fffff0bb&solid_roundcap&2&fff7d78c&solid&68|0&13&ff827a70&ffffffff&68"], levelStyleMapping: [9, 0, 10, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 6, 17, 7, 18, 8, 19, 9, 20, 10] }, { key: ["20004", "3"], browserStyle: ["1&fffff0bb&solid&&&&30|", "1&fff7d78c&solid&&&&30|", "2&fffff0bb&solid_roundcap&2&fff7d78c&solid&30|", "3&fffff0bb&solid_roundcap&2&fff7d78c&solid&30|", "3&fffff0bb&solid_roundcap&2&fff7d78c&solid&30|0&14&ff827a70&ffffffff&30", "4&fffff0bb&solid_roundcap&2&fff7d78c&solid&30|0&14&ff827a70&ffffffff&30", "5&fffff0bb&solid_roundcap&2&fff7d78c&solid&30|0&14&ff827a70&ffffffff&30", "8&fffff0bb&solid_roundcap&2&fff7d78c&solid&30|0&15&ff827a70&ffffffff&30", "12&fffff0bb&solid_roundcap&2&fff7d78c&solid&30|0&15&ff827a70&ffffffff&30", "22&fffff0bb&solid_roundcap&2&fff7d78c&solid&30|0&18&ff827a70&ffffffff&30", "36&fffff0bb&solid_roundcap&2&fff7d78c&solid&30|0&18&ff827a70&ffffffff&30"], levelStyleMapping: [9, 0, 10, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 6, 17, 7, 18, 8, 19, 9, 20, 10] }, { key: ["20004", "5"], browserStyle: ["1&fff0dc9b&solid&&&&69|", "1&fff2c841&solid&&&&69|", "2&fff6e3a3&solid_roundcap&2&fff2c841&solid&69|", "3&fff6e3a3&solid_roundcap&2&fff2c841&solid&69|", "3&fff6e3a3&solid_roundcap&2&fff2c841&solid&69|", "4&fff6e3a3&solid_roundcap&2&fff2c841&solid&69|0&14&ff876d18&fffefefd&69", "5&fff6e3a3&solid_roundcap&2&fff2c841&solid&69|0&14&ff876d18&fffefefd&69", "8&fff6e3a3&solid_roundcap&2&fff2c841&solid&69|0&15&ff876d18&fffefefd&69", "8&fff6e3a3&solid_roundcap&2&fff2c841&solid&69|0&15&ff876d18&fffefefd&69", "10&fff6e3a3&solid_roundcap&2&fff2c841&solid&69|0&18&ff876d18&fffefefd&69"], levelStyleMapping: [9, 0, 10, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 6, 17, 7, 18, 8, 19, 9, 20, 9] }, { key: ["20007", "1"], browserStyle: ["2&ffffffff&solid_roundcap&1&ffd7d7d7&solid&65|", "3&ffffffff&solid_roundcap&2&ffd7d7d7&solid&65|0&12&ff6d7073&ffffffff&65", "3&ffffffff&solid_roundcap&2&ffd7d7d7&solid&65|0&13&ff6d7073&ffffffff&65", "5&ffffffff&solid_roundcap&2&ffd7d7d7&solid&65|0&13&ff6d7073&ffffffff&65", "8&ffffffff&solid_roundcap&2&ffd7d7d7&solid&65|0&15&ff6d7073&ffffffff&65", "12&ffffffff&solid_roundcap&2&ffd7d7d7&solid&65|0&15&ff6d7073&ffffffff&65", "22&ffffffff&solid_roundcap&2&ffd7d7d7&solid&65|0&18&ff6d7073&ffffffff&65", "36&ffffffff&solid_roundcap&2&ffd7d7d7&solid&65|0&18&ff6d7073&ffffffff&65"], levelStyleMapping: [11, 0, 12, 0, 13, 1, 14, 1, 15, 2, 16, 3, 17, 4, 18, 5, 19, 6, 20, 7] }, { key: ["20007", "2"], browserStyle: ["2&ffffffff&solid_roundcap&1&ffd7d7d7&solid&64|", "2&ffffffff&solid_roundcap&2&ffd7d7d7&solid&64|", "3&ffffffff&solid_roundcap&2&ffd7d7d7&solid&64|", "3&ffffffff&solid_roundcap&2&ffd7d7d7&solid&64|", "5&ffffffff&solid_roundcap&2&ffd7d7d7&solid&64|", "8&ffffffff&solid_roundcap&2&ffd7d7d7&solid&64|", "12&ffffffff&solid_roundcap&2&ffd7d7d7&solid&64|0&13&ff6d7073&ffffffff&64", "22&ffffffff&solid_roundcap&2&ffd7d7d7&solid&64|0&13&ff6d7073&ffffffff&64", "36&ffffffff&solid_roundcap&2&ffd7d7d7&solid&64|0&13&ff6d7073&ffffffff&64"], levelStyleMapping: [11, 0, 12, 1, 13, 2, 14, 2, 15, 3, 16, 4, 17, 5, 18, 6, 19, 7, 20, 8] }, { key: ["20007", "3"], browserStyle: ["2&ffffffff&solid_roundcap&1&ffd7d7d7&solid&30|", "3&ffffffff&solid_roundcap&2&ffd7d7d7&solid&30|0&12&ff6d7073&ffffffff&30", "3&fff7f7f7&solid_roundcap&2&ffd7d7d7&solid&30|0&12&ff6d7073&ffffffff&30", "3&fff7f7f7&solid_roundcap&2&ffd7d7d7&solid&30|0&13&ff6d7073&ffffffff&30", "5&fff7f7f7&solid_roundcap&2&ffd7d7d7&solid&30|0&15&ff6d7073&ffffffff&30", "8&fff7f7f7&solid_roundcap&2&ffd7d7d7&solid&30|0&15&ff6d7073&ffffffff&30", "12&fff7f7f7&solid_roundcap&2&ffd7d7d7&solid&30|0&15&ff6d7073&ffffffff&30", "22&fff7f7f7&solid_roundcap&2&ffd7d7d7&solid&30|0&18&ff6d7073&ffffffff&30", "36&fff7f7f7&solid_roundcap&2&ffd7d7d7&solid&30|0&18&ff6d7073&ffffffff&30"], levelStyleMapping: [11, 0, 12, 0, 13, 1, 14, 2, 15, 3, 16, 4, 17, 5, 18, 6, 19, 7, 20, 8] }, { key: ["20008", "1"], browserStyle: ["2&ffffffff&solid_roundcap&2&ffd7d7d7&solid&49|", "3&ffffffff&solid_roundcap&2&ffd7d7d7&solid&49|", "4&ffffffff&solid_roundcap&2&ffd7d7d7&solid&49|0&12&ff6d7073&ffffffff&49", "7&ffffffff&solid_roundcap&2&ffd7d7d7&solid&49|0&13&ff6d7073&ffffffff&49", "11&ffffffff&solid_roundcap&2&ffd7d7d7&solid&49|0&15&ff6d7073&ffffffff&49", "20&ffffffff&solid_roundcap&2&ffd7d7d7&solid&49|0&16&ff6d7073&ffffffff&49", "36&ffffffff&solid_roundcap&2&ffd7d7d7&solid&49|0&16&ff6d7073&ffffffff&49"], levelStyleMapping: [14, 0, 15, 1, 16, 2, 17, 3, 18, 4, 19, 5, 20, 6] }, { key: ["20008", "2"], browserStyle: ["2&fff7f7f7&solid_roundcap&2&ffd7d7d7&dash(2,2)&30|", "3&fff7f7f7&solid_roundcap&2&ffd7d7d7&dash(2,2)&30|", "4&fff7f7f7&solid_roundcap&2&ffd7d7d7&dash(2,2)&30|0&12&ff6d7073&ffffffff&30", "7&fff7f7f7&solid_roundcap&2&ffd7d7d7&dash(2,2)&30|0&13&ff6d7073&ffffffff&30", "11&fff7f7f7&solid_roundcap&2&ffd7d7d7&dash(2,2)&30|0&15&ff6d7073&ffffffff&30", "20&fff7f7f7&solid_roundcap&2&ffd7d7d7&dash(2,2)&30|0&16&ff6d7073&ffffffff&30", "36&fff7f7f7&solid_roundcap&2&ffd7d7d7&dash(2,2)&30|0&16&ff6d7073&ffffffff&30"], levelStyleMapping: [14, 0, 15, 1, 16, 2, 17, 3, 18, 4, 19, 5, 20, 6] }, { key: ["20008", "4"], browserStyle: ["2&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|0&12&ff6d7073&ffffffff&48", "3&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|0&12&ff6d7073&ffffffff&48", "4&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|0&12&ff6d7073&ffffffff&48", "6&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|0&13&ff6d7073&ffffffff&48", "8&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|0&13&ff6d7073&ffffffff&48", "14&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|0&15&ff6d7073&ffffffff&48", "24&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|0&15&ff6d7073&ffffffff&48"], levelStyleMapping: [14, 0, 15, 1, 16, 2, 17, 3, 18, 4, 19, 5, 20, 6] }, { key: ["20008", "5"], browserStyle: ["1&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|", "2&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|", "3&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|0&12&ff6d7073&ffffffff&48", "6&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|0&13&ff6d7073&ffffffff&48", "8&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|0&13&ff6d7073&ffffffff&48", "14&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|0&15&ff6d7073&ffffffff&48", "24&ffffffff&solid_roundcap&2&ffd7d7d7&solid&48|0&15&ff6d7073&ffffffff&48"], levelStyleMapping: [14, 0, 15, 1, 16, 2, 17, 3, 18, 4, 19, 5, 20, 6] }, { key: ["20009", "1"], browserStyle: ["2&ffffffff&solid_roundcap&2&ffd7d7d7&solid&47|", "4&ffffffff&solid_roundcap&2&ffd7d7d7&solid&47|0&13&ff6d7073&ffffffff&47", "7&ffffffff&solid_roundcap&2&ffd7d7d7&solid&47|0&13&ff6d7073&ffffffff&47", "12&ffffffff&solid_roundcap&2&ffd7d7d7&solid&47|0&15&ff6d7073&ffffffff&47", "16&ffffffff&solid_roundcap&2&ffd7d7d7&solid&47|0&15&ff6d7073&ffffffff&47"], levelStyleMapping: [16, 0, 17, 1, 18, 2, 19, 3, 20, 4] }, { key: ["20009", "2"], browserStyle: ["2&fff7f7f7&solid_roundcap&2&ffd7d7d7&solid&30|", "4&fff7f7f7&solid_roundcap&2&ffd7d7d7&solid&30|0&13&ff6d7073&ffffffff&30", "7&fff7f7f7&solid_roundcap&2&ffd7d7d7&solid&30|0&13&ff6d7073&ffffffff&30", "12&fff7f7f7&solid_roundcap&2&ffd7d7d7&solid&30|0&15&ff6d7073&ffffffff&30", "16&fff7f7f7&solid_roundcap&2&ffd7d7d7&solid&30|0&15&ff6d7073&ffffffff&30"], levelStyleMapping: [16, 0, 17, 1, 18, 2, 19, 3, 20, 4] }, { key: ["20009", "3"], browserStyle: ["2&ffffffff&solid_roundcap&2&ffd7d7d7&solid&46|", "3&ffffffff&solid_roundcap&2&ffd7d7d7&solid&46|0&13&ff6d7073&ffffffff&46", "5&ffffffff&solid_roundcap&2&ffd7d7d7&solid&46|0&13&ff6d7073&ffffffff&46", "10&ffffffff&solid_roundcap&2&ffd7d7d7&solid&46|0&15&ff6d7073&ffffffff&46", "14&ffffffff&solid_roundcap&2&ffd7d7d7&solid&46|0&15&ff6d7073&ffffffff&46"], levelStyleMapping: [16, 0, 17, 1, 18, 2, 19, 3, 20, 4] }, { key: ["20009", "5"], browserStyle: ["2&ffffffff&solid_roundcap&1&ffd7d7d7&solid&45|", "3&ffffffff&solid_roundcap&2&ffd7d7d7&solid&45|0&13&ff6d7073&ffffffff&45", "5&ffffffff&solid_roundcap&2&ffd7d7d7&solid&45|0&13&ff6d7073&ffffffff&45", "8&ffffffff&solid_roundcap&2&ffd7d7d7&solid&45|0&15&ff6d7073&ffffffff&45", "12&ffffffff&solid_roundcap&2&ffd7d7d7&solid&45|0&15&ff6d7073&ffffffff&45"], levelStyleMapping: [16, 0, 17, 1, 18, 2, 19, 3, 20, 4] }, { key: ["20009", "6"], browserStyle: ["2&ffffffff&solid_roundcap&1&ffd7d7d7&solid&45|", "3&ffffffff&solid_roundcap&2&ffd7d7d7&solid&45|0&13&ff6d7073&ffffffff&45", "5&ffffffff&solid_roundcap&2&ffd7d7d7&solid&45|0&13&ff6d7073&ffffffff&45", "8&ffffffff&solid_roundcap&2&ffd7d7d7&solid&45|0&15&ff6d7073&ffffffff&45", "12&ffffffff&solid_roundcap&2&ffd7d7d7&solid&45|0&15&ff6d7073&ffffffff&45"], levelStyleMapping: [16, 0, 17, 1, 18, 2, 19, 3, 20, 4] }, { key: ["20009", "7"], browserStyle: ["2&ffffffff&solid_roundcap&1&ffd7d7d7&solid&45|", "3&ffffffff&solid_roundcap&2&ffd7d7d7&solid&45|0&13&ff6d7073&ffffffff&45", "3&ffffffff&solid_roundcap&2&ffd7d7d7&solid&45|0&13&ff6d7073&ffffffff&45", "5&ffffffff&solid_roundcap&2&ffd7d7d7&solid&45|0&15&ff6d7073&ffffffff&45", "8&ffffffff&solid_roundcap&2&ffd7d7d7&solid&45|0&15&ff6d7073&ffffffff&45"], levelStyleMapping: [16, 0, 17, 1, 18, 2, 19, 3, 20, 4] }, { key: ["20010", "1"], browserStyle: ["1&ffffffff&dash(12,12)&1&ffbec4cd&solid&18|", "2&ffffffff&dash(12,12)&1&ffbec4cd&solid&18|", "2&ffffffff&dash(12,12)&1&ffbec4cd&solid&18|0&11&ffbec4cd&ffffffff&18"], levelStyleMapping: [8, 0, 9, 1, 10, 1, 11, 1, 12, 2, 13, 2, 14, 2, 15, 2, 16, 2, 17, 2, 18, 2, 19, 2, 20, 2] }, { key: ["20010", "2"], browserStyle: ["1&ffffffff&dash(12,12)&1&ffe2bac1&solid&19|", "2&ffffffff&dash(12,12)&1&ffe2bac1&solid&19|", "2&ffffffff&dash(12,12)&1&ffe2bac1&solid&19|", "2&ffffffff&dash(12,12)&1&ffe2bac1&solid&19|0&11&ffe2bac1&ffffffff&19"], levelStyleMapping: [8, 0, 9, 1, 10, 1, 11, 1, 12, 2, 13, 2, 14, 2, 15, 2, 16, 3, 17, 3, 18, 3, 19, 3, 20, 3] }, { key: ["20010", "3"], browserStyle: ["1&fff7f5f1&dash(12,12)&1&ffa6abae&solid&18|0&11&ff6f777a&ffffffff&18", "2&fff7f5f1&dash(12,12)&1&ffa6abae&solid&18|0&11&ff6f777a&ffffffff&18"], levelStyleMapping: [7, 0, 8, 0, 9, 1, 10, 1, 11, 1, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["20011", "1"], browserStyle: ["1&ff85a7e1&dash(2,2)&-1&ff85a7e1&solid&50|", "1&ff85a7e1&dash(2,2)&-1&ff85a7e1&solid&50|0&11&ff85a7e1&ffffffff&50"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["20012", "1"], browserStyle: ["6&fff8f8f7&solid&2&ffd7d7d7&solid&97|", "8&fff8f8f7&solid&2&ffd7d7d7&solid&97|"], levelStyleMapping: [17, 0, 18, 1, 19, 1, 20, 1] }, { key: ["20012", "2"], browserStyle: ["4&ffffffff&dash(3,3)&2&ffd7d7d7&solid&98|", "6&ffffffff&dash(3,3)&2&ffd7d7d7&solid&98|"], levelStyleMapping: [17, 0, 18, 1, 19, 1, 20, 1] }, { key: ["20012", "3"], browserStyle: ["4&ffffffff&solid&2&ffd7d7d7&solid&98|", "6&ffffffff&solid&2&ffd7d7d7&solid&98|"], levelStyleMapping: [17, 0, 18, 1, 19, 1, 20, 1] }, { key: ["20013", "1"], browserStyle: ["6&ffededed&solid&2&ffc7c7c7&solid&35|", "8&ffededed&solid&2&ffc7c7c7&solid&35|"], levelStyleMapping: [17, 0, 18, 1, 19, 1, 20, 1] }, { key: ["20013", "2"], browserStyle: ["4&ffededed&dash(4,4)&2&ffc7c7c7&solid&34|", "6&ffededed&dash(4,4)&2&ffc7c7c7&solid&34|"], levelStyleMapping: [17, 0, 18, 1, 19, 1, 20, 1] }, { key: ["20013", "3"], browserStyle: ["4&ffededed&dash(4,4)&2&ffc7c7c7&solid&34|", "6&ffededed&dash(4,4)&2&ffc7c7c7&solid&34|"], levelStyleMapping: [17, 0, 18, 1, 19, 1, 20, 1] }, { key: ["20014", "1"], browserStyle: ["1&ffb2cefe&solid&&&&20|", "2&ffb2cefe&solid&&&&20|", "3&ffb2cefe&solid&&&&20|", "3&ffb2cefe&solid&&&&20|0&13&ff2e68c1&ffffffff&20", "3&ffb2cefe&solid&&&&20|0&15&ff2e68c1&ffffffff&20", "3&ffb2cefe&solid&&&&20|0&16&ff2e68c1&ffffffff&20", "3&ffb2cefe&solid&&&&20|0&17&ff2e68c1&ffffffff&20"], levelStyleMapping: [3, 0, 4, 0, 5, 1, 6, 1, 7, 1, 8, 2, 9, 3, 10, 3, 11, 3, 12, 3, 13, 3, 14, 3, 15, 3, 16, 4, 17, 5, 18, 6, 19, 6, 20, 6] }, { key: ["20014", "2"], browserStyle: ["|", "|0&13&ff2e68c1&ffffffff&50", "|0&15&ff2e68c1&ffffffff&50", "|0&16&ff2e68c1&ffffffff&50", "|0&17&ff2e68c1&ffffffff&50"], levelStyleMapping: [3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 1, 10, 1, 11, 1, 12, 1, 13, 1, 14, 1, 15, 1, 16, 2, 17, 3, 18, 4, 19, 4, 20, 4] }, { key: ["20015", "1"], browserStyle: ["2&ffbebebe&dash(2,2)&&&&10001|", "2&ffbebebe&dash(2,2)&&&&10001|0&11&ffbebebe&ffffffff&10001"], levelStyleMapping: [14, 0, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["20015", "3"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10003|", "2&ffe47878&solid&2&ffffffff&solid&10003|0&11&ffe47878&ffffffff&10003", "4&ffe47878&solid&4&ffffffff&solid&10003|0&11&ffe47878&ffffffff&10003", "8&ffe47878&solid&8&ffffffff&solid&10003|0&11&ffe47878&ffffffff&10003"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "4"], browserStyle: ["1&ff5591ce&solid&1&ffffffff&solid&10004|", "2&ff5591ce&solid&2&ffffffff&solid&10004|0&11&ff5591ce&ffffffff&10004", "4&ff5591ce&solid&4&ffffffff&solid&10004|0&11&ff5591ce&ffffffff&10004", "8&ff5591ce&solid&8&ffffffff&solid&10004|0&11&ff5591ce&ffffffff&10004"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "5"], browserStyle: ["1&ff17beb0&solid&1&ffffffff&solid&10005|", "2&ff17beb0&solid&2&ffffffff&solid&10005|0&11&ff17beb0&ffffffff&10005", "4&ff17beb0&solid&4&ffffffff&solid&10005|0&11&ff17beb0&ffffffff&10005", "8&ff17beb0&solid&8&ffffffff&solid&10005|0&11&ff17beb0&ffffffff&10005"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "6"], browserStyle: ["1&ffcf70b3&solid&1&ffffffff&solid&10006|", "2&ffcf70b3&solid&2&ffffffff&solid&10006|0&11&ffcf70b3&ffffffff&10006", "4&ffcf70b3&solid&4&ffffffff&solid&10006|0&11&ffcf70b3&ffffffff&10006", "8&ffcf70b3&solid&8&ffffffff&solid&10006|0&11&ffcf70b3&ffffffff&10006"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "7"], browserStyle: ["1&ffe2a116&solid&1&ffffffff&solid&10007|", "2&ffe2a116&solid&2&ffffffff&solid&10007|0&11&ffe2a116&ffffffff&10007", "4&ffe2a116&solid&4&ffffffff&solid&10007|0&11&ffe2a116&ffffffff&10007", "8&ffe2a116&solid&8&ffffffff&solid&10007|0&11&ffe2a116&ffffffff&10007"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "8"], browserStyle: ["1&ff47b852&solid&1&ffffffff&solid&10008|", "2&ff47b852&solid&2&ffffffff&solid&10008|0&11&ff47b852&ffffffff&10008", "4&ff47b852&solid&4&ffffffff&solid&10008|0&11&ff47b852&ffffffff&10008", "8&ff47b852&solid&8&ffffffff&solid&10008|0&11&ff47b852&ffffffff&10008"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "9"], browserStyle: ["1&ff88ad2e&solid&1&ffffffff&solid&10009|", "2&ff88ad2e&solid&2&ffffffff&solid&10009|0&11&ff88ad2e&ffffffff&10009", "4&ff88ad2e&solid&4&ffffffff&solid&10009|0&11&ff88ad2e&ffffffff&10009", "8&ff88ad2e&solid&8&ffffffff&solid&10009|0&11&ff88ad2e&ffffffff&10009"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "10"], browserStyle: ["1&ff3baeca&solid&1&ffffffff&solid&10010|", "2&ff3baeca&solid&2&ffffffff&solid&10010|0&11&ff3baeca&ffffffff&10010", "4&ff3baeca&solid&4&ffffffff&solid&10010|0&11&ff3baeca&ffffffff&10010", "8&ff3baeca&solid&8&ffffffff&solid&10010|0&11&ff3baeca&ffffffff&10010"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "11"], browserStyle: ["1&ffbf7e16&solid&1&ffffffff&solid&10011|", "2&ffbf7e16&solid&2&ffffffff&solid&10011|0&11&ffbf7e16&ffffffff&10011", "4&ffbf7e16&solid&4&ffffffff&solid&10011|0&11&ffbf7e16&ffffffff&10011", "8&ffbf7e16&solid&8&ffffffff&solid&10011|0&11&ffbf7e16&ffffffff&10011"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "12"], browserStyle: ["1&ffb98080&solid&1&ffffffff&solid&10012|", "2&ffb98080&solid&2&ffffffff&solid&10012|0&11&ffb98080&ffffffff&10012", "4&ffb98080&solid&4&ffffffff&solid&10012|0&11&ffb98080&ffffffff&10012", "8&ffb98080&solid&8&ffffffff&solid&10012|0&11&ffb98080&ffffffff&10012"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "13"], browserStyle: ["1&ffc17da3&solid&1&ffffffff&solid&10013|", "2&ffc17da3&solid&2&ffffffff&solid&10013|0&11&ffc17da3&ffffffff&10013", "4&ffc17da3&solid&4&ffffffff&solid&10013|0&11&ffc17da3&ffffffff&10013", "8&ffc17da3&solid&8&ffffffff&solid&10013|0&11&ffc17da3&ffffffff&10013"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "14"], browserStyle: ["1&ffb199bb&solid&1&ffffffff&solid&10014|", "2&ffb199bb&solid&2&ffffffff&solid&10014|0&11&ffb199bb&ffffffff&10014", "4&ffb199bb&solid&4&ffffffff&solid&10014|0&11&ffb199bb&ffffffff&10014", "8&ffb199bb&solid&8&ffffffff&solid&10014|0&11&ffb199bb&ffffffff&10014"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "15"], browserStyle: ["1&ffb186a4&solid&1&ffffffff&solid&10015|", "2&ffb186a4&solid&2&ffffffff&solid&10015|0&11&ffb186a4&ffffffff&10015", "4&ffb186a4&solid&4&ffffffff&solid&10015|0&11&ffb186a4&ffffffff&10015", "8&ffb186a4&solid&8&ffffffff&solid&10015|0&11&ffb186a4&ffffffff&10015"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "16"], browserStyle: ["1&ffde5982&solid&1&ffffffff&solid&10016|", "2&ffde5982&solid&2&ffffffff&solid&10016|0&11&ffde5982&ffffffff&10016", "4&ffde5982&solid&4&ffffffff&solid&10016|0&11&ffde5982&ffffffff&10016", "8&ffde5982&solid&8&ffffffff&solid&10016|0&11&ffde5982&ffffffff&10016"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "17"], browserStyle: ["1&ffdb8240&solid&1&ffffffff&solid&10017|", "2&ffdb8240&solid&2&ffffffff&solid&10017|0&11&ffdb8240&ffffffff&10017", "4&ffdb8240&solid&4&ffffffff&solid&10017|0&11&ffdb8240&ffffffff&10017", "8&ffdb8240&solid&8&ffffffff&solid&10017|0&11&ffdb8240&ffffffff&10017"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "18"], browserStyle: ["1&ff17beb0&solid&1&ffffffff&solid&10018|", "2&ff17beb0&solid&2&ffffffff&solid&10018|0&11&ff17beb0&ffffffff&10018", "4&ff17beb0&solid&4&ffffffff&solid&10018|0&11&ff17beb0&ffffffff&10018", "8&ff17beb0&solid&8&ffffffff&solid&10018|0&11&ff17beb0&ffffffff&10018"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "19"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10019|", "2&ffe47878&solid&2&ffffffff&solid&10019|0&11&ffe47878&ffffffff&10019", "4&ffe47878&solid&4&ffffffff&solid&10019|0&11&ffe47878&ffffffff&10019", "8&ffe47878&solid&8&ffffffff&solid&10019|0&11&ffe47878&ffffffff&10019"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "20"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10020|", "2&ffe47878&solid&2&ffffffff&solid&10020|0&11&ffe47878&ffffffff&10020", "4&ffe47878&solid&4&ffffffff&solid&10020|0&11&ffe47878&ffffffff&10020", "8&ffe47878&solid&8&ffffffff&solid&10020|0&11&ffe47878&ffffffff&10020"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "21"], browserStyle: ["1&ff88ad2e&solid&1&ffffffff&solid&10021|", "2&ff88ad2e&solid&2&ffffffff&solid&10021|0&11&ff88ad2e&ffffffff&10021", "4&ff88ad2e&solid&4&ffffffff&solid&10021|0&11&ff88ad2e&ffffffff&10021", "8&ff88ad2e&solid&8&ffffffff&solid&10021|0&11&ff88ad2e&ffffffff&10021"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "22"], browserStyle: ["1&ffe2a116&solid&1&ffffffff&solid&10022|", "2&ffe2a116&solid&2&ffffffff&solid&10022|0&11&ffe2a116&ffffffff&10022", "4&ffe2a116&solid&4&ffffffff&solid&10022|0&11&ffe2a116&ffffffff&10022", "8&ffe2a116&solid&8&ffffffff&solid&10022|0&11&ffe2a116&ffffffff&10022"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "23"], browserStyle: ["1&ff8a70b9&solid&1&ffffffff&solid&10023|", "2&ff8a70b9&solid&2&ffffffff&solid&10023|0&11&ff8a70b9&ffffffff&10023", "4&ff8a70b9&solid&4&ffffffff&solid&10023|0&11&ff8a70b9&ffffffff&10023", "8&ff8a70b9&solid&8&ffffffff&solid&10023|0&11&ff8a70b9&ffffffff&10023"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "24"], browserStyle: ["1&ffa886c4&solid&1&ffffffff&solid&10024|", "2&ffa886c4&solid&2&ffffffff&solid&10024|0&11&ffa886c4&ffffffff&10024", "4&ffa886c4&solid&4&ffffffff&solid&10024|0&11&ffa886c4&ffffffff&10024", "8&ffa886c4&solid&8&ffffffff&solid&10024|0&11&ffa886c4&ffffffff&10024"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "25"], browserStyle: ["1&ffcf70b3&solid&1&ffffffff&solid&10025|", "2&ffcf70b3&solid&2&ffffffff&solid&10025|0&11&ffcf70b3&ffffffff&10025", "4&ffcf70b3&solid&4&ffffffff&solid&10025|0&11&ffcf70b3&ffffffff&10025", "8&ffcf70b3&solid&8&ffffffff&solid&10025|0&11&ffcf70b3&ffffffff&10025"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "26"], browserStyle: ["1&ffdb8240&solid&1&ffffffff&solid&10026|", "2&ffdb8240&solid&2&ffffffff&solid&10026|0&11&ffdb8240&ffffffff&10026", "4&ffdb8240&solid&4&ffffffff&solid&10026|0&11&ffdb8240&ffffffff&10026", "8&ffdb8240&solid&8&ffffffff&solid&10026|0&11&ffdb8240&ffffffff&10026"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "27"], browserStyle: ["1&ff5591ce&solid&1&ffffffff&solid&10027|", "2&ff5591ce&solid&2&ffffffff&solid&10027|0&11&ff5591ce&ffffffff&10027", "4&ff5591ce&solid&4&ffffffff&solid&10027|0&11&ff5591ce&ffffffff&10027", "8&ff5591ce&solid&8&ffffffff&solid&10027|0&11&ff5591ce&ffffffff&10027"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "28"], browserStyle: ["1&ff3baeca&solid&1&ffffffff&solid&10028|", "2&ff3baeca&solid&2&ffffffff&solid&10028|0&11&ff3baeca&ffffffff&10028", "4&ff3baeca&solid&4&ffffffff&solid&10028|0&11&ff3baeca&ffffffff&10028", "8&ff3baeca&solid&8&ffffffff&solid&10028|0&11&ff3baeca&ffffffff&10028"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "29"], browserStyle: ["1&ffb199bb&solid&1&ffffffff&solid&10029|", "2&ffb199bb&solid&2&ffffffff&solid&10029|0&11&ffb199bb&ffffffff&10029", "4&ffb199bb&solid&4&ffffffff&solid&10029|0&11&ffb199bb&ffffffff&10029", "8&ffb199bb&solid&8&ffffffff&solid&10029|0&11&ffb199bb&ffffffff&10029"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "31"], browserStyle: ["1&ffb98080&solid&1&ffffffff&solid&10031|", "2&ffb98080&solid&2&ffffffff&solid&10031|0&11&ffb98080&ffffffff&10031", "4&ffb98080&solid&4&ffffffff&solid&10031|0&11&ffb98080&ffffffff&10031", "8&ffb98080&solid&8&ffffffff&solid&10031|0&11&ffb98080&ffffffff&10031"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "32"], browserStyle: ["1&ff5a8e77&solid&1&ffffffff&solid&10032|", "2&ff5a8e77&solid&2&ffffffff&solid&10032|0&11&ff5a8e77&ffffffff&10032", "4&ff5a8e77&solid&4&ffffffff&solid&10032|0&11&ff5a8e77&ffffffff&10032", "8&ff5a8e77&solid&8&ffffffff&solid&10032|0&11&ff5a8e77&ffffffff&10032"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "33"], browserStyle: ["1&ffc17da3&solid&1&ffffffff&solid&10033|", "2&ffc17da3&solid&2&ffffffff&solid&10033|0&11&ffc17da3&ffffffff&10033", "4&ffc17da3&solid&4&ffffffff&solid&10033|0&11&ffc17da3&ffffffff&10033", "8&ffc17da3&solid&8&ffffffff&solid&10033|0&11&ffc17da3&ffffffff&10033"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "34"], browserStyle: ["1&ffeab707&solid&1&ffffffff&solid&10034|", "2&ffeab707&solid&2&ffffffff&solid&10034|0&11&ffeab707&ffffffff&10034", "4&ffeab707&solid&4&ffffffff&solid&10034|0&11&ffeab707&ffffffff&10034", "8&ffeab707&solid&8&ffffffff&solid&10034|0&11&ffeab707&ffffffff&10034"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "35"], browserStyle: ["1&ff5591ce&solid&1&ffffffff&solid&10035|", "2&ff5591ce&solid&2&ffffffff&solid&10035|0&11&ff5591ce&ffffffff&10035", "4&ff5591ce&solid&4&ffffffff&solid&10035|0&11&ff5591ce&ffffffff&10035", "8&ff5591ce&solid&8&ffffffff&solid&10035|0&11&ff5591ce&ffffffff&10035"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "36"], browserStyle: ["1&ffdb8240&solid&1&ffffffff&solid&10036|", "2&ffdb8240&solid&2&ffffffff&solid&10036|0&11&ffdb8240&ffffffff&10036", "4&ffdb8240&solid&4&ffffffff&solid&10036|0&11&ffdb8240&ffffffff&10036", "8&ffdb8240&solid&8&ffffffff&solid&10036|0&11&ffdb8240&ffffffff&10036"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "37"], browserStyle: ["1&ffdb8240&solid&1&ffffffff&solid&10037|", "2&ffdb8240&solid&2&ffffffff&solid&10037|0&11&ffdb8240&ffffffff&10037", "4&ffdb8240&solid&4&ffffffff&solid&10037|0&11&ffdb8240&ffffffff&10037", "8&ffdb8240&solid&8&ffffffff&solid&10037|0&11&ffdb8240&ffffffff&10037"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "38"], browserStyle: ["1&ff47b852&solid&1&ffffffff&solid&10038|", "2&ff47b852&solid&2&ffffffff&solid&10038|0&11&ff47b852&ffffffff&10038", "4&ff47b852&solid&4&ffffffff&solid&10038|0&11&ff47b852&ffffffff&10038", "8&ff47b852&solid&8&ffffffff&solid&10038|0&11&ff47b852&ffffffff&10038"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "39"], browserStyle: ["1&ffde5982&solid&1&ffffffff&solid&10039|", "2&ffde5982&solid&2&ffffffff&solid&10039|0&11&ffde5982&ffffffff&10039", "4&ffde5982&solid&4&ffffffff&solid&10039|0&11&ffde5982&ffffffff&10039", "8&ffde5982&solid&8&ffffffff&solid&10039|0&11&ffde5982&ffffffff&10039"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "40"], browserStyle: ["1&ff17beb0&solid&1&ffffffff&solid&10040|", "2&ff17beb0&solid&2&ffffffff&solid&10040|0&11&ff17beb0&ffffffff&10040", "4&ff17beb0&solid&4&ffffffff&solid&10040|0&11&ff17beb0&ffffffff&10040", "8&ff17beb0&solid&8&ffffffff&solid&10040|0&11&ff17beb0&ffffffff&10040"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "41"], browserStyle: ["1&ff3baeca&solid&1&ffffffff&solid&10041|", "2&ff3baeca&solid&2&ffffffff&solid&10041|0&11&ff3baeca&ffffffff&10041", "4&ff3baeca&solid&4&ffffffff&solid&10041|0&11&ff3baeca&ffffffff&10041", "8&ff3baeca&solid&8&ffffffff&solid&10041|0&11&ff3baeca&ffffffff&10041"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "42"], browserStyle: ["1&ff88ad2e&solid&1&ffffffff&solid&10042|", "2&ff88ad2e&solid&2&ffffffff&solid&10042|0&11&ff88ad2e&ffffffff&10042", "4&ff88ad2e&solid&4&ffffffff&solid&10042|0&11&ff88ad2e&ffffffff&10042", "8&ff88ad2e&solid&8&ffffffff&solid&10042|0&11&ff88ad2e&ffffffff&10042"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "44"], browserStyle: ["1&ff47b852&solid&1&ffffffff&solid&10044|", "2&ff47b852&solid&2&ffffffff&solid&10044|0&11&ff47b852&ffffffff&10044", "4&ff47b852&solid&4&ffffffff&solid&10044|0&11&ff47b852&ffffffff&10044", "8&ff47b852&solid&8&ffffffff&solid&10044|0&11&ff47b852&ffffffff&10044"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "45"], browserStyle: ["1&ffdb8240&solid&1&ffffffff&solid&10045|", "2&ffdb8240&solid&2&ffffffff&solid&10045|0&11&ffdb8240&ffffffff&10045", "4&ffdb8240&solid&4&ffffffff&solid&10045|0&11&ffdb8240&ffffffff&10045", "8&ffdb8240&solid&8&ffffffff&solid&10045|0&11&ffdb8240&ffffffff&10045"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "46"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10046|", "2&ffe47878&solid&2&ffffffff&solid&10046|0&11&ffe47878&ffffffff&10046", "4&ffe47878&solid&4&ffffffff&solid&10046|0&11&ffe47878&ffffffff&10046", "8&ffe47878&solid&8&ffffffff&solid&10046|0&11&ffe47878&ffffffff&10046"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "47"], browserStyle: ["1&ff8a70b9&solid&1&ffffffff&solid&10047|", "2&ff8a70b9&solid&2&ffffffff&solid&10047|0&11&ff8a70b9&ffffffff&10047", "4&ff8a70b9&solid&4&ffffffff&solid&10047|0&11&ff8a70b9&ffffffff&10047", "8&ff8a70b9&solid&8&ffffffff&solid&10047|0&11&ff8a70b9&ffffffff&10047"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "48"], browserStyle: ["1&ff5591ce&solid&1&ffffffff&solid&10048|", "2&ff5591ce&solid&2&ffffffff&solid&10048|0&11&ff5591ce&ffffffff&10048", "4&ff5591ce&solid&4&ffffffff&solid&10048|0&11&ff5591ce&ffffffff&10048", "8&ff5591ce&solid&8&ffffffff&solid&10048|0&11&ff5591ce&ffffffff&10048"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "50"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10050|", "2&ffe47878&solid&2&ffffffff&solid&10050|0&11&ffe47878&ffffffff&10050", "4&ffe47878&solid&4&ffffffff&solid&10050|0&11&ffe47878&ffffffff&10050", "8&ffe47878&solid&8&ffffffff&solid&10050|0&11&ffe47878&ffffffff&10050"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "51"], browserStyle: ["1&ff47b852&solid&1&ffffffff&solid&10051|", "2&ff47b852&solid&2&ffffffff&solid&10051|0&11&ff47b852&ffffffff&10051", "4&ff47b852&solid&4&ffffffff&solid&10051|0&11&ff47b852&ffffffff&10051", "8&ff47b852&solid&8&ffffffff&solid&10051|0&11&ff47b852&ffffffff&10051"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "52"], browserStyle: ["1&ff5591ce&solid&1&ffffffff&solid&10052|", "2&ff5591ce&solid&2&ffffffff&solid&10052|0&11&ff5591ce&ffffffff&10052", "4&ff5591ce&solid&4&ffffffff&solid&10052|0&11&ff5591ce&ffffffff&10052", "8&ff5591ce&solid&8&ffffffff&solid&10052|0&11&ff5591ce&ffffffff&10052"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "54"], browserStyle: ["1&ffcf70b3&solid&1&ffffffff&solid&10054|", "2&ffcf70b3&solid&2&ffffffff&solid&10054|0&11&ffcf70b3&ffffffff&10054", "4&ffcf70b3&solid&4&ffffffff&solid&10054|0&11&ffcf70b3&ffffffff&10054", "8&ffcf70b3&solid&8&ffffffff&solid&10054|0&11&ffcf70b3&ffffffff&10054"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "55"], browserStyle: ["1&ff5591ce&solid&1&ffffffff&solid&10055|", "2&ff5591ce&solid&2&ffffffff&solid&10055|0&11&ff5591ce&ffffffff&10055", "4&ff5591ce&solid&4&ffffffff&solid&10055|0&11&ff5591ce&ffffffff&10055", "8&ff5591ce&solid&8&ffffffff&solid&10055|0&11&ff5591ce&ffffffff&10055"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "56"], browserStyle: ["1&ffee82b3&solid&1&ffffffff&solid&10056|", "2&ffee82b3&solid&2&ffffffff&solid&10056|0&11&ffee82b3&ffffffff&10056", "4&ffee82b3&solid&4&ffffffff&solid&10056|0&11&ffee82b3&ffffffff&10056", "8&ffee82b3&solid&8&ffffffff&solid&10056|0&11&ffee82b3&ffffffff&10056"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "57"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10057|", "2&ffe47878&solid&2&ffffffff&solid&10057|0&11&ffe47878&ffffffff&10057", "4&ffe47878&solid&4&ffffffff&solid&10057|0&11&ffe47878&ffffffff&10057", "8&ffe47878&solid&8&ffffffff&solid&10057|0&11&ffe47878&ffffffff&10057"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "58"], browserStyle: ["1&ffe2a116&solid&1&ffffffff&solid&10058|", "2&ffe2a116&solid&2&ffffffff&solid&10058|0&11&ffe2a116&ffffffff&10058", "4&ffe2a116&solid&4&ffffffff&solid&10058|0&11&ffe2a116&ffffffff&10058", "8&ffe2a116&solid&8&ffffffff&solid&10058|0&11&ffe2a116&ffffffff&10058"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "59"], browserStyle: ["1&ff3baeca&solid&1&ffffffff&solid&10059|", "2&ff3baeca&solid&2&ffffffff&solid&10059|0&11&ff3baeca&ffffffff&10059", "4&ff3baeca&solid&4&ffffffff&solid&10059|0&11&ff3baeca&ffffffff&10059", "8&ff3baeca&solid&8&ffffffff&solid&10059|0&11&ff3baeca&ffffffff&10059"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "60"], browserStyle: ["1&ff5591ce&solid&1&ffffffff&solid&10060|", "2&ff5591ce&solid&2&ffffffff&solid&10060|0&11&ff5591ce&ffffffff&10060", "4&ff5591ce&solid&4&ffffffff&solid&10060|0&11&ff5591ce&ffffffff&10060", "8&ff5591ce&solid&8&ffffffff&solid&10060|0&11&ff5591ce&ffffffff&10060"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "62"], browserStyle: ["1&ff5591ce&solid&1&ffffffff&solid&10062|", "2&ff5591ce&solid&2&ffffffff&solid&10062|0&11&ff5591ce&ffffffff&10062", "4&ff5591ce&solid&4&ffffffff&solid&10062|0&11&ff5591ce&ffffffff&10062", "8&ff5591ce&solid&8&ffffffff&solid&10062|0&11&ff5591ce&ffffffff&10062"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "63"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10063|", "2&ffe47878&solid&2&ffffffff&solid&10063|0&11&ffe47878&ffffffff&10063", "4&ffe47878&solid&4&ffffffff&solid&10063|0&11&ffe47878&ffffffff&10063", "8&ffe47878&solid&8&ffffffff&solid&10063|0&11&ffe47878&ffffffff&10063"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "64"], browserStyle: ["1&ff47b852&solid&1&ffffffff&solid&10064|", "2&ff47b852&solid&2&ffffffff&solid&10064|0&11&ff47b852&ffffffff&10064", "4&ff47b852&solid&4&ffffffff&solid&10064|0&11&ff47b852&ffffffff&10064", "8&ff47b852&solid&8&ffffffff&solid&10064|0&11&ff47b852&ffffffff&10064"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "65"], browserStyle: ["1&ff47b852&solid&1&ffffffff&solid&10065|", "2&ff47b852&solid&2&ffffffff&solid&10065|0&11&ff47b852&ffffffff&10065", "4&ff47b852&solid&4&ffffffff&solid&10065|0&11&ff47b852&ffffffff&10065", "8&ff47b852&solid&8&ffffffff&solid&10065|0&11&ff47b852&ffffffff&10065"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "66"], browserStyle: ["1&ff47b852&solid&1&ffffffff&solid&10066|", "2&ff47b852&solid&2&ffffffff&solid&10066|0&11&ff47b852&ffffffff&10066", "4&ff47b852&solid&4&ffffffff&solid&10066|0&11&ff47b852&ffffffff&10066", "8&ff47b852&solid&8&ffffffff&solid&10066|0&11&ff47b852&ffffffff&10066"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "67"], browserStyle: ["1&ff47b852&solid&1&ffffffff&solid&10067|", "2&ff47b852&solid&2&ffffffff&solid&10067|0&11&ff47b852&ffffffff&10067", "4&ff47b852&solid&4&ffffffff&solid&10067|0&11&ff47b852&ffffffff&10067", "8&ff47b852&solid&8&ffffffff&solid&10067|0&11&ff47b852&ffffffff&10067"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "68"], browserStyle: ["1&ffde5982&solid&1&ffffffff&solid&10068|", "2&ffde5982&solid&2&ffffffff&solid&10068|0&11&ffde5982&ffffffff&10068", "4&ffde5982&solid&4&ffffffff&solid&10068|0&11&ffde5982&ffffffff&10068", "8&ffde5982&solid&8&ffffffff&solid&10068|0&11&ffde5982&ffffffff&10068"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "69"], browserStyle: ["1&ff47b852&solid&1&ffffffff&solid&10069|", "2&ff47b852&solid&2&ffffffff&solid&10069|0&11&ff47b852&ffffffff&10069", "4&ff47b852&solid&4&ffffffff&solid&10069|0&11&ff47b852&ffffffff&10069", "8&ff47b852&solid&8&ffffffff&solid&10069|0&11&ff47b852&ffffffff&10069"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "70"], browserStyle: ["1&ff5591ce&solid&1&ffffffff&solid&10070|", "2&ff5591ce&solid&2&ffffffff&solid&10070|0&11&ff5591ce&ffffffff&10070", "4&ff5591ce&solid&4&ffffffff&solid&10070|0&11&ff5591ce&ffffffff&10070", "8&ff5591ce&solid&8&ffffffff&solid&10070|0&11&ff5591ce&ffffffff&10070"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "71"], browserStyle: ["1&ffdb8240&solid&1&ffffffff&solid&10071|", "2&ffdb8240&solid&2&ffffffff&solid&10071|0&11&ffdb8240&ffffffff&10071", "4&ffdb8240&solid&4&ffffffff&solid&10071|0&11&ffdb8240&ffffffff&10071", "8&ffdb8240&solid&8&ffffffff&solid&10071|0&11&ffdb8240&ffffffff&10071"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "72"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10072|", "2&ffe47878&solid&2&ffffffff&solid&10072|0&11&ffe47878&ffffffff&10072", "4&ffe47878&solid&4&ffffffff&solid&10072|0&11&ffe47878&ffffffff&10072", "8&ffe47878&solid&8&ffffffff&solid&10072|0&11&ffe47878&ffffffff&10072"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "73"], browserStyle: ["1&ff47b852&solid&1&ffffffff&solid&10073|", "2&ff47b852&solid&2&ffffffff&solid&10073|0&11&ff47b852&ffffffff&10073", "4&ff47b852&solid&4&ffffffff&solid&10073|0&11&ff47b852&ffffffff&10073", "8&ff47b852&solid&8&ffffffff&solid&10073|0&11&ff47b852&ffffffff&10073"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "74"], browserStyle: ["1&ff3baeca&solid&1&ffffffff&solid&10074|", "2&ff3baeca&solid&2&ffffffff&solid&10074|0&11&ff3baeca&ffffffff&10074", "4&ff3baeca&solid&4&ffffffff&solid&10074|0&11&ff3baeca&ffffffff&10074", "8&ff3baeca&solid&8&ffffffff&solid&10074|0&11&ff3baeca&ffffffff&10074"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "75"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10075|", "2&ffe47878&solid&2&ffffffff&solid&10075|0&11&ffe47878&ffffffff&10075", "4&ffe47878&solid&4&ffffffff&solid&10075|0&11&ffe47878&ffffffff&10075", "8&ffe47878&solid&8&ffffffff&solid&10075|0&11&ffe47878&ffffffff&10075"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "76"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10076|", "2&ffe47878&solid&2&ffffffff&solid&10076|0&11&ffe47878&ffffffff&10076", "4&ffe47878&solid&4&ffffffff&solid&10076|0&11&ffe47878&ffffffff&10076", "8&ffe47878&solid&8&ffffffff&solid&10076|0&11&ffe47878&ffffffff&10076"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "77"], browserStyle: ["1&ff3baeca&solid&1&ffffffff&solid&10077|", "2&ff3baeca&solid&2&ffffffff&solid&10077|0&11&ff3baeca&ffffffff&10077", "4&ff3baeca&solid&4&ffffffff&solid&10077|0&11&ff3baeca&ffffffff&10077", "8&ff3baeca&solid&8&ffffffff&solid&10077|0&11&ff3baeca&ffffffff&10077"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "78"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10078|", "2&ffe47878&solid&2&ffffffff&solid&10078|0&11&ffe47878&ffffffff&10078", "4&ffe47878&solid&4&ffffffff&solid&10078|0&11&ffe47878&ffffffff&10078", "8&ffe47878&solid&8&ffffffff&solid&10078|0&11&ffe47878&ffffffff&10078"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "79"], browserStyle: ["1&ffe2a116&solid&1&ffffffff&solid&10079|", "2&ffe2a116&solid&2&ffffffff&solid&10079|0&11&ffe2a116&ffffffff&10079", "4&ffe2a116&solid&4&ffffffff&solid&10079|0&11&ffe2a116&ffffffff&10079", "8&ffe2a116&solid&8&ffffffff&solid&10079|0&11&ffe2a116&ffffffff&10079"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "80"], browserStyle: ["1&ffef1920&solid&1&ffffffff&solid&10080|", "2&ffef1920&solid&2&ffffffff&solid&10080|0&11&ffef1920&ffffffff&10080", "4&ffef1920&solid&4&ffffffff&solid&10080|0&11&ffef1920&ffffffff&10080", "8&ffef1920&solid&8&ffffffff&solid&10080|0&11&ffef1920&ffffffff&10080"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "81"], browserStyle: ["1&ffef6ca8&solid&1&ffffffff&solid&10081|", "2&ffef6ca8&solid&2&ffffffff&solid&10081|0&11&ffef6ca8&ffffffff&10081", "4&ffef6ca8&solid&4&ffffffff&solid&10081|0&11&ffef6ca8&ffffffff&10081", "8&ffef6ca8&solid&8&ffffffff&solid&10081|0&11&ffef6ca8&ffffffff&10081"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "82"], browserStyle: ["1&ff7d4a9d&solid&1&ffffffff&solid&10082|", "2&ff7d4a9d&solid&2&ffffffff&solid&10082|0&11&ff7d4a9d&ffffffff&10082", "4&ff7d4a9d&solid&4&ffffffff&solid&10082|0&11&ff7d4a9d&ffffffff&10082", "8&ff7d4a9d&solid&8&ffffffff&solid&10082|0&11&ff7d4a9d&ffffffff&10082"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "83"], browserStyle: ["1&ff00ac4a&solid&1&ffffffff&solid&10083|", "2&ff00ac4a&solid&2&ffffffff&solid&10083|0&11&ff00ac4a&ffffffff&10083", "4&ff00ac4a&solid&4&ffffffff&solid&10083|0&11&ff00ac4a&ffffffff&10083", "8&ff00ac4a&solid&8&ffffffff&solid&10083|0&11&ff00ac4a&ffffffff&10083"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "84"], browserStyle: ["1&ff007cc6&solid&1&ffffffff&solid&10084|", "2&ff007cc6&solid&2&ffffffff&solid&10084|0&11&ff007cc6&ffffffff&10084", "4&ff007cc6&solid&4&ffffffff&solid&10084|0&11&ff007cc6&ffffffff&10084", "8&ff007cc6&solid&8&ffffffff&solid&10084|0&11&ff007cc6&ffffffff&10084"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "86"], browserStyle: ["1&ff9c3311&solid&1&ffffffff&solid&10086|", "2&ff9c3311&solid&2&ffffffff&solid&10086|0&11&ff9c3311&ffffffff&10086", "4&ff9c3311&solid&4&ffffffff&solid&10086|0&11&ff9c3311&ffffffff&10086", "8&ff9c3311&solid&8&ffffffff&solid&10086|0&11&ff9c3311&ffffffff&10086"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "87"], browserStyle: ["1&ff058686&solid&1&ffffffff&solid&10087|", "2&ff058686&solid&2&ffffffff&solid&10087|0&11&ff058686&ffffffff&10087", "4&ff058686&solid&4&ffffffff&solid&10087|0&11&ff058686&ffffffff&10087", "8&ff058686&solid&8&ffffffff&solid&10087|0&11&ff058686&ffffffff&10087"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "89"], browserStyle: ["1&ff78bdee&solid&1&ffffffff&solid&10089|", "2&ff78bdee&solid&2&ffffffff&solid&10089|0&11&ff78bdee&ffffffff&10089", "4&ff78bdee&solid&4&ffffffff&solid&10089|0&11&ff78bdee&ffffffff&10089", "8&ff78bdee&solid&8&ffffffff&solid&10089|0&11&ff78bdee&ffffffff&10089"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "90"], browserStyle: ["1&ffb62455&solid&1&ffffffff&solid&10090|", "2&ffb62455&solid&2&ffffffff&solid&10090|0&11&ffb62455&ffffffff&10090", "4&ffb62455&solid&4&ffffffff&solid&10090|0&11&ffb62455&ffffffff&10090", "8&ffb62455&solid&8&ffffffff&solid&10090|0&11&ffb62455&ffffffff&10090"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "91"], browserStyle: ["1&ff246d55&solid&1&ffffffff&solid&10091|", "2&ff246d55&solid&2&ffffffff&solid&10091|0&11&ff246d55&ffffffff&10091", "4&ff246d55&solid&4&ffffffff&solid&10091|0&11&ff246d55&ffffffff&10091", "8&ff246d55&solid&8&ffffffff&solid&10091|0&11&ff246d55&ffffffff&10091"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "92"], browserStyle: ["1&ff6d2400&solid&1&ffffffff&solid&10092|", "2&ff6d2400&solid&2&ffffffff&solid&10092|0&11&ff6d2400&ffffffff&10092", "4&ff6d2400&solid&4&ffffffff&solid&10092|0&11&ff6d2400&ffffffff&10092", "8&ff6d2400&solid&8&ffffffff&solid&10092|0&11&ff6d2400&ffffffff&10092"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "93"], browserStyle: ["1&ffb692aa&solid&1&ffffffff&solid&10093|", "2&ffb692aa&solid&2&ffffffff&solid&10093|0&11&ffb692aa&ffffffff&10093", "4&ffb692aa&solid&4&ffffffff&solid&10093|0&11&ffb692aa&ffffffff&10093", "8&ffb692aa&solid&8&ffffffff&solid&10093|0&11&ffb692aa&ffffffff&10093"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "94"], browserStyle: ["1&ff49b6aa&solid&1&ffffffff&solid&10094|", "2&ff49b6aa&solid&2&ffffffff&solid&10094|0&11&ff49b6aa&ffffffff&10094", "4&ff49b6aa&solid&4&ffffffff&solid&10094|0&11&ff49b6aa&ffffffff&10094", "8&ff49b6aa&solid&8&ffffffff&solid&10094|0&11&ff49b6aa&ffffffff&10094"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "95"], browserStyle: ["1&ffdbdb55&solid&1&ffffffff&solid&10095|", "2&ffdbdb55&solid&2&ffffffff&solid&10095|0&11&ffdbdb55&ffffffff&10095", "4&ffdbdb55&solid&4&ffffffff&solid&10095|0&11&ffdbdb55&ffffffff&10095", "8&ffdbdb55&solid&8&ffffffff&solid&10095|0&11&ffdbdb55&ffffffff&10095"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "96"], browserStyle: ["1&ffdb9255&solid&1&ffffffff&solid&10096|", "2&ffdb9255&solid&2&ffffffff&solid&10096|0&11&ffdb9255&ffffffff&10096", "4&ffdb9255&solid&4&ffffffff&solid&10096|0&11&ffdb9255&ffffffff&10096", "8&ffdb9255&solid&8&ffffffff&solid&10096|0&11&ffdb9255&ffffffff&10096"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "97"], browserStyle: ["1&ffa51f8e&solid&1&ffffffff&solid&10097|", "2&ffa51f8e&solid&2&ffffffff&solid&10097|0&11&ffa51f8e&ffffffff&10097", "4&ffa51f8e&solid&4&ffffffff&solid&10097|0&11&ffa51f8e&ffffffff&10097", "8&ffa51f8e&solid&8&ffffffff&solid&10097|0&11&ffa51f8e&ffffffff&10097"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "98"], browserStyle: ["1&ff6d2455&solid&1&ffffffff&solid&10098|", "2&ff6d2455&solid&2&ffffffff&solid&10098|0&11&ff6d2455&ffffffff&10098", "4&ff6d2455&solid&4&ffffffff&solid&10098|0&11&ff6d2455&ffffffff&10098", "8&ff6d2455&solid&8&ffffffff&solid&10098|0&11&ff6d2455&ffffffff&10098"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "99"], browserStyle: ["1&ff92b655&solid&1&ffffffff&solid&10099|", "2&ff92b655&solid&2&ffffffff&solid&10099|0&11&ff92b655&ffffffff&10099", "4&ff92b655&solid&4&ffffffff&solid&10099|0&11&ff92b655&ffffffff&10099", "8&ff92b655&solid&8&ffffffff&solid&10099|0&11&ff92b655&ffffffff&10099"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "101"], browserStyle: ["1&ffdb6daa&solid&1&ffffffff&solid&10101|", "2&ffdb6daa&solid&2&ffffffff&solid&10101|0&11&ffdb6daa&ffffffff&10101", "4&ffdb6daa&solid&4&ffffffff&solid&10101|0&11&ffdb6daa&ffffffff&10101", "8&ffdb6daa&solid&8&ffffffff&solid&10101|0&11&ffdb6daa&ffffffff&10101"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "102"], browserStyle: ["1&ff244955&solid&1&ffffffff&solid&10102|", "2&ff244955&solid&2&ffffffff&solid&10102|0&11&ff244955&ffffffff&10102", "4&ff244955&solid&4&ffffffff&solid&10102|0&11&ff244955&ffffffff&10102", "8&ff244955&solid&8&ffffffff&solid&10102|0&11&ff244955&ffffffff&10102"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "103"], browserStyle: ["1&ffbf506a&solid&1&ffffffff&solid&10103|", "2&ffbf506a&solid&2&ffffffff&solid&10103|0&11&ffbf506a&ffffffff&10103", "4&ffbf506a&solid&4&ffffffff&solid&10103|0&11&ffbf506a&ffffffff&10103", "8&ffbf506a&solid&8&ffffffff&solid&10103|0&11&ffbf506a&ffffffff&10103"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "104"], browserStyle: ["1&ff88ad2e&solid&1&ffffffff&solid&10000|", "2&ff88ad2e&solid&2&ffffffff&solid&10000|0&11&ff88ad2e&ffffffff&10000", "4&ff88ad2e&solid&4&ffffffff&solid&10000|0&11&ff88ad2e&ffffffff&10000", "8&ff88ad2e&solid&8&ffffffff&solid&10000|0&11&ff88ad2e&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "105"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10000|", "2&ffe47878&solid&2&ffffffff&solid&10000|0&11&ffe47878&ffffffff&10000", "4&ffe47878&solid&4&ffffffff&solid&10000|0&11&ffe47878&ffffffff&10000", "8&ffe47878&solid&8&ffffffff&solid&10000|0&11&ffe47878&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "106"], browserStyle: ["1&ffdb9255&solid&1&ffffffff&solid&10000|", "2&ffdb9255&solid&2&ffffffff&solid&10000|0&11&ffdb9255&ffffffff&10000", "4&ffdb9255&solid&4&ffffffff&solid&10000|0&11&ffdb9255&ffffffff&10000", "8&ffdb9255&solid&8&ffffffff&solid&10000|0&11&ffdb9255&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "107"], browserStyle: ["1&ff5591ce&solid&1&ffffffff&solid&10000|", "2&ff5591ce&solid&2&ffffffff&solid&10000|0&11&ff5591ce&ffffffff&10000", "4&ff5591ce&solid&4&ffffffff&solid&10000|0&11&ff5591ce&ffffffff&10000", "8&ff5591ce&solid&8&ffffffff&solid&10000|0&11&ff5591ce&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "108"], browserStyle: ["1&ff3baeca&solid&1&ffffffff&solid&10000|", "2&ff3baeca&solid&2&ffffffff&solid&10000|0&11&ff3baeca&ffffffff&10000", "4&ff3baeca&solid&4&ffffffff&solid&10000|0&11&ff3baeca&ffffffff&10000", "8&ff3baeca&solid&8&ffffffff&solid&10000|0&11&ff3baeca&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "109"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10000|", "2&ffe47878&solid&2&ffffffff&solid&10000|0&11&ffe47878&ffffffff&10000", "4&ffe47878&solid&4&ffffffff&solid&10000|0&11&ffe47878&ffffffff&10000", "8&ffe47878&solid&8&ffffffff&solid&10000|0&11&ffe47878&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "110"], browserStyle: ["1&ff5591ce&solid&1&ffffffff&solid&10000|", "2&ff5591ce&solid&2&ffffffff&solid&10000|0&11&ff5591ce&ffffffff&10000", "4&ff5591ce&solid&4&ffffffff&solid&10000|0&11&ff5591ce&ffffffff&10000", "8&ff5591ce&solid&8&ffffffff&solid&10000|0&11&ff5591ce&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "111"], browserStyle: ["1&ffcf70b3&solid&1&ffffffff&solid&10000|", "2&ffcf70b3&solid&2&ffffffff&solid&10000|0&11&ffcf70b3&ffffffff&10000", "4&ffcf70b3&solid&4&ffffffff&solid&10000|0&11&ffcf70b3&ffffffff&10000", "8&ffcf70b3&solid&8&ffffffff&solid&10000|0&11&ffcf70b3&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "112"], browserStyle: ["1&ff8a70b9&solid&1&ffffffff&solid&10000|", "2&ff8a70b9&solid&2&ffffffff&solid&10000|0&11&ff8a70b9&ffffffff&10000", "4&ff8a70b9&solid&4&ffffffff&solid&10000|0&11&ff8a70b9&ffffffff&10000", "8&ff8a70b9&solid&8&ffffffff&solid&10000|0&11&ff8a70b9&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "113"], browserStyle: ["1&ff47b852&solid&1&ffffffff&solid&10000|", "2&ff47b852&solid&2&ffffffff&solid&10000|0&11&ff47b852&ffffffff&10000", "4&ff47b852&solid&4&ffffffff&solid&10000|0&11&ff47b852&ffffffff&10000", "8&ff47b852&solid&8&ffffffff&solid&10000|0&11&ff47b852&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "114"], browserStyle: ["1&ff17beb0&solid&1&ffffffff&solid&10000|", "2&ff17beb0&solid&2&ffffffff&solid&10000|0&11&ff17beb0&ffffffff&10000", "4&ff17beb0&solid&4&ffffffff&solid&10000|0&11&ff17beb0&ffffffff&10000", "8&ff17beb0&solid&8&ffffffff&solid&10000|0&11&ff17beb0&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "115"], browserStyle: ["1&ffdb8240&solid&1&ffffffff&solid&10000|", "2&ffdb8240&solid&2&ffffffff&solid&10000|0&11&ffdb8240&ffffffff&10000", "4&ffdb8240&solid&4&ffffffff&solid&10000|0&11&ffdb8240&ffffffff&10000", "8&ffdb8240&solid&8&ffffffff&solid&10000|0&11&ffdb8240&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "116"], browserStyle: ["1&ff17beb0&solid&1&ffffffff&solid&10000|", "2&ff17beb0&solid&2&ffffffff&solid&10000|0&11&ff17beb0&ffffffff&10000", "4&ff17beb0&solid&4&ffffffff&solid&10000|0&11&ff17beb0&ffffffff&10000", "8&ff17beb0&solid&8&ffffffff&solid&10000|0&11&ff17beb0&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "117"], browserStyle: ["1&ffe47878&solid&1&ffffffff&solid&10000|", "2&ffe47878&solid&2&ffffffff&solid&10000|0&11&ffe47878&ffffffff&10000", "4&ffe47878&solid&4&ffffffff&solid&10000|0&11&ffe47878&ffffffff&10000", "8&ffe47878&solid&8&ffffffff&solid&10000|0&11&ffe47878&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "118"], browserStyle: ["1&ff88ad2e&solid&1&ffffffff&solid&10000|", "2&ff88ad2e&solid&2&ffffffff&solid&10000|0&11&ff88ad2e&ffffffff&10000", "4&ff88ad2e&solid&4&ffffffff&solid&10000|0&11&ff88ad2e&ffffffff&10000", "8&ff88ad2e&solid&8&ffffffff&solid&10000|0&11&ff88ad2e&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "119"], browserStyle: ["1&ffcf70b3&solid&1&ffffffff&solid&10000|", "2&ffcf70b3&solid&2&ffffffff&solid&10000|0&11&ffcf70b3&ffffffff&10000", "4&ffcf70b3&solid&4&ffffffff&solid&10000|0&11&ffcf70b3&ffffffff&10000", "8&ffcf70b3&solid&8&ffffffff&solid&10000|0&11&ffcf70b3&ffffffff&10000"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "120"], browserStyle: ["1&fff7943e&solid&1&ffffffff&solid&10120|", "2&fff7943e&solid&2&ffffffff&solid&10120|0&11&fff7943e&ffffffff&10120", "4&fff7943e&solid&4&ffffffff&solid&10120|0&11&fff7943e&ffffffff&10120", "8&fff7943e&solid&8&ffffffff&solid&10120|0&11&fff7943e&ffffffff&10120"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "121"], browserStyle: ["1&ff17beb0&solid&1&ffffffff&solid&10121|", "2&ff17beb0&solid&2&ffffffff&solid&10121|0&11&ff17beb0&ffffffff&10121", "4&ff17beb0&solid&4&ffffffff&solid&10121|0&11&ff17beb0&ffffffff&10121", "8&ff17beb0&solid&8&ffffffff&solid&10121|0&11&ff17beb0&ffffffff&10121"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "122"], browserStyle: ["1&ffb38f65&solid&1&ffffffff&solid&10104|", "2&ffb38f65&solid&2&ffffffff&solid&10104|0&11&ffb38f65&ffffffff&10104", "4&ffb38f65&solid&4&ffffffff&solid&10104|0&11&ffb38f65&ffffffff&10104", "8&ffb38f65&solid&8&ffffffff&solid&10104|0&11&ffb38f65&ffffffff&10104"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "123"], browserStyle: ["1&ffdb8240&solid&1&ffffffff&solid&10123|", "2&ffdb8240&solid&2&ffffffff&solid&10123|0&11&ffdb8240&ffffffff&10123", "4&ffdb8240&solid&4&ffffffff&solid&10123|0&11&ffdb8240&ffffffff&10123", "8&ffdb8240&solid&8&ffffffff&solid&10123|0&11&ffdb8240&ffffffff&10123"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "124"], browserStyle: ["1&ffb98080&solid&1&ffffffff&solid&10124|", "2&ffb98080&solid&2&ffffffff&solid&10124|0&11&ffb98080&ffffffff&10124", "4&ffb98080&solid&4&ffffffff&solid&10124|0&11&ffb98080&ffffffff&10124", "8&ffb98080&solid&8&ffffffff&solid&10124|0&11&ffb98080&ffffffff&10124"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "125"], browserStyle: ["1&ffb38f65&solid&1&ffffffff&solid&10125|", "2&ffb38f65&solid&2&ffffffff&solid&10125|0&11&ffb38f65&ffffffff&10125", "4&ffb38f65&solid&4&ffffffff&solid&10125|0&11&ffb38f65&ffffffff&10125", "8&ffb38f65&solid&8&ffffffff&solid&10125|0&11&ffb38f65&ffffffff&10125"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "126"], browserStyle: ["1&ffb98080&solid&1&ffffffff&solid&10126|", "2&ffb98080&solid&2&ffffffff&solid&10126|0&11&ffb98080&ffffffff&10126", "4&ffb98080&solid&4&ffffffff&solid&10126|0&11&ffb98080&ffffffff&10126", "8&ffb98080&solid&8&ffffffff&solid&10126|0&11&ffb98080&ffffffff&10126"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "127"], browserStyle: ["1&ff47b852&solid&1&ffffffff&solid&10127|", "2&ff47b852&solid&2&ffffffff&solid&10127|0&11&ff47b852&ffffffff&10127", "4&ff47b852&solid&4&ffffffff&solid&10127|0&11&ff47b852&ffffffff&10127", "8&ff47b852&solid&8&ffffffff&solid&10127|0&11&ff47b852&ffffffff&10127"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "128"], browserStyle: ["1&ff47b852&solid&1&ffffffff&solid&10128|", "2&ff47b852&solid&2&ffffffff&solid&10128|0&11&ff47b852&ffffffff&10128", "4&ff47b852&solid&4&ffffffff&solid&10128|0&11&ff47b852&ffffffff&10128", "8&ff47b852&solid&8&ffffffff&solid&10128|0&11&ff47b852&ffffffff&10128"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "129"], browserStyle: ["1&ff8b5666&solid&1&ffffffff&solid&10008|", "2&ff8b5666&solid&2&ffffffff&solid&10008|0&11&ff8b5666&ffffffff&10008", "4&ff8b5666&solid&4&ffffffff&solid&10008|0&11&ff8b5666&ffffffff&10008", "8&ff8b5666&solid&8&ffffffff&solid&10008|0&11&ff8b5666&ffffffff&10008"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "130"], browserStyle: ["1&ff5591ce&solid&1&ffffffff&solid&50|0&11&ff5591ce&ffffffff&50", "2&ff5591ce&solid&2&ffffffff&solid&50|0&11&ff5591ce&ffffffff&50", "4&ff5591ce&solid&4&ffffffff&solid&50|0&11&ff5591ce&ffffffff&50", "8&ff5591ce&solid&8&ffffffff&solid&50|0&11&ff5591ce&ffffffff&50"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "131"], browserStyle: ["1&ff7d8a9c&solid&1&ffffffff&solid&10131|0&11&ff7d8a9c&ffffffff&10131", "2&ff7d8a9c&solid&2&ffffffff&solid&10131|0&11&ff7d8a9c&ffffffff&10131", "4&ff7d8a9c&solid&4&ffffffff&solid&10131|0&11&ff7d8a9c&ffffffff&10131", "8&ff7d8a9c&solid&8&ffffffff&solid&10131|0&11&ff7d8a9c&ffffffff&10131"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "132"], browserStyle: ["1&ff4b8819&solid&1&ffffffff&solid&10132|0&11&ff4b8819&ffffffff&10132", "2&ff4b8819&solid&2&ffffffff&solid&10132|0&11&ff4b8819&ffffffff&10132", "4&ff4b8819&solid&4&ffffffff&solid&10132|0&11&ff4b8819&ffffffff&10132", "8&ff4b8819&solid&8&ffffffff&solid&10132|0&11&ff4b8819&ffffffff&10132"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "133"], browserStyle: ["1&ffdf5914&solid&1&ffffffff&solid&10133|0&11&ffdf5914&ffffffff&10133", "2&ffdf5914&solid&2&ffffffff&solid&10133|0&11&ffdf5914&ffffffff&10133", "4&ffdf5914&solid&4&ffffffff&solid&10133|0&11&ffdf5914&ffffffff&10133", "8&ffdf5914&solid&8&ffffffff&solid&10133|0&11&ffdf5914&ffffffff&10133"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "134"], browserStyle: ["1&ffc9999f&solid&1&ffffffff&solid&10001|0&11&ffc9999f&ffffffff&10001", "2&ffc9999f&solid&2&ffffffff&solid&10001|0&11&ffc9999f&ffffffff&10001", "4&ffc9999f&solid&4&ffffffff&solid&10001|0&11&ffc9999f&ffffffff&10001", "8&ffc9999f&solid&8&ffffffff&solid&10001|0&11&ffc9999f&ffffffff&10001"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "135"], browserStyle: ["1&ffe27f9e&solid&1&ffffffff&solid&10002|0&11&ffe27f9e&ffffffff&10002", "2&ffe27f9e&solid&2&ffffffff&solid&10002|0&11&ffe27f9e&ffffffff&10002", "4&ffe27f9e&solid&4&ffffffff&solid&10002|0&11&ffe27f9e&ffffffff&10002", "8&ffe27f9e&solid&8&ffffffff&solid&10002|0&11&ffe27f9e&ffffffff&10002"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "136"], browserStyle: ["1&ffe57f7f&solid&1&ffffffff&solid&10003|0&11&ffe57f7f&ffffffff&10003", "2&ffe57f7f&solid&2&ffffffff&solid&10003|0&11&ffe57f7f&ffffffff&10003", "4&ffe57f7f&solid&4&ffffffff&solid&10003|0&11&ffe57f7f&ffffffff&10003", "8&ffe57f7f&solid&8&ffffffff&solid&10003|0&11&ffe57f7f&ffffffff&10003"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "137"], browserStyle: ["1&fff17f94&solid&1&ffffffff&solid&10004|0&11&fff17f94&ffffffff&10004", "2&fff17f94&solid&2&ffffffff&solid&10004|0&11&fff17f94&ffffffff&10004", "4&fff17f94&solid&4&ffffffff&solid&10004|0&11&fff17f94&ffffffff&10004", "8&fff17f94&solid&8&ffffffff&solid&10004|0&11&fff17f94&ffffffff&10004"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "138"], browserStyle: ["1&fffd8280&solid&1&ffffffff&solid&10005|0&11&fffd8280&ffffffff&10005", "2&fffd8280&solid&2&ffffffff&solid&10005|0&11&fffd8280&ffffffff&10005", "4&fffd8280&solid&4&ffffffff&solid&10005|0&11&fffd8280&ffffffff&10005", "8&fffd8280&solid&8&ffffffff&solid&10005|0&11&fffd8280&ffffffff&10005"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "139"], browserStyle: ["1&fff69fa0&solid&1&ffffffff&solid&10006|0&11&fff69fa0&ffffffff&10006", "2&fff69fa0&solid&2&ffffffff&solid&10006|0&11&fff69fa0&ffffffff&10006", "4&fff69fa0&solid&4&ffffffff&solid&10006|0&11&fff69fa0&ffffffff&10006", "8&fff69fa0&solid&8&ffffffff&solid&10006|0&11&fff69fa0&ffffffff&10006"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "140"], browserStyle: ["1&ffdbaca6&solid&1&ffffffff&solid&10007|0&11&ffdbaca6&ffffffff&10007", "2&ffdbaca6&solid&2&ffffffff&solid&10007|0&11&ffdbaca6&ffffffff&10007", "4&ffdbaca6&solid&4&ffffffff&solid&10007|0&11&ffdbaca6&ffffffff&10007", "8&ffdbaca6&solid&8&ffffffff&solid&10007|0&11&ffdbaca6&ffffffff&10007"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "141"], browserStyle: ["1&ffe4a8a3&solid&1&ffffffff&solid&10008|0&11&ffe4a8a3&ffffffff&10008", "2&ffe4a8a3&solid&2&ffffffff&solid&10008|0&11&ffe4a8a3&ffffffff&10008", "4&ffe4a8a3&solid&4&ffffffff&solid&10008|0&11&ffe4a8a3&ffffffff&10008", "8&ffe4a8a3&solid&8&ffffffff&solid&10008|0&11&ffe4a8a3&ffffffff&10008"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "142"], browserStyle: ["1&ff888fb4&solid&1&ffffffff&solid&10009|0&11&ff888fb4&ffffffff&10009", "2&ff888fb4&solid&2&ffffffff&solid&10009|0&11&ff888fb4&ffffffff&10009", "4&ff888fb4&solid&4&ffffffff&solid&10009|0&11&ff888fb4&ffffffff&10009", "8&ff888fb4&solid&8&ffffffff&solid&10009|0&11&ff888fb4&ffffffff&10009"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "143"], browserStyle: ["1&ff6d8bcf&solid&1&ffffffff&solid&10010|0&11&ff6d8bcf&ffffffff&10010", "2&ff6d8bcf&solid&2&ffffffff&solid&10010|0&11&ff6d8bcf&ffffffff&10010", "4&ff6d8bcf&solid&4&ffffffff&solid&10010|0&11&ff6d8bcf&ffffffff&10010", "8&ff6d8bcf&solid&8&ffffffff&solid&10010|0&11&ff6d8bcf&ffffffff&10010"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "144"], browserStyle: ["1&ff7fb2d9&solid&1&ffffffff&solid&10011|0&11&ff7fb2d9&ffffffff&10011", "2&ff7fb2d9&solid&2&ffffffff&solid&10011|0&11&ff7fb2d9&ffffffff&10011", "4&ff7fb2d9&solid&4&ffffffff&solid&10011|0&11&ff7fb2d9&ffffffff&10011", "8&ff7fb2d9&solid&8&ffffffff&solid&10011|0&11&ff7fb2d9&ffffffff&10011"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "145"], browserStyle: ["1&ff98c0db&solid&1&ffffffff&solid&10012|0&11&ff98c0db&ffffffff&10012", "2&ff98c0db&solid&2&ffffffff&solid&10012|0&11&ff98c0db&ffffffff&10012", "4&ff98c0db&solid&4&ffffffff&solid&10012|0&11&ff98c0db&ffffffff&10012", "8&ff98c0db&solid&8&ffffffff&solid&10012|0&11&ff98c0db&ffffffff&10012"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "146"], browserStyle: ["1&ff80bdff&solid&1&ffffffff&solid&10013|0&11&ff80bdff&ffffffff&10013", "2&ff80bdff&solid&2&ffffffff&solid&10013|0&11&ff80bdff&ffffffff&10013", "4&ff80bdff&solid&4&ffffffff&solid&10013|0&11&ff80bdff&ffffffff&10013", "8&ff80bdff&solid&8&ffffffff&solid&10013|0&11&ff80bdff&ffffffff&10013"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "147"], browserStyle: ["1&ff80d0f0&solid&1&ffffffff&solid&10014|0&11&ff80d0f0&ffffffff&10014", "2&ff80d0f0&solid&2&ffffffff&solid&10014|0&11&ff80d0f0&ffffffff&10014", "4&ff80d0f0&solid&4&ffffffff&solid&10014|0&11&ff80d0f0&ffffffff&10014", "8&ff80d0f0&solid&8&ffffffff&solid&10014|0&11&ff80d0f0&ffffffff&10014"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "148"], browserStyle: ["1&ff80daf1&solid&1&ffffffff&solid&10015|0&11&ff80daf1&ffffffff&10015", "2&ff80daf1&solid&2&ffffffff&solid&10015|0&11&ff80daf1&ffffffff&10015", "4&ff80daf1&solid&4&ffffffff&solid&10015|0&11&ff80daf1&ffffffff&10015", "8&ff80daf1&solid&8&ffffffff&solid&10015|0&11&ff80daf1&ffffffff&10015"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "149"], browserStyle: ["1&ff80cce1&solid&1&ffffffff&solid&10016|0&11&ff80cce1&ffffffff&10016", "2&ff80cce1&solid&2&ffffffff&solid&10016|0&11&ff80cce1&ffffffff&10016", "4&ff80cce1&solid&4&ffffffff&solid&10016|0&11&ff80cce1&ffffffff&10016", "8&ff80cce1&solid&8&ffffffff&solid&10016|0&11&ff80cce1&ffffffff&10016"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "150"], browserStyle: ["1&ff7fc7d2&solid&1&ffffffff&solid&10017|0&11&ff7fc7d2&ffffffff&10017", "2&ff7fc7d2&solid&2&ffffffff&solid&10017|0&11&ff7fc7d2&ffffffff&10017", "4&ff7fc7d2&solid&4&ffffffff&solid&10017|0&11&ff7fc7d2&ffffffff&10017", "8&ff7fc7d2&solid&8&ffffffff&solid&10017|0&11&ff7fc7d2&ffffffff&10017"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "151"], browserStyle: ["1&ffa8d5de&solid&1&ffffffff&solid&10018|0&11&ffa8d5de&ffffffff&10018", "2&ffa8d5de&solid&2&ffffffff&solid&10018|0&11&ffa8d5de&ffffffff&10018", "4&ffa8d5de&solid&4&ffffffff&solid&10018|0&11&ffa8d5de&ffffffff&10018", "8&ffa8d5de&solid&8&ffffffff&solid&10018|0&11&ffa8d5de&ffffffff&10018"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "152"], browserStyle: ["1&ff96d7f7&solid&1&ffffffff&solid&10019|0&11&ff96d7f7&ffffffff&10019", "2&ff96d7f7&solid&2&ffffffff&solid&10019|0&11&ff96d7f7&ffffffff&10019", "4&ff96d7f7&solid&4&ffffffff&solid&10019|0&11&ff96d7f7&ffffffff&10019", "8&ff96d7f7&solid&8&ffffffff&solid&10019|0&11&ff96d7f7&ffffffff&10019"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "153"], browserStyle: ["1&ff97cbdf&solid&1&ffffffff&solid&10020|0&11&ff97cbdf&ffffffff&10020", "2&ff97cbdf&solid&2&ffffffff&solid&10020|0&11&ff97cbdf&ffffffff&10020", "4&ff97cbdf&solid&4&ffffffff&solid&10020|0&11&ff97cbdf&ffffffff&10020", "8&ff97cbdf&solid&8&ffffffff&solid&10020|0&11&ff97cbdf&ffffffff&10020"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "154"], browserStyle: ["1&ff9b89b2&solid&1&ffffffff&solid&10021|0&11&ff9b89b2&ffffffff&10021", "2&ff9b89b2&solid&2&ffffffff&solid&10021|0&11&ff9b89b2&ffffffff&10021", "4&ff9b89b2&solid&4&ffffffff&solid&10021|0&11&ff9b89b2&ffffffff&10021", "8&ff9b89b2&solid&8&ffffffff&solid&10021|0&11&ff9b89b2&ffffffff&10021"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "155"], browserStyle: ["1&ffac95c6&solid&1&ffffffff&solid&10022|0&11&ffac95c6&ffffffff&10022", "2&ffac95c6&solid&2&ffffffff&solid&10022|0&11&ffac95c6&ffffffff&10022", "4&ffac95c6&solid&4&ffffffff&solid&10022|0&11&ffac95c6&ffffffff&10022", "8&ffac95c6&solid&8&ffffffff&solid&10022|0&11&ffac95c6&ffffffff&10022"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "156"], browserStyle: ["1&ffbbb6d7&solid&1&ffffffff&solid&10023|0&11&ffbbb6d7&ffffffff&10023", "2&ffbbb6d7&solid&2&ffffffff&solid&10023|0&11&ffbbb6d7&ffffffff&10023", "4&ffbbb6d7&solid&4&ffffffff&solid&10023|0&11&ffbbb6d7&ffffffff&10023", "8&ffbbb6d7&solid&8&ffffffff&solid&10023|0&11&ffbbb6d7&ffffffff&10023"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "157"], browserStyle: ["1&ffbc9ec5&solid&1&ffffffff&solid&10024|0&11&ffbc9ec5&ffffffff&10024", "2&ffbc9ec5&solid&2&ffffffff&solid&10024|0&11&ffbc9ec5&ffffffff&10024", "4&ffbc9ec5&solid&4&ffffffff&solid&10024|0&11&ffbc9ec5&ffffffff&10024", "8&ffbc9ec5&solid&8&ffffffff&solid&10024|0&11&ffbc9ec5&ffffffff&10024"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "158"], browserStyle: ["1&ffcaa4cc&solid&1&ffffffff&solid&10025|0&11&ffcaa4cc&ffffffff&10025", "2&ffcaa4cc&solid&2&ffffffff&solid&10025|0&11&ffcaa4cc&ffffffff&10025", "4&ffcaa4cc&solid&4&ffffffff&solid&10025|0&11&ffcaa4cc&ffffffff&10025", "8&ffcaa4cc&solid&8&ffffffff&solid&10025|0&11&ffcaa4cc&ffffffff&10025"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "159"], browserStyle: ["1&ffd28ebf&solid&1&ffffffff&solid&10026|0&11&ffd28ebf&ffffffff&10026", "2&ffd28ebf&solid&2&ffffffff&solid&10026|0&11&ffd28ebf&ffffffff&10026", "4&ffd28ebf&solid&4&ffffffff&solid&10026|0&11&ffd28ebf&ffffffff&10026", "8&ffd28ebf&solid&8&ffffffff&solid&10026|0&11&ffd28ebf&ffffffff&10026"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "160"], browserStyle: ["1&ffdc9ffa&solid&1&ffffffff&solid&10027|0&11&ffdc9ffa&ffffffff&10027", "2&ffdc9ffa&solid&2&ffffffff&solid&10027|0&11&ffdc9ffa&ffffffff&10027", "4&ffdc9ffa&solid&4&ffffffff&solid&10027|0&11&ffdc9ffa&ffffffff&10027", "8&ffdc9ffa&solid&8&ffffffff&solid&10027|0&11&ffdc9ffa&ffffffff&10027"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "161"], browserStyle: ["1&ffd5b0cf&solid&1&ffffffff&solid&10028|0&11&ffd5b0cf&ffffffff&10028", "2&ffd5b0cf&solid&2&ffffffff&solid&10028|0&11&ffd5b0cf&ffffffff&10028", "4&ffd5b0cf&solid&4&ffffffff&solid&10028|0&11&ffd5b0cf&ffffffff&10028", "8&ffd5b0cf&solid&8&ffffffff&solid&10028|0&11&ffd5b0cf&ffffffff&10028"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "162"], browserStyle: ["1&ffc6afd4&solid&1&ffffffff&solid&10029|0&11&ffc6afd4&ffffffff&10029", "2&ffc6afd4&solid&2&ffffffff&solid&10029|0&11&ffc6afd4&ffffffff&10029", "4&ffc6afd4&solid&4&ffffffff&solid&10029|0&11&ffc6afd4&ffffffff&10029", "8&ffc6afd4&solid&8&ffffffff&solid&10029|0&11&ffc6afd4&ffffffff&10029"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "163"], browserStyle: ["1&ffc8c2d7&solid&1&ffffffff&solid&10030|0&11&ffc8c2d7&ffffffff&10030", "2&ffc8c2d7&solid&2&ffffffff&solid&10030|0&11&ffc8c2d7&ffffffff&10030", "4&ffc8c2d7&solid&4&ffffffff&solid&10030|0&11&ffc8c2d7&ffffffff&10030", "8&ffc8c2d7&solid&8&ffffffff&solid&10030|0&11&ffc8c2d7&ffffffff&10030"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "164"], browserStyle: ["1&ffb5b5b6&solid&1&ffffffff&solid&10031|0&11&ffb5b5b6&ffffffff&10031", "2&ffb5b5b6&solid&2&ffffffff&solid&10031|0&11&ffb5b5b6&ffffffff&10031", "4&ffb5b5b6&solid&4&ffffffff&solid&10031|0&11&ffb5b5b6&ffffffff&10031", "8&ffb5b5b6&solid&8&ffffffff&solid&10031|0&11&ffb5b5b6&ffffffff&10031"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "165"], browserStyle: ["1&ffc099b0&solid&1&ffffffff&solid&10032|0&11&ffc099b0&ffffffff&10032", "2&ffc099b0&solid&2&ffffffff&solid&10032|0&11&ffc099b0&ffffffff&10032", "4&ffc099b0&solid&4&ffffffff&solid&10032|0&11&ffc099b0&ffffffff&10032", "8&ffc099b0&solid&8&ffffffff&solid&10032|0&11&ffc099b0&ffffffff&10032"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "166"], browserStyle: ["1&fff783be&solid&1&ffffffff&solid&10033|0&11&fff783be&ffffffff&10033", "2&fff783be&solid&2&ffffffff&solid&10033|0&11&fff783be&ffffffff&10033", "4&fff783be&solid&4&ffffffff&solid&10033|0&11&fff783be&ffffffff&10033", "8&fff783be&solid&8&ffffffff&solid&10033|0&11&fff783be&ffffffff&10033"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "167"], browserStyle: ["1&ffe880ca&solid&1&ffffffff&solid&10034|0&11&ffe880ca&ffffffff&10034", "2&ffe880ca&solid&2&ffffffff&solid&10034|0&11&ffe880ca&ffffffff&10034", "4&ffe880ca&solid&4&ffffffff&solid&10034|0&11&ffe880ca&ffffffff&10034", "8&ffe880ca&solid&8&ffffffff&solid&10034|0&11&ffe880ca&ffffffff&10034"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "168"], browserStyle: ["1&fff3b3d5&solid&1&ffffffff&solid&10035|0&11&fff3b3d5&ffffffff&10035", "2&fff3b3d5&solid&2&ffffffff&solid&10035|0&11&fff3b3d5&ffffffff&10035", "4&fff3b3d5&solid&4&ffffffff&solid&10035|0&11&fff3b3d5&ffffffff&10035", "8&fff3b3d5&solid&8&ffffffff&solid&10035|0&11&fff3b3d5&ffffffff&10035"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "169"], browserStyle: ["1&fff4b0c1&solid&1&ffffffff&solid&10036|0&11&fff4b0c1&ffffffff&10036", "2&fff4b0c1&solid&2&ffffffff&solid&10036|0&11&fff4b0c1&ffffffff&10036", "4&fff4b0c1&solid&4&ffffffff&solid&10036|0&11&fff4b0c1&ffffffff&10036", "8&fff4b0c1&solid&8&ffffffff&solid&10036|0&11&fff4b0c1&ffffffff&10036"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "170"], browserStyle: ["1&ffc2b2b6&solid&1&ffffffff&solid&10037|0&11&ffc2b2b6&ffffffff&10037", "2&ffc2b2b6&solid&2&ffffffff&solid&10037|0&11&ffc2b2b6&ffffffff&10037", "4&ffc2b2b6&solid&4&ffffffff&solid&10037|0&11&ffc2b2b6&ffffffff&10037", "8&ffc2b2b6&solid&8&ffffffff&solid&10037|0&11&ffc2b2b6&ffffffff&10037"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "171"], browserStyle: ["1&ff93ab9c&solid&1&ffffffff&solid&10038|0&11&ff93ab9c&ffffffff&10038", "2&ff93ab9c&solid&2&ffffffff&solid&10038|0&11&ff93ab9c&ffffffff&10038", "4&ff93ab9c&solid&4&ffffffff&solid&10038|0&11&ff93ab9c&ffffffff&10038", "8&ff93ab9c&solid&8&ffffffff&solid&10038|0&11&ff93ab9c&ffffffff&10038"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "172"], browserStyle: ["1&ff80c09b&solid&1&ffffffff&solid&10039|0&11&ff80c09b&ffffffff&10039", "2&ff80c09b&solid&2&ffffffff&solid&10039|0&11&ff80c09b&ffffffff&10039", "4&ff80c09b&solid&4&ffffffff&solid&10039|0&11&ff80c09b&ffffffff&10039", "8&ff80c09b&solid&8&ffffffff&solid&10039|0&11&ff80c09b&ffffffff&10039"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "173"], browserStyle: ["1&ff7fd5a7&solid&1&ffffffff&solid&10040|0&11&ff7fd5a7&ffffffff&10040", "2&ff7fd5a7&solid&2&ffffffff&solid&10040|0&11&ff7fd5a7&ffffffff&10040", "4&ff7fd5a7&solid&4&ffffffff&solid&10040|0&11&ff7fd5a7&ffffffff&10040", "8&ff7fd5a7&solid&8&ffffffff&solid&10040|0&11&ff7fd5a7&ffffffff&10040"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "174"], browserStyle: ["1&ff7fbcb0&solid&1&ffffffff&solid&10041|0&11&ff7fbcb0&ffffffff&10041", "2&ff7fbcb0&solid&2&ffffffff&solid&10041|0&11&ff7fbcb0&ffffffff&10041", "4&ff7fbcb0&solid&4&ffffffff&solid&10041|0&11&ff7fbcb0&ffffffff&10041", "8&ff7fbcb0&solid&8&ffffffff&solid&10041|0&11&ff7fbcb0&ffffffff&10041"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "175"], browserStyle: ["1&ff7fc0c3&solid&1&ffffffff&solid&10042|0&11&ff7fc0c3&ffffffff&10042", "2&ff7fc0c3&solid&2&ffffffff&solid&10042|0&11&ff7fc0c3&ffffffff&10042", "4&ff7fc0c3&solid&4&ffffffff&solid&10042|0&11&ff7fc0c3&ffffffff&10042", "8&ff7fc0c3&solid&8&ffffffff&solid&10042|0&11&ff7fc0c3&ffffffff&10042"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "176"], browserStyle: ["1&ff7fd6c6&solid&1&ffffffff&solid&10043|0&11&ff7fd6c6&ffffffff&10043", "2&ff7fd6c6&solid&2&ffffffff&solid&10043|0&11&ff7fd6c6&ffffffff&10043", "4&ff7fd6c6&solid&4&ffffffff&solid&10043|0&11&ff7fd6c6&ffffffff&10043", "8&ff7fd6c6&solid&8&ffffffff&solid&10043|0&11&ff7fd6c6&ffffffff&10043"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "177"], browserStyle: ["1&ff98ca97&solid&1&ffffffff&solid&10044|0&11&ff98ca97&ffffffff&10044", "2&ff98ca97&solid&2&ffffffff&solid&10044|0&11&ff98ca97&ffffffff&10044", "4&ff98ca97&solid&4&ffffffff&solid&10044|0&11&ff98ca97&ffffffff&10044", "8&ff98ca97&solid&8&ffffffff&solid&10044|0&11&ff98ca97&ffffffff&10044"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "178"], browserStyle: ["1&ffa2d7bd&solid&1&ffffffff&solid&10045|0&11&ffa2d7bd&ffffffff&10045", "2&ffa2d7bd&solid&2&ffffffff&solid&10045|0&11&ffa2d7bd&ffffffff&10045", "4&ffa2d7bd&solid&4&ffffffff&solid&10045|0&11&ffa2d7bd&ffffffff&10045", "8&ffa2d7bd&solid&8&ffffffff&solid&10045|0&11&ffa2d7bd&ffffffff&10045"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "179"], browserStyle: ["1&ffa2d5c6&solid&1&ffffffff&solid&10046|0&11&ffa2d5c6&ffffffff&10046", "2&ffa2d5c6&solid&2&ffffffff&solid&10046|0&11&ffa2d5c6&ffffffff&10046", "4&ffa2d5c6&solid&4&ffffffff&solid&10046|0&11&ffa2d5c6&ffffffff&10046", "8&ffa2d5c6&solid&8&ffffffff&solid&10046|0&11&ffa2d5c6&ffffffff&10046"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "180"], browserStyle: ["1&ffc0c297&solid&1&ffffffff&solid&10047|0&11&ffc0c297&ffffffff&10047", "2&ffc0c297&solid&2&ffffffff&solid&10047|0&11&ffc0c297&ffffffff&10047", "4&ffc0c297&solid&4&ffffffff&solid&10047|0&11&ffc0c297&ffffffff&10047", "8&ffc0c297&solid&8&ffffffff&solid&10047|0&11&ffc0c297&ffffffff&10047"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "181"], browserStyle: ["1&ffaacd60&solid&1&ffffffff&solid&10048|", "2&ffaacd60&solid&2&ffffffff&solid&10048|0&11&ffaacd60&ffffffff&10048", "4&ffaacd60&solid&4&ffffffff&solid&10048|0&11&ffaacd60&ffffffff&10048", "8&ffaacd60&solid&8&ffffffff&solid&10048|0&11&ffaacd60&ffffffff&10048"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "182"], browserStyle: ["1&ffcddf4d&solid&1&ffffffff&solid&10049|", "2&ffcddf4d&solid&2&ffffffff&solid&10049|0&11&ffcddf4d&ffffffff&10049", "4&ffcddf4d&solid&4&ffffffff&solid&10049|0&11&ffcddf4d&ffffffff&10049", "8&ffcddf4d&solid&8&ffffffff&solid&10049|0&11&ffcddf4d&ffffffff&10049"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "183"], browserStyle: ["1&ffc2cecd&solid&1&ffffffff&solid&10050|", "2&ffc2cecd&solid&2&ffffffff&solid&10050|0&11&ffc2cecd&ffffffff&10050", "4&ffc2cecd&solid&4&ffffffff&solid&10050|0&11&ffc2cecd&ffffffff&10050", "8&ffc2cecd&solid&8&ffffffff&solid&10050|0&11&ffc2cecd&ffffffff&10050"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "184"], browserStyle: ["1&ffd9ac8f&solid&1&ffffffff&solid&10051|0&11&ffd9ac8f&ffffffff&10051", "2&ffd9ac8f&solid&2&ffffffff&solid&10051|0&11&ffd9ac8f&ffffffff&10051", "4&ffd9ac8f&solid&4&ffffffff&solid&10051|0&11&ffd9ac8f&ffffffff&10051", "8&ffd9ac8f&solid&8&ffffffff&solid&10051|0&11&ffd9ac8f&ffffffff&10051"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "185"], browserStyle: ["1&fff6bb96&solid&1&ffffffff&solid&10052|0&11&fff6bb96&ffffffff&10052", "2&fff6bb96&solid&2&ffffffff&solid&10052|0&11&fff6bb96&ffffffff&10052", "4&fff6bb96&solid&4&ffffffff&solid&10052|0&11&fff6bb96&ffffffff&10052", "8&fff6bb96&solid&8&ffffffff&solid&10052|0&11&fff6bb96&ffffffff&10052"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "186"], browserStyle: ["1&ffffc04c&solid&1&ffffffff&solid&10053|0&11&ffffc04c&ffffffff&10053", "2&ffffc04c&solid&2&ffffffff&solid&10053|0&11&ffffc04c&ffffffff&10053", "4&ffffc04c&solid&4&ffffffff&solid&10053|0&11&ffffc04c&ffffffff&10053", "8&ffffc04c&solid&8&ffffffff&solid&10053|0&11&ffffc04c&ffffffff&10053"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "187"], browserStyle: ["1&ffffc766&solid&1&ffffffff&solid&10054|0&11&ffffc766&ffffffff&10054", "2&ffffc766&solid&2&ffffffff&solid&10054|0&11&ffffc766&ffffffff&10054", "4&ffffc766&solid&4&ffffffff&solid&10054|0&11&ffffc766&ffffffff&10054", "8&ffffc766&solid&8&ffffffff&solid&10054|0&11&ffffc766&ffffffff&10054"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "188"], browserStyle: ["1&fffad91c&solid&1&ffffffff&solid&10055|0&11&fffad91c&ffffffff&10055", "2&fffad91c&solid&2&ffffffff&solid&10055|0&11&fffad91c&ffffffff&10055", "4&fffad91c&solid&4&ffffffff&solid&10055|0&11&fffad91c&ffffffff&10055", "8&fffad91c&solid&8&ffffffff&solid&10055|0&11&fffad91c&ffffffff&10055"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "189"], browserStyle: ["1&ffdac17d&solid&1&ffffffff&solid&10056|0&11&ffdac17d&ffffffff&10056", "2&ffdac17d&solid&2&ffffffff&solid&10056|0&11&ffdac17d&ffffffff&10056", "4&ffdac17d&solid&4&ffffffff&solid&10056|0&11&ffdac17d&ffffffff&10056", "8&ffdac17d&solid&8&ffffffff&solid&10056|0&11&ffdac17d&ffffffff&10056"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "190"], browserStyle: ["1&ffdcb44e&solid&1&ffffffff&solid&10057|0&11&ffdcb44e&ffffffff&10057", "2&ffdcb44e&solid&2&ffffffff&solid&10057|0&11&ffdcb44e&ffffffff&10057", "4&ffdcb44e&solid&4&ffffffff&solid&10057|0&11&ffdcb44e&ffffffff&10057", "8&ffdcb44e&solid&8&ffffffff&solid&10057|0&11&ffdcb44e&ffffffff&10057"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 2, 20, 3] }, { key: ["20015", "191"], browserStyle: ["2&ffbf7e16&solid&2&ffffffff&solid&50|", "2&ffbf7e16&solid&2&ffffffff&solid&50|0&11&ffbf7e16&ffffffff&50"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1] }, { key: ["20015", "192"], browserStyle: ["2&ffb199bb&solid&2&ffffffff&solid&50|", "2&ffb199bb&solid&2&ffffffff&solid&50|0&11&ffb199bb&ffffffff&50"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1] }, { key: ["20015", "193"], browserStyle: ["2&ffb199bb&solid&2&ffffffff&solid&50|", "2&ffb199bb&solid&2&ffffffff&solid&50|0&11&ffb199bb&ffffffff&50"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1] }, { key: ["20015", "194"], browserStyle: ["2&ff5591ce&solid&2&ffffffff&solid&50|", "2&ff5591ce&solid&2&ffffffff&solid&50|0&11&ff5591ce&ffffffff&50"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1] }, { key: ["20015", "195"], browserStyle: ["2&ffdb8240&solid&2&ffffffff&solid&50|", "2&ffdb8240&solid&2&ffffffff&solid&50|0&11&ffdb8240&ffffffff&50"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1] }, { key: ["20016", "1"], browserStyle: ["1&ffe04747&solid&&&&99|", "2&ffe04747&solid&&&&99|", "3&ffe04747&solid&&&&99|"], levelStyleMapping: [3, 0, 4, 0, 5, 1, 6, 2, 7, 2] }, { key: ["20016", "2"], browserStyle: ["1&ffe04747&dash(2,2)&&&&99|", "2&ffe04747&dash(2,2)&&&&99|", "3&ffe04747&dash(2,2)&&&&99|"], levelStyleMapping: [3, 0, 4, 0, 5, 1, 6, 2, 7, 2] }, { key: ["20016", "3"], browserStyle: ["1&ffeaaeb6&solid&-1&fffefefd&solid&98|", "1&ffeaaeb6&solid&-1&fffefefd&solid&98|", "1&ffeaaeb6&solid&-1&fffefefd&solid&98|"], levelStyleMapping: [3, 0, 4, 1, 5, 1, 6, 2, 7, 2] }, { key: ["20016", "4"], browserStyle: ["1&ffeaaeb6&dash(2,2)&&&&98|"], levelStyleMapping: [3, 0, 4, 0, 5, 0, 6, 0, 7, 0] }, { key: ["20016", "5"], browserStyle: ["1&ff989ea6&solid&&&&90|"], levelStyleMapping: [4, 0, 5, 0, 6, 0, 7, 0] }, { key: ["20016", "6"], browserStyle: ["1&ff989ea6&dash(6,3,2,3)&&&&90|"], levelStyleMapping: [4, 0, 5, 0, 6, 0] }, { key: ["20016", "7"], browserStyle: ["1&ff989ea6&dash(12,12)&&&&90|", "2&ff989ea6&dash(12,12)&&&&90|"], levelStyleMapping: [3, 0, 4, 0, 5, 0, 6, 1, 7, 1, 8, 1, 9, 1] }, { key: ["20016", "8"], browserStyle: ["1&ff989ea6&dash(2,2)&&&&98|"], levelStyleMapping: [3, 0, 4, 0, 5, 0, 6, 0, 7, 0] }, { key: ["20016", "9"], browserStyle: ["1&ffe04747&solid&&&&99|"], levelStyleMapping: [3, 0] }, { key: ["20016", "11"], browserStyle: ["1&ffb0b4b8&solid&-1&&solid&98|", "1&ff9ea0a2&solid&-1&&solid&98|"], levelStyleMapping: [4, 0, 5, 0, 6, 0, 7, 0, 8, 1, 9, 1] }, { key: ["20016", "12"], browserStyle: ["|"], levelStyleMapping: [4, 0] }, { key: ["20016", "13"], browserStyle: ["1&ffb2b2b2&dash(3,3)&-1&fffefefd&solid&50|0&12&ffb2b2b2&fffefefd&50"], levelStyleMapping: [3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0] }, { key: ["20016", "14"], browserStyle: ["2&ff7fc0c3&dash(2,2)&&&&97|"], levelStyleMapping: [3, 0, 4, 0, 5, 0, 6, 0, 7, 0] }, { key: ["20016", "16"], browserStyle: ["1&ff989ea6&solid&&&&90|"], levelStyleMapping: [4, 0, 5, 0, 6, 0, 7, 0] }, { key: ["20017", "1"], browserStyle: ["1&ffffffff&solid&&&&51|"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["20017", "2"], browserStyle: ["1&ffffffff&solid&&&&50|"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["20017", "3"], browserStyle: ["1&ffffffff&solid&&&&50|"], levelStyleMapping: [18, 0, 19, 0, 20, 0] }, { key: ["20017", "4"], browserStyle: ["5&ffffffff&dash(12,12)&&&&50|"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["20017", "8"], browserStyle: ["3&993180b7&solid&&&&99|"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["20018", "2"], browserStyle: ["1&ffe3e3e3&dash(2,2)&&&&1|", "2&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|", "3&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&13&ffa1a1a1&ffffffff&1", "3&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&15&ffa1a1a1&ffffffff&1", "4&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&16&ffa1a1a1&ffffffff&1", "11&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&17&ffa1a1a1&ffffffff&1", "12&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&19&ffa1a1a1&ffffffff&1", "14&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&19&ffa1a1a1&ffffffff&1"], levelStyleMapping: [6, 0, 7, 0, 8, 0, 9, 1, 10, 1, 11, 2, 12, 2, 13, 3, 14, 3, 15, 4, 16, 5, 17, 5, 18, 6, 19, 7, 20, 7] }, { key: ["20018", "3"], browserStyle: ["3&ffe3e3e3&dash(2,2)&&&&1|", "4&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|", "11&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|", "12&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|", "14&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|"], levelStyleMapping: [14, 0, 15, 1, 16, 2, 17, 2, 18, 3, 19, 4, 20, 4] }, { key: ["20018", "4"], browserStyle: ["1&ffe3e3e3&dash(2,2)&&&&1|", "2&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|", "3&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&13&ffa1a1a1&ffffffff&1", "3&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&12&ffa1a1a1&ffffffff&1", "3&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&15&ffa1a1a1&ffffffff&1", "6&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&15&ffa1a1a1&ffffffff&1", "10&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&16&ffa1a1a1&ffffffff&1", "10&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&18&ffa1a1a1&ffffffff&1", "12&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&18&ffa1a1a1&ffffffff&1"], levelStyleMapping: [6, 0, 7, 0, 8, 0, 9, 1, 10, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 5, 16, 6, 17, 7, 18, 7, 19, 8, 20, 8] }, { key: ["20018", "5"], browserStyle: ["1&ffe3e3e3&dash(2,2)&&&&1|", "2&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|", "2&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&13&ffa1a1a1&ffffffff&1", "3&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&13&ffa1a1a1&ffffffff&1", "3&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&15&ffa1a1a1&ffffffff&1", "5&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&15&ffa1a1a1&ffffffff&1", "10&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&16&ffa1a1a1&ffffffff&1", "12&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&17&ffa1a1a1&ffffffff&1"], levelStyleMapping: [7, 0, 8, 0, 9, 1, 10, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 5, 16, 6, 17, 6, 18, 7, 19, 7, 20, 7] }, { key: ["20018", "6"], browserStyle: ["5&ffe3e3e3&dash(2,2)&&&&1|", "5&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|", "10&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|", "12&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|"], levelStyleMapping: [14, 0, 15, 1, 16, 2, 17, 2, 18, 3, 19, 3, 20, 3] }, { key: ["20018", "7"], browserStyle: ["1&ffe3e3e3&dash(2,2)&&&&1|", "1&ffa8acb3&dash(2,2)&&&&1|", "2&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|", "3&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|", "4&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&15&ffa1a1a1&ffffffff&1", "5&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&15&ffa1a1a1&ffffffff&1", "5&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&16&ffa1a1a1&ffffffff&1", "8&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&16&ffa1a1a1&ffffffff&1", "8&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&17&ffa1a1a1&ffffffff&1", "10&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&17&ffa1a1a1&ffffffff&1"], levelStyleMapping: [9, 0, 10, 1, 11, 2, 12, 3, 13, 3, 14, 4, 15, 5, 16, 6, 17, 7, 18, 8, 19, 9, 20, 9] }, { key: ["20018", "8"], browserStyle: ["2&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|", "2&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&13&ffa1a1a1&ffffffff&1", "2&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&15&ffa1a1a1&ffffffff&1", "3&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&15&ffa1a1a1&ffffffff&1", "5&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&15&ffa1a1a1&ffffffff&1", "9&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&16&ffa1a1a1&ffffffff&1"], levelStyleMapping: [12, 0, 13, 1, 14, 2, 15, 3, 16, 4, 17, 5, 18, 5, 19, 5, 20, 5] }, { key: ["20018", "9"], browserStyle: ["1&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|", "3&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&13&ffa1a1a1&ffffffff&1", "4&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&13&ffa1a1a1&ffffffff&1", "5&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&13&ffa1a1a1&ffffffff&1", "6&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&13&ffa1a1a1&ffffffff&1"], levelStyleMapping: [14, 0, 15, 0, 16, 1, 17, 2, 18, 3, 19, 3, 20, 4] }, { key: ["20018", "10"], browserStyle: ["1&ffe3e3e3&dash(2,2)&&&&1|", "2&ffe3e3e3&dash(2,2)&&&&1|", "2&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&13&ffa1a1a1&ffffffff&1", "5&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&13&ffa1a1a1&ffffffff&1"], levelStyleMapping: [15, 0, 16, 1, 17, 2, 18, 3, 19, 3, 20, 3] }, { key: ["20018", "11"], browserStyle: ["1&ffe3e3e3&dash(2,2)&&&&1|", "2&ffe3e3e3&dash(2,2)&&&&1|", "3&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&13&ffa1a1a1&ffffffff&1", "5&ffe3e3e3&solid&1&ffa8acb3&dash(2,2)&1|0&13&ffa1a1a1&ffffffff&1"], levelStyleMapping: [15, 0, 16, 1, 17, 2, 18, 2, 19, 3, 20, 3] }, { key: ["20019", "1"], browserStyle: ["2&ffbebebe&dash(2,2)&&&&10001|0&11&ffbebebe&ffffffff&10001"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["20019", "2"], browserStyle: ["2&ff7b8082&dash(2,2)&-2&ffffffff&solid&10002|", "2&ff7b8082&dash(2,2)&-2&ffffffff&solid&10002|0&11&ff7b8082&ffffffff&10002", "2&ff7b8082&dash(2,2)&-2&ffffffff&solid&10002|0&11&ff7b8082&ffffffff&10002"], levelStyleMapping: [13, 0, 14, 0, 15, 1, 16, 2, 17, 2, 18, 2, 19, 2, 20, 2] }, { key: ["20020", "1"], browserStyle: ["3&ff6bb377&dash(2,2)&-3&&solid&93|0&12&ff827a70&ffffffff&93", "3&ff6bb377&dash(2,2)&-3&&solid&93|0&15&ff827a70&ffffffff&93", "3&ff6bb377&dash(2,2)&-3&&solid&93|0&15&ff827a70&ffffffff&93"], levelStyleMapping: [13, 0, 14, 0, 15, 1, 16, 2, 17, 2, 18, 2, 19, 2, 20, 2] }, { key: ["20020", "2"], browserStyle: ["3&ff628cb3&dash(2,2)&-3&&solid&93|0&12&ff827a70&ffffffff&93", "3&ff628cb3&dash(2,2)&-3&&solid&93|0&12&ff827a70&ffffffff&93", "3&ff628cb3&dash(2,2)&-3&&solid&93|0&15&ff827a70&ffffffff&93", "3&ff628cb3&dash(2,2)&-3&&solid&93|0&15&ff827a70&ffffffff&93"], levelStyleMapping: [13, 0, 14, 1, 15, 2, 16, 3, 17, 3, 18, 3, 19, 3, 20, 3] }, { key: ["20020", "3"], browserStyle: ["5&bf66bd08&dash(2,2)&-5&&solid&99|0&13&ff529b05&ffffffff&99", "5&bf66bd08&dash(2,2)&-5&&solid&99|0&13&ff529b05&ffffffff&99", "5&bf66bd08&dash(2,2)&-5&&solid&99|0&13&ff529b05&ffffffff&99"], levelStyleMapping: [12, 0, 13, 0, 14, 1, 15, 1, 16, 2, 17, 2, 18, 2, 19, 2, 20, 2] }, { key: ["20024", "1"], browserStyle: ["2&bf66bd08&dash(12,12)&&&&99|0&13&ff529b05&ffffffff&99", "2&bf66bd08&dash(12,12)&&&&99|0&13&ff529b05&ffffffff&99"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["20024", "2"], browserStyle: ["2&ffeee2b5&dash(12,12)&&&&95|0&13&ff757575&ffffffff&95", "2&fff1df9b&dash(12,12)&&&&95|0&13&ff757575&ffffffff&95", "2&fff1df9b&dash(12,12)&&&&95|0&13&ff757575&ffffffff&95"], levelStyleMapping: [10, 0, 11, 1, 12, 1, 13, 1, 14, 1, 15, 1, 16, 2, 17, 2, 18, 2, 19, 2, 20, 2] }, { key: ["20027", "2"], browserStyle: ["2&ffffffff&dash(2,2)&2&ffe3e3e3&solid&45|", "3&ffffffff&dash(2,2)&2&ffe3e3e3&solid&45|", "4&ffffffff&dash(2,2)&2&ffe3e3e3&solid&45|", "5&ffffffff&dash(2,2)&2&ffe3e3e3&solid&45|"], levelStyleMapping: [17, 0, 18, 1, 19, 2, 20, 3] }, { key: ["20028", "1"], browserStyle: ["2&ffc7c7c7&solid&11&&solid&50|0&12&ff827a70&&50"], levelStyleMapping: [17, 0, 18, 0, 19, 0] }, { key: ["30001", "1"], browserStyle: ["fff7f7f7&&&11", "fff4f4f4&&&11"], levelStyleMapping: [3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 1, 11, 1, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["30001", "2"], browserStyle: ["ffb2cefe&&&63"], levelStyleMapping: [3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30001", "3"], browserStyle: ["ffb4ebaf&&&61"], levelStyleMapping: [8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30001", "4"], browserStyle: ["fff7f7f7&&&66", "fff4f4f4&&&66"], levelStyleMapping: [3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["30001", "6"], browserStyle: ["ffb2cefe&&&10"], levelStyleMapping: [3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30001", "8"], browserStyle: ["ffb4ebaf&&&61"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30001", "9"], browserStyle: ["ffb4ebaf&&&61"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30001", "10"], browserStyle: ["ffb4ebaf&&&61"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30001", "12"], browserStyle: ["ffb4ebaf&&&50"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "1"], browserStyle: ["ffeeeeee&&&80"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "2"], browserStyle: ["ffffffff&&&67"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "3"], browserStyle: ["ffd2e8f5&&&20"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "4"], browserStyle: ["ffeeeeee&&&23"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "5"], browserStyle: ["ffb4ebaf&&&20"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "6"], browserStyle: ["ffcdeae9&&&23"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "7"], browserStyle: ["fff4e0d7&&&22"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "8"], browserStyle: ["fff8dada&&&23"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "9"], browserStyle: ["ffb4ebaf&&&20"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "10"], browserStyle: ["ffeec9ba&&&80"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "11"], browserStyle: ["ffddd3f1&&&23"], levelStyleMapping: [10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "12"], browserStyle: ["ffcccccc&&&50"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "15"], browserStyle: ["ffffffff&&&50"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "16"], browserStyle: ["ffffffff&&&50"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "17"], browserStyle: ["ffffffff&&&50"], levelStyleMapping: [17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "18"], browserStyle: ["ffffffff&&&50"], levelStyleMapping: [16, 0, 17, 0, 18, 0] }, { key: ["30002", "19"], browserStyle: ["ffb4ebaf&&&80", "ff79d5c0&&&80"], levelStyleMapping: [15, 0, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["30002", "20"], browserStyle: ["ffb4ebaf&&&80", "ff79d5c0&&&80"], levelStyleMapping: [15, 0, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["30002", "21"], browserStyle: ["ffb4ebaf&&&80", "ff79d5c0&&&80"], levelStyleMapping: [15, 0, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["30002", "22"], browserStyle: ["7feeeeee&&&60"], levelStyleMapping: [11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "23"], browserStyle: ["ffe6daf4&&&62"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "24"], browserStyle: ["fff4dcc1&&&62"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "25"], browserStyle: ["ffd1dcf5&&&62"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "26"], browserStyle: ["ffdae6ae&&&62"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "27"], browserStyle: ["ffe5e2af&&&62"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "28"], browserStyle: ["ffc6e4dc&&&62"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "29"], browserStyle: ["fff6d4d4&&&62"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "30"], browserStyle: ["ffebcded&&&62"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "31"], browserStyle: ["ffd2e8f5&&&24"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "32"], browserStyle: ["ffeeeeee&&&24"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "33"], browserStyle: ["ffb4ebaf&&&24"], levelStyleMapping: [14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "34"], browserStyle: ["ffd2e8f5&&&24"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "35"], browserStyle: ["fff4e0d7&&&24"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "36"], browserStyle: ["fff8dada&&&24"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "37"], browserStyle: ["ffb4ebaf&&&24"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30002", "38"], browserStyle: ["ffddd3f1&&&24"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "1"], browserStyle: ["72e8e3d9&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "2"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "3"], browserStyle: ["725591ce&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "4"], browserStyle: ["7236b6ab&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "5"], browserStyle: ["72cf70b3&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "6"], browserStyle: ["72e2a116&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "7"], browserStyle: ["7247b852&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "8"], browserStyle: ["7288ad2e&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "9"], browserStyle: ["723baeca&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "10"], browserStyle: ["72eab707&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "11"], browserStyle: ["72b98080&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "12"], browserStyle: ["72c17da3&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "13"], browserStyle: ["72a886c4&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "14"], browserStyle: ["72b186a4&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "15"], browserStyle: ["72de5982&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "16"], browserStyle: ["72db8240&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "17"], browserStyle: ["7236b6ab&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "18"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "19"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "20"], browserStyle: ["7288ad2e&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "21"], browserStyle: ["72e2a116&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "22"], browserStyle: ["728a70b9&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "23"], browserStyle: ["72a886c4&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "24"], browserStyle: ["72cf70b3&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "25"], browserStyle: ["72db8240&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "26"], browserStyle: ["725591ce&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "27"], browserStyle: ["723baeca&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "28"], browserStyle: ["72b199bb&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "29"], browserStyle: ["72b98080&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "30"], browserStyle: ["72c17da3&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "31"], browserStyle: ["72eab707&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "32"], browserStyle: ["725591ce&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "33"], browserStyle: ["72db8240&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "34"], browserStyle: ["72db8240&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "35"], browserStyle: ["7247b852&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "36"], browserStyle: ["72de5982&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "37"], browserStyle: ["7236b6ab&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "38"], browserStyle: ["723baeca&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "39"], browserStyle: ["7288ad2e&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "40"], browserStyle: ["7247b852&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "41"], browserStyle: ["72db8240&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "42"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "43"], browserStyle: ["728a70b9&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "44"], browserStyle: ["725591ce&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "45"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "46"], browserStyle: ["7247b852&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "47"], browserStyle: ["725591ce&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "48"], browserStyle: ["72cf70b3&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "49"], browserStyle: ["72cf70b3&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "50"], browserStyle: ["725591ce&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "51"], browserStyle: ["72b186a4&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "52"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "53"], browserStyle: ["72e2a116&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "54"], browserStyle: ["723baeca&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "55"], browserStyle: ["725591ce&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "57"], browserStyle: ["725591ce&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "58"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "59"], browserStyle: ["7247b852&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "60"], browserStyle: ["7247b852&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "61"], browserStyle: ["7247b852&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "62"], browserStyle: ["72e8e3d9&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "63"], browserStyle: ["72de5982&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "64"], browserStyle: ["7247b852&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "65"], browserStyle: ["725591ce&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "66"], browserStyle: ["72db8240&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "67"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "68"], browserStyle: ["723baeca&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "69"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "70"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "71"], browserStyle: ["723baeca&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "72"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "73"], browserStyle: ["72e2a116&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "74"], browserStyle: ["72ef1920&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "75"], browserStyle: ["72ef6ca8&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "76"], browserStyle: ["727d4a9d&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "77"], browserStyle: ["7200ac4a&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "78"], browserStyle: ["72007cc6&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "80"], browserStyle: ["729c3311&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "81"], browserStyle: ["72058686&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "82"], browserStyle: ["72f7943e&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "83"], browserStyle: ["7278bdee&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "84"], browserStyle: ["72b62455&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "85"], browserStyle: ["72246d55&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "86"], browserStyle: ["726d2400&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "87"], browserStyle: ["72b692aa&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "88"], browserStyle: ["7249b6aa&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "89"], browserStyle: ["72dbdb55&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "90"], browserStyle: ["72db9255&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "91"], browserStyle: ["72a51f8e&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "92"], browserStyle: ["726d2455&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "93"], browserStyle: ["7292b655&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "94"], browserStyle: ["72db6daa&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "95"], browserStyle: ["72244955&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "96"], browserStyle: ["723baeca&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "97"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "98"], browserStyle: ["725591ce&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "99"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "100"], browserStyle: ["72db9255&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "101"], browserStyle: ["728a70b9&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "102"], browserStyle: ["7288ad2e&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "103"], browserStyle: ["7247b852&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "104"], browserStyle: ["7236b6ab&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "105"], browserStyle: ["725591ce&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "106"], browserStyle: ["7247b852&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "107"], browserStyle: ["72bf506a&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "108"], browserStyle: ["725a8e77&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "109"], browserStyle: ["72db8240&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "110"], browserStyle: ["7236b6ab&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "111"], browserStyle: ["72e47878&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "112"], browserStyle: ["7247b852&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "113"], browserStyle: ["7288ad2e&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "114"], browserStyle: ["72cf70b3&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "115"], browserStyle: ["7236b6ab&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "116"], browserStyle: ["72b38f65&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "117"], browserStyle: ["72db8240&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "118"], browserStyle: ["72b98080&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "119"], browserStyle: ["72b38f65&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "120"], browserStyle: ["72b98080&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "121"], browserStyle: ["7247b852&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "122"], browserStyle: ["7247b852&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "123"], browserStyle: ["ff8b5666&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "125"], browserStyle: ["ff7d8a9c&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "126"], browserStyle: ["ff4b8819&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "127"], browserStyle: ["ffdf5914&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30003", "128"], browserStyle: ["72eab707&&&64"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["30004", "1"], browserStyle: ["ffcdeae9&&&80"], levelStyleMapping: [13, 0, 14, 0, 15, 0, 16, 0] }, { key: ["40001", "2800"], browserStyle: ["151&10&ff4a4a4a&00ffc921&&50", "151&12&ff4a4a4a&00ffc921&&50"], levelStyleMapping: [9, 0, 10, 0, 11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["40001", "110100"], browserStyle: ["146&7&ffffffff&0001b76b&&50", "146&7&ffffffff&0001b76b&&50"], levelStyleMapping: [9, 0, 10, 0, 11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["40001", "110101"], browserStyle: ["148&7&ffffffff&00f92e21&&50", "148&7&ffffffff&00f92e21&&50"], levelStyleMapping: [10, 0, 11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["40001", "110102"], browserStyle: ["149&7&ff4a4a4a&00ffc921&&50", "149&7&ff4a4a4a&00ffc921&&50"], levelStyleMapping: [11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["40001", "110103"], browserStyle: ["150&7&ff4a4a4a&00ffffff&&50"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["40001", "110104"], browserStyle: ["150&7&ff4a4a4a&00ffffff&&50"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["40001", "110105"], browserStyle: ["147&7&ffffffff&0001b76b&&50", "147&7&ffffffff&0001b76b&&50"], levelStyleMapping: [9, 0, 10, 0, 11, 0, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1] }, { key: ["50001", "1"], browserStyle: ["a5ffffff&1&b2dddedf&e6f0f0f0&b2a8a9aa&150&99"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["50001", "2"], browserStyle: ["a5ffffff&1&b2dddedf&e6f0f0f0&b2a8a9aa&150&99"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["50002", "1"], browserStyle: ["a5ffffff&1&b2dddedf&e6f0f0f0&b2a8a9aa&150&99"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["50002", "2"], browserStyle: ["a5ffffff&1&b2dddedf&e6f0f0f0&b2a8a9aa&150&99"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["50002", "3"], browserStyle: ["a5ffffff&1&b2dddedf&e6f0f0f0&b2a8a9aa&150&99"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["50002", "4"], browserStyle: ["a5ffffff&1&b2dddedf&e6f0f0f0&b2a8a9aa&150&99"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["50003", "1"], browserStyle: ["a5ffffff&1&b2dddedf&e6f0f0f0&b2a8a9aa&150&50"], levelStyleMapping: [15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }, { key: ["50004", "1"], browserStyle: ["a5ffffff&1&b2dddedf&e6f0f0f0&b2a8a9aa&150&50"], levelStyleMapping: [16, 0, 17, 0, 18, 0, 19, 0, 20, 0] }], test: 0 },
|
||
StyleParser = function() {
|
||
function g(f) { this.TY = f, this.CI = new AdaptorMap, this.Ve = null, this.RV = null, this.bN = null } return g.Wb = function(f) { return { style: JSON.stringify(f.styles), TY: f.TY } }, g.Gb = function(f) { var e = new g(f.TY); return e.jY(JSON.parse(f.style)), e }, g.mV = function(f) { var e, t = {}; for (e in f)
|
||
if (f.hasOwnProperty(e)) { var r = f[e],
|
||
i = void 0; switch (e[0]) {
|
||
case "1":
|
||
i = g.Xe; break;
|
||
case "2":
|
||
i = g.rn, r.type = "road"; break;
|
||
case "3":
|
||
i = g.cn; break;
|
||
case "4":
|
||
i = g.un; break;
|
||
case "5":
|
||
i = g.ln, r.type = "building" } if (i) { for (var n = (o = r.key)[0], o = o[1], a = (void 0 === t[n] && (t[n] = {}), (t[n][o] = r).browserStyle), l = 0, s = a.length; l < s; l += 1) { var d = a[l]; if (a[l] = i(d), void 0 === r.z) switch (e[0]) {
|
||
case "2":
|
||
r.z = (a[l] ? a[l][0] : r).z; break;
|
||
case "1":
|
||
case "3":
|
||
case "4":
|
||
case "5":
|
||
r.z = a[l].z; break;
|
||
default:
|
||
r.z = -1 } }
|
||
g.Sn(r) } else delete f[e] }
|
||
return t }, g.$V = function(f) { var e, t = {}; for (e in f)
|
||
if (f.hasOwnProperty(e)) { var r = f[e],
|
||
i = void 0; switch (e[0]) {
|
||
case "1":
|
||
i = g.Xe; break;
|
||
case "2":
|
||
i = g.rn, r.type = "road"; break;
|
||
case "3":
|
||
i = g.cn; break;
|
||
case "4":
|
||
i = g.un; break;
|
||
case "5":
|
||
i = g.ln, r.type = "building" } if (i) { for (var n = (o = e.split(":"))[0], o = o[1], a = (void 0 === t[n] && (t[n] = {}), (t[n][o] = r).browserStyle), l = 0, s = a.length; l < s; l += 1) { var d = a[l]; if (a[l] = i(d), void 0 === r.z) switch (e[0]) {
|
||
case "2":
|
||
r.z = (a[l] ? a[l][0] : r).z; break;
|
||
case "1":
|
||
case "3":
|
||
case "4":
|
||
case "5":
|
||
r.z = a[l].z; break;
|
||
default:
|
||
r.z = -1 } }
|
||
g.Sn(r) } else delete f[e] }
|
||
return t }, g.SZ = function(f) { for (var e = f.stylemaps, t = e.length, r = {}, i = 0; i < t; i++) { for (var o = e[i], n = o.key[0], a = o.key[1], l = {}, s = (void 0 === r[n] && (r[n] = {}), (r[n][a] = l).browserStyle = o.browserStyle, {}), d = o.levelStyleMapping.length, c = 0; c < d; c += 2) { var u = o.levelStyleMapping[c],
|
||
y = o.levelStyleMapping[c + 1];
|
||
s[u] = y }
|
||
l.levelStyleMapping = s; var b = void 0; switch (n[0]) {
|
||
case "1":
|
||
b = g.Xe; break;
|
||
case "2":
|
||
b = g.rn, l.type = "road"; break;
|
||
case "3":
|
||
b = g.cn; break;
|
||
case "4":
|
||
b = g.un; break;
|
||
case "5":
|
||
b = g.ln, l.type = "building" } for (var p = l.browserStyle, h = 0, S = p.length; h < S; h += 1) { var v = p[h]; if (p[h] = b(v), void 0 === l.z) switch (n[0]) {
|
||
case "2":
|
||
l.z = (p[h] ? p[h][0] : l).z; break;
|
||
case "1":
|
||
case "3":
|
||
case "4":
|
||
case "5":
|
||
l.z = p[h].z; break;
|
||
default:
|
||
l.z = -1 } }
|
||
g.Sn(l) } return r }, g.mergeLocalStyle = function(f) { return cloneDeep(localStyle) }, g.Je = function(f) { var e; return f && "0" !== f ? (8 === f.length && (f = f.slice(2) + f.slice(0, 2)), this.yQ && this.yQ[f] ? Color.create(this.yQ[f]) : (e = Color.create(f), this.yQ || (this.yQ = {}), this.yQ[f] || (this.yQ[f] = e.rgba.slice(0)), e)) : null }, g.Sn = function(f) { if (void 0 !== f.levelStyleMapping[3] && (f.levelStyleMapping[2] = f.levelStyleMapping[3]), void 0 !== f.levelStyleMapping[20] && (f.levelStyleMapping[21] = f.levelStyleMapping[20], f.levelStyleMapping[22] = f.levelStyleMapping[20], f.levelStyleMapping[23] = f.levelStyleMapping[20], f.levelStyleMapping[24] = f.levelStyleMapping[20], f.levelStyleMapping[25] = f.levelStyleMapping[20], f.levelStyleMapping[26] = f.levelStyleMapping[20], f.levelStyleMapping[27] = f.levelStyleMapping[20], f.levelStyleMapping[28] = f.levelStyleMapping[20], f.levelStyleMapping[29] = f.levelStyleMapping[20], f.levelStyleMapping[30] = f.levelStyleMapping[20]), "building" === f.type && f.levelStyleMapping && (delete f.levelStyleMapping[15], delete f.levelStyleMapping[16]), "road" === f.type && void 0 !== f.levelStyleMapping[20]) { var e = f.browserStyle,
|
||
t = f.levelStyleMapping[20],
|
||
r = e[t]; if (r)
|
||
for (var i = 1; i <= 10; i++) { var o = [];
|
||
o.push(exports.Ln({}, r[0])), o.push(exports.Ln({}, r[1])), o[0].roadWidth = o[0].roadWidth * Math.pow(2, i), o[0].borderWidth = o[0].borderWidth * Math.pow(2, i), f.browserStyle.push(o), f.levelStyleMapping[i + 20] = t + i } } }, g.prototype._Q = function() { return Boolean(this.styles) }, g.prototype.jY = function(f) { this.styles = f }, g.prototype.clearStyleCache = function() { this.EI = -1, this.CI.clear() }, g.prototype.setStyle = function(f) { this.Ve = f, this.clearStyleCache() }, g.prototype.EY = function(f) { this.RV = f }, g.prototype.MS = function(f) { if (this.RV) return this.RV[f] }, g.prototype.kF = function(f) { this.bN = f }, g.prototype.dn = function(f, e, t) { if (this.styles) return this.SI(f, e, t) ? this.CI.get((f << 16) + e) : (t = this.jk(f, e, t) ? this.Ak(f, e, t, this.Ve) || null : this.kk(f, e, t) || null, this.CI.set((f << 16) + e, t), t) }, g.prototype.MF = function(f, e) { var t = this.bN; if (!t || !t[f]) return null; if (t[f].styles && t[f].styles.color) { var r, i, e = Util.getOptimalZoom(e),
|
||
o = {}; for (r in t[f].styles.color.nodesObj) t[f].styles.color.nodesObj.hasOwnProperty(r) && (o[(i = t[f].styles.color.nodesObj[r]).zoom] = i.value); return o[e = this._k(o, e)] ? Util.Hex2Rgba(o[e]) : null } return t[f].color ? (e = t[f].color, Util.Hex2Rgba(e)) : void 0 }, g.prototype.nX = function(f, e, t, r) { var i = this.Ve; return i && i[f] && i[f][e] ? (i = i[f][e]).styles && i.styles[t] ? (f = Util.getOptimalZoom(r), (r = this._k(i.styles[t].nodesObj, f)) && i.styles[t].nodesObj[r] ? i.styles[t].nodesObj[r] : null) : "visible" === t || i[t] && (i.visible || "3" !== e) ? i[t] : void 0 : null }, g.prototype.Ok = function(f, e, t) { return void 0 !== this.styles[f] && (f = this.styles[f][e]) && void 0 !== (e = f.levelStyleMapping[t]) ? f.browserStyle[e] : null }, g.prototype.xk = function(f, e, t) { if (void 0 === this.styles[f]) return null; if (void 0 === this.styles[f][e]) return null; if (void 0 === this.styles[f][e].levelStyleMapping) return null; if (void 0 === this.styles[f][e].browserStyle) return null; var r = this.styles[f][e].levelStyleMapping,
|
||
f = this.styles[f][e].browserStyle,
|
||
i = Math.floor(t); if (i === (e = Math.ceil(t))) return (o = f[r[i]]) ? (p = u = cloneDeep(o), u instanceof Array && (p = u[0]), u) : null; var o = t - i < .8 ? i : e,
|
||
n = f[r[i]],
|
||
f = f[r[e]]; if ((n || f) && (n || o !== i) && (!n || f || o !== e) && (n || !f || i !== o)) { if (!n && f) { for (var a, l, s = u = cloneDeep(f), d = (u instanceof Array && (s = u[0]), Object.keys(s)), c = 0; c < d.length; c++) - 1 < (y = d[c]).indexOf("Color") && s[y] && s[y].rgba ? (l = (t - i - .8) / .2, a = Math.floor(s[y].rgba[3] * l), s[y].rgba[3] = a) : -1 < y.indexOf("Width") && (s[y] = s[y] * (l = (t - i - .8) / .2)); return u } if (n && f) { for (var u, y, b, p = u = cloneDeep(n), s = f, d = (u instanceof Array && (p = u[0]), u instanceof Array && (s = f[0]), Object.keys(p)), c = 0; c < d.length; c++) - 1 < (y = d[c]).indexOf("Width") && (b = (t - i) * (s[y] - p[y]) + p[y], p[y] = b); return u } return n && !f ? (p = u = cloneDeep(n), u instanceof Array && (p = u[0]), u) : null } }, g.prototype.Ik = function(f, e, t) { var r = []; return r[0] = f[0] + (e[0] - f[0]) * t, r[1] = f[1] + (e[1] - f[1]) * t, r[2] = f[2] + (e[2] - f[2]) * t, r[3] = f[3] + (e[3] - f[3]) * t, r }, g.prototype.kk = function(f, e, t) { var r = f.toString()[0]; return "1" === r || "4" === r ? (r = Util.getOptimalZoom(t), this.Ok(f, e, r)) : this.xk(f, e, t) }, g.prototype.Ak = function(f, e, t, r) { var i = t,
|
||
o = r[f][e] || r[f].all,
|
||
n = null; if (o.styles) { var a = Util.getOptimalZoom(t); if (o.styles.visible && (r = this._k(o.styles.visible.nodesObj, a)) && void 0 !== (r = o.styles.visible.nodesObj[r]) && !1 === r) return null; for (var l = (g = cloneDeep(this.styles[f][e])).levelStyleMapping, s = g.browserStyle, d = Object.keys(o.styles), c = 0; c < d.length; c++) { var u = d[c],
|
||
y = o.styles[u],
|
||
b = null; if (y.transitional && "linear" === y.transitional) { var p, h = this.Tk(y.nodesObj, t); if (!h || !h[0]) continue; if (!(i = h[0])) continue; if (void 0 === (p = l[a])) continue;
|
||
n = s[p], 1 === h.length ? b = y.nodesObj[i] : "color" === u && (b = this.Fk(h, y.nodesObj, t)) } else { if (!(i = this._k(y.nodesObj, a))) continue; if (void 0 === (p = l[a])) continue;
|
||
n = s[p], b = y.nodesObj[i] } if (!n) return null; var S = f.toString()[0],
|
||
v = this.uP(o, a); if ("1" === S) { if (!v) return null;
|
||
this.NI(u, b, n, f, e) } else "2" === S ? (this.Sk(u, b, n), !v && n && n[1] && (n[1] = null)) : "4" === S ? this.LI(u, b, n) : this.Ck(u, b, n) } } else { if (void 0 !== o.visible && !1 === o.visible) return null; if (void 0 === (p = (l = this.styles[f][e].levelStyleMapping)[i = Util.getOptimalZoom(i)])) return null; if (!this.styles[f][e].browserStyle[p]) return null; for (var g, n = (s = (g = cloneDeep(this.styles[f][e])).browserStyle)[p], d = Object.keys(o), v = this.uP(o, i), c = 0; c < d.length; c++) { if (u = d[c], !n) return null; if ("1" === (S = f.toString()[0])) { if (!v) return null;
|
||
this.NI(u, o[u], n, f, e) } else "2" === S ? (this.Sk(u, o[u], n), !v && n && n[1] && (n[1] = null)) : "4" === S ? this.LI(u, o[u], n) : this.Ck(u, o[u], n) } } return n }, g.prototype.mn = function(f, e) { return void 0 === this.styles[f] ? null : (f = this.styles[f][e]) ? (e = f.levelStyleMapping || {}, f = Object.keys(e), [parseInt(f[0], 10), parseInt(f[f.length - 1], 10)]) : [] }, g.prototype.Lw = function(f, e) { return void 0 !== this.styles[f] && (f = this.styles[f][e]) ? f.z : null }, g.prototype.mW = function(f, e, t) { return 2 === Math.floor(f / 1e4) && (f = this.xk(f, e, t)) && f[0] ? (e = ["butt", "butt"], -1 < (t = f[0]).roadStyle.indexOf("roundcap") ? e[0] = "round" : -1 < t.roadStyle.indexOf("squarecap") && (e[0] = "square"), -1 < t.borderStyle.indexOf("roundcap") ? e[1] = "round" : -1 < t.borderStyle.indexOf("squarecap") && (e[1] = "square"), e) : defaultCap }, g.prototype.destroy = function() { this.styles && (this.styles = {}) }, g.prototype.uP = function(f, e) { var t = !0; return f.styles && f.styles.showLabel ? (e = this._k(f.styles.showLabel.nodesObj, e), void 0 !== (e = f.styles.showLabel.nodesObj[e]) && !1 === e && (t = !1)) : void 0 !== f.showLabel && !1 === f.showLabel && (t = !1), t }, g.prototype.SI = function(f, e, t) { return t = this.TY ? Math.floor(t) : Math.floor(t * (16.8 <= t ? 100 : 10)), this.EI !== t && (this.EI = t, this.CI.clear()), this.CI.has((f << 16) + e) }, g.prototype.jk = function(f, e, t) { return !!this.Ve && !!this.Ve[f] && !(!this.Ve[f][e] && !this.Ve[f].all || !this.styles || !this.styles[f] || !this.styles[f][e]) }, g.prototype.Fk = function(f, e, t) { var r = Util.Hex2Rgba(e[f[0]]),
|
||
e = Util.Hex2Rgba(e[f[1]]),
|
||
t = (t - f[0]) / (f[1] - f[0]); return [Math.floor(r[0] + t * (e[0] - r[0])), Math.floor(r[1] + t * (e[1] - r[1])), Math.floor(r[2] + t * (e[2] - r[2])), Math.floor(r[3] + t * (e[3] - r[3]))] }, g.prototype.UV = function(f) { for (var e = {}, t = 0; t < f.length; t++) { f[t]; var r = f[t].zoom,
|
||
i = f[t].value;
|
||
e[r] = i } return e }, g.prototype.Tk = function(f, e) { var t = []; if (f[e]) t.push(e);
|
||
else { for (var r = !0, i = Math.floor(e); r && 0 < i;) { if (f[i]) { t.push(i), r = !1; break }
|
||
i-- } for (i = Math.ceil(e), r = !0; r && i < 25;) { if (f[i]) { t.push(i), r = !1; break }
|
||
i++ } } return t }, g.prototype._k = function(f, e) { if (!f) return null; if (!isUndefined$1(f[e])) return e; for (var t = !0, r = e; t && 0 < r;)
|
||
if (f[--r] || !1 === f[r] || "" === f[r]) { t = !1; break }
|
||
if (!t) return r; for (r = e; t && r < 25;)
|
||
if (f[++r] || !1 === f[r] || "" === f[r]) { t = !1; break }
|
||
return t ? null : r }, g.prototype.Ck = function(f, e, t) { var r = null; switch (f) {
|
||
case "color":
|
||
case "fillColor":
|
||
r = e, Array.isArray(e) || (r = Util.Hex2Rgba(e)), t.faceColor || (t.faceColor = new Color(r)), t.faceColor.rgba = r; break;
|
||
case "fontSize":
|
||
t.fontSize = e; break;
|
||
case "texture":
|
||
t.texture = e ? AMap.getConfig().protocol + "://" + e : ""; break;
|
||
case "backgroundColor":
|
||
r = Util.Hex2Rgba(e), t.holoColor && (t.holoColor.rgba = r); break;
|
||
case "strokeColor":
|
||
r = Util.Hex2Rgba(e), t.borderColor || (t.borderColor = new Color(r)), t.borderColor.rgba = r; break;
|
||
case "showIcon":
|
||
!1 === e && t.iconID && (t.iconID = "0") } }, g.prototype.LI = function(f, e, t) { var r = null; switch (f) {
|
||
case "textFillColor":
|
||
r = e, Array.isArray(e) || (r = Util.Hex2Rgba(e)), t.faceColor || (t.faceColor = new Color(r)), t.faceColor.rgba = r; break;
|
||
case "fontSize":
|
||
t.fontSize = e; break;
|
||
case "backgroundColor":
|
||
r = Util.Hex2Rgba(e), t.holoColor && (t.holoColor.rgba = r); break;
|
||
case "textStrokeColor":
|
||
r = Util.Hex2Rgba(e), t.borderColor || (t.borderColor = new Color(r)), t.borderColor.rgba = r; break;
|
||
case "showIcon":
|
||
!1 === e && t.iconID && (t.iconID = "0"); break;
|
||
case "showLabel":
|
||
t.showText = e ? 1 : 0 } }, g.prototype.NI = function(f, e, t, r, i) { var o = null; switch (f) {
|
||
case "showIcon":
|
||
!1 === e && t.iconID && (t.iconID = "0"); break;
|
||
case "textFillColor":
|
||
o = e, Array.isArray(e) || (o = Util.Hex2Rgba(e)), t.faceColor || (t.faceColor = new Color(o)), t.faceColor.rgba = o; break;
|
||
case "fontSize":
|
||
t.fontSize = e; break;
|
||
case "backgroundColor":
|
||
o = Util.Hex2Rgba(e), t.holoColor ? t.holoColor.rgba = o : 10002 !== r || 8 !== i && 37 !== i || (t.holoColor = new Color(o)); break;
|
||
case "textStrokeColor":
|
||
o = Util.Hex2Rgba(e), t.borderColor || (t.borderColor = new Color(o)), t.borderColor.rgba = o; break;
|
||
case "sel-highlight":
|
||
t["sel-highlight"] = !0 === e; break;
|
||
case "sel-textFillColor":
|
||
o = Util.Hex2Rgba(e), t["sel-textFillColor"] = map(o, function(f) { return f / 255 }); break;
|
||
case "sel-textStrokeColor":
|
||
o = Util.Hex2Rgba(e), t["sel-textStrokeColor"] = map(o, function(f) { return f / 255 }); break;
|
||
case "label-bg":
|
||
t["label-bg"] = !0 === e; break;
|
||
case "label-bgColor":
|
||
o = Util.Hex2Rgba(e), t.holoColor ? t.holoColor.rgba = o : 10002 !== r || 8 !== i && 37 !== i || (t.holoColor = new Color(o)); break;
|
||
case "showLabel":
|
||
t.showText = e ? 1 : 0 } }, g.prototype.Sk = function(f, e, t) { var r, i = null; switch (f) {
|
||
case "color":
|
||
case "fillColor":
|
||
i = Util.Hex2Rgba(e), t[0] && (t[0].roadColor || (t[0].roadColor = new Color(i)), t[0].roadColor.rgba = i); break;
|
||
case "fillOpacity":
|
||
t[0] && t[0].roadColor && t[0].roadColor.rgba && (r = t[0].roadColor.rgba, i = Util.Opacity2Rgba(e, r), t[0].roadColor.rgba = i); break;
|
||
case "fillWidth":
|
||
t[0] && (t[0].roadWidth = e); break;
|
||
case "strokeColor":
|
||
i = Util.Hex2Rgba(e), t[0] && (t[0].borderColor || (t[0].borderColor = new Color(i)), t[0].borderColor.rgba = i); break;
|
||
case "strokeWidth":
|
||
t[0] && (t[0].borderWidth = e); break;
|
||
case "textFillColor":
|
||
t[1] && (i = Util.Hex2Rgba(e), t[1].faceColor || (t[1].faceColor = new Color(i)), t[1].faceColor.rgba = i); break;
|
||
case "textStrokeColor":
|
||
t[1] && (i = Util.Hex2Rgba(e), t[1].borderColor || (t[1].borderColor = new Color(i)), t[1].borderColor.rgba = i); break;
|
||
case "fontSize":
|
||
t[1] && (t[1].fontSize = e); break;
|
||
case "showLabel":
|
||
t.showText = e ? 1 : 0 } }, g.Xe = function(f) { var f = f.split("&"),
|
||
e = {}; return e.iconID = f[0], e.fontSize = parseInt(f[1], 10), e.faceColor = g.Je(f[2]), e.borderColor = g.Je(f[3]), e.holoColor = g.Je(f[4]), e.showMode = parseInt(f[6], 10), e.showText = 2 === e.showMode ? 0 : 1, e.forceShow = parseInt(f[7], 10), e.clickEnable = parseInt(f[8], 10), e.xOffset = parseInt(f[9], 10), e.yOffset = parseInt(f[10], 10), e.iconFile = f[5], e }, g.rn = function(f) { var e = (f = f.split("|"))[0].split("&"),
|
||
t = {},
|
||
e = (f[0] ? (t.roadWidth = parseInt(e[0], 10), t.roadColor = g.Je(e[1]), t.roadStyle = e[2] || "", t.borderWidth = parseInt(e[3], 10), t.borderColor = g.Je(e[4]), t.borderStyle = e[5] || "", t.z = parseInt(e[6], 10), t.roadStyle && t.roadStyle.indexOf && (0 === t.roadStyle.indexOf("dash") ? (t.roadDash = t.roadStyle.substring(4).slice(1, -1).split(","), t.roadDash = map(t.roadDash, function(f) { return parseInt(f, 10) }), 2 === t.roadDash.length && (e = t.roadDash).push.apply(e, t.roadDash)) : 0 < t.roadStyle.indexOf("railway") || t.roadStyle.indexOf("dash_crewel")), t.borderStyle && t.borderStyle.indexOf && (0 === t.borderStyle.indexOf("dash") ? (t.borderDash = t.borderStyle.substring(4).slice(1, -1).split(","), t.borderDash = map(t.borderDash, function(f) { return parseInt(f, 10) }), 2 === t.borderDash.length && (e = t.borderDash).push.apply(e, t.borderDash)) : 0 < t.borderStyle.indexOf("railway") || t.borderStyle.indexOf("dash_crewel"))) : (t.roadWidth = 0, t.roadColor = g.Je("00000000"), t.roadStyle = "", t.borderWidth = 0, t.borderColor = g.Je("00000000"), t.borderStyle = "", t.z = 0), {}); return f[1] && (f = f[1].split("&"), e.iconID = "", e.fontSize = parseInt(f[1], 10), e.faceColor = g.Je(f[2]), e.borderColor = g.Je(f[3]), e.z = parseInt(f[4], 10)), [t, e] }, g.ln = function(f) { var f = f.split("&"),
|
||
e = {}; return e.faceColor = g.Je(f[0]), e.borderWidth = parseInt(f[1], 10), e.borderColor = g.Je(f[2]), e.wallColor1 = g.Je(f[3]), e.wallColor2 = g.Je(f[4]), e.opacity = parseFloat(f[5]), e.z = parseInt(f[6], 10), e }, g.un = function(f) { var f = f.split("&"),
|
||
e = {}; return e.iconID = f[0], e.fontSize = parseInt(f[1], 10), e.faceColor = g.Je(f[2]), e.borderColor = g.Je(f[3]), e.holoColor = null, e.z = parseInt(f[5], 10), e }, g.cn = function(f) { var f = f.split("&"),
|
||
e = {}; return e.faceColor = g.Je(f[0]), e.borderWidth = 0, e.borderColor = null, e.z = parseInt(f[3], 10), e }, g }(),
|
||
NebulaSegements = function() {
|
||
function f() { this.jc = [], this.GM = -1, this.HM = -1, this.VM = 0, this.WM = new LineSegement(-1, -1, -1, -1, -1) } return f.prototype.add = function(f, e, t, r, i, o, n, a) { this.WM.eT(f, e, i, r) && o === this.WM.bz && n + "" == this.WM.roofColor + "" && a + "" == this.WM.wallColor + "" || (this.GM = f, this.HM = e, this.VM += this.WM ? this.WM.length : 0, this.WM = new LineSegement(f, e, this.VM, r, i, o, n, a), this.jc.push(this.WM)), this.WM.add(t) }, f.prototype.reset = function() { this.WM = new LineSegement(-1, -1, -1, -1, -1) }, f }(),
|
||
LineSegement = function() {
|
||
function f(f, e, t, r, i, o, n, a) { this.mainkey = f, this.subkey = e, this.offset = t, this.minzoom = r, this.maxzoom = i, this.bz = o, this.roofColor = n, this.wallColor = a, this.length = 0 } return f.prototype.add = function(f) { this.length += f }, f.prototype.eT = function(f, e, t, r) { return this.mainkey === f && this.subkey === e && this.maxzoom === t && this.minzoom === r }, f }(),
|
||
PolygonSegements = function() {
|
||
function f() { this.jc = [], this.VM = 0 } return f.prototype.add = function(f) { this.jc.push({ length: f, offset: this.VM }), this.VM += f }, f.prototype.reset = function() { this.jc = [], this.VM = 0 }, f.prototype.destroy = function() { this.jc && 0 < this.jc.length && (this.jc = []) }, f }(),
|
||
VectorTileFeature = function(f, e, t, r, i) { this.properties = {}, this.extent = t, this.type = 0, this.fA = f, this.hA = -1, this.cA = r, this.vA = i, f.nw(readFeature, this, e) };
|
||
|
||
function readFeature(f, e, t) { 1 === f ? e.id = t.ow() : 2 === f ? readTag(t, e) : 3 === f ? e.type = t.ow() : 4 === f && (e.hA = t.pos) }
|
||
|
||
function readTag(f, e) { for (var t = f.ow() + f.pos; f.pos < t;) { var r = e.cA[f.ow()],
|
||
i = e.vA[f.ow()];
|
||
e.properties[r] = i } }
|
||
|
||
function classifyRings(f) { var e = f.length; if (e <= 1) return [f]; for (var t, r = [], i = [], o = 0; o < e; o++) { var n = signedArea$1(f[o]);
|
||
0 !== n && ((t = void 0 === t ? n < 0 : t) === n < 0 ? (i && r.push(i), i = [f[o]]) : i.push(f[o])) } return i && r.push(i), r }
|
||
|
||
function signedArea$1(f) { for (var e, t, r = 0, i = 0, o = f.length, n = o - 1; i < o; n = i++) e = f[i], r += ((t = f[n]).x - e.x) * (e.y + t.y); return r }
|
||
VectorTileFeature.types = ["Unknown", "Point", "LineString", "Polygon"], VectorTileFeature.prototype.Dw = function() { for (var f, e = this.fA, t = (e.pos = this.hA, e.ow() + e.pos), r = 1, i = 0, o = 0, n = 0, a = [], l = []; e.pos < t;)
|
||
if (i <= 0 && (r = 7 & (f = e.ow()), i = f >> 3), i--, 1 === r || 2 === r) o += e.lA(), n += e.lA(), 1 === r && (l && 0 < l.length && a.push(l), l = []), l.push([o, n]);
|
||
else { if (7 !== r) throw new Error("unknown command " + r);
|
||
l && l.push([l[0][0], l[0][1]]) }
|
||
return l && 0 < l.length && a.push(l), this.lines = a }, VectorTileFeature.prototype.Ro = function() { for (var f, e = this.fA, t = (e.pos = this.hA, e.ow() + e.pos), r = 1, i = 0, o = 0, n = 0, a = 1 / 0, l = -1 / 0, s = 1 / 0, d = -1 / 0; e.pos < t;)
|
||
if (i <= 0 && (r = 7 & (f = e.ow()), i = f >> 3), i--, 1 === r || 2 === r)(o += e.lA()) < a && (a = o), l < o && (l = o), (n += e.lA()) < s && (s = n), d < n && (d = n);
|
||
else if (7 !== r) throw new Error("unknown command " + r); return [a, s, l, d] }, VectorTileFeature.prototype.dA = function(f, e, t) { var r, i = this.extent * Math.pow(2, t),
|
||
o = this.extent * f,
|
||
n = this.extent * e,
|
||
a = this.Dw(),
|
||
t = VectorTileFeature.types[this.type];
|
||
|
||
function l(f) { for (var e = 0; e < f.length; e++) { var t = f[e],
|
||
r = 180 - 360 * (t.y + n) / i;
|
||
f[e] = [360 * (t.x + o) / i - 180, 360 / Math.PI * Math.atan(Math.exp(r * Math.PI / 180)) - 90] } } switch (this.type) {
|
||
case 1:
|
||
for (var s = [], d = 0; d < a.length; d++) s[d] = a[d][0];
|
||
l(a = s); break;
|
||
case 2:
|
||
for (d = 0; d < a.length; d++) l(a[d]); break;
|
||
case 3:
|
||
for (a = classifyRings(a), d = 0; d < a.length; d++)
|
||
for (r = 0; r < a[d].length; r++) l(a[d][r]) } return 1 === a.length ? a = a[0] : t = "Multi" + t, f = { type: "Feature", geometry: { type: t, coordinates: a }, properties: this.properties }, "id" in this && (f.id = this.id), f }; var VectorTileLayer = function(f, e) { this.version = 1, this.name = null, this.extent = 4096, this.length = 0, this.fA = f, this.cA = [], this.vA = [], this.Cw = [], f.nw(readLayer, this, e), this.length = this.Cw.length };
|
||
|
||
function readLayer(f, e, t) { 15 === f ? e.version = t.ow() : 1 === f ? e.name = t.aw() : 5 === f ? e.extent = t.ow() : 2 === f ? e.Cw.push(t.pos) : 3 === f ? e.cA.push(t.aw()) : 4 === f && e.vA.push(readValueMessage(t)) }
|
||
|
||
function readValueMessage(f) { for (var e = null, t = f.ow() + f.pos; f.pos < t;) var r = f.ow() >> 3,
|
||
e = 1 == r ? f.aw() : 2 == r ? f.pA() : 3 == r ? f.yA() : 4 == r ? f.mA() : 5 == r ? f.ow() : 6 == r ? f.lA() : 7 == r ? f.vw() : null; return e }
|
||
VectorTileLayer.prototype.Gw = function(f) { if (f < 0 || f >= this.Cw.length) throw new Error("feature index out of bounds"); return this.fA.pos = this.Cw[f], f = this.fA.ow() + this.fA.pos, new VectorTileFeature(this.fA, f, this.extent, this.cA, this.vA) }; var VectorTile$1 = function(f, e) { this.type = "vector", this.layers = f.nw(readTile, {}, e) };
|
||
|
||
function readTile(f, e, t) { 3 === f && (f = new VectorTileLayer(t, t.ow() + t.pos)).length && (e[f.name] = f) }
|
||
VectorTile$1.Wb = function(f) { return f }, VectorTile$1.Gb = function(f) { return f }, VectorTile$1.prototype.nG = function(f) { this.type = f }; var SHIFT_LEFT_32 = 4294967296,
|
||
SHIFT_RIGHT_32 = 1 / SHIFT_LEFT_32,
|
||
Pbf = function() {
|
||
function r(f) { this.gA = ArrayBuffer.isView && ArrayBuffer.isView(f) ? f : new Uint8Array(f || 0), this.pos = 0, this.type = 0, this.length = this.gA.length } return r.prototype.destroy = function() { this.gA = new Uint8Array(0) }, r.prototype.nw = function(f, e, t) { for (t = t || this.length; this.pos < t;) { var r = this.ow(),
|
||
i = r >> 3,
|
||
o = this.pos;
|
||
this.type = 7 & r, f(i, e, this), this.pos === o && this.wA(r) } return e }, r.prototype.MA = function(f, e) { return this.nw(f, e, this.ow() + this.pos) }, r.prototype.jA = function() { var f = readUInt32(this.gA, this.pos); return this.pos += 4, f }, r.prototype.AA = function() { var f = readInt32(this.gA, this.pos); return this.pos += 4, f }, r.prototype.kA = function() { var f = readUInt32(this.gA, this.pos) + readUInt32(this.gA, this.pos + 4) * SHIFT_LEFT_32; return this.pos += 8, f }, r.prototype.OA = function() { var f = readUInt32(this.gA, this.pos) + readInt32(this.gA, this.pos + 4) * SHIFT_LEFT_32; return this.pos += 8, f }, r.prototype.pA = function() { var f = this.xA(this.gA, this.pos, !0, 23, 4); return this.pos += 4, f }, r.prototype.yA = function() { var f = this.xA(this.gA, this.pos, !0, 52, 8); return this.pos += 8, f }, r.prototype.ow = function(f) { var e = this.gA,
|
||
t = e[this.pos++],
|
||
r = 127 & t; return t < 128 || (r |= (127 & (t = e[this.pos++])) << 7, t < 128) || (r |= (127 & (t = e[this.pos++])) << 14, t < 128) || (r |= (127 & (t = e[this.pos++])) << 21, t < 128) ? r : readVarintRemainder(r |= (15 & e[this.pos]) << 28, f, this) }, r.prototype.mA = function() { return this.ow(!0) }, r.prototype.lA = function() { var f = this.ow(); return f % 2 == 1 ? (f + 1) / -2 : f / 2 }, r.prototype.vw = function() { return Boolean(this.ow()) }, r.prototype.aw = function() { var f = this.ow() + this.pos,
|
||
e = readUtf8(this.gA, this.pos, f); return this.pos = f, e }, r.prototype.mw = function() { var f = this.ow() + this.pos,
|
||
e = this.gA.subarray(this.pos, f); return this.pos = f, e }, r.prototype.tw = function(f, e) { var t = readPackedEnd(this); for (f = f || []; this.pos < t;) f.push(this.ow(e)); return f }, r.prototype.IA = function(f) { var e = readPackedEnd(this); for (f = f || []; this.pos < e;) f.push(this.lA()); return f }, r.prototype.TA = function(f) { var e = readPackedEnd(this); for (f = f || []; this.pos < e;) f.push(this.vw()); return f }, r.prototype.FA = function(f) { var e = readPackedEnd(this); for (f = f || []; this.pos < e;) f.push(this.pA()); return f }, r.prototype._A = function(f) { var e = readPackedEnd(this); for (f = f || []; this.pos < e;) f.push(this.yA()); return f }, r.prototype.SA = function(f) { var e = readPackedEnd(this); for (f = f || []; this.pos < e;) f.push(this.jA()); return f }, r.prototype.CA = function(f) { var e = readPackedEnd(this); for (f = f || []; this.pos < e;) f.push(this.AA()); return f }, r.prototype.EA = function(f) { var e = readPackedEnd(this); for (f = f || []; this.pos < e;) f.push(this.kA()); return f }, r.prototype.NA = function(f) { var e = readPackedEnd(this); for (f = f || []; this.pos < e;) f.push(this.OA()); return f }, r.prototype.wA = function(f) {
|
||
(f &= 7) !== r.LA && (f === r.DA ? this.pos = this.ow() + this.pos : f === r.RA ? this.pos += 4 : f === r.PA ? this.pos += 8 : console.log("Unimplemented type: " + f)) }, r.prototype.UA = function(f, e) { this.BA(f << 3 | e) }, r.prototype.zA = function(f) { for (var e, t = this.length || 16; t < this.pos + f;) t *= 2;
|
||
t !== this.length && ((e = new Uint8Array(t)).set(this.gA), this.gA = e, this.length = t) }, r.prototype.finish = function() { return this.length = this.pos, this.pos = 0, this.gA.subarray(0, this.length) }, r.prototype.qA = function(f) { this.zA(4), writeInt32(this.gA, f, this.pos), this.pos += 4 }, r.prototype.WA = function(f) { this.zA(4), writeInt32(this.gA, f, this.pos), this.pos += 4 }, r.prototype.GA = function(f) { this.zA(8), writeInt32(this.gA, -1 & f, this.pos), writeInt32(this.gA, Math.floor(f * SHIFT_RIGHT_32), this.pos + 4), this.pos += 8 }, r.prototype.HA = function(f) { this.zA(8), writeInt32(this.gA, -1 & f, this.pos), writeInt32(this.gA, Math.floor(f * SHIFT_RIGHT_32), this.pos + 4), this.pos += 8 }, r.prototype.BA = function(f) { 268435455 < (f = +f || 0) || f < 0 ? writeBigVarint(f, this) : (this.zA(4), this.gA[this.pos++] = 127 & f | (127 < f ? 128 : 0), f <= 127 || (this.gA[this.pos++] = 127 & (f >>>= 7) | (127 < f ? 128 : 0), f <= 127) || (this.gA[this.pos++] = 127 & (f >>>= 7) | (127 < f ? 128 : 0), f <= 127) || (this.gA[this.pos++] = f >>> 7 & 127)) }, r.prototype.VA = function(f) { this.BA(f < 0 ? 2 * -f - 1 : 2 * f) }, r.prototype.$A = function(f) { this.BA(Boolean(f)) }, r.prototype.YA = function(f) { f = String(f), this.zA(4 * f.length), this.pos++; var e = this.pos;
|
||
this.pos = writeUtf8(this.gA, f, this.pos), 128 <= (f = this.pos - e) && makeRoomForExtraLength(e, f, this), this.pos = e - 1, this.BA(f), this.pos += f }, r.prototype.KA = function(f) { this.zA(4), this.XA(this.gA, f, this.pos, !0, 23, 4), this.pos += 4 }, r.prototype.JA = function(f) { this.zA(8), this.XA(this.gA, f, this.pos, !0, 52, 8), this.pos += 8 }, r.prototype.ZA = function(f) { var e = f.length;
|
||
this.BA(e), this.zA(e); for (var t = 0; t < e; t++) this.gA[this.pos++] = f[t] }, r.prototype.QA = function(f, e) { this.pos++; var t = this.pos;
|
||
f(e, this), 128 <= (f = this.pos - t) && makeRoomForExtraLength(t, f, this), this.pos = t - 1, this.BA(f), this.pos += f }, r.prototype.fw = function(f, e, t) { this.UA(f, r.DA), this.QA(e, t) }, r.prototype.tk = function(f, e) { this.fw(f, writePackedVarint, e) }, r.prototype.rk = function(f, e) { this.fw(f, writePackedSVarint, e) }, r.prototype.nk = function(f, e) { this.fw(f, writePackedBoolean, e) }, r.prototype.ik = function(f, e) { this.fw(f, writePackedFloat, e) }, r.prototype.ek = function(f, e) { this.fw(f, writePackedDouble, e) }, r.prototype.ak = function(f, e) { this.fw(f, writePackedFixed32, e) }, r.prototype.uk = function(f, e) { this.fw(f, writePackedSFixed32, e) }, r.prototype.sk = function(f, e) { this.fw(f, writePackedFixed64, e) }, r.prototype.fk = function(f, e) { this.fw(f, writePackedSFixed64, e) }, r.prototype.ww = function(f, e) { this.UA(f, r.DA), this.ZA(e) }, r.prototype.hk = function(f, e) { this.UA(f, r.RA), this.qA(e) }, r.prototype.ck = function(f, e) { this.UA(f, r.RA), this.WA(e) }, r.prototype.vk = function(f, e) { this.UA(f, r.PA), this.GA(e) }, r.prototype.lk = function(f, e) { this.UA(f, r.PA), this.HA(e) }, r.prototype.rw = function(f, e) { this.UA(f, r.LA), this.BA(e) }, r.prototype.dk = function(f, e) { this.UA(f, r.LA), this.VA(e) }, r.prototype.uw = function(f, e) { this.UA(f, r.DA), this.YA(e) }, r.prototype.bk = function(f, e) { this.UA(f, r.RA), this.KA(e) }, r.prototype.pk = function(f, e) { this.UA(f, r.PA), this.JA(e) }, r.prototype.hw = function(f, e) { this.rw(f, Boolean(e)) }, r.prototype.xA = function(f, e, t, r, i) { var o, n, a = 8 * i - r - 1,
|
||
l = (1 << a) - 1,
|
||
s = l >> 1,
|
||
d = -7,
|
||
c = t ? i - 1 : 0,
|
||
u = t ? -1 : 1,
|
||
i = f[e + c]; for (c += u, o = i & (1 << -d) - 1, i >>= -d, d += a; 0 < d; o = 256 * o + f[e + c], c += u, d -= 8); for (n = o & (1 << -d) - 1, o >>= -d, d += r; 0 < d; n = 256 * n + f[e + c], c += u, d -= 8); if (0 === o) o = 1 - s;
|
||
else { if (o === l) return n ? NaN : 1 / 0 * (i ? -1 : 1);
|
||
n += Math.pow(2, r), o -= s } return (i ? -1 : 1) * n * Math.pow(2, o - r) }, r.prototype.XA = function(f, e, t, r, i, o) { var n, a, l = 8 * o - i - 1,
|
||
s = (1 << l) - 1,
|
||
d = s >> 1,
|
||
c = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
|
||
u = r ? 0 : o - 1,
|
||
y = r ? 1 : -1,
|
||
o = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0; for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, n = s) : (n = Math.floor(Math.log(e) / Math.LN2), e * (r = Math.pow(2, -n)) < 1 && (n--, r *= 2), 2 <= (e += 1 <= n + d ? c / r : c * Math.pow(2, 1 - d)) * r && (n++, r /= 2), s <= n + d ? (a = 0, n = s) : 1 <= n + d ? (a = (e * r - 1) * Math.pow(2, i), n += d) : (a = e * Math.pow(2, d - 1) * Math.pow(2, i), n = 0)); 8 <= i; f[t + u] = 255 & a, u += y, a /= 256, i -= 8); for (n = n << i | a, l += i; 0 < l; f[t + u] = 255 & n, u += y, n /= 256, l -= 8);
|
||
f[t + u - y] |= 128 * o }, r.LA = 0, r.PA = 1, r.DA = 2, r.RA = 5, r }();
|
||
|
||
function readVarintRemainder(f, e, t) { var r = t.gA,
|
||
i = r[t.pos++],
|
||
o = (112 & i) >> 4; if (i < 128) return toNum(f, o, e); if (o |= (127 & (i = r[t.pos++])) << 3, i < 128) return toNum(f, o, e); if (o |= (127 & (i = r[t.pos++])) << 10, i < 128) return toNum(f, o, e); if (o |= (127 & (i = r[t.pos++])) << 17, i < 128) return toNum(f, o, e); if (o |= (127 & (i = r[t.pos++])) << 24, i < 128) return toNum(f, o, e); if (o |= (1 & (i = r[t.pos++])) << 31, i < 128) return toNum(f, o, e); throw new Error("Expected varint not more than 10 bytes") }
|
||
|
||
function readPackedEnd(f) { return f.type === Pbf.DA ? f.ow() + f.pos : f.pos + 1 }
|
||
|
||
function toNum(f, e, t) { return t ? 4294967296 * e + (f >>> 0) : 4294967296 * (e >>> 0) + (f >>> 0) }
|
||
|
||
function writeBigVarint(f, e) { var t, r; if (0 <= f ? (t = f % 4294967296 | 0, r = f / 4294967296 | 0) : (r = ~(-f / 4294967296), 4294967295 ^ (t = ~(-f % 4294967296)) ? t = t + 1 | 0 : r = r + 1 | (t = 0)), 0x10000000000000000 <= f || f < -0x10000000000000000) throw new Error("Given varint doesn't fit into 10 bytes");
|
||
e.zA(10), writeBigVarintLow(t, r, e), writeBigVarintHigh(r, e) }
|
||
|
||
function writeBigVarintLow(f, e, t) { t.gA[t.pos++] = 127 & f | 128, f >>>= 7, t.gA[t.pos++] = 127 & f | 128, f >>>= 7, t.gA[t.pos++] = 127 & f | 128, f >>>= 7, t.gA[t.pos++] = 127 & f | 128, t.gA[t.pos] = 127 & (f >>>= 7) }
|
||
|
||
function writeBigVarintHigh(f, e) { var t = (7 & f) << 4;
|
||
e.gA[e.pos++] |= t | ((f >>>= 3) ? 128 : 0), f && (e.gA[e.pos++] = 127 & f | ((f >>>= 7) ? 128 : 0), f) && (e.gA[e.pos++] = 127 & f | ((f >>>= 7) ? 128 : 0), f) && (e.gA[e.pos++] = 127 & f | ((f >>>= 7) ? 128 : 0), f) && (e.gA[e.pos++] = 127 & f | ((f >>>= 7) ? 128 : 0), f) && (e.gA[e.pos++] = 127 & f) }
|
||
|
||
function makeRoomForExtraLength(f, e, t) { var r = e <= 16383 ? 1 : e <= 2097151 ? 2 : e <= 268435455 ? 3 : Math.ceil(Math.log(e) / (7 * Math.LN2));
|
||
t.zA(r); for (var i = t.pos - 1; f <= i; i--) t.gA[i + r] = t.gA[i] }
|
||
|
||
function writePackedVarint(f, e) { for (var t = 0; t < f.length; t++) e.BA(f[t]) }
|
||
|
||
function writePackedSVarint(f, e) { for (var t = 0; t < f.length; t++) e.VA(f[t]) }
|
||
|
||
function writePackedFloat(f, e) { for (var t = 0; t < f.length; t++) e.KA(f[t]) }
|
||
|
||
function writePackedDouble(f, e) { for (var t = 0; t < f.length; t++) e.JA(f[t]) }
|
||
|
||
function writePackedBoolean(f, e) { for (var t = 0; t < f.length; t++) e.$A(f[t]) }
|
||
|
||
function writePackedFixed32(f, e) { for (var t = 0; t < f.length; t++) e.qA(f[t]) }
|
||
|
||
function writePackedSFixed32(f, e) { for (var t = 0; t < f.length; t++) e.WA(f[t]) }
|
||
|
||
function writePackedFixed64(f, e) { for (var t = 0; t < f.length; t++) e.GA(f[t]) }
|
||
|
||
function writePackedSFixed64(f, e) { for (var t = 0; t < f.length; t++) e.HA(f[t]) }
|
||
|
||
function readUInt32(f, e) { return (f[e] | f[e + 1] << 8 | f[e + 2] << 16) + 16777216 * f[e + 3] }
|
||
|
||
function writeInt32(f, e, t) { f[t] = e, f[t + 1] = e >>> 8, f[t + 2] = e >>> 16, f[t + 3] = e >>> 24 }
|
||
|
||
function readInt32(f, e) { return (f[e] | f[e + 1] << 8 | f[e + 2] << 16) + (f[e + 3] << 24) }
|
||
|
||
function readUtf8(f, e, t) { for (var r = "", i = e; i < t;) { var o = f[i],
|
||
n = null,
|
||
a = 239 < o ? 4 : 223 < o ? 3 : 191 < o ? 2 : 1; if (t < i + a) break; var l, s = void 0,
|
||
d = void 0;
|
||
1 === a ? o < 128 && (n = o) : 2 === a ? 128 == (192 & (s = f[i + 1])) && (n = (31 & o) << 6 | 63 & s) <= 127 && (n = null) : 3 === a ? (s = f[i + 1], d = f[i + 2], 128 == (192 & s) && 128 == (192 & d) && ((n = (15 & o) << 12 | (63 & s) << 6 | 63 & d) <= 2047 || 55296 <= n && n <= 57343) && (n = null)) : 4 === a && (s = f[i + 1], d = f[i + 2], l = f[i + 3], 128 == (192 & s)) && 128 == (192 & d) && 128 == (192 & l) && ((n = (15 & o) << 18 | (63 & s) << 12 | (63 & d) << 6 | 63 & l) <= 65535 || 1114112 <= n) && (n = null), null === n ? (n = 65533, a = 1) : 65535 < n && (n -= 65536, r += String.fromCharCode(n >>> 10 & 1023 | 55296), n = 56320 | 1023 & n), r += String.fromCharCode(n), i += a } return r }
|
||
|
||
function writeUtf8(f, e, t) { for (var r = 0, i = void 0, o = void 0; r < e.length; r++) { if (55295 < (i = e.charCodeAt(r)) && i < 57344) { if (!o) { 56319 < i || r + 1 === e.length ? (f[t++] = 239, f[t++] = 191, f[t++] = 189) : o = i; continue } if (i < 56320) { f[t++] = 239, f[t++] = 191, f[t++] = 189, o = i; continue }
|
||
i = o - 55296 << 10 | i - 56320 | 65536, o = null } else o && (f[t++] = 239, f[t++] = 191, f[t++] = 189, o = null);
|
||
i < 128 ? f[t++] = i : (i < 2048 ? f[t++] = i >> 6 | 192 : (i < 65536 ? f[t++] = i >> 12 | 224 : (f[t++] = i >> 18 | 240, f[t++] = i >> 12 & 63 | 128), f[t++] = i >> 6 & 63 | 128), f[t++] = 63 & i | 128) } return t } var StyleOptionsBuilding = function() { this.hideWithoutStyle = !1, this.areas = [] },
|
||
VectorTileSegements = function() {
|
||
function f() { this.jc = [], this.VM = 0 } return f.prototype.add = function(f, e, t, r, i) { VTLineSegement.getKey(f, e, i, r) !== (this.WM ? this.WM.getKey() : "-1") && (this.VM += this.WM ? this.WM.length : 0, this.WM = new VTLineSegement(f, e, this.VM, r, i), this.jc.push(this.WM)), this.WM.add(t) }, f }(),
|
||
VTLineSegement = function() {
|
||
function f(f, e, t, r, i) { this.mainkey = f, this.subkey = e, this.offset = t, this.minzoom = r, this.maxzoom = i, this.length = 0 } return f.getKey = function(f, e, t, r) { return f + ":" + e + ":" + t + ":" + r }, f.prototype.add = function(f) { this.length += f }, f.prototype.getKey = function() { return this.mainkey + ":" + this.subkey + ":" + this.maxzoom + ":" + this.minzoom }, f }(),
|
||
MapboxSegements = function() {
|
||
function f() { this.jc = [], this.GM = -1, this.HM = -1, this.VM = 0 } return f.prototype.add = function(f, e) { MBLineSegement.getKey(f), this.WM && this.WM.getKey(), this.GM = f, this.VM += this.WM ? this.WM.length : 0, this.WM = new MBLineSegement(f, this.VM), this.jc.push(this.WM), this.WM.add(e) }, f }(),
|
||
MBLineSegement = function() {
|
||
function f(f, e) { this.style = f, this.offset = e, this.length = 0 } return f.getKey = function(f) { return "" + f }, f.prototype.add = function(f) { this.length += f }, f.prototype.getKey = function() { return "" + this.style }, f }(),
|
||
ImageDataWraperType, ImageDataWraper = (function(f) { f.base64 = "base64", f.arraybuffer = "arraybuffer", f.bitmap = "bitmap", f.empty = "empty" }(ImageDataWraperType = ImageDataWraperType || {}), function() {
|
||
function f(f, e, t) { this.hash = f, this.IV = !1, "string" != typeof e ? t && t.imageBitmap ? (this.type = ImageDataWraperType.bitmap, this.status = "success", this.data = e) : (f = new Blob([e], { type: "image/png" }), (t = URLObject.createObjectURL(f)) ? (this.data = t, this.type = ImageDataWraperType.arraybuffer, this.status = "success") : (this.data = "", this.type = ImageDataWraperType.arraybuffer, this.status = "error")) : (this.data = e, this.type = ImageDataWraperType.base64, this.status = "success") } return f.AV = function(f) { return createImageBitmap(new Blob([new Uint8Array(f)])) }, f.Wb = function(f) { var e = { data: f.data, type: f.type, status: f.status, IV: f.IV, hash: f.hash }; return f.transform(), e }, f.prototype.transform = function() { this.IV = !0, this.type === ImageDataWraperType.bitmap && (this.data = "") }, f.prototype.destroy = function() { "destroyed" !== this.status && (this.type === ImageDataWraperType.arraybuffer && URLObject.revokeObjectURL(this.data), this.data = "", this.status = "destroyed") }, f.prototype.IZ = function(f) { var e;
|
||
this.type === ImageDataWraperType.bitmap ? f(this.data) : ((e = new Image).crossOrigin = "", e.onload = function() { f(e) }, e.src = this.data) }, f }()),
|
||
EmptyImageDataWraper = new ImageDataWraper("", ""),
|
||
CircleBucket = (EmptyImageDataWraper.type = ImageDataWraperType.empty, function() {
|
||
function f() { this._b = new SymbolArray, this.uploaded = !1 } return f.prototype.wb = function(f, e) { var t = this._b.length; return this._b.kb(f[0], f[1], e), this._b.length - t }, f.prototype.upload = function(f) { this.uploaded || (this.destroy(), this.uploaded = !0, this.zs = f.fe(this._b.Mb, SymbolArray.Rb)) }, f.prototype.destroy = function() { this.uploaded = !1, this.zs && this.zs.context && (this.zs.context.deleteBuffer(this.zs), delete this.zs) }, f.prototype.reset = function() { this._b = new SymbolArray, this.uploaded = !1 }, f }()),
|
||
SimpleCircleBucket = function() {
|
||
function f() { this._b = new SimpleSymbolArray, this.uploaded = !1 } return f.prototype.wb = function(f) { var e = this._b.length; return this._b.kb(f[0], f[1]), this._b.length - e }, f.prototype.upload = function(f) { this.uploaded || (this.destroy(), this.uploaded = !0, this.zs = f.fe(this._b.Mb, SimpleSymbolArray.Rb)) }, f.prototype.destroy = function() { this.uploaded = !1, this.zs && this.zs.context && (this.zs.context.deleteBuffer(this.zs), delete this.zs) }, f.prototype.reset = function() { this._b = new SimpleSymbolArray, this.uploaded = !1 }, f }(),
|
||
DistrictLayerStyle = function() { this["stroke-width"] = "", this["coastline-stroke"] = "", this["nation-stroke"] = "", this["province-stroke"] = "", this["city-stroke"] = "", this["county-stroke"] = "", this.fill = "" },
|
||
registry = {};
|
||
|
||
function register(f, e, t) { void 0 === t && (t = {}), Object.defineProperty(e, "yk", { value: f, writable: !1 }), registry[f] = { mk: e, gk: t.gk || [], wk: t.wk || [] } }
|
||
|
||
function serialize(f, e) { if (null == f || "boolean" == typeof f || "number" == typeof f || "string" == typeof f || f instanceof Boolean || f instanceof Number || f instanceof String || f instanceof Date || f instanceof RegExp) return f; if (f instanceof ArrayBuffer) return e && e.push(f), f; if (Browser.imageBitmap && f instanceof ImageBitmap) return e && e.indexOf(f) < 0 && e.push(f), f; if (ArrayBuffer.isView(f)) return n = f, e && e.push(n.buffer), n; if (f instanceof ImageData) return e && e.push(f.data.buffer), f; if (Array.isArray(f)) { for (var t = [], r = 0, i = f; r < i.length; r++) { var o = i[r];
|
||
t.push(serialize(o, e)) } return t } if ("object" != typeof f) throw new Error("can't serialize object of type " + typeof f); var n = f.constructor,
|
||
a = n.yk; if (!a) throw new Error("can't serialize object of unregistered class"); var l, s = void 0; if (n.Wb) s = n.Wb(f, e);
|
||
else { for (var d in s = {}, f) !f.hasOwnProperty(d) || 0 <= registry[a].gk.indexOf(d) || (l = f[d], s[d] = 0 <= registry[a].wk.indexOf(d) ? l : serialize(l, e));
|
||
f instanceof Error && (s.message = f.message) } if (s.$name) throw new Error("$name property is reserved for worker serialization logic."); return "Object" !== a && (s.$name = a), s }
|
||
|
||
function deserialize(f) { if (null == f || "boolean" == typeof f || "number" == typeof f || "string" == typeof f || f instanceof Boolean || f instanceof Number || f instanceof String || f instanceof Date || f instanceof RegExp || f instanceof ArrayBuffer || ArrayBuffer.isView(f) || f instanceof ImageData || Browser.imageBitmap && f instanceof ImageBitmap) return f; if (Array.isArray(f)) return map(f, deserialize); if ("object" != typeof f) throw new Error("can't deserialize object of type " + typeof f); var e = f.$name || "Object",
|
||
t = registry[e].mk; if (!t) throw new Error("can't deserialize unregistered class " + e); if (t.Gb) return t.Gb(f); for (var r = Object.create(t.prototype), i = 0, o = Object.keys(f); i < o.length; i++) { var n, a = o[i]; "$name" !== a && (n = f[a], r[a] = 0 <= registry[e].wk.indexOf(a) ? n : deserialize(n)) } return r }
|
||
register("Object", Object), register("LineArrayBuffer", LineArrayBuffer), register("TriangleIndexArray", TriangleIndexArray), register("TriangleIndexArrayUint", TriangleIndexArrayUint), register("PolylineBucket", PolylineBucket), register("LinesIndexArray", LinesIndexArray), register("LinesIndexArrayUint", LinesIndexArrayUint), register("FillArray", FillArray), register("PolygonBucket", PolygonBucket), register("CircleBucket", CircleBucket), register("SymbolArray", SymbolArray), register("FillExtrusionBucket", FillExtrusionBucket), register("FillExtrusionArray", FillExtrusionArray), register("SmartArrayBuffer", SmartArrayBuffer), register("Color", Color), register("Segements", NebulaSegements), register("VectorTileSegements", VectorTileSegements), register("VTLineSegement", VTLineSegement), register("LineSegement", LineSegement), register("PolygonSegements", PolygonSegements), register("VectorTile", VectorTile$1), register("VectorTileLayer", VectorTileLayer), register("VectorTileFeature", VectorTileFeature), register("Pbf", Pbf), register("StyleOptionsBuilding", StyleOptionsBuilding), register("DistrictStyleOptions", DistrictLayerStyle), register("MapboxSegements", MapboxSegements), register("MBLineSegement", MBLineSegement), register("ImageDataWraper", ImageDataWraper), register("TileCoord", TileCoord), register("Tile", Tile), register("StyleParser", StyleParser); var LabelTextStyle = function() {
|
||
function f(f) { this.origin = f } return f.BV = function(f, e) { var t = DangerousFontSize,
|
||
r = void 0 === (r = f.fontSize) ? 12 : r,
|
||
i = f.fillColor,
|
||
o = f.strokeColor,
|
||
n = void 0 === (n = f.strokeWidth) ? 0 : n,
|
||
a = void 0 === (a = f.backgroundColor) ? 0 : a,
|
||
f = f.borderColor,
|
||
i = labelsUtil.Yj(Util.color2RgbaArray(void 0 === i ? [0, 0, 0, 1] : i)),
|
||
a = a ? labelsUtil.Yj(Util.color2RgbaArray(a)) : [0, 0, 0, 0],
|
||
o = labelsUtil.Yj(Util.color2RgbaArray(o), [.988, .988, .988, 1]),
|
||
f = labelsUtil.Yj(Util.color2RgbaArray(f), [.988, .988, .988, 1]),
|
||
l = (r = r || 12) < 10 ? .78125 : 205 / 256,
|
||
s = 0,
|
||
t = (n && (s = l * (1 - (10 < n * e ? 10 : n) / 10.1)), n = 1.4142 * (t < r || 1 < e ? 1.7 : 1.5) / r, l + 1.5 / 256 * (e - 1)); return (r = new Float32Array(28)).set(i, 0), r.set(o, 4), r[8] = n, r[9] = s, r[10] = t, r.set(a, 11), r.set(f, 15), r[19] = 1, r.set(i, 20), r.set(o, 24), r }, f.prototype.GV = function(f) { switch (f) {
|
||
case "fillColor":
|
||
return this.origin.slice(0, 4);
|
||
case "strokeColor":
|
||
return this.origin.slice(4, 8);
|
||
case "backgroundColor":
|
||
return this.origin.slice(11, 15);
|
||
case "borderColor":
|
||
return this.origin.slice(15, 19);
|
||
case "u_gamma":
|
||
return this.origin[8];
|
||
case "u_borderBuffer":
|
||
return this.origin[9];
|
||
case "u_buffer":
|
||
return this.origin[10];
|
||
case "u_fontSizeFactor":
|
||
return this.origin[19];
|
||
case "u_highlightFillColor":
|
||
return this.origin.slice(20, 24);
|
||
case "u_highlightStrokeColor":
|
||
return this.origin.slice(24, 28);
|
||
default:
|
||
return } }, f.prototype.VV = function(f, e) { switch (f) {
|
||
case "u_fontSizeFactor":
|
||
this.origin[19] = e; break;
|
||
case "fillColor":
|
||
this.origin.set(e, 0); break;
|
||
case "strokeColor":
|
||
this.origin.set(e, 4); break;
|
||
case "backgroundColor":
|
||
this.origin.set(e, 11); break;
|
||
case "borderColor":
|
||
this.origin.set(e, 8); break;
|
||
case "u_highlightFillColor":
|
||
this.origin.set(e, 20); break;
|
||
case "u_highlightStrokeColor":
|
||
this.origin.set(e, 24) } }, f }(),
|
||
LabelBucket = (register("LabelTextStyle", LabelTextStyle), function() {
|
||
function f(f) { this.DO = { rp: [], pp: [], bd: [], up: 0 }, this.ZO = [], this.options = {}, this.Gj = {}, this.Hj = {}, this.Vj = {}, this.QO = {}, this.tI = {}, this.Fs = {}, this.$j = 0, this.qO = {}, this.$O = 0, this.rI = {}, this.iO = "inner", this._id = Util.stamp(this), this.Mf = f.R_, this.ac = f.z_, this.io = f.canvas, this.NT = f.Nz } return f.prototype.rQ = function(f, e) { var t = void 0 === (t = e.from) ? "inner" : t,
|
||
r = CONSTS.ud,
|
||
f = (labelsUtil.zj(this, f), this.iO = t, this.Mf && "SDFManagerBase" !== this.Mf.CLASS_NAME),
|
||
i = this.DO,
|
||
o = (f && (i.rp = new Float32Array(this.$j * r * 6)), this.Gj),
|
||
n = this.Hj,
|
||
a = this.Vj; if (!n || !a) return null; var t = assign(this.options, e),
|
||
l = this.RO(o),
|
||
s = isUndefined(t.opacity) ? 1 : t.opacity; if (f) { for (var d = 0, c = 0, u = 0; u < l.length; u++) { for (var y = l[u], b = void 0, p = 0, h = y; p < h.length && !((b = n[h[p]]) && b.text && b.text.style); p++); var S, v = { vd: [] },
|
||
g = this.ym().KO;
|
||
b && b.text && b.text.style ? (S = b.text.style || {}, v.vd = new LabelTextStyle(LabelTextStyle.BV(S, void 0 === g ? 1 : g))) : (v.vd = new LabelTextStyle(new Float32Array(28)), v.vd.VV("u_fontSizeFactor", 1)), S = c, v.start = S; var M = (g = o[y[0]]).opts || {},
|
||
g = (g.data || {}).id || "",
|
||
w = isUndefined(w = M.opacity) ? 1 : w,
|
||
m = M.icon && 1 < M.icon.length || M.richText && M.richText.image ? "rich-icon_" + g : M.icon && M.icon[0] && M.icon[0].image;
|
||
v.opacity = w, v.rotation = M.rotation, v.opacity *= s, i.pp.push(v), v.dp = []; for (var k = 0, x = y; k < x.length; k++) { var T = x[k],
|
||
A = o[T].CO || [],
|
||
_ = { height: o[T] && o[T].opts.height || 0, from: e.from, angle: o[T] && o[T].data.rotation || 0 },
|
||
P = this.PO(T, a[T], n[T], i, _),
|
||
I = this.zV(T, a[T], n[T], o[T], i, _, A),
|
||
A = this.BO(T, a[T], n[T], o[T], i, A, _);
|
||
v.dp.push({ id: T, Rd: A, icon: P, bg: I, kd: _ = 6 * (A + P + I) }), c += _ * r }
|
||
v.end = c, v.pd = m, d += g = c - S, i.bd.push(g) }
|
||
i.up = d } return i.Fz = l, this.DO = i }, f.prototype.destroy = function() {}, f.prototype.ym = function() { return this.gs.aO() }, f.prototype.zO = function(f) { var e; return f ? this.qO[f] || (e = labelsUtil.Kj(parseInt(f, 10)), this.qO[f] = e, this.qO[f]) : [] }, f.prototype.RO = function(f) { var e, t, r, i, o, n, a, l, s = {},
|
||
d = this.Gj,
|
||
c = this.iO; for (e in f) f.hasOwnProperty(e) && (r = (t = d[e]).data || {}, i = (n = t.opts || {}).zIndex, o = n.forceShow, p = r.rank, p = o ? p - 1e5 : p, r = isUndefined(n.opacity) ? 1 : n.opacity, a = void 0 === (a = (o = this.Hj[e] || {}).text) ? {} : a, o = o.icon, n = n.richText, s[i = ("labelsLayer" === c ? i || p : i) || 1] = s[i] || {}, a = a && a.style || "", l = void 0, "labelsLayer" === c ? (l = a ? labelGroup.nT(a) + r : l, n && n.hS ? l += o && o[0] && o[0].image && o[0].image.currentSrc ? o[0].image.currentSrc : "" : l += o && o[0] && o[0].image ? o[0].image : "") : l = t.data.extData.Lp ? (t.data.extData.Lp << 16) + t.data.extData.Ap : a ? labelGroup.nT(a) + r : "-1-" + r, s[i][l] || (s[i][l] = []), s[i][l].push(e)); for (var u = [], y = 0, b = labelsUtil.rank(Object.keys(s)); y < b.length; y++)
|
||
for (var p, h = s[p = b[y]], S = 0, v = Object.keys(h).sort(); S < v.length; S++) { var g = v[S];
|
||
u.push(h[g]) }
|
||
return u }, f.prototype.WO = function(f, e) { var t = Util.WorldAxesCenter; return [f - t.x, e - t.y] }, f.prototype.GO = function(f) { return f }, f.prototype.HO = function(f, e, t, r, i) { var o, n, a = i.VO,
|
||
l = void 0 === (l = i.type) ? EnumLabelFragType.icon : l,
|
||
s = i.zooms,
|
||
d = i.height,
|
||
e = void 0 === (e = e.icon) ? [] : e,
|
||
c = CONSTS.ud,
|
||
u = this.$O,
|
||
y = 0,
|
||
b = 0,
|
||
p = ((p = this.ac.getImage(t.image)) && (y = p.startX || 0, b = p.startY || 0), a[0]),
|
||
a = a[1],
|
||
h = s[0],
|
||
s = s[1],
|
||
S = exports.cY.icon,
|
||
e = e.anchorOffset,
|
||
v = t.size,
|
||
g = t.clipSize,
|
||
M = t.clipOrigin,
|
||
w = v[0],
|
||
v = v[1],
|
||
m = g[0],
|
||
g = g[1],
|
||
k = M[0],
|
||
M = M[1],
|
||
x = (e = this.GO(e))[0] || 0,
|
||
e = e[1] || 0,
|
||
t = ((t = t.offset) && (n = t instanceof Array || void 0 === t.x || void 0 === t.y ? (o = t[0], t[1]) : (o = t.x, t.y)), y + k),
|
||
y = b + M,
|
||
k = (void 0 !== o && (x += o), void 0 !== n && (e += n), -i.angle * Math.PI / 180 || 0),
|
||
b = [x, e, t, y, p, a, S, l, h, s, d, k, 0, x + w, e, t + m, y, p, a, S, l, h, s, d, k, 0, x, v + e, t, y + g, p, a, S, l, h, s, d, k, 0, x + w, e, t + m, y, p, a, S, l, h, s, d, k, 0, x + w, v + e, t + m, y + g, p, a, S, l, h, s, d, k, 0, x, v + e, t, y + g, p, a, S, l, h, s, d, k, 0]; try { r.set(b, u), this.$O += 6 * c } catch (f) { console.warn("createIconVertex out of bounds") } }, f.prototype.PO = function(f, e, t, r, i) { if (!e || !t) return 0; var o = e.icon; if (!(t = void 0 === (t = t.icon) ? [] : t).length || !t[0].image) return 0; for (var n = (o = (void 0 === o ? {} : o).origin)[0], a = o[1], l = (o[2], this.WO(n, a)), s = i.height, d = i.angle, c = 0, u = t; c < u.length; c++) { var y = u[c];
|
||
this.HO(f, e, y, r.rp, { VO: l, zooms: y.zooms, height: s, angle: d }), delete y.clipOrigin, delete y.clipSize, delete y.size, delete y.image, delete y.type, delete y.anchor, delete y.retina } return t.length }, f.prototype.YO = function(f, e, t, r, i) { var o = i.VO,
|
||
n = void 0 === (n = i.type) ? EnumLabelFragType.bg : n,
|
||
a = i.zooms,
|
||
l = i.height,
|
||
s = CONSTS.ud,
|
||
d = CONSTS.Kp,
|
||
c = this.$O,
|
||
e = e.padding,
|
||
u = o[0],
|
||
o = o[1],
|
||
y = a[0],
|
||
a = a[1],
|
||
b = e.w,
|
||
p = e.h,
|
||
d = e.offsetX - d.buffer,
|
||
e = e.offsetY,
|
||
i = -i.angle * Math.PI / 180 || 0; if (r.set([d, e, 0, 0, u, o, 0, n, y, a, l, i, 0, d + b, e, 0, 0, u, o, 0, n, y, a, l, i, 0, d, p + e, 0, 0, u, o, 0, n, y, a, l, i, 0, d + b, e, 0, 0, u, o, 0, n, y, a, l, i, 0, d + b, p + e, 0, 0, u, o, 0, n, y, a, l, i, 0, d, p + e, 0, 0, u, o, 0, n, y, a, l, i, 0], c), this.$O += 6 * s, c = this.$O, n = t.text.style.borderWidth) { for (var h = [d, e, b, p, u, o, n, y, a, l, i], S = 0; S < 4; S++) h[11] = S, this.sT(h, r, c), c += 6 * s;
|
||
this.$O = c } }, f.prototype.sT = function(f, e, t) { var r = (f = void 0 === f ? {} : f)[0],
|
||
i = f[1],
|
||
o = f[2],
|
||
n = f[3],
|
||
a = f[4],
|
||
l = f[5],
|
||
s = f[6],
|
||
d = f[7],
|
||
c = f[8],
|
||
u = f[9],
|
||
y = f[10],
|
||
f = f[11],
|
||
b = EnumLabelFragType.tq,
|
||
p = 0,
|
||
h = 0,
|
||
S = 0,
|
||
v = 0,
|
||
g = 0,
|
||
M = 0,
|
||
w = 0,
|
||
m = 0; switch (f) {
|
||
case 0:
|
||
v = h = i - s, g = p = r + 0, w = S = r + o, m = M = i + 0; break;
|
||
case 1:
|
||
S = (p = r + o) + s, v = h = i - s, w = (g = r + o) + s, m = M = i + n + s; break;
|
||
case 2:
|
||
g = p = r + 0, w = S = r + o, m = M = (v = h = i + n) + s; break;
|
||
case 3:
|
||
p = r - s, v = h = i - s, g = (S = r) - s, w = r, m = M = i + n + s }
|
||
e.set([p, h, 0, 0, a, l, 0, b, d, c, u, y, 0, S, v, 0, 0, a, l, 0, b, d, c, u, y, 0, g, M, 0, 0, a, l, 0, b, d, c, u, y, 0, S, v, 0, 0, a, l, 0, b, d, c, u, y, 0, g, M, 0, 0, a, l, 0, b, d, c, u, y, 0, w, m, 0, 0, a, l, 0, b, d, c, u, y, 0], t) }, f.prototype.UO = function(f, e, t, r, i) { var o, n, a, l, s, d; return e && t && (o = CONSTS.Mp, n = CONSTS.Rp, d = e.text, a = (t.text || {}).zooms, t.text) && d.origin ? (l = (d = d.origin)[0], s = d[1], d[2], d = i.height, this.YO(f, e, t, r.rp, { VO: [l, s], zooms: void 0 === a ? [o, n] : a, height: d }), i = 1, t.text.style.borderWidth && (i += 4), i) : 0 }, f.prototype.zV = function(f, e, t, r, i, o, n) { if (!e || !t) return 0; var a = CONSTS.Mp,
|
||
l = CONSTS.Rp,
|
||
d = e.text.offset,
|
||
u = (c = (s = t).text || {}).style;
|
||
c.type; var y = void 0 === (y = c.direction) ? "left" : y,
|
||
a = void 0 === (c = c.zooms) ? [a, l] : c; if (!s.text || !s.text.style) return 0; if (n.length, l = !1 === (u = void 0 === u ? {} : u).fold ? 100 : 6, c = this.Mf.lineBreak(s.text.txt, { fontSize: u.fontSize, CO: r.CO, type: r.data && r.data.BG || "ch", fj: l, from: o.from }), n = { direction: y, size: u.fontSize, yO: s.icon.length && s.icon[0].image }, s = (l = (r = e.text).origin)[0], e = l[1], l[2], !t.text || !r.origin) return 0; var l = [s, e],
|
||
r = o.height,
|
||
s = EnumLabelFragType.bg,
|
||
b = CONSTS.ud,
|
||
p = this.$O,
|
||
e = l[0],
|
||
l = l[1],
|
||
h = a[0],
|
||
a = a[1],
|
||
S = i.rp,
|
||
i = c.maxWidth + 6,
|
||
u = u.fontSize * c.width.length + 8,
|
||
c = this.XV(i, y, n.yO),
|
||
d = [y = d[0] + c[0] - 1, n = d[1] - 2, 0, 0, e, l, 0, s, h, a, r, c = -o.angle * Math.PI / 180 || 0, 0, y + i, n, 0, 0, e, l, 0, s, h, a, r, c, 0, y, u + n, 0, 0, e, l, 0, s, h, a, r, c, 0, y + i, n, 0, 0, e, l, 0, s, h, a, r, c, 0, y + i, u + n, 0, 0, e, l, 0, s, h, a, r, c, 0, y, u + n, 0, 0, e, l, 0, s, h, a, r, c, 0]; try { S.set(d, p), this.$O += 6 * b, p = this.$O } catch (f) { console.warn("drawBg2 is out of bounds") } if (o = t.text.style.borderWidth) { for (var v = [y, n, i, u, e, l, o, h, a, r, c], g = 0; g < 4; g++) v[11] = g, this.sT(v, S, p), p += 6 * b; return this.$O = p, 5 } return 1 }, f.prototype.CT = function(f, e) { return this.Mf ? this.Mf.measureText(f, e) : this.NT ? (this.NT.font = (e || 12) + "px", this.NT.measureText(f.join("")).width) : 0 }, f.prototype.XO = function(f, e) { var t = CONSTS.JM,
|
||
t = void 0 === (r = (e = void 0 === e ? {} : e).direction) ? t.LEFT : r,
|
||
r = e.size,
|
||
e = void 0 !== (e = e.yO) && e,
|
||
f = this.CT(f = void 0 === f ? [] : f, void 0 === r ? DangerousFontSize : r); return this.XV(f, t, e) }, f.prototype.XV = function(f, e, t) { void 0 === t && (t = !1); var r = 0,
|
||
i = 0; switch (e) {
|
||
case (t = CONSTS.JM).LEFT:
|
||
r = -f, i = 0; break;
|
||
case t.QM:
|
||
i = r = 0; break;
|
||
case t.ZM:
|
||
case t.tj:
|
||
r = -f / 2, i = 0; break;
|
||
case t.ij:
|
||
case t.nj:
|
||
r = -f / 2, i = 0; break;
|
||
default:
|
||
i = r = 0 } return [r, i] }, f.prototype.JO = function(f, e, t, r) { var i = CONSTS.ud,
|
||
o = this.$O,
|
||
n = r.size,
|
||
a = r.VO,
|
||
l = void 0 === (l = r.type) ? EnumLabelFragType.text : l,
|
||
s = (r.id, r.zooms),
|
||
d = r.height,
|
||
c = CONSTS.Kp; if (u = this.Mf.mz(e)) { var y = u.index,
|
||
b = u.pos,
|
||
u = u.char,
|
||
p = a[0],
|
||
a = a[1],
|
||
h = s[0],
|
||
s = s[1],
|
||
e = (u || (console.log("!metric", e, String.fromCharCode(e)), u = this.Mf.mz(32).char), n / c.size),
|
||
n = u[0],
|
||
S = u[1],
|
||
v = (u[2], u[3], u[4], u[5]),
|
||
g = u[6],
|
||
c = c.buffer; if (0 < n && 0 < S) { var m = (M = t.x) - c * e,
|
||
M = +(M + ((n += 2 * c) - c) * e),
|
||
k = +((w = t.y) + g * e),
|
||
w = +(w + ((S += 2 * c) + g) * e),
|
||
c = 0,
|
||
x = 0,
|
||
x = [m, k, c = (c += b.startX) + v, v = (x += b.startY) + g, p, a, y, l, h, s, d, b = -r.angle * Math.PI / 180 || 0, 0, M, k, c + n, v, p, a, y, l, h, s, d, b, 0, m, w, c, v + S, p, a, y, l, h, s, d, b, 0, m, w, c, v + S, p, a, y, l, h, s, d, b, 0, M, k, c + n, v, p, a, y, l, h, s, d, b, 0, M, w, c + n, v + S, p, a, y, l, h, s, d, b, 0]; try { f.set(x, o) } catch (f) { console.warn("createTextVertex is out of bounds") }
|
||
this.$O += 6 * i }
|
||
t.x = t.x + (u[0] + CONSTS.ic) * e } }, f.prototype.BO = function(f, e, t, r, i, o, n) { if (!(e && t && t.text && t.text.txt)) return 0; var a = CONSTS.Mp,
|
||
l = CONSTS.Rp,
|
||
s = (e = e.text).origin,
|
||
d = e.offset,
|
||
c = (e = t.text || {}).style;
|
||
e.type; var u = void 0 === (u = e.direction) ? "left" : u,
|
||
y = void 0 === (e = e.zooms) ? [a, l] : e,
|
||
b = o,
|
||
a = s[0],
|
||
l = s[1]; if (s[2], !t.text || !t.text.style) return 0; for (var p = b.length, h = p, e = !1 === (c = void 0 === c ? {} : c).fold ? 100 : 6, S = ((o = this.Mf.lineBreak(t.text.txt, { fontSize: c.fontSize, CO: (r = void 0 === r ? {} : r).CO, type: r.data && r.data.BG || "ch", fj: e, from: n.from })).lines.length, o.oQ), v = c.fontSize, g = { direction: u, size: v, yO: t.icon.length && t.icon[0].image }, M = [a, l], w = { x: 0, y: 0 }, m = n.height, k = n.angle, x = -1, T = 0, A = 0; A < p; A++) { var _ = b[A],
|
||
P = this.eQ(S, T),
|
||
I = (T += _.split("|").length, this.nQ(b, S[P], S[P + 1])),
|
||
I = b.slice.apply(b, I),
|
||
I = this.XO(I, g),
|
||
I = vector.add(d, I); if (0 === P && 0 === A && (w.x = I[0], w.y = I[1]), P && (w.y = I[1] + (v + 3) * P, x !== P)) { if ("32" === _) { h--; continue }
|
||
w.x = I[0] }
|
||
x = P, this.JO(i.rp, _, w, { size: v, VO: M, id: f, zooms: y, height: m, angle: k }) } return h }, f.prototype.nQ = function(f, e, t) { for (var r = 0, i = 0, o = 0, n = f.length, a = 0; a < n; a++) { for (var l = f[a].split("|").length, s = 0; s < l; s++) { var d = o + s;
|
||
d === e && (r = a), d === t && (i = a) }
|
||
o += l } return [r, i = o <= t ? n : i] }, f.prototype.eQ = function(f, e) { for (var t = (f = void 0 === f ? [] : f).length, r = 0; r < t - 1; r++)
|
||
if (e >= f[r] && e < f[r + 1]) return r;
|
||
return 0 }, f }()),
|
||
DefaultLabelsLayerOpts = { opacity: 1, collision: !0, animation: !0 },
|
||
Labels = function() {
|
||
function f(f) { if (this.CLASS_NAME = "AMap.LabelsLayer", this.Gj = {}, this.Hj = {}, this.Vj = {}, this.Fs = {}, this.Es = {}, this.Wj = {}, this.$j = 0, this.zp = {}, this.render = null, this.$8t = [], this.eI = {}, this.nI = [], this.cI = !1, this.iI = !1, this.iO = "", this.cI = !1, this._opts = assign({}, DefaultLabelsLayerOpts, { opacity: f.opacity }), this.Mf = f.R_, this.ac = f.z_, this.PN = f.info || {}, !this.Mf || "SDFManagerBase" === this.Mf.CLASS_NAME) try { var e = this.io = document.createElement("canvas"),
|
||
t = void 0;
|
||
e && (t = this.NT = e.getContext("2d")), f.canvas = e, f.Nz = t } catch (f) { console.log("canvas 初始化失败") }
|
||
this.sI = new LabelPlacement(f), this.fI = new LabelBucket(f) } return f.prototype.Ns = function(f, e) { var t = (e = void 0 === e ? {} : e).zoom,
|
||
r = e.center,
|
||
i = e.from; return this.nI = f, this.iI = !0, this.iO = i, this.eI.zoom = t || 20, this.oI(), this.hu = r, this.uI(e) }, f.prototype.aO = function() { return this.eI }, f.prototype.zL = function(f) { return this.Wj[f] }, f.prototype.setRichtoImage = function(f) { f && (this.$8t.push(f), this.sI) && this.sI.setRichtoImage(this.$8t) }, f.prototype.uI = function(f) { var e = this.iO,
|
||
e = { center: this.hu, from: e }; if (assign(e, f = void 0 === f ? {} : f), this.sI.nO(this, e), this.$j = this.sI.$j, f = this.fI.rQ(this, e)) { var t, r, i, o, n, a, l, s = {},
|
||
d = {},
|
||
e = f.Fz || {},
|
||
c = (delete f.Fz, this.Gj); if ("inner" !== this.iO) return { Nf: c, style: this.Hj, coords: this.Vj, rp: f, zp: this.zp, Fz: e }; for (t in c) c.hasOwnProperty(t) && (r = c[t], i = this.Vj[t], o = (l = r.data).extData, n = l.position, a = l.name, l = l.rank, s[t] = { data: { position: n, name: a, rank: l, extData: { type: o.type, id: o.id, Lp: o.Lp, Ap: o.Ap, bz: o.bz } } }, d[t] = { origin: i.origin, icon: { anchorOffset: i.icon.anchorOffset, size: i.icon.size }, padding: i.padding }, r.opts) && (s[t].opts = { zooms: r.opts.zooms }); return { Nf: s, style: this.Hj, coords: d, rp: f, zp: this.zp, Fz: e } } }, f.prototype.oI = function() { for (var f = this.nI, e = this.Gj || {}, t = this.Wj, r = this.zp, i = CONSTS.Mp, o = CONSTS.Rp, n = CONSTS.Pp, a = CONSTS.jp, l = 0, s = f; l < s.length; l++) { for (var d = s[l], c = d.data.id, u = d.opts && d.opts.zooms || [], y = void 0 === (y = u[0]) ? i : y, b = void 0 === (u = u[1]) ? o : u, p = isUndefined(t[c]) ? Util.stamp(this) : t[c], h = (c && (t[c] = p), Math.ceil(y - n)); h <= b + a;) r[h] || (r[h] = []), Array.isArray(r[h]) && r[h].push(p), h++;
|
||
e[p] = d, e[p].CO = this.Ws(d), this.hI(d), d.data && d.data.richText && this.k8t(d) } if ("undefined" != typeof Uint32Array)
|
||
for (var S in r) r.hasOwnProperty(S) && (r[S] = new Uint32Array(r[S]));
|
||
this.Gj = e }, f.prototype.k8t = function(f) { if (this.$8t && 0 < this.$8t.length)
|
||
for (var e = this.$8t, t = f.data.id, r = (f.data.richText.content, 0), i = e; r < i.length; r++)
|
||
for (var o = i[r], n = 0, a = Object.keys(o); n < a.length; n++) { var l, s, d = a[n];
|
||
parseInt(d) === t && (l = this.Fs, f.opts.richText = o[d], f.data.richText = o[d], s = t || "") && (l[s] = o[d]) } }, f.prototype.hI = function(f) { var e = this.Fs;
|
||
(f = (f = f.opts.icon) && f.image || "") && (e[f] = 1) }, f.prototype.Ws = function(f) { this.Es; var e = f.data.txt || "",
|
||
f = (f.opts && f.opts.text || {}).$G || [],
|
||
e = labelsUtil.EQ(e, f); return labelsUtil.aQ(e) }, f }(),
|
||
DynamicVerticeStyle = function() {},
|
||
DynamicVertice = function() {
|
||
function t(f, e) { this.zo = f, this.Nf = e.Nf, this.style = e.style, Object.setPrototypeOf(this.style, new DynamicVerticeStyle), this.coords = e.coords, this.rp = e.rp, this.zp = e.zp } return t.Wb = function(f, e) { var t = { zo: f.zo, coords: f.coords, Nf: f.Nf, style: f.style }; return { JSON: JSON.stringify(t), kV: { rp: serialize(f.rp, e), zp: serialize(f.zp, e) } } }, t.Gb = function(f) { var e = JSON.parse(f.JSON); return f.kV.rp.pp = deserialize(f.kV.rp.pp), e.rp = f.kV.rp, e.zp = f.kV.zp, new t(e.zo, e) }, t.prototype.upload = function(f) { this.buffer || (this.buffer = f.fe(this.rp.rp, CONSTS.sp)) }, t.prototype.destroy = function() { this.buffer && (this.buffer.context.deleteBuffer(this.buffer), delete this.buffer) }, t }();
|
||
|
||
function feature(f, e, t) { var r = { type: "Feature" }; return 0 !== (t = void 0 === t ? {} : t).id && !t.id || (r.id = t.id), t.Ro && (r.Ro = t.Ro), r.properties = e || {}, r.geometry = f, r }
|
||
|
||
function polygon(f, e, t) { void 0 === t && (t = {}); for (var r = 0, i = f; r < i.length; r++) { var o = i[r]; if (o.length < 4) throw new Error("Each LinearRing of a Polygon must have 4 or more Positions."); for (var n = 0; n < o[o.length - 1].length; n++)
|
||
if (o[o.length - 1][n] !== o[0][n]) throw new Error("First and last Position are not equivalent.") } return feature({ type: "Polygon", coordinates: f }, e, t) }
|
||
|
||
function lineString(f, e, t) { if (void 0 === t && (t = {}), f.length < 2) throw new Error("coordinates must be an array of two or more positions"); return feature({ type: "LineString", coordinates: f }, e, t) }
|
||
|
||
function multiLineString(f, e, t) { return feature({ type: "MultiLineString", coordinates: f }, e, t = void 0 === t ? {} : t) }
|
||
|
||
function multiPolygon(f, e, t) { return feature({ type: "MultiPolygon", coordinates: f }, e, t = void 0 === t ? {} : t) }
|
||
|
||
function getGeom(f) { return "Feature" === f.type ? f.geometry : f }
|
||
|
||
function lineclip(f, e, t) { var r, i, o, n, a, l = f.length,
|
||
s = bitCode(f[0], e),
|
||
d = []; for (t = t || [], r = 1; r < l; r++) { for (n = f[r - 1], i = o = bitCode(a = f[r], e);;) { if (!(s | i)) { d.push(n), i !== o ? (d.push(a), r < l - 1 && (t.push(d), d = [])) : r === l - 1 && d.push(a); break } if (s & i) break;
|
||
s ? s = bitCode(n = intersect(n, a, s, e), e) : i = bitCode(a = intersect(n, a, i, e), e) }
|
||
s = o }
|
||
d.length && t.push(d) }
|
||
|
||
function polygonclip(f, e) { for (var t, r, i, o, n, a, l = 1; l <= 8; l *= 2) { for (t = [], i = !(bitCode(r = f[f.length - 1], e) & l), o = 0; o < f.length; o++)(a = !(bitCode(n = f[o], e) & l)) !== i && t.push(intersect(r, n, l, e)), a && t.push(n), r = n, i = a; if (!(f = t).length) break } return t }
|
||
|
||
function intersect(f, e, t, r) { return 8 & t ? [f[0] + (e[0] - f[0]) * (r[3] - f[1]) / (e[1] - f[1]), r[3]] : 4 & t ? [f[0] + (e[0] - f[0]) * (r[1] - f[1]) / (e[1] - f[1]), r[1]] : 2 & t ? [r[2], f[1] + (e[1] - f[1]) * (r[2] - f[0]) / (e[0] - f[0])] : 1 & t ? [r[0], f[1] + (e[1] - f[1]) * (r[0] - f[0]) / (e[0] - f[0])] : null }
|
||
|
||
function bitCode(f, e) { var t = 0; return f[0] < e[0] ? t |= 1 : f[0] > e[2] && (t |= 2), f[1] < e[1] ? t |= 4 : f[1] > e[3] && (t |= 8), t }
|
||
|
||
function bboxClip(f, e) { var t = getGeom(f),
|
||
r = t.type,
|
||
i = "Feature" === f.type ? f.properties : {},
|
||
o = t.coordinates; switch (r) {
|
||
case "LineString":
|
||
case "MultiLineString":
|
||
var n = []; return (o = "LineString" === r ? [o] : o).forEach(function(f) { lineclip(f, e, n) }), 1 === n.length ? lineString(n[0], i) : multiLineString(n, i);
|
||
case "Polygon":
|
||
return polygon(clipPolygon(o, e), i);
|
||
case "MultiPolygon":
|
||
return multiPolygon(o.map(function(f) { return clipPolygon(f, e) }), i);
|
||
default:
|
||
throw new Error("geometry " + r + " not supported") } }
|
||
|
||
function clipPolygon(f, e) { for (var t = [], r = 0, i = f; r < i.length; r++) { var o = polygonclip(i[r], e);
|
||
0 < o.length && (o[0][0] === o[o.length - 1][0] && o[0][1] === o[o.length - 1][1] || o.push(o[0]), 4 <= o.length) && t.push(o) } return t }
|
||
register("DynamicVertice", DynamicVertice); var DEF_NDS_MAX_COORD = 2147483648,
|
||
DEF_DEGREE_MAX_COORD = 180,
|
||
MKT = 20037508.342789244;
|
||
|
||
function tileInnerCoord2LngLat(f, e, t, r) { var o = t + (i = getTileSWCoord(f, e))[0],
|
||
i = r + i[1]; return t = o << (f = getCoordShift(f.z, e)), r = i << f, [coord2Degree(t = 0 < o && t < 0 ? DEF_NDS_MAX_COORD - 1 : t), coord2Degree(r)] }
|
||
|
||
function LngLat2TileInnerCoord(f, e, t, r, i) { var t = degree2Coord(t),
|
||
r = degree2Coord(r),
|
||
o = getCoordShift(i.z, e),
|
||
r = r >> o; return [(t = t >> o) - (o = getTileSWCoord(i, e))[0], r - o[1]] } var cache = {};
|
||
|
||
function lnglat2WGSCoord2(f) { var e, t; return cache[f] || (t = 33 - f, e = degree2Coord(180) / (1 << t), t = degree2Coord(90) / (1 << t), e = 0 < e ? Math.floor(.5 + e) : Math.floor(e - .5), t = 0 < t ? Math.floor(.5 + t) : Math.floor(t - .5), cache[f] = [2 * e, 2 * t]), cache[f] }
|
||
|
||
function getWorldSize(f, e) { return lnglat2WGSCoord2(f + e) }
|
||
|
||
function getTileSWCoord(f, e) { var t = (e = getWorldSize(f.z, e))[0],
|
||
e = e[1],
|
||
r = 1 << f.z; return [-t / 2 + f.x * t / r, e / 2 - (f.y + 1) * e / r] }
|
||
|
||
function degree2Coord(f) { return Math.floor(f * DEF_NDS_MAX_COORD / DEF_DEGREE_MAX_COORD + .5) }
|
||
|
||
function coord2Degree(f) { return f * DEF_DEGREE_MAX_COORD / DEF_NDS_MAX_COORD }
|
||
|
||
function getCoordShift(f, e) { return 33 - e - f }
|
||
|
||
function getMVTTileBbox(f, e, t, r, i) { return [f * (i = void 0 === i ? 256 : i) * r - MKT, -((e + 1) * i * r - MKT), (f + 1) * i * r - MKT, -(e * i * r - MKT)] } var MapboxVTSourceWorker = function() {
|
||
function f() {} return f.prototype.bw = function(f, e, t, r, i, o) { var n = this,
|
||
a = { point: {}, line: {}, polygon: {}, polyhedron: {}, label: {} },
|
||
l = new XMLHttpRequest; return l.onreadystatechange = function() { var f;
|
||
4 !== l.readyState || 200 !== l.status && 204 !== l.status || (a.point = n.AX(i.point), a.line = n.AX(i.line), a.polygon = n.AX(i.polygon), a.polyhedron = n.AX(i.polyhedron), a.label = n.AX(i.label), f = new VectorTile$1(new Pbf(new Uint8Array(l.response))), f = n.Ow(f, { x: e.x, y: e.y, z: e.z, projectionId: t, tileSize: r }, a), o(null, exports.Ln({ zo: e }, f))) }, l.responseType = "arraybuffer", l.open("GET", f, !0), l.send(), { cancel: function() { l.abort() } } }, f.prototype.mX = function(f, e, t) { var r = { point: {}, line: {}, polygon: {}, polyhedron: {}, label: {} };
|
||
r.point = this.AX(e.point), r.line = this.AX(e.line), r.polygon = this.AX(e.polygon), r.polyhedron = this.AX(e.polyhedron), r.label = this.AX(e.label), this.xw(f, r, !0), this.zw(f, r, !0), this.nz(f, r, !0), this.SX(f, r, !0), this.i1(f, r, !0), t && t(null, f) }, f.prototype.Ow = function(c, f, e) { var t = f.x,
|
||
r = f.y,
|
||
i = f.z,
|
||
o = f.tileSize,
|
||
n = f.projectionId,
|
||
u = (c.z = i, c.x = t, c.y = r, ProjectionManager.getProjection(n)),
|
||
f = u.getResolution(i),
|
||
a = (c.projectionId = n, c.Ro = getMVTTileBbox(t, r, i, f, o), c.zS = lcs.getLocalByCoord([c.Ro[0], c.Ro[1]]), c.visible = { point: {}, line: {}, polygon: {}, label: {}, polyhedron: {} }, ProjectionManager.getProjection(n).getResolution(i)); return forIn(c.layers, function(d) { var f = d.Cw,
|
||
e = (d.Ah = [], d.scale = a * o / d.extent, transform[n].Xs(o * t, o * r, i));
|
||
d.ox = e[0], d.oy = e[1], forEach(f, function(f, e) { if ((f = d.Gw(e)).Dw(), d.Ah.push(f), f.lines && 0 < f.lines.length) { f.Rw = [], f.n1 = []; for (var t = 0, r = f.lines.length; t < r; t++) { for (var i = [], o = [], n = 0, a = f.lines[t].length; n < a; n++) { var l = [d.ox + d.scale * f.lines[t][n][0], d.oy - d.scale * f.lines[t][n][1]],
|
||
s = [l[0] - c.zS.center[0], l[1] - c.zS.center[1]];
|
||
o.push(u.unproject(l[0], l[1])), i.push(s) }
|
||
f.Rw.push(i), f.n1.push(o) } } }) }), this.uW(c), this.xw(c, e), this.zw(c, e), this.nz(c, e), this.SX(c, e), this.i1(c, e), c }, f.prototype.uW = function(f) { for (var e in f.polygons = {}, f.polygonOut = {}, f.polyhedrons = {}, f.polylines = {}, f.points = {}, f.layers)
|
||
if (f.layers.hasOwnProperty(e)) { for (var t = f.layers[e], r = [], i = [], o = [], n = [], a = [], l = 0; l < t.Ah.length; l += 1) { var s = t.Ah[l]; if (3 == +s.type && s.Rw) { for (var d = s.Rw, c = s.n1, u = [], y = this.g8t(s), b = y.w8t, p = y.height, h = 0; h < d.length; h++) PlaneGeometryUtilInstance.isClockwise(d[h]) ? u.push([h]) : u.length && u[u.length - 1].push(h); for (var S = 0; S < u.length; S++) { var v = u[S]; if (1 < v.length)
|
||
if (b) { for (var g = [], M = [], w = 0; w < v.length; w++) { var m = c[v[w]]; if (A = this.d8t(f, m)) { 0 < w && g.push(M.length / 2); for (var k = [], x = 0; x < A.length; x++) { var T = A[x];
|
||
k.unshift(T[0], T[1]) }
|
||
M.push.apply(M, k) } }
|
||
o.push({ _id_: Util.getGuid("amap_"), properties: s.properties, path: M, LQ: g, height: p }) } else { for (g = [], M = [], w = 0; w < v.length; w++) { var A = d[v[w]]; for (0 < w && g.push(M.length / 2), x = 0; x < A.length; x++) { var _ = A[x];
|
||
M.push(_[0], _[1]) }
|
||
i.push({ properties: s.properties, path: A, _id_: Util.getGuid("amap_") }) }
|
||
r.push({ properties: s.properties, path: M, LQ: g }) }
|
||
else if (b) { if (M = [], m = c[v[0]], A = this.d8t(f, m)) { for (x = 0; x < A.length; x++) { var P = A[x];
|
||
M.unshift(P[0], P[1]) }
|
||
o.push({ _id_: Util.getGuid("amap_"), properties: s.properties, path: M, height: p }) } } else { for (M = [], A = d[v[0]], x = 0; x < A.length; x++) { var I = A[x];
|
||
M.push(I[0], I[1]) }
|
||
r.push({ properties: s.properties, path: M }), i.push({ properties: s.properties, path: A, _id_: Util.getGuid("amap_") }) } } } else if (2 == +s.type && s.Rw)
|
||
for (var C = 0, N = s.Rw.length; C < N; C++) n.push({ properties: s.properties, path: s.Rw[C], _id_: Util.getGuid("amap_") });
|
||
else if (1 == +s.type && s.Rw)
|
||
for (c = s.n1, S = 0; S < s.Rw.length; S++) a.push({ _id_: Util.getGuid("amap_"), properties: s.properties, path: s.Rw[S], lnglat: __spreadArrays(c[0][0]) });
|
||
delete s.n1 }
|
||
f.polygons[e] = r, f.polygonOut[e] = i, f.polyhedrons[e] = o, f.polylines[e] = n, f.points[e] = a }
|
||
delete f.layers }, f.prototype.xw = function(f, e, t) { if (void 0 === t && (t = !1), !f || !f.$c || t) { var r = new VectorTileSegements,
|
||
i = (f.Uc = r, t || (f.$c = new PolylineBucket), e.line.sourceLayer),
|
||
o = f.polylines; if (o)
|
||
for (var n in f.visible.line[i] = [], o)
|
||
if (!i || i === n)
|
||
for (var l = o[n], s = 0, d = l.length; s < d; s++) { var c, u = l[s],
|
||
b = (y = this.Mn(e.line, u.properties)).color,
|
||
p = y.lineWidth,
|
||
h = y.dash,
|
||
y = +(y.visible || !y.filter);
|
||
f.visible.line[i] || (f.visible.line[i] = []), y && f.visible.line[i].push(u._id_), b[3] *= y, t ? r.add(b + ":" + p + ":" + h, 0, u.a1, 0, 22) : (c = (y = f.$c.g0(u.path, { X_: 0, lineJoin: "round", lineCap: "butt" })).Iw, y = y.distance, 0 < c && (u.a1 = c, r.add(b + ":" + p + ":" + h, 0, c, 0, 22), u.distance = y)) } } }, f.prototype.zw = function(f, e, t) { if (void 0 === t && (t = !1), !f || !f.Dc || t) { var r = new VectorTileSegements,
|
||
i = (f.Oc = r, new VectorTileSegements),
|
||
o = (f.Fc = i, t || (f.Dc = new PolygonBucket, f.pX = new PolylineBucket), e.polygon.sourceLayer),
|
||
n = f.polygons; if (n) { for (var a in n)
|
||
if (!o || o === a)
|
||
for (var l = 0, s = (b = n[a]).length; l < s; l++) { var d, c = b[l],
|
||
u = +((p = this.Mn(e.polygon, c.properties)).visible || !p.filter);
|
||
p.color[3] *= u, t ? r.add(p.color + "", 0, c.a1, 0, 22) : 0 < (d = f.Dc.Nx(c.path, c.LQ)) && (c.a1 = d, r.add(p.color + "", 0, d, 0, 22)) }
|
||
var y = f.polygonOut;
|
||
for (a in y)
|
||
if (!o || o === a)
|
||
for (var b, l = 0, s = (b = y[a]).length; l < s; l++) { var p, h, S, v = b[l],
|
||
u = +((p = this.Mn(e.polygon, v.properties)).visible || !p.filter);
|
||
f.visible.polygon[o] || (f.visible.polygon[o] = []), u && f.visible.polygon[o].push(v._id_), p.borderWidth *= u, t ? i.add(p.borderColor + ":" + p.dash + ":" + p.borderWidth, 0, v.a1, 0, 22) : (h = (S = f.pX.g0(v.path, { X_: 0, lineJoin: "round", lineCap: "butt" })).Iw, S = S.distance, 0 < h && (v.a1 = h, i.add(p.borderColor + ":" + p.dash + ":" + p.borderWidth, 0, h, 0, 22), v.distance = S)) } } } }, f.prototype.nz = function(f, e, t) { if (void 0 === t && (t = !1), !f || !f.A_ || t) { var r = new NebulaSegements,
|
||
i = (f.w0 = r, t || (f.A_ = new FillExtrusionBucket), e.polyhedron.sourceLayer),
|
||
o = f.polyhedrons; if (o)
|
||
for (var n in f.visible.polyhedron[i] = [], o)
|
||
if (!i || i === n)
|
||
for (var l = o[n], s = 0, d = l.length; s < d; s++) { var c = l[s],
|
||
u = c.properties,
|
||
y = +((u = this.Mn(e.polyhedron, void 0 === u ? {} : u)).visible || !u.filter);
|
||
f.visible.polyhedron[i] || (f.visible.polyhedron[i] = []), y ? f.visible.polyhedron[i].push(c._id_) : (u.topColor = void 0, u.sideColor = void 0, u.texture = ""), t ? r.add(c._id_, 1e3, c.a1, 0, 22, u.texture, u.topColor, u.sideColor) : 0 < (y = f.A_.tz(c.path, c.height, c.LQ)) && (c.a1 = y, r.add(c._id_, 1e3, y, 0, 22, u.texture, u.topColor, u.sideColor)) } } }, f.prototype.SX = function(f, e, t) { if (void 0 === t && (t = !1), !f || !f.dX || t) { var r = f.IX,
|
||
r = new VectorTileSegements,
|
||
i = (f.IX = r, f.dX = new CircleBucket, e.point.sourceLayer),
|
||
o = f.points; if (o)
|
||
for (var n in f.visible.point[i] = [], o)
|
||
if (!i || i === n)
|
||
for (var l = o[n], s = 0, d = l.length; s < d; s++) { var c = l[s],
|
||
u = this.Mn(e.point, c.properties);
|
||
f.visible.point[i] || (f.visible.point[i] = []), f.visible.point[i].push(c._id_), 0 < (c = f.dX.wb(c.path[0], u)) && r.add("point", 0, c, 0, 22) } } }, f.prototype.i1 = function(f, e, t) { if (void 0 === t && (t = !1), !f || !f.labels || t) { f.labels = []; var r = e.label.sourceLayer,
|
||
i = (f.visible.label[r] = [], f.points[r]); if (i)
|
||
for (var o = 0, n = i.length; o < n; o++) { var a = i[o],
|
||
s = (l = this.g8t(a)).height,
|
||
l = l.w8t,
|
||
d = this.Mn(e.label, a.properties);
|
||
f.visible.label[r].push(a._id_), f.labels.push(exports.Ln(exports.Ln({}, d), { position: l ? __spreadArrays(a.lnglat, [s + 1]) : a.lnglat })) } } }, f.prototype.Mn = function(f, e) { var t, r = { visible: !0, filter: !0 }; for (t in f) { var i = f[t];
|
||
r[t] = "style" === t || "icon" === t || "text" === t ? this.Mn(i, e) : "function" == typeof i ? i()(e, f.injection) : i, -1 < t.toLowerCase().indexOf("color") && (r[t] = Util.color2RgbaArray(r[t])), "filter" === t && (r.filter = this.$X(e, i)) } return r }, f.prototype.AX = function(f) { var e, t = {}; for (e in f) { var r = f[e];
|
||
r.indexOf && -1 < r.indexOf("function") ? (r = r.replace("function", "return function"), t[e] = new Function(r)) : t[e] = "style" === e || "icon" === e || "text" === e ? this.AX(r) : r } return t }, f.prototype.$X = function(f, e) { if (e) { var t = e[0],
|
||
r = e[1],
|
||
i = e[2],
|
||
o = f[t]; switch (r) {
|
||
case "in":
|
||
return -1 < i.indexOf(o);
|
||
case "out":
|
||
return i.indexOf(o) < 0 } } return !0 }, f.prototype.d8t = function(f, e) { var t = f.projectionId,
|
||
r = f.zS,
|
||
f = f.Ro,
|
||
i = ProjectionManager.getProjection(t),
|
||
t = f[0],
|
||
o = f[1],
|
||
n = f[2],
|
||
f = f[3],
|
||
t = __spreadArrays(i.unproject(t, o), i.unproject(n, f)),
|
||
a = null == (o = bboxClip(polygon([e]), t).geometry) ? void 0 : o.coordinates[0]; if (!a) return a; for (var l = [], s = 0; s < a.length; s++) { var d = a[s],
|
||
d = i.project(d[0], d[1]);
|
||
l.push([d[0] - r.center[0], d[1] - r.center[1]]) } return l }, f.prototype.g8t = function(f) { var e = "Y" === (f = f.properties || {})._AS_CUBE && f._HEIGHT_PROP,
|
||
f = e ? +f[f._HEIGHT_PROP] : 0; return { w8t: e, height: f = Number.isNaN(f) || f < 0 ? 0 : f } }, f }(),
|
||
Ring = { read: function(f, e) { return f.nw(Ring.iw, { path: [] }, e) }, iw: function(f, e, t) { 0 === f && t.tw(e.path, !0) }, write: function(f, e) { if (f.path)
|
||
for (var t = 0; t < f.path.length; t++) e.rw(0, f.path[t]) } },
|
||
Building = { read: function(f, e) { return f.nw(Building.iw, { minzoom: 0, maxzoom: 0, path: [], height: 0, ew: "", altitude: 0 }, e) }, iw: function(f, e, t) { 0 === f ? e.minzoom = t.ow() : 1 === f ? e.maxzoom = t.ow() : 2 === f ? e.path.push(Ring.read(t, t.ow() + t.pos)) : 3 === f ? e.height = t.ow() : 4 === f ? e.ew = t.aw() : 5 === f && (e.altitude = t.ow()) }, write: function(f, e) { if (f.minzoom && e.rw(0, f.minzoom), f.maxzoom && e.rw(1, f.maxzoom), f.path)
|
||
for (var t = 0; t < f.path.length; t++) e.fw(2, Ring.write, f.path[t]);
|
||
f.height && e.rw(3, f.height), f.ew && e.uw(4, f.ew), f.altitude && e.rw(5, f.altitude) } },
|
||
BuildingSameStyle = { read: function(f, e) { return f.nw(BuildingSameStyle.iw, { mainkey: 0, subkey: 0, items: [], resolution: 0 }, e) }, iw: function(f, e, t) { 0 === f ? e.mainkey = t.ow() : 1 === f ? e.subkey = t.ow() : 2 === f ? e.items.push(Building.read(t, t.ow() + t.pos)) : 3 === f && (e.resolution = t.ow()) }, write: function(f, e) { if (f.mainkey && e.rw(0, f.mainkey), f.subkey && e.rw(1, f.subkey), f.items)
|
||
for (var t = 0; t < f.items.length; t++) e.fw(2, Building.write, f.items[t]);
|
||
f.resolution && e.rw(3, f.resolution) } },
|
||
buildingLayer = { read: function(f, e) { return f.nw(buildingLayer.iw, { building: [] }, e) }, iw: function(f, e, t) { 0 === f && e.building.push(BuildingSameStyle.read(t, t.ow() + t.pos)) }, write: function(f, e) { if (f.building)
|
||
for (var t = 0; t < f.building.length; t++) e.fw(0, BuildingSameStyle.write, f.building[t]) } },
|
||
Poi = { read: function(f, e) { return f.nw(Poi.IQ, { minzoom: 0, maxzoom: 0, pos: [], cw: "", ew: "", name: "", rank: 0, BQ: "", name_en: "", QQ: "", CQ: "", $G: [], iQ: [], JQ: [] }, e) }, IQ: function(f, e, t) { 0 === f ? e.minzoom = t.ow() : 1 === f ? e.maxzoom = t.ow() : 2 === f ? t.tw(e.pos, !0) : 3 === f ? e.cw = t.aw() : 4 === f ? e.ew = t.aw() : 5 === f ? e.name = t.aw() : 6 === f ? e.rank = t.ow() : 7 === f ? e.BQ = t.aw() : 8 === f ? e.name_en = t.aw() : 9 === f ? e.QQ = t.aw() : 10 === f ? e.CQ = t.aw() : 11 === f ? t.tw(e.$G) : 12 === f ? t.tw(e.iQ) : 13 === f && t.tw(e.JQ) }, write: function(f, e) { if (f.minzoom && e.rw(0, f.minzoom), f.maxzoom && e.rw(1, f.maxzoom), f.pos)
|
||
for (var t = 0; t < f.pos.length; t++) e.rw(2, f.pos[t]); if (f.cw && e.uw(3, f.cw), f.ew && e.uw(4, f.ew), f.name && e.uw(5, f.name), f.rank && e.rw(6, f.rank), f.BQ && e.uw(7, f.BQ), f.name_en && e.uw(8, f.name_en), f.QQ && e.uw(9, f.QQ), f.CQ && e.uw(10, f.CQ), f.$G)
|
||
for (t = 0; t < f.$G.length; t++) e.rw(11, f.$G[t]); if (f.iQ)
|
||
for (t = 0; t < f.iQ.length; t++) e.rw(12, f.iQ[t]); if (f.JQ)
|
||
for (t = 0; t < f.JQ.length; t++) e.rw(13, f.JQ[t]) } },
|
||
PoiSameStyle = { read: function(f, e) { return f.nw(PoiSameStyle.IQ, { mainkey: 0, subkey: 0, items: [], resolution: 0 }, e) }, IQ: function(f, e, t) { 0 === f ? e.mainkey = t.ow() : 1 === f ? e.subkey = t.ow() : 2 === f ? e.items.push(Poi.read(t, t.ow() + t.pos)) : 3 === f && (e.resolution = t.ow()) }, write: function(f, e) { if (f.mainkey && e.rw(0, f.mainkey), f.subkey && e.rw(1, f.subkey), f.items)
|
||
for (var t = 0; t < f.items.length; t++) e.fw(2, Poi.write, f.items[t]);
|
||
f.resolution && e.rw(3, f.resolution) } },
|
||
PoiLayer = { read: function(f, e) { return f.nw(PoiLayer.IQ, { poilabel: [] }, e) }, IQ: function(f, e, t) { 0 === f && e.poilabel.push(PoiSameStyle.read(t, t.ow() + t.pos)) }, write: function(f, e) { if (f.poilabel)
|
||
for (var t = 0; t < f.poilabel.length; t++) e.fw(0, PoiSameStyle.write, f.poilabel[t]) } },
|
||
Ring$1 = { read: function(f, e) { return f.nw(Ring$1.iw, { path: [] }, e) }, iw: function(f, e, t) { 0 === f && t.tw(e.path, !0) }, write: function(f, e) { if (f.path)
|
||
for (var t = 0; t < f.path.length; t++) e.rw(0, f.path[t]) } },
|
||
Region = { read: function(f, e) { return f.nw(Region.iw, { minzoom: 0, maxzoom: 0, path: [], sw: "" }, e) }, iw: function(f, e, t) { 0 === f ? e.minzoom = t.ow() : 1 === f ? e.maxzoom = t.ow() : 2 === f ? e.path.push(Ring$1.read(t, t.ow() + t.pos)) : 3 === f && (e.sw = t.aw()) }, write: function(f, e) { if (f.minzoom && e.rw(0, f.minzoom), f.maxzoom && e.rw(1, f.maxzoom), f.path)
|
||
for (var t = 0; t < f.path.length; t++) e.fw(2, Ring$1.write, f.path[t]);
|
||
f.sw && e.uw(3, f.sw) } },
|
||
RegionSameStyle = { read: function(f, e) { return f.nw(RegionSameStyle.iw, { mainkey: 0, subkey: 0, items: [], resolution: 0 }, e) }, iw: function(f, e, t) { 0 === f ? e.mainkey = t.ow() : 1 === f ? e.subkey = t.ow() : 2 === f ? e.items.push(Region.read(t, t.ow() + t.pos)) : 3 === f && (e.resolution = t.ow()) }, write: function(f, e) { if (f.mainkey && e.rw(0, f.mainkey), f.subkey && e.rw(1, f.subkey), f.items)
|
||
for (var t = 0; t < f.items.length; t++) e.fw(2, Region.write, f.items[t]);
|
||
f.resolution && e.rw(3, f.resolution) } },
|
||
regionLayer = { read: function(f, e) { return f.nw(regionLayer.iw, { region: [] }, e) }, iw: function(f, e, t) { 0 === f && e.region.push(RegionSameStyle.read(t, t.ow() + t.pos)) }, write: function(f, e) { if (f.region)
|
||
for (var t = 0; t < f.region.length; t++) e.fw(0, RegionSameStyle.write, f.region[t]) } },
|
||
Road = { read: function(f, e) { return f.nw(Road.iw, { minzoom: 0, maxzoom: 0, path: [], shield: "", shieldType: 0, name: "", rank: 0, name_en: "", BQ: "", QQ: "", CQ: "", $G: [], iQ: [] }, e) }, iw: function(f, e, t) { 0 === f ? e.minzoom = t.ow() : 1 === f ? e.maxzoom = t.ow() : 2 === f ? t.tw(e.path, !0) : 3 === f ? e.shield = t.aw() : 4 === f ? e.shieldType = t.ow() : 5 === f ? e.name = t.aw() : 6 === f ? e.rank = t.ow() : 7 === f ? e.BQ = t.aw() : 8 === f ? e.name_en = t.aw() : 9 === f ? e.QQ = t.aw() : 10 === f ? e.CQ = t.aw() : 11 === f ? t.tw(e.$G) : 12 === f && (e.id = t.ow()) }, write: function(f, e) { if (f.minzoom && e.rw(0, f.minzoom), f.maxzoom && e.rw(1, f.maxzoom), f.path)
|
||
for (var t = 0; t < f.path.length; t++) e.rw(2, f.path[t]); if (f.shield && e.uw(3, f.shield), f.shieldType && e.rw(4, f.shieldType), f.name && e.uw(5, f.name), f.rank && e.rw(6, f.rank), f.BQ && e.uw(7, f.BQ), f.name_en && e.uw(8, f.name_en), f.QQ && e.uw(9, f.QQ), f.CQ && e.uw(10, f.CQ), f.$G)
|
||
for (t = 0; t < f.$G.length; t++) e.rw(11, f.$G[t]);
|
||
f.id && e.rw(12, f.id) } },
|
||
RoadSameStyle = { read: function(f, e) { return f.nw(RoadSameStyle.iw, { mainkey: 0, subkey: 0, items: [], resolution: 0 }, e) }, iw: function(f, e, t, r) { 0 === f ? e.mainkey = t.ow() : 1 === f ? e.subkey = t.ow() : 2 === f ? e.items.push(Road.read(t, t.ow() + t.pos)) : 3 === f && (e.resolution = t.ow()) }, write: function(f, e) { if (f.mainkey && e.rw(0, f.mainkey), f.subkey && e.rw(1, f.subkey), f.items)
|
||
for (var t = 0; t < f.items.length; t++) e.fw(2, Road.write, f.items[t]);
|
||
f.resolution && e.rw(3, f.resolution) } },
|
||
roadLayer = { read: function(f, e) { return f.nw(roadLayer.iw, { road: [] }, e) }, iw: function(f, e, t, r) { 0 === f && e.road.push(RoadSameStyle.read(t, t.ow() + t.pos)) }, write: function(f, e) { if (f.road)
|
||
for (var t = 0; t < f.road.length; t++) e.fw(0, RoadSameStyle.write, f.road[t]) } },
|
||
roadNameLayer = { read: function(f, e) { return f.nw(roadNameLayer.iw, { roadName: [] }, e) }, iw: function(f, e, t, r) { 0 === f && e.roadName.push(RoadSameStyle.read(t, t.ow() + t.pos)) }, write: function(f, e) { if (f.roadName)
|
||
for (var t = 0; t < f.road.length; t++) e.fw(0, RoadSameStyle.write, f.roadName[t]) } },
|
||
Result = { read: function(f, e) { return f.nw(Result.IQ, { tiles: [], version: "", status: !1, db: "" }, e) }, IQ: function(f, e, t) { 0 === f ? e.tiles.push(Result.Gh.read(t, t.ow() + t.pos)) : 1 === f ? e.version = t.aw() : 2 === f ? e.status = t.vw() : 3 === f && (e.db = t.aw()) }, write: function(f, e) { if (f.tiles)
|
||
for (var t = 0; t < f.tiles.length; t++) e.fw(0, Result.Gh.write, f.tiles[t]);
|
||
f.version && e.uw(1, f.version), f.status && e.hw(2, f.status), f.db && e.uw(3, f.db) }, Gh: {} },
|
||
Style = (Result.Gh.read = function(f, e) { return f.nw(Result.Gh.IQ, { z: 0, x: 0, y: 0, layers: [], t: 0 }, e) }, Result.Gh.IQ = function(f, e, t) { 0 === f ? e.z = t.ow() : 1 === f ? e.x = t.ow() : 2 === f ? e.y = t.ow() : 3 === f ? e.layers.push(Result.Gh.lw.read(t, t.ow() + t.pos)) : 4 === f && (e.t = t.ow()) }, Result.Gh.write = function(f, e) { if (f.z && e.rw(0, f.z), f.x && e.rw(1, f.x), f.y && e.rw(2, f.y), f.layers)
|
||
for (var t = 0; t < f.layers.length; t++) e.fw(3, Result.Gh.lw.write, f.layers[t]);
|
||
f.t && e.rw(4, f.t) }, Result.Gh.lw = {}, Result.Gh.lw.read = function(f, e) { return f.nw(Result.Gh.lw.IQ, { z: 0, x: 0, y: 0, type: 0, d: null, t: 0 }, e) }, Result.Gh.lw.IQ = function(f, e, t) { 0 === f ? e.z = t.ow() : 1 === f ? e.x = t.ow() : 2 === f ? e.y = t.ow() : 3 === f ? e.type = t.ow() : 4 === f ? e.d = t.mw() : 5 === f && (e.t = t.ow()) }, Result.Gh.lw.write = function(f, e) { f.z && e.rw(0, f.z), f.x && e.rw(1, f.x), f.y && e.rw(2, f.y), f.type && e.rw(3, f.type), f.d && e.ww(4, f.d), f.t && e.rw(5, f.t) }, { read: function(f, e) { return f.nw(Style.IQ, { bgColor: "", iconGridSize: 0, icons: "", stylemaps: [], test: 0 }, e) }, IQ: function(f, e, t) { 1 === f ? e.bgColor = t.aw() : 2 === f ? e.iconGridSize = t.ow(!0) : 3 === f ? e.icons = t.aw() : 4 === f ? e.stylemaps.push(Style.SV.read(t, t.ow() + t.pos)) : 5 === f && (e.test = t.ow(!0)) }, write: function(f, e) { if (f.bgColor && e.uw(1, f.bgColor), f.iconGridSize && e.rw(2, f.iconGridSize), f.icons && e.uw(3, f.icons), f.stylemaps)
|
||
for (var t = 0; t < f.stylemaps.length; t++) e.fw(4, Style.SV.write, f.stylemaps[t]);
|
||
f.test && e.rw(5, f.test) }, SV: {} }),
|
||
decodeStyle = (Style.SV.read = function(f, e) { return f.nw(Style.SV.IQ, { key: [], browserStyle: [], levelStyleMapping: [] }, e) }, Style.SV.IQ = function(f, e, t) { 1 === f ? e.key.push(t.aw()) : 2 === f ? e.browserStyle.push(t.aw()) : 3 === f && t.tw(e.levelStyleMapping, !0) }, Style.SV.write = function(f, e) { if (f.key)
|
||
for (var t = 0; t < f.key.length; t++) e.uw(1, f.key[t]); if (f.browserStyle)
|
||
for (t = 0; t < f.browserStyle.length; t++) e.uw(2, f.browserStyle[t]); if (f.levelStyleMapping)
|
||
for (t = 0; t < f.levelStyleMapping.length; t++) e.rw(3, f.levelStyleMapping[t]) }, function(f) { return f = new Pbf(f), Style.read(f) }),
|
||
decodePois = function(f) { return f = new Pbf(f), PoiLayer.read(f) },
|
||
decodeRoads = function(f) { return f = new Pbf(f), roadLayer.read(f) },
|
||
decodeRoadNames = function(f) { return f = new Pbf(f), roadNameLayer.read(f) },
|
||
decodeRegions = function(f) { return f = new Pbf(f), regionLayer.read(f) },
|
||
decodeBuildings = function(f) { return f = new Pbf(f), buildingLayer.read(f) },
|
||
decodeTiles = function(f) { for (var f = new Pbf(f), e = (f = Result.read(f)).tiles, t = 0, r = e.length; t < r; t += 1)
|
||
for (var i = e[t].layers, o = 0, n = i.length; o < n; o += 1) switch (i[o].type) {
|
||
case 0:
|
||
i[o].d = decodePois(i[o].d); break;
|
||
case 1:
|
||
i[o].d = decodeRoads(i[o].d); break;
|
||
case 2:
|
||
i[o].d = decodeRegions(i[o].d); break;
|
||
case 3:
|
||
i[o].d = decodeBuildings(i[o].d); break;
|
||
case 4:
|
||
i[o].d = decodeRoadNames(i[o].d) }
|
||
return f },
|
||
CONSTS$2 = { _U: ["th", "my"] },
|
||
SDFManagerBase = function(e) {
|
||
function f() { var f = e.call(this) || this; return f.CLASS_NAME = "SDFManagerBase", f } return __extends(f, e), f.jU = function(f) { return f = LangManager.gG(f + ""), -1 !== CONSTS$2._U.indexOf(f) }, f.prototype.FU = function(f) { for (var e = [], t = 0, r = f; t < r.length; t++) { var i = r[t];
|
||
LangManager.gG(i + ""), e.push(i) } return { UU: e, DU: [] } }, f.prototype.measureText = function(f, e, t) { if (t) { t.font = (e || 12) + "px"; for (var r = "", i = 0, o = f; i < o.length; i++) { var n = o[i];
|
||
r += String.fromCharCode(n) } return t.measureText(r).width } return 0 }, f.prototype.lineBreak = function(f, e) { var r = void 0 === (t = (e = void 0 === e ? {} : e).fontSize) ? 12 : t,
|
||
t = e.maxWidth,
|
||
i = e.CO,
|
||
o = void 0 === (o = e.fj) ? 6 : o,
|
||
a = void 0 === (n = e.type) ? "en" : n,
|
||
l = e.YQ,
|
||
s = (f = void 0 === f ? "" : f).split(" "),
|
||
d = [],
|
||
n = t || 90,
|
||
c = 0,
|
||
u = [],
|
||
y = [],
|
||
b = [0]; if ("labelsLayer" === e.from) { for (var p = f.length, h = Math.ceil(p / o), S = Math.ceil(p / h), v = void 0, g = 0, M = 0; M < h; M++) { u[M] || (u[M] = [g]), 0 === M ? v = i.slice(0, g = p % S || S) : (v = i.slice(g, g + S), g += S); var w = this.measureText(v, r, l);
|
||
y.push(w), u[M].push(g) } for (M = 0; M < u.length; M++) { var m = u[M];
|
||
b.push(m[m.length - 1]) } } else if ("ch" === a)
|
||
for (M = g = 0; M < s.length; M++) { for (var m = s[M], v = [], k = 0; k < m.length; k++) v.push(m.charCodeAt(k));
|
||
w = this.measureText(v, r, l), y.push(w), u.push([g, g + m.length + 1]), g += m.length + 1, b.push(g) } else { for (M = 0; M < s.length; M++) { var x = s[M],
|
||
v = []; if ("en" === a)
|
||
for (var T = 0; T < x.length; T++) v.push(x.charCodeAt(T));
|
||
else { var A = -1 === (A = i.indexOf("32", c)) ? i.length : A;
|
||
v = i.slice(c, A), c = A + 1 }
|
||
w = this.measureText(v, r, l), d.push(w) } for (t = Math.max.apply(Math, d), u = (e = this.GU(d, n < t ? t : n)).lines, y = e.BU, M = 0; M < u.length; M++) { var m = u[M],
|
||
_ = s.slice(m[0], m[m.length - 1] + 1).join(" "),
|
||
P = f.indexOf(_),
|
||
_ = _.length - 1;
|
||
b.push(P + _ + 1) } }
|
||
return { lines: u, oQ: b, width: y, maxWidth: Math.max.apply(Math, y) } }, f.prototype.GU = function(f, e) { for (var t = [], r = 0, i = 0, o = [], n = 0, a = f.length, l = 0; l < a; l++) { var s = f[l];
|
||
i += s, t[r] || (t[r] = []), e < i && (t[++r] = [], o.push(n), n = i = 0), t[r].push(l), n += s, l === a - 1 && o.push(n) } return { lines: t, BU: o } }, f.prototype.destroy = function() {}, f }(Event),
|
||
LoadFlag, SDFManagerWorker = (function(f) { f.TEXTUREFINISH = "TEXTUREFINISH", f.UNLOAD = "unload", f.LOADING = "loading", f.LOADED = "loaded", f.FAIL = "fail" }(LoadFlag = LoadFlag || {}), function(f) { f.AllLoaded = "AllLoaded", f.AllUnLoaded = "AllUnLoaded", f.SomeLoading = "SomeLoading", f.AllLoading = "AllLoading" }(exports.qu || (exports.qu = {})), function(t) {
|
||
function f(f) { var e = t.call(this) || this; return e.CLASS_NAME = "SDFManagerWorker", e.protocol = "https", e.range = [], e.info = {}, e.dc = 0, e._c = {}, e._size = 24, e.nc = new AdaptorMap, e.xc = [], e.bc = {}, e.Xu = {}, e.yc = 1, e.fN = {}, e.ac = f.z_, e._parent = f.parent, e } return __extends(f, t), f.prototype.vW = function(f, e) { var r = void 0 === (t = e.tiles) ? [] : t,
|
||
i = e.cb,
|
||
o = e.optimalZoom,
|
||
t = void 0 === (t = e.tags) ? [] : t,
|
||
n = e.stamp;
|
||
this.cN = o, this.fN[n] || (this.fN[n] = t); for (var a = 0; a < r.length; a++) { var l = r[a],
|
||
s = this.Zu(f);
|
||
e.result = s, this.loadData(f, { tile: l, result: s, cb: i, optimalZoom: o, stamp: n, i: a }) } }, f.prototype.loadData = function(f, e) { var t = this,
|
||
r = e.cb,
|
||
i = e.tile,
|
||
o = e.result,
|
||
n = (e.optimalZoom, e.stamp),
|
||
a = e.i,
|
||
l = o || this.Zu(f); switch (l.status) {
|
||
case exports.qu.AllLoaded:
|
||
r([]); break;
|
||
case exports.qu.AllUnLoaded:
|
||
var s = this.Yu(r, { tile: i, stamp: n, index: a });
|
||
this.MI(l.Vu, function(f) { t.Xu[s] = f = void 0 === f ? {} : f, t.Hu() }); break;
|
||
case exports.qu.SomeLoading:
|
||
var d = this.Yu(r, { tile: i, stamp: n, index: a });
|
||
this.MI(l.Vu, function(f) { t.Xu[d] = f = void 0 === f ? {} : f, t.Hu() }); break;
|
||
case exports.qu.AllLoading:
|
||
var c = this.Yu(r, { tile: i, stamp: n, index: a });
|
||
this.Xu[c] = [], this.Hu() } }, f.prototype.mz = function(f) { var e = this.info || {}; return e[f] && (e = e[f]).pos && e.info[f] ? { key: f, index: exports.cY.dynamic, char: e.info[f], pos: e.pos } : null }, f.prototype.measureText = function(f, e) { for (var t = CONSTS.ic, r = 0, i = this.info, o = e / this._size, n = this.nc, a = 0, l = f; a < l.length; a++) { var s = l[a],
|
||
d = void 0,
|
||
c = s;
|
||
(d = n.get(c)) || i.hasOwnProperty(c) && (c = i[c].info[c]) && this.nc.set(s, d = c[4]), r += (d + t) * o } return r }, f.prototype.Ju = function(f) { for (var e = {}, t = 0, r = f; t < r.length; t++) { var o = (i = r[t]).range,
|
||
n = i.info,
|
||
i = i.pos,
|
||
a = this.info;
|
||
a[o], a[o] = { info: ((a = {})[o] = n, a), pos: i }, this.range.push(o), e[o] = 1 } return e }, f.prototype.AI = function(f, e) { this.info[f] && (this.info[f].pos = e) }, f.prototype.MI = function(e, t) { for (var r = this, f = (void 0 === e && (e = []), CONSTS.Mj), i = 0, o = e; i < o.length; i++) { var n = o[i];
|
||
this._c[n] = !0 } for (var a = [], l = 0, s = this.FU(e), d = s.UU, c = s.DU, u = c.length, y = Math.ceil(u / CONSTS.Mj); l < y;) { var b = c.slice(b = f * l, u < b + f ? u : b + f),
|
||
b = this.xI(b);
|
||
a.push(b), l++ }
|
||
a.push(this.pG(d)), Promise.all(a).then(function(f) { r.II(e), f = r.zU(f), r.Ju(f), t(f) }) }, f.prototype.pG = function(f) { var t = this; return new Promise(function(e) { t._parent.loadWordsByFront({ Es: f, cb: function(f) { e(f) } }) }) }, f.prototype.xI = function(f) { var o = this,
|
||
e = this.fc() + ("/getsdfdata?chars=" + f.join(",").split(",").join("|")); return new Promise(function(r, i) { XHR.send(e, { Me: "json", method: "get", qw: function(f) { var e, t;
|
||
f && f.info ? (e = o.vc(f.info), t = new ImageDataWraper(e, f.url), f.url = t, r({ range: e, info: f })) : i(null) }, error: function() { i(null) } }) }) }, f.prototype.fc = function() { var f = CONSTS.pc,
|
||
e = this.protocol + f[this.dc]; return this.dc = (this.dc + 1) % f.length, e }, f.prototype.vc = function(f) { void 0 === f && (f = {});
|
||
(f = map(Object.keys(f), function(f) { return parseInt(f, 10) })).sort(function(f, e) { return f - e }); var e = f.length; return 2 <= e ? f[0] + "-" + f[e - 1] : 1 === e ? "" + f[0] : "" }, f.prototype.gc = function(f) { var e = this.range || [],
|
||
t = this.info || {}; if (-1 !== e.indexOf(f)) return !0; for (var r = parseInt(f, 10), i = 0, o = e; i < o.length; i++) { var n = o[i]; if (n.indexOf("-") < 0) { if (r === +n && (t[n] && t[n].info || {})[f]) return !0 } else { var a = n.split("-"),
|
||
l = parseInt(a[0] || "", 10),
|
||
a = parseInt(a[1] || "", 10); if (l <= r && r <= a && (t[n] && t[n].info || {})[f]) return !0 } } return !1 }, f.prototype.wc = function(f) { return this._c[f] }, f.prototype.Zu = function(f) { for (var e = [], t = 0, r = 0, i = 0, o = f; i < o.length; i++) { var n = o[i];
|
||
this.gc(n) || (this.wc(n) ? r += 1 : (t += 1, e.push(n))) } return 0 === r && 0 === t ? { status: exports.qu.AllLoaded, Vu: e } : 0 < t && 0 === r ? { status: exports.qu.AllUnLoaded, Vu: e } : 0 === t && 0 < r ? { status: exports.qu.AllLoading, Vu: e } : { status: exports.qu.SomeLoading, Vu: e } }, f.prototype.Yu = function(f, e) { void 0 === e && (e = {}); var t = this.yc += 1; return this.xc.push(t), this.bc[t] = f, this.bc[t] = { cb: f, params: e }, t }, f.prototype.Hu = function() { var f, e, t = this.xc[0];
|
||
t && (f = this.Xu[t]) && (this.xc.shift(), (e = this.bc[t]) ? e.cb(f) : console.error("sdf task error"), delete this.Xu[t], delete this.bc[t], this.Hu()) }, f.prototype.II = function(f) { for (var e = 0, t = f; e < t.length; e++) { var r = t[e];
|
||
delete this._c[r] } }, f.prototype.zU = function(f) { for (var e = [], t = 0, r = f = void 0 === f ? [] : f; t < r.length; t++) { var i = r[t]; if (Array.isArray(i))
|
||
for (var o = 0, n = i; o < n.length; o++) { var a = n[o];
|
||
e.push(a) } else e.push(i) } return e }, f }(SDFManagerBase)),
|
||
TaskManager = (function(f) { f[f.stop = 0] = "stop", f[f.finish = 1] = "finish", f[f.pause = 2] = "pause" }(exports.vY || (exports.vY = {})), function(e) {
|
||
function f() { var f = null !== e && e.apply(this, arguments) || this; return f.id = 0, f.LV = [], f._V = {}, f.CV = {}, f } return __extends(f, e), f.prototype.register = function(f, e, t) { if (this.CV[f]) throw Error("TaskManager: Exist Task Creator");
|
||
this.CV[f] = { PV: e, OV: t } }, f.prototype.add = function(f, e) { var t; if (this.CV[f]) return f = this.CV[f], t = this.id++, e = f.PV(e), this.LV.push({ UQ: e, OV: { id: t, kY: f.OV.kY } }), t; throw Error("TaskManager: Not Exist Task Type") }, f.prototype.XQ = function(f, e, t) { void 0 === e && (e = { kY: 1 / 0 }), void 0 === t && (t = !1); var r = this.id++; return t ? this.LV.unshift({ UQ: f, OV: { id: this.id++, kY: e.kY } }) : this.LV.push({ UQ: f, OV: { id: this.id++, kY: e.kY } }), r }, f.prototype.exec = function(f) { this.jV(); for (var e = f, t = Date.now(); 0 < e;) { var r = this.LV.shift(); if (!r) break; var i = r.UQ.play(e);
|
||
r.UQ.status === exports.vY.finish ? this.emit("task:" + r.OV.id, { data: i }) : this.LV.unshift(r), e = f - (Date.now() - t), 0 === this.LV.length && this.emit("taskclear", !0) } }, f.prototype.xY = function() { return 0 < this.LV.length }, f.prototype.destroy = function() { this.LV = [] }, f.prototype.clear = function(e) { this.LV = e ? this.LV.filter(function(f) { return f.UQ.type === e }) : [] }, f.prototype.jV = function() { this.LV.sort(function(f, e) { return f.OV.kY - e.OV.kY }) }, f }(Event)),
|
||
Actor = function() {
|
||
function f(f, e, t) { this.UD = !1, this.gI = this.gI.bind(this), this.target = f, this.parent = e, this.dI = t, this.pI = {}, this.bI = Browser.DW ? 1 : 0, this.target.addEventListener("message", this.gI, !1) } return f.prototype.send = function(f, e, t, r) { var i = this,
|
||
o = t ? this.dI + ":" + this.bI : null,
|
||
n = (this.bI += 2, t && o && (this.pI[o] = t), []),
|
||
a = serialize(e, n); if (this.target.postMessage({ yI: r, mI: this.dI, type: f, id: String(o), data: a }, n), t) return { cancel: function() { i.target.postMessage({ yI: r, mI: i.dI, type: "<cancel>", id: String(o), key: e.ya }), o && delete i.pI[o] } } }, f.prototype.gI = function(f) { var r, e, i = this;
|
||
Browser.DW && "destroy" === f.data.type && self.close(); var o = (f = f.data).id;
|
||
f.yI && this.dI !== f.yI || ("<cancel>" === f.type ? (e = this.pI[f.id], delete this.pI[f.id], e && e("<cancel>")) : "<response>" === f.type ? (e = this.pI[f.id], delete this.pI[f.id], e && f.error ? e(deserialize(f.error)) : e && e(null, deserialize(f.data))) : void 0 !== f.id && this.parent[f.type] && (r = function(f, e) { delete i.pI[o]; var t = [],
|
||
e = serialize(e, t);
|
||
i.target.postMessage({ mI: i.dI, type: "<response>", id: String(o), error: f ? serialize(f) : null, data: e }, t), r = void 0 }, this.pI[f.id] = null, e = this.parent[f.type](f.mI, deserialize(f.data), r)) && null === this.pI[f.id] && (this.pI[f.id] = e.cancel)) }, f.prototype.remove = function() { this.target.removeEventListener("message", this.gI, !1) }, f }(),
|
||
TaskPool = function() {
|
||
function f() { this.listener = {}, this.SN = {} } return f.prototype.nS = function(t, f) { var r = this; return this.SN[t] = !0, this.listener[t] || (this.listener[t] = []), f(function(f, e) { r.$N(t, f, e) }) }, f.prototype.cancel = function(f) { delete this.SN[f] }, f.prototype.has = function(f) { return Boolean(this.SN[f]) }, f.prototype.GN = function(f) { return this.listener[f] && 0 < this.listener[f].length }, f.prototype.SH = function(f, e) { this.listener[f] || (this.listener[f] = []), this.listener[f].push(e) }, f.prototype.kN = function(f, e) { this.listener[f] && -1 < (e = this.listener[f].indexOf(e)) && this.listener[f].splice(e, 1) }, f.prototype.$N = function(f, e, t) { delete this.SN[f]; var r = this.listener[f]; if (delete this.listener[f], r)
|
||
for (var i = 0, o = r; i < o.length; i++)(0, o[i])(e, t) }, f }(),
|
||
StaticSDFManagerWorker = function() {
|
||
function f(f, e) { this.parent = f, this.CN = e, this.jN = [], this.EN = 0, this._N = {}, this.NN = {}, this.LN = new TaskPool, this.zW(this.parent.GW.db), this.parent.Uh.send("updateDataVersion", this.parent.GW.nebulaVersion) } return f.prototype.loadData = function(f, n, t) { var a, l, s, r, e, d, c = this,
|
||
u = staticSDFTileKeyToKey(f); return u ? (a = this.fc(), l = a + u + ".json", s = a + u + (n.mH ? ".webp" : ".png"), r = this.parent.protocol, void 0 !== this._N[u] && void 0 !== this.NN[u] ? (t(null, [this._N[u], this.NN[u]]), { cancel: noop$1 }) : (e = this.LN.has(u), this.LN.SH(u, d = function(f, e) { e && (e.protocol = r), t(f, e) }), e ? { cancel: function() { c.NW(f) } } : this.LN.nS(u, function(t) {
|
||
function r(f, e) { t(null, e) } var i = 0,
|
||
o = [],
|
||
f = c.ON(l, function(f, e) { f ? "404" !== f ? (console.log(f), r(0, null)) : (o[0] = e ? {} : null, c._N[u] = o[0], 2 == ++i && r(0, o)) : (o[0] = e, c._N[u] = e, 2 == ++i && r(0, o)) }),
|
||
e = c.IN(s, function(f, e) { f || !e ? "404" !== f ? (console.log(f), r(0, e)) : (o[1] = null, c.NN[u] = o[1], 2 == ++i && r(0, o)) : !e || e.byteLength < 128 ? (o[1] = null, c.NN[u] = o[1], 2 == ++i && r(0, o)) : n.imageBitmap ? ImageDataWraper.AV(e).then(function(f) { "success" !== (f = new ImageDataWraper(s, f, { imageBitmap: !0 })).status ? (console.log("createObjectURL fail"), t("createObjectURL fail", null)) : (o[1] = f, c.NN[u] = f, 2 == ++i && r(0, o)) }) : "success" !== (f = new ImageDataWraper(a, e)).status ? (console.log("createObjectURL fail"), r(0, null)) : (o[1] = f, c.NN[u] = f, 2 == ++i && r(0, o)) }); return "lesszoom10" !== u ? { cancel: function() { c.LN.kN(u, d), c.LN.GN(u) || (f.abort(), e.abort(), c.LN.cancel(u)), d("cancel", null) } } : { cancel: function() { c.LN.kN(u, d), d("cancel", null) } } }))) : (console.log("!key"), t(null, [void 0, null]), { cancel: noop$1 }) }, f.prototype.NW = function(f) { var e = this.NN[f];
|
||
e && e.destroy(), delete this.NN[f], delete this._N[f] }, f.prototype.zW = function(f) { this._N = {}, this.NN = {}, this.jN = ["://glyph.amap.com/sdf" + f + "/", "://glyph01.amap.com/sdf" + f + "/", "://glyph02.amap.com/sdf" + f + "/", "://glyph03.amap.com/sdf" + f + "/", "://glyph04.amap.com/sdf" + f + "/"] }, f.prototype.ON = function(f, e) { return this.CN.send(f, { Me: "json", method: "get", qw: function(f) { e(null, f || null) }, Aw: function(f) { e(f && f.message || "unknown error") } }) }, f.prototype.IN = function(f, e) { return this.CN.send(f, { Me: "arraybuffer", method: "get", qw: function(f) { f ? e(null, f) : e("empty data", null) }, Aw: function(f) { e(f && f.message || "unknown error") } }) }, f.prototype.fc = function() { this.EN = this.EN % this.jN.length; var f = this.parent.protocol + this.jN[this.EN]; return this.EN++, f }, f }(),
|
||
emptyObj = {},
|
||
SDFStaticTextureCache = function() {
|
||
function f(f, e, t) { this.parent = f, this.DN = e, this.UN = t, this.RN = {}, this.XN = {} } return f.prototype.xH = function(f, e) { void 0 === e && (e = !1); var t = staticSDFTileKeyToKey(f),
|
||
r = this.RN[t]; if (e) { if (!r) return;
|
||
r.indexOf(f) < 0 && r.push(f) } return this.DN.getImage(t) }, f.prototype.LB = function(f) { return f = staticSDFTileKeyToKey(f), this.XN[f] || emptyObj }, f.prototype.bH = function(r, i, o, n) { var f, a = this,
|
||
l = staticSDFTileKeyToKey(r);
|
||
i.type === ImageDataWraperType.bitmap ? i.IV ? (f = this.DN.getImage(i.hash), n(null, f)) : this.DN.addImageBitmap(i.data, { url: l, cb: function(f, e) { var t;
|
||
f || (i.destroy(), a.RN[l] || (a.RN[l] = [], a.XN[l] = o), (t = a.RN[l]).indexOf(r) < 0 && t.push(r)), n(f, e) } }) : this.DN.addImage(l, { url: i.data, cb: function(f, e) { var t;
|
||
f || (a.RN[l] || (a.RN[l] = [], a.XN[l] = o), (t = a.RN[l]).indexOf(r) < 0 && t.push(r)), n(f, e) } }) }, f.prototype.kH = function(f) { var e = staticSDFTileKeyToKey(f),
|
||
t = this.RN[e];
|
||
t ? (0 <= (f = t.indexOf(f)) && t.splice(f, 1), 0 === t.length && (this.DN.RH(e), this.UN.deleteTileStaticSDF(e), delete this.RN[e], delete this.XN[e])) : delete this.XN[e] }, f }(),
|
||
RenderThread = function() {
|
||
function f(f) { this.Jv = 5, this.Qv = 0, this.Yv = !1, this.render = f.render, this.check = f.check } return f.prototype.Yf = function() { this.Yv || (0 < this.Jv && this.Kv ? (this.render(), this.Qv = Util.requestAnimFrame(this.Yf.bind(this))) : (this.Jv <= 0 || !this.Kv) && (this.Kv = !1, Util.cancelAnimFrame(this.Qv), this.Qv = 0, this.Qv || this.check() && (this.render(), this.setNeedUpdate(!0))), this.Jv--) }, f.prototype.setNeedUpdate = function(f) { this.Jv = 5, f && !this.Kv && (this.Kv = f, Util.cancelAnimFrame(this.Qv), this.Qv = 0, this.to()), this.Kv = f }, f.prototype.to = function() { this.Qv || (this.Qv = Util.requestAnimFrame(this.Yf.bind(this))) }, f.prototype.destroy = function() { this.Yv = !0 }, f }();
|
||
Uint8Array.prototype.fill || (Uint8Array.prototype.fill = Array.prototype.fill), Float32Array.prototype.slice || Object.defineProperty(Float32Array.prototype, "slice", { value: function(f, e) { return new Float32Array(Array.prototype.slice.call(this, f, e)) } }), Float64Array.prototype.slice || Object.defineProperty(Float64Array.prototype, "slice", { value: function(f, e) { return new Float64Array(Array.prototype.slice.call(this, f, e)) } }), exports.Ge = AMapStyleSource, exports.Bh = Actor, exports.OZ = AdaptorMap, exports.bb = BezierUtil, exports.tc = CONSTS, exports._n = Color, exports.ZQ = ComputeTileRange, exports.hL = Coordinate, exports.PY = DangerousFontSize, exports.La = DynamicVertice, exports.Event = Event, exports.iz = FillExtrusionBucket, exports.GeometryUtil = GeometryUtil, exports.rW = GeometryUtilCls, exports.x_ = HALF_WORLD_SIZE, exports.WQ = ImageDataWraper, exports.pZ = InnerClass, exports.eG = Labels, exports.LabelsRenderUtil = LabelsRenderUtil, exports.bG = LangManager, exports.LngLat = LngLat$2, exports.ZY = LngLat2TileInnerCoord, exports.za = LocalTileZoom, exports.Ra = LocalZoom, exports.MapboxLabelFormat = MapboxLabelFormat, exports.fQ = MapboxSegements, exports.bX = MapboxVTSourceWorker, exports.Module = Module, exports.NebulaLabelFormat = NebulaLabelFormat, exports._w = NebulaSegements, exports.pa = NebulaTile, exports.wa = NebulaTileCoord, exports.pw = Pbf, exports.Pixel = Pixel, exports.PlaneGeometryUtil = PlaneGeometryUtil, exports.kS = PlaneGeometryUtilInstance, exports.K_ = PolygonBucket, exports.oE = PolygonSegements, exports.J_ = PolylineBucket, exports.ProjectionManager = ProjectionManager, exports.tS = Queue, exports.Vs = RasterTile, exports.wY = RenderThread, exports.vG = SDFManagerBase, exports.jb = SDFManagerWorker, exports.LH = SDFStaticTextureCache, exports.e0 = SimpleCircleBucket, exports.Size = Size, exports.yp = SmartArrayBuffer, exports.xW = StaticSDFManagerWorker, exports.StyleParser = StyleParser, exports.Support = Browser, exports.vH = Task, exports.MY = TaskManager, exports.IH = TaskPool, exports.Gh = Tile, exports.ca = TileCoord, exports.V = transform, exports.Util = Util, exports.Sw = VectorTile, exports.tW = VectorTile$1, exports.LW = VectorTileSegements, exports.Yw = XHR, exports.T8t = __awaiter, exports.dZ = __decorate, exports.Ei = __extends, exports.x8t = __generator, exports.Pt = __spreadArrays, exports.assign = assign, exports.jw = calcTileMectorBounds, exports.clone = clone, exports.Ex = clone$1, exports.yn = cloneDeep, exports.eff = commonjsGlobal, exports.tff = commonjsRequire, exports.create = create$3, exports.Il = create, exports.Dl = create$1, exports.Zl = create$2, exports.M8t = createCommonjsModule, exports.CZ = decodeStyle, exports.KQ = decodeTiles, exports.equals = equals$1, exports.Ru = equals, exports.every = every, exports.extend = extend, exports.filter = filter, exports.find = find, exports.findIndex = findIndex, exports.forEach = forEach, exports.vx = forIn, exports.Bu = fromValues$2, exports.xd = fromValues$3, exports.$Q = getMVTTileBbox, exports.vZ = getOutseaData, exports.Ol = getTranslation, exports.Ul = invert, exports.VB = isBezierCurve, exports.xs = isBounds, exports.sB = isCircleMarker, exports.isEmpty = isEmpty, exports.isEqual = isEqual, exports.isFunction = isFunction, exports.qG = isInnerLabelsLayer, exports.px = isLayer, exports.Bs = isLngLat, exports.iL = isLnglatLikeArray, exports.eL = isLnglatLikeArrayArray, exports.yL = isLnglatLikeArrayArrayArray, exports.vB = isNumber, exports.ys = isNumberArrayArray, exports.Ox = isNumberArrayArrayArray, exports.tL = isNumberArrayArrayArrayArray, exports.er = isOverlay, exports.RF = isOverlayGroup, exports.oy = isPixel, exports.GB = isPolyline, exports.ay = isSize, exports.FF = isVectorLayer, exports.jsonLngLatData = jsonLngLatData, exports.keys = keys, exports.labelsUtil = labelsUtil, exports.lcs = lcs, exports.lookAt = lookAt, exports.map = map, exports.multiply = multiply, exports.ou = ortho, exports.parseLngLatData = parseLngLatData, exports.perspective = perspective, exports.rbush = rbush_1, exports.scale = scale$1, exports.set = set$1, exports.Pl = set, exports.some = some, exports.XY = tileInnerCoord2LngLat, exports.Gu = transformMat4, exports.vector = vector, exports.zoomRange = zoomRange }), define(["./shared"], function(polyfill) { var aesJs = polyfill.M8t(function(i, t) {
|
||
function e(i) { return parseInt(i) === i }
|
||
|
||
function o(i) { if (e(i.length)) { for (var t = 0; t < i.length; t++)
|
||
if (!e(i[t]) || i[t] < 0 || 255 < i[t]) return;
|
||
return 1 } }
|
||
|
||
function r(i, t) { if (i.buffer && "Uint8Array" === i.name) return t ? i.slice ? i.slice() : Array.prototype.slice.call(i) : i; if (Array.isArray(i)) { if (o(i)) return new Uint8Array(i); throw new Error("Array contains invalid value: " + i) } if (e(i.length) && o(i)) return new Uint8Array(i); throw new Error("unsupported array-like object") }
|
||
|
||
function h(i) { return new Uint8Array(i) }
|
||
|
||
function l(i, t, e, o, n) { null == o && null == n || (i = i.slice ? i.slice(o, n) : Array.prototype.slice.call(i, o, n)), t.set(i, e) } var n, a = { AAA: function(i) { var t = [],
|
||
e = 0; for (i = encodeURI(i); e < i.length;) { var o = i.charCodeAt(e++);
|
||
37 === o ? (t.push(parseInt(i.substr(e, 2), 16)), e += 2) : t.push(o) } return r(t) }, iAA: function(i) { for (var t = [], e = 0; e < i.length;) { var o = i[e];
|
||
o < 128 ? (t.push(String.fromCharCode(o)), e++) : 191 < o && o < 224 ? (t.push(String.fromCharCode((31 & o) << 6 | 63 & i[e + 1])), e += 2) : (t.push(String.fromCharCode((15 & o) << 12 | (63 & i[e + 1]) << 6 | 63 & i[e + 2])), e += 3) } return t.join("") } },
|
||
s = (n = "0123456789abcdef", { AAA: function(i) { for (var t = [], e = 0; e < i.length; e += 2) t.push(parseInt(i.substr(e, 2), 16)); return t }, iAA: function(i) { for (var t = [], e = 0; e < i.length; e++) { var o = i[e];
|
||
t.push(n[(240 & o) >> 4] + n[15 & o]) } return t.join("") } }),
|
||
u = { 16: 10, 24: 12, 32: 14 },
|
||
d = [1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145],
|
||
p = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22],
|
||
f = [82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251, 124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125],
|
||
c = [3328402341, 4168907908, 4000806809, 4135287693, 4294111757, 3597364157, 3731845041, 2445657428, 1613770832, 33620227, 3462883241, 1445669757, 3892248089, 3050821474, 1303096294, 3967186586, 2412431941, 528646813, 2311702848, 4202528135, 4026202645, 2992200171, 2387036105, 4226871307, 1101901292, 3017069671, 1604494077, 1169141738, 597466303, 1403299063, 3832705686, 2613100635, 1974974402, 3791519004, 1033081774, 1277568618, 1815492186, 2118074177, 4126668546, 2211236943, 1748251740, 1369810420, 3521504564, 4193382664, 3799085459, 2883115123, 1647391059, 706024767, 134480908, 2512897874, 1176707941, 2646852446, 806885416, 932615841, 168101135, 798661301, 235341577, 605164086, 461406363, 3756188221, 3454790438, 1311188841, 2142417613, 3933566367, 302582043, 495158174, 1479289972, 874125870, 907746093, 3698224818, 3025820398, 1537253627, 2756858614, 1983593293, 3084310113, 2108928974, 1378429307, 3722699582, 1580150641, 327451799, 2790478837, 3117535592, 0, 3253595436, 1075847264, 3825007647, 2041688520, 3059440621, 3563743934, 2378943302, 1740553945, 1916352843, 2487896798, 2555137236, 2958579944, 2244988746, 3151024235, 3320835882, 1336584933, 3992714006, 2252555205, 2588757463, 1714631509, 293963156, 2319795663, 3925473552, 67240454, 4269768577, 2689618160, 2017213508, 631218106, 1269344483, 2723238387, 1571005438, 2151694528, 93294474, 1066570413, 563977660, 1882732616, 4059428100, 1673313503, 2008463041, 2950355573, 1109467491, 537923632, 3858759450, 4260623118, 3218264685, 2177748300, 403442708, 638784309, 3287084079, 3193921505, 899127202, 2286175436, 773265209, 2479146071, 1437050866, 4236148354, 2050833735, 3362022572, 3126681063, 840505643, 3866325909, 3227541664, 427917720, 2655997905, 2749160575, 1143087718, 1412049534, 999329963, 193497219, 2353415882, 3354324521, 1807268051, 672404540, 2816401017, 3160301282, 369822493, 2916866934, 3688947771, 1681011286, 1949973070, 336202270, 2454276571, 201721354, 1210328172, 3093060836, 2680341085, 3184776046, 1135389935, 3294782118, 965841320, 831886756, 3554993207, 4068047243, 3588745010, 2345191491, 1849112409, 3664604599, 26054028, 2983581028, 2622377682, 1235855840, 3630984372, 2891339514, 4092916743, 3488279077, 3395642799, 4101667470, 1202630377, 268961816, 1874508501, 4034427016, 1243948399, 1546530418, 941366308, 1470539505, 1941222599, 2546386513, 3421038627, 2715671932, 3899946140, 1042226977, 2521517021, 1639824860, 227249030, 260737669, 3765465232, 2084453954, 1907733956, 3429263018, 2420656344, 100860677, 4160157185, 470683154, 3261161891, 1781871967, 2924959737, 1773779408, 394692241, 2579611992, 974986535, 664706745, 3655459128, 3958962195, 731420851, 571543859, 3530123707, 2849626480, 126783113, 865375399, 765172662, 1008606754, 361203602, 3387549984, 2278477385, 2857719295, 1344809080, 2782912378, 59542671, 1503764984, 160008576, 437062935, 1707065306, 3622233649, 2218934982, 3496503480, 2185314755, 697932208, 1512910199, 504303377, 2075177163, 2824099068, 1841019862, 739644986],
|
||
y = [2781242211, 2230877308, 2582542199, 2381740923, 234877682, 3184946027, 2984144751, 1418839493, 1348481072, 50462977, 2848876391, 2102799147, 434634494, 1656084439, 3863849899, 2599188086, 1167051466, 2636087938, 1082771913, 2281340285, 368048890, 3954334041, 3381544775, 201060592, 3963727277, 1739838676, 4250903202, 3930435503, 3206782108, 4149453988, 2531553906, 1536934080, 3262494647, 484572669, 2923271059, 1783375398, 1517041206, 1098792767, 49674231, 1334037708, 1550332980, 4098991525, 886171109, 150598129, 2481090929, 1940642008, 1398944049, 1059722517, 201851908, 1385547719, 1699095331, 1587397571, 674240536, 2704774806, 252314885, 3039795866, 151914247, 908333586, 2602270848, 1038082786, 651029483, 1766729511, 3447698098, 2682942837, 454166793, 2652734339, 1951935532, 775166490, 758520603, 3000790638, 4004797018, 4217086112, 4137964114, 1299594043, 1639438038, 3464344499, 2068982057, 1054729187, 1901997871, 2534638724, 4121318227, 1757008337, 0, 750906861, 1614815264, 535035132, 3363418545, 3988151131, 3201591914, 1183697867, 3647454910, 1265776953, 3734260298, 3566750796, 3903871064, 1250283471, 1807470800, 717615087, 3847203498, 384695291, 3313910595, 3617213773, 1432761139, 2484176261, 3481945413, 283769337, 100925954, 2180939647, 4037038160, 1148730428, 3123027871, 3813386408, 4087501137, 4267549603, 3229630528, 2315620239, 2906624658, 3156319645, 1215313976, 82966005, 3747855548, 3245848246, 1974459098, 1665278241, 807407632, 451280895, 251524083, 1841287890, 1283575245, 337120268, 891687699, 801369324, 3787349855, 2721421207, 3431482436, 959321879, 1469301956, 4065699751, 2197585534, 1199193405, 2898814052, 3887750493, 724703513, 2514908019, 2696962144, 2551808385, 3516813135, 2141445340, 1715741218, 2119445034, 2872807568, 2198571144, 3398190662, 700968686, 3547052216, 1009259540, 2041044702, 3803995742, 487983883, 1991105499, 1004265696, 1449407026, 1316239930, 504629770, 3683797321, 168560134, 1816667172, 3837287516, 1570751170, 1857934291, 4014189740, 2797888098, 2822345105, 2754712981, 936633572, 2347923833, 852879335, 1133234376, 1500395319, 3084545389, 2348912013, 1689376213, 3533459022, 3762923945, 3034082412, 4205598294, 133428468, 634383082, 2949277029, 2398386810, 3913789102, 403703816, 3580869306, 2297460856, 1867130149, 1918643758, 607656988, 4049053350, 3346248884, 1368901318, 600565992, 2090982877, 2632479860, 557719327, 3717614411, 3697393085, 2249034635, 2232388234, 2430627952, 1115438654, 3295786421, 2865522278, 3633334344, 84280067, 33027830, 303828494, 2747425121, 1600795957, 4188952407, 3496589753, 2434238086, 1486471617, 658119965, 3106381470, 953803233, 334231800, 3005978776, 857870609, 3151128937, 1890179545, 2298973838, 2805175444, 3056442267, 574365214, 2450884487, 550103529, 1233637070, 4289353045, 2018519080, 2057691103, 2399374476, 4166623649, 2148108681, 387583245, 3664101311, 836232934, 3330556482, 3100665960, 3280093505, 2955516313, 2002398509, 287182607, 3413881008, 4238890068, 3597515707, 975967766],
|
||
x = [1671808611, 2089089148, 2006576759, 2072901243, 4061003762, 1807603307, 1873927791, 3310653893, 810573872, 16974337, 1739181671, 729634347, 4263110654, 3613570519, 2883997099, 1989864566, 3393556426, 2191335298, 3376449993, 2106063485, 4195741690, 1508618841, 1204391495, 4027317232, 2917941677, 3563566036, 2734514082, 2951366063, 2629772188, 2767672228, 1922491506, 3227229120, 3082974647, 4246528509, 2477669779, 644500518, 911895606, 1061256767, 4144166391, 3427763148, 878471220, 2784252325, 3845444069, 4043897329, 1905517169, 3631459288, 827548209, 356461077, 67897348, 3344078279, 593839651, 3277757891, 405286936, 2527147926, 84871685, 2595565466, 118033927, 305538066, 2157648768, 3795705826, 3945188843, 661212711, 2999812018, 1973414517, 152769033, 2208177539, 745822252, 439235610, 455947803, 1857215598, 1525593178, 2700827552, 1391895634, 994932283, 3596728278, 3016654259, 695947817, 3812548067, 795958831, 2224493444, 1408607827, 3513301457, 0, 3979133421, 543178784, 4229948412, 2982705585, 1542305371, 1790891114, 3410398667, 3201918910, 961245753, 1256100938, 1289001036, 1491644504, 3477767631, 3496721360, 4012557807, 2867154858, 4212583931, 1137018435, 1305975373, 861234739, 2241073541, 1171229253, 4178635257, 33948674, 2139225727, 1357946960, 1011120188, 2679776671, 2833468328, 1374921297, 2751356323, 1086357568, 2408187279, 2460827538, 2646352285, 944271416, 4110742005, 3168756668, 3066132406, 3665145818, 560153121, 271589392, 4279952895, 4077846003, 3530407890, 3444343245, 202643468, 322250259, 3962553324, 1608629855, 2543990167, 1154254916, 389623319, 3294073796, 2817676711, 2122513534, 1028094525, 1689045092, 1575467613, 422261273, 1939203699, 1621147744, 2174228865, 1339137615, 3699352540, 577127458, 712922154, 2427141008, 2290289544, 1187679302, 3995715566, 3100863416, 339486740, 3732514782, 1591917662, 186455563, 3681988059, 3762019296, 844522546, 978220090, 169743370, 1239126601, 101321734, 611076132, 1558493276, 3260915650, 3547250131, 2901361580, 1655096418, 2443721105, 2510565781, 3828863972, 2039214713, 3878868455, 3359869896, 928607799, 1840765549, 2374762893, 3580146133, 1322425422, 2850048425, 1823791212, 1459268694, 4094161908, 3928346602, 1706019429, 2056189050, 2934523822, 135794696, 3134549946, 2022240376, 628050469, 779246638, 472135708, 2800834470, 3032970164, 3327236038, 3894660072, 3715932637, 1956440180, 522272287, 1272813131, 3185336765, 2340818315, 2323976074, 1888542832, 1044544574, 3049550261, 1722469478, 1222152264, 50660867, 4127324150, 236067854, 1638122081, 895445557, 1475980887, 3117443513, 2257655686, 3243809217, 489110045, 2662934430, 3778599393, 4162055160, 2561878936, 288563729, 1773916777, 3648039385, 2391345038, 2493985684, 2612407707, 505560094, 2274497927, 3911240169, 3460925390, 1442818645, 678973480, 3749357023, 2358182796, 2717407649, 2306869641, 219617805, 3218761151, 3862026214, 1120306242, 1756942440, 1103331905, 2578459033, 762796589, 252780047, 2966125488, 1425844308, 3151392187, 372911126],
|
||
v = [1667474886, 2088535288, 2004326894, 2071694838, 4075949567, 1802223062, 1869591006, 3318043793, 808472672, 16843522, 1734846926, 724270422, 4278065639, 3621216949, 2880169549, 1987484396, 3402253711, 2189597983, 3385409673, 2105378810, 4210693615, 1499065266, 1195886990, 4042263547, 2913856577, 3570689971, 2728590687, 2947541573, 2627518243, 2762274643, 1920112356, 3233831835, 3082273397, 4261223649, 2475929149, 640051788, 909531756, 1061110142, 4160160501, 3435941763, 875846760, 2779116625, 3857003729, 4059105529, 1903268834, 3638064043, 825316194, 353713962, 67374088, 3351728789, 589522246, 3284360861, 404236336, 2526454071, 84217610, 2593830191, 117901582, 303183396, 2155911963, 3806477791, 3958056653, 656894286, 2998062463, 1970642922, 151591698, 2206440989, 741110872, 437923380, 454765878, 1852748508, 1515908788, 2694904667, 1381168804, 993742198, 3604373943, 3014905469, 690584402, 3823320797, 791638366, 2223281939, 1398011302, 3520161977, 0, 3991743681, 538992704, 4244381667, 2981218425, 1532751286, 1785380564, 3419096717, 3200178535, 960056178, 1246420628, 1280103576, 1482221744, 3486468741, 3503319995, 4025428677, 2863326543, 4227536621, 1128514950, 1296947098, 859002214, 2240123921, 1162203018, 4193849577, 33687044, 2139062782, 1347481760, 1010582648, 2678045221, 2829640523, 1364325282, 2745433693, 1077985408, 2408548869, 2459086143, 2644360225, 943212656, 4126475505, 3166494563, 3065430391, 3671750063, 555836226, 269496352, 4294908645, 4092792573, 3537006015, 3452783745, 202118168, 320025894, 3974901699, 1600119230, 2543297077, 1145359496, 387397934, 3301201811, 2812801621, 2122220284, 1027426170, 1684319432, 1566435258, 421079858, 1936954854, 1616945344, 2172753945, 1330631070, 3705438115, 572679748, 707427924, 2425400123, 2290647819, 1179044492, 4008585671, 3099120491, 336870440, 3739122087, 1583276732, 185277718, 3688593069, 3772791771, 842159716, 976899700, 168435220, 1229577106, 101059084, 606366792, 1549591736, 3267517855, 3553849021, 2897014595, 1650632388, 2442242105, 2509612081, 3840161747, 2038008818, 3890688725, 3368567691, 926374254, 1835907034, 2374863873, 3587531953, 1313788572, 2846482505, 1819063512, 1448540844, 4109633523, 3941213647, 1701162954, 2054852340, 2930698567, 134748176, 3132806511, 2021165296, 623210314, 774795868, 471606328, 2795958615, 3031746419, 3334885783, 3907527627, 3722280097, 1953799400, 522133822, 1263263126, 3183336545, 2341176845, 2324333839, 1886425312, 1044267644, 3048588401, 1718004428, 1212733584, 50529542, 4143317495, 235803164, 1633788866, 892690282, 1465383342, 3115962473, 2256965911, 3250673817, 488449850, 2661202215, 3789633753, 4177007595, 2560144171, 286339874, 1768537042, 3654906025, 2391705863, 2492770099, 2610673197, 505291324, 2273808917, 3924369609, 3469625735, 1431699370, 673740880, 3755965093, 2358021891, 2711746649, 2307489801, 218961690, 3217021541, 3873845719, 1111672452, 1751693520, 1094828930, 2576986153, 757954394, 252645662, 2964376443, 1414855848, 3149649517, 370555436],
|
||
g = [1374988112, 2118214995, 437757123, 975658646, 1001089995, 530400753, 2902087851, 1273168787, 540080725, 2910219766, 2295101073, 4110568485, 1340463100, 3307916247, 641025152, 3043140495, 3736164937, 632953703, 1172967064, 1576976609, 3274667266, 2169303058, 2370213795, 1809054150, 59727847, 361929877, 3211623147, 2505202138, 3569255213, 1484005843, 1239443753, 2395588676, 1975683434, 4102977912, 2572697195, 666464733, 3202437046, 4035489047, 3374361702, 2110667444, 1675577880, 3843699074, 2538681184, 1649639237, 2976151520, 3144396420, 4269907996, 4178062228, 1883793496, 2403728665, 2497604743, 1383856311, 2876494627, 1917518562, 3810496343, 1716890410, 3001755655, 800440835, 2261089178, 3543599269, 807962610, 599762354, 33778362, 3977675356, 2328828971, 2809771154, 4077384432, 1315562145, 1708848333, 101039829, 3509871135, 3299278474, 875451293, 2733856160, 92987698, 2767645557, 193195065, 1080094634, 1584504582, 3178106961, 1042385657, 2531067453, 3711829422, 1306967366, 2438237621, 1908694277, 67556463, 1615861247, 429456164, 3602770327, 2302690252, 1742315127, 2968011453, 126454664, 3877198648, 2043211483, 2709260871, 2084704233, 4169408201, 0, 159417987, 841739592, 504459436, 1817866830, 4245618683, 260388950, 1034867998, 908933415, 168810852, 1750902305, 2606453969, 607530554, 202008497, 2472011535, 3035535058, 463180190, 2160117071, 1641816226, 1517767529, 470948374, 3801332234, 3231722213, 1008918595, 303765277, 235474187, 4069246893, 766945465, 337553864, 1475418501, 2943682380, 4003061179, 2743034109, 4144047775, 1551037884, 1147550661, 1543208500, 2336434550, 3408119516, 3069049960, 3102011747, 3610369226, 1113818384, 328671808, 2227573024, 2236228733, 3535486456, 2935566865, 3341394285, 496906059, 3702665459, 226906860, 2009195472, 733156972, 2842737049, 294930682, 1206477858, 2835123396, 2700099354, 1451044056, 573804783, 2269728455, 3644379585, 2362090238, 2564033334, 2801107407, 2776292904, 3669462566, 1068351396, 742039012, 1350078989, 1784663195, 1417561698, 4136440770, 2430122216, 775550814, 2193862645, 2673705150, 1775276924, 1876241833, 3475313331, 3366754619, 270040487, 3902563182, 3678124923, 3441850377, 1851332852, 3969562369, 2203032232, 3868552805, 2868897406, 566021896, 4011190502, 3135740889, 1248802510, 3936291284, 699432150, 832877231, 708780849, 3332740144, 899835584, 1951317047, 4236429990, 3767586992, 866637845, 4043610186, 1106041591, 2144161806, 395441711, 1984812685, 1139781709, 3433712980, 3835036895, 2664543715, 1282050075, 3240894392, 1181045119, 2640243204, 25965917, 4203181171, 4211818798, 3009879386, 2463879762, 3910161971, 1842759443, 2597806476, 933301370, 1509430414, 3943906441, 3467192302, 3076639029, 3776767469, 2051518780, 2631065433, 1441952575, 404016761, 1942435775, 1408749034, 1610459739, 3745345300, 2017778566, 3400528769, 3110650942, 941896748, 3265478751, 371049330, 3168937228, 675039627, 4279080257, 967311729, 135050206, 3635733660, 1683407248, 2076935265, 3576870512, 1215061108, 3501741890],
|
||
w = [1347548327, 1400783205, 3273267108, 2520393566, 3409685355, 4045380933, 2880240216, 2471224067, 1428173050, 4138563181, 2441661558, 636813900, 4233094615, 3620022987, 2149987652, 2411029155, 1239331162, 1730525723, 2554718734, 3781033664, 46346101, 310463728, 2743944855, 3328955385, 3875770207, 2501218972, 3955191162, 3667219033, 768917123, 3545789473, 692707433, 1150208456, 1786102409, 2029293177, 1805211710, 3710368113, 3065962831, 401639597, 1724457132, 3028143674, 409198410, 2196052529, 1620529459, 1164071807, 3769721975, 2226875310, 486441376, 2499348523, 1483753576, 428819965, 2274680428, 3075636216, 598438867, 3799141122, 1474502543, 711349675, 129166120, 53458370, 2592523643, 2782082824, 4063242375, 2988687269, 3120694122, 1559041666, 730517276, 2460449204, 4042459122, 2706270690, 3446004468, 3573941694, 533804130, 2328143614, 2637442643, 2695033685, 839224033, 1973745387, 957055980, 2856345839, 106852767, 1371368976, 4181598602, 1033297158, 2933734917, 1179510461, 3046200461, 91341917, 1862534868, 4284502037, 605657339, 2547432937, 3431546947, 2003294622, 3182487618, 2282195339, 954669403, 3682191598, 1201765386, 3917234703, 3388507166, 0, 2198438022, 1211247597, 2887651696, 1315723890, 4227665663, 1443857720, 507358933, 657861945, 1678381017, 560487590, 3516619604, 975451694, 2970356327, 261314535, 3535072918, 2652609425, 1333838021, 2724322336, 1767536459, 370938394, 182621114, 3854606378, 1128014560, 487725847, 185469197, 2918353863, 3106780840, 3356761769, 2237133081, 1286567175, 3152976349, 4255350624, 2683765030, 3160175349, 3309594171, 878443390, 1988838185, 3704300486, 1756818940, 1673061617, 3403100636, 272786309, 1075025698, 545572369, 2105887268, 4174560061, 296679730, 1841768865, 1260232239, 4091327024, 3960309330, 3497509347, 1814803222, 2578018489, 4195456072, 575138148, 3299409036, 446754879, 3629546796, 4011996048, 3347532110, 3252238545, 4270639778, 915985419, 3483825537, 681933534, 651868046, 2755636671, 3828103837, 223377554, 2607439820, 1649704518, 3270937875, 3901806776, 1580087799, 4118987695, 3198115200, 2087309459, 2842678573, 3016697106, 1003007129, 2802849917, 1860738147, 2077965243, 164439672, 4100872472, 32283319, 2827177882, 1709610350, 2125135846, 136428751, 3874428392, 3652904859, 3460984630, 3572145929, 3593056380, 2939266226, 824852259, 818324884, 3224740454, 930369212, 2801566410, 2967507152, 355706840, 1257309336, 4148292826, 243256656, 790073846, 2373340630, 1296297904, 1422699085, 3756299780, 3818836405, 457992840, 3099667487, 2135319889, 77422314, 1560382517, 1945798516, 788204353, 1521706781, 1385356242, 870912086, 325965383, 2358957921, 2050466060, 2388260884, 2313884476, 4006521127, 901210569, 3990953189, 1014646705, 1503449823, 1062597235, 2031621326, 3212035895, 3931371469, 1533017514, 350174575, 2256028891, 2177544179, 1052338372, 741876788, 1606591296, 1914052035, 213705253, 2334669897, 1107234197, 1899603969, 3725069491, 2631447780, 2422494913, 1635502980, 1893020342, 1950903388, 1120974935],
|
||
b = [2807058932, 1699970625, 2764249623, 1586903591, 1808481195, 1173430173, 1487645946, 59984867, 4199882800, 1844882806, 1989249228, 1277555970, 3623636965, 3419915562, 1149249077, 2744104290, 1514790577, 459744698, 244860394, 3235995134, 1963115311, 4027744588, 2544078150, 4190530515, 1608975247, 2627016082, 2062270317, 1507497298, 2200818878, 567498868, 1764313568, 3359936201, 2305455554, 2037970062, 1047239e3, 1910319033, 1337376481, 2904027272, 2892417312, 984907214, 1243112415, 830661914, 861968209, 2135253587, 2011214180, 2927934315, 2686254721, 731183368, 1750626376, 4246310725, 1820824798, 4172763771, 3542330227, 48394827, 2404901663, 2871682645, 671593195, 3254988725, 2073724613, 145085239, 2280796200, 2779915199, 1790575107, 2187128086, 472615631, 3029510009, 4075877127, 3802222185, 4107101658, 3201631749, 1646252340, 4270507174, 1402811438, 1436590835, 3778151818, 3950355702, 3963161475, 4020912224, 2667994737, 273792366, 2331590177, 104699613, 95345982, 3175501286, 2377486676, 1560637892, 3564045318, 369057872, 4213447064, 3919042237, 1137477952, 2658625497, 1119727848, 2340947849, 1530455833, 4007360968, 172466556, 266959938, 516552836, 0, 2256734592, 3980931627, 1890328081, 1917742170, 4294704398, 945164165, 3575528878, 958871085, 3647212047, 2787207260, 1423022939, 775562294, 1739656202, 3876557655, 2530391278, 2443058075, 3310321856, 547512796, 1265195639, 437656594, 3121275539, 719700128, 3762502690, 387781147, 218828297, 3350065803, 2830708150, 2848461854, 428169201, 122466165, 3720081049, 1627235199, 648017665, 4122762354, 1002783846, 2117360635, 695634755, 3336358691, 4234721005, 4049844452, 3704280881, 2232435299, 574624663, 287343814, 612205898, 1039717051, 840019705, 2708326185, 793451934, 821288114, 1391201670, 3822090177, 376187827, 3113855344, 1224348052, 1679968233, 2361698556, 1058709744, 752375421, 2431590963, 1321699145, 3519142200, 2734591178, 188127444, 2177869557, 3727205754, 2384911031, 3215212461, 2648976442, 2450346104, 3432737375, 1180849278, 331544205, 3102249176, 4150144569, 2952102595, 2159976285, 2474404304, 766078933, 313773861, 2570832044, 2108100632, 1668212892, 3145456443, 2013908262, 418672217, 3070356634, 2594734927, 1852171925, 3867060991, 3473416636, 3907448597, 2614737639, 919489135, 164948639, 2094410160, 2997825956, 590424639, 2486224549, 1723872674, 3157750862, 3399941250, 3501252752, 3625268135, 2555048196, 3673637356, 1343127501, 4130281361, 3599595085, 2957853679, 1297403050, 81781910, 3051593425, 2283490410, 532201772, 1367295589, 3926170974, 895287692, 1953757831, 1093597963, 492483431, 3528626907, 1446242576, 1192455638, 1636604631, 209336225, 344873464, 1015671571, 669961897, 3375740769, 3857572124, 2973530695, 3747192018, 1933530610, 3464042516, 935293895, 3454686199, 2858115069, 1863638845, 3683022916, 4085369519, 3292445032, 875313188, 1080017571, 3279033885, 621591778, 1233856572, 2504130317, 24197544, 3017672716, 3835484340, 3247465558, 2220981195, 3060847922, 1551124588, 1463996600],
|
||
R = [4104605777, 1097159550, 396673818, 660510266, 2875968315, 2638606623, 4200115116, 3808662347, 821712160, 1986918061, 3430322568, 38544885, 3856137295, 718002117, 893681702, 1654886325, 2975484382, 3122358053, 3926825029, 4274053469, 796197571, 1290801793, 1184342925, 3556361835, 2405426947, 2459735317, 1836772287, 1381620373, 3196267988, 1948373848, 3764988233, 3385345166, 3263785589, 2390325492, 1480485785, 3111247143, 3780097726, 2293045232, 548169417, 3459953789, 3746175075, 439452389, 1362321559, 1400849762, 1685577905, 1806599355, 2174754046, 137073913, 1214797936, 1174215055, 3731654548, 2079897426, 1943217067, 1258480242, 529487843, 1437280870, 3945269170, 3049390895, 3313212038, 923313619, 679998e3, 3215307299, 57326082, 377642221, 3474729866, 2041877159, 133361907, 1776460110, 3673476453, 96392454, 878845905, 2801699524, 777231668, 4082475170, 2330014213, 4142626212, 2213296395, 1626319424, 1906247262, 1846563261, 562755902, 3708173718, 1040559837, 3871163981, 1418573201, 3294430577, 114585348, 1343618912, 2566595609, 3186202582, 1078185097, 3651041127, 3896688048, 2307622919, 425408743, 3371096953, 2081048481, 1108339068, 2216610296, 0, 2156299017, 736970802, 292596766, 1517440620, 251657213, 2235061775, 2933202493, 758720310, 265905162, 1554391400, 1532285339, 908999204, 174567692, 1474760595, 4002861748, 2610011675, 3234156416, 3693126241, 2001430874, 303699484, 2478443234, 2687165888, 585122620, 454499602, 151849742, 2345119218, 3064510765, 514443284, 4044981591, 1963412655, 2581445614, 2137062819, 19308535, 1928707164, 1715193156, 4219352155, 1126790795, 600235211, 3992742070, 3841024952, 836553431, 1669664834, 2535604243, 3323011204, 1243905413, 3141400786, 4180808110, 698445255, 2653899549, 2989552604, 2253581325, 3252932727, 3004591147, 1891211689, 2487810577, 3915653703, 4237083816, 4030667424, 2100090966, 865136418, 1229899655, 953270745, 3399679628, 3557504664, 4118925222, 2061379749, 3079546586, 2915017791, 983426092, 2022837584, 1607244650, 2118541908, 2366882550, 3635996816, 972512814, 3283088770, 1568718495, 3499326569, 3576539503, 621982671, 2895723464, 410887952, 2623762152, 1002142683, 645401037, 1494807662, 2595684844, 1335535747, 2507040230, 4293295786, 3167684641, 367585007, 3885750714, 1865862730, 2668221674, 2960971305, 2763173681, 1059270954, 2777952454, 2724642869, 1320957812, 2194319100, 2429595872, 2815956275, 77089521, 3973773121, 3444575871, 2448830231, 1305906550, 4021308739, 2857194700, 2516901860, 3518358430, 1787304780, 740276417, 1699839814, 1592394909, 2352307457, 2272556026, 188821243, 1729977011, 3687994002, 274084841, 3594982253, 3613494426, 2701949495, 4162096729, 322734571, 2837966542, 1640576439, 484830689, 1202797690, 3537852828, 4067639125, 349075736, 3342319475, 4157467219, 4255800159, 1030690015, 1155237496, 2951971274, 1757691577, 607398968, 2738905026, 499347990, 3794078908, 1011452712, 227885567, 2818666809, 213114376, 3034881240, 1455525988, 3414450555, 850817237, 1817998408, 3092726480],
|
||
m = [0, 235474187, 470948374, 303765277, 941896748, 908933415, 607530554, 708780849, 1883793496, 2118214995, 1817866830, 1649639237, 1215061108, 1181045119, 1417561698, 1517767529, 3767586992, 4003061179, 4236429990, 4069246893, 3635733660, 3602770327, 3299278474, 3400528769, 2430122216, 2664543715, 2362090238, 2193862645, 2835123396, 2801107407, 3035535058, 3135740889, 3678124923, 3576870512, 3341394285, 3374361702, 3810496343, 3977675356, 4279080257, 4043610186, 2876494627, 2776292904, 3076639029, 3110650942, 2472011535, 2640243204, 2403728665, 2169303058, 1001089995, 899835584, 666464733, 699432150, 59727847, 226906860, 530400753, 294930682, 1273168787, 1172967064, 1475418501, 1509430414, 1942435775, 2110667444, 1876241833, 1641816226, 2910219766, 2743034109, 2976151520, 3211623147, 2505202138, 2606453969, 2302690252, 2269728455, 3711829422, 3543599269, 3240894392, 3475313331, 3843699074, 3943906441, 4178062228, 4144047775, 1306967366, 1139781709, 1374988112, 1610459739, 1975683434, 2076935265, 1775276924, 1742315127, 1034867998, 866637845, 566021896, 800440835, 92987698, 193195065, 429456164, 395441711, 1984812685, 2017778566, 1784663195, 1683407248, 1315562145, 1080094634, 1383856311, 1551037884, 101039829, 135050206, 437757123, 337553864, 1042385657, 807962610, 573804783, 742039012, 2531067453, 2564033334, 2328828971, 2227573024, 2935566865, 2700099354, 3001755655, 3168937228, 3868552805, 3902563182, 4203181171, 4102977912, 3736164937, 3501741890, 3265478751, 3433712980, 1106041591, 1340463100, 1576976609, 1408749034, 2043211483, 2009195472, 1708848333, 1809054150, 832877231, 1068351396, 766945465, 599762354, 159417987, 126454664, 361929877, 463180190, 2709260871, 2943682380, 3178106961, 3009879386, 2572697195, 2538681184, 2236228733, 2336434550, 3509871135, 3745345300, 3441850377, 3274667266, 3910161971, 3877198648, 4110568485, 4211818798, 2597806476, 2497604743, 2261089178, 2295101073, 2733856160, 2902087851, 3202437046, 2968011453, 3936291284, 3835036895, 4136440770, 4169408201, 3535486456, 3702665459, 3467192302, 3231722213, 2051518780, 1951317047, 1716890410, 1750902305, 1113818384, 1282050075, 1584504582, 1350078989, 168810852, 67556463, 371049330, 404016761, 841739592, 1008918595, 775550814, 540080725, 3969562369, 3801332234, 4035489047, 4269907996, 3569255213, 3669462566, 3366754619, 3332740144, 2631065433, 2463879762, 2160117071, 2395588676, 2767645557, 2868897406, 3102011747, 3069049960, 202008497, 33778362, 270040487, 504459436, 875451293, 975658646, 675039627, 641025152, 2084704233, 1917518562, 1615861247, 1851332852, 1147550661, 1248802510, 1484005843, 1451044056, 933301370, 967311729, 733156972, 632953703, 260388950, 25965917, 328671808, 496906059, 1206477858, 1239443753, 1543208500, 1441952575, 2144161806, 1908694277, 1675577880, 1842759443, 3610369226, 3644379585, 3408119516, 3307916247, 4011190502, 3776767469, 4077384432, 4245618683, 2809771154, 2842737049, 3144396420, 3043140495, 2673705150, 2438237621, 2203032232, 2370213795],
|
||
S = [0, 185469197, 370938394, 487725847, 741876788, 657861945, 975451694, 824852259, 1483753576, 1400783205, 1315723890, 1164071807, 1950903388, 2135319889, 1649704518, 1767536459, 2967507152, 3152976349, 2801566410, 2918353863, 2631447780, 2547432937, 2328143614, 2177544179, 3901806776, 3818836405, 4270639778, 4118987695, 3299409036, 3483825537, 3535072918, 3652904859, 2077965243, 1893020342, 1841768865, 1724457132, 1474502543, 1559041666, 1107234197, 1257309336, 598438867, 681933534, 901210569, 1052338372, 261314535, 77422314, 428819965, 310463728, 3409685355, 3224740454, 3710368113, 3593056380, 3875770207, 3960309330, 4045380933, 4195456072, 2471224067, 2554718734, 2237133081, 2388260884, 3212035895, 3028143674, 2842678573, 2724322336, 4138563181, 4255350624, 3769721975, 3955191162, 3667219033, 3516619604, 3431546947, 3347532110, 2933734917, 2782082824, 3099667487, 3016697106, 2196052529, 2313884476, 2499348523, 2683765030, 1179510461, 1296297904, 1347548327, 1533017514, 1786102409, 1635502980, 2087309459, 2003294622, 507358933, 355706840, 136428751, 53458370, 839224033, 957055980, 605657339, 790073846, 2373340630, 2256028891, 2607439820, 2422494913, 2706270690, 2856345839, 3075636216, 3160175349, 3573941694, 3725069491, 3273267108, 3356761769, 4181598602, 4063242375, 4011996048, 3828103837, 1033297158, 915985419, 730517276, 545572369, 296679730, 446754879, 129166120, 213705253, 1709610350, 1860738147, 1945798516, 2029293177, 1239331162, 1120974935, 1606591296, 1422699085, 4148292826, 4233094615, 3781033664, 3931371469, 3682191598, 3497509347, 3446004468, 3328955385, 2939266226, 2755636671, 3106780840, 2988687269, 2198438022, 2282195339, 2501218972, 2652609425, 1201765386, 1286567175, 1371368976, 1521706781, 1805211710, 1620529459, 2105887268, 1988838185, 533804130, 350174575, 164439672, 46346101, 870912086, 954669403, 636813900, 788204353, 2358957921, 2274680428, 2592523643, 2441661558, 2695033685, 2880240216, 3065962831, 3182487618, 3572145929, 3756299780, 3270937875, 3388507166, 4174560061, 4091327024, 4006521127, 3854606378, 1014646705, 930369212, 711349675, 560487590, 272786309, 457992840, 106852767, 223377554, 1678381017, 1862534868, 1914052035, 2031621326, 1211247597, 1128014560, 1580087799, 1428173050, 32283319, 182621114, 401639597, 486441376, 768917123, 651868046, 1003007129, 818324884, 1503449823, 1385356242, 1333838021, 1150208456, 1973745387, 2125135846, 1673061617, 1756818940, 2970356327, 3120694122, 2802849917, 2887651696, 2637442643, 2520393566, 2334669897, 2149987652, 3917234703, 3799141122, 4284502037, 4100872472, 3309594171, 3460984630, 3545789473, 3629546796, 2050466060, 1899603969, 1814803222, 1730525723, 1443857720, 1560382517, 1075025698, 1260232239, 575138148, 692707433, 878443390, 1062597235, 243256656, 91341917, 409198410, 325965383, 3403100636, 3252238545, 3704300486, 3620022987, 3874428392, 3990953189, 4042459122, 4227665663, 2460449204, 2578018489, 2226875310, 2411029155, 3198115200, 3046200461, 2827177882, 2743944855],
|
||
k = [0, 218828297, 437656594, 387781147, 875313188, 958871085, 775562294, 590424639, 1750626376, 1699970625, 1917742170, 2135253587, 1551124588, 1367295589, 1180849278, 1265195639, 3501252752, 3720081049, 3399941250, 3350065803, 3835484340, 3919042237, 4270507174, 4085369519, 3102249176, 3051593425, 2734591178, 2952102595, 2361698556, 2177869557, 2530391278, 2614737639, 3145456443, 3060847922, 2708326185, 2892417312, 2404901663, 2187128086, 2504130317, 2555048196, 3542330227, 3727205754, 3375740769, 3292445032, 3876557655, 3926170974, 4246310725, 4027744588, 1808481195, 1723872674, 1910319033, 2094410160, 1608975247, 1391201670, 1173430173, 1224348052, 59984867, 244860394, 428169201, 344873464, 935293895, 984907214, 766078933, 547512796, 1844882806, 1627235199, 2011214180, 2062270317, 1507497298, 1423022939, 1137477952, 1321699145, 95345982, 145085239, 532201772, 313773861, 830661914, 1015671571, 731183368, 648017665, 3175501286, 2957853679, 2807058932, 2858115069, 2305455554, 2220981195, 2474404304, 2658625497, 3575528878, 3625268135, 3473416636, 3254988725, 3778151818, 3963161475, 4213447064, 4130281361, 3599595085, 3683022916, 3432737375, 3247465558, 3802222185, 4020912224, 4172763771, 4122762354, 3201631749, 3017672716, 2764249623, 2848461854, 2331590177, 2280796200, 2431590963, 2648976442, 104699613, 188127444, 472615631, 287343814, 840019705, 1058709744, 671593195, 621591778, 1852171925, 1668212892, 1953757831, 2037970062, 1514790577, 1463996600, 1080017571, 1297403050, 3673637356, 3623636965, 3235995134, 3454686199, 4007360968, 3822090177, 4107101658, 4190530515, 2997825956, 3215212461, 2830708150, 2779915199, 2256734592, 2340947849, 2627016082, 2443058075, 172466556, 122466165, 273792366, 492483431, 1047239e3, 861968209, 612205898, 695634755, 1646252340, 1863638845, 2013908262, 1963115311, 1446242576, 1530455833, 1277555970, 1093597963, 1636604631, 1820824798, 2073724613, 1989249228, 1436590835, 1487645946, 1337376481, 1119727848, 164948639, 81781910, 331544205, 516552836, 1039717051, 821288114, 669961897, 719700128, 2973530695, 3157750862, 2871682645, 2787207260, 2232435299, 2283490410, 2667994737, 2450346104, 3647212047, 3564045318, 3279033885, 3464042516, 3980931627, 3762502690, 4150144569, 4199882800, 3070356634, 3121275539, 2904027272, 2686254721, 2200818878, 2384911031, 2570832044, 2486224549, 3747192018, 3528626907, 3310321856, 3359936201, 3950355702, 3867060991, 4049844452, 4234721005, 1739656202, 1790575107, 2108100632, 1890328081, 1402811438, 1586903591, 1233856572, 1149249077, 266959938, 48394827, 369057872, 418672217, 1002783846, 919489135, 567498868, 752375421, 209336225, 24197544, 376187827, 459744698, 945164165, 895287692, 574624663, 793451934, 1679968233, 1764313568, 2117360635, 1933530610, 1343127501, 1560637892, 1243112415, 1192455638, 3704280881, 3519142200, 3336358691, 3419915562, 3907448597, 3857572124, 4075877127, 4294704398, 3029510009, 3113855344, 2927934315, 2744104290, 2159976285, 2377486676, 2594734927, 2544078150],
|
||
_ = [0, 151849742, 303699484, 454499602, 607398968, 758720310, 908999204, 1059270954, 1214797936, 1097159550, 1517440620, 1400849762, 1817998408, 1699839814, 2118541908, 2001430874, 2429595872, 2581445614, 2194319100, 2345119218, 3034881240, 3186202582, 2801699524, 2951971274, 3635996816, 3518358430, 3399679628, 3283088770, 4237083816, 4118925222, 4002861748, 3885750714, 1002142683, 850817237, 698445255, 548169417, 529487843, 377642221, 227885567, 77089521, 1943217067, 2061379749, 1640576439, 1757691577, 1474760595, 1592394909, 1174215055, 1290801793, 2875968315, 2724642869, 3111247143, 2960971305, 2405426947, 2253581325, 2638606623, 2487810577, 3808662347, 3926825029, 4044981591, 4162096729, 3342319475, 3459953789, 3576539503, 3693126241, 1986918061, 2137062819, 1685577905, 1836772287, 1381620373, 1532285339, 1078185097, 1229899655, 1040559837, 923313619, 740276417, 621982671, 439452389, 322734571, 137073913, 19308535, 3871163981, 4021308739, 4104605777, 4255800159, 3263785589, 3414450555, 3499326569, 3651041127, 2933202493, 2815956275, 3167684641, 3049390895, 2330014213, 2213296395, 2566595609, 2448830231, 1305906550, 1155237496, 1607244650, 1455525988, 1776460110, 1626319424, 2079897426, 1928707164, 96392454, 213114376, 396673818, 514443284, 562755902, 679998e3, 865136418, 983426092, 3708173718, 3557504664, 3474729866, 3323011204, 4180808110, 4030667424, 3945269170, 3794078908, 2507040230, 2623762152, 2272556026, 2390325492, 2975484382, 3092726480, 2738905026, 2857194700, 3973773121, 3856137295, 4274053469, 4157467219, 3371096953, 3252932727, 3673476453, 3556361835, 2763173681, 2915017791, 3064510765, 3215307299, 2156299017, 2307622919, 2459735317, 2610011675, 2081048481, 1963412655, 1846563261, 1729977011, 1480485785, 1362321559, 1243905413, 1126790795, 878845905, 1030690015, 645401037, 796197571, 274084841, 425408743, 38544885, 188821243, 3613494426, 3731654548, 3313212038, 3430322568, 4082475170, 4200115116, 3780097726, 3896688048, 2668221674, 2516901860, 2366882550, 2216610296, 3141400786, 2989552604, 2837966542, 2687165888, 1202797690, 1320957812, 1437280870, 1554391400, 1669664834, 1787304780, 1906247262, 2022837584, 265905162, 114585348, 499347990, 349075736, 736970802, 585122620, 972512814, 821712160, 2595684844, 2478443234, 2293045232, 2174754046, 3196267988, 3079546586, 2895723464, 2777952454, 3537852828, 3687994002, 3234156416, 3385345166, 4142626212, 4293295786, 3841024952, 3992742070, 174567692, 57326082, 410887952, 292596766, 777231668, 660510266, 1011452712, 893681702, 1108339068, 1258480242, 1343618912, 1494807662, 1715193156, 1865862730, 1948373848, 2100090966, 2701949495, 2818666809, 3004591147, 3122358053, 2235061775, 2352307457, 2535604243, 2653899549, 3915653703, 3764988233, 4219352155, 4067639125, 3444575871, 3294430577, 3746175075, 3594982253, 836553431, 953270745, 600235211, 718002117, 367585007, 484830689, 133361907, 251657213, 2041877159, 1891211689, 1806599355, 1654886325, 1568718495, 1418573201, 1335535747, 1184342925];
|
||
|
||
function I(i) { for (var t = [], e = 0; e < i.length; e += 4) t.push(i[e] << 24 | i[e + 1] << 16 | i[e + 2] << 8 | i[e + 3]); return t }
|
||
|
||
function A(i) { if (!(this instanceof A)) throw Error("AES must be instanitated with `new`");
|
||
Object.defineProperty(this, "key", { value: r(i, !0) }), this.gAA() }
|
||
|
||
function M(i) { if (!(this instanceof M)) throw Error("AES must be instanitated with `new`");
|
||
this.description = "Electronic Code Block", this.name = "ecb", this.tAA = new A(i) }
|
||
|
||
function E(i, t) { if (!(this instanceof E)) throw Error("AES must be instanitated with `new`"); if (this.description = "Cipher Block Chaining", this.name = "cbc", t) { if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)") } else t = h(16);
|
||
this.IAA = r(t, !0), this.tAA = new A(i) }
|
||
|
||
function C(i, t, e) { if (!(this instanceof C)) throw Error("AES must be instanitated with `new`"); if (this.description = "Cipher Feedback", this.name = "cfb", t) { if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 size)") } else t = h(16);
|
||
this.BAA = e = e || 1, this.eAA = r(t, !0), this.tAA = new A(i) }
|
||
|
||
function F(i, t) { if (!(this instanceof F)) throw Error("AES must be instanitated with `new`"); if (this.description = "Output Feedback", this.name = "ofb", t) { if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)") } else t = h(16);
|
||
this.QAA = r(t, !0), this.oAA = 16, this.tAA = new A(i) }
|
||
|
||
function T(i) { if (!(this instanceof T)) throw Error("Counter must be instanitated with `new`"); "number" == typeof(i = 0 !== i ? i || 1 : i) ? (this.g2t = h(16), this.VV(i)) : this.CAA(i) }
|
||
|
||
function L(i, t) { if (!(this instanceof L)) throw Error("AES must be instanitated with `new`");
|
||
this.description = "Counter", this.name = "ctr", t instanceof T || (t = new T(t)), this.g2t = t, this.EAA = null, this.hAA = 16, this.tAA = new A(i) }
|
||
A.prototype.gAA = function() { var i = u[this.key.length]; if (null == i) throw new Error("invalid key size (must be 16, 24 or 32 bytes)");
|
||
this.aAA = [], this.nAA = []; for (var t = 0; t <= i; t++) this.aAA.push([0, 0, 0, 0]), this.nAA.push([0, 0, 0, 0]); for (var e, o = 4 * (i + 1), n = this.key.length / 4, r = I(this.key), t = 0; t < n; t++) this.aAA[e = t >> 2][t % 4] = r[t], this.nAA[i - e][t % 4] = r[t]; for (var l, a = 0, h = n; h < o;) { if (l = r[n - 1], r[0] ^= p[l >> 16 & 255] << 24 ^ p[l >> 8 & 255] << 16 ^ p[255 & l] << 8 ^ p[l >> 24 & 255] ^ d[a] << 24, a += 1, 8 != n)
|
||
for (t = 1; t < n; t++) r[t] ^= r[t - 1];
|
||
else { for (t = 1; t < n / 2; t++) r[t] ^= r[t - 1]; for (l = r[n / 2 - 1], r[n / 2] ^= p[255 & l] ^ p[l >> 8 & 255] << 8 ^ p[l >> 16 & 255] << 16 ^ p[l >> 24 & 255] << 24, t = n / 2 + 1; t < n; t++) r[t] ^= r[t - 1] } for (t = 0; t < n && h < o;) this.aAA[s = h >> 2][f = h % 4] = r[t], this.nAA[i - s][f] = r[t++], h++ } for (var s = 1; s < i; s++)
|
||
for (var f = 0; f < 4; f++) l = this.nAA[s][f], this.nAA[s][f] = m[l >> 24 & 255] ^ S[l >> 16 & 255] ^ k[l >> 8 & 255] ^ _[255 & l] }, A.prototype.encrypt = function(i) { if (16 != i.length) throw new Error("invalid plaintext size (must be 16 bytes)"); for (var t = this.aAA.length - 1, e = [0, 0, 0, 0], o = I(i), n = 0; n < 4; n++) o[n] ^= this.aAA[0][n]; for (var r = 1; r < t; r++) { for (n = 0; n < 4; n++) e[n] = c[o[n] >> 24 & 255] ^ y[o[(n + 1) % 4] >> 16 & 255] ^ x[o[(n + 2) % 4] >> 8 & 255] ^ v[255 & o[(n + 3) % 4]] ^ this.aAA[r][n];
|
||
o = e.slice() } for (var l, a = h(16), n = 0; n < 4; n++) l = this.aAA[t][n], a[4 * n] = 255 & (p[o[n] >> 24 & 255] ^ l >> 24), a[4 * n + 1] = 255 & (p[o[(n + 1) % 4] >> 16 & 255] ^ l >> 16), a[4 * n + 2] = 255 & (p[o[(n + 2) % 4] >> 8 & 255] ^ l >> 8), a[4 * n + 3] = 255 & (p[255 & o[(n + 3) % 4]] ^ l); return a }, A.prototype.decrypt = function(i) { if (16 != i.length) throw new Error("invalid ciphertext size (must be 16 bytes)"); for (var t = this.nAA.length - 1, e = [0, 0, 0, 0], o = I(i), n = 0; n < 4; n++) o[n] ^= this.nAA[0][n]; for (var r = 1; r < t; r++) { for (n = 0; n < 4; n++) e[n] = g[o[n] >> 24 & 255] ^ w[o[(n + 3) % 4] >> 16 & 255] ^ b[o[(n + 2) % 4] >> 8 & 255] ^ R[255 & o[(n + 1) % 4]] ^ this.nAA[r][n];
|
||
o = e.slice() } for (var l, a = h(16), n = 0; n < 4; n++) l = this.nAA[t][n], a[4 * n] = 255 & (f[o[n] >> 24 & 255] ^ l >> 24), a[4 * n + 1] = 255 & (f[o[(n + 3) % 4] >> 16 & 255] ^ l >> 16), a[4 * n + 2] = 255 & (f[o[(n + 2) % 4] >> 8 & 255] ^ l >> 8), a[4 * n + 3] = 255 & (f[255 & o[(n + 1) % 4]] ^ l); return a }, M.prototype.encrypt = function(i) { if ((i = r(i)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)"); for (var t = h(i.length), e = h(16), o = 0; o < i.length; o += 16) l(i, e, 0, o, o + 16), l(e = this.tAA.encrypt(e), t, o); return t }, M.prototype.decrypt = function(i) { if ((i = r(i)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)"); for (var t = h(i.length), e = h(16), o = 0; o < i.length; o += 16) l(i, e, 0, o, o + 16), l(e = this.tAA.decrypt(e), t, o); return t }, E.prototype.encrypt = function(i) { if ((i = r(i)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)"); for (var t = h(i.length), e = h(16), o = 0; o < i.length; o += 16) { l(i, e, 0, o, o + 16); for (var n = 0; n < 16; n++) e[n] ^= this.IAA[n];
|
||
this.IAA = this.tAA.encrypt(e), l(this.IAA, t, o) } return t }, E.prototype.decrypt = function(i) { if ((i = r(i)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)"); for (var t = h(i.length), e = h(16), o = 0; o < i.length; o += 16) { l(i, e, 0, o, o + 16); for (var e = this.tAA.decrypt(e), n = 0; n < 16; n++) t[o + n] = e[n] ^ this.IAA[n];
|
||
l(i, this.IAA, 0, o, o + 16) } return t }, C.prototype.encrypt = function(i) { if (i.length % this.BAA != 0) throw new Error("invalid plaintext size (must be segmentSize bytes)"); for (var t = r(i, !0), e = 0; e < t.length; e += this.BAA) { for (var o = this.tAA.encrypt(this.eAA), n = 0; n < this.BAA; n++) t[e + n] ^= o[n];
|
||
l(this.eAA, this.eAA, 0, this.BAA), l(t, this.eAA, 16 - this.BAA, e, e + this.BAA) } return t }, C.prototype.decrypt = function(i) { if (i.length % this.BAA != 0) throw new Error("invalid ciphertext size (must be segmentSize bytes)"); for (var t = r(i, !0), e = 0; e < t.length; e += this.BAA) { for (var o = this.tAA.encrypt(this.eAA), n = 0; n < this.BAA; n++) t[e + n] ^= o[n];
|
||
l(this.eAA, this.eAA, 0, this.BAA), l(i, this.eAA, 16 - this.BAA, e, e + this.BAA) } return t }, F.prototype.decrypt = F.prototype.encrypt = function(i) { for (var t = r(i, !0), e = 0; e < t.length; e++) 16 === this.oAA && (this.QAA = this.tAA.encrypt(this.QAA), this.oAA = 0), t[e] ^= this.QAA[this.oAA++]; return t }, T.prototype.VV = function(i) { if ("number" != typeof i || parseInt(i) != i) throw new Error("invalid counter value (must be an integer)"); if (i > Number.MAX_SAFE_INTEGER) throw new Error("integer value out of safe range"); for (var t = 15; 0 <= t; --t) this.g2t[t] = i % 256, i = parseInt(i / 256) }, T.prototype.CAA = function(i) { if (16 != (i = r(i, !0)).length) throw new Error("invalid counter bytes size (must be 16 bytes)");
|
||
this.g2t = i }, T.prototype.lAA = function() { for (var i = 15; 0 <= i; i--) { if (255 !== this.g2t[i]) { this.g2t[i]++; break }
|
||
this.g2t[i] = 0 } }, L.prototype.decrypt = L.prototype.encrypt = function(i) { for (var t = r(i, !0), e = 0; e < t.length; e++) 16 === this.hAA && (this.EAA = this.tAA.encrypt(this.g2t.g2t), this.hAA = 0, this.g2t.lAA()), t[e] ^= this.EAA[this.hAA++]; return t }, i.exports = { rAA: A, Counter: T, sAA: { wAA: M, cAA: E, yAA: C, xAA: F, dAA: L }, fAA: { pAA: s, DAA: a }, padding: { uAA: { pad: function(i) { var t = 16 - (i = r(i, !0)).length % 16,
|
||
e = h(i.length + t);
|
||
l(i, e); for (var o = i.length; o < e.length; o++) e[o] = t; return e }, RAA: function(i) { if ((i = r(i, !0)).length < 16) throw new Error("PKCS#7 invalid length"); var t = i[i.length - 1]; if (16 < t) throw new Error("PKCS#7 padding byte out of range"); for (var e = i.length - t, o = 0; o < t; o++)
|
||
if (i[e + o] !== t) throw new Error("PKCS#7 invalid padding byte");
|
||
var n = h(e); return l(i, n, 0, 0, e), n } } }, vAA: { bAA: r, SAA: h, GAA: l } } }),
|
||
BuildingRing = { read: function(i, t) { return i.nw(BuildingRing.IQ, { path: [] }, t) }, IQ: function(i, t, e) { 1 === i && e.tw(t.path) }, write: function(i, t) { if (i.path)
|
||
for (var e = 0; e < i.path.length; e++) t.rw(1, i.path[e]) } },
|
||
Building = { read: function(i, t) { return i.nw(Building.IQ, { minzoom: 0, maxzoom: 0, path: [], height: 0, hpt: 0 }, t) }, IQ: function(i, t, e) { 1 === i ? t.minzoom = e.ow() : 2 === i ? t.maxzoom = e.ow() : 3 === i ? t.path.push(BuildingRing.read(e, e.ow() + e.pos)) : 4 === i ? t.height = e.ow() : 5 === i && (t.hpt = e.ow(!0)) }, write: function(i, t) { if (i.minzoom && t.rw(1, i.minzoom), i.maxzoom && t.rw(2, i.maxzoom), i.path)
|
||
for (var e = 0; e < i.path.length; e++) t.fw(3, BuildingRing.write, i.path[e]);
|
||
i.height && t.rw(4, i.height), i.hpt && t.rw(5, i.hpt) } },
|
||
BuildingSameStyle = { read: function(i, t) { return i.nw(BuildingSameStyle.IQ, { tii: "", resolution: 0, items: [] }, t) }, IQ: function(i, t, e) { 1 === i ? t.tii = e.aw() : 2 === i ? t.resolution = e.ow() : 3 === i && t.items.push(Building.read(e, e.ow() + e.pos)) }, write: function(i, t) { if (i.tii && t.uw(1, i.tii), i.resolution && t.rw(2, i.resolution), i.items)
|
||
for (var e = 0; e < i.items.length; e++) t.fw(3, Building.write, i.items[e]) } },
|
||
BuildingLayer = { read: function(i, t) { return i.nw(BuildingLayer.IQ, { building: [] }, t) }, IQ: function(i, t, e) { 1 === i && t.building.push(BuildingSameStyle.read(e, e.ow() + e.pos)) }, write: function(i, t) { if (i.building)
|
||
for (var e = 0; e < i.building.length; e++) t.fw(1, BuildingSameStyle.write, i.building[e]) } },
|
||
Language = { read: function(i, t) { return i.nw(Language.IQ, { language_code: "", eii: [], name: "", oii: [] }, t) }, IQ: function(i, t, e) { 1 === i ? t.language_code = e.aw() : 2 === i ? e.tw(t.eii) : 3 === i ? t.name = e.aw() : 4 === i && e.tw(t.oii) }, write: function(i, t) { if (i.language_code && t.uw(1, i.language_code), i.eii)
|
||
for (var e = 0; e < i.eii.length; e++) t.rw(2, i.eii[e]); if (i.name && t.uw(3, i.name), i.oii)
|
||
for (e = 0; e < i.oii.length; e++) t.rw(4, i.oii[e]) } },
|
||
MultiLanguage = { read: function(i, t) { return i.nw(MultiLanguage.IQ, { nii: [] }, t) }, IQ: function(i, t, e) { 1 === i && t.nii.push(Language.read(e, e.ow() + e.pos)) }, write: function(i, t) { if (i.nii)
|
||
for (var e = 0; e < i.nii.length; e++) t.fw(1, Language.write, i.nii[e]) } },
|
||
Poi = { read: function(i, t) { return i.nw(Poi.IQ, { hpt: 0, cw: "", name: "", pos: [], maxzoom: 0, minzoom: 0, tile: "", rank: 0, rii: null, other: null }, t) }, IQ: function(i, t, e) { 1 === i ? t.hpt = e.ow() : 2 === i ? t.cw = e.aw() : 3 === i ? t.name = e.aw() : 4 === i ? e.tw(t.pos) : 5 === i ? t.maxzoom = e.ow() : 6 === i ? t.minzoom = e.ow() : 7 === i ? t.tile = e.aw() : 8 === i ? t.rank = e.ow() : 9 === i ? t.rii = MultiLanguage.read(e, e.ow() + e.pos) : 10 === i && (t.other = MultiLanguage.read(e, e.ow() + e.pos)) }, write: function(i, t) { if (i.hpt && t.rw(1, i.hpt), i.cw && t.uw(2, i.cw), i.name && t.uw(3, i.name), i.pos)
|
||
for (var e = 0; e < i.pos.length; e++) t.rw(4, i.pos[e]);
|
||
i.maxzoom && t.rw(5, i.maxzoom), i.minzoom && t.rw(6, i.minzoom), i.tile && t.uw(7, i.tile), i.rank && t.rw(8, i.rank), i.rii && t.fw(9, MultiLanguage.write, i.rii), i.other && t.fw(10, MultiLanguage.write, i.other) } },
|
||
PoiSameStyle = { read: function(i, t) { return i.nw(PoiSameStyle.IQ, { tii: "", resolution: 0, items: [] }, t) }, IQ: function(i, t, e) { 1 === i ? t.tii = e.aw() : 2 === i ? t.resolution = e.ow() : 3 === i && t.items.push(Poi.read(e, e.ow() + e.pos)) }, write: function(i, t) { if (i.tii && t.uw(1, i.tii), i.resolution && t.rw(2, i.resolution), i.items)
|
||
for (var e = 0; e < i.items.length; e++) t.fw(3, Poi.write, i.items[e]) } },
|
||
PoiLayer = { read: function(i, t) { return i.nw(PoiLayer.IQ, { poilabel: [] }, t) }, IQ: function(i, t, e) { 1 === i && t.poilabel.push(PoiSameStyle.read(e, e.ow() + e.pos)) }, write: function(i, t) { if (i.poilabel)
|
||
for (var e = 0; e < i.poilabel.length; e++) t.fw(1, PoiSameStyle.write, i.poilabel[e]) } },
|
||
RegionRing = { read: function(i, t) { return i.nw(RegionRing.IQ, { path: [] }, t) }, IQ: function(i, t, e) { 1 === i && e.tw(t.path, !0) }, write: function(i, t) { if (i.path)
|
||
for (var e = 0; e < i.path.length; e++) t.rw(1, i.path[e]) } },
|
||
Region = { read: function(i, t) { return i.nw(Region.IQ, { minzoom: 0, maxzoom: 0, path: [], hpt: 0 }, t) }, IQ: function(i, t, e) { 1 === i ? t.minzoom = e.ow() : 2 === i ? t.maxzoom = e.ow() : 3 === i ? t.path.push(RegionRing.read(e, e.ow() + e.pos)) : 4 === i && (t.hpt = e.ow()) }, write: function(i, t) { if (i.minzoom && t.rw(1, i.minzoom), i.maxzoom && t.rw(2, i.maxzoom), i.path)
|
||
for (var e = 0; e < i.path.length; e++) t.fw(3, RegionRing.write, i.path[e]);
|
||
i.hpt && t.rw(4, i.hpt) } },
|
||
RegionSameStyle = { read: function(i, t) { return i.nw(RegionSameStyle.IQ, { tii: "", resolution: 0, items: [] }, t) }, IQ: function(i, t, e) { 1 === i ? t.tii = e.aw() : 2 === i ? t.resolution = e.ow() : 3 === i && t.items.push(Region.read(e, e.ow() + e.pos)) }, write: function(i, t) { if (i.tii && t.uw(1, i.tii), i.resolution && t.rw(2, i.resolution), i.items)
|
||
for (var e = 0; e < i.items.length; e++) t.fw(3, Region.write, i.items[e]) } },
|
||
RegionLayer = { read: function(i, t) { return i.nw(RegionLayer.IQ, { region: [] }, t) }, IQ: function(i, t, e) { 1 === i && t.region.push(RegionSameStyle.read(e, e.ow() + e.pos)) }, write: function(i, t) { if (i.region)
|
||
for (var e = 0; e < i.region.length; e++) t.fw(1, RegionSameStyle.write, i.region[e]) } },
|
||
Road = { read: function(i, t) { return i.nw(Road.IQ, { minzoom: 0, maxzoom: 0, path: [], shieldType: 0, name: "", rank: 0, hpt: 0 }, t) }, IQ: function(i, t, e) { 1 === i ? t.minzoom = e.ow() : 2 === i ? t.maxzoom = e.ow() : 3 === i ? e.tw(t.path, !0) : 4 === i ? t.shieldType = e.ow() : 5 === i ? t.name = e.aw() : 6 === i ? t.rank = e.ow() : 7 === i && (t.hpt = e.ow()) }, write: function(i, t) { if (i.minzoom && t.rw(1, i.minzoom), i.maxzoom && t.rw(2, i.maxzoom), i.path)
|
||
for (var e = 0; e < i.path.length; e++) t.rw(3, i.path[e]);
|
||
i.shieldType && t.rw(4, i.shieldType), i.name && t.uw(5, i.name), i.rank && t.rw(6, i.rank), i.hpt && t.rw(7, i.hpt) } },
|
||
RoadSameStyle = { read: function(i, t) { return i.nw(RoadSameStyle.IQ, { tii: "", items: [] }, t) }, IQ: function(i, t, e) { 1 === i ? t.tii = e.aw() : 2 === i && t.items.push(Road.read(e, e.ow() + e.pos)) }, write: function(i, t) { if (i.tii && t.uw(1, i.tii), i.items)
|
||
for (var e = 0; e < i.items.length; e++) t.fw(2, Road.write, i.items[e]) } },
|
||
RoadLayer = { read: function(i, t) { return i.nw(RoadLayer.IQ, { resolution: 0, road: [] }, t) }, IQ: function(i, t, e) { 1 === i ? t.resolution = e.ow() : 2 === i && t.road.push(RoadSameStyle.read(e, e.ow() + e.pos)) }, write: function(i, t) { if (i.resolution && t.rw(1, i.resolution), i.road)
|
||
for (var e = 0; e < i.road.length; e++) t.fw(2, RoadSameStyle.write, i.road[e]) } },
|
||
Layer = { read: function(i, t) { return i.nw(Layer.IQ, { z: 0, x: 0, y: 0, type: 0, d: null }, t) }, IQ: function(i, t, e) { 1 === i ? t.z = e.ow() : 2 === i ? t.x = e.ow() : 3 === i ? t.y = e.ow() : 4 === i ? t.type = e.ow() : 5 === i && (t.d = e.mw()) }, write: function(i, t) { i.z && t.rw(1, i.z), i.x && t.rw(2, i.x), i.y && t.rw(3, i.y), i.type && t.rw(4, i.type), i.d && t.ww(5, i.d) } },
|
||
Tile = { read: function(i, t) { return i.nw(Tile.IQ, { z: 0, x: 0, y: 0, layers: [] }, t) }, IQ: function(i, t, e) { 1 === i ? t.z = e.ow() : 2 === i ? t.x = e.ow() : 3 === i ? t.y = e.ow() : 4 === i && t.layers.push(Layer.read(e, e.ow() + e.pos)) }, write: function(i, t) { if (i.z && t.rw(1, i.z), i.x && t.rw(2, i.x), i.y && t.rw(3, i.y), i.layers)
|
||
for (var e = 0; e < i.layers.length; e++) t.fw(4, Layer.write, i.layers[e]) } },
|
||
Result = { read: function(i, t) { return i.nw(Result.IQ, { tiles: [], version: "", status: !1 }, t) }, IQ: function(i, t, e) { 1 === i ? t.tiles.push(Tile.read(e, e.ow() + e.pos)) : 2 === i ? t.version = e.aw() : 3 === i && (t.status = e.vw()) }, write: function(i, t) { if (i.tiles)
|
||
for (var e = 0; e < i.tiles.length; e++) t.fw(1, Tile.write, i.tiles[e]);
|
||
i.version && t.uw(2, i.version), i.status && t.hw(3, i.status) } },
|
||
decodePois = function(i) { return i = new polyfill.pw(i), PoiLayer.read(i) },
|
||
decodeRoads = function(i) { return i = new polyfill.pw(i), RoadLayer.read(i) },
|
||
decodeRegions = function(i) { return i = new polyfill.pw(i), RegionLayer.read(i) },
|
||
decodeBuildings = function(i) { return i = new polyfill.pw(i), BuildingLayer.read(i) },
|
||
decodeTilesOversea = function(i) { for (var i = new polyfill.pw(i), t = (i = Result.read(i)).tiles, e = 0, o = t.length; e < o; e += 1)
|
||
for (var n = t[e].layers, r = 0, l = n.length; r < l; r += 1) switch (n[r].type) {
|
||
case 0:
|
||
n[r].d = decodePois(n[r].d); break;
|
||
case 1:
|
||
n[r].d = decodeRoads(n[r].d); break;
|
||
case 2:
|
||
n[r].d = decodeRegions(n[r].d); break;
|
||
case 3:
|
||
n[r].d = decodeBuildings(n[r].d) }
|
||
return i },
|
||
_a, geoUtil = new polyfill.rW({}),
|
||
LabelFormatMap = (_a = {}, _a[polyfill.NebulaLabelFormat.id] = polyfill.NebulaLabelFormat, _a.nebula = polyfill.NebulaLabelFormat, _a[polyfill.MapboxLabelFormat.id] = polyfill.MapboxLabelFormat, _a),
|
||
NebulaSourceWorker = function(e) {
|
||
function r(i) { var t = e.call(this) || this; return t.parent = i, t.id = "nebula", t.sQ = {}, t.aW = null, t.WW = 20, t.xQ = [], t.bQ = [], t.iii = [26, 16, 8, 4, 12, 20, 9, 3, 6, 23, 14, 17, 1, 5, 19, 2], t.bind(), t } return polyfill.Ei(r, e), r.prototype.bind = function() { var w = this;
|
||
this.on("styleReady", function() { var i = w.xQ.length; if (0 < i) { for (var t = 0; t < i; t++) { var e = (p = w.xQ[t]).data,
|
||
o = p.projectionId,
|
||
n = p.zoom,
|
||
r = p.viewMode,
|
||
l = p.showBuildingBlock,
|
||
a = p.mS,
|
||
h = p.optimalZoom,
|
||
s = p.ZL,
|
||
f = p.cb,
|
||
u = p.url;
|
||
(c = p.wZ) && "oversea" === c ? w.lii(e, o, n, r, l, a, h, s, f, u) : w.pQ(e, o, n, r, l, a, h, s, f, u) }
|
||
w.xQ = [] } var d = w.bQ.length; if (0 < d) { for (t = 0; t < d; t++) { var p, c, y = (p = w.bQ[t]).CD,
|
||
x = p.cQ,
|
||
e = p.data,
|
||
o = p.projectionId,
|
||
f = p.cb,
|
||
v = p.UQ,
|
||
g = p.mH,
|
||
s = p.ZL;
|
||
(c = p.wZ) && "oversea" === c ? w.aii(y, x, e, o, f, v, g, s) : w.mQ(y, x, e, o, f, v, g, s) }
|
||
w.bQ = [] } }) }, r.prototype.bw = function(e, i, o, n, r, t, l, a, h, s, f, u, d) { var p = this; if (void 0 === d && (d = !0), polyfill.Support.wasm && d) { if (!this.parent.PW) return void u("not init");
|
||
d = i.join(";"), d = aesJs.fAA.DAA.AAA('["' + d + '","' + f + '"]'), d = new aesJs.sAA.dAA(this.iii, new aesJs.Counter(5)).encrypt(d), d = aesJs.fAA.pAA.iAA(d), e = e + ("?key=" + this.parent.key) + "&val=" + d } else e = e + ("?key=" + this.parent.key) + "&flds=" + f + "&t=" + i.join(";"); return e += "&p=3", makeFetchRequest(this.parent.Uh, e, function(i, t) { i ? u(i) : setTimeout(function() { p.pQ(t, r, o, a, h, l, n, s, u, e) }, 10) }) }, r.prototype.pQ = function(i, e, o, n, r, l, a, t, h, s) { var f = this; if (this.parent.vn && this.parent.vn._Q()) { polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["data-decode-begin"] && (polyfill.Support.amapRunTime["data-decode-begin"] = (new Date).getTime()); for (var u = polyfill.KQ(new Uint8Array(i)), d = [], p = (polyfill.forEach(u.tiles, function(i) { var t = new polyfill.Gh(new polyfill.ca(i.z, i.x, i.y)),
|
||
i = (t.data = f.kw(i, e, t), f.xw(t, o), f.zw(t, o, n, r), f.nz(t, l, a), polyfill.Util.pW(i.t));
|
||
d.push({ zo: t.zo, ba: t.data, tag: i, version: u.version || "" }) }), []), c = this.parent.vn, y = 0, x = d; y < x.length; y++) { var v = x[y]; if (v && v.ba) { if (v.ba.road) { for (var g = [], w = 0, b = v.ba.road; w < b.length; w++) { var m = b[w],
|
||
R = (R = c.dn(m.Fp, m.Ep, t)) ? R[1] : null;
|
||
m.id && R && R.fontSize && R.faceColor && (delete m.gw, g.push({ path: m.path, id: m.id })) }
|
||
v.ba.road = g }
|
||
delete v.ba.poilabel, delete v.ba.region, delete v.ba.building, delete v.ba.Mw }
|
||
p.push(v) }
|
||
polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["data-decode-end"] && (polyfill.Support.amapRunTime["data-decode-end"] = (new Date).getTime()), h(null, { nebulaDatas: p, amapRunTime: polyfill.Support.amapRunTime }) } else this.xQ.push({ data: i, projectionId: e, zoom: o, viewMode: n, showBuildingBlock: r, mS: l, optimalZoom: a, ZL: t, cb: h, url: s }) }, r.prototype.mQ = function(i, t, e, o, n, r, l, a) { this.parent.vn ? this.HQ(e, t, o, i, r, l, a, n) : this.bQ.push({ CD: i, cQ: t, data: e, projectionId: o, cb: n, UQ: r, mH: l, ZL: a }) }, r.prototype.bW = function(i, e, o, n, r, l) { var a = this; if (polyfill.Support.wasm) { if (!this.parent.PW) return void l("not init"); var t = e.join(";"),
|
||
t = aesJs.fAA.DAA.AAA('["' + t + '","poi,roadname"]'),
|
||
t = new aesJs.sAA.dAA(this.iii, new aesJs.Counter(5)).encrypt(t),
|
||
t = aesJs.fAA.pAA.iAA(t);
|
||
i = i + ("?key=" + this.parent.key) + "&val=" + t } else i = i + ("?key=" + this.parent.key) + "&flds=poi,roadname&t=" + e.join(";");
|
||
i += "&p=3", this.WW = n; var h = -1 !== i.indexOf("/oversea"),
|
||
s = new polyfill.vH; return s._H(makeFetchRequest(this.parent.Uh, i, function(i, t) { i ? l(i) : setTimeout(function() { a.mQ(e, h, t, o, l, s, r, n) }, 10) })), { cancel: s.cancel } }, r.prototype.HQ = function(i, t, e, o, n, r, l, a) { for (var h = this, s = polyfill.KQ(new Uint8Array(i)), f = (!t && s.version && this.parent.GW.nebulaVersion !== s.version && (this.parent.GW.nebulaVersion = s.version, this.parent.GW.db = s.db, this.parent.IW.zW(this.parent.GW.db), this.parent.Uh.send("updateDataVersion", this.parent.GW.nebulaVersion)), []), u = (polyfill.forEach(s.tiles, function(i) { var t = new polyfill.Gh(new polyfill.ca(i.z, i.x, i.y)),
|
||
i = (t.data = h.kw(i, e, t), polyfill.Util.pW(i.t));
|
||
f.push({ zo: t.zo, ba: t.data, tag: i }) }), []), d = 0, p = f; d < p.length; d++) { var c, y, x = p[d];
|
||
x && x.ba && (c = x.ba.roadName, y = x.ba.poilabel, delete x.ba.poilabel, delete x.ba.Mw, u.push({ zo: x.zo, ba: { roadName: c, poilabel: y }, tag: x.tag, version: s.version || "" })) } if (u.length) { for (var v = {}, g = 0, w = u; g < w.length; g++) { var R = new polyfill.Gh((b = w[g]).zo),
|
||
m = polyfill.wa.ga(R.zo.x, R.zo.y, R.zo.z, "EPSG:3857"),
|
||
m = (R.type = "nebula", t && (R.cQ = !0), polyfill.lcs.getLocalByCoord([m[0], m[1]]));
|
||
R.localCoord = m, R.data = b.ba;
|
||
(m = this.parent.params).showLabel; var m = m.scale,
|
||
b = b.tag;
|
||
this.sQ[R.zo.key + "," + b] = { tile: R, params: { scale: m, tag: b } }, v[R.zo.key + "," + polyfill.Util.SD(b)] = !0 }
|
||
a(null, v) } }, r.prototype.lii = function(i, e, o, n, r, l, a, t, h, s) { var f = this; if (this.parent.vn && this.parent.vn._Q()) { polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["data-decode-begin"] && (polyfill.Support.amapRunTime["data-decode-begin"] = (new Date).getTime()); for (var u = decodeTilesOversea(new Uint8Array(i)), d = [], p = (polyfill.forEach(u.tiles, function(i) { var t = new polyfill.Gh(new polyfill.ca(i.z, i.x, i.y)),
|
||
i = (t.data = f.kw(i, e, t, "oversea"), f.xw(t, o), f.zw(t, o, n, r), f.nz(t, l, a), polyfill.Util.pW(i.t));
|
||
d.push({ zo: t.zo, ba: t.data, tag: i, version: u.version || "" }) }), []), c = this.parent.vn, y = 0, x = d; y < x.length; y++) { var v = x[y]; if (v && v.ba) { if (v.ba.road) { for (var g = [], w = 0, b = v.ba.road; w < b.length; w++) { var m = b[w],
|
||
R = (R = c.dn(m.Fp, m.Ep, t)) ? R[1] : null;
|
||
m.id && R && R.fontSize && R.faceColor && (delete m.gw, g.push({ path: m.path, id: m.id })) }
|
||
v.ba.road = g }
|
||
delete v.ba.poilabel, delete v.ba.region, delete v.ba.building, delete v.ba.Mw }
|
||
p.push(v) }
|
||
polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["data-decode-end"] && (polyfill.Support.amapRunTime["data-decode-end"] = (new Date).getTime()), h(null, { nebulaDatas: p, amapRunTime: polyfill.Support.amapRunTime }) } else this.xQ.push({ data: i, projectionId: e, zoom: o, viewMode: n, showBuildingBlock: r, mS: l, optimalZoom: a, ZL: t, cb: h, url: s, wZ: "oversea" }) }, r.prototype.hii = function(e, i, o, n, r, t, l, a, h, s, f, u, d) { var p = this; return e = e + ("?key=" + this.parent.key) + "&flds=" + f + "&t=" + i.join(";"), e += "&p=1", makeFetchRequest(this.parent.Uh, e, function(i, t) { i ? u(i) : setTimeout(function() { p.lii(t, r, o, a, h, l, n, s, u, e) }, 10) }) }, r.prototype.sii = function(i, e, o, n, r, l) { var a = this,
|
||
h = (i = i + ("?key=" + this.parent.key) + "&flds=poi,road&t=" + e.join(";"), i += "&p=1", this.WW = n, -1 !== i.indexOf("/oversea")),
|
||
s = new polyfill.vH; return s._H(makeFetchRequest(this.parent.Uh, i, function(i, t) { i ? l(i) : setTimeout(function() { a.aii(e, h, t, o, l, s, r, n) }, 10) })), { cancel: s.cancel } }, r.prototype.aii = function(i, t, e, o, n, r, l, a) { this.parent.vn ? this.fii(e, t, o, i, r, l, a, n) : this.bQ.push({ CD: i, cQ: t, data: e, projectionId: o, cb: n, UQ: r, mH: l, ZL: a, wZ: "oversea" }) }, r.prototype.fii = function(i, t, e, o, n, r, l, a) { for (var h = this, s = decodeTilesOversea(new Uint8Array(i)), f = (!t && s.version && this.parent.GW.nebulaVersion !== s.version && (this.parent.GW.nebulaVersion = s.version, this.parent.GW.db = s.db, this.parent.IW.zW(this.parent.GW.db), this.parent.Uh.send("updateDataVersion", this.parent.GW.nebulaVersion)), []), u = (polyfill.forEach(s.tiles, function(i) { var t = new polyfill.Gh(new polyfill.ca(i.z, i.x, i.y)),
|
||
i = (t.data = h.kw(i, e, t, "oversea"), polyfill.Util.pW(i.t));
|
||
f.push({ zo: t.zo, ba: t.data, tag: i }) }), []), d = 0, p = f; d < p.length; d++) { var c, y, x = p[d];
|
||
x && x.ba && (c = x.ba.roadName, y = x.ba.poilabel, delete x.ba.poilabel, delete x.ba.Mw, u.push({ zo: x.zo, ba: { roadName: c, poilabel: y }, tag: x.tag, version: s.version || "" })) } if (u.length) { for (var v = {}, g = 0, w = u; g < w.length; g++) { var R = new polyfill.Gh((b = w[g]).zo),
|
||
m = polyfill.wa.ga(R.zo.x, R.zo.y, R.zo.z, "EPSG:3857"),
|
||
m = (R.type = "nebula", t && (R.cQ = !0), polyfill.lcs.getLocalByCoord([m[0], m[1]]));
|
||
R.localCoord = m, R.data = b.ba;
|
||
(m = this.parent.params).showLabel; var m = m.scale,
|
||
b = b.tag;
|
||
this.sQ[R.zo.key + "," + b] = { tile: R, params: { scale: m, tag: b } }, v[R.zo.key + "," + polyfill.Util.SD(b)] = !0 }
|
||
a(null, v) } }, r.prototype.OW = function(i) { this.parent.Zw ? this.on("once", i) : i() }, r.prototype.YE = function(i, t) { polyfill.map(polyfill.ZQ.ha(t.bounds, polyfill.ZQ.ra(t.zoom)), function(i) { return i.join(",") }); var e = this.sQ,
|
||
t = polyfill.Util.getOptimalZoom(t.zoom);
|
||
i(e, { ZL: this.WW, optimalZoom: t, cb: function() {} }), this.sQ = {} }, r.prototype.kw = function(t, i, e, y) { var o, x = this,
|
||
n = {},
|
||
v = polyfill.ProjectionManager.getProjection(i),
|
||
i = polyfill.wa.ga(t.x, t.y, t.z, "EPSG:3857"),
|
||
g = polyfill.lcs.getLocalByCoord([i[0], i[1]]).center,
|
||
w = (e.Mw = g, e.Ro = i, e.zo.z); return y && "oversea" === y && (o = [], polyfill.forEach(t.layers, function(i) { "road" === r.Wa[i.type] && ((i = polyfill.yn(i)).type = 4, i.d.roadName = i.d.road, delete i.d.road, i.d.resolution = i.d.resolution, o.push(i)) }), polyfill.forEach(o, function(i) { t.layers.push(i) })), polyfill.forEach(t.layers, function(d) { var i, p = [],
|
||
c = r.Wa[d.type];
|
||
polyfill.forEach(d.d[c], function(f) { f.items.sort(x.A0), f.mainkey || f.subkey || !f.tii || (i = f.tii.split(":"), f.mainkey = i[0], f.subkey = i[1]); var i, u = x.parent.vn.mW(f.mainkey, f.subkey, w);
|
||
polyfill.forEach(f.items, function(i) { switch (c) {
|
||
case "road":
|
||
for (var t = 0; t < i.path.length; t += 2) { var e = i.path[t],
|
||
o = i.path[t + 1],
|
||
n = (!f.resolution && d.d.resolution && (f.resolution = d.d.resolution), polyfill.XY(d, f.resolution, e, o)),
|
||
n = v.project(n[0], n[1]);
|
||
w >= polyfill.Ra && (n[0] -= g[0], n[1] -= g[1]), i.path[t] = n[0], i.path[t + 1] = n[1] } break;
|
||
case "region":
|
||
for (var r = i.path, l = 0; l < r.length; l += 1) { for (var a = r[l].path, h = [], t = 0; t < a.length; t += 2) e = a[t], o = a[t + 1], n = polyfill.XY(d, f.resolution, e, o), h[t] = n[0], h[t + 1] = n[1], n = v.project(n[0], n[1]), w >= polyfill.Ra && (n[0] -= g[0], n[1] -= g[1]), a[t] = n[0], a[t + 1] = n[1];
|
||
r[l] = a } break;
|
||
case "building":
|
||
for (r = i.path, i.oW = [], l = 0; l < r.length; l += 1) { for (a = r[l].path, h = [], t = 0; t < a.length; t += 2) e = a[t], o = a[t + 1], n = polyfill.XY(d, f.resolution, e, o), h[t] = n[0], h[t + 1] = n[1], n = v.project(n[0], n[1]), w >= polyfill.Ra && (n[0] -= g[0], n[1] -= g[1]), a[t] = n[0], a[t + 1] = n[1];
|
||
r[l] = a, i.oW[l] = h } break;
|
||
case "poilabel":
|
||
case "roadName":
|
||
var s; if (i.pos && (!i.name && y && "oversea" === y && ((s = x.uii(i)) && (i.name = s), i.Wt = "oversea"), h = polyfill.XY(d, f.resolution, i.pos[0], i.pos[1]), i.pos = v.project(h[0], h[1])), i.path)
|
||
if (!f.resolution && d.d.resolution && (f.resolution = d.d.resolution), i.shield) h = polyfill.XY(d, f.resolution, i.path[0], i.path[1]), n = v.project(h[0], h[1]), w >= polyfill.Ra && (n[0] -= g[0], n[1] -= g[1]), i.path[0] = n[0], i.path[1] = n[1];
|
||
else
|
||
for (t = 0; t < i.path.length; t += 2) e = i.path[t], o = i.path[t + 1], n = polyfill.XY(d, f.resolution, e, o), n = v.project(n[0], n[1]), w >= polyfill.Ra && (n[0] -= g[0], n[1] -= g[1]), i.path[t] = n[0], i.path[t + 1] = n[1] }
|
||
i.du = f.resolution, i.Fp = f.mainkey, i.Ep = f.subkey, i.zIndex = x.parent.vn.Lw(f.mainkey, f.subkey), i.lineCap = u[0], i.RQ = u[1], i.gw = { z: d.z, y: d.y, x: d.x }, p.push(i) }) }), "poilabel" !== c ? x.Tw(p) : x.Na(p), "poilabel" === c ? (i = d.z + "-" + d.x + "-" + d.y, n[c] ? n[c][i] ? n[c][i].push.apply(n[c][i], p) : n[c][i] = p : (n[c] = {}, n[c][i] = p)) : n[c] ? n[c].push.apply(n[c], p) : n[c] = p }), n.Mw = g, n }, r.prototype.A0 = function(i, t) { return i.minzoom - t.minzoom || i.maxzoom - t.maxzoom }, r.prototype.Tw = function(i) { return i.sort(function(i, t) { return i.zIndex - t.zIndex }), i }, r.prototype.Na = function(i) { return i.sort(function(i, t) { return i.rank - t.rank }), i }, r.prototype.xw = function(i, t) { var e = i.data,
|
||
o = new polyfill._w; if (e.Uc = o, !e.$c) { e.$c = new polyfill.J_, e.road = e.road || []; var n = i.Mw.slice(0); if (i.zo.z <= polyfill.za && (n[0] = 0, n[1] = 0), e.road.push({ name: "", rank: 1, maxzoom: polyfill.zoomRange[1], minzoom: polyfill.zoomRange[0], path: [i.Ro[0] - n[0], i.Ro[1] - n[1], i.Ro[2] - n[0], i.Ro[1] - n[1], i.Ro[2] - n[0], i.Ro[3] - n[1], i.Ro[0] - n[0], i.Ro[3] - n[1], i.Ro[0] - n[0], i.Ro[1] - n[1]], Fp: -2, Ep: -2, shield: "", shieldType: 0, du: 13, lineCap: "butt", RQ: "butt" }), e.road)
|
||
for (var r = 0, l = e.road; r < l.length; r++) { var a = l[r],
|
||
h = a.path,
|
||
s = (h = e.$c.hb(h, { X_: "butt" === a.lineCap ? 0 : .9, lineCap: a.lineCap, lineJoin: "auto" })).Iw,
|
||
h = h.distance;
|
||
0 < s && (o.add(a.Fp, a.Ep, s, a.minzoom, a.maxzoom), a.distance = h) } } }, r.prototype.zw = function(i, B, P, t) { var e = i.data,
|
||
o = new polyfill._w; if (e.Oc = o, e.Fc = new polyfill._w, !e.Dc) { e.Dc = new polyfill.K_, e.region = e.region || []; var n = i.Mw.slice(0); if (i.zo.z <= polyfill.za && (n[0] = 0, n[1] = 0), e.region.unshift({ maxzoom: polyfill.zoomRange[1], minzoom: polyfill.zoomRange[0], path: [
|
||
[i.Ro[0] - n[0], i.Ro[1] - n[1], i.Ro[2] - n[0], i.Ro[1] - n[1], i.Ro[2] - n[0], i.Ro[3] - n[1], i.Ro[0] - n[0], i.Ro[3] - n[1], i.Ro[0] - n[0], i.Ro[1] - n[1]]
|
||
], Fp: 30001, Ep: 1 }), e.region)
|
||
for (var r = 0, l = e.region; r < l.length; r++)
|
||
for (var a = l[r], h = 0, s = a.path; h < s.length; h++)(b = s[h]).push(b[0], b[1]), 0 < (A = e.Dc.Nx(b)) && o.add(a.Fp, a.Ep, A, a.minzoom, a.maxzoom); if (!t && e.building) { if (e.FD) return;
|
||
e.FD = new polyfill.K_, e.BD = new polyfill._w; for (var f = e.BD, u = 0, d = e.building; u < d.length; u++) { for (var p = d[u], y = (c = polyfill.jw(p.gw.z, p.gw.x, p.gw.y))[0], x = c[1], v = c[2], c = c[3], W = (i.Mw && (y -= i.Mw[0], v -= i.Mw[0], x -= i.Mw[1], c -= i.Mw[1]), Math.floor(y)), O = Math.floor(v), U = Math.floor(x), j = Math.floor(c), g = 0, w = p.path; g < w.length; g++) { var b = w[g];
|
||
0 < (A = e.FD.Nx(b)) && f.add(p.Fp, p.Ep, A, p.minzoom, p.maxzoom, p.ew || "indoor_out_building") } for (var R = 0, m = p.path; R < m.length; R++) { for (var S = m[R], b = (S.push(S[0], S[1]), []), k = 0, _ = S.length; k < _ - 2; k += 2) b.push(polyfill.xd(S[k], S[k + 1])), b.push(polyfill.xd(S[k + 2], S[k + 3])); for (var I = [], k = 0, _ = b.length; k < _; k += 2) { var A, M = b[k][0],
|
||
E = b[k][1],
|
||
J = b[k + 1][0],
|
||
N = b[k + 1][1],
|
||
C = Math.floor(M),
|
||
F = Math.floor(E);
|
||
(M !== J || C !== W && C !== O) && (E !== N || F !== U && F !== j) ? I.push(b[k], b[k + 1]): (0 < (A = e.Dc.Ew(I)) && e.Fc.add(p.Fp, p.Ep, A, p.minzoom, p.maxzoom, p.ew || "indoor_out_building"), I = []) }
|
||
0 < I.length && 0 < (A = e.Dc.Ew(I)) && e.Fc.add(p.Fp, p.Ep, A, p.minzoom, p.maxzoom, p.ew) } } } if (e.building) { for (var T = [], L = 0, z = e.building; L < z.length; L++)
|
||
if ((p = z[L]).ew)
|
||
if (-1 < p.ew.indexOf("|"))
|
||
for (var D = p.ew.split("|"), k = 0; k < D.length; k++) T.push(D[k]);
|
||
else T.push(p.ew);
|
||
e.indoorInfo || (e.indoorInfo = []), e.indoorInfo = T } } }, r.prototype.nz = function(i, t, e) { void 0 === t && (t = {}); var o = i.data; if (o.C_ = new polyfill._w, !o.A_) { o.A_ = new polyfill.iz; var n = t.hideWithoutStyle,
|
||
r = t.areas; if (o.building)
|
||
for (var l = 0, a = o.building; l < a.length; l++)
|
||
for (var h = a[l], s = 0; s < h.path.length; s++) { for (var f = h.path[s], u = h.oW[s], d = (f.push(f[0], f[1]), u.push(u[0], u[1]), []), p = 0; p < u.length; p += 2) d.push([u[p], u[p + 1]]); if (r) { for (var c, y = !1, x = !1, v = {}, g = 0; g < r.length; g++) { var w = r[g],
|
||
b = w.path;
|
||
geoUtil.isRingInRing(d, b) && (y = !0, !w.visible && void 0 !== w.visible || (x = !0, v = { roofColor: polyfill.Util.color2RgbaArray(w.color1), wallColor: polyfill.Util.color2RgbaArray(w.color2) })) }!y && n || y && !x || 0 < (c = o.A_.tz(f, h.height)) && o.C_.add(h.Fp, h.Ep, c, h.minzoom, h.maxzoom, h.ew, v.roofColor, v.wallColor) } else 0 < (c = o.A_.tz(f, h.height)) && o.C_.add(h.Fp, h.Ep, c, h.minzoom, h.maxzoom, h.ew) } } }, r.prototype.hQ = function(i, t) { if (i)
|
||
for (var e = this.SQ(i) || [], o = 0, n = e = new LabelFormatMap[i.type]({ vn: this.parent.vn }).DQ(e, { zoom: t }); o < n.length; o++) { var r = n[o],
|
||
l = r.CO;
|
||
r.EG || (r.EG = {}); for (var a = 0, h = l; a < h.length; a++) { var s = h[a],
|
||
f = this.parent.R_.mz(s);
|
||
r.EG[s] = f } }
|
||
return e }, r.prototype.SQ = function(i) { return i.data && i.data.roadName || i.Dh }, r.prototype.uii = function(i) { var o = ["en", "zh-Hans"],
|
||
n = ""; if (i.other) { var r = i.other.nii; if (0 < (e = r.length)) { for (var t = 0; t < e; t++) ! function(t) { var e = r[t].language_code;
|
||
polyfill.forEach(o, function(i) { i === e && r[t].name && (n = r[t].name) }) }(t); if (n) return n } } if (i.rii) { var e, l = i.rii.nii; if (0 < (e = l.length)) { for (t = 0; t < e; t++) ! function(t) { var e = l[t].language_code;
|
||
polyfill.forEach(o, function(i) { i === e && l[t].name && (n = l[t].name) }) }(t); if (n) return n } } return "" }, r.Pw = [1, 0, 1, 0], r.Wa = { 0: "poilabel", 1: "road", 2: "region", 3: "building", 4: "roadName" }, r }(polyfill.Event),
|
||
hasWarning = !1;
|
||
|
||
function makeFetchRequest(i, t, e) { var o, n, r; return !polyfill.Support.safari && !polyfill.Support.AQ && !polyfill.Support.gQ && self.fetch && self.Request && self.AbortController && self.Request.prototype.hasOwnProperty("signal") ? (n = (o = new AbortController).signal, n = new self.Request(t, { method: "GET", referrer: "null" === self.location.origin ? void 0 : self.location.origin, signal: n }), polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["data-request"] && (polyfill.Support.amapRunTime["data-request"] = (new Date).getTime()), fetch(n).then(function(i) { return polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["data-loaded"] && (polyfill.Support.amapRunTime["data-loaded"] = (new Date).getTime()), "application/x-protobuf" === i.headers.get("content-type") ? i.arrayBuffer() : i.json() }).then(function(i) { i.info ? hasWarning || (hasWarning = !0, console.log(t), console.log("<AMap JSAPI> KEY异常,错误信息:" + i.info)) : e(null, i) }).catch(function(i) { "AbortError" !== i.name && e(i.message || "unknown error") }), { cancel: function() { o.abort() } }) : r = i.send("request", t, function(i, t) { i ? ("<cancel>" === i && r && r.cancel && r.cancel(), r = void 0, e(i)) : (r = void 0, e(null, t)) }) } var DistrictSourceWorker = function() {
|
||
function DistrictSourceWorker(i) { this.parent = i, this.fW = {} } return DistrictSourceWorker.prototype.bw = function(i, t, e, o, n) { var r = this,
|
||
l = new XMLHttpRequest; return l.onreadystatechange = function() { var i;
|
||
4 !== l.readyState || 200 !== l.status && 204 !== l.status || (i = new polyfill.tW(new polyfill.pw(new Uint8Array(l.response))), i = r.Ow(i, { x: t.x, y: t.y, z: t.z, projectionId: e, tileSize: o }), n(null, polyfill.Ln({ zo: t }, i))) }, l.open("GET", i, !0), l.responseType = "arraybuffer", l.send(), { cancel: function() { l.abort() } } }, DistrictSourceWorker.prototype.Ow = function(s, i) { var e = i.x,
|
||
o = i.y,
|
||
n = i.z,
|
||
r = i.tileSize,
|
||
l = i.projectionId,
|
||
i = (s.z = n, s.x = e, s.y = o, polyfill.ProjectionManager.getProjection(l).getResolution(n)),
|
||
a = (s.Ro = polyfill.$Q(e, o, n, i, r), s.zS = polyfill.lcs.getLocalByCoord([s.Ro[0], s.Ro[1]]), polyfill.ProjectionManager.getProjection(l).getResolution(n)); return polyfill.vx(s.layers, function(h) { var i = h.Cw,
|
||
t = (h.Ah = [], h.scale = a * r / h.extent, polyfill.V[l].Xs(r * e, r * o, n));
|
||
h.ox = t[0], h.oy = t[1], polyfill.forEach(i, function(i, t) { if ((i = h.Gw(t)).Dw(), h.Ah.push(i), i.lines && 0 < i.lines.length) { i.Rw = []; for (var e = 0, o = i.lines.length; e < o; e++) { for (var n = [], r = 0, l = i.lines[e].length; r < l; r++) { var a = [h.ox + h.scale * i.lines[e][r][0] - s.zS.center[0], h.oy - h.scale * i.lines[e][r][1] - s.zS.center[1]];
|
||
n.push(a) }
|
||
i.Rw.push(n) } } }) }), this.uW(s), this.xw(s), this.zw(s), s }, DistrictSourceWorker.prototype.uW = function(i) { var t, e = [],
|
||
o = []; for (t in i.layers)
|
||
if (i.layers.hasOwnProperty(t))
|
||
for (var n = i.layers[t], r = 0; r < n.Ah.length; r += 1) { var l = n.Ah[r]; if (3 == +l.type && l.Rw) { for (var a = l.Rw, h = [], s = 0; s < a.length; s++) polyfill.kS.isClockwise(a[s]) && h.push([s]); for (var f = 0; f < h.length; f++) { var u = h[f]; if (1 < u.length) { for (var d = [], p = [], c = 0; c < u.length; c++) { var y = a[u[c]];
|
||
0 < c && d.push(p.length / 2); for (var x = 0; x < y.length; x++) { var v = y[x];
|
||
p.push(v[0], v[1]) } }
|
||
e.push({ properties: l.properties, path: p, LQ: d }) } else { for (p = [], y = a[u[0]], x = 0; x < y.length; x++) { var g = y[x];
|
||
p.push(g[0], g[1]) }
|
||
e.push({ properties: l.properties, path: p }) } } } else if (3 !== l.type && l.Rw)
|
||
for (var w = 0; w < l.Rw.length; w++) o.push({ properties: l.properties, path: l.Rw[w] });
|
||
this.cW(l) }
|
||
i.polygons = e, i.Dh = o, delete i.layers }, DistrictSourceWorker.prototype.xw = function(i) { if (!i || !i.$c) { var t = new polyfill.LW; if (!i.$c && (i.Uc = t, i.$c = new polyfill.J_, i.Dh))
|
||
for (var e = 0, o = i.Dh; e < o.length; e++) { var n = o[e],
|
||
r = JSON.stringify(n.properties),
|
||
a = (l = i.$c.g0(n.path, { X_: 0, lineJoin: "round", lineCap: "butt" })).Iw,
|
||
l = l.distance;
|
||
0 < a && (t.add(r, 0, a, 0, 22), n.distance = l) } } }, DistrictSourceWorker.prototype.zw = function(i) { if (!i || !i.Dc) { var t = new polyfill.LW;
|
||
i.Oc = t, i.Dc = new polyfill.K_; for (var e = 0, o = i.polygons; e < o.length; e++) { var n = o[e],
|
||
r = JSON.stringify(n.properties);
|
||
0 < (n = i.Dc.Nx(n.path, n.LQ)) && t.add(r, 0, n, 0, 22) } } }, DistrictSourceWorker.prototype.dW = function(i) { switch (i) {
|
||
case 0:
|
||
case 1:
|
||
return "Nation_Border_China";
|
||
case 2:
|
||
return "Coastline_China";
|
||
case 3:
|
||
case 4:
|
||
return "Province_Border_China";
|
||
case 5:
|
||
return "City_Border_China";
|
||
case 6:
|
||
return "County_Border_China";
|
||
case 7:
|
||
case 8:
|
||
return "Nation_Border_Foreign";
|
||
case 9:
|
||
return "Coastline_Foreign";
|
||
case 10:
|
||
case 11:
|
||
return "Nation_Border_Foreign";
|
||
case 12:
|
||
return "Province_Border_Foreign";
|
||
default:
|
||
return "" } }, DistrictSourceWorker.prototype.sW = function(code) { return this.fW[code] || (this.fW[code] = eval("'" + code.replace(/\//g, "\\u") + "'")), this.fW[code] }, DistrictSourceWorker.prototype.cW = function(i) { i.properties.NAME_CHN && (i.properties.NAME_CHN = this.sW(i.properties.NAME_CHN.trim())), i.properties.NAME_ENG && (i.properties.NAME_ENG = i.properties.NAME_ENG.trim()), i.properties.level && (i.properties.level = i.properties.level.trim()), i.properties.citycode && i.properties.citycode.length && (i.properties.citycode = i.properties.citycode.trim()), i.properties.type_ = +i.properties.type, i.properties.feature_type_ = +i.type, i.properties.type = this.dW(+i.properties.type) }, DistrictSourceWorker }(),
|
||
mbStyle = { Hr: void 0, _r: {}, kr: { "pedestrian-polygon": { width: 128, height: 128, x: 0, y: 0, pixelRatio: 2, visible: !0 }, "turning-circle-outline": { width: 92, height: 92, x: 128, y: 0, pixelRatio: 2, visible: !0 }, "turning-circle": { width: 84, height: 84, x: 0, y: 128, pixelRatio: 2, visible: !0 }, "us-interstate-truck-2": { width: 40, height: 80, x: 84, y: 128, pixelRatio: 2, visible: !0 }, "us-interstate-truck-3": { width: 52, height: 80, x: 124, y: 128, pixelRatio: 2, visible: !0 }, "us-highway-business-2": { width: 40, height: 76, x: 176, y: 128, pixelRatio: 2, visible: !0 }, "us-highway-business-3": { width: 52, height: 76, x: 216, y: 128, pixelRatio: 2, visible: !0 }, "us-highway-bypass-2": { width: 40, height: 76, x: 268, y: 128, pixelRatio: 2, visible: !0 }, "us-highway-bypass-3": { width: 52, height: 76, x: 308, y: 128, pixelRatio: 2, visible: !0 }, "us-highway-truck-2": { width: 40, height: 76, x: 360, y: 128, pixelRatio: 2, visible: !0 }, "us-highway-truck-3": { width: 52, height: 76, x: 400, y: 128, pixelRatio: 2, visible: !0 }, "ae-f-route-3": { width: 48, height: 54, x: 452, y: 128, pixelRatio: 2, visible: !0 }, "ae-s-route-4": { width: 76, height: 52, x: 220, y: 0, pixelRatio: 2, visible: !0 }, "pe-national-2": { width: 36, height: 52, x: 296, y: 0, pixelRatio: 2, visible: !0 }, "pe-national-3": { width: 44, height: 52, x: 332, y: 0, pixelRatio: 2, visible: !0 }, "ae-national-3": { width: 52, height: 50, x: 376, y: 0, pixelRatio: 2, visible: !0 }, "ae-national-4": { width: 64, height: 50, x: 428, y: 0, pixelRatio: 2, visible: !0 }, "ae-d-route-3": { width: 48, height: 48, x: 0, y: 212, pixelRatio: 2, visible: !0 }, "ae-d-route-4": { width: 60, height: 48, x: 48, y: 212, pixelRatio: 2, visible: !0 }, "tw-provincial-2": { width: 44, height: 48, x: 108, y: 212, pixelRatio: 2, visible: !0 }, "tw-provincial-3": { width: 56, height: 48, x: 152, y: 212, pixelRatio: 2, visible: !0 }, "tw-provincial-expy-2": { width: 44, height: 48, x: 208, y: 212, pixelRatio: 2, visible: !0 }, "tw-provincial-expy-3": { width: 56, height: 48, x: 252, y: 212, pixelRatio: 2, visible: !0 }, "za-provincial-2": { width: 48, height: 48, x: 308, y: 212, pixelRatio: 2, visible: !0 }, "cn-nths-expy-2": { width: 40, height: 46, x: 356, y: 212, pixelRatio: 2, visible: !0 }, "cn-nths-expy-3": { width: 52, height: 46, x: 396, y: 212, pixelRatio: 2, visible: !0 }, "cn-nths-expy-4": { width: 64, height: 46, x: 448, y: 212, pixelRatio: 2, visible: !0 }, "cn-nths-expy-5": { width: 76, height: 46, x: 0, y: 260, pixelRatio: 2, visible: !0 }, "cn-provincial-expy-2": { width: 40, height: 46, x: 76, y: 260, pixelRatio: 2, visible: !0 }, "cn-provincial-expy-3": { width: 52, height: 46, x: 116, y: 260, pixelRatio: 2, visible: !0 }, "cn-provincial-expy-4": { width: 64, height: 46, x: 168, y: 260, pixelRatio: 2, visible: !0 }, "cn-provincial-expy-5": { width: 76, height: 46, x: 232, y: 260, pixelRatio: 2, visible: !0 }, "br-federal-3": { width: 52, height: 44, x: 308, y: 260, pixelRatio: 2, visible: !0 }, "hk-strategic-route-2": { width: 36, height: 44, x: 360, y: 260, pixelRatio: 2, visible: !0 }, "in-national-2": { width: 32, height: 44, x: 396, y: 260, pixelRatio: 2, visible: !0 }, "in-national-3": { width: 40, height: 44, x: 428, y: 260, pixelRatio: 2, visible: !0 }, "in-national-4": { width: 48, height: 44, x: 0, y: 306, pixelRatio: 2, visible: !0 }, "in-state-2": { width: 32, height: 44, x: 48, y: 306, pixelRatio: 2, visible: !0 }, "in-state-3": { width: 40, height: 44, x: 80, y: 306, pixelRatio: 2, visible: !0 }, "kr-natl-expy-2": { width: 40, height: 44, x: 120, y: 306, pixelRatio: 2, visible: !0 }, "kr-natl-expy-3": { width: 52, height: 44, x: 160, y: 306, pixelRatio: 2, visible: !0 }, "mx-federal-2": { width: 36, height: 44, x: 212, y: 306, pixelRatio: 2, visible: !0 }, "mx-federal-3": { width: 46, height: 44, x: 248, y: 306, pixelRatio: 2, visible: !0 }, "mx-federal-4": { width: 56, height: 44, x: 294, y: 306, pixelRatio: 2, visible: !0 }, "mx-state-2": { width: 36, height: 44, x: 350, y: 306, pixelRatio: 2, visible: !0 }, "mx-state-3": { width: 46, height: 44, x: 386, y: 306, pixelRatio: 2, visible: !0 }, "mx-state-4": { width: 56, height: 44, x: 432, y: 306, pixelRatio: 2, visible: !0 }, "pe-regional-3": { width: 46, height: 44, x: 0, y: 350, pixelRatio: 2, visible: !0 }, "pe-regional-4": { width: 56, height: 44, x: 46, y: 350, pixelRatio: 2, visible: !0 }, "tw-national-2": { width: 42, height: 44, x: 102, y: 350, pixelRatio: 2, visible: !0 }, "us-interstate-2": { width: 40, height: 44, x: 144, y: 350, pixelRatio: 2, visible: !0 }, "us-interstate-3": { width: 52, height: 44, x: 184, y: 350, pixelRatio: 2, visible: !0 }, "us-interstate-4": { width: 64, height: 44, x: 236, y: 350, pixelRatio: 2, visible: !0 }, "us-interstate-business-2": { width: 40, height: 44, x: 300, y: 350, pixelRatio: 2, visible: !0 }, "us-interstate-business-3": { width: 52, height: 44, x: 340, y: 350, pixelRatio: 2, visible: !0 }, "us-interstate-duplex-4": { width: 64, height: 44, x: 392, y: 350, pixelRatio: 2, visible: !0 }, "us-interstate-duplex-5": { width: 76, height: 44, x: 0, y: 394, pixelRatio: 2, visible: !0 }, "airfield-15": { width: 42, height: 42, x: 456, y: 350, pixelRatio: 2, visible: !0 }, "airport-15": { width: 42, height: 42, x: 76, y: 394, pixelRatio: 2, visible: !0 }, "alcohol-shop-15": { width: 42, height: 42, x: 118, y: 394, pixelRatio: 2, visible: !0 }, "american-football-15": { width: 42, height: 42, x: 160, y: 394, pixelRatio: 2, visible: !0 }, "amusement-park-15": { width: 42, height: 42, x: 202, y: 394, pixelRatio: 2, visible: !0 }, "aquarium-15": { width: 42, height: 42, x: 244, y: 394, pixelRatio: 2, visible: !0 }, "art-gallery-15": { width: 42, height: 42, x: 286, y: 394, pixelRatio: 2, visible: !0 }, "attraction-15": { width: 42, height: 42, x: 328, y: 394, pixelRatio: 2, visible: !0 }, "au-tourist-2": { width: 40, height: 42, x: 370, y: 394, pixelRatio: 2, visible: !0 }, "au-tourist-3": { width: 56, height: 42, x: 410, y: 394, pixelRatio: 2, visible: !0 }, "bakery-15": { width: 42, height: 42, x: 466, y: 394, pixelRatio: 2, visible: !0 }, "bank-15": { width: 42, height: 42, x: 468, y: 260, pixelRatio: 2, visible: !0 }, "bar-15": { width: 42, height: 42, x: 0, y: 438, pixelRatio: 2, visible: !0 }, "basketball-15": { width: 42, height: 42, x: 42, y: 438, pixelRatio: 2, visible: !0 }, "beach-15": { width: 42, height: 42, x: 84, y: 438, pixelRatio: 2, visible: !0 }, "beer-15": { width: 42, height: 42, x: 126, y: 438, pixelRatio: 2, visible: !0 }, "bicycle-15": { width: 42, height: 42, x: 168, y: 438, pixelRatio: 2, visible: !0 }, "bowling-alley-15": { width: 42, height: 42, x: 210, y: 438, pixelRatio: 2, visible: !0 }, "bridge-15": { width: 42, height: 42, x: 252, y: 438, pixelRatio: 2, visible: !0 }, "cafe-15": { width: 42, height: 42, x: 294, y: 438, pixelRatio: 2, visible: !0 }, "campsite-15": { width: 42, height: 42, x: 336, y: 438, pixelRatio: 2, visible: !0 }, "car-15": { width: 42, height: 42, x: 378, y: 438, pixelRatio: 2, visible: !0 }, "car-rental-15": { width: 42, height: 42, x: 420, y: 438, pixelRatio: 2, visible: !0 }, "car-repair-15": { width: 42, height: 42, x: 462, y: 438, pixelRatio: 2, visible: !0 }, "casino-15": { width: 42, height: 42, x: 504, y: 438, pixelRatio: 2, visible: !0 }, "castle-15": { width: 42, height: 42, x: 546, y: 438, pixelRatio: 2, visible: !0 }, "cemetery-15": { width: 42, height: 42, x: 588, y: 438, pixelRatio: 2, visible: !0 }, "charging-station-15": { width: 42, height: 42, x: 630, y: 438, pixelRatio: 2, visible: !0 }, "cinema-15": { width: 42, height: 42, x: 672, y: 438, pixelRatio: 2, visible: !0 }, "clothing-store-15": { width: 42, height: 42, x: 714, y: 438, pixelRatio: 2, visible: !0 }, "college-15": { width: 42, height: 42, x: 756, y: 438, pixelRatio: 2, visible: !0 }, "communications-tower-15": { width: 42, height: 42, x: 798, y: 438, pixelRatio: 2, visible: !0 }, "confectionery-15": { width: 42, height: 42, x: 840, y: 438, pixelRatio: 2, visible: !0 }, "convenience-15": { width: 42, height: 42, x: 882, y: 438, pixelRatio: 2, visible: !0 }, "dentist-15": { width: 42, height: 42, x: 924, y: 438, pixelRatio: 2, visible: !0 }, "doctor-15": { width: 42, height: 42, x: 966, y: 438, pixelRatio: 2, visible: !0 }, "dog-park-15": { width: 42, height: 42, x: 488, y: 306, pixelRatio: 2, visible: !0 }, "drinking-water-15": { width: 42, height: 42, x: 530, y: 306, pixelRatio: 2, visible: !0 }, "embassy-15": { width: 42, height: 42, x: 572, y: 306, pixelRatio: 2, visible: !0 }, "farm-15": { width: 42, height: 42, x: 614, y: 306, pixelRatio: 2, visible: !0 }, "fast-food-15": { width: 42, height: 42, x: 656, y: 306, pixelRatio: 2, visible: !0 }, "fire-station-15": { width: 42, height: 42, x: 698, y: 306, pixelRatio: 2, visible: !0 }, "fitness-centre-15": { width: 42, height: 42, x: 740, y: 306, pixelRatio: 2, visible: !0 }, "fuel-15": { width: 42, height: 42, x: 782, y: 306, pixelRatio: 2, visible: !0 }, "furniture-15": { width: 42, height: 42, x: 824, y: 306, pixelRatio: 2, visible: !0 }, "garden-15": { width: 42, height: 42, x: 866, y: 306, pixelRatio: 2, visible: !0 }, "globe-15": { width: 42, height: 42, x: 908, y: 306, pixelRatio: 2, visible: !0 }, "golf-15": { width: 42, height: 42, x: 950, y: 306, pixelRatio: 2, visible: !0 }, "grocery-15": { width: 42, height: 42, x: 498, y: 350, pixelRatio: 2, visible: !0 }, "harbor-15": { width: 42, height: 42, x: 540, y: 350, pixelRatio: 2, visible: !0 }, "hardware-15": { width: 42, height: 42, x: 582, y: 350, pixelRatio: 2, visible: !0 }, "heliport-15": { width: 42, height: 42, x: 624, y: 350, pixelRatio: 2, visible: !0 }, "horse-riding-15": { width: 42, height: 42, x: 666, y: 350, pixelRatio: 2, visible: !0 }, "hospital-15": { width: 42, height: 42, x: 708, y: 350, pixelRatio: 2, visible: !0 }, "ice-cream-15": { width: 42, height: 42, x: 750, y: 350, pixelRatio: 2, visible: !0 }, "information-15": { width: 42, height: 42, x: 792, y: 350, pixelRatio: 2, visible: !0 }, "jewelry-store-15": { width: 42, height: 42, x: 834, y: 350, pixelRatio: 2, visible: !0 }, "laundry-15": { width: 42, height: 42, x: 876, y: 350, pixelRatio: 2, visible: !0 }, "library-15": { width: 42, height: 42, x: 918, y: 350, pixelRatio: 2, visible: !0 }, "lodging-15": { width: 42, height: 42, x: 960, y: 350, pixelRatio: 2, visible: !0 }, "mobile-phone-15": { width: 42, height: 42, x: 508, y: 394, pixelRatio: 2, visible: !0 }, "monument-15": { width: 42, height: 42, x: 550, y: 394, pixelRatio: 2, visible: !0 }, "mountain-15": { width: 42, height: 42, x: 592, y: 394, pixelRatio: 2, visible: !0 }, "museum-15": { width: 42, height: 42, x: 634, y: 394, pixelRatio: 2, visible: !0 }, "music-15": { width: 42, height: 42, x: 676, y: 394, pixelRatio: 2, visible: !0 }, "optician-15": { width: 42, height: 42, x: 718, y: 394, pixelRatio: 2, visible: !0 }, "park-15": { width: 42, height: 42, x: 760, y: 394, pixelRatio: 2, visible: !0 }, "parking-15": { width: 42, height: 42, x: 802, y: 394, pixelRatio: 2, visible: !0 }, "parking-garage-15": { width: 42, height: 42, x: 844, y: 394, pixelRatio: 2, visible: !0 }, "pharmacy-15": { width: 42, height: 42, x: 886, y: 394, pixelRatio: 2, visible: !0 }, "picnic-site-15": { width: 42, height: 42, x: 928, y: 394, pixelRatio: 2, visible: !0 }, "pitch-15": { width: 42, height: 42, x: 970, y: 394, pixelRatio: 2, visible: !0 }, "place-of-worship-15": { width: 42, height: 42, x: 510, y: 260, pixelRatio: 2, visible: !0 }, "playground-15": { width: 42, height: 42, x: 552, y: 260, pixelRatio: 2, visible: !0 }, "police-15": { width: 42, height: 42, x: 594, y: 260, pixelRatio: 2, visible: !0 }, "post-15": { width: 42, height: 42, x: 636, y: 260, pixelRatio: 2, visible: !0 }, "prison-15": { width: 42, height: 42, x: 678, y: 260, pixelRatio: 2, visible: !0 }, "ranger-station-15": { width: 42, height: 42, x: 720, y: 260, pixelRatio: 2, visible: !0 }, "religious-buddhist-15": { width: 42, height: 42, x: 762, y: 260, pixelRatio: 2, visible: !0 }, "religious-christian-15": { width: 42, height: 42, x: 804, y: 260, pixelRatio: 2, visible: !0 }, "religious-jewish-15": { width: 42, height: 42, x: 846, y: 260, pixelRatio: 2, visible: !0 }, "religious-muslim-15": { width: 42, height: 42, x: 888, y: 260, pixelRatio: 2, visible: !0 }, "restaurant-15": { width: 42, height: 42, x: 930, y: 260, pixelRatio: 2, visible: !0 }, "restaurant-noodle-15": { width: 42, height: 42, x: 972, y: 260, pixelRatio: 2, visible: !0 }, "restaurant-pizza-15": { width: 42, height: 42, x: 512, y: 212, pixelRatio: 2, visible: !0 }, "restaurant-seafood-15": { width: 42, height: 42, x: 554, y: 212, pixelRatio: 2, visible: !0 }, "rocket-15": { width: 42, height: 42, x: 596, y: 212, pixelRatio: 2, visible: !0 }, "school-15": { width: 42, height: 42, x: 638, y: 212, pixelRatio: 2, visible: !0 }, "shoe-15": { width: 42, height: 42, x: 680, y: 212, pixelRatio: 2, visible: !0 }, "shop-15": { width: 42, height: 42, x: 722, y: 212, pixelRatio: 2, visible: !0 }, "skateboard-15": { width: 42, height: 42, x: 764, y: 212, pixelRatio: 2, visible: !0 }, "slipway-15": { width: 42, height: 42, x: 806, y: 212, pixelRatio: 2, visible: !0 }, "stadium-15": { width: 42, height: 42, x: 848, y: 212, pixelRatio: 2, visible: !0 }, "suitcase-15": { width: 42, height: 42, x: 890, y: 212, pixelRatio: 2, visible: !0 }, "swimming-15": { width: 42, height: 42, x: 932, y: 212, pixelRatio: 2, visible: !0 }, "table-tennis-15": { width: 42, height: 42, x: 974, y: 212, pixelRatio: 2, visible: !0 }, "tennis-15": { width: 42, height: 42, x: 500, y: 128, pixelRatio: 2, visible: !0 }, "theatre-15": { width: 42, height: 42, x: 542, y: 128, pixelRatio: 2, visible: !0 }, "toilet-15": { width: 42, height: 42, x: 584, y: 128, pixelRatio: 2, visible: !0 }, "town-hall-15": { width: 42, height: 42, x: 626, y: 128, pixelRatio: 2, visible: !0 }, "veterinary-15": { width: 42, height: 42, x: 668, y: 128, pixelRatio: 2, visible: !0 }, "viewpoint-15": { width: 42, height: 42, x: 710, y: 128, pixelRatio: 2, visible: !0 }, "volcano-15": { width: 42, height: 42, x: 752, y: 128, pixelRatio: 2, visible: !0 }, "volleyball-15": { width: 42, height: 42, x: 794, y: 128, pixelRatio: 2, visible: !0 }, "watch-15": { width: 42, height: 42, x: 836, y: 128, pixelRatio: 2, visible: !0 }, "waterfall-15": { width: 42, height: 42, x: 878, y: 128, pixelRatio: 2, visible: !0 }, "watermill-15": { width: 42, height: 42, x: 920, y: 128, pixelRatio: 2, visible: !0 }, "windmill-15": { width: 42, height: 42, x: 962, y: 128, pixelRatio: 2, visible: !0 }, "zoo-15": { width: 42, height: 42, x: 492, y: 0, pixelRatio: 2, visible: !0 }, "au-national-highway-2": { width: 40, height: 40, x: 534, y: 0, pixelRatio: 2, visible: !0 }, "au-national-highway-3": { width: 52, height: 40, x: 574, y: 0, pixelRatio: 2, visible: !0 }, "au-national-route-2": { width: 40, height: 40, x: 626, y: 0, pixelRatio: 2, visible: !0 }, "au-national-route-3": { width: 52, height: 40, x: 666, y: 0, pixelRatio: 2, visible: !0 }, "au-national-route-4": { width: 64, height: 40, x: 718, y: 0, pixelRatio: 2, visible: !0 }, "au-national-route-5": { width: 76, height: 40, x: 782, y: 0, pixelRatio: 2, visible: !0 }, "au-national-route-6": { width: 86, height: 40, x: 858, y: 0, pixelRatio: 2, visible: !0 }, "au-state-2": { width: 36, height: 40, x: 944, y: 0, pixelRatio: 2, visible: !0 }, "au-state-3": { width: 46, height: 40, x: 0, y: 480, pixelRatio: 2, visible: !0 }, "au-state-4": { width: 58, height: 40, x: 46, y: 480, pixelRatio: 2, visible: !0 }, "au-state-5": { width: 68, height: 40, x: 104, y: 480, pixelRatio: 2, visible: !0 }, "au-state-6": { width: 78, height: 40, x: 172, y: 480, pixelRatio: 2, visible: !0 }, "br-state-2": { width: 40, height: 40, x: 250, y: 480, pixelRatio: 2, visible: !0 }, "br-state-3": { width: 56, height: 40, x: 290, y: 480, pixelRatio: 2, visible: !0 }, "circle-white-2": { width: 40, height: 40, x: 346, y: 480, pixelRatio: 2, visible: !0 }, "circle-white-3": { width: 52, height: 40, x: 386, y: 480, pixelRatio: 2, visible: !0 }, "circle-white-4": { width: 64, height: 40, x: 438, y: 480, pixelRatio: 2, visible: !0 }, "hu-main-2": { width: 40, height: 40, x: 502, y: 480, pixelRatio: 2, visible: !0 }, "hu-main-3": { width: 52, height: 40, x: 542, y: 480, pixelRatio: 2, visible: !0 }, "hu-main-4": { width: 64, height: 40, x: 594, y: 480, pixelRatio: 2, visible: !0 }, "hu-main-5": { width: 76, height: 40, x: 658, y: 480, pixelRatio: 2, visible: !0 }, "hu-motorway-2": { width: 40, height: 40, x: 734, y: 480, pixelRatio: 2, visible: !0 }, "hu-motorway-3": { width: 52, height: 40, x: 774, y: 480, pixelRatio: 2, visible: !0 }, "marker-15": { width: 24, height: 40, x: 826, y: 480, pixelRatio: 2, visible: !0 }, "nz-state-2": { width: 36, height: 40, x: 850, y: 480, pixelRatio: 2, visible: !0 }, "nz-state-3": { width: 46, height: 40, x: 886, y: 480, pixelRatio: 2, visible: !0 }, "ro-communal-2": { width: 40, height: 40, x: 932, y: 480, pixelRatio: 2, visible: !0 }, "ro-communal-3": { width: 52, height: 40, x: 972, y: 480, pixelRatio: 2, visible: !0 }, "ro-communal-4": { width: 64, height: 40, x: 0, y: 520, pixelRatio: 2, visible: !0 }, "ro-county-3": { width: 52, height: 40, x: 64, y: 520, pixelRatio: 2, visible: !0 }, "ro-county-4": { width: 64, height: 40, x: 116, y: 520, pixelRatio: 2, visible: !0 }, "ro-national-2": { width: 40, height: 40, x: 180, y: 520, pixelRatio: 2, visible: !0 }, "ro-national-3": { width: 52, height: 40, x: 220, y: 520, pixelRatio: 2, visible: !0 }, "tw-county-township-2": { width: 40, height: 40, x: 272, y: 520, pixelRatio: 2, visible: !0 }, "tw-county-township-3": { width: 52, height: 40, x: 312, y: 520, pixelRatio: 2, visible: !0 }, "tw-county-township-4": { width: 64, height: 40, x: 364, y: 520, pixelRatio: 2, visible: !0 }, "tw-county-township-5": { width: 76, height: 40, x: 428, y: 520, pixelRatio: 2, visible: !0 }, "tw-county-township-6": { width: 88, height: 40, x: 504, y: 520, pixelRatio: 2, visible: !0 }, "us-bia-2": { width: 40, height: 40, x: 592, y: 520, pixelRatio: 2, visible: !0 }, "us-bia-3": { width: 52, height: 40, x: 632, y: 520, pixelRatio: 2, visible: !0 }, "us-bia-4": { width: 60, height: 40, x: 684, y: 520, pixelRatio: 2, visible: !0 }, "us-highway-2": { width: 40, height: 40, x: 744, y: 520, pixelRatio: 2, visible: !0 }, "us-highway-3": { width: 52, height: 40, x: 784, y: 520, pixelRatio: 2, visible: !0 }, "us-highway-4": { width: 64, height: 40, x: 836, y: 520, pixelRatio: 2, visible: !0 }, "us-highway-alternate-2": { width: 40, height: 40, x: 900, y: 520, pixelRatio: 2, visible: !0 }, "us-highway-alternate-3": { width: 52, height: 40, x: 940, y: 520, pixelRatio: 2, visible: !0 }, "us-highway-duplex-3": { width: 52, height: 40, x: 0, y: 560, pixelRatio: 2, visible: !0 }, "us-highway-duplex-4": { width: 64, height: 40, x: 52, y: 560, pixelRatio: 2, visible: !0 }, "us-highway-duplex-5": { width: 76, height: 40, x: 116, y: 560, pixelRatio: 2, visible: !0 }, "za-national-2": { width: 40, height: 40, x: 192, y: 560, pixelRatio: 2, visible: !0 }, "za-national-3": { width: 56, height: 40, x: 232, y: 560, pixelRatio: 2, visible: !0 }, "barcelona-metro": { width: 38, height: 38, x: 288, y: 560, pixelRatio: 2, visible: !0 }, "boston-t": { width: 38, height: 38, x: 326, y: 560, pixelRatio: 2, visible: !0 }, "de-s-bahn": { width: 38, height: 38, x: 364, y: 560, pixelRatio: 2, visible: !0 }, "de-s-bahn.de-u-bahn": { width: 70, height: 38, x: 402, y: 560, pixelRatio: 2, visible: !0 }, "delhi-metro": { width: 38, height: 38, x: 472, y: 560, pixelRatio: 2, visible: !0 }, "kiev-metro": { width: 38, height: 38, x: 510, y: 560, pixelRatio: 2, visible: !0 }, "kr-metro-expy-2": { width: 40, height: 38, x: 548, y: 560, pixelRatio: 2, visible: !0 }, "kr-metro-expy-3": { width: 52, height: 38, x: 588, y: 560, pixelRatio: 2, visible: !0 }, "kr-metro-expy-4": { width: 64, height: 38, x: 640, y: 560, pixelRatio: 2, visible: !0 }, "madrid-metro": { width: 38, height: 38, x: 704, y: 560, pixelRatio: 2, visible: !0 }, "new-york-subway": { width: 38, height: 38, x: 742, y: 560, pixelRatio: 2, visible: !0 }, "oslo-metro": { width: 38, height: 38, x: 780, y: 560, pixelRatio: 2, visible: !0 }, "paris-metro": { width: 38, height: 38, x: 818, y: 560, pixelRatio: 2, visible: !0 }, "paris-metro.paris-rer": { width: 74, height: 38, x: 856, y: 560, pixelRatio: 2, visible: !0 }, "paris-rer": { width: 38, height: 38, x: 930, y: 560, pixelRatio: 2, visible: !0 }, "paris-rer.paris-transilien": { width: 70, height: 38, x: 0, y: 600, pixelRatio: 2, visible: !0 }, "road-closure": { width: 38, height: 38, x: 70, y: 600, pixelRatio: 2, visible: !0 }, "stockholm-metro": { width: 38, height: 38, x: 108, y: 600, pixelRatio: 2, visible: !0 }, "taipei-metro": { width: 38, height: 38, x: 146, y: 600, pixelRatio: 2, visible: !0 }, "vienna-u-bahn": { width: 38, height: 38, x: 184, y: 600, pixelRatio: 2, visible: !0 }, "kr-natl-hwy-2": { width: 44, height: 36, x: 222, y: 600, pixelRatio: 2, visible: !0 }, "airfield-11": { width: 34, height: 34, x: 266, y: 600, pixelRatio: 2, visible: !0 }, "airport-11": { width: 34, height: 34, x: 300, y: 600, pixelRatio: 2, visible: !0 }, "alcohol-shop-11": { width: 34, height: 34, x: 334, y: 600, pixelRatio: 2, visible: !0 }, "american-football-11": { width: 34, height: 34, x: 368, y: 600, pixelRatio: 2, visible: !0 }, "amusement-park-11": { width: 34, height: 34, x: 402, y: 600, pixelRatio: 2, visible: !0 }, "aquarium-11": { width: 34, height: 34, x: 436, y: 600, pixelRatio: 2, visible: !0 }, "art-gallery-11": { width: 34, height: 34, x: 470, y: 600, pixelRatio: 2, visible: !0 }, "attraction-11": { width: 34, height: 34, x: 504, y: 600, pixelRatio: 2, visible: !0 }, "bakery-11": { width: 34, height: 34, x: 538, y: 600, pixelRatio: 2, visible: !0 }, "bank-11": { width: 34, height: 34, x: 572, y: 600, pixelRatio: 2, visible: !0 }, "bar-11": { width: 34, height: 34, x: 606, y: 600, pixelRatio: 2, visible: !0 }, "basketball-11": { width: 34, height: 34, x: 640, y: 600, pixelRatio: 2, visible: !0 }, "beach-11": { width: 34, height: 34, x: 674, y: 600, pixelRatio: 2, visible: !0 }, "beer-11": { width: 34, height: 34, x: 708, y: 600, pixelRatio: 2, visible: !0 }, "bicycle-11": { width: 34, height: 34, x: 742, y: 600, pixelRatio: 2, visible: !0 }, "bicycle-share": { width: 34, height: 34, x: 776, y: 600, pixelRatio: 2, visible: !0 }, "bowling-alley-11": { width: 34, height: 34, x: 810, y: 600, pixelRatio: 2, visible: !0 }, "bridge-11": { width: 34, height: 34, x: 844, y: 600, pixelRatio: 2, visible: !0 }, bus: { width: 34, height: 34, x: 878, y: 600, pixelRatio: 2, visible: !0 }, "cafe-11": { width: 34, height: 34, x: 912, y: 600, pixelRatio: 2, visible: !0 }, "campsite-11": { width: 34, height: 34, x: 946, y: 600, pixelRatio: 2, visible: !0 }, "car-11": { width: 34, height: 34, x: 980, y: 600, pixelRatio: 2, visible: !0 }, "car-rental-11": { width: 34, height: 34, x: 968, y: 560, pixelRatio: 2, visible: !0 }, "car-repair-11": { width: 34, height: 34, x: 980, y: 0, pixelRatio: 2, visible: !0 }, "casino-11": { width: 34, height: 34, x: 0, y: 638, pixelRatio: 2, visible: !0 }, "castle-11": { width: 34, height: 34, x: 34, y: 638, pixelRatio: 2, visible: !0 }, "cemetery-11": { width: 34, height: 34, x: 68, y: 638, pixelRatio: 2, visible: !0 }, "charging-station-11": { width: 34, height: 34, x: 102, y: 638, pixelRatio: 2, visible: !0 }, "chongqing-rail-transit": { width: 50, height: 34, x: 136, y: 638, pixelRatio: 2, visible: !0 }, "cinema-11": { width: 34, height: 34, x: 186, y: 638, pixelRatio: 2, visible: !0 }, "clothing-store-11": { width: 34, height: 34, x: 220, y: 638, pixelRatio: 2, visible: !0 }, "college-11": { width: 34, height: 34, x: 254, y: 638, pixelRatio: 2, visible: !0 }, "communications-tower-11": { width: 34, height: 34, x: 288, y: 638, pixelRatio: 2, visible: !0 }, "confectionery-11": { width: 34, height: 34, x: 322, y: 638, pixelRatio: 2, visible: !0 }, "convenience-11": { width: 34, height: 34, x: 356, y: 638, pixelRatio: 2, visible: !0 }, "de-u-bahn": { width: 34, height: 34, x: 390, y: 638, pixelRatio: 2, visible: !0 }, "dentist-11": { width: 34, height: 34, x: 424, y: 638, pixelRatio: 2, visible: !0 }, "doctor-11": { width: 34, height: 34, x: 458, y: 638, pixelRatio: 2, visible: !0 }, "dog-park-11": { width: 34, height: 34, x: 492, y: 638, pixelRatio: 2, visible: !0 }, "drinking-water-11": { width: 34, height: 34, x: 526, y: 638, pixelRatio: 2, visible: !0 }, "embassy-11": { width: 34, height: 34, x: 560, y: 638, pixelRatio: 2, visible: !0 }, entrance: { width: 34, height: 34, x: 594, y: 638, pixelRatio: 2, visible: !0 }, "farm-11": { width: 34, height: 34, x: 628, y: 638, pixelRatio: 2, visible: !0 }, "fast-food-11": { width: 34, height: 34, x: 662, y: 638, pixelRatio: 2, visible: !0 }, ferry: { width: 34, height: 34, x: 696, y: 638, pixelRatio: 2, visible: !0 }, "fire-station-11": { width: 34, height: 34, x: 730, y: 638, pixelRatio: 2, visible: !0 }, "fitness-centre-11": { width: 34, height: 34, x: 764, y: 638, pixelRatio: 2, visible: !0 }, "fuel-11": { width: 34, height: 34, x: 798, y: 638, pixelRatio: 2, visible: !0 }, "furniture-11": { width: 34, height: 34, x: 832, y: 638, pixelRatio: 2, visible: !0 }, "garden-11": { width: 34, height: 34, x: 866, y: 638, pixelRatio: 2, visible: !0 }, "globe-11": { width: 34, height: 34, x: 900, y: 638, pixelRatio: 2, visible: !0 }, "golf-11": { width: 34, height: 34, x: 934, y: 638, pixelRatio: 2, visible: !0 }, "grocery-11": { width: 34, height: 34, x: 968, y: 638, pixelRatio: 2, visible: !0 }, "harbor-11": { width: 34, height: 34, x: 0, y: 672, pixelRatio: 2, visible: !0 }, "hardware-11": { width: 34, height: 34, x: 34, y: 672, pixelRatio: 2, visible: !0 }, "heliport-11": { width: 34, height: 34, x: 68, y: 672, pixelRatio: 2, visible: !0 }, "hong-kong-mtr": { width: 38, height: 34, x: 102, y: 672, pixelRatio: 2, visible: !0 }, "horse-riding-11": { width: 34, height: 34, x: 140, y: 672, pixelRatio: 2, visible: !0 }, "hospital-11": { width: 34, height: 34, x: 174, y: 672, pixelRatio: 2, visible: !0 }, "ice-cream-11": { width: 34, height: 34, x: 208, y: 672, pixelRatio: 2, visible: !0 }, "information-11": { width: 34, height: 34, x: 242, y: 672, pixelRatio: 2, visible: !0 }, "jewelry-store-11": { width: 34, height: 34, x: 276, y: 672, pixelRatio: 2, visible: !0 }, "laundry-11": { width: 34, height: 34, x: 310, y: 672, pixelRatio: 2, visible: !0 }, "library-11": { width: 34, height: 34, x: 344, y: 672, pixelRatio: 2, visible: !0 }, "lodging-11": { width: 34, height: 34, x: 378, y: 672, pixelRatio: 2, visible: !0 }, "marker-11": { width: 24, height: 34, x: 412, y: 672, pixelRatio: 2, visible: !0 }, "mexico-city-metro": { width: 34, height: 34, x: 436, y: 672, pixelRatio: 2, visible: !0 }, "milan-metro": { width: 34, height: 34, x: 470, y: 672, pixelRatio: 2, visible: !0 }, "mobile-phone-11": { width: 34, height: 34, x: 504, y: 672, pixelRatio: 2, visible: !0 }, "monument-11": { width: 34, height: 34, x: 538, y: 672, pixelRatio: 2, visible: !0 }, "moscow-metro": { width: 34, height: 34, x: 572, y: 672, pixelRatio: 2, visible: !0 }, "mountain-11": { width: 34, height: 34, x: 606, y: 672, pixelRatio: 2, visible: !0 }, "museum-11": { width: 34, height: 34, x: 640, y: 672, pixelRatio: 2, visible: !0 }, "music-11": { width: 34, height: 34, x: 674, y: 672, pixelRatio: 2, visible: !0 }, "optician-11": { width: 34, height: 34, x: 708, y: 672, pixelRatio: 2, visible: !0 }, "osaka-subway": { width: 40, height: 34, x: 742, y: 672, pixelRatio: 2, visible: !0 }, "paris-transilien": { width: 34, height: 34, x: 782, y: 672, pixelRatio: 2, visible: !0 }, "park-11": { width: 34, height: 34, x: 816, y: 672, pixelRatio: 2, visible: !0 }, "parking-11": { width: 34, height: 34, x: 850, y: 672, pixelRatio: 2, visible: !0 }, "parking-garage-11": { width: 34, height: 34, x: 884, y: 672, pixelRatio: 2, visible: !0 }, "pharmacy-11": { width: 34, height: 34, x: 918, y: 672, pixelRatio: 2, visible: !0 }, "philadelphia-septa": { width: 38, height: 34, x: 952, y: 672, pixelRatio: 2, visible: !0 }, "picnic-site-11": { width: 34, height: 34, x: 990, y: 672, pixelRatio: 2, visible: !0 }, "pitch-11": { width: 34, height: 34, x: 0, y: 706, pixelRatio: 2, visible: !0 }, "place-of-worship-11": { width: 34, height: 34, x: 34, y: 706, pixelRatio: 2, visible: !0 }, "playground-11": { width: 34, height: 34, x: 68, y: 706, pixelRatio: 2, visible: !0 }, "police-11": { width: 34, height: 34, x: 102, y: 706, pixelRatio: 2, visible: !0 }, "post-11": { width: 34, height: 34, x: 136, y: 706, pixelRatio: 2, visible: !0 }, "prison-11": { width: 34, height: 34, x: 170, y: 706, pixelRatio: 2, visible: !0 }, rail: { width: 34, height: 34, x: 204, y: 706, pixelRatio: 2, visible: !0 }, "rail-light": { width: 34, height: 34, x: 238, y: 706, pixelRatio: 2, visible: !0 }, "rail-metro": { width: 34, height: 34, x: 272, y: 706, pixelRatio: 2, visible: !0 }, "ranger-station-11": { width: 34, height: 34, x: 306, y: 706, pixelRatio: 2, visible: !0 }, "religious-buddhist-11": { width: 34, height: 34, x: 340, y: 706, pixelRatio: 2, visible: !0 }, "religious-christian-11": { width: 34, height: 34, x: 374, y: 706, pixelRatio: 2, visible: !0 }, "religious-jewish-11": { width: 34, height: 34, x: 408, y: 706, pixelRatio: 2, visible: !0 }, "religious-muslim-11": { width: 34, height: 34, x: 442, y: 706, pixelRatio: 2, visible: !0 }, "restaurant-11": { width: 34, height: 34, x: 476, y: 706, pixelRatio: 2, visible: !0 }, "restaurant-noodle-11": { width: 34, height: 34, x: 510, y: 706, pixelRatio: 2, visible: !0 }, "restaurant-pizza-11": { width: 34, height: 34, x: 544, y: 706, pixelRatio: 2, visible: !0 }, "restaurant-seafood-11": { width: 34, height: 34, x: 578, y: 706, pixelRatio: 2, visible: !0 }, "rocket-11": { width: 34, height: 34, x: 612, y: 706, pixelRatio: 2, visible: !0 }, "san-francisco-bart": { width: 34, height: 34, x: 646, y: 706, pixelRatio: 2, visible: !0 }, "school-11": { width: 34, height: 34, x: 680, y: 706, pixelRatio: 2, visible: !0 }, "shoe-11": { width: 34, height: 34, x: 714, y: 706, pixelRatio: 2, visible: !0 }, "shop-11": { width: 34, height: 34, x: 748, y: 706, pixelRatio: 2, visible: !0 }, "singapore-mrt": { width: 34, height: 34, x: 782, y: 706, pixelRatio: 2, visible: !0 }, "skateboard-11": { width: 34, height: 34, x: 816, y: 706, pixelRatio: 2, visible: !0 }, "slipway-11": { width: 34, height: 34, x: 850, y: 706, pixelRatio: 2, visible: !0 }, "stadium-11": { width: 34, height: 34, x: 884, y: 706, pixelRatio: 2, visible: !0 }, "suitcase-11": { width: 34, height: 34, x: 918, y: 706, pixelRatio: 2, visible: !0 }, "swimming-11": { width: 34, height: 34, x: 952, y: 706, pixelRatio: 2, visible: !0 }, "table-tennis-11": { width: 34, height: 34, x: 986, y: 706, pixelRatio: 2, visible: !0 }, "tennis-11": { width: 34, height: 34, x: 0, y: 740, pixelRatio: 2, visible: !0 }, "theatre-11": { width: 34, height: 34, x: 34, y: 740, pixelRatio: 2, visible: !0 }, "toilet-11": { width: 34, height: 34, x: 68, y: 740, pixelRatio: 2, visible: !0 }, "tokyo-metro": { width: 34, height: 34, x: 102, y: 740, pixelRatio: 2, visible: !0 }, "town-hall-11": { width: 34, height: 34, x: 136, y: 740, pixelRatio: 2, visible: !0 }, "traffic-signal": { width: 16, height: 34, x: 1002, y: 638, pixelRatio: 2, visible: !0 }, "veterinary-11": { width: 34, height: 34, x: 170, y: 740, pixelRatio: 2, visible: !0 }, "viewpoint-11": { width: 34, height: 34, x: 204, y: 740, pixelRatio: 2, visible: !0 }, "volcano-11": { width: 34, height: 34, x: 238, y: 740, pixelRatio: 2, visible: !0 }, "volleyball-11": { width: 34, height: 34, x: 272, y: 740, pixelRatio: 2, visible: !0 }, "washington-metro": { width: 34, height: 34, x: 306, y: 740, pixelRatio: 2, visible: !0 }, "watch-11": { width: 34, height: 34, x: 340, y: 740, pixelRatio: 2, visible: !0 }, "waterfall-11": { width: 34, height: 34, x: 374, y: 740, pixelRatio: 2, visible: !0 }, "watermill-11": { width: 34, height: 34, x: 408, y: 740, pixelRatio: 2, visible: !0 }, "windmill-11": { width: 34, height: 34, x: 442, y: 740, pixelRatio: 2, visible: !0 }, "zoo-11": { width: 34, height: 34, x: 476, y: 740, pixelRatio: 2, visible: !0 }, "ch-motorway-2": { width: 44, height: 32, x: 510, y: 740, pixelRatio: 2, visible: !0 }, "ch-motorway-3": { width: 56, height: 32, x: 554, y: 740, pixelRatio: 2, visible: !0 }, "de-motorway-2": { width: 44, height: 32, x: 610, y: 740, pixelRatio: 2, visible: !0 }, "de-motorway-3": { width: 56, height: 32, x: 654, y: 740, pixelRatio: 2, visible: !0 }, "gb-national-rail.london-dlr": { width: 72, height: 32, x: 710, y: 740, pixelRatio: 2, visible: !0 }, "gb-national-rail.london-dlr.london-overground.london-tfl-rail.london-underground": { width: 186, height: 32, x: 782, y: 740, pixelRatio: 2, visible: !0 }, "gb-national-rail.london-dlr.london-overground.london-underground": { width: 148, height: 32, x: 0, y: 774, pixelRatio: 2, visible: !0 }, "gb-national-rail.london-dlr.london-underground": { width: 110, height: 32, x: 148, y: 774, pixelRatio: 2, visible: !0 }, "gb-national-rail.london-overground": { width: 72, height: 32, x: 258, y: 774, pixelRatio: 2, visible: !0 }, "gb-national-rail.london-overground.london-tfl-rail.london-underground": { width: 148, height: 32, x: 330, y: 774, pixelRatio: 2, visible: !0 }, "gb-national-rail.london-overground.london-underground": { width: 110, height: 32, x: 478, y: 774, pixelRatio: 2, visible: !0 }, "gb-national-rail.london-tfl-rail": { width: 72, height: 32, x: 588, y: 774, pixelRatio: 2, visible: !0 }, "gb-national-rail.london-tfl-rail.london-overground": { width: 110, height: 32, x: 660, y: 774, pixelRatio: 2, visible: !0 }, "gb-national-rail.london-tfl-rail.london-underground": { width: 110, height: 32, x: 770, y: 774, pixelRatio: 2, visible: !0 }, "gb-national-rail.london-underground": { width: 72, height: 32, x: 880, y: 774, pixelRatio: 2, visible: !0 }, "gr-motorway-2": { width: 44, height: 32, x: 952, y: 774, pixelRatio: 2, visible: !0 }, "gr-motorway-3": { width: 56, height: 32, x: 968, y: 740, pixelRatio: 2, visible: !0 }, "gr-motorway-4": { width: 68, height: 32, x: 0, y: 806, pixelRatio: 2, visible: !0 }, "hr-motorway-3": { width: 56, height: 32, x: 68, y: 806, pixelRatio: 2, visible: !0 }, "hr-motorway-4": { width: 68, height: 32, x: 124, y: 806, pixelRatio: 2, visible: !0 }, "kr-metropolitan-2": { width: 40, height: 32, x: 192, y: 806, pixelRatio: 2, visible: !0 }, "kr-metropolitan-3": { width: 52, height: 32, x: 232, y: 806, pixelRatio: 2, visible: !0 }, "kr-metropolitan-4": { width: 64, height: 32, x: 284, y: 806, pixelRatio: 2, visible: !0 }, "kr-metropolitan-5": { width: 76, height: 32, x: 348, y: 806, pixelRatio: 2, visible: !0 }, "kr-metropolitan-6": { width: 88, height: 32, x: 424, y: 806, pixelRatio: 2, visible: !0 }, "london-dlr": { width: 40, height: 32, x: 512, y: 806, pixelRatio: 2, visible: !0 }, "london-dlr.london-tfl-rail": { width: 78, height: 32, x: 552, y: 806, pixelRatio: 2, visible: !0 }, "london-dlr.london-tfl-rail.london-underground": { width: 116, height: 32, x: 630, y: 806, pixelRatio: 2, visible: !0 }, "london-dlr.london-underground": { width: 78, height: 32, x: 746, y: 806, pixelRatio: 2, visible: !0 }, "london-overground": { width: 40, height: 32, x: 824, y: 806, pixelRatio: 2, visible: !0 }, "london-overground.london-tfl-rail": { width: 78, height: 32, x: 864, y: 806, pixelRatio: 2, visible: !0 }, "london-overground.london-tfl-rail.london-underground": { width: 116, height: 32, x: 0, y: 838, pixelRatio: 2, visible: !0 }, "london-overground.london-underground": { width: 78, height: 32, x: 942, y: 806, pixelRatio: 2, visible: !0 }, "london-tfl-rail": { width: 40, height: 32, x: 116, y: 838, pixelRatio: 2, visible: !0 }, "london-tfl-rail.london-underground": { width: 78, height: 32, x: 156, y: 838, pixelRatio: 2, visible: !0 }, "london-underground": { width: 40, height: 32, x: 234, y: 838, pixelRatio: 2, visible: !0 }, "si-motorway-2": { width: 44, height: 32, x: 274, y: 838, pixelRatio: 2, visible: !0 }, wetland: { width: 32, height: 32, x: 318, y: 838, pixelRatio: 2, visible: !0 }, "level-crossing": { width: 30, height: 30, x: 350, y: 838, pixelRatio: 2, visible: !0 }, "default-2": { width: 40, height: 28, x: 380, y: 838, pixelRatio: 2, visible: !0 }, "default-3": { width: 52, height: 28, x: 420, y: 838, pixelRatio: 2, visible: !0 }, "default-4": { width: 64, height: 28, x: 472, y: 838, pixelRatio: 2, visible: !0 }, "default-5": { width: 76, height: 28, x: 536, y: 838, pixelRatio: 2, visible: !0 }, "default-6": { width: 88, height: 28, x: 612, y: 838, pixelRatio: 2, visible: !0 }, "gb-national-rail": { width: 34, height: 28, x: 700, y: 838, pixelRatio: 2, visible: !0 }, "motorway-exit-1": { width: 40, height: 28, x: 734, y: 838, pixelRatio: 2, visible: !0 }, "motorway-exit-2": { width: 40, height: 28, x: 774, y: 838, pixelRatio: 2, visible: !0 }, "motorway-exit-3": { width: 52, height: 28, x: 814, y: 838, pixelRatio: 2, visible: !0 }, "motorway-exit-4": { width: 64, height: 28, x: 866, y: 838, pixelRatio: 2, visible: !0 }, "motorway-exit-5": { width: 76, height: 28, x: 930, y: 838, pixelRatio: 2, visible: !0 }, "motorway-exit-6": { width: 88, height: 28, x: 0, y: 870, pixelRatio: 2, visible: !0 }, "motorway-exit-7": { width: 100, height: 28, x: 88, y: 870, pixelRatio: 2, visible: !0 }, "motorway-exit-8": { width: 112, height: 28, x: 188, y: 870, pixelRatio: 2, visible: !0 }, "motorway-exit-9": { width: 124, height: 28, x: 300, y: 870, pixelRatio: 2, visible: !0 }, "rectangle-blue-2": { width: 40, height: 28, x: 424, y: 870, pixelRatio: 2, visible: !0 }, "rectangle-blue-3": { width: 52, height: 28, x: 464, y: 870, pixelRatio: 2, visible: !0 }, "rectangle-blue-4": { width: 64, height: 28, x: 516, y: 870, pixelRatio: 2, visible: !0 }, "rectangle-green-2": { width: 40, height: 28, x: 580, y: 870, pixelRatio: 2, visible: !0 }, "rectangle-green-3": { width: 52, height: 28, x: 620, y: 870, pixelRatio: 2, visible: !0 }, "rectangle-green-4": { width: 64, height: 28, x: 672, y: 870, pixelRatio: 2, visible: !0 }, "rectangle-green-5": { width: 76, height: 28, x: 736, y: 870, pixelRatio: 2, visible: !0 }, "rectangle-green-6": { width: 88, height: 28, x: 812, y: 870, pixelRatio: 2, visible: !0 }, "rectangle-red-2": { width: 40, height: 28, x: 900, y: 870, pixelRatio: 2, visible: !0 }, "rectangle-red-3": { width: 52, height: 28, x: 940, y: 870, pixelRatio: 2, visible: !0 }, "rectangle-red-4": { width: 64, height: 28, x: 0, y: 898, pixelRatio: 2, visible: !0 }, "rectangle-white-2": { width: 40, height: 28, x: 64, y: 898, pixelRatio: 2, visible: !0 }, "rectangle-white-3": { width: 52, height: 28, x: 104, y: 898, pixelRatio: 2, visible: !0 }, "rectangle-white-4": { width: 64, height: 28, x: 156, y: 898, pixelRatio: 2, visible: !0 }, "rectangle-white-5": { width: 76, height: 28, x: 220, y: 898, pixelRatio: 2, visible: !0 }, "rectangle-white-6": { width: 88, height: 28, x: 296, y: 898, pixelRatio: 2, visible: !0 }, "rectangle-yellow-2": { width: 40, height: 28, x: 384, y: 898, pixelRatio: 2, visible: !0 }, "rectangle-yellow-3": { width: 52, height: 28, x: 424, y: 898, pixelRatio: 2, visible: !0 }, "rectangle-yellow-4": { width: 64, height: 28, x: 476, y: 898, pixelRatio: 2, visible: !0 }, "rectangle-yellow-5": { width: 76, height: 28, x: 540, y: 898, pixelRatio: 2, visible: !0 }, "rectangle-yellow-6": { width: 88, height: 28, x: 616, y: 898, pixelRatio: 2, visible: !0 }, "border-dot-13": { width: 26, height: 26, x: 992, y: 870, pixelRatio: 2, visible: !0 }, "dot-10": { width: 22, height: 22, x: 704, y: 898, pixelRatio: 2, visible: !0 }, "dot-11": { width: 22, height: 22, x: 726, y: 898, pixelRatio: 2, visible: !0 }, "dot-9": { width: 22, height: 22, x: 748, y: 898, pixelRatio: 2, visible: !0 }, cliff: { width: 16, height: 14, x: 770, y: 898, pixelRatio: 2, visible: !0 }, "oneway-large": { width: 28, height: 12, x: 786, y: 898, pixelRatio: 2, visible: !0 }, "oneway-white-large": { width: 28, height: 12, x: 814, y: 898, pixelRatio: 2, visible: !0 }, "oneway-small": { width: 22, height: 10, x: 842, y: 898, pixelRatio: 2, visible: !0 }, "oneway-white-small": { width: 22, height: 10, x: 864, y: 898, pixelRatio: 2, visible: !0 } }, VU: { "Latin-1 Supplement": function(i) { return 128 <= i && i <= 255 }, Arabic: function(i) { return 1536 <= i && i <= 1791 }, "Arabic Supplement": function(i) { return 1872 <= i && i <= 1919 }, "Arabic Extended-A": function(i) { return 2208 <= i && i <= 2303 }, "Hangul Jamo": function(i) { return 4352 <= i && i <= 4607 }, "Unified Canadian Aboriginal Syllabics": function(i) { return 5120 <= i && i <= 5759 }, Khmer: function(i) { return 6016 <= i && i <= 6143 }, "Unified Canadian Aboriginal Syllabics Extended": function(i) { return 6320 <= i && i <= 6399 }, "General Punctuation": function(i) { return 8192 <= i && i <= 8303 }, "Letterlike Symbols": function(i) { return 8448 <= i && i <= 8527 }, "Number Forms": function(i) { return 8528 <= i && i <= 8591 }, "Miscellaneous Technical": function(i) { return 8960 <= i && i <= 9215 }, "Control Pictures": function(i) { return 9216 <= i && i <= 9279 }, "Optical Character Recognition": function(i) { return 9280 <= i && i <= 9311 }, "Enclosed Alphanumerics": function(i) { return 9312 <= i && i <= 9471 }, "Geometric Shapes": function(i) { return 9632 <= i && i <= 9727 }, "Miscellaneous Symbols": function(i) { return 9728 <= i && i <= 9983 }, "Miscellaneous Symbols and Arrows": function(i) { return 11008 <= i && i <= 11263 }, "CJK Radicals Supplement": function(i) { return 11904 <= i && i <= 12031 }, "Kangxi Radicals": function(i) { return 12032 <= i && i <= 12255 }, "Ideographic Description Characters": function(i) { return 12272 <= i && i <= 12287 }, "CJK Symbols and Punctuation": function(i) { return 12288 <= i && i <= 12351 }, Hiragana: function(i) { return 12352 <= i && i <= 12447 }, Katakana: function(i) { return 12448 <= i && i <= 12543 }, Bopomofo: function(i) { return 12544 <= i && i <= 12591 }, "Hangul Compatibility Jamo": function(i) { return 12592 <= i && i <= 12687 }, Kanbun: function(i) { return 12688 <= i && i <= 12703 }, "Bopomofo Extended": function(i) { return 12704 <= i && i <= 12735 }, "CJK Strokes": function(i) { return 12736 <= i && i <= 12783 }, "Katakana Phonetic Extensions": function(i) { return 12784 <= i && i <= 12799 }, "Enclosed CJK Letters and Months": function(i) { return 12800 <= i && i <= 13055 }, "CJK Compatibility": function(i) { return 13056 <= i && i <= 13311 }, "CJK Unified Ideographs Extension A": function(i) { return 13312 <= i && i <= 19903 }, "Yijing Hexagram Symbols": function(i) { return 19904 <= i && i <= 19967 }, "CJK Unified Ideographs": function(i) { return 19968 <= i && i <= 40959 }, "Yi Syllables": function(i) { return 40960 <= i && i <= 42127 }, "Yi Radicals": function(i) { return 42128 <= i && i <= 42191 }, "Hangul Jamo Extended-A": function(i) { return 43360 <= i && i <= 43391 }, "Hangul Syllables": function(i) { return 44032 <= i && i <= 55215 }, "Hangul Jamo Extended-B": function(i) { return 55216 <= i && i <= 55295 }, "Private Use Area": function(i) { return 57344 <= i && i <= 63743 }, "CJK Compatibility Ideographs": function(i) { return 63744 <= i && i <= 64255 }, "Arabic Presentation Forms-A": function(i) { return 64336 <= i && i <= 65023 }, "Vertical Forms": function(i) { return 65040 <= i && i <= 65055 }, "CJK Compatibility Forms": function(i) { return 65072 <= i && i <= 65103 }, "Small Form Variants": function(i) { return 65104 <= i && i <= 65135 }, "Arabic Presentation Forms-B": function(i) { return 65136 <= i && i <= 65279 }, "Halfwidth and Fullwidth Forms": function(i) { return 65280 <= i && i <= 65519 } }, layers: [], styles: {}, Mr: !0, Rr: function(i, t) { var a, l = this; if (!i) return !1;
|
||
a = i, this.styles.zr = []; for (var h = this, e = 0, o = a.length; e < o; e += 1) ! function(i) { var o, n, e, r = a[i],
|
||
t = (r.zIndex = i, "line" === r.type && (r.paint["line-width"] = void 0 === r.paint["line-width"] ? 1 : r.paint["line-width"]), r.paint["line-width"] && (i = r.paint["line-width"], t = 0, r.paint["line-gap-width"] && (t = r.paint["line-gap-width"]), o = i, n = t, h.styles.zr.push(i = function(i, t) { var e = 0; return n && (e = l.HU(t, n, i)), t = l.HU(t, o, i), e ? 2 * t + e : t }), r.paint["line-width"] = i, r.paint["line-width"].Cr = h.styles.zr.length - 1, delete r.paint["line-gap-width"]), r["source-layer"]);
|
||
t ? (h.styles[t] || (h.styles[t] = []), (i = r.filter) && (r.filters = [], (e = function(i) { if ("all" !== i[0]) "in" === i[0] || "!in" === i[0] ? r.filters.push([i[0], i[1], i.slice(2)]) : r.filters.push(i);
|
||
else
|
||
for (var t = 1; t < i.length; t += 1) e(i[t]) })(i)), h.styles[t].push(r)) : h.styles[r.id] = r }(e);
|
||
this.backgroundColor = this.HU({}, this.styles.land.paint["background-color"], 12) }, Ar: function(i, t, e, o) { return i -= e, 0 == (o -= e) ? 0 : 1 === t ? i / o : (Math.pow(t, i) - 1) / (Math.pow(t, o) - 1) }, Sr: function(i, t, e) { var o = t.base || 1,
|
||
n = t.stops; if (e <= n[0][0]) return this.HU(i, n[0][1], e); if (e >= n[n.length - 1][0]) return this.HU(i, n[n.length - 1][1], e); for (var r = 1, l = n.length; r < l; r += 1)
|
||
if (e > n[r - 1][0] && e <= n[r][0]) { var a = this.HU(i, n[r - 1][1], e),
|
||
h = this.HU(i, n[r][1], e); if (a instanceof Array) { for (var s = new Array(a.length), f = 0; f < a.length; f += 1) { var u = h[f] - a[f];
|
||
s[f] = a[f] + this.Ar(e, o, n[r - 1][0]) * u } return s } return "number" == typeof a ? (u = h - a, a + this.Ar(e, o, n[r - 1][0], n[r][0]) * u) : a } }, Lr: function(i, t) { if (i) { var e = void 0; if ("string" == typeof i) e = i;
|
||
else if (i.stops)
|
||
for (var o = 0, n = i.stops.length; o < n; o += 1) { if (i.stops[o][0] > t) { e = i.stops[o][1]; break }
|
||
e = i.stops[n - 1][1] } else if ("interpolate" === i[0]) { for (var r = i.slice(3), l = [], a = 0; a < r.length; a += 2) l.push([r[a], r[a + 1]]); for (o = 0, n = l.length; o < n; o += 1) { if (l[o][0] > t) { e = l[o][1]; break }
|
||
e = l[n - 1][1] } }
|
||
return e } }, Tr: function(i, t) { if (i) { var e = void 0; if (i.stops)
|
||
for (var o = 0, n = i.stops.length; o < n; o += 1) { if (i.stops[o][0] > t) { e = i.stops[o][1]; break }
|
||
e = i.stops[n - 1][1] } else e = i; return e } }, Ir: function(i, t) { var e; if (void 0 === i) return 0; if ("function" == typeof i) return i(t); if ("number" != typeof i) { if (i.stops) e = this.Sr(i.base || 1, i.stops, t);
|
||
else if ("interpolate" === i[0]) { for (var o = i.slice(3), n = [], r = 0; r < o.length; r += 2) n.push([o[r], o[r + 1]]);
|
||
e = this.Sr(1, n, t) } } else e = i; return e }, Dr: function(i, t, e, o) { var n; if (void 0 === t) return t;
|
||
t instanceof Array ? n = t : t.stops && (n = this.Sr(i, t, e)); var r = new Array(n.length); return n.forEach(function(i, t) { r[t] = i * o }), r }, Pr: function(i, t, e) { for (var o, n, r, l, a, h, s, f, u, d, p, c, y, x = "butt", v = "butt", g = "solid", w = "solid", b = 0, R = 0, m = 0; m < i.length; m += 1) "line" !== i[m].type || void 0 !== (n = i[m]).minzoom && n.minzoom > t || void 0 !== n.maxzoom && n.maxzoom < t || (o = n.paint, n = n.layout, void 0 === (r = o["line-opacity"]) && (r = 1), (r = this.HU(e, r, t)) && (this.WU(i[m].id, "-low") ? (l = r, i[m].id, y = o["line-color"], a = this.HU(e, y, t), x = this.HU(e, n["line-cap"] || x, t), h = this.HU(e, o["line-width"], t), s = o["line-width"].Cr, this.Dr(e, o["line-dasharray"], t, h) && (g = "dashed"), R = Math.max(R, i[m].zIndex)) : this.WU(i[m].id, "-case") || this.WU(i[m].id, "-tracks") ? (f = !0, i[m].id, u = r, y = o["line-color"], d = this.HU(e, y, t), p = this.HU(e, o["line-width"], t), c = o["line-width"].Cr, v = this.HU(e, n["line-cap"] || v, t), this.Dr(e, o["line-dasharray"], t, p) && (w = "dashed"), b = Math.max(b, i[m].zIndex)) : this.WU(i[m].id, "-bg") ? (f = !0, i[m].id, u = r, y = o["line-color"], d = this.HU(e, y, t), v = this.HU(e, n["line-cap"] || v, t), p = this.HU(e, o["line-width"], t), c = o["line-width"].Cr, this.Dr(e, o["line-dasharray"], t, p) && (w = "dashed"), b = Math.max(b, i[m].zIndex)) : (l = r, i[m].id, y = o["line-color"], a = this.HU(e, y, t), x = this.HU(e, n["line-cap"] || x, t), h = this.HU(e, o["line-width"], t), s = o["line-width"].Cr, this.Dr(e, o["line-dasharray"], t, h) && (g = "dashed"), R = Math.max(R, i[m].zIndex)))); if (h) return { facezIndex: R, borderzIndex: b, faceStrokeStyle: g, faceOpacity: l, faceDashArray: void 0, faceWidth: h, faceColor: a, faceLineCap: x, borderLineCap: v, isOutline: f, borderOpacity: u, borderStrokeStyle: w, borderDashArray: void 0, borderColor: d, borderWidth: p, faceWidthFunIndex: s, borderWidthFunIndex: c } }, QU: function(i) { return i instanceof Array && -1 < this.KU(["geometry-type", "to-number", "case", "step", "is-supported-script", "concat", "get", "literal", "match", "interpolate", "to-string", "string", "coalesce", "has", "+", "==", "!=", ">", "<", ">=", "<=", "in", "!in"], i[0]) || "object" == typeof i && i.stops }, KU: function(i, t) { if (i && i.length) { if (i.indexOf) return i.indexOf(t); for (var e = 0; e < i.length; e += 1)
|
||
if (i[e] === t) return e } return -1 }, WU: function(i, t) { return i.endsWith ? i.endsWith(t) : !(i.length < t.length) && i.substr(i.length - t.length) === t }, Vr: function(i, t, e) { for (var o = 0, n = 0; n < i.length; n += 1) { var r, l, a, h, s, f, u = i[n]; "line" === i[n].type ? u.minzoom && u.minzoom > t || (o = Math.max(o, u.zIndex), s = (h = u.paint)["line-color"], r = this.HU(e, s, t), l = this.HU(e, h["line-width"], t), s = void 0 === h["line-opacity"] ? 1 : h["line-opacity"], a = this.HU(e, s, t)) : "fill" !== i[n].type || u.minzoom && u.minzoom > t || (o = Math.max(o, u.zIndex), s = (h = u.paint)["fill-color"], f = this.HU(e, s, t)) } return { zIndex: o, fillColor: f, fillOpacity: 1, strokeWeight: l, strokeColor: r, strokeOpacity: a } }, Xr: function(i, t, e) { var o, n, r, l, a, h, s, f, u, d, p, c, y = (i = i[0]).paint,
|
||
x = i.layout; if ("symbol" === i.type) return o = this.HU(e, y["text-color"], t), n = this.HU(e, y["text-halo-color"], t), h = this.HU(e, y["text-halo-width"], t), r = void 0 === y["icon-opacity"] ? 1 : y["icon-opacity"], r = this.HU(e, r, t), y = void 0 === y["text-opacity"] ? 1 : y["text-opacity"], y = this.HU(e, y, t), l = a = void 0, 0 === h && (n = ""), x["icon-image"] && (a = this.HU(e, x["icon-image"], t), h = this.kr[a]) && r && (h.height, l = [-h.width / 2, -h.height / 2, h.width, h.height, h.x, h.y, h.width, h.height]), h = this.HU(e, x["icon-rotation-alignment"], t), s = x["text-max-width"], f = this.HU(e, x["text-anchor"] || "center", t), (u = this.HU(e, x["text-font"], t) || "Microsoft YaHei") instanceof Array && (u = u.join(" ")), d = x["text-offset"] ? this.HU(e, x["text-offset"], t) : [0, 0], p = this.HU(e, x["text-size"], t), c = "", y && x["text-field"] && (c = this.HU(e, x["text-field"] || "{name}", t)), { zIndex: i.zIndex, Jr: h, Kr: o || "black", Qr: n, th: (i.minzoom || 1) + .5, ih: (i.maxzoom || 20) + .5, eh: r, nh: a, qU: l, oh: s, textAnchor: f, ah: u, sh: d, rh: p, name: c } }, lh: function(i, t, e) { var o = [],
|
||
n = this.Pr(i, t, e); return n && (n.type = "line", o.push(n)), (n = this.uh(i, t, e)).length && o.push.apply(o, n), o }, uh: function(i, t, e) { for (var o = [], n = 0; n < i.length; n += 1) { var r = this.Xr([i[n]], t, e);
|
||
r && o.push(r) } return o }, YU: function(i, t, e) { for (var o = 1, n = t.length - 1; o < n; o += 2)
|
||
if (this.HU(i, t[o], e)) return this.HU(i, t[o + 1], e);
|
||
return this.HU(i, t[t.length - 1], e) }, JU: function(i, t, e) { var o = this.HU(i, t[1], e),
|
||
n = this.HU(i, t[2], e); return [o, this.HU(i, t[3], e)].join(n) }, ZU: function(i, t, e) { for (var o = t[1], n = 1, r = ("exponential" === o[0] ? n = o[1] : "linear" === o[0] && (n = 1), t.slice(3)), l = [], a = 0; a < r.length; a += 2) l.push([r[a], r[a + 1]]); return o = this.Sr(i, { base: n, stops: l }, e), this.HU(i, o, e) }, XU: function(i, t, e) { "zoom" !== t[1][0] && "get" === t[1][0] && (e = i.properties[t[1][1]]); for (var o = [], n = 2, r = t.length; n < r; n += 2) o.push([parseFloat(t[n - 1]) || 0, this.HU(i, t[n], e)]); if (e < o[0][0]) return this.HU(i, o[0][1], e); if (e >= o[o.length - 1][0]) return this.HU(i, o[o.length - 1][1], e); for (n = 1, r = o.length; n < r; n += 1)
|
||
if (e <= o[n][0]) return this.HU(i, o[n - 1][1], e) }, tV: function(i, t, e) { var o = this.HU(i, t[1], e); if (o) { for (var n = 2, r = t.length - 1; n < r; n += 2)
|
||
if (t[n] instanceof Array ? -1 !== this.KU(t[n], o) : t[n] === o) return this.HU(i, t[n + 1], e);
|
||
return this.HU(i, t[t.length - 1], e) } }, HU: function(i, t, e) { if (null == t) return null; var o = typeof t; if ("number" == o || "boolean" == o) return t; if ("function" == o) return t(e, i); if (!this.QU(t)) { if ("string" == typeof t && -1 !== this.KU(t, "{")) { for (var n, r = [], l = 0, a = 0, h = t.length; a < h; a += 1) "{" === t[a] && (l = a), "}" === t[a] && (n = a, r.push(t.substring(l, n + 1))); for (var s, a = 0, h = r.length; a < h; a += 1) { if (void 0 === (s = i.properties[r[a].substring(1, r[a].length - 1)])) return "";
|
||
t = t.replace(r[a], s) } } return t } if ("literal" === t[0]) return t[1]; if (t.stops) return this.Sr(i, t, e); if ("get" === t[0]) return this.Hr && "name" === t[1].substr(0, 4) && (i.properties["name_zh-Hant"] || i.properties["name_zh-Hans"]) || i.properties[t[1]]; if ("to-number" === t[0]) return parseFloat(this.HU(i, t[1], e)); if ("to-string" === t[0]) return (s = this.HU(i, t[1], e)) ? s + "" : ""; if ("string" === t[0]) return (s = this.HU(i, t[1], e)) ? s + "" : ""; if ("match" === t[0]) return this.tV(i, t, e); if ("case" === t[0]) return this.YU(i, t, e); if ("interpolate" === t[0]) return this.ZU(i, t, e); if ("concat" === t[0]) return this.JU(i, t, e); if ("step" === t[0]) return this.XU(i, t, e); if ("coalesce" !== t[0]) return "+" === t[0] ? this.HU(i, t[1], e) + this.HU(i, t[2], e) : "has" === t[0] ? void 0 !== i.properties[t[1]] : "is-supported-script" === t[0] ? this.iV(this.HU(i, t[1], e)) : "==" === t[0] ? this.HU(i, t[1], e) === this.HU(i, t[2], e) : "!=" === t[0] ? this.HU(i, t[1], e) !== this.HU(i, t[2], e) : ">" === t[0] ? this.HU(i, t[1], e) > this.HU(i, t[2], e) : "<" === t[0] ? this.HU(i, t[1], e) < this.HU(i, t[2], e) : ">=" === t[0] ? this.HU(i, t[1], e) >= this.HU(i, t[2], e) : "<=" === t[0] ? this.HU(i, t[1], e) <= this.HU(i, t[2], e) : "in" === t[0] ? -1 < this.KU(this.HU(i, t[2], e), this.HU(i, t[1], e)) : "!in" === t[0] ? -1 === this.KU(this.HU(i, t[2], e), this.HU(i, t[1], e)) : "geometry-type" === t[0] ? 3 === i.type ? "Polygon" : 2 === i.type ? "LineString" : "Point" : void 0; for (a = 1; a < t.length; a += 1) { var f = this.HU(i, t[a], e); if (f) return f } }, eV: function(i, t) { return !(!t && (1424 <= i && i <= 2303 || this.VU["Arabic Presentation Forms-A"](i) || this.VU["Arabic Presentation Forms-B"](i)) || 2304 <= i && i <= 3583 || 3840 <= i && i <= 4255 || this.VU.Khmer(i)) }, iV: function(i) { if (!i) return !1; for (var t = 0, e = i.length; t < e; t += 1) { var o = i[t]; if (!this.eV(o.charCodeAt(0), !1)) return !1 } return !0 }, getStyle: function(a, h, i, s) { var t, e = a.type,
|
||
f = (a.properties.class, a.properties.type, this),
|
||
u = this.styles[h]; if (u && (t = function() { for (var i = [], t = 0, e = u.length; t < e; t += 1) { var o = u[t]; if (o.filters) { for (var n = !0, r = 0; r < o.filters.length; r += 1) { var l = o.filters[r]; if (!f.HU(a, l, s)) { n = !1; break } }
|
||
n && i.push(o) } else o.id === h && i.push(o) } return i }()).length) return 1 === e ? this.Xr(t, s, a) : 2 === e ? this.lh(t, s, a) : 3 === e ? this.Vr(t, s, a) : void 0 }, fh: function(i, t) { for (var e = 1 << 20 - t.z, o = i.extent / 256, n = 0; n < i.style.length; n += 1) { var r = i.style[n]; if ("line" !== r.type) { for (var l = "", a = (r.hh && (l = i.properties[r.hh]), this.Mr), h = a ? 1.8 * r.rh : r.rh, s = i.lines[0], f = 1; f < i.lines.length; f += 1) s.length < i.lines[f].length && (s = i.lines[f]); for (var u = [], d = 0; d < s.length; d += 1) { var p = [t.x * e * 256 + s[d][0] / o * e, 256 * t.y * e + s[d][1] / o * e];
|
||
u.push(p) } var c = r.textAnchor,
|
||
y = (this._r.font = r.rh + "px " + r.ah, this._r.measureText(l).width),
|
||
x = 0,
|
||
v = 0,
|
||
g = r.nh && "viewport" === r.Jr; if (r.nh) { var x = (-i.properties.dh || 0) - 100,
|
||
b = (w = polyfill.kS._S(u, polyfill.kS.distanceOfLine(u) / 2) || [])[2]; "viewport" !== r.Jr && 1 < u.length && (v = 360 - (new polyfill.Pixel(u[b + 1][0] - u[b][0], u[b + 1][1] - u[b][1]).direction() || 0)), u = [w[0], w[1]] } else { if (this.vh(s)) continue; if (90 < (b = new polyfill.Pixel(s[1][0] - s[0][0], s[1][1] - s[0][1]).direction() || 0) && b < 270 && (u.reverse(), s.reverse()), x = -i.properties.dh - 1e6, polyfill.kS.distanceOfLine(u) / e < 1.5 * y) continue } var R, w = { margin: this.mh, foreign: !0, zIndex: r.zIndex, yh: v, rank: x, font: r.ah, Kr: r.Kr, Qr: r.Qr, rh: h, id: i.id, xh: u, name: l, textAlign: "center", textBaseline: "center" === c ? "middle" : "top", bh: [], gh: new Array, wh: g, _h: !g, kh: !r.nh, th: r.th, Mh: !0, Rh: new Array, zh: !1, zoom: t.z };
|
||
r.nh ? (v = 0, x = r.nh.replace("{maki}", i.properties.maki).replace("{shield}", i.properties.shield).replace("{reflen}", i.properties.reflen).replace("{network}", i.properties.network), (g = this.kr[x]) && r.eh && (v = g.height, R = [-g.width / 2, -g.height / 2, g.width, g.height, g.x, g.y, g.width, g.height], w.gh.push(R)), l && (x = void 0, g = "center" === c ? (x = 0, -h / 2) : x = n * (h + 2) + v / 2, w.Rh.push([l, r.ah, h, r.Kr, r.Qr, 0, 0, !1, [0, x, a ? 1.8 * y : y, h]]), w.gh.push(R = [-y / 2, g, y, h])), (v || l) && (l ? w.id = "mapbox_guideboard_" + polyfill.Util.stamp(w) : (w.id = "mapbox_singleway_" + polyfill.Util.stamp(w), w.zh = !0), t.labels.push(w))) : l && (w.id = "mapbox_roadname_" + polyfill.Util.stamp(w), t.labels.push(w)) } } }, Sh: function(i, t) { var e = 1 << 20 - t.z,
|
||
o = i.extent / 256,
|
||
n = i.Ch.xh[0][0],
|
||
r = i.properties[i.style.hh]; if (r) { var l = this.Mr ? 2 * i.style.rh : i.style.rh,
|
||
e = [t.x * e * 256 + n[0] / o * e, 256 * t.y * e + n[1] / o * e],
|
||
a = i.style.textAnchor,
|
||
h = { foreign: !0, margin: this.mh, zIndex: i.style.zIndex, rank: -i.properties.dh || 0, id: i.id, xh: e, name: r, textAlign: "center", textBaseline: "center" === a ? "middle" : "top", bh: [], gh: new Array, yh: 0, pos: [n[0] / o, n[1] / o], wh: !0, th: i.style.th, Mh: !0, Rh: new Array },
|
||
s = 0,
|
||
f = (i.style.nh && (e = i.style.nh.replace("{maki}", i.properties.maki).replace("{shield}", i.properties.shield).replace("{reflen}", i.properties.reflen).replace("{network}", i.properties.network), n = this.kr[e]) && i.style.eh && (s = n.height, y = [-n.width / 2, -n.height / 2, n.width, n.height, n.x, n.y, n.width, n.height], h.gh = [y]), 0 < (o = r.indexOf("(")) ? [r.substr(0, o), r.substr(o)] : 20 < r.length && 1 < (e = r.split(" ")).length ? (n = Math.floor(e.length / 2), [e.slice(0, n).join(" "), e.slice(n).join(" ")]) : [r]);
|
||
this._r.font = l + "px " + i.style.ah; for (var u = 0; u < f.length; u += 1) { var d = f[u],
|
||
p = this._r.measureText(d).width,
|
||
y = (h.Rh.push([d, i.style.ah, l, i.style.Kr, i.style.Qr, 0, 0, !1, [0, d = "center" === a ? (-.5 * f.length + u) * (l + 2) : u * (l + 2) + s / 2, p, l]]), [-p / 2, d, p, l]);
|
||
h.gh.push(y) } return t.labels.push(h), h } }, Lh: function(i) { var t, e = [],
|
||
o = []; for (t in i.layers)
|
||
if (i.layers.hasOwnProperty(t)) { for (var n = i.layers[t], r = [], l = 0; l < n.Ah.length; l += 1) 3 == +(a = n.Ah[l]).type ? e.push(a) : 2 == +a.type && r.push(a); for (l = 0; l < r.length; l += 1) { var a, h = (a = r[l]).style;
|
||
h.isOutline && o.push([a, { zIndex: h.borderzIndex, Th: h.borderWidthFunIndex, strokeStyle: h.borderStrokeStyle, strokeOpacity: h.borderOpacity, strokeDasharray: h.borderDashArray, lineCap: h.borderLineCap, strokeWeight: h.borderWidth, strokeColor: h.borderColor }]), o.push([a, { zIndex: h.facezIndex, Th: h.faceWidthFunIndex, strokeStyle: h.faceStrokeStyle, strokeOpacity: h.faceOpacity, strokeDasharray: h.faceDashArray, lineCap: h.faceLineCap, strokeWeight: h.faceWidth, strokeColor: h.faceColor }]) } }
|
||
o.sort(function(i, t) { return i[1].zIndex > t[1].zIndex ? 1 : -1 }), i.polygons = e, i.Dh = o, delete i.layers }, Ph: function(i) { i.type, i.lines }, jh: function(i, t, e, o) { this.mh = 3; var n, r = t.vt,
|
||
l = (r.labels = [], []); for (n in r.layers)
|
||
if (r.layers.hasOwnProperty(n)) { var a = r.layers[n],
|
||
h = a.Ah;
|
||
l.push(n); for (var s = 0, f = h.length; s < f; s++) { var u = h[s];
|
||
u.Fh = a.name, u.style = this.getStyle(u, a.name, !0, r.z - 1), u.style, this.Ph(u), u.style && 1 != +u.type && 2 == +u.type && u.style.length && (this.fh(u, r), "line" === u.style[0].type) && (u.style = u.style[0]) } }
|
||
this.Lh(r), this.Eh || (this.Eh = !0), e.features = r.labels, r.labels = null, l.length > this.layers.length && (this.layers = l), o(null, { vt: r }) } },
|
||
MapboxStyle = function() {
|
||
function i(i) { var t = null,
|
||
e = "";
|
||
i && ((i = i.KG) && i.styles && (t = JSON.parse(i.styles).layers), i) && i.vectorMapForeign && (e = i.vectorMapForeign), mbStyle.Rr(t, e) } return i.prototype.getMapboxStyle = function() { return mbStyle }, i }(),
|
||
MapboxSourceWorker = function() {
|
||
function i(i) { this.parent = i, this.id = "mapbox", this.sQ = {}, this.yQ = {}, this.kQ = {} } return i.prototype.YE = function(i) { var t = polyfill.Util.getOptimalZoom(this.WW);
|
||
i(this.sQ, { ZL: this.WW, optimalZoom: t, cb: function() {} }), this.sQ = {} }, i.prototype.bw = function(i, n, r, l, t, e, a) { var h = this,
|
||
s = new XMLHttpRequest; return s.onreadystatechange = function() { var i, t, e, o;
|
||
4 === s.readyState && 200 === s.status && (o = new polyfill.pw(new Uint8Array(s.response)), (o = new polyfill.tW(o)).nG("mapbox"), i = n.z, t = n.x, e = n.y, o.data = {}, o = h.Ow(o, { x: n.x, y: n.y, z: n.z, projectionId: r, tileSize: l }), h.wQ(o), o.zo = new polyfill.ca(i, t, e), h.FQ(o), delete o.road, a(null, polyfill.Ln({ zo: n }, o))) }, s.open("GET", i, !0), s.responseType = "arraybuffer", s.send(), { cancel: function() { s.abort() } } }, i.prototype.wQ = function(i) { i.stencil = {}; var t = new polyfill.fQ,
|
||
i = (i.stencil.Oc = t, i.stencil.Dc = new polyfill.K_, i.stencil.Dc.Nx(i.MQ));
|
||
t.add({}, i) }, i.prototype.Ow = function(e, i) { var o = i.x,
|
||
n = i.y,
|
||
s = i.z,
|
||
r = i.tileSize,
|
||
f = i.projectionId;
|
||
e.z = s, e.x = o, e.y = n; for (var i = polyfill.ProjectionManager.getProjection(f).getResolution(s), i = polyfill.$Q(o, n, s, i, r), l = (e.Ro = i, e.MQ = [i[0], i[1], i[2], i[1], i[2], i[3], i[0], i[3]], e.zS = polyfill.lcs.getLocalByCoord([e.Ro[0], e.Ro[1]]), e.localCoord = e.zS, Object.keys(e.layers)), t = 0; t < l.length; t++) ! function(i) { var h = e.layers[l[i]],
|
||
i = h.Cw,
|
||
t = h.extent;
|
||
h.Ah = [], h.scale = r / t, h.ox = r * o, h.oy = r * n, polyfill.forEach(i, function(i, t) { if ((i = h.Gw(t)).Dw(), h.Ah.push(i), i.lines && i.lines.length && (2 === i.type || 3 === i.type || 1 === i.type)) { i.Rw = []; for (var e = 0, o = i.lines.length; e < o; e++) { for (var n = [], r = 0, l = i.lines[e].length; r < l; r++) { var a = [h.ox + h.scale * i.lines[e][r][0], h.oy + h.scale * i.lines[e][r][1]],
|
||
a = [(a = polyfill.V[f].Xs(a[0], a[1], s))[0], a[1]];
|
||
n.push(a) }
|
||
i.Rw.push(n) } } }) }(t); return this.uW(e, s), this.xw(e), this.zw(e), e }, i.prototype.uW = function(i, t) { var e, o = [],
|
||
n = [],
|
||
r = [],
|
||
l = (this.kQ, null); for (e in this.parent && this.parent.QG && (l = this.parent.QG), this.$h = new MapboxStyle({ KG: l }).getMapboxStyle(), i.bgColor = this.$h.backgroundColor, i.layers)
|
||
if (i.layers.hasOwnProperty(e))
|
||
for (var a = i.layers[e], h = 0; h < a.Ah.length; h += 1) { var s, f = a.Ah[h],
|
||
u = this.$h.getStyle(f, a.name, !0, t);
|
||
u && (f.style = u, 3 === f.type ? o.push(f) : 2 === f.type ? n.push(f) : 1 === f.type && (s = u.name) && ((s = { name: s, position: f.Rw[0], id: f.id, minzoom: u.th, maxzoom: u.ih }).style = u, r.push(s))) }
|
||
n.sort(function(i, t) { return i.style && t.style && i.style.zIndex > t.style.zIndex ? 1 : -1 }), o.sort(function(i, t) { return i.style && t.style && i.style.zIndex > t.style.zIndex ? 1 : -1 }), i.polygons = o, i.Dh = n, i.data.poilabel = ((l = {})[i.z + "," + i.x + "," + i.y] = r, l), delete i.layers }, i.prototype.startsWith = function(i, t) { return i.startsWith ? i.startsWith(t) : i.substr(0, t.length) === t }, i.prototype.argbHex2Rgba = function(i) { for (var t = [], e = 0, o = i.length; e < o; e += 2) t.push(parseInt(i.substr(e, 2), 16) / 255); return t.push(t.shift()), t }, i.prototype.uQ = function(i, t, e) { return e < 0 && (e += 1), 1 < e && --e, e < 1 / 6 ? i + 6 * (t - i) * e : e < .5 ? t : e < 2 / 3 ? i + (t - i) * (2 / 3 - e) * 6 : i }, i.prototype.GQ = function(i, t, e, o) { var n, r, l; return 0 === t ? n = r = l = e : (n = this.uQ(t = 2 * e - (e = e < .5 ? e * (1 + t) : e + t - e * t), e, i + 1 / 3), r = this.uQ(t, e, i), l = this.uQ(t, e, i - 1 / 3)), [n, r, l, o] }, i.prototype.color2RgbaArray = function(i, t) { var e, o, n, r, l, a, h; return void 0 === t && (t = 1), i ? (e = i.toString(), this.yQ[e] || (i instanceof Array ? i : this.startsWith(i, "hsla") ? (a = i.substr(5).split(","), o = parseInt(a[0], 10) / 360, n = parseInt(a[1], 10) / 100, r = parseInt(a[2], 10) / 100, h = parseFloat(a[3]), l = this.GQ(o, n, r, h), this.yQ[e] = l) : this.startsWith(i, "hsl") ? (a = i.substr(4).split(","), o = parseInt(a[0], 10) / 360, n = parseInt(a[1], 10) / 100, r = parseInt(a[2], 10) / 100, l = this.GQ(o, n, r, t), this.yQ[e] = l) : this.startsWith(i, "#") ? 7 === i.length ? (l = this.argbHex2Rgba("ff" + i.substr(1)), this.yQ[e] = l) : 9 === i.length ? (l = this.argbHex2Rgba(i.substr(1)), this.yQ[e] = l) : void 0 : this.startsWith(i, "rgba") ? (a = i.substr(5).split(","), [parseInt(a[0], 10) / 255, parseInt(a[1], 10) / 255, parseInt(a[2], 10) / 255, h = parseFloat(a[3])]) : this.startsWith(i, "rgb") ? (a = i.substr(4).split(","), [parseInt(a[0], 10) / 255, parseInt(a[1], 10) / 255, parseInt(a[2], 10) / 255, h = 1]) : void 0)) : null }, i.prototype.zw = function(i) { if (!i || !i.Dc) { var t = new polyfill.fQ,
|
||
e = (i.Oc = t, i.Dc = new polyfill.K_, { fillColor: this.color2RgbaArray(i.bgColor), zIndex: 0 }),
|
||
o = i.Dc.Nx(i.MQ);
|
||
t.add(e, o); for (var n = 0, r = i.polygons; n < r.length; n++) { var l = r[n],
|
||
a = l.style; if (a && a.fillColor) { a.fillColor = this.color2RgbaArray(a.fillColor); var h = l.Rw; if (1 < h.length) { for (var s = [], f = 0; f < h.length; f++) polyfill.kS.isClockwise(h[f]) ? s.push([f]) : s.length && s[s.length - 1].push(f); for (var u = 0; u < s.length; u++) { var d = s[u]; if (1 < d.length) { for (var p = [], c = [], y = 0; y < d.length; y++) { var x = h[d[y]];
|
||
0 < y && p.push(c.length / 2); for (var v = 0; v < x.length; v++) { var g = x[v];
|
||
c.push(g[0], g[1]) } } var w = i.Dc.Nx(c, p) } else { for (c = [], x = h[d[0]], v = 0; v < x.length; v++) { var b = x[v];
|
||
c.push(b[0], b[1]) }
|
||
w = i.Dc.Nx(c) }
|
||
t.add(a, w) } } else { for (var R = h.length, c = [], m = 0; m < R; m++) { var S = h[m]; if (0 < S.length)
|
||
for (v = 0; v < S.length; v++) u = S[v], c.push(u[0], u[1]) }
|
||
l = i.Dc.Nx(c), t.add(a, l) } } }
|
||
delete i.polygons } }, i.prototype.xw = function(i) { if (!i || !i.$c) { var t = [],
|
||
e = this.kQ,
|
||
o = (i.$c = new polyfill.J_, new polyfill.fQ);
|
||
i.Uc = o; for (var n = 0, r = i.Dh; n < r.length; n++) { var l = r[n],
|
||
a = l.Rw,
|
||
h = a.length,
|
||
s = 0,
|
||
f = 0;
|
||
l.style && l.style[0] && l.style[0].borderColor && (l.style[0].borderColor = this.color2RgbaArray(l.style[0].borderColor)), l.style && l.style[0] && l.style[0].faceColor && (l.style[0].faceColor = this.color2RgbaArray(l.style[0].faceColor)); for (var d = (u = l.style || [])[0], u = u[1], p = 0; p < h; p++) { var c = a[p]; if (0 < c.length) { for (var y = [], x = 0; x < c.length; x++) { var v = c[x];
|
||
y.push(v[0], v[1]) } var g = i.$c.hb(y, { X_: 0, lineJoin: "miter", lineCap: "round" });
|
||
s += g.Iw, f += g.distance } } if (0 < s && (o.add(l.style, s), l.distance = f), d && d.borderColor && (l.style[0].borderColor = this.color2RgbaArray(d.borderColor)), d && d.faceColor && (l.style[0].faceColor = this.color2RgbaArray(d.faceColor)), u && (l = u.name || "")) { var d = u.Kr,
|
||
w = u.Qr;
|
||
d && !e[d] && (e[d] = polyfill.Util.color2RgbaArray(d)), w && !e[w] && (e[w] = polyfill.Util.color2RgbaArray(w)), u.Kr = e[d], u.Qr = e[w]; for (var b = (d = { style: u, path: [], name: l, distance: f }).path, R = 0; R < h; R++)
|
||
for (var m = a[R], x = 0; x < m.length; x++) v = m[x], b.push(v[0], v[1]);
|
||
t.push(d) } }
|
||
i.road = t, delete i.Dh } }, i.prototype.FQ = function(i) { var t, e = {}; for (t in i) i.hasOwnProperty(t) && "fillBucket" !== t && "fillSegements" !== t && "lineBucket" !== t && "lineSegements" !== t && (e[t] = i[t]);
|
||
this.sQ[i.zo.key] = { tile: e, params: { scale: this.parent.params.scale, tag: "all" } } }, i }(),
|
||
_a$1, mapBoxSprite = "https://webapi.amap.com/style_icon/sprite_v8@2x.png",
|
||
DefaultIconInfo = (_a$1 = { TW: { img: "https://c-webapi.amap.com/style_icon/2.0/icon-normal-big.png", width: 512, height: 1024, startX: 0, startY: 0, status: "loaded", type: "icon", ext: { hv: 0 } }, RW: { img: "https://c-webapi.amap.com/style_icon/2.0/icon-biz-big.png", width: 512, height: 1024, startX: 0, startY: 1024, status: "loaded", type: "icon", ext: { hv: 1 } } }, _a$1[mapBoxSprite] = { img: mapBoxSprite, width: 1024, height: 926, startX: 0, startY: 2048, status: "loaded", type: "icon", ext: { hv: 2 } }, _a$1),
|
||
ImageManagerWorker = function(e) {
|
||
function i() { var i, t = e.call(this) || this; return t.Fs = ((i = {})[DefaultIconInfo.TW.img] = DefaultIconInfo.TW, i[DefaultIconInfo.RW.img] = DefaultIconInfo.RW, i), t.Cc = 16, t.Uw = 3, t.Hw = {}, t.Mc = {}, t } return polyfill.Ei(i, e), i.prototype.loadImage = function(i, t) { var e = t.name,
|
||
o = t.type,
|
||
n = t.cb,
|
||
r = this.Fs[e = e || i];
|
||
r && r.status === polyfill.uc.LOADED ? n(r, t) : r && r.status === polyfill.uc.LOADING ? (this.Mc[e] || (this.Mc[e] = []), this.Mc[e].push({ cb: n, opts: t })) : ("icon" === o && (DefaultIconInfo[i] ? t.hv = DefaultIconInfo[i].ext.hv : t.hv = this.Uw, this.Uw++), this.Rc(i, t)) }, i.prototype.loadImages = function(i, t) { var n = this,
|
||
e = t.cb,
|
||
r = t.type; if (0 === Object.keys(i).filter(function(i) { return !n.Fs[i] }).length) e();
|
||
else { var l = [],
|
||
a = []; if (i.length) { for (var o = 0, h = i; o < h.length; o++) ! function(o) { var i = new Promise(function(e, i) { n.loadImage(o, { cb: function(i, t) { a.push(n.Fs[o]), e() }, type: r }) });
|
||
l.push(i) }(h[o]);
|
||
Promise.all(l).then(function() { e(a) }).catch(function() { e(a) }) } else e(a) } }, i.prototype.Vw = function(i, t) { var n = this,
|
||
r = t.cb,
|
||
l = i.filter(function(i) { return !n.Fs[i] }); if (0 === l.length) r([]);
|
||
else { var e = [],
|
||
a = []; if (i.length) { for (var o = 0, h = i; o < h.length; o++) ! function(o) { var i = new Promise(function(e, i) { n.loadImage(o, { cb: function(i, t) { a.push(n.Fs[o]), e() }, type: "icon" }) });
|
||
e.push(i) }(h[o]);
|
||
Promise.all(e).then(function() { var i = []; if (0 < l.length) { for (var t = 0, e = l; t < e.length; t++) { var o = e[t];
|
||
i.push({ url: o, data: n.getImage(o) }) }
|
||
n.emit("iconImageLoaded", { data: i }) }
|
||
r(a) }).catch(function() { r(a) }) } else r(a) } }, i.prototype.getImage = function(i) { return this.Fs[i = void 0 === i ? "" : i] }, i.prototype.destory = function() { var i;
|
||
this.Fs = ((i = {})[DefaultIconInfo.TW.img] = DefaultIconInfo.TW, i[DefaultIconInfo.RW.img] = DefaultIconInfo.RW, i) }, i.prototype.Rc = function(t, e) { var o = this,
|
||
n = e.name,
|
||
i = e.ext,
|
||
r = void 0 === i ? {} : i,
|
||
l = void 0 === (i = e.type) ? "other" : i,
|
||
a = e.cb,
|
||
h = e.imageBitmap,
|
||
s = this.Fs;
|
||
s[n || t] = { status: polyfill.uc.LOADING, startX: 0, startY: 1024 * (e.hv || 0), type: l, height: 0, width: 0 }, polyfill.Yw.send(t, { Me: "arraybuffer", qw: function(i) { h ? (console.time("createImageBitmap"), createImageBitmap(new Blob([new Uint8Array(i)])).then(function(i) { console.timeEnd("createImageBitmap"), i = new polyfill.WQ(t, i, { imageBitmap: !0 }), o.qQ(n || t, i, a, e, l, r) })) : (i = new polyfill.WQ(t, i), o.qQ(n || t, i, a, e, l, r)) }, Aw: function(i) { console.log(i), s[i = n || t].status = polyfill.uc.ERROR, a(s[i], e) } }) }, i.prototype.qQ = function(i, t, e, o, n, r) { var l = this.Fs; if ("success" !== t.status) console.error("createObjectURL fail"), l[i].status = polyfill.uc.ERROR, e(l[i], o);
|
||
else if ("icon" === n ? (r.hv = o.hv, l[i] = DefaultIconInfo[i] || { ext: r, type: n, startX: 0, startY: 1024 * (o.hv || 0), height: 1024, width: 512, status: polyfill.uc.LOADED }, l[i].data = t) : l[i] = { ext: r, type: n, startX: 0, startY: 0, height: 0, width: 0, data: t, status: polyfill.uc.LOADED }, e(l[i], o), this.Mc[i]) { for (var a = 0, h = this.Mc[i]; a < h.length; a++) { var s = h[a];
|
||
s.cb(l[i], s.opts) }
|
||
delete this.Mc[i] } }, i.prototype.Sc = function(i) { var t, e = (e = (i = void 0 === i ? {} : i).img) && e.context ? (t = e.width || 0, e.height || 0) : (t = i.width || 0, i.height || 0); return [t, e] }, i }(polyfill.Event),
|
||
Counter = function(e) {
|
||
function i(i) { var t = e.call(this) || this; return t.OQ = i, t.zQ = 0, t } return polyfill.Ei(i, e), i.prototype.TQ = function() { this.zQ += 1, this.zQ === this.OQ && this.emit("count") }, i.prototype.clear = function() { this.zQ = 0 }, i }(polyfill.Event),
|
||
_a$2, LabelFormatMap$1 = (_a$2 = {}, _a$2[polyfill.NebulaLabelFormat.id] = polyfill.NebulaLabelFormat, _a$2[polyfill.MapboxLabelFormat.id] = polyfill.MapboxLabelFormat, _a$2.nebula = polyfill.NebulaLabelFormat, _a$2),
|
||
LabelWorker = function(e) {
|
||
function i(i) { var t = e.call(this) || this; return t.parent = i, t.MW = {}, t.hD = ["https://c-webapi.amap.com/style_icon/2.0/icon-normal-big.png", "https://c-webapi.amap.com/style_icon/2.0/icon-biz-big.png"], t.z_ = i.z_, t.R_ = i.R_, t } return polyfill.Ei(i, e), i.prototype.iW = function(n, r) { var i, l = this,
|
||
f = (void 0 === r && (r = {}), this.MW.ZL = r.ZL || polyfill.zoomRange[1], r.optimalZoom),
|
||
u = [],
|
||
d = (r.cb, this.parent.langForeign),
|
||
p = this; for (i in n) ! function(i) { var a, t, e, o, h, s;
|
||
n.hasOwnProperty(i) && (o = (i = n[i]).tile, t = (i = i.params).scale, i = i.tag, u.push(i), e = { vn: p.parent.vn }, t = (e = new LabelFormatMap$1[r.id](e)).Ns(o, { ZL: p.MW.ZL, zoom: o.zo.z, scale: t, lang: d, VQ: p.parent.QZ }), a = [
|
||
[o, e, t, i]
|
||
], t = Object.keys(e.Fs), i = Object.keys(e.Es), e = [o], o = Date.now(), h = [], (s = new Counter(2)).on("count", function() { l.parent.jQ.XQ(new LoadDynamicsTask(l.parent.vn, f, l.R_, l.z_, h, r, function(i) { l.emit("dynamicTextVerticeLoadedByTile", { data: i.data, id: r.id }) }), void 0, !1), l.parent.yY.setNeedUpdate(!0) }, null, !0), p.R_.vW(i, { tiles: e, optimalZoom: f, tags: u, stamp: o, cb: function(i) { for (var t = 0, e = a; t < e.length; t++) { var n = (o = e[t])[0],
|
||
r = o[1],
|
||
l = o[2],
|
||
o = o[3];
|
||
h.push({ tile: n, gW: r, SW: l, tag: o }) }
|
||
s.TQ() } }), p.wW(t) ? s.TQ() : p.z_.Vw(t, { type: "icon", cb: function() { s.TQ() } })) }(i) }, i.prototype.hW = function(i, t, e) { var o = this,
|
||
n = e.optimalZoom;
|
||
this.parent.jQ.XQ(new LoadDynamicsTask(this.parent.vn, n, this.R_, this.z_, i, e, function(i) { o.emit("dynamicTextVerticeLoadedByTile", { data: i.data, id: e.id }) }), void 0, !0), this.parent.yY.setNeedUpdate(!0) }, i.prototype.wW = function(i) { for (var t = this.hD, e = 0, o = 0, n = i = void 0 === i ? [] : i; o < n.length; o++) { var r = n[o]; - 1 !== t.indexOf(r) && e++ } return e === i.length }, i }(polyfill.Event),
|
||
LoadDynamicsTask = function() {
|
||
function i(i, t, e, o, n, r, l) { this.vn = i, this.ZL = t, this.R_ = e, this.z_ = o, this.data = n, this.params = r, this.cb = l, this.type = "LoadDynamicsTask", this.offset = 0, this.result = [] } return i.prototype.play = function(i) { for (var t = i, e = Date.now(); 0 < t && this.offset !== this.data.length;) { var o, n = [],
|
||
r = this.data[this.offset],
|
||
l = r.tile,
|
||
a = r.SW,
|
||
h = (r.gW, r.tag),
|
||
s = Object.keys(a).length,
|
||
f = {},
|
||
u = 0; if (0 === s) n.push({ data: l.zo });
|
||
else { for (var d in a) a.hasOwnProperty(d) && (o = a[d], o = new polyfill.eG({ R_: this.R_, z_: this.z_ }).Ns(o, { ZL: this.ZL, zoom: l.zo.z, from: "inner", center: l.localCoord.center }), f[d] = new polyfill.La(l.zo, o), ++u === s) && (d = this.hQ(l, this.ZL), n.push({ data: f, XE: d, tag: h }));
|
||
this.offset++, this.cb({ data: n }), t = i - (Date.now() - e) } } return this.offset, this.data.length, this.result }, Object.defineProperty(i.prototype, "status", { get: function() { return this.offset >= this.data.length ? polyfill.vY.finish : polyfill.vY.pause }, eb: !1, nb: !0 }), i.prototype.hQ = function(i, t) { if (i)
|
||
for (var e = this.SQ(i) || [], o = 0, n = e = new LabelFormatMap$1[i.type]({ vn: this.vn }).DQ(e, { zoom: t }); o < n.length; o++) { var r = n[o],
|
||
l = r.CO;
|
||
r.EG || (r.EG = {}); for (var a = 0, h = l; a < h.length; a++) { var s = h[a],
|
||
f = this.R_.mz(s);
|
||
r.EG[s] = f } }
|
||
return e }, i.prototype.SQ = function(i) { return i.data && i.data.roadName || i.road }, i }(),
|
||
InnerLabelsSourceWorker = function() {
|
||
function i(i) { this.parent = i, this.Mf = i.R_, this.ac = i.z_ } return i.prototype.loadData = function(n, r) { var l = this,
|
||
i = n.id === polyfill.n0.nebulaLabel ? polyfill.n0.nebula : n.id;
|
||
(i = this.parent.dQ(i)) && i.YE ? i.YE(function(i, t) { t.GW; var e = t.cb,
|
||
o = t.ZL,
|
||
t = t.optimalZoom;
|
||
polyfill.isEmpty(i) ? r && r({}) : l.parent.yw.iW(i, { ZL: o, optimalZoom: t, map: polyfill.map, id: n.id, cb: function(i) { r(i), e && e() } }) }, n) : r && r({}) }, i }(),
|
||
StaticSourceID, EnumTextureIndex, ImageStatus, noop = (function(i) { i.nebula = "nebula", i.nebulaLabel = "nebulaLabel" }(StaticSourceID = StaticSourceID || {}), function(i) { i[i.dynamic = 0] = "dynamic", i[i.icon = 1] = "icon" }(EnumTextureIndex = EnumTextureIndex || {}), function(i) { i.BLOB = "blob", i.TOLOAD = "toload", i.LOADING = "loading", i.LOADED = "loaded", i.UNLOADED = "unloaded", i.ERROR = "error", i.RELOADING = "reloading", i.UNCOMBINED = "uncombined", i.COMBINING = "combining", i.COMBINED = "combined" }(ImageStatus = ImageStatus || {}), function(i) {}),
|
||
XHR = { send: function(i, t) { void 0 === t && (t = {}); var e = new XMLHttpRequest,
|
||
n = void 0 === (o = t.qw) ? noop : o,
|
||
r = void 0 === (o = t.Aw) ? noop : o,
|
||
o = t.Me,
|
||
l = t.method,
|
||
t = t.content; return e.onreadystatechange = function() { if (4 === e.readyState && 200 === e.status) { var i = e.response; try { n(i) } catch (i) { r(i) } } else 404 === e.status && (e.abort(), r(Error("404"))) }, e.onerror = function(i) { e.abort(), r(i) }, e.open(l || "GET", i, !0), e.responseType = o || "json", e.send(t || void 0), e } };
|
||
|
||
function parserFunc(i) { var L = { TS: function() { this.PS = 0 } },
|
||
ji = (L.TS.prototype.create = function(i) { this.OS && this.PS === i || (this.OS = []), this.PS = i, this.FS = 0, this.BS = 0 }, L.TS.prototype.flush = function() { var i = this.FS - this.BS; if (0 !== i) { for (; i--;) this.ES.jS(this.OS[this.BS++]);
|
||
this.FS >= this.PS && (this.FS = 0), this.BS = this.FS } }, L.TS.prototype.NS = function() { this.flush(), this.ES = null }, L.TS.prototype.US = function(i) { this.NS(), this.ES = i }, L.TS.prototype.init = function(i) { i || (this.BS = 0, this.FS = 0) }, L.TS.prototype.WS = function(i, t) { var e = this.FS - i - 1; for (e < 0 && (e += this.PS); t--;) e >= this.PS && (e = 0), this.OS[this.FS++] = this.OS[e++], this.FS >= this.PS && this.flush() }, L.TS.prototype.GS = function(i) { this.OS[this.FS++] = i, this.FS >= this.PS && this.flush() }, L.TS.prototype.HS = function(i) { return (i = this.FS - i - 1) < 0 && (i += this.PS), this.OS[i] }, L.VS = function() {}, L.VS.prototype.US = function(i) { this.ES = i }, L.VS.prototype.NS = function() { this.ES = null }, L.VS.prototype.init = function() { var i = 5; for (this.ZS = 0, this.YS = -1; i--;) this.ZS = this.ZS << 8 | this.ES.JS() }, L.VS.prototype.XS = function(i) { for (var t, e = 0, o = i; o--;) this.YS >>>= 1, t = this.ZS - this.YS >>> 31, this.ZS -= this.YS & t - 1, e = e << 1 | 1 - t, 0 == (4278190080 & this.YS) && (this.ZS = this.ZS << 8 | this.ES.JS(), this.YS <<= 8); return e }, L.VS.prototype.qS = function(i, t) { var e = i[t],
|
||
o = (this.YS >>> 11) * e; return (2147483648 ^ this.ZS) < (2147483648 ^ o) ? (this.YS = o, i[t] += 2048 - e >>> 5, 0 == (4278190080 & this.YS) && (this.ZS = this.ZS << 8 | this.ES.JS(), this.YS <<= 8), 0) : (this.YS -= o, this.ZS -= o, i[t] -= e >>> 5, 0 == (4278190080 & this.YS) && (this.ZS = this.ZS << 8 | this.ES.JS(), this.YS <<= 8), 1) }, L.QS = function(i, t) { for (; t--;) i[t] = 1024 }, L.KS = function(i) { this.tR = [], this.iR = i }, L.KS.prototype.init = function() { L.QS(this.tR, 1 << this.iR) }, L.KS.prototype.decode = function(i) { for (var t = 1, e = this.iR; e--;) t = t << 1 | i.qS(this.tR, t); return t - (1 << this.iR) }, L.KS.prototype.eR = function(i) { for (var t, e = 1, o = 0, n = 0; n < this.iR; ++n) e = e << 1 | (t = i.qS(this.tR, e)), o |= t << n; return o }, L.nR = function(i, t, e, o) { for (var n, r = 1, l = 0, a = 0; a < o; ++a) r = r << 1 | (n = e.qS(i, t + r)), l |= n << a; return l }, L.oR = function() { this.rR = [], this.aR = [], this.sR = [], this.hR = new L.KS(8), this.lR = 0 }, L.oR.prototype.create = function(i) { for (; this.lR < i; ++this.lR) this.aR[this.lR] = new L.KS(3), this.sR[this.lR] = new L.KS(3) }, L.oR.prototype.init = function() { var i = this.lR; for (L.QS(this.rR, 2); i--;) this.aR[i].init(), this.sR[i].init();
|
||
this.hR.init() }, L.oR.prototype.decode = function(i, t) { return 0 === i.qS(this.rR, 0) ? this.aR[t].decode(i) : 0 === i.qS(this.rR, 1) ? 8 + this.sR[t].decode(i) : 16 + this.hR.decode(i) }, L.fR = function() { this.uR = [] }, L.fR.prototype.init = function() { L.QS(this.uR, 768) }, L.fR.prototype.cR = function(i) { for (var t = 1;
|
||
(t = t << 1 | i.qS(this.uR, t)) < 256;); return 255 & t }, L.fR.prototype.dR = function(i, t) { var e, o, n = 1;
|
||
do { if (e = t >> 7 & 1, t <<= 1, n = n << 1 | (o = i.qS(this.uR, (1 + e << 8) + n)), e !== o) { for (; n < 256;) n = n << 1 | i.qS(this.uR, n); break } } while (n < 256); return 255 & n }, L.pR = function() {}, L.pR.prototype.create = function(i, t) { var e; if (!this.vR || this.mR !== t || this.yR !== i)
|
||
for (this.yR = i, this.xR = (1 << i) - 1, this.mR = t, this.vR = [], e = 1 << this.mR + this.yR; e--;) this.vR[e] = new L.fR }, L.pR.prototype.init = function() { for (var i = 1 << this.mR + this.yR; i--;) this.vR[i].init() }, L.pR.prototype.bR = function(i, t) { return this.vR[((i & this.xR) << this.mR) + ((255 & t) >>> 8 - this.mR)] }, L.gR = function() { this.wR = new L.TS, this._R = new L.VS, this.kR = [], this.MR = [], this.SR = [], this.RR = [], this.zR = [], this.CR = [], this.AR = [], this.IR = [], this.$R = new L.KS(4), this.LR = new L.oR, this.DR = new L.oR, this.TR = new L.pR, this.PR = -1, this.OR = -1, this.AR[0] = new L.KS(6), this.AR[1] = new L.KS(6), this.AR[2] = new L.KS(6), this.AR[3] = new L.KS(6) }, L.gR.prototype.FR = function(i) { return !(i < 0 || (this.PR !== i && (this.PR = i, this.OR = Math.max(this.PR, 1), this.wR.create(Math.max(this.OR, 4096))), 0)) }, L.gR.prototype.BR = function(i, t, e) { var o = 1 << e; return !(8 < i || 4 < t || 4 < e || (this.TR.create(t, i), this.LR.create(o), this.DR.create(o), this.jR = o - 1, 0)) }, L.gR.prototype.init = function() { var i = 4; for (this.wR.init(!1), L.QS(this.kR, 192), L.QS(this.CR, 192), L.QS(this.MR, 12), L.QS(this.SR, 12), L.QS(this.RR, 12), L.QS(this.zR, 12), L.QS(this.IR, 114), this.TR.init(); i--;) this.AR[i].init();
|
||
this.LR.init(), this.DR.init(), this.$R.init(), this._R.init() }, L.gR.prototype.decode = function(i, t, e) { var o, n, r, l, a = 0,
|
||
h = 0,
|
||
s = 0,
|
||
f = 0,
|
||
u = 0,
|
||
d = 0,
|
||
p = 0; for (this._R.US(i), this.wR.US(t), this.init(); e < 0 || d < e;)
|
||
if (l = d & this.jR, 0 === this._R.qS(this.kR, (a << 4) + l)) r = this.TR.bR(d++, p), p = 7 <= a ? r.dR(this._R, this.wR.HS(h)) : r.cR(this._R), this.wR.GS(p), a = a < 4 ? 0 : a - (a < 10 ? 3 : 6);
|
||
else { if (1 === this._R.qS(this.MR, a))(o = 0) === this._R.qS(this.SR, a) ? 0 === this._R.qS(this.CR, (a << 4) + l) && (a = a < 7 ? 9 : 11, o = 1) : (0 === this._R.qS(this.RR, a) ? n = s : (0 === this._R.qS(this.zR, a) ? n = f : (n = u, u = f), f = s), s = h, h = n), 0 === o && (o = 2 + this.DR.decode(this._R, l), a = a < 7 ? 8 : 11);
|
||
else if (u = f, f = s, s = h, o = 2 + this.LR.decode(this._R, l), a = a < 7 ? 7 : 10, 4 <= (r = this.AR[o <= 5 ? o - 2 : 3].decode(this._R))) { if (h = (2 | 1 & r) << (l = (r >> 1) - 1), r < 14) h += L.nR(this.IR, h - r - 1, this._R, l);
|
||
else if ((h = (h += this._R.XS(l - 4) << 4) + this.$R.eR(this._R)) < 0) { if (-1 === h) break; return !1 } } else h = r; if (d <= h || h >= this.OR) return !1;
|
||
this.wR.WS(h, o), d += o, p = this.wR.HS(0) }
|
||
return this.wR.flush(), this.wR.NS(), this._R.NS(), !0 }, L.gR.prototype.ER = function(i) { var t; return !(i.size < 5 || (t = i.JS(), !this.BR(t % 9, (t = ~~(t / 9)) % 5, ~~(t / 5)))) && (t = i.JS(), t = (t = (t |= i.JS() << 8) | i.JS() << 16) + 16777216 * i.JS(), this.FR(t)) }, L.NR = function(i, t) { var e, o = new L.gR; if (!o.ER(i)) throw new Error("Incorrect stream properties"); if (e = i.JS(), e = ((e |= i.JS() << 8) | i.JS() << 16) + 16777216 * i.JS(), i.JS(), i.JS(), i.JS(), i.JS(), o.decode(i, t, e)) return !0; throw new Error("Error in data stream") }, 1e-9);
|
||
|
||
function Ji(i, t, e) { for (var o, h, n = i.subarray(t, e), r = 0, l = "", a = 0, r = 0; r < n.length;)(h = n[r]) >>> 7 == 0 ? ("0" !== (o = String.fromCharCode(n[r])).charCodeAt(0).toString(16) && (l += o), r += 1) : 252 == (252 & h) ? (a = (3 & n[r]) << 30, a = (a = (a = (a = (a |= (63 & n[r + 1]) << 24) | (63 & n[r + 2]) << 18) | (63 & n[r + 3]) << 12) | (63 & n[r + 4]) << 6) | 63 & n[r + 5], l += String.fromCharCode(a), r += 6) : 248 == (248 & h) ? (a = (7 & n[r]) << 24, a = (a = (a = (a |= (63 & n[r + 1]) << 18) | (63 & n[r + 2]) << 12) | (63 & n[r + 3]) << 6) | 63 & n[r + 4], l += String.fromCharCode(a), r += 5) : 240 == (240 & h) ? (a = (15 & n[r]) << 18, a = (a = (a |= (63 & n[r + 1]) << 12) | (63 & n[r + 2]) << 6) | 63 & n[r + 3], l += String.fromCharCode(a), r += 4) : 224 == (224 & h) ? (a = (31 & n[r]) << 12, a = (a |= (63 & n[r + 1]) << 6) | 63 & n[r + 2], l += String.fromCharCode(a), r += 3) : 192 == (192 & h) ? (a = (63 & n[r]) << 6, a |= 63 & n[r + 1], l += String.fromCharCode(a), r += 2) : ("0" !== (o = String.fromCharCode(n[r])).charCodeAt(0).toString(16) && (l += o), r += 1); return l.trim() } var o = new RegExp("^[+\\-]?[0-1]*[.]?[0-1]*$", "gi");
|
||
|
||
function Ni(i, t) { i = i.toString(), t = t.toString(), i = new Array(32 - i.length + 1).join("0") + i, t = new Array(32 - t.length + 1).join("0") + t; var e = o; return e.lastIndex = 0, (t = (t + i).toString().match(e)) ? (i = -1 === t[i = 0].indexOf(".") ? parseInt(t, 2) : i).toString(36).toUpperCase() : "error" }
|
||
i.getUnifyJson = function(i) { var t = []; if (i instanceof ArrayBuffer) { var e = new DataView(i),
|
||
o = 0,
|
||
n = e.getInt16(o += 4, !1);
|
||
o += 2; try { for (; 0 < n;) { o += 4; for (var r = e.getUint8(o), l = (o += 1, new ArrayBuffer(r)), a = new Uint8Array(l), h = 0; h < r; h++) a[h] = e.getUint8(o), o += 1; var s = Ji(a, 0, r),
|
||
f = (o += 2, e.getInt8(o)),
|
||
u = (o += 1, 0 !== f && ((M = {}).status = f, M.building = {}, M.floor = {}, M.id = s, t.push(M)), e.getInt32(o, !1)),
|
||
d = (o += 4, e.getInt32(o, !0)),
|
||
p = (o += 4, u - d); if (0 !== d) { for (var c = 2078870821, y = 8 * Math.ceil(d / 8), x = d % 8, v = new ArrayBuffer(y), g = new Int32Array(v), w = 0; 8 <= d;) { var b = e.getInt32(o, !0),
|
||
R = e.getInt32(o + 4, !0),
|
||
m = b ^ c,
|
||
S = 292664 ^ R;
|
||
g[w] = m, g[w + 1] = S, w += 2, o += 8, d -= 8 }
|
||
0 !== d && (b = e.getInt32(o, !0), R = e.getInt32(o + 4, !0), m = b ^ c, S = 292664 ^ R, g[w] = m, g[w + 1] = S, o += d); for (var k = new Uint8Array(v), _ = k.length, I = _ - 8 + x, A = new Uint8Array(I), h = 0; h < I; h++) A[h] = k[h]; for (h = 0; h < x; h++) A[I - x + h] = k[_ - 1 - h]; for (var M, E = { data: [], offset: 0, jS: function(i) { this.data[this.offset++] = i } }, C = (L.NR({ data: A, offset: 0, JS: function() { return this.data[this.offset++] } }, E), E.data), I = C.length, F = new ArrayBuffer(I), T = new Int8Array(F), h = 0; h < I; h++) T[h] = C[h];
|
||
(M = function(i) { for (var t = {}, e = {}, o = new Uint8Array(i), n = new DataView(i), r = 0, B = n.getInt32(r = r + 4 + 4, !0), i = n.getInt32(r = r + 4 + 4, !0), i = Ni(i = n.getUint32(r = r + (4 + i) + 4, !0).toString(2), n.getUint32(r + 4, !0).toString(2)), l = Ji(o, r += 8, r + 64), a = Ji(o, r += 64, r + 64), h = n.getInt8(r += 64), P = Ji(o, r += 1, r + 8), W = n.getInt16(r += 8, !0), O = n.getInt16(r + 2, !0), s = n.getFloat32(r += 4, !0), f = n.getFloat32(r + 4, !0), U = n.getFloat32(r += 8, !0), j = n.getFloat32(r + 4, !0), J = n.getFloat32(r += 8, !0), N = n.getFloat32(r + 4, !0), u = n.getInt32(r += 8, !0), d = n.getInt32(r += 4, !0), p = n.getInt32(r += 4, !0), c = (r += 4, []), y = 0; y < u; y++) c.push(n.getInt32(r, !0)), r += 4; for (var x = [], y = 0; y < p; y++) x.push(n.getInt32(r, !0)), r += 4; for (var v = [], y = 0; y < u; y++) { var V = Ji(o, r, r + 48);
|
||
v.push(V), r += 48 } for (var g = [], y = 0; y < u; y++) { var K = Ji(o, r, r + 8);
|
||
g.push(K), r += 8 } for (var w = [], y = 0; y < d; y++) { var b = n.getInt32(r, !0) * ji + f,
|
||
R = n.getInt32(r + 4, !0) * ji + s;
|
||
w.push([b, R]), r += 8 }
|
||
i = { type: "Feature", geometry: { type: "Polygon", coordinates: [w] }, properties: { pid: i, name_cn: l, name_en: a, default_floor: h, buildingtype: P, building_poi_style: [W, O], centerPoint: [f, s], left_bottom_Point: [U, j], width: J, height: N, numberofFloor: u, numberofGeoPoints: d, park_floor_count: p, floor_indexs: c, park_floors: x, floor_names: v, floor_nonas: g } }; for (var m = 0; m < B; m++) { for (var H = Ji(o, r, r + 8), S = (r += 8, n.getInt8(r)), G = (r += 1, e[S] = { floor: {}, shops: [], pubs: [], cons: [] }, n.getInt16(r, !0)), Z = n.getInt16(r + 2, !0), $ = (r += 4, n.getInt16(r, !0)), q = n.getInt16(r + 2, !0), X = (r += 4, n.getInt16(r, !0)), Y = n.getInt16(r + 2, !0), k = (r += 4, n.getInt32(r, !0)), _ = (r += 4, n.getInt32(r, !0)), I = (r += 4, n.getInt32(r, !0)), A = (r += 4, n.getInt32(r, !0)), M = (r += 4, []), E = 0; E < A; E++) { for (var Q = n.getInt32(r, !0), C = (r += 4, []), F = 0; F < Q; F++) b = n.getInt32(r, !0) * ji + f, R = n.getInt32(r + 4, !0) * ji + s, C.push([b, R]), r += 8;
|
||
M.push(C) } for (var T = "Polygon", L = M[0], T = (1 < A && (T = "MultiPolygon", L = M), { type: "Feature", geometry: { type: T, coordinates: [L] }, properties: { namecode: H, index: S, floor_region_type: [G, Z], unhighlighted_floor_line_style: [$, q], highlighted_floor_line_style: [X, Y], numberofShopCount: k, numberofPubCount: _, numberofConCount: I, floor_area_count: A } }), ii = (e[S].floor = T, []), ti = 0; ti < k; ti++) { var ei = Ji(o, r, r + 128);
|
||
r += 128; for (var oi = Ni(n.getUint32(r, !0).toString(2), n.getUint32(r + 4, !0).toString(2)), ni = Ji(o, r += 8, r + 24), ri = Ji(o, r += 24, r + 12), li = (r += 12, n.getInt32(r, !0)), ai = (r += 4, n.getFloat32(r, !0)), hi = (r += 4, n.getInt8(r)), si = (r += 1, n.getInt16(r, !0)), fi = n.getInt16(r + 2, !0), ui = (r += 4, n.getInt16(r, !0)), di = n.getInt16(r + 2, !0), pi = (r += 4, n.getInt32(r, !0) * ji + f), ci = n.getInt32(r + 4, !0) * ji + s, yi = (r += 8, n.getInt32(r, !0)), xi = (r += 4, []), E = 0; E < yi; E++) b = n.getInt32(r, !0) * ji + f, R = n.getInt32(r + 4, !0) * ji + s, xi.push([b, R]), r += 8;
|
||
ii.push({ type: "Feature", geometry: { type: "Polygon", coordinates: [xi] }, properties: { name: ei, pid: oi, cpid: ni, logo: ri, area: li, rank: ai, height: hi, poitype: [si, fi], regiontype: [ui, di], font_anthor_point: [pi, ci], shop_point_number: yi } }) }
|
||
e[S].shops = ii; for (var vi = [], gi = 0; gi < _; gi++) { var wi = Ji(o, r, r + 24);
|
||
r += 24; var bi = Ni(n.getUint32(r, !0).toString(2), n.getUint32(r + 4, !0).toString(2)),
|
||
Ri = Ji(o, r += 8, r + 48),
|
||
mi = (r += 48, n.getFloat32(r, !0)),
|
||
Si = (r += 4, n.getInt16(r, !0)),
|
||
ki = n.getInt16(r + 2, !0),
|
||
b = (r += 4, n.getInt32(r, !0) * ji + f),
|
||
R = n.getInt32(r + 4, !0) * ji + s;
|
||
r += 8, vi.push({ type: "Feature", geometry: { type: "Point", coordinates: [b, R] }, properties: { cpid: wi, pid: bi, name: Ri, rank: mi, poitype: [Si, ki] } }) }
|
||
e[S].pubs = vi; for (var _i = [], Ii = 0; Ii < I; Ii++) { var Ai = Ji(o, r, r + 24);
|
||
r += 24; var Mi = Ni(n.getUint32(r, !0).toString(2), n.getUint32(r + 4, !0).toString(2)),
|
||
Ei = Ji(o, r += 8, r + 48),
|
||
Ci = (r += 48, n.getFloat32(r, !0)),
|
||
Fi = (r += 4, n.getInt16(r, !0)),
|
||
Ti = n.getInt16(r + 2, !0),
|
||
b = (r += 4, n.getInt32(r, !0) * ji + f),
|
||
R = n.getInt32(r + 4, !0) * ji + s;
|
||
r += 8, _i.push({ type: "Feature", geometry: { type: "Point", coordinates: [b, R] }, properties: { cpid: Ai, pid: Mi, name: Ei, rank: Ci, poitype: [Fi, Ti] } }) }
|
||
e[S].cons = _i } for (var l = n.getInt32(r += 4, !0), Li = n.getInt32(r += 4 + l, !0), zi = (r += 4, []), y = 0; y < Li; y++) b = n.getInt32(r, !0) * ji + f, R = n.getInt32(r + 4, !0) * ji + s, zi.push([b, R]), r += 8;
|
||
i.properties.outside_outline = zi; var z, D = {}; for (z in e)
|
||
if (e.hasOwnProperty(z)) { for (D.floor = e[z].floor, F = 0; F < e[z].shops.length; F++) { var Di = n.getInt16(r, !0),
|
||
Bi = (r += 2, n.getInt16(r, !0));
|
||
r += 2, e[z].shops[F].properties.zoom_min = Di, e[z].shops[F].properties.zoom_max = Bi } for (D.shops = e[z].shops, F = 0; F < e[z].pubs.length; F++) { var Pi = n.getInt16(r, !0),
|
||
Wi = (r += 2, n.getInt16(r, !0));
|
||
r += 2, e[z].pubs[F].properties.zoom_min = Pi, e[z].pubs[F].properties.zoom_max = Wi } for (D.pubs = e[z].pubs, F = 0; F < e[z].cons.length; F++) { var Oi = n.getInt16(r, !0),
|
||
Ui = (r += 2, n.getInt16(r, !0));
|
||
r += 2, e[z].cons[F].properties.zoom_min = Oi, e[z].cons[F].properties.zoom_max = Ui }
|
||
D.cons = e[z].cons, t.floor = D }
|
||
return a = n.getInt32(r += 4, !0), h = n.getInt8(r += 4 + a), r += 1, i.properties.UR = h, t.building = i, t }(F)).status = f, M.id = s, t.push(M) }
|
||
o += p, --n } } catch (i) {} } else t.push(M = { status: 3, building: {}, floor: {}, id: "" }); return t } } var obj = { WR: parserFunc },
|
||
IndoorMapBinDataParser = (parserFunc(obj), obj),
|
||
OverlayWorker = function() {
|
||
function i(i) { this.parent = i } return i.prototype.setPathWebgl = function(i, t) { try { for (var e = new polyfill.K_, o = new polyfill.J_, n = new polyfill.oE, r = new polyfill.oE, l = i.data, a = this.EW(l[0][0][0]), h = 0, s = l; h < s.length; h++) { for (var f = s[h], u = a.center, d = [], p = [], c = f[0], y = [], x = [], v = [], g = 0, w = c; g < w.length; g++) { var b = w[g],
|
||
R = polyfill.ProjectionManager.getProjection("EPSG:3857").project(b[0], b[1]);
|
||
d.push(R[0] - u[0], R[1] - u[1]), p.push(b) } for (var m = 1, S = f.length; m < S; m++) { for (var k = f[m], _ = [], I = [], A = 0, M = k; A < M.length; A++) b = M[A], polyfill.Bs(b) ? (_.push(b.pos[0] - u[0], b.pos[1] - u[1]), I.push(b.toJSON())) : (R = polyfill.ProjectionManager.getProjection("EPSG:3857").project(b[0], b[1]), _.push(R[0] - u[0], R[1] - u[1]), I.push(b));
|
||
y.push(_), x.push(I) } for (var E = [], m = 0, S = d.length; m < S; m += 2) E.push(polyfill.xd(d[m], d[m + 1]));
|
||
polyfill.equals(E[0], E[E.length - 1]) || E.push(polyfill.Ex(E[0])); for (var C = d.length, m = 0; m < y.length; m++) v.push(C / 2), C += y[m].length, polyfill.Util.Ig(d, y[m]); for (var F = e.Nx(d, v), T = (n.add(F), o.Nx(E, { lineJoin: "miter" }).Iw), m = 0; m < y.length; m++) { for (var L = [], z = 0, S = (_ = y[m]).length; z < S; z += 2) L.push(polyfill.xd(_[z], _[z + 1]));
|
||
L.push(polyfill.xd(_[0], _[1])), T += o.Nx(L, { lineJoin: "miter" }).Iw }
|
||
r.add(T) }
|
||
t(null, { $c: o, Dc: e, Sx: a, Oc: n, Uc: r }) } catch (i) { t(i.message) } }, i.prototype.AW = function(i, t) { try { var e = {},
|
||
o = IndoorMapBinDataParser.getUnifyJson(i); if (!o) return !1; for (var n, r, l, a, h, s, f, u = 0; u < o.length; u++) 0 === o[u].status && (r = (n = o[u]).floor, l = n.building, a = n.status, h = n.id, s = r.floor.properties.index, e[h] || (e[h] = {}), e[h].building = l, e[h].data || (e[h].data = {}), f = { floor: r, status: a, id: h, building: l }, e[h].data[s] = f);
|
||
t(null, e) } catch (i) { t(i.message, null) } }, i.prototype.EW = function(i) { if (i) return i = polyfill.Bs(i) ? polyfill.ProjectionManager.getProjection("EPSG:3857").project(i.KL, i.kT) : polyfill.ProjectionManager.getProjection("EPSG:3857").project(i[0], i[1]), polyfill.lcs.getLocalByCoord(i) }, i }(),
|
||
wasm, heap = new Array(32).fill(void 0);
|
||
|
||
function getObject(i) { return heap[i] }
|
||
heap.push(void 0, null, !0, !1); var heap_next = heap.length;
|
||
|
||
function dropObject(i) { i < 36 || (heap[i] = heap_next, heap_next = i) }
|
||
|
||
function takeObject(i) { getObject(i), dropObject(i) } var cachedTextDecoder = self.TextDecoder ? new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }) : {},
|
||
cachegetUint8Memory0 = (cachedTextDecoder.decode && cachedTextDecoder.decode(), null);
|
||
|
||
function getUint8Memory0() { return cachegetUint8Memory0 = null !== cachegetUint8Memory0 && cachegetUint8Memory0.buffer === wasm.memory.buffer ? cachegetUint8Memory0 : new Uint8Array(wasm.memory.buffer) }
|
||
|
||
function getStringFromWasm0(i, t) { return cachedTextDecoder.decode(getUint8Memory0().subarray(i, i + t)) } var WASM_VECTOR_LEN = 0,
|
||
cachedTextEncoder = self.TextEncoder ? new TextEncoder : {},
|
||
encodeString = "function" == typeof cachedTextEncoder.encodeInto ? function(i, t) { return cachedTextEncoder.encodeInto(i, t) } : function(i, t) { var e = cachedTextEncoder.encode(i); return t.set(e), { read: i.length, jW: e.length } };
|
||
|
||
function passStringToWasm0(i, t, e) { var o; if (void 0 === e) return o = t((n = cachedTextEncoder.encode(i)).length), getUint8Memory0().subarray(o, o + n.length).set(n), WASM_VECTOR_LEN = n.length, o; for (var n, r = i.length, l = t(r), a = getUint8Memory0(), h = 0; h < r; h++) { var s = i.charCodeAt(h); if (127 < s) break;
|
||
a[l + h] = s } return h !== r && (l = e(l, r, r = h + 3 * (i = 0 !== h ? i.slice(h) : i).length), n = getUint8Memory0().subarray(l + h, l + r), h += encodeString(i, n).jW), WASM_VECTOR_LEN = h, l } var cachegetInt32Memory0 = null;
|
||
|
||
function getInt32Memory0() { return cachegetInt32Memory0 = null !== cachegetInt32Memory0 && cachegetInt32Memory0.buffer === wasm.memory.buffer ? cachegetInt32Memory0 : new Int32Array(wasm.memory.buffer) }
|
||
|
||
function addHeapObject(i) { heap_next === heap.length && heap.push(heap.length + 1); var t = heap_next; return heap_next = heap[t], heap[t] = i, t } var RSAPublicKeyPair = function() {
|
||
function e() { var i = wasm.rsapublickeypair_new(); return e.XW(i) } return e.XW = function(i) { var t = Object.create(e.prototype); return t.UW = i, t }, e.prototype.VW = function() { var i = this.UW;
|
||
this.UW = 0, wasm.__wbg_rsapublickeypair_free(i) }, e.prototype.init = function() { wasm.rsapublickeypair_init(this.UW) }, e.prototype.encode = function(i) { try { var t = passStringToWasm0(i, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc),
|
||
e = WASM_VECTOR_LEN; return wasm.rsapublickeypair_encode(8, this.UW, t, e), getStringFromWasm0(o = getInt32Memory0()[2], n = getInt32Memory0()[3]) } finally { var o = getInt32Memory0()[2],
|
||
n = getInt32Memory0()[3];
|
||
wasm.__wbindgen_free(o, n) } }, e }();
|
||
|
||
function loadSync(i, t) { var e = new WebAssembly.Module(i); return { module: i, instance: new WebAssembly.Instance(e, t) } }
|
||
|
||
function initSync(i) { var t = { wbg: {} };
|
||
t.wbg.__wbg_new_59cb74e423758ede = function() { return addHeapObject(new Error) }, t.wbg.__wbg_stack_558ba5917b466edd = function(i, t) { var t = passStringToWasm0(getObject(t).stack, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc),
|
||
e = WASM_VECTOR_LEN;
|
||
getInt32Memory0()[i / 4 + 1] = e, getInt32Memory0()[i / 4 + 0] = t }, t.wbg.__wbg_error_4bb6c2a97407129a = function(i, t) { try { console.error(getStringFromWasm0(i, t)) } finally { wasm.__wbindgen_free(i, t) } }, t.wbg.__wbindgen_object_drop_ref = function(i) { takeObject(i) }, t.wbg.__wbindgen_throw = function(i, t) { throw new Error(getStringFromWasm0(i, t)) }, i = loadSync(i, t).instance, wasm = i.exports } var RSAWorker = function() {
|
||
function i(i, t) { this.parent = i } return i.prototype.transform = function(i) { if (this.instance) return this.instance.encode(i) }, i.prototype.dE = function(i) { initSync(base64ToBuffer(data)), this.instance = new RSAPublicKeyPair, this.instance.init(), i && i(null) }, i }(),
|
||
env;
|
||
|
||
function base64ToBuffer(i) { for (var t = atob(i), e = new Uint8Array(t.length), o = 0, n = t.length; o < n; o++) e[o] = t.charCodeAt(o); return e.buffer } var env = polyfill.Support.DW ? { movingDraw: sharedChunk.movingDraw, db: sharedChunk.db, nebulaVersion: sharedChunk.nebulaVersion, host: sharedChunk.host } : { movingDraw: window.movingDraw },
|
||
AMapWorker = function(n) {
|
||
function i(i, t, e) { var o = n.call(this) || this,
|
||
t = (o.key = t, o.GW = e, o.lQ = {}, o.Zw = !1, o._id = "-1", o.protocol = "https", o.Yw = XHR, o.jQ = new polyfill.MY, o.QZ = "", o.$w = [], o.Uh = new polyfill.Bh(i, o), o.self = i, o.z_ = new ImageManagerWorker); return o.R_ = new polyfill.jb({ parent: o, z_: t }), o.IW = new polyfill.xW(o, XHR), o.Ww = new NebulaSourceWorker(o), o.NQ = new InnerLabelsSourceWorker(o), o.lQ[o.Ww.id] = o.Ww, o.yw = new LabelWorker(o), o.BW = new OverlayWorker(o), polyfill.Support.wasm && (o.PW = new RSAWorker(o)), o.Fb(), o.yY = new polyfill.wY({ render: function() { o.jQ.exec(10) }, check: function() { return o.jQ.xY() } }), o } return polyfill.Ei(i, n), i.prototype.initCryptWorker = function(i, t, e) { e() }, i.prototype.setId = function(i, t, e) { this._id = t, e() }, i.prototype.loadNebulaSourceTile = function(i, t, e) { var o = this,
|
||
n = t.url,
|
||
r = t.ya,
|
||
l = t.zoom,
|
||
a = t.projectionId,
|
||
h = t.optimalZoom,
|
||
s = t.Ca,
|
||
f = t.mS,
|
||
u = t.viewMode,
|
||
d = t.showBuildingBlock,
|
||
p = t.ZL,
|
||
c = t.hH,
|
||
t = t.kZ; return this.Ww.bw(n, r, l, h, a, s, f, u, d, p, c, function(i, t) { o.Zw ? o.$w.push({ done: e, type: "NebulaSourceTile", data: t }) : e(i, t) }, t) }, i.prototype.decodeNebulaSourceTile = function(i, t, e) { var o = t.url,
|
||
n = (t.ya, t.zoom),
|
||
r = t.projectionId,
|
||
l = t.optimalZoom,
|
||
a = (t.Ca, t.mS),
|
||
h = t.viewMode,
|
||
s = t.showBuildingBlock,
|
||
f = t.ZL,
|
||
t = (t.hH, t.buffer); return this.Ww.pQ(t, r, n, h, s, a, l, f, e, o) }, i.prototype.loadNebulaSourceTileSdf = function(i, t, e) { var o = this,
|
||
n = t.url,
|
||
r = t.ya,
|
||
l = (t.zoom, t.projectionId),
|
||
a = (t.optimalZoom, t.Ca, t.mS, t.viewMode, t.showBuildingBlock, t.mH),
|
||
t = t.ZL; return this.Ww.bW(n, r, l, t, a, function(i, t) { o.Zw ? o.$w.push({ done: e, type: "NebulaSourceTileSdf", data: t }) : e(i, t) }) }, i.prototype.decodeNebulaSourceTileSdf = function(i, t, e) { var o = this,
|
||
n = t.url,
|
||
r = t.ya,
|
||
l = (t.zoom, t.projectionId),
|
||
a = (t.optimalZoom, t.Ca, t.mS, t.viewMode, t.showBuildingBlock, t.mH),
|
||
h = t.ZL,
|
||
t = t.buffer,
|
||
n = -1 !== n.indexOf("/oversea"),
|
||
s = new polyfill.vH; return this.Ww.HQ(t, n, l, r, s, a, h, function(i, t) { o.Zw ? o.$w.push({ done: e, type: "NebulaSourceTileSdf", data: t }) : e(i, t) }), { cancel: s.cancel } }, i.prototype.loadNebulaSourceTileOversea = function(i, t, e) { var o = this,
|
||
n = t.url,
|
||
r = t.ya,
|
||
l = t.zoom,
|
||
a = t.projectionId,
|
||
h = t.optimalZoom,
|
||
s = t.Ca,
|
||
f = t.mS,
|
||
u = t.viewMode,
|
||
d = t.showBuildingBlock,
|
||
p = t.ZL,
|
||
c = t.hH,
|
||
t = t.kZ; return this.Ww.hii(n, r, l, h, a, s, f, u, d, p, c, function(i, t) { o.Zw ? o.$w.push({ done: e, type: "NebulaSourceTile", data: t }) : e(i, t) }, t) }, i.prototype.decodeNebulaSourceTileOversea = function(i, t, e) { var o = t.url,
|
||
n = (t.ya, t.zoom),
|
||
r = t.projectionId,
|
||
l = t.optimalZoom,
|
||
a = (t.Ca, t.mS),
|
||
h = t.viewMode,
|
||
s = t.showBuildingBlock,
|
||
f = t.ZL,
|
||
t = (t.hH, t.buffer); return this.Ww.lii(t, r, n, h, s, a, l, f, e, o, !1) }, i.prototype.loadNebulaSourceTileSdfOversea = function(i, t, e) { var o = this,
|
||
n = t.url,
|
||
r = t.ya,
|
||
l = (t.zoom, t.projectionId),
|
||
a = (t.optimalZoom, t.Ca, t.mS, t.viewMode, t.showBuildingBlock, t.mH),
|
||
t = t.ZL; return this.Ww.sii(n, r, l, t, a, function(i, t) { o.Zw ? o.$w.push({ done: e, type: "NebulaSourceTileSdf", data: t }) : e(i, t) }) }, i.prototype.decodeNebulaSourceTileSdfOversea = function(i, t, e) { var o = this,
|
||
n = t.url,
|
||
r = t.ya,
|
||
l = (t.zoom, t.projectionId),
|
||
a = (t.optimalZoom, t.Ca, t.mS, t.viewMode, t.showBuildingBlock, t.mH),
|
||
h = t.ZL,
|
||
t = t.buffer,
|
||
n = -1 !== n.indexOf("/oversea"),
|
||
s = new polyfill.vH; return this.Ww.HQ(t, n, l, r, s, a, h, function(i, t) { o.Zw ? o.$w.push({ done: e, type: "NebulaSourceTileSdf", data: t }) : e(i, t) }), { cancel: s.cancel } }, i.prototype.loadDistrictSourceTile = function(i, t, e) { var o = t.url,
|
||
n = t.tileCoord,
|
||
r = t.projectionId,
|
||
l = t.tileSize; return t.styles, this._getDistrictSourceWorker(), this.kW.bw(o, n, r, l, e) }, i.prototype.loadMapboxVTSourceTile = function(i, t, e) { var o = this,
|
||
n = t.url,
|
||
r = t.tileCoord,
|
||
l = t.projectionId,
|
||
a = t.tileSize,
|
||
t = t.styles; return this._getMapboxVTSourceWorker(), this.QJ.bw(n, r, l, a, t, function(i, t) { o.Zw ? o.$w.push({ done: e, type: "loadMapboxVTSourceTile", data: t }) : e(i, t) }) }, i.prototype.reBufferMapboxVTSource = function(i, t, e) { var o = t.MX,
|
||
t = t.styles; return this._getMapboxVTSourceWorker(), this.QJ.mX(o, t, e) }, i.prototype.loadMapboxSourceTile = function(i, t, e) { var o = t.url,
|
||
n = t.tileCoord,
|
||
r = t.projectionId,
|
||
l = t.tileSize,
|
||
a = t.styles,
|
||
t = t.adcode; return this._getMapboxSourceWorker(), this.vQ.bw(o, n, r, l, a, t, e) }, i.prototype.updateMapStyle = function(i, t, e) { polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["style-parse-begin"] && (polyfill.Support.amapRunTime["style-parse-begin"] = Date.now()); var o = JSON.parse(t.value);
|
||
polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["style-parse-end"] && (polyfill.Support.amapRunTime["style-parse-end"] = Date.now()), this.vn = new polyfill.StyleParser(t.TY), this.vn.jY(o), this.Ww.emit("styleReady") }, i.prototype.updateUserStyle = function(i, t, e) { this.vn && this.vn.setStyle(t.Kd), e && e() }, i.prototype.sendHttp = function(i, t) { this.R_.protocol = t.protocol, this.protocol = t.protocol }, i.prototype.updateParams = function(i, t) { this.params = polyfill.assign(this.params, t), t.langForeign && (this.langForeign = t.langForeign), t.QG && (this.QG = t.QG) }, i.prototype.getSDFData = function(i, t, e) { this.R_.loadData(t, { cb: function(i) { e(null, i) } }) }, i.prototype.getImages = function(i, t) { var r = this,
|
||
l = t.data,
|
||
a = t.cb,
|
||
h = this.z_;
|
||
h.loadImages(l, { cb: function(i) { for (var t = [], e = 0, o = l; e < o.length; e++) { var n = o[e];
|
||
t.push({ url: n, data: h.getImage(n) }) }
|
||
r.Uh.send("imageLoaded", { data: t, cb: a }) }, type: "icon" }) }, i.prototype.setPathWebgl = function(i, t, e) { this.BW.setPathWebgl(t, e) }, i.prototype.sendIndoorRequest = function(i, t, e) { var o = this;
|
||
this.BW.AW(t, function(i, t) { o.Zw ? o.$w.push({ done: e, type: "sendIndoorRequest", data: t }) : e(i, t) }) }, i.prototype.Qw = function(i) { this.Uh.send("NebulaTileSdfLoaded", polyfill.ca) }, i.prototype.setMainThreadBusy = function(i, t) { if (env.movingDraw) this.Zw = !1;
|
||
else { if (this.Zw = t, !this.Zw)
|
||
for (var e = 0, o = this.$w; e < o.length; e++) { var n = o[e];
|
||
n.done ? n.done(null, n.data) : this.Uh.send(n.type, n.data) }
|
||
this.$w = [] } }, i.prototype.loadWordsByFront = function(i) { this.Uh.send("loadWordsByFront", i.Es, i.cb) }, i.prototype.innerLabelsLoadData = function(i, t, e) { this.NQ.loadData(t, e) }, i.prototype.dQ = function(i) { return this.lQ[i] }, i.prototype.deleteTileStaticSDF = function(i, t) { this.IW.NW(t) }, i.prototype.PQ = function(i, t) { this.QZ = t }, i.prototype._getNebulaSourceWorker = function() { return this.Ww || (this.Ww = new NebulaSourceWorker(this)), this.Ww }, i.prototype._getDistrictSourceWorker = function() { return this.kW || (this.kW = new DistrictSourceWorker(this)), this.kW }, i.prototype._getMapboxVTSourceWorker = function() { return this.QJ || (this.QJ = new polyfill.bX), this.QJ }, i.prototype._getMapboxSourceWorker = function() { var i; return this.vQ || (i = this.vQ = new MapboxSourceWorker(this), this.lQ[i.id] = i), this.vQ }, i.prototype.Fb = function() { var o = this;
|
||
this.z_.on("iconImageLoaded", function(i) { delete i.type, o.Uh.send("iconImageLoaded", i) }), this.R_.on("dynamicTextSDFInfoLoaded", function(i) { delete i.type, o.Uh.send("dynamicTextSDFInfoLoaded", i.data) }), this.yw.on("dynamicTextVerticeLoaded", function(i) { var t, e = i;
|
||
o.Zw ? (t = i.type, delete i.type, o.$w.push({ type: t, data: e })) : (delete i.type, o.Uh.send("dynamicTextVerticeLoaded", e)) }), this.yw.on("dynamicTextVerticeLoadedByTile", function(i) { var t, e = i;
|
||
o.Zw ? (t = i.type, delete i.type, o.$w.push({ type: t, data: e })) : (delete i.type, o.Uh.send("dynamicTextVerticeLoadedByTile", e)) }) }, i }(polyfill.Event); return polyfill.Support.DW && (self.Wh = new AMapWorker(self, sharedChunk.key, env), self.StyleParser = polyfill.StyleParser), AMapWorker }), define(["./shared"], function(st) { var j = { "AMap.MouseTool": ["AMap.RangingTool"], "AMap.Adaptor": ["AMap.CallAMap"] },
|
||
P = new st.tS;
|
||
|
||
function B(t) { try { var i, n = localStorage.getItem("_AMap_" + t); return n && ((i = JSON.parse(n)).version === st.Module.eS.iS ? (window._jsload_(t, i.script, !0), i.css && window._cssload_(t, i.css, !0), P.add([t], void 0), P.finish(t), 1) : void window.localStorage.removeItem("_AMap_" + t)) } catch (t) {} }
|
||
|
||
function F(t) { for (var i = [], n = 0, s = t; n < s.length; n++) { var e = s[n],
|
||
r = e; if (!P.has(e)) { if (r = j[r])
|
||
for (var o = 0, h = r; o < h.length; o++) { var a = h[o];!t[a] && i.indexOf(a) < 0 && (B(a) || i.push(a)) }
|
||
i.indexOf(e) < 0 && (B(e) || i.push(e)) } } return i }
|
||
|
||
function W(t, i) { var n = document.createElement("script");
|
||
n.type = "text/javascript", (document.body ? (n.onload = function() { document.body.removeChild(n), i() }, n.src = t, document.body) : (n.onload = function() { document.head.removeChild(n), i() }, n.src = t, document.head)).appendChild(n) }(N = document.getElementById("AMap_Dynamic_style")) || ((N = document.createElement("style")).type = "text/css", N.id = "AMap_Dynamic_style", (ft = document.head || document.getElementsByTagName("head")[0]).childNodes.length < 2 ? ft.appendChild(N) : ft.insertBefore(N, ft.childNodes[1]));
|
||
|
||
function G(t) { N.appendChild(document.createTextNode(t)) }
|
||
window._cssload_ = function(t, i, n) { try {!n && window.localStorage && i && "" !== i && window.localStorage.setItem("_AMap_" + t, JSON.stringify({ css: i, version: st.Module.eS.iS })) } catch (t) {}
|
||
G(i) }, window._jsload_ = function(t, i, n) { try { var s;!n && i && "" !== i && (s = window.localStorage["_AMap_" + t] || "{}", (s = JSON.parse(s)).version !== st.Module.eS.iS || s.script ? window.localStorage.setItem("_AMap_" + t, JSON.stringify({ version: st.Module.eS.iS, script: i })) : window.localStorage.setItem("_AMap_" + t, JSON.stringify({ version: st.Module.eS.iS, script: i, css: s.css }))) } catch (t) {}
|
||
st.Module.nS(t, i) }, window.cZ = st.Module; var N, U = "function" == typeof Float32Array;
|
||
|
||
function _(t, i) { return 1 - 3 * i + 3 * t }
|
||
|
||
function Y(t, i) { return 3 * i - 6 * t }
|
||
|
||
function Z(t, i, n) { return ((_(i, n) * t + Y(i, n)) * t + 3 * i) * t }
|
||
|
||
function X(t, i, n) { return 3 * _(i, n) * t * t + 2 * Y(i, n) * t + 3 * i }
|
||
H.prototype.t = function(t) { for (var i = 0, n = 1; 10 !== n && this.i[n] <= t; ++n) i += .1; var s = i + (t - this.i[--n]) / (this.i[n + 1] - this.i[n]) * .1,
|
||
e = X(s, this.o, this.s); if (.001 <= e) { for (var r = t, o = s, h = this.o, a = this.s, u = 0; u < 4; ++u) { var f = X(o, h, a); if (0 === f) return o;
|
||
o -= (Z(o, h, a) - r) / f } return o } if (0 === e) return s; for (var c, l, d = t, v = i, p = i + .1, m = this.o, y = this.s, b = 0; 0 < (c = Z(l = v + (p - v) / 2, m, y) - d) ? p = l : v = l, 1e-7 < Math.abs(c) && ++b < 10;); return l }, H.prototype.h = function(t) { return 0 === t ? 0 : 1 === t ? 1 : Z(this.t(t), this.l, this.u) }, H.prototype.p = function(t) { return t }; var J = H;
|
||
|
||
function H(t, i, n, s) { if (!(0 <= t && t <= 1 && 0 <= n && n <= 1)) throw new Error("bezier x values must be in [0, 1] range");
|
||
this.o = t, this.l = i, this.s = n, this.u = s, this.i = new(U ? Float32Array : Array)(11); for (var e = 0; e < 11; ++e) this.i[e] = Z(.1 * e, t, n) } var V, q, k = { getViewport: function(t) { return t ? [t.clientWidth, t.clientHeight] : [0, 0] }, getStyle: function(t, i) { var n, s = t.style[i]; return "auto" === (s = (s = (s = s && "auto" !== s || !document.defaultView ? s : (n = document.defaultView.getComputedStyle(t, null)) ? n[i] : null) && "auto" !== s || "height" !== i ? s : t.clientHeight + "px") && "auto" !== s || "width" !== i ? s : t.clientWidth + "px") ? null : s }, getViewportOffset: function(t) { var i, n = 0,
|
||
s = 0,
|
||
e = t,
|
||
r = document.body,
|
||
o = document.documentElement;
|
||
do { if (n += e.offsetTop || 0, s += e.offsetLeft || 0, n += parseInt(k.getStyle(e, "borderTopWidth"), 10) || 0, s += parseInt(k.getStyle(e, "borderLeftWidth"), 10) || 0, i = k.getStyle(e, "position"), e.offsetParent === r && "absolute" === i) break; if ("fixed" === i) { n += r.scrollTop || o.scrollTop || 0, s += r.scrollLeft || o.scrollLeft || 0; break } } while (e = e.offsetParent); for (e = t; e !== r && (n -= e.scrollTop || 0, s -= e.scrollLeft || 0, !k.m() && st.Support.webkit && (s += e.scrollWidth - e.clientWidth), e = e.parentNode);); return [s, n] }, m: function() { return V || (q = "ltr" === k.getStyle(document.body, "direction"), V = !0), q }, create: function(t, i, n, s) { return t = document.createElement(t), n && (t.className = n), i && (s && "before" === s ? (n = i.firstChild, i.insertBefore(t, n)) : i.appendChild(t)), t }, toggleClass: function(t, i, n) { n ? this.addClass(t, i) : this.removeClass(t, i) }, hasClass: function(t, i) { if (t && i) return 0 < t.className.length && new RegExp("(^|\\s)" + i + "(\\s|$)").test(t.className) }, addClass: function(t, i) { t && i && (t.classList && t.classList.add ? t.classList.add(i) : this.hasClass(t, i) || (t.className += (t.className ? " " : "") + i)) }, setClass: function(t, i) { t && (t.className = i || "") }, removeClass: function(t, n) { t && n && (t.classList && t.classList.remove ? t.classList.remove(n) : t.className = t.className.replace(/(\S+)\s*/g, function(t, i) { return i === n ? "" : t }).replace(/(^\s+|\s+$)/, "")) }, watchSize: function(n, s, e) { var i = document.createElement("iframe"),
|
||
r = (i.style.cssText = "width: 100%;height: 100%;position: absolute;pointEvents:none; opacity:0; margin: 0;padding: 0;border: none;", i.onload = function() { i && (i.contentWindow.onresize = t) }, n.appendChild(i), i.src = "javascript:void(0)", 0),
|
||
o = 0;
|
||
|
||
function t() { e.k = n.getBoundingClientRect(), e.M = [n.clientLeft, n.clientTop]; var t = n.offsetWidth,
|
||
i = n.offsetHeight;
|
||
t === r && i === o || (s(t, i), r = t, o = i) } return t(), e.resize = t, window.onscroll = t,
|
||
function() { var t;
|
||
e.resize && (e.resize = null), window.onscroll && (window.onscroll = null), i.contentWindow && (i.contentWindow.onresize = null, i.contentWindow.document.write(""), i.parentNode.removeChild(i), null != (t = i.contentWindow)) && t.close() } }, watchSize2: function(n, s, e) { var r, o, h = document.createElement("_"),
|
||
a = (h.className = "expand", h.appendChild(document.createElement("_"))),
|
||
u = (a.className = "shrink", h.appendChild(document.createElement("_"))),
|
||
t = (u.className = "expandChild", a.appendChild(document.createElement("_"))); return t.className = "shrinkChild", a.style.cssText = h.style.cssText = "height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1", t.style.cssText = u.style.cssText = "display:block;height:100%;transition:0s;width:100%", t.style.width = t.style.height = "200%", n.appendChild(h), f(),
|
||
function() { c(), n.removeChild(h) };
|
||
|
||
function f() { c(), e.k = n.getBoundingClientRect(), e.M = [n.clientLeft, n.clientTop]; var t = n.offsetWidth,
|
||
i = n.offsetHeight;
|
||
t === r && i === o || (r = t, o = i, u.style.width = 2 * t + "px", u.style.height = 2 * i + "px", h.scrollLeft = h.scrollWidth, h.scrollTop = h.scrollHeight, a.scrollLeft = a.scrollWidth, a.scrollTop = a.scrollHeight, s(t, i)), a.addEventListener("scroll", f), h.addEventListener("scroll", f) }
|
||
|
||
function c() { a.removeEventListener("scroll", f), h.removeEventListener("scroll", f) } }, mousePos: function(t, i, n) { return t && (n.k = t.getBoundingClientRect(), n.M = [t.clientLeft, t.clientTop]), t = n.k, [(i = i.touches && i.changedTouches ? 0 < i.touches.length ? i.touches[0] : i.changedTouches[i.changedTouches.length - 1] : i).clientX - t.left - n.M[0], i.clientY - t.top - n.M[1]] }, remove: function(t) { t && t.parentNode && t.parentNode.removeChild(t) }, empty: function(t) { for (; t.firstChild;) t.removeChild(t.firstChild) }, closest: function(t, i) { return t ? this.hasClass(t, i) ? t : (t = t.parentElement) ? k.closest(t, i) : null : null }, fillText: function(t, i) { if (t) return void 0 !== t.textContent ? t.textContent = i : void 0 !== t.innerText ? t.innerText = i : t.innerHTML = i, t }, _L: function(t) { for (var i = document.documentElement.style, n = 0; n < t.length; n += 1)
|
||
if (t[n] in i) return t[n];
|
||
return !1 }, rotate: function(t, i, n) { var s, e = k.kL;
|
||
n = n || { x: t.clientWidth / 2, y: t.clientHeight / 2 }, e ? (s = "", t.style[e] = s += " rotate(" + i + "deg)", t.style[k.ML[e] + "-origin"] = n.x + "px " + n.y + "px") : (s = Math.cos(i * Math.PI / 180), e = Math.sin(i * Math.PI / 180), t.style.filter = "progid:DXImageTransform.Microsoft.Matrix()", 0 < t.filters.length && ((i = t.filters.item(0)).Dx = -n.x * s + n.y * e + n.x, i.Dy = -n.x * e - n.y * s + n.y, i.M11 = i.M22 = s, i.M12 = -(i.M21 = e))) }, setCss: function(t, i) { t = t instanceof Array ? t : [t]; for (var n = 0; n < t.length; n += 1)
|
||
for (var s in i) i.hasOwnProperty(s) && (t[n].style[s] = i[s]); return this }, setOpacity: function(t, i) { t.style && ("opacity" in t.style ? t.style.opacity = "" + i : "filter" in t.style && (i = Math.round(100 * i), t.style.filter = "", 100 !== i) && (t.style.filter = " progid:DXImageTransform.Microsoft.Alpha(opacity=" + i + ")")) }, ML: {}, kL: q = V = !1 },
|
||
K = (k.kL = k._L(["WebkitTransform", "OTransform", "MozTransform", "msTransform", "transform"]), k.ML = { transform: "transform", WebkitTransform: "-webkit-transform", OTransform: "-o-transform", MozTransform: "-moz-transform", msTransform: "-ms-transform" }, t.prototype.isEnabled = function() { return "disabled" !== this.R }, t.prototype.isActive = function() { return "active" === this.R }, t.prototype.enable = function() { this.isEnabled() || (this.R = "enabled") }, t.prototype.disable = function() { this.isEnabled() && (this.R, this.R = "disabled") }, t.prototype.L = function(t) { this.A && (this.A = !1), t.ctrlKey || 0 !== t.button || (document.addEventListener("mousemove", this.T), document.addEventListener("mouseup", this.I), this.D(t)) }, t.prototype.P = function(t) { this.Xdt = t.Hdt, 1 < t.touches.length ? (this.j.removeEventListener("touchmove", this.T), this.R = "enabled") : (this.A && (this.A = !1), "enabled" === this.R && (this.j.addEventListener("touchmove", this.T, { capture: !0, passive: !0 }), document.addEventListener("touchend", this.oS), this.D(t))) }, t.prototype.D = function(t) { this.$ = this.U = this.B = k.mousePos(this.j, t, this._map), this.YF = this._map.getView().getStatus().centerCoord, this.XF = this._map.containerToCoord(this.$), this.W = [
|
||
[Date.now(), this.$]
|
||
], this.R = "active" }, t.prototype.Z = function(t) { var i = (new Date).getTime(),
|
||
n = this.Xdt; "touchmove" === t.type && 1 < t.touches.length || i - n < 50 || (this.W.length < 2 && "active" === this.R && this.G("dragstart", t), "touchmove" === t.type && this.G("touchmove", t), this.G("dragging", t), this.isEnabled() && ("active" === this.R && (this.R = "pending"), "disabled" !== this.R) && this._map.getStatus().dragEnable && (i = k.mousePos(this.j, t, this._map), this.q = t, this.B = st.set(st.create(), i[0], i[1]), this.Y(), this.W.push([Date.now(), this.B]), this.W.length < 2 || (n = this._map.getView(), t = this._map.containerToCoord(i), i = [this.XF[0] - t[0] + this.YF[0], this.XF[1] - t[1] + this.YF[1]], n.setOptions({ center: this._map.getProjection().unproject(i[0], i[1]) })))) }, t.prototype.tt = function(t) { if (0 === t.button)
|
||
if (this.it()) this.S(), this.C();
|
||
else switch (this.R) {
|
||
case "active":
|
||
this.R = "enabled", this.S(), this.C(); break;
|
||
case "pending":
|
||
this.R = "enabled", this.S(), this.C(), this.et(t), this.G("dragend", t); break;
|
||
default:
|
||
this.R = "enabled", this.S(), this.G("dragend", t) } }, t.prototype.N = function(t) { if (0 < t.touches.length) this.$ = this.U = this.B = k.mousePos(this.j, t, this._map), this.YF = this._map.getView().getStatus().centerCoord, this.XF = this._map.containerToCoord(this.$);
|
||
else if (this.it()) this.S(), this.C(), this.R = "enabled", this.G("dragend", t);
|
||
else switch (this.R) {
|
||
case "active":
|
||
this.R = "enabled", this.S(), this.C(); break;
|
||
case "pending":
|
||
this.R = "enabled", this.S(), this.C(), this.G("dragend", t), this.et(t); break;
|
||
default:
|
||
this.G("dragend", t), this.S() } }, t.prototype.it = function() { var t, i, n, s, e = this._map.getLimitBounds(); if (e = e && e.toJSON()) return t = this._map.getBounds().toJSON(), i = [], s = [(n = this._map.getCenter().toJSON())[0], n[1]], (t[0] < e[0] || t[1] < e[1] || t[2] > e[2] || t[3] > e[3]) && (i[0] = t[0] - e[0], i[1] = t[1] - e[1], i[2] = t[2] - e[2], i[3] = t[3] - e[3], i[0] < 0 && 0 < i[2] ? s[0] = (e[0] + e[2]) / 2 : i[0] < 0 ? s[0] = n[0] - i[0] : 0 < i[2] && (s[0] = n[0] - i[2]), i[1] < 0 && 0 < i[3] ? s[1] = (e[1] + e[3]) / 2 : i[1] < 0 ? s[1] = n[1] - i[1] : 0 < i[3] && (s[1] = n[1] - i[3]), this._map.panTo(s, 100), !0) }, t.prototype.S = function() { this.j.removeEventListener("touchmove", this.T), document.removeEventListener("touchend", this.oS), document.removeEventListener("mousemove", this.T), document.removeEventListener("mouseup", this.I) }, t.prototype.C = function() { delete this.q, delete this.$, delete this.U, delete this.B }, t.prototype.Y = function() { for (var t = this.W, i = Date.now(); 0 < t.length && 60 < i - t[0][0];) t.shift() }, t.prototype.et = function(t) { var i, n, s, e, r, o, h, a, u, f, c, l, d, v;
|
||
|
||
function p() { this.isEnabled() && this.A || (o = -1); var t = Date.now() - a,
|
||
t = (u < t && (o = -1), [l[0] * t + d[0] * t * t / 2, l[1] * t + d[1] * t * t / 2]);
|
||
h = [h[0] + (t[0] - v[0]), h[1] + (t[1] - v[1])], v = t, o <= 0 ? this.A = !1 : (s.setOptions({ center: st.ProjectionManager.getProjection(e.projectionId).unproject(h[0], h[1]) }), st.Util.requestAnimFrame(p.bind(this)), o--) }
|
||
this._map.getStatus().jogEnable && (this.A = !0, this.Y(), (i = this.W).length < 2 || (n = i[i.length - 1], c = i[0], f = [n[1][0] - c[1][0], n[1][1] - c[1][1]], 0 == (r = (n[0] - c[0]) / 1e3) || st.equals(n[1], c[1]) ? this.G("moveend", t) : (c = [f[0] / (.3 / r), f[1] / (.3 / r)], t = Math.sqrt(c[0] * c[0] + c[1] * c[1]) / 750, s = this._map.getView(), r = (e = s.getStatus()).rotation, c = o = parseInt((1e3 * t + 400) / 17 + "", 10), new J(.1, 0, 1, .1), st.V[e.projectionId].nt(-f[0] / 7, f[1] / 7, e.zoom), h = st.ProjectionManager.getProjection(e.projectionId).project(e.center[0], e.center[1]), a = Date.now(), u = 17 * c, t = i[i.length - Math.min(i.length, 3)], f = [n[1][0] - t[1][0], n[1][1] - t[1][1]], 0 !== r && (f = this.J(r, f)), f = st.V[e.projectionId].nt(f[0], -f[1], e.zoom), c = Math.min(t[0] - n[0], -15), l = [f[0] / c, f[1] / c], d = [-l[0] / u, -l[1] / u], v = [0, 0], st.Util.requestAnimFrame(p.bind(this))))) }, t.prototype.J = function(t, i) { var n = Math.sqrt(i[0] * i[0] + i[1] * i[1]),
|
||
s = Math.atan2(i[1], i[0]),
|
||
t = t / 180 * Math.PI - s; return i[0] = n * Math.cos(t), i[1] = -n * Math.sin(t), i }, t.prototype.G = function(t, i) { this._map.getBindHandler().fireEvent(t, i) }, t);
|
||
|
||
function t(t, i) { this.st = "mouse", this.Xdt = 0, this._map = i, this.W = [], this.j = t, this.R = "disabled", this.T = this.Z.bind(this), this.I = this.tt.bind(this), this.oS = this.N.bind(this) }
|
||
i.prototype.isEnabled = function() { return "disabled" !== this.R }, i.prototype.isActive = function() { return "active" === this.R }, i.prototype.enable = function() { this.isEnabled() || (this.rt = !0, this.R = "enabled") }, i.prototype.ht = function() { return !!this.lt }, i.prototype.disable = function() { if (this.isEnabled()) switch (this.R) {
|
||
case "enabled":
|
||
case "active":
|
||
this.R = "disabled", this.S(), this.C(); break;
|
||
case "pending":
|
||
this.R = "disabled", this.S(); break;
|
||
default:
|
||
this.R = "disabled" } }, i.prototype.ut = function(t) { t.preventDefault(), "enabled" === this.R && this._map.getStatus().doubleClickZoom && !t.ctrlKey && 0 === t.button && this.D(t) }, i.prototype.P = function(t, i) { var n = this;
|
||
this.$ = k.mousePos(this.j, t, this._map), 2 === t.touches.length ? (this.rt = !1, this.ct = 0) : (this.rt = !0, this.ct++, this.ft = i, this.lt = !1, setTimeout(function() { 1 === n.ct && (n.ct = 0) }, 300), this.pt = [t.changedTouches[0].clientX, t.changedTouches[0].clientY], this.j.addEventListener("touchmove", this.dt), 2 <= this.ct && this.j.addEventListener("touchend", this.N.bind(this))) }, i.prototype.vt = function(t) { var i = this;
|
||
this.rt && (this.yt++, setTimeout(function() { i.yt = 0 }, 300), 2 === this.yt && !this.lt && this._map.getStatus().doubleClickZoom && (t.preventDefault(), this.yt = 0, this.ct = 0, this.D(t)), 2 === this.ct) && (this.ct = 0) }, i.prototype.D = function(i) { var n, s, e = this,
|
||
r = (this.lt = !0, this.R = "active", this.G("zoomstart"), 400),
|
||
o = 0,
|
||
h = this._map.getView().getStatus().zoom,
|
||
a = new J(.4, 0, .15, 1);
|
||
h >= this.xt[1] || (s = 0, n = function() { o += 16; var t = h + a.h(o / r);
|
||
t >= e.xt[1] || (e.bt(i, t), h + 1 <= t && (st.Util.cancelAnimFrame(s), e.lt = !1, e.R = "enabled", e.tt(), e.N()), (e.lt || o < 400) && (s = st.Util.requestAnimFrame(n))) }, s = st.Util.requestAnimFrame(n)) }, i.prototype.gt = function(t) { var i, n, s = k.mousePos(this.j, t, this._map);
|
||
s[0] - this.$[0] == 0 && s[1] - this.$[1] == 0 || (this.yt = -1, this.ct < 2 ? this.ct = 0 : this.rt && (this.lt = !0, this.wt = !0, this.ft.disable(), s = t.changedTouches.length, i = this._map.getView(), n = this._map.getView().getStatus().zoom - (t.changedTouches[s - 1].clientY - this.pt[1]) / 100, i.setOptions({ zoom: n }), this.pt = [t.changedTouches[s - 1].clientX, t.changedTouches[s - 1].clientY])) }, i.prototype.N = function() { this.wt && 2 <= this.ct && (this.ft.enable(), this.tt(), this.lt = !1, this.wt = !1) }, i.prototype.bt = function(t, i) { var n, s, e, r = this._map.getView(),
|
||
h = (o = r.getStatus()).center,
|
||
a = o.zoom,
|
||
u = o.rotation,
|
||
o = o.projectionId;
|
||
this._map.getStatus().zoomEnable && (t = k.mousePos(this.j, t, this._map), e = [this.j.clientWidth / 2, this.j.clientHeight / 2], s = this._t(e, t), n = Math.atan((t[1] - e[1]) / (t[0] - e[0])), u = -u / 180 * Math.PI + n, n = [-Math.cos(u) * s, Math.sin(u) * s], t[0] - e[0] < 0 && (n[0] = -n[0], n[1] = -n[1]), u = st.V[o].nt(n[0], n[1], a), s = st.V[o].nt(n[0], n[1], i), e = Math.pow(2, i - a), r.setOptions({ kt: { pos: t, Mt: i, Rt: s, zt: u, scale: e, center: st.set(st.create(), h[0], h[1]) } }), this.G("zooming")) }, i.prototype.tt = function(t) { t && 0 !== t.button || (this.S(), this.C(), this.G("zoomend")) }, i.prototype.S = function() { this.j.removeEventListener("dblclick", this.St), this.j.removeEventListener("touchmove", this.dt) }, i.prototype.C = function() { delete this.$, delete this.U, delete this.U }, i.prototype._t = function(t, i) { var n = i[0] - t[0],
|
||
i = i[1] - t[1]; return Math.sqrt(n * n + i * i) }, i.prototype.G = function(t, i) { this._map.getBindHandler().fireEvent(t, i) }; var Q = i;
|
||
|
||
function i(t, i) { this.lt = !1, this.wt = !1, this.rt = !0, this.xt = st.zoomRange, this.yt = 0, this.ct = 0, this.pt = [0, 0], this._map = i, this.j = t, this.R = "disabled", this.St = this.ut.bind(this), this.dt = this.gt.bind(this) }
|
||
tt.prototype.isEnabled = function() { return "disabled" !== this.R }, tt.prototype.isActive = function() { return "active" === this.R }, tt.prototype.enable = function() { this.isEnabled() || (this.R = "enabled") }, tt.prototype.disable = function() { if (this.isEnabled()) switch (k.removeClass(this.j, "mapboxgl-touch-drag-pan"), this.R) {
|
||
case "active":
|
||
this.R = "disabled", this.S(), this.G("zoomstart"); break;
|
||
case "pending":
|
||
this.R = "disabled", this.S(); break;
|
||
default:
|
||
this.R = "disabled" } }, tt.prototype.ht = function() { return !!this.lt }, tt.prototype.P = function(t) { 2 === t.touches.length && (t.stopPropagation(), this.G("zoomstart"), this.$ = [{ clientX: t.touches[0].clientX, clientY: t.touches[0].clientY, pageX: t.touches[0].pageX, pageY: t.touches[0].pageY }, { clientX: t.touches[1].clientX, clientY: t.touches[1].clientY, pageX: t.touches[1].pageX, pageY: t.touches[1].pageY }], this.B = this.$, t = this._map.getView(), this.zY = t.getStatus(), this.j.addEventListener("touchmove", this.T), this.j.addEventListener("touchend", this.At)) }, tt.prototype.Z = function(t) { var i, n, s, e, r, o, h, a, u, f, c, l, d, v, p, m, y, b, g, M, w;
|
||
t.touches.length < 2 || (this.G("touchmove"), this._map.getStatus().touchZoom && this.isEnabled() && (this.lt = !0, i = -this.CF(t), s = (f = (n = this._map.getView()).getStatus()).rotation, e = f.center, r = f.zoom, g = f.projectionId, g = void 0 === (o = f.Tt) ? g : o, o = f.pitch, h = (f = this._map.getStatus()).rotateEnable, a = f.zoomEnable, u = f.pitchEnable, f = f.touchZoomCenter, c = this.MW.CY, d = l = !1, y = this.It(this.B[0], this.B[1]), p = this.It(t.touches[0], t.touches[1]), v = this.Dt(this.$[0], this.$[1]), w = this.Dt(t.touches[0], t.touches[1]), p = r + (p - y) / 180, y = [((y = st.Pt(k.mousePos(this.j, this.$[0], this._map), k.mousePos(this.j, this.$[1], this._map)))[0] + y[2]) / 2, (y[1] + y[3]) / 2], b = [this.j.clientWidth / 2, this.j.clientHeight / 2], m = this.jt(b, y), M = Math.atan((y[1] - b[1]) / (y[0] - b[0])), M = s * Math.PI / 180 + M, M = [-Math.cos(M) * m, Math.sin(M) * m], y[0] - b[0] < 0 && (M[0] = -M[0], M[1] = -M[1]), m = st.V[g].nt(M[0], M[1], r), y = st.V[g].nt(M[0], M[1], p), b = Math.pow(2, p - r), g = this.zY.rotation + (w - v), 10 < Math.abs(w - v) && (this.MW.CY = !0), .1 < Math.abs(i) && (l = c = !(d = !0)), .01 < Math.abs(p - r) && (l = !0), M = k.mousePos(this.j, this.$[0], this._map), w = k.mousePos(this.j, this.$[1], this._map), 1 === f ? n.setOptions({ pitch: u && d ? o + i : o, zoom: a && l ? p : r, rotation: h && c ? g : s }) : n.setOptions({ pitch: u && d ? o + i : o, kt: a && l && { Mt: p, Rt: y, zt: m, pos: [(M[0] + w[0]) / 2, (M[1] + w[1]) / 2], scale: b, center: st.set(st.create(), e[0], e[1]) }, rotation: h && c ? g : s }), this.B = [{ clientX: t.touches[0].clientX, clientY: t.touches[0].clientY, pageX: t.touches[0].pageX, pageY: t.touches[0].pageY }, { clientX: t.touches[1].clientX, clientY: t.touches[1].clientY, pageX: t.touches[1].pageX, pageY: t.touches[1].pageY }])) }, tt.prototype.CF = function(t) { var i, n = this.B,
|
||
s = this.$,
|
||
n = [k.mousePos(this.j, n[0], this._map), k.mousePos(this.j, n[1], this._map)],
|
||
s = (k.mousePos(this.j, s[0], this._map), k.mousePos(this.j, s[1], this._map), [k.mousePos(this.j, t.touches[0], this._map), k.mousePos(this.j, t.touches[1], this._map)]),
|
||
t = Math.sqrt(Math.pow(n[0][0] - n[1][0], 2) + Math.pow(n[0][1] - n[1][1], 2)),
|
||
e = Math.sqrt(Math.pow(s[0][0] - s[1][0], 2) + Math.pow(s[0][1] - s[1][1], 2)); return 2 < Math.abs(e - t) || (e = s[0][0] - n[0][0], t = s[0][1] - n[0][1], i = s[1][0] - n[1][0], s = s[1][1] - n[1][1], Math.abs(t) < Math.abs(e)) || Math.abs(s) < Math.abs(i) ? 0 : -(t + s) / 2 / 4 }, tt.prototype.Et = function(t) { this.MW.CY = !1, this.G("zoomend"), this.S() }, tt.prototype.It = function(t, i) { var n = i.clientX - t.clientX,
|
||
i = i.clientY - t.clientY; return Math.sqrt(n * n + i * i) }, tt.prototype.jt = function(t, i) { var n = i[0] - t[0],
|
||
i = i[1] - t[1]; return Math.sqrt(n * n + i * i) }, tt.prototype.Dt = function(t, i) { var n = t.pageX - i.pageX,
|
||
t = t.pageY - i.pageY; return Math.atan2(t, n) / Math.PI * 180 }, tt.prototype.S = function() { this.j.removeEventListener("touchstart", this.Nt), this.j.removeEventListener("touchmove", this.T), this.j.removeEventListener("touchend", this.At) }, tt.prototype.G = function(t, i) { this._map.getBindHandler().fireEvent(t, i) }; var $ = tt;
|
||
|
||
function tt(t, i) { this.MW = { CY: !1 }, this._map = i, this.j = t, this.R = "disabled", this.T = this.Z.bind(this), this.At = this.Et.bind(this) } var it = 4.000244140625,
|
||
nt = (et.prototype.isEnabled = function() { return "disabled" !== this.R }, et.prototype.isActive = function() { return "active" === this.R }, et.prototype.enable = function() { this.isEnabled() || (this.R = "enabled") }, et.prototype.disable = function() { this.isEnabled() && (this.R = "disabled", this.C(), this.G("zoomend")) }, et.prototype.Ut = function(t) { t.preventDefault(); var i, n, s, e = this._map.getStatus();
|
||
this.G("zoomstart"), this.isEnabled() && (i = t.deltaMode === WheelEvent.DOM_DELTA_LINE ? 40 * t.deltaY : t.deltaMode === WheelEvent.DOM_DELTA_PAGE ? 400 * t.deltaY : t.deltaY, s = (n = Date.now()) - (this.Bt || 0), this.Bt = n, 0 !== i && i % it == 0 ? this.Wt = "wheel" : 0 !== i && Math.abs(i) < 4 ? this.Wt = "trackpad" : 400 < s ? (this.Wt = null, this.Gt = i) : this.Wt || (this.Wt = Math.abs(s * i) < 200 ? "trackpad" : "wheel", this.Zt && (i += this.Gt)), t.shiftKey && i && (i /= 4), e && e.zoomSpeed && (i *= e.zoomSpeed), this.Wt) && (this.$t -= i, this.isActive() || this.D(t)) }, et.prototype.D = function(t) { var i, n, s, e, r, o, h, a, u;
|
||
this.$t && (a = (e = (i = this._map.getView()).getStatus()).rotation, n = e.zoom, s = e.center, e = e.projectionId, o = "wheel" === this.Wt && Math.abs(this.$t) > it ? 1 / 450 : .01, o = 2 / (1 + Math.exp(-Math.abs(this.$t * o))), this.$t < 0 && 0 !== o && (o = 1 / o), r = this.Yt(n), r = Math.min(this._map.getZooms()[1], Math.max(2, this.Vt(r * o))), o = k.mousePos(this.j, t, this._map), t = [this.j.clientWidth / 2, this.j.clientHeight / 2], u = this._t(t, o), h = Math.atan((o[1] - t[1]) / (o[0] - t[0])), a = -a / 180 * Math.PI + h, h = [-Math.cos(a) * u, Math.sin(a) * u], o[0] - t[0] < 0 && (h[0] = -h[0], h[1] = -h[1]), a = st.V[e].nt(h[0], h[1], n), u = st.V[e].nt(h[0], h[1], r), t = Math.pow(2, r - n), this._map.XT(h), i.setOptions({ kt: { pos: o, Mt: r, Rt: u, zt: a, scale: t, center: st.set(st.create(), s[0], s[1]) } }), this.$t = 0) }, et.prototype.Yt = function(t) { return Math.pow(2, t) }, et.prototype.Vt = function(t) { return Math.log(t) / Math.LN2 }, et.prototype._t = function(t, i) { var n = i[0] - t[0],
|
||
i = i[1] - t[1]; return Math.sqrt(n * n + i * i) }, et.prototype.C = function() { delete this.q, delete this.$, delete this.U, delete this.B }, et.prototype.G = function(t, i) { this._map.getBindHandler().fireEvent(t, i) }, et);
|
||
|
||
function et(t, i) { this._map = i, this.j = t, this.R = "disabled", this.Wt = "wheel", this.$t = 0 }
|
||
ot.prototype.isEnabled = function() { return "disabled" !== this.R }, ot.prototype.isActive = function() { return "active" === this.R }, ot.prototype.enable = function() { this.isEnabled() || (this.R = "enabled") }, ot.prototype.disable = function() { if (this.isEnabled()) { switch (this.R) {
|
||
case "active":
|
||
this.S(), this.C(); break;
|
||
case "pending":
|
||
this.S() }
|
||
this.R = "disabled" } }, ot.prototype.L = function(t) { this.A && clearInterval(this.A), (2 === t.button || t.ctrlKey && 0 === t.button) && (this.j.addEventListener("mousemove", this.T, { passive: !0 }), this.j.addEventListener("mouseup", this.I), this.j.addEventListener("mouseleave", this.I), this.D(t)) }, ot.prototype.D = function(t) { this.$ = this.U = this.B = k.mousePos(this.j, t, this._map), this.W = [
|
||
[Date.now(), this.$]
|
||
], this.R = "active" }, ot.prototype.Z = function(t) { var i, n, s;
|
||
this.W.length < 2 && "active" === this.R && this.G("dragstart", t), this.G("dragging", t), this.isEnabled() && (n = k.mousePos(this.j, t, this._map), this.q = t, this.B = st.set(st.create(), n[0], n[1]), this.Y(), this.W.push([Date.now(), this.B]), this.W.length < 2 || ("active" === this.R && (this.R = "pending"), "disabled" !== this.R && (i = (n = (t = this._map.getView()).getStatus()).rotation, n = n.pitch, s = [this.B[0] - this.W[this.W.length - 2][1][0], this.B[1] - this.W[this.W.length - 2][1][1]], (!this._map.getStatus().pitchEnable || Math.abs(s[0]) > Math.abs(s[1])) && (s[1] = 0), (!this._map.getStatus().rotateEnable || Math.abs(s[0]) < Math.abs(s[1])) && (s[0] = 0), 15 < Math.abs(this.B[0] - this.$[0]) && (this.B[1] > this.j.clientHeight / 2 ? i -= s[0] / 10 : i += s[0] / 10), n -= s[1] / this._map.getZooms()[1] * 2, t.setOptions({ rotation: i, pitch: n })))) }, ot.prototype.tt = function(t) { switch (this.R) {
|
||
case "active":
|
||
this.R = "enabled", this.C(); break;
|
||
case "pending":
|
||
this.R = "enabled", this.G("dragend", t); break;
|
||
default:
|
||
this.G("dragend", t) }
|
||
this.S() }, ot.prototype.S = function() { this.j.removeEventListener("mousemove", this.T), this.j.removeEventListener("mouseup", this.I), this.j.removeEventListener("mouseleave", this.I) }, ot.prototype.C = function() { delete this.q, delete this.$, delete this.U, delete this.B }, ot.prototype.Y = function() { for (var t = this.W, i = Date.now(); 0 < t.length && 160 < i - t[0][0];) t.shift() }, ot.prototype.G = function(t, i) { this._map.getBindHandler().fireEvent(t, i) }; var rt = ot;
|
||
|
||
function ot(t, i) { this._map = i, this.W = [], this.j = t, this.R = "disabled", this.T = this.Z.bind(this), this.I = this.tt.bind(this) }
|
||
n.prototype.Xt = function() { this._container.addEventListener("mouseenter", this.DL.bind(this)), this._container.addEventListener("mouseover", this.OL.bind(this)), this._container.addEventListener("mouseleave", this.PL.bind(this)), this._container.addEventListener("mouseup", this.tt.bind(this)), this._container.addEventListener("mouseout", this.BL.bind(this)), this._container.addEventListener("mousemove", this.jL.bind(this)), this._container.addEventListener("mousedown", this.Jt.bind(this)), this._container.addEventListener("touchend", this.N.bind(this)), this._container.addEventListener("touchstart", this.Kt.bind(this), !1), this._container.addEventListener("touchmove", this.gt.bind(this), !1), this._container.addEventListener("wheel", this.Qt.bind(this), { passive: !1 }), this._container.addEventListener("contextmenu", this.EL.bind(this)), this._container.addEventListener("keydown", this.ii.bind(this)) }, n.prototype.fireEvent = function(t, i) { if (i) { i.Adt = t; var n = this._map.getStatus(); if ("scrollWheel" === t) { if (!n.scrollWheel) return void this.oi.disable();
|
||
this.oi.enable() } var s, r = (e = k.mousePos(this._container, i, this._map))[0],
|
||
e = e[1],
|
||
h = (o = this._map.getView().containerTolnglat(r, e))[0],
|
||
o = o[1]; if ("mousemove" === t && this.ri && this.ri.P$) s = this.ri;
|
||
else if ("dragstart" === t || "dragging" === t || "dragend" === t) switch (t) {
|
||
case "dragstart":
|
||
s = !n.pickWhenMoving && this._map.TL() ? this.ri : this.si(i), this.ri = s; break;
|
||
case "dragging":
|
||
s = this.ri; break;
|
||
case "dragend":
|
||
s = this.ri, this.ri = void 0 } else s = !n.pickWhenMoving && this._map.TL() ? this.ri : this.si(i); var a = this.hi(s, t),
|
||
u = new st.LngLat(h, o),
|
||
h = { lnglat: u, target: s, pixel: r = new st.Pixel(r, e), originEvent: i, pos: e = this._map.getProjection().project(h, o), vectorIndex: 0 },
|
||
o = (s && (h.vectorIndex = s && s.iE && i.lnglat && s.iE(i.lnglat) || 0), -1 !== ["mouseover", "mousemove", "mouseout", "mouseenter", "mouseleave"].indexOf(t) ? this.ui(t, h) : s && this.ci(s, t, h), h.target),
|
||
h = { lnglat: u, target: s, pixel: r, originEvent: i, pos: e };
|
||
o && "poi" !== o.type && !a || (h.target = this._map), s && "poi" === s.type || s && a ? this._map.emit(t, h) : "dblclick" === t && s ? this.fi.disable() : "dragstart" !== t && "dragging" !== t && "dragend" !== t || !s || !s.getDraggable() && "AMap.InfoWindow" !== s.type && "AMap.ContextMenu" !== s.type ? s || (n.dragEnable || "dragging" !== t && "dragstart" !== t && "dragend" !== t) && this._map.emit(t, h) : "dragend" === t ? this.ft.enable() : this.ft.disable() } }, n.prototype.hi = function(t, i) { return !!t && "poi" !== t.type && !("dragstart" === i || "dragging" === i || "dragend" === i || !this._map.getStatus().allBubble && !Boolean(t.getOptions().bubble)) }, n.prototype.ti = function(t) { this.fi.enable(), this.fireEvent("dblclick", t), this.fi.ut(t) }, n.prototype.Jt = function(t) { this._map.cancelMapAnimate(), this.Ht = "mousedown", this.fireEvent("mousedown", t), this.ft.enable(), this.ft.L(t), this.ei.L(t), this.$ = k.mousePos(this._container, t, this._map) }, n.prototype.OL = function(t) { this.fireEvent("mouseover", t) }, n.prototype.DL = function(t) { this.fireEvent("mouseenter", t) }, n.prototype.PL = function(t) { this.fireEvent("mouseleave", t) }, n.prototype.BL = function(t) { this.fireEvent("mouseout", t) }, n.prototype.tt = function(t) { var i = this; "mousedown" !== this.Ht || t.ctrlKey || (setTimeout(function() { i.nB = 0 }, 300), this.Ht = "false", 2 === t.button ? this.fireEvent("rightclick", t) : (this.nB++, 2 <= this.nB ? (this.fi.enable(), this.fireEvent("dblclick", t), this.fi.ut(t), this.nB = 0) : this.fireEvent("click", t))), this.fireEvent("mouseup", t) }, n.prototype.FL = function(t) { "move" !== this.Ht && this.fireEvent("click", t) }, n.prototype.jL = function(t) { var i; "mousedown" === this.Ht && (i = k.mousePos(this._container, t, this._map), 1 < Math.abs(this.$[0] - i[0]) || 1 < Math.abs(this.$[1] - i[1])) && (this.Ht = "move"), this.fireEvent("mousemove", t) }, n.prototype.Kt = function(t) { var i = this; "infoWindow" !== t.cH && "markerContent" !== t.cH && t.cancelable && t.preventDefault(), this.oB = "touchstart", this.$ = k.mousePos(this._container, t, this._map), this._map.cancelMapAnimate(), this.fireEvent("touchstart", t), this.rB = (new Date).getTime(), t.Hdt = this.rB, this.ft.enable(), this.ft.P(t), this.fi.P(t, this.ft), this.ni.P(t), clearTimeout(this.aB), 1 === t.touches.length && (this.aB = setTimeout(function() { i.fireEvent("rightclick", t) }, 800)) }, n.prototype.gt = function(t) { this.$ && (t = k.mousePos(this._container, t, this._map), 1 < Math.abs(t[0] - this.$[0]) || 1 < Math.abs(t[1] - this.$[1])) && "touchstart" === this.oB && (this.oB = "touchmove") }, n.prototype.N = function(t) { var i = this,
|
||
n = (new Date).getTime();
|
||
this.fireEvent("touchend", t), clearTimeout(this.aB), "touchstart" === this.oB && n - this.rB < 800 && (this.oB = "false", this.fireEvent("click", t), setTimeout(function() { i.dH = 0 }, 300), this.dH++, 2 <= this.dH) && (this.fireEvent("dblclick", t), this.dH = 0), this.fi.vt(t) }, n.prototype.Qt = function(t) { this._map.cancelMapAnimate(), this.fireEvent("mousewheel", t), this._map.getStatus().scrollWheel && (t.preventDefault(), this.ft.disable(), this.oi.Ut(t)) }, n.prototype.EL = function(t) { t.ctrlKey, t.preventDefault() }, n.prototype.si = function(t) { for (var i, s = (n = this._map).DF(), e = n.pi, r = n.di, n = n.vm, o = s.concat([e, r, n]), e = (s = k.mousePos(this._container, t, this._map))[0], r = s[1], s = (n = this._map.getView().containerTolnglat(e, r))[0], n = n[1], h = (t.lnglat = new st.LngLat(s, n), t.pixel = new st.Pixel(e, r), o.length - 1); 0 <= h; h--) { var a = o[h]; if (a = a && a.vi(t)) { if (!a.getOptions) { i = a; break } if (!0 !== a.getOptions().noSelect) { i = a; break } } } return i }, n.prototype.ui = function(t, i) { var s = void 0 === (s = (n = this.mi).yi) ? null : s,
|
||
e = void 0 === (e = n.xi) ? null : e,
|
||
n = n.vectorIndex,
|
||
r = i.target; "mousemove" !== t && "mouseleave" !== t || ("mousemove" === t ? s ? r ? s.hS !== r.hS || (void 0 === n ? -1 : n) !== i.vectorIndex ? (this.ci(s, "mouseout", e), this.ci(r, "mouseover", i)) : this.ci(r, "mousemove", i) : this.ci(s, "mouseout", e) : r && this.ci(r, "mouseover", i) : "mouseleave" === t && s && this.ci(s, "mouseout", e), this.mi.yi = r, this.mi.vectorIndex = i.vectorIndex, this.mi.xi = i) }, n.prototype.ci = function(t, i, n) { "poi" === t.type ? this._map.getStatus().isHotspot && this.bi(t, i, n) : t.emit(i, n) }, n.prototype.bi = function(t, i, n) { var s, e, r, o = "hotspot"; switch (i) {
|
||
case "click":
|
||
this._map.setCursor("pointer"), s = o + i; break;
|
||
case "mouseover":
|
||
this._map.setCursor("pointer"), s = o + "over"; break;
|
||
case "mouseout":
|
||
this._map.setCursor(""), s = o + "out" }
|
||
s && (e = (r = this._map.getProjection().unproject(t.lnglat[0], t.lnglat[1]))[0], r = r[1], t = { type: s, id: t.id, name: t.name, lnglat: new st.LngLat(e, r), originEvent: n.originEvent }, this._map.emit(s, t)) }, n.prototype.ii = function(t) { var i, n;
|
||
this._map.getStatus().keyboardEnable && (i = this._map.getZoom(), n = this._map.getRotation(), "=" === t.key ? this._map.setZoom(i + 1, !0) : "-" === t.key && this._map.setZoom(i - 1, !0), t.ctrlKey ? "ArrowLeft" === t.key ? this._map.setRotation(n - 90, !0) : "ArrowRight" === t.key && this._map.setRotation(n + 90, !0) : "ArrowUp" === t.key ? this._map.panBy(0, 300) : "ArrowDown" === t.key ? this._map.panBy(0, -300) : "ArrowLeft" === t.key ? this._map.panBy(300, 0) : "ArrowRight" === t.key && this._map.panBy(-300, 0)) }; var ht = n;
|
||
|
||
function n(t) { this.Ht = "false", this.oB = "false", this.nB = 0, this.dH = 0, this.aB = 0, this.rB = 0, this.mi = { yi: null, xi: null }, this._map = t, this._container = this._map.getMapsContainer(), this.ft = new K(this._container, t), this.ft.enable(), this.oi = new nt(this._container, t), this.oi.enable(), this.fi = new Q(this._container, t), this.fi.enable(), this.ni = new $(this._container, t), this.ni.enable(), this.ei = new rt(this._container, t), this.ei.enable() } var at, ut = new st.rW({}),
|
||
ft = (at = st.Event, st.Ei(ct, at), ct.prototype.lo = function() { return this.Oo }, ct.prototype.destroy = function() {}, ct.prototype.Fo = function(t) {!t || t === this.Oo || this.pS || this.Oo || (this.pS = !0, this.Oo = !0, this.emit("complete")) }, ct.prototype.VE = function(t, i, n) { for (var s = this.lZ(), e = [], r = 0; r < t.length; r++) { var o = t[r],
|
||
o = st.ProjectionManager.getProjection("EPSG:3857").unproject(o[0], o[1]);
|
||
e.push(o) } var h = s.boundsP16;
|
||
i && "china" === i ? h = [h[0]] : i && "oversea" === i && (h = s.nebulaOutSea); for (var a = 0; a < h.length; a++) { var u = h[a]; if (ut.isRingInRingByOutsea(e, u[0])) return !0 } return !1 }, ct.prototype.rG = function(t, i) { for (var n = this.lZ(), s = [], e = 0; e < t.length; e++) { var r = t[e],
|
||
r = st.ProjectionManager.getProjection("EPSG:3857").unproject(r[0], r[1]);
|
||
s.push(r) } for (var o = n.boundsP16, h = 0; h < o.length; h++) { var a = o[h]; if (ut.isRingInRingByMapbox(s, a[0])) return !0 } return !1 }, ct.prototype.aU = function(t, i) { for (var n = this.lZ(), s = [], e = 0; e < t.length; e++) { var r = t[e],
|
||
r = st.ProjectionManager.getProjection("EPSG:3857").unproject(r[0], r[1]);
|
||
s.push(r) } for (var o = n.boundsP16, h = 0; h < o.length; h++) { var a = o[h]; if (ut.isRingInRingByMapboxB(s, a[0])) return !0 } return !1 }, ct.prototype.sU = function(t) { for (var i = this.lZ().boundsP16, n = i.length, s = t.projectionId, e = [], r = 0; r < n; r++) { var o = i[r],
|
||
o = st.V[s].Xs(o[0], o[1], 16);
|
||
e.push(o[0]), e.push(o[1]) } return e }, ct.prototype.UH = function(t) {}, ct.prototype.Eo = function() { this.map.setNeedUpdate(!0) }, ct.prototype.lZ = function() { var t = this.map.getOutseaDataType(); return st.vZ(t) }, st.dZ([st.pZ("Source")], ct));
|
||
|
||
function ct(t, i, n, s) { var e = at.call(this) || this; return e.map = n, e.layer = s, e.Oo = !1, e.pS = !1, e._id = t.id, e.Wt = t.type, e._tileUrl = t.tileUrl, t.url && (e.$o = t.url), e }
|
||
Object.defineProperty(dt.prototype, "size", { get: function() { return st.keys(this.VL).length }, eb: !1, nb: !0 }), dt.prototype.clear = function() { this.VL = {} }, dt.prototype.set = function(t, i) { this.VL[t] = i }, dt.prototype.get = function(t) { return this.VL[t] }, dt.prototype.delete = function(t) { delete this.VL[t] }, dt.prototype.has = function(t) { return void 0 !== this.VL[t] }; var lt = dt;
|
||
|
||
function dt() { this.VL = {} } var o = "newer",
|
||
h = "older",
|
||
s = (e.prototype.Uo = function(t) { var i = this.Bo;
|
||
(this.Bo = t) < i && this.MN() }, e.prototype.keys = function() { return new pt(this.Wo) }, e.prototype.values = function() { return new yt(this.Wo) }, e.prototype.entries = function() { return this }, e.prototype.forEach = function(t, i) { "object" != typeof i && (i = this); for (var n = this.Wo; n;) t.call(i, n.value, n.key, this), n = n[o] }, e.prototype.toJSON = function() { for (var t = new Array(this.size), i = 0, n = this.Wo; n;) t[i++] = { key: n.key, value: n.value }, n = n[o]; return t }, e.prototype.toString = function() { for (var t = "", i = this.Wo; i;) t += String(i.key) + ":" + i.value, (i = i[o]) && (t += " < "); return t }, e.prototype.Go = function(t) { t !== this.Zo && (t[o] && (t === this.Wo && (this.Wo = t[o]), t[o][h] = t[h]), t[h] && (t[h][o] = t[o]), t[o] = void 0, t[h] = this.Zo, this.Zo && (this.Zo[o] = t), this.Zo = t) }, e.prototype.assign = function(t) { for (var i, n = this.Bo || Number.MAX_VALUE, s = (this.qo.clear(), t), e = s.next(); !e.done; e = s.next()) { var r = new vt(e.value[0], e.value[1]); if (this.qo.set(r.key, r), i ? (i[o] = r)[h] = i : this.Wo = r, i = r, 0 == n--) throw new Error("overflow") }
|
||
this.Zo = i, this.size = this.qo.size }, e.prototype.get = function(t, i) { if (t = this.qo.get(t)) return i && this.Go(t), t.value }, e.prototype.set = function(t, i) { var n = this.qo.get(t); return n ? (n.value = i, this.Go(n)) : (this.qo.set(t, n = new vt(t, i)), this.Zo ? (this.Zo[o] = n)[h] = this.Zo : this.Wo = n, this.Zo = n, ++this.size, this.size > this.Bo && this.MN()), this }, e.prototype.shift = function() { var t = this.Wo; if (t) return this.Wo[o] ? (this.Wo = this.Wo[o], this.Wo[h] = void 0) : (this.Wo = void 0, this.Zo = void 0), t[o] = t[h] = void 0, t.value.destroy(), this.qo.delete(t.key), --this.size, [t.key, t.value] }, e.prototype.find = function(t) { return (t = this.qo.get(t)) ? t.value : void 0 }, e.prototype.has = function(t) { return this.qo.has(t) }, e.prototype.delete = function(t) { if (t = this.qo.get(t)) return this.qo.delete(t.key), t[o] && t[h] ? (t[h][o] = t[o], t[o][h] = t[h]) : t[o] ? (t[o][h] = void 0, this.Wo = t[o]) : t[h] ? (t[h][o] = void 0, this.Zo = t[h]) : this.Wo = this.Zo = void 0, this.size--, t.value }, e.prototype.clear = function() { this.Wo = this.Zo = void 0, this.size = 0, this.qo.clear() }, e.prototype.AN = function(t) { return "loaded" !== t.value.status || (t = t.value.stamp) && this.wN && t === this.wN }, e.prototype.QF = function(t) { this.wN = t }, e.prototype.MN = function() { if (this.Wo && this.Zo)
|
||
for (var t = this.Wo, i = this.Zo.key; t && i && t.key !== i;) { if (this.AN(t)) this.Go(t);
|
||
else if (this.shift(), this.size <= this.Bo) return;
|
||
t = this.Wo } }, e);
|
||
|
||
function e(t, i) { this.entries = i, "number" != typeof(this.Bo = t) && (i = t, t = 0), this.size = 0, this.Bo = t, this.Wo = this.Zo = void 0, this.qo = new("undefined" != typeof Map ? Map : lt), i && (this.assign(i), t < 1) && (this.Bo = this.size) } var vt = function(t, i) { this.key = t, this.value = i, this[o] = void 0, this[h] = void 0 },
|
||
pt = (mt.prototype.next = function() { var t = this.Yo; return t ? (this.Yo = t[o], { done: !1, value: t.key }) : { done: !0, value: void 0 } }, mt);
|
||
|
||
function mt(t) { this.Vo = t }
|
||
bt.prototype.next = function() { var t = this.Yo; return t ? (this.Yo = t[o], { done: !1, value: t.value }) : { done: !0, value: void 0 } }; var yt = bt;
|
||
|
||
function bt(t) { this.Vo = t }
|
||
gt = s, st.Ei(wt, gt), wt.prototype.shift = function() { var t = this.Wo; if (t) return this.Wo[o] ? (this.Wo = this.Wo[o], this.Wo[h] = void 0) : (this.Wo = void 0, this.Zo = void 0), t[o] = t[h] = void 0, this.qo.delete(t.key), this.emit("delete", { key: t.key }), --this.size, [t.key, t.value] }, wt.prototype.on = function(t, i, n, s) { void 0 === n && (n = this), void 0 === s && (s = !1); for (var e = 0, r = Array.isArray(t) ? t : [t]; e < r.length; e++) { var o = r[e];
|
||
this._on(o, i, n, s) } return this }, wt.prototype.off = function(t, i, n) { void 0 === n && (n = this); var s = this.vI; if (t in s)
|
||
for (var e = 0; e < s[t].length; e += 1)
|
||
if (s[t][e].fn === i && s[t][e].context === n) return s[t].splice(e, 1), this;
|
||
return this }, wt.prototype.hasEvents = function(t, i, n) { void 0 === n && (n = this); var s = this.vI; if (t && i && t in s)
|
||
for (var e = 0; e < s[t].length; e += 1)
|
||
if (s[t][e].fn === i && s[t][e].context === n) return !0;
|
||
return !1 }, wt.prototype.clearEvents = function(t) { return t ? this.vI[t] && delete this.vI[t] : this.vI = {}, this }, wt.prototype.emit = function(t, i) { if (void 0 === i && (i = {}), t in this.vI)
|
||
for (var n = st.Ln(st.Ln({}, i), { type: t }), s = this.vI[t], e = 0, r = s.length; e < r; e += 1) { var o = s[e];
|
||
o.fn && (o.fn.call(o.context, n), o.once) && (this.vI[t].splice(e, 1), --e, --r) }
|
||
return this }, wt.prototype._on = function(t, i, n, s) { var e; return void 0 === s && (s = !1), this.hasEvents(t, i, n = void 0 === n ? this : n) || ((e = this.vI)[t] = e[t] || [], e[t].push({ fn: i, context: n || this, once: s })), this }; var gt, Mt = wt;
|
||
|
||
function wt() { var t = null !== gt && gt.apply(this, arguments) || this; return t.vI = {}, t }
|
||
kt = st.Event, st.Ei(At, kt), At.prototype.QF = function(t) { this.Ho.QF(t) }, At.prototype.Xo = function(t) { this.Ho.Uo(t) }, At.prototype.Jo = function(t) { var i = this.ia(t.zo);
|
||
this.keys[i] = 1, this.Ho.set(i, t) }, At.prototype.Qo = function(t) { var i = this.ia(t.zo);
|
||
this.Ho.set(i, t) }, At.prototype.getTile = function(t, i) { return void 0 === i && (i = !0), this.Ko(t) ? this.Ho.get(this.ia(t), i) : null }, At.prototype.xf = function(t, i) { return void 0 === i && (i = !1), this.Ho.has(t) ? this.Ho.get(t, i) : null }, At.prototype.ea = function(t) { var i = this.ia(t.zo); return !!this.Ko(t.zo) && (this.Ho.delete(i), delete this.keys[i], !0) }, At.prototype.Ko = function(t) { return t = this.ia(t), !!this.Ho.has(t) }, At.prototype.destroy = function() { this.Ho.clear() }, At.prototype.forEach = function(t) { this.Ho.forEach(t) }, At.prototype.ia = function(t) { var i; return t.key || (i = t.z + "," + t.x + "," + t.y, t.key = i) }; var kt, xt = st.dZ([st.pZ("TileCache")], At);
|
||
|
||
function At(t) { void 0 === t && (t = 500); var i = kt.call(this) || this; return i.keys = {}, i.na = t, i.Ho = new Mt(i.na), i }
|
||
zt = xt, st.Ei(Tt, zt), Tt.prototype.MD = function(t, i) { void 0 === i && (i = st.zB.ALL); var n = ""; return t ? i !== t && (n = "all" === t ? "" : i === st.zB.ALL ? t ? t === st.zB.LITE ? st.zB.LEFT : st.zB.LITE : st.zB.ALL : i) : n = i, n }, Tt.prototype.ea = function(t) { return t.rN(), zt.prototype.ea.call(this, t) }; var zt, Ct = Tt;
|
||
|
||
function Tt(t) { return t = zt.call(this, t = void 0 === t ? 500 : t) || this, st.Event.extend("delete", t.Ho, t), t }
|
||
St = xt, st.Ei(Lt, St); var St, It = Lt;
|
||
|
||
function Lt(t) { return t = St.call(this, t = void 0 === t ? 500 : t) || this, st.Event.extend("delete", t.Ho, t), t }
|
||
Ot.prototype.Uo = function(t) { this.Bo = t }, Ot.prototype._B = function(t, i, n, s) { void 0 === s && (s = this.Bo); for (var e = n || "china", r = 0; r < t.length; r += s) { var o = t.slice(r, r + s),
|
||
h = this.qN++,
|
||
o = { wD: this.target(o, h, i, e), ZN: o, id: h };
|
||
this.KN.push(o), this.YN[h] = o } }, Ot.prototype.qH = function(t) { for (var i = [], n = [], s = 0, e = this.KN; s < e.length; s++)
|
||
for (var r = e[s], o = 0; o < r.ZN.length; o++) { var h = r.ZN[o]; if (this.QN(t, h)) { Array.prototype.push.apply(i, r.ZN); break }
|
||
o === r.ZN.length - 1 && n.push(r) }
|
||
for (var a = 0, u = n; a < u.length; a++) {
|
||
(r = u[a]).wD && r.wD.cancel(); var f = this.KN.indexOf(r);
|
||
this.KN.splice(f, 1), delete this.YN[r.id], this.JN(r.ZN) } return { yB: i, SB: n } }, Ot.prototype.QN = function(t, i) { return -1 < t.indexOf(i.slice(0, -2)) }, Ot.prototype.CB = function(t) { var i = this.YN[t];
|
||
delete this.YN[t], i && (t = this.KN.indexOf(i), this.KN.splice(t, 1)) }; var Dt = Ot;
|
||
|
||
function Ot(t, i, n) { void 0 === n && (n = 5), this.target = t, this.JN = i, this.Bo = n, this.qN = 0, this.KN = [], this.YN = {} } var Et, Rt = st.Support.scale,
|
||
s = (Et = ft, st.Ei(r, Et), r.prototype.loadData = function(t, i, n, s) { var e = this; if ("optimise" === s.loadData() && s.TL()) return !1;
|
||
this.aa = t, this.sa = []; for (var r = t.bounds, o = this.ra(t.optimalZoom), h = this.ha(r, o), a = [], u = t.optimalZoom, r = st.map(h, function(t) { var i = e.fa(t.x, t.z); return t.z + "," + i + "," + t.y }), f = this.QH.qH(r), c = [], l = 0; l < h.length; l++) { var d, v, p = h[l],
|
||
m = new st.ca(p.z, this.fa(p.x, p.z), p.y),
|
||
y = new st.ca(p.z, p.x, p.y),
|
||
b = st.Util.kD(m.key, u),
|
||
g = this.ua.getTile(m, !0);
|
||
g ? (d = this.ua.MD(g.tag, b)) && (g.tag = b, v = p.key + "," + st.Util.SD(d), f.yB.indexOf(v) < 0) && c.push(v) : (v = m.key + "," + st.Util.SD(b), f.yB.indexOf(v) < 0 && ((m = new st.pa(m)).status = st.TileState.LOADING, m.xB = st.TileState.LOADING, this.ua.Jo(m), m.tag = b, m.gB = b, c.push(v))), !g || g.status !== st.TileState.LOADED && g.status !== st.TileState.RELOADING || this.sa.push(y), g && (g.status === st.TileState.LOADED || g.status === st.TileState.RELOADING) || a.push(p), g && g.status === st.TileState.LOADED && g.version && g.version !== this.VH && (this.sa.push(y), g.status = st.TileState.RELOADING, c.push(p.key + "," + st.Util.SD(g.tag)), d = this.ua.MD(g.tag, b)) && (v = p.key + "," + st.Util.SD(d), f.yB.indexOf(v) < 0) && c.push(v) }
|
||
this.da(t, this.sa, a, s); var M, w, k, x, r = this.map.getOutseaState(),
|
||
A = this.map.getOutseaDataType(); return this.map.Dpt ? 9.8 <= o ? (M = (k = this.Opt(c)).overseaTile, x = k.chinaTile, this.PE(M, "oversea"), this.PE(x, "china"), this.zD(x, t, o, s, n), this.zD(M, t, o, s, n, void 0, "outsea_newNebula")) : (this.PE(c, "china"), this.zD(c, t, o, s, n, void 0)) : r && !A ? 9.8 <= o ? (M = (k = this.OE(c)).overseaTile, x = k.chinaTile, w = k.mapboxTile, this.PE(M, "oversea"), this.PE(x, "china"), this.PE(w, "mapbox"), this.zD(x, t, o, s, n), this.zD(M, t, o, s, n, void 0, "outsea")) : (this.PE(c, "china"), this.zD(c, t, o, s, n, void 0, "a00")) : r && A && "mapbox" === A ? 9.8 <= u ? (x = (k = this.OE(c)).chinaTile, this.PE(x, "china"), this.zD(x, t, o, s, n, void 0)) : (this.PE(c, "china"), this.zD(c, t, o, s, n, void 0, "a00")) : (this.PE(c, "china"), this.zD(c, t, o, s, n, void 0)), 0 === c.length }, r.prototype.getData = function(i) { var n = this,
|
||
t = i.bounds,
|
||
s = this.ra(i.optimalZoom),
|
||
e = this.ha(t, s),
|
||
r = [],
|
||
o = {},
|
||
h = (14 === s && (o = this.ha(t, 15, !0)), this.map.qF()); if (this.ua.QF(h), this.sa.sort(function(t) { return n.ra(i.optimalZoom) === t.z ? 1 : -1 }), 0 < this.sa.length)
|
||
for (var a = 0; a < this.sa.length; a++) { var u, f = this.sa[a],
|
||
c = this.ua.getTile(f, !0),
|
||
l = 0,
|
||
d = 0,
|
||
v = [0, 0],
|
||
p = i.centerCoord;
|
||
c ? (p = st.lcs.getLocalByCoord([p[0], p[1]]), i.optimalZoom >= st.Ra ? (u = st.lcs.getSize(), l = c.localCoord.x - p.x, d = c.localCoord.y - p.y, 0 != l && (l *= u[0], v[0] = l), 0 != d && (d *= u[1], v[1] = d), i.optimalZoom >= st.Ra && st.za >= c.zo.z && (v[0] = -p.center[0], v[1] = -p.center[1])) : i.optimalZoom < st.Ra && st.za < c.zo.z && (v[0] = p.center[0], v[1] = p.center[1])) : (l = new st.ca(f.z, this.fa(f.x, f.z), f.y), (d = this.ua.getTile(l, !0)) && (c = new st.pa(f), u = 1 << f.z, (f.x < 0 || f.x >= u) && (p = Math.floor(f.x / u), v[0] += 20037508.342789244 * p * 2), l = d.tag, c.Ro = d.Ro, c.ID(d), c.Sa = v, c.status = d.status, c.tag = l)), c && (c.stamp = h, c.Sa = v, r.push(c)) }
|
||
var m = i.optimalZoom,
|
||
t = st.every(e, function(s) { return st.some(r, function(t) { var i = t.zo.key,
|
||
n = t.zo.z,
|
||
n = st.Util.VF(n, m),
|
||
t = t.tag,
|
||
t = st.Util.LD(t, n); return i === s.key && t }) }),
|
||
y = this.map.getOutseaState(),
|
||
b = this.map.getOutseaDataType(),
|
||
e = (y && !b ? t = !(b = st.filter(e, function(t) { return !(t = n.NE.getTile(t)) || !t.boundsStatus || !1 !== t.boundsStatus.isInNebulaOversea })).length || st.every(b, function(s) { return st.some(r, function(t) { var i = t.zo.key,
|
||
n = t.zo.z,
|
||
n = st.Util.VF(n, m),
|
||
t = t.tag,
|
||
t = st.Util.LD(t, n); return i === s.key && t }) }) : this.map.Dpt && (t = !0), this.jE(r)),
|
||
b = (t && (this.a_ = !0, this.map.bZ.dynamic.set("firstAllLoaded", !0)), e && this.map.bZ.dynamic.set("firstLabelDataAllLoaded", !0), { s_: this.a_, fo: !!t && e, yZ: e, tiles: r, Ca: o, outseaData: void 0 }); return 0 !== r.length && !t || this.Fo(!0), y && r.length && (e = this.map.bZ.MZ.wZ.gZ(), b.outseaData = e), b.tiles = this.UE(r, s), b }, r.prototype.Opt = function(t) { for (var i = t.length, n = [], s = [], e = 0; e < i; e++) { var r = void 0,
|
||
o = t[e],
|
||
h = o.split(","),
|
||
a = parseInt(h[0], 10),
|
||
u = parseInt(h[1], 10),
|
||
f = parseInt(h[2], 10),
|
||
a = new st.ca(a, u, f); if ((u = this.NE.getTile(a)) && u.boundsStatus) r = u.boundsStatus.isInChina;
|
||
else { if (!(f = st.wa.ga(parseInt(h[1], 10), parseInt(h[2], 10), parseInt(h[0], 10), "EPSG:3857"))) continue;
|
||
u = [
|
||
[f[0], f[1]],
|
||
[f[2], f[1]],
|
||
[f[2], f[3]],
|
||
[f[0], f[3]]
|
||
], r = this.VE(u, "china", o), (h = new st.pa(a)).boundsStatus = { isInChina: r }, this.NE.Jo(h) }(r ? n : s).push(o) } return { chinaTile: n, overseaTile: s } }, r.prototype.pe = function(t) { return t = new st.ca(t[0], t[1], t[2]), this.ua.getTile(t) }, r.prototype.ZE = function(t) { return !1 }, r.prototype.OE = function(t) { for (var i = t.length, n = [], s = [], e = [], r = 0; r < i; r++) { var o = void 0,
|
||
h = void 0,
|
||
a = t[r],
|
||
u = a.split(","),
|
||
f = new st.ca(u[0], u[1], u[2]),
|
||
c = this.NE.getTile(f); if (c && c.boundsStatus) o = c.boundsStatus.isInChina, h = c.boundsStatus.isInNebulaOversea;
|
||
else { if (!(c = st.wa.ga(parseInt(u[1], 10), parseInt(u[2], 10), parseInt(u[0], 10), "EPSG:3857"))) continue;
|
||
u = [
|
||
[c[0], c[1]],
|
||
[c[2], c[1]],
|
||
[c[2], c[3]],
|
||
[c[0], c[3]]
|
||
], o = this.VE(u, "china", a), h = this.VE(u, "oversea", a), (c = new st.pa(f)).boundsStatus = { isInChina: o, isInNebulaOversea: h }, this.NE.Jo(c) }
|
||
o && n.push(a), h && s.push(a), o || h || e.push(a) } return { chinaTile: n, overseaTile: s, mapboxTile: e } }, r.prototype.ra = function(t) { return ("fast" !== this.map.bZ.MZ.drawMode || this.map.bZ.dynamic.get("firstPaint") ? { 2: 3, 3: 3, 4: 3, 5: 3, 6: 6, 7: 6, 8: 8, 9: 8, 10: 10, 11: 10, 12: 10, 13: 12, 14: 12, 15: 14, 16: 14, 17: 14, 18: 14, 19: 14, 20: 14, 21: 14, 22: 14, 23: 14, 24: 14, 25: 14, 26: 14, 27: 14, 28: 14, 29: 14, 30: 14 } : { 2: 3, 3: 3, 4: 3, 5: 3, 6: 6, 7: 6, 8: 8, 9: 8, 10: 8, 11: 8, 12: 8, 13: 12, 14: 12, 15: 14, 16: 14, 17: 14, 18: 14, 19: 14, 20: 14, 21: 14, 22: 14, 23: 14, 24: 14, 25: 14, 26: 14, 27: 14, 28: 14, 29: 14, 30: 14 })[t] }, r.prototype.Ept = function(t) { return { 10: 10, 11: 10, 12: 10, 13: 12, 14: 12, 15: 14, 16: 14, 17: 14, 18: 14, 19: 14, 20: 14, 21: 14, 22: 14 }[t] }, r.prototype.YE = function(t) { var i = this; return t(null, { GW: "worker", cb: function(t) { i.dynamicTextVerticeLoadedByTile(t) } }), !0 }, r.prototype.destroy = function() { this.ua.forEach(function(t) { t.status !== st.TileState.LOADED && t.request && (t.request.cancel(), delete t.request), t.destroy() }), this.ua.destroy(), this.sa = [], this.la = [], this.mapStyle && this.mapStyle.destroy && (this.mapStyle.destroy(), delete this.mapStyle), this.R_ && this.R_.destroy && (this.R_.destroy(), delete this.R_) }, r.prototype.reload = function() { this.ua.forEach(function(t) { t.status !== st.TileState.LOADED && t.request && (t.request.cancel(), delete t.request), t.reload() }), this.sa = [], this.la = [] }, r.prototype.Aa = function(t) { var i;
|
||
t.zo && (i = this.ua.getTile(t.zo)) && (i.rO({ Ta: !0 }, t.tag), i.xa({ Ta: !0 }, t.tag), i.JE({ Ta: !0 }, t.tag)) }, r.prototype.setTileCacheSize = function(t) { t = t || (st.Support.$e ? 50 : 200), this.ua.Xo(t) }, r.prototype.UH = function(t) { this.VH = t }, r.prototype.dynamicTextVerticeLoaded = function(t) { console.log("errorr") }, r.prototype.dynamicTextVerticeLoadedByTile = function(t) { for (var i = 0, n = t.data; i < n.length; i++) { var s = n[i];
|
||
this.dynamicTextVerticeLoaded({ data: s.data, tag: s.tag, XE: s.XE }) } }, r.prototype.Ia = function() { this.map.on("tileSdfInfoFinished", this.Aa.bind(this)) }, r.prototype.zD = function(t, i, n, s, e, r, o) { void 0 === r && (r = "road,building,region"); var a = {},
|
||
h = ((h = this.cP()) && (a = h.getState().vS), a = st.Ln(st.Ln({}, a), { buildingColor: st.Ln({}, s.getBuildingColor()) }), { zoom: i.zoom, optimalZoom: i.optimalZoom, projectionId: i.projectionId, mS: a, viewMode: i.viewMode, showBuildingBlock: this.map.yS(), ZL: i.zoom, hH: r });
|
||
this.QH._B(t, h, o) }, r.prototype.cP = function() { for (var t, i = this.map.getLayers(), n = 0; n < i.length; n++)
|
||
if ("AMap.Buildings" === (s = i[n]).CLASS_NAME && !s.getState().u$) { t = s; break }
|
||
if (!t)
|
||
for (var s, n = 0; n < i.length; n++)
|
||
if ("AMap.Buildings" === (s = i[n]).CLASS_NAME) { t = s; break }
|
||
return t }, r.prototype.ma = function(t, i) { var n, s = new RegExp(/\{(\w|\,)+\}/g); return s.test(this._tileUrl) ? (n = this._tileUrl.match(s)[0].replace(/[\{|\}]/g, "").split(","), this._tileUrl.replace(s, n[(t + i) % 4])) : this._tileUrl }, r.prototype.Ppt = function() { var t = AMap.getConfig().protocol + "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/web/rendering/vdata/abroad/getTiles",
|
||
i = new RegExp(/\{(\w|\,)+\}/g),
|
||
n = t.match(i)[0].replace(/[\{|\}]/g, "").split(","),
|
||
s = n.length,
|
||
t = t.replace(i, n[this.$D % s]); return this.$D = (this.$D + 1) % s, t }, r.prototype.AD = function() { var t = new RegExp(/\{(\w|\,)+\}/g),
|
||
i = this._tileUrl.match(t)[0].replace(/[\{|\}]/g, "").split(","),
|
||
n = i.length,
|
||
t = this._tileUrl.replace(t, i[this.$D % n]); return this.$D = (this.$D + 1) % n, t }, r.prototype.ha = function(t, i, n) { void 0 === n && (n = !1); var s = [t[0], t[3]],
|
||
t = [t[2], t[1]],
|
||
s = this.Ga(s, i),
|
||
t = this.Ga(t, i),
|
||
e = s[0],
|
||
r = s[1],
|
||
o = t[0],
|
||
h = t[1]; if (n) return { ja: e, Fa: r, Oa: o, Ea: h, z: i };
|
||
this.Pa = { ja: e, Fa: r, Oa: o, Ea: h, z: i }; for (var a = [], u = e; u <= o; u += 1)
|
||
for (var f = r; f <= h; f += 1) a.push(new st.ca(i, u, f)); return this.Da(a), a }, r.prototype.da = function(t, i, n, s) { var e = [3, 6, 8, 10, 12, 14],
|
||
r = this.ra(t.optimalZoom); if (this.Za)
|
||
for (var o = Math.min(14, r + 3), h = r + 1; n.length && h <= o; h += 1)
|
||
if (-1 !== e.indexOf(h)) { for (var a = h - r, u = [], f = [], c = n.length - 1; 0 <= c; --c)
|
||
for (var l = n[c].x << a, d = n[c].y << a, v = 1 << a; 0 <= v; --v)
|
||
for (var p = 1 << a; 0 <= p; --p) { var m = new st.ca(h, this.fa(l + v, h), d + p),
|
||
y = new st.ca(h, l + v, d + p);
|
||
((M = this.ua.getTile(m, !0)) && M.status === st.TileState.LOADED ? f : u).push(y) }
|
||
f.length && i.push.apply(i, f), n = u }
|
||
if (this.qa)
|
||
for (var b = this.xt[0], h = r - 1; n.length && b <= h; --h)
|
||
if (-1 !== e.indexOf(h)) { for (var f = [], u = [], g = {}, c = n.length - 1; 0 <= c; --c) { var M, w = n[c],
|
||
a = h,
|
||
k = w.z - a,
|
||
v = w.x >> k,
|
||
p = w.y >> k;
|
||
g[w = (m = new st.ca(a, v, p)).key] || (k = new st.ca(a, this.fa(v, a), p), y = new st.ca(a, v, p), M = this.ua.getTile(k, !0), g[w] = !0, (M && M.status === st.TileState.LOADED ? f : u).push(y)) }
|
||
f.length && i.push.apply(i, f), n = u }
|
||
return i }, r.prototype.Da = function(t) { var e, r, o;
|
||
t.length && (e = this.Pa.z, r = (this.Pa.ja + this.Pa.Oa) / 2, o = (this.Pa.Fa + this.Pa.Ea) / 2, t.sort(function(t, i) { var n = (t.x << e - t.z) - r,
|
||
t = (t.y << e - t.z) - o,
|
||
s = (i.x << e - i.z) - r; return n * n + t * t <= s * s + (i = (i.y << e - i.z) - o) * i ? -1 : 1 })) }, r.prototype.Ga = function(t, i) { var n = 180 / (i = Math.pow(2, i)); return [Math.floor(t[0] / (360 / i)) + i / 2, i / 2 - Math.ceil(t[1] / n)] }, r.prototype.fa = function(t, i) { for (var n = 1 << (i = i || this.aa.optimalZoom); t < 0 || n <= t;) t = n <= t ? t - n : t < 0 ? n + t : t; return t }, r.prototype.sD = function() { var e, r, o = this;
|
||
this.map.bZ.dynamic.get("_preloadNebulaIcons") || (this.map.bZ.dynamic.set("_preloadNebulaIcons", !0), e = this.hD, (r = this.z_).loadImages(e, { type: "icon", imageBitmap: st.Support.imageBitmap, cb: function() { for (var t = [], i = 0; i < e.length; i++) { var n = e[i],
|
||
s = r.getImage(n);
|
||
t.push({ img: s.img, name: n, hv: i, width: s.width, height: s.height }) }
|
||
o.map.so.sv(t) } }, { poiImgVersion: this.ymt, bmt: this.Bdt })) }, r.prototype.PE = function(t, i) { for (var n = 0, s = t; n < s.length; n++) { var e = s[n].split(",").slice(0, 3).join(",");
|
||
(e = this.ua.xf(e)) && (e.region = i) } }, r.prototype.UE = function(t, i) { void 0 === t && (t = []); var n = []; if (10 <= i) { for (var s = 0, e = t; s < e.length; s++) { var r = e[s]; "china" !== r.region && "oversea" !== r.region || n.push(r) } return n } return t }, r.prototype.jE = function(t) { for (var i = !!t.length, n = 0, s = t; n < s.length; n++) { var e = s[n].data; if (i)
|
||
for (var r = 0, o = e; r < o.length; r++) { var h = o[r]; if (!(i = i && !!h.Ta)) break } } return i }, r);
|
||
|
||
function r(t, i, n, s) { var a = Et.call(this, t, i, n, s) || this,
|
||
i = (a.xt = st.zoomRange, a.sa = [], a.la = [], a.qa = !0, a.Za = !0, a.a_ = !1, a.$D = 0, a.hD = [AMap.getConfig().protocol + "://c-webapi.amap.com/style_icon/2.0/icon-normal-big.png", AMap.getConfig().protocol + "://c-webapi.amap.com/style_icon/2.0/icon-biz-big.png"], a.VH = "", a.Bdt = "", a.ymt = "", a.wH = function(t) {!a.map.yH || parseInt(t.key.split(",")[0], 10) < 10 || a.map.yH.kH(t.key) }, a.Xa = t.tileSize, a._tileUrl = t.tileUrl, a.tG = null, st.Support.$e ? 30 : 200); return a.ua = new Ct(i), a.NE = new It(i), n.Wdt && (a.hD = n.Wdt), window.xZ = a.ua, n.gn.Ha({ scale: Rt, showLabel: n.showLabel, DD: -1 !== location.search.indexOf("forceAll") }), a.R_ = n.R_, a.z_ = n.z_, n.gn.Ja(AMap.getConfig().protocol), a.Bdt = AMap.getConfig().key, a.ymt = AMap.getConfig().poiImgVersion, a.mapStyle = n.mapStyle, a.mapStyle.pn(function(t) { n && n.gn && n.gn.Ka({ value: t, TY: "fast" === a.map.bZ.MZ.drawMode }) }), a.Ia(), a.sD(), a.ua.on("delete", a.wH), a.QH = new Dt(function(t, o, i, h) { var n = a.AD(),
|
||
s = a.map.bZ.dynamic.get("firstLabelDataAllLoaded") || !1; return h && "outsea_newNebula" === h ? n = a.Ppt() : (!h || "outsea" !== h && "a00" !== h || (n = n.replace("/nebula/", "/oversea/")), !s && st.Support.wasm && (n = n.replace("/v3", "/v2"))), h && "outsea_newNebula" === h ? new st.vH(a.map.gn.Rpt({ url: n, zoom: i.zoom, optimalZoom: i.optimalZoom, projectionId: i.projectionId, mS: i.mS, viewMode: i.viewMode, showBuildingBlock: i.showBuildingBlock, ya: t, ZL: i.zoom, hH: i.hH, kZ: s }, function(t) { a.QH.CB(o); for (var i = 0, n = t; i < n.length; i++) { var s, e = n[i],
|
||
r = e && a.ua.getTile(e.zo);
|
||
r && (delete r.request, r.xa(e.ba, e.tag), a.map.Mv.t0(r.zo), r.status = st.TileState.LOADED, e = st.wa.ga(r.zo.x, r.zo.y, r.zo.z, "EPSG:3857"), s = st.lcs.getLocalByCoord([e[0], e[1]]), r.localCoord = s, r.Ro = e, a.map.mm) && r.LY(a.map.mm.context) }
|
||
a.map.setNeedUpdate(!0) })) : new st.vH(a.map.gn.va({ url: n, zoom: i.zoom, optimalZoom: i.optimalZoom, projectionId: i.projectionId, mS: i.mS, viewMode: i.viewMode, showBuildingBlock: i.showBuildingBlock, ya: t, ZL: i.zoom, hH: i.hH, kZ: s }, function(t) { a.QH.CB(o); for (var i = 0, n = t; i < n.length; i++) { var s, e = n[i],
|
||
r = e && a.ua.getTile(e.zo);
|
||
r && (delete r.request, h && "outsea" === h ? r.JE(e.ba, e.tag) : r.xa(e.ba, e.tag), a.map.Mv.t0(r.zo), r.status = st.TileState.LOADED, e = st.wa.ga(r.zo.x, r.zo.y, r.zo.z, "EPSG:3857"), s = st.lcs.getLocalByCoord([e[0], e[1]]), r.localCoord = s, r.Ro = e, a.map.mm) && r.LY(a.map.mm.context) }
|
||
a.map.setNeedUpdate(!0) })) }, function(t) { for (var i = 0, n = t; i < n.length; i++) { var s = n[i];
|
||
(s = a.ua.xf(s.slice(0, -2))) && s.status !== st.TileState.LOADED && a.ua.ea(s) } }, "fast" === n.bZ.MZ.drawMode ? 1 : 5), "fast" === n.bZ.MZ.drawMode && a.map.bZ.dynamic.subscribe("firstPaint", function() { a.QH.Uo(5) }, a, !0), a }
|
||
|
||
function a() {}
|
||
a.prototype.Qa = function(t) { for (var i = this.createEmpty(), n = 0, s = t.length; n < s; n += 1) this.extendCoordinate(i, t[n]); return i }, a.prototype.ns = function(t, i, n) { var s = Math.min.apply(null, t),
|
||
t = Math.max.apply(null, t),
|
||
e = Math.min.apply(null, i),
|
||
i = Math.max.apply(null, i); return this.os(s, t, e, i, n) }, a.prototype.buffer = function(t, i) { t[0] -= i, t[1] -= i, t[2] += i, t[3] += i }, a.prototype.clone = function(t) { return t.slice() }, a.prototype.ss = function(t, i) { return t[0] <= i[0] && i[0] <= t[2] && t[1] <= i[1] && i[1] <= t[3] }, a.prototype.rs = function(t, i) { return t[0] <= i[0] && i[2] <= t[2] && t[1] <= i[1] && i[3] <= t[3] }, a.prototype.createEmpty = function() { return [1 / 0, 1 / 0, -1 / 0, -1 / 0] }, a.prototype.os = function(t, i, n, s, e) { return void 0 !== e ? (e[0] = t, e[2] = i, e[1] = n, e[3] = s, e) : [t, n, i, s] }, a.prototype.empty = function(t) { return t[0] = t[1] = 1 / 0, t[2] = t[3] = -1 / 0, t }, a.prototype.equals = function(t, i) { return t[0] === i[0] && t[2] === i[2] && t[1] === i[1] && t[3] === i[3] }, a.prototype.extend = function(t, i) { i[0] < t[0] && (t[0] = i[0]), i[2] > t[2] && (t[2] = i[2]), i[1] < t[1] && (t[1] = i[1]), i[3] > t[3] && (t[3] = i[3]) }, a.prototype.extendCoordinate = function(t, i) {+i[0] < t[0] && (t[0] = i[0]), +i[0] > t[2] && (t[2] = i[0]), +i[1] < t[1] && (t[1] = i[1]), +i[1] > t[3] && (t[3] = i[1]) }, a.prototype.hs = function(t) { return [t[0], t[1]] }, a.prototype.ls = function(t) { return [t[2], t[1]] }, a.prototype.getCenter = function(t) { return [(t[0] + t[2]) / 2, (t[1] + t[3]) / 2] }, a.prototype.us = function(t, i, n, s, e) { for (var r, o, h = i * s[0] / 2, i = i * s[1] / 2, a = Math.cos(n), u = Math.sin(n), f = [-h, -h, h, h], c = [-i, i, -i, i], l = 0; l < 4; l += 1) r = f[l], o = c[l], f[l] = t[0] + r * a - o * u, c[l] = t[1] + r * u + o * a; return this.ns(f, c, e) }, a.prototype.getHeight = function(t) { return t[3] - t[1] }, a.prototype.getSize = function(t) { return [t[2] - t[0], t[3] - t[1]] }, a.prototype.cs = function(t) { return [t[0], t[3]] }, a.prototype.fs = function(t) { return [t[2], t[3]] }, a.prototype.getWidth = function(t) { return t[2] - t[0] }, a.prototype.intersects = function(t, i) { return t[0] <= i[2] && t[2] >= i[0] && t[1] <= i[3] && t[3] >= i[1] }, a.prototype.isEmpty = function(t) { return t[2] < t[0] || t[3] < t[1] }, a.prototype.normalize = function(t, i) { return [(i[0] - t[0]) / (t[2] - t[0]), (i[1] - t[1]) / (t[3] - t[1])] }, a.prototype.ps = function(t, i) { var n = (t[2] - t[0]) / 2 * (i - 1),
|
||
i = (t[3] - t[1]) / 2 * (i - 1);
|
||
t[0] -= n, t[2] += n, t[1] -= i, t[3] += i }, a.prototype.touches = function(t, i) { return this.intersects(t, i) && (t[0] === i[2] || t[2] === i[0] || t[1] === i[3] || t[3] === i[1]) }, a.prototype.transform = function(t, i, n) { return i(t = [t[0], t[1], t[0], t[3], t[2], t[1], t[2], t[3]], t, 2), this.ns([t[0], t[2], t[4], t[6]], [t[1], t[3], t[5], t[7]], n) }; var jt = new a,
|
||
l = (u.from = function(t) { for (var i = 1 / 0, n = 1 / 0, s = -1 / 0, e = -1 / 0, r = 0, o = t; r < o.length; r++) var h = o[r],
|
||
i = Math.min(i, h.southWest.KL),
|
||
n = Math.min(n, h.southWest.kT),
|
||
s = Math.max(s, h.northEast.KL),
|
||
e = Math.max(e, h.northEast.kT); return new u(new st.LngLat(i, n), new st.LngLat(s, e)) }, u.xS = function(t) { if (t) return t = st.jsonLngLatData(t), new u(jt.Qa(t)) }, u.bS = function(t) { if (t && t.length) { for (var i, n = 0, s = st.jsonLngLatData(t); n < s.length; n++) { var e, r = s[n];
|
||
i ? (e = u.ds(r)) && i.union(e) : i = u.xS(r) } return i } }, u.ds = function(t) { if (t) return t = st.jsonLngLatData(t), st.ys(t) ? u.xS(t) : u.xS(t[0]) }, u.ms = function(t) { if (t && t.length) { for (var i, n = 0, s = st.jsonLngLatData(t); n < s.length; n++) { var e, r = s[n];
|
||
i ? (e = u.ds(r)) && i.union(e) : i = u.ds(r) } return i } }, u.prototype.getSouthWest = function() { return this.southWest }, u.prototype.getNorthEast = function() { return this.northEast }, u.prototype.getNorthWest = function() { return new st.LngLat(this.southWest.KL, this.northEast.kT, !0) }, u.prototype.getSouthEast = function() { return new st.LngLat(this.northEast.KL, this.southWest.kT, !0) }, u.prototype.contains = function(t) { var i, n, s = this.southWest,
|
||
e = this.northEast; return !st.xs(t) && (t = st.parseLngLatData(t), i = s.KL, (n = e.KL) < i && (n += 360), t.KL >= i) && t.kT >= s.kT && t.KL <= n && t.kT <= e.kT }, u.prototype.intersects = function(t) { var i = this.southWest,
|
||
n = this.northEast,
|
||
s = t.southWest,
|
||
e = (t = t.northEast).kT >= i.kT && s.kT <= n.kT,
|
||
t = t.KL >= i.KL && s.KL <= n.KL; return e && t }, u.prototype.getCenter = function() { var t = this.southWest.KL > this.northEast.KL ? (this.southWest.KL + this.northEast.KL + 360) / 2 % 360 : (this.southWest.KL + this.northEast.KL) / 2,
|
||
i = (this.southWest.kT + this.northEast.kT) / 2; return new st.LngLat(t, i) }, u.prototype.extend = function(t) { return this.southWest.setLng(Math.min(this.southWest.KL, t.KL)), this.southWest.setLat(Math.min(this.southWest.kT, t.kT)), this.northEast.setLng(Math.max(this.northEast.KL, t.KL)), this.northEast.setLat(Math.max(this.northEast.kT, t.kT)), this }, u.prototype.union = function(t) { return this.extend(t.southWest).extend(t.northEast) }, u.prototype.toString = function() { return this.southWest.toString() + ";" + this.northEast.toString() }, u.prototype.toJSON = function() { return [this.southWest.lng, this.southWest.lat, this.northEast.lng, this.northEast.lat] }, u.prototype.getWidth = function() { return Math.abs(this.northEast.lng - this.southWest.lng) }, u.prototype.getHeight = function() { return Math.abs(this.southWest.lat - this.northEast.lat) }, u.prototype.clone = function() { return u.from([this]) }, u.prototype.check = function() { return !!(this.northEast && this.southWest && this.northEast.lat && this.southWest.lat) }, u);
|
||
|
||
function u() { this.className = "AMap.Bounds"; var i, n, s, e, r, o = "undefined" != typeof Float64Array; if (1 === arguments.length && (arguments[0] instanceof Array || o && arguments[0] instanceof Float64Array)) e = new st.LngLat(arguments[0][0], arguments[0][1], !0), r = new st.LngLat(arguments[0][2], arguments[0][3], !0);
|
||
else if (2 === arguments.length) e = st.parseLngLatData(arguments[0]), r = st.parseLngLatData(arguments[1]);
|
||
else if (4 === arguments.length) e = new st.LngLat(arguments[0], arguments[1]), r = new st.LngLat(arguments[2], arguments[3]);
|
||
else { if (0 !== arguments.length) throw Error("Invalid Object: Bounds(" + arguments + ")");
|
||
e = new st.LngLat(-180, -90), r = new st.LngLat(180, 90) }(e.KL > r.KL || e.kT > r.kT) && (o = Math.max(e.KL, r.KL), i = Math.min(e.KL, r.KL), n = Math.max(e.kT, r.kT), s = Math.min(e.kT, r.kT), e = new st.LngLat(i, s), r = new st.LngLat(o, n)), this.southWest = e, this.northEast = r }
|
||
Pt = ft, st.Ei(Ft, Pt), Ft.prototype.loadData = function(t, i, n) { return this.ze = i, !(this.Oo && !this.io || !this.map.isDOMMode() && !i || (t = this.c0(t, i, n), this.io ? t(this.io, "canvas") : ((i = new Image).crossOrigin = "", i.onload = t, i.src = this.gs.getImageUrl(), this.Rs = i), 0)) }, Ft.prototype.reLoadImgage = function(t) { var s = this;
|
||
t && this.Rs && ((t = new Image).crossOrigin = "", t.onload = function(t, i) { var n; "image" === (i = void 0 === i ? "image" : i) ? n = t.target: "canvas" === i && (n = t), s._s && s._s.update(n), s.Fo(!0) }, t.src = this.gs.getImageUrl(), this.Rs = t) }, Ft.prototype.c0 = function(t, e, r) { var o = this; return function(t, i) { var n, s;
|
||
void 0 === i && (i = "image"), e && (n = void 0, "image" === i ? (n = t.target, s = n, o._s ? o._s.update(s) : (o._s = e.createTexture(s, { Zi: !0 }), o._s.bind(e.gl.CLAMP_TO_EDGE, e.gl.LINEAR, e.gl.LINEAR)), o.Fo(!0)) : "canvas" === i && (s = o.mmt(n = t, function() { o._s ? o._s.update(s) : (o._s = e.createTexture(s, { Zi: !0 }), o._s.bind(e.gl.CLAMP_TO_EDGE, e.gl.LINEAR, e.gl.LINEAR)), o.Fo(!0) }))), r() } }, Ft.prototype.getData = function(t) { if (this.Oo && this._s) {
|
||
(i = this.gs.getBounds()) instanceof l && (i = i.toJSON()); var n = st.lcs.getLocalByCoord([t.centerCoord[0], t.centerCoord[1]]),
|
||
e = (s = st.ProjectionManager.getProjection(t.projectionId)).project(i[0], i[1]),
|
||
s = s.project(i[2], i[3]),
|
||
r = [0, 0, 0, 0]; if (t.optimalZoom >= st.Ra) { for (var i = st.lcs.getLocalByCoord([e[0], e[1]]), t = st.lcs.getLocalByCoord([s[0], s[1]]), o = st.lcs.getSize(), r = [i.x - n.x, i.y - n.y, t.x - n.x, t.y - n.y], h = 0; h < r.length; h++) 0 !== r[h] && (r[h] *= o[0]);
|
||
r = [r[0] - i.center[0], r[1] - i.center[1], r[2] - t.center[0], r[3] - t.center[1]] } return this.ze && (this.ks = this.ze.fe(new Float32Array([e[0] + r[0], e[1] + r[1], 0, 1, s[0] + r[2], e[1] + r[1], 1, 1, e[0] + r[0], s[1] + r[3], 0, 0, s[0] + r[2], e[1] + r[1], 1, 1, s[0] + r[2], s[1] + r[3], 1, 0, e[0] + r[0], s[1] + r[3], 0, 0]), 16)), { Ro: this.ws, image: this.Rs, texture: this._s, zs: this.ks, Sa: [0, 0] } } }, Ft.prototype.destroy = function() { this.Rs && delete this.Rs, this._s && this._s.destroy && (this._s.destroy(), delete this._s), this.ks && delete this.ks, this.gs }, Ft.prototype.mmt = function(t, i) { var n = new Image; return t ? (n.onload = function(t) { i(n) }, t = t.toDataURL(), n.src = t, n) : (console.log("No canvas element provided."), null) }; var Pt, Bt = Ft;
|
||
|
||
function Ft(t, i, n, s) { return (t = Pt.call(this, t, i, n, s) || this).gs = s, t.io = s.canvas, t } var Wt, Nt = st.M8t(function(t, i) {
|
||
function u(t, i) { var n = t[0],
|
||
s = t[1],
|
||
e = t[2],
|
||
r = t[3],
|
||
s = ((s += ((e = ((e += ((r = ((r += ((n = ((n += (s & e | ~s & r) + i[0] - 680876936 | 0) << 7 | n >>> 25) + s | 0) & s | ~n & e) + i[1] - 389564586 | 0) << 12 | r >>> 20) + n | 0) & n | ~r & s) + i[2] + 606105819 | 0) << 17 | e >>> 15) + r | 0) & r | ~e & n) + i[3] - 1044525330 | 0) << 22 | s >>> 10) + e | 0;
|
||
s = ((s += ((e = ((e += ((r = ((r += ((n = ((n += (s & e | ~s & r) + i[4] - 176418897 | 0) << 7 | n >>> 25) + s | 0) & s | ~n & e) + i[5] + 1200080426 | 0) << 12 | r >>> 20) + n | 0) & n | ~r & s) + i[6] - 1473231341 | 0) << 17 | e >>> 15) + r | 0) & r | ~e & n) + i[7] - 45705983 | 0) << 22 | s >>> 10) + e | 0, s = ((s += ((e = ((e += ((r = ((r += ((n = ((n += (s & e | ~s & r) + i[8] + 1770035416 | 0) << 7 | n >>> 25) + s | 0) & s | ~n & e) + i[9] - 1958414417 | 0) << 12 | r >>> 20) + n | 0) & n | ~r & s) + i[10] - 42063 | 0) << 17 | e >>> 15) + r | 0) & r | ~e & n) + i[11] - 1990404162 | 0) << 22 | s >>> 10) + e | 0, s = ((s += ((e = ((e += ((r = ((r += ((n = ((n += (s & e | ~s & r) + i[12] + 1804603682 | 0) << 7 | n >>> 25) + s | 0) & s | ~n & e) + i[13] - 40341101 | 0) << 12 | r >>> 20) + n | 0) & n | ~r & s) + i[14] - 1502002290 | 0) << 17 | e >>> 15) + r | 0) & r | ~e & n) + i[15] + 1236535329 | 0) << 22 | s >>> 10) + e | 0, s = ((s += ((e = ((e += ((r = ((r += ((n = ((n += (s & r | e & ~r) + i[1] - 165796510 | 0) << 5 | n >>> 27) + s | 0) & e | s & ~e) + i[6] - 1069501632 | 0) << 9 | r >>> 23) + n | 0) & s | n & ~s) + i[11] + 643717713 | 0) << 14 | e >>> 18) + r | 0) & n | r & ~n) + i[0] - 373897302 | 0) << 20 | s >>> 12) + e | 0, s = ((s += ((e = ((e += ((r = ((r += ((n = ((n += (s & r | e & ~r) + i[5] - 701558691 | 0) << 5 | n >>> 27) + s | 0) & e | s & ~e) + i[10] + 38016083 | 0) << 9 | r >>> 23) + n | 0) & s | n & ~s) + i[15] - 660478335 | 0) << 14 | e >>> 18) + r | 0) & n | r & ~n) + i[4] - 405537848 | 0) << 20 | s >>> 12) + e | 0, s = ((s += ((e = ((e += ((r = ((r += ((n = ((n += (s & r | e & ~r) + i[9] + 568446438 | 0) << 5 | n >>> 27) + s | 0) & e | s & ~e) + i[14] - 1019803690 | 0) << 9 | r >>> 23) + n | 0) & s | n & ~s) + i[3] - 187363961 | 0) << 14 | e >>> 18) + r | 0) & n | r & ~n) + i[8] + 1163531501 | 0) << 20 | s >>> 12) + e | 0, s = ((s += ((e = ((e += ((r = ((r += ((n = ((n += (s & r | e & ~r) + i[13] - 1444681467 | 0) << 5 | n >>> 27) + s | 0) & e | s & ~e) + i[2] - 51403784 | 0) << 9 | r >>> 23) + n | 0) & s | n & ~s) + i[7] + 1735328473 | 0) << 14 | e >>> 18) + r | 0) & n | r & ~n) + i[12] - 1926607734 | 0) << 20 | s >>> 12) + e | 0, s = ((s += ((e = ((e += ((r = ((r += ((n = ((n += (s ^ e ^ r) + i[5] - 378558 | 0) << 4 | n >>> 28) + s | 0) ^ s ^ e) + i[8] - 2022574463 | 0) << 11 | r >>> 21) + n | 0) ^ n ^ s) + i[11] + 1839030562 | 0) << 16 | e >>> 16) + r | 0) ^ r ^ n) + i[14] - 35309556 | 0) << 23 | s >>> 9) + e | 0, s = ((s += ((e = ((e += ((r = ((r += ((n = ((n += (s ^ e ^ r) + i[1] - 1530992060 | 0) << 4 | n >>> 28) + s | 0) ^ s ^ e) + i[4] + 1272893353 | 0) << 11 | r >>> 21) + n | 0) ^ n ^ s) + i[7] - 155497632 | 0) << 16 | e >>> 16) + r | 0) ^ r ^ n) + i[10] - 1094730640 | 0) << 23 | s >>> 9) + e | 0, s = ((s += ((e = ((e += ((r = ((r += ((n = ((n += (s ^ e ^ r) + i[13] + 681279174 | 0) << 4 | n >>> 28) + s | 0) ^ s ^ e) + i[0] - 358537222 | 0) << 11 | r >>> 21) + n | 0) ^ n ^ s) + i[3] - 722521979 | 0) << 16 | e >>> 16) + r | 0) ^ r ^ n) + i[6] + 76029189 | 0) << 23 | s >>> 9) + e | 0, s = ((s += ((e = ((e += ((r = ((r += ((n = ((n += (s ^ e ^ r) + i[9] - 640364487 | 0) << 4 | n >>> 28) + s | 0) ^ s ^ e) + i[12] - 421815835 | 0) << 11 | r >>> 21) + n | 0) ^ n ^ s) + i[15] + 530742520 | 0) << 16 | e >>> 16) + r | 0) ^ r ^ n) + i[2] - 995338651 | 0) << 23 | s >>> 9) + e | 0, s = ((s += ((r = ((r += (s ^ ((n = ((n += (e ^ (s | ~r)) + i[0] - 198630844 | 0) << 6 | n >>> 26) + s | 0) | ~e)) + i[7] + 1126891415 | 0) << 10 | r >>> 22) + n | 0) ^ ((e = ((e += (n ^ (r | ~s)) + i[14] - 1416354905 | 0) << 15 | e >>> 17) + r | 0) | ~n)) + i[5] - 57434055 | 0) << 21 | s >>> 11) + e | 0, s = ((s += ((r = ((r += (s ^ ((n = ((n += (e ^ (s | ~r)) + i[12] + 1700485571 | 0) << 6 | n >>> 26) + s | 0) | ~e)) + i[3] - 1894986606 | 0) << 10 | r >>> 22) + n | 0) ^ ((e = ((e += (n ^ (r | ~s)) + i[10] - 1051523 | 0) << 15 | e >>> 17) + r | 0) | ~n)) + i[1] - 2054922799 | 0) << 21 | s >>> 11) + e | 0, s = ((s += ((r = ((r += (s ^ ((n = ((n += (e ^ (s | ~r)) + i[8] + 1873313359 | 0) << 6 | n >>> 26) + s | 0) | ~e)) + i[15] - 30611744 | 0) << 10 | r >>> 22) + n | 0) ^ ((e = ((e += (n ^ (r | ~s)) + i[6] - 1560198380 | 0) << 15 | e >>> 17) + r | 0) | ~n)) + i[13] + 1309151649 | 0) << 21 | s >>> 11) + e | 0, s = ((s += ((r = ((r += (s ^ ((n = ((n += (e ^ (s | ~r)) + i[4] - 145523070 | 0) << 6 | n >>> 26) + s | 0) | ~e)) + i[11] - 1120210379 | 0) << 10 | r >>> 22) + n | 0) ^ ((e = ((e += (n ^ (r | ~s)) + i[2] + 718787259 | 0) << 15 | e >>> 17) + r | 0) | ~n)) + i[9] - 343485551 | 0) << 21 | s >>> 11) + e | 0, t[0] = n + t[0] | 0, t[1] = s + t[1] | 0, t[2] = e + t[2] | 0, t[3] = r + t[3] | 0 }
|
||
|
||
function c(t) { for (var i = [], n = 0; n < 64; n += 4) i[n >> 2] = t.charCodeAt(n) + (t.charCodeAt(n + 1) << 8) + (t.charCodeAt(n + 2) << 16) + (t.charCodeAt(n + 3) << 24); return i }
|
||
|
||
function l(t) { for (var i = [], n = 0; n < 64; n += 4) i[n >> 2] = t[n] + (t[n + 1] << 8) + (t[n + 2] << 16) + (t[n + 3] << 24); return i }
|
||
|
||
function e(t) { for (var e, r, h, o, i = t.length, n = [1732584193, -271733879, -1732584194, 271733878], s = 64; s <= i; s += 64) u(n, c(t.substring(s - 64, s))); for (e = (t = t.substring(s - 64)).length, r = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], s = 0; s < e; s += 1) r[s >> 2] |= t.charCodeAt(s) << (s % 4 << 3); if (r[s >> 2] |= 128 << (s % 4 << 3), 55 < s)
|
||
for (u(n, r), s = 0; s < 16; s += 1) r[s] = 0; return o = (o = 8 * i).toString(16).match(/(.*?)(.{0,8})$/), h = parseInt(o[2], 16), o = parseInt(o[1], 16) || 0, r[14] = h, r[15] = o, u(n, r), n }
|
||
|
||
function o(t) { for (var i = 0; i < t.length; i += 1) t[i] = function(t) { for (var i = "", n = 0; n < 4; n += 1) i += s[t >> 8 * n + 4 & 15] + s[t >> 8 * n & 15]; return i }(t[i]); return t.join("") }
|
||
|
||
function h(t) { return t = /[\u0080-\uFFFF]/.test(t) ? unescape(encodeURIComponent(t)) : t }
|
||
|
||
function v(t) { for (var i = [], n = t.length, s = 0; s < n - 1; s += 2) i.push(parseInt(t.substr(s, 2), 16)); return String.fromCharCode.apply(String, i) }
|
||
|
||
function p() { this.reset() } var s;
|
||
t.exports = (s = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"], o(e("hello")), "undefined" == typeof ArrayBuffer || ArrayBuffer.prototype.slice || function() {
|
||
function u(t, i) { return (t = 0 | t || 0) < 0 ? Math.max(t + i, 0) : Math.min(t, i) }
|
||
ArrayBuffer.prototype.slice = function(t, i) { var n = this.byteLength,
|
||
t = u(t, n),
|
||
e = n; return (e = void 0 !== i ? u(i, n) : e) < t ? new ArrayBuffer(0) : (i = e - t, n = new ArrayBuffer(i), e = new Uint8Array(n), t = new Uint8Array(this, t, i), e.set(t), n) } }(), p.prototype.append = function(t) { return this.Ypt(h(t)), this }, p.prototype.Ypt = function(t) { this.Zpt += t, this.Xpt += t.length; for (var i = this.Zpt.length, n = 64; n <= i; n += 64) u(this.Jpt, c(this.Zpt.substring(n - 64, n))); return this.Zpt = this.Zpt.substring(n - 64), this }, p.prototype.end = function(t) { for (var r, i = this.Zpt, n = i.length, e = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], s = 0; s < n; s += 1) e[s >> 2] |= i.charCodeAt(s) << (s % 4 << 3); return this.$N(e, n), r = o(this.Jpt), t && (r = v(r)), this.reset(), r }, p.prototype.reset = function() { return this.Zpt = "", this.Xpt = 0, this.Jpt = [1732584193, -271733879, -1732584194, 271733878], this }, p.prototype.getState = function() { return { Hpt: this.Zpt, length: this.Xpt, hash: this.Jpt.slice() } }, p.prototype.Mz = function(t) { return this.Zpt = t.Hpt, this.Xpt = t.length, this.Jpt = t.hash, this }, p.prototype.destroy = function() { delete this.Jpt, delete this.Zpt, delete this.Xpt }, p.prototype.$N = function(t, i) { var e, n = i; if (t[n >> 2] |= 128 << (n % 4 << 3), 55 < n)
|
||
for (u(this.Jpt, t), n = 0; n < 16; n += 1) t[n] = 0;
|
||
i = (i = 8 * this.Xpt).toString(16).match(/(.*?)(.{0,8})$/), e = parseInt(i[2], 16), i = parseInt(i[1], 16) || 0, t[14] = e, t[15] = i, u(this.Jpt, t) }, p.hash = function(t, i) { return p.Vpt(h(t), i) }, p.Vpt = function(t, i) { t = o(e(t)); return i ? v(t) : t }, (p.ArrayBuffer = function() { this.reset() }).prototype.append = function(t) { var s, i = function(t, i, n) { var s = new Uint8Array(t.byteLength + i.byteLength); return s.set(new Uint8Array(t)), s.set(new Uint8Array(i), t.byteLength), n ? s : s.buffer }(this.Zpt.buffer, t, !0),
|
||
n = i.length; for (this.Xpt += t.byteLength, s = 64; s <= n; s += 64) u(this.Jpt, l(i.subarray(s - 64, s))); return this.Zpt = s - 64 < n ? new Uint8Array(i.buffer.slice(s - 64)) : new Uint8Array(0), this }, p.ArrayBuffer.prototype.end = function(t) { for (var r, i = this.Zpt, n = i.length, s = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], e = 0; e < n; e += 1) s[e >> 2] |= i[e] << (e % 4 << 3); return this.$N(s, n), r = o(this.Jpt), t && (r = v(r)), this.reset(), r }, p.ArrayBuffer.prototype.reset = function() { return this.Zpt = new Uint8Array(0), this.Xpt = 0, this.Jpt = [1732584193, -271733879, -1732584194, 271733878], this }, p.ArrayBuffer.prototype.getState = function() { var t = p.prototype.getState.call(this); return t.Hpt = function(t) { return String.fromCharCode.apply(null, new Uint8Array(t)) }(t.Hpt), t }, p.ArrayBuffer.prototype.Mz = function(t) { return t.Hpt = function(t, i) { for (var n = t.length, s = new ArrayBuffer(n), e = new Uint8Array(s), r = 0; r < n; r += 1) e[r] = t.charCodeAt(r); return i ? e : s }(t.Hpt, !0), p.prototype.Mz.call(this, t) }, p.ArrayBuffer.prototype.destroy = p.prototype.destroy, p.ArrayBuffer.prototype.$N = p.prototype.$N, p.ArrayBuffer.hash = function(t, i) { t = function(t) { for (var e, r, h, o, i = t.length, n = [1732584193, -271733879, -1732584194, 271733878], s = 64; s <= i; s += 64) u(n, l(t.subarray(s - 64, s))); for (e = (t = s - 64 < i ? t.subarray(s - 64) : new Uint8Array(0)).length, r = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], s = 0; s < e; s += 1) r[s >> 2] |= t[s] << (s % 4 << 3); if (r[s >> 2] |= 128 << (s % 4 << 3), 55 < s)
|
||
for (u(n, r), s = 0; s < 16; s += 1) r[s] = 0; return o = (o = 8 * i).toString(16).match(/(.*?)(.{0,8})$/), h = parseInt(o[2], 16), o = parseInt(o[1], 16) || 0, r[14] = h, r[15] = o, u(n, r), n }(new Uint8Array(t)), t = o(t); return i ? v(t) : t }, p) }),
|
||
Gt = (st.M8t(function(t, i) { st.eff, t.exports = function() {
|
||
function a(t) { return "function" == typeof t } var n = Array.isArray || function(t) { return "[object Array]" === Object.prototype.toString.call(t) },
|
||
e = 0,
|
||
i = void 0,
|
||
r = void 0,
|
||
o = function(i, n) { m[e] = i, m[e + 1] = n, 2 === (e += 2) && (r ? r(y) : b()) }; var f = "undefined" != typeof window ? window : void 0,
|
||
c = f || {},
|
||
l = c.MutationObserver || c.WebKitMutationObserver,
|
||
c = "undefined" == typeof self && "undefined" != typeof process && "[object process]" === {}.toString.call(process),
|
||
v = "undefined" != typeof Uint8ClampedArray && "undefined" != typeof importScripts && "undefined" != typeof MessageChannel;
|
||
|
||
function p() { var t = setTimeout; return function() { return t(y, 1) } } var m = new Array(1e3);
|
||
|
||
function y() { for (var t = 0; t < e; t += 2)(0, m[t])(m[t + 1]), m[t] = void 0, m[t + 1] = void 0;
|
||
e = 0 }
|
||
|
||
function N() { try { var t = Function("return this")().Qb("vertx"); return void 0 !== (i = t.runOnLoop || t.runOnContext) ? function() { i(y) } : p() } catch (t) { return p() } } var b = void 0;
|
||
|
||
function g(t, i) { var r, n = this,
|
||
s = new this.constructor(k),
|
||
e = (void 0 === s[w] && R(s), n.R); return e ? (r = arguments[e - 1], o(function() { return O(e, s, r, n.t9) })) : L(n, s, t, i), s }
|
||
|
||
function M(t) { var n; return t && "object" == typeof t && t.constructor === this ? t : (T(n = new this(k), t), n) } var b = c ? function() { return process.nextTick(y) } : (l ? function() { var t = 0,
|
||
i = new l(y),
|
||
n = document.createTextNode(""); return i.observe(n, { characterData: !0 }),
|
||
function() { n.data = t = ++t % 2 } } : v ? function() { var t = new MessageChannel; return t.port1.onmessage = y,
|
||
function() { return t.port2.postMessage(0) } } : void 0 === f && "function" == typeof st.tff ? N : p)(),
|
||
w = Math.random().toString(36).substring(2);
|
||
|
||
function k() {} var x = void 0,
|
||
A = 1,
|
||
z = 2;
|
||
|
||
function Y(t, s, e) { o(function(i) { var n = !1,
|
||
t = function(t, i, n, s) { try { t.call(i, n, s) } catch (t) { return t } }(e, s, function(t) { n || (n = !0, (s !== t ? T : S)(i, t)) }, function(t) { n || (n = !0, I(i, t)) }, i.Vnt);!n && t && (n = !0, I(i, t)) }, t) }
|
||
|
||
function C(t, i, n) { i.constructor === t.constructor && n === g && i.constructor.resolve === M ? function(i, t) { t.R === A ? S(i, t.t9) : t.R === z ? I(i, t.t9) : L(t, void 0, function(t) { return T(i, t) }, function(t) { return I(i, t) }) }(t, i) : void 0 !== n && a(n) ? Y(t, i, n) : S(t, i) }
|
||
|
||
function T(i, t) { if (i === t) I(i, new TypeError("You cannot resolve a promise with itself"));
|
||
else if (function(t) { var i = typeof t; return null !== t && ("object" == i || "function" == i) }(t)) { var n = void 0; try { n = t.then } catch (t) { return void I(i, t) }
|
||
C(i, t, n) } else S(i, t) }
|
||
|
||
function X(t) { t.emt && t.emt(t.t9), D(t) }
|
||
|
||
function S(t, i) { t.R === x && (t.t9 = i, t.R = A, 0 !== t.rmt.length) && o(D, t) }
|
||
|
||
function I(t, i) { t.R === x && (t.R = z, t.t9 = i, o(X, t)) }
|
||
|
||
function L(t, i, n, s) { var e = t.rmt,
|
||
r = e.length;
|
||
t.emt = null, e[r] = i, e[r + A] = n, e[r + z] = s, 0 === r && t.R && o(D, t) }
|
||
|
||
function D(t) { var i = t.rmt,
|
||
n = t.R; if (0 !== i.length) { for (var s, e = void 0, r = t.t9, o = 0; o < i.length; o += 3) s = i[o], e = i[o + n], s ? O(n, s, e, r) : e(r);
|
||
t.rmt.length = 0 } }
|
||
|
||
function O(t, i, n, s) { var e = a(n),
|
||
r = void 0,
|
||
o = void 0,
|
||
h = !0; if (e) { try { r = n(s) } catch (t) { h = !1, o = t } if (i === r) return void I(i, new TypeError("A promises callback cannot return that same promise.")) } else r = s;
|
||
i.R === x && (e && h ? T(i, r) : !1 === h ? I(i, o) : t === A ? S(i, r) : t === z && I(i, r)) } var E = 0;
|
||
|
||
function R(t) { t[w] = E++, t.R = void 0, t.t9 = void 0, t.rmt = [] } var q = function() {
|
||
function t(t, i) { this.omt = t, this.promise = new t(k), this.promise[w] || R(this.promise), n(i) ? (this.length = i.length, this.hmt = i.length, this.t9 = new Array(this.length), 0 !== this.length && (this.length = this.length || 0, this.amt(i), 0 !== this.hmt) || S(this.promise, this.t9)) : I(this.promise, new Error("Array Methods must be provided an Array")) } return t.prototype.amt = function(i) { for (var n = 0; this.R === x && n < i.length; n++) this.umt(i[n], n) }, t.prototype.umt = function(i, n) { var s = this.omt,
|
||
e = s.resolve; if (e === M) { var a, r = void 0,
|
||
o = void 0,
|
||
h = !1; try { r = i.then } catch (t) { h = !0, o = t }
|
||
r === g && i.R !== x ? this.fmt(i.R, n, i.t9) : "function" != typeof r ? (this.hmt--, this.t9[n] = i) : s === j ? (a = new s(k), h ? I(a, o) : C(a, i, r), this.cmt(a, n)) : this.cmt(new s(function(t) { return t(i) }), n) } else this.cmt(e(i), n) }, t.prototype.fmt = function(i, n, s) { var e = this.promise;
|
||
e.R === x && (this.hmt--, i === z ? I(e, s) : this.t9[n] = s), 0 === this.hmt && S(e, this.t9) }, t.prototype.cmt = function(i, n) { var s = this;
|
||
L(i, void 0, function(t) { return s.fmt(A, n, t) }, function(t) { return s.fmt(z, n, t) }) }, t }(); var j = function() {
|
||
function i(t) { if (this[w] = E++, this.t9 = this.R = void 0, this.rmt = [], k !== t) { if ("function" != typeof t) throw new TypeError("You must pass a resolver function as the first argument to the promise constructor"); if (!(this instanceof i)) throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");! function(n, t) { try { t(function(i) { T(n, i) }, function(i) { I(n, i) }) } catch (t) { I(n, t) } }(this, t) } } return i.prototype.catch = function(i) { return this.then(null, i) }, i.prototype.finally = function(i) { var n = this,
|
||
s = n.constructor; return a(i) ? n.then(function(t) { return s.resolve(i()).then(function() { return t }) }, function(t) { return s.resolve(i()).then(function() { throw t }) }) : n.then(i, i) }, i }(); return j.prototype.then = g, j.all = function(t) { return new q(this, t).promise }, j.race = function(e) { var r = this; return n(e) ? new r(function(t, i) { for (var n = e.length, s = 0; s < n; s++) r.resolve(e[s]).then(t, i) }) : new r(function(t, i) { return i(new TypeError("You must pass an array to race.")) }) }, j.resolve = M, j.reject = function(t) { var n = new this(k); return I(n, t), n }, j.lmt = function(t) { r = t }, j.dmt = function(t) { o = t }, j.vmt = o, j.smt = function() { var t = void 0; if (void 0 !== st.eff) t = st.eff;
|
||
else if ("undefined" != typeof self) t = self;
|
||
else try { t = Function("return this")() } catch (t) { throw new Error("polyfill failed because global object is unavailable in this environment") }
|
||
var i = t.Promise; if (i) { var n = null; try { n = Object.prototype.toString.call(i.resolve()) } catch (t) {} if ("[object Promise]" === n && !i.cast) return }
|
||
t.Promise = j }, j.Promise = j }() }).smt(), Wt = ft, st.Ei(f, Wt), f.prototype.add = function(t, i, n) { void 0 === t && (t = {}), void 0 === i && (i = {}), Object.keys(t).length && (this.Ls = t, this.HB = !0, this.OB = i, n) && n() }, f.prototype.remove = function(t, i, n) { void 0 === i && (i = {}), this.Ls = t = void 0 === t ? {} : t, this.HB = !0, this.OB = i, n && n() }, f.prototype.update = function(t, i) { void 0 === t && (t = {}), this.HB = !0, this.OB = t, i && i() }, f.prototype.clear = function() { this.Ls = {}, this.Ts = [], this.gS = null }, f.prototype.getData = function() { return { other: this.gS } }, f.prototype.Ds = function(t) { return this.Ls[t] || null }, f.prototype.zL = function(t) { return this.CL && this.CL.zL(t) }, f.prototype.destroy = function() { this.R_ && this.R_.destroy && (this.R_.destroy(), delete this.R_), this.z_ && this.z_.destory && (this.z_.destory(), delete this.z_) }, f.prototype.loadData = function(t, i, n) { var s = this; return 0 === Object.keys(this.Ls).length && this.Fo(!0), this.HB && (this.HB = !1, this.As(this.OB, function() { s.Fo(!0), s._map.bZ.dynamic.set("firstLabelLayerDataAllLoaded", !0), n() })), !0 }, f.prototype.As = function(t, i) { var n, s, e, r, o = this,
|
||
h = (void 0 === t && (t = {}), this.R_, this.z_, this.Ls),
|
||
a = (this.Ts = [], []),
|
||
u = {}; for (n in h) h.hasOwnProperty(n) && (r = (s = h[n]).getOptions(), e = s.hS, (r = r.richText) && r.content && (a.push(s), u[r.content] = e, this.qpt.append(r.content), e = this.qpt.end(), r.Kpt = e), r = this.Ps(s), this.Ts.push(r));
|
||
a && 0 < a.length ? this.xpt(a, u, t, function() { o.Apt(t, i) }) : this.Apt(t, i) }, f.prototype.Apt = function(i, n) { var t, s = this,
|
||
e = (void 0 === i && (i = {}), this.R_);
|
||
this.Ts.length ? (t = this.Ts[0].data.position, this.Os(t), this.z_.loadImages(Object.keys(this.Fs), { cb: function() { var t;
|
||
e && "SDFManagerBase" !== e.CLASS_NAME ? (t = Object.keys(s.Es), e.getData(t, function(t) { s.qL(i, n) })) : s.qL(i, n) } })) : (this.clear(), n()) }, f.prototype.$pt = function(s, t, i, e) { var o = this;! function r(t) { var i, n;
|
||
t < s.length ? ((i = s[t].getOptions().richText).content, s[t].hS, n = void 0, i && i.Kpt && (n = i.Kpt), o.zpt(i, s[t], n, function() { r(t + 1) })) : e() }(0) }, f.prototype.xpt = function(t, i, n, s) { for (var r = this, t = t.map(function(e, t) { return function() { return new Promise(function(t, i) { var n = e.getOptions().richText,
|
||
s = n && n.Kpt ? n.Kpt : void 0;
|
||
r.zpt(n, e, s, t) }) } }), e = Promise.resolve(), o = 0, h = t; o < h.length; o++) var a = h[o],
|
||
e = e.then(a);
|
||
e.then(function() { s() }).catch(function(t) { console.warn("An error warn occurred:", t), s(t) }) }, f.prototype.zpt = function(n, s, e, r) { var t, o, i, h, a, u = this;
|
||
n ? (n.content, (t = this._pt.get(e)) ? (t = { image: t, width: t.width, height: t.height, type: "image", size: n.size, clipOrigin: n.clipOrigin, offset: n.offset, anchor: n.anchor, retina: n.retina, hS: s.hS }, this.Qpt[s.hS] = t, r()) : (o = this.Cpt(n, s.hS), i = o.childNodes, h = i[0].offsetWidth, a = i[0].offsetHeight, this.tmt(i[0]).then(function(t) { return t = u.Fpt(i[0], t), u.imt(t) }).then(function(t) { document.body.removeChild(o); var i = { image: t, width: h, height: a, type: "image", size: n.size, clipOrigin: n.clipOrigin, offset: n.offset, anchor: n.anchor, retina: n.retina, hS: s.hS };
|
||
u.Qpt[s.hS] = i, u._pt.set(e, t), r() }).catch(function(t) { document.body.removeChild(o), console.warn("URL image load fali", t), t = AMap.getConfig().protocol + "://a.amap.com/jsapi_demos/static/demo-center/icons/dom_marker.png", u.pmt(t).then(function(t) { var i = { image: t, width: h, height: a, type: "image", size: n.size, clipOrigin: n.clipOrigin, offset: n.offset, anchor: n.anchor, retina: n.retina, hS: s.hS };
|
||
u.Qpt[s.hS] = i, u._pt.set(e, t), r() }).catch(function(t) { console.warn("Default image load fail", t), r(t) }) }))) : r() }, f.prototype.pmt = function(i) { return new Promise(function(s, t) { var e = new Image;
|
||
e.crossOrigin = "Anonymous", e.onload = function() { var t = document.createElement("canvas");
|
||
t.width = e.width, t.height = e.height;
|
||
(i = t.getContext("2d")) && i.drawImage(e, 0, 0); var i = t.toDataURL(),
|
||
n = new Image;
|
||
n.setAttribute("src", i), s(n), t.width = 0, t.height = 0 }, e.onerror = function() { t(new Error("Could not load image at " + i)) }, e.src = i }) }, f.prototype.Cpt = function(t, i) { var n = new Map,
|
||
t = t.content,
|
||
s = document.getElementById("originDom"),
|
||
e = ((s = document.createElement("div")).setAttribute("id", "originDom"), s.setAttribute("style", "position: fixed; ;z-index: -999999; top: 0; left: 0; opacity: 0; poinert-events: none; width: 4096px;"), document.body.appendChild(s), s.innerHTML = '<div data-index="' + i + '" style="float: left; padding: 2px;">' + t + "</div>", s.scrollWidth),
|
||
r = Math.log2 ? 1 << Math.ceil(Math.log2(s.scrollHeight)) : Math.log(s.scrollHeight) * Math.LOG2E;
|
||
s.style.height = r + "px"; for (var o = s.querySelectorAll("div"), h = 0; h < o.length; h++) { var a = o[h];
|
||
a.dataset && a.dataset.index && n.set(a.dataset.index, [a.offsetLeft / e, a.offsetTop / r, (a.offsetLeft + a.scrollWidth) / e, (a.offsetTop + a.scrollHeight) / r]) } return s.setAttribute("style", "position: fixed; z-index: -999999; top: 0; left: 0; pointer-events: none; width: 4096px;height:" + r + "px"), s }, f.prototype.drawImage = function(t, i, n) { var s, e;
|
||
t && (s = t.width, e = t.height, i.width = s, i.height = e, n.clearRect(0, 0, i.width, i.height), n.drawImage(t, 0, 0)) }, f.prototype.loadImage = function(t, i) { var n = new Image;
|
||
n.crossOrigin = "Anonymous", n.onload = function() { return i(null, n) }, n.onerror = function(t) { return i(t, null) }, n.src = t }, f.prototype.Tpt = function(h, a) { var u = document.createElement("canvas"),
|
||
f = u.getContext("2d"); if (t = h) { var c = t.cloneNode(!0),
|
||
l = (c.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), null); if ("img" === c.tagName.toLowerCase() && (l = c), 0 < c.querySelectorAll("img").length) { if ((l = c.querySelectorAll("img")).crossOrigin = "anonymous", l)
|
||
for (var i = 0; i < l.length; i++) ! function(e) { var r = l[e],
|
||
o = (r.crossOrigin = "anonymous", new Image);
|
||
o.crossOrigin = "anonymous", o.onload = function() { var i, t, n = o.width,
|
||
s = o.height;
|
||
u.width = n, u.height = s, f && (f.clearRect(0, 0, n, s), f.drawImage(o, 0, 0)), u.toDataURL("image/png"), r.setAttribute("crossOrigin", "anonymous"), r && (r.src = u.toDataURL("image/png"), e === l.length - 1) && (t = (t = 'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="' + h.offsetWidth + '" height="' + h.offsetHeight + '"><foreignObject x="0" y="0" width="100%" height="100%">' + (new XMLSerializer).serializeToString(c) + document.querySelector("style").outerHTML + "</foreignObject></svg>").replace(/\n/g, "").replace(/\t/g, "").replace(/#/g, "%23")) && ((i = new Image).onload = function(t) { a(i, n, s) }, i.src = t) }, o.src = r.attributes.src.nodeValue }(i) } else { var n, t = (t = 'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="' + h.offsetWidth + '" height="' + h.offsetHeight + '"><foreignObject x="0" y="0" width="100%" height="100%">' + (new XMLSerializer).serializeToString(c) + document.querySelector("style").outerHTML + "</foreignObject></svg>").replace(/\n/g, "").replace(/\t/g, "").replace(/#/g, "%23"),
|
||
s = h.offsetWidth,
|
||
e = h.offsetHeight;
|
||
t && ((n = new Image).onload = function(t) { a(n, s, e) }, n.src = t) } } else console.log("未获取都转换dom节点") }, f.prototype.Spt = function(t, i, n, s) { var e = new Image;
|
||
DomToImage.dpt(t, { width: i, height: n, ppt: 1 }).then(function(t) { e.src = t, s(e, i, n) }).catch(function(t) { console.error(t) }) }, f.prototype.Wpt = function(t, s) { var e = this,
|
||
r = t.querySelectorAll("img"),
|
||
o = r.length,
|
||
h = new Map; if (0 === o) s(h);
|
||
else
|
||
for (var i = 0; i < r.length; i++) ! function(t) { var i = r[t],
|
||
n = new Image;
|
||
n.crossOrigin = "anonymous", n.onload = function() { h.set(i.src, e.Gpt(n)), 0 == --o && s(h) }, n.onerror = function() { 0 == --o && s(h) }, n.src = i.src }(i) }, f.prototype.tmt = function(t) { return t = t.querySelectorAll("img"), t = Array.prototype.slice.call(t).map(function(r) { return new Promise(function(n, s) { var e = new Image;
|
||
e.crossOrigin = "anonymous", e.onload = function() { var t = document.createElement("canvas"),
|
||
i = (t.width = e.width, t.height = e.height, t.getContext("2d")); if (i) { i.drawImage(e, 0, 0); try { n({ src: r.src, nmt: t.toDataURL() }) } catch (t) { s(t) } } else s(new Error("Could not get canvas context")) }, e.onerror = function(t) { s(new Error("Image load error")) }, e.src = r.src }) }), Promise.all(t).then(function(t) { var i = new Map; return t.forEach(function(t) { i.set(t.src, t.nmt) }), i }) }, f.prototype.Gpt = function(t) { var i = document.createElement("canvas"),
|
||
n = (i.width = t.width, i.height = t.height, i.getContext("2d")); return n && n.drawImage(t, 0, 0), i.toDataURL() }, f.prototype.Fpt = function(t, i) { for (var n = t.cloneNode(!0), s = n.querySelectorAll("img"), e = 0; e < s.length; e++) { var r = s[e],
|
||
o = r.getAttribute("src");
|
||
i.has(o) && r.setAttribute("src", i.get(o)) } return n = (new XMLSerializer).serializeToString(n), t = '<svg xmlns="http://www.w3.org/2000/svg" width="' + t.offsetWidth + '" height="' + t.offsetHeight + '">\n <foreignObject width="100%" height="100%" xmlns:xlink="http://www.w3.org/1999/xlink">' + n + "</foreignObject>\n </svg>", "data:image/svg+xml;charset=utf-8," + encodeURIComponent(t) }, f.prototype.Npt = function(t, i) { var n = new Image;
|
||
n.onload = function() { i(n) }, n.onerror = function() { console.error("无法从SVG数据创建图像") }, n.src = t }, f.prototype.imt = function(s) { return new Promise(function(t, i) { var n = new Image;
|
||
n.onload = function() { return t(n) }, n.onerror = i, n.src = s }) }, f.prototype.qL = function(t, i) { void 0 === t && (t = {}); var n = this.R_,
|
||
s = this.z_,
|
||
n = (this.CL = new st.eG({ R_: n, z_: s }), this.CL.setRichtoImage(this.Qpt), this.Us),
|
||
s = { from: "labelsLayer", zoom: this._map.getView().getOptions().zoom, center: n.center },
|
||
t = (st.assign(s, t), this.CL.Ns(this.Ts, s));
|
||
this._map && this._map.isDOMMode() ? this.gS = t : this.gS = new st.La(null, t), this.gS.zo = n, i && i(t) }, f.prototype.Ps = function(t) { var i, n, s, e, r, o, h, a, u, f, c, l, d, v, p, m, y, b, g; if (!t || "AMap.LabelMarker" === t.type) return i = this._map.getProjection(), this.AL = {}, c = t.getOptions(), (n = t._position) ? (s = [st.tc.Mp, st.tc.Rp], e = void 0 === (e = c.zooms) ? s : e, r = c.opacity, o = c.rank, p = c.icon, h = c.richText, a = c.text, u = c.zIndex, f = c.rotation, c = void 0 === (c = c.visible) || c, l = st.Bs(n) ? n.toJSON() : n, d = a && a.content || "", v = a && a.style, p && p.image && (this.Fs[p.image] = 1), a && a.content && this.Ws(a.content), p = p && p.image ? [{ type: "image", image: p.image || "", size: p.size, clipOrigin: p.clipOrigin, clipSize: p.clipSize, offset: p.offset, anchor: p.anchor, retina: p.retina }] : {}, g = y = 0, v && (y = !v.strokeWidth && v.strokeColor ? 1 : v.strokeWidth || 0, m = !v.strokeColor && v.strokeWidth ? "#fcfcfc" : v.strokeColor, g = !v.borderWidth && v.borderColor ? 1 : v.borderWidth || 0, b = !v.borderColor && v.strokeWidth ? "#ccc" : v.borderColor), m = v ? { fontFamily: v.fontFamily, fontSize: v.fontSize, fontWeight: v.fontWeight, fillColor: v.fillColor, strokeColor: m, strokeWidth: y, borderColor: b, borderWidth: g, padding: this.Gs(v.padding || [3]), backgroundColor: v.backgroundColor, fold: v.fold } : {}, y = st.labelsUtil.Jj(e, a && a.zooms || s), b = a && d ? { txt: a.content || "", direction: a.direction, offset: a.offset, zooms: y, style: m } : {}, g = i.project(l[0], l[1]), { data: { id: t.hS, name: d, txt: d, position: [g[0], g[1], n[2] || 0], positionType: "lnglat", extData: { id: t.hS }, rank: o, rotation: f, richText: h, zooms: e }, opts: { visible: c, opacity: r, zooms: e, zIndex: u, icon: p, richText: h, text: b, rotation: f, height: n[2] || 0 } }) : null }, f.prototype.Ws = function(t) { var i = this;
|
||
void 0 === t && (t = ""), Array.from(t).forEach(function(t) { i.Es[t] = 1 }) }, f.prototype.Os = function(t) { st.Bs(t) ? this.Us = st.lcs.getLocalByCoord([t.KL, t.kT]) : this.Us = st.lcs.getLocalByCoord(t) }, f.prototype.Gs = function(t) { if ("string" == typeof t && (t = (t = t.trim()).split(" ")), "[object Array]" !== Object.prototype.toString.apply(t)) return [3, 3, 3, 3]; for (var i = t.length, n = 0; n < i; n++) { var s = "string" == typeof(s = t[n]) ? parseInt(s, 10) : s;
|
||
isNaN(s) ? t[n] = 3 : t[n] = s } switch (i) {
|
||
case 0:
|
||
t = [3, 3, 3, 3]; break;
|
||
case 1:
|
||
t = [t[0], t[0], t[0], t[0]]; break;
|
||
case 2:
|
||
t = [t[0], t[1], t[0], t[1]]; break;
|
||
case 3:
|
||
t = [t[0], t[1], t[2], t[1]] } return t }, f);
|
||
|
||
function f(t, i, n, s) { return (t = Wt.call(this, t, i, n, s) || this).Fs = {}, t.Es = {}, t.Ts = [], t.HB = !1, t.Ls = {}, t.AL = {}, t._pt = {}, t.Upt = [], t.qpt = {}, t.Qpt = {}, i = n.R_, s = n.z_, t.R_ = i, t.z_ = s, t._pt = new Map, t.qpt = new Nt, t._map = n, t }
|
||
Ut = ft, st.Ei(Yt, Ut), Yt.prototype.setTileUrl = function(t) { this._tileUrl = t = void 0 === t ? "" : t }, Yt.prototype.loadData = function(t, i, n, s) { var o = this; if (!i && "d" !== s.baseRender) return !1;
|
||
this.aa = t, this.ze = i, this.Zs = [], this.sa = []; var e = t.projectionId,
|
||
r = [],
|
||
h = t.boundsCoord,
|
||
a = t.optimalZoom,
|
||
u = t.optimalResolution,
|
||
f = this.ha(h, a, u),
|
||
h = (this.ua.forEach(function(t) { var i = t.zo,
|
||
n = !1; if (t.status !== st.TileState.LOADED) { for (var s = f.ja; s <= f.Oa; s += 1)
|
||
for (var e = f.Fa; e <= f.Ea; e += 1) { var r = o.fa(s, f.z);
|
||
i.z === f.z && i.y === e && r === i.x && (n = !0) }
|
||
n || (t.data.src = "", o.ua.ea(t)) } }), this.qs(t, this.Zs, r)); return this.Ys(h, i, e, n), this.da(t, this.sa, r, s), this.sa = this.sa.concat(this.Zs), 0 === h.length }, Yt.prototype.getData = function() { var t = this.aa,
|
||
i = [],
|
||
n = this.map.qF(); if (this.ua.QF(n), 0 < this.sa.length)
|
||
for (var s = 0; s < this.sa.length; s++) { for (var e = this.sa[s], r = [], o = 0; o < e.length; o++) { var h, u, c, l, d, a, f, m = [0, 0],
|
||
y = t.centerCoord,
|
||
b = this.ua.getTile(e[o]),
|
||
y = st.lcs.getLocalByCoord([y[0], y[1]]);
|
||
b || (h = this.ua.getTile(new st.ca(e[o].z, this.fa(e[o].x, e[o].z), e[o].y)), b = new st.Vs(e[o]), h && h.data.texture && (l = this.aa.projectionId, c = st.ProjectionManager.getProjection(l).getResolution(b.zo.z), u = (a = b.zo.x * this.Xa * c) + this.Xa * c, c = (f = b.zo.y * this.Xa * c) + this.Xa * c, d = st.V[l].Xs(a, f), l = st.V[l].Xs(u, c), a = d[0], u = l[0], f = l[1], c = d[1], b.Ro = [a, f, u, c], l = st.lcs.getLocalByCoord([b.Ro[0], b.Ro[1]]), this.aa.optimalZoom >= st.Ra && (b.Ro[0] -= l.center[0], b.Ro[1] -= l.center[1], b.Ro[2] -= l.center[0], b.Ro[3] -= l.center[1]), this.ze ? b.data = { Hs: l, texture: h.data.texture, Js: h.data.Js, zs: this.ze.fe(new Float32Array([b.Ro[0], b.Ro[1], 0, 1, b.Ro[2], b.Ro[1], 1, 1, b.Ro[0], b.Ro[3], 0, 0, b.Ro[2], b.Ro[1], 1, 1, b.Ro[2], b.Ro[3], 1, 0, b.Ro[0], b.Ro[3], 0, 0]), 16) } : (b.data = h.data, b.data.Hs = l), b.data) && (b.status = st.TileState.LOADED)), b.data && (t.optimalZoom >= st.Ra && b.data.Hs ? (d = st.lcs.getSize(), a = b.data.Hs.x - y.x, f = b.data.Hs.y - y.y, 0 != a && (a *= d[0], m[0] = a), 0 != f && (f *= d[1], m[1] = f), t.optimalZoom >= st.Ra && st.za >= b.zo.z && (m[0] = -y.center[0], m[1] = -y.center[1])) : t.optimalZoom < st.Ra && st.za < b.zo.z && (m[0] = y.center[0], m[1] = y.center[1]), b.data.Sa = m, b.stamp = n, r.push(b)) }
|
||
i.push(r) }
|
||
return { tiles: i } }, Yt.prototype.setTileCacheSize = function(t) { t = t || (st.Support.$e ? 50 : 200), this.ua.Xo(t) }, Yt.prototype.reload = function() { this.ua.forEach(function(t) { t.status !== st.TileState.LOADED && t.request && t.request.cancel && (t.request.cancel(), delete t.request) }), this.ua.destroy(), this.sa = [], this.pS = !1, this.Fo(!1) }, Yt.prototype.getTileCache = function() { return this.ua }, Yt.prototype.Da = function(t, i) { var e, r, o;
|
||
t.length && (e = this.Pa.z, r = (this.Pa.ja + this.Pa.Oa) / 2, o = (this.Pa.Fa + this.Pa.Ea) / 2, t.sort(function(t, i) { var n = (t.x << e - t.z) - r,
|
||
t = (t.y << e - t.z) - o,
|
||
s = (i.x << e - i.z) - r; return n * n + t * t <= s * s + (i = (i.y << e - i.z) - o) * i ? -1 : 1 })) }, Yt.prototype.ha = function(t, i, n) { var s = this.aa.projectionId,
|
||
s = st.ProjectionManager.getProjection(s),
|
||
s = (this.TB() && (n = s.getResolution(++i)), i < this.Qs[0] ? (i = this.Qs[0], n = s.getResolution(i)) : i > this.Qs[1] && (i = this.Qs[1], n = s.getResolution(i)), this.Xa),
|
||
e = 20037508.342789244,
|
||
r = t[0] + e,
|
||
o = -(t[3] - e),
|
||
h = t[2] + e,
|
||
r = r / n,
|
||
o = o / n,
|
||
t = -(t[1] - e) / n; return { Oa: Math.floor(h / n / s), Ea: Math.min((1 << i) - 1, Math.floor(t / s)), ja: Math.floor(r / s), Fa: Math.max(Math.floor(o / s), 0), z: i } }, Yt.prototype.qs = function(t, i, n) { for (var s = t.optimalZoom, e = t.optimalResolution, r = t.boundsCoord, o = st.ProjectionManager.getProjection(t.projectionId), r = this.ha(r, s, e), h = (this.TB() && s++, s < this.Qs[0] ? s = this.Qs[0] : s > this.Qs[1] && (s = this.Qs[1]), o.getResolution(s), []), a = [], u = !0, f = r, c = f.ja; c <= f.Oa; c += 1)
|
||
for (var l = f.Fa; l <= f.Ea; l += 1) { var d = new st.ca(s, this.fa(c, s), l),
|
||
v = this.ua.getTile(d),
|
||
p = (this.PF(d, t.projectionId), new st.ca(s, c, l));
|
||
(v ? v.status === st.TileState.LOADED || v.status === st.TileState.ERROR ? a : (u = !1, n) : (u = !1, h.push(d), n)).push(p) }
|
||
return a.length && i.push(a), this.Pa = r, this.Fo(u), h }, Yt.prototype.da = function(t, i, n, s) { if (t = t.optimalZoom, this.Za = "overlay" !== this.layer.type, this.qa = "overlay" !== this.layer.type, this.Za)
|
||
for (var e = Math.min(this.xt[1], t + 2), r = t + 1; n.length && r <= e; r += 1) { for (var o = [], h = [], a = r, u = n.length - 1; 0 <= u; --u)
|
||
for (var f = n[u], c = f.x << 1, l = f.y << 1, d = 1; 0 <= d; --d)
|
||
for (var v = 1; 0 <= v; --v) { var p = new st.ca(a, this.fa(c + d, a), l + v),
|
||
m = this.ua.getTile(p),
|
||
y = new st.ca(a, c + d, l + v);
|
||
(m && m.status === st.TileState.LOADED ? h : o).push(y) }
|
||
h.length && i.push(h), n = o }
|
||
if (this.qa)
|
||
for (var b = this.xt[0], r = t - 1; n.length && b <= r; --r) { for (var h = [], o = [], g = {}, u = n.length - 1; 0 <= u; --u) { var M = n[u],
|
||
a = r,
|
||
w = M.z - a,
|
||
d = M.x >> w,
|
||
v = M.y >> w;
|
||
g[M = (p = new st.ca(a, this.fa(d, a), v)).key] || (m = this.ua.getTile(p), g[M] = !0, (m && m.status === st.TileState.LOADED ? h : o).push(new st.ca(a, d, v))) }
|
||
h.length && i.push(h), n = o }
|
||
return i }, Yt.prototype.ma = function() { var t, i = new RegExp(/\{(\w|\,)+\}/g); return i.test(this._tileUrl) ? (t = this._tileUrl.match(i)[0].replace(/[\{|\}]/g, "").split(","), this.tr++, t && this.tr >= t.length && (this.tr = 0), this._tileUrl.replace(i, t[this.tr])) : this._tileUrl }, Yt.prototype.Ys = function(l, d, v, p) { var m; if (!(this.aa.optimalZoom < this.xt[0] || this.aa.optimalZoom > this.xt[1])) { this.Da(l); for (var y = this, i = 0, n = l.length; i < n; i += 1) ! function(t) { var n = y.layer.getLayerConfig(),
|
||
t = l[t],
|
||
s = y.ma().replace("[z]", t.z + "").replace("[x]", t.x + "").replace("[y]", t.y + ""),
|
||
o = new st.Vs(t),
|
||
e = (y.ua.Qo(o), n.getTileUrl && (s = n.getTileUrl(t.x, t.y, t.z)), st.ProjectionManager.getProjection(v).getResolution(t.z)),
|
||
r = t.x * y.Xa * e,
|
||
h = r + y.Xa * e,
|
||
a = t.y * y.Xa * e,
|
||
e = a + y.Xa * e,
|
||
u = st.V[v].Xs(r, a),
|
||
f = st.V[v].Xs(h, e);
|
||
|
||
function c(t) { var i, n, s, e, r;
|
||
d && ((t = d.createTexture(t.target || t, { Zi: !0 })).bind(d.gl.CLAMP_TO_EDGE, d.gl.LINEAR, d.gl.LINEAR), i = st.lcs.getLocalByCoord([o.Ro[0], o.Ro[1]]), o.zo.z > st.za && (o.Ro[0] -= i.center[0], o.Ro[1] -= i.center[1], o.Ro[2] -= i.center[0], o.Ro[3] -= i.center[1]), n = d.fe(new Float32Array([o.Ro[0], o.Ro[1], 0, 1, o.Ro[2], o.Ro[1], 1, 1, o.Ro[0], o.Ro[3], 0, 0, o.Ro[2], o.Ro[1], 1, 1, o.Ro[2], o.Ro[3], 1, 0, o.Ro[0], o.Ro[3], 0, 0]), 16), (e = (s = document.createElement("canvas")).getContext("2d")) && (r = this.Xa, s.height = s.width = r, s.style.height = s.style.width = r + "px", e.beginPath(), e.moveTo(0, 0), e.lineTo(r, 0), e.lineTo(r, r), e.lineTo(0, r), e.lineTo(0, 0), e.lineWidth = 1, e.font = "20px Verdana", e.fillStyle = "#ff0000", e.strokeStyle = "#FF0000", e.strokeRect(0, 0, r, r), e.fillText("z: " + o.zo.z, 10, 30), e.fillText("x: " + o.zo.x, 10, 60), e.fillText("y: " + o.zo.y, 10, 90), e.stroke()), (r = d.createTexture(s, { Zi: !0 })).bind(d.gl.MIRRORED_REPEAT, d.gl.LINEAR, d.gl.LINEAR_MIPMAP_NEAREST), o.data = { texture: t, zs: n, Js: r, Hs: i }), o.status = st.TileState.LOADED, p() }
|
||
r = u[0], h = f[0], a = f[1], e = u[1], o.Ro = [r, a, h, e], o.status = st.TileState.LOADING, "AMap.TileLayer.Flexible" === y.layer.CLASS_NAME || "AMap.TileLayer.WMTS" === y.layer.CLASS_NAME || "AMap.TileLayer.WMS" === y.layer.CLASS_NAME ? n.createTile(t.x, t.y, t.z, function(t) { d ? c.call(this, t) : (o.data = t, o.status = st.TileState.LOADED) }.bind(y), function() { o.status = st.TileState.ERROR, p() }) : (f = new Image, "w" === (null == (m = y.map) ? void 0 : m.baseRender) && (f.crossOrigin = "anonymous"), f.onload = c.bind(y), "d" === (null == (m = y.map) ? void 0 : m.baseRender) && 0 < s.indexOf("traffictile") && (s += "&hash=" + Math.random()), f.src = s, (o.data = f).addEventListener("dragstart", function(t) { return t.preventDefault(), !1 })) }(i) } }, Yt.prototype.fa = function(t, i) { i = i || this.aa.optimalZoom; for (var n = this.Xa / 256, s = (n < 1 ? n = 1 / n : n--, 1 << (i += n)); t < 0 || s <= t;) t = s <= t ? t - s : t < 0 ? s + t : t; return t }, Yt.prototype.PF = function(t, i) { var n = st.ProjectionManager.getProjection(i).getResolution(t.z),
|
||
s = (e = t.x * this.Xa * n) + this.Xa * n,
|
||
n = (t = t.y * this.Xa * n) + this.Xa * n,
|
||
t = st.V[i].Xs(e, t),
|
||
i = st.V[i].Xs(s, n),
|
||
e = t[0],
|
||
s = i[0],
|
||
n = (i[1], t[1]); return !(s < (i = this.map.getView().getStatus().boundsCoord)[0] && n < i[1] || e > i[2] && s > i[3]) }, Yt.prototype.TB = function() { var t = !1; return this.layer.getState().detectRetina && (t = !0), !("d" !== st.Support.baseRender || !st.Support.Ue || !st.Support.$e) || t }; var Ut, _t = Yt;
|
||
|
||
function Yt(t, i, n, s) { return (i = Ut.call(this, t, i, n, s) || this).ua = new xt(st.Support.$e ? 200 : 400), i.Xa = 256, i.sa = [], i.Zs = [], i.tr = -1, i.qa = !0, i.Za = !0, i.xt = t.zooms, i.Qs = t.dataZooms, i.Xa = t.tileSize, i._tileUrl = t.tileUrl, i }
|
||
Zt = ft, st.Ei(Jt, Zt), Jt.prototype.loadData = function(t, i, n) { return this.ze = i, this.Oo || (this.Fo(!0), n()), !0 }, Jt.prototype.getData = function(t) { if (this.ir = t.bounds, this.Oo) { var i = st.lcs.getLocalByCoord([t.centerCoord[0], t.centerCoord[1]]),
|
||
s = (n = st.ProjectionManager.getProjection(t.projectionId)).project(this.ir[0], this.ir[1]),
|
||
n = n.project(this.ir[2], this.ir[3]),
|
||
e = [0, 0, 0, 0]; if (t.optimalZoom >= st.Ra) { for (var t = st.lcs.getLocalByCoord([s[0], s[1]]), s = st.lcs.getLocalByCoord([n[0], n[1]]), r = st.lcs.getSize(), e = [t.x - i.x, t.y - i.y, s.x - i.x, s.y - i.y], o = 0; o < e.length; o++) 0 !== e[o] && (e[o] *= r[0]);
|
||
e = [e[0] - t.center[0], e[1] - t.center[1], e[2] - s.center[0], e[3] - s.center[1]] } return { texture: this._s, zs: this.ks, Sa: [0, 0] } } }; var Zt, Xt = Jt;
|
||
|
||
function Jt(t, i, n, s) { return (t = Zt.call(this, t, i, n, s) || this).ir = n.getView().getStatus().bounds, t.io = s.canvas, t }
|
||
Ht = ft, st.Ei(qt, Ht), qt.prototype.hasOverlay = function(t) { return -1 < this._overlays.indexOf(t) }, qt.prototype.getAllOverlays = function() { return this._overlays }, qt.prototype.add = function(t) { this.hasOverlay(t) || st.er(t) && (this._overlays.push(t), t.Zx(this.map), t.init(), t._bindEvents && t._bindEvents(), (st.GB(t) || st.VB(t)) && this.YB.push(t), t._afterSetMap && t._afterSetMap(this.map), this.map.setNeedUpdate(!0)) }, qt.prototype.remove = function(t) { this.hasOverlay(t) && st.er(t) && (t._beforeRemoveMap && t._beforeRemoveMap(), this.ar(t), this.map.setNeedUpdate(!0), t.Zx(null)) }, qt.prototype.getData = function(t, i) { this.nr(); var n = 0,
|
||
s = 0,
|
||
e = this._overlays.length,
|
||
r = [],
|
||
o = new l(t.bounds); if (this.map.isDOMMode()) return { sr: this._overlays }; for (; n < 8 && s < e;) { var h, a = this._overlays[s];
|
||
s++, a && (h = Date.now(), a._needUpdate && (a.ZB(i), this.map.setNeedUpdate(!0)), n += Date.now() - h) } for (var u = 0, f = this._overlays; u < f.length; u++) { var c = (a = f[u]).getBounds();
|
||
a.visible && c && o.intersects(c) && r.push(a) } return { sr: r } }, qt.prototype.loadData = function() { return !0 }, qt.prototype.destroy = function() { this.map && this.map.off("zoomend", this.W_); for (var t = 0, i = this._overlays.slice(0); t < i.length; t++) { var n = i[t];
|
||
this.remove(n), n.destroy() }
|
||
this._overlays = [] }, qt.prototype.rr = function(t) { for (var i = t.lnglat, n = t.pixel, s = this._overlays.length - 1; 0 <= s; s--) { var e = this._overlays[s]; if (!e._opts.noSelect && e.visible)
|
||
if (st.sB(e) && n) { if (e.containsWithPixel(n)) return e } else if (e.contains(i, t)) return e } }, qt.prototype.W_ = function() { for (var t = 0, i = this.YB; t < i.length; t++) { var n = i[t];
|
||
n.W_ && n.W_() } }, qt.prototype.nr = function() { this._overlays.sort(function(t, i) { return t._opts.zIndex - i._opts.zIndex }) }, qt.prototype.ar = function(t) { var i = this._overlays.indexOf(t); - 1 < i && this._overlays.splice(i, 1), (st.GB(t) || st.VB(t)) && -1 < (i = this.YB.indexOf(t)) && this.YB.splice(i, 1) }; var Ht, Kt, Vt = qt;
|
||
|
||
function qt(t, i, n, s) { return (t = Ht.call(this, t, i, n, s) || this)._overlays = [], t.YB = [], t.Fo(!0), t.W_ = t.W_.bind(t), n.on("zoomend", t.W_), t }
|
||
|
||
function c(t, i, n, s) { return (i = Kt.call(this, t, i, n, s) || this).type = "vector", i.Ya = !1, i.Va = !1, i.Xa = 256, i.sa = [], i.la = [], i.xt = [2, 22], i.qa = !0, i.Za = !0, i.a_ = !1, i.Xa = t.tileSize, i._tileUrl = t.tileUrl, s = st.Support.$e ? 50 : 200, i.ua = new xt(s), i.NE = new It(s), (i.map = n).gn.Ja(AMap.getConfig().protocol), i }
|
||
Kt = ft, st.Ei(c, Kt), c.prototype.loadData = function(s, t, e, i) { for (var r = this, n = (this.aa = s, this.sa = [], s.optimalResolution), o = s.boundsCoord, h = s.zoom, a = s.optimalZoom, u = this.ha(o, a, n, s), f = [], c = st.map(u, function(t) { return t.key }), l = [], d = 0, v = this.la; d < v.length; d++) { var p = v[d];
|
||
c.indexOf(p.key) < 0 && (b = this.ua.getTile(p)) && b.status !== st.TileState.LOADED && b.request && (b.request.cancel(), delete b.request, this.ua.ea(b)) } for (var m = [], y = ((o = i.getMapState()).panning, o.zooming, 0); y < u.length; y++) { var b, g = u[y],
|
||
M = new st.ca(g.z, this.fa(g.x, g.z), g.y),
|
||
w = new st.ca(g.z, g.x, g.y);
|
||
(b = this.ua.getTile(M)) ? b.status === st.TileState.LOADED ? this.sa.push(w) : l.push(g): ((w = new st.Sw(M)).nG(this.type), w.status = st.TileState.LOADING, this.ua.Jo(w), m.push(M), l.push(g)), b && b.status === st.TileState.LOADED || f.push(g) } return this.da(s, this.sa, f, i), this.la = l, 0 === m.length || (st.map(m, function(t) { var i, n = r.ua.getTile(t);
|
||
n && (i = r.AD(t.x, t.y, t.z), r.bw(n, { url: i, zo: t, zoom: h, viewState: s }, e)) }), 0 === m.length) }, c.prototype.bw = function(t, i, s) { var n, e = this,
|
||
r = i.url,
|
||
o = i.zo,
|
||
h = i.zoom,
|
||
i = i.viewState; "AMap.MapboxVectorTileLayer" === this.layer.CLASS_NAME && (n = this.layer.cX && this.layer.cX()), this.lX(t, { url: r, ya: o.key, zoom: h, optimalZoom: i.optimalZoom, projectionId: i.projectionId, tileCoord: o, tileSize: this.Xa, styles: n }, function(t) { var i, n = t && e.ua.getTile(t.zo);
|
||
n && (delete n.request, n.status = st.TileState.LOADED, n.localCoord = t.zS, n.Ro = t.Ro, n.stencil = t.stencil, i = st.lcs.getLocalByCoord([n.Ro[0], n.Ro[1]]), n.data = st.Ln(st.Ln({}, t), { Hs: i }), s()) }) }, c.prototype.getData = function(t) { var i = t.optimalResolution,
|
||
n = t.optimalZoom,
|
||
s = t.boundsCoord,
|
||
s = this.ha(s, n, i, t),
|
||
i = this.aa.projectionId,
|
||
e = st.ProjectionManager.getProjection(i),
|
||
r = [],
|
||
o = this.map.qF(); if (this.ua.QF(o), this.sa.sort(function(t) { return n === t.z + 1 ? 1 : -1 }), 0 < this.sa.length)
|
||
for (var h = 0; h < this.sa.length; h++) { var u, a, f = this.sa[h],
|
||
c = this.ua.getTile(f),
|
||
l = [0, 0],
|
||
d = t.centerCoord,
|
||
d = st.lcs.getLocalByCoord([d[0], d[1]]);!c && (a = this.fa(f.x, f.z), a = this.ua.getTile(new st.ca(f.z, a, f.y))) && (c = new st.Sw(f), u = e.getResolution(f.z), f = f.x - a.zo.x, l[0] += u * this.Xa * f, c.Ro = a.Ro, c.localCoord = a.localCoord, c.data = a.data, c.Sa = l, c.status = a.status), c && 10 < n && (n >= st.Ra && c.data.Hs ? (u = st.lcs.getSize(), f = c.data.Hs.x - d.x, a = c.data.Hs.y - d.y, 0 != f && (f *= u[0], l[0] = f), 0 != a && (a *= u[1], l[1] = a), n >= st.Ra && st.za >= c.zo.z && (l[0] = -d.center[0], l[1] = -d.center[1])) : n < st.Ra && st.za < c.zo.z && (l[0] = d.center[0], l[1] = d.center[1])), c && (c.Sa = l, c.stamp = o, r.push(c)) }
|
||
return i = st.every(s, function(i) { return st.some(r, function(t) { return t.zo.key === i.key }) }), this.Fo(i), s = this.jE(r), i && (this.a_ = !0, this.map.bZ.dynamic.set("firstAllLoaded", !0)), this.a_ && this.map.bZ.dynamic.set("firstLabelDataAllLoaded", !0), { s_: this.a_, yZ: s, fo: !!i, tiles: r } }, c.prototype.destroy = function() { this.ua.forEach(function(t) { t.status !== st.TileState.LOADED && t.request && (t.request.cancel(), delete t.request), t.destroy() }), this.ua.destroy(), this.sa = [], this.la = [] }, c.prototype.forEachTileCache = function(t) { this.ua.forEach(t) }, c.prototype.reload = function() { this.ua.forEach(function(t) { t.status !== st.TileState.LOADED && t.request && (t.request.cancel(), delete t.request) }), this.ua.destroy(), this.sa = [], this.la = [] }, c.prototype.setTileUrl = function(t) { this._tileUrl = t || this._tileUrl }, c.prototype.getTileCache = function() { return this.ua }, c.prototype.setTileCacheSize = function(t) { t = t || (st.Support.$e ? 50 : 200), this.ua.Xo(t) }, c.prototype.AD = function(t, i, n) { return this._tileUrl.replace("[x]", t.toString()).replace("[y]", i.toString()).replace("[z]", n.toString()).replace("{1234}", (Math.abs(t + i) % 4 + 1).toString()) }, c.prototype.Da = function(t, i) { var e, r, o;
|
||
t.length && (e = this.Pa.z, r = (this.Pa.ja + this.Pa.Oa) / 2, o = (this.Pa.Fa + this.Pa.Ea) / 2, t.sort(function(t, i) { var n = (t.x << e - t.z) - r,
|
||
t = (t.y << e - t.z) - o,
|
||
s = (i.x << e - i.z) - r; return n * n + t * t <= s * s + (i = (i.y << e - i.z) - o) * i ? -1 : 1 })) }, c.prototype.ha = function(t, i, n, s) { for (var e = this.layer.getSourceConfig().dataZooms, e = (i = +Math.max(Math.min(i, e[1]), e[0]), n = st.ProjectionManager.getProjection(s.projectionId).getResolution(i), this.Xa), s = 20037508.342789244, r = t[0] + s, o = -(t[3] - s), h = t[2] + s, r = r / n, o = o / n, t = -(t[1] - s) / n, a = Math.floor(h / n / e), u = Math.min((1 << i) - 1, Math.floor(t / e)), s = Math.floor(r / e), f = Math.max(Math.floor(o / e), 0), c = (this.Pa = { Oa: a, Ea: u, ja: s, Fa: f, z: i }, []), l = s; l <= a; l += 1)
|
||
for (var d = f; d <= u; d += 1) c.push(new st.ca(i, l, d)); return this.Da(c), c }, c.prototype.da = function(t, i, n, s) { if (t = t.optimalZoom - 1, this.Za = "overlay" !== this.layer.type, this.qa = "overlay" !== this.layer.type, this.Za)
|
||
for (var e = Math.min(this.xt[1] - 1, 2 + t), r = 1 + t; n.length && r <= e; r += 1) { for (var o = [], h = [], a = r, u = n.length - 1; 0 <= u; --u)
|
||
for (var f = n[u], c = f.x << 1, l = f.y << 1, d = 1; 0 <= d; --d)
|
||
for (var v = 1; 0 <= v; --v) { var p = new st.ca(a, this.fa(c + d, a), l + v),
|
||
m = this.ua.getTile(p),
|
||
y = new st.ca(a, c + d, l + v);
|
||
(m && m.status === st.TileState.LOADED ? h : o).push(y) }
|
||
h.length && i.push.apply(i, h), n = o }
|
||
if (this.qa)
|
||
for (var b = this.xt[0] - 1, r = t - 1; n.length && b <= r; --r) { for (var h = [], o = [], g = {}, u = n.length - 1; 0 <= u; --u) { var M = n[u],
|
||
a = r,
|
||
w = M.z - a,
|
||
d = M.x >> w,
|
||
v = M.y >> w;
|
||
g[M = (p = new st.ca(a, this.fa(d, a), v)).key] || (m = this.ua.getTile(p), g[M] = !0, (m && m.status === st.TileState.LOADED ? h : o).push(new st.ca(a, d, v))) }
|
||
h.length && i.push.apply(i, h), n = o }
|
||
return i }, c.prototype.fa = function(t, i) { for (var n = 1 << (i = i || this.aa.optimalZoom); t < 0 || n <= t;) t = n <= t ? t - n : t < 0 ? n + t : t; return t }, c.prototype.vX = function(t, i) { var n = [-180, -90],
|
||
s = [180, 90],
|
||
r = (e = st.ProjectionManager.getProjection("EPSG:3857")).project(256 * t + n[0], s[1] - 256 * i),
|
||
e = e.project(256 * (t + 1) + n[0], s[1] - 256 * (i + 1)); return [r[0], r[1], e[0], e[1]] }, c.prototype.jE = function(t) { for (var i = !!t.length, n = 0, s = t; n < s.length; n++) { var e = s[n].data; if (i)
|
||
for (var r = 0, o = e; r < o.length; r++) { var h = o[r]; if (!(i = i && !!h.Ta)) break } } return i }, $t = Qt = c, st.Ei(ii, $t), ii.prototype.ha = function(t, i, n, s) { for (var e = this.layer.getSourceConfig().dataZooms, e = (i = Math.max(Math.min(i, e[1]), e[0]) - 1, n = st.ProjectionManager.getProjection(s.projectionId).getResolution(i), this.Xa), s = 20037508.342789304, r = t[0] + s, o = -(t[3] - s), h = t[2] + s, r = r / n, o = o / n, t = -(t[1] - s) / n, a = Math.floor(h / n / e), u = Math.min((1 << i) - 1, Math.floor(t / e)), s = Math.floor(r / e), f = Math.max(Math.floor(o / e), 0), c = (this.Pa = { Oa: a, Ea: u, ja: s, Fa: f, z: i }, []), l = s; l <= a; l += 1)
|
||
for (var d = f; d <= u; d += 1) c.push(new st.ca(i, l, d)); return this.Da(c), c }; var $t, ti = ii;
|
||
|
||
function ii(t, i, n, s) { return (t = $t.call(this, t, i, n, s) || this).lX = t.map.gn.loadDistrictSourceTile.bind(t.map.gn), t }
|
||
ni = Qt, st.Ei(ei, ni), ei.prototype.reStyle = function(i, s) { var e = this;
|
||
this.ua.forEach(function(n) { var t;
|
||
n.status === st.TileState.LOADED ? (n.zo.z + 1 !== s && e.ua.ea(n), t = st.Ln(st.Ln({}, n.data), { dX: null, Dc: null, A_: null, $c: null, pX: null, labels: null }), e.yX.mX(t, i, function(t, i) { n.data.Oc = i.Oc, n.data.Fc = i.Fc, n.data.w0 = i.w0, n.data.Uc = i.Uc, n.data.dX = i.dX, n.data.IX = i.IX, n.data.labels = i.labels, e.map.setNeedUpdate(!0) })) : n.status === st.TileState.LOADING && (null != (t = n.request) && t.cancel(), e.ua.ea(n)) }) }, ei.prototype.ha = function(t, i, n, s) { for (var e = this.layer.getSourceConfig().dataZooms, e = (i = Math.max(Math.min(i - 1, e[1]), e[0]), n = st.ProjectionManager.getProjection(s.projectionId).getResolution(i), this.Xa), s = 20037508.342789244, r = t[0] + s, o = -(t[3] - s), h = t[2] + s, r = r / n, o = o / n, t = -(t[1] - s) / n, a = Math.floor(h / n / e), u = Math.min((1 << i) - 1, Math.floor(t / e)), s = Math.floor(r / e), f = Math.max(Math.floor(o / e), 0), c = (this.Pa = { Oa: a, Ea: u, ja: s, Fa: f, z: i }, []), l = s; l <= a; l += 1)
|
||
for (var d = f; d <= u; d += 1) c.push(new st.ca(i, l, d)); return this.Da(c), c }; var ni, si = ei;
|
||
|
||
function ei(t, i, n, s) { return (t = ni.call(this, t, i, n, s) || this).yX = new st.bX, t._tileUrl = s.getSourceConfig().tileUrl, t.lX = t.map.gn.gX.bind(t.map.gn), t }
|
||
ri = ft, st.Ei(hi, ri), hi.prototype.loadData = function(t, i, n) { return this.ze = i, this.Oo || (this.Fo(!0), n()), !0 }, hi.prototype.getData = function(t) { return this.ir = t.bounds, { Sa: [0, 0] } }; var ri, oi = hi;
|
||
|
||
function hi(t, i, n, s) { return (t = ri.call(this, t, i, n, s) || this).ir = n.getView().getStatus().bounds, t.io = s.canvas, t }
|
||
ai = ft, st.Ei(fi, ai), fi.prototype.loadData = function(t, i, n) { return !0 }, fi.prototype.getData = function(t) { return !0 }, fi.prototype.destroy = function() { this.gs && this.gs.destroy && this.gs.destroy() }; var ai, ui = fi;
|
||
|
||
function fi(t, i, n, s) { return (t = ai.call(this, t, i, n, s) || this).gs = s, t }
|
||
ci = ft, st.Ei(di, ci), di.prototype.CS = function() { this.AS = !1 }, di.prototype.loadData = function(t, i, n) { return !0 }, di.prototype.getData = function(t) { var i, r, e, o, n, h, a, u = this,
|
||
s = this.gs.getState().path; return this.AS || !s || (i = st.GeometryUtil.typePolygon(s), r = { type: "Polygon", $S: new Array, polygons: new Array, BM: new Array, LS: { x: 0, y: 0 } }, i && "Polygon" === i ? (s[0][0] instanceof st.LngLat ? r.LS = st.lcs.getLocalByLnglat(s[0][0].toString()) : r.LS = st.lcs.getLocalByLnglat(s[0][0]), e = (n = r.LS).x, o = n.y, st.forEach(s, function(t, i) { var s;
|
||
0 === i ? st.forEach(t, function(t) { t instanceof st.LngLat && (t = t.toArray()); var t = st.lcs.getLocalByLnglat(t),
|
||
n = (i = u.DS(e, o, t.x, t.y))[0],
|
||
i = i[1];
|
||
r.$S.push(t.Sa[0] + n, t.Sa[1] + i) }) : (s = [], st.forEach(t, function(t) { t instanceof st.LngLat && (t = t.toArray()); var t = st.lcs.getLocalByLnglat(t),
|
||
n = (i = u.DS(e, o, t.x, t.y))[0],
|
||
i = i[1];
|
||
s.push(t.Sa[0] + n, t.Sa[1] + i) }), r.BM.push(s)) })) : i && "MultiPolygon" === i && (r.type = "MultiPolygon", s[0][0][0] instanceof st.LngLat ? r.LS = st.lcs.getLocalByLnglat(s[0][0][0].toArray()) : r.LS = st.lcs.getLocalByLnglat(s[0][0][0]), h = (n = r.LS).x, a = n.y, st.forEach(s, function(t) { var e = [],
|
||
n = [];
|
||
st.forEach(t, function(t, i) { var s;
|
||
0 === i ? st.forEach(t, function(t) { t instanceof st.LngLat && (t = t.toArray()); var t = st.lcs.getLocalByLnglat(t),
|
||
n = (i = u.DS(h, a, t.x, t.y))[0],
|
||
i = i[1];
|
||
e.push(t.Sa[0] + n, t.Sa[1] + i) }) : (s = [], st.forEach(t, function(t) { t instanceof st.LngLat && (t = t.toArray()); var t = st.lcs.getLocalByLnglat(t),
|
||
n = (i = u.DS(h, a, t.x, t.y))[0],
|
||
i = i[1];
|
||
s.push(t.Sa[0] + n, t.Sa[1] + i) }), n.push(s)) }), r.BM.push(n), r.polygons.push(e) })), this.AS = this.zw(r), this.AS) }, di.prototype.zw = function(t) { if (t.Oc = new st._w, !t.Dc) { t.Dc = new st.K_; var i = [],
|
||
n = []; "Polygon" === t.type ? (i = [t.$S], n = [t.BM]) : "MultiPolygon" === t.type && (i = t.polygons, n = t.BM); for (var s = 0; s < i.length; s++) { for (var e = i[s], r = [], o = 0; o < n[s].length; o++) { var h = n[s][o];
|
||
r.push(e.length / 2), e.push.apply(e, h) } var a = t.Dc.Nx(e, r);
|
||
0 < a && t.Oc.add(99, 99, a, st.zoomRange[0], st.zoomRange[1]) } return t } }, di.prototype.DS = function(t, i, n, s) { return n -= t, t = s - i, [n * (s = st.lcs.getSize())[0], t * s[1]] }; var ci, li = di;
|
||
|
||
function di(t, i, n, s) { return (t = ci.call(this, t, i, n, s) || this).gs = s, t }
|
||
vi = Qt, st.Ei(mi, vi), mi.prototype.YE = function(t) { var i = this; return t(null, { GW: "worker", cb: function(t) { i.dynamicTextVerticeLoadedByTile(t) } }), !0 }, mi.prototype.dynamicTextVerticeLoadedByTile = function(t) { for (var i = 0, n = t.data; i < n.length; i++) { var s = n[i];
|
||
this.dynamicTextVerticeLoaded({ data: s.data, tag: s.tag, XE: s.XE }) } }, mi.prototype.dynamicTextVerticeLoaded = function(t) { var i = t.data,
|
||
t = t.XE; if (i instanceof st.ca) this.ua.getTile(i);
|
||
else { var n = i[Object.keys(i)[0]]; if ((n = this.ua.getTile(n.zo, !0)) && n.data) { var s, e, r = {}; for (s in i) i.hasOwnProperty(s) && (e = i[s], r[s] = new st.La(e.zo, e));
|
||
n.data.labels = r, n.data.XE = t, n.data.Ta = !0, this.Eo() } } }, mi.prototype.Aa = function(t) { t.zo && (t = this.ua.getTile(t.zo)) && (t.data.Ta = !0) }, mi.prototype.loadData = function(s, t, e, i) { var o = this,
|
||
n = (this.aa = s, this.sa = [], s.optimalResolution),
|
||
r = s.boundsCoord,
|
||
h = s.zoom,
|
||
a = s.optimalZoom; if (a < 9.8) return !1; for (var u = this.ha(r, a, n, s), f = [], c = st.map(u, function(t) { return t.key }), l = [], d = 0, v = this.la; d < v.length; d++) { var p = v[d];
|
||
c.indexOf(p.key) < 0 && (x = this.ua.getTile(p)) && x.status !== st.TileState.LOADED && x.request && (x.request.cancel(), delete x.request, this.ua.ea(x)) } for (var m, y, b, g = [], M = (r = i.getMapState()).panning, w = r.zooming, k = 0; k < u.length; k++) { var x, A = u[k],
|
||
z = new st.ca(A.z, this.fa(A.x, A.z), A.y),
|
||
C = new st.ca(A.z, A.x, A.y);!(x = this.ua.getTile(z)) && M && !w || (x ? x.status === st.TileState.LOADED ? this.sa.push(C) : l.push(A) : ((C = new st.Sw(z)).nG(this.type), C.status = st.TileState.LOADING, this.ua.Jo(C), g.push(z), l.push(A)), x && x.status === st.TileState.LOADED) || f.push(A) } return this.da(s, this.sa, f, i), this.la = l, 0 !== g.length && (m = this.map.getMapboxStyle(), y = [], b = 256, st.map(g, function(t) { var i = t.x,
|
||
n = t.y,
|
||
s = t.z,
|
||
e = o.NE.getTile(t),
|
||
r = null,
|
||
n = (e && e.boundsStatus ? r = e.boundsStatus.isInNebulaOversea : (e = o.aa.projectionId, e = [st.V[e].Xs(i * b, n * b, s), st.V[e].Xs((i + 1) * b, n * b, s), st.V[e].Xs((i + 1) * b, (n + 1) * b, s), st.V[e].Xs(i * b, (n + 1) * b, s)], r = o.rG(e, t.key), (i = new st.pa(t)).boundsStatus = { isInNebulaOversea: r }, o.NE.Jo(i)), r || y.push(t), o.NE.getTile(t));
|
||
(s = o.ua.getTile(t)) && n && n.boundsStatus && (s.sG = n.boundsStatus) }), st.map(g = y, function(t) { var i, n = o.ua.getTile(t);
|
||
n && (i = o.AD(t.x, t.y, t.z), o.bw(n, { url: i, zo: t, zoom: h, viewState: s, styles: m }, e)) }), 0 === g.length) }, mi.prototype.oG = function(t, i, n, s) { void 0 === s && (s = "lnglat"); var e = [-180, -90],
|
||
r = [180, 90],
|
||
o = st.ProjectionManager.getProjection("EPSG:3857"); return "lnglat" === s ? [256 * t + e[0], r[1] - 256 * i, 256 * (t + 1) + e[0], r[1] - 256 * (i + 1)] : "EPSG:3857" === s ? (s = o.project(256 * t + e[0], r[1] - 256 * i), o = o.project(256 * (t + 1) + e[0], r[1] - 256 * (i + 1)), [s[0], s[1], o[0], o[1]]) : [0, 0, 0, 0] }, mi.prototype.bw = function(t, i, s) { var e = this,
|
||
n = i.url,
|
||
r = i.zo,
|
||
o = i.zoom,
|
||
h = i.viewState,
|
||
i = i.styles;
|
||
this.map.gn.aG(t, { url: n, ya: r.key, zoom: o, optimalZoom: h.optimalZoom, projectionId: h.projectionId, tileCoord: r, tileSize: this.Xa, styles: i }, function(t) { var i, n = t && e.ua.getTile(t.zo);
|
||
n && (delete n.request, n.status = st.TileState.LOADED, n.localCoord = t.zS, n.Ro = t.Ro, n.stencil = t.stencil, i = st.lcs.getLocalByCoord([n.Ro[0], n.Ro[1]]), n.data = st.Ln(st.Ln({}, t), { Hs: i }), s()) }) }, mi.prototype.getData = function(t) { var i = this,
|
||
n = t.optimalResolution,
|
||
s = t.boundsCoord,
|
||
e = t.optimalZoom; if (e < 10) return this.Fo(!0), !1; var s = this.ha(s, e, n, t),
|
||
n = t.projectionId,
|
||
r = st.ProjectionManager.getProjection(n),
|
||
o = [],
|
||
h = this.map.qF(); if (this.ua.QF(h), this.sa.sort(function(t) { return e === t.z + 1 ? 1 : -1 }), 0 < this.sa.length)
|
||
for (var a = 0; a < this.sa.length; a++) { var f, u, c = this.sa[a],
|
||
l = this.ua.getTile(c),
|
||
d = [0, 0],
|
||
v = t.centerCoord,
|
||
v = st.lcs.getLocalByCoord([v[0], v[1]]);
|
||
l || (u = this.ua.getTile(new st.ca(c.z, this.fa(c.x, c.z), c.y))) && ((l = new st.Sw(c)).nG(this.type), f = r.getResolution(c.z), c = c.x - u.zo.x, d[0] += f * this.Xa * c, l.Ro = u.Ro, l.localCoord = u.localCoord, l.data = u.data, l.Sa = d, l.status = u.status), l && (e >= st.Ra && l.data.Hs ? (f = st.lcs.getSize(), c = l.data.Hs.x - v.x, u = l.data.Hs.y - v.y, 0 != c && (c *= f[0], d[0] = c), 0 != u && (u *= f[1], d[1] = u), d[0] = -v.center[0], d[1] = -v.center[1]) : (d[0] = v.center[0], d[1] = v.center[1])), l && (l.Sa = d, l.stamp = h, o.push(l)) }
|
||
return s = !(n = st.filter(s, function(t) { return !(!(t = i.NE.getTile(t)) || !t.boundsStatus || !1 !== t.boundsStatus.isInNebulaOversea) })).length || st.every(n, function(i) { return st.some(o, function(t) { return t.zo.key === i.key }) }), n = this.jE(o), s && (this.a_ = !0, this.map.bZ.dynamic.set("firstAllLoaded", !0)), this.a_ && this.map.bZ.dynamic.set("firstLabelDataAllLoaded", !0), s && this.Fo(!0), { s_: this.a_, fo: !!s, yZ: n, tiles: o } }, mi.prototype.Ia = function() { this.map.on("tileSdfInfoFinished", this.Aa.bind(this)) }, mi.prototype.ha = function(t, i, n, s) { for (var e = this.layer.getSourceConfig().dataZooms, e = (i = Math.max(Math.min(i, e[1]), e[0]) - 1, n = st.ProjectionManager.getProjection(s.projectionId).getResolution(i), this.Xa), s = 20037508.342789244, r = t[0] + s, o = -(t[3] - s), h = t[2] + s, r = r / n, o = o / n, t = -(t[1] - s) / n, a = Math.floor(h / n / e), u = Math.min((1 << i) - 1, Math.floor(t / e)), s = Math.floor(r / e), f = Math.max(Math.floor(o / e), 0), c = (this.Pa = { Oa: a, Ea: u, ja: s, Fa: f, z: i }, []), l = s; l <= a; l += 1)
|
||
for (var d = f; d <= u; d += 1) c.push(new st.ca(i, l, d)); return this.Da(c), c }, mi.prototype.jE = function(t) { for (var i = !!t.length, n = 0, s = t; n < s.length; n++) { var e = s[n].data; if (i)
|
||
for (var r = 0, o = e; r < o.length; r++) { var h = o[r]; if (!(i = i && !!h.Ta)) break } } return i }; var vi, pi = mi;
|
||
|
||
function mi(t, i, n, s) { return (t = vi.call(this, t, i, n, s) || this).type = "mapbox", t.hD = [AMap.getConfig().protocol + "://c-webapi.amap.com/style_icon/2.0/icon-normal-big.png", AMap.getConfig().protocol + "://c-webapi.amap.com/style_icon/2.0/icon-biz-big.png"], t.Ia(), t } var yi = { ielt9: "ActiveXObject" in window && !document.addEventListener, opts: { callback: "callback", type: "json", charset: "utf-8" }, setOptions: function(t) { this.opts = st.assign(this.opts, t) }, bv: function() {}, gv: function() { this.emit("error", { info: "TIME_OUT_A" }) }, JSONP: function(i, n, t) {
|
||
function s() { window[e] = null, r.onerror = null, r.parentNode && r.parentNode.removeChild(r) }
|
||
void 0 === t && (t = {}), i = encodeURI(i); var e = st.Util.getGuid("jsonp_", 6) + "_",
|
||
r = document.createElement("script"),
|
||
o = (r.type = "text/javascript", r.charset = "utf-8", r.async = !0, t = st.assign({}, this.opts, t), r.onerror = function(t) { s(), n && n("error", { url: i, info: "Request Error" }) }, window[e] = function(t) { s(), n && n("complete", { info: "ok", url: i, data: t }) }, "?"),
|
||
o = (-1 !== i.indexOf("?") && (o = "&"), i + o + t.callback + "=" + e);
|
||
r.src = o, (document.getElementsByTagName("body")[0] || document.getElementsByTagName("head")[0]).appendChild(r) }, Ajax: function(i, t, n) { var s, e; return void 0 === window.XMLHttpRequest && window.wv ? ((s = this._v = new window.wv).onerror = function(t) { n("error", { info: "Request Error", url: i, data: "" }) }, s.onload = function() { n("complete", { url: i, data: s.responseText }) }, s.open(t.type || "GET", i), setTimeout(function() { s.send(t.content || null) }, 0), s) : window.XMLHttpRequest ? ((e = new XMLHttpRequest).onreadystatechange = function() { var t;
|
||
4 === e.readyState && (200 === e.status ? (t = "arraybuffer" === e.responseType ? e.response : e.responseText, n("complete", { info: "ok", url: i, data: t })) : (e.abort(), n("error", { info: e.status, url: i, data: "" }))) }, e.onerror = function(t) { e.abort(), n("error", { info: "Request Error", url: i, data: "" }) }, e.open(t.type || "GET", i, !0), e.responseType = t.responseType || "text", "POST" === t.type && e.setRequestHeader("Content-Type", t.requestContentType || "application/x-www-form-urlencoded"), e.send(t.content || null), e) : void n("error", { info: "Not Support Ajax", url: i, data: "" }) } },
|
||
bi = (gi.prototype.add = function(t, i, n, s, e) { Mi.getKey(t, i, e, s) !== (this.WM ? this.WM.getKey() : "-1") && (this.XR = t, this.qR = i, this.VM += this.WM ? this.WM.length : 0, this.WM = new Mi(t, i, this.VM, s, e), this.jc.push(this.WM)), this.WM.add(n) }, gi);
|
||
|
||
function gi() { this.jc = [], this.XR = 0, this.qR = 0, this.VM = 0 }
|
||
wi.getKey = function(t, i, n, s) { return t + ":" + i + ":" + n + ":" + s }, wi.prototype.add = function(t) { this.length += t }, wi.prototype.getKey = function() { return this.color + ":" + this.width + ":" + this.maxzoom + ":" + this.minzoom }; var Mi = wi;
|
||
|
||
function wi(t, i, n, s, e) { this.color = t, this.width = i, this.offset = n, this.minzoom = s, this.maxzoom = e, this.length = 0 }
|
||
ki = _t, st.Ei(Ai, ki), Ai.prototype.loadData = function(t, i, n, s) { var o = this,
|
||
e = (this.aa = t, this.ze = i, this.Zs = [], this.sa = [], t.projectionId),
|
||
r = [],
|
||
h = t.boundsCoord,
|
||
a = t.optimalZoom,
|
||
u = t.optimalResolution,
|
||
f = this.ha(h, a, u),
|
||
h = (this.ua.forEach(function(t) { var i = t.zo,
|
||
n = !1; if (t.status !== st.TileState.LOADED) { for (var s = f.ja; s <= f.Oa; s += 1)
|
||
for (var e = f.Fa; e <= f.Ea; e += 1) { var r = o.fa(s, f.z);
|
||
i.z === f.z && i.y === e && r === i.x && (n = !0) }
|
||
n || (t.request && t.request.abort && t.request.abort(), o.ua.ea(t)) } }), this.qs(t, this.Zs, r)); return this.Ys(h, i, e, n), this.da(t, this.sa, r, s), this.sa = this.sa.concat(this.Zs), 0 === h.length }, Ai.prototype.Ys = function(h, t, z, C) { if (!(this.aa.optimalZoom < this.xt[0] || this.aa.optimalZoom > this.xt[1])) { this.Da(h); var i = this.map.mapStyle.vn.MS("traffic");
|
||
i && i.multiFillColors && ((i = i.multiFillColors).congested && i.congested, i.slow && i.slow, i.smooth && i.smooth, i.seriousCongested && i.seriousCongested, i.unknown) && i.unknown; for (var T = this.layer.getOptions().rZ, a = this, n = 0, s = h.length; n < s; n += 1) ! function(t) { var t = h[t],
|
||
M = st.Util.Rg(t.x, t.y, t.z),
|
||
i = a.ll(M),
|
||
w = new st.Sw(t),
|
||
k = (a.ua.Qo(w), st.ProjectionManager.getProjection(z).getResolution(t.z)),
|
||
n = (o = t.x * a.Xa * k) + a.Xa * k,
|
||
s = (t = t.y * a.Xa * k) + a.Xa * k,
|
||
e = st.V[z].Xs(o, t),
|
||
r = st.V[z].Xs(n, s),
|
||
o = e[0],
|
||
n = r[0],
|
||
t = r[1],
|
||
s = e[1],
|
||
x = (w.Ro = [o, t, n, s], w.status = st.TileState.LOADING, st.lcs.getLocalByCoord([w.Ro[0], w.Ro[1]])),
|
||
A = w.zo.z > st.za;
|
||
A && (w.Ro[0] -= x.center[0], w.Ro[1] -= x.center[1], w.Ro[2] -= x.center[0], w.Ro[3] -= x.center[1]), w.request = yi.Ajax(i, {}, function(t, i) { w.data = {}; try { i = JSON.parse(i.data) } catch (t) { return w.status = st.TileState.LOADED, void C() } if (i = i.data[M.join("_")], "complete" === t && i) { for (var n = new bi, s = new st.J_, e = 0, r = i.length; e < r; e++)
|
||
for (var o = i[e], h = 0, a = o.length; h < a; h++)
|
||
for (var u = o[h], f = .6 * u[0] * T, c = 0, l = u[1].length; c < l; c++) { for (var d = [], v = st.Util.Eg(u[1][c]), p = 0, m = v.length; p < m; p += 2) { var y = k * (256 * w.zo.x + v[p]),
|
||
b = k * (256 * w.zo.y + v[p + 1]),
|
||
y = st.V[z].Xs(y, b);
|
||
A && (y[0] -= x.center[0], y[1] -= x.center[1]), d.push(y[0], y[1]) } var g = s.hb(d).Iw;
|
||
n.add(e, f, g, 8, 20) }
|
||
w.data = { $c: s, Uc: n, Hs: x } }
|
||
w.status = st.TileState.LOADED, C() }) }(n) } }; var ki, xi = Ai;
|
||
|
||
function Ai(t, i, n, s) { return (t = ki.call(this, t, i, n, s) || this).Qs = [3, 17], t.Xa = 256, t.Za = t.qa = !1, t.ll = function(t) { return AMap.getConfig().protocol + "://vdata.amap.com/traffic?key=" + AMap.getConfig().key + "&v=" + AMap.getConfig().version + "&t=" + t + "&w=" + (new Date).getTime() }, t } var zi, Ti = { nebula: "tile", mapbox: "tile", nebulaLabel: "tile", indoor: "other" },
|
||
Si = (zi = ft, st.Ei(Ii, zi), Ii.prototype.loadData = function(e, t, i, r, n) { var s, o = this,
|
||
h = this.Yh; for (s in Object.keys(h).length, h) ! function(s) { h.hasOwnProperty(s) && h[s].YE(function(t, i) { var n = i.GW,
|
||
i = i.cb; "worker" === (void 0 === n ? "main" : n) ? (o.Ye[s] = i, r.gn.innerLabelsLoadData({ id: s, bounds: e.bounds.slice(), zoom: e.optimalZoom }, function(t) { Object.keys(t).length })) : (t = function(t, i) { var n, s, e = i.R_,
|
||
r = i.z_,
|
||
o = {}; for (n in t) t.hasOwnProperty(n) && (s = t[n], s = new st.eG({ R_: e, z_: r }).Ns(s.data, { zoom: s.zoom, from: "inner", center: s.center }), o[n] = new st.La(n, s)); return o }(t, { R_: o.Mf, z_: o.ac }), i && i(t)) }) }(s); return !0 }, Ii.prototype.getData = function(t) { var i, n, s, e, r = this.Yh,
|
||
o = { tile: [], other: [] },
|
||
h = !0; for (i in r) r.hasOwnProperty(i) && (e = r[i], n = Ti[i] || "other", e) && (s = e.getData(t), e = e.lo(), o[n].push(s), h = h && e); return this.Oo = h, this.Fo(h), o }, Ii.prototype.getSources = function() { return this.Yh }, Ii.prototype.addSource = function(t, i) { this.Yh[t] = i }, Ii.prototype.Xh = function(t) { delete this.Yh[t] }, Ii.prototype.uU = function(t) { var i = t.id,
|
||
n = this.Ye;
|
||
n[i] && n[i](t) }, Ii.prototype.destroy = function() { var t, i, n = this.Yh; for (t in n) n.hasOwnProperty(t) && (i = n[t]) && i.destroy() }, Ii.prototype.reload = function() { var t, i, n = this.Yh; for (t in n) n.hasOwnProperty(t) && (i = n[t]) && i.reload && i.reload() }, Ii.prototype.Ia = function() { this.map.gn.on("dynamicTextVerticeLoadedByTile", this.uU.bind(this)) }, Ii);
|
||
|
||
function Ii(t, i, n, s) { return (t = zi.call(this, t, i, n, s) || this).Yh = {}, t.Ye = {}, t.Mf = n.R_, t.ac = n.z_, t.Ia(), t } var Li, Di = st.Support.scale,
|
||
Oi = (Li = s, st.Ei(Ei, Li), Ei.prototype.loadData = function(t, i, n, s) { var e = this; if (!s.gn.dE) return !1;
|
||
this.aa = t, this.sa = []; for (var r = t.bounds, o = this.ra(t.optimalZoom), h = this.ha(r, o), r = st.map(h, function(t) { var i = e.fa(t.x, t.z); return t.z + "," + i + "," + t.y }), a = this.QH.qH(r).yB, u = [], f = 0; f < h.length; f++) { var c, l, d = h[f],
|
||
v = new st.ca(d.z, this.fa(d.x, d.z), d.y),
|
||
p = new st.ca(d.z, d.x, d.y),
|
||
m = st.zB.ALL,
|
||
y = this.ua.getTile(v, !0);
|
||
y ? (c = this.ua.MD(y.tag, m)) && (y.tag = m, l = d.key + "," + st.Util.SD(c), a.indexOf(l) < 0) && u.push(l) : (l = v.key + "," + st.Util.SD(m), a.indexOf(l) < 0 && ((d = new st.pa(v)).status = st.TileState.LOADING, this.ua.Jo(d), d.tag = m, u.push(l))), !y || y.status !== st.TileState.LOADED && y.status !== st.TileState.RELOADING || this.sa.push(p) } var b = (r = this.OE(u)).overseaTile,
|
||
g = r.chinaTile,
|
||
r = r.mapboxTile; return this.PE(b, "oversea"), this.PE(g, "china"), this.PE(r, "mapbox"), this.da(t, this.sa, [], s), this.zD(u, t, o, s, n, "building"), 0 === u.length }, Ei.prototype.destroy = function() { this.mapStyle && this.mapStyle.destroy && (this.mapStyle.destroy(), delete this.mapStyle), this.R_ && this.R_.destroy && (this.R_.destroy(), delete this.R_) }, Ei.prototype.reload = function() { var i = this;
|
||
this.ua.forEach(function(t) { t.status !== st.TileState.LOADED && t.request && (t.request.cancel(), delete t.request), t.destroy(), i.ua.ea(t) }), this.sa = [], this.la = [] }, Ei);
|
||
|
||
function Ei(t, i, n, s) { return (i = Li.call(this, t, i, n, s) || this).Xa = t.tileSize, i._tileUrl = t.tileUrl, s = st.Support.$e ? 50 : 200, i.ua = new Ct(s), n.gn.Ha({ scale: Di, showLabel: n.showLabel, DD: -1 !== location.search.indexOf("forceAll") }), i.R_ = n.R_, i.z_ = n.z_, n.gn.Ja(AMap.getConfig().protocol), i.mapStyle = n.mapStyle, i.mapStyle.pn(function() {}), i.Ia(), i.sD(), i }
|
||
Ri = ft, st.Ei(Pi, Ri), Pi.prototype.loadData = function(t, i, n, s, e) { var r; if (!(e = e.getSource("nebula"))) return this.gs && (r = this.gs.VR.showId) && this.GR([r]), !1; for (var o = e.getData(t).tiles, h = o.length, a = [], u = 0; u < h; u++)
|
||
for (var f = 0, c = o[u].data || []; f < c.length; f++) { var l = c[f]; if (l.indoorInfo)
|
||
for (var d = l.indoorInfo, v = d.length, p = 0; p < v; p++) { for (var m = d[p], y = !1, b = 0; b < a.length; b++) m === a[b] && (y = !0);
|
||
y || a.push(m) } }
|
||
return this.GR(a), this.Fo(!0), !0 }, Pi.prototype.getData = function() { return this._indoorData }, Pi.prototype.lo = function() { return !0 }, Pi.prototype.GR = function(t, i) { if (!t || t.length < 1) return null; if (!this.map.isDOMMode()) { for (var s = (n = this.gs).VR, e = (n._map, []), n = this._config.server + "/v3/indoor/indoormaps?", r = t, o = r.length, h = [], a = [], t = [], u = !1, f = 0; f < o; f++) { var c = r[f],
|
||
l = 1,
|
||
d = (this._indoorData.data[c] || (this._indoorData.data[c] = {}), s.floorInfo && s.floorInfo[c] && (d = s.floorInfo[c]) && (l = d), this._indoorData.data[c]);
|
||
d && d.data && d.data[l] || (u = !0, h.push(l), a.push(0), e.push(c)) }
|
||
this.LL = e, t.push("poiid=" + e.join(";")), t.push("floor=" + h.join(";")), t.push("version=" + a.join(";")), t.push("s=rsv3"), t.push("from=indoorH5Map"), t.push("servicetype=unify"), t.push("key=" + this._config.key), this._config.jscode ? t.push("jscode=" + this._config.jscode) : this._config.gaodeserver && (n = this._config.gaodeserver + "/v3/indoor/indoormaps?"), n += t.join("&"), u && this.ZR.url !== n ? (this.ZR.url = n, this.YR(n, this.jF)) : (this.jF(), i && i()) } }, Pi.prototype.JR = function(t, i, n) { var s = this; if (!t || !i) return !1;
|
||
this.GR([t], function() { s.gs && s.gs._map && s.gs._map.setNeedUpdate(!0), n && n() }) }, Pi.prototype.YR = function(t, u) { var f = this,
|
||
i = new XMLHttpRequest;
|
||
i.onreadystatechange = function() { 4 === i.readyState && 200 === i.status && f.map.gn.JB(i.response, function(t, i) { if (t) console.log(t);
|
||
else
|
||
for (var n = 0, s = Object.keys(i); n < s.length; n++)
|
||
for (var e = s[n], r = (f._indoorData.data[e] && f._indoorData.data[e].data || (f._indoorData.data[e].data = {}), f._indoorData.data[e].building = i[e].building, i[e].data), o = 0, h = Object.keys(r); o < h.length; o++) { var a = h[o];
|
||
f._indoorData.data[e].data[a] = r[a] }
|
||
u() }) }, i.open("GET", t, !0), i.responseType = "arraybuffer", i.send() }; var Ri, ji = Pi;
|
||
|
||
function Pi(t, i, n, s) { var e = Ri.call(this, t, i, n, s) || this; return e.jF = function() { var t;
|
||
e.gs && (t = e.gs.getRender()) && t.render(e._indoorData) }, e.gs = s, e._config = AMap.getConfig(), e._indoorData = { extData: {}, data: {} }, e.LL = [], e.ZR = { url: null, status: !1 }, e } var Bi, Fi, Wi = st.Support.scale,
|
||
ft = (Bi = ft, st.Ei(d, Bi), d.prototype.loadData = function(t, i, n, s) { var e = this; if ("optimise" === s.loadData() && s.TL()) return !1;
|
||
this.aa = t, this.sa = []; for (var r = t.bounds, o = this.ra(t.optimalZoom), h = this.ha(r, o), a = [], u = t.optimalZoom, r = st.map(h, function(t) { var i = e.fa(t.x, t.z); return t.z + "," + i + "," + t.y }), f = this.KH.qH(r), c = [], l = 0; l < h.length; l++) { var d, v, p = h[l],
|
||
m = new st.ca(p.z, this.fa(p.x, p.z), p.y),
|
||
y = new st.ca(p.z, p.x, p.y),
|
||
b = st.Util.kD(m.key, u),
|
||
g = this.ua.getTile(m, !0);
|
||
g ? (d = this.ua.MD(g.gB, b)) && (g.gB = b, v = p.key + "," + st.Util.SD(d), f.yB.indexOf(v) < 0) && c.push(v) : (v = m.key + "," + st.Util.SD(b), f.yB.indexOf(v) < 0 && ((m = new st.pa(m)).status = st.TileState.LOADING, m.xB = st.TileState.LOADING, this.ua.Jo(m), m.tag = b, m.gB = b, c.push(v))), !g || g.xB !== st.TileState.LOADED && g.xB !== st.TileState.RELOADING || this.sa.push(y), g && (g.xB === st.TileState.LOADED || g.xB === st.TileState.RELOADING) || a.push(p), g && g.xB === st.TileState.LOADED && g.version && g.version !== this.VH && (this.sa.push(y), g.xB = st.TileState.RELOADING, c.push(p.key + "," + st.Util.SD(g.gB)), d = this.ua.MD(g.gB, b)) && (v = p.key + "," + st.Util.SD(d), f.yB.indexOf(v) < 0) && c.push(v) }
|
||
this.da(t, this.sa, a, s); var M, w, k, r = this.map.getOutseaState(),
|
||
x = this.map.getOutseaDataType(); return this.map.Dpt ? 9.8 <= o ? (M = (w = this.Opt(c)).overseaTile, k = w.chinaTile, this.PE(M, "oversea"), this.PE(k, "china"), s.showLabel && this.bB(w.chinaTile, t), s.showLabel && this.bB(w.overseaTile, t, "outsea_newNebula")) : (this.PE(c, "china"), s.showLabel && this.bB(c, t)) : r && !x ? 9.8 <= o ? (M = (w = this.OE(c)).overseaTile, k = w.chinaTile, o = w.mapboxTile, this.PE(M, "oversea"), this.PE(k, "china"), this.PE(o, "mapbox"), s.showLabel && this.bB(w.chinaTile, t), s.showLabel && this.bB(w.overseaTile, t, "outsea")) : (this.PE(c, "china"), s.showLabel && this.bB(c, t, "a00")) : r && x && "mapbox" === x ? 9.8 <= u ? (k = (w = this.OE(c)).chinaTile, this.PE(k, "china"), s.showLabel && this.bB(c, t)) : (this.PE(c, "china"), s.showLabel && this.bB(c, t, "a00")) : (this.PE(c, "china"), s.showLabel && this.bB(c, t)), 0 === c.length }, d.prototype.getData = function(i) { var n = this,
|
||
t = i.bounds,
|
||
s = this.ra(i.optimalZoom),
|
||
e = this.ha(t, s),
|
||
r = [],
|
||
o = {},
|
||
h = (14 === s && (o = this.ha(t, 15, !0)), this.map.qF()); if (this.ua.QF(h), this.sa.sort(function(t) { return n.ra(i.optimalZoom) === t.z ? 1 : -1 }), 0 < this.sa.length)
|
||
for (var a = 0; a < this.sa.length; a++) { var u, f, c, l = this.sa[a],
|
||
d = this.ua.getTile(l, !0),
|
||
v = 0,
|
||
p = 0,
|
||
m = [0, 0],
|
||
y = i.centerCoord;
|
||
d ? (d.localCoord || (f = st.wa.ga(d.zo.x, d.zo.y, d.zo.z, "EPSG:3857"), u = st.lcs.getLocalByCoord([f[0], f[1]]), d.localCoord = u, d.Ro = f), u = st.lcs.getLocalByCoord([y[0], y[1]]), i.optimalZoom >= st.Ra ? (c = st.lcs.getSize(), v = d.localCoord.x - u.x, p = d.localCoord.y - u.y, 0 != v && (v *= c[0], m[0] = v), 0 != p && (p *= c[1], m[1] = p), i.optimalZoom >= st.Ra && st.za >= d.zo.z && (m[0] = -u.center[0], m[1] = -u.center[1])) : i.optimalZoom < st.Ra && st.za < d.zo.z && (m[0] = u.center[0], m[1] = u.center[1])) : (f = new st.ca(l.z, this.fa(l.x, l.z), l.y), (y = this.ua.getTile(f, !0)) && (d = new st.pa(l), c = 1 << l.z, (l.x < 0 || l.x >= c) && (v = Math.floor(l.x / c), m[0] += 20037508.342789244 * v * 2), p = y.gB, d.Ro = y.Ro, d.ID(y), d.Sa = m, d.status = y.status, d.tag = p, d.gB = p)), d && (d.stamp = h, d.Sa = m, r.push(d)) }
|
||
var b = i.optimalZoom,
|
||
t = st.every(e, function(s) { return st.some(r, function(t) { var i = t.zo.key,
|
||
n = t.zo.z,
|
||
n = st.Util.VF(n, b),
|
||
t = t.gB,
|
||
t = st.Util.LD(t, n); return i === s.key && t }) }),
|
||
g = this.map.getOutseaState(),
|
||
M = this.map.getOutseaDataType(),
|
||
e = (g && !M ? t = !(M = st.filter(e, function(t) { return !(t = n.NE.getTile(t)) || !t.boundsStatus || !1 !== t.boundsStatus.isInNebulaOversea })).length || st.every(M, function(s) { return st.some(r, function(t) { var i = t.zo.key,
|
||
n = t.zo.z,
|
||
n = st.Util.VF(n, b),
|
||
t = t.gB,
|
||
t = st.Util.LD(t, n); return i === s.key && t }) }) : this.map.Dpt && (t = !0), r && 0 <= r.length && this.Fo(!0), this.jE(r)),
|
||
M = (t && (this.a_ = !0, this.map.bZ.dynamic.set("firstAllLoaded", !0)), e && this.map.bZ.dynamic.set("firstLabelDataAllLoaded", !0), t && e && this.Fo(!0), { s_: this.a_, fo: !!t && e, yZ: e, tiles: r, Ca: o, outseaData: void 0 }); return g && r.length && (t = this.map.bZ.MZ.wZ.gZ(), M.outseaData = t), M.tiles = this.UE(r, s), M }, d.prototype.Opt = function(t) { for (var i = t.length, n = [], s = [], e = 0; e < i; e++) { var r = void 0,
|
||
o = t[e],
|
||
h = o.split(","),
|
||
a = parseInt(h[0], 10),
|
||
u = parseInt(h[1], 10),
|
||
f = parseInt(h[2], 10),
|
||
a = new st.ca(a, u, f); if ((u = this.NE.getTile(a)) && u.boundsStatus) r = u.boundsStatus.isInChina;
|
||
else { if (!(f = st.wa.ga(parseInt(h[1], 10), parseInt(h[2], 10), parseInt(h[0], 10), "EPSG:3857"))) continue;
|
||
u = [
|
||
[f[0], f[1]],
|
||
[f[2], f[1]],
|
||
[f[2], f[3]],
|
||
[f[0], f[3]]
|
||
], r = this.VE(u, "china", o), (h = new st.pa(a)).boundsStatus = { isInChina: r }, this.NE.Jo(h) }(r ? n : s).push(o) } return { chinaTile: n, overseaTile: s } }, d.prototype.pe = function(t) { return t = new st.ca(t[0], t[1], t[2]), this.ua.getTile(t) }, d.prototype.ZE = function(t) { return !1 }, d.prototype.OE = function(t) { for (var i = t.length, n = [], s = [], e = [], r = 0; r < i; r++) { var o = void 0,
|
||
h = void 0,
|
||
a = t[r],
|
||
u = a.split(","),
|
||
f = new st.ca(u[0], u[1], u[2]),
|
||
c = this.NE.getTile(f); if (c && c.boundsStatus) o = c.boundsStatus.isInChina, h = c.boundsStatus.isInNebulaOversea;
|
||
else { if (!(c = st.wa.ga(parseInt(u[1], 10), parseInt(u[2], 10), parseInt(u[0], 10), "EPSG:3857"))) continue;
|
||
u = [
|
||
[c[0], c[1]],
|
||
[c[2], c[1]],
|
||
[c[2], c[3]],
|
||
[c[0], c[3]]
|
||
], o = this.VE(u, "china", a), h = this.VE(u, "oversea", a), (c = new st.pa(f)).boundsStatus = { isInChina: o, isInNebulaOversea: h }, this.NE.Jo(c) }
|
||
o && n.push(a), h && s.push(a), o || h || e.push(a) } return { chinaTile: n, overseaTile: s, mapboxTile: e } }, d.prototype.jpt = function(t) { return ("fast" !== this.map.bZ.MZ.drawMode || this.map.bZ.dynamic.get("firstPaint") ? { 2: 3, 3: 3, 4: 3, 5: 3, 6: 6, 7: 6, 8: 8, 9: 8, 10: 10, 11: 10, 12: 10, 13: 12, 14: 12, 15: 14, 16: 14, 17: 14, 18: 14, 19: 14, 20: 14, 21: 14, 22: 14, 23: 14, 24: 14, 25: 14, 26: 14, 27: 14, 28: 14, 29: 14, 30: 14 } : { 2: 3, 3: 3, 4: 3, 5: 3, 6: 6, 7: 6, 8: 8, 9: 8, 10: 8, 11: 8, 12: 8, 13: 12, 14: 12, 15: 14, 16: 14, 17: 14, 18: 14, 19: 14, 20: 14, 21: 14, 22: 14, 23: 14, 24: 14, 25: 14, 26: 14, 27: 14, 28: 14, 29: 14, 30: 14 })[t] }, d.prototype.ra = function(t) { return ("fast" !== this.map.bZ.MZ.drawMode || this.map.bZ.dynamic.get("firstPaint") ? { 2: 3, 3: 3, 4: 3, 5: 3, 6: 6, 7: 6, 8: 8, 9: 8, 10: 10, 11: 10, 12: 10, 13: 12, 14: 12, 15: 15, 16: 15, 17: 15, 18: 15, 19: 15, 20: 15, 21: 15, 22: 15, 23: 15, 24: 15, 25: 15, 26: 15, 27: 15, 28: 15, 29: 15, 30: 15 } : { 2: 3, 3: 3, 4: 3, 5: 3, 6: 6, 7: 6, 8: 8, 9: 8, 10: 8, 11: 8, 12: 8, 13: 12, 14: 12, 15: 15, 16: 15, 17: 15, 18: 15, 19: 15, 20: 15, 21: 15, 22: 15, 23: 15, 24: 15, 25: 15, 26: 15, 27: 15, 28: 15, 29: 15, 30: 15 })[t] }, d.prototype.YE = function(t) { var i = this; return t(null, { GW: "worker", cb: function(t) { i.dynamicTextVerticeLoadedByTile(t) } }), !0 }, d.prototype.destroy = function() { this.ua.forEach(function(t) { t.status !== st.TileState.LOADED && t.request && (t.request.cancel(), delete t.request), t.destroy() }), this.ua.destroy(), this.sa = [], this.la = [], this.mapStyle && this.mapStyle.destroy && (this.mapStyle.destroy(), delete this.mapStyle), this.R_ && this.R_.destroy && (this.R_.destroy(), delete this.R_) }, d.prototype.reload = function() { this.ua.forEach(function(t) { t.status !== st.TileState.LOADED && t.request && (t.request.cancel(), delete t.request), t.reload() }), this.sa = [], this.la = [] }, d.prototype.Aa = function(t) { var i;
|
||
t.zo && (i = this.ua.getTile(t.zo)) && (i.rO({ Ta: !0 }, t.tag), i.xa({ Ta: !0 }, t.tag), i.JE({ Ta: !0 }, t.tag)) }, d.prototype.setTileCacheSize = function(t) { t = t || (st.Support.$e ? 30 : 100), this.ua.Xo(t) }, d.prototype.UH = function(t) { this.VH = t }, d.prototype.dynamicTextVerticeLoaded = function(t) { var i = t.data,
|
||
n = t.XE; if (i instanceof st.ca) return (s = this.ua.getTile(i)) ? (s.data || s.xa({}, t.tag), void s.rO({}, t.tag)) : void 0; var s = i[Object.keys(i)[0]]; if (s = this.ua.getTile(s.zo, !0)) { s.data || s.xa({}, t.tag); var e, r, o = {}; for (e in i) i.hasOwnProperty(e) && (r = i[e], o[e] = new st.La(r.zo, r));
|
||
s.rO({ Ta: !0, labels: o, XE: n }, t.tag), s.xa({ Ta: !0 }, t.tag), s.JE({ Ta: !0 }, t.tag), s.xB = st.TileState.LOADED, this.map.Mv.t0(s.zo), this.Eo() } }, d.prototype.dynamicTextVerticeLoadedByTile = function(t) { for (var i = 0, n = t.data; i < n.length; i++) { var s = n[i];
|
||
this.dynamicTextVerticeLoaded({ data: s.data, tag: s.tag, XE: s.XE }) } }, d.prototype.Ia = function() { this.map.on("tileSdfInfoFinished", this.Aa.bind(this)) }, d.prototype.bB = function(t, i, n) { i = { zoom: i.zoom, projectionId: i.projectionId, mH: st.Support.mH }, this.KH._B(t, i, n) }, d.prototype.cP = function() { for (var t, i = this.map.getLayers(), n = 0; n < i.length; n++)
|
||
if ("AMap.Buildings" === (s = i[n]).CLASS_NAME && !s.getState().u$) { t = s; break }
|
||
if (!t)
|
||
for (var s, n = 0; n < i.length; n++)
|
||
if ("AMap.Buildings" === (s = i[n]).CLASS_NAME) { t = s; break }
|
||
return t }, d.prototype.ma = function(t, i) { var n, s = new RegExp(/\{(\w|\,)+\}/g); return s.test(this._tileUrl) ? (n = this._tileUrl.match(s)[0].replace(/[\{|\}]/g, "").split(","), this._tileUrl.replace(s, n[(t + i) % 4])) : this._tileUrl }, d.prototype.AD = function() { var t = new RegExp(/\{(\w|\,)+\}/g),
|
||
i = this._tileUrl.match(t)[0].replace(/[\{|\}]/g, "").split(","),
|
||
n = i.length,
|
||
t = this._tileUrl.replace(t, i[this.$D % n]); return this.$D = (this.$D + 1) % n, t }, d.prototype.Ppt = function() { var t = AMap.getConfig().protocol + "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/web/rendering/vdata/abroad/getTiles",
|
||
i = new RegExp(/\{(\w|\,)+\}/g),
|
||
n = t.match(i)[0].replace(/[\{|\}]/g, "").split(","),
|
||
s = n.length,
|
||
t = t.replace(i, n[this.$D % s]); return this.$D = (this.$D + 1) % s, t }, d.prototype.ha = function(t, i, n) { void 0 === n && (n = !1); var s = [t[0], t[3]],
|
||
t = [t[2], t[1]],
|
||
s = this.Ga(s, i),
|
||
t = this.Ga(t, i),
|
||
e = s[0],
|
||
r = s[1],
|
||
o = t[0],
|
||
h = t[1]; if (n) return { ja: e, Fa: r, Oa: o, Ea: h, z: i };
|
||
this.Pa = { ja: e, Fa: r, Oa: o, Ea: h, z: i }; for (var a = [], u = e; u <= o; u += 1)
|
||
for (var f = r; f <= h; f += 1) a.push(new st.ca(i, u, f)); return this.Da(a), a }, d.prototype.da = function(t, i, n, s) { var e = [3, 6, 8, 10, 12, 15],
|
||
r = this.ra(t.optimalZoom); if (this.Za)
|
||
for (var o = Math.min(14, r + 3), h = r + 1; n.length && h <= o; h += 1)
|
||
if (-1 !== e.indexOf(h)) { for (var a = h - r, u = [], f = [], c = n.length - 1; 0 <= c; --c)
|
||
for (var l = n[c].x << a, d = n[c].y << a, v = 1 << a; 0 <= v; --v)
|
||
for (var p = 1 << a; 0 <= p; --p) { var m = new st.ca(h, this.fa(l + v, h), d + p),
|
||
y = new st.ca(h, l + v, d + p);
|
||
((M = this.ua.getTile(m, !0)) && M.status === st.TileState.LOADED ? f : u).push(y) }
|
||
f.length && i.push.apply(i, f), n = u }
|
||
if (this.qa)
|
||
for (var b = this.xt[0], h = r - 1; n.length && b <= h; --h)
|
||
if (-1 !== e.indexOf(h)) { for (var f = [], u = [], g = {}, c = n.length - 1; 0 <= c; --c) { var M, w = n[c],
|
||
a = h,
|
||
k = w.z - a,
|
||
v = w.x >> k,
|
||
p = w.y >> k;
|
||
g[w = (m = new st.ca(a, v, p)).key] || (k = new st.ca(a, this.fa(v, a), p), y = new st.ca(a, v, p), M = this.ua.getTile(k, !0), g[w] = !0, (M && M.status === st.TileState.LOADED ? f : u).push(y)) }
|
||
f.length && i.push.apply(i, f), n = u }
|
||
return i }, d.prototype.Da = function(t) { var e, r, o;
|
||
t.length && (e = this.Pa.z, r = (this.Pa.ja + this.Pa.Oa) / 2, o = (this.Pa.Fa + this.Pa.Ea) / 2, t.sort(function(t, i) { var n = (t.x << e - t.z) - r,
|
||
t = (t.y << e - t.z) - o,
|
||
s = (i.x << e - i.z) - r; return n * n + t * t <= s * s + (i = (i.y << e - i.z) - o) * i ? -1 : 1 })) }, d.prototype.Ga = function(t, i) { var n = 180 / (i = Math.pow(2, i)); return [Math.floor(t[0] / (360 / i)) + i / 2, i / 2 - Math.ceil(t[1] / n)] }, d.prototype.fa = function(t, i) { for (var n = 1 << (i = i || this.aa.optimalZoom); t < 0 || n <= t;) t = n <= t ? t - n : t < 0 ? n + t : t; return t }, d.prototype.sD = function() { var e, r, o = this;
|
||
this.map.bZ.dynamic.get("_preloadNebulaIcons") || (this.map.bZ.dynamic.set("_preloadNebulaIcons", !0), e = this.hD, (r = this.z_).loadImages(e, { type: "icon", imageBitmap: st.Support.imageBitmap, cb: function() { for (var t = [], i = 0; i < e.length; i++) { var n = e[i],
|
||
s = r.getImage(n);
|
||
t.push({ img: s.img, name: n, hv: i, width: s.width, height: s.height }) }
|
||
o.map.so.sv(t) } })) }, d.prototype.PE = function(t, i) { for (var n = 0, s = t; n < s.length; n++) { var e = s[n].split(",").slice(0, 3).join(",");
|
||
(e = this.ua.xf(e)) && (e.region = i) } }, d.prototype.UE = function(t, i) { void 0 === t && (t = []); var n = []; if (10 <= i) { for (var s = 0, e = t; s < e.length; s++) { var r = e[s]; "china" !== r.region && "oversea" !== r.region || n.push(r) } return n } return t }, d.prototype.jE = function(t) { for (var i = !!t.length, n = 0, s = t; n < s.length; n++) { var e = s[n].data; if (i)
|
||
for (var r = 0, o = e; r < o.length; r++) { var h = o[r]; if (!(i = i && !!h.Ta)) break } } return i }, d);
|
||
|
||
function d(t, i, n, s) { var a = Bi.call(this, t, i, n, s) || this,
|
||
i = (a.xt = st.zoomRange, a.sa = [], a.la = [], a.qa = !0, a.Za = !0, a.a_ = !1, a.$D = 0, a.hD = [AMap.getConfig().protocol + "://c-webapi.amap.com/style_icon/2.0/icon-normal-big.png", AMap.getConfig().protocol + "://c-webapi.amap.com/style_icon/2.0/icon-biz-big.png"], a.VH = "", a.wH = function(t) {!a.map.yH || parseInt(t.key.split(",")[0], 10) < 10 || a.map.yH.kH(t.key) }, a.Xa = t.tileSize, a._tileUrl = t.tileUrl, a.tG = null, st.Support.$e ? 30 : 200); return a.ua = new Ct(i), a.NE = new It(i), window.xZ = a.ua, n.gn.Ha({ scale: Wi, showLabel: n.showLabel, DD: -1 !== location.search.indexOf("forceAll") }), a.R_ = n.R_, a.z_ = n.z_, n.gn.Ja(AMap.getConfig().protocol), a.mapStyle = n.mapStyle, a.mapStyle.pn(function(t) { n && n.gn && n.gn.Ka({ value: t, TY: "fast" === a.map.bZ.MZ.drawMode }) }), a.Ia(), a.sD(), a.ua.on("delete", a.wH), a.KH = new Dt(function(t, h, i, n) { var s = a.AD(); return n && "outsea_newNebula" === n ? s = a.Ppt() : !n || "outsea" !== n && "a00" !== n || (s = st.Support.wasm ? s.replace("/nebula/v3", "/oversea/v3") : s.replace("/nebula/v2", "/oversea/v2")), n && "outsea_newNebula" === n ? new st.vH(a.map.gn.Bpt({ url: s, projectionId: i.projectionId, ya: t, ZL: i.zoom, mH: i.mH }, function(t, i) { if (a.Eo(), a.KH.CB(h), t) console.log(t), a.map.emit("TileDecodeError", { type: "nebulasdf", err: t });
|
||
else if (i)
|
||
for (var n = 0, s = Object.keys(i); n < s.length; n++) { var e, r, o = s[n].slice(0, -2);
|
||
(o = a.ua.xf(o)) && (o.status = st.TileState.LOADED, o.xB = st.TileState.LOADED, e = st.wa.ga(o.zo.x, o.zo.y, o.zo.z, "EPSG:3857"), r = st.lcs.getLocalByCoord([e[0], e[1]]), o.localCoord = r, o.Ro = e) } else console.log("no data"), a.map.emit("TileDecodeError", { type: "nebulasdf", err: "no data" }) })) : new st.vH(a.map.gn.RD({ url: s, projectionId: i.projectionId, ya: t, ZL: i.zoom, mH: i.mH }, function(t, i) { if (a.Eo(), a.KH.CB(h), t) console.log(t), a.map.emit("TileDecodeError", { type: "nebulasdf", err: t });
|
||
else if (i)
|
||
for (var n = 0, s = Object.keys(i); n < s.length; n++) { var e, r, o = s[n].slice(0, -2);
|
||
(o = a.ua.xf(o)) && (o.status = st.TileState.LOADED, o.xB = st.TileState.LOADED, e = st.wa.ga(o.zo.x, o.zo.y, o.zo.z, "EPSG:3857"), r = st.lcs.getLocalByCoord([e[0], e[1]]), o.localCoord = r, o.Ro = e) } else console.log("no data"), a.map.emit("TileDecodeError", { type: "nebulasdf", err: "no data" }) })) }, function(t) { for (var i = 0, n = t; i < n.length; i++) { var s = n[i];
|
||
(s = a.ua.xf(s.slice(0, -2))) && s.status !== st.TileState.LOADED && a.ua.ea(s) } }), st.Support.$e && !st.Support.iPad && (a.map.on("zoomend", function() { 15 <= a.map.getZoom() ? a.ua.Xo(6) : a.ua.Xo(20) }), 15 <= a.map.getZoom()) && a.ua.Xo(6), a }
|
||
|
||
function Gi(t, i, n, s) { return (t = Fi.call(this, t, i, n, s) || this).Rs = null, t }
|
||
Fi = _t, st.Ei(Gi, Fi), Gi.prototype.Ys = function(a, u, f, c) { var l = this; if (!(this.aa.optimalZoom < this.xt[0] || this.aa.optimalZoom > this.xt[1])) { this.Da(a); for (var d = this, i = 0, n = a.length; i < n; i += 1) ! function(t) { var n = d.layer.getLayerConfig(),
|
||
t = a[t],
|
||
o = (d.ma().replace("[z]", t.z + "").replace("[x]", t.x + "").replace("[y]", t.y + ""), new st.Vs(t)),
|
||
n = (d.ua.Qo(o), n.getTileUrl && n.getTileUrl(t.x, t.y, t.z), st.ProjectionManager.getProjection(f).getResolution(t.z)),
|
||
e = (s = t.x * d.Xa * n) + d.Xa * n,
|
||
n = (t = t.y * d.Xa * n) + d.Xa * n,
|
||
r = st.V[f].Xs(s, t),
|
||
h = st.V[f].Xs(e, n),
|
||
s = r[0],
|
||
e = h[0];
|
||
t = h[1], n = r[1], o.Ro = [s, t, e, n], o.status = st.TileState.LOADING, setTimeout(function() { var t, i; if (u) { if (t = st.lcs.getLocalByCoord([o.Ro[0], o.Ro[1]]), o.zo.z > st.za && (o.Ro[0] -= t.center[0], o.Ro[1] -= t.center[1], o.Ro[2] -= t.center[0], o.Ro[3] -= t.center[1]), i = u.fe(new Float32Array([o.Ro[0], o.Ro[1], 0, 1, o.Ro[2], o.Ro[1], 1, 1, o.Ro[0], o.Ro[3], 0, 0, o.Ro[2], o.Ro[1], 1, 1, o.Ro[2], o.Ro[3], 1, 0, o.Ro[0], o.Ro[3], 0, 0]), 16), !l.Rs) { var n = document.createElement("canvas"),
|
||
s = n.getContext("2d"); if (s) { n.height = n.width = 256, n.style.height = n.style.width = "256px", s.font = "20px PingFangSC-Light, sans-serif", s.fillStyle = "rgba(117, 125, 123, 0.5)", s.rotate(-15 * Math.PI / 180); for (var e = "未获得高德地图商用授权", r = 0; r < e.length; r++) s.fillText(e[r], 22 * r - 30, 150);
|
||
s.stroke() }
|
||
l.Rs = n }(n = u.createTexture(l.Rs, { Zi: !0 })).bind(u.gl.MIRRORED_REPEAT, u.gl.LINEAR, u.gl.LINEAR_MIPMAP_NEAREST), o.data = { texture: n, zs: i, Js: n, Hs: t } }
|
||
o.status = st.TileState.LOADED, c() }, 10) }(i) } }; var Ui = { nebula: s, nebulaLabel: ft, building: Oi, sky: ui, mask: li, inner: Si, image: Bt, custom: Xt, gl_custom: oi, raster: _t, overlay: Vt, labelsLayer: Gt, vectorTile: Qt, districtVectorTile: ti, mapboxVectorTile: si, indoor: ji, mapbox: pi, vectortraffic: xi, markLayer: Gi },
|
||
_i = (Yi.addSource = function(t, i) { Ui[t] || (Ui[t] = i) }, Yi.prototype.addSource = function(t, i, n) { return ("nebula" === t.id || "indoor" === t.id) && this.Yh[t.id] || this.Yh[t.id] || (this.Yh[t.id] = new Ui[t.type](t, i, this.map, n), n.source = this.Yh[t.id]), this.Yh[t.id] }, Yi.prototype.getSource = function(t) { return this.Yh[t] }, Yi.prototype.Xh = function(t) { delete this.Yh[t] }, Yi.prototype.getData = function(t, i, n) { return this.Yh[t].getData(i, n) }, Yi.prototype.loadData = function(t, i, n) { for (var s = 0, e = i.Zdt() || []; s < e.length; s++) { var o = (r = e[s]).getOptions(),
|
||
r = r.getSource();
|
||
st.Util.dS(i.getZoom(), o.zooms) && r && o.visible && 0 < o.opacity && r.loadData(t, n, function() { i.setNeedUpdate(!0) }, i, this) } }, Yi.prototype.destroy = function() { for (var t in this.Yh) this.Yh[t] && this.Yh[t].destroy();
|
||
this.Yh = {} }, Yi.prototype.UH = function(t) { for (var i in this.Yh) this.Yh[i] && this.Yh[i].UH && this.Yh[i].UH(t) }, Yi.prototype.i0 = function(t, i) { if (this.Yh[t]) return this.Yh[t].ua.getTile(i, !1) }, Yi.prototype.t0 = function(t) { var i = this.i0(st.n0.nebulaLabel, t);
|
||
(t = 15 === t.z ? this.i0(st.n0.nebula, t.s0(14)) : this.i0(st.n0.nebula, t)) && i && i.KE(t.data) }, st.dZ([st.pZ("SourceManager")], Yi));
|
||
|
||
function Yi(t) { this.map = t, this.Yh = {} }
|
||
Zi = st.Event, st.Ei(v, Zi), v.prototype.onAdd = function() {}, v.prototype.v$ = function() {}, v.prototype.Hh = function(t) { this.uo = t }, v.prototype.Do = function(t) { return this.Jh = t, this.Jh }, v.prototype.setMap = function(t) { var i, n = this;
|
||
null === t && this.map ? this.map.removeLayer(this) : (this.map = t) && (i = t.getLayers(), st.find(i, function(t) { return t.getLayerConfig().id === n.getLayerConfig().id }) || t.addLayer(this)) }, v.prototype.Kh = function(t) { var i = this;
|
||
(this.source = t) && this.source.on("complete", function() { i.emit("complete") }) }, v.prototype.setzIndex = function(t) { this.Qh = t, this.map && this.map.setNeedUpdate(!0) }, v.prototype.setOpacity = function(t) { this.tl = t, this.map && this.map.setNeedUpdate(!0) }, v.prototype.getOpacity = function() { return this.tl }, v.prototype.getSource = function() { if (this.uo) return this.uo.getSource(this.co()) }, v.prototype.getzIndex = function() { return this.getLayerConfig().zIndex }, v.prototype.getMap = function() { return this.map }, v.prototype.getRender = function() { return this.Jh }, v.prototype.getLayerConfig = function() { return { id: this._id, zooms: this.xt, zIndex: this.Qh, opacity: this.tl, visible: this.il, createTile: void 0, rejectMapMask: this._rejectMapMask } }, v.prototype.getOptions = function() { var t = this.getLayerConfig(),
|
||
i = this._opts || {}; return st.assign({}, i, t) }, v.prototype.getZooms = function() { return this.xt }, v.prototype.setZooms = function(t) { this.xt = t, this.map && this.map.setNeedUpdate(!0) }, v.prototype.getVisible = function() { return this.il }, v.prototype.beforeRender = function() {}, v.prototype.afterRender = function() {}, v.prototype.get = function(t) { return this.getOptions()[t] }, v.prototype.vi = function(t) { return null }, v.prototype.lo = function() { if (this.source) return this.source.lo() }, v.prototype.T$ = function() { return this._id }, v.prototype.show = function() { this.il = !0, this.map && this.map.setNeedUpdate(!0) }, v.prototype.hide = function() { this.il = !1, this.map && this.map.setNeedUpdate(!0) }, v.prototype.destroy = function() { this.Jh && this.Jh.destroy && (this.Jh.destroy(), delete this.Jh) }, v.prototype.onCreated = function() { this.map && this.map.addLayer(this) }; var Zi, s = st.dZ([st.pZ("Layer")], v);
|
||
|
||
function v(t) { void 0 === t && (t = {}); var i = Zi.call(this) || this; return i.el = "AMap.Layer", i.CLASS_NAME = "AMap.Layer", i.hS = st.Util.stamp(i), i.il = !0, i.tl = 1, i.xt = st.zoomRange, i._id = "layer", i.nl = !0, i._id = "layer_" + st.Util.uuid(), i.xt = t.zooms || st.zoomRange, i.tl = void 0 === t.opacity ? 1 : t.opacity, i.Qh = t.zIndex || 1, i._rejectMapMask = void 0 !== t.rejectMapMask && t.rejectMapMask, i.il = void 0 === t.visible || t.visible, i.AF = void 0 !== t.depthTest && Boolean(t.depthTest), i.IF = void 0 !== t.ce && Boolean(t.ce), i.wl = t.cacheSize, i.map = t && t.map || null, i._opts = t, i }
|
||
Xi = s, st.Ei(Hi, Xi), Hi.prototype.getState = function() { return { ol: !0, al: !0, visible: this.il, opacity: this.tl, layer: this, rejectMapMask: this._rejectMapMask, depthTest: this.AF, ce: this.IF, cacheSize: this.wl } }, Hi.prototype.getLayerConfig = function() { var t = Xi.prototype.getLayerConfig.call(this); return t.mapNumber = "GS(2024)1158", t }, Hi.prototype.getSourceConfig = function() { return { id: "nebula", type: "nebula", tileUrl: AMap.getConfig().protocol + (st.Support.wasm ? "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v3" : "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v2"), tileSize: 0, zooms: st.zoomRange } }, Hi.prototype.co = function() { return "nebula" }, Hi.prototype.destroy = function() { this.Jh && this.Jh.destroy && (this.Jh.destroy(), delete this.Jh) }, Hi.prototype.show = function() { Xi.prototype.show.call(this); var t = this.iP();
|
||
t && t.show(), (t = this.map && this.map.getLayerByClass("AMap.Inner.LabelsLayer")) && t.oP() && t.show() }, Hi.prototype.hide = function() { Xi.prototype.hide.call(this); var t = this.iP();
|
||
t && t.hide(), this.rP() }, Hi.prototype.v$ = function() { Xi.prototype.v$.call(this); var t = this.iP();
|
||
t && this.map.removeLayer(t), this.rP() }, Hi.prototype.Hh = function(t) { this.uo = t, this.uo.getSource(this.co()).setTileCacheSize(this.wl) }, Hi.prototype.rP = function() { var t = this.map && this.map.getLayerByClass("AMap.Inner.LabelsLayer");
|
||
t && t.aP() && t.hide() }, Hi.prototype.iP = function() { var t; if (this.map)
|
||
for (var i = null == (t = this.map) ? void 0 : t.getLayers(), n = 0; n < i.length; n++) { var s = i[n]; if ("AMap.Buildings" === s.CLASS_NAME && s.getState().u$) return s } }; var Xi, Ji = Hi;
|
||
|
||
function Hi() { var t = null !== Xi && Xi.apply(this, arguments) || this; return t.CLASS_NAME = "AMap.NebulaLayer", t } var Vi, qi = "inner.labelsLayer",
|
||
Qi = "inner",
|
||
$i = (Vi = s, st.Ei(tn, Vi), tn.prototype.getState = function() { return st.assign({}, { layer: this, rejectMapMask: this._rejectMapMask }, Vi.prototype.getLayerConfig.call(this)) }, tn.prototype.getSourceConfig = function() { return { id: Qi, type: Qi, tileUrl: AMap.getConfig().protocol + (st.Support.wasm ? "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v3" : "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v2"), tileSize: 0, zooms: st.zoomRange } }, tn.prototype.co = function() { return Qi }, tn.prototype.sl = function() { this.source.reload(), this.Jh && this.Jh.reset() }, tn.prototype.vi = function(t, i) { return void 0 === i && (i = !1), this.fz ? this.fz.vi(t, this.hS, i) : null }, tn.prototype.Do = function(t) { return t = Vi.prototype.Do.call(this, t), this.map && this.uz(this.map), t }, tn.prototype.aP = function() { var t, i = this.map; return !!i && (t = i && i.getLayerByClass("AMap.TileLayer.RoadNet"), i = i && i.getLayerByClass("AMap.NebulaLayer"), t = t && t.getVisible(), i = i && i.getVisible(), !t) && !i }, tn.prototype.oP = function() { var t, i, n = this.map; return !!n && (t = n && n.getLayerByClass("AMap.TileLayer.RoadNet"), i = n && n.getLayerByClass("AMap.NebulaLayer"), t = t && t.getVisible(), i = i && i.getVisible(), n.showLabel) && (t || i) }, tn.prototype.destroy = function() { this.Jh && this.Jh.destroy && (this.Jh.destroy(), delete this.Jh), this.source && this.source.destroy && (this.source.destroy(), delete this.source) }, tn.prototype.uz = function(t) {
|
||
(this.fz = t.fS()).add(this) }, tn);
|
||
|
||
function tn(t) { var i = Vi.call(this, t = void 0 === t ? {} : t) || this; return i.CLASS_NAME = "AMap.Inner.LabelsLayer", i._opts = { id: qi, type: qi, opacity: 1, visible: 1, collision: !0, allowCollision: !1 }, i._opts = st.assign({}, i._opts, t), i.Qh = t.labelzIndex || 100, i.il = !1 !== t.showLabel, i.tl = void 0 === t.opacity ? 1 : t.opacity, i }
|
||
nn = s, st.Ei(sn, nn), sn.prototype.getState = function() { return { ol: !0, al: !0, visible: this.il, opacity: this.tl, layer: this, zooms: this.xt, zIndex: this.Qh, rejectMapMask: this._rejectMapMask, depthTest: this.AF, ce: this.IF, HY: this.rX() } }, sn.prototype.getLayerConfig = function() { var t = nn.prototype.getLayerConfig.call(this); return t.mapNumber = "", t }, sn.prototype.getSourceConfig = function() { return { id: "vectortraffic", type: "vectortraffic", tileUrl: "", tileSize: 256, zooms: this.xt } }, sn.prototype.co = function() { return "vectortraffic" }, sn.prototype.destroy = function() { this.Jh && this.Jh.destroy && (this.Jh.destroy(), delete this.Jh) }, sn.prototype.onAdd = function() { var t = this;
|
||
this.map.on("styleChanged", this.reload, this), this.dl && (this.iT = setInterval(function() { t.reload() }, 1e3 * this.vl)) }, sn.prototype.v$ = function() { this.map.off("styleChanged", this.reload, this), clearInterval(this.iT), delete this.iT }, sn.prototype.reload = function() { var t = this.getSource();
|
||
t && this.map && (t.reload(), this.map.setNeedUpdate(!0)) }, sn.prototype.rX = function() { var t, i = ["fff93a43", "fffcac19", "ff20a962", "ff83171c", "ffadadad"];
|
||
this.map && (t = this.map.mapStyle.vn.MS("traffic")) && t.multiFillColors && ((t = t.multiFillColors).congested && (i[0] = t.congested), t.slow && (i[1] = t.slow), t.smooth && (i[2] = t.smooth), t.seriousCongested && (i[3] = t.seriousCongested), t.unknown) && (i[4] = t.unknown); for (var n = 0, s = i.length; n < s; n++) i[n] = st.Util.qg(i[n]); return i }; var nn;
|
||
|
||
function sn() { var t = null !== nn && nn.apply(this, arguments) || this; return t.vl = 60, t.dl = !0, t } var en, rn = { opacity: 1, visible: !0, zIndex: 4, zooms: [7, st.zoomRange[1]], dataZooms: [7, 17], interval: 60, ml: !0, depthTest: !1, rZ: 1 },
|
||
Oi = (en = sn, st.Ei(on, en), on);
|
||
|
||
function on(t) { var i = this; return (t = void 0 === t ? rn : t).id = st.Util.uuid(), t.opacity = (void 0 === t.opacity ? rn : t).opacity, t.visible = (void 0 === t.visible ? rn : t).visible, t.zIndex = (void 0 === t.zIndex ? rn : t).zIndex, t.zooms = (void 0 === t.zooms ? rn : t).zooms, t.interval = (void 0 === t.interval ? rn : t).interval, t.ml = (void 0 === t.ml ? rn : t).ml, t.depthTest = (void 0 === t.depthTest ? rn : t).depthTest, t.rZ = (void 0 === t.rZ ? rn : t).rZ, (i = en.call(this, t) || this).vl = Math.max(30, t.interval || i.vl), i.dl = void 0 !== t.ml && i.dl, i.CLASS_NAME = "AMap.TileLayer.Traffic", i.onCreated(), i }
|
||
hn = s, st.Ei(an, hn), an.prototype.getSourceConfig = function() { return { id: this._id || "tile", tileUrl: this._tileUrl || "", type: "raster", tileSize: this.Xa || 256, zooms: this.xt, dataZooms: this.Qs || [7, 17], projection: this.hl || "EPS3857" } }, an.prototype.co = function() { return this._id }, an.prototype.getState = function() { return { visible: this.il, opacity: this.tl, rejectMapMask: this._rejectMapMask, depthTest: this.AF, ce: this.IF, detectRetina: this.yl } }, an.prototype.Hh = function(t) { this.uo = t, this.uo.getSource(this.co()).setTileCacheSize(this.wl) }; var hn, ui = an;
|
||
|
||
function an(t) { var i = hn.call(this, t) || this; return i.CLASS_NAME = "AMap.RasterLayer", i._tileUrl = t.tileUrl, i.xt = t.zooms || st.zoomRange, i.Qs = t.dataZooms, i.tl = void 0 === t.opacity ? 1 : t.opacity, i.Qh = t.zIndex || 1, i.il = void 0 === t.visible || t.visible, i.Xa = t.tileSize || 256, i.hl = t.projection, i.AF = void 0 !== t.depthTest && Boolean(t.depthTest), i.yl = void 0 === t.detectRetina || Boolean(t.detectRetina), i.wl = t.cacheSize, i } var un, fn = { id: "tile_" + st.Util.uuid(), tileUrl: void 0, zooms: st.zoomRange, dataZooms: [2, 18], opacity: 1, tileSize: 256, visible: !0, projection: "EPSG:3857", zIndex: 2 },
|
||
cn = { id: "satellite" + st.Util.uuid(), tileUrl: "http://webst0{1,2,3,4}.is.autonavi.com/appmaptile?style=6&x=[x]&y=[y]&z=[z]", zooms: st.zoomRange, dataZooms: [3, 18], opacity: 1, tileSize: 256, visible: !0, projection: "EPSG:3857", zIndex: 2 },
|
||
ln = { id: "traffic" + st.Util.uuid(), tileUrl: "http://tm.amap.com/trafficengine/mapabc/traffictile?v=1.0&t=1&zoom=[z]&x=[x]&y=[y]", zooms: [7, st.zoomRange[1]], dataZooms: [7, 17], opacity: 1, tileSize: 256, visible: !0, projection: "EPSG:3857", zIndex: 4, getTileUrl: function(t, i, n) { return AMap.getConfig().protocol + "://tm.amap.com/trafficengine/mapabc/traffictile?v=1.0\n&t=1&zoom=" + (17 - n) + "&x=" + t + "&y=" + i } },
|
||
dn = { id: "roadnet" + st.Util.uuid(), tileUrl: "http://wprd0{1,2,3,4}.is.autonavi.com/appmaptile?x=[x]&y=[y]&z=[z]&lang=zh_cn&size=1&scl=1&style=8<ype=11", zooms: st.zoomRange, dataZooms: [3, 18], opacity: 1, tileSize: 256, visible: !0, projection: "EPSG:3857", zIndex: 3 },
|
||
vn = { id: "flexible" + st.Util.uuid(), zooms: st.zoomRange, dataZooms: st.zoomRange, opacity: 1, tileSize: 256, visible: !0, projection: "EPSG:3857", zIndex: 3 },
|
||
pn = { id: "wms" + st.Util.uuid(), url: "", zooms: st.zoomRange, dataZooms: st.zoomRange, opacity: 1, tileSize: 512, visible: !0, projection: "EPSG:3857", zIndex: 3 },
|
||
p = (un = ui, st.Ei(mn, un), mn.prototype.setTileUrl = function(t) { t = 0 === (t = t.replace(/^\/\//, "").replace("http://", "")).indexOf("http") ? t : AMap.getConfig().protocol + "://" + t, this._tileUrl = t, this.reload() }, mn.prototype.getTileUrl = function() { return this._tileUrl }, mn.prototype.getLayerConfig = function() { var t = ""; return this._tileUrl !== AMap.getConfig().qT && this._tileUrl !== AMap.getConfig().YT || (t = "GS(2024)1158"), { id: this._id, tileUrl: this._tileUrl, zooms: this.xt, zIndex: this.Qh, opacity: this.tl, visible: this.il, getTileUrl: this.ll, mapNumber: t } }, mn.prototype.reload = function() { var t = this.getSource();
|
||
t && (t.setTileUrl(this._tileUrl), t.reload(), t.Fo(!1), this.map) && this.map.setNeedUpdate(!0) }, st.dZ([st.pZ("TileLayer")], mn));
|
||
|
||
function mn(t) { var i = this,
|
||
n = {}; return (t = void 0 === t ? fn : t).getTileUrl && "string" == typeof t.getTileUrl && (t.tileUrl = t.getTileUrl, delete t.getTileUrl), n.tileUrl = void 0 === t.tileUrl ? AMap.getConfig().y_ : t.tileUrl, n.tileUrl && (n.tileUrl = n.tileUrl.replace(/^\/\//, "").replace("http://", "")), t && t.name && "AMap.TileLayer.Mark" === t.name || (n.tileUrl = n.tileUrl && 0 === n.tileUrl.indexOf("http") ? n.tileUrl : AMap.getConfig().protocol + "://" + n.tileUrl), n.id = t.id || "tile_" + st.Util.uuid(), n.tileSize = t.tileSize || fn.tileSize, "d" === st.Support.baseRender && st.Support.$e && (fn.dataZooms = [2, 20]), n.dataZooms = t.dataZooms || fn.dataZooms, n.zooms = t.zooms || fn.zooms, n.projection = t.projection || fn.projection, n.opacity = (void 0 === t.opacity ? fn : t).opacity, n.visible = (void 0 === t.visible ? fn : t).visible, n.zIndex = (void 0 === t.zIndex ? fn : t).zIndex, n.rejectMapMask = t.rejectMapMask, n.depthTest = void 0 !== t.depthTest && Boolean(t.depthTest), n.map = t.map, n.detectRetina = void 0 !== t.detectRetina && t.detectRetina, n.cacheSize = t.cacheSize, (i = un.call(this, n) || this).type = t.type || "base", i.ll = t.getTileUrl, i.CLASS_NAME = "AMap.TileLayer", i.onCreated(), i }
|
||
yn = p, st.Ei(bn, yn), bn.prototype.getLayerConfig = function() { var t = yn.prototype.getLayerConfig.call(this); return t.mapNumber = "GS(2023)4047", t.OY = !0, t }; var yn, li = bn;
|
||
|
||
function bn(t) { var i = this; return (t = void 0 === t ? cn : t).id = "satellite_" + st.Util.uuid(), t.tileUrl = cn.tileUrl, t.zooms = (void 0 === t.zooms ? cn : t).zooms, t.opacity = (void 0 === t.opacity ? cn : t).opacity, t.visible = (void 0 === t.visible ? cn : t).visible, t.zIndex = (void 0 === t.zIndex ? cn : t).zIndex, (i = yn.call(this, t) || this).CLASS_NAME = "AMap.TileLayer.Satellite", i.type = t.type || "base", i.onCreated(), i }
|
||
gn = p, st.Ei(Mn, gn), Mn.prototype.ul = function() { clearInterval(this.cl) }, Mn.prototype.pl = function() { var t = this;
|
||
this.dl && 0 < this.vl && (this.cl = setInterval(function() { t.reload() }, 1e3 * this.vl)) }; var gn, Si = Mn;
|
||
|
||
function Mn(t) { var i = this; return (t = void 0 === t ? ln : t).id = "traffic_" + st.Util.uuid(), t.tileUrl = ln.tileUrl, t.zooms = (void 0 === t.zooms ? ln : t).zooms, t.opacity = (void 0 === t.opacity ? ln : t).opacity, t.visible = (void 0 === t.visible ? ln : t).visible, t.zIndex = (void 0 === t.zIndex ? ln : t).zIndex, t.getTileUrl = t.getTileUrl || ln.getTileUrl, (i = gn.call(this, t) || this).vl = Math.max(30, t.interval || 60), i.dl = void 0 === t.ml || t.ml, i.CLASS_NAME = "AMap.TileLayer.Traffic", i.type = t.type || "overlay", i.onCreated(), i.pl(), i }
|
||
wn = p, st.Ei(kn, wn), kn.prototype.show = function() { wn.prototype.show.call(this); var t = this.map && this.map.getLayerByClass("AMap.Inner.LabelsLayer");
|
||
t && t.oP() && t.show() }, kn.prototype.hide = function() { wn.prototype.hide.call(this); var t = this.map && this.map.getLayerByClass("AMap.Inner.LabelsLayer");
|
||
t && t.aP() && t.hide() }, kn.prototype.v$ = function() { wn.prototype.v$.call(this); var t = this.map && this.map.getLayerByClass("AMap.Inner.LabelsLayer");
|
||
t && t.aP() && t.hide() }; var wn, Bt = kn;
|
||
|
||
function kn(t) { var i, n = this; return (t = void 0 === t ? dn : t).id = "roadNet_" + st.Util.uuid(), t.tileUrl = dn.tileUrl, "d" === st.Support.baseRender && (t.tileUrl = null == (i = t.tileUrl) ? void 0 : i.replace("<ype=11", "")), t.zooms = (void 0 === t.zooms ? dn : t).zooms, t.opacity = (void 0 === t.opacity ? dn : t).opacity, t.visible = (void 0 === t.visible ? dn : t).visible, t.zIndex = (void 0 === t.zIndex ? dn : t).zIndex, (n = wn.call(this, t) || this).CLASS_NAME = "AMap.TileLayer.RoadNet", n.type = t.type || "overlay", n.onCreated(), n }
|
||
xn = p, st.Ei(An, xn), An.prototype.getLayerConfig = function() { return { id: this._id, zooms: this.xt, zIndex: this.Qh, opacity: this.tl, visible: this.il, createTile: this.bl, cacheSize: this.wl, getTileUrl: this.ll, rejectMapMask: this._rejectMapMask } }, An.prototype.Hh = function(t) { this.uo = t, this.uo.getSource(this.co()).setTileCacheSize(this.wl) }; var xn, Xt = An;
|
||
|
||
function An(t) { var i = this; return (t = void 0 === t ? vn : t).id = vn.id, t.id = "flexible_" + st.Util.uuid(), t.zooms = (void 0 === t.zooms ? vn : t).zooms, t.opacity = (void 0 === t.opacity ? vn : t).opacity, t.visible = (void 0 === t.visible ? vn : t).visible, t.zIndex = (void 0 === t.zIndex ? vn : t).zIndex, (i = xn.call(this, t) || this).bl = t.createTile, i.CLASS_NAME = "AMap.TileLayer.Flexible", i.type = t.type || "base", i.onCreated(), i }
|
||
zn = p, st.Ei(Cn, zn), Cn.prototype._l = function() { this.kl.TileMatrixSet = this.kl.TileMatrixSet || "EPSG:3857", this.kl.Request = "GetTile", this.kl.Service = "WMTS", this.kl.Format = this.kl.Format || "image/png", this._tileUrl = this.Ml + "?" + st.Util.join(this.kl, "&"), this.map && this.map.setNeedUpdate(!0) }, Cn.prototype.setParams = function(t) { this.kl = st.assign({}, t), this._l() }, Cn.prototype.getParams = function() { return this.kl }, Cn.prototype.getUrl = function() { return this.Ml }, Cn.prototype.setUrl = function(t) { this.Ml = t, this._l() }, Cn.prototype.getLayerConfig = function() { return { id: this._id, zooms: this.xt, zIndex: this.Qh, opacity: this.tl, visible: this.il, Ll: this.kl, createTile: this.bl, getTileUrl: this.ll } }; var zn, oi = Cn;
|
||
|
||
function Cn(t) { var h = this; return (t = void 0 === t ? vn : t).id = "wmts_" + st.Util.uuid(), t.cacheSize = vn.cacheSize, t.zooms = (void 0 === t.zooms ? vn : t).zooms, t.opacity = (void 0 === t.opacity ? vn : t).opacity, t.visible = (void 0 === t.visible ? vn : t).visible, t.zIndex = (void 0 === t.zIndex ? vn : t).zIndex, (h = zn.call(this, t) || this).kl = t.params || {}, h.CLASS_NAME = "AMap.TileLayer.WMTS", h.type = t.type || "base", h._tileUrl = t.url, h.Ml = t.url, h.bl = function(t, i, n, s, e) { var r, o = document.createElement("img"); "w" === (null == (r = h.map) ? void 0 : r.baseRender) && (o.crossOrigin = "anonymous"), o.onload = function() { s(o) }, o.onerror = function() { e(o) }, o.src = h._tileUrl + "&TileMatrix=" + n + "&TileRow=" + i + "&TileCol=" + t }, h._l(), h.onCreated(), h }
|
||
Tn = p, st.Ei(Sn, Tn), Sn.prototype._l = function() { this.kl.WIDTH = this.Xa, this.kl.HEIGHT = this.Xa, this.kl.CRS = this.kl.CRS || "EPSG:3857", this.kl.REQUEST = "GetMap", this.kl.SERVICE = "WMS", this.kl.FORMAT = this.kl.FORMAT || "image/png", this.kl.TRANSPARENT = void 0 === this.kl.TRANSPARENT ? "true" : this.kl.TRANSPARENT, delete this.kl.BBOX, this._tileUrl = this.Ml + "?" + st.Util.join(this.kl, "&") }, Sn.prototype.setParams = function(t) { this.kl = st.assign({}, t), this._l() }, Sn.prototype.getParams = function() { return this.kl }, Sn.prototype.getUrl = function() { return this.Ml }, Sn.prototype.setUrl = function(t) { this.Ml = t, this._l() }, Sn.prototype.getLayerConfig = function() { return { id: this._id, zooms: this.xt, zIndex: this.Qh, opacity: this.tl, visible: this.il, Ll: this.kl, createTile: this.bl, getTileUrl: this.ll } }; var Tn, _t = Sn;
|
||
|
||
function Sn(t) { var h = this; return (t = void 0 === t ? pn : t).id = "wms_" + st.Util.uuid(), t.cacheSize = vn.cacheSize, t.zooms = (void 0 === t.zooms ? vn : t).zooms, t.opacity = (void 0 === t.opacity ? vn : t).opacity, t.visible = (void 0 === t.visible ? vn : t).visible, t.zIndex = (void 0 === t.zIndex ? vn : t).zIndex, (h = Tn.call(this, t) || this)._tileUrl = t.url, h.Ml = t.url, h.kl = t.params || {}, h.CLASS_NAME = "AMap.TileLayer.WMS", h.type = t.type || "base", h.bl = function(t, i, n, s, e) { var r = [(n = 2 * st.x_ / 256 / Math.pow(2, n) * h.Xa) * t - st.x_, st.x_ - n * (i + 1)],
|
||
t = [n * (t + 1) - st.x_, st.x_ - n * i],
|
||
o = document.createElement("img"); "w" === (null == (n = h.map) ? void 0 : n.baseRender) && (o.crossOrigin = "anonymous"), o.onload = function() { s(o) }, o.onerror = function() { e(o) }, h._l(), o.src = h._tileUrl + "&BBOX=" + r + "," + t }, h.bl = h.bl.bind(h), h.onCreated(), h }
|
||
In = p, st.Ei(Ln, In), Ln.prototype.getLayerConfig = function() { return In.prototype.getLayerConfig.call(this) }, Ln.prototype.getTileUrl = function() { return st.Util.getMarkUrl() }; var In, Vt = Ln;
|
||
|
||
function Ln(t) { var i = this; return t.id = "mark_" + st.Util.uuid(), t.tileUrl = st.Util.getMarkUrl(), t.zooms = [2, 30], t.opacity = 1, t.visible = !0, t.zIndex = 999999, t.name = "AMap.TileLayer.Mark", (i = In.call(this, t) || this).CLASS_NAME = "AMap.TileLayer.Mark", i.type = t.type || "base", i.onCreated(), i }
|
||
|
||
function Dn() { this.Wl = !0, this._position = st.Dl(), st.Pl(this._position, 0, 0, 10), this.Gl = st.Dl(), st.Pl(this.Gl, 0, 0, -1), this.jl = st.Dl(), st.Pl(this.jl, 0, 0, -1), this.El = st.Dl(), st.Pl(this.El, 0, 1, 0), this.Nl = st.Zl(), this.Fl = st.Il(), this.Bl = st.Il(), this.ql = st.Il(), this.Yl = st.Il() }
|
||
p.RoadNet = Bt, p.Satellite = li, p.Traffic = "d" === st.Support.baseRender ? Si : Oi, p.Flexible = Xt, p.WMTS = oi, p.WMS = _t, p.Mark = Vt, Dn.prototype.lookAt = function(t) { var i, n, s, e, r, o, h, a, u, f = st.Il(),
|
||
c = st.Dl();
|
||
st.Pl(this.jl, t[0], t[0], t[2]), c = st.Ol(c, this.Fl), f = st.lookAt(f, c, t, this.El), c = this.Nl, f = (t = f)[0], n = t[4], s = t[8], e = t[1], r = t[5], o = t[9], h = t[2], a = t[6], 0 < (u = f + r + (t = t[10])) ? (i = .5 / Math.sqrt(u + 1), c[3] = .25 / i, c[0] = (a - o) * i, c[1] = (s - h) * i, c[2] = (e - n) * i) : r < f && t < f ? (i = 2 * Math.sqrt(1 + f - r - t), c[3] = (a - o) / i, c[0] = .25 * i, c[1] = (n + e) / i, c[2] = (s + h) / i) : t < r ? (i = 2 * Math.sqrt(1 + r - f - t), c[3] = (s - h) / i, c[0] = (n + e) / i, c[1] = .25 * i, c[2] = (o + a) / i) : (i = 2 * Math.sqrt(1 + t - f - r), c[3] = (e - n) / i, c[0] = (s + h) / i, c[1] = (o + a) / i, c[2] = .25 * i), this.$l() }, Dn.prototype.setPosition = function(t) { st.Pl(this._position, t[0], t[1], t[2]), this.$l() }, Dn.prototype.getPosition = function() { return this._position }, Dn.prototype.$l = function() { var o, u, f, c, t = this.Fl,
|
||
i = this._position,
|
||
n = this.Nl,
|
||
s = n[0],
|
||
e = n[1],
|
||
r = n[2],
|
||
h = s * (f = s + s),
|
||
a = s * (c = e + e);
|
||
s *= o = r + r, u = e * c, e *= o, f *= n = n[3], c *= n, n *= o, t[0] = 1 - (u + (r *= o)), t[1] = a + n, t[2] = s - c, t[3] = 0, t[4] = a - n, t[5] = 1 - (h + r), t[6] = e + f, t[7] = 0, t[8] = s + c, t[9] = e - f, t[10] = 1 - (h + u), t[11] = 0, t[12] = i[0], t[13] = i[1], t[14] = i[2], t[15] = 1, st.Ul(this.Bl, this.Fl) }, On = Gt = Dn, st.Ei(Rn, On), Rn.prototype.Vl = function() { var t = st.Il(); return st.multiply(t, this.ql, this.Xl), st.multiply(t, t, this.Bl), t }, Rn.prototype.setOptions = function(t, i, n, s, e, r) { this.Hl = void 0 !== t ? t : -1, this.Jl = void 0 !== i ? i : 1, this.Kl = void 0 !== n ? n : 1, this.Ql = void 0 !== s ? s : -1, this.tu = void 0 !== e ? e : .1, this.iu = void 0 !== r ? r : 1, this.eu() }, Rn.prototype.scale = function(t) { void 0 === t && (t = 1); var i = st.Il();
|
||
i.set([t, 0, 0, 0, 0, t, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]), st.multiply(this.Xl, this.Xl, i) }, Rn.prototype.setRotation = function(t) { var i = st.Il(),
|
||
n = (t - this.nu) / 180 * Math.PI;
|
||
0 !== (this.nu = t) && (i.set([Math.cos(n), -Math.sin(n), 0, 0, Math.sin(n), Math.cos(n), 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]), st.multiply(this.Xl, this.Xl, i)) }, Rn.prototype.kt = function(t, i, n) { var s, e, r, o, h, a;
|
||
void 0 !== t && (s = t.Rt, e = t.zt, r = t.center, t = t.scale, o = st.Il(), a = st.Il(), h = st.Il(), o.set([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, e[0], e[1], 0, 1]), a.set([t, 0, 0, 0, 0, t, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]), h.set([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -s[0], -s[1], 0, 1]), st.multiply(o, o, a), st.multiply(o, o, h), st.multiply(this.Xl, this.Xl, o), a = [(t = st.ProjectionManager.getProjection(i).project(r[0], r[1]))[0] - e[0] + s[0], t[1] - e[1] + s[1]], n(st.ProjectionManager.getProjection(i).unproject(a[0], a[1]))) }, Rn.prototype.Cu = function() { return this.Yl }, Rn.prototype.lB = function() { return { left: this.Hl, right: this.Jl, top: this.Kl, bottom: this.Ql, rotation: this.nu, far: this.iu, near: this.tu, position: this._position } }, Rn.prototype.eu = function() { var t = (this.Jl - this.Hl) / (2 * this.bt),
|
||
i = (this.Kl - this.Ql) / (2 * this.bt),
|
||
n = (this.Jl + this.Hl) / 2,
|
||
s = (this.Kl + this.Ql) / 2;
|
||
st.ou(this.ql, n - t, n + t, s - i, s + i, this.tu, this.iu), st.Ul(this.Yl, this.ql) }; var On, En = Rn;
|
||
|
||
function Rn(t, i, n, s, e, r) { var o = On.call(this) || this; return o.type = "OthoCamera", o.bt = 1, o.nu = 0, o.Xl = st.Il(), o.Hl = void 0 !== t ? t : -1, o.Jl = void 0 !== i ? i : 1, o.Kl = void 0 !== n ? n : 1, o.Ql = void 0 !== s ? s : -1, o.tu = void 0 !== e ? e : .1, o.iu = void 0 !== r ? r : 1, o.eu(), o }
|
||
jn = st.Event, st.Ei(m, jn), m.prototype.au = function() { return this.su }, m.prototype.ru = function() { return st.ProjectionManager.getProjection(this.su) }, m.prototype.setOptions = function(t, i) { void 0 === i && (i = !0), t.projectionId && (this.su = t.projectionId); var n = st.ProjectionManager.getProjection(this.su); if (t.center && (this.hu = t.center, s = this.lu(n), e = n.unproject(s[0], s[1]), this.hu = e, st.Pl(this.uu, s[0], s[1], 0), this.cu.setPosition(this.fu())), void 0 !== t.zoom && (t.zoom = Math.min(Math.max(t.zoom, this.map.getZooms()[0]), this.map.getZooms()[1]), this.pu = Math.pow(2, t.zoom - this.bt), this.bt = t.zoom, this.du = n.getResolution(this.bt), this.vu(), this.cu.setPosition(this.fu())), t.size && (this.map.emit("resize"), this._size = t.size, this.vu()), void 0 !== t.rotation && "w" === st.Support.baseRender && (360 < t.rotation ? t.rotation -= 360 : t.rotation < -360 && (t.rotation += 360), this.cu.setRotation(t.rotation), this.nu = t.rotation), t.kt) { if (!this.map.getStatus().zoomEnable) return; var s, e, r = t.kt.Mt;
|
||
this.mu = t.kt, r <= this.map.getZooms()[1] && r >= this.map.getZooms()[0] && (this.bt = r, this.du = n.getResolution(this.bt), r = (t = this.mu).Rt, t = t.zt, (s = this.lu(n))[0] = s[0] - t[0] + r[0], s[1] = s[1] - t[1] + r[1], e = n.unproject(s[0], s[1]), this.hu = e, st.Pl(this.uu, s[0], s[1], 0), this.vu(), this.cu.setPosition(this.fu()), this.mu = void 0) }!this.h_() && i && this.map.setNeedUpdate(!0) }, m.prototype.getOptions = function() { return { zoom: this.bt, center: this.hu, rotation: this.nu, projectionId: this.su, pitch: 0 } }, m.prototype.getStatus = function() { var t = st.Zl(),
|
||
i = st.Zl(),
|
||
n = st.Zl(),
|
||
s = (this.xu(t, i, n), st.Util.getOptimalZoom(this.bt)); return { pitch: this.Pu, size: this._size, rotation: this.nu, zoom: this.bt, optimalZoom: s, resolution: this.du, optimalResolution: st.ProjectionManager.getProjection(this.su).getResolution(s), center: this.hu, bounds: t, boundsCoord: i, transformedBoundsCoord: n, centerCoord: this.uu, projectionId: this.su, mvpMatrix: this.cu.Vl(), viewMode: this.type, skyHeight: this.EF(), fov: 60 } }, m.prototype.bu = function(t) { this.hu = [t[0], t[1]], t = st.ProjectionManager.getProjection(this.su).project(this.hu[0], this.hu[1]), st.Pl(this.uu, t[0], t[1], 0) }, m.prototype.containerTolnglat = function(t, i, n) { var s, r = (e = this.getStatus()).centerCoord,
|
||
e = e.rotation,
|
||
r = st.V[this.su].transform(r[0], r[1], n),
|
||
o = (r = 0 !== e ? (n = e / 180 * Math.PI, e = t - this._size[0] / 2, s = -(i - this._size[1] / 2), o = Math.sqrt(e * e + s * s), e = Math.atan(e / s) - n, s < 0 && (e += Math.PI), n = o * Math.sin(e), s = o * Math.cos(e), [r[0] + n * this.du, r[1] - s * this.du]) : [r[0] + (t - this._size[0] / 2) * this.du, r[1] + (i - this._size[1] / 2) * this.du], r = st.V[this.su].Xs(r[0], r[1]), st.ProjectionManager.getProjection(this.su).unproject(r[0], r[1])); return o[0] = 180 < o[0] ? o[0] - 360 : o[0] < -180 ? o[0] + 360 : o[0], o }, m.prototype.lnglatToContainer = function(t, i, n, s) { s = s || this.bt; var r = (e = this.getStatus()).rotation,
|
||
e = e.centerCoord,
|
||
i = [(t = st.ProjectionManager.getProjection(this.su).project(t, i))[0], t[1]],
|
||
t = { center: e, rotation: r, size: this._size }; return st.V[this.su].wu(i[0], i[1], s, t) }, m.prototype._u = function(t, i) {
|
||
(n = this.getStatus()).optimalZoom; var s = n.zoom,
|
||
e = n.rotation,
|
||
n = { center: n.centerCoord, rotation: e, size: this._size }; return st.V[this.su].wu(t, i, s, n) }, m.prototype.ku = function(t, i) {
|
||
(n = this.getStatus()).optimalZoom, n.centerCoord, n.zoom, n.rotation; var n = this.containerTolnglat(t, i); return (t = st.ProjectionManager.getProjection(this.su)).project.apply(t, n) }, m.prototype.h_ = function() { return st.Ru(this.Xl, this.cu.Vl()) }, m.prototype.aD = function() { return this.Xl = this.cu.Vl(), this.Xl }, m.prototype.EF = function() { return 1 }, m.prototype.pz = function() { return this.cu }, m.prototype.xu = function(t, i, n) { var s = this.nu / 180 * Math.PI,
|
||
e = this._size,
|
||
e = [(Math.abs(e[0] * Math.cos(s)) + Math.abs(e[1] * Math.sin(s))) / 2 * this.du, (Math.abs(e[0] * Math.sin(s)) + Math.abs(e[1] * Math.cos(s))) / 2 * this.du],
|
||
s = st.ProjectionManager.getProjection(this.su),
|
||
r = this.uu[0] - e[0],
|
||
o = this.uu[0] + e[0],
|
||
h = this.uu[1] - e[1],
|
||
e = this.uu[1] + e[1],
|
||
a = s.unproject(r, h),
|
||
s = s.unproject(o, e),
|
||
r = (i[0] = r, i[1] = h, i[2] = o, i[3] = e, t[0] = a[0], t[1] = a[1], t[2] = s[0], t[3] = s[1], st.V[this.su].transform(i[0], i[3])),
|
||
h = st.V[this.su].transform(i[2], i[1]); return n[0] = r[0], n[1] = r[1], n[2] = h[0], n[3] = h[1], t }, m.prototype.vu = function() { var i = (t = this._size)[0] * this.du,
|
||
t = t[1] * this.du;
|
||
this.cu.setOptions(-i / 2, i / 2, t / 2, -t / 2, 1, 11e5) }, m.prototype.fu = function() { var t, i = st.Dl(); return st.Util.getOptimalZoom(this.bt) < st.Ra ? st.Pl(i, this.uu[0], this.uu[1], this.cz) : (t = st.lcs.getDeltaCoord([this.uu[0], this.uu[1]]), st.Pl(i, t[0], t[1], this.cz)), i }, m.prototype.lu = function(t) { return this.hu[0] = 180 < this.hu[0] ? this.hu[0] - 360 : this.hu[0] < -180 ? this.hu[0] + 360 : this.hu[0], t.project(this.hu[0], this.hu[1]) }; var jn, Pn = m;
|
||
|
||
function m(t, i) { var n = jn.call(this) || this; return n.type = "2D", n.Pu = 0, n.hu = [0, 0], n.bt = 12, n._size = [0, 0], n.pu = 1, n.nu = 0, n.cu = new En(-1, 1, 1, -1, 10, 1e3), n.su = "EPSG:3857", n.uu = st.Dl(), n.cz = 1e6, n.du = st.ProjectionManager.getProjection(n.su).getResolution(12), n.Xl = st.Il(), n.bt = void 0 !== t.zoom ? t.zoom : 12, n.map = i, n.setOptions(t), n.vu(), n.Xl = n.cu.Vl(), n }
|
||
Bn = Gt, st.Ei(y, Bn), y.prototype.Vl = function() { var t = []; return st.multiply(t, this.ql, this.zu), t }, y.prototype.Su = function() { return this.ql }, y.prototype.Cu = function() { return this.Yl }, y.prototype.Lu = function() { return this.zu }, y.prototype.Au = function() { return this.cu }, y.prototype.setOptions = function(t, i, n, s, e) { void 0 === t && (t = [1, 1]), void 0 === n && (n = 1), void 0 === s && (s = 1), void 0 === e && (e = 10), this.Tu = this.Iu(i = void 0 === i ? 60 : i), this.tu = s, this.iu = e, this.Du = n, this._size = t, this.eu() }, y.prototype.setSize = function(t) { this._size = t }, y.prototype.setPitch = function(t) { this.Pu = void 0 !== t ? t : this.Pu; var t = this._size[1] / 2 / Math.tan(this.Tu / 2),
|
||
i = this.Iu(this.Pu),
|
||
n = this.Iu(this.nu),
|
||
s = t * Math.sin(i),
|
||
e = this.jl[0] - s * Math.sin(n),
|
||
s = this.jl[1] - s * Math.cos(n),
|
||
n = t * Math.cos(i);
|
||
st.Pl(this._position, e, s, n), this.ju() }, y.prototype.setRotation = function(t) { this.nu = void 0 !== t ? -t : this.nu; var t = this.Iu(this.nu),
|
||
i = Math.sin(t),
|
||
t = Math.cos(t);
|
||
st.Pl(this.El, i, t, 0), this.Ou() }, y.prototype.Fu = function(t, i, n) { st.Pl(this.jl, t, i, n), this.ju() }, y.prototype.Ou = function(t, i, n) { void 0 !== t && void 0 !== i ? (st.Pl(this._position, t, i, void 0 === n ? this._position[2] : n), this.ju()) : (t = this._size[1] / 2 / Math.tan(this.Tu / 2), st.Pl(this._position, this.jl[0], this.jl[1], t), this.setPitch()) }, y.prototype.Eu = function(t) { var i = this._size;
|
||
this.cz = t || i[1] / 2 / Math.tan(this.Tu / 2) || 0, st.Pl(this._position, this._position[0], this._position[1], this.cz), this.setPitch() }, y.prototype.Nu = function(t, i, n) { st.Pl(this.El, t = void 0 === t ? 0 : t, i = void 0 === i ? 1 : i, n = void 0 === n ? 0 : n), this.ju() }, y.prototype.dz = function() { return this.cz }, y.prototype.lB = function() { return { fov: this.Tu, target: this.jl, up: this.El, position: this._position, far: this.iu, near: this.tu } }, y.prototype.eu = function() { st.perspective(this.ql, this.Tu, this.Du, this.tu, this.iu), st.Ul(this.Yl, this.ql) }, y.prototype.ju = function() { st.lookAt(this.zu, this._position, this.jl, this.El), st.Ul(this.cu, this.zu) }, y.prototype.Iu = function(t) { return t * Math.PI / 180 }; var Bn, Fn = y;
|
||
|
||
function y(t, i, n, s, e) { void 0 === t && (t = [1, 1]), void 0 === i && (i = 60), void 0 === n && (n = 1), void 0 === s && (s = 10), void 0 === e && (e = 2e4); var r = Bn.call(this) || this; return r.Wt = "PerspectiveCamera", r.Pu = 0, r.nu = 0, r.cu = st.Il(), r.zu = st.Il(), r.cz = 0, r.Tu = r.Iu(i), r.tu = s, r.iu = e, r.Du = n, st.Pl(r.El, 0, 1, 0), r._size = t, r.eu(), r }
|
||
Wn = st.Event, st.Ei(b, Wn), b.prototype.setOptions = function(t) { var i = st.ProjectionManager.getProjection(this.su); if (t.projectionId && (this.su = t.projectionId), t.size && (this.map.emit("resize"), this._size = t.size, this.vu(), this.cu.Ou()), void 0 !== t.rotation && "w" === st.Support.baseRender && (this.cu.setRotation(t.rotation), this.nu = t.rotation), void 0 !== t.zoom && (t.zoom = Math.min(Math.max(t.zoom, this.map.getZooms()[0]), this.map.getZooms()[1]), n = this.bt, this.bt = t.zoom, this.du = i.getResolution(this.bt), e = this.fu(), (st.Util.getOptimalZoom(t.zoom) < st.Ra && st.Util.getOptimalZoom(n) >= st.Ra || st.Util.getOptimalZoom(t.zoom) >= st.Ra && st.Util.getOptimalZoom(n) < st.Ra) && (s = this.fu(), this.cu.Fu(s[0], s[1], 0), this.cu.Ou(), this.vu()), this.cu.Fu(e[0], e[1], 0), this.cu.Ou(), this.vu()), void 0 !== t.pitch && "w" === st.Support.baseRender && (t.pitch > this.$u() || this.Pu > this.$u() ? t.pitch = this.$u() : (t.pitch < 0 || this.Pu < 0) && (t.pitch = 0), this.Pu = Math.min(t.pitch, this.$u()), this.cu.setPitch(t.pitch)), t.center && (this.hu = t.center, r = this.lu(i), st.Pl(this.uu, r[0], r[1], 0), e = this.fu(), s = i.unproject(r[0], r[1]), this.hu = s, this.cu.Fu(e[0], e[1], 0), this.cu.Ou()), t.kt) { if (!this.map.getStatus().zoomEnable) return; var n = this.bt,
|
||
n = (this.bt = Math.min(Math.max(t.kt.Mt, this.map.getZooms()[0]), this.map.getZooms()[1]), this.du = i.getResolution(this.bt), (st.Util.getOptimalZoom(t.kt.Mt) < st.Ra && st.Util.getOptimalZoom(n) >= st.Ra || st.Util.getOptimalZoom(t.kt.Mt) >= st.Ra && st.Util.getOptimalZoom(n) < st.Ra) && (s = this.fu(), this.cu.Fu(s[0], s[1], 0), this.cu.Ou()), this.lu(i)),
|
||
s = t.kt.pos,
|
||
i = this.X(s[0], s[1]),
|
||
t = st.lcs.getLocalByCoord([n[0], n[1]]),
|
||
e = (this.vu(), this.fu());
|
||
this.cu.Fu(e[0], e[1], 0), this.cu.Ou(); var s = [(s = this.X(s[0], s[1]))[0] - i[0], s[1] - i[1]],
|
||
i = [e[0] - s[0], e[1] - s[1]],
|
||
r = [n[0] - s[0], n[1] - s[1]],
|
||
e = st.lcs.getLocalByCoord(r);
|
||
this.bt >= st.Ra && (e.x !== t.x || t.y !== e.y) && (n = e.x - t.x, s = e.y - t.y, i[0] -= n * st.lcs.getSize()[0], i[1] -= s * st.lcs.getSize()[1]), this.cu.Fu(i[0], i[1], 0), this.cu.Ou(), this.bu(r) }
|
||
this.h_() || this.map.setNeedUpdate(!0) }, b.prototype.bu = function(t) { var i = st.ProjectionManager.getProjection(this.su),
|
||
i = (st.Pl(this.uu, t[0], t[1], 0), i.unproject(t[0], t[1]));
|
||
this.hu = i }, b.prototype.getOptions = function() { return { size: this._size, zoom: this.bt, center: this.hu, rotation: this.nu, projectionId: this.su, pitch: this.Pu, resolution: this.du } }, b.prototype.au = function() { return this.su }, b.prototype.ru = function() { return st.ProjectionManager.getProjection(this.su) }, b.prototype.getStatus = function() { var t = st.Zl(),
|
||
i = st.Zl(),
|
||
n = st.Zl(),
|
||
s = (this.xu(t, i, n), st.Util.getOptimalZoom(this.bt)); return { size: this._size, pitch: this.Pu, rotation: this.nu, zoom: this.bt, optimalZoom: s, resolution: this.du, optimalResolution: st.ProjectionManager.getProjection(this.su).getResolution(s), center: this.hu, bounds: t, boundsCoord: i, transformedBoundsCoord: n, centerCoord: this.uu, projectionId: this.su, mvpMatrix: this.cu.Vl(), modelMatrix: this.cu.Au(), viewMode: this.type, skyHeight: this.EF(), fov: this.cu.Tu } }, b.prototype.$u = function(t) { return 80 }, b.prototype.Uu = function(t) { var t = void 0 !== t ? t : this.Pu,
|
||
i = this.bt,
|
||
t = Math.max(t / 100 - .4, 0),
|
||
i = Math.max(4 * (i - 22), 0) / 100; return this._size[1] * (t - i) - 10 }, b.prototype.EF = function() { var t = 1; return 0 < (t = this.Uu()) ? 1 - t / this._size[1] * 2 : 1 }, b.prototype.X = function(t, i) { var n, s = this.cu.Cu(),
|
||
e = this.cu.Au(),
|
||
r = this._size; return t = t / r[0] * 2 - 1, i = 1 - i / r[1] * 2, s ? (r = st.Bu(t, i, -1, 1), this.Wu(r, this.tu), n = st.Zl(), st.Gu(n, r, s), r = st.Bu(t, i, 1, 1), this.Wu(r, this.iu), t = st.Zl(), st.Gu(t, r, s), i = st.Zl(), st.Gu(i, n, e), r = st.Zl(), st.Gu(r, t, e), s = +i[2] / (i[2] - r[2]), [i[0] - s * (i[0] - r[0]), i[1] - s * (i[1] - r[1])]) : [0, 0] }, b.prototype.ku = function(t, i) { var n = st.Util.getOptimalZoom(this.bt),
|
||
s = this.uu,
|
||
e = this.X(t, i); return t = e[0], i = e[1], n >= st.Ra && (t += (e = st.lcs.getLocalByCoord([s[0], s[1]])).center[0], i += e.center[1]), [t, i] }, b.prototype.H = function(t, i, n) { void 0 === n && (n = 0); var s = this.cu.Su(),
|
||
e = this.cu.Lu(),
|
||
t = ((r = this.fG)[0] = t, r[1] = i, r[2] = n, this.uG),
|
||
i = this.cG,
|
||
n = (st.Gu(t, r, e), st.Gu(i, t, s), st.scale(i, i, 1 / i[3]), (i[0] + 1) / 2 * this._size[0]),
|
||
r = (1 - i[1]) / 2 * this._size[1]; return this.lG(i), this.lG(t), [n, r] }, b.prototype._u = function(t, i, n) { void 0 === n && (n = 0); var s = st.Util.getOptimalZoom(this.bt),
|
||
e = this.uu; return s >= st.Ra && (t -= (s = st.lcs.getLocalByCoord([e[0], e[1]])).center[0], i -= s.center[1]), this.H(t, i, n) }, b.prototype.containerTolnglat = function(t, i) { var t = this.X(t, i),
|
||
i = 0,
|
||
n = 0,
|
||
s = (st.Util.getOptimalZoom(this.bt) >= st.Ra && (i = (s = st.lcs.getLocalByCoord([this.uu[0], this.uu[1]]).center)[0], n = s[1]), t[0] += i, t[1] += n, st.ProjectionManager.getProjection(this.su).unproject(t[0], t[1])); return s[0] = 180 < s[0] ? s[0] - 360 : s[0] < -180 ? s[0] + 360 : s[0], s }, b.prototype.lnglatToContainer = function(t, i, n, s) { return void 0 === n && (n = 0), t = st.ProjectionManager.getProjection(this.su).project(t, i), st.Util.getOptimalZoom(this.bt) >= st.Ra && (i = st.lcs.getLocalByCoord([this.uu[0], this.uu[1]]), t[0] -= i.center[0], t[1] -= i.center[1]), this.H(t[0], t[1], n) }, b.prototype.pz = function() { return this.cu }, b.prototype.h_ = function() { return st.Ru(this.Xl, this.cu.Vl()) }, b.prototype.aD = function() { return this.Xl = this.cu.Vl(), this.Xl }, b.prototype.xu = function(t, i, n) { var s = 0,
|
||
e = 0,
|
||
r = this.Uu(),
|
||
o = (st.Util.getOptimalZoom(this.bt) >= st.Ra && (s = (o = st.lcs.getLocalByCoord([this.uu[0], this.uu[1]]).center)[0], e = o[1]), st.ProjectionManager.getProjection(this.su)),
|
||
h = this.X(0, r),
|
||
a = this.X.apply(this, this._size),
|
||
r = this.X(this._size[0], r),
|
||
u = this.X(0, this._size[1]),
|
||
f = Math.min(h[0], u[0], r[0], a[0]) + s,
|
||
s = Math.max(h[0], u[0], r[0], a[0]) + s,
|
||
c = Math.min(h[1], u[1], r[1], a[1]) + e,
|
||
h = Math.max(h[1], u[1], r[1], a[1]) + e,
|
||
u = o.unproject(f, c),
|
||
r = o.unproject(s, h),
|
||
a = (i[0] = f, i[1] = c, i[2] = s, i[3] = h, t[0] = u[0], t[1] = u[1], t[2] = r[0], t[3] = r[1], st.V[this.su].transform(i[0], i[3])),
|
||
e = st.V[this.su].transform(i[2], i[1]); return n[0] = a[0], n[1] = a[1], n[2] = e[0], n[3] = e[1], t }, b.prototype.vu = function() { var t = this._size,
|
||
i = t[0] * this.du,
|
||
n = t[1] * this.du,
|
||
s = (this.cu.setSize([i, n]), this.cu.Eu(), this.cu.dz()),
|
||
s = (this.tu = s / 10, this.iu = 50 * s, 56 - this.bt);
|
||
this.cu.setOptions([i, n], s, t[0] / t[1], this.tu, this.iu), this.cu.Eu() }, b.prototype.fu = function() { var t; return st.Util.getOptimalZoom(this.bt) < st.Ra ? [this.uu[0], this.uu[1]] : [(t = st.lcs.getDeltaCoord([this.uu[0], this.uu[1]]))[0], t[1]] }, b.prototype.lu = function(t) { return this.hu[0] = 180 < this.hu[0] ? this.hu[0] - 360 : this.hu[0] < -180 ? this.hu[0] + 360 : this.hu[0], t.project(this.hu[0], this.hu[1]) }, b.prototype.Wu = function(t, i) { t[0] *= i, t[1] *= i, t[2] *= i, t[3] *= i }, b.prototype.lG = function(t) { for (var i = t.length, n = 0; n < i; n++) t[n] = 0 }; var Wn, Nn = b;
|
||
|
||
function b(t, i) { var n = Wn.call(this) || this; return n.type = "3D", n.Pu = 0, n.hu = [116.397128, 39.916527], n.bt = 12, n.tu = 1e3, n.iu = 1 << 30, n._size = [0, 0], n.nu = 0, n.cu = new Fn, n.su = "EPSG:3857", n.uu = st.Dl(), n.du = st.ProjectionManager.getProjection(n.su).getResolution(12), n.Xl = st.Il(), n.fG = [0, 0, 0, 1], n.uG = [0, 0, 0, 0], n.cG = [0, 0, 0, 0], n.map = i, n.setOptions(t), n.cu.Ou(n.uu[0], n.uu[1]), n.Xl = n.cu.Vl(), n } var Gn = { Fe: ["water", "buildings", "sky", "atmosphere", "bg", "traffic"], aX: { regions: { subType: { land: { styleMap: [{ mainkey: 30001, subkey: [1, 4, 5] }], name: ["区域面", "陆地"] }, green: { styleMap: [{ mainkey: 30001, subkey: [3, 7, 8, 9, 10, 12, 37] }], name: ["区域面", "绿地"] }, "water:ocean": { styleMap: [{ mainkey: 30001, subkey: [6] }, { mainkey: 10002, subkey: [38] }], name: ["区域面", "海洋"] }, "water:watersystem": { styleMap: [{ mainkey: 30001, subkey: [2, 11, 13] }, { mainkey: 20014 }, { mainkey: 10002, subkey: [13] }], name: ["区域面", "其他水系"] }, edu: { styleMap: [{ mainkey: 30002, subkey: [3, 31] }, { mainkey: 30005, subkey: [1, 2, 3, 4, 5, 6] }], name: ["区域面", "教育体育"] }, scenicSpot: { styleMap: [{ mainkey: 30002, subkey: [5, 33, 41] }], name: ["区域面", "景区"] }, sports: { styleMap: [{ mainkey: 30002, subkey: [9, 10, 13, 19, 20, 21, 34, 37, 39] }], name: ["区域面", "运动场所"] }, parkingLot: { styleMap: [{ mainkey: 30002, subkey: [1] }], name: ["区域面", "停车场"] }, subway: { styleMap: [{ mainkey: 30003 }], name: ["区域面", "地铁设施"] }, servicearea: { styleMap: [{ mainkey: 30002, subkey: [42, 43] }], name: ["区域面", "高速服务区"] }, desert: { styleMap: [{ mainkey: 30002, subkey: [41] }], name: ["区域面", "沙漠沙地"] }, culture: { styleMap: [{ mainkey: 30002, subkey: [7, 35] }], name: ["区域面", "文化"] }, public: { styleMap: [{ mainkey: 30002, subkey: [4, 12, 22, 32, 42, 43] }, { mainkey: 30005, subkey: [7] }], name: ["区域面", "公共设施"] }, health: { styleMap: [{ mainkey: 30002, subkey: [8, 36] }], name: ["区域面", "医疗卫生"] }, business: { styleMap: [{ mainkey: 30002, subkey: [11, 23, 24, 25, 26, 27, 28, 29, 30, 38] }], name: ["区域面", "商业场所"] }, transporthub: { styleMap: [{ mainkey: 30002, subkey: [6, 14, 40] }, { mainkey: 30004 }], name: ["区域面", "交通枢纽"] } } }, roads: { subType: { "highWay:highway": { styleMap: [{ mainkey: 20001, subkey: [1, 5] }], name: ["道路", "高速"] }, "highWay:highwayTunnel": { styleMap: [{ mainkey: 20001, subkey: [3] }], name: ["道路", "高速隧道"] }, "highWay:highwayOthers": { styleMap: [{ mainkey: 20001, subkey: [2, 6] }], name: ["道路", "高速其他路"] }, "ringRoad:ringRoad": { styleMap: [{ mainkey: 20002, subkey: [1, 5] }], name: ["道路", "环路"] }, "ringRoad:ringRoadTunnel": { styleMap: [{ mainkey: 20002, subkey: [3] }], name: ["道路", "环路隧道"] }, "ringRoad:ringRoadOthers": { styleMap: [{ mainkey: 20002, subkey: [2] }], name: ["道路", "环路其他路"] }, "nationalRoad:nationalRoad": { styleMap: [{ mainkey: 20003, subkey: [1] }], name: ["道路", "国道"] }, "nationalRoad:nationalRoadTunnel": { styleMap: [{ mainkey: 20003, subkey: [3] }], name: ["道路", "国道隧道"] }, "nationalRoad:nationalRoadOthers": { styleMap: [{ mainkey: 20003, subkey: [2, 5] }], name: ["道路", "国道其他路"] }, "provincialRoad:provincialRoad": { styleMap: [{ mainkey: 20004, subkey: [1] }], name: ["道路", "省道"] }, "provincialRoad:provincialRoadTunnel": { styleMap: [{ mainkey: 20004, subkey: [3] }], name: ["道路", "省道隧道"] }, "provincialRoad:provincialRoadOthers": { styleMap: [{ mainkey: 20004, subkey: [2] }], name: ["道路", "省道其他路"] }, secondaryRoad: { styleMap: [{ mainkey: 20007 }, { mainkey: 20031 }, { mainkey: 20032 }], name: ["道路", "二级道路"] }, levelThreeRoad: { styleMap: [{ mainkey: 20008 }], name: ["道路", "三级道路"] }, levelFourRoad: { styleMap: [{ mainkey: 20009 }, { mainkey: 20026 }], name: ["道路", "四级道路"] }, roadsBeingBuilt: { styleMap: [{ mainkey: 20018 }, { mainkey: 20023 }], name: ["道路", "在建道路"] }, railway: { styleMap: [{ mainkey: 20010, subkey: [1, 3] }], name: ["道路", "铁路"] }, highSpeedRailway: { styleMap: [{ mainkey: 20010, subkey: [2] }], name: ["道路", "高铁"] }, subway: { styleMap: [{ mainkey: 20015, subkey: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 86, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190] }], name: ["道路", "地铁"] }, subwayBeingBuilt: { styleMap: [{ mainkey: 20015, subkey: [1, 2] }, { mainkey: 20019 }], name: ["道路", "在建地铁"] }, overPass: { styleMap: [{ mainkey: 20012 }], name: ["道路", "天桥"] }, underPass: { styleMap: [{ mainkey: 20013 }], name: ["道路", "地道"] }, other: { styleMap: [{ mainkey: 20011 }, { mainkey: 20017 }, { mainkey: 20020 }, { mainkey: 20024 }, { mainkey: 20028 }], name: ["道路", "其他线路"] }, guideBoards: { styleMap: [{ mainkey: 40001 }], name: ["道路", "道路路牌"] } } }, labels: { subType: { "building:officebuilding": { styleMap: [{ mainkey: 10001, subkey: [5, 74, 75, 76, 77, 78, 79] }, { mainkey: 10004, subkey: [12] }], name: ["标注", "商务大厦"] }, "building:residence": { styleMap: [{ mainkey: 10001, subkey: [6, 80, 81] }], name: ["标注", "住宅"] }, "building:landmark": { styleMap: [{ mainkey: 10007, subkey: [187, 188, 189, 190, 192, 193, 195, 196, 198] }], name: ["标注", "地标建筑"] }, "repast:restaurant": { styleMap: [{ mainkey: 10001, subkey: [19, 20, 114, 115, 116, 117, 118, 119] }, { mainkey: 10007, subkey: [179, 180, 181] }, { mainkey: 10010, subkey: [5, 6] }], name: ["标注", "餐厅"] }, "repast:tearoom": { styleMap: [{ mainkey: 10007, subkey: [167] }], name: ["标注", "茶馆"] }, "repast:cafe": { styleMap: [{ mainkey: 10001, subkey: [22] }, { mainkey: 10007, subkey: [215] }], name: ["标注", "咖啡厅"] }, "repast:dessert": { styleMap: [{ mainkey: 10007, subkey: [166] }], name: ["标注", "甜品店"] }, "entertainment:mall": { styleMap: [{ mainkey: 10001, subkey: [7, 68, 82, 83, 84, 85, 93, 94, 98] }, { mainkey: 10004, subkey: [8, 18] }, { mainkey: 10007, subkey: [175, 200, 201, 202, 203, 204] }], name: ["标注", "购物商场"] }, "entertainment:market": { styleMap: [{ mainkey: 10001, subkey: [8, 92] }, { mainkey: 10007, subkey: [1, 2, 3, 4, 5, 6, 10, 168] }], name: ["标注", "便利超市"] }, "entertainment:cinema": { styleMap: [{ mainkey: 10001, subkey: [60] }, { mainkey: 10007, subkey: [178] }], name: ["标注", "影剧院"] }, "entertainment:entertainment": { styleMap: [{ mainkey: 10001, subkey: [61, 62] }, { mainkey: 10007, subkey: [169] }], name: ["标注", "娱乐场所"] }, "entertainment:pedestrainmall": { styleMap: [{ mainkey: 10001, subkey: [99] }], name: ["标注", "步行街"] }, "entertainment:hotel": { styleMap: [{ mainkey: 10001, subkey: [9, 133, 134, 135, 136] }], name: ["标注", "酒店"] }, "entertainment:zoo": { styleMap: [{ mainkey: 10001, subkey: [38, 103] }], name: ["标注", "动物园"] }, "entertainment:funfair": { styleMap: [{ mainkey: 10001, subkey: [37, 73, 184, 185, 188, 203, 204, 205] }], name: ["标注", "游乐场"] }, "scenic:attraction": { styleMap: [{ mainkey: 10001, subkey: [4, 12, 104, 105, 106, 107, 108, 109, 110, 111, 112, 120, 167, 168, 171, 213] }, { mainkey: 10004, subkey: [3, 13, 21] }, { mainkey: 10007, subkey: [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 229, 230, 231, 236] }, { mainkey: 10008 }], name: ["标注", "风景名胜"] }, "scenic:park": { styleMap: [{ mainkey: 10001, subkey: [14, 69, 100, 101, 102] }], name: ["标注", "公园"] }, "scenic:mountain": { styleMap: [{ mainkey: 10001, subkey: [18] }], name: ["标注", "山"] }, "traffic:busstop": { styleMap: [{ mainkey: 10001, subkey: [24] }], name: ["标注", "公交站"] }, "traffic:port": { styleMap: [{ mainkey: 10001, subkey: [36] }], name: ["标注", "港口"] }, "traffic:transporthub": { styleMap: [{ mainkey: 10001, subkey: [2, 27, 28, 29, 30, 31, 172, 175] }, { mainkey: 10004, subkey: [4, 10, 14, 20] }], name: ["标注", "交通枢纽"] }, "traffic:trainstation": { styleMap: [{ mainkey: 10001, subkey: [26] }], name: ["标注", "火车站"] }, "traffic:airportterminal": { styleMap: [{ mainkey: 10001, subkey: [23, 176, 177, 178] }, { mainkey: 10009 }], name: ["标注", "机场航站楼"] }, "traffic:coachstation": { styleMap: [{ mainkey: 10001, subkey: [25] }], name: ["标注", "长途汽车站"] }, culture: { styleMap: [{ mainkey: 10001, subkey: [10, 11, 13, 35, 138, 139, 140, 141, 142, 143, 163, 164, 165, 166, 170] }, { mainkey: 10004, subkey: [1, 5, 11, 15] }, { mainkey: 10007, subkey: [43, 44, 45, 46, 47, 176, 177] }] }, "service:lifestyle": { styleMap: [{ mainkey: 10001, subkey: [58, 63, 64, 65, 66, 67, 121, 122, 123, 173, 214] }, { mainkey: 10007, subkey: [28, 29, 30, 58] }], name: ["标注", "生活服务"] }, "service:bank": { styleMap: [{ mainkey: 10007, subkey: [14, 15, 16, 17] }], name: ["标注", "银行"] }, "service:restroom": { styleMap: [{ mainkey: 10001, subkey: [59] }], name: ["标注", "卫生间"] }, "medical:medicalcenter": { styleMap: [{ mainkey: 10001, subkey: [70] }, { mainkey: 10004, subkey: [6, 16] }], name: ["标注", "大型医院"] }, "medical:hospital": { styleMap: [{ mainkey: 10001, subkey: [32, 33, 169, 206, 207, 208, 209, 210] }, { mainkey: 10007, subkey: [170] }], name: ["标注", "医院"] }, "medical:emergencycenter": { styleMap: [{ mainkey: 10001, subkey: [132] }], name: ["标注", "急救中心"] }, "medical:clinic": { styleMap: [{ mainkey: 10001, subkey: [131] }, { mainkey: 10007, subkey: [209] }], name: ["标注", "诊所"] }, "medical:pharmacy": { styleMap: [{ mainkey: 10001, subkey: [57] }], name: ["标注", "药店"] }, "casual:golf": { styleMap: [{ mainkey: 10004, subkey: [7, 17] }], name: ["标注", "高尔夫"] }, "casual:swimmingpool": { styleMap: [{ mainkey: 10007, subkey: [171] }], name: ["标注", "游泳馆"] }, "casual:basketballcourt": { styleMap: [{ mainkey: 10001, subkey: [129] }], name: ["标注", "篮球馆"] }, "casual:soccerfield": { styleMap: [{ mainkey: 10001, subkey: [130] }], name: ["标注", "足球场"] }, "casual:tenniscourt": { styleMap: [{ mainkey: 10007, subkey: [174] }], name: ["标注", "网球场"] }, "casual:otherstadium": { styleMap: [{ mainkey: 10001, subkey: [15, 16, 17, 124, 125, 126, 127, 128] }, { mainkey: 10007, subkey: [172, 173] }], name: ["标注", "其他体育馆"] }, "point:toll": { styleMap: [{ mainkey: 10001, subkey: [218] }], name: ["标注", "收费站"] }, "point:trafficlight": { styleMap: [{ mainkey: 10001, subkey: [2] }], name: ["标注", "红绿灯"] }, "point:tunnel": { styleMap: [{ mainkey: 10002, subkey: [16] }], name: ["标注", "隧道"] }, insurance: { styleMap: [{ mainkey: 10001, subkey: [42, 55] }], name: ["标注", "金融保险"] }, motorcycleservices: { styleMap: [{ mainkey: 10001, subkey: [113] }], name: ["标注", "摩托车服务"] }, automobileservices: { styleMap: [{ mainkey: 10001, subkey: [39, 40, 41, 71, 72] }, { mainkey: 10007, subkey: [40, 41, 42] }], name: ["标注", "汽车服务"] }, subway: { styleMap: [{ mainkey: 10005 }, { mainkey: 10006 }], name: ["标注", "地铁站"] }, transportfacilities: { styleMap: [{ mainkey: 10001, subkey: [149, 150, 215, 216, 217] }, { mainkey: 10002, subkey: [11] }, { mainkey: 11001, subkey: [1, 2, 3] }, { mainkey: 10004, subkey: [22, 23] }], name: ["标注", "道路附属设施"] }, bizcircle: { styleMap: [{ mainkey: 10002, subkey: [10] }], name: ["标注", "商圈"] }, others: { styleMap: [{ mainkey: 10001, subkey: [1, 3, 34, 43, 137] }, { mainkey: 10002, subkey: [12, 14, 15, 21, 23, 28, 36] }, { mainkey: 10004, subkey: [2] }, { mainkey: 10007, subkey: [208, 210, 211, 212, 213, 214] }, { mainkey: 10011 }, { mainkey: 10012 }, { mainkey: 10013 }, { mainkey: 10014 }, { mainkey: 10015 }, { mainkey: 10016 }], name: ["标注", "其他"] } } }, districtsname: { subType: { continent: { styleMap: [{ mainkey: 10002, subkey: [20] }], name: ["行政区名", "大洲名"] }, country_cn: { styleMap: [{ mainkey: 10002, subkey: [18] }], name: ["行政区名", "中国国家名"] }, country_global: { styleMap: [{ mainkey: 10002, subkey: [19] }], name: ["行政区名", "世界国家名"] }, capital_global: { styleMap: [{ mainkey: 10002, subkey: [24, 35] }], name: ["行政区名", "境外首都名"] }, state: { styleMap: [{ mainkey: 10002, subkey: [1, 3, 4, 22, 26, 30, 32, 33, 34] }], name: ["行政区名", "省/直辖市/特别行政区名"] }, "city:provincial_capital": { styleMap: [{ mainkey: 10002, subkey: [2, 31] }], name: ["行政区名", "省会名"] }, "city:city": { styleMap: [{ mainkey: 10002, subkey: [5, 7, 25, 27] }], name: ["行政区名", "地级市名"] }, "city:district": { styleMap: [{ mainkey: 10002, subkey: [6] }], name: ["行政区名", "县级市名"] }, district: { styleMap: [{ mainkey: 10002, subkey: [8, 37] }], name: ["行政区名", "区县名"] }, town: { styleMap: [{ mainkey: 10002, subkey: [9] }], name: ["行政区名", "乡镇名"] }, village: { styleMap: [{ mainkey: 10002, subkey: [17] }], name: ["行政区名", "村庄名"] } } }, borders: { subType: { global: { styleMap: [{ mainkey: 20016, subkey: [3, 4, 8, 10, 11, 14] }], name: ["行政区边界", "外国国界/停火线/主张线"] }, provincial: { styleMap: [{ mainkey: 20016, subkey: [5, 6, 7, 12] }], name: ["行政区边界", "省界线"] } } }, buildings: { subType: { default: { styleMap: [{ mainkey: 50001, subkey: [1, 2] }], name: ["楼块", "默认楼块"] }, education: { styleMap: [{ mainkey: 50002, subkey: [1, 2, 3, 4] }], name: ["楼块", "高校教学"] } } }, environment: { subType: { sky: { styleMap: [{ mainkey: "00001", subkey: [1] }], name: ["环境", "天空"] }, atmosphere: { styleMap: [{ mainkey: "00001", subkey: [2] }], name: ["环境", "大气"] } } }, bg: { styleMap: [{ mainkey: "00001", subkey: [3] }] } }, uX: { regions: { name: "区域面", subType: { land: { name: "陆地", keyMap: ["regions#land"], styleMap: [{ mainkey: 30001, subkey: [1, 4, 5] }] }, green: { name: "绿地", keyMap: ["regions#green:greenspace", "regions#green:grass", "regions#green:woodland", "regions#green:mountain", "regions#green:golf"], styleMap: [{ mainkey: 30001, subkey: [3, 7, 8, 9, 10, 12] }] }, edu: { name: "教育体育", keyMap: ["regions#edu"], styleMap: [{ mainkey: 30002, subkey: [3, 31] }] }, public: { name: "公共设施", keyMap: ["regions#public"], styleMap: [{ mainkey: 30002, subkey: [4, 12, 22, 32] }] }, traffic: { name: "交通枢纽", keyMap: ["regions#transporthub"], styleMap: [{ mainkey: 30002, subkey: [6, 14, 40] }, { mainkey: 30004, subkey: [6, 14, 40] }] }, scenicSpot: { name: "景区", keyMap: ["regions#scenicSpot"], styleMap: [{ mainkey: 30002, subkey: [5, 33] }] }, culture: { name: "文化", keyMap: ["regions#culture"], styleMap: [{ mainkey: 30002, subkey: [7, 35] }] }, health: { name: "医疗卫生", keyMap: ["regions#health"], styleMap: [{ mainkey: 30002, subkey: [8, 36] }] }, sports: { name: "运动场所", keyMap: ["regions#sports"], styleMap: [{ mainkey: 30002, subkey: [9, 10, 13, 19, 20, 21, 34, 37, 39] }] }, business: { name: "商业场所", keyMap: ["regions#business"], styleMap: [{ mainkey: 30002, subkey: [11, 23, 24, 25, 26, 27, 28, 29, 30, 38] }] }, parkingLot: { name: "停车场", keyMap: ["regions#parkingLot"], styleMap: [{ mainkey: 30002, subkey: [1] }] }, subway: { name: "地铁设施", keyMap: ["regions#subway"], styleMap: [{ mainkey: 30003, allSubKey: !0 }] } } }, water: { name: "水系", keyMap: ["regions#water:ocean", "regions#water:watersystem"], styleMap: [{ mainkey: 30001, subkey: [2, 6, 11, 13] }, { mainkey: 20014, subkey: [1, 2] }, { mainkey: 10002, subkey: [13, 38] }] }, buildings: { name: "建筑物", keyMap: ["buildings#default", "buildings#residence", "buildings#education", "buildings#life", "buildings#event", "buildings#landmark"], styleMap: [{ mainkey: 50001, subkey: [1, 2] }, { mainkey: 50002, subkey: [1, 2, 3, 4] }, { mainkey: 50003, subkey: [1] }, { mainkey: 50004, subkey: [1] }, { mainkey: 30002, subkey: [2, 15, 16, 17, 18] }] }, roads: { name: "道路", subType: { highWay: { name: "高速公路", keyMap: ["roads#highWay:highway", "roads#highWay:highwayTunnel", "roads#highWay:highwayOthers"], styleMap: [{ mainkey: 20001, subkey: [1, 2, 3, 5, 6] }] }, ringRoad: { name: "城市环线", keyMap: ["roads#ringRoad:ringRoad", "roads#ringRoad:ringRoadTunnel", "roads#ringRoad:ringRoadOthers"], styleMap: [{ mainkey: 20002, subkey: [1, 2, 3] }] }, nationalRoad: { name: "国道", keyMap: ["roads#nationalRoad:nationalRoad", "roads#nationalRoad:nationalRoadTunnel", "roads#nationalRoad:nationalRoadOthers"], styleMap: [{ mainkey: 20003, subkey: [1, 2, 3, 5] }] }, provincialRoad: { name: "省道", keyMap: ["roads#provincialRoad:provincialRoad", "roads#provincialRoad:provincialRoadTunnel", "roads#provincialRoad:provincialRoadOthers"], styleMap: [{ mainkey: 20004, subkey: [1, 2, 3] }] }, secondaryRoad: { name: "二级公路", keyMap: ["roads#secondaryRoad"], styleMap: [{ mainkey: 20007, subkey: [1, 2, 3] }] }, levelThreeRoad: { name: "三级公路", keyMap: ["roads#levelThreeRoad"], styleMap: [{ mainkey: 20008, subkey: [1, 2, 4, 5] }] }, levelFourRoad: { name: "四级道路", keyMap: ["roads#levelFourRoad"], styleMap: [{ mainkey: 20009, subkey: [1, 2, 3, 5, 6, 7] }] }, roadsBeingBuilt: { name: "在建道路", keyMap: ["roads#roadsBeingBuilt"], styleMap: [{ mainkey: 20018, subkey: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11] }] }, railway: { name: "铁路", keyMap: ["roads#railway"], styleMap: [{ mainkey: 20010, subkey: [1] }] }, highSpeedRailway: { name: "高铁", keyMap: ["roads#highSpeedRailway"], styleMap: [{ mainkey: 20010, subkey: [2] }] }, subway: { name: "地铁", keyMap: ["roads#subway"], styleMap: [{ mainkey: 20015, allSubKey: !0, subkey0: [1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 86, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 131, 132, 133, 143] }] }, subwayBeingBuilt: { name: "在建地铁", keyMap: ["roads#subwayBeingBuilt"], styleMap: [{ mainkey: 20015, subkey: [1, 2] }, { mainkey: 20019, subkey: [1] }] }, overPass: { name: "天桥", keyMap: ["roads#overPass"], styleMap: [{ mainkey: 20012, subkey: [1, 2, 3] }] }, underPass: { name: "地道", keyMap: ["roads#underPass"], styleMap: [{ mainkey: 20013, subkey: [1, 2, 3] }] }, other: { name: "其他线条", keyMap: ["roads#other"], styleMap: [{ mainkey: 20011, subkey: [1] }, { mainkey: 20017, subkey: [1, 2, 3, 4, 8] }, { mainkey: 20020, subkey: [1, 2, 3] }, { mainkey: 20024, subkey: [1, 2] }, { mainkey: 20028, subkey: [1] }] }, guideBoards: { name: "道路路牌", keyMap: ["roads#guideBoards"], styleMap: [{ mainkey: 40001, subkey: [2800, 110100, 110101, 110102, 110103, 110104, 110105] }] } } }, labels: { name: "标注", subType: { pois: { name: "兴趣点", subType: { hotel: { name: "住宿", keyMap: ["labels#entertainment:hotel"], isDetailedType: !0, detailedCode: 0, styleMap: [{ mainkey: 10001, subkey: [9, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 186] }, { mainkey: 10007, subkey: [31, 32, 33, 34, 35, 36, 37, 38, 39, 164, 165] }] }, restaurant: { name: "餐饮", keyMap: ["labels#repast:restaurant"], isDetailedType: !0, detailedCode: 1, styleMap: [{ mainkey: 10001, subkey: [19, 20, 21, 22, 114, 115, 116, 117, 118, 119, 183, 187] }, { mainkey: 10007, subkey: [1, 2, 3, 4, 166, 167, 168, 179, 180, 181, 203, 205, 206, 215] }] }, shop: { name: "购物", keyMap: ["labels#entertainment:mall"], isDetailedType: !0, detailedCode: 2, styleMap: [{ mainkey: 10001, subkey: [7, 8, 68, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99] }, { mainkey: 10007, subkey: [5, 6, 7, 8, 9, 10, 11, 12, 13, 175, 200, 201, 202, 204] }] }, scenicSpot: { name: "风景名胜", keyMap: ["labels#repast:restaurant", "labels#scenic:park"], isDetailedType: !0, detailedCode: 3, styleMap: [{ mainkey: 10001, subkey: [4, 12, 14, 38, 69, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 120, 167, 171, 188, 189, 190, 191, 192] }, { mainkey: 10008, allSubKey: !0 }, { mainkey: 10007, subkey: [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 187, 188, 190, 192, 193, 194, 195, 196, 198, 216, 217, 218, 219, 220, 221, 223, 224, 225] }] }, traffic: { name: "交通设施", isDetailedType: !0, detailedCode: 4, styleMap: [{ mainkey: 10001, subkey: [23, 24, 25, 26, 31, 36, 148, 154, 168, 172, 175, 176, 177, 178] }, { mainkey: 10002, subkey: [11, 16] }, { mainkey: 10009, allSubKey: !0 }] }, bank: { name: "金融保险", isDetailedType: !0, detailedCode: 5, styleMap: [{ mainkey: 10001, subkey: [42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 144, 145, 146, 147] }, { mainkey: 10007, subkey: [14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27] }] }, edu: { name: "科教文化", isDetailedType: !0, detailedCode: 6, styleMap: [{ mainkey: 10001, subkey: [10, 11, 13, 35, 138, 139, 140, 141, 142, 143, 163, 164, 165, 166, 170] }, { mainkey: 10007, subkey: [43, 44, 45, 46, 47, 176, 177] }] }, live: { name: "生活服务", isDetailedType: !0, detailedCode: 7, styleMap: [{ mainkey: 10001, subkey: [58, 63, 64, 65, 66, 67, 121, 122, 123] }, { mainkey: 10007, subkey: [28, 29, 30] }] }, hospital: { name: "医疗保健", isDetailedType: !0, detailedCode: 8, styleMap: [{ mainkey: 10001, subkey: [32, 33, 57, 70, 131, 132, 169, 193, 206, 207, 208, 209, 210] }, { mainkey: 10007, subkey: [170, 209] }] }, pe: { name: "休闲体育", isDetailedType: !0, detailedCode: 9, styleMap: [{ mainkey: 10001, subkey: [15, 16, 17, 37, 60, 61, 62, 73, 124, 125, 126, 127, 128, 129, 130, 180, 181, 182, 184, 185, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 213, 214] }, { mainkey: 10007, subkey: [169, 171, 172, 173, 174, 178, 197, 207] }] }, public: { name: "公共设施", isDetailedType: !0, detailedCode: 10, styleMap: [{ mainkey: 10001, subkey: [59, 173, 215] }] }, buidling: { name: "商务住宅", isDetailedType: !0, detailedCode: 11, styleMap: [{ mainkey: 10001, subkey: [5, 6, 74, 75, 76, 77, 78, 79, 80, 81, 179] }, { mainkey: 10007, subkey: [189, 191] }] }, gov: { name: "政府机构及社会团体", isDetailedType: !0, detailedCode: 12, styleMap: [{ mainkey: 10001, subkey: [3, 34, 43, 137] }] }, moto: { name: "摩托车服务", isDetailedType: !0, detailedCode: 13, styleMap: [{ mainkey: 10001, subkey: [113] }] }, vehicle: { name: "汽车服务", isDetailedType: !0, detailedCode: 14, styleMap: [{ mainkey: 10001, subkey: [39, 40, 41, 71, 72, 151, 152, 153] }, { mainkey: 10007, subkey: [40, 41, 42, 182, 183, 184, 185, 186] }] }, pass: { name: "通行设施", isDetailedType: !0, detailedCode: 15, styleMap: [{ mainkey: 10001, subkey: [27, 28, 149, 150, 174] }, { mainkey: 10002, subkey: [21] }] }, subway: { name: "地铁站", isDetailedType: !0, detailedCode: 16, styleMap: [{ mainkey: 10005, subkey: [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 54, 55, 56, 57, 59, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 103, 104, 105] }, { mainkey: 10006, subkey: [1, 2] }] }, roadFacilities: { name: "道路附属设施", isDetailedType: !0, detailedCode: 17, styleMap: [{ mainkey: 10001, subkey: [2, 29, 30] }, { mainkey: 10017, allSubKey: !0 }] }, address: { name: "地名", isDetailedType: !0, detailedCode: 18, styleMap: [{ mainkey: 10001, subkey: [18] }, { mainkey: 10002, subkey: [10, 12, 14, 15, 23, 36] }] }, other: { name: "其他", isDetailedType: !0, detailedCode: 19, styleMap: [{ mainkey: 10001, subkey: [1, 211, 212] }, { mainkey: 10002, subkey: [28] }, { mainkey: 10007, subkey: [208, 210, 211, 212, 213, 214] }, { mainkey: 10010 }, { mainkey: 10011 }, { mainkey: 10012 }, { mainkey: 10013 }, { mainkey: 10014 }, { mainkey: 10015 }, { mainkey: 10016, allSubKey: !0 }] } } }, aois: { name: "区域标注", keyMap: ["labels#building:officebuilding", "labels#entertainment:mall", "labels#traffic:transporthub", "labels#medical:medicalcenter", "labels#casual:golf"], styleMap: [{ mainkey: 10004, allSubKey: !0, subkey: [1, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 17, 18, 21, 22, 23] }] }, continent: { name: "大洲", keyMap: ["districtsname#continent"], styleMap: [{ mainkey: 10002, subkey: [20] }] }, country: { name: "国家", keyMap: ["districtsname#country_cn"], styleMap: [{ mainkey: 10002, subkey: [18, 19, 29] }] }, province: { name: "省/直辖市/自治区/特别行政区", keyMap: ["districtsname#state"], styleMap: [{ mainkey: 10002, subkey: [22, 26, 33] }] }, city: { name: "城市", keyMap: ["districtsname#city:provincial_capital", "districtsname#city:city"], styleMap: [{ mainkey: 10002, subkey: [1, 2, 3, 4, 5, 7, 24, 25, 27, 30, 31, 32, 34, 35] }] }, district: { name: "区县", keyMap: ["districtsname#city:district"], styleMap: [{ mainkey: 10002, subkey: [6, 8, 37] }] }, town: { name: "乡镇", keyMap: ["districtsname#town"], styleMap: [{ mainkey: 10002, subkey: [9] }] }, village: { name: "村庄", keyMap: ["districtsname#village"], styleMap: [{ mainkey: 10002, subkey: [17] }] } } }, borders: { name: "行政区边界", subType: { China: { name: "中国国界", keyMap: ["borders#China"], styleMap: [{ mainkey: 20016, subkey: [1, 2, 9] }] }, foreign: { name: "外国国界/停火线/主张线", keyMap: ["borders#global"], styleMap: [{ mainkey: 20016, subkey: [3, 4, 8, 10, 11, 14, 16] }] }, provincial: { name: "省界线", keyMap: ["borders#provincial"], styleMap: [{ mainkey: 20016, subkey: [5, 6, 7, 12] }] } } }, sky: { name: "天空", keyMap: ["environment#sky"], styleMap: [{ mainkey: "00001", subkey: [1] }] }, atmosphere: { name: "大气", keyMap: ["environment#atmosphere"], styleMap: [{ mainkey: "00001", subkey: [2] }] }, bg: { name: "背景网格线", keyMap: ["bg"], styleMap: [{ mainkey: "00001", subkey: [3] }] } } },
|
||
Un = (_n.prototype.pn = function(t) { this.qe ? t(this.ON) : this.Ye.push(t) }, _n.prototype.dn = function(t, i, n) { var s = this.vn.dn(t, i, n); return !s && window.amapStyle && (window.amapStyle[t] || (window.amapStyle[t] = {}), window.amapStyle[t][i] = {}, window.amapStyle[t][i][n] = null), s }, _n.prototype.mn = function(t, i) { return this.vn.mn(t, i) }, _n.prototype.setStyle = function(t, i, n) { var s = t;
|
||
this.vn.setStyle(s), t.layer && this.vn.EY(t.layer), this.vn.kF(t), n.gn.bn(s, function() { n.emit("styleChanged") }) }, _n.prototype.setStyleByPlat = function(t, i) { var n;
|
||
st.Module.eS.BY && (n = this.xn(t), this.vn.setStyle(n), t.layer && this.vn.EY(t.layer), this.vn.kF(t), i.gn.bn(n, function() { i.emit("styleChanged") })) }, _n.prototype.destroy = function() { this.vn && this.vn.destroy(), this.Ze = {}, this.ON = "" }, _n.prototype.w_ = function(t) { var i; return this.Ze && this.Ze[t] ? (i = [], Object.keys(this.Ze[t]).forEach(function(t) { t = parseFloat(t), i.push(t) }), i) : null }, _n.prototype.VY = function(t) { var t = { style: t },
|
||
i = new XMLHttpRequest;
|
||
i.onreadystatechange = function() { 4 === i.readyState && 200 === i.status ? console.log("qqqqq") : 404 === i.status && i.abort() }, i.open("POST", "http://webapi.amap.com/formatstyle"), i.setRequestHeader("Content-type", "application/json"), i.send(JSON.stringify(t)) }, _n.prototype.xn = function(t) { for (var i = {}, n = t.version && "2.0" === t.version ? t.mapStyle : t, s = t.version && "2.0" === t.version ? Gn.aX : Gn.uX, e = Object.keys(n), r = 0; r < e.length; r++) { var o = e[r],
|
||
h = n[o]; if (s[o]) { var a = s[o]; if (a.styleMap) { for (var u = a.styleMap, f = 0; f < u.length; f++)
|
||
if (i[A = u[f].mainkey] || (i[A] = {}), u[f].subkey)
|
||
for (var c = 0; c < u[f].subkey.length; c++) { var l = u[f].subkey[c],
|
||
d = st.yn(h); if (h.styles)
|
||
for (var v = Object.keys(h.styles), p = 0; p < v.length; p++) { var m = v[p],
|
||
y = h.styles[m].transitional,
|
||
b = h.styles[m].nodes;
|
||
d.styles[m] = { nodes: b, transitional: y || void 0, nodesObj: {} }; for (var g = 0; g < b.length; g++) { var M = b[g].zoom,
|
||
w = b[g].value;
|
||
d.styles[m].nodesObj[M] = w } }
|
||
i[A][l] = d } } else if (a.subType && h.subType)
|
||
for (var k = Object.keys(h.subType), f = 0; f < k.length; f++) { var x = k[f]; if (a.subType[x] && a.subType[x].styleMap) { for (u = a.subType[x].styleMap, c = 0; c < u.length; c++)
|
||
if (u[c].mainkey) { i[A = u[c].mainkey] || (i[A] = {}); var A, z = u[c].subkey; if (z = (u[c].allSubKey ? this.w_(A) : z) || ["all"])
|
||
for (var C = 0; C < z.length; C++) { var l = z[C],
|
||
T = h.subType[x]; if ((d = st.yn(T)).styles)
|
||
for (v = Object.keys(T.styles), p = 0; p < v.length; p++)
|
||
for (m = v[p], y = T.styles[m].transitional, b = T.styles[m].nodes, d.styles[m] = { nodes: b, nodesObj: {}, transitional: y || void 0 }, g = 0; g < b.length; g++) M = b[g].zoom, w = b[g].value, d.styles[m].nodesObj[M] = w;
|
||
i[A][l] = d } } } else if (a.subType[x] && a.subType[x].subType)
|
||
for (var S = a.subType[x].subType, P = Object.keys(S), T = h.subType[x], d = st.yn(T), I = 0; I < P.length; I++) { var L = P[I]; if (S[L].styleMap)
|
||
for (var D = 0; D < S[L].styleMap.length; D++) { var O = S[L].styleMap[D]; if (O.mainkey && O.subkey) { i[O.mainkey] || (i[O.mainkey] = {}); for (var E = 0; E < O.subkey.length; E++) { var B = O.subkey[E]; if (d.detailedType && d.detailedType[L]) { var R = d.detailedType[L],
|
||
j = st.yn(R); if (R.styles)
|
||
for (v = Object.keys(R.styles), p = 0; p < v.length; p++)
|
||
for (m = v[p], b = R.styles[m].nodes, j.styles[m] = { nodes: b, nodesObj: {} }, g = 0; g < b.length; g++) M = b[g].zoom, w = b[g].value, j.styles[m].nodesObj[M] = w;
|
||
i[O.mainkey][B] = j } else i[O.mainkey][B] = d } } } } } } } return i }, _n.prototype.wn = function(t) { for (var i = 0, n = this.Ye.length; i < n; i += 1)(0, this.Ye[i])(t);
|
||
this.Ye = [] }, _n.prototype.fn = function(t) { var i = this,
|
||
n = (st.Support.amapRunTime && !st.Support.amapRunTime["style2.0-request"] && (st.Support.amapRunTime["style2.0-request"] = (new Date).getTime()), window.amap_sdk_log && window.amap_sdk_log("style-request:" + t + "-" + Date.now()), new XMLHttpRequest);
|
||
n.onreadystatechange = function() { 4 === n.readyState && 200 === n.status ? (st.Support.amapRunTime && !st.Support.amapRunTime["style2.0-loaded"] && (st.Support.amapRunTime["style2.0-loaded"] = (new Date).getTime()), window.amap_sdk_log && window.amap_sdk_log("style-loaded:" + t + "-" + Date.now()), i.zZ(n.response), st.Support.amapRunTime && !st.Support.amapRunTime["style2.0-decoded"] && (st.Support.amapRunTime["style2.0-decoded"] = (new Date).getTime()), window.amap_sdk_log && window.amap_sdk_log("style-decoded:" + t + "-" + Date.now())) : 404 === n.status && n.abort() }, n.open("GET", t, !0), n.responseType = "arraybuffer", n.send() }, _n.prototype.zZ = function(t) { st.Support.amapRunTime && !st.Support.amapRunTime["style2.0-parseStylesFromText-End"] && (st.Support.amapRunTime["style2.0-parseStylesFromText-End"] = (new Date).getTime()); var i, t = st.CZ(t);
|
||
st.Support.amapRunTime && !st.Support.amapRunTime["style2.0-jsonParse-End"] && (st.Support.amapRunTime["style2.0-jsonParse-End"] = (new Date).getTime()), window["amapjsapi-style2-local"] ? this.Ze = window["amapjsapi-style2-local"] : this.Dpt ? (i = st.StyleParser.mergeLocalStyle(t), this.Ze = st.StyleParser.SZ(i)) : this.Ze = st.StyleParser.SZ(t), st.Support.amapRunTime && !st.Support.amapRunTime["style2.0-format-End"] && (st.Support.amapRunTime["style2.0-format-End"] = (new Date).getTime()), this.vn.jY(this.Ze), this.Ze.Rn = st._n.create("fcf9f2"), this.Ze.zn = 24, this.qe = !0, this.ON = JSON.stringify(this.Ze), this.wn(this.ON) }, _n);
|
||
|
||
function _n(t) { this._map = t, this.vz = null, this.qe = !1, this.Ne = st.Support.$e && !st.Support.Ue, this._tileUrl = window.__AMapStyleSource || st.Ge || AMap.getConfig().protocol + "://vdata.amap.com/style/2.0.1", this.Ze = {}, this.Ye = [], this.Ve = null, this.Dpt = !1, t && t.options.showOversea && (this.Dpt = t.options.showOversea), this.fn(this._tileUrl), this.vn = new st.StyleParser("fast" === t.bZ.MZ.drawMode) }
|
||
Yn = st.vG, st.Ei(Xn, Yn), Xn.prototype.getData = function(t, i) { for (var n = this, s = [], e = 0, r = t; e < r.length; e++) { for (var o = r[e], h = [], a = 0; a < o.length; a++) { var u = o.charCodeAt(a);
|
||
h.push(u) } var f = h.join("|");
|
||
s.push(f) } var c = this.Zu(s),
|
||
l = this._map.gn; switch (c.status) {
|
||
case st.qu.AllLoaded:
|
||
i(); break;
|
||
case st.qu.AllUnLoaded:
|
||
var d = this.Yu(i);
|
||
l && l.getSDFData(c.Vu, function(t, i) { n.Xu[d] = i = void 0 === i ? {} : i, n.Hu() }); break;
|
||
case st.qu.SomeLoading:
|
||
var v = this.Yu(i);
|
||
l && l.getSDFData(c.Vu, function(t, i) { n.Xu[v] = i = void 0 === i ? {} : i, n.Hu() }); break;
|
||
case st.qu.AllLoading:
|
||
var p = this.Yu(i);
|
||
this.Xu[p] = [], this.Hu() } }, Xn.prototype.Ju = function(t) { for (var i = {}, n = 0, s = t; n < s.length; n++) { var r = (e = s[n]).range,
|
||
o = e.info,
|
||
e = e.pos,
|
||
h = this.info;
|
||
h[r], h[r] = { info: ((h = {})[r] = o, h), pos: e }, this.range.push(r), i[r] = 1 } return i }, Xn.prototype.mz = function(t, i) { var n = this.info || []; return !(i = void 0 === i ? !1 : i) && n.hasOwnProperty(t) && (i = n[t]).pos && i.info[t] ? { key: t, index: st.cY.dynamic, char: i.info[t], pos: i.pos } : null }, Xn.prototype.measureText = function(t, i) { for (var n = st.PY, s = st.tc.ic, e = 0, r = this.info, o = i / this._size, h = this.nc, a = 0, u = t; a < u.length; a++) { var f = u[a],
|
||
c = void 0,
|
||
l = f;
|
||
(c = 13312 <= l && l <= 40959 ? n : h[l]) || r.hasOwnProperty(l) && (l = r[l].info[l]) && (this.nc[f] = c = l[4]), e += (c + s) * o } return e }, Xn.prototype.destroy = function() { this.range = [], this.info = {}, this.sc = [], this.Xu && (this.Xu = {}), this._c = [], this.nc = {}, this.xc = [], this.bc = {}, this.Xu = {} }, Xn.prototype._bindEvents = function() { this.dG.on("loadWordsByFront", this.pG.bind(this)) }, Xn.prototype.fc = function() { var t = st.tc.pc,
|
||
i = t[this.dc]; return this.dc = (this.dc + 1) % t.length, i }, Xn.prototype.vc = function(t) { void 0 === t && (t = {}); var i = (t = (Object.keys(t) || []).sort(function(t, i) { return t - i })).length; return 2 <= i ? t[0] + "-" + t[i - 1] : 1 === i ? t[0] : "" }, Xn.prototype.mc = function() {}, Xn.prototype.Yu = function(t, i) { void 0 === i && (i = {}); var n = this.yc += 1; return this.xc.push(n), this.bc && (this.bc[n] = t, this.bc[n] = { cb: t, params: i }), n }, Xn.prototype.Hu = function() { var t, i, n = this.xc[0];
|
||
n && (t = this.Xu[n]) && (this.xc.shift(), (i = this.bc[n]) ? i.cb(t) : console.error("sdf task error"), delete this.Xu[n], delete this.bc[n], this.Hu()) }, Xn.prototype.gc = function(t) { for (var i = this.range || [], n = this.info || {}, s = parseInt(t, 10), e = 0, r = i; e < r.length; e++) { var o = r[e]; if (o.indexOf("-") < 0) { if (s === +o && (n[o] && n[o].info || {})[t]) return !0 } else { var h = o.split("-"),
|
||
a = parseInt(h[0] || "", 10),
|
||
h = parseInt(h[1] || "", 10); if (a <= s && s <= h && (n[o] && n[o].info || {})[t]) return !0 } } return !1 }, Xn.prototype.pG = function(t) { var i = this,
|
||
n = t.mG,
|
||
s = t.cb,
|
||
t = this._map.bZ.MZ.lY.add("LangSDF", n);
|
||
this._map.bZ.MZ.yY.setNeedUpdate(!0), this._map.bZ.MZ.lY.on("task:" + t, function(t) { t = i._map.bZ.MZ.lY.add("SDFCombine", t.data), i._map.bZ.MZ.yY.setNeedUpdate(!0), i._map.bZ.MZ.lY.on("task:" + t, function(t) { i.Ju(t.data), s(t.data) }, i, !0) }, this, !0) }, Xn.prototype._G = function(t) { for (var i = "", n = 0, s = t.split("|"); n < s.length; n++) { var e = s[n];
|
||
i += String.fromCharCode(parseInt(e, 10)) } return i }, Xn.prototype.wc = function(t) { return -1 !== this._c.indexOf(t) }, Xn.prototype.Zu = function(t) { for (var i = [], n = (this.range, 0), s = 0, e = 0, r = t; e < r.length; e++) { var o = r[e];
|
||
this.gc(o) || (this.wc(o) ? s += 1 : (n += 1, i.push(o))) } return 0 === s && 0 === n ? { status: st.qu.AllLoaded, Vu: i } : 0 < n && 0 === s ? { status: st.qu.AllUnLoaded, Vu: i } : 0 === n && 0 < s ? { status: st.qu.AllLoading, Vu: i } : { status: st.qu.SomeLoading, Vu: i } }; var Yn, Zn = Xn;
|
||
|
||
function Xn(t, i) { var n = Yn.call(this) || this; return n._map = i, n.CLASS_NAME = "SDFManager", n.range = [], n.info = {}, n.sc = [], n.dc = 0, n._c = [], n._size = 24, n.nc = {}, n.xc = [], n.bc = {}, n.Xu = {}, n.yc = 1, n.ac = t, n.yG = new st.bG, n.dG = n._map.gn, n._bindEvents(), n }
|
||
Hn.prototype.play = function(t) { for (var i = t, n = Date.now(), s = this.result; 0 < i && this.offset < this.mG.length;) { var e = this.mG[this.offset],
|
||
r = {},
|
||
o = this._G(e),
|
||
h = st.bG.gG(e),
|
||
o = (h = this.lang.D$(h).Ce(o)).bitmap,
|
||
h = h.info;
|
||
r.range = e, r.info = h, r.data = o, s.push(r), this.offset++, i = t - (Date.now() - n) } return this.result }, Hn.prototype._G = function(t) { for (var i = "", n = 0, s = t.split("|"); n < s.length; n++) { var e = s[n];
|
||
i += String.fromCharCode(parseInt(e, 10)) } return i }, Object.defineProperty(Hn.prototype, "status", { get: function() { return this.offset >= this.mG.length ? st.vY.finish : st.vY.pause }, eb: !1, nb: !0 }); var Jn = Hn;
|
||
|
||
function Hn(t, i) { this.lang = t, this.mG = i, this.type = "LangSDFTask", this.offset = 0, this.result = [] } var Vn = { Fdt: ["vdata.amap.com", "pre-lbs-jsapi-vdata.amap.com", "c-webapi.amap.com"], Gdt: function(i) { return Vn.Fdt.some(function(t) { return -1 < i.indexOf(t) && -1 === i.indexOf("key=") }) }, getImgUrl: function(t, i) { var n, s; return Vn.Gdt(t) && i && (n = i.bmt, i = i.poiImgVersion, s = [], n && s.push("key=" + n), i && s.push("v=" + i), -1 < t.indexOf("?") ? t += "&" + s.join("&") : t += "?" + s.join("&")), t } },
|
||
qn = (Kn.prototype.loadImage = function(t, i, n) { var s = i.name,
|
||
e = (i.type, i.cb),
|
||
r = this.Fs[s = s || t];
|
||
r && r.status === st.uc.LOADED ? e(r, i) : r && r.status === st.uc.LOADING ? (this.Mc[s] || (this.Mc[s] = []), this.Mc[s].push({ cb: e, opts: i })) : t ? this.Rc(t, i, n) : e(null, i) }, Kn.prototype.TZ = function(t, i) { this.Rc(t.data, { name: t.hash, cb: i }) }, Kn.prototype.loadImages = function(t, i, n) { var s = t.length,
|
||
e = i.cb,
|
||
r = 0; if (t.length) { i.cb = function() {
|
||
(r += 1) === s && e() }; for (var o = 0, h = t; o < h.length; o++) { var a = h[o];
|
||
this.loadImage(a, i, n) } } else e() }, Kn.prototype.imageLoaded = function(t, i) { var n = i.data,
|
||
i = i.cb,
|
||
s = this.zc[i];
|
||
s && (s(n), delete this.zc[i]) }, Kn.prototype.addImageData = function(t, i) { i.img ? this.Fs[t] && this.Fs[t].src === i.img.src || (this.Fs[t] = i) : this.Fs[t] || (this.Fs[t] = i) }, Kn.prototype.getImage = function(t) { return this.Fs[t = void 0 === t ? "" : t] || {} }, Kn.prototype.destory = function() { this.Fs = {}, this.Mc && (this.Mc = {}), this.zc && (this.zc = {}) }, Kn.prototype.Rc = function(t, e, i) { var r = this,
|
||
n = e.name,
|
||
o = e.ext,
|
||
s = e.type,
|
||
h = void 0 === s ? "other" : s,
|
||
a = e.cb,
|
||
u = this.Fs,
|
||
f = new Image,
|
||
c = n || t;
|
||
u[c] = { type: h, img: f, ext: o, width: f.width, height: f.height, status: st.uc.LOADING }, f.crossOrigin = "anonymous", f.onload = function() { if (e.imageBitmap) createImageBitmap(f).then(function(t) { if (u[c] = { type: h, img: t, ext: o, width: t.width, height: t.height, status: st.uc.LOADED }, a(u[c], e), r.Mc[c])
|
||
for (var i = 0, n = r.Mc[c]; i < n.length; i++) { var s = n[i];
|
||
s.cb(u[c], s.opts) }
|
||
f.onload = null, f.onerror = null });
|
||
else { if (u[c] = { type: h, img: f, ext: o, width: f.width, height: f.height, status: st.uc.LOADED }, a(u[c], e), r.Mc[c])
|
||
for (var t = 0, i = r.Mc[c]; t < i.length; t++) { var n = i[t];
|
||
n.cb(u[c], n.opts) }
|
||
f.onload = null, f.onerror = null } }, f.onerror = function() { a(null, e), f.onload = null, f.onerror = null }, t = Vn.getImgUrl(t, i), f.src = t }, Kn.prototype.Sc = function(t) { var i, n = (n = (t = void 0 === t ? {} : t).img) && n.context ? (i = n.width || 0, n.height || 0) : (i = t.width || 0, t.height || 0); return [i, n] }, Kn);
|
||
|
||
function Kn() { this.Fs = {}, this.Cc = 16, this.zc = {}, this.Mc = {} } var Qn, $n = 0;
|
||
|
||
function ts(t) { var i = Qn.call(this, t = void 0 === t ? {} : t) || this; return i.CLASS_NAME = "AMap.VectorLayer", i.zF = "AMap.VectorLayer" + $n++, i.pC = !1, i.Qh = t.zIndex || 110, i }
|
||
Qn = s, st.Ei(ts, Qn), ts.prototype.add = function(t) { for (var i = 0, n = t = Array.isArray(t) ? t : [t]; i < n.length; i++) { var s = n[i];
|
||
this.source.add(s) } }, ts.prototype.remove = function(t) { for (var i = 0, n = t = Array.isArray(t) ? t : [t]; i < n.length; i++) { var s = n[i];
|
||
this.source.remove(s) } }, ts.prototype.getSourceConfig = function() { return { id: this.zF, type: "overlay", url: "" } }, ts.prototype.co = function() { return this.zF }, ts.prototype.getState = function() { return { visible: this.il, opacity: 1, rejectMapMask: this._rejectMapMask, depthTest: this.AF, ce: this.IF } }, ts.prototype.vi = function(t) { var i = this.source; if (i) return i.rr(t) || null }, ts.prototype.getAllOverlays = function(i) { return this.source.getAllOverlays().filter(function(t) { return !i || -1 < t.className.toLocaleLowerCase().indexOf(i) }) }, ts.prototype.destroy = function() { this.source && this.source.destroy && this.source.destroy(), this._container && delete this._container }, is = ts, st.Ei(ss, is), ss.prototype.has = function(t) { return !!this.source && -1 < this.source.getAllOverlays().indexOf(t) }, ss.prototype.clear = function() { var t;
|
||
this.source && (t = this.source.getAllOverlays(), this.remove(t.slice(0))) }, ss.prototype.setOptions = function(t) { if (this.source)
|
||
for (var i = 0, n = this.source.getAllOverlays(); i < n.length; i++) n[i].setOptions(t) }, ss.prototype.query = function(t) { if (this.source) return this.source.rr({ lnglat: t }) }, ss.prototype.getBounds = function() { if (this.source) { var t = this.getAllOverlays(); if (0 < t.length) { for (var i, n = void 0, s = 0; s < t.length; s++) n ? (i = t[s].getBounds()) && n.union(i) : n = (n = t[s].getBounds()) && n.clone(); return n } } }; var is, ns = ss;
|
||
|
||
function ss() { return null !== is && is.apply(this, arguments) || this }
|
||
rs.prototype.va = function(n, s) { var e = this,
|
||
r = (AMap.getConfig().vdataProxy && (n.url = AMap.getConfig().vdataProxy + "/" + n.url.split("/")[3] + "/" + n.url.split("/")[4]), n.url + ("?key=" + AMap.getConfig().key + "&flds=" + n.hH) + "&t=" + n.ya.join(";")),
|
||
o = (r = (r = r.replace("nebula/v3", "nebula/v2")).replace("oversea/v3", "oversea/v2"), r += "&p=3", window.amap_sdk_log && window.amap_sdk_log("data-request:" + r + "-" + Date.now()), st.Support.amapRunTime && !st.Support.amapRunTime.workerTime["data-request"] && (st.Support.amapRunTime.workerTime["data-request"] = Date.now()), new st.vH),
|
||
t = yi.Ajax(r, { responseType: "arraybuffer" }, function(t, i) { window.amap_sdk_log && window.amap_sdk_log("data-loaded:" + r + "-" + Date.now()), st.Support.amapRunTime && !st.Support.amapRunTime.workerTime["data-loaded"] && (st.Support.amapRunTime.workerTime["data-loaded"] = Date.now()), "complete" === t && (n.buffer = i.data, t = e.parent.jD().send("decodeNebulaSourceTile", n, function(t, i) { t && e.parent._map.emit("TileDecodeError", { type: "nebula", err: t }), i && i.nebulaDatas && (st.Support.amapRunTime && !st.Support.amapRunTime.workerTime["data-decode-begin"] && (st.Support.amapRunTime.workerTime["data-decode-begin"] = i.amapRunTime["data-decode-begin"]), st.Support.amapRunTime && !st.Support.amapRunTime.workerTime["data-decode-end"] && (st.Support.amapRunTime.workerTime["data-decode-end"] = i.amapRunTime["data-decode-end"]), st.Support.amapRunTime && !st.Support.amapRunTime.workerTime["style-parse-begin"] && (st.Support.amapRunTime.workerTime["style-parse-begin"] = i.amapRunTime["style-parse-begin"]), st.Support.amapRunTime && !st.Support.amapRunTime.workerTime["style-parse-end"] && (st.Support.amapRunTime.workerTime["style-parse-end"] = i.amapRunTime["data-decode-end"]), s(i.nebulaDatas)) }), o._H(t)) }); return o._H({ cancel: t.abort.bind(t) }), o }, rs.prototype.RD = function(n, s) { var e = this,
|
||
r = (t = (t = (t = n.url + ("?key=" + AMap.getConfig().key) + "&flds=poi,roadname&t=" + n.ya.join(";")).replace("nebula/v3", "nebula/v2")).replace("oversea/v3", "oversea/v2"), t += "&p=3", new st.vH),
|
||
t = yi.Ajax(t, { responseType: "arraybuffer" }, function(t, i) { "complete" === t && (n.buffer = i.data, t = e.parent.Uh.send("decodeNebulaSourceTileSdf", n, function(t, i) { s(t, i) }), r._H(t)) }); return r._H({ cancel: t.abort.bind(t) }), r }, rs.prototype.Rpt = function(n, s) { var e = this,
|
||
r = (AMap.getConfig().vdataProxy && (n.url = AMap.getConfig().vdataProxy + "/" + n.url.split("/")[3] + "/" + n.url.split("/")[4]), n.url + ("?key=" + AMap.getConfig().key + "&flds=" + n.hH) + "&t=" + n.ya.join(";")),
|
||
o = (r = (r = r.replace("nebula/v3", "nebula/v2")).replace("oversea/v3", "oversea/v2"), r += "&p=1", window.amap_sdk_log && window.amap_sdk_log("data-request:" + r + "-" + Date.now()), st.Support.amapRunTime && !st.Support.amapRunTime.workerTime["data-request"] && (st.Support.amapRunTime.workerTime["data-request"] = Date.now()), new st.vH),
|
||
t = yi.Ajax(r, { responseType: "arraybuffer" }, function(t, i) { window.amap_sdk_log && window.amap_sdk_log("data-loaded:" + r + "-" + Date.now()), st.Support.amapRunTime && !st.Support.amapRunTime.workerTime["data-loaded"] && (st.Support.amapRunTime.workerTime["data-loaded"] = Date.now()), "complete" === t && (n.buffer = i.data, t = e.parent.jD().send("decodeNebulaSourceTileOversea", n, function(t, i) { t && e.parent._map.emit("TileDecodeError", { type: "nebula", err: t }), i && i.nebulaDatas && (st.Support.amapRunTime && !st.Support.amapRunTime.workerTime["data-decode-begin"] && (st.Support.amapRunTime.workerTime["data-decode-begin"] = i.amapRunTime["data-decode-begin"]), st.Support.amapRunTime && !st.Support.amapRunTime.workerTime["data-decode-end"] && (st.Support.amapRunTime.workerTime["data-decode-end"] = i.amapRunTime["data-decode-end"]), st.Support.amapRunTime && !st.Support.amapRunTime.workerTime["style-parse-begin"] && (st.Support.amapRunTime.workerTime["style-parse-begin"] = i.amapRunTime["style-parse-begin"]), st.Support.amapRunTime && !st.Support.amapRunTime.workerTime["style-parse-end"] && (st.Support.amapRunTime.workerTime["style-parse-end"] = i.amapRunTime["data-decode-end"]), s(i.nebulaDatas)) }), o._H(t)) }); return o._H({ cancel: t.abort.bind(t) }), o }; var es = rs;
|
||
|
||
function rs(t) { this.parent = t } var os, hs = !1,
|
||
as = (os = st.Event, st.Ei(g, os), g.prototype.va = function(t, n, i) { var s, e = this,
|
||
r = this.jD(); return st.Support.LZ && r.UD ? (window.amap_sdk_log && (s = t.url + "t=" + t.ya.join(";"), window.amap_sdk_log("loadNebulaTile" + s + "-" + Date.now())), AMap.getConfig().vdataProxy && (t.url = AMap.getConfig().vdataProxy + "/" + t.url.split("/")[3] + "/" + t.url.split("/")[4]), r.send("loadNebulaSourceTile", t, function(t, i) { t && e._map.emit("TileDecodeError", { type: "nebula", err: t }), i && i.nebulaDatas && (st.Support.amapRunTime && (st.Support.amapRunTime.workerTime = i.amapRunTime), n(i.nebulaDatas)) })) : this.DZ.va(t, n) }, g.prototype.RD = function(t, i) { return AMap.getConfig().vdataProxy && (t.url = AMap.getConfig().vdataProxy + "/" + t.url.split("/")[3] + "/" + t.url.split("/")[4]), this.Uh.send("loadNebulaSourceTileSdf", t, i) }, g.prototype.Rpt = function(t, n, i) { var s, e = this,
|
||
r = this.jD(); return st.Support.LZ && r.UD ? (window.amap_sdk_log && (s = t.url + "t=" + t.ya.join(";"), window.amap_sdk_log("loadNebulaTile" + s + "-" + Date.now())), AMap.getConfig().vdataProxy && (t.url = AMap.getConfig().vdataProxy + "/" + t.url.split("/")[3] + "/" + t.url.split("/")[4]), r.send("loadNebulaSourceTileOversea", t, function(t, i) { t && e._map.emit("TileDecodeError", { type: "nebula", err: t }), i && i.nebulaDatas && (st.Support.amapRunTime && (st.Support.amapRunTime.workerTime = i.amapRunTime), n(i.nebulaDatas)) })) : this.DZ.Rpt(t, n) }, g.prototype.Bpt = function(t, i) { return AMap.getConfig().vdataProxy && (t.url = AMap.getConfig().vdataProxy + "/" + t.url.split("/")[3] + "/" + t.url.split("/")[4]), this.Uh.send("loadNebulaSourceTileSdfOversea", t, i) }, g.prototype.loadDistrictSourceTile = function(t, i, n) { t.request = this.Uh.send("loadDistrictSourceTile", i, function(t, i) { i && n(i) }) }, g.prototype.gX = function(t, i, n) { t.request = this.Uh.send("loadMapboxVTSourceTile", i, function(t, i) { i && n(i) }) }, g.prototype.kX = function(t, i, n, s) { t.request = this.Uh.send("reBufferMapboxVTSource", { MX: i, styles: n }, function(t, i) { i && s(i) }) }, g.prototype.aG = function(t, i, n) { var s = this;
|
||
t.request = this.Uh.send("loadMapboxSourceTile", i, function(t, i) { t && s._map.emit("TileDecodeError", { type: "mapbox", err: t }), i && n(i) }) }, g.prototype._C = function(t) { this.Uh.send("processLabels", { id: t }) }, g.prototype.deleteTileStaticSDF = function(t) { this.Uh.send("deleteTileStaticSDF", t) }, g.prototype.Ha = function(i) { this.Uh.send("updateParams", i), st.forEach(this.ED, function(t) { t.send("updateParams", i) }) }, g.prototype.Ka = function(i) { this.Uh.send("updateMapStyle", i), st.forEach(this.ED, function(t) { t.send("updateMapStyle", i) }) }, g.prototype.bn = function(t, i) { this.Uh.send("updateUserStyle", { Kd: t }, i) }, g.prototype.Ja = function(i) { this.Uh.send("sendHttp", { protocol: i }), st.forEach(this.ED, function(t) { t.send("sendHttp", { protocol: i }) }) }, g.prototype.innerLabelsLoadData = function(t, i) { this.Uh.send("innerLabelsLoadData", t, i) }, g.prototype.dynamicTextSDFInfoLoaded = function(t, i) { this.emit("dynamicTextSDFInfoLoaded", { data: i }) }, g.prototype.dynamicTextVerticeLoaded = function(t, i) { this.emit("dynamicTextVerticeLoaded", i) }, g.prototype.dynamicTextVerticeLoadedByTile = function(t, i) { this.emit("dynamicTextVerticeLoadedByTile", i) }, g.prototype.iconImageLoaded = function(t, i) { this.emit("iconImageLoaded", i) }, g.prototype.getSDFData = function(t, i) { this.Uh.send("getSDFData", t, function(t) { i && i(t) }) }, g.prototype.loadWordsByFront = function(t, i, n) { this.emit("loadWordsByFront", { mG: i, cb: n }) }, g.prototype.QB = function(t, i) { this.jD().send("setPathWebgl", t, i) }, g.prototype.JB = function(t, i) { this.jD().send("sendIndoorRequest", t, i) }, g.prototype.destroy = function() { this.jD().send("destroy", "destroy"), this.Wh && this.Wh.terminate(); for (var t = 0, i = this.HD; t < i.length; t++) { var n = i[t];
|
||
n && n.terminate() }
|
||
this.DZ && delete this.DZ, this.Wh && delete this.Wh }, g.prototype.request = function(t, n, s) { window.amap_sdk_log && window.amap_sdk_log("data-request:" + n + "-" + Date.now()); var e = new XMLHttpRequest; return e.onreadystatechange = function() { var t, i;
|
||
4 === e.readyState && 200 === e.status && (window.amap_sdk_log && window.amap_sdk_log("data-loaded:" + n + "-" + Date.now()), t = e.getResponseHeader("content-type"), i = e.response, "application/x-protobuf" === t ? s(null, i) : hs || (hs = !0, console.log("<AMap JSAPI> KEY异常。"))) }, e.onerror = function(t) { s("error") }, e.open("GET", n, !0), e.responseType = "arraybuffer", e.send(), { cancel: function() { e.abort() } } }, g.prototype.jD = function() { var t = this.GD % this.ND; return this.GD = 1 + t, this.ED[t] }, g.prototype.updateDataVersion = function(t, i) { this.emit("updateDataVersion", { version: i }) }, g.prototype.tv = function() { var t = this;
|
||
this._map.on("movestart", function() { t.iv = !0, t.ev() }), this._map.on("moveend", function() { t.iv = !1, t.ev() }), this._map.on("dragstart", function() { t._dragging = !0, t.ev() }), this._map.on("dragend", function() { t._dragging = !1, t.ev() }), this._map.on("zoomstart", function() { t.lt = !0, t.ev() }), this._map.on("zoomend", function() { t.lt = !1, t.ev() }) }, g.prototype.ev = function() { var i = !1;
|
||
(this._dragging || this.lt || this.iv) && (i = !0), this.nv !== i && (this.Uh.send("setMainThreadBusy", i), st.forEach(this.ED, function(t) { t.send("setMainThreadBusy", i) })), this.nv = i }, g.prototype.WD = function() { for (var t = 0; t < this.ND; t++)
|
||
if (!this.ED[t].UD) return !1;
|
||
return !0 }, g);
|
||
|
||
function g(t) { var i = os.call(this) || this; if (i._map = t, i.dE = !1, i._dragging = !1, i.lt = !1, i.nv = !1, i.iv = !1, i.GD = 0, i.ND = 1, i.HD = [], i.ED = [], i.VD = [], i.ZD = [], i.YD = 0, i.DZ = new es(i), i.pE = function() { window.amap_sdk_log && window.amap_sdk_log("initWorker:" + Date.now()), i.YD += 1, i.YD === i.ED.length + 1 && (i.dE = !0, i._map.setNeedUpdate(!0)) }, window._PreLoadedWorker) { var n = window._PreLoadedWorker,
|
||
s = new st.Bh(n, i, "AMap.nebula");
|
||
i.HD.push(n), i.ED.push(s), s.UD = !0, i.pE() } else { for (var e = 0; e < i.ND; e++) n = new Worker(AMap.getConfig().workerUrl), s = new st.Bh(n, i, "AMap.nebula"), i.HD.push(n), i.ED.push(s); for (var r = 0, o = i.ED; r < o.length; r++) ! function(t) { t.send("initCryptWorker", !0, function() { t.UD = !0, i.pE() }) }(s = o[r]) } return i.Wh = new Worker(AMap.getConfig().workerUrl), i.Uh = new st.Bh(i.Wh, i, "AMap.SDF"), i.Uh.send("initCryptWorker", !0, function() { i.Uh.UD = !0, i.pE() }), i.tv(), i }
|
||
fs.prototype.ov = function(t) { var i = t.gl; if (this.buffer || (this.buffer = new st.yp(t, new Uint16Array(0), 8)), this.texture || (this.texture = t.createTexture({ height: 1024, width: 1024, data: null }, { Yi: !0 }), this.texture.bind(i.CLAMP_TO_EDGE, i.NEAREST, i.LINEAR)), this.av || (this.av = t.createFramebuffer(1024, 1024)), !this.Pc) { for (var n = new Uint16Array(192), s = 0; s < 32; s++) { var e = 6 * s,
|
||
r = 4 * s;
|
||
n[e] = r, n[1 + e] = 1 + r, n[2 + e] = 2 + r, n[3 + e] = r, n[4 + e] = 2 + r, n[5 + e] = 3 + r }
|
||
this.Pc = t.ve(n) } }, fs.prototype.sv = function(t) { for (var i = 0, n = t; i < n.length; i++) { var s = n[i];
|
||
this.rv[s.hv] = s.name, this.images[s.name] = s.img, this.lv.push(s.name), this.jG[s.name] = { width: s.width, height: s.height } } }, fs.prototype.update = function(t) { this.ov(t.context), this.uv(t, this.lv), this.lv = [] }, fs.prototype.uv = function(t, i) { if (0 !== i.length) { for (var n = t.context, s = n.gl, e = 0, r = i; e < r.length; e++) { var o, h = r[e];
|
||
this.De[h] || ((o = n.createTexture(this.images[h], { Yi: !0 })).bind(s.CLAMP_TO_EDGE, s.LINEAR, s.LINEAR), this.De[h] = o) } for (var a = [], u = 0, f = this.rv.length; u < f; u++) { var c = this.rv[u],
|
||
d = void 0 === (l = (c = this.jG[c] || {}).width) ? 512 : l,
|
||
v = void 0 === (l = c.height) ? 1024 : l,
|
||
c = 4 * u * 4,
|
||
l = this.cv(u);
|
||
a[c] = 0, a[1 + c] = 0, a[2 + c] = l[0], a[3 + c] = l[1], a[4 + c] = 0, a[5 + c] = v, a[6 + c] = l[0], a[7 + c] = l[1] + v, a[8 + c] = d, a[9 + c] = v, a[10 + c] = l[0] + d, a[11 + c] = l[1] + v, a[12 + c] = d, a[13 + c] = 0, a[14 + c] = l[0] + d, a[15 + c] = l[1] } var p = n.fe(new Uint16Array(a), 8),
|
||
m = t.Hn(),
|
||
y = (this.fv(), this.av.Wi.set(this.texture.texture), this.getSize()),
|
||
i = (n.bindFramebuffer.set(this.av.framebuffer), n.be.current); for (n.be.set([0, 0, y[0], y[1]]), u = 0, f = this.rv.length; u < f; u++) { var b = this.rv[u],
|
||
g = this.jG[b] || {},
|
||
M = g.width,
|
||
d = void 0 === M ? 512 : M,
|
||
v = void 0 === (M = g.height) ? 1024 : M;
|
||
b && m.Ce({ u_sourceTexture: this.De[b], u_sourceTextureSize: [d, v], u_targetTextureSize: y }, { a_sourceTexturePos: { buffer: p, type: "vec2", Re: 8, offset: 0 }, a_targetTexturePos: { buffer: p, type: "vec2", Re: 8, offset: 4 } }, 6, this.Pc, void 0, void 0, void 0, void 0, void 0, 6 * u) }
|
||
n.bindTexture.set(null), this.texture.bind(s.CLAMP_TO_EDGE, s.NEAREST, s.LINEAR), n.be.set(i), n.bindFramebuffer.set(null) } }, fs.prototype.getSize = function() { return [1024, 1024 * this.rv.length] }, fs.prototype.destroy = function() { this.buffer && (this.buffer.destroy(), delete this.buffer), this.texture && (this.texture.destroy(), delete this.texture); for (var t = 0, i = this.De; t < i.length; t++) i[t].destroy();
|
||
this.av && (this.av.destroy(), delete this.av), this.Pc && (this.Pc.context.deleteBuffer(this.Pc), delete this.Pc), this.images = {}, this.lv = [], this.rv = [], this.De = {} }, fs.prototype.fv = function() { var t = this.getSize();
|
||
this.texture.update({ width: t[0], height: t[1], data: null }, { resize: !0 }) }, fs.prototype.cv = function(t) { return [0, 1024 * t] }; var us = fs;
|
||
|
||
function fs() { this.pv = 0, this.lv = [], this.rv = [], this.images = {}, this.jG = {}, this.De = {}, this.dv = [256, 256] } var cs, ls = "labelsLayer",
|
||
vs = { visible: !0, zIndex: 120, opacity: 1, collision: !0, animation: !0, allowCollision: !1, zooms: st.zoomRange, VT: !1 };
|
||
|
||
function ps(t) { var i = cs.call(this, t = void 0 === t ? {} : t) || this; return i.CLASS_NAME = "AMap.LabelsLayer", i._opts = { id: ls, type: ls, opacity: 1, visible: 1 }, i._opts = st.assign({}, vs, t), i.xt = i._opts.zooms, i.Qh = void 0 === t.zIndex ? 120 : t.zIndex, i.il = void 0 === t.visible || t.visible, i.tl = void 0 === t.opacity ? 1 : t.opacity, i }
|
||
cs = s, st.Ei(ps, cs), ps.prototype.getSourceConfig = function() { return { id: this.hS, type: ls } }, ps.prototype.getState = function() { return cs.prototype.getLayerConfig.call(this) }, ps.prototype.co = function() { return this.hS }, ps.prototype.vi = function(t) { var i = this.fz; return (i = i && i.vi(t, this.hS) || "") ? this.getSource().Ds(i) : null }, ps.prototype.Do = function(t) { return t = cs.prototype.Do.call(this, t), this.map && this.uz(this.map), t }, ps.prototype.v$ = function() { this.fz && this.fz.remove(this) }, ps.prototype.destroy = function() { this.Jh && this.Jh.destroy && (this.Jh.destroy(), delete this.Jh) }, ps.prototype.IL = function(t) { var i = this.fz,
|
||
n = this.source; return !!(t && i && n && (i = i.$f || {}, n = n.zL(t))) && !!i[n] }, ps.prototype.uz = function(t) {
|
||
(this.fz = t.fS()).add(this) }, ms = ps, st.Ei(M, ms), M.prototype.getCollision = function() { return this._opts.collision }, M.prototype.setCollision = function(t) { this._opts.collision = t = void 0 === t || t, this.to({ vv: !1 }) }, M.prototype.getAllowCollision = function() { return this._opts.allowCollision }, M.prototype.setAllowCollision = function(t) { this._opts.allowCollision = t = void 0 === t || t, this.to({ vv: !1 }) }, M.prototype.getOpacity = function() { return this._opts.opacity }, M.prototype.setOpacity = function(t) { void 0 !== t && (this._opts.opacity = t, this.tl = t, this.to({ vv: !0 })) }, M.prototype.getZooms = function() { return this._opts.zooms }, M.prototype.setZooms = function(t) { void 0 !== t && (this._opts.zooms = t, this.xt = t, this.to({ vv: !0 })) }, M.prototype.getzIndex = function() { return this._opts.zIndex }, M.prototype.setzIndex = function(t) { void 0 !== t && (this._opts.zIndex = t, this.Qh = t, this.to({ vv: !0 })) }, M.prototype.add = function(t) { Array.isArray(t) || (t = [t]), this._add(t), (t = this.getSource()) && t.add(this.mv, this._opts, this.to.bind(this)) }, M.prototype.remove = function(t) { Array.isArray(t) || (t = [t]), this._remove(t), (t = this.getSource()) && t.remove(this.mv, this._opts, this.to.bind(this)) }, M.prototype.clear = function() { this.mv = {}; var t = this.getSource();
|
||
t && (t.clear(), this.to({ vv: !1 })) }, M.prototype.show = function() { ms.prototype.show.call(this) }, M.prototype.hide = function() { ms.prototype.hide.call(this) }, M.prototype.getAllOverlays = function() { var t, i, n = this.mv,
|
||
s = []; for (t in n) n.hasOwnProperty(t) && (i = n[t]) && s.push(i); return s }, M.prototype.getState = function() { var t = this._opts; return { zIndex: this.Qh, zooms: this.xt, visible: this.il, opacity: this.tl, collision: t.collision, animation: t.animation, rejectMapMask: this._rejectMapMask, depthTest: this.AF, ce: this.IF } }, M.prototype.setTop = function(t, i) { var n = this.Kl;
|
||
t && (i ? (n && n.hS !== t.hS && n.setTop(!1), this.Kl = t) : this.Kl = null) }, M.prototype.Kh = function(t) { ms.prototype.Kh.call(this, t); var i = this.mv;
|
||
Object.keys(i).length && t.add(i, this._opts, this.to.bind(this, { vv: !1 })) }, M.prototype.to = function(t, i) { var n = this,
|
||
t = (t = void 0 === t ? {} : t).vv;
|
||
this.map && (void 0 === t || t ? (t = this.getSource()) && t.update(this._opts, function() { i && (i(), AMap.Util.requestAnimFrame(function() { n.emit("complete") })), n.map && n.map.setNeedUpdate(!0) }) : this.map.setNeedUpdate(!0)) }, M.prototype.onAdd = function() { var t, i = this.mv; for (t in i) i.hasOwnProperty(t) && i[t].Cs(this) }, M.prototype.v$ = function() { ms.prototype.v$.call(this); var t, i = this.mv; for (t in i) i.hasOwnProperty(t) && i[t].Cs(null) }, M.prototype._add = function(t) { for (var i = 0, n = t; i < n.length; i++) { var s = n[i];
|
||
(this.mv[s.hS] = s).Cs(this) } }, M.prototype._remove = function(t) { for (var i = 0, n = t; i < n.length; i++) { var s = n[i];
|
||
delete this.mv[s.hS], s.Cs(null) } }; var ms, ys = st.dZ([st.pZ("LabelsLayer")], M);
|
||
|
||
function M(t) { return (t = ms.call(this, t = void 0 === t ? {} : t) || this).mv = {}, t }
|
||
gs.prototype.addImage = function(e, r) { var o = this;
|
||
this.getImage(e) ? console.log("there is already a image named " + e) : (this.zH.SH(e, function(t, i) { r.cb && r.cb(t, i) }), this.zH.has(e) || this.zH.nS(e, function(s) { o.map.z_.loadImage(r.url, { name: e, type: "userImage", cb: function(t) { var i, n;
|
||
t && t.img ? (n = o.map.getContext()) && (t = n.createTexture(t.img, { Zi: !0 }), i = r.filter ? n.gl[r.filter] : n.gl.LINEAR, n = r.wrap ? n.gl[r.wrap] : n.gl.CLAMP_TO_EDGE, t.bind(n, i, i), o.De[e] = t, s(null, t)) : s(new Error("no img")) } }) })) }, gs.prototype.addImageBitmap = function(e, r) { var o = this,
|
||
h = r.url;
|
||
this.getImage(h) ? console.log("there is already a image named " + h) : (this.zH.SH(h, function(t, i) { r.cb && r.cb(t, i) }), this.zH.has(h) || this.zH.nS(h, function(t) { var i = { img: e, startX: 0, startY: 0, status: st.uc.LOADED, height: e.height, width: e.width, type: "userImage" };
|
||
o.map.z_.addImageData(h, i); var i = (n = o.map.getContext()).createTexture(i.img, { Zi: !0 }),
|
||
s = r.filter ? n.gl[r.filter] : n.gl.LINEAR,
|
||
n = r.wrap ? n.gl[r.wrap] : n.gl.CLAMP_TO_EDGE;
|
||
i.bind(n, s, s), t(null, o.De[h] = i) })) }, gs.prototype.getImage = function(t) { return this.De[t] }, gs.prototype.RH = function(t) { var i = this.De[t];
|
||
i && (delete this.De[t], i.destroy()) }, gs.prototype.MH = function(t) { return this.zH.has(t) }, gs.prototype.L_ = function() { var t = k.create("canvas", null),
|
||
i = (t.getContext || console.error("createArrowTexture error"), t.height = 64, t.width = 64, t.getContext("2d"));
|
||
i ? (i.fillStyle = "white", i.beginPath(), i.moveTo(8, 56), i.lineTo(32, 36), i.lineTo(58, 56), i.lineTo(58, 36), i.lineTo(32, 14), i.lineTo(8, 36), i.fill(), (t = (i = this.map.getContext()).createTexture(t, { Zi: !0 })).bind(i.gl.CLAMP_TO_EDGE, i.gl.LINEAR, i.gl.LINEAR), this.De.AMapArrow = t) : console.error("createArrowTexture error") }, gs.prototype.AH = function() { this.addImage("emptyTexture", { url: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" }) }; var bs = gs;
|
||
|
||
function gs(t) { this.map = t, this.De = {}, this.zH = new st.IH, this.L_(), this.AH() }
|
||
Ms = s, st.Ei(ks, Ms), ks.prototype.getSourceConfig = function() { return { id: this._id, type: "sky" } }, ks.prototype.destroy = function() { this._id && (this._id = "") }, ks.prototype.co = function() { return this._id }, ks.prototype.getState = function() { return { visible: this.il, opacity: 1, skyColor: this.$C, layer: this, rejectMapMask: this._rejectMapMask, depthTest: this.AF, ce: this.IF } }, ks.prototype.lo = function() { return !0 }; var Ms, ws = ks;
|
||
|
||
function ks(t) { var i = Ms.call(this, t = void 0 === t ? { visible: !0 } : t) || this; return i.CLASS_NAME = "AMap.SkyLayer", i._id = "sky_" + st.Util.uuid(), i.il = void 0 === t.visible || t.visible, i.$C = t.skyColor, i.$C = i.$C && st.Util.color2RgbaArray(i.$C), i.Qh = t.zIndex || 500, i._rejectMapMask = !0, i }
|
||
w.prototype.cS = function(t, i, n) { for (var s = (this.wf = i).viewState, e = s.projectionId, r = s.viewMode, o = (s.zoom, this.If = st.V[e], this._viewMode = r, this.reset(), this.Of(), this._map), h = {}, a = 0, u = this.Tw(); a < u.length; a++) { var f = u[a],
|
||
c = f.getLayerConfig(),
|
||
l = f._opts,
|
||
d = f.hS,
|
||
v = f.getRender(); if (v) { var p, m = n[d]; if (m)
|
||
for (var y in m) m.hasOwnProperty(y) && (p = m[y], "AMap.Inner.LabelsLayer" === f.CLASS_NAME && "other" === y || "AMap.LabelsLayer" === f.CLASS_NAME && "tile" === y || p && (y = v.Hz(t, i, this, p, o, c)) && (h[d] = y, (l.collision || l.allowCollision) && (this.YL = !1), l.allowCollision) && (this.UT = !1)) } }
|
||
this.Ps = h, e = (s = this._map.getMapState()).rotating, r = s.zooming, s = s.panning, r || s || this.reset(), this.YL && this.UT && (e || r || s) || this.Ff(), s = void 0 === (r = (e = this.Ef()).Uf) ? {} : r, r = e.$f, this.$f = void 0 === r ? {} : r, this.Uf = s }, w.prototype.uS = function() { return this.LC }, w.prototype.add = function(t) { this.LC[t.hS] = t }, w.prototype.remove = function(t) { t && delete this.LC[t.hS] }, w.prototype.destroy = function() { this.LC && (this.LC = {}), this.Uf && (this.Uf = {}, delete this.Uf), this.$f && (this.$f = {}, delete this.$f) }, w.prototype.gmt = function(t) { if (t && 0 < t.length) { this.Uf; for (var i = [], n = 0, s = t; n < s.length; n++) { var e = s[n].id,
|
||
r = this.DC(e);
|
||
r && r.Nf && (r = r.Nf[e]) && r.opts && (r && r.data.extData, r) && r.opts && r.opts.zIndex && i.push(r) } for (var o = -1 / 0, h = null, a = 0, u = i; a < u.length; a++) { var f = u[a],
|
||
c = f.opts.zIndex;
|
||
o < c && (o = c, h = f) } return h } }, w.prototype.vi = function(t, i, n) { if ((void 0 === n && (n = !1), this._map) && ((this._map.getStatus().pickWhenMoving || !this._map.TL()) && t && this._p)) { var s = this._map.getMapsContainer(),
|
||
t = (s = k.mousePos(s, t, this._map))[0],
|
||
s = s[1],
|
||
e = this._p.search({ ja: t - 1, Fa: s - 1, Oa: t + 1, Ea: s + 1 }); if (e.length)
|
||
if (e = this.NL(e, i), i = this.gmt(e)) { if (o = (r = i) && r.data.extData || {}, n) return [o.Lp, o.Ap]; if ("poi" === o.type) return { type: o.type, id: o.id, lnglat: r.data.position, name: r.data.name }; if (!o.type) return o.id } else { if ((i = this.sP(e)) && i.path && 0 < i.path.length && (e = i.path, !this.ss([t, s], e))) return null; if (!i) return null; if (t = i.id, (s = this.DC(t)) && s.Nf) { var r, o = (r = s.Nf[t]) && r.data.extData || {}; if (this.Uf[t]) { if (n) return [o.Lp, o.Ap]; if ("poi" === o.type) return { type: o.type, id: o.id, lnglat: r.data.position, name: r.data.name }; if (!o.type) return o.id } } } } return null }, w.prototype.search = function(t) { for (var i = [], n = 0, s = this._p.search(t); n < s.length; n++) { var e, r = s[n],
|
||
o = r.id;
|
||
(e = this.FC(o)) && "AMap.Inner.LabelsLayer" === e.CLASS_NAME && this.TC(o) && i.push(r) } return i }, w.prototype.reset = function() { this.Uf = {}, this.$f = {} }, w.prototype.tC = function() { return this._p }, w.prototype.iC = function(t, i, n, s) { var e = void 0 === (e = (t = void 0 === t ? {} : t).x) ? 0 : e,
|
||
r = void 0 === (r = t.y) ? 0 : r,
|
||
o = void 0 === (o = t.width) ? 0 : o,
|
||
t = void 0 === (t = t.height) ? 0 : t,
|
||
h = (i = void 0 === i ? {} : i).id,
|
||
a = i.rank,
|
||
u = i.padding,
|
||
f = void 0 === (f = i.type) ? "" : f,
|
||
i = i.name,
|
||
c = st.tc._d,
|
||
u = u || c || 0; return n && 0 < n.length && void 0 !== s && 0 !== s ? (n = (c = this.Ddt(n[0], n[1], { ja: e - u, Fa: r - u, Oa: e + o + u, Ea: r + t + u }, s)) && c.Ro || [], s = c && c.path || [], { id: h, name: i, type: f, rank: a || 1, ja: n[0], Fa: n[1], Oa: n[2], Ea: n[3], path: s }) : { id: h, name: i, type: f, rank: a || 1, ja: e - u, Fa: r - u, Oa: e + o + u, Ea: r + t + u } }, w.prototype.NL = function(t, i) { for (var n = [], s = 0, e = t = void 0 === t ? [] : t; s < e.length; s++) { var r, o = e[s];
|
||
o.id && (r = this.FC(o.id)) && r.hS === i && n.push(o) } return n }, w.prototype.sP = function(t) { for (var i = this.Uf || {}, n = [], s = 0, e = t; s < e.length; s++) { var r = e[s];
|
||
i[r.id] && n.push(r) } for (var o = -1 / 0, h = null, a = 0, u = n; a < u.length; a++) { var f = u[a],
|
||
c = f.rank;
|
||
o < c && (o = c, h = f) } return h }, w.prototype.Tw = function() { var t, i, n = this.LC,
|
||
s = []; for (t in n) n.hasOwnProperty(t) && (i = n[t], s.push(i)); return s.sort(function(t, i) { return i.Qh - t.Qh }), s }, w.prototype.Rdt = function(t, i, n) { var s = n.x,
|
||
n = n.y,
|
||
e = t[0],
|
||
t = t[1],
|
||
r = s + (e - s) * Math.cos(i * Math.PI / 180) - (t - n) * Math.sin(i * Math.PI / 180),
|
||
e = n + (e - s) * Math.sin(i * Math.PI / 180) + (t - n) * Math.cos(i * Math.PI / 180); return [this.Pdt(r, 2), this.Pdt(e, 2)] }, w.prototype.Pdt = function(t, i) { return Math.round(t * Math.pow(10, i)) / Math.pow(10, i) }, w.prototype.ss = function(t, i, n) { for (var s = t[0], e = t[1], r = !1, o = i.length, h = 0, a = o - 1; h < o; a = h, h += 1) { var u = !1,
|
||
f = i[h][0],
|
||
c = i[h][1],
|
||
l = i[a][0],
|
||
d = i[a][1]; if (f === s && c === e || l === s && d === e) return !!n; if (c < e == e <= d) { if (s === (l = (l - f) * (e - c) / (d - c) + f)) return !!n;
|
||
u = s < l }
|
||
u && (r = !r) } return r }, w.prototype.Ddt = function(t, i, n, s) { var e, r, t = { x: t, y: i }; return void 0 !== s && 0 !== s ? (i = [n.ja, n.Fa], s = this.Rdt(i, i = -s, t), e = [n.Oa, n.Fa], e = this.Rdt(e, i, t), r = [n.Oa, n.Ea], r = this.Rdt(r, i, t), n = [n.ja, n.Ea], s = [s, e, r, this.Rdt(n, i, t)], { Ro: jt.Qa(s), path: s }) : null }, w.prototype.rd = function(t, i) { var n = i.anchorOffset,
|
||
s = (i = void 0 === (i = i.size) ? [0, 0] : i)[0],
|
||
i = i[1]; return { x: (t = st.vector.add(t, n))[0], y: t[1], width: s, height: i } }, w.prototype.hd = function(t, i, n, s) { var e = i.offsetX,
|
||
r = i.offsetY,
|
||
o = i.w,
|
||
i = i.h; return { x: t[0] + (void 0 === e ? 0 : e) * n, y: t[1] + (void 0 === r ? 0 : r) * n, width: (void 0 === o ? 0 : o) * n, height: (void 0 === i ? 0 : i) * n } }, w.prototype.Ff = function() { var t = this.Ps,
|
||
i = this.wf && this.wf.viewState,
|
||
n = this.ad,
|
||
s = this.$f; if (i) { var e, r = { viewState: i, size: this.wf.size, transform: this.If, view: this._view, viewMode: this._viewMode, positionType: "relative" },
|
||
o = i.zoom; for (e in t)
|
||
if (t.hasOwnProperty(e) && t[e]) { var h = t[e],
|
||
a = h.coords,
|
||
u = h.style,
|
||
f = h.Nf; if (h = this.LC[e]) { var c, l, d, v, p, m, y, b, g, M, w = h.getRender().Jz(),
|
||
k = w.Sa,
|
||
x = h.Qh; for (c in a) a.hasOwnProperty(c) && (g = (M = a[c]).origin, m = M.icon, M = M.padding, (l = u[c]).forceShow, this.TC(c) || (s[c] = 1), s[c] || (d = (b = f[c]).data && b.data.rotation || 0, v = (y = b.data.extData || {}).Sa || k || [0, 0], v = (g = st.vector.add(g, [v[0], v[1], 0]))[0], p = g[1], g = g[2], r.centerCoord = w.centerCoord, v = st.LabelsRenderUtil.r0(v, p, g, o, r), p = { id: c, rank: st.LabelsRenderUtil.getRank(b, { forceShow: l.forceShow, _z: x }), name: b.data.name, type: y.type || "" }, g = this.rd(v, m), y = this.PC(l) || st.zoomRange, m = st.Util.dS(o, y), l.showIcon && m && g.width && g.height && (y = this.iC(g, p, v, d), n.push(y)), m = 1, b.data.extData.Lp && b.data.extData.Ap && (m = (g = this._map.mapStyle.dn(b.data.extData.Lp, b.data.extData.Ap, i.optimalZoom)) && l.text ? g.fontSize / l.text.style.fontSize : 1), y = this.hd(v, M, m), b = this.OC(l) || [2, 20], g = st.Util.dS(o, b), l.showText && g && y.width && y.height && (M = this.iC(y, p, v, d), n.push(M)))) } }
|
||
this.ld(n) } }, w.prototype.Ef = function() { var t = {},
|
||
i = this.$f; if (!this.wf) return {}; var n = (this.wf && this.wf.viewState).zoom,
|
||
s = this.Ps,
|
||
e = {}; if (this.YL) { for (var r in s)
|
||
if (s.hasOwnProperty(r) && s[r]) { var o, h = s[r],
|
||
a = h.Nf,
|
||
u = void 0 === a ? {} : a; for (o in h.coords, h.style, u) u.hasOwnProperty(o) && (t[o] = 1) } } else { for (var r in s)
|
||
if (s.hasOwnProperty(r) && s[r]) { var f, c, l = s[r],
|
||
d = l.Nf,
|
||
v = void 0 === d ? {} : d;
|
||
l.coords; var P = void 0 === (d = l.style) ? {} : d,
|
||
B = (k = this.LC[r]).Qh; for (f in v) v.hasOwnProperty(f) && (c = P[f], e[c = st.LabelsRenderUtil.getRank(v[f], { forceShow: c.forceShow, _z: B })] || (e[c] = {}), e[c][f] = v[f]) }
|
||
for (var p, m = st.labelsUtil.rank(Object.keys(e)), F = m.length, y = this.wf, b = { viewState: y.viewState, size: y.size, transform: this.If, view: this._view, viewMode: this._viewMode, positionType: "relative" }, g = F - 1; 0 <= g; g--)
|
||
for (var M, W = e[m[g]], w = (M = Object.keys(W)).length - 1; 0 <= w; w--) { var k, x = M[w]; if (!i[x] && (k = this.FC(x)))
|
||
if (!(A = k._opts || {}).collision && this.UT || A.VT) t[x] = 1;
|
||
else { var A, z = (A = k.getRender().Jz()).Sa,
|
||
C = (R = this.DC(x)).style,
|
||
T = R.coords; if ((R = R.Nf)[x].data && R[x].data.rotation, (C = C[x]) && C.forceShow) t[x] = 1;
|
||
else { if (O = (T = T[x]).icon || {}, p = T.padding || {}, T = T.origin || {}, z = ((R = R[x]).data.extData || {}).Sa || z || [0, 0], z = (T = st.vector.add(T, [z[0], z[1], 0]))[0], I = T[1], T = T[2], b.centerCoord = A.centerCoord, A = st.LabelsRenderUtil.r0(z, I, T, n, b), (z = O.size)[0] && z[1])
|
||
for (var S, I = this.rd(A, O), T = this.iC(I), N = (S = this._p.search(T)).length, L = 0; L < N; L++) { var D = S[L];
|
||
D.id === x ? t[D.id] = 1 : this.BC(x, D.id) && (i[D.id] = 1) }
|
||
var z = this.wf && this.wf.viewState,
|
||
O = 1; if (R.data.extData.Lp && R.data.extData.Ap && (O = (I = this._map.mapStyle.dn(R.data.extData.Lp, R.data.extData.Ap, z.optimalZoom)) && C.text ? I.fontSize / C.text.style.fontSize : 1), (T = this.hd(A, p, O)).width && T.height)
|
||
for (var E, R = this.iC(T), G = (E = this._p.search(R)).length, L = 0; L < G; L++) { var j = E[L];
|
||
j.id === x ? t[j.id] = 1 : this.BC(x, j.id) && (i[j.id] = 1) } } } } } return { Uf: t, $f: i } }, w.prototype.ld = function(t) { this._p && (this._p.clear(), this._p.load(t)) }, w.prototype.Of = function() { this._p && (this._p.clear(), this.ad = []) }, w.prototype.DC = function(t) { var i, n, s = this.Ps; for (n in s)
|
||
if (s.hasOwnProperty(n)) { var e = s[n]; if (e && e.Nf && e.Nf[t]) { i = e; break } }
|
||
return i || {} }, w.prototype.jC = function(t) { var i, n = this.Ps,
|
||
s = ""; for (i in n)
|
||
if (n.hasOwnProperty(i)) { var e = n[i] || {}; if (e.Nf && e.Nf[t]) { s = i; break } }
|
||
return s }, w.prototype.FC = function(t) { return (t = this.jC(t)) ? this.LC[t] : null }, w.prototype.TC = function(t) { var i = this.DC(t),
|
||
n = this._map.qz(),
|
||
s = this._map.getLayerByClass("AMap.MaskLayer"),
|
||
e = this._map.jH(); if (i) { var r = i.Nf; if (!(i = i.style[t])) return !1; var o = r[t].data.extData || {}; if ("poi" === o.type && !1 === n) return !1; if (!i.visible) return !1; if (n = this.EC(i), i = this.wf.viewState.zoom, !st.Util.dS(i, n)) return !1; if (i = this._map.getLayerByClass("AMap.IndoorMap"), r[t] && o.bz && i && i.yD().show) return !1; if (s) { if (n = s.getRender(), e) return !0; if (n && !n.EH(r[t].data.position, this.wf)) return !1 } return !0 } return !1 }, w.prototype.BC = function(t, i, n) { if (void 0 === n && (n = !1), s = this.DC(i)) { var s = s.style,
|
||
e = (t = this.FC(t)) && t._opts || {},
|
||
r = this.FC(i),
|
||
o = r && r._opts || {}; if (s[i].forceShow) return n && console.log("", " -1- ", 1), !1; if (t && r) { if (t.hS !== r.hS && !e.allowCollision && !o.allowCollision) return n && console.log("", " -2- ", 1), !1; if (t.hS === r.hS && !o.collision) return n && console.log("", " -3- ", 1), !1 } } return n && console.log("", " -4- ", 1), !0 }, w.prototype.EC = function(t) { var n = (i = this.PC(t) || [])[0],
|
||
i = i[1],
|
||
s = (t = this.OC(t) || [])[0],
|
||
t = t[1]; return [n && s ? n <= s ? n : s : n || s || 2, n && s ? i <= t ? t : i : i || t || st.zoomRange[1]] }, w.prototype.PC = function(t) { return t.icon && t.icon[0] && t.icon[0].zooms }, w.prototype.OC = function(t) { return t.text && t.text.zooms }; var xs = st.dZ([st.pZ("LabelsManager")], w);
|
||
|
||
function w(t) { this.LC = {}, this.Uf = {}, this.$f = {}, this.Ps = {}, this._p = st.rbush(), this.ad = [], this._viewMode = "2D", this.YL = !0, this.UT = !0, this._map = t, this._view = t.getView() }
|
||
As = s, st.Ei(Cs, As), Cs.prototype.getState = function() { return { visible: this.il, opacity: this.tl, zIndex: this.Qh, layer: this, path: this.$x, depthTest: this.AF, ce: this.IF } }, Cs.prototype.setMask = function(t) { t && (this.$x = t, this.getSource().CS(), null != (t = this.map)) && t.setNeedUpdate(!1) }, Cs.prototype.getSourceConfig = function() { return { id: this._id, type: "mask", zooms: st.zoomRange } }, Cs.prototype.co = function() { return this._id }, Cs.prototype.lo = function() { return !0 }; var As, zs = Cs;
|
||
|
||
function Cs(t) { var i = As.call(this, t) || this; return i.CLASS_NAME = "AMap.MaskLayer", i.$x = t.path, i.Qh = t.zIndex || -100, i.tl = void 0 === t.opacity ? 1 : t.opacity, i.il = void 0 === t.visible || t.visible, i.xt = t.zooms || st.zoomRange, i } var Ts, Ss = "Nebula.labelsLayer",
|
||
Ls = "nebulaLabel",
|
||
Ds = (Ts = s, st.Ei(Os, Ts), Os.prototype.getState = function() { return st.assign({}, { layer: this, rejectMapMask: this._rejectMapMask }, Ts.prototype.getLayerConfig.call(this)) }, Os.prototype.getSourceConfig = function() { var t = AMap.getConfig().protocol; return { id: Ls, type: Ls, tileUrl: t + (st.Support.wasm ? "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v3" : "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v2"), tileSize: 0, zooms: st.zoomRange } }, Os.prototype.co = function() { return Ls }, Os.prototype.vi = function(t) { return null }, Os.prototype.destroy = function() { this.Jh && this.Jh.destroy && (this.Jh.destroy(), delete this.Jh) }, Os.prototype.Do = function(t) { return Ts.prototype.Do.call(this, t) }, Os);
|
||
|
||
function Os(t) { var i = Ts.call(this, t = void 0 === t ? {} : t) || this; return i.CLASS_NAME = "AMap.Nebula.LabelsLayer", i._opts = { id: Ss, type: Ss, opacity: 1, visible: 1, collision: !0, allowCollision: !1 }, i._opts = st.assign({}, i._opts, t), i.Qh = t.labelzIndex || 100, i.il = !1 !== t.showLabel, i.tl = void 0 === t.opacity ? 1 : t.opacity, i }
|
||
Rs.prototype.qk = function(t) { return t = Object.keys(t), this.Uk + t.length < this.uf }, Rs.prototype.getSize = function() { return [this.maxWidth, this.Uk / this.Hk * this.unit] }, Rs.prototype.clear = function() {}, Rs.prototype.destroy = function() {}, Rs.prototype.Rk = function(t) { var i = this.Vk,
|
||
n = this.$k,
|
||
s = t[st.dY.iconWidth],
|
||
t = t[st.dY.iconHeight]; return this.pY < t && (this.pY = t), i + s <= this.maxWidth || (this.$k += this.pY, n = this.$k, this.Vk = i = 0, this.pY = t), this.Vk += s, this.nU = [i, n], { startX: i, startY: n } }; var Es = Rs;
|
||
|
||
function Rs() { this.Uk = 0, this.unit = 32, this.Hk = 128, this.maxWidth = this.unit * this.Hk, this.maxHeight = this.unit * this.Hk, this.uf = this.maxWidth / this.unit * (this.maxHeight / this.unit), this.Kv = !1, this.Vk = 0, this.$k = 0, this.pY = 0, this.nU = [0, 0], this.Es = {}; var t = document.createElement("canvas");
|
||
t.width = this.maxWidth, t.height = this.maxHeight, this.mY = t, this.Nz = t.getContext("2d") }
|
||
Ps.prototype.play = function(t) { for (var i = t, n = Date.now(); 0 < i && this.offset !== this.mG.length;) { var s = this.mG[this.offset],
|
||
e = this.bY.Rk(s.info),
|
||
r = s.info[st.dY.iconWidth],
|
||
o = s.info[st.dY.iconHeight];
|
||
0 < r && 0 < o && this.bY.Nz.putImageData(function(t, i, n, s) { for (var e = (t = t.createImageData(n, s)).data, r = 0; r < i.length; r++) e[4 * r + 0] = i[r], e[4 * r + 1] = i[r], e[4 * r + 2] = i[r], e[4 * r + 3] = 255; return t }(this.bY.Nz, s.data, s.info[st.dY.iconWidth], s.info[st.dY.iconHeight]), e.startX, e.startY), s.pos = e, delete s.data, this.result.push(s), this.offset++, i = t - (Date.now() - n) } return this.offset === this.mG.length && (this.bY.Kv = !0), this.result }, Object.defineProperty(Ps.prototype, "status", { get: function() { return this.offset >= this.mG.length ? st.vY.finish : st.vY.pause }, eb: !1, nb: !0 }); var js = Ps;
|
||
|
||
function Ps(t, i) { this.bY = t, this.mG = i, this.type = "SDFCombineTask", this.offset = 0, this.result = [] }
|
||
Fs.prototype.dynamicTextSDFInfoLoaded = function(t) { var i = this.map.R_;
|
||
i && "SDFManagerBase" !== i.CLASS_NAME && (i.Ju(t.data), this.Eo()) }, Fs.prototype.iconImageLoaded = function(t) { for (var i = this, t = t.data, e = [], n = 0, s = t; n < s.length; n++) ! function(n) { n.url; var s = n.data;
|
||
e.push(new Promise(function(t) { var i = new Image;
|
||
i.src = n.data.data.data, i.onload = function() { t({ img: i, name: n.data.data.hash, hv: n.data.ext.hv, width: s.width, height: s.height }) } })) }(s[n]);
|
||
Promise.all(e).then(function(t) { i.map.so.sv(t) }), this.Eo() }, Fs.prototype.updateDataVersion = function(t) { this.map.UH(t.version) }, Fs.prototype.destroy = function() { this.$$() }, Fs.prototype.Ia = function() { this.map.gn.on("dynamicTextSDFInfoLoaded", this.dynamicTextSDFInfoLoaded.bind(this)), this.map.gn.on("iconImageLoaded", this.iconImageLoaded.bind(this)), this.map.gn.on("updateDataVersion", this.updateDataVersion.bind(this)) }, Fs.prototype.$$ = function() { this.map.gn.clearEvents("dynamicTextSDFInfoLoaded"), this.map.gn.clearEvents("commonWordLoaded"), this.map.gn.clearEvents("iconImageLoaded"), this.map.gn.clearEvents("updateDataVersion") }, Fs.prototype.Eo = function() { this.map.setNeedUpdate(!0) }; var Bs = Fs;
|
||
|
||
function Fs(t) { this.map = t, this.Ia() }
|
||
Ns.prototype.CS = function() { this.AS = !1 }, Ns.prototype.getData = function() { var t, r, e, o, i, h, a, u = this,
|
||
n = this.$E; return this.AS || !n || (t = st.GeometryUtil.typePolygon(n), r = { type: "Polygon", $S: new Array, polygons: new Array, BM: new Array, LS: { x: 0, y: 0 } }, t && "Polygon" === t ? (n[0][0] instanceof st.LngLat ? r.LS = st.lcs.getLocalByLnglat(n[0][0].toString()) : r.LS = st.lcs.getLocalByLnglat(n[0][0]), e = (i = r.LS).x, o = i.y, st.forEach(n, function(t, i) { var s;
|
||
0 === i ? st.forEach(t, function(t) { t instanceof st.LngLat && (t = t.toArray()); var t = st.lcs.getLocalByLnglat(t),
|
||
n = (i = u.DS(e, o, t.x, t.y))[0],
|
||
i = i[1];
|
||
r.$S.push(t.Sa[0] + n, t.Sa[1] + i) }) : (s = [], st.forEach(t, function(t) { t instanceof st.LngLat && (t = t.toArray()); var t = st.lcs.getLocalByLnglat(t),
|
||
n = (i = u.DS(e, o, t.x, t.y))[0],
|
||
i = i[1];
|
||
s.push(t.Sa[0] + n, t.Sa[1] + i) }), r.BM.push(s)) })) : t && "MultiPolygon" === t && (r.type = "MultiPolygon", n[0][0][0] instanceof st.LngLat ? r.LS = st.lcs.getLocalByLnglat(n[0][0][0].toArray()) : r.LS = st.lcs.getLocalByLnglat(n[0][0][0]), h = (i = r.LS).x, a = i.y, st.forEach(n, function(t) { var e = [],
|
||
n = [];
|
||
st.forEach(t, function(t, i) { var s;
|
||
0 === i ? st.forEach(t, function(t) { t instanceof st.LngLat && (t = t.toArray()); var t = st.lcs.getLocalByLnglat(t),
|
||
n = (i = u.DS(h, a, t.x, t.y))[0],
|
||
i = i[1];
|
||
e.push(t.Sa[0] + n, t.Sa[1] + i) }) : (s = [], st.forEach(t, function(t) { t instanceof st.LngLat && (t = t.toArray()); var t = st.lcs.getLocalByLnglat(t),
|
||
n = (i = u.DS(h, a, t.x, t.y))[0],
|
||
i = i[1];
|
||
s.push(t.Sa[0] + n, t.Sa[1] + i) }), n.push(s)) }), r.BM.push(n), r.polygons.push(e) })), this.AS = this.zw(r), this.AS) }, Ns.prototype.DS = function(t, i, n, s) { return n -= t, t = s - i, [n * (s = st.lcs.getSize())[0], t * s[1]] }, Ns.prototype.zw = function(t) { if (t.Oc = new st._w, !t.Dc) { t.Dc = new st.K_; var i = [],
|
||
n = []; "Polygon" === t.type ? (i = [t.$S], n = [t.BM]) : "MultiPolygon" === t.type && (i = t.polygons, n = t.BM); for (var s = 0; s < i.length; s++) { for (var e = i[s], r = [], o = 0; o < n[s].length; o++) { var h = n[s][o];
|
||
r.push(e.length / 2), e.push.apply(e, h) } var a = t.Dc.Nx(e, r);
|
||
0 < a && t.Oc.add(99, 99, a, st.zoomRange[0], st.zoomRange[1]) } return t } }, Ns.prototype.EE = function(t) { if (!t) return null; for (var i = [], n = t.length, s = 0; s < n; s++) { var e = t[s],
|
||
e = [(e = this.map.pixelToLngLat(e, 16)).lng, e.lat];
|
||
i.push(e) } return [i] }; var Ws = Ns;
|
||
|
||
function Ns(t, i, n) { this.map = i, this.$E = t }
|
||
Us.prototype.destroy = function() { for (var t = 0, i = this.MZ; t < i.length; t++) { var n = i[t]; "function" == typeof n.destroy && n.destroy.call(n) } }; var Gs = Us;
|
||
|
||
function Us(t) { this.MZ = t, this.dynamic = new Ys }
|
||
_s = st.Event, st.Ei(Zs, _s), Zs.prototype.has = function(t) { return this.gV.has(t) }, Zs.prototype.set = function(t, i, n) {
|
||
(n = void 0 === n || n) ? (n = this.gV.get(t), this.gV.set(t, i), n !== i && this.emit(t, i)) : this.gV.set(t, i) }, Zs.prototype.get = function(t) { return this.gV.get(t) }, Zs.prototype.subscribe = function(t, i, n, s) { var e = this; return this.on(t, i, n, s = void 0 !== s && s),
|
||
function() { return e.off(t, i, n) } }; var _s, Ys = Zs;
|
||
|
||
function Zs() { var t = null !== _s && _s.apply(this, arguments) || this; return t.gV = new st.OZ, t }
|
||
|
||
function Xs(t) { var i = this,
|
||
t = (this.map = t, this.gZ = function() { return i.stencil.getData() }, t.getOutseaDataType()),
|
||
t = st.vZ(t).boundsP16;
|
||
this.stencil = new Ws(t, this.map) }
|
||
Hs.prototype.update = function(t) { var i = this;
|
||
void 0 === t ? this.PZ.forEach(function(t) { i.jZ(t) }) : (t = this.WZ(t)) && this.jZ(t) }, Hs.prototype.add = function(t) { if (this.PZ.has(t.group)) { var i = this.PZ.get(t.group); if (null == i || !i.includes(t)) return null != (i = this.PZ.get(t.group)) && i.push(t), !0 } return !1 }, Hs.prototype.remove = function(t) { if (this.PZ.has(t.group)) { var i = null == (i = this.PZ.get(t.group)) ? void 0 : i.indexOf(t); if (-1 !== i) return null != (t = this.PZ.get(t.group)) && t.splice(i, 1), !0 } return !1 }, Hs.prototype.BZ = function(t) { var i = 0; return void 0 === t ? this.PZ.forEach(function(t) { i += t.length }) : i += null != (t = null == (t = this.WZ(t)) ? void 0 : t.length) ? t : 0, i }, Hs.prototype.RZ = function(t, i, n) { if (void 0 === n && (n = 1), !this.WZ(t) || this.BZ(t) <= 0) return !1; for (var s = 0; s < n && 0 < this.BZ(t); s++) { var e = this.GZ(t, !0);
|
||
void 0 !== e && (!i || null != i && i(e) ? e.NZ() : this.add(e)) } return !0 }, Hs.prototype.GZ = function(t, i) { var n, s; return void 0 === i && (i = !1), this.WZ(t) && (s = null == (s = this.WZ(t)) ? void 0 : s.pop(), i) && s && null != (n = s.UZ) && n.call(s) ? this.GZ(t, i) : s }, Hs.prototype.sort = function(t, i) { return i.FZ() - t.FZ() }, Hs.prototype.WZ = function(t) { return this.PZ.get(t) }, Hs.prototype.jZ = function(t) { for (var i, n = 0; n < t.length; n++) { var s = t[n];
|
||
null != (i = null == s ? void 0 : s.UZ) && i.call(s) && (t.splice(n, 1), n--) }
|
||
t.sort(this.sort) }, Hs.prototype.destroy = function() { this.PZ.clear() }; var Js = Hs;
|
||
|
||
function Hs(t) { var i = this;
|
||
this.PZ = new st.OZ, this.ZZ = t, null != (t = this.ZZ.Fz) && t.forEach(function(t) { i.PZ.set(t, []) }), this.ZZ._Z && (this.sort = this.ZZ._Z) } var Vs = { rainbow: { HY: ["#96005A", "#0000C8", "#0019FF", "#0098FF", "#2CFF96", "#97FF00", "#FFEA00", "#FF6F00", "#FF0000"], JY: [0, .125, .25, .375, .5, .625, .75, .875, 1] }, jet: { HY: ["#000083", "#003CAA", "#05FFFF", "#FFFF00", "#FA0000", "#800000"], JY: [0, .125, .375, .625, .875, 1] }, hsv: { HY: ["#ff0000", "#fdff02", "#f7ff02", "#00fc04", "#00fc0a", "#01f9ff", "#0200fd", "#0800fd", "#ff00fb", "#ff00f5", "#ff0006"], JY: [0, .169, .173, .337, .341, .506, .671, .675, .839, .843, 1] }, hot: { HY: ["#000000", "#e60000", "#ffd200", "#ffffff"], JY: [0, .3, .6, 1] }, greys: { HY: ["#000000", "#ffffff"], JY: [0, 1] }, greens: { HY: ["#00441b", "#006d2c", "#238b45", "#41ab5d", "#74c476", "#a1d99b", "#c7e9c0", "#e5f5e0", "#f7fcf5"], JY: [0, .125, .25, .375, .5, .625, .75, .875, 1] }, ylgnbu: { HY: ["#081d58", "#253494", "#225ea8", "#1d91c0", "#41b6c4", "#7fcdbb", "#c7e9b4", "#edf8d9", "#ffffd9"], JY: [1, .875, .75, .625, .5, .375, .25, .125, 0] }, ylorrd: { HY: ["#800026", "#bd0026", "#e31a1c", "#fc4e2a", "#fd8d3c", "#feb24c", "#fed976", "#ffeda0", "#ffffcc"], JY: [1, .875, .75, .625, .5, .375, .25, .125, 0] } },
|
||
qs = (Ks.getTexture = function(t, i) { var n; return this.cache[i] || (Vs[i] && (n = function(t) { t.JY, t.HY; for (var i = document.createElement("canvas"), n = (i.height = 1, i.width = 256, i.getContext("2d")), s = n.createLinearGradient(0, 0, 256, 1), e = 0; e < t.JY.length; e++) { var r = t.JY[e],
|
||
o = t.HY[e];
|
||
s.addColorStop(r, o) } return n.fillStyle = s, n.fillRect(0, 0, 256, 1), i }(Vs[i]), n = t.createTexture(n, { Zi: !0 }), t = t.gl, n.bind(t.CLAMP_TO_EDGE, t.NEAREST, t.NEAREST_MIPMAP_NEAREST), this.cache[i] = n), null) }, Ks.cache = {}, st.dZ([st.pZ("ColorScale")], Ks));
|
||
|
||
function Ks() {}
|
||
$s.oX = function(t) { var i = document.createElement("canvas"),
|
||
n = (i.width = 256, i.height = 256, i.getContext("2d")); if (n) { n.beginPath(); for (var s = "rgba(" + t[0] + "," + t[1] + "," + t[2] + "," + t[3] / 255 + ")", e = 0; e < 9; e++) { n.lineWidth = 1, n.strokeStyle = s; var r = 256 * e / 8;
|
||
8 === e ? (n.moveTo(.5, r - .5), n.lineTo(255.5, r - .5), n.moveTo(r - .5, .5), n.lineTo(r - .5, 255.5)) : (n.moveTo(.5, .5 + r), n.lineTo(255.5, .5 + r), n.moveTo(.5 + r, .5), n.lineTo(.5 + r, 255.5)) } return n.stroke(), "url(" + i.toDataURL("image/png") + ")" } }, $s.hX = function(t, i) { var n = t.toLowerCase(); if (n && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(n)) { if (4 === n.length) { for (var s = "#", e = 1; e < 4; e += 1) s += n.slice(e, e + 1).concat(n.slice(e, e + 1));
|
||
n = s } for (var r = [], e = 1; e < 7; e += 2) r.push(parseInt("0x" + n.slice(e, e + 2), 10)); return i && (t = parseFloat((parseInt(i, 16) / 255).toFixed(2)), r.push(t)), "RGB(" + r.join(",") + ")" } return n }; var Qs = $s;
|
||
|
||
function $s() {}
|
||
new st.rW({}), ie.addLayerRender = function(t, i, n) { i && (this.YZ[t] = i), n && (this.JZ[t] = n), this.XZ(!0) }, ie.XZ = function(t) { this.HZ = t }, ie.VZ = function() { return this.HZ }, ie.HZ = !0, ie.YZ = {}, ie.JZ = {}; var te = st.dZ([st.pZ("LayerRenderManager")], ie);
|
||
|
||
function ie() {}
|
||
ne = st.Event, st.Ei(x, ne), x.prototype.TL = function() { return !window.movingDraw && (this.gm || this.Lv || this.lt || this.Cv) }, x.prototype.getContext = function() { var t; return null == (t = this.mm) ? void 0 : t.context }, x.prototype.getGL = function() { return this.gl }, x.prototype.getView = function() { return this._view }, x.prototype.loadData = function() { return this.IY }, x.prototype.wX = function() { return { hardwareAccEnabled: st.Support.hardwareAccEnabled } }, x.prototype.getContainer = function() { return this.kv }, x.prototype.getSize = function() { var t = this._view.getStatus().size; return new st.Size(t[0], t[1]) }, x.prototype.addLayer = function(t) { var i, n, s; "d" === st.Support.baseRender && /^(AMap\.DistrictLayer)|(AMap\.MapboxLayer)$/g.test(t.CLASS_NAME) ? console.log("浏览器版本过低,请升级最新版本的浏览器,或使用高版本火狐、谷歌等浏览器。") : (t.map = this, i = t.getSourceConfig(), n = this.Mv.addSource(i, this._view.au(), t), t.Hh(this.Mv), t.Kh(n), s = this.Rv(t, {}), t.Do(s), this.zv.push(t), this.zv.sort(function(t, i) { return "AMap.MarkLayer" === t.CLASS_NAME ? 1 : "AMap.MarkLayer" === i.CLASS_NAME ? -1 : t.getOptions().zIndex - i.getOptions().zIndex }), "AMap.NebulaLayer" !== t.CLASS_NAME && "AMap.TileLayer.RoadNet" !== t.CLASS_NAME || !1 === this.showLabel || "w" !== this.baseRender || this.getLayerByClass("AMap.Nebula.LabelsLayer") || (s = new Ds(st.Ln(st.Ln({}, this.options), { rejectMapMask: !0 })), this.addLayer(s)), "AMap.Nebula.LabelsLayer" !== t.CLASS_NAME && "AMap.MapboxLayer" !== t.CLASS_NAME || !1 === this.showLabel || "w" !== this.baseRender || ((s = this.getLayerByClass("AMap.Inner.LabelsLayer")) ? s.oP() && s.show() : (s = new $i(st.Ln(st.Ln({}, this.options), { rejectMapMask: !0 })), this.addLayer(s)), s.getSource().addSource(i.id, n)), "AMap.NebulaLayer" === t.CLASS_NAME && this.yS() && !st.some(this.zv, function(t) { return "AMap.Buildings" === t.CLASS_NAME }) && this.addLayer(new AMap.Buildings({ zooms: [16.8, st.zoomRange[1]], rejectMapMask: !0, zIndex: 10, visible: !0, u$: !0 })), !this.c$ || st.some(this.zv, function(t) { return "AMap.MaskLayer" === t.CLASS_NAME }) || this.d$ || (this.d$ = new zs({ zIndex: -10, visible: !0, path: this.c$ }), this.addLayer(this.d$)), "3D" !== this.getView().type || st.some(this.zv, function(t) { return "AMap.SkyLayer" === t.CLASS_NAME }) || this.addLayer(new ws({ zIndex: -1, visible: !0, skyColor: this.$C })), t.onAdd && t.onAdd(), this.d_(), this.setNeedUpdate(!0)) }, x.prototype.removeLayer = function(t) { for (var i, n = 0; n < this.zv.length; n++) this.zv[n] === t && (this.zv.splice(n, 1), t.v$ && (t.v$(), "d" === st.Support.baseRender) && null != (i = t.getRender()) && i.destroy(), t.map = null, --n);
|
||
this.d_(), this.setNeedUpdate(!0) }, x.prototype.setLayers = function(t) { for (var i = 0; i < this.zv.length; i++) "AMap.VectorLayer" !== (n = this.zv[i]).CLASS_NAME && this.removeLayer(n); for (var n, i = 0; i < t.length; i++)(n = t[i]).setMap(this) }, x.prototype.getLayers = function() { return this.zv.filter(function(t) { return !t._opts || !t._opts.TF }) }, x.prototype.DF = function() { return this.zv }, x.prototype.getDefaultLayer = function() { for (var t = this.getLayers(), i = 0; i < t.length; i++) { var n = t[i]; if (n instanceof Ji || "_defaultLayer" === n.getLayerConfig().id) return n } }, x.prototype.getLayerByClass = function(t) { for (var i = this.getLayers(), n = 0; n < i.length; n++) { var s = i[n]; if (s.CLASS_NAME === t) return s } }, x.prototype.isDOMRender = function() { return !st.Support.isWebGL || "d" === this.baseRender }, x.prototype.isDOMMode = function() { return !st.Support.isWebGL || "d" === this.baseRender }, x.prototype.getMapState = function() { return { zooming: this.lt, panning: this.Cv, rotating: this.Lv, pitching: this.gm } }, x.prototype.getControlContainer = function() { return this.Tv }, x.prototype.getMapsContainer = function() { return this.Iv }, x.prototype.getStatus = function() { return { dragEnable: this.Dv, zoomEnable: this.Pv, doubleClickZoom: this.fi, keyboardEnable: this.jv, jogEnable: this.Ov, scrollWheel: this.Fv, zoomSpeed: this.fZ, animateEnable: this.Ev, touchZoomCenter: this.Nv, touchZoom: this.$v, pitchEnable: this.Uv, rotateEnable: this.Bv, showBuildingBlock: this.m$, isHotspot: this.Wv, mapstyleUrl: this.c_, features: this.Cw, allBubble: this.HL, pickWhenMoving: this.UB } }, x.prototype.setStatus = function(t) { this.Dv = void 0 !== t.dragEnable ? t.dragEnable : this.Dv, this.Pv = void 0 !== t.zoomEnable ? t.zoomEnable : this.Pv, this.fi = void 0 !== t.doubleClickZoom ? t.doubleClickZoom : this.fi, this.jv = void 0 !== t.keyboardEnable ? t.keyboardEnable : this.jv, this.Ov = void 0 !== t.jogEnable ? t.jogEnable : this.Ov, this.Fv = void 0 !== t.scrollWheel ? t.scrollWheel : this.Fv, this.Ev = void 0 === t.animateEnable ? this.Ev : t.animateEnable, this.Uv = void 0 === t.pitchEnable ? this.Uv : t.pitchEnable, this.$v = void 0 === t.touchZoom ? this.$v : t.touchZoom, this.Wv = void 0 === t.isHotspot ? this.Wv : t.isHotspot, this.Bv = void 0 === t.rotateEnable ? this.Bv : t.rotateEnable, this.HL = void 0 === t.allBubble ? this.HL : t.allBubble }, x.prototype.getBuildingColor = function() { return { buildingColor: this.az, roofColor: this.rz, wallColor: this.sz } }, x.prototype.getMask = function() { return this.c$ }, x.prototype.getOutseaState = function() { return this.YG }, x.prototype.getOutseaDataType = function() { return this.QZ }, x.prototype.getMapboxStyle = function() { return this.JG }, x.prototype._setStyle = function(t) { this.mapStyle.setStyle(t, !1, this) }, x.prototype.RY = function(t) { "d" !== this.baseRender && (this.mapStyle.setStyleByPlat(t, this), this.u0(t)) }, x.prototype.f_ = function(t) { var i = this; if (!t) return !1; "d" !== this.baseRender ? (this.c_ = t, this.mapStyle.pn(function() { i._getUserStyle(t), i.d_(), i.setNeedUpdate(!0) })) : console.log("浏览器版本过低,请升级最新版本的浏览器,或使用高版本火狐、谷歌等浏览器。") }, x.prototype.getProjection = function() { return st.ProjectionManager.getProjection(this._view.au()) }, x.prototype.getDefaultCursor = function() { return this.Zv }, x.prototype.setDefaultCursor = function(t) { this.Zv = t, this.setCursor() }, x.prototype.setCursor = function(t) { this.kv && (t = t || this.getDefaultCursor()) !== this.qv && (st.Support.$e || (this.kv.style.cursor = t), this.qv = t) }, x.prototype.destroy = function() { this.G("beforeDestroy"), this.y$ = !0, this.bZ && (this.bZ.destroy(), delete this.bZ), this.x$ && (this.x$.destroy(), delete this.x$), this.gn && (this.gn.destroy(), delete this.gn), this.mapStyle && this.mapStyle.destroy && (this.mapStyle.destroy(), delete this.mapStyle), this.b$ && this.b$.destroy && (this.b$.destroy(), delete this.b$), this.$F && this.$F.destroy && (this.$F.destroy(), delete this.$F), this.wm && delete this.wm, this.z_ && this.z_.destory && (this.z_.destory(), delete this.z_), this._view && delete this._view, this.I_ && delete this.I_, this.yH && delete this.yH, this.m_ && delete this.m_, this.gl && delete this.gl, this.canvas && delete this.canvas, this.lcs && (this.lcs = null), this.Vv(), this.Xv(), this.Hv(), this.G("afterDestroy") }, x.prototype.getLimitBounds = function() { return this.it }, x.prototype.setLimitBounds = function(t) { t instanceof l ? this.it = t : this.it = new l(t) }, x.prototype.clearLimitBounds = function() { this.it = void 0 }, x.prototype.getZooms = function() { return [Math.max(this.xt[0], st.zoomRange[0]), Math.min(st.zoomRange[1], this.xt[1])] }, x.prototype.setZooms = function(t) { this.xt = t }, x.prototype.setNeedUpdate = function(t) { this.zX || (this.Jv = 5, t && !this.Kv && (this.Kv = t, st.Util.cancelAnimFrame(this.Qv), this.Qv = 0, this.Eo()), this.Kv = t, this.bZ && this.bZ.MZ.yY.setNeedUpdate(t)) }, x.prototype.render = function() { this.setNeedUpdate(!0) }, x.prototype.qz = function() { return !1 !== this.showLabel && (!this.Cw || -1 < this.Cw.indexOf("point")) }, x.prototype.Qz = function() { return !1 !== this.showLabel && (!this.Cw || -1 < this.Cw.indexOf("road")) }, x.prototype.yS = function() { return !!this.m$ || void 0 === this.m$ && (!this.Cw || -1 < this.Cw.indexOf("building")) }, x.prototype.getViewMode_ = function() { return this._view.type }, x.prototype.fS = function() { return this.b$ }, x.prototype.XT = function(t) { this.QT = t }, x.prototype.JF = function(t) { return this.mapStyle.vn ? ((t = this.mapStyle.vn.nX("00001", "1", "color", t)) && (t = st.Util.Hex2Rgba(t), t = st.vector.Up(t, 255)), this.$C || t || [.329, .549, .839, 1]) : this.$C || [.329, .549, .839, 1] }, x.prototype.sX = function(t) { var i; return this.mapStyle.vn ? ((i = (i = this.mapStyle.vn.nX("00001", "2", "color", t)) || this.mapStyle.vn.nX("00001", "1", "color", t)) && (i = st.Util.Hex2Rgba(i), i = st.vector.Up(i, 255)), this.$C || i || [.329, .549, .839, 1]) : this.$C || [.329, .549, .839, 1] }, x.prototype.qF = function() { return this.tB }, x.prototype.qY = function(t, i) { var n; return t && 2 === t.length ? (n = t[0], t = t[1], this.mapStyle.dn(n, t, i)) : null }, x.prototype.ra = function(t) { return { 2: 3, 3: 3, 4: 3, 5: 3, 6: 6, 7: 6, 8: 8, 9: 8, 10: 10, 11: 10, 12: 10, 13: 12, 14: 12, 15: 14, 16: 14, 17: 14, 18: 14, 19: 14, 20: 14, 21: 14, 22: 14 }[t] }, x.prototype.getCustomTypeByPos = function(t) { var i = this.ym().viewState.optimalZoom,
|
||
i = this.ra(i),
|
||
t = [(t = t.lnglat).lng, t.lat, t.lng, t.lat]; return st.Util.WY(t, i) }, x.prototype.jH = function() { return this.NH }, x.prototype.UH = function(t) { this.Mv.UH(t) }, x.prototype.setHighlight = function(t, i) { var n;
|
||
this.bZ && (n = this.bZ.MZ.KY) && n.setHighlight(t, i) }, x.prototype.start = function() { this.zX = !1, this.setNeedUpdate(!0) }, x.prototype.stop = function() { this.setNeedUpdate(!1), this.zX = !0 }, x.prototype.Zdt = function() { return this.zv.filter(function(t) { return !t._opts || !t._opts.TF || "AMap.MarkLayer" === t.CLASS_NAME }) }, x.prototype.im = function() { return this.Mv }, x.prototype.em = function(t, i, n) { var s, e, r, o, h, a, u, f, c; return void 0 === i && (i = [0, 0, 0, 0]), void 0 === n && (n = st.zoomRange[1]), t ? (r = st.ProjectionManager.getProjection(this._view.au()), s = st.V[this._view.au()], e = r.project(t[0], t[1]), t = [(r = r.project(t[2], t[3]))[0] - e[0], r[1] - e[1]], c = this.getSize().toArray(), o = this._view.getStatus().pitch, f = this._view.getStatus().rotation, f *= Math.PI / 180, a = (i[2] - i[3]) / 2, u = (i[0] - i[1]) / 2, h = a * Math.cos(f) + Math.sin(f) * u, a = -Math.sin(f) * a + Math.cos(f) * u, u = t[0], 0 != f && (t[0] = Math.abs(t[0] * Math.cos(f)) + Math.abs(t[1] * Math.sin(f)), t[1] = Math.abs(t[1] * Math.cos(f)) + Math.abs(u * Math.sin(f))), u = Math.max(10, c[0] - i[2] - i[3]), f = Math.max(10, c[1] - i[0] - i[1]), c = Math.log(156543.03392804097 / t[0] * u) / Math.log(2), i = Math.log(156543.03392804097 / t[1] * f) / Math.log(2), u = Math.min(c, i), 0 < o && (u -= o / 60), u = Math.min(u, n), t = [(e[0] + r[0]) / 2, (e[1] + r[1]) / 2], (f = s.transform(t[0], t[1], u))[0] -= h, f[1] -= a, c = s.unproject(f[0], f[1], u), st.Pt(c, [u])) : [116.39708007097433, 39.874529056682476, 12] }, x.prototype.nm = function(t) { if (0 < t.length) { for (var i, n = void 0, s = 0; s < t.length; s++) n ? (i = t[s].getBounds()) && n.union(i) : n = (n = t[s].getBounds()) && n.clone(); return n } }, x.prototype.om = function(t, i) { void 0 === i && (i = !0), this._view && this._view.setOptions(t, i) }, x.prototype.Eo = function() { this.zX || (this.Qv || (this.Qv = st.Util.requestAnimFrame(this.Yf.bind(this))), this.bZ && this.bZ.MZ.yY.to()) }, x.prototype.rm = function() { return this.hm || (this.hm = new ys, this.addLayer(this.hm)), this.hm }, x.prototype.sm = function() { return this.$F.source }, x.prototype.FY = function(t) { if (st.Module.eS.BY) return this.getLayerByClass("AMap.Inner.LabelsLayer").vi(t, !0) }, x.prototype._getUserStyle = function(t) { t && this._changeStyle(t) }, x.prototype._changeStyle = function(t) { var s = this,
|
||
i = t.split("amap://styles/")[1],
|
||
e = (n = AMap.getConfig()).protocol,
|
||
n = n.key,
|
||
r = ((t = -1 !== t.indexOf("?isPublic=true")) && (i = i.split("?isPublic")[0]), null),
|
||
o = !1;
|
||
i.length < 32 ? (o = !0, r = e + "://webapi.amap.com/style2?name=" + i + "&key=" + n) : (r = e + "://webapi.amap.com/v4/map/styles2?styleid=" + i + "&s=rsv3&key=" + n + (t ? "&ispublic=1" : ""), AMap.getConfig().jscode ? r += "&jscode=" + AMap.getConfig().jscode : AMap.getConfig().gaodeserver && (r = AMap.getConfig().gaodeserver + "/v4/map/styles2?styleid=" + i + "&s=rsv3&key=" + n + (t ? "&ispublic=1" : ""))), yi.JSONP(r, function(t, i) { var n; "complete" === t && (i = i.data) && i.data && i.data.content ? (t = JSON.parse(i.data.content), n = JSON.parse(i.data.layer || "{}"), s.QR = t, s.mapStyle && (s.mapStyle.setStyle(t, o, s), n) && s.mapStyle.vn.EY(n), s.u0(i.data)) : s.emit("styleChanged") }) }, x.prototype._getMapboxStyle = function(n) { var s = this,
|
||
t = AMap.getConfig(),
|
||
i = t.protocol;
|
||
t.key, yi.Ajax(i + "://a.amap.com/jsapi/static/json/web_v8_2.0_" + n + ".json", { type: "GET", requestContentType: "application/json" }, function(t, i) { "complete" === t ? (i = i.data, s.JG = { styles: i, vectorMapForeign: n }, s.gn && s.gn.Ha({ QG: s.JG }), s.Eo()) : s.JG = null }) }, x.prototype.um = function(t) { for (var i = 0, n = t.length; i < n; i += 1) this.addLayer(t[i]) }, x.prototype.u0 = function(t) { var i = this;
|
||
t && t.third_layer && st.Module.module("AMap.StyleParser", function() { setTimeout(function() { i.y$ || (i.f0 || (i.f0 = new AMap.StyleParser(i)), i.emit("styleLoaded", t)) }, 0) }) }, x.prototype.cm = function() { var n = this,
|
||
t = (k.addClass(this.kv, "amap-container"), this.l0 = k.watchSize(this.kv, function(t, i) { n.om({ size: [t, i] }) }, this), this.kv),
|
||
i = (!1 === this.options.showMapGrid && (this.kv.style.backgroundImage = "none"), this.Iv = k.create("div", null, "amap-maps"), this.do = k.create("div", this.Iv, "amap-layers"), this.fm = k.create("div", this.Iv, "amap-overlays"), t.appendChild(this.Iv), this.Tv = k.create("div", this.kv, "amap-controls"), this.Iv.tabIndex = 0, {});
|
||
i.p_ = k.create("a", t, "amap-logo"), k.create("img", i.p_).src = st.Support.Ue ? AMap.getConfig().protocol + "://" + AMap.getConfig().domain + "/theme/v2.0/logo@2x.png" : AMap.getConfig().protocol + "://" + AMap.getConfig().domain + "/theme/v2.0/logo@1x.png", i.v_ = k.create("div", t, "amap-copyright"), i.v_.style.display = "none", 350 < k.getViewport(this.kv)[0] && (i.v_.innerHTML = AMap.getConfig().v_, i.v_.mapNumber = k.create("span", i.v_, "amap-mcode")), this.m_ = i }, x.prototype.d_ = function() { var t = this.getLayers(); if (t) { for (var i = -1, n = "", s = 0; s < t.length; s += 1) { var e = t[s].get("mapNumber"),
|
||
r = t[s].get("zIndex");
|
||
e && i < r && t[s].get("visible") && (n = e, i = r) } var o = this.c_; return (n = !this.g$ || "GS(2024)1158" === n && o && "normal" !== o && "amap://styles/normal" !== o ? "" : n) && this.tE !== n && this.m_ && this.m_.v_ && this.m_.v_.mapNumber && (this.m_.v_.mapNumber.innerHTML = "- " + n + "号"), this.tE = n } }, x.prototype.pm = function(t) { var i = { size: k.getViewport(this.kv), zoom: t.zoom, center: t.center, rotation: t.rotation, projectionId: t.projection, pitch: t.pitch }; return new(t.viewMode && "3D" === t.viewMode ? Nn : Pn)(i, this) }, x.prototype.dm = function() {}, x.prototype.Hv = function() { for (k.remove(this.Iv), delete this.Iv, this.do && (k.remove(this.do), delete this.do), this.Tv && (k.remove(this.Tv), delete this.Tv), this.fm && (k.remove(this.fm), delete this.fm), this.l0 && (this.l0(), delete this.l0); this.kv && this.kv.firstChild;) this.kv.removeChild(this.kv.firstChild);
|
||
this.kv && delete this.kv, qs.cache && (qs.cache = {}) }, x.prototype.Vv = function() { this.pi && (this.pi.destroy(), delete this.pi), this.di && (this.di.destroy(), delete this.di), this.vm && (this.vm.destroy(), delete this.vm) }, x.prototype.Xv = function() { this.mm && this.mm.destroy && (this.mm.destroy(), delete this.mm); for (var t = 0, i = this.getLayers(); t < i.length; t++) i[t].destroy();
|
||
this.so && this.so.destroy(), this.R_ && (this.R_.destroy(), delete this.R_), this.zv = [], this.Mv && this.Mv.destroy && (this.Mv.destroy(), delete this.Mv) }, x.prototype.ym = function() { var t = this._view.getStatus(); return { debug: this.debug, layers: this.zv, uo: this.Mv, size: t.size, do: this.do, viewState: t, map: this } }, x.prototype.Yf = function() { if (!this.zX && (this.w$(), !this.y$)) { if (te.VZ())
|
||
for (var t = 0, i = this.ym().layers; t < i.length; t++) { var n, s = i[t];
|
||
s.getRender() || (n = this.Rv(s, {}), s.Do(n)) }
|
||
this.pi && this.pi.iy({}), this.di && this.di.iy({}); var e = this.ym(); if (this.bm(e), this.tB = (new Date).getTime(), this.Mv.loadData(e.viewState, this, this.mm ? this.mm.context : null), this.mm && this.mm.renderFrame(e), this.Jv && this.Kv) this.Qv = st.Util.requestAnimFrame(this.Yf.bind(this));
|
||
else if ((this.Jv <= 0 || !this.Kv) && (this.Kv = !1, st.Util.cancelAnimFrame(this.Qv), this.Qv = 0, this.gm || this.Lv || this.lt || this.Cv)) { if (this.lt && -1 !== this.k$) { if ("d" === st.Support.baseRender && 0 <= this.k$) { if (this.KT(), !this.tD) return void(this.tD = !0);
|
||
this.tD = !1 }
|
||
this.G("zoomend", { target: e.map }) }
|
||
this.Cv && -1 !== this._$ && this.G("moveend", { target: e.map }), this.Lv && -1 !== this.M$ && this.G("rotateend"), this.gm && -1 !== this.S$ && this.G("pitchend"), this.Lv = !1, this.gm = !1, this.lt = !1, this.Cv = !1, this.Qv || (this.Mv.loadData(e.viewState, this, this.mm ? this.mm.context : null), this.mm && this.mm.renderFrame(e)) }
|
||
this.Jv-- } }, x.prototype.bm = function(t) { var i = t.viewState,
|
||
s = (n = this.wm).center,
|
||
e = n.rotation,
|
||
r = n.zoom,
|
||
n = n.pitch,
|
||
o = i.center,
|
||
h = i.zoom,
|
||
a = i.rotation,
|
||
u = i.pitch; if (s[0] !== o[0] || s[1] !== o[1] ? (this._$ = 1, this.Cv || this.G("movestart", { target: t.map }), this.Cv = !0, this.G("mapmove", { target: t.map })) : 1 <= this._$ && this._$++, r !== h ? (this.lt || this.G("zoomstart", { target: t.map }), this.G("zoomchange", { target: t.map }), this.lt = !0, this.k$ = 1) : 1 <= this.k$ && this.k$++, e !== a ? (this.Lv || this.G("rotatestart"), this.G("rotatechange"), this.Lv = !0, this.M$ = 1) : 1 <= this.M$ && this.M$++, n !== u ? (this.gm || this.G("pitchstart"), this.G("pitchchange"), this.gm = !0, this.S$ = 1) : 1 <= this.S$ && this.S$++, 5 <= this._$ && (this.Cv = !1, this._$ = -1, this.G("moveend", { target: t.map })), 5 <= this.k$ && (this.lt = !1, this.k$ = -1, this.G("zoomend", { target: t.map })), 5 <= this.M$ && (this.Lv = !1, this.M$ = -1, this.G("rotateend")), 5 <= this.S$ && (this.gm = !1, this.S$ = -1, this.G("pitchend")), "d" === st.Support.baseRender && 4 <= this.k$) { if (this.KT(), !this.tD) return void(this.tD = !0);
|
||
this.tD = !1 }
|
||
this.Qv || this.mm && (this.Mv.loadData(t.viewState, this, this.mm.context), this.mm.renderFrame(t)), this.wm = i }, x.prototype.G = function(t, i) { this.emit(t, i = void 0 === i ? {} : i) }, x.prototype.Rm = function() { var r = this;
|
||
this.on("styleChanged", function() { if (r.kv) { var t = void 0,
|
||
i = (t = r.options.backgroundColor || (r.mapStyle && (i = "fast" === r.bZ.MZ.drawMode ? st.Util.getOptimalZoom(r.getZoom()) : r.getZoom(), i = r.mapStyle.dn(30001, 1, i)) && i.faceColor ? ((t = i.faceColor.rgba.slice(0))[3] = t[3] / 255, "rgba( " + t.join(",") + ")") : "#f7f7f7"), r.kv.style.backgroundColor = t, r.mapStyle.vn.nX("00001", "3", "visible", 10)),
|
||
t = r.mapStyle.vn.nX("00001", "3", "lineColor", 10);
|
||
i && t ? (t = st.Util.Hex2Rgba(t), (t = Qs.oX(t)) && (r.kv.style.backgroundImage = t, r.kv.style.backgroundSize = "100px 100px")) : !1 === i && (r.kv.style.backgroundImage = "none"); for (var n = 0, s = r.zv; n < s.length; n++) { var e = s[n];
|
||
st.qG(e) && e.sl() } }
|
||
r.xm = !0, r.Eo() }), this.on("repaint", function() { r.Eo() }) }, x.prototype.w$ = function() { var t = this;
|
||
this.R$ || ("d" === this.baseRender ? (this.R$ = !0, st.Module.module("DomRender", function() { setTimeout(function() { t.y$ || (t.mm = new st.Module.DomRender(t), t.Eo()) }, 0) })) : (this.R$ = !0, st.Module.module("WebGLRender", function() { setTimeout(function() { t.y$ || (AMap.Browser.isWebGL && !t.KZ ? (t.KZ = !0, t.mm = new st.Module.WebGLRender(t), t.I_ = new bs(t), t.yH = new st.LH(t, t.I_, t.gn), t.Eo()) : t.R$ = !1) }, 0) }))) }, x.prototype.Rv = function(t, i) { return this.isDOMMode() ? te.JZ[t.CLASS_NAME] ? new te.JZ[t.CLASS_NAME](this, t) : void 0 : te.YZ[t.CLASS_NAME] ? new te.YZ[t.CLASS_NAME] : void 0 }, x.prototype.KT = function() { var e, r, o, h, a, u, f = this,
|
||
t = this._view.getStatus(),
|
||
c = t.zoom,
|
||
l = t.centerCoord,
|
||
d = c,
|
||
v = 0;
|
||
0 != (v = (d = this.bo > c ? Math.floor(c) : Math.ceil(c)) - c) && (this.bo = d, e = st.V[this._view.au()], r = 200 * Math.abs(v) + 100, o = new J(0, .6, .15, 1), u = h = 0, a = function() { h += 16; var t = f._view.getStatus().zoom,
|
||
i = c + v * o.h(h / r),
|
||
t = (r < h && (i = d), e.nt(f.QT[0], f.QT[1], t)),
|
||
s = (n = e.nt(f.QT[0], f.QT[1], i))[0] - t[0] + l[0],
|
||
n = n[1] - t[1] + l[1],
|
||
t = f.getProjection().unproject(s, n);
|
||
f.setZoomAndCenter(i, t, !0), d <= i && 0 < v || v < 0 && i <= d ? (f.setZoom(d, !0), st.Util.cancelAnimFrame(u)) : h < r && (u = st.Util.requestAnimFrame(a)) }, u = st.Util.requestAnimFrame(a)) }, x.prototype.iB = function() { window.onbeforeload = this.destroy, window.onunload = this.destroy, window.onbeforeunload = this.destroy }, x.t_ = [2, 20]; var ne, se = x;
|
||
|
||
function x(t, i) { var n = ne.call(this) || this;
|
||
n.className = "AMap.Map", n.so = new us, n.lcs = st.lcs, n.debug = !1, n.complete = !1, n.Kv = !1, n.controls = [], n.langForeign = "zh_cn", n.fE = !0, n.IY = "normal", n.az = [.92, .92, .9, .9], n.sz = [.94, .94, .94, .9], n.rz = [.94, .94, .94, .9], n.$C = [.329, .549, .839, 1], n.Ov = !0, n.Dv = !0, n.Pv = !0, n.Fv = !0, n.fZ = 1, n.fi = !0, n.jv = !0, n.Ev = !0, n.Uv = !0, n.Bv = !0, n.$v = !0, n.Nv = 0, n.Sm = !1, n.c_ = "", n.Zv = "default", n.qv = "", n.xt = [2, 20], n.YG = !1, n.QZ = "", n.zv = [], n.A$ = !1, n.R$ = !1, n.Qv = 0, n.f0 = void 0, n.xm = !1, n.lt = !1, n.Cv = !1, n.Lv = !1, n.gm = !1, n.km = 0, n.Jv = 5, n.y$ = !1, n.Wv = !st.Support.$e, n.g$ = !0, n.tB = (new Date).getTime(), n._$ = -1, n.M$ = -1, n.S$ = -1, n.k$ = -1, n.HL = !1, n.bo = 10, n.tD = !1, n.QT = [0, 0], n.UB = !1, n.tE = "", n.KZ = !1, n.zX = !1, st.Support.hardwareAccEnabled || console && console.log && console.log("检测到您已关闭硬件加速模式,开启以获得更好的体验!"), n.Rm(), n.options = i, n.xX = i.cacheSize, n.g$ = void 0 === i.I$ ? n.g$ : i.I$, n.az = st.Util.color2RgbaArray(i.buildingColor = i.buildingColor), n.sz = st.Util.color2RgbaArray(i.wallColor), n.rz = st.Util.color2RgbaArray(i.roofColor), n.$C = st.Util.color2RgbaArray(i.skyColor), n.Dv = void 0 === i.dragEnable ? n.Dv : i.dragEnable, n.Pv = void 0 === i.zoomEnable ? n.Pv : i.zoomEnable, n.Fv = void 0 === i.scrollWheel ? n.Fv : i.scrollWheel, n.fZ = void 0 === i.zoomSpeed ? n.fZ : i.zoomSpeed, n.Ov = void 0 === i.jogEnable ? n.Ov : i.jogEnable, n.fi = void 0 === i.doubleClickZoom ? n.fi : i.doubleClickZoom, n.jv = void 0 === i.keyboardEnable ? n.jv : i.keyboardEnable, n.Ev = void 0 === i.animateEnable ? n.Ev : i.animateEnable, n.Uv = void 0 === i.pitchEnable ? n.Uv : i.pitchEnable, n.$v = void 0 !== i.touchZoom ? i.touchZoom : n.$v, n.Nv = void 0 !== i.touchZoomCenter ? i.touchZoomCenter : n.Nv, n.Zv = i.defaultCursor || n.Zv, n.QZ = i.overseaDataType || n.QZ, n.IY = i.loadData || "normal", n.Wdt = i.poiIcon, i.limitBounds && n.setLimitBounds(i.limitBounds), n.Sm = i.Lm || !1, n.xt = i.zooms || n.xt, n.bo = i.zoom || n.bo, n.baseRender = st.Support.baseRender, i.viewMode = "d" === st.Support.baseRender ? "2D" : i.viewMode, n.Bv = !("3D" !== i.viewMode), n.Bv = void 0 === i.rotateEnable ? n.Bv : i.rotateEnable, n.debug = i.debug || !1, n.m$ = "3D" === i.viewMode && i.showBuildingBlock, n.Wv = void 0 === i.isHotspot ? n.Wv : i.isHotspot, n.UB = void 0 === i.pickWhenMoving ? n.UB : i.pickWhenMoving, n.fE = void 0 === i.asyncOverlay ? n.fE : i.asyncOverlay, n.showLabel = void 0 === i.showLabel || Boolean(i.showLabel), n.Cw = i.features || ["bg", "point", "road", "building"], n.c$ = i.mask, n.NH = void 0 !== i.labelRejectMask && Boolean(i.labelRejectMask), n.bZ = new Gs({ lY: new st.MY, gY: new Es, yY: new st.wY({ check: function() { return !!n.bZ && n.bZ.MZ.lY.xY() }, render: function() { if (n.TL()) return !1;
|
||
n.bZ && n.bZ.MZ.lY.exec(20) } }), drawMode: i.drawMode || "normal", tY: new Js({ Fz: ["default"] }), wZ: new Xs(n), KY: new ee(n) }), n.WebGLParams = void 0 === i.WebGLParams ? {} : i.WebGLParams, "d" !== n.baseRender ? (n.bZ.dynamic.subscribe("firstPaint", function() { n.emit("firstPaint", st.Support.amapRunTime) }, n, !0), n.bZ.MZ.lY.on("taskclear", function() { n.setNeedUpdate(!0) }), n.bZ.MZ.lY.register("SDFCombine", function(t) { return new js(n.bZ.MZ.gY, t) }, { kY: 10 }), n.bZ.MZ.lY.register("LangSDF", function(t) { return new Jn(n.R_.yG, t) }, { kY: 10 }), n.mapStyle = new Un(n), n.mapStyle.pn(function() { var t = i.mapStyle;
|
||
t ? n._getUserStyle(t) : n.emit("styleChanged") }), n.Eo(), s = n.z_ = new qn, n.gn = new as(n), n.R_ = new Zn(s, n), n.x$ = new Bs(n)) : (n.z_ = new qn, n.R_ = new st.vG, n.emit("styleChanged"));
|
||
(s = i.vectorMapForeign) && n._getMapboxStyle(s), i.langForeign && (n.langForeign = i.langForeign), n.gn && n.gn.Ha({ langForeign: n.langForeign }), t && (t.amap && t.amap.destroy(), t.amap = n), n.kv = t, n.isDOMMode() && (i.zoom = i.zoom && 18 < i.zoom ? 18 : i.zoom), n._view = n.pm(i), n.b$ = new xs(n), n.Mv = new _i(n), n.c_ = i.mapStyle || "normal", n.QR = null; var s = st.Support.isWebGL,
|
||
t = AMap.getConfig().y_,
|
||
e = i.layers || [],
|
||
r = (n.cm(), s && "d" !== n.baseRender && (n.canvas = k.create("canvas", n.do, "amap-layer"), n.canvas.width = 0, n.canvas.height = 0, n.gl = st.Support.getContext(n.canvas, n.WebGLParams)), n.w$(), 0 === e.length ? n.isDOMMode() ? (n.bo = 18 < n.bo ? 18 : n.bo, r = [n.xt[0], n.xt[1]], n.xt[0] = 2 < r[0] ? r[0] : 2, n.xt[1] = 18 < r[1] ? 18 : r[1], n.addLayer(new p({ id: "_defaultLayer", tileUrl: t })), n.Bv = !1) : s && n.addLayer(new Ji({ cacheSize: n.xX })) : n.um(e), n.d_(), n.$F = new ns({ map: n }), n.addLayer(n.$F), n._view.getStatus()); return n.wm = r, n.setCursor(n.Zv), AMap.getConfig().keytype && "1" === AMap.getConfig().keytype && (n.isDOMMode() ? n.addLayer(new p.Mark({})) : n.addLayer(new AMap.Mark({ zIndex: 8, opacity: 1, map: n }))), n }
|
||
re.prototype.setHighlight = function(t, i) { this.Lp = t, this.Ap = i, this._Y.setNeedUpdate(!0) }, re.prototype.destroy = function() { this.map.off("hotspotclick", this.$Y), this.map.off("hotspotover", this.$Y), this.map.off("hotspotout", this.tX) }, re.prototype.$Y = function(t) { this.iX = t.id, this.map.setNeedUpdate(!0) }, re.prototype.tX = function(t) { this.iX = "", this.map.setNeedUpdate(!0) }; var ee = re;
|
||
|
||
function re(t) { var i = this;
|
||
this.map = t, this.Lp = -2, this.Ap = [], this.iX = "", this.$Y = this.$Y.bind(this), this.tX = this.tX.bind(this), this.map.on("hotspotclick", this.$Y), this.map.on("hotspotover", this.$Y), this.map.on("hotspotout", this.tX), this.GY = Date.now(), this.NY = 0, this.UY = !0, this._Y = new st.wY({ check: function() { return -1 < i.Lp }, render: function() { var t = Date.now() - i.GY;
|
||
i.NY = 2400 < t % 3e3 ? 0 : .5 - Math.abs(t % 3e3 / 2400 - .5), i.map.setNeedUpdate(!0) } }), this._Y.setNeedUpdate(!0) }
|
||
he.prototype.setImageSize = function(t) { t instanceof st.Size && (t = t.toArray()), this._opts.imageSize = t }, he.prototype.getImageSize = function() { var t = this._opts.imageSize,
|
||
i = this.Om; return t || (i.length ? i : []) }, he.prototype.setSize = function(t) { t instanceof st.Size && (t = t.toArray()), this._opts.size = t }, he.prototype.getSize = function() { return this._opts.size }, he.prototype.setImageOffset = function(t) { t instanceof st.Pixel && (t = t.toArray()), this._opts.imageOffset = t }, he.prototype.getImageOffset = function() { return this._opts.imageOffset || [0, 0] }, he.prototype.getImage = function() { return this._opts.image }, he.prototype.setImage = function(t) { this._opts.image = t }, he.prototype.Fm = function() { return this.Om || [] }, he.prototype.Em = function(t) { t instanceof st.Size && (t = t.toArray()), this.Om = t }; var oe = he;
|
||
|
||
function he(t) { this.CLASS_NAME = "AMap.Icon", this._opts = { size: [0, 0], imageOffset: new st.Pixel(0, 0), image: AMap.getConfig().protocol + "://webapi.amap.com/theme/v1.3/markers/0.png" }, this.Om = []; var i = t.size,
|
||
n = t.imageSize,
|
||
s = t.image,
|
||
t = t.imageOffset;
|
||
i && this.setSize(i), n && this.setImageSize(n), t && this.setImageOffset(t), s && this.setImage(s) } var ae, ue = "AMap.Overlay",
|
||
Qt = (ae = st.Event, st.Ei(fe, ae), fe);
|
||
|
||
function fe() { var t = null !== ae && ae.apply(this, arguments) || this; return t.type = ue, t.className = ue, t }
|
||
ce = st.Event, st.Ei(le, ce); var ce;
|
||
|
||
function le() { var t = null !== ce && ce.apply(this, arguments) || this; return t.type = ue, t.className = ue, t } var de, ve = { _dt: function(t) { return !!(window && window._AMapConfig && window._AMapConfig.wiaBizToken) && !!(t && t[0] && "string" == typeof t[0] && -1 < t[0].indexOf("WIA")) }, Ydt: function(e) { return st.T8t(this, void 0, void 0, function() { var i, n; return st.x8t(this, function(t) { return i = "http://dev-restapi.amap.com/api/v1/wia/point/get/lonlat?s=rsv3&key=" + AMap.getConfig().key + "&bizToken=" + window._AMapConfig.wiaBizToken, (n = AMap.getConfig()).jscode && (i += "&jscode=" + n.jscode), [2, new Promise(function(n, s) { yi.Ajax(i, { requestContentType: "application/json", type: "POST", content: JSON.stringify({ wiaLonLat: e }) }, function(t, i) { i && i.data && (i = JSON.parse(i.data)) && i.data && i.data.list && i.data.list[0] ? (i = i.data.list[0], i = new AMap.LngLat(i.lon, i.lat), n([i.lng, i.lat])) : s("error") }) })] }) }) } },
|
||
pe = "AMap.DOMOverlay",
|
||
Me = { top: "top", right: "right", bottom: "bottom", left: "left", Nm: "top-left", $m: "top-center", Um: "top-right", Bm: "middle-left", center: "center", Wm: "middle-right", Gm: "bottom-left", Zm: "bottom-center", qm: "bottom-right" },
|
||
we_Ym = "viewchange",
|
||
ke = [10, 0, 0, 0],
|
||
xe = { map: null, visible: !0, offset: [0, 0], anchor: "top-left", rotate: 0, orientation: null, scale: 1, zooms: st.zoomRange, noSelect: !1, innerOverlay: !1, isCustom: !1 },
|
||
si = (de = le, st.Ei(Ae, de), Ae.prototype.getOptions = function() { return this._options }, Ae.prototype.add = function(t) { for (var i = this._map, n = 0, s = t = void 0 === t ? [] : t; n < s.length; n++) s[n].add(i) }, Ae.prototype.remove = function(t) { for (var i = 0, n = t = void 0 === t ? [] : t; i < n.length; i++) n[i].remove() }, Ae.prototype.updateOverlay = function(t) { if (t)
|
||
for (var i = 0, n = t; i < n.length; i++) n[i].updateOverlay();
|
||
else { var s, e = !this.aZ && this.viewChange,
|
||
r = (this.aZ = !1, this._overlays); for (s in r) r.hasOwnProperty(s) && r[s].updateOverlay({ viewChange: e }) } }, Ae.prototype.iy = function(t) { this.updateOverlay() }, Ae.prototype.addToGroup = function(t) { var i = this._container,
|
||
n = this._overlays,
|
||
s = t.hS,
|
||
e = t.dom;
|
||
i.appendChild(e), n[s] = t }, Ae.prototype.removeFromGroup = function(t) { var i = this._container,
|
||
n = this._overlays,
|
||
s = t.hS,
|
||
t = t.dom;
|
||
i.removeChild(t), delete n[s] }, Ae.prototype.vi = function(t) { return null }, Ae.prototype.destroy = function() { this.ey(); var t, i = this._overlays; for (t in i) i.hasOwnProperty(t) && i[t].remove();
|
||
this._overlays = {}, this._container && k.remove(this._container) }, Ae.prototype.getAllOverlays = function() { var t, i, n = this._overlays,
|
||
s = []; for (t in n) n.hasOwnProperty(t) && (i = n[t]) && s.push(i); return s }, Ae.prototype.ny = function() { this._map }, Ae.prototype.ey = function() { var t = this._map,
|
||
i = we_Ym;
|
||
t.off(i, this.iy) }, Ae);
|
||
|
||
function Ae(t, i) { void 0 === i && (i = {}); var n = de.call(this) || this,
|
||
t = (n.type = "AMap.DOMOverlayGroup", n.viewChange = !1, n.aZ = !1, n._options = { zIndex: 120 }, n._overlays = {}, (n._map = t).kv),
|
||
t = (n._parent = t.querySelector(".amap-layers"), i.className); return n._className = t, n.iy = n.iy.bind(n), n.ny(), n }
|
||
ze = Qt, st.Ei(A, ze), Object.defineProperty(A.prototype, "CLASS_NAME", { get: function() { return this.className }, eb: !1, nb: !0 }), A.prototype.getMap = function() { return this._map || null }, A.prototype.setMap = function(t) { t instanceof fr ? this.add(t) : null == t && this.remove() }, A.prototype.addTo = function(t) { this.add(t) }, A.prototype.add = function(t) { t && (this._add(t), this._parent) && (this._parent.addToGroup(this), this.updateOverlay()) }, A.prototype.remove = function() { this._map && this._parent && (this._parent.removeFromGroup(this), this._remove()) }, A.prototype.show = function() { this._opts.visible = !0, this.updateOverlay() }, A.prototype.hide = function() { this._opts.visible = !1, this.updateOverlay() }, A.prototype.getPosition = function() { var t = this._position; return t ? st.Bs(t) ? t : new st.LngLat(t[0], t[1]) : null }, A.prototype.setPosition = function(t) { this._position = t, this.updateOverlay() }, A.prototype.getAnchor = function() { return this._opts.anchor || Me.Nm }, A.prototype.setAnchor = function(t) { t && (this._opts.anchor = t, this.updateOverlay()) }, A.prototype.getOffset = function() { var t = this._opts.offset || [0, 0]; return new st.Pixel(t[0], t[1]) }, A.prototype.setOffset = function(t) { t && (t instanceof Array || void 0 === t.x || void 0 === t.y || (this._opts.offset = [t.x, t.y]), this.updateOverlay()) }, A.prototype.getAngle = function() { return this._opts.rotate || 0 }, A.prototype.setAngle = function(t) { this._opts.rotate = t, this.updateOverlay() }, A.prototype.getOrientation = function() { return this._opts.orientation }, A.prototype.setOrientation = function(t) { "number" == typeof t ? (this._opts.orientation = t, this._opts.rotate = this.dP(t)) : (this._opts.orientation = void 0, this._opts.rotate = 0), this.updateOverlay() }, A.prototype.getSize = function() { return this._getSize() }, A.prototype.setSize = function(t) { this._opts.size = st.ay(t) ? t.toArray() : t, this.updateOverlay() }, A.prototype.getzIndex = function() { return this._opts.zIndex }, A.prototype.setzIndex = function(t) { this._opts.zIndex = t, this.updateOverlay() }, A.prototype.getOptions = function() { return this._opts }, A.prototype.getContent = function() { return this._opts.content || "" }, A.prototype.setContent = function(t) { this._opts.content = t = void 0 === t ? "" : t, this._size = [0, 0], this._removeContent(), this._createDom(this.dom, t), this.updateOverlay() }, A.prototype.getBounds = function() { var t = this._position; return new l(t, t) }, A.prototype.getVisible = function() { return void 0 === this._opts.visible || this._opts.visible }, A.prototype.updateOverlay = function(t) { t = void 0 !== (t = (t = void 0 === t ? {} : t).viewChange) && t, this._map && this._setStyle(t) && this._applyStyle(t) }, A.prototype.uZ = function(t) { t = void 0 !== (t = (t = void 0 === t ? {} : t).viewChange) && t, this._map && (this._setStyle(t), this._applyStyle(t)) }, A.prototype.destroy = function() { this.dom && k.remove(this.dom) }, A.prototype.getCursor = function() { if (this._map) return this._map.getDefaultCursor() }, A.prototype.getContentDom = function() { return this.dom }, A.prototype._add = function(t) {}, A.prototype._remove = function() { this._map = null, this._parent = null }, A.prototype._createContainer = function() { var t = document.createElement("div"); return k.addClass(t, this._className), t }, A.prototype._createDefaultInnerDom = function() { return document.createElement("div") }, A.prototype._setStyle = function(t) { void 0 === t && (t = !1); var i = this._position,
|
||
i = this._points = this._map && i && this._map.lngLatToContainer(i).toArray(),
|
||
n = (this._map && this._map.getRotation(), this._style),
|
||
s = this._map && this._map.getZoom(),
|
||
e = this._opts.zooms || [2, 20],
|
||
r = void 0 === this._opts.visible || this._opts.visible,
|
||
s = s && (s < e[0] || s > e[1]),
|
||
e = n.visible,
|
||
r = (void 0 !== r && (n.visible = r), r && (n.visible = !s), this.ZF(i));
|
||
n.visible && (n.visible = !r); var r = (s = this._opts).zIndex,
|
||
o = void 0 === (o = s.anchor) ? Me.Nm : o,
|
||
h = void 0 === (h = s.offset) ? [0, 0] : h,
|
||
a = s.rotate,
|
||
u = s.scale,
|
||
f = s.noSelect,
|
||
c = [0, 0]; return "number" == typeof(s = s.orientation) ? n.rotate = this.dP(s) : void 0 !== a && (n.rotate = a), e !== n.visible && this._map && (this._map.render(), this._parent) ? !(this._parent.aZ = !0) : (t ? i && (n.left = i[0] + "px", n.top = i[1] + "px", c = n.translate) : (this._getContentSize(), (s = this._getStyleZIndex(r)) && (n.zIndex = s), void 0 !== u && (n.scale = u), i && (n.left = i[0] + "px", n.top = i[1] + "px"), (o || h) && (c = this._getOffset(o, h), n.translate = c, n.transformOrigin = -c[0] + "px " + -c[1] + "px"), n.pointerEvents = !0 === f ? "none" : "auto"), a = "translate(" + c[0] + "px, " + c[1] + "px) scale(" + n.scale + ") rotate(" + n.rotate + "deg)", st.Support.ie && (n.msTransform = a), n.transform = a, !0) }, A.prototype._getStyleZIndex = function(t) { return t }, A.prototype._getSize = function() { var i = (t = (t = this._opts.size || []) instanceof st.Size ? t.toArray() : t)[0],
|
||
t = void 0 === (t = t[1]) ? 0 : t,
|
||
s = (n = this._size)[0],
|
||
n = n[1]; return [(void 0 === i ? 0 : i) || (void 0 === s ? 0 : s), t || (void 0 === n ? 0 : n)] }, A.prototype._getContentSize = function() { var t = this._style,
|
||
i = this._getSize(),
|
||
n = 0,
|
||
s = 0;
|
||
i[0] && i[1] ? (n = i[0], s = i[1]) : this.dom && (i = this.dom, n = Math.ceil(i.offsetWidth) || 0, s = Math.ceil(i.offsetHeight) || 0, this._size = [n, s]), t.width = n + "px", t.height = s + "px", t.size = [n, s] }, A.prototype._applyStyle = function(t) { void 0 === t && (t = !1); var i, n, s = this._style,
|
||
e = this.dom; for (i in s) s.hasOwnProperty(i) && ("visible" === i ? (n = s[i] ? "block" : "none", e.style.display = n) : t ? "top" !== i && "left" !== i && "transform" !== i && "msTransform" !== i || (e.style[i] = s[i]) : "width" === i || "height" === i ? "0px" !== s[i] && (n = this._opts.size) && "AMap.InfoWindow" !== this.type && ("width" === i && (e.style[i] = n[0] + "px"), "height" === i) && (e.style[i] = n[1] + "px") : "translate" !== i && "scale" !== i && "rotate" !== i && (e.style[i] = s[i])) }, A.prototype._getOffset = function(t, i) { var n = (t = this._getAnchorOffset(t))[0],
|
||
t = t[1]; return [n + i[0], t + i[1]] }, A.prototype._getAnchorOffset = function(t) { var n = (i = this._style.size)[0],
|
||
s = i[1],
|
||
i = Me,
|
||
e = 0,
|
||
r = 0; if (Array.isArray(t)) return t; switch (t) {
|
||
case i.Nm:
|
||
e = 0; break;
|
||
case i.$m:
|
||
e = -n / 2; break;
|
||
case i.Um:
|
||
e = -n; break;
|
||
case i.Bm:
|
||
e = 0, r = -s / 2; break;
|
||
case i.center:
|
||
e = -n / 2, r = -s / 2; break;
|
||
case i.Wm:
|
||
e = -n, r = -s / 2; break;
|
||
case i.Gm:
|
||
r = -s; break;
|
||
case i.Zm:
|
||
e = -n / 2, r = -s; break;
|
||
case i.qm:
|
||
e = -n, r = -s } return [e, r] }, A.prototype._createDom = function(t, i) { return i && ("object" == typeof i && i instanceof HTMLElement ? t.appendChild(i) : t.innerHTML = i), t.addEventListener("touchstart", function(t) { t.cH = "markerContent" }), t }, A.prototype._removeContent = function() { this.dom.innerHTML = "" }, A.prototype._formatSize = function(t) { return [t.getWidth(), t.getHeight()] }, A.prototype.ZF = function(t) { var i, n = this._map; return !!(n && t && "3D" === (n = n.getView()).type && (n = n.Uu(), i = ke, t) && t[1] - n - i[0] <= 0) }, A.prototype._getRotationByPoints = function(t, i) { var n = i.y - t.y,
|
||
s = i.x - t.x,
|
||
e = 0; return (0 != n || 0 != s) && (i.x - t.x != 0 ? (e = Math.atan((i.y - t.y) / (i.x - t.x)), 0 <= n && s < 0 || n < 0 && s <= 0 ? e = Math.PI + e : n < 0 && 0 <= s && (e = 2 * Math.PI + e)) : e = i.y > t.y ? Math.PI / 2 : 3 * Math.PI / 2, Math.round(180 * e / Math.PI * 10) / 10) }, A.prototype._getRotationByLngLats = function(t, i) { var n = null == (n = this._map) ? void 0 : n.getProjection().project(t.KL, t.kT),
|
||
i = (t = null == (t = this._map) ? void 0 : t.getProjection().project(i.KL, i.kT))[0] - n[0],
|
||
t = t[1] - n[1],
|
||
n = 0; return (0 != i || 0 != t) && (0 != t ? (n = Math.atan(i / t), 0 <= i && 0 < t || (0 <= i && t < 0 || i < 0 && t < 0 ? n = Math.PI + n : i < 0 && 0 < t && (n = 2 * Math.PI + n))) : n = 0 < i ? Math.PI / 2 : 3 * Math.PI / 2, Math.round(180 * n / Math.PI * 10) / 10) }, A.prototype.dP = function(t) { var i = 0,
|
||
n = this._position,
|
||
s = (n instanceof AMap.LngLat && (n = [n.lng, n.lat]), this._map); return s && n && (t = this.pP(n, t), n = s.lngLatToContainer(n), s = s.lngLatToContainer(t), i = !1 === (t = this._getRotationByPoints(n, s)) ? 0 : t + Math.PI), i + 90 }, A.prototype.pP = function(t, i) { var n = null == (n = this._map) ? void 0 : n.getProjection().project(t[0], t[1]); return n[0] += Math.sin(i * Math.PI / 180) * Math.pow(2, 18 - this._map.getZoom()), n[1] += Math.cos(i * Math.PI / 180) * Math.pow(2, 18 - this._map.getZoom()), null == (t = this._map) ? void 0 : t.getProjection().unproject(n[0], n[1]) }, A.prototype.vP = function(t) { return 10 / Math.pow(2, t - 2) }, A.prototype.Ydt = function(n) { return st.T8t(this, void 0, void 0, function() { var i; return st.x8t(this, function(t) { switch (t.label) {
|
||
case 0:
|
||
return [4, ve.Ydt(n)];
|
||
case 1:
|
||
return i = t.y8t(), this._position = i, this.updateOverlay(), [2] } }) }) }; var ze, ji = A;
|
||
|
||
function A(t, i) { void 0 === t && (t = {}), void 0 === i && (i = {}); var n = ze.call(this) || this,
|
||
s = (n.type = pe, n.className = pe, n._style = { width: 0, height: 0, size: [0, 0], position: "absolute", top: 0, left: 0, translate: [0, 0], rotate: 0, scale: 1, transformOrigin: [0, 0], zIndex: 12, visible: !0, draggable: !1, zooms: st.zoomRange, noSelect: !1 }, n._size = [0, 0], n._dragObjects = { sy: [0, 0], hy: [0, 0], ly: [0, 0] }, n._className = "amap-overlay", n._originOpts = t, n._opts = st.assign({}, xe, t), n._opts.angle && (n._opts.rotate = n._opts.angle), !t.offset || t.offset instanceof Array || void 0 === t.offset.x || void 0 === t.offset.y || (n._opts.offset = [t.offset.x, t.offset.y]), n.hS = st.Util.stamp(n), i.className),
|
||
i = i.anchor,
|
||
s = (n._className = s, !t.anchor && i && (n._opts.anchor = i), t.content),
|
||
i = n._createContainer(); return n.dom = n._createDom(i, s), n._position = t.position, n.updateOverlay(), n } var Ce, Te = { uy: "AMap.Marker", py: "amap-markers", vy: "amap-marker", my: "//webapi.amap.com/theme/v1.3/markers/b/mark_bs.png", yy: 120, xy: 12, by: 2, gy: Math.pow(2, 31) },
|
||
Se = st.assign({}, xe, { title: "", clickable: !0, draggable: !1, bubble: !1, topWhenClick: !1, zIndex: Te.xy, cursor: "pointer", extData: {} }),
|
||
Ie = (Ce = si, st.Ei(Le, Ce), Le.prototype.vi = function(t) { var i, n, t = t.target; return st.isEmpty(this._overlays) || !t ? null : (i = k.closest(t, "amap-marker"), t = this._overlays, n = null, i && st.forEach(t, function(t) { t.dom === i && (n = t) }), n) }, Le.prototype.setTop = function(t) { var i;
|
||
t && ((i = this.Kl) && i !== t && i.setTop(!1), this.Kl = t) }, Le.prototype._createContainer = function(t) { var i = document.createElement("div"); return k.addClass(i, this._className), t.appendChild(i), i }, Le);
|
||
|
||
function Le(t) { return (t = Ce.call(this, t, { className: Te.py }) || this).type = Te.uy, t.className = Te.uy, t._container = t._createContainer(t._parent), t }
|
||
De = ji, st.Ei(z, De), z.prototype.getTitle = function() { return this._opts.title }, z.prototype.setTitle = function(t) { this._opts.title = t, this.dom && this.dom.setAttribute("title", t) }, z.prototype.getIcon = function() { return this._opts.icon }, z.prototype.setIcon = function(t) { t && (this._opts.icon = t, this._opts.content || this._removeContent(), "AMap.Icon" === t.CLASS_NAME && (this._opts.size = t.getSize()), this.wy(), this.updateOverlay()) }, z.prototype.getLabel = function() { return this._opts.label || {} }, z.prototype.setLabel = function(t) { var i, n = this._opts.label || {},
|
||
t = (this._opts.label = st.assign(n, t), n.content),
|
||
n = void 0 === (n = n._needUpdate) || n;
|
||
t ? ((i = this._y ? this.ky(t, this._y) : this._y = this.ky(t)) && (11 <= (t = void 0, t = this.v0()) || t < 0) && this.d0(), this.dom && this.dom.appendChild(i), n && this.updateOverlay()) : this._y && (k.remove(this._y), this._y = null) }, z.prototype.getClickable = function() { var t = this._opts.clickable; return !(void 0 !== t && !t) }, z.prototype.setClickable = function(t) { this._opts.clickable = !!(t = void 0 === t || t) }, z.prototype.getDraggable = function() { var t = this._opts.draggable; return void 0 !== t && t }, z.prototype.setDraggable = function(t) {
|
||
(this._opts.draggable = t) ? this._bindEvents(): this.T_() }, z.prototype.getTop = function() { return this._isTop }, z.prototype.setTop = function(t) { this._isTop = t = void 0 !== t && t; var i = this._parent;
|
||
i && t && i.setTop(this), this.updateOverlay() }, z.prototype.getCursor = function() { var t = this._opts.cursor; return !t && this._map ? this._map.getDefaultCursor() : t }, z.prototype.setCursor = function(t) { t && (this._opts.cursor = t) }, z.prototype.getExtData = function() { return this._opts.extData }, z.prototype.setExtData = function(t) { this._opts.extData = t }, z.prototype.remove = function() { this.T_(), this.ZH(), De.prototype.remove.call(this) }, z.prototype.moveTo = function() { console.log("Should implement AMap.moveAnimation plugin first.") }, z.prototype.moveAlong = function() { console.log("Should implement AMap.moveAnimation plugin first.") }, z.prototype.startMove = function() { console.log("Should implement AMap.moveAnimation plugin first.") }, z.prototype.stopMove = function() { console.log("Should implement AMap.moveAnimation plugin first.") }, z.prototype.pauseMove = function() { console.log("Should implement AMap.moveAnimation plugin first.") }, z.prototype.resumeMove = function() { console.log("Should implement AMap.moveAnimation plugin first.") }, z.prototype.setOptions = function(t) { this._opts = st.assign({}, Se, this._opts, t), t.content && this.setContent(t.content), t.offset && this.setOffset(t.offset), t.title && this.setTitle(t.title), t.label && this.setLabel(t.label), t.draggable && this.setDraggable(!0), this.updateOverlay() }, z.prototype.updateOverlay = function(t) { De.prototype.updateOverlay.call(this, t = void 0 === t ? {} : t);
|
||
t = this._y;
|
||
this._opts.label && t && (!t.parentElement && this.dom && this.dom.appendChild(t), 0 < (t = void 0, t = this.v0()) && t < 11 && this.My(), this.Ry()) }, z.prototype.emit = function(t, i) { var n = this.getCursor(); return this._map && ("mouseout" === t ? this._map.setCursor() : this._map.setCursor(n)), "click" === t ? this.getClickable() && (De.prototype.emit.call(this, t, i), void 0 !== (n = this.getOptions().topWhenClick)) && n && this.setTop(!0) : ("dragstart" !== t && "dragging" !== t && "dragend" !== t || (st.Support.$e || i.originEvent.buttons && 2 !== i.originEvent.buttons && i.originEvent.preventDefault(), this.getDraggable())) && De.prototype.emit.call(this, t, i), this }, z.prototype.toGeometry = function() { var t = this.getPosition(); if (t) return { type: "Point", coordinates: t && t.toJSON() } }, z.prototype.v0 = function() { var t = navigator.userAgent,
|
||
i = -1 < t.indexOf("compatible") && -1 < t.indexOf("MSIE"),
|
||
n = -1 < t.indexOf("Edge") && !i,
|
||
s = -1 < t.indexOf("Trident") && -1 < t.indexOf("rv:11.0"); return i ? (new RegExp("MSIE (\\d+\\.\\d+);").test(t), 7 === (i = parseFloat(RegExp.$1)) ? 7 : 8 === i ? 8 : 9 === i ? 9 : 10 === i ? 10 : 6) : n ? "edge" : s ? 11 : -1 }, z.prototype.d0 = function() { var t = this;
|
||
new MutationObserver(function() { t._opts.label && t.My() }).observe(this._y, { attributes: !0, characterData: !0, childList: !0, subtree: !0 }) }, z.prototype._add = function(t) { this._map = t, this._parent = t.pi, this.updateOverlay() }, z.prototype._createDom = function(t, i) { return this.dom = De.prototype._createDom.call(this, t, i), this.wy(), t }, z.prototype._createDefaultInnerDom = function() { var t = document.createElement("img"); return t.setAttribute("width", "19px"), t.setAttribute("height", "32px"), t.setAttribute("src", Te.my), this._size = [19, 32], t }, z.prototype._getMarkerOffset = function(t, i) { return i }, z.prototype._getStyleZIndex = function(t) { var i; return this._isTop ? i = Te.gy : void 0 !== t && (i = t), i }, z.prototype._createIcon = function(n, s) { var e = this,
|
||
t = n.getImage(),
|
||
i = n.getSize(),
|
||
r = n.getImageSize(),
|
||
o = n.getImageOffset(),
|
||
h = document.createElement("div"),
|
||
a = (h.className = "amap-icon", h.style.overflow = "hidden", document.createElement("img")); return a.onload = function() { var t = a.width,
|
||
i = a.height,
|
||
t = (n.Em([t, i]), e._size = r && r.length ? r : [t, i], e._getSize());
|
||
e._setIconSize(h, a, t, r), s && s() }, a.onerror = function() {}, h.appendChild(a), this._setIconStyle(h, a, { size: i, imageSize: r, imageOffset: o }), a.src = t, h }, z.prototype._setIconStyle = function(t, i, n) { var s = void 0 === (s = n.size) ? [0, 0] : s,
|
||
e = void 0 === (e = n.imageSize) ? [0, 0] : e,
|
||
n = void 0 === (n = n.imageOffset) ? [0, 0] : n;
|
||
i.style.top = n[1] + "px", i.style.left = n[0] + "px", this._setIconSize(t, i, s, e) }, z.prototype._setIconSize = function(t, i, n, s) { var e = n[0],
|
||
n = n[1],
|
||
r = s[0],
|
||
s = s[1];
|
||
e && (t.style.width = e + "px"), n && (t.style.height = n + "px"), r && s && (i.style.width = r + "px", i.style.height = s + "px") }, z.prototype._removeContent = function() { this.dom.innerHTML = "", this._opts.label && this.setLabel(this._opts.label) }, z.prototype._getD = function() { return this.dom }, z.prototype.wy = function() { var t, i = this,
|
||
s = (n = this._opts).content,
|
||
e = n.icon,
|
||
n = n.text;!s && e ? (t = "string" == typeof e ? new oe({ image: e }) : e, t = this._createIcon(t, function() { i.updateOverlay(), i._opts.label && i.My() }), this.dom.appendChild(t)) : s || e || n || (t = this._createDefaultInnerDom(), this._originOpts.anchor || (this._opts.anchor = "bottom-center"), this.dom.appendChild(t)) }, z.prototype.ky = function(t, i) { return i || ((i = document.createElement("div")).className = "amap-marker-label"), i.innerHTML = t, i }, z.prototype.My = function() { var t, i, n, s, e, r;
|
||
this._y && (r = this._style.size, i = (e = this._opts.label).offset, t = (i = st.oy(i = void 0 === i ? [0, 0] : i) ? i.toArray() : i)[0], i = i[1], n = this._y.offsetWidth, s = this._y.offsetHeight, n = this.zy.size = [n, s], r = (e = [(s = this.Sy(e, r, n))[0] + t, s[1] + i])[0], this.zy.top = e[1], this.zy.left = r) }, z.prototype.Sy = function(t, i, n) { var t = t.direction,
|
||
e = i[0],
|
||
r = i[1],
|
||
o = n[0],
|
||
h = n[1],
|
||
a = 0,
|
||
u = 0; switch (void 0 === t ? "right" : t) {
|
||
case Me.Nm:
|
||
a = 0, u = -h; break;
|
||
case Me.top:
|
||
case Me.$m:
|
||
a = e / 2 - o / 2, u = -h; break;
|
||
case Me.Um:
|
||
a = e, u = -h; break;
|
||
case Me.right:
|
||
case Me.Wm:
|
||
a = e, u = r / 2 - h / 2; break;
|
||
case Me.center:
|
||
a = e / 2 - o / 2, u = r / 2 - h / 2; break;
|
||
case Me.left:
|
||
case Me.Bm:
|
||
a = -o, u = r / 2 - h / 2; break;
|
||
case Me.Gm:
|
||
a = 0, u = r; break;
|
||
case Me.bottom:
|
||
case Me.Zm:
|
||
a = e / 2 - o / 2, u = r; break;
|
||
case Me.qm:
|
||
a = e, u = r; break;
|
||
default:
|
||
a = e / 2 - o / 2, u = -h } return [a, u] }, z.prototype.Ry = function() { var i = (t = this.zy).top,
|
||
t = t.left,
|
||
n = this._y;
|
||
n.style.top = i + "px", n.style.left = t + "px" }, z.prototype._bindEvents = function() { this.on("dragstart", this.Cy.bind(this)), this.on("dragging", this._dragging.bind(this)), this.on("dragend", this.Ly.bind(this)) }, z.prototype.XH = function() { this.dom && (this.dom.ondragstart = function() { return !1 }) }, z.prototype.T_ = function() { this.off("dragstart", this.Cy.bind(this)), this.off("dragging", this._dragging.bind(this)), this.off("dragend", this.Ly.bind(this)) }, z.prototype.ZH = function() { this.dom && (this.dom.ondragstart = null) }, z.prototype.Cy = function(t) { this.Ay(t) }, z.prototype._dragging = function(t) { var n = (i = t.lnglat).lng,
|
||
i = i.lat,
|
||
n = new st.LngLat(n, i);
|
||
this._map && (this.setPosition(n.toJSON()), this.Ay(t)) }, z.prototype.Ly = function(t) {}, z.prototype.Ay = function(t) { this._dragObjects = { sy: t.pixel, hy: t.pos, ly: t.lnglat } }; var De, Oe = z;
|
||
|
||
function z(t) { var i = De.call(this, t = void 0 === t ? {} : t, { className: Te.vy }) || this,
|
||
n = (i.type = Te.uy, i.className = Te.uy, i._isTop = !1, i.zy = { width: 0, height: 0, size: [0, 0], top: 0, left: 0, translate: [0, 0], zIndex: Te.by }, i._opts = st.assign({}, Se, i._opts), i._opts.size),
|
||
s = i._opts.icon; return !n && s instanceof oe && (n = s.getSize(), i._opts.size = n), n instanceof st.Size && (i._opts.size = i._formatSize(n)), t.title && i.setTitle(t.title), t.label && i.setLabel(t.label), t.draggable && i.setDraggable(!0), (s = t.map) && s instanceof fr && i.add(s), i.XH(), i } var Ee, Re, je, C = { getViewport: function(t) { return t ? [t.clientWidth, t.clientHeight] : [0, 0] }, getStyle: function(t, i) { var n, s = t.style[i]; return "auto" === (s = (s = (s = s && "auto" !== s || !document.defaultView ? s : (n = document.defaultView.getComputedStyle(t, null)) ? n[i] : null) && "auto" !== s || "height" !== i ? s : t.clientHeight + "px") && "auto" !== s || "width" !== i ? s : t.clientWidth + "px") ? null : s }, getViewportOffset: function(t) { var i, n = 0,
|
||
s = 0,
|
||
e = t,
|
||
r = document.body,
|
||
o = document.documentElement;
|
||
do { if (n += e.offsetTop || 0, s += e.offsetLeft || 0, n += parseInt(C.getStyle(e, "borderTopWidth"), 10) || 0, s += parseInt(C.getStyle(e, "borderLeftWidth"), 10) || 0, i = C.getStyle(e, "position"), e.offsetParent === r && "absolute" === i) break; if ("fixed" === i) { n += r.scrollTop || o.scrollTop || 0, s += r.scrollLeft || o.scrollLeft || 0; break } } while (e = e.offsetParent); for (e = t; e !== r && (n -= e.scrollTop || 0, s -= e.scrollLeft || 0, !C.m() && st.Support.webkit && (s += e.scrollWidth - e.clientWidth), e = e.parentNode);); return [s, n] }, m: function() { return Ee || (Re = "ltr" === C.getStyle(document.body, "direction"), Ee = !0), Re }, create: function(t, i, n, s) { return t = document.createElement(t), n && (t.className = n), i && (s && "before" === s ? (n = i.firstChild, i.insertBefore(t, n)) : i.appendChild(t)), t }, toggleClass: function(t, i, n) { n ? this.addClass(t, i) : this.removeClass(t, i) }, hasClass: function(t, i) { if (t && i) return 0 < t.className.length && new RegExp("(^|\\s)" + i + "(\\s|$)").test(t.className) }, addClass: function(t, i) { t && i && (t.classList && t.classList.add ? t.classList.add(i) : this.hasClass(t, i) || (t.className += (t.className ? " " : "") + i)) }, setClass: function(t, i) { t && (t.className = i || "") }, removeClass: function(t, n) { t && n && (t.classList && t.classList.remove ? t.classList.remove(n) : t.className = t.className.replace(/(\S+)\s*/g, function(t, i) { return i === n ? "" : t }).replace(/(^\s+|\s+$)/, "")) }, watchSize: function(n, s, e) { var i = document.createElement("iframe"),
|
||
r = (i.style.cssText = "width: 100%;height: 100%;position: absolute;pointEvents:none; opacity:0; margin: 0;padding: 0;border: none;", i.onload = function() { i && (i.contentWindow.onresize = t) }, n.appendChild(i), i.src = "javascript:void(0)", 0),
|
||
o = 0;
|
||
|
||
function t() { e.k = n.getBoundingClientRect(), e.M = [n.clientLeft, n.clientTop]; var t = n.offsetWidth,
|
||
i = n.offsetHeight;
|
||
t === r && i === o || (s(t, i), r = t, o = i) } return t(), e.resize = t, window.onscroll = t,
|
||
function() { var t;
|
||
e.resize && (e.resize = null), window.onscroll && (window.onscroll = null), i.contentWindow && (i.contentWindow.onresize = null, i.contentWindow.document.write(""), i.parentNode.removeChild(i), null != (t = i.contentWindow)) && t.close() } }, watchSize2: function(n, s, e) { var r, o, h = document.createElement("_"),
|
||
a = (h.className = "expand", h.appendChild(document.createElement("_"))),
|
||
u = (a.className = "shrink", h.appendChild(document.createElement("_"))),
|
||
t = (u.className = "expandChild", a.appendChild(document.createElement("_"))); return t.className = "shrinkChild", a.style.cssText = h.style.cssText = "height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1", t.style.cssText = u.style.cssText = "display:block;height:100%;transition:0s;width:100%", t.style.width = t.style.height = "200%", n.appendChild(h), f(),
|
||
function() { c(), n.removeChild(h) };
|
||
|
||
function f() { c(), e.k = n.getBoundingClientRect(), e.M = [n.clientLeft, n.clientTop]; var t = n.offsetWidth,
|
||
i = n.offsetHeight;
|
||
t === r && i === o || (r = t, o = i, u.style.width = 2 * t + "px", u.style.height = 2 * i + "px", h.scrollLeft = h.scrollWidth, h.scrollTop = h.scrollHeight, a.scrollLeft = a.scrollWidth, a.scrollTop = a.scrollHeight, s(t, i)), a.addEventListener("scroll", f), h.addEventListener("scroll", f) }
|
||
|
||
function c() { a.removeEventListener("scroll", f), h.removeEventListener("scroll", f) } }, mousePos: function(t, i, n) { return t && (n.k = t.getBoundingClientRect(), n.M = [t.clientLeft, t.clientTop]), t = n.k, [(i = i.touches && i.changedTouches ? 0 < i.touches.length ? i.touches[0] : i.changedTouches[i.changedTouches.length - 1] : i).clientX - t.left - n.M[0], i.clientY - t.top - n.M[1]] }, remove: function(t) { t && t.parentNode && t.parentNode.removeChild(t) }, empty: function(t) { for (; t.firstChild;) t.removeChild(t.firstChild) }, closest: function(t, i) { return t ? this.hasClass(t, i) ? t : (t = t.parentElement) ? C.closest(t, i) : null : null }, fillText: function(t, i) { if (t) return void 0 !== t.textContent ? t.textContent = i : void 0 !== t.innerText ? t.innerText = i : t.innerHTML = i, t }, _L: function(t) { for (var i = document.documentElement.style, n = 0; n < t.length; n += 1)
|
||
if (t[n] in i) return t[n];
|
||
return !1 }, rotate: function(t, i, n) { var s, e = C.kL;
|
||
n = n || { x: t.clientWidth / 2, y: t.clientHeight / 2 }, e ? (s = "", t.style[e] = s += " rotate(" + i + "deg)", t.style[C.ML[e] + "-origin"] = n.x + "px " + n.y + "px") : (s = Math.cos(i * Math.PI / 180), e = Math.sin(i * Math.PI / 180), t.style.filter = "progid:DXImageTransform.Microsoft.Matrix()", 0 < t.filters.length && ((i = t.filters.item(0)).Dx = -n.x * s + n.y * e + n.x, i.Dy = -n.x * e - n.y * s + n.y, i.M11 = i.M22 = s, i.M12 = -(i.M21 = e))) }, setCss: function(t, i) { t = t instanceof Array ? t : [t]; for (var n = 0; n < t.length; n += 1)
|
||
for (var s in i) i.hasOwnProperty(s) && (t[n].style[s] = i[s]); return this }, setOpacity: function(t, i) { t.style && ("opacity" in t.style ? t.style.opacity = "" + i : "filter" in t.style && (i = Math.round(100 * i), t.style.filter = "", 100 !== i) && (t.style.filter = " progid:DXImageTransform.Microsoft.Alpha(opacity=" + i + ")")) }, ML: {}, kL: Re = Ee = !1 },
|
||
Pe = (C.kL = C._L(["WebkitTransform", "OTransform", "MozTransform", "msTransform", "transform"]), C.ML = { transform: "transform", WebkitTransform: "-webkit-transform", OTransform: "-o-transform", MozTransform: "-moz-transform", msTransform: "-ms-transform" }, { uy: "AMap.InfoWindow", JP: "", XP: "amap-info", QP: 121, KP: 8, tF: 8, iF: [20, 20, 20, 20] }),
|
||
Be = st.assign({}, xe, { isCustom: !1, closeWhenClickMap: !1, anchor: "bottom-center", autoMove: !0, avoid: Pe.iF }),
|
||
Fe = (je = si, st.Ei(We, je), We.prototype.addToGroup = function(t) { this.Iy && this._overlays[this.Iy] && this.Iy !== t.hS && this._overlays[this.Iy].remove(), this.Iy = t.hS, je.prototype.addToGroup.call(this, t) }, We.prototype.removeFromGroup = function(t) { je.prototype.removeFromGroup.call(this, t), this.Iy = 0 }, We.prototype.close = function() { var t = this.Iy;
|
||
(t = this._overlays[t]) && (this.Iy = 0, t.close()) }, We.prototype.vi = function(t) { return t = t.target, this.Iy && t && C.closest(t, "amap-info") ? this._overlays[this.Iy] : null }, We.prototype.destroy = function() { this.Dy(), je.prototype.destroy.call(this) }, We.prototype.Rm = function() { this._map.on("click", this.Py) }, We.prototype.Dy = function() { this._map.off("click", this.Py) }, We);
|
||
|
||
function We(t) { var n = je.call(this, t, { className: Pe.JP }) || this; return n.type = Pe.uy, n.Py = function(t) { var i = n.Iy,
|
||
i = n._overlays[i];!C.closest(t.originEvent.target, "amap-info") && i && i.getOptions().closeWhenClickMap && (n.Iy = 0, i.close()) }, n._container = n._parent, n.Rm(), n }
|
||
Ne = ji, st.Ei(T, Ne), T.prototype.open = function(t, i) { t && t instanceof fr && i ? (this._opts.visible = !0, this.add(t), this.setPosition(i), this.jy(), this.emit("open"), this.GF()) : t && this._position ? (this._opts.visible = !0, this.add(t), this.jy(), this.emit("open"), this.GF()) : this._map && this._position && (this._opts.visible = !0, this.updateOverlay(), this.emit("open"), this.GF()) }, T.prototype.close = function() { this._parent && (this._opts.visible = !1, this.updateOverlay(), this.emit("close")) }, T.prototype.getIsOpen = function() { return !(!this._map || !this._opts.visible) }, T.prototype.setSize = function(t) { t instanceof st.Size && (t = t.toArray()), this._opts.size = t, this.updateOverlay() }, T.prototype.setContent = function(t) { Ne.prototype.setContent.call(this, t = void 0 === t ? "" : t), this.jy() }, T.prototype.setAnchor = function(t) { var i, n = this.dom && this.dom.querySelector(".amap-info-contentContainer");
|
||
t && n && ((i = this.g_([].slice.call(n.className.split(" ")))) && C.removeClass(n, i), this._size = [0, 0], C.addClass(n, t)), Ne.prototype.setAnchor.call(this, t) }, T.prototype.getDraggable = function() { return !1 }, T.prototype.setOptions = function(t) { this._opts = st.assign({}, Be, this._opts, t) }, T.prototype.updateOverlay = function(t) { void 0 === t && (t = {}), this._map && (t = t.viewChange, this._setStyle(t = void 0 !== t && t), this._applyStyle(t), t = this._getSize(), this.Fy) && t[0] && window.getComputedStyle(this.Fy).boxSizing }, T.prototype.getBounds = function() { return null }, T.prototype.getExtData = function() { return this._opts.extData || null }, T.prototype.setExtData = function(t) { this._opts.extData = t }, T.prototype._add = function(t) { this._map = t, this._parent = t.di, this.updateOverlay() }, T.prototype._remove = function() { Ne.prototype._remove.call(this), this.Ey() }, T.prototype._createDefaultInnerDom = function() { return document.createElement("div") }, T.prototype._createDom = function(t, i) { var n = this.Ny(t); return this.$y(n, i), t }, T.prototype._getContentSize = function() { var t, i, n = this._style,
|
||
s = this._getSize();
|
||
s[0] && s[1] && !this._opts.isCustom ? (t = s[0], i = s[1]) : (s = this.dom.querySelector(".amap-info-contentContainer")) && (t = s.clientWidth, i = s.clientHeight, this._size = [t, i]), n.width = t + "px", n.height = i + "px", n.size = [t, i] }, T.prototype._getAnchorOffset = function(t) { return [(t = Ne.prototype._getAnchorOffset.call(this, t))[0], t[1]] }, T.prototype.Ny = function(t) { var i = document.createElement("div"),
|
||
n = (C.addClass(i, "amap-info-shadowContainer"), document.createElement("div")); return C.addClass(n, "amap-info-contentContainer"), n.addEventListener("touchstart", function(t) { t.cH = "infoWindow" }), t.style.position = "absolute", i.style.position = "absolute", t.appendChild(i), t.appendChild(n), n }, T.prototype.$y = function(t, i) { var s = (n = this._opts).isCustom,
|
||
n = n.anchor;
|
||
void 0 !== s && s ? "object" == typeof i && i instanceof HTMLElement ? t.appendChild(i) : t.innerHTML = i + "" : (s = this.Fy = document.createElement("div"), C.addClass(s, "amap-info-content"), C.addClass(s, "amap-info-outer"), "object" == typeof i && i instanceof HTMLElement ? s.appendChild(i) : s.innerHTML = i ? i + "" : "", i = document.createElement("a"), C.addClass(i, "amap-info-close"), i.innerText = "×", s.appendChild(i), i = document.createElement("div"), C.addClass(i, "amap-info-sharp"), C.addClass(t, n), t.appendChild(s), t.appendChild(i)) }, T.prototype.jy = function() { var t = this.dom.querySelector(".amap-info-close");
|
||
t && t.addEventListener("click", this.close.bind(this)) }, T.prototype.Ey = function() { var t = this,
|
||
i = this.dom.querySelector(".amap-info-close");
|
||
i && i.removeEventListener("click", function() { t.close() }) }, T.prototype.Oy = function() { if (this._position) { var t = this._map; if (t && this._opts.autoMove && this.dom) { for (var i = this._getSize(), n = new st.Size(i[0], i[1]), s = t.lngLatToContainer(this._position).toArray(), e = this._getOffset(this.getAnchor(), this.getOffset().toArray()), r = st.vector.add(s, e), o = st.vector.add(r, i), h = t.getSize(), a = [this._opts.avoid || Pe.iF], u = 0, f = 0, c = 0; c < a.length; c += 1) { var l = a[c],
|
||
d = 0,
|
||
v = 0;
|
||
0 !== l[3] && 0 < (d = l[3] - (r[0] + u)) && (u += d), 0 !== l[1] && (d = h.getWidth() - l[1] - (o[0] + u)) < 0 && (u += d), 0 !== l[0] && 0 < (v = l[0] - (r[1] + f)) && (f += v), 0 !== l[2] && (v = h.getHeight() - l[2] - (o[1] + f)) < 0 && (f += v) }
|
||
r = st.vector.add(r, [u, f]), o = st.vector.add(o, [u, f]), r[e = s = 0] < 0 || n.getWidth() > h.getWidth() ? s = 20 - r[0] : h.getWidth() < o[0] && (s = h.getWidth() - o[0] - 25), r[1] < 0 || n.getHeight() > h.getHeight() ? e = 5 - r[1] : h.getHeight() < o[1] && (e = h.getHeight() - o[1] - 15), e += f, ((s += u) || e) && t.panBy(s, e) } } }, T.prototype.GF = function() { var t, i, n, s, e, r, o, h, a, u, f, c;
|
||
this._position && (t = this._map) && this._opts.autoMove && this.dom && (i = this._position, st.Bs(i) && (i = i.toArray()), h = (u = t.getSize()).getWidth() || 0, u = u.getHeight() || 0, f = this._getSize(), c = t.lngLatToContainer(i).toArray(), n = this._getOffset(this.getAnchor(), this.getOffset().toArray()), c = st.vector.add(c, n), a = st.vector.add(c, f), s = this._opts.avoid || Pe.iF, e = c[0], r = c[1], o = !1, c[1] - s[0] < 0 && (r = s[0], o = !0), a[0] + s[1] > h && (e = h - f[0] - s[1], o = !0), a[1] + s[2] > u && (r = u - s[2] - f[1], o = !0), c[0] - s[3] < 0 && (e = s[3], o = !0), o) && (h = st.vector.Ip([e, r], n), a = t.containerToLngLat(h).toArray(), u = st.vector.Ip(a, i), f = t.getCenter().toArray(), c = st.vector.Ip(f, u), t.panTo(c)) }, T.prototype.g_ = function(t) { var i, n, s = Me; for (n in s)
|
||
if (s.hasOwnProperty(n)) { var e = s[n]; if (-1 !== t.indexOf(e)) { i = e; break } }
|
||
return i }; var Ne, Ge = T;
|
||
|
||
function T(t) {
|
||
(t = Ne.call(this, t = void 0 === t ? {} : t, { className: Pe.XP, anchor: Be.anchor }) || this).type = Pe.uy, t._opts = st.assign({}, Be, t._opts), t._originOpts.zIndex || (t._opts.zIndex = Pe.QP); var i = t._opts.size; return i instanceof st.Size && (t._opts.size = t._formatSize(i)), t.jy(), t } var Ue, _e = "AMap.ContextMenu",
|
||
He = (Ue = si, st.Ei(Ve, Ue), Ve.prototype.addToGroup = function(t) { this.Iy && this._overlays[this.Iy] && this.Iy !== t.hS && this._overlays[this.Iy].remove(), this.Iy = t.hS, Ue.prototype.addToGroup.call(this, t) }, Ve.prototype.removeFromGroup = function(t) { Ue.prototype.removeFromGroup.call(this, t), this.Iy = 0 }, Ve.prototype.vi = function(t) { return t = t.target, this.Iy && t && k.closest(t, "amap-menu") ? this._overlays[this.Iy] : null }, Ve.prototype.destroy = function() { this.Uy(), Ue.prototype.destroy.call(this) }, Ve.prototype.By = function() { this._map.on("viewchange", this.Wy), this._map.on("click", this.Py) }, Ve.prototype.Uy = function() { this._map.off("viewchange", this.Wy), this._map.off("click", this.Py) }, Ve);
|
||
|
||
function Ve(t) { var n = Ue.call(this, t, { className: "" }) || this; return n.type = _e, n.className = _e, n.Wy = function() { var t;
|
||
n.Iy && (t = n._overlays[n.Iy]) && !t.getOptions().aliveWhenMapClick && n.removeFromGroup(t) }, n.Py = function(t) { var i = n.Iy,
|
||
i = n._overlays[i];
|
||
k.closest(t.originEvent.target, "amap-info") || !i || i.getOptions().aliveWhenMapClick || (n.Iy = 0, i.close()) }, n._container = n._parent, n.By(), n }
|
||
qe = ji, st.Ei(Qe, qe), Qe.prototype.open = function(t, i) { t && i ? (this._opts.visible = !0, this.add(t), this.setPosition(i), this.emit("open")) : this._map && this._position && (this._opts.visible = !0, this.updateOverlay(), this.emit("open")) }, Qe.prototype.close = function() { this._parent && (this._opts.visible = !1, this.uZ(), this.emit("close")) }, Qe.prototype.addItem = function(t, i, n) { this.Zy.push({ content: t, fn: i, order: n }), this.qy(this.dom), this.updateOverlay() }, Qe.prototype.removeItem = function(t, i) { for (var n = this.Zy, s = 0; s < n.length; s++) { var e = n[s];
|
||
e.content === t && e.fn === i && (n.splice(s, 1), s--) }
|
||
this.qy(this.dom), this.updateOverlay() }, Qe.prototype.getBounds = function() { return null }, Qe.prototype.getDraggable = function() { return !1 }, Qe.prototype._add = function(t) { this._map = t, this._parent = t.vm, this.updateOverlay() }, Qe.prototype._createDefaultInnerDom = function() { return document.createElement("div") }, Qe.prototype._createDom = function(t, i) { var n = this.dom = this.Yy(); return this._opts.isCustom && this._opts.content ? qe.prototype._createDom.call(this, n, this._opts.content) : this.qy(n), n }, Qe.prototype.Yy = function() { var t = document.createElement("div"); return k.addClass(t, this._className), t }, Qe.prototype.qy = function(t) { var i = this.Vy(this.Zy),
|
||
n = document.createElement("ul");
|
||
k.addClass(n, "amap-menu-outer"); for (var s = 0, e = i; s < e.length; s++) { var r = e[s],
|
||
r = this.Xy(r);
|
||
n.appendChild(r) }
|
||
t.innerHTML = "", t.appendChild(n) }, Qe.prototype.Vy = function(t) { return (t = void 0 === t ? [] : t).sort(function(t, i) { return isNaN(t.order) || isNaN(i.order) ? 0 : t.order - i.order }), t }, Qe.prototype.Xy = function(i) { var n = this,
|
||
t = document.createElement("li"); return t.innerHTML = i.content, t.addEventListener("click", function(t) { i.fn(t), n._opts.aliveWhenMapClick || n.hide() }), t }; var qe, Ke = Qe;
|
||
|
||
function Qe(t) { var i = qe.call(this, t = void 0 === t ? {} : t, { className: "amap-menu" }) || this; return i.type = _e, i.className = _e, i._opts = {}, i.Zy = [], i._opts = t, i._style.zIndex = 140, i }
|
||
|
||
function $e() { this.Hy = !1, this.ex = null, this.Ky = this.nx() }
|
||
$e.prototype.open = function(t, i, n) { var s, e, r, o, h, a, u, f, c, l = this;
|
||
this.Hy || (s = this.Jy, e = AMap.getConfig().server + "/verify/", (st.Support.$e ? (this.Ky.style.marginLeft = -Math.min(330, screen.width) / 2 + "px", document.body) : (r = this.Qy("amap-container", document.body)[0]) && 322 < r.clientWidth && 346 < r.clientHeight ? (this.Ky.style.position = "absolute", r) : (h = o = 0, r && (r = k.getViewportOffset(r), o = r[0], h = r[1]), this.Ky.style.top = "0%", this.Ky.style.left = "0%", a = (.5 - o) / 5, u = (.5 - h) / 5, f = setInterval(function() { h += u, .5 - (o += a) < .05 && .5 - h < .05 ? (l.Ky.style.top = "50%", l.Ky.style.left = "50%", clearInterval(f)) : (l.Ky.style.top = 100 * h + "%", l.Ky.style.left = 100 * o + "%") }, 25), document.body)).appendChild(this.Ky), c = !0, s.onload = function() { c ? c = !1 : l.Hy && (l.Ky.parentNode && l.Ky.parentNode.removeChild(l.Ky), l.Hy = !1, l.tx()) }, s.src = e + "jsapi.html?channel=JSAPI-" + t + "&from=" + encodeURIComponent(e + "success.html") + "&th=" + i + "&restUrl=" + encodeURIComponent(n), this.Hy = !0) }, $e.prototype.ix = function(t) { this.ex = t }, $e.prototype.tx = function() { this.ex && this.ex() }, $e.prototype.Qy = function(t, i) { if (window.getElementsByClassName) return window.getElementsByClassName(t, i); for (var n = (i || document).getElementsByTagName("*"), s = [], e = 0; e < n.length; e += 1)
|
||
for (var r = n[e], o = r.className.split(" "), h = 0; h < o.length; h += 1)
|
||
if (o[h] === t) { s.push(r); break }
|
||
return s }, $e.prototype.nx = function() { var t = document.createElement("div"),
|
||
i = (t.className = "amap-popup", t.style.zIndex = "2147483647", document.createElement("iframe")); return i.className = "amap-popup-content", t.appendChild(i), i.style.width = Math.min(330, screen.width) + "px", this.Jy = i, t }; var tr = { "restapi.amap.com/v3/place/text": "KEYWORD", "restapi.amap.com/v3/place/polygon": "POLYGON", "restapi.amap.com/v3/place/around": "NEARBY", "restapi.amap.com/v3/place/detail": "ID", "restapi.amap.com/v3/geocode/regeo": "REGEO" },
|
||
ir = new $e,
|
||
nr = (ir.ix(function() { nr.ox = !1; for (var t = nr.ax, i = 0, n = t.length; i < n; i += 1) { var s = t[i];
|
||
10 < n - i ? t[2]({ status: "error", info: "TIME_OUT_A" }) : nr.get(s[0], s[1], s[2]) }
|
||
nr.ax = [] }), sr.get = function(n, s, e, t) { if (void 0 === t && (t = {}), sr.ox) sr.ax.push([n, s, e]);
|
||
else { var i, r = n.split("://")[1],
|
||
o = tr[r],
|
||
h = void 0 !== o,
|
||
u = (a = AMap.getConfig()).key,
|
||
f = a.version,
|
||
c = a.appname,
|
||
l = a.jscode,
|
||
a = a.gaodeserver,
|
||
d = n + "?platform=JS&s=rsv3&logversion=2.0&key=" + u + "&sdkversion=" + f + "&appname=" + c + "&csid=" + st.Util.uuid(); for (i in l ? d += "&jscode=" + l : a && r && "restapi.amap.com" === r.split("/")[0] && (d = r.replace(r.split("/")[0], a) + "?platform=JS&s=rsv3&logversion=2.0&key=" + u + "&sdkversion=" + f + "&appname=" + c + "&csid=" + st.Util.uuid()), s) s.hasOwnProperty(i) && (d += "&" + i + "=" + s[i]);
|
||
yi.JSONP(d, function(t, i) { "complete" === t && (i = i.data, h) && 3e4 === i.errcode && i.data ? (sr.ox = !0, sr.ax.push([n, s, e]), ir.open(o, i.data.host, d)) : e(t, i) }, t) } }, sr.post = function(t, i, n) { var e = (s = AMap.getConfig()).key,
|
||
r = s.version,
|
||
o = s.appname,
|
||
h = s.jscode,
|
||
s = s.gaodeserver,
|
||
a = t.split("://")[1],
|
||
t = t + "?platform=JS&s=rsv3&logversion=2.0&key=" + e + "&sdkversion=" + r + "&appname=" + o + "&csid=" + st.Util.uuid();
|
||
h ? t += "&jscode=" + h : s && a && "restapi.amap.com" === a.split("/")[0] && (t = a.replace(a.split("/")[0], s) + "?platform=JS&s=rsv3&logversion=2.0&key=" + e + "&sdkversion=" + r + "&appname=" + o + "&csid=" + st.Util.uuid()), yi.Ajax(t, { type: "POST", content: JSON.stringify(i), requestContentType: "text/plain" }, function(t, i) { "complete" === t ? (i = i.data, n(t, JSON.parse(i))) : n(t, i) }) }, sr.ox = !1, sr.ax = [], sr);
|
||
|
||
function sr() {}
|
||
|
||
function er(t, i, r) { var n = AMap.getConfig(),
|
||
s = n.server + "/v3/assistant/coordinate/convert",
|
||
e = AMap.Util.parseLngLatData(t),
|
||
o = []; if (e instanceof Array) { for (var h = 0, a = e.length; h < a; h += 1) o.push(e[h] + "");
|
||
o = o.join(";") } else o = e + "";
|
||
t = { key: n.key, s: "rsv3", locations: o, coordsys: i || "gps" }, AMap.WebService.get(s, t, function(t, i) { if ("complete" === t && i.status && "1" === i.status) { for (var n = i.locations.split(";"), s = 0; s < n.length; s += 1) { var e = n[s].split(",");
|
||
n[s] = new AMap.LngLat(e[0], e[1]) }
|
||
r && "function" == typeof r && r("complete", { info: "ok", locations: n }) } else r && "function" == typeof r && r("error", i.info); "error" === t && r("error", i.info) }) }
|
||
hr.prototype.setCenter = function(t) { t instanceof st.LngLat ? this.cB = t.toArray() : this.cB = t, this.dB = (t = this.map.getProjection()).project.apply(t, this.cB) }, hr.prototype.getCenter = function() { return this.cB }, hr.prototype.lngLatToCoord = function(t) { var i = this.map.getProjection().project; return t instanceof st.LngLat && (t = t.toArray()), this.cB || this.setCenter(t), this.pB(i(t[0], t[1]), this.dB) }, hr.prototype.lngLatsToCoords = function(t) { if (st.Util.isArray(t)) { var i = this.map.getProjection().project,
|
||
n = []; if (st.Util.vB(t[0])) this.cB || this.setCenter(t), n[0] = this.pB(i(t[0], t[1]), this.dB);
|
||
else
|
||
for (var s = 0, e = t.length; s < e; s++) { var r = t[s]; if (st.Util.vB(r[0])) this.cB || this.setCenter(r), n[s] = this.pB(i(r[0], r[1]), this.dB);
|
||
else { for (var o = [], h = 0, a = r.length; h < a; h++) { var u = r[h]; if (st.Util.vB(u[0])) this.cB || this.setCenter(u), o[h] = this.pB(i(u[0], u[1]), this.dB);
|
||
else { for (var f = [], c = 0, l = r.length; c < l; c++) { var d = u[c];
|
||
st.Util.vB(d[0]) && (this.cB || this.setCenter(d), f[c] = this.pB(i(d[0], d[1]), this.dB)) }
|
||
o[h] = f } }
|
||
n[s] = o } }
|
||
return 0 < n.length ? n : t } return t }, hr.prototype.getCameraParams = function() { this.mB(); var t, i, n, s, e, r, o, h = this.map.getView(),
|
||
a = h.pz(),
|
||
u = this.pB(this.dB, this.Us); return "3D" === h.type ? (t = (e = a.lB()).fov, n = e.near, s = e.far, o = e.position, i = e.target, e = e.up, { fov: t / Math.PI * 180, near: n, far: s, position: st.Pt(this.pB(o, u), [o[2]]), lookAt: st.Pt(this.pB(i, u), [i[2]]), up: e }) : "2D" === h.type ? (i = (t = a.lB()).rotation, n = t.near, s = t.far, e = t.top, h = t.bottom, a = t.left, r = t.right, o = t.position, { rotation: i, near: n, far: s, top: e, bottom: h, left: a, right: r, position: st.Pt(this.pB(o, u), [o[2]]) }) : void 0 }, hr.prototype.getMVPMatrix = function() { this.mB(); var t = this.map.getView().pz(),
|
||
i = this.pB(this.dB, this.Us),
|
||
n = st.Il(); return this.Xl = t.Vl(), n.set([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, i[0], i[1], 0, 1]), st.multiply(this.Xl, this.Xl, n), this.Xl }, hr.prototype.mB = function() { var i = (t = this.map.getView().getStatus()).optimalZoom,
|
||
t = t.centerCoord;
|
||
i >= st.Ra ? (i = st.lcs.getLocalByCoord([t[0], t[1]]), this.Us = i.center) : this.Us = [0, 0] }, hr.prototype.pB = function(t, i) { var n = [0, 0]; return n[0] = t[0] - i[0], n[1] = t[1] - i[1], n }; var rr, or = hr;
|
||
|
||
function hr(t) { this.Us = [0, 0], t || console.error("需要传入 map 实例对象。new AMap.CustomCoords(map);"), this.map = t, this.mB() } var ar = [116.397128, 39.916527],
|
||
ur = se;
|
||
st.Ei(S, ur), S.prototype.setCenter = function(t, i, n) { void 0 === i && (i = !1), t instanceof st.LngLat && (t = t.toJSON()), !i && this.Ev ? this.viewChange({ lng: t[0], lat: t[1] }, n) : this.om({ center: t }) }, S.prototype.getStyleByUserId = function(t, i) { return this.qY(t, i) }, S.prototype.getCustomTypeByContainerPos = function(t) { var i, n, s, e = this.getCustomTypeByPos(t); return e && e[0] ? (i = {}, s = e[0][0], e = { x: e[0][1], y: e[0][2], z: s }, n = (t = t.lnglat).lng, t = t.lat, s = st.ZY(s, s, n, t, e), i.tileInnerCoord = s, i.tileCoord = e, i) : null }, S.prototype.getScreenShot = function(t, i) { for (var n = this.getSize(), s = document.createElement("canvas"), e = s.getContext("2d"), r = (t = t || n.width, i = i || n.height, s.width = t, s.height = i, n.width, n.height, this.do.childNodes), o = [], h = 0; h < r.length; h += 1) o.push(r[h]); for (h = 0; h < o.length; h += 1) { var a = o[h]; "CANVAS" === a.tagName && e.drawImage(a, 0, 0, t, i) } return s.toDataURL() }, S.prototype.updateView = function(t, i) { this.om(t, i = void 0 === i || i) }, S.prototype.destroy = function() { delete this.hx, ur.prototype.destroy.call(this) }, S.prototype.setZoomAndCenter = function(t, i, n, s) { void 0 === n && (n = !1), this.Pv || (t = this.getZoom()), i instanceof st.LngLat && (i = i.toJSON()), !n && this.Ev ? this.viewChange({ lng: i[0], lat: i[1], zoom: t }, s) : this.om({ center: i, zoom: t }) }, S.prototype.getBounds = function() { return new l(this._view.getStatus().bounds) }, S.prototype.getCenter = function() { var i = (t = this._view.getOptions().center)[0],
|
||
t = t[1]; return new st.LngLat(+i.toFixed(6), +t.toFixed(6)) }, S.prototype.getGraphicInfo = function() { return this.wX() }, S.prototype.setZoom = function(t, i, n) { void 0 === i && (i = !1), this.Pv && (!i && this.Ev ? this.viewChange({ zoom: t }, n) : this.om({ zoom: t })) }, S.prototype.getZoom = function(t) { return void 0 === t && (t = 2), +this._view.getOptions().zoom.toFixed(t) }, S.prototype.zoomIn = function() { this.setZoom(this.getZoom() + 1) }, S.prototype.zoomOut = function() { this.setZoom(this.getZoom() - 1) }, S.prototype.getPitch = function() { return this._view.getOptions().pitch }, S.prototype.setPitch = function(t, i, n) {!(i = void 0 !== i && i) && this.Ev ? this.viewChange({ pitch: t }, n) : this.om({ pitch: t }) }, S.prototype.getRotation = function() { return this._view.getOptions().rotation }, S.prototype.setRotation = function(t, i, n) { void 0 === t && (t = 0), !(i = void 0 !== i && i) && this.Ev ? this.viewChange({ rotation: t }, n) : this.om({ rotation: t }) }, S.prototype.setBounds = function(t, i, n) { void 0 === i && (i = !1), n = (void 0 === n ? [0, 0, 0, 0] : n) || [0, 0, 0, 0], t instanceof l && (t = t.toJSON()), t = this.em(t, n), this.setZoomAndCenter(t[2], [t[0], t[1]], i) }, S.prototype.panTo = function(t, i) { t instanceof st.LngLat && (t = t.toJSON()), this.viewChange({ lng: t[0], lat: t[1] }, i) }, S.prototype.getBindHandler = function() { return this.hx }, S.prototype.panBy = function(t, i, n) { var s, e, r, o, h, a, u, f, l = (c = this.getSize()).width / 2 - t,
|
||
c = c.height / 2 - i,
|
||
d = this.getCenter();
|
||
this.lx && this.ux && (s = Math.sqrt(t * t + i * i), u = this.getProjection(), e = (void 0 === this.ux.lng ? d : this.ux).lng, d = (void 0 === this.ux.lat ? d : this.ux).lat, r = void 0 === this.ux.zoom ? this.getZoom() : this.ux.zoom, o = void 0 === this.ux.rotation ? this.getRotation() : this.ux.rotation, h = void 0 === this.ux.pitch ? this.getPitch() : this.ux.pitch, a = u.getResolution(r), u = u.project(e, d), f = o / 180 * Math.PI, t = Math.atan(t / i) - f, i < 0 && (t += Math.PI), f = s * Math.sin(t), i = s * Math.cos(t), u[0] -= a * f, u[1] += a * i, this.setCenter([e, d], !0), this.setZoom(r, !0), this.setRotation(o, !0), this.setPitch(h, !0)), this.panTo(this.containerToLngLat([l, c]), n) }, S.prototype.viewChange = function(t, i) { var n, s, e, r, o, h, a, u = new J(.4, 0, .15, 1),
|
||
f = (new J(.67, 0, 1, .42), new J(.95, .25, .79, 1)),
|
||
c = new J(.18, .66, .55, .86),
|
||
l = this.getZoom(),
|
||
d = this.getPitch(),
|
||
v = this.getRotation(),
|
||
p = this.getCenter().toJSON(),
|
||
m = 0,
|
||
y = 0,
|
||
b = 0,
|
||
g = 0;
|
||
this.lx ? (st.Util.cancelAnimFrame(this.lx), this.ux = st.assign(this.ux, t)) : this.ux = t; var M = (t = this.ux).zoom,
|
||
w = t.pitch,
|
||
k = t.rotation,
|
||
x = t.lng,
|
||
A = t.lat,
|
||
z = (void 0 !== M && (n = M - l, m = u.h(Math.abs(n / 10)), m = 1e3 * Math.max(Math.min(1, m), .1)), void 0 !== w && (s = w - d, y = Math.abs(16.7 * s)), void 0 !== k && (e = k - v, b = Math.abs(16.7 * e)), void 0 !== x && void 0 !== A && (t = [], a = this._view.getStatus().centerCoord, r = x - p[0], o = A - p[1], h = this.getProjection().project(x, A), t[0] = Math.abs(h[0] - a[0]) / this.getResolution(), t[1] = Math.abs(h[1] - a[1]) / this.getResolution(), 0, h = u.h(Math.min(t[0] / this.getSize().width, 1)), a = u.h(Math.min(t[1] / this.getSize().height, 1)), g = 1e3 * Math.max(Math.min(1, a, h), .05, h, a)), Math.max(m, y, b, g)),
|
||
C = 0;
|
||
|
||
function T() { var t, i = {};
|
||
z <= C ? (void 0 !== M && (i.zoom = M), void 0 !== w && (i.pitch = w), void 0 !== k && (i.rotation = k), void 0 !== x && void 0 !== A && (i.center = [x, A]), this.om(i), st.Util.cancelAnimFrame(this.lx), this.lx = !1, this.ux = {}) : (C += 16.7, t = Math.min(1, u.p(C / z)), void 0 !== w && (i.pitch = s * t + d), void 0 !== k && (i.rotation = e * t + v), void 0 !== x && void 0 !== A && (n && .5 < n ? t = c.h(C / z) : n && n < -.5 && (t = f.h(C / z)), i.center = [r * t + p[0], o * t + p[1]]), void 0 !== M && (t = (n < 0 ? c : f).h(C / z), i.zoom = n * t + l), this.om(i), this.lx = st.Util.requestAnimFrame(T.bind(this))) }
|
||
void 0 !== i && (z = i), this.Ev || (z = -1), T.call(this) }, S.prototype.getContainer = function() { return this.kv }, S.prototype.add = function(t) { for (var i = [], n = [], s = [], e = [], r = 0, o = t = Array.isArray(t) ? t : [t]; r < o.length; r++) { var h = o[r]; if (st.px(h)) this.addLayer(h);
|
||
else if (st.er(h)) st.RF(h) ? (this.add(h.getOverlays()), h.setMap(this)) : this.am(h);
|
||
else switch (h.type) {
|
||
case "AMap.Marker":
|
||
case "AMap.ElasticMarker":
|
||
case "AMap.Text":
|
||
i.push(h); break;
|
||
case "AMap.InfoWindow":
|
||
n.push(h); break;
|
||
case "AMap.ContextMenu":
|
||
s.push(h); break;
|
||
case "AMap.LabelMarker":
|
||
e.push(h) } }
|
||
this.pi.add(i), this.di.add(n), this.vm.add(s), e.length && this.rm().add(e), this.setNeedUpdate(!0) }, S.prototype.remove = function(t) { for (var i = [], n = [], s = [], e = [], r = 0, o = t = Array.isArray(t) ? t : [t]; r < o.length; r++) { var h = o[r]; if (st.er(h)) st.RF(h) ? (this.remove(h.getOverlays()), h.setMap(null)) : this.$F.remove(h);
|
||
else if (st.px(h)) this.removeLayer(h);
|
||
else switch (h.type) {
|
||
case "AMap.Marker":
|
||
case "AMap.ElasticMarker":
|
||
case "AMap.Text":
|
||
i.push(h); break;
|
||
case "AMap.InfoWindow":
|
||
n.push(h); break;
|
||
case "AMap.ContextMenu":
|
||
s.push(h); break;
|
||
case "AMap.LabelMarker":
|
||
e.push(h) } }
|
||
e.length && this.rm().remove(e), this.pi && this.pi.remove(i), this.di && this.di.remove(n), this.vm && this.vm.remove(s), this.setNeedUpdate(!0) }, S.prototype.lngLatToCoords = function(t) { var i; return st.Bs(t) && (t = [t.lng, t.lat]), (i = this.getProjection()).project.apply(i, t) }, S.prototype.coordsToLngLat = function(t) { var i = (i = this.getProjection()).unproject.apply(i, t); return new AMap.LngLat(i[0], i[1]) }, S.prototype.lngLatToContainer = function(t) { var i = (t = st.Bs(t) ? [t.lng, t.lat] : t)[0],
|
||
n = t[1],
|
||
t = void 0 === (t = t[2]) ? 0 : t,
|
||
s = this._view,
|
||
e = s.getOptions().zoom || this.xt[1],
|
||
i = (s = s.lnglatToContainer(+i, +n, t, e))[0],
|
||
n = s[1]; return new st.Pixel(i, n) }, S.prototype.lnglatToContainer = function() { console.log && console.log("请使用 lngLatToContainer 方法替代。") }, S.prototype.containerTolnglat = function() { console.log && console.log("请使用 containerToLngLat 方法替代。") }, S.prototype.containerToLngLat = function(t) { var t = t instanceof Array ? (i = t[0], t[1]) : (i = t.x, t.y),
|
||
t = (i = this._view.containerTolnglat(i, t))[0],
|
||
i = i[1]; return new st.LngLat(t, i) }, S.prototype.coordToContainer = function(t) { var i; return (i = this._view)._u.apply(i, t) }, S.prototype.containerToCoord = function(t) { return t instanceof st.Pixel && (t = t.toArray()), this._view.ku(t[0], t[1]) }, S.prototype.pixelToLngLat = function(t, i) { void 0 === i && (i = this.getZoom()), t = t instanceof Array ? (n = t[0], t[1]) : (n = t.x, t.y); var n = st.V[this._view.au()].unproject(n, t, i),
|
||
t = n[0],
|
||
i = n[1]; return new st.LngLat(t, i) }, S.prototype.pixelTolnglat = function() { console.log && console.log("请使用 pixelToLngLat 方法替代。") }, S.prototype.unproject = function() { console.log && console.log("请使用 pixelToLngLat 方法替代。") }, S.prototype.lngLatToPixel = function(t, i) { var n = (t = t instanceof st.LngLat ? t.toJSON() : t)[0],
|
||
t = t[1];
|
||
void 0 === i && (i = this.getZoom());
|
||
t = (n = st.V[this._view.au()].project(n, t, i))[0], i = n[1]; return new st.Pixel(t, i) }, S.prototype.project = function(t, i) { return console.log && console.log("请使用 lngLatToPixel 方法替代。"), this.lngLatToPixel(t, i) }, S.prototype.lnglatToPixel = function(t, i) { return console.log && console.log("请使用 lngLatToPixel 方法替代。"), this.lngLatToPixel(t, i) }, S.prototype.lnglatToPixelArray = function(t, i) { var n = (t = t instanceof st.LngLat ? t.toJSON() : t)[0],
|
||
t = t[1]; return void 0 === i && (i = this.getZoom()), st.V[this.getView().au()].project(n, t, i) }, S.prototype.getTileCoordByLngLat = function(t, i, n) { var s = (t = t instanceof st.LngLat ? t.toJSON() : t)[0],
|
||
t = t[1],
|
||
s = st.V[this.getView().au()].project(s, t, n),
|
||
t = Math.floor(s[0] / 256),
|
||
s = Math.floor(s[1] / 256); return new st.ca(n, t, s) }, S.prototype.addOverlay = function(t) { this.am(t), this.setNeedUpdate(!0) }, S.prototype.removeOverlay = function(t) { this.ar(t), this.setNeedUpdate(!0) }, S.prototype.getResolution = function(t) { return t = (t || this.getCenter()).kT, this.getProjection().getResolution(this.getZoom()) * Math.cos(t * Math.PI / 180) }, S.prototype.getScale = function(t) { return this.getResolution() * (t || 96) / .0254 }, S.prototype.getCity = function(n, t) { nr.get(AMap.getConfig().server + "/v3/geocode/regeo", { extensions: "", output: "json", location: t || this.getCenter().toJSON() }, function(t, i) { "complete" === t && i.status + "" == "1" ? (t = i.regeocode.addressComponent, n({ province: t.province, city: t.city instanceof Array ? "" : t.city, citycode: t.citycode instanceof Array ? "" : t.citycode, district: t.district instanceof Array ? "" : t.district })) : n({}) }) }, S.prototype.setCity = function(r, o) { var h = this;
|
||
nr.get(AMap.getConfig().server + "/v3/config/district", { output: "json", subdistrict: "0", extensions: "all", keywords: r }, function(t, i) { if ("complete" === t && i.status + "" == "1") { if ((t = i.districts) && t.length) { i = t[0], /[^\w]+/.test(r) && (t = st.find(t, function(t) { return t.name === r })) && t !== i && (i = t); try { var n = i.center.split(","),
|
||
s = i.level,
|
||
e = void 0; switch (s) {
|
||
case "city":
|
||
e = 10; break;
|
||
case "province":
|
||
e = 7; break;
|
||
case "district":
|
||
e = 12; break;
|
||
case "country":
|
||
e = 4; break;
|
||
default:
|
||
e = 12 } - 1 !== i.name.indexOf("市") && (e = 10), h.setZoomAndCenter(e, n), o && o.call(h, n, e) } catch (t) {} } } else o(null, null) }) }, S.prototype.setFitView = function(t, i, n, s) { if (void 0 === i && (i = !1), void 0 === n && (n = [60, 60, 60, 60]), void 0 === s && (s = Math.min(17.5, se.t_[1])), !((t = st.FF(t) ? t.getAllOverlays() : t) instanceof Array && 0 === t.length)) { n = Boolean(n) ? n : [60, 60, 60, 60], (t = !(t = t || []) || t instanceof Array ? t : [t]) && 0 !== t.length || (t = this.getAllOverlays()); var e, r, t = this.nm(t); if (t && (!window._AMapConfig || t.check())) return e = t.toJSON(), e = this.em(e, n, s), "d" === st.Support.baseRender && (e[2] = Math.floor(e[2])), this.viewChange({ lng: e[0], lat: e[1], zoom: e[2] }, r = i ? 0 : r), t } }, S.prototype.getFitZoomAndCenterByOverlays = function(t, i, n) { if (void 0 === i && (i = [0, 0, 0, 0]), void 0 === n && (n = st.zoomRange[1]), t = this.nm(t)) return t = t.toJSON(), [(t = this.em(t, i, n))[2], new st.LngLat(t[0], t[1])] }, S.prototype.getFitZoomAndCenterByBounds = function(t, i, n) { return void 0 === i && (i = [0, 0, 0, 0]), void 0 === n && (n = st.zoomRange[1]), t instanceof l && (t = t.toJSON()), [(t = this.em(t, i, n))[2], new st.LngLat(t[0], t[1])] }, S.prototype.addControl = function(t) { t.addTo(this), this.controls.push(t) }, S.prototype.removeControl = function(t) { t.remove ? t.remove() : t.removeFrom && t.removeFrom(this, this.controls); for (var i = 0; i < this.controls.length; i++)
|
||
if (this.controls[i] === t) return void this.controls.splice(i - 1, 1) }, S.prototype.L$ = function() {}, S.prototype.D$ = function() { return "zh_cn" }, S.prototype.set = function(t, i) { switch (t) {
|
||
case "layers":
|
||
this.setLayers(i); break;
|
||
case "projection":
|
||
break;
|
||
case "pitch":
|
||
this.setPitch(i); break;
|
||
case "debug":
|
||
this.debug = i; break;
|
||
case "showLabel":
|
||
this.showLabel = i; break;
|
||
case "zoom":
|
||
this.setZoom(i); break;
|
||
case "center":
|
||
this.setCenter(i); break;
|
||
case "rotation":
|
||
this.setRotation(i); break;
|
||
case "dragEnable":
|
||
this.setStatus({ dragEnable: i }); break;
|
||
case "zoomEnable":
|
||
this.setStatus({ zoomEnable: i }); break;
|
||
case "scrollWheel":
|
||
this.setStatus({ scrollWheel: i }); break;
|
||
case "jogEnable":
|
||
this.setStatus({ jogEnable: i }); break;
|
||
case "doubleClickZoom":
|
||
this.setStatus({ doubleClickZoom: i }); break;
|
||
case "keyboardEnable":
|
||
this.setStatus({ keyboardEnable: i }); break;
|
||
case "animateEnable":
|
||
this.setStatus({ animateEnable: i }); break;
|
||
case "pitchEnable":
|
||
this.setStatus({ pitchEnable: i }); break;
|
||
case "touchZoom":
|
||
this.setStatus({ touchZoom: i }); break;
|
||
case "isHotspot":
|
||
this.setStatus({ isHotspot: i }); break;
|
||
case "style":
|
||
this.setStyleByPlat(i) } }, S.prototype.setMapStyle = function(t) { this.f_(t), this.setStatus({ mapStyle: t }), this.indoorMap && this.indoorMap.hide() }, S.prototype.getMapStyle = function() { var t, i = this.getStatus(); return i && i.mapstyleUrl ? (t = i.mapstyleUrl, "normal" === i.mapstyleUrl ? "amap://styles/normal" : t) : "" }, S.prototype.getAllOverlays = function(i) { var t = this.$F.getAllOverlays(),
|
||
n = st.Pt(t),
|
||
t = this.pi.getAllOverlays(),
|
||
s = this.di.getAllOverlays();
|
||
st.vx(t, function(t) { n.push(t) }), s && s.length && st.Util.Ig(n, s); for (var e = 0, r = this.zv; e < r.length; e++) { var o = r[e];
|
||
o instanceof ys && st.Util.Ig(n, o.getAllOverlays()) } return n = n.filter(function(t) { return !(t._opts && t._opts.innerOverlay || i && !(-1 < t.className.toLocaleLowerCase().indexOf(i))) }) }, S.prototype.clearMap = function() { for (var t = this.getAllOverlays(), i = 0; i < t.length; i++) { var n = t[i];
|
||
n && n.remove && n.remove() } }, S.prototype.clearInfoWindow = function() { this.di && this.di.close() }, S.prototype.addImage = function(t, i) { this.I_ && this.I_.addImage(t, i) }, S.prototype.getImage = function(t) { if (this.I_) return this.I_.getImage(t) }, S.prototype.getFeatures = function() { return this.Cw }, S.prototype.setFeatures = function(t) { this.Cw = t; for (var i = this.yS(), n = this.getLayers(), s = 0; s < n.length; s++) { var e = n[s]; "AMap.Buildings" === e.CLASS_NAME && e.getState().u$ && (i ? e.show() : e.hide()) }
|
||
this.setNeedUpdate(!0) }, S.prototype.hasLayer = function(i) { var t = this.getLayers(); return -1 < st.findIndex(t, function(t) { return t === i }) }, S.prototype.getMapApprovalNumber = function() { var t = this.c_,
|
||
i = { satellite: "GS(2023)4047", district: "GS(2024)1158" }; return t && ("normal" === t || "amap://styles/normal" === t) || (i.base = "GS(2024)1158"), i }, S.prototype.setMask = function(t) { t && (this.c$ = t, this.d$ || (this.d$ = new zs({ zIndex: -10, visible: !0, path: this.c$ }), this.addLayer(this.d$)), null != (t = this.d$)) && t.setMask(this.c$) }, S.prototype.cancelMapAnimate = function() { this.lx && (st.Util.cancelAnimFrame(this.lx), this.lx = -1, this.ux = {}) }, S.prototype.setLabelRejectMask = function(t) { void 0 !== t && (this.NH = t, this.setNeedUpdate(!0)) }, S.prototype.queryOverlayByPosition = function(t) { return this.FY(t) }, S.prototype.am = function(t) { this.$F.add(t) }, S.prototype.ar = function(t) { this.sm().remove(t) }, S.prototype.setStyle = function(t) { this.RY(t) }, S.prototype.setStyleByPlat = function(t) { this.RY(t) }; var ur, cr, fr = S;
|
||
|
||
function S(t, i) { void 0 === i && (i = { zoom: 9, center: [116.397128, 39.916527], rotation: 0, pitch: 0, viewMode: "2D" }); var n = this,
|
||
s = null; if (null === (s = t instanceof HTMLDivElement || null !== (t = document.getElementById(t)) ? t : s)) throw Error("Map container div not exist");
|
||
st.Support.amapRunTime && !st.Support.amapRunTime["map-init"] && (st.Support.amapRunTime["map-init"] = (new Date).getTime()), i.zooms = i.zooms || se.t_, t = !1, void 0 === i.zoom && (t = !0, i.zoom = Math.max(Math.min(i.zooms[1], 12), i.zooms[0])), i.center = i.center ? st.Bs(i.center) ? i.center.toJSON() : i.center : ar, i.rotation = i.rotation || 0, i.layers = i.layers || [], i.baseRender = st.Support.isWebGL ? "w" : "d", i.showIndoorMap = i.showIndoorMap || !1, i.vectorMapForeign = i.vectorMapForeign || !1, i.overseaDataType = i.overseaDataType || "", i.showOversea = i.showOversea || !1, i.vdataProxy = i.vdataProxy || "", i.poiIcon = i.poiIcon || void 0, i.vdataProxy && (AMap.getConfig().vdataProxy = i.vdataProxy), n = ur.call(this, s, i) || this, t && (s = n.em(rr)[2], n.setZoom(s, !0)), n.pi = new Ie(n), n.di = new Fe(n), n.vm = new He(n), n.hx = new ht(n), n.hx.Xt(), n.plugin = AMap.plugin; for (var e = 0; e < i.layers.length; e++) { var r = i.layers[e];
|
||
r && "AMap.IndoorMap" === r.CLASS_NAME && r.setMap(n) } return !i.showIndoorMap || "normal" !== n.c_ && "amap://styles/normal" !== n.c_ || n.isDOMMode() || n.addLayer(n.indoorMap = new AMap.IndoorMap({ zIndex: 8, opacity: 1, map: n })), n.YG = i.vectorMapForeign, n.QZ = i.overseaDataType, n.Dpt = i.showOversea, n.jdt = performance && performance.now(), i.vectorMapForeign && n.addLayer(new AMap.Mapbox({ zIndex: 8, opacity: 1, visible: !0, map: n })), n.lcs.setMap(n), n.customCoords = new or(n), n.getOutseaState() && n.bZ.MZ.tY.add({ NZ: function() { n.bZ.MZ.wZ.gZ() }, group: "default", UZ: function() { return n.bZ.MZ.wZ.stencil.AS }, FZ: function() { return 0 } }), n }
|
||
|
||
function lr(t) { var i = cr.call(this, t) || this; return i.CLASS_NAME = "AMap.ImageLayer", i._tileUrl = t.url || t.tileUrl, i.ir = t.bounds, i.Qh = t.zIndex || 6, i.tl = void 0 === t.opacity ? 1 : t.opacity, i.il = void 0 === t.visible || t.visible, i.xt = void 0 === t.zooms ? st.zoomRange : t.zooms, i.canvas = t.canvas, i }
|
||
cr = s, st.Ei(lr, cr), lr.prototype.getSourceConfig = function() { return { id: this._id, type: "image", tileUrl: this._tileUrl, bounds: this.ir, canvas: this.canvas, zooms: this.xt } }, lr.prototype.co = function() { return this._id }, lr.prototype.getState = function() { return { visible: this.il, opacity: this.tl, layer: this, rejectMapMask: this._rejectMapMask, depthTest: this.AF, ce: this.IF } }; var dr, vr = { tileUrl: "", url: "", bounds: [0, 0, 0, 0], opacity: 1, visible: !0, zIndex: 4, zooms: st.zoomRange },
|
||
pr = (dr = pi = lr, st.Ei(mr, dr), mr.prototype.getImageUrl = function() { return this._tileUrl }, mr.prototype.setImageUrl = function(t) { var i;
|
||
t && (this._tileUrl = t, this.getSourceConfig(), (i = this.getSource()) && i._tileUrl && i.reLoadImgage && (i._tileUrl = t, i.reLoadImgage(t)), this._opts.url = t, this.uo.getSource(this._id).Fo(!1), this.map) && this.map.setNeedUpdate(!0) }, mr.prototype.getBounds = function() { return this.ir }, mr.prototype.setBounds = function(t) { t && (this.ir = t, this.map.setNeedUpdate(!0)) }, mr);
|
||
|
||
function mr(t) { var i = this; if ((t = void 0 === t ? vr : t).tileUrl || t.url) return t.bounds = t.bounds || vr.bounds, t.opacity = (void 0 === t.opacity ? vr : t).opacity, t.visible = (void 0 === t.visible ? vr : t).visible, t.zIndex = (void 0 === t.zIndex ? vr : t).zIndex, t.canvas = void 0, (i = dr.call(this, t) || this).onCreated(), i; throw new Error("ImageLayer need an Url") } var yr, br, gr = { url: "", tileUrl: "", bounds: [0, 0, 0, 0], opacity: 1, visible: !0, zooms: st.zoomRange, zIndex: 6 },
|
||
Mr = (yr = pi, st.Ei(wr, yr), wr.prototype.setCanvas = function(t) { this.canvas = t, this.reFresh() }, wr.prototype.getElement = function() { return this.canvas }, wr.prototype.getBounds = function() { return this.ir }, wr.prototype.setBounds = function(t) { t && (this.ir = t, this.map.setNeedUpdate(!0)) }, wr.prototype.reFresh = function() { this.map && this.map.setNeedUpdate(!0) }, wr.prototype.destroy = function() { var t = this.getSource();
|
||
t && t.destroy && t.destroy() }, wr);
|
||
|
||
function wr(t) { var i = this; return (t = void 0 === t ? gr : t).bounds = t.bounds || gr.bounds, t.opacity = (void 0 === t.opacity ? gr : t).opacity, t.visible = (void 0 === t.visible ? gr : t).visible, t.tileUrl = "", (i = yr.call(this, t) || this).onCreated(), i.CLASS_NAME = "AMap.CanvasLayer", i }
|
||
|
||
function kr(t, i) { var n = br.call(this, i) || this; return n.CLASS_NAME = "AMap.CustomLayer", n.eP = !1, n.UF = !1, n.render = i.render || function() {}, n.canvas = t, n.Qh = i.zIndex || 11, n.tl = void 0 === i.opacity ? 1 : i.opacity, n.il = void 0 === i.visible || i.visible, n.UF = void 0 !== i.alwaysRender && i.alwaysRender, n.xt = i.zooms || st.zoomRange, n.canvas.style.opacity = "" + n.tl, n.canvas.style.display = n.il ? "block" : "none", n.map && n.gx(n.canvas), n }
|
||
br = s, st.Ei(kr, br), kr.prototype.getState = function() { return !this.eP && this.map && this.gx(this.canvas), { visible: this.il, opacity: this.tl, zIndex: this.Qh, layer: this, rejectMapMask: this._rejectMapMask, depthTest: this.AF, ce: this.IF, kv: this._container, alwaysRender: this.UF } }, kr.prototype.getSourceConfig = function() { return { id: this._id, type: "custom", zooms: this.xt } }, kr.prototype.co = function() { return this._id }, kr.prototype.setOpacity = function(t) { br.prototype.setOpacity.call(this, t), this.canvas.style.opacity = "" + this.tl }, kr.prototype.setMap = function(t) { t || this.destroy(), br.prototype.setMap.call(this, t), t && this.gx(this.canvas) }, kr.prototype.setzIndex = function(t) { this.Qh = t, this._container && (this._container.style.zIndex = this.Qh + "") }, kr.prototype.destroy = function() { var t;
|
||
this._container && (this.map ? this.map.do.removeChild(this._container) : (t = document.querySelector(".amap-layers")) && t.removeChild(this._container), this._container = null) }, kr.prototype.gx = function(t) { this._container || (this._container = document.createElement("div"), this._container.style.zIndex = this.Qh + "", this._container.className = "amap-layer amap-e", this._container.appendChild(t), this.map.do.appendChild(this._container), this.eP = !0) }, xr = kr, st.Ei(zr, xr); var xr, Ar = zr;
|
||
|
||
function zr(t, i) { return (t = xr.call(this, t, i) || this).onCreated(), t } var Cr, Tr = { zIndex: 120, opacity: 1, zooms: st.zoomRange, cursor: "pointer", alwaysRender: !0 },
|
||
Sr = (Cr = st.Event, st.Ei(I, Cr), I.prototype.setMap = function(t) { t ? (this._map = t).add(this.a$) : this._map && (this.clear(), this._map.remove(this.a$)) }, I.prototype.getMap = function() { return this._map || null }, I.prototype.getData = function() { return this.VL }, I.prototype.setData = function(t) { var i = this;
|
||
t && (this.VL = t, this.XD(), AMap.Util.requestAnimFrame(function() { i.emit("complete") })) }, I.prototype.getStyle = function() { return 1 === this.Ze.length ? this.Ze[0] : this.Ze }, I.prototype.setStyle = function(t) { if (t) { Array.isArray(t) || (t = [t]); var i = this.Ze,
|
||
n = []; if (i && i.length)
|
||
for (var s = 0; s < t.length; s++) { var e = t[s],
|
||
r = i[s] || i[0];
|
||
n.push(AMap.extend({}, r, e)) } else n = t;
|
||
this.Ze = n, this.XD() } }, I.prototype.getOpacity = function() { return this._opts.opacity }, I.prototype.setOpacity = function(t) { this._opts.opacity = t, this.a$ && this.a$.setOpacity(t) }, I.prototype.getzIndex = function() { return this._opts.zIndex }, I.prototype.setzIndex = function(t) { this._opts.zIndex = t, this.a$ && this.a$.setzIndex(t) }, I.prototype.getZooms = function() { return this._opts.zooms || [2, 30] }, I.prototype.setZooms = function(t) { this._opts.zooms = t, this.a$ && this.a$.setZooms(t) }, I.prototype.getCursor = function() { return this._opts.cursor || "default" }, I.prototype.show = function() { this.a$.show() }, I.prototype.hide = function() { this.a$.hide() }, I.prototype.clear = function() { this.a$.clear(), this.VL = [] }, I.prototype.XD = function() { var t = this.VL,
|
||
i = this.Ze,
|
||
n = [],
|
||
s = this.getCursor(); if (t && i) { for (var e = 0, r = t; e < r.length; e++) { var o, h, a, u, f, c = r[e],
|
||
l = c.lnglat,
|
||
d = void 0 === (d = c.style) ? 0 : d;
|
||
l && (o = (a = i[d] || i[0]).url, f = void 0 === (f = a.anchor) ? new AMap.Pixel(0, 0) : f, u = a.size, h = a.rotation, d = void 0 === (a = a.zIndex) ? d : a, a = u.width ? u.toArray() : u, u = f.x ? f.toArray() : f, (f = new AMap.LabelMarker({ position: l, zIndex: d, cursor: s, rotation: h, icon: { image: o, size: a, anchor: u } })).qD = c, this.Rm(f), n.push(f)) }
|
||
this.jT = n, this.a$.clear(), this.a$.add(n) } }, I.prototype.Rm = function(t) { var r = this;
|
||
t.on(["click", "dblclick", "mouseover", "mousemove", "mouseout", "mouseup", "mousedown", "touchstart", "touchend"], function(t) { var i, n = t.type,
|
||
s = r._map,
|
||
e = r.getCursor(); "default" !== e && s && (i = s.getDefaultCursor(), "mouseover" === n ? s.setCursor(e) : "mouseout" === n && s.setCursor(i)), r.QD(t) }) }, I.prototype.QD = function(t) { var i = t.type,
|
||
t = this.KD(t);
|
||
this.emit(i, t) }, I.prototype.KD = function(t) { var i = t.target; return t.target = this, { target: t.target, type: t.type, data: i.qD || {} } }, I);
|
||
|
||
function I(t, i) { var n = Cr.call(this) || this;
|
||
n.CLASS_NAME = "AMap.MassMarks", n._opts = AMap.extend({}, Tr, i); var s = (i = n._opts).zIndex,
|
||
e = i.opacity,
|
||
r = i.zooms,
|
||
i = i.style; return n.a$ = new AMap.LabelsLayer({ zIndex: s, opacity: e, zooms: r, collision: !1, allowCollision: !1, VT: !0 }), n.setData(t), n.setStyle(i), n.XD(), n } var Ir, Lr = "AMap.Text",
|
||
Dr = "amap-overlay-text-container",
|
||
Or = (Ir = Oe, st.Ei(Er, Ir), Er.prototype.getText = function() { return this._opts.text }, Er.prototype.getOptions = function() { return this._opts }, Er.prototype.setText = function(t) { var i = this.wx(t);
|
||
this._opts.text = t, this.setContent(i) }, Er.prototype.setStyle = function(t) { t && (this._x = t, this._opts.style = t, this._size = [0, 0], this.updateOverlay()) }, Er.prototype.updateOverlay = function(t) { void 0 === t && (t = {}), this.dom && !st.isEmpty(this._x) && this.kx(this._x), Ir.prototype.updateOverlay.call(this, t) }, Er.prototype.wx = function(t) { var i = document.createElement("div"); return k.addClass(i, Dr), i.innerHTML = t || "", i }, Er.prototype.kx = function(t) { void 0 === t && (t = {}); var i = this.dom.querySelector("." + Dr); if (i)
|
||
for (var n in t) t.hasOwnProperty(n) && (i.style[n] = t[n]) }, Er);
|
||
|
||
function Er(t) { var i = Ir.call(this, t = void 0 === t ? {} : t) || this; return i.className = Lr, i.type = Lr, i._x = {}, i._size = [0, 0], t.style && (i._x = t.style), t.text && i.setText(t.text), i } var Rr, jr = { zooms: st.zoomRange, opacity: 1, rank: 1, bubble: !1, visible: !0, zIndex: 1, cursor: "pointer", noSelect: !1, icon: { clipOrigin: [0, 0], anchor: [0, 0], retina: !0 }, richText: { clipOrigin: [0, 0], anchor: [0, 0], retina: !0 }, innerOverlay: !1, rotation: 0, text: { content: "", direction: "right", offset: [0, 0], zooms: st.zoomRange, style: { fontSize: 12, fontFamily: "sans-serif", fontWeight: "normal", fillColor: "#000", strokeWidth: 0, padding: "3", fold: !1 } } },
|
||
Pr = { uy: "AMap.LabelMarker", gy: Math.pow(2, 31) },
|
||
Br = { constructor: { time: 0, highResTime: 0 }, setIcon: { time: 0, highResTime: 0 }, setText: { time: 0, highResTime: 0 } },
|
||
Fr = (Rr = Qt, st.Ei(L, Rr), L.prototype.nY = function(t) { var i, n = st.yn(t); for (i in jr) jr.hasOwnProperty(i) && void 0 === n[i] && (n[i] = st.clone(jr[i])); return n }, L.prototype.getName = function() { return this._opts.name }, L.prototype.setName = function(t) { this._opts.name = t }, L.prototype.getBounds = function() { var t = this._position; return new l(t, t) }, L.prototype.getPosition = function() { return new st.LngLat(this._position[0], this._position[1]) }, L.prototype.setPosition = function(t) { t && ("string" == typeof t ? t = st.map(t.split(","), function(t) { return parseFloat(t) }) : st.Bs(t) && (t = t.toJSON()), this._position = t, this.to()) }, L.prototype.getZooms = function() { return this._opts.zooms }, L.prototype.setRichText = function(t) { t && (st.assign(this._opts.richText, t), this.to()) }, L.prototype.getRichText = function() { return this._opts.richText }, L.prototype.setZooms = function(t) { void 0 === t && (t = st.zoomRange), this._opts.zooms = t, this.to() }, L.prototype.getOpacity = function() { return this._opts.opacity }, L.prototype.setOpacity = function(t) { void 0 !== t && (this._opts.opacity = t, this.to()) }, L.prototype.setRotation = function(t) { void 0 !== t && (this._opts.rotation = t, this.to()) }, L.prototype.getRotation = function() { return void 0 === this._opts.rotation ? 0 : this._opts.rotation }, L.prototype.getzIndex = function() { return this._opts.zIndex }, L.prototype.setzIndex = function(t) { this._opts.zIndex = t, this.to() }, L.prototype.getRank = function() { return this._opts.rank }, L.prototype.setRank = function(t) { this._opts.rank = t, this.to() }, L.prototype.getText = function() { return this._originOpts.text && this._opts.text || null }, L.prototype.setText = function(t) { t && (st.assign(this._opts.text, t), this.to()) }, L.prototype.getIcon = function() { return this._originOpts.icon && this._opts.icon || null }, L.prototype.setIcon = function(t) { t && (st.assign(this._opts.icon, t), this.to()) }, L.prototype.getOptions = function() { return this._opts }, L.prototype.getDraggable = function() { return !1 }, L.prototype.getExtData = function() { return this._opts.extData || null }, L.prototype.setExtData = function(t) { this._opts.extData = t }, L.prototype.setTop = function(t) { void 0 === t && (t = !0), this._parent && this._parent.setTop(this, t), t ? (this.vL = this._opts.zIndex || 1, this.setzIndex(Pr.gy)) : (t = this.vL || this._opts.zIndex || 1, this.setzIndex(t)) }, L.prototype.setCursor = function(t) { t && (this._opts.cursor = t) }, L.prototype.getCursor = function() { return this._opts.cursor || "default" }, L.prototype.setVisible = function(t) { void 0 !== t && (this._opts.visible = t, this.to()) }, L.prototype.getVisible = function() { return this._opts.visible || !0 }, L.prototype.getCollision = function() { var t, i = this.getVisible(),
|
||
n = !1; return this._parent && i && (t = this.hS, n = this._parent.IL(t)), i && n }, L.prototype.show = function() { this._opts.visible = !0, this.to() }, L.prototype.hide = function() { this._opts.visible = !1, this.to() }, L.prototype.emit = function(t, i) { var n = this._opts || {},
|
||
s = n.icon,
|
||
e = n.text,
|
||
r = e && e.content,
|
||
o = n.richText,
|
||
h = this.getCursor(),
|
||
h = (this._map && ("mouseout" === t ? this._map.setCursor() : this._map.setCursor(h)), { data: { name: r, txt: r, position: this._position, extData: {}, rank: n.rank, zooms: n.zooms }, opts: { visible: n.visible, opacity: n.opacity, zooms: n.zooms, zIndex: n.zIndex, icon: s, richText: o, text: e } }); return i.data = h, Rr.prototype.emit.call(this, t, i), this }, L.prototype.remove = function() { this._parent && this._parent.remove(this) }, L.prototype.to = function() { var n = this;
|
||
this._parent && this._parent.to({ vv: !0 }, function() { var t = (new Date).getTime(),
|
||
i = 0; "performance" in window && "function" == typeof performance.now && (i = performance.now()), n.Ndt.setIcon = { time: t, highResTime: i }, n.Ndt.setText = { time: t, highResTime: i } }) }, L.prototype.getStatus = function() { return this.Ndt }, L.prototype.Cs = function(t) {
|
||
(this._parent = t) && t.map ? this._map = t.map : this._map = null }, L.prototype.Ydt = function(n) { return st.T8t(this, void 0, void 0, function() { var i; return st.x8t(this, function(t) { switch (t.label) {
|
||
case 0:
|
||
return [4, ve.Ydt(n)];
|
||
case 1:
|
||
return i = t.y8t(), this.setPosition(i), [2] } }) }) }, L);
|
||
|
||
function L(t) { var i = Rr.call(this) || this,
|
||
t = (i.type = Pr.uy, i.className = Pr.uy, i.hS = st.Util.stamp(i), i._originOpts = t, i._opts = i.nY(t), t.position && i.setPosition(t.position), i.Ndt = Br, (new Date).getTime()),
|
||
n = 0; return "performance" in window && "function" == typeof performance.now && (n = performance.now()), i.Ndt.constructor = { time: t, highResTime: n }, i }
|
||
Wr = st.Event, st.Ei(Gr, Wr), Gr.prototype.addTo = function(t) { this.map = t, this.map.controls.push(this), t.getControlContainer().appendChild(this._container), t.on("beforeDestroy", this.remove.bind(this)) }, Gr.prototype.removeFrom = function(t) { t ? (t.off("beforeDestroy", this.remove.bind(this)), t.getControlContainer().removeChild(this._container), delete this.map) : this.map && (this.map.off("beforeDestroy", this.remove.bind(this)), this.map.getControlContainer().removeChild(this._container), delete this.map) }, Gr.prototype.remove = function() { this.map && (this.map.off("beforeDestroy", this.remove.bind(this)), this.map.getControlContainer().removeChild(this._container), delete this.map) }, Gr.prototype.show = function() { this._container.style.display = "block", this.emit("show"), this.il = !0 }, Gr.prototype.hide = function() { this._container.style.display = "none", this.emit("hide"), this.il = !1 }, Gr.prototype.initContainer = function() { this._className ? (this._container = k.create("div", null, "amap-control amap-" + this._className), void 0 === this._config.visible || this._config.visible || (this._container.style.display = "none")) : this._container = k.create("div", null, "amap-control"), this.Pb() }, Gr.prototype.Pb = function() { var t = 0,
|
||
i = 0,
|
||
n = 0,
|
||
s = 0; switch (this._config.offset && 0 < this._config.offset.length && (t = this._config.offset[0] + t, i = this._config.offset[1] + i, n = this._config.offset[0] + n, s = this._config.offset[1] + s), t += "px", i += "px", n += "px", s += "px", this._config.position) {
|
||
case "LT":
|
||
this._container.style.top = i, this._container.style.left = t, this._container.style.bottom = "", this._container.style.right = ""; break;
|
||
case "RT":
|
||
this._container.style.top = i, this._container.style.right = n, this._container.style.bottom = "", this._container.style.left = ""; break;
|
||
case "LB":
|
||
this._container.style.bottom = s, this._container.style.left = t, this._container.style.top = "", this._container.style.right = ""; break;
|
||
case "RB":
|
||
this._container.style.bottom = s, this._container.style.right = n, this._container.style.top = "", this._container.style.left = ""; break;
|
||
default:
|
||
this._container.style.top = this._config.position.top || "", this._container.style.left = this._config.position.left || "", this._container.style.right = this._config.position.right || "", this._container.style.bottom = this._config.position.bottom || "" } }; var Wr, Nr = Gr;
|
||
|
||
function Gr(t) { var i = Wr.call(this) || this; return i.il = !0, i._config = t, i.il = void 0 === t.visible || t.visible, i } var Ur, _r = { ua: (xi = window.navigator).userAgent, mobile: st.Support.$e, plat: st.Support.plat, mac: st.Support.mac, windows: st.Support.windows, ios: st.Support.ios, iPad: st.Support.iPad, iPhone: st.Support.iPhone, android: st.Support.android, android23: st.Support.android23, chrome: st.Support.chrome, firefox: st.Support.firefox, safari: st.Support.safari, wechat: st.Support.wechat, uc: st.Support.SL, qq: st.Support.qq, ie: st.Support.ie, ie6: st.Support.ie6, ie7: st.Support.ie7, ie8: st.Support.ielt9 && !st.Support.ie7 && !st.Support.ie6, ie9: st.Support.ie9, ie10: st.Support.ie10, ie11: st.Support.ie11, edge: st.Support.edge, ielt9: st.Support.ielt9, baidu: st.Support.baidu, isLocalStorage: st.Support.RL, isGeolocation: !!xi.geolocation, mobileWebkit: st.Support.mobileWebkit, mobileWebkit3d: st.Support.mobileWebkit3d, mobileOpera: !!st.Support.mobileOpera, retina: st.Support.Ue, touch: !!st.Support.touch, msPointer: !!st.Support.msPointer, pointer: !!st.Support.pointer, baseRender: st.Support.baseRender, wasm: st.Support.wasm, webkit: st.Support.webkit, ie3d: st.Support.ie3d, webkit3d: st.Support.webkit3d, gecko3d: st.Support.gecko3d, opera3d: st.Support.opera3d, any3d: st.Support.any3d, isCanvas: st.Support.isCanvas, isSvg: st.Support.isSvg, isVML: st.Support.ie, isWorker: !!window.Worker, isWebsocket: !!window.WebSocket, isWebGL: st.Support.isWebGL, checkWebGL: function() { return st.Support.isWebGL = st.Support.sY(), st.Support.isWebGL } },
|
||
ft = (Ur = s, st.Ei(Yr, Ur), Yr.prototype.getState = function() { return { zooms: this.xt, heightFactor: this.Q_, visible: this.il, zIndex: this.Qh, opacity: this.tl, wallColor: [], roofColor: [], layer: this, rejectMapMask: this._rejectMapMask, depthTest: this.AF, ce: this.IF } }, Yr.prototype.getLayerConfig = function() { return Ur.prototype.getLayerConfig.call(this) }, Yr.prototype.getSourceConfig = function() { return { id: this._id, type: "building", tileUrl: AMap.getConfig().protocol + (st.Support.wasm ? "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v3" : "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v2"), tileSize: 0, zooms: st.zoomRange } }, Yr.prototype.co = function() { return this._id }, Yr.prototype.destroy = function() { this.Jh && this.Jh.destroy && (this.Jh.destroy(), delete this.Jh) }, Yr);
|
||
|
||
function Yr() { var t = Ur.call(this) || this; return t.CLASS_NAME = "AMap.Buildings", t.Q_ = 1, t._id = "building", t } var Zr, Xr = { zooms: [14.8, st.zoomRange[1]], opacity: 1, heightFactor: 1, visible: !0, zIndex: 11, wallColor: [.94, .94, .94, .9], roofColor: [.89, .89, .86, .9], u$: !1 },
|
||
Jr = (Zr = ft, st.Ei(Hr, Zr), Hr.prototype.setStyle = function(t) { this.fL = t, this.uL() }, Hr.prototype.getState = function() { return { zooms: this.xt, heightFactor: this.Q_, visible: this.il, zIndex: this.Qh, opacity: this.tl, wallColor: this.sz, roofColor: this.rz, vS: this.fL, layer: this, u$: this.cL, rejectMapMask: this._rejectMapMask, depthTest: this.AF, ce: this.IF } }, Hr.prototype.uL = function() { this.map && (this.getSource().reload(), this.map.setNeedUpdate(!0)) }, Hr);
|
||
|
||
function Hr(t) { void 0 === t && (t = Xr); var i = Zr.call(this) || this; return i.cL = !1, i.xt = (void 0 === t.zooms ? Xr : t).zooms, i.xt[0] = Math.max(i.xt[0], 14.8), i.tl = (void 0 === t.opacity ? Xr : t).opacity, i.Q_ = (void 0 === t.heightFactor ? Xr : t).heightFactor, i.il = (void 0 === t.visible ? Xr : t).visible, i.Qh = (void 0 === t.zIndex ? Xr : t).zIndex, i.sz = void 0 !== t.wallColor && st.Util.color2RgbaArray(t.wallColor), i.rz = void 0 !== t.roofColor && st.Util.color2RgbaArray(t.roofColor), i.AF = void 0 === t.depthTest || Boolean(t.depthTest), i.cL = t.u$, i.cL && (i._id = "nebula"), i.onCreated(), i }
|
||
qr.add = function() {}; var Vr = qr;
|
||
|
||
function qr() {}
|
||
|
||
function Kr(t) { return st.Support.isWebGL ? new Ji(t) : new p(st.Ln({ id: "_defaultLayer_" + st.Util.uuid(), tileUrl: AMap.getConfig().y_ }, t)) } var Qr, $r = "gl_custom";
|
||
|
||
function to(t) { var i = Qr.call(this, t) || this; return i.CLASS_NAME = "AMap.GLCustomLayer", i.init = t.init || function(t) {}, i.render = t.render || function(t, i, n) {}, i.Qh = t.zIndex || 120, i.tl = void 0 === t.opacity ? 1 : t.opacity, i.il = void 0 === t.visible || t.visible, i.xt = t.zooms || st.zoomRange, i }
|
||
Qr = s, st.Ei(to, Qr), to.prototype.getState = function() { return { visible: this.il, opacity: this.tl, zIndex: this.Qh, layer: this, rejectMapMask: this._rejectMapMask, depthTest: this.AF, ce: this.IF } }, to.prototype.getSourceConfig = function() { return { id: $r, type: $r, zooms: this.xt } }, to.prototype.co = function() { return $r }, to.prototype.setMap = function(t) { Qr.prototype.setMap.call(this, t) }, to.prototype.setzIndex = function(t) { this.Qh = t }, io = to, st.Ei(so, io); var io, no = so;
|
||
|
||
function so(t) { return (t = io.call(this, t) || this).onCreated(), t }
|
||
eo = st.Event, st.Ei(oo, eo), oo.prototype.setMap = function(t) { var i = this; return t && t !== this._map && (this._map = t, st.forEach(this.zv, function(t) { i._map && !i._map.hasLayer(t) && t.setMap(i._map) })), this }, oo.prototype.hasLayer = function(i) { return !!st.find(this.zv, function(t) { return t === i }) }, oo.prototype.setOptions = function(e) { var r = this.zv; return st.vx(e, function(t, i) { for (var n = 0; n < r.length; n++) { var s = r[n]; if ("AMap.Layer" === s.el) switch (i) {
|
||
case "visible":
|
||
t ? s.show() : s.hide(); break;
|
||
case "opacity":
|
||
s.setOpacity && s.setOpacity(t); break;
|
||
case "zIndex":
|
||
s.setzIndex && s.setzIndex(t); break;
|
||
case "zooms":
|
||
s.setZooms && s.setZooms(t) } else s.setOptions && s.setOptions(e) } }), this }, oo.prototype.eachLayer = function(t) { if (st.isFunction(t))
|
||
for (var i = 0; i < this.zv.length; i++) t(this.zv[i], i, this.zv) }, oo.prototype.addLayer = function(t) { this.hasLayer(t) || (this.zv.push(t), t.setMap(this._map)) }, oo.prototype.addLayers = function(t) { if (0 < t.length)
|
||
for (var i = 0; i < t.length; i++) { var n = t[i];
|
||
this.addLayer(n) } }, oo.prototype.removeLayer = function(t) { for (var i = 0; i < this.zv.length; i++) t === this.zv[i] && this.zv.splice(i, 1); return t.setMap(null), t }, oo.prototype.removeLayers = function(t) { if (t && 0 < t.length)
|
||
for (var i = 0; i < t.length; i++) { var n = t[i];
|
||
this.removeLayer(n) } }, oo.prototype.getLayers = function() { return this.zv }, oo.prototype.clearLayers = function() { for (var t = 0; t < this.zv.length; t++) { var i = this.zv[t];
|
||
this.removeLayer(i) } }, oo.prototype.hide = function() { for (var t = 0; t < this.zv.length; t++) this.zv[t].hide(); return this }, oo.prototype.show = function() { for (var t = 0; t < this.zv.length; t++) this.zv[t].show(); return this }, oo.prototype.on = function(t, i) { for (var n = 0; n < this.zv.length; n++) { var s = this.zv[n];
|
||
s.on instanceof Function && i instanceof Function && s.on(t, i) } return this }, oo.prototype.reload = function() { for (var t = 0; t < this.zv.length; t++) { var i = this.zv[t];
|
||
i.reload && i.reload() } return this }; var eo, ao, ro = oo;
|
||
|
||
function oo(t) { var i = eo.call(this) || this; if (i.zv = [], i._map = null, t && 0 < t.length)
|
||
for (var n = 0; n < t.length; n++) { var s = t[n];
|
||
i.addLayer(s) }
|
||
return i }
|
||
|
||
function ho() { console.log("jsapi2.0 AMap.Heatmap is renamed, please use AMap.HeatMap"), console.log("jsapi2.0 AMap.Heatmap 已重命名, 请使用 AMap.HeatMap") }
|
||
|
||
function uo(t) { var i = ao.call(this) || this; return i.CLASS_NAME = "AMap.MapboxLayer", i._id = "mapbox", i._tileUrl = AMap.getConfig().protocol + "://fmap0{1234}.amap.com/v3/vectormap?version=v8&key=" + AMap.getConfig().key + "&s=rsv3&x=[x]&y=[y]&zoom=[z]", AMap.getConfig().jscode ? i._tileUrl += "&jscode=" + AMap.getConfig().jscode : AMap.getConfig().gaodeserver && (i._tileUrl = AMap.getConfig().gaodeserver + "/v3/vectormap?version=v8&key=" + AMap.getConfig().key + "&s=rsv3&x=[x]&y=[y]&zoom=[z]"), i.Xa = t.tileSize || 256, i.Qs = [2, 22], i.Qh = 2, i.xt = [9.8, st.zoomRange[1]], i }
|
||
ao = s, st.Ei(uo, ao), uo.prototype.getState = function() { return { zooms: [17, 23], visible: this.il, zIndex: 2, opacity: this.tl, layer: this, depthTest: this.AF, ce: this.IF, tileUrl: this._tileUrl } }, uo.prototype.getSourceConfig = function() { return { id: this._id, tileUrl: this._tileUrl || "", type: "mapbox", tileSize: this.Xa || 256, zooms: this.xt, dataZooms: this.Qs, projection: "EPS3857" } }, uo.prototype.co = function() { return this._id }, fo = uo, st.Ei(lo, fo); var fo, co = lo;
|
||
|
||
function lo(t) { return fo.call(this, t) || this }
|
||
Object.defineProperty(mo.prototype, "CLASS_NAME", { get: function() { return this.className }, eb: !1, nb: !0 }), mo.prototype.addOverlay = function(t) { this._overlays.indexOf(t) < 0 && (this._overlays.push(t), this._map) && this._map.add(t) }, mo.prototype.addOverlays = function(t) { for (var i = 0, n = t; i < n.length; i++) { var s = n[i];
|
||
this.addOverlay(s) } }, mo.prototype.getOverlays = function() { return this._overlays }, mo.prototype.hasOverlay = function(t) { return -1 < this._overlays.indexOf(t) }, mo.prototype.removeOverlay = function(t) { this.hasOverlay(t) && (st.Util.deleteItemFromArray(this._overlays, t), this._map) && this._map.remove(t) }, mo.prototype.removeOverlays = function(t) { for (var i = 0, n = t; i < n.length; i++) { var s = n[i];
|
||
this.removeOverlay(s) } }, mo.prototype.clearOverlays = function() { this._map && this._map.remove(this._overlays), this._overlays = [] }, mo.prototype.eachOverlay = function(t) { st.forEach(this._overlays, t) }, mo.prototype.setMap = function(t) { this._map = t }, mo.prototype.show = function() { for (var t = 0, i = this._overlays; t < i.length; t++) i[t].show() }, mo.prototype.hide = function() { for (var t = 0, i = this._overlays; t < i.length; t++) i[t].hide() }, mo.prototype.setOptions = function(t) { for (var i = 0, n = this._overlays; i < n.length; i++) n[i].setOptions(t) }, mo.prototype.on = function(i, n, s, e) { this.eachOverlay(function(t) { t.on(i, n, s, e) }) }, mo.prototype.off = function(i, n, s, t) { this.eachOverlay(function(t) { t.off(i, n, s) }) }; var vo, po = mo;
|
||
|
||
function mo(t) { void 0 === t && (t = []), this.className = "Overlay.OverlayGroup", this._overlays = [], this.addOverlays(t) }
|
||
|
||
function yo() { var t = null !== vo && vo.apply(this, arguments) || this; return t.P$ = !1, t._dragObjects = { sy: { x: 0, y: 0 }, hy: [0, 0], ly: { lng: 0, lat: 0 } }, t }
|
||
vo = Qt, st.Ei(yo, vo), yo.prototype.Cy = function(t) { this.P$ = !0, st.Support.$e || t.originEvent.preventDefault(), this.Ay(t) }, yo.prototype.Ly = function(t) { this.P$ = !1, st.Support.$e || t.originEvent.preventDefault() }, yo.prototype.Ay = function(t) { this._dragObjects = { sy: t.pixel, hy: t.pos, ly: t.lnglat } }, yo.prototype.Mx = function() { this.on("dragstart", this.Cy.bind(this)), this.on("dragging", this._dragging.bind(this)), this.on("dragend", this.Ly.bind(this)) }, yo.prototype.Rx = function() { this.off("dragstart", this.Cy.bind(this)), this.off("dragging", this._dragging.bind(this)), this.off("dragend", this.Ly.bind(this)) }, bo = yo, st.Ei(D, bo), Object.defineProperty(D.prototype, "CLASS_NAME", { get: function() { return this.className }, eb: !1, nb: !0 }), D.prototype.Zx = function(t) { this._map = t, this._opts && (this._opts.map = t) }, D.prototype.setMap = function(t) { this._map !== t && (this._map && this._map.remove(this), t) && t.add(this) }, D.prototype.getMap = function() { return this._map || null }, D.prototype.destroy = function() { this.Rx(), this._beforeRemoveMap && this._beforeRemoveMap(), this._map = null, this.F$ && delete this.F$, this._bindEvents && delete this._bindEvents, this._afterSetMap && delete this._afterSetMap }, D.prototype.remove = function() { this.setMap(null) }, D.prototype.hide = function() { this.visible && (this.visible = !1, this._map && this._map.setNeedUpdate(!0), this.emit("hide", { target: this })) }, D.prototype.show = function() { this.visible || (this.visible = !0, this._map && this._map.setNeedUpdate(!0), this.emit("show", { target: this })) }, D.prototype.setDraggable = function(t) { return this._opts.draggable = t }, D.prototype.getOptions = function() { return st.extend({}, this._opts) }, D.prototype.to = function() { var t = this;
|
||
this._map && (AMap.Util.requestAnimFrame(function() { t.emit("complete") }), this._map.setNeedUpdate(!0)) }, D.prototype.getExtData = function() { var t = this._opts; if (t && t.extData) return t.extData }, D.prototype.setExtData = function(t) { this.setOptions({ extData: t }) }, D.prototype.getCursor = function() { var t = this._opts.cursor; return !t && this._map ? this._map.getDefaultCursor() : t }, D.prototype.emit = function(t, i) { var n = this.getCursor(); return this._map && ("mouseout" === t ? this._map.setCursor() : this._map.setCursor(n)), ("dragstart" !== t && "dragging" !== t && "dragend" !== t || this.getDraggable()) && bo.prototype.emit.call(this, t, i), this }, D.prototype.getDraggable = function() { var t = this._opts.draggable; return void 0 !== t && t }, D.prototype.BB = function() { this.b_([0, 0]) }, D.prototype.getDeltaCoord = function() { return this.zx }, D.prototype.b_ = function(t) { this.zx = t }, D.prototype.rY = function(t) { var i = this.Sx; return st.Util.hp(i, t) }, D.prototype._beforeRemoveMap = function() { var t;
|
||
this.F$ && (null != (t = this.F$.parentNode) && t.removeChild(this.F$), delete this.F$) }, D.prototype.nY = function(t) { var i, n = this._opts; for (i in t) t.hasOwnProperty(i) && (n[i] = t[i]); return n }, D.prototype._dragging = function(t) { var i, n, s, e, r;
|
||
this.getDraggable() && (n = this._dragObjects.hy, i = t.pos[0] - n[0], n = t.pos[1] - n[1], r = this._dragObjects.sy, this.F$ && "d" === this._map.baseRender ? (e = t.pixel.x - r.x, r = t.pixel.y - r.y, s = this.B$, this.B$ = [e + s[0], r + s[1]], e = " translate(" + this.B$[0] + "px, " + this.B$[1] + "px)", this.F$.style.transform = e, this.F$.style.webkitTransform = e, this.F$.style.MozTransform = e, this.F$.style.msTransform = e) : this.to(), r = this.getDeltaCoord(), this.b_([i + r[0], n + r[1]]), this.Ay(t)) }, D.prototype.Ly = function(t) { bo.prototype.Ly.call(this, t), this.Ay(t), this.F$ && "d" === this._map.baseRender ? this.moveWithPixel(this.B$[0], -1 * this.B$[1]) : this.moveWithPos(this.zx[0], this.zx[1]), this.BB(), this.B$ = [0, 0], this.F$ && (this.F$.style.transform = "", this.F$.style.webkitTransform = "", this.F$.style.MozTransform = "", this.F$.style.msTransform = ""), this.to() }, D.prototype.moveWithPixel = function() { console.log("please implement movePixel") }, D.prototype.moveWithPos = function() { console.log("please implement moveWithPos") }, D.prototype._checkMap = function() { this._opts && this._opts.map !== this._map && this.setMap(this._opts.map) }, D.prototype.cE = function() { this._needUpdate = !0, !this._map || this._map.fE && !this._map.isDOMMode() || this.ZB() }; var bo, Bt = D;
|
||
|
||
function D() { var t = bo.call(this) || this; return t._needUpdate = !1, t.className = "Overlay", t.gdt = !1, t.visible = !0, t.P$ = !1, t.zx = [0, 0], t.B$ = [0, 0], t.Ax = [0, 0], t.hS = st.Util.stamp(t), t.Mx(), t }
|
||
|
||
function go(t) { if (t = st.jsonLngLatData(t), st.ys(t)) t = [
|
||
[t]
|
||
];
|
||
else if (st.Ox(t)) t = [t];
|
||
else if (!st.tL(t)) return; return t }
|
||
|
||
function Mo(t, i, n) { return st.hL.ss(t, i, n) }
|
||
|
||
function wo(t, i) { if (!Mo(t, i[0])) return !1; for (var n = 1, s = i.length; n < s; n++)
|
||
if (Mo(t, i[n], !0)) return !1;
|
||
return !0 }
|
||
|
||
function ko(t, i) { for (var n = 0, s = i.length; n < s; n++)
|
||
if (wo(t, i[n])) return !0;
|
||
return !1 }
|
||
|
||
function xo(t, i, n) { for (var s = [], e = 0, r = t; e < r.length; e++) { var o = r[e];
|
||
s.push(n.moveWithPos(o, i)) } return s }
|
||
|
||
function Ao(t, i, n) { for (var s = [], e = 0, r = t; e < r.length; e++) { var o = xo(r[e], i, n);
|
||
s.push(o) } return s }
|
||
|
||
function zo(t, i, n, s) { for (var e = [], r = 0, o = t; r < o.length; r++) { var h = o[r];
|
||
e.push(s.moveWithPixel(h, i, n)) } return e }
|
||
|
||
function Co(t, i, n, s) { for (var e = [], r = 0, o = t; r < o.length; r++) { var h = zo(o[r], i, n, s);
|
||
e.push(h) } return e }
|
||
|
||
function To(t) { return st.GeometryUtil.ringArea(t) }
|
||
|
||
function So(t) { for (var i = To(t[0]), n = 1; n < t.length; n++) i -= To(t[n]); return i }
|
||
|
||
function Io(t) { for (var i = 0, n = 0, s = t; n < s.length; n++) i += So(s[n]); return i }
|
||
|
||
function Lo(t) { return t = st.jsonLngLatData(t), st.ys(t) ? [t] : t }
|
||
|
||
function Do(t) { return st.GeometryUtil.distanceOfLine(t) }
|
||
|
||
function Oo(t) { if (t.length < 2) return t; var i = [];
|
||
i.push(t[0]); for (var n = 1, s = t.length; n < s; n++) { var e = t[n - 1],
|
||
r = t[n];
|
||
Array.prototype.push.apply(i, function(t, i) { var n = Math.round(Math.abs(t.KL - i.KL)); if (!n || Math.abs(t.KL - i.KL) < .001) return []; for (var e, r, o, h, a = [], u = Math.PI, f = Math.asin, c = Math.sqrt, l = Math.sin, d = Math.pow, v = Math.cos, p = Math.atan2, m = t.kT * Eo, y = t.KL * Eo, b = i.kT * Eo, g = i.KL * Eo, M = 2 * f(c(d(l((m - b) / 2), 2) + v(m) * v(b) * d(l((y - g) / 2), 2))), s = 1; s < n; s += 1) h = l((1 - (o = 1 / n * s)) * M) / l(M), o = l(o * M) / l(M), e = h * v(m) * v(y) + o * v(b) * v(g), r = h * v(m) * l(y) + o * v(b) * l(g), o = p(h = h * l(m) + o * l(b), c(d(e, 2) + d(r, 2))), h = p(r, e), y < g ? (h < y && (h += 2 * u), g < h && (h -= 2 * u)) : (y < h && (h -= 2 * u), h < g && (h += 2 * u)), a.push([h * Ro, o * Ro]); return a }(st.LngLat.from(e), st.LngLat.from(r))), i.push(r) } return i } var Eo = Math.PI / 180,
|
||
Ro = 180 / Math.PI;
|
||
|
||
function jo(t, i) { var n = [],
|
||
t = st.parseLngLatData(t),
|
||
s = st.ProjectionManager.getProjection("EPSG:3857"); if (t)
|
||
for (var e = s.project(t.KL, t.kT), r = e[0], o = e[1], h = 6 * Math.PI / 180, a = Math.cos(t.kT * Math.PI / 180), u = 0; u <= 60; u++) { var f = u * h,
|
||
c = i * Math.cos(f) / a,
|
||
f = i * Math.sin(f) / a,
|
||
c = s.unproject(r + c, o + f);
|
||
n.push(c) }
|
||
return n }
|
||
|
||
function Po(t, i, n) { var s = [],
|
||
t = st.parseLngLatData(t),
|
||
e = st.ProjectionManager.getProjection("EPSG:3857"); if (t)
|
||
for (var o = (r = e.project(t.KL, t.kT))[0], h = r[1], r = n ? 89 : 359, a = (n ? 4 : 1) * Math.PI / 180, u = i[0], f = i[1], c = Math.cos(t.kT * Math.PI / 180), l = 0, d = r; l <= d; l++) { var v = l * a,
|
||
p = u * Math.cos(v) / c,
|
||
v = f * Math.sin(v) / c,
|
||
p = e.unproject(o + p, h + v);
|
||
s.push(p) }
|
||
return s }
|
||
|
||
function Bo(t) { var i = t.getSouthWest(),
|
||
t = t.getNorthEast(); return [new st.LngLat(i.KL, i.kT, !0), new st.LngLat(t.KL, i.kT, !0), new st.LngLat(t.KL, t.kT, !0), new st.LngLat(i.KL, t.kT, !0)] }
|
||
Wo.prototype.init = function(t, i) { var n, s, e = t.length;
|
||
this.tdt = new Array(e); for (var r = 0; r < e; r += 1)
|
||
if (n = t[r], s = new Zo(n), this.tdt[r] = s, !i)
|
||
if (0 === r) { if (0 === n.length) return;
|
||
s.isClockwise(n) || n.reverse() } else 0 !== n.length && s.isClockwise(n) && n.reverse() }, Wo.prototype.getBounds = function() { if (0 === this.tdt.length) return jt.createEmpty(); if (!this.ndt) { for (var t = this.tdt[0].getBounds(), i = 1; i < this.tdt.length; i += 1) { var n = this.tdt[i].getBounds();
|
||
jt.rs(t, n) || jt.extend(t, n) }
|
||
this.ndt = t } return this.ndt }, Wo.prototype.sdt = function() { return this.tdt }, Wo.prototype.edt = function() { for (var t = 0; t < this.tdt.length; t += 1) this.tdt[t].xh }, Wo.prototype.getType = function() { return Go.rdt.POLYGON }, Wo.prototype.ss = function(t) { for (var i, n = this.tdt, s = 0, e = n.length; s < e && (i = n[s].ss(t), i = 0 < s ? !i : i); s += 1); return i }, Wo.prototype.odt = function(t) { for (var i = this.tdt, n = [], s = 0, e = i.length; s < e; s += 1) st.hL.isClockwise(i[s].xh) ? n.length && n[n.length - 1].push(s) : n.push([s]); for (s = 0, e = n.length; s < e; s += 1) { for (var a = !1, r = 0, o = n[s].length; r < o; r += 1) { var h = n[s][r],
|
||
a = Zo.prototype.ss.call(i[h], t); if (!(a = 0 < r ? !a : a)) break } if (a) return !0 } }; var Fo = Wo;
|
||
|
||
function Wo() {}(li = ra = ra || {}).POINT = "point", li.LINESTRING = "linestring", li.LINEARRING = "linearring", li.POLYGON = "polygon", li.MULTIPOINT = "multipoint", li.MULTILINESTRING = "multilinestring", li.MULTIPOLYGON = "multipolygon", li.GEOMETRYCOLLECTION = "geometrycollection", Uo.prototype.hdt = function() { var t = this.getBounds(); return t.center || (t.center = jt.getCenter(t)), t.center }, Uo.prototype.clone = function() { var t = new this.constructor; return t.init(this.XK()), t }, Uo.prototype.XK = function() { return this.xh }, Uo.prototype.got = function(t) { if (this.adt = this.getBounds(), this.ndt = null, this instanceof Fo)
|
||
for (var i = t.length, n = void(this.tdt = new Array(i)), s = void 0, e = 0; e < i; e += 1)
|
||
if (n = t[e], s = new Zo(n), this.tdt[e] = s, 0 === e) { if (0 === n.length) return;
|
||
s.isClockwise(n) || n.reverse() } else 0 !== n.length && s.isClockwise(n) && n.reverse();
|
||
else this.xh = t }, Uo.rdt = ra; var No, Go = Uo;
|
||
|
||
function Uo(t) { var i = this;
|
||
this.setCoords = function(t) { i.got(t) }, this.init(t) }
|
||
|
||
function _o() { return null !== No && No.apply(this, arguments) || this }
|
||
No = Go, st.Ei(_o, No), _o.prototype.init = function(t) { this.xh = t }, _o.prototype.getBounds = function() { if (!this.ndt) { for (var t = jt.createEmpty(), i = 0, n = this.xh.length; i < n; i += 1) jt.extendCoordinate(t, this.xh[i]);
|
||
this.ndt = t } return this.ndt }, _o.prototype.XK = function() { return this.xh }, _o.prototype.getType = function() { return Go.rdt.LINESTRING }, _o.prototype.getCount = function() { return this.XK().length }, _o.prototype.udt = function(t) { return st.hL.lr(t, this.XK()) }, Yo = _o, st.Ei(Xo, Yo), Xo.prototype.getType = function() { return Go.rdt.LINEARRING }, Xo.prototype.ss = function(t) { return st.hL.ss(t, this.xh) }; var Yo, Zo = Xo;
|
||
|
||
function Xo() { var t = null !== Yo && Yo.apply(this, arguments) || this; return t.isClockwise = st.hL.isClockwise, t }
|
||
Jo = Bt, st.Ei(Ho, Jo), Ho.prototype.Tx = function(t) { t && (t = st.Bs(t) ? st.ProjectionManager.getProjection("EPSG:3857").project(t.KL, t.kT) : st.ProjectionManager.getProjection("EPSG:3857").project(t[0], t[1]), this.Sx = st.lcs.getLocalByCoord(t)) }, Ho.prototype.toGeometry = function() { var t; if (this._opts.path) return t = this._opts.path.slice(0), st.ys(t) ? { type: "Polygon", coordinates: [t] } : st.Ox(t) ? { type: "Polygon", coordinates: t } : { type: "MultiPolygon", coordinates: t } }, Ho.prototype.toString = function() { var t = this._opts.path; return st.ys(t) ? "" + t.join(";") : st.Ox(t) ? "" + st.map(t, function(t) { return "" + t.join(";") }).join("|") : st.tL(t) ? st.map(t, function(t) { return st.map(t, function(t) { return "" + t.join(";") }).join("|") }).join("^") : "" }, Ho.prototype.reset = function() { this.Dx && this.Dx.reset(), this.Px && this.Px.reset(), this.XB && this.XB.reset(), this.qB && this.qB.reset(), this.p0 && this.p0.reset(), this.m0 && this.m0.reset() }, Ho.prototype.destroy = function() { this.Dx && (this.Dx.destroy(), delete this.Dx), this.Px && (this.Px.destroy(), delete this.Px), this.XB && this.XB.destroy && (this.XB.destroy(), delete this.XB), this.qB && this.qB.destroy && (this.qB.destroy(), delete this.qB), this.p0 && (this.p0.destroy(), delete this.p0), this.p0 && this.Px.destroy && (this.p0.destroy(), delete this.p0), this.q$ && delete this.X$, this.$x && (this.$x = []), Jo.prototype.destroy.call(this) }, Ho.prototype.pdt = function(t, i, n) { var s = 0; if (i && this._opts.extrusionHeight) { for (var e = [], r = 0; r < i.length; r++) e.push(i[r][0], i[r][1]);
|
||
s = this.p0.tz(e, this._opts.extrusionHeight, n) } return n = { bz: "", length: 1, mainkey: this.hS, maxzoom: 26, minzoom: 2, offset: 0, subkey: 1 }, s && 0 < s && this.m0.add(n.mainkey, n.subkey, s, n.minzoom, n.maxzoom, n.bz), this.p0.upload(t), s }, Ho.prototype.X$ = function(t) { for (var i = [], n = 0, s = t; n < s.length; n++) { for (var e = s[n], r = [], o = [], h = 0, a = e[0]; h < a.length; h++) { var u = a[h],
|
||
f = st.ProjectionManager.getProjection("EPSG:3857").project(u[0], u[1]);
|
||
o.push([f[0], f[1]]) }
|
||
o.length && (o.push(o[0].slice()), r.push(o)); for (var c = 1, l = e.length; c < l; c++) { var d = e[c],
|
||
v = []; if (d && d.length) { for (var p = 0, m = d; p < m.length; p++) u = m[p], f = st.ProjectionManager.getProjection("EPSG:3857").project(u[0], u[1]), v.push([f[0], f[1]]);
|
||
v.push(v[0].slice()), r.push(v) } }
|
||
i.push(r) }
|
||
this.q$ = i }, Ho.prototype.Q$ = function(t, i) { this.BB(), this.JL(), this.reset(); var n = this.Dx,
|
||
s = this.Px,
|
||
e = this.XB,
|
||
r = this.qB;
|
||
this.Tx(t[0][0][0]); for (var o = 0, h = t; o < h.length; o++) { for (var a = h[o], u = this.Sx.center, f = [], c = [], l = [], d = [], v = [], p = 0, m = a[0]; p < m.length; p++) { var y = m[p],
|
||
b = st.ProjectionManager.getProjection("EPSG:3857").project(y[0], y[1]);
|
||
f.push(b[0] - u[0], b[1] - u[1]), c.push(y) } for (var g = 1, M = a.length; g < M; g++) { for (var w = [], k = [], x = 0, A = a[g]; x < A.length; x++) y = A[x], st.Bs(y) ? (w.push(y.pos[0] - u[0], y.pos[1] - u[1]), k.push(y.toJSON())) : (b = st.ProjectionManager.getProjection("EPSG:3857").project(y[0], y[1]), w.push(b[0] - u[0], b[1] - u[1]), k.push(y));
|
||
l.push(w), d.push(k) } for (var z = [], g = 0, M = f.length; g < M; g += 2) z.push(st.xd(f[g], f[g + 1]));
|
||
st.equals(z[0], z[z.length - 1]) || z.push(st.Ex(z[0])); for (var C = f.length, g = 0; g < l.length; g++) v.push(C / 2), C += l[g].length, st.Util.Ig(f, l[g]); var T = n.Nx(f, v); if (i && f && 0 < this._opts.extrusionHeight) { for (var S = z, I = [], g = 0; g < l.length; g++)
|
||
for (var L = l[g], D = 0; D < L.length; D += 2) I.push([L[D], L[D + 1]]);
|
||
I && 0 < I.length && (new Zo(I).isClockwise(I) || I.reverse()), new Zo(z).isClockwise(z) && z.reverse(), st.Util.Ig(S, I), this.pdt(i, S, v) }
|
||
e.add(T); var O = s.Nx(z, { lineJoin: "miter" }).Iw; for (r.add(O), g = 0; g < l.length; g++) { for (var E = [], R = 0, M = (w = l[g]).length; R < M; R += 2) E.push(st.xd(w[R], w[R + 1]));
|
||
E.push(st.xd(w[0], w[1])), O = s.Nx(E, { lineJoin: "miter" }).Iw, r.add(O) } }
|
||
i && (this.Dx.upload(i), this.Px.upload(i)) }, Ho.prototype.JL = function() { this.Dx || (this.Dx = new st.K_), this.Px || (this.Px = new st.J_), this.XB || (this.XB = new st.oE), this.qB || (this.qB = new st.oE), this.p0 || (this.p0 = new st.iz), this.m0 || (this.m0 = new st._w) }; var Jo, Si = Ho;
|
||
|
||
function Ho() { return null !== Jo && Jo.apply(this, arguments) || this } var Vo, $o, qo = { map: void 0, fillColor: "#00D3FC", fillOpacity: .5, strokeColor: "#00B2D5", strokeWeight: 2, strokeOpacity: .9, strokeStyle: "solid", draggable: !1, extrusionHeight: 0, bubble: !1, strokeDasharray: [10, 5], zIndex: 50, extData: {}, noSelect: !1, innerOverlay: !1, zooms: st.zoomRange, async: !1 },
|
||
Ko = { constructor: { time: 0, highResTime: 0 }, setPath: { time: 0, highResTime: 0 } },
|
||
Qo = (Vo = Si, st.Ei(O, Vo), O.prototype.getOptions = function() { return st.extend({}, this._opts) }, O.prototype.setOptions = function(t) { var t = this.nY(t),
|
||
i = !st.isEqual(this._opts.path, t.path);
|
||
this._opts = t, this._checkMap(), i && this.setPath(this._opts.path), this.to() }, O.prototype.init = function(t) { this.reset(), t = t || this._opts, this._opts = this.nY(t), this.setPath(this._opts.path), this._map && (0 < this._opts.extrusionHeight && (this.zdt = this.Cdt.bind(this), this.Sdt = this.Ldt.bind(this), this.tv()), this._map.setNeedUpdate(!0)) }, O.prototype.destroy = function() { 0 < this._opts.extrusionHeight && (this.Tdt(), this.zdt = null, this.Sdt = null), this.gdt && delete this.gdt, this._opts, Vo.prototype.destroy.call(this) }, O.prototype.getPath = function() { if (this._opts && this._opts.path) return st.parseLngLatData(st.yn(this._opts.path)) }, O.prototype.getStatus = function() { return this.Ndt }, O.prototype.setExtrusionHeight = function(t) { this._opts && (this._opts.extrusionHeight = t, this.reset(), this.Ix(this._opts.path)), this.to() }, O.prototype.getExtrusionHeight = function() { return this._opts && this._opts.extrusionHeight ? this._opts.extrusionHeight : 0 }, O.prototype.getBounds = function() { var t; if (this.ir) t = this.ir;
|
||
else { var i = this._opts.path; if (!i) return; if (!(i = go(i))) return;
|
||
(i = l.ms(i)) && (t = this.ir = i) } if (t) return this._map && this.zx && (0 !== this.zx[0] || 0 !== this.zx[1]) ? (i = t.getSouthWest(), t = t.getNorthEast(), i = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), new l(i, t)) : this.ir }, O.prototype.getArea = function() { var t; return this._opts && this._opts.path ? (t = st.jsonLngLatData(this._opts.path), st.ys(t) ? +st.GeometryUtil.ringArea(t).toFixed(2) : st.Ox(t) ? +So(t).toFixed(2) : +Io(t).toFixed(2)) : 0 }, O.prototype.contains = function(t, i) { var n, s, e; return !!this.jx() && (n = this._opts.path, s = st.parseLngLatData(t), !!(e = null == (e = this._map) ? void 0 : e.lngLatToContainer(s))) && (0 < this._opts.extrusionHeight && (this._opts.bubble && i && i.Adt && "click" === i.Adt && (this.gdt = !1), !this.gdt) && (0 < (i = this.queryPolyhedronFeature([e.x, e.y])) && i === this.hS) || !(this.ir && !this.ir.contains(t)) && (st.ys(n) ? Mo : st.Ox(n) ? wo : ko)([s.lng, s.lat], n)) }, O.prototype.setPath = function(t) { var i;
|
||
t && (this.reset(), this.Ix(t), t = (new Date).getTime(), i = 0, "performance" in window && "function" == typeof performance.now && (i = performance.now()), this.Ndt && (this.Ndt.setPath = { time: t, highResTime: i }), this.to()) }, O.prototype.iE = function(t) { if (this.jx() && (!this.ir || this.ir.contains(t))) { var i = this._opts.path,
|
||
t = st.parseLngLatData(t); if (st.ys(i)) return 0; if (st.Ox(i)) return 0; for (var n = [t.lng, t.lat], s = i, e = 0, r = s.length; e < r; e++)
|
||
if (wo(n, s[e])) return e } return -1 }, O.prototype.ZB = function(t) { var i, n = this;
|
||
this._map && (this._needUpdate = !1, this._opts.path) && (i = go(this._opts.path)) && (this._opts.async ? this._map.gn.QB({ data: i, type: "polygon" }, function(t, i) { t ? console.log(t) : (n.Dx = i.Dc, n.Px = i.$c, n.Sx = i.Sx, n.XB = i.Oc, n.qB = i.Uc) }) : this.Q$(i, t)) }, O.prototype.queryPolyhedronFeature = function(t) { if (this._map && this.bdt()) { for (var i, s = (n = this._map).getView().getStatus(), s = { layers: n.getLayers(), uo: n.Mv, size: s.size, do: n.do, viewState: s, map: n }, e = 0, r = n.getLayers(); e < r.length; e++) { var o = r[e]; "AMap.VectorLayer" === o.CLASS_NAME && (i = o) } var h = i.getRender(); if (h) { var a = h.pu || 0,
|
||
n = n.getGL(),
|
||
u = t[0] * a,
|
||
t = n.drawingBufferHeight - t[1] * a,
|
||
a = new Uint8Array(4); if (h.vdt && (s = h.pickRender(s, this), n.bindFramebuffer(n.FRAMEBUFFER, s), n.readPixels(u, t, 1, 1, n.RGBA, n.UNSIGNED_BYTE, a), n.bindFramebuffer(n.FRAMEBUFFER, null)), u = (s = h.ydt) && s.GV([a[0], a[1], a[2]])) return u } } }, O.prototype.Cdt = function() { this.gdt = !0 }, O.prototype.Ldt = function() { this.gdt = !1 }, O.prototype.tv = function() { this._map && (this._map.on("mousedown", this.zdt), this._map.on("mouseup", this.Sdt)) }, O.prototype.Tdt = function() { this._map && (this._map.off("mousedown", this.zdt), this._map.off("mouseup", this.Sdt)) }, O.prototype._dragging = function(t) { var i, n, s;
|
||
this.getDraggable() && (n = this._dragObjects.hy, i = t.pos[0] - n[0], n = t.pos[1] - n[1], this._dragObjects.sy, s = this.getDeltaCoord(), this.b_([i + s[0], n + s[1]]), this.Ay(t), this.F$ && "d" === this._map.baseRender ? this.moveWithPixel(this.B$[0], -1 * this.B$[1]) : this.moveWithPos(this.zx[0], this.zx[1]), this.BB(), this.B$ = [0, 0], this.F$ && (this.F$.style.transform = "", this.F$.style.webkitTransform = ""), this.to()) }, O.prototype.jx = function() { return Boolean(this._opts && this._opts.path && 0 < this._opts.path.length) }, O.prototype.moveWithPixel = function(t, i) { var n, s, e;
|
||
this._map && (n = this._map, s = st.ProjectionManager.getProjection(n.getView().au()), e = this._opts.path, e = (st.ys(e) ? zo : st.Ox(e) ? Co : function(t, i, n, s) { for (var e = [], r = 0, o = t; r < o.length; r++) { var h = Co(o[r], i, n, s);
|
||
e.push(h) } return e })(e, [t, i], n.getZoom(), s), this.setPath(e)) }, O.prototype.moveWithPos = function(t, i) { var n, s;
|
||
this._map && (n = this._map, n = st.ProjectionManager.getProjection(n.getView().au()), s = this._opts.path.slice(0), s = (st.ys(s) ? xo : st.Ox(s) ? Ao : function(t, i, n) { for (var s = [], e = 0, r = t; e < r.length; e++) { var o = Ao(r[e], i, n);
|
||
s.push(o) } return s })(s, [t, i], n), this.setPath(s)) }, O.prototype.bdt = function() { var t; return !(this._opts.fillOpacity <= 0 || null != (t = this._map) && t.TL() || (t = this._map.getZoom()) < this._opts.zooms[0] || t > this._opts.zooms[1]) }, O);
|
||
|
||
function O(t) { void 0 === t && (t = {}); var n = Vo.call(this) || this,
|
||
i = (n.Ix = function(t) { var i;
|
||
n._opts.path = st.jsonLngLatData(t), (t = go(t)) && (n.ir = l.ms(t), i = n._map) && ("d" === i.baseRender ? n.X$(t) : n.cE()) }, t.path),
|
||
i = (st.iL(i) ? (s = i[0], n.Tx(s)) : st.eL(i) ? (s = i[0][0], n.Tx(s)) : st.yL(i) && (s = i[0][0][0], n.Tx(s)), n.className = "Overlay.Polygon", n._opts = { fillColor: "#00D3FC", fillOpacity: .5, strokeColor: "#00B2D5", strokeWeight: 2, strokeOpacity: .9, strokeStyle: "solid", draggable: !1, extrusionHeight: 0, wallColor: "#00D3FC", roofColor: "#00B2D5", bubble: !1, strokeDasharray: [10, 5], zIndex: 50, extData: {}, noSelect: !1, innerOverlay: !1, zooms: st.zoomRange, async: !1 }, n._opts = n.nY(t), n._checkMap(), n.Ndt = Ko, (new Date).getTime()),
|
||
s = 0; return "performance" in window && "function" == typeof performance.now && (s = performance.now()), n.Ndt.constructor = { time: i, highResTime: s }, n }
|
||
|
||
function th() { var n = null !== $o && $o.apply(this, arguments) || this; return n.contains = function(t) { var i; return !(!n.aE || n.ir && !n.ir.contains(t)) && (i = n.aE, t = st.parseLngLatData(t), (st.ys(i) ? Mo : st.Ox(i) ? wo : ko)([t.lng, t.lat], i)) }, n }
|
||
$o = Si, st.Ei(th, $o), th.prototype.getOptions = function() { return st.extend({}, this._opts) }, th.prototype.getArea = function() { var t = this.aE; return t ? +Io(t).toFixed(2) : 0 }, ih = Oi = th, st.Ei(sh, ih), sh.prototype.init = function(t) { t = t || this._opts, this._opts = this.nY(t), this.setBounds(t.bounds) }, sh.prototype.setBounds = function(t) { t && (st.xs(t) || (t = new l(t)), this._opts.bounds = t, this.ir = t.clone(), this.cE(), this.to()) }, sh.prototype.ZB = function(t) { var i, n, s;
|
||
this._map && (this._needUpdate = !1, i = this._opts.bounds) && (n = this._map, (s = go(Bo(i))) && (this.ir = i.clone(), this.aE = s, "d" === n.baseRender ? this.X$(s) : this.Q$(s, t)), this.to()) }, sh.prototype.moveWithPixel = function(t, i) { var n, s, e;
|
||
this._map && (n = this._map, s = (e = this._opts.bounds).southWest.toJSON(), e = e.northEast.toJSON(), s = this._map.getView().ru().moveWithPixel(s, [t, i], n.getZoom()), e = this._map.getView().ru().moveWithPixel(e, [t, i], n.getZoom()), t = new l(s, e), this.setBounds(t)) }, sh.prototype.moveWithPos = function(t, i) { var n, s;
|
||
this._map && (n = (s = this._opts.bounds).southWest.toJSON(), s = s.northEast.toJSON(), n = this._map.getView().ru().moveWithPos(n, [t, i]), s = this._map.getView().ru().moveWithPos(s, [t, i]), t = new l(n, s), this.setBounds(t)) }, sh.prototype.setOptions = function(t) { var t = this.nY(t),
|
||
i = !st.isEqual(this._opts.bounds, t.bounds);
|
||
this._opts = t, this._checkMap(), i && this.setBounds(t.bounds), this.to() }, sh.prototype.getPath = function() { var t, i, n; if (!this.ir) { var s = this._opts.bounds; if (!s) return;
|
||
this.ir = s.clone() } if (s = this.ir) return this.P$ && (i = s.getSouthWest(), n = s.getNorthEast(), i = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), n = this._map.getView().ru().moveWithPos([n.KL, n.kT], this.zx), s = new l(i, n)), s ? Bo(s) : t }, sh.prototype.getBounds = function() { var t; if (!this.ir) { var i = this._opts.bounds; if (!i) return;
|
||
this.ir = i.clone() } if (i = this.ir) return this.P$ ? (t = i.getSouthWest(), i = i.getNorthEast(), t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), i = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), new l(t, i)) : this.ir }, sh.prototype.getCenter = function() { if (this._opts.bounds) return this._opts.bounds.getCenter() }; var ih, nh = sh;
|
||
|
||
function sh(t) { void 0 === t && (t = {}); var n = ih.call(this) || this; return n.className = "Overlay.Rectangle", n.contains = function(t) { var i = n.getBounds(); return !!i && i.contains(t) }, n._opts = { fillColor: "#00D3FC", fillOpacity: .5, strokeColor: "#00B2D5", strokeWeight: 2, strokeOpacity: .9, strokeStyle: "solid", draggable: !1, bubble: !1, strokeDasharray: [10, 5], zIndex: 50, extData: {}, noSelect: !1, innerOverlay: !1, zooms: st.zoomRange, async: !1 }, n._opts = n.nY(t), n._checkMap(), n }
|
||
eh = Oi, st.Ei(oh, eh), oh.prototype.init = function(t) { t = t || this._opts, this._opts = this.nY(t), this.setCenterAndRadius(this._opts.center, this._opts.radius) }, oh.prototype.setCenter = function(t) { this.setCenterAndRadius(t, this._opts.radius) }, oh.prototype.setRadius = function(t) { this.setCenterAndRadius(this._opts.center, t) }, oh.prototype.getCenter = function() { var t = st.parseLngLatData(this._opts.center),
|
||
t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx); return new st.LngLat(t[0], t[1]) }, oh.prototype.getRadius = function() { return this._opts.radius }, oh.prototype.getPath = function() { var t; return this._opts.center && this._opts.radius && (t = Po(this._opts.center, this._opts.radius, st.Support.$e)) && 0 < t.length ? st.parseLngLatData(st.yn(t)) : [] }, oh.prototype.setCenterAndRadius = function(t, i) { this._opts.center = t, this._opts.radius = i, this.cE(), this.to() }, oh.prototype.ZB = function(t) { var i, n, s;
|
||
this._map && (this._needUpdate = !1, s = this._opts.center, i = this._opts.radius, s) && i && (s = st.jsonLngLatData(s), n = this._map, (s = go(Po(s, i, st.Support.$e))) && (this.ir = l.ms(s), this.aE = s, "d" === n.baseRender ? this.X$(s) : this.Q$(s, t)), this.BB(), this._map.setNeedUpdate(!0)) }, oh.prototype.moveWithPixel = function(t, i) { var n, s;
|
||
this._map && (n = this._map, s = st.parseLngLatData(this._opts.center), s = this._map.getView().ru().moveWithPixel([s.KL, s.kT], [t, i], n.getZoom()), this.setCenter(s)) }, oh.prototype.moveWithPos = function(t, i) { var n;
|
||
this._map && (n = st.parseLngLatData(this._opts.center), n = this._map.getView().ru().moveWithPos([n.KL, n.kT], [t, i]), this.setCenter(n)) }, oh.prototype.getBounds = function() { if (!this.ir) { var t = this._opts.center,
|
||
i = this._opts.radius; if (!t || !i) return; var i = Math.max(i[0], i[1]),
|
||
n = (t = st.parseLngLatData(t)).offset(-i, -i),
|
||
t = t.offset(i, i);
|
||
this.ir = new l(n, t) } if (i = this.ir, this.ir) return this.P$ ? (n = i.getSouthWest(), t = i.getNorthEast(), n = this._map.getView().ru().moveWithPos([n.KL, n.kT], this.zx), t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), new l(n, t)) : this.ir }, oh.prototype.setOptions = function(t) { var t = this.nY(t),
|
||
i = !st.isEqual(this._opts.center, t.center) || !st.isEqual(this._opts.radius, t.radius);
|
||
this._opts = t, this._checkMap(), i && this.setCenterAndRadius(this._opts.center, this._opts.radius), this.to() }; var eh, rh = oh;
|
||
|
||
function oh(t) { void 0 === t && (t = {}); var i = eh.call(this) || this; return i.className = "Overlay.Ellipse", i.Cx = st.assign({ center: void 0, radius: void 0 }, qo), i._opts = { fillColor: "#00D3FC", fillOpacity: .5, strokeColor: "#00B2D5", strokeWeight: 2, strokeOpacity: .9, strokeStyle: "solid", draggable: !1, bubble: !1, strokeDasharray: [10, 5], zIndex: 50, extData: {}, noSelect: !1, innerOverlay: !1, zooms: st.zoomRange, async: !1 }, i._opts = i.nY(t), i._checkMap(), i }
|
||
hh = Oi, st.Ei(fh, hh), fh.prototype.init = function(t) { t = t || this._opts, this._opts = this.nY(t), this.setCenterAndRadius(this._opts.center, this._opts.radius) }, fh.prototype.setCenter = function(t) { this.setCenterAndRadius(t, this._opts.radius) }, fh.prototype.setRadius = function(t) { this.setCenterAndRadius(this._opts.center, t) }, fh.prototype.getCenter = function() { var t, i = st.parseLngLatData(this._opts.center); return this.P$ ? (t = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), new st.LngLat(t[0], t[1])) : i }, fh.prototype.getPath = function() { var t; return this._opts.center && this._opts.radius && (t = jo(this._opts.center, this._opts.radius)) && 0 < t.length ? st.parseLngLatData(st.yn(t)) : [] }, fh.prototype.getRadius = function() { return parseFloat(this._opts.radius) }, fh.prototype.setCenterAndRadius = function(t, i) { this._opts.center = t, st.vB(i) && 0 <= i && (this._opts.radius = i), this.cE(), this.to() }, fh.prototype.ZB = function(t) { var i, n, s;
|
||
this._map && (this._needUpdate = !1, s = this._opts.center, i = this._opts.radius, s) && st.vB(i) && (n = this._map, (s = go(jo(s, i))) && (this.ir = l.ms(s), this.aE = s, "d" === n.baseRender ? this.X$(s) : this.Q$(s, t)), this.BB(), this._map.setNeedUpdate(!0)) }, fh.prototype.moveWithPixel = function(t, i) { var n, s;
|
||
this._map && (n = this._map, s = st.parseLngLatData(this._opts.center), s = this._map.getView().ru().moveWithPixel([s.KL, s.kT], [t, i], n.getZoom()), this.setCenter(s)) }, fh.prototype.moveWithPos = function(t, i) { var n;
|
||
this._map && (n = st.parseLngLatData(this._opts.center), n = this._map.getView().ru().moveWithPos([n.KL, n.kT], [t, i]), this.setCenter(n)) }, fh.prototype.setOptions = function(t) { var t = this.nY(t),
|
||
i = !st.isEqual(this._opts.center, t.center) || !st.isEqual(this._opts.radius, t.radius);
|
||
this._opts = t, this._checkMap(), i && this.setCenterAndRadius(this._opts.center, this._opts.radius), this.to() }, fh.prototype.O$ = function(t, i, n) {}, fh.prototype.getBounds = function() { if (!this.ir) { var t = this._opts.center,
|
||
i = this._opts.radius; if (!t) return; if (!st.vB(i)) return; var n = (t = st.parseLngLatData(t)).offset(-i, -i),
|
||
t = t.offset(i, i);
|
||
this.ir = new l(n, t) } if (i = this.ir, this.ir) return this.P$ ? (n = i.getSouthWest(), t = i.getNorthEast(), n = this._map.getView().ru().moveWithPos([n.KL, n.kT], this.zx), t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), new l(n, t)) : this.ir }, fh.prototype.ab = function(t) { return delete(t = st.extend({}, t)).center, delete t.radius, delete t.map, delete t.path, t }; var hh, ah, uh = fh;
|
||
|
||
function fh(t) { void 0 === t && (t = {}); var i = hh.call(this) || this; return i.className = "Overlay.Circle", i._opts = { fillColor: "#00D3FC", fillOpacity: .5, strokeColor: "#00B2D5", strokeWeight: 2, strokeOpacity: .9, strokeStyle: "solid", draggable: !1, bubble: !1, strokeDasharray: [10, 5], zIndex: 50, extData: {}, noSelect: !1, innerOverlay: !1, zooms: st.zoomRange, async: !1 }, i._opts = i.nY(t), i }
|
||
|
||
function ch(t) { var i = ah.call(this) || this; return i.className = "Overlay.Circle", i.Tx(t), i }
|
||
ah = Bt, st.Ei(ch, ah), ch.prototype.Tx = function(t) { t && (t = st.Bs(t) ? st.ProjectionManager.getProjection("EPSG:3857").project(t.KL, t.kT) : st.ProjectionManager.getProjection("EPSG:3857").project(t[0], t[1]), this.Sx = st.lcs.getLocalByCoord(t)) }, ch.prototype.setCenter = function(t) { t && (this._opts.center = st.parseLngLatData(t), this.ir = new l(this._opts.center, this._opts.center), this.cE(), this.to()) }, ch.prototype.destroy = function() { this.KB && delete this.KB, this.Sb && (this.Sb.destroy(), delete this.Sb), ah.prototype.destroy.call(this) }, ch.prototype.reset = function() { this.KB && delete this.KB, this.Sb && this.Sb.reset() }, ch.prototype.toGeometry = function() { var t; if (this._opts.center) return { type: "Point", coordinates: (t = st.parseLngLatData(this._opts.center)) && t.toJSON() } }, ch.prototype.Ydt = function(n) { return st.T8t(this, void 0, void 0, function() { var i; return st.x8t(this, function(t) { switch (t.label) {
|
||
case 0:
|
||
return [4, ve.Ydt(n)];
|
||
case 1:
|
||
return i = t.y8t(), this.setCenter(i), [2] } }) }) }, ch.prototype.XL = function(t) { var i = st.parseLngLatData(t),
|
||
t = (this.reset(), this.Tx(t), this.Sx.center),
|
||
i = this._map.getView().ru().project(i.KL, i.kT);
|
||
this.KB = [i[0] - t[0], i[1] - t[1]], st.Support.safari && (this.Sb || (this.Sb = new st.e0), this.Sb.wb([i[0] - t[0], i[1] - t[1]])) }, lh = ch, st.Ei(vh, lh), vh.prototype.init = function(t) { t = t || this._opts, this._opts = this.nY(t), this.setCenter(this._opts.center) }, vh.prototype.setRadius = function(t) { this._opts.radius = t, this.to() }, vh.prototype.ZB = function() { var t;
|
||
this._map && (this._needUpdate = !1, t = this._opts.center) && this._map && "d" !== this._map.baseRender && (this.XL(t), this.BB()) }, vh.prototype.getCenter = function() { var t, i = st.parseLngLatData(this._opts.center); return this._map ? (t = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), new st.LngLat(t[0], t[1])) : i }, vh.prototype.getRadius = function() { return this._opts.radius }, vh.prototype.moveWithPixel = function(t, i) { var n, s;
|
||
this._map && (n = this._map, s = st.parseLngLatData(this._opts.center), s = this._map.getView().ru().moveWithPixel([s.KL, s.kT], [t, i], n.getZoom()), this.setCenter(s)) }, vh.prototype.moveWithPos = function(t, i) { var n;
|
||
this._map && (n = st.parseLngLatData(this._opts.center), n = this._map.getView().ru().moveWithPos([n.KL, n.kT], [t, i]), this.setCenter(n)) }, vh.prototype.setOptions = function(t) { var t = this.nY(t),
|
||
i = !st.isEqual(this._opts.center, t.center);
|
||
this._opts = t, this._checkMap(), i && this.setCenter(t.center), this.to() }, vh.prototype.getOptions = function() { return st.extend({}, this._opts) }, vh.prototype.getBounds = function() { var t; if (!this.ir) { var i = this._opts.center; if (!i) return;
|
||
this.ir = new l(i, i) } if (i = this.ir) return this.P$ ? (t = i.getSouthWest(), i = i.getNorthEast(), t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), i = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), new l(t, i)) : this.ir }, vh.prototype.Ib = function() { var t = (t = this._opts).radius + (t.strokeWeight || 0); return Math.min(t, 64) }; var lh, ph, dh = vh;
|
||
|
||
function vh(t) { var e = lh.call(this, (t = void 0 === t ? {} : t).center || void 0) || this; return e.contains = function(t) { return !!e._map && (t = e._map.lngLatToContainer(t), e.containsWithPixel(t)) }, e.containsWithPixel = function(t) { var i, n, s; return !!e._map && !(!e._opts.center || (i = e.Ib(), n = st.parseLngLatData(e._opts.center), n = e._map.getView().ru().moveWithPos([n.KL, n.kT], e.zx), n = e._map.lngLatToContainer(n), Math.abs(n.x - t.x) > i) || Math.abs(n.y - t.y) > i) && (t = t.toJSON(), n = n.toJSON(), s = Math.abs(t[0] - n[0]), t = Math.abs(t[1] - n[1]), s = Math.sqrt(s * s + t * t), t = e._map.getView().Pu || 0, s / Math.cos(t) < i) }, e.className = "Overlay.CircleMarker", e._opts = { radius: 20, fillColor: "#00D3FC", fillOpacity: .5, strokeColor: "#00B2D5", strokeWeight: 2, strokeOpacity: .9, strokeStyle: "solid", draggable: !1, bubble: !1, strokeDasharray: [10, 5], zIndex: 50, extData: {}, noSelect: !1, innerOverlay: !1, zooms: st.zoomRange, async: !1 }, e._opts = e.nY(t), t && t.center && ve._dt(t.center) && e.Ydt(t.center), e._checkMap(), e }
|
||
|
||
function mh() { var u = null !== ph && ph.apply(this, arguments) || this; return u.sC = 0, u.W_ = function() { if (_r.isWebGL && u._map && u.q$ && !u._opts.geodesic && !u._needUpdate) { var t = u._map,
|
||
i = Math.min(st.Util.getOptimalZoom(t.getZoom()), 20); if (u.EI !== i)
|
||
if (i < 18) { u.EI = i; for (var n = st.ProjectionManager.getProjection("EPSG:3857").getResolution(Math.min(st.Util.getOptimalZoom(t.getZoom()), 18)), s = [], e = 0, r = u.q$; e < r.length; e++) { for (var o = r[e], h = [], a = 0; a < o.length; a += 1) o[a][2] > n * n * 1 && h.push([o[a][0], o[a][1]]);
|
||
s.push(h) }
|
||
u.D_(s) } else u.EI = i, u.D_(u.q$) } }, u }
|
||
ph = Bt, st.Ei(mh, ph), mh.prototype.Tx = function(t) { t && (t = st.Bs(t) ? st.ProjectionManager.getProjection("EPSG:3857").project(t.KL, t.kT) : st.ProjectionManager.getProjection("EPSG:3857").project(t[0], t[1]), this.Sx = st.lcs.getLocalByCoord(t)) }, mh.prototype.destroy = function() { this.Px && (this.Px.destroy(), delete this.Px), ph.prototype.destroy.call(this) }, mh.prototype.toGeometry = function() { var t = this._opts.path; if (t) return st.ys(t) ? { type: "LineString", coordinates: t } : st.Ox(t) ? { type: "MultiLineString", coordinates: t } : void 0 }, mh.prototype.U_ = function(t) { this.F_ && !this.E_ && (this.E_ = t.createTexture(this.F_, { Zi: !0 }), this.E_.bind(t.gl.CLAMP_TO_EDGE, t.gl.LINEAR, t.gl.LINEAR)) }, mh.prototype.aC = function(t, i) { this.rC || (i = function(t) { for (var i = document.createElement("canvas"), n = (i.height = 1, i.width = 4096, i.getContext("2d")), s = n.createImageData(4096, 1), e = 0, r = 0; r < 4096; r++) { for (var o = void 0; e < t.length; e++) { if (e === t.length - 1) { o = t[e][1]; break } if (!(4096 * t[e + 1][0] < r)) { o = t[e][1]; break } } var o = t[e][1],
|
||
a = st.Util.color2RgbaArray(o);
|
||
s.data[4 * r] = 255 * a[0], s.data[4 * r + 1] = 255 * a[1], s.data[4 * r + 2] = 255 * a[2], s.data[4 * r + 3] = 255 * a[3] } return n.putImageData(s, 0, 0), i }(i.values), this.rC = t.createTexture(i, { Zi: !0 }), i = t.gl, this.rC.bind(i.CLAMP_TO_EDGE, i.NEAREST, i.NEAREST_MIPMAP_NEAREST)) }, mh.prototype.X$ = function(t) { for (var i = [], n = [], s = 0, e = t; s < e.length; s++) { for (var r = [], o = [], h = 0, a = e[s]; h < a.length; h++) { var u = a[h],
|
||
f = st.ProjectionManager.getProjection("EPSG:3857").project(u[0], u[1]);
|
||
r.push([f[0], f[1]]), o.push(u) }
|
||
i.push(r), n.push(o) }
|
||
this.$x = n, this.q$ = i }, mh.prototype.Q$ = function(t) { for (var i = [], n = [], s = 0, e = t; s < e.length; s++) { for (var r = [], o = [], h = 0, a = e[s]; h < a.length; h++) { var u = a[h],
|
||
f = st.ProjectionManager.getProjection("EPSG:3857").project(u[0], u[1]);
|
||
r.push([f[0], f[1], 0]), o.push(u) }
|
||
this.P_(r), i.push(r), n.push(o) }
|
||
this.$x = n, this.q$ = i, this.cE() }, mh.prototype.D_ = function(t, i) { if (0 !== t.length) { this.Px ? this.Px.reset() : this.Px = new st.J_; for (var n = this.Sx.center, s = 0, e = st.ProjectionManager.getProjection("EPSG:3857"), r = this.EI, o = e.getResolution(r), h = 0, a = t; h < a.length; h++) { for (var u = a[h], f = [], c = 0, l = u.length; c < l; c += 1) f.push(u[c][0] - n[0], u[c][1] - n[1]); var d = this._opts;
|
||
10 <= this.EI && (this._opts.showDir || "dashed" === this._opts.strokeStyle) ? s += this.Px.eD(f, { X_: 1, lineJoin: d.lineJoin, lineCap: d.lineCap }, Math.floor(2048 * o)).distance : s += this.Px.hb(f, { X_: 1, lineJoin: d.lineJoin, lineCap: d.lineCap }).distance }
|
||
this.sC = s, i && this.Px.upload(i) } }, mh.prototype.P_ = function(t) { t[0][2] = 1 / 0, t[t.length - 1][2] = 1 / 0; var i = st.ProjectionManager.getProjection("EPSG:3857").getResolution(16);! function t(i, n, s, e) { for (var r = e, o = s - n >> 1, h = s - n, a = s, u = i[n][0], f = i[n][1], c = i[s][0], l = i[s][1], d = n + 1; d < s; d += 1) { var v = function(t, i, n, s, e, r) { var o, h = e - n,
|
||
a = r - s; return 0 == h && 0 == a || (1 < (o = ((t - n) * h + (i - s) * a) / (h * h + a * a)) ? (n = e, s = r) : 0 < o && (n += h * o, s += a * o)), (h = t - n) * h + (a = i - s) * a }(i[d][0], i[d][1], u, f, c, l);
|
||
r < v ? (a = d, r = v) : v === r && (v = Math.abs(d - o)) < h && (a = d, h = v) }
|
||
e < r && (1 < a - n && t(i, n, a, e), i[a][2] = r, 1 < s - a) && t(i, a, s, e) }(t, 0, t.length - 1, i * i) }; var yh, bh = { constructor: { time: 0, highResTime: 0 }, setPath: { time: 0, highResTime: 0 } },
|
||
gh = (yh = Xt = mh, st.Ei(E, yh), E.prototype.getOptions = function() { return st.extend({}, this._opts) }, E.prototype.getPath = function() { if (this._opts && this._opts.path) return st.parseLngLatData(st.yn(this._opts.path)) }, E.prototype.getStatus = function() { return this.Ndt }, E.prototype.destroy = function() { this.E_ && (this.E_.destroy(), delete this.E_), yh.prototype.destroy.call(this) }, E.prototype.getBounds = function() { var t; if (this.ir) t = this.ir;
|
||
else { var i = this._opts.path; if (!i) return; if (!(i = Lo(i))) return;
|
||
(i = l.bS(i)) && (t = this.ir = i) } if (t) return this._map && this.zx && (0 !== this.zx[0] || 0 !== this.zx[1]) ? (i = t.getSouthWest(), t = t.getNorthEast(), i = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), new l(i, t)) : this.ir }, E.prototype.setPath = function(t) { var i;
|
||
t && (this.Ix(t), t = (new Date).getTime(), i = 0, "performance" in window && "function" == typeof performance.now && (i = performance.now()), this.Ndt && (this.Ndt.setPath = { time: t, highResTime: i }), this.to()) }, E.prototype.moveWithPixel = function(t, i) { if (this._map) { for (var n = this._map, s = st.ProjectionManager.getProjection(n.getView().au()), e = [], r = 0, o = this.$x; r < o.length; r++) { for (var h = [], a = 0, u = o[r]; a < u.length; a++) { var f = u[a];
|
||
h.push(s.moveWithPixel(f, [t, i], n.getZoom())) }
|
||
e.push(h) }
|
||
this.setPath(e) } }, E.prototype.moveWithPos = function(t, i) { if (this._map) { for (var n = this._map, s = st.ProjectionManager.getProjection(n.getView().au()), e = [], r = 0, o = this.$x; r < o.length; r++) { for (var h = [], a = 0, u = o[r]; a < u.length; a++) { var f = u[a];
|
||
h.push(s.moveWithPos(f, [t, i])) }
|
||
e.push(h) }
|
||
this.setPath(st.parseLngLatData(e)) } }, E.prototype.getLength = function() { var t = this._opts && this._opts.path; return st.ys(t) ? +Do(t).toFixed(2) : st.Ox(t) ? + function(t) { for (var i = 0, n = 0, s = t; n < s.length; n++) i += Do(s[n]); return i }(t).toFixed(2) : 0 }, E.prototype.rL = function() { return this.sC }, E.prototype.ZB = function(t) { this._map && (this._needUpdate = !1, this.D_(this.q$, t)) }, E.prototype.setOptions = function(t) { var t = this.nY(t),
|
||
i = function(t, i, n) { for (var s = 0, e = n.length; s < e; s += 1) { var r = n[s]; if (t[r] !== i[r]) return !0 } return !1 }(this._opts, t, ["path", "lineCap", "lineJoin", "geodesic"]);
|
||
t.lineGradient !== this._opts.lineGradient && this.rC && (this.rC.destroy(), delete this.rC), this._opts = t, this._checkMap(), i && this.setPath(this._opts.path), this.to() }, E.prototype.init = function(t) { var i, n = this,
|
||
t = t || this._opts,
|
||
t = this.nY(t);
|
||
this._opts = t, this._opts.dirImg && (this._opts.dirImg instanceof HTMLCanvasElement ? this.F_ = this._opts.dirImg : (i = this._opts.dirImg, this._map.z_.loadImage(this._opts.dirImg, { type: "dirImg", cb: function(t) { t ? n.F_ = t.img : console.error("load dirImg error", i) } }))), this.setPath(this._opts.path), this._map && (this.W_(), this._map.setNeedUpdate(!0)) }, E.prototype.contains = function(t) { if (this.jx() && (!this.ir || this.ir.southWest.lat === this.ir.northEast.lat || this.ir.southWest.lng === this.ir.northEast.lng || this.ir.contains(t)))
|
||
for (var i = this._map.getView(), n = i.getStatus().pitch * Math.PI / 180, t = st.parseLngLatData(t), s = i.ru().project(t.lng, t.lat), e = i.ru().getResolution(this._map.getZoom()), r = 0, o = this.q$; r < o.length; r++) { var h = o[r]; if (st.hL.lr(s, h) * Math.cos(n) < this._opts.strokeWeight * e) return !0 }
|
||
return !1 }, E.prototype.jx = function() { return Boolean(this._opts && this._opts.path && 0 < this._opts.path.length) }, E.prototype.Ix = function(t) { var i = st.jsonLngLatData(t);
|
||
this._opts.path = i, i = Lo(t), st.Ox(i) ? (this._opts.geodesic && (i = st.map(i, Oo)), this.Tx(i[0][0]), this.ir = l.bS(i), this._map && ("d" === this._map.baseRender ? this.X$(i) : (this.Q$(i), this.BB()))) : console.error("error Polyline path") }, E.prototype.rD = function(t) { var i = st.jsonLngLatData(t);
|
||
this._opts.path = i, i = Lo(t), st.Ox(i) ? (this._opts.geodesic && (i = st.map(i, Oo)), this.Tx(i[0][0]), this.ir = l.bS(i)) : console.error("error Polyline path") }, E);
|
||
|
||
function E(t) { void 0 === t && (t = {}); var i = yh.call(this) || this,
|
||
t = (i.className = "Overlay.Polyline", i._opts = { cursor: "", strokeColor: "#00B2D5", strokeWeight: 2, strokeOpacity: .5, strokeStyle: "solid", draggable: !1, bubble: !1, strokeDasharray: [10, 5], isOutline: !1, geodesic: !1, showDir: !1, outlineColor: "#00B2D5", borderWeight: 1, lineJoin: "miter", lineCap: "butt", extData: {}, zIndex: 50, dirColor: "white", dirImg: "", lineGradient: void 0, noSelect: !1, innerOverlay: !1, zooms: st.zoomRange, animate: !1, speed: 100, dirImgGap: 1 }, i.EI = -1, i._opts = i.nY(t), i._opts.path && i.rD(i._opts.path), i._checkMap(), i.Ndt = bh, (new Date).getTime()),
|
||
n = 0; return "performance" in window && "function" == typeof performance.now && (n = performance.now()), i.Ndt.constructor = { time: t, highResTime: n }, i }
|
||
Mh = Xt, st.Ei(wh, Mh), wh.prototype.getOptions = function() { return st.extend({}, this._opts) }; var Mh, oi = wh;
|
||
|
||
function wh() { return null !== Mh && Mh.apply(this, arguments) || this }
|
||
xh = st.LngLat, st.Ei(zh, xh), zh.prototype.lL = function() { for (var t = [], i = 0, n = this.controlPoints; i < n.length; i++) { var s = n[i];
|
||
t.push(s.toJSON()) } return t.push(this.toJSON()), t }, zh.prototype.moveWithPos = function(t, i, n) { for (var s = t.moveWithPos(this.toJSON(), [i, n]), e = [], r = 0, o = this.controlPoints.length; r < o; r++) { var h = this.controlPoints[r];
|
||
e.push(t.moveWithPos(h.toJSON(), [i, n])) } return e.push(s), new zh(e) }, zh.prototype.moveWithPixel = function(t, i, n, s) { for (var e = t.moveWithPixel(this.toJSON(), [i, n], s), r = [], o = 0, h = this.controlPoints.length; o < h; o++) { var a = this.controlPoints[o];
|
||
r.push(t.moveWithPixel(a.toJSON(), [i, n], s)) } return r.push(e), new zh(r) }; var xh, Ah = zh;
|
||
|
||
function zh(t) { var i = this; if (st.ys(t))
|
||
for (var n = t.length, i = xh.call(this, t[n - 1][0], t[n - 1][1]) || this, s = [], e = 0, r = n - 1; e < r; e += 1) { var o = t[e][0],
|
||
h = t[e][1];
|
||
s.push(new st.LngLat(o, h)) } else
|
||
for (n = t.length, i = xh.call(this, t[n - 2], t[n - 1]) || this, s = [], e = 0, r = n - 2; e < r; e += 2) o = t[e], h = t[e + 1], s.push(new st.LngLat(o, h)); return i.controlPoints = s, i }
|
||
Ch = oi, st.Ei(Sh, Ch), Sh.prototype.init = function(t) { var i, n = this,
|
||
t = t || this._opts;
|
||
this._opts = this.nY(t), this._opts.dirImg && (this._opts.dirImg instanceof HTMLCanvasElement ? this.F_ = this._opts.dirImg : (i = this._opts.dirImg, this._map.z_.loadImage(this._opts.dirImg, { type: "dirImg", cb: function(t) { t ? n.F_ = t.img : console.error("load dirImg error", i) } }))), this.setPath(this._opts.path), this._map && (this.W_(), this._map.setNeedUpdate(!0)) }, Sh.prototype.setOptions = function(t) { var t = this.nY(t),
|
||
i = !st.isEqual(this._opts.path, t.path);
|
||
this._opts = t, this._checkMap(), i && this.Ix(this._opts.path), this.BB(), this.to() }, Sh.prototype.ZB = function(t) { this._map && (this._needUpdate = !1, this.D_(this.q$, t)) }, Sh.prototype.getPath = function() { if (this._opts) return this._opts.path }, Sh.prototype.setPath = function(t) { t && (this._opts.path = t, this.Ix(t)) }, Sh.prototype.getBounds = function() { var t; if (this.ir) t = this.ir;
|
||
else { var i = this.$x; if (!i) return; if (!(i = Lo(i))) return;
|
||
(i = l.bS(i)) && (t = this.ir = i) } if (t) return this._map && this.zx && (0 !== this.zx[0] || 0 !== this.zx[1]) ? (i = t.getSouthWest(), t = t.getNorthEast(), i = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), new l(i, t)) : this.ir }, Sh.prototype.moveWithPos = function(t, i) { if (this._map) { var n = this._map,
|
||
s = st.ProjectionManager.getProjection(n.getView().au()); if (n = this.getPath()) { for (var e = [], r = 0, o = n; r < o.length; r++) { var h = o[r],
|
||
h = (h = new Ah(h)).moveWithPos(s, t, i);
|
||
e.push(h.lL()) }
|
||
this.setPath(e) } } }, Sh.prototype.moveWithPixel = function(t, i) { if (this._map) { var n = this._map,
|
||
s = st.ProjectionManager.getProjection(n.getView().au()),
|
||
e = this.getPath(); if (e) { for (var r = [], o = n.getZoom(), h = 0, a = e; h < a.length; h++) { var u = a[h],
|
||
u = (u = new Ah(u)).moveWithPixel(s, t, i, o);
|
||
r.push(u.lL()) }
|
||
this.setPath(r) } } }, Sh.prototype.contains = function(t) { if (this.jx() && (!this.ir || this.ir.contains(t)))
|
||
for (var i = this._map.getView(), n = i.getStatus().pitch * Math.PI / 180, t = st.parseLngLatData(t), s = i.ru().project(t.lng, t.lat), e = i.ru().getResolution(this._map.getZoom()), r = 0, o = this.q$; r < o.length; r++) { var h = o[r]; if (st.hL.lr(s, h) * Math.cos(n) < this._opts.strokeWeight * e) return !0 }
|
||
return !1 }, Sh.prototype.Ix = function(t) { var i = []; if (t)
|
||
for (var n = 0, s = t; n < s.length; n++) { var e = s[n];
|
||
i.push(new Ah(e)) }
|
||
t = Lo(this.yb(i)), this.Tx(t[0][0]), this.ir = l.bS(t), this._map && ("d" === this._map.baseRender ? this.X$(t) : (this.Q$(t), this.BB())) }, Sh.prototype.jx = function() { return Boolean(this._opts && this._opts.path && 0 < this._opts.path.length) }, Sh.prototype.yb = function(t) { var i; return this._map ? (i = st.ProjectionManager.getProjection("EPSG:3857").getResolution(this._map.getZoom()), st.bb.xb(t, i)) : [] }; var Ch, Th = Sh;
|
||
|
||
function Sh(t) { void 0 === t && (t = {}); var i = Ch.call(this) || this; return i.className = "Overlay.BezierCurve", i.bo = 3, i.W_ = function() {}, i._opts = { cursor: "", strokeColor: "#00D3FC", strokeWeight: 2, strokeOpacity: .5, strokeStyle: "solid", draggable: !1, bubble: !1, strokeDasharray: [10, 5], isOutline: !1, geodesic: !1, showDir: !1, outlineColor: "#00B2D5", borderWeight: 1, lineJoin: "miter", lineCap: "butt", extData: {}, zIndex: 50, dirColor: "white", dirImg: "", lineGradient: void 0, noSelect: !1, innerOverlay: !1, zooms: st.zoomRange }, i.EI = -1, i._opts = i.nY(t), i._checkMap(), i } var Ih, Rh = { high: { fillColor: "rgb(252, 249, 242)", strokeColor: "rgb(230,142,0)" }, unHigh: { fillColor: "rgb(252, 249, 242)", strokeColor: "rgb(171,171,171)" } },
|
||
jh = (Ih = s, st.Ei(R, Ih), R.prototype.Do = function(t) { return t && (this.Jh = t).HF(this), t }, R.prototype.onAdd = function() { var t;
|
||
this.$F = new ns({ zIndex: this.Qh, visible: this.il, TF: !0 }), null != (t = this.map) && t.addLayer(this.$F) }, R.prototype.v$ = function() { var t;
|
||
null != (t = this.map) && t.removeLayer(this.$F) }, R.prototype.destroy = function() { Ih.prototype.destroy.call(this), this.$F.destroy(), this.$F && this.$F.destroy && (this.$F.destroy(), delete this.$F) }, R.prototype.yD = function() { return { show: this.xD } }, R.prototype.mD = function(t) { this.xD = t }, R.prototype.cD = function() { var n = this; if (this.dD) return !1;
|
||
this.dD = !0, this._map.on("moveend", function() { var t = n._map.getZoom(),
|
||
i = n.VR;
|
||
n.VR.showId, i && i.centerId && i.indoor && (!n.ZT(i.indoor) || t < n.xt[0] ? (n.e$ && (n.e$.hide(), n.xD = !1), n.nD()) : n.e$ && n.VR.visible && (n.mL || n.e$.show(), n.xD = !0)) }) }, R.prototype.uD = function() { for (var t = this.VR, i = t.indoor, n = t.centerId, s = Object.keys(i), e = Rh, r = 0; r < s.length; r++) { var o = s[r]; if (i[o] && i[o].outline)
|
||
for (var h = i[o].outline, a = 0; a < h.length; a++) { var u = h[a],
|
||
f = u.getOptions();
|
||
f.strokeColor = (o === n ? e.high : e.unHigh).strokeColor, u.setOptions(f) } } }, R.prototype.oZ = function() { for (var t = this.VR, i = t.indoor, n = (t.centerId, Object.keys(i)), s = Rh, e = 0; e < n.length; e++) { var r = n[e]; if (i[r] && i[r].outline)
|
||
for (var o = i[r].outline, h = 0; h < o.length; h++) { var a = o[h],
|
||
u = a.getOptions();
|
||
u.strokeColor = s.unHigh.strokeColor, a.setOptions(u) } } }, R.prototype.BT = function() { var t = this;
|
||
setTimeout(function() { t._map && t._map.emit("indoor_create") }, 500) }, R.prototype.bL = function(t) { this.VR.opacity = t, this.gL() }, R.prototype.wL = function(t) { this.VR.zIndex = t, this.gL() }, R.prototype.ZI = function() { return this.VR }, R.prototype.KI = function(t) { this.VR = t }, R.prototype.getState = function() { return { zooms: [17, st.zoomRange[1]], visible: this.il, opacity: this.tl, layer: this, rejectMapMask: this._rejectMapMask, depthTest: this.AF, ce: this.IF } }, R.prototype.getSourceConfig = function() { return { id: this._id, type: "indoor", zooms: [17, st.zoomRange[1]], url: "" } }, R.prototype.co = function() { return this._id }, R.prototype.getMap = function() { return this._map }, R.prototype.n$ = function(t, i) { this.VR.floorInfo || (this.VR.floorInfo = {}), this.VR.floorInfo[t] = i }, R.prototype.emit = function(t, i) { return Ih.prototype.emit.call(this, t, i), this }, R.prototype.showId = function(t) { this.VR.showId = t }, R.prototype.setBar = function(t) { this.e$ = t }, R.prototype.setBarOpt = function(t) { this.VR.defaultBarFloor = t }, R.prototype._hideLayer = function(t) { this.VR.visible = t, this.DT(t), this._hideBar(!t), t ? this.$F.show() : this.$F.hide(), this.gL() }, R.prototype._hideBar = function(t) { this.mL = t, this.VR.hideFloorBar = t, this.e$ && t ? this.e$.hide() : this.e$ && this.e$.show() }, R.prototype._showLabels = function(t) { this.VR.showLabels = t; var i = this._map && this._map.showLabel;
|
||
this.VR.labelsLayer && t && i ? this.VR.labelsLayer.show() : this.VR.labelsLayer && this.VR.labelsLayer.hide() }, R.prototype.setShowId = function(t) { this.VR.hasId = t }, R.prototype.update = function() { this.gL() }, R.prototype._getSelectedBuildingId = function() { return this.VR.centerId }, R.prototype._getSelectedBuilding = function() { return this.VR.building }, R.prototype.setRenderData = function(t) { this.VR = st.assign(this.VR, t) }, R.prototype.getIntersectPoly = function(t) { var t = t.getBounds(),
|
||
n = this._map && this._map.getBounds(); return !(!t || !n) && n.intersects(t) }, R.prototype.getIntersect = function(t) { if (!t) return !1; for (var i = !1, n = this._map && this._map.getBounds(), s = 0; s < t.length; s++) { var e = t[s],
|
||
e = new AMap.LngLat(e[0], e[1]); if (i = n.contains(e)) return !0 } return i }, R.prototype.getRingInRing = function(t) { var i; return !!t && (i = this._map && this._map.getBounds(), t = new AMap.Polygon({ path: t }), st.GeometryUtil.isRingInRing(i, t)) }, R.prototype.YR = function(t, s) { var i, e = this; try { this._map && this._map.gn && ((i = new XMLHttpRequest).onreadystatechange = function() { 4 === i.readyState && 200 === i.status && e._map.gn.JB(i.response, function(t, i) { var n;
|
||
t ? console.log(t) : (n = (t = Object.keys(i))[0] ? i[t[0]].building : void 0) && n.properties && n.properties.outside_outline && (n = i[t[0]].building.properties.outside_outline, i = AMap.Bounds.xS(n)) && e._map.setBounds(i), s && s() }) }, i.open("GET", t, !0), i.responseType = "arraybuffer", i.send()) } catch (t) {} }, R.prototype.DT = function(t) { for (var i = this.VR.indoor, n = Object.keys(i), s = 0; s < n.length; s++) { var e = i[n[s]]; if (e.polygons)
|
||
for (var r = 0; r < e.polygons.length; r++) { var o = e.polygons[r];
|
||
t ? o.show() : o.hide() }
|
||
if (e.markers)
|
||
for (var h = 0; h < e.markers.length; h++) { var a = e.markers[h];
|
||
t ? a.show() : a.hide() } } }, R.prototype.ZT = function(t) { for (var i = Object.keys(t), n = 0; n < i.length; n++) { var s = i[n]; if (this._map && t[s].outline && (s = t[s].outline, s = this.getIntersectPoly(s[0]))) return s } return !1 }, R.prototype.gL = function() {}, R.prototype.nD = function() { for (var t = this.VR.indoor, i = Object.keys(t), n = 0; n < i.length; n++) { var s = i[n],
|
||
e = t[s];
|
||
e.polygons && this.$F.remove(e.polygons), e && e.markers && 0 < e.markers.length && this.VR.labelsLayer && this.VR.labelsLayer.remove(e.markers), delete t[s] } }, R);
|
||
|
||
function R(t) { var i = Ih.call(this) || this; return i.CLASS_NAME = "AMap.IndoorLayer", t = t || {}, i._id = "indoor", i.il = !0, i.Qh = t.zIndex || 5, i.tl = t.opacity || 1, i.mL = t.hideFloorBar || !1, i.xL = t.cursor || "auto", i.xt = [17, st.zoomRange[1]], i.xD = !1, i.dD = !1, 0 === t.opacity && (i.tl = 0), i.VR = { opacity: i.tl, zIndex: i.Qh, visible: i.il, cursor: i.xL, centerId: null, centerFloor: null, indoor: {}, hideFloorBar: i.mL, showLabels: !0, reRender: !1, floorInfo: {}, indoorState: {}, centerBuilding: {} }, t && t.map && (i._map = t.map, i.cD()), i._config = AMap.getConfig(), i.BT(), i }
|
||
Ph = jh, st.Ei(Fh, Ph), Fh.prototype.showIndoorMap = function(t, i, n) { var s, e, i = i || 1;
|
||
t && (this.pL = t, Ph.prototype.showId.call(this, t), Ph.prototype.n$.call(this, t, i), this.pL = t, e = this._config.server + "/v3/indoor/indoormaps?", (s = []).push("poiid=" + t), s.push("floor=" + i), s.push("version=0"), s.push("s=rsv3"), s.push("from=indoorH5Map"), s.push("servicetype=unify"), s.push("key=" + this._config.key), this._config.jscode ? s.push("jscode=" + this._config.jscode) : this._config.gaodeserver && (e = this._config.gaodeserver + "/v3/indoor/indoormaps?"), t = e + s.join("&"), Ph.prototype.YR.call(this, t)) }, Fh.prototype.showFloor = function(t, i) { this.pL && this.showIndoorMap(this.pL, t) }, Fh.prototype.show = function() { this._hideLayer(!0) }, Fh.prototype.hide = function() { this._hideLayer(!1) }, Fh.prototype.getMap = function() { return this._map }, Fh.prototype.setMap = function(t) { var i = (this._map = t).getStatus().animateEnable;
|
||
Ph.prototype.setRenderData.call(this, { animateState: i }), t.setStatus({ animateEnable: !1 }), Ph.prototype.setMap.call(this, t), Ph.prototype.cD.call(this) }, Fh.prototype.setzIndex = function(t) { Ph.prototype.wL.call(this, t) }, Fh.prototype.showFloorBar = function() { this._hideBar(!1) }, Fh.prototype.hideFloorBar = function() { this._hideBar(!0) }, Fh.prototype.setOpacity = function(t) { Ph.prototype.bL.call(this, t) }, Fh.prototype.getOpacity = function() { return Ph.prototype.getOpacity.call(this) }, Fh.prototype.showLabels = function() { this._showLabels(!0) }, Fh.prototype.hideLabels = function() { this._showLabels(!1) }, Fh.prototype.getSelectedBuildingId = function() { return Ph.prototype._getSelectedBuildingId.call(this) }, Fh.prototype.getSelectedBuilding = function() { return Ph.prototype._getSelectedBuilding.call(this) }; var Ph, Bh = Fh;
|
||
|
||
function Fh(t) { var i = Ph.call(this, t) || this; return i.CLASS_NAME = "AMap.IndoorMap", i._config = AMap.getConfig(), i.pL = "", t && t.map && (i._map = t.map, t = t.map.getStatus().animateEnable, Ph.prototype.setRenderData.call(i, { animateState: t })), i }
|
||
|
||
function Nh(t, i, n) { this.x = i, this.y = n, this.z = t, this.key = t + "," + i + "," + n } var Wh;
|
||
|
||
function Gh() { var t = null !== Wh && Wh.apply(this, arguments) || this; return t.CLASS_NAME = "AMap.DistrictLayer", t._E = AMap.getConfig().protocol + "://mvt.amap.com/getDistrictInfo", t }
|
||
Wh = p, st.Ei(Gh, Wh), Gh.prototype.getLayerConfig = function() { var t = Wh.prototype.getLayerConfig.call(this); return t.mapNumber = "GS(2019)756", t }, Gh.prototype.getSourceConfig = function() { return { id: this._id, tileUrl: this._tileUrl || "", type: "districtVectorTile", tileSize: this.Xa || 256, zooms: this.xt, dataZooms: this.Qs || [3, 16], projection: this.hl || "EPS3857", SOC: this.SOC } }, Gh.prototype.getLayerOptions = function() { return { zIndex: this.Qh, visible: this.il, zooms: this.xt, opacity: this.tl, adcode: this._adcode, styles: this.Ze, layer: this, rejectMapMask: this._rejectMapMask, depthTest: this.AF } }, Gh.prototype.getState = function() { return st.Ln({}, this.getLayerOptions()) }, Gh.prototype.getDistrictByContainerPos = function(t) { if (i = this.map) { var n, t = i.containerToLngLat(t),
|
||
s = i.getProjection().project(t.lng, t.lat),
|
||
e = i.getView().getStatus().optimalZoom,
|
||
i = i.getTileCoordByLngLat(t, this.Xa || 256, e - 1); if (!(e = (t = this.getSource().getTileCache()).getTile(i)) && i.z < 12 && (n = Math.pow(2, i.z) / ((this.Xa || 256) / 256), e = t.getTile(new Nh(i.z, i.x + n, i.y)) || t.getTile(new Nh(i.z, i.x - n, i.y))), e && e.localCoord && e.data) { var r = [s[0] - e.localCoord.center[0], s[1] - e.localCoord.center[1]],
|
||
o = e.data; if (o.polygons)
|
||
for (var h = 0, a = o.polygons.length; h < a; h += 1) { var u = o.polygons[h]; if (3 < u.path.length && 3 === u.properties.feature_type_) { for (var f = [], c = 0, l = u.path.length; c < l; c += 2) f.push([u.path[c], u.path[c + 1]]); if (AMap.GeometryUtil.pointInRing(r, [
|
||
[f]
|
||
])) return u.properties } } } } }, Gh.prototype.co = function() { return this._id }, Gh.prototype.destroy = function() { this.Jh && this.Jh.destroy && (this.Jh.destroy(), delete this.Jh) }, Gh.prototype.reload = function() { var t;
|
||
this.map && ((t = this.getSource()).setTileUrl(this._tileUrl), t.reload(), this.map.setNeedUpdate(!0)) }, Gh.prototype.yE = function() { var n = this;
|
||
AMap.xE || AMap.bE || (AMap.bE = "loading", AMap.Http.Ajax(this._E, {}, function(t, i) { i && i.data && (i = JSON.parse(i.data), AMap.xE || (AMap.xE = i, n.wE && (i = n.wE, n.setFitViewByAdcode(i.CE, i.zE, i.avoid)))) })) }, Uh = Gh, st.Ei(Yh, Uh), Yh.prototype.setSOC = function(t) { this.SOC = t, this._tileUrl = this.Ml.replace("[SOC]", this.SOC), this.reload() }, Yh.prototype.setDistricts = function(t) { this.setAdcode(t) }, Yh.prototype.getDistricts = function() { return this._adcode }, Yh.prototype.setStyles = function(t) { this.Ze = st.Util.baseAssign(st.Util.baseAssign({}, this.tP.styles), t), this.map && ((t = this.getRender()) && t.clearStyleCache(), this.map.setNeedUpdate(!0)) }, Yh.prototype.getStyle = function() { return this.Ze }, Yh.prototype.setAdcode = function(t) { t instanceof Array || (t = [t]); for (var i, n = {}, s = 0; s < t.length; s += 1) n[t[s]] = 1;
|
||
this._adcode = t = n, null != (i = this.map) && i.setNeedUpdate(!0) }, Yh.prototype.setFitViewByAdcode = function(t, i, n) { var s, e; if (void 0 === i && (i = !1), t instanceof Array || (t = [t]), this.RE || (this.RE = window.AE), AMap.xE) { this.RE = AMap.xE; for (var r = 0; r < t.length; r += 1) { var o = this.RE[t[r]],
|
||
o = new l(st.Pt(o[0], o[1]));
|
||
e ? e.union(o) : e = o }
|
||
this.map && null != (s = this.map) && s.setBounds(e, i, n) } else this.wE = { CE: t, zE: i, avoid: n } }, Yh.prototype.on = function(s, t, i, n) { var e = this,
|
||
r = (void 0 === n && (n = !1), this.getEvents()),
|
||
o = !!r[s]; return Uh.prototype.on.call(this, s, t, i, n), this.map ? o || ("click" !== s && "mousemove" !== s || null != (o = this.map) && o.on(s, function(t) { if (!r[s]) return e;
|
||
t.type = s, t.target = e; var i = t.pixel,
|
||
i = e.getDistrictByContainerPos(i),
|
||
i = { preProps: e.IE, props: i, origin: t };
|
||
e.emit(s, i) }), /(mouseenter|mouseleave|mouseover|mouseout)/.test(s) && (null != (o = this.map) && o.on("mouseleave", function(t) { if ("mouseleave" === s || "mouseout" === s) { if (!r[s]) return e;
|
||
t.type = s, t = { preProps: (t.target = e).IE, props: void 0, origin: t }, e.emit(s, t), e.IE = void 0 } }), null != (o = this.map)) && o.on("mousemove", function(t) { if (!r[s]) return e; var i, n = t.pixel;
|
||
(n = e.getDistrictByContainerPos(n)) ? e.IE && e.IE.adcode === n.adcode && e.IE.SOC === n.SOC || (t.type = s, i = { preProps: (t.target = e).IE, props: n, origin: t }, e.emit("mouseleave", i), e.emit("mouseout", i), e.emit("mouseenter", i), e.emit("mouseover", i), e.IE = n): !e.IE || "mouseout" !== s && "mouseleave" !== s || (t.type = s, i = { preProps: (t.target = e).IE, props: n, origin: t }, e.emit("mouseleave", i), e.emit("mouseout", i), e.IE = n) })) : (o = { fn: t, context: i, once: n }, this.LE[s] ? this.LE[s].push(o) : this.LE[s] = [o]), this }, Yh.prototype.onAdd = function() { if (Uh.prototype.onAdd.call(this), this.LE)
|
||
for (var t in this.LE)
|
||
if (this.LE.hasOwnProperty(t))
|
||
for (var i = this.LE[t], n = 0; n < i.length; n++) this.on(t, i[n].fn, i[n].context) }; var Uh, _h = Yh;
|
||
|
||
function Yh(t) { var i = Uh.call(this, t) || this; return i.LE = {}, i.CX = "2" === t.dataVersion ? "2" : "", i.tP = { id: "DistrictLayer_" + st.Util.uuid(), tileUrl: AMap.getConfig().protocol + "://mvt.amap.com/district/[SOC]/[z]/[x]/[y]/4096?\nkey=" + AMap.getConfig().key + "&version=" + i.CX, zooms: st.zoomRange, dataZooms: [1, 18], opacity: 1, visible: !0, depth: 0, zIndex: 80, styles: { "stroke-width": .5, "nation-stroke": [.35, .35, .35, 1], "coastline-stroke": [.18, .63, .94, 1], "province-stroke": [.5, .5, .5, 1], "city-stroke": [.7, .7, .7, 1], "county-stroke": [.85, .85, .85, 1], fill: [1, 1, 1, 1], dash: void 0, zIndex: 0 }, SOC: "CHN" }, i.SOC = t.SOC || i.tP.SOC, i._id = i.tP.id, t.adcode && i.setAdcode(t.adcode), i._depth = t.depth || i.tP.depth, i.Ze = st.Util.baseAssign(st.Util.baseAssign({}, i.tP.styles), t.styles || {}), i.Ml = i.tP.tileUrl, i._tileUrl = i.tP.tileUrl.replace("[SOC]", i.SOC), i.xt = t.zooms || i.tP.zooms, i.tl = (void 0 === t.opacity ? i.tP : t).opacity, i.il = (void 0 === t.visible ? i.tP : t).visible, i.Qh = (void 0 === t.zIndex ? i.tP : t).zIndex, i.Qs = i.tP.dataZooms, i.CLASS_NAME = "AMap.DistrictLayer", i }
|
||
Zh = _h, st.Ei(Xh, Zh); var Zh, _t = Xh;
|
||
|
||
function Xh(t) { var i = this,
|
||
n = { id: "WorldLayer_" + st.Util.uuid(), zIndex: 81, SOC: "WLD" }; return (i = Zh.call(this, t) || this)._id = n.id, i.SOC = t.SOC || n.SOC, i.Qh = (void 0 === t.zIndex ? n : t).zIndex, i._tileUrl = i.Ml.replace("[SOC]", i.SOC), i.CLASS_NAME = "AMap.DistrictLayer.World", i }
|
||
Jh = _h, st.Ei(Hh, Jh); var Jh, Vt = Hh;
|
||
|
||
function Hh(t) { var i = this,
|
||
n = { id: "CountryLayer_" + st.Util.uuid(), depth: 1, zIndex: 82, SOC: "CHN" }; return 0 === (t = t || n).depth && (t.styles || (t.styles = {}), t.styles["stroke-width"] = 0), (i = Jh.call(this, t) || this)._id = n.id, i._depth = void 0 === t.depth ? n.depth : +t.depth, i.SOC = t.SOC || n.SOC, i.Qh = (void 0 === t.zIndex ? n : t).zIndex, "CHN" === i.SOC && 1 < i._depth && (i.SOC = "CHN2"), i._tileUrl = i.Ml.replace("[SOC]", i.SOC), i.CLASS_NAME = "AMap.DistrictLayer.Country", i }
|
||
Vh = _h, st.Ei(qh, Vh); var Vh, Gt = qh;
|
||
|
||
function qh(t) { var i = this,
|
||
n = { id: "ProvinceLayer_" + st.Util.uuid(), depth: 1, zIndex: 83, SOC: "CHN5" }; return (i = Vh.call(this, t) || this)._id = n.id, i._depth = void 0 === t.depth ? n.depth : +t.depth, i.SOC = t.SOC || n.SOC, i.Qh = (void 0 === t.zIndex ? n : t).zIndex, 0 === i._depth && (i.SOC = "CHN4"), 1 === i._depth && (i.SOC = "CHN5"), 2 === i._depth && (i.SOC = "CHN3"), i._tileUrl = i.Ml.replace("[SOC]", i.SOC), i.CLASS_NAME = "AMap.DistrictLayer.Province", i.onCreated(), i }
|
||
_h.World = _t, _h.Country = Vt, _h.Province = Gt, Kh = ui, st.Ei($h, Kh), $h.prototype._l = function() { this.kl.TileMatrixSet = this.kl.TileMatrixSet || "EPSG:3857", this.kl.Request = "GetTile", this.kl.Service = "WMTS", this.kl.Format = this.kl.Format || "image/png", this._tileUrl = this.Ml + "?" + st.Util.join(this.kl, "&"), this.map && this.map.setNeedUpdate(!0) }, $h.prototype.getSourceConfig = function() { return { id: this._id || "tile", tileUrl: this._tileUrl || "", type: "markLayer", tileSize: this.Xa || 256, zooms: this.xt, dataZooms: this.Qs || [7, 17], projection: this.hl || "EPS3857" } }; var Kh, na, sa, ea, Qh = $h;
|
||
|
||
function $h() { var h = this,
|
||
t = { id: "mark_" + st.Util.uuid(), cacheSize: 1, opacity: 1, tileUrl: "", visible: !0, zIndex: 1e3, detectRetina: !1, dataZooms: [2, 30], TF: !0 }; return (h = Kh.call(this, t) || this)._opts = t, h.CLASS_NAME = "AMap.MarkLayer", h.bl = function(t, i, n, s, e) { console.log("_createTile"); var r, o = document.createElement("img"); "w" === (null == (r = h.map) ? void 0 : r.baseRender) && (o.crossOrigin = "anonymous"), o.onload = function() { s(o) }, o.onerror = function() { e(o) }, o.src = h._tileUrl + "&TileMatrix=" + n + "&TileRow=" + i + "&TileCol=" + t }, h }
|
||
|
||
function ta(t, i) { var s = F(t = Array.isArray(t) ? t : [t]);
|
||
0 === s.length ? i() : (P.add(s, i), W(na + "/mapsplugin?v=" + sa + "&cls=" + s.join() + "&key=" + ea, function() { for (var t = 0, i = s; t < i.length; t++) { var n = i[t];
|
||
P.finish(n) } })) }
|
||
|
||
function ia() { return oa }
|
||
ti = config, na = (ti = void 0 === ti ? [] : ti)[16] + "://" + ti[17] || "", sa = ti[4], ea = ti[0], ti[18] || console.log("地图 JS API 将于2023年1月1日起,禁止非Web端key的调用权限。请您提前确保已正确使用 Web 端 key 进行服务访问,避免对您的服务产生不必要的影响。"), st.Module.module = function(t, i) { var s = F(t = Array.isArray(t) ? t : [t]);
|
||
0 === s.length ? i && i() : (P.add(s, i), W(na + "/mapsplugin?v=" + sa + "&cls=" + s.join() + "&key=" + ea, function() { for (var t = 0, i = s; t < i.length; t++) { var n = i[t];
|
||
P.finish(n) } })) }, G('.amap-custom{top:0;left:0;position:absolute}.amap-container img{max-width:none!important;max-height:none!important}.amap-container{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAACC2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjE8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlBob3RvbWV0cmljSW50ZXJwcmV0YXRpb24+MjwvdGlmZjpQaG90b21ldHJpY0ludGVycHJldGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KD0UqkwAAAf1JREFUeAHtmtGpAkEQBE9TMAi/zMb8MzCGU/97Ye8QunDrfQ7qNFUMS8Pbtom/fd8fEx/b/FymdIDL85p/wmmLgEJa5Ad7FTIA0xorpEV+sFchAzCtsUJa5Ad7FTIA0xorpEV+sPcyW1oG33f8WwL3qZ+blebnMs4DXGzqGWFv6hvSYx83KyRi6Q0V0mMfNyskYukNFdJjHzcrJGLpDRXSYx8329QjltrQpp7QH2jWv/5fA5t6EtKc+YY06YfdCglQmiOFNOmH3QoJUJojhTTph90KCVCaI4U06YfdNvUApTiyqSf4NvVEZdGZbwhMvEIUAiMAi+OFKARGABbHC1EIjAAsjk2dJcSmnnzY1BOVRWc+6jDxClEIjAAsjheiEBgBWBwvRCEwArA4/9LUbx+uLxjbM3Fs6omaTT1RWXTmow4TrxCFwAjA4nghCoERgMXxQhQCIwCL8y9NHYb1dBybekJnU09UFp35qMPEK0QhMAKwOF6IQmAEYHG8EIXACMDi2NRZQmzqyYdNPVFZdOajDhOvEIXACMDieCEKgRGAxfFCFAIjAItjU2cJsaknHzb1RGXRmY86TLxCFAIjAIvjhSgERgAWxwtRCIwALI5NnSXEpp582NQTlUVnPuow8QpRCIwALI4XohAYAVgcL0QhMAKwON+m/oRlWjrOG2SeYNIaKe7fAAAAAElFTkSuQmCC);background-color:#f1f1f1;touch-action:none;position:relative;overflow:hidden;-ms-touch-action:none}.amap-drags,.amap-layers{width:100%;height:100%;position:absolute;overflow:hidden;transform:translateZ(0)}.amap-layers canvas{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.amap-layers .amap-layer-tile{transform:translateZ(0)}.amap-layers .amap-layer-tile,.amap-layers .amap-layer-tile img{position:absolute;top:0;left:0;user-select:none;-webkit-user-select:none}.amap-layers .amap-layer-image{position:absolute;top:0;left:0;transform:translateZ(0)}.amap-layers .amap-layer-image img{position:absolute;top:0;left:0}.amap-layer img{pointer-events:none;display:block}.amap-layers .amap-layer-overlay{position:absolute;top:0;left:0;transform:translateZ(0)}.amap-e,.amap-maps{width:100%;height:100%;outline:none}.amap-maps{z-index:0}.amap-e,.amap-layers,.amap-maps,.amap-tile-container{position:absolute;left:0;top:0;overflow:hidden}.amap-context,.amap-marker,.amap-markers,.amap-overlays{position:absolute;left:0;top:0}.amap-layers{z-index:0}.amap-overlays{z-index:110;cursor:default}.amap-markers{z-index:120}.amap-controls{z-index:150}.amap-copyright{display:block!important;left:85px;height:16px;bottom:1.8px;line-height:1.5;padding-bottom:2px;font-size:11px;font-family:Arial,sans-serif}.amap-copyright,.amap-logo{position:absolute;z-index:160;user-select:none;-webkit-user-select:none}.amap-logo{bottom:1.5px;left:4px;height:20px}.amap-logo img{width:73px!important;height:20px!important;border:none;vertical-align:baseline!important;user-select:none;-webkit-user-select:none}.amap-icon{position:relative;z-index:1}.amap-icon img{position:absolute;z-index:-1}.amap-marker-label{position:absolute;z-index:2;border:1px solid #00f;background-color:#fff;white-space:nowrap;cursor:default;padding:3px;font-size:12px;line-height:14px}.amap-info{left:0;width:fit-content;width:-webkit-fit-content;width:-moz-max-content}.amap-info,.amap-menu{position:absolute;z-index:140}.amap-info-close{position:absolute;right:5px;top:5px;color:#c3c3c3;text-decoration:none;font:700 16px/14px Tahoma,Verdana,sans-serif;width:14px;height:14px;cursor:pointer}.amap-info-outer,.amap-menu-outer{box-shadow:0 1px 2px rgba(0,0,0,.1);background:none repeat scroll 0 0 #fff;border-radius:2px;padding:1px;text-align:left}.amap-info-contentContainer:hover .amap-info-outer,.amap-menu-outer:hover{box-shadow:0 1px 2px rgba(0,0,0,.3)}.amap-info-content{position:relative;background:#fff;padding:10px 18px 10px 10px;line-height:1.4;overflow:auto}.amap-marker-content{position:relative}.amap-info-sharp-old{overflow:hidden;position:absolute;background-image:url(https://webapi.amap.com/images/arrows.png)}.bottom-center .amap-info-sharp-old{height:12px;width:20px;background-position:center 12px;top:100%;left:50%;margin:-9px auto 0 -10px}.bottom-left .amap-info-sharp-old{height:12px;width:13px;background-position:-16px -46px;top:100%;margin-top:-9px}.bottom-right .amap-info-sharp-old{height:12px;width:13px;top:-1px;background-position:-56px -46px;left:100%;margin-left:-13px;top:100%;margin-top:-9px}.middle-left .amap-info-sharp-old{height:20px;width:12px;background-position:0;top:50%;margin-top:-10px;margin-left:-11px}.center .amap-info-sharp-old{display:none}.middle-right .amap-info-sharp-old{height:20px;margin-right:0;width:12px;background-position:100%;left:100%;margin-left:-9px;top:50%;margin-top:-10px}.top-center .amap-info-sharp-old{height:12px;width:20px;background-position:top;top:0;left:50%;margin:-3px auto 0 -10px}.top-left .amap-info-sharp-old{height:12px;width:13px;background-position:-16px -3px;top:0;margin-top:-3px}.top-right .amap-info-sharp-old{height:12px;width:13px;background-position:-56px -3px;left:100%;margin-left:-13px;top:0;margin-top:-3px}.amap-info-sharp{position:absolute}.bottom-center .amap-info-sharp{bottom:0;left:50%;border-top:8px solid #fff}.bottom-center .amap-info-sharp,.bottom-center .amap-info-sharp:after{margin-left:-8px;border-left:8px solid transparent;border-right:8px solid transparent}.bottom-center .amap-info-sharp:after{position:absolute;content:"";margin-top:-7px;border-top:8px solid rgba(0,0,0,.3);filter:blur(2px);z-index:-1}.amap-info-contentContainer:hover.bottom-center .amap-info-sharp:after{border-top:8px solid rgba(0,0,0,.5)}.bottom-left .amap-info-sharp{border-color:transparent #fff;border-style:solid;border-width:0 0 10px 10px}.bottom-left .amap-info-sharp:after{position:absolute;content:"";margin-left:-10px;border-color:transparent rgba(0,0,0,.3);border-style:solid;border-width:0 0 10px 10px;filter:blur(1px);z-index:-1}.amap-info-contentContainer:hover.bottom-left .amap-info-sharp:after{border-color:transparent rgba(0,0,0,.5)}.bottom-left .amap-info-content{border-radius:2px 2px 2px 0}.bottom-right .amap-info-sharp{right:0;border-top:10px solid #fff;border-left:10px solid transparent}.bottom-right .amap-info-sharp:after{position:absolute;margin-top:-9px;margin-left:-10px;content:"";border-top:10px solid rgba(0,0,0,.3);border-left:10px solid transparent;filter:blur(1px);z-index:-1}.amap-info-contentContainer:hover.bottom-right .amap-info-sharp:after{border-top:10px solid rgba(0,0,0,.5)}.bottom-right .amap-info-content{border-radius:2px 2px 0 2px}.top-center .amap-info-sharp{top:0;left:50%;border-bottom:8px solid #fff}.top-center .amap-info-sharp,.top-center .amap-info-sharp:after{margin-left:-8px;border-left:8px solid transparent;border-right:8px solid transparent}.top-center .amap-info-sharp:after{position:absolute;content:"";margin-top:0;border-bottom:8px solid rgba(0,0,0,.3);filter:blur(1px);z-index:-1}.top-left .amap-info-sharp{left:0;top:0;border-bottom:10px solid #fff;border-right:10px solid transparent}.top-left .amap-info-sharp:after{position:absolute;content:"";margin-top:0;margin-left:0;border-bottom:10px solid rgba(0,0,0,.3);border-right:10px solid transparent;filter:blur(1px);z-index:-1}.top-right .amap-info-sharp{right:0;top:0;border-bottom:10px solid #fff;border-left:10px solid transparent}.top-right .amap-info-sharp:after{position:absolute;content:"";margin-top:0;margin-left:-10px;border-bottom:10px solid rgba(0,0,0,.3);border-left:10px solid transparent;filter:blur(1px);z-index:-1}.middle-right .amap-info-sharp{right:0;top:50%;border-left:8px solid #fff}.middle-right .amap-info-sharp,.middle-right .amap-info-sharp:after{margin-top:-8px;border-top:8px solid transparent;border-bottom:8px solid transparent}.middle-right .amap-info-sharp:after{position:absolute;content:"";margin-left:-8px;border-left:8px solid rgba(0,0,0,.3);filter:blur(1px);z-index:-1}.amap-info-contentContainer:hover.middle-right .amap-info-sharp:after{border-left:8px solid rgba(0,0,0,.5)}.middle-left .amap-info-sharp{left:0;top:50%;border-right:8px solid #fff}.middle-left .amap-info-sharp,.middle-left .amap-info-sharp:after{margin-top:-8px;border-top:8px solid transparent;border-bottom:8px solid transparent}.middle-left .amap-info-sharp:after{position:absolute;content:"";margin-left:0;border-right:8px solid rgba(0,0,0,.3);filter:blur(1px);z-index:-1}.amap-info-contentContainer:hover.middle-left .amap-info-sharp:after{border-right:8px solid rgba(0,0,0,.5)}.amap-info-contentContainer.top-center,.amap-info-contentContainer.top-left,.amap-info-contentContainer.top-right{padding-top:8px}.amap-info-contentContainer.bottom-center,.amap-info-contentContainer.bottom-left,.amap-info-contentContainer.bottom-right{padding-bottom:8px}.amap-info-contentContainer.middle-right{padding-right:8px}.amap-info-contentContainer.middle-left{padding-left:8px}.amap-menu-outer{margin:0;padding:0;list-style-type:none}ul.amap-menu-outer li{height:35px;line-height:35px;word-break:break-all;padding:0 10px;font-size:12px;white-space:nowrap}ul.amap-menu-outer li a{text-decoration:none;font-size:13px;margin:0 5px;color:#000;padding:5px}ul.amap-menu-outer li:hover{background-color:#f3f3ee}.amap-overlay-text-container{display:block;width:auto;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff;padding:2px 3px;border:1px solid #ccc;border-radius:3px}.amap-overlay-text-container.amap-overlay-text-empty{display:none}.amap-info-content-ie8{border:1px solid #9c9c9c}.amap-control{position:absolute;-webkit-tap-highlight-color:transparent}.amap-toolbar{background-color:#fff;border-radius:4px;box-shadow:0 0 3px rgba(0,0,0,.5)}.amap-toolbar span{display:block;width:30px;height:30px;line-height:30px;text-align:center;border-radius:0 0 4px 4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:20px}.amap-toolbar span:first-child{border-bottom:1px solid #eee;border-radius:4px 4px 0 0}.amap-toolbar span:hover{font-weight:bolder;background-color:#f0f0f0}.amap-scalecontrol{pointer-events:none;background-color:hsla(0,0%,100%,.5);border-radius:2px;user-select:none}.amap-scalecontrol .amap-scale-text{font-size:10px;text-align:center;transition:width .3s;user-select:none}.amap-scalecontrol .amap-scale-line{position:relative;height:8px;left:2px;user-select:none}.amap-scalecontrol .amap-scale-edgeleft,.amap-scalecontrol .amap-scale-edgeright,.amap-scalecontrol .amap-scale-middle{position:absolute;background-color:#333;overflow:hidden;box-sizing:content-box!important}.amap-scalecontrol .amap-scale-edgeright{width:1px;height:6px;border:1px solid #fff;transition:left .3s}.amap-scalecontrol .amap-scale-middle{height:2px;left:2px;top:2px;border-top:1px solid #fff;border-bottom:1px solid #fff;transition:width .3s}.amap-scalecontrol .amap-scale-edgeleft{width:1px;height:6px;border:1px solid #fff}.amap-controlbar,.amap-controlbar *{user-select:none}.amap-controlbar .amap-luopan{width:92px;height:92px;background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) -22px -30px no-repeat;background-size:348px 270px;user-select:none}.amap-luopan .amap-compass{top:46px;left:50%;position:absolute;margin:-24px;width:48px;height:48px;z-index:10;background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) -231px -26px no-repeat;background-size:348px 270px}.amap-luopan .amap-compass.amap-compass-black{background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) no-repeat -231px -79px;background-size:348px 270px}.amap-luopan .amap-compass .amap-pointers{position:absolute;width:30px;height:48px;top:0;left:9px;border:none;z-index:2;background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) -281px -26px no-repeat;background-size:348px 270px}.amap-pitchDown,.amap-pitchUp{width:30px;height:25.5px;position:absolute;top:3.5px;margin-left:-15px;left:50%;z-index:1;background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) -302.5px -49px no-repeat;background-size:348px 270px}.amap-pitchDown:hover,.amap-pitchUp:hover{background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) no-repeat -302.5px -23.5px;background-size:348px 270px}.amap-pitchDown{top:66px;transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);-o-transform:rotate(180deg);-moz-transform:rotate(180deg)}.amap-rotateLeft,.amap-rotateRight{width:21px;height:52px;top:19px;position:absolute;z-index:2;background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) -301.5px -77px no-repeat;background-size:348px 270px}.amap-rotateLeft:hover,.amap-rotateRight:hover{background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) no-repeat -278.5px -76.5px;background-size:348px 270px}.amap-rotateLeft{left:5px}.amap-rotateRight{right:5px;transform:rotateY(180deg);-ms-transform:rotateY(180deg);-webkit-transform:rotateY(180deg);-o-transform:rotateY(180deg);-moz-transform:rotateY(180deg)}.amap-ctrl-icon-layer{width:30px;height:30px}.amap-ctrl-icon-layer,.amap-ctrl-list-layer{background-color:#fff;border-radius:3px;box-shadow:0 0 4px 1px rgba(0,0,0,.2)}.amap-ctrl-list-layer{position:absolute;top:0;right:0;overflow:hidden;z-index:1}.amap-ctrl-list-layer ul{overflow:hidden;list-style:none;margin:0;padding:5px 8px}.amap-ctrl-list-layer ul li{float:left;width:100%}.amap-ctrl-list-layer ul p{white-space:nowrap;font-size:12px;height:20px;line-height:20px;padding-left:5px;margin:0 10px}.amap-ctrl-list-layer input{float:left;height:20px;width:12px;margin:0 5px}.amap-ctrl-base-layer{border-bottom:1px solid #eee}.amap-ranging-label{_width:10px;font-size:12px;line-height:14px;background:#fff;border:1px solid #ccc;padding:3px 7px 3px 2px;white-space:nowrap}.amap-ranging-label span{height:12px;vertical-align:center;display:inline-block;white-space:nowrap;margin-left:5px}.amap-popup{text-align:center;position:fixed;top:50%;left:50%;margin-left:-165px;margin-top:-170px}.amap-popup-content{vertical-align:middle;line-height:200px;overflow:hidden;background-color:#fff;border:solid;border-width:3px 1px;border-radius:5px;border-color:#ddf;margin:0 auto;text-align:center;height:340px}.amap-labellayers{position:absolute;top:0;left:0;transform-origin:0 0}.amap-indoormap-floorbar-control{position:absolute;width:40px;text-align:center;line-height:1.3em;border-radius:20px;box-shadow:0 0 3px 3px rgba(0,0,0,.1);background-color:#fff;margin-top:-100px}.amap-indoormap-floorbar-control .floor-list-box{max-height:160px;overflow:scroll;-ms-overflow-style:none;overflow:-moz-scrollbars-none;-webkit-user-select:none;-moz-user-select:none}.floor-list-box::-webkit-scrollbar{width:0!important;height:0!important}.amap-indoormap-floorbar-control ul{list-style:none;margin:0;padding:0 4px;width:40px;box-sizing:border-box}.amap-indoormap-floorbar-control ul li{height:32px;width:32px;border-radius:16px}.amap-indoormap-floorbar-control ul li:hover{background-color:#efefef}.amap-indoormap-floorbar-control ul li div{height:32px;text-align:center;line-height:32px;font-size:12px}.amap-indoormap-floorbar-control ul li.selected{color:#fff;background-color:#4196ff}.amap-indoormap-floorbar-control .floor-minus,.amap-indoormap-floorbar-control .floor-plus{height:32px;width:32px;margin:0 auto;border-radius:16px;position:relative}.amap-indoormap-floorbar-control .floor-minus:after,.amap-indoormap-floorbar-control .floor-plus:after{content:"";position:absolute;margin:auto;bottom:4px;left:0;right:0;width:0;height:0;border:7px solid transparent;border-top-color:#777}.amap-indoormap-floorbar-control .floor-plus:after{border-bottom-color:#777;border-top-color:transparent;bottom:11px}.amap-indoormap-floorbar-control .floor-plus:hover:after{border-bottom-color:#222}.amap-indoormap-floorbar-control .floor-minus:hover:after{border-top-color:#222}.amap-indoormap-floorbar-control .floor-plus.disabled:after{border-bottom-color:#ddd}.amap-indoormap-floorbar-control .floor-minus.disabled:after{border-top-color:#ddd}.amap-indoormap-floorbar-control .floor-list-item.selected:after{right:0;left:auto;border-left-color:transparent;border-right-color:#4196ff}.amap-indoormap-floorbar-control .floor-btn.disabled,.amap-indoormap-floorbar-control .floor-btn.disabled *,.amap-indoormap-floorbar-control.with-indrm-loader *{-webkit-pointer-events:none!important;pointer-events:none!important}.amap-indoormap-floorbar-control .with-indrm-loader .floor-nonas{opacity:.5}'), -1 !== (si = 0 !== (si = window.location.href).indexOf("http") && window.parent && window.parent !== window ? window.parent.location.href : si).indexOf("?") && (si = si.substr(0, si.indexOf("?"))), si = encodeURIComponent(si); var pi = (ji = config[16] || config[2].split(":")[0]) + "://restapi.amap.com",
|
||
ft = (xi = ji + "://" + config[2].split("://")[1]) + "/theme/v1.3/markers/" + (st.Support.Ue ? "b" : "n"),
|
||
Qt = ji + "://webrd0{1,2,3,4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x=[x]&y=[y]&z=[z]",
|
||
li = ji + "://wprd0{1,2,3,4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x=[x]&y=[y]&z=[z]",
|
||
ra = "",
|
||
Si = "",
|
||
oa = (window._AMapSecurityConfig && (window._AMapSecurityConfig.securityJsCode ? ra = window._AMapSecurityConfig.securityJsCode || "" : window._AMapSecurityConfig.serviceHost && (Oi = "", Bt = (Oi = "https" === (Si = window._AMapSecurityConfig.serviceHost || "").split(":")[0] ? Si.replace(/https:\/\/\S+?\//g, "") : Si.replace(/http:\/\/\S+?\//g, "")) && Oi.split("/")[0], Xt = window.location.hostname, "_AMapService" !== Bt) && ("127.0.0.1" === Xt || "localhost" === Xt ? window.alert("使用 JSAPI 安全模式,代理服务请以_AMapService 作为一级路由") : "undefined" != typeof console && console.log("<AMap JSAPI> 使用 JSAPI 安全模式,代理服务请以_AMapService 作为一级路由"))), { key: config[0], host: config[2], domain: config[17], server: pi, protocol: ji, version: config[4], adcode: config[6], callback: config[5], appname: si, client: xi, markers: ft, pc: "http://gaode.com", mo: "http://m.amap.com", workerUrl: "", YT: Qt, qT: li, y_: st.Support.$e ? li : Qt, v_: "\x3c!--v2.0--\x3e © " + (new Date).getFullYear() + " AutoNavi ", db: config[14] || "", JH: config[15] || "", jscode: ra, gaodeserver: Si, vdataProxy: "", keytype: config[19], poiImgVersion: config[20] }); return oi = (new Date).getTime(), _t = oa.server + "/v3/log/init?", (s = ["platform=JS&s=rsv3&logversion=2.0&product=JsInit&key=" + oa.key, "t=" + oi]).push("sdkversion=2.0"), s.push("appname=" + si), s.push("csid=" + st.Util.uuid()), s.push("resolution=" + window.screen.width + "*" + window.screen.height), s.push("mob=" + (st.Support.$e ? 1 : 0)), s.push("vt=" + (st.Support.isWebGL ? 1 : 0)), s.push("dpr=" + window.devicePixelRatio), s.push("scale=" + (st.Support.Ue ? 2 : 1)), s.push("detect=" + st.Support.Ue), oa.jscode ? s.push("jscode=" + oa.jscode) : oa.gaodeserver && (_t = oa.gaodeserver + "/v3/log/init?"), _t += s.join("&"), yi.JSONP(_t),
|
||
function(t) { return t[1] && (ar = t[1].slice(-2), rr = t[1].slice(0, 4)), { Map: fr, ImageLayer: pr, createDefaultLayer: Kr, TileLayer: p, NebulaLayer: Ji, Buildings: Jr, Indoor: jh, SkyLayer: ws, DistrictLayer: _h, CanvasLayer: Mr, CustomLayer: Ar, GLCustomLayer: no, LabelsLayer: ys, MassMarks: Sr, Event: st.Event, version: "2.0", plugin: ta, LngLat: st.LngLat, Pixel: st.Pixel, Size: st.Size, Icon: oe, Bounds: l, extent: jt, Marker: Oe, Text: Or, InfoWindow: Ge, ContextMenu: Ke, LabelMarker: Fr, Polygon: Qo, Rectangle: nh, Ellipse: rh, Circle: uh, CircleMarker: dh, Polyline: gh, BezierCurve: Th, OverlayGroup: po, VectorLayer: ns, LayerGroup: ro, Control: Nr, DomUtil: k, Util: st.Util, GeometryUtil: st.GeometryUtil, Browser: _r, UA: { ie: _r.ie, ie9: _r.ie9, ie11: _r.ie11, mobile: _r.mobile, android: _r.android, ios: _r.ios }, PlaneGeometryUtil: st.PlaneGeometryUtil, getConfig: ia, WebService: nr, extend: st.extend, Http: yi, addCss: G, BuryPoint: Vr, lcs: st.lcs, convertFrom: er, Heatmap: ho, IndoorMap: Bh, Mapbox: co, BuildingLayer: Jr, Mark: Qh } } }); var __AMap_callback = AMap.getConfig().callback,
|
||
tryGetCallback, tryCallback; return __AMap_callback && (tryGetCallback = function() { var c = __AMap_callback.split("."),
|
||
context = window;
|
||
do { if (!(context = context[c.shift()])) return null } while (c.length); return context || null }, tryCallback = function(isFinalTry) { var func = tryGetCallback(); if (func) { if ("function" != typeof func) throw new Error(__AMap_callback + " is not a function!");
|
||
setTimeout(func, 1) } else if (isFinalTry) throw new Error("Can not find callback: " + __AMap_callback + ", try define it before load JsApi!") }, document.body && tryGetCallback() ? tryCallback() : setTimeout(function() { tryCallback(!0) }, 1)), AMap });
|
||
(typeof _cssload_ == "function") && _cssload_("logo", ".amap-logo{display:block!important;pointer-events:none;}", true)
|
||
})(["8d7b8cd643454bec7737b3423647be21", [113.751453, 22.438581, 114.628467, 22.861748, 114.085947, 22.547], "https://webapi.amap.com", 1, "2.0.6.1", null, "440300", "AMap.Autocomplete,AMap.PlaceSearch,AMap.MouseTool,AMap.Geocoder,AMap.Driving", true, false, false, true, "20230103011500-20201123-1", false, "A", "3_23_10_10_00", "https", "webapi.amap.com", 1, "0", "20230111"])
|
||
_cssload_('AMap.PlaceSearch', '.amap_lib_placeSearch{font-family:Microsoft Yahei,Helvetica Neue,Helvetica,Arial,sans-serif;color:#565656;font-size:12px;line-height:22px;word-wrap:break-word;background-color:#fff;border:1px solid silver;-webkit-text-size-adjust:none;text-size-adjust:none;min-width:270px}.amap_lib_placeSearch .pageLink{cursor:pointer;line-height:16px;display:inline-block;text-align:center;padding:0 4px}.amap_lib_placeSearch.mobile .pageLink{border:1px solid #ddd;background:#eee;padding:2px 3px}.amap_lib_placeSearch .amap_lib_placeSearch_page .current{border-color:#0091ff;color:#0091ff;margin-left:-2px}.amap_lib_placeSearch_list{background:#fff none repeat scroll 0 0}.amap_lib_placeSearch .poibox .poibox-icon{margin-left:7px;margin-top:4px}.amap_lib_placeSearch_page{white-space:nowrap;text-align:right;margin:8px 0 5px;padding:2px;overflow:hidden}.amap_lib_placeSearch_page>div{float:left;margin-right:5px}.amap_lib_placeSearch_page>div>p{margin:0;padding:0;white-space:nowrap}.amap_lib_placeSearch_page>div>p>span{display:inline-block;padding:0 2px;min-width:15px;height:18px;border:1px solid #d9d9d9;border-radius:4px;line-height:18px;text-align:center;margin-right:3px}.amap_lib_placeSearch_page>div>p>span:hover{border-color:#1890ff;color:#1890ff;cursor:pointer}.amap_lib_placeSearch_ol{list-style:outside none none;padding:0;margin:0}.amap_lib_placeSearch_li{margin:2px 0;padding:0 5px 5px 0;cursor:pointer;overflow:hidden;line-height:17px}.amap_lib_placeSearch_li .amap_lib_placeSearch_li_wrap{overflow:hidden;padding:0 5px}.amap_lib_placeSearch_li_wrap_selected{background-color:#f0f0f0}.amap_lib_placeSearch_li>div .amap_lib_placeSearch_li_title{line-height:20px;font-size:12px}.amap_lib_placeSearch_li>div .amap_lib_placeSearch_li_title span{color:#00c}.amap_lib_placeSearch_li>div .amap_lib_placeSearch_li_title a{margin-left:5px;font-size:12px;color:#3d6dcc;font-weight:400;text-decoration:none}.amap_lib_placeSearch_li>div .amap_lib_placeSearch_li_text{padding:2px 0;line-height:18px;*zoom:1;overflow:hidden}.amap_lib_placeSearch_li>div .amap_lib_placeSearch_li_text b{float:left;font-weight:700;*zoom:1;overflow:hidden;padding-right:5px;*margin-right:-3px}.amap_lib_placeSearch_li>div .amap_lib_placeSearch_li_text span{color:#666;display:block;zoom:1;overflow:hidden}.amap-lib-infowindow .amap-lib-infowindow-content-wrap{word-break:break-all;overflow:hidden;zoom:1}.amap-lib-infowindow{padding:0;position:relative;background-color:#fff;margin:8px}.amap-lib-infowindow-title{line-height:22px;font-size:14px;border-bottom:1px solid #99adce;padding-right:15px}.amap-lib-infowindow-content{padding-top:5px;overflow:hidden;font-size:12px;zoom:1}.selected .amap_lib_placeSearch_poi{background-image:url(https://a.amap.com/jsapi/static/image/plugin/marker_red.png)}.amap_lib_placeSearch_poi{background:url(https://a.amap.com/jsapi/static/image/plugin/marker_red.png) no-repeat;background-size:20px 25px;width:20px;height:27px;cursor:pointer;left:-1px;text-align:center;color:#fff;font:12px arial,simsun,sans-serif;padding-top:3px}.amap_lib_placeSearch_pic{width:46px;height:46px;float:left;margin:4px 10px 0 0}.amap_lib_placeSearch_pic img{width:46px;height:46px}.selected .amap_lib_placeSearch_child_poi{background-image:url(https://a.amap.com/jsapi/static/image/plugin/marker_red.png)}.amap_lib_placeSearch_child_poi{width:11px;height:11px;border:1px solid #eee;border-radius:6px;background:url(https://a.amap.com/jsapi/static/image/plugin/marker_blue.png) no-repeat 50%;text-indent:-10000em;overflow:hidden}.poi-children-box{padding:3px 0 3px 25px}.poi-child-item.selected{border-color:#e17070}.poi-child-item{display:inline-block;line-height:180%;border:1px solid #ccc;background:#f3f3f3;margin:0 3px 3px 0;padding:0 3px;width:27%;min-width:40px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;text-align:center}.poi-child-item:hover{background:#ddd}.amap_lib_placeSearch{border:1px solid #ebedf0;border-radius:2px;padding:5px 10px 2px}.amap_lib_placeSearch .amap-ellipsis{max-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.amap_lib_placeSearch .amap_lib_placeSearch_poi{position:absolute}.amap_lib_placeSearch ol,.amap_lib_placeSearch ul{list-style:outside none none;margin:0;padding:0}.amap_lib_placeSearch .poibox{border-bottom:1px solid #e8e8e8;cursor:pointer;padding:10px 5px;position:relative;min-height:35px}.amap_lib_placeSearch .poibox:last-child{border-bottom:none}.amap_lib_placeSearch .poibox .poi-title{margin-left:25px;font-size:14px;font-weight:700;overflow:hidden}.amap_lib_placeSearch .poibox .poi-title a{font-weight:400;text-decoration:none;color:#666;position:absolute;right:2px}.amap_lib_placeSearch .poibox .poi-title a:hover{color:#0091ff}.amap_lib_placeSearch .poibox .poi-title .poi-name{max-width:160px;display:inline-block}.amap_lib_placeSearch .poi-more{color:#0091ff;font-size:12px;line-height:22px;white-space:nowrap;vertical-align:baseline}.amap_lib_placeSearch .poibox .poi-info{word-break:break-all;margin:0 0 0 25px;overflow:hidden}.amap_lib_placeSearch .poibox .poi-info p{color:#999;font-family:Tahoma;line-height:20px}.amap_lib_placeSearch p{margin:0}.amap_lib_placeSearch h1,.amap_lib_placeSearch h2,.amap_lib_placeSearch h3,.amap_lib_placeSearch h4,.amap_lib_placeSearch h5{font-weight:400;margin:0}.amap_lib_placeSearch .poibox.active,.amap_lib_placeSearch .poibox.hover,.amap_lib_placeSearch .poibox:hover{background:#fafafa none repeat scroll 0 0}.amap_lib_placeSearch .poibox .select-btn{margin-left:25px;margin-top:6px;border:0;color:#fff;cursor:pointer;padding:3px 6px;border-radius:2px}.amap-combo-close{position:absolute;top:11px;right:10px;background:url(http://webapi.amap.com/theme/v1.3/images/amap-info.png) no-repeat -1px -151px;width:12px;height:12px;cursor:pointer}.amap-content-body{min-width:200px;max-width:240px;font-family:Helvetica,Hiragino Sans GB,Microsoft Yahei,微软雅黑,Arial,sans-serif;box-shadow:0 0 .5px rgba(0,0,100,.6);background:none repeat scroll 0 0 #fff;border-radius:2px;text-align:left;border:1px solid silver}.amap-combo-sharp{margin:0 auto;bottom:1px;position:relative;background:url(http://webapi.amap.com/theme/v1.3/images/amap-info.png) no-repeat -5px -564px;width:18px;height:9px}.amap-pl-pc .poi-img{float:right;margin:3px 8px 0;width:90px;height:56px;overflow:hidden}.amap-pl-pc .poi-name{vertical-align:middle}.amap-pl-pc .poi-more{display:inline-block;width:16px;height:16px;text-indent:-1000em;background:url(http://webapi.amap.com/theme/v1.3/images/newpc/tips.png) no-repeat 50%;vertical-align:middle;cursor:pointer;opacity:.5;margin:1px 0 1px 2px;background-size:85%}.amap-pl-pc .poi-more:hover{opacity:1;background-size:100%}.amap_lib_placeSearch .clear{clear:both}.amap-pls-marker-tip{position:absolute;background:#fff;display:none;top:0;left:-100px;min-width:100px;width:auto;white-space:nowrap;line-height:200%;padding:0 0 0 7px;font-size:13px;border-radius:2px;-webkit-box-shadow:0 0 8px 0 rgba(0,0,0,.5);-moz-box-shadow:0 0 8px 0 rgba(0,0,0,.5);box-shadow:0 0 8px 0 rgba(0,0,0,.5);transition:all .5s 1s;z-index:150}.amap-pls-marker-tip .title{display:inline-block;vertical-align:middle;max-width:150px;overflow:hidden;text-overflow:ellipsis;margin-right:35px}.amap_lib_placeSearch_child_con .amap-pls-marker-tip{top:-7px}.amap-marker .hover .amap_lib_placeSearch_child_con .amap-pls-marker-tip{left:23px}.amap-marker .hover .amap-pls-marker-tip{display:block;left:28px}.amap-marker .hover.selected .amap-pls-marker-tip{display:none}.amap-pls-marker-tip:after,.amap-pls-marker-tip:before{content:"";width:0;height:0;top:50%;left:0;margin-top:-7px;margin-left:-15px;position:absolute;border:7px solid transparent;border-right:8px solid rgba(51,51,51,.2)}.amap-pls-marker-tip:after{margin-left:-14px;border-right:8px solid #fff}');
|
||
_jsload_('AMap.PlaceSearch', '!function(AMap){"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1})}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,p){return o.__proto__=p,o})(o,p)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return self}function _createSuper(Derived){var hasNativeReflectConstruct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var NewTarget,Super=_getPrototypeOf(Derived),Super=(NewTarget=hasNativeReflectConstruct?(NewTarget=_getPrototypeOf(this).constructor,Reflect.construct(Super,arguments,NewTarget)):Super.apply(this,arguments),this);if(NewTarget&&("object"==typeof NewTarget||"function"==typeof NewTarget))return NewTarget;if(void 0!==NewTarget)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(Super)}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _createForOfIteratorHelper(o,allowArrayLike){var i,it="undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=function(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Map"===(n="Object"===n&&o.constructor?o.constructor.name:n)||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}(o))||allowArrayLike&&o&&"number"==typeof o.length)return it&&(o=it),i=0,{s:allowArrayLike=function(){},n:function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function(e){throw e},f:allowArrayLike};throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return{s:function(){it=it.call(o)},n:function(){var step=it.next();return normalCompletion=step.done,step},e:function(e){didErr=!0,err=e},f:function(){try{normalCompletion||null==it.return||it.return()}finally{if(didErr)throw err}}}}var PlaceSearchRenderUtil={getElementsByClassName:function(className,tag,parent){for(var current,testClass=new RegExp("(^|\\\\s)"+className+"(\\\\s|$)"),elements=(tag=tag||"*",(parent=parent||document).getElementsByTagName(tag)),returnElements=[],i=0;i<elements.length;i++)current=elements[i],testClass.test(current.className)&&returnElements.push(current);return returnElements},escapeHtml:function(text){var map={"&":"&","<":"<",">":">",\'"\':""","\'":"'"};return text.replace(/[&<>"\']/g,function(m){return map[m]})},trimStr:function(str){return str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,"")},simpleChildPoiName:function(name,parentPoi){var parentPoi=this.trimStr(parentPoi.name),match=name.match(/^(.*?)\\((.*?)\\)$/);return match?match[1]===parentPoi?match[2]:match[1].replace(parentPoi,""):name.replace(parentPoi,"")}},PlaceSearchRenderListener=function(){function PlaceSearchRenderListener(placeSearchRender){_classCallCheck(this,PlaceSearchRenderListener),this._lastEventObject=null,this._parent=placeSearchRender}return _createClass(PlaceSearchRenderListener,[{key:"getTargetPOIBox",value:function(elems,id){var _step,targetElem=null,_iterator=_createForOfIteratorHelper(elems);try{for(_iterator.s();!(_step=_iterator.n()).done;){var element=_step.value;if(id==element.getAttribute("data-idx")){targetElem=element;break}}}catch(err){_iterator.e(err)}finally{_iterator.f()}return targetElem}},{key:"markerClick",value:function(){var lastIndex,element,params=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},panel=params.panel,data=params.data,position=params.position,marker=params.marker,placeSearchInstance=params.placeSearchInstance,_params$noMarkerClick=params.noMarkerClickEvent,_params$noMarkerClick=void 0!==_params$noMarkerClick&&_params$noMarkerClick,params=params.e,parent=this._parent,oldContent=parent.infoWindow.getContent(),oldContent=(!oldContent||(oldContent=parent.util.getElementsByClassName("poi-more","a",oldContent)[0])&&(oldContent._data=null,oldContent.clickHandler,oldContent.clickHandler=null),parent.view.createInfowindowContent(data)),close=oldContent.querySelector(".amap-combo-close"),detail=(close&&(close.addEventListener("touchend",function(e){parent.infoWindow.close()},this),close.addEventListener("click",function(e){parent.infoWindow.close()},this)),parent.util.getElementsByClassName("poi-more","a",oldContent)[0]),close=(detail&&(detail._data=data,detail.clickHandler=detail.addEventListener("click",function(e){parent.onDetailClick.call(parent,detail)})),parent.infoWindow&&(parent.infoWindow.setContent(oldContent),parent.infoWindow.setOffset(data._isChildPoi?new AMap.Pixel(0,-3):new AMap.Pixel(0,-25)),parent.infoWindow.open(parent.options.map,position)),parent.options.map.setCenter(position),data._idx),position=(this.last&&(this.last.className="poibox",lastIndex=parseInt(this.last.getAttribute("data-idx"),10)),panel&&(oldContent=panel.querySelectorAll(".poibox"),element=this.getTargetPOIBox(oldContent,close),this._currentDiv=element),this._currentIndex=parseInt(close,10),this._currentDiv);position&&(position.className="poibox active"),this.last=position,!_params$noMarkerClick&&placeSearchInstance&&(panel={type:"markerClick",id:(data=marker._data).id,marker:marker,listElement:position,data:data,event:params,index:this._currentIndex},placeSearchInstance.emit("markerClick",panel),(element&&void 0===lastIndex||lastIndex!==this._currentIndex)&&(oldContent={id:data.id,marker:marker,listElement:position,data:data,event:params,index:this._currentIndex},this._lastEventObject&&delete this._lastEventObject.type,placeSearchInstance.emit("selectChanged",{type:"selectChanged",selected:oldContent,lastSelected:this._lastEventObject})),this._lastEventObject=panel)}},{key:"unfocusTitleClick",value:function(e,params){var lastIndex,dataIndex=params.dataIndex,marker=params.marker,placeSearchInstance=params.placeSearchInstance,params=params.element,parent=this._parent,div=(this.last&&(this.last.className="poibox",lastIndex=parseInt(this.last.getAttribute("data-idx"),10)),this._currentDiv=params,this._currentIndex=parseInt(dataIndex,10),this._currentDiv);if(div&&(div.className="poibox active"),this.last=div,parent.options.map){for(var strIdx,target=e.target||e.srcElement;target&&target!==div&&!(strIdx=target.getAttribute("data-idx"));)target=target.parentNode;parent.setCenter(strIdx?parseInt(strIdx,10):this._currentIndex)}placeSearchInstance&&(parent={type:params="listElementClick",id:(dataIndex=marker._data).id,marker:marker,listElement:div,data:dataIndex,event:e,index:this._currentIndex},placeSearchInstance.emit(params,parent),void 0!==lastIndex&&lastIndex===this._currentIndex||(params={id:dataIndex.id,marker:marker,listElement:div,data:dataIndex,event:e,index:this._currentIndex},this._lastEventObject&&delete this._lastEventObject.type,placeSearchInstance.emit("selectChanged",{type:"selectChanged",selected:params,lastSelected:this._lastEventObject})),this._lastEventObject=parent)}}]),PlaceSearchRenderListener}(),PlaceSearchRenderView={createInfowindowContent:function(data){var content=document.createElement("div"),div=document.createElement("div"),c=(div.className="amap-content-body",[]),data=(c.push(\'<div class="amap-lib-infowindow">\'),c.push(\' <div class="amap-lib-infowindow-title">\'+(data._isChildPoi?"":data.index+1+".")+data.name+"</div>"),c.push(\' <div class="amap-lib-infowindow-content">\'),c.push(\' <div class="amap-lib-infowindow-content-wrap">\'),c.push(" <div>地址:"+data.address+"</div>"),data.tel&&c.push(" <div>电话:"+data.tel+"</div>"),c.push(" </div>"),c.push(" </div>"),c.push("</div>"),div.innerHTML=c.join(""),document.createElement("div")),c=(data.className="amap-combo-sharp",div.appendChild(data),document.createElement("div"));return c.className="amap-combo-close",div.appendChild(c),c.href="javascript: void(0)",content.appendChild(div),content.appendChild(c),content.appendChild(data),content},getChildrenHtml:function(children,parentPoi){var parts=[];parts.push(\'<div class="poi-children-box">\'),parts.push(\'<ul class="poi-children-list">\');for(var i=0,len=children.length;i<len;i++){var childPoi=children[i],name=PlaceSearchRenderUtil.trimStr(childPoi.name),name=PlaceSearchRenderUtil.escapeHtml(PlaceSearchRenderUtil.simpleChildPoiName(name,parentPoi));parts.push(\'<li class="poi-child-item" data-idx="\'+childPoi._idx+\'" title="\'+name+\'">\'),parts.push(name),parts.push("</li>")}return parts.push("</ul>"),parts.push("</div>"),parts.join("")},createPanel:function(result){if(!(result.poiList&&0<result.poiList.pois.length&&"NO_DATA"!==result.info))return"<div class=\'amap_lib_placeSearch\'>抱歉,未搜索到有效的结果。</div>";var pois=result.poiList.pois,c=[];c.push(\'<div class="amap_lib_placeSearch">\'),c.push(\' <div class="amap_lib_placeSearch_list">\'),c.push(" <ul>");for(var i=0;i<pois.length;i++){var poi,pic=(poi=pois[i]).photos&&poi.photos[0].url,pic=\'<img src="\'+(pic||"http://a.amap.com/jsapi_demos/static/images/search-img-default.png")+\'">\';c.push(\' <li class="poibox" data-idx="\'+poi._idx+\'">\'),c.push(\' <div class="amap_lib_placeSearch_pic">\'+pic+"</div>"),c.push(\' <h3 class="poi-title">\'),c.push(\' \\t<span class="poi-name amap-ellipsis">\'+poi.name+"</span>"),c.push(" </h3>"),c.push(\' <div class="poi-info">\'),c.push(\' \\t<p class="poi-addr amap-ellipsis">地址:\'+poi.address+"</p>"),poi.tel&&c.push(\' <p class="poi-tel amap-ellipsis">电话:\'+poi.tel+"</p>"),c.push(" </div>"),poi.children&&c.push(this.getChildrenHtml(poi.children,poi)),c.push(" </li>")}c.push(" </ul>"),c.push(" </div>"),c.push(\' <div class="amap_lib_placeSearch_page">\'),c.push(" <div>"),c.push(" <p>");var result=result.poiList,count=result.count,pageIndex=result.pageIndex,result=result.pageSize,count=Math.ceil(count/result);return 3<pageIndex&&c.push(this.createPageButton(1,"首页")),1<pageIndex&&c.push(this.createPageButton(pageIndex-1,"上一页")),1<=pageIndex-2&&c.push(this.createPageButton(pageIndex-2,pageIndex-2)),1<=pageIndex-1&&c.push(this.createPageButton(pageIndex-1,pageIndex-1)),c.push(\' <span class="current">\'+pageIndex+"</span>"),pageIndex+1<=count&&c.push(this.createPageButton(pageIndex+1,pageIndex+1)),pageIndex+2<=count&&c.push(this.createPageButton(pageIndex+2,pageIndex+2)),pageIndex<count&&c.push(this.createPageButton(pageIndex+1,"下一页")),c.push(" </p>"),c.push(" </div>"),c.push(" </div>"),c.push("</div>"),c.join("")},createPageButton:function(pageNum,text){return"<span><a pageNo="+pageNum+\' class="pageLink" >\'+text+"</a></span>"}},PlaceSearchRender=function(){_inherits(PlaceSearchRender,AMap.Event);var _super=_createSuper(PlaceSearchRender);function PlaceSearchRender(showCover){var _this;return _classCallCheck(this,PlaceSearchRender),(_this=_super.call(this)).CLASS_NAME="AMap.PlaceSearchRender",_this.options={},_this.circleOptions={id:"place-search-circle",radius:3e3,strokeColor:"#72ccff",strokeOpacity:.8,strokeWeight:1,fillColor:"#d0e7f8",fillOpacity:.2,bubble:!0},_this.boundOptions={id:"place-search-bound",strokeColor:"#72ccff",strokeOpacity:.8,strokeWeight:1,fillColor:"#d0e7f8",fillOpacity:.2,bubble:!0},_this.searchCircle=null,_this.searchBound=null,_this.util=PlaceSearchRenderUtil,_this.listener=new PlaceSearchRenderListener(_assertThisInitialized(_this)),_this.view=PlaceSearchRenderView,_this.ifShowCover=showCover,_this}return _createClass(PlaceSearchRender,[{key:"autoRender",value:function(options){this.clear(),options&&options.methodName&&options.methodArgumments&&(options.panel||options.map)&&(this.options=options,this.callback("complete",options.data))}},{key:"addIdxField",value:function(pois){for(var stack=[].concat(pois),idx=0;;){var poi=stack.shift();if(!poi)break;if(poi._idx=idx++,poi.index=poi._idx,poi.id=this.util.trimStr(poi.id),poi.children)for(var i=0,len=poi.children.length;i<len;i++)poi.children[i]._isChildPoi=!0,poi.children[i]._parentIdx=poi._idx,poi.children[i].citycode=poi.citycode,stack.push(poi.children[i])}}},{key:"callback",value:function(status,result){var _this2=this,options=(this.clear(),this.options);if((options.callback&&options.callback(status,result),"complete"===status)&&((this.result=result).poiList&&this.addIdxField(result.poiList.pois),options.map&&(this.infoWindow=new AMap.InfoWindow({size:new AMap.Size(0,0),isCustom:!0,offset:[0,-25]}),this._overlays=[],this._highlightOverlay=null,(result.cityList||result.keywordList||result.poiList)&&this.drawOverlays(result),"searchNearBy"===options.methodName&&this.ifShowCover&&(status=this.options.methodArgumments,this.drawCircle(status[1],status[2])),"searchInBounds"===options.methodName&&this.ifShowCover&&(status=this.options.methodArgumments,this.drawBound(status[1]))),options.panel&&("[object String]"===Object.prototype.toString.call(options.panel)&&(options.panel=document.getElementById(options.panel)),options.panel.innerHTML=this.view.createPanel(result),this.enableListeners(),options.placeSearchInstance)))for(var details=this.util.getElementsByClassName("poi-more","a",options.panel),i=0;i<details.length;i+=1)!function(i){var a=details[i];a.dIndex=i,a.clickHandler=a.addEventListener("click",function(e){_this2.onDetailClick.call(_this2,a)})}(i)}},{key:"enableListeners",value:function(){for(var unfocusTitle,_this3=this,listener=this.listener,unfocusTitles=this.util.getElementsByClassName("poibox","*",this.options.panel),i=0;i<unfocusTitles.length;i++)!function(i,_unfocusTitle){(_unfocusTitle=unfocusTitles[i]).addEventListener("click",function(e){var index=_unfocusTitle.getAttribute("data-idx"),placeSearchInstance=_this3.options.placeSearchInstance,marker=_this3._overlays[index];marker&&(index={element:_unfocusTitle,dataIndex:index,marker:marker,placeSearchInstance:placeSearchInstance},listener.unfocusTitleClick.call(listener,e,index))}),unfocusTitle=_unfocusTitle}(i,unfocusTitle);for(var pageLink,pageLinks=this.util.getElementsByClassName("pageLink","*",this.options.panel),_i=0;_i<pageLinks.length;_i++)!function(_pageLink,_i){(_pageLink=pageLinks[_i]).addEventListener("click",function(){var pageNo=_pageLink.getAttribute("pageNo");_this3.toPage(pageNo)}),pageLink=_pageLink}(pageLink,_i)}},{key:"onDetailClick",value:function(detail){this.options.placeSearchInstance.detailOnAMAP(detail._data||this.options.data.poiList.pois[detail.dIndex])}},{key:"clear",value:function(){this.clearPanel(),this.clearOverlays(),this.clearCircle(),this.clearBound()}},{key:"drawOverlays",value:function(result){this.clearOverlays();result=result.poiList.pois;this._overlays=this.addOverlays(result),this.options.autoFitView&&this.options.map.setFitView(this._overlays,!0)}},{key:"addChildrenOverlays",value:function(children,overlays){for(var _this4=this,i=0,len=children.length;i<len;i++)!function(i){var i=children[i],extraClass="";switch(i.subtype){case"门":extraClass="gate";break;case"停车场":extraClass="parking"}var point=new AMap.Marker({map:_this4.options.map,zIndex:100,offset:new AMap.Pixel(-6,-6),size:new AMap.Size(12,12),topWhenClick:!0,position:i.location,content:\'<div class="amap_lib_placeSearch_child_poi \'+extraClass+\'">\'+i._idx+"</div>"});point.isOfficial=!0,point._data=i,point.on("click",function(e){e={data:point._data,position:point.getPosition(),marker:point,placeSearchInstance:_this4.options.placeSearchInstance,panel:_this4.options.panel,e:e};_this4.listener.markerClick(e)}),overlays[i._idx]=point}(i)}},{key:"addOverlays",value:function(points){for(var point,_this5=this,map=this.options.map,_overlays=[],children=[],i=0;i<points.length;i++)!function(i,_point){(_point=new AMap.Marker({map:map,zIndex:101,offset:new AMap.Pixel(-9,-31),size:new AMap.Size(19,33),topWhenClick:!0,position:points[i].location,content:\'<div class="amap_lib_placeSearch_poi"></div>\'})).isOfficial=!0,_point._data=points[i],_point.on("click",function(e){e={data:_point._data,position:_point.getPosition(),marker:_point,placeSearchInstance:_this5.options.placeSearchInstance,panel:_this5.options.panel,e:e};_this5.listener.markerClick(e)}),_overlays[points[i]._idx]=_point,points[i].children&&children.push.apply(children,points[i].children),point=_point}(i,point);return this.addChildrenOverlays(children,_overlays),_overlays}},{key:"toggleChildrenOverlays",value:function(idx,show){if(!isNaN(idx)){var point=this._overlays[idx];if(point){var poi=point._data,map=this.options.map;if(poi.children){for(var overlays=[point],i=0,len=poi.children.length;i<len;i++){var childOverlay=this._overlays[poi.children[i]._idx];childOverlay&&(childOverlay.setMap(show?map:null),overlays.push(childOverlay))}this.options.autoFitView&&this.options.map.setFitView(overlays,!0)}}else console.warn("Missing marker: ",idx)}}},{key:"clearPanel",value:function(){if(this.options&&this.options.panel instanceof HTMLDivElement){for(var details=this.util.getElementsByClassName("poi-more","a",this.options.panel),i=0;i<details.length;i+=1){var a=details[i];a.clickHandler,a.clickHandler=null}this.options.panel.innerHTML=""}}},{key:"clearOverlays",value:function(){if(this._overlays){for(var i=0;i<this._overlays.length;i++)this._overlays[i].setMap(null);this._overlays=[]}var oldContent;this.infoWindow&&((oldContent=this.infoWindow.getContent())&&(oldContent=this.util.getElementsByClassName("poi-more","a",oldContent)[0])&&(oldContent._data=null,oldContent.clickHandler&&(oldContent.clickHandler=null)),this.infoWindow.close())}},{key:"setCenter",value:function(index){var poi,point=this._overlays[index];point?(poi=point._data,this.options.map.setCenter(poi.location),point.setTop(!0),poi={data:point._data,position:point.getPosition(),marker:point,placeSearchInstance:this.options.placeSearchInstance,panel:this.options.panel,noMarkerClickEvent:!0},this.listener.markerClick(poi)):console.warn("Missing marker: ",index)}},{key:"toPage",value:function(pageNo){pageNo.length&&(pageNo=parseInt(pageNo,10)),this.options.placeSearchInstance.setPageIndex(pageNo),this.options.placeSearchInstance[this.options.methodName].apply(this.options.placeSearchInstance,this.options.methodArgumments)}},{key:"drawCircle",value:function(center,radius){this.clearCircle(),this.circleOptions.map=this.options.map,this.circleOptions.center=center,this.circleOptions.radius=radius,this.searchCircle=new AMap.Circle(this.circleOptions),this.options.map.add(this.searchCircle),this.searchCircle.isOfficial=!0}},{key:"clearCircle",value:function(){this.searchCircle&&(this.searchCircle.setMap(null),this.searchCircle=null)}},{key:"drawBound",value:function(bound){this.clearBound();var path=[],bound=(bound.getNorthWest?path.push(bound.getNorthWest(),bound.getNorthEast(),bound.getSouthEast(),bound.getSouthWest()):path=bound.getPath(),this.boundOptions.path=path,this.boundOptions.map=this.options.map,new AMap.Polygon(this.boundOptions));bound.isOfficial=!0,this.searchBound=bound}},{key:"clearBound",value:function(){this.searchBound&&(this.searchBound.setMap(null),this.searchBound=null)}}]),PlaceSearchRender}(),PlaceSearch=function(){_inherits(PlaceSearch,AMap.Event);var _super=_createSuper(PlaceSearch);function PlaceSearch(opt){_classCallCheck(this,PlaceSearch),(_this=_super.call(this)).CLASS_NAME="AMap.PlaceSearch",_this.opt={},_this.closed=!1,_this.opt=AMap.extend({},{showCover:!0,autoFitView:!0},opt||{});var _this,opt=_this.config=AMap.getConfig();return _this.opt.pageIndex=_this.opt.pageIndex||1,_this.opt.pageSize="number"!=typeof _this.opt.pageSize||_this.opt.pageSize<0?10:50<_this.opt.pageSize?50:_this.opt.pageSize,_this.url=opt.server+"/v3/place",_this.renderEngine=PlaceSearchRender,(_this.opt.map||_this.opt.panel)&&(_this.render=new _this.renderEngine(_this.opt.showCover),_this.opt.extensions="all"),_this.opt.children&&(_this.opt.extensions="all"),_this}return _createClass(PlaceSearch,[{key:"clear",value:function(){this.render&&this.render.clear()}},{key:"setLang",value:function(lang){this.opt.lang=lang||"zh_cn"}},{key:"getLang",value:function(){return this.opt.lang||"zh_cn"}},{key:"search",value:function(keyword,cbk){var opts=this.opt,opts={city:opts.city,sortrule:opts.rankBy,types:opts.type,page:opts.pageIndex,offset:opts.pageSize,extensions:opts.extensions,citylimit:opts.citylimit,language:this.getLang(),s:"rsv3",children:this.opt.children?"1":""};this._filterData(opts),this._query(this.url+"/text",opts,cbk,{keywords:keyword||""},"KEYWORD",arguments)}},{key:"searchInBounds",value:function(keyword,bounds,cbk){var opts;bounds?(opts={city:(opts=this.opt).city,sortrule:opts.rankBy,types:opts.type,page:opts.pageIndex,offset:opts.pageSize,extensions:opts.extensions,citylimit:opts.citylimit,language:this.getLang(),polygon:bounds,s:"rsv3",children:this.opt.children?"1":""},this._filterData(opts),this._query(this.url+"/polygon",opts,cbk,{keywords:keyword||""},"POLYGON",arguments)):(this.emit("error",{info:"NO_PARAMS"}),cbk&&"function"==typeof cbk&&cbk("error","NO_PARAMS"))}},{key:"searchNearBy",value:function(keyword,center,radius,cbk){var opts;center?(center=AMap.Util.parseLngLatData(center),opts={city:(opts=this.opt).city,sortrule:opts.rankBy,types:opts.type,page:opts.pageIndex,offset:opts.pageSize,extensions:opts.extensions,citylimit:opts.citylimit,language:this.getLang(),location:center.toString(),radius:radius,s:"rsv3",children:this.opt.children?"1":""},this._filterData(opts),this._query(this.url+"/around",opts,cbk,{keywords:keyword||""},"NEARBY",arguments)):(this.emit("error",{info:"NO_PARAMS"}),cbk&&"function"==typeof cbk&&cbk("error","NO_PARAMS"))}},{key:"getDetails",value:function(PGUID,cbk){PGUID?(this.opt,this._query(this.url+"/detail",{id:PGUID,s:"rsv3"},cbk,{},"ID")):(this.emit("error",{info:"NO_PARAMS"}),cbk&&"function"==typeof cbk&&cbk("error","NO_PARAMS"))}},{key:"setType",value:function(type){this.opt.type=type}},{key:"setPageIndex",value:function(pageIndex){this.opt.pageIndex=pageIndex||1}},{key:"setPageSize",value:function(pageSize){this.opt.pageSize="number"!=typeof pageSize||pageSize<0?10:50<pageSize?50:pageSize}},{key:"setCity",value:function(city){this.opt.city=city}},{key:"setCityLimit",value:function(citylimit){this.opt.citylimit=citylimit}},{key:"poiOnAMAP",value:function(p){var pp={},location=AMap.Util.parseLngLatData(p.location);pp.id=p.id,location&&!Array.isArray(location)&&(pp.y=location.lat,pp.x=location.lng),pp.name=p.name,pp.address=p.address,AMap.plugin("AMap.CallAMap",function(){var callapp=new AMap.CallAMap,url=callapp.getPoiUrl(pp);callapp.open(url)})}},{key:"detailOnAMAP",value:function(p){var pp={},location=AMap.Util.parseLngLatData(p.location);pp.id=p.id,location&&!Array.isArray(location)&&(pp.y=location.lat,pp.x=location.lng),pp.name=p.name,AMap.plugin("AMap.CallAMap",function(){var callapp=new AMap.CallAMap,url=callapp.getPoiDetailUrl(pp);callapp.open(url)})}},{key:"close",value:function(){this.closed=!0}},{key:"open",value:function(){this.closed=!1}},{key:"_mergeParams",value:function(data,map,params){for(var i in data)void 0!==data[i]&&void 0!==map[i]&¶ms.push(map[i]+"="+data[i]);params.push("language="+this.getLang())}},{key:"_query",value:function(url,params,cbk,encodeURICom,type){var _this2=this,args=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{},params=AMap.extend(params,{type_:type,antiCrab:!0},encodeURICom);AMap.WebService.get(url,params,function(status,data){return"complete"===status?_this2._onComplete(data,cbk,type,args):"error"===status&&_this2._onError(data,cbk),{}})}},{key:"_parseString",value:function(v){return v instanceof Array&&0===v.length||void 0===v?"":v}},{key:"_formatFields",value:function(obj){for(var j in obj)obj.hasOwnProperty(j)&&(obj[j]=this._parseString(obj[j]),"object"===_typeof(obj[j])&&this._formatFields(obj[j]))}},{key:"_str2LngLat",value:function(str){var arr;return str&&(2===(arr=str.split(",")).length?new AMap.LngLat(parseFloat(arr[0]),parseFloat(arr[1])):str)}},{key:"_parsePOI",value:function(poi){function getLngLat(location){return location?(location=location.split(","),new AMap.LngLat(parseFloat(location[0]),parseFloat(location[1]))):null}this._formatFields(poi);var poiBaseInfo={id:poi.id,name:poi.name,type:poi.type,location:getLngLat(poi.location),address:poi.address,tel:poi.tel,distance:parseFloat(poi.distance),shopinfo:poi.shopinfo};if(poi.shopinfo&&poi.shopinfo.length?poiBaseInfo.shopinfo=poi.shopinfo:poiBaseInfo.shopinfo="",poi.children){for(var children=poi.children,i=0,len=children.length;i<len;i++)children[i].location=getLngLat(children[i].location);poiBaseInfo.children=children}var poiDetailInfo={website:poi.website,pcode:poi.pcode,citycode:poi.citycode,adcode:poi.adcode,postcode:poi.postcode,pname:poi.pname,cityname:poi.cityname,adname:poi.adname,email:poi.email,photos:poi.photos,entr_location:getLngLat(poi.entr_location),exit_location:getLngLat(poi.exit_location),groupbuy:"0"!==poi.groupbuy_num,discount:"0"!==poi.discount_num},poiDeepInfo=("1"===poi.indoor_map?(poiDetailInfo.indoor_map=!0,poiDetailInfo.indoor_data={cpid:this._parseString(poi.indoor_data.cpid),floor:this._parseString(poi.indoor_data.floor),truefloor:this._parseString(poi.indoor_data.truefloor)}):poiDetailInfo.indoor_map=!1,{groupbuys:"",discounts:"",deep_type:"",dining:"",hotel:"",cinema:"",scenic:""});if(poi.rich_content){if(poiDetailInfo.groupbuy){var groupBuyTemp=poi.rich_content.groupbuys,groupBuyNum=groupBuyTemp.length;0<groupBuyNum&&(poiDeepInfo.groupbuys=[]);for(var n=0;n<groupBuyNum;n+=1){var groupBuy={title:groupBuyTemp[n].title,type_code:groupBuyTemp[n].typecode,type:groupBuyTemp[n].type,detail:groupBuyTemp[n].detail,stime:groupBuyTemp[n].start_time,etime:groupBuyTemp[n].end_time,count:groupBuyTemp[n].num,sold_num:parseInt(groupBuyTemp[n].sold_num,10),original_price:parseFloat(groupBuyTemp[n].original_price),groupbuy_price:parseFloat(groupBuyTemp[n].groupbuy_price),discount:parseFloat(groupBuyTemp[n].discount),ticket_address:groupBuyTemp[n].ticket_address,ticket_tel:groupBuyTemp[n].ticket_tel,photos:groupBuyTemp[n].photos,url:groupBuyTemp[n].url,provider:""};poiDeepInfo.groupbuys.push(groupBuy)}}if(poiDetailInfo.discount){var discountTemp=poi.rich_content.discounts,disNum=discountTemp.length;0<disNum&&(poiDeepInfo.discounts=[]);for(var dis=0;dis<disNum;dis+=1){var discount={title:discountTemp[dis].title,detail:discountTemp[dis].detail,start_time:discountTemp[dis].start_time,end_time:discountTemp[dis].end_time,sold_num:parseInt(discountTemp[dis].sold_num,10),photos:discountTemp[dis].photos,url:discountTemp[dis].url,provider:""};poiDeepInfo.discounts.push(discount)}}}if(poi.deep_info){poiDeepInfo.deep_type=poi.deep_info.type;var poiDeep=poi.deep_info;switch(poiDeepInfo.deep_type){case"cinema":var cinema={intro:poiDeep.intro,rating:poiDeep.rating,deep_src:"",parking:poiDeep.parking,opentime_GDF:poiDeep.opentime_GDF,opentime:poiDeep.opentime,photos:poiDeep.photos};poiDeepInfo.cinema=cinema,poiDeepInfo.deep_type="CINEMA";break;case"dining":cinema={cuisines:poiDeep.cuisines,tag:poiDeep.tag,intro:poiDeep.intro,rating:poiDeep.rating,cp_rating:poiDeep.cp_rating,deep_src:"",taste_rating:poiDeep.taste_rating,environment_rating:poiDeep.environment_rating,service_rating:poiDeep.service_rating,cost:poiDeep.cost,recommend:poiDeep.recommend,atmosphere:poiDeep.atmosphere,ordering_wap_url:poiDeep.ordering_wap_url,ordering_web_url:poiDeep.ordering_web_url,ordering_app_url:poiDeep.ordering_app_url,opentime_GDF:poiDeep.opentime_GDF,opentime:poiDeep.opentime,addition:poiDeep.addition,photos:poiDeep.photos};poiDeepInfo.dining=cinema,poiDeepInfo.deep_type="DINING";break;case"scenic":cinema={intro:poiDeep.intro,rating:poiDeep.rating,deep_src:"",level:poiDeep.level,price:poiDeep.price,season:poiDeep.season,recommend:poiDeep.recommend,theme:poiDeep.theme,ordering_wap_url:poiDeep.ordering_wap_url,ordering_web_url:poiDeep.ordering_web_url,opentime_GDF:poiDeep.opentime_GDF,opentime:poiDeep.opentime,photos:poiDeep.photos};poiDeepInfo.scenic=cinema,poiDeepInfo.deep_type="SCENIC";break;case"hotel":cinema={rating:poiDeep.rating,star:poiDeep.star,intro:poiDeep.intro,lowest_price:poiDeep.lowest_price,faci_rating:poiDeep.faci_rating,health_rating:poiDeep.health_rating,environment_rating:poiDeep.environment_rating,service_rating:poiDeep.service_rating,traffic:poiDeep.traffic,addition:poiDeep.addition,deep_src:"",photos:poiDeep.photos};poiDeepInfo.hotel=cinema,poiDeepInfo.deep_type="HOTEL"}}var baseK,rePoi={};for(baseK in poiBaseInfo)poiBaseInfo.hasOwnProperty(baseK)&&(rePoi[baseK]=poiBaseInfo[baseK]);if(this.opt.extensions&&"base"!==this.opt.extensions){for(var deepK in poiDeepInfo)poiDeepInfo.hasOwnProperty(deepK)&&poiDeepInfo[deepK]&&(rePoi[deepK]=poiDeepInfo[deepK]);for(var detailK in poiDetailInfo)poiDetailInfo.hasOwnProperty(detailK)&&(rePoi[detailK]=poiDetailInfo[detailK]);if(poi.biz_ext)for(var key in poi.biz_ext)poi.biz_ext.hasOwnProperty(key)&&poi.biz_ext[key].length&&void 0===rePoi[key]&&(rePoi[key]=poi.biz_ext[key])}return rePoi}},{key:"_onComplete",value:function(data,cbk,type,args){var result;if(!this.closed)if(parseInt(data.status,10)){if((result={info:data.info,poiList:{}}).poiList={pois:[],count:parseInt(data.count,10),pageIndex:this.opt.pageIndex,pageSize:this.opt.pageSize},data.pois)for(var i=0;i<data.pois.length;i+=1){var tmp=data.pois[i];result.poiList.pois[i]=this._parsePOI(tmp)}if(data.suggestion&&data.suggestion.keywords.length&&(result.keywordList=data.suggestion.keywords,result.info="TIP_KEYWORDS"),data.suggestion&&data.suggestion.cities.length){for(var cities=data.suggestion.cities,citiesnew=[],j=0;j<cities.length;j+=1){var pro,city=cities[j];for(pro in city)city.hasOwnProperty(pro)&&"num"===pro&&(city.count=city[pro],delete city[pro]);city.count=parseInt(city.count,10),citiesnew.push(city)}result.info="TIP_CITIES",result.cityList=citiesnew}data.count&&0!==parseInt(data.count,10)||result.cityList||result.keywordList?(this.emit("complete",result),(this.opt.map||this.opt.panel)&&this._autoRender(result,type,args),cbk&&"function"==typeof cbk&&cbk("complete",result)):(result.info="ok"===data.info.toLowerCase()?"NO_DATA":data.info,this.emit("complete",result),(this.opt.map||this.opt.panel)&&this._autoRender(result,type,args),cbk&&"function"==typeof cbk&&(result.cityList||result.keywordList?cbk("complete",result):cbk("no_data",{})))}else result={info:data.info},this.emit("error",result),cbk&&"function"==typeof cbk&&cbk("error",data.info)}},{key:"_autoRender",value:function(result,type,args){this.render||(this.render=new this.renderEngine(this.opt.showCover));this.render.autoRender({data:result,eventTrigger:function(type,params){this.emit(type,params)},methodName:{KEYWORD:"search",NEARBY:"searchNearBy",POLYGON:"searchInBounds",ROUTE:"searchNearRoute"}[type],placeSearchInstance:this,methodArgumments:args,renderStyle:this.opt.renderStyle||"newpc",panel:this.opt.panel,map:this.opt.map,autoFitView:this.opt.autoFitView}),this._searchCircle=this.render.searchCircle}},{key:"_onError",value:function(e,cbk){this.emit("error",e),cbk&&"function"==typeof cbk&&cbk("error",e.info)}},{key:"_filterData",value:function(data){for(var key in data)data.hasOwnProperty(key)&&void 0===data[key]&&delete data[key]}}]),PlaceSearch}();AMap.PlaceSearch=PlaceSearch}(window.AMap); ');
|
||
_jsload_('AMap.MouseTool', '(function(){"use strict";var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(Object.prototype.hasOwnProperty.call(b,p))d[p]=b[p]};return extendStatics(d,b)};function __extends(d,b){if(typeof b!=="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}var _SuppressedError=typeof SuppressedError==="function"?SuppressedError:function(error,suppressed,message){var e=new Error(message);return e.name="SuppressedError",e.error=error,e.suppressed=suppressed,e};var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self;var root=freeGlobal||freeSelf||Function("return this")();var Symbol=root.Symbol;var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;var nativeObjectToString=objectProto.toString;var symToStringTag=Symbol?Symbol.toStringTag:undefined;function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined;var unmasked=true}catch(e){}var result=nativeObjectToString.call(value);if(unmasked){if(isOwn){value[symToStringTag]=tag}else{delete value[symToStringTag]}}return result}var objectProto$1=Object.prototype;var nativeObjectToString$1=objectProto$1.toString;function objectToString(value){return nativeObjectToString$1.call(value)}var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag$1=Symbol?Symbol.toStringTag:undefined;function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag}return symToStringTag$1&&symToStringTag$1 in Object(value)?getRawTag(value):objectToString(value)}function isObjectLike(value){return value!=null&&typeof value=="object"}var isArray=Array.isArray;function isObject(value){var type=typeof value;return value!=null&&(type=="object"||type=="function")}function identity(value){return value}var asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(value){if(!isObject(value)){return false}var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag}var coreJsData=root["__core-js_shared__"];var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:""}();function isMasked(func){return!!maskSrcKey&&maskSrcKey in func}var funcProto=Function.prototype;var funcToString=funcProto.toString;function toSource(func){if(func!=null){try{return funcToString.call(func)}catch(e){}try{return func+""}catch(e){}}return""}var reRegExpChar=/[\\\\^$.*+?()[\\]{}|]/g;var reIsHostCtor=/^\\[object .+?Constructor\\]$/;var funcProto$1=Function.prototype,objectProto$2=Object.prototype;var funcToString$1=funcProto$1.toString;var hasOwnProperty$1=objectProto$2.hasOwnProperty;var reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$1).replace(reRegExpChar,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$");function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false}var pattern=isFunction(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value))}function getValue(object,key){return object==null?undefined:object[key]}function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined}function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}var HOT_COUNT=800,HOT_SPAN=16;var nativeNow=Date.now;function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count>=HOT_COUNT){return arguments[0]}}else{count=0}return func.apply(undefined,arguments)}}function constant(value){return function(){return value}}var defineProperty=function(){try{var func=getNative(Object,"defineProperty");func({},"",{});return func}catch(e){}}();var baseSetToString=!defineProperty?identity:function(func,string){return defineProperty(func,"toString",{configurable:true,enumerable:false,value:constant(string),writable:true})};var setToString=shortOut(baseSetToString);var MAX_SAFE_INTEGER=9007199254740991;var reIsUint=/^(?:0|[1-9]\\d*)$/;function isIndex(value,length){var type=typeof value;length=length==null?MAX_SAFE_INTEGER:length;return!!length&&(type=="number"||type!="symbol"&&reIsUint.test(value))&&(value>-1&&value%1==0&&value<length)}function baseAssignValue(object,key,value){if(key=="__proto__"&&defineProperty){defineProperty(object,key,{configurable:true,enumerable:true,value:value,writable:true})}else{object[key]=value}}function eq(value,other){return value===other||value!==value&&other!==other}var objectProto$3=Object.prototype;var hasOwnProperty$2=objectProto$3.hasOwnProperty;function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty$2.call(object,key)&&eq(objValue,value))||value===undefined&&!(key in object)){baseAssignValue(object,key,value)}}function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;if(newValue===undefined){newValue=source[key]}if(isNew){baseAssignValue(object,key,newValue)}else{assignValue(object,key,newValue)}}return object}var nativeMax=Math.max;function overRest(func,start,transform){start=nativeMax(start===undefined?func.length-1:start,0);return function(){var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);while(++index<length){array[index]=args[start+index]}index=-1;var otherArgs=Array(start+1);while(++index<start){otherArgs[index]=args[index]}otherArgs[start]=transform(array);return apply(func,this,otherArgs)}}function baseRest(func,start){return setToString(overRest(func,start,identity),func+"")}var MAX_SAFE_INTEGER$1=9007199254740991;function isLength(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER$1}function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value)}function isIterateeCall(value,index,object){if(!isObject(object)){return false}var type=typeof index;if(type=="number"?isArrayLike(object)&&isIndex(index,object.length):type=="string"&&index in object){return eq(object[index],value)}return false}function createAssigner(assigner){return baseRest(function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:undefined,guard=length>2?sources[2]:undefined;customizer=assigner.length>3&&typeof customizer=="function"?(length--,customizer):undefined;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length<3?undefined:customizer;length=1}object=Object(object);while(++index<length){var source=sources[index];if(source){assigner(object,source,index,customizer)}}return object})}var objectProto$4=Object.prototype;function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=="function"&&Ctor.prototype||objectProto$4;return value===proto}function baseTimes(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index)}return result}var argsTag="[object Arguments]";function baseIsArguments(value){return isObjectLike(value)&&baseGetTag(value)==argsTag}var objectProto$5=Object.prototype;var hasOwnProperty$3=objectProto$5.hasOwnProperty;var propertyIsEnumerable=objectProto$5.propertyIsEnumerable;var isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty$3.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")};function stubFalse(){return false}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var Buffer=moduleExports?root.Buffer:undefined;var nativeIsBuffer=Buffer?Buffer.isBuffer:undefined;var isBuffer=nativeIsBuffer||stubFalse;var argsTag$1="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag$1="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}function baseUnary(func){return function(value){return func(value)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module;var moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1;var freeProcess=moduleExports$1&&freeGlobal.process;var nodeUtil=function(){try{var types=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;if(types){return types}return freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;var objectProto$6=Object.prototype;var hasOwnProperty$4=objectProto$6.hasOwnProperty;function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value){if((inherited||hasOwnProperty$4.call(value,key))&&!(skipIndexes&&(key=="length"||isBuff&&(key=="offset"||key=="parent")||isType&&(key=="buffer"||key=="byteLength"||key=="byteOffset")||isIndex(key,length)))){result.push(key)}}return result}function overArg(func,transform){return function(arg){return func(transform(arg))}}var nativeKeys=overArg(Object.keys,Object);var objectProto$7=Object.prototype;var hasOwnProperty$5=objectProto$7.hasOwnProperty;function baseKeys(object){if(!isPrototype(object)){return nativeKeys(object)}var result=[];for(var key in Object(object)){if(hasOwnProperty$5.call(object,key)&&key!="constructor"){result.push(key)}}return result}function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}var objectProto$8=Object.prototype;var hasOwnProperty$6=objectProto$8.hasOwnProperty;var assign=createAssigner(function(object,source){if(isPrototype(source)||isArrayLike(source)){copyObject(source,keys(source),object);return}for(var key in source){if(hasOwnProperty$6.call(source,key)){assignValue(object,key,source[key])}}});var MouseTool=function(_super){__extends(MouseTool,_super);function MouseTool(map,toolBubble){var _this=_super.call(this)||this;_this["CLASS_NAME"]="AMap.MouseTool";_this._map=map;_this._container=_this._map.getMapsContainer();_this.overlayBubble=toolBubble?toolBubble:false;_this.overlays={marker:[],circle:[],rectangle:[],polyline:[],polygon:[],measureArea:[]};_this.ruler=null;_this.eventsList=[];_this.keyboardEventsList=[];return _this}MouseTool.prototype.marker=function(opts){this._onStart();this._bind("click",this._renderMarker.bind(this,opts))};MouseTool.prototype.circle=function(opts){this._onStart();this._bind("mousedown",this._createCircle.bind(this,opts));this._bind("mouseup",this._doneCircle)};MouseTool.prototype.rectangle=function(opts){this._onStart();this._bind("mousedown",this._createRectangle.bind(this,opts));this._bind("mouseup",this._doneRectangle)};MouseTool.prototype.polyline=function(opts){this._onStart();this._bind("click",this._addPolylinePoint.bind(this,opts));this._bind("rightclick",this._delPolylineLinePoint.bind(this));this._bind("dblclick",this._endPolylineLine.bind(this,"db"))};MouseTool.prototype.polygon=function(opts){this._onStart();this._bind("click",this._addPolygonPoint.bind(this,opts));this._bind("dblclick",this._delPolygonPoint.bind(this));this._bind("rightclick",this._endPolygon.bind(this))};MouseTool.prototype.measureArea=function(opts){this._onStart();this._bind("click",this._addMeasureAreaPoint.bind(this,opts));this._bind("rightclick",this._endMeasureArea.bind(this));this._bind("dblclick",this._endMeasureArea.bind(this));this._bind("keydown",this._keydownMeasureArea.bind(this,opts))};MouseTool.prototype.rule=function(opts){var _this=this;this._onStart();AMap.plugin("AMap.RangingTool",function(){_this.ruler=new AMap.RangingTool(_this._map,opts);_this.ruler.turnOn();_this.ruler.on("end",function(e){_this.emit("draw",{obj:e.polyline})})})};MouseTool.prototype.rectZoomIn=function(opts){this._onStart();this._bind("mousedown",this._createRectangle.bind(this,opts));this._bind("mouseup",this._doneZoomIn)};MouseTool.prototype.rectZoomOut=function(opts){this._onStart();this._bind("mousedown",this._createRectangle.bind(this,opts));this._bind("mouseup",this._doneZoomOut)};MouseTool.prototype.close=function(ifClear){if(ifClear){if(this.ruler){this.ruler.turnOff(true)}var keys=Object.keys(this.overlays);for(var i=0;i<keys.length;i++){var overlay=this.overlays[keys[i]];this._map.remove(overlay)}this.overlays={marker:[],circle:[],rectangle:[],polyline:[],polygon:[],measureArea:[]}}this._onEnd(ifClear)};MouseTool.prototype._bind=function(TYPE,FUN){if(TYPE&&TYPE==="keydown"){this._container.addEventListener("keydown",FUN,this);this.keyboardEventsList.push({type:TYPE,fun:FUN})}else{this._map.on(TYPE,FUN,this);this.eventsList.push({type:TYPE,fun:FUN})}};MouseTool.prototype._unbind=function(){var eventLen=this.eventsList.length;var keyboardEventLen=this.keyboardEventsList.length;for(var i=0;i<eventLen;i++){var event=this.eventsList[i];this._map.off(event.type,event.fun,this)}for(var i=0;i<keyboardEventLen;i++){var event=this.keyboardEventsList[i];this._container.removeEventListener("keydown",event.fun)}};MouseTool.prototype._keydownMeasureArea=function(opts,e){if(e&&e.key==="Escape"){this._endMeasureArea()}};MouseTool.prototype._addMeasureAreaPoint=function(opts,e){this.mapDoubleClickZoom=this._map["getStatus"]()["doubleClickZoom"];this._map["setStatus"]({doubleClickZoom:false});if(!this.MeasureAreaTemp){var options={path:[e["lnglat"],e["lnglat"]],strokeColor:"#1791fc",fillColor:"#1791fc",strokeOpacity:.8,fillOpacity:.35,strokeWeight:2,strokeStyle:"solid",strokeDasharray:[10,5],zIndex:10,extData:{},bubble:true,innerOverlay:true};var polylineOpts=assign(options,opts);this.MeasureAreaTemp={path:[]};this.MeasureAreaTemp.obj=new AMap.Polygon(polylineOpts);this._map.add(this.MeasureAreaTemp.obj);this._map.on("mousemove",this._drawMeasureArea,this)}else{var newPoint=[e["lnglat"].lng,e["lnglat"].lat];var pathArr=this.MeasureAreaTemp.obj["getPath"]();pathArr.push(newPoint);this.MeasureAreaTemp.obj["setPath"](pathArr)}this.emit("addnode",{obj:this.MeasureAreaTemp.obj})};MouseTool.prototype._drawMeasureArea=function(e){if(this.MeasureAreaTemp&&this.MeasureAreaTemp.obj){var newPoint=[e["lnglat"].lng,e["lnglat"].lat];var pathArr=this.MeasureAreaTemp.obj["getPath"]();pathArr.pop();pathArr.push(newPoint);this.MeasureAreaTemp.obj["setPath"](pathArr)}};MouseTool.prototype._endMeasureArea=function(){this._map["setStatus"]({doubleClickZoom:this.mapDoubleClickZoom});var pathArr=this.MeasureAreaTemp&&this.MeasureAreaTemp.obj&&this.MeasureAreaTemp.obj["getPath"]();if(pathArr&&pathArr.length>3){pathArr.pop();this.MeasureAreaTemp.obj["setPath"](pathArr);var area=this.MeasureAreaTemp.obj["getArea"]();var areaHTML=area>1*1e5?(area*1e-6).toFixed(2)+"平方公里":area.toFixed(1)+"平方米";var lastPoint=pathArr[pathArr.length-1];var text=new AMap.Text({text:areaHTML,position:lastPoint});this.overlays.measureArea.push(text);this._map.add(text);this.overlays.measureArea.push(this.MeasureAreaTemp["obj"]);this.emit("draw",{obj:this.MeasureAreaTemp.obj});this.MeasureAreaTemp=null}else{if(this.MeasureAreaTemp){this._map.remove(this.MeasureAreaTemp.obj)}this.MeasureAreaTemp=null}this.emit("cancel",{obj:this.MeasureAreaTemp&&this.MeasureAreaTemp.obj||false});this._map.off("mousemove",this._drawMeasureArea,this)};MouseTool.prototype._addPolygonPoint=function(opts,e){this.mapDoubleClickZoom=this._map["getStatus"]()["doubleClickZoom"];this._map["setStatus"]({doubleClickZoom:false});if(this.overlayBubble){var curOverlays=this._map.getAllOverlays();if(curOverlays&&curOverlays.length>0){for(var _i=0,curOverlays_1=curOverlays;_i<curOverlays_1.length;_i++){var item=curOverlays_1[_i];if(item.className==="Overlay.Polygon"||item.className==="Overlay.Circle"||item.className==="Overlay.Rectangle"){var IsRange=item.contains(e.lnglat);if(IsRange){return}}}}}if(!this.polygonTemp){var options={path:[e["lnglat"],e["lnglat"]],strokeColor:"#1791fc",fillColor:"#1791fc",strokeOpacity:.8,fillOpacity:.35,strokeWeight:2,strokeStyle:"solid",strokeDasharray:[10,5],zIndex:10,extData:{}};this.polygonTemp={path:[]};var polylineOpts=assign(options,opts);this.polygonTemp["path"].push(e.lnglat);this.polygonTemp.obj=new AMap.Polygon(polylineOpts);this._map.add(this.polygonTemp.obj);this._map.on("mousemove",this._drawGon,this)}else{var newPoint=[e["lnglat"].lng,e["lnglat"].lat];var pathArr=this.polygonTemp.obj["getPath"]();pathArr.push(newPoint);this.polygonTemp.obj["setPath"](pathArr)}this.overlays.polygon.push(this.polygonTemp.obj)};MouseTool.prototype._drawGon=function(e){if(this.polygonTemp&&this.polygonTemp.obj){var newPoint=[e["lnglat"].lng,e["lnglat"].lat];var pathArr=this.polygonTemp.obj["getPath"]();pathArr.pop();pathArr.push(newPoint);this.polygonTemp.obj["setPath"](pathArr)}};MouseTool.prototype._delPolygonPoint=function(){if(this.polygonTemp&&this.polygonTemp.obj){var pathArr=this.polygonTemp.obj["getPath"]();this.polygonTemp.obj["setPath"](pathArr)}this._endPolygon()};MouseTool.prototype._endPolygon=function(){if(this.polygonTemp&&this.polygonTemp.obj){var pathArr=this.polygonTemp.obj["getPath"]();pathArr.pop();this.polygonTemp.obj["setPath"](pathArr);this.emit("draw",{obj:this.polygonTemp.obj})}this.polygonTemp=null;this._map["setStatus"]({doubleClickZoom:this.mapDoubleClickZoom});this._map.off("mousemove",this._drawGon,this)};MouseTool.prototype._addPolylinePoint=function(opts,e){this.mapDoubleClickZoom=this._map["getStatus"]()["doubleClickZoom"];this._map["setStatus"]({doubleClickZoom:false});if(this.overlayBubble){var curOverlays=this._map.getAllOverlays();if(curOverlays&&curOverlays.length>0){for(var _i=0,curOverlays_2=curOverlays;_i<curOverlays_2.length;_i++){var item=curOverlays_2[_i];if(item.className==="Overlay.Polygon"||item.className==="Overlay.Circle"||item.className==="Overlay.Rectangle"){var IsRange=item.contains(e.lnglat);if(IsRange){return}}}}}if(!this.polylineTemp){var options={path:[e["lnglat"],e["lnglat"]],strokeColor:"#1791fc",strokeOpacity:.8,strokeWeight:2,strokeStyle:"solid",strokeDasharray:[10,5],zIndex:10,extData:{},bubble:true};var polylineOpts=assign(options,opts);this.polylineTemp={path:[]};this.polylineTemp["path"].push(e.lnglat);this.polylineTemp.obj=new AMap.Polyline(polylineOpts);this._map.add(this.polylineTemp.obj);this._map.on("mousemove",this._drawLine,this)}else{var newPoint=[e["lnglat"].lng,e["lnglat"].lat];var pathArr=this.polylineTemp.obj["getPath"]();pathArr.push(newPoint);this.polylineTemp.obj["setPath"](pathArr)}this.overlays.polyline.push(this.polylineTemp.obj)};MouseTool.prototype._drawLine=function(e){if(this.polylineTemp&&this.polylineTemp.obj){var newPoint=[e["lnglat"].lng,e["lnglat"].lat];var pathArr=this.polylineTemp.obj["getPath"]();pathArr.pop();pathArr.push(newPoint);this.polylineTemp.obj["setPath"](pathArr)}};MouseTool.prototype._endPolylineLine=function(type){var pathArr=this.polylineTemp.obj["getPath"]();if(type&&type==="db"){pathArr.pop()}this.polylineTemp.obj["setPath"](pathArr);this.emit("draw",{obj:this.polylineTemp.obj});this.polylineTemp=null;this._map["setStatus"]({doubleClickZoom:this.mapDoubleClickZoom});this._map.off("mousemove",this._drawLine,this)};MouseTool.prototype._delPolylineLinePoint=function(){var pathArr=this.polylineTemp.obj["getPath"]();pathArr.pop();this.polylineTemp.obj["setPath"](pathArr);this._endPolylineLine()};MouseTool.prototype._renderMarker=function(opts,e){var markerOpts=assign({position:e.lnglat},opts);var marker=new AMap.Marker(markerOpts);this.overlays.marker.push(marker);if(this.overlayBubble){var curOverlays=this._map.getAllOverlays();if(curOverlays&&curOverlays.length>0){for(var _i=0,curOverlays_3=curOverlays;_i<curOverlays_3.length;_i++){var item=curOverlays_3[_i];if(item.className==="Overlay.Polygon"||item.className==="Overlay.Circle"||item.className==="Overlay.Rectangle"){var IsRange=item.contains(e.lnglat);if(IsRange){return}}}}}this._map.add(marker);this.emit("draw",{obj:marker})};MouseTool.prototype._createCircle=function(opts,e){if(this.overlayData){return null}if(this.overlayBubble){var curOverlays=this._map.getAllOverlays();if(curOverlays&&curOverlays.length>0){for(var _i=0,curOverlays_4=curOverlays;_i<curOverlays_4.length;_i++){var item=curOverlays_4[_i];if(item.className==="Overlay.Polygon"||item.className==="Overlay.Circle"||item.className==="Overlay.Rectangle"){var IsRange=item.contains(e.lnglat);if(IsRange){return}}}}}this._map.on("mousemove",this._updateCircle,this);var options={center:e.lnglat,strokeColor:"#1791fc",strokeOpacity:.8,strokeWeight:2,fillColor:"#1791fc",fillOpacity:.35,strokeStyle:"solid",strokeDasharray:[10,5],zIndex:10,bubble:true,radius:0};var circleOpts=assign(options,opts);this.mapDragEnable=this._map["getStatus"]()["dragEnable"];this._map["setStatus"]({dragEnable:false});var newCircle=new AMap.Circle(circleOpts);this._map.add(newCircle);this.overlayData={obj:newCircle,center:e}};MouseTool.prototype._doneCircle=function(){if(!this.overlayData){return}this.overlays.circle.push(this.overlayData.obj);this.emit("draw",{obj:this.overlayData.obj});this.overlayData=null;this._map.off("mousemove",this._updateCircle,this);this._map["setStatus"]({dragEnable:this.mapDragEnable})};MouseTool.prototype._updateCircle=function(e){if(this.overlayData){var optRadius=AMap.GeometryUtil.distance(this.overlayData.center.lnglat,e.lnglat).toFixed(3);this.overlayData.obj.setRadius(optRadius);this.emit("drawing",{obj:this.overlayData.obj})}};MouseTool.prototype._createRectangle=function(opts,e){if(this.overlayData){return null}if(this.overlayBubble){var curOverlays=this._map.getAllOverlays();if(curOverlays&&curOverlays.length>0){for(var _i=0,curOverlays_5=curOverlays;_i<curOverlays_5.length;_i++){var item=curOverlays_5[_i];if(item.className==="Overlay.Polygon"||item.className==="Overlay.Circle"||item.className==="Overlay.Rectangle"){var IsRange=item.contains(e.lnglat);if(IsRange){return}}}}}this._map.on("mousemove",this._updateRectangle,this);var options={bounds:new AMap.Bounds(e.lnglat,e.lnglat),strokeColor:"#1791fc",strokeOpacity:.8,strokeWeight:2,fillColor:"#1791fc",fillOpacity:.35,strokeStyle:"solid",strokeDasharray:[10,5],zIndex:10,bubble:true};var rectangleOpts=assign(options,opts);var newRectangle=new AMap.Rectangle(rectangleOpts);this.mapDragEnable=this._map["getStatus"]()["dragEnable"];this._map["setStatus"]({dragEnable:false});this._map.add(newRectangle);this.overlayData={obj:newRectangle,center:e}};MouseTool.prototype._doneRectangle=function(){if(!this.overlayData){return}this.overlays.rectangle.push(this.overlayData.obj);this._map["setStatus"]({dragEnable:this.mapDragEnable});this.emit("draw",{obj:this.overlayData.obj});this.overlayData=null;this._map.off("mousemove",this._updateRectangle,this)};MouseTool.prototype._updateRectangle=function(e){if(this.overlayData){var optBounds=new AMap.Bounds(this.overlayData.center.lnglat,e.lnglat);this.overlayData.obj.setBounds(optBounds);this.emit("drawing",{obj:this.overlayData.obj})}};MouseTool.prototype._doneZoomIn=function(){this._map.setFitView([this.overlayData.obj]);this._map.remove(this.overlayData.obj);this.overlayData=null;this._map.off("mousemove",this._updateCircle,this)};MouseTool.prototype._doneZoomOut=function(){var center=this.overlayData.obj.getCenter();var zoom=this._map.getZoom();this._map.setZoomAndCenter(zoom-1,[center.lng,center.lat]);this._map.remove(this.overlayData.obj);this.overlayData=null;this._map.off("mousemove",this._updateCircle,this)};MouseTool.prototype._onStart=function(){this._map["setStatus"]({allBubble:true});if(this.ruler){this.ruler.turnOff()}this._unbind()};MouseTool.prototype._onEnd=function(ifClear){this._unbind();this.polylineTemp=null;this.polygonTemp=null;if(this.MeasureAreaTemp){if(ifClear&&this.MeasureAreaTemp.obj){this._map.remove(this.MeasureAreaTemp.obj)}this._map.off("mousemove",this._drawMeasureArea,this);this.MeasureAreaTemp=null}if(this.ruler){this.ruler.turnOff(ifClear)}this._map["setStatus"]({allBubble:false})};return MouseTool}(AMap.Event);AMap["MouseTool"]=MouseTool})(); ');
|
||
_jsload_('AMap.Geocoder', '!function(c){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");t=e;if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}function d(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=o(r);return p(this,n?(e=o(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}var e=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e);var r,n=d(o);function o(e){var t;if(this instanceof o)return(t=n.call(this)).CLASS_NAME="AMap.Geocoder",t.opt=e||{},t.config=c.getConfig(),t.url=t.config.server+"/v3/geocode",t;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"getLocation",value:function(e,r){var t,n=this;e?(t={key:this.config.key,s:"rsv3",language:this.opt.lang||"zh_cn"},e instanceof Array&&(e=e.join("|"),t.batch=!0),(t.address=e)instanceof Array&&(e=e.join("|"),t.push("batch=true")),this._mergeParams(this.opt,{city:"city"},t),e=this.url+"/geo",c.WebService.get(e,t,function(e,t){"complete"===e&&t.status&&"1"===t.status&&n._geocodingComplete(t,r),"error"===e&&n._onError(t,r)})):(this.emit("error",{info:"NO_PARAMS"}),r&&"function"==typeof r&&r("error","NO_PARAMS"))}},{key:"setCity",value:function(e){this.opt.city=e}},{key:"setLang",value:function(e){this.opt.lang=e||"zh_cn"}},{key:"getLang",value:function(){return this.opt.lang}},{key:"getAddress",value:function(e,r){var n=this,t=(e=c.Util.parseLngLatData(e),[]),o={key:this.config.key,s:"rsv3",language:this.opt.lang||"zh_cn"};if(e instanceof Array){for(var i=0,s=e.length;i<s;i+=1)t.push(e[i]+"");t=t.join("|"),o.batch=!0}else t=e.lng+","+e.lat;o.location=t;this._mergeParams(this.opt,{radius:"radius",extensions:"extensions"},o);var a=this.url+"/regeo";c.WebService.get(a,o,function(e,t){"complete"===e&&t.status&&"1"===t.status?n._rgeocodingComplete(t,r):n._onError(t,r)})}},{key:"_mergeParams",value:function(e,t,r){for(var n in e)void 0!==e[n]&&void 0!==t[n]&&(r[t[n]]=e[n])}},{key:"_str2LngLat",value:function(e){return e?(e=e.split(","),new c.LngLat(e[0],e[1])):null}},{key:"_parseString",value:function(e){return"object"===i(e)||void 0===e?"":e}},{key:"_parseInt",value:function(e){e=parseInt(e,10);return isNaN(e)?0:e}},{key:"_geocodingComplete",value:function(e,t){var r;if(parseInt(e.status,10))if(r={info:e.info,resultNum:e.count,geocodes:[]},e.geocodes.length){for(var n=0,o=e.geocodes.length;n<o;n+=1){var i=e.geocodes[n],i=0==i.location.length?null:{location:this._str2LngLat(i.location),formattedAddress:this._parseString(i.formatted_address),adcode:this._parseString(i.adcode),level:this._parseString(i.level),addressComponent:{neighborhood:this._parseString(i.neighborhood.name),neighborhoodType:this._parseString(i.neighborhood.type),building:this._parseString(i.building.name),buildingType:this._parseString(i.building.type),province:this._parseString(i.province),city:this._parseString(i.city),district:this._parseString(i.district),township:this._parseString(i.township),citycode:this._parseString(i.citycode),street:this._parseString(i.street),streetNumber:this._parseString(i.number)}};r.geocodes.push(i)}this.emit("complete",r),t&&"function"==typeof t&&t("complete",r)}else r.info="NO_DATA",this.emit("complete",r),t&&"function"==typeof t&&t("no_data",{});else r={info:e.info},this.emit("error",{result:r}),t&&"function"==typeof t&&t("error",e.info)}},{key:"parseBusinessAreas",value:function(e){var t=[];if(e)for(var r=0;r<e.length;r+=1)e[r].id&&t.push({name:this._parseString(e[r].name),id:this._parseString(e[r].id),location:this._str2LngLat(e[r].location)});return t}},{key:"_buildRegeocodes",value:function(e){var t=[];if(e)for(var r=0,n=e.length;r<n;r+=1){var o=e[r];t.push(this._buildRegeocode(o))}return t}},{key:"_buildRegeocode",value:function(e){var t,r={addressComponent:{citycode:this._parseString(e.addressComponent.citycode),adcode:this._parseString(e.addressComponent.adcode),businessAreas:this.parseBusinessAreas(e.addressComponent.businessAreas),neighborhoodType:this._parseString(e.addressComponent.neighborhood.type),neighborhood:this._parseString(e.addressComponent.neighborhood.name),building:this._parseString(e.addressComponent.building.name),buildingType:this._parseString(e.addressComponent.building.type),street:this._parseString(e.addressComponent.streetNumber.street),streetNumber:this._parseString(e.addressComponent.streetNumber.number),province:this._parseString(e.addressComponent.province),city:this._parseString(e.addressComponent.city),district:this._parseString(e.addressComponent.district),towncode:this._parseString(e.addressComponent.towncode),township:this._parseString(e.addressComponent.township)},formattedAddress:this._parseString(e.formatted_address),roads:[],crosses:[],pois:[]};return e.roads&&(r.roads=this._parseRoads(e.roads)),e.roadinters&&(t=e.roadinters,this._isArray(t)||(t=[e.roadinters.roadinter]),r.crosses=this._parseCross(t)),e.pois&&(r.pois=this._parsePOI(e.pois)),e.aois&&(r.aois=this._parseAOIs(e.aois)),r}},{key:"_rgeocodingComplete",value:function(e,t){var r;if(parseInt(e.status,10)){if(r={info:e.info},e.regeocode){if(""===this._parseString(e.regeocode.formatted_address))return r.info="NO_DATA",this.emit("complete",r),void(t&&"function"==typeof t&&t("no_data",{}));r.regeocode=this._buildRegeocode(e.regeocode)}else e.regeocodes&&(r.regeocodes=this._buildRegeocodes(e.regeocodes));this.emit("complete",r),t&&"function"==typeof t&&t("complete",r)}else r={info:e.info},this.emit("error",{result:r}),t&&"function"==typeof t&&t("error",e.info)}},{key:"_parsePOI",value:function(e){for(var t=[],r=0;r<e.length;r+=1){var n=e[r];t[r]={id:n.id,name:n.name,type:n.type,address:this._parseString(n.address),distance:this._parseInt(n.distance),tel:this._parseString(n.tel),location:this._str2LngLat(n.location),direction:this._parseString(n.direction),businessArea:this._parseString(n.businessarea)}}return t}},{key:"_parseAOIs",value:function(e){for(var t=[],r=0,n=e.length;r<n;r++){var o=e[r];t.push({adcode:this._parseString(o.adcode),area:this._parseString(o.area),id:this._parseString(o.id),location:this._str2LngLat(o.location),name:this._parseString(o.name),type:this._parseString(o.type)})}return t}},{key:"_isArray",value:function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{key:"_parseCross",value:function(e){for(var t=[],r=0;r<e.length;r+=1){var n=e[r];t[r]={distance:this._parseInt(n.distance),direction:this._parseString(n.direction),first_id:this._parseString(n.first_id),first_name:this._parseString(n.first_name),second_name:this._parseString(n.second_name),second_id:this._parseString(n.second_id),location:this._str2LngLat(n.location)}}return t}},{key:"_parseRoads",value:function(e){for(var t=[],r=0;r<e.length;r+=1){var n=e[r];t[r]={id:n.id,name:n.name,distance:this._parseInt(n.distance),direction:this._parseString(n.direction),location:this._str2LngLat(n.location)}}return t}},{key:"_onError",value:function(e,t){this.emit("error",{e:e}),t&&"function"==typeof t&&t("error",e.info)}}])&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(c.Event);c.Geocoder=e}(window.AMap); ');
|
||
_cssload_('AMap.Driving', '.amap-lib-driving{margin:0;padding:0;color:#565656;font-family:Microsoft Yahei,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;line-height:1.5;word-wrap:break-word;background-color:#fff;border:1px solid silver}.amap-lib-driving ol,.amap-lib-driving ul{list-style:outside none none;margin:0;padding:0}.amap-call{font-size:12px;color:#fafafa;cursor:pointer;background-color:#bbb;text-align:right;padding:3px 8px 1px 3px}.amap-call,.amap-lib-driving .planTitle .clearfix a{text-decoration:underline}.amap-lib-driving .blue{color:#3d93fd}.amap-lib-driving p{margin:0}.amap-lib-driving b,.amap-lib-driving strong{font-weight:700}.amap-lib-driving dt{cursor:pointer}.amap-lib-driving .planTitle{position:relative;padding:2px 8px;border-top:1px solid #e6e6e6;border-bottom:1px solid #e6e6e6;background:#fafafa;font-size:14px;cursor:pointer}.amap-lib-driving .planTitle:hover{background:#fff}.amap-lib-driving .planTitle.current .sidebar,.amap-lib-driving .planTitle:hover .sidebar{display:block}.amap-lib-driving .planTitle span.red{color:#ff4546}.amap-lib-driving .planTitle h3{margin-top:0;font-size:13px;margin-bottom:1px}.amap-lib-driving .planTitle p{font-size:12px;margin-bottom:1px;color:#666}.amap-lib-driving .planTitle ul{display:none;margin-top:3px}.amap-lib-driving .planTitle ul li{float:left}.amap-lib-driving .planTitle ul li:last-child{border-right:none}.amap-lib-driving .planTitle ul li a{background-repeat:no-repeat;color:#00f;font-size:12px;height:16px;line-height:16px;padding-right:8px;text-indent:20px}.amap-lib-driving .planTitle ul li a.icon-share{padding-left:0;background-position:0}.amap-lib-driving .icon-arrow-up{background-image:url(https://webapi.amap.com/theme/v1.3/images/newpc/icon/arrow-up.png)}.amap-lib-driving .planTitle .sidebar{display:none;position:absolute;width:30px;height:30px;top:50%;right:0;pointer-events:none;margin-top:-15px}.amap-lib-driving .planTitle .sidebar div{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%;transition:all .3s ease-in 0s;-webkit-transition:all .3s ease-in 0s;-moz-transition:all .3s ease-in 0s;background-image:url(https://webapi.amap.com/theme/v1.3/images/newpc/icon/arrow-down.png)}.amap-lib-driving .planTitle .sidebar div.expand{background-image:url(https://webapi.amap.com/theme/v1.3/images/newpc/icon/arrow-up.png)}.amap-lib-driving .plan{display:none;font-size:12px;margin:0}.amap-lib-driving .plan .grey{color:#999}.amap-lib-driving .plan .blue{color:#3baeca}.amap-lib-driving .plan dt{position:relative;margin-left:35px;line-height:20px;border-bottom:1px solid #f0f0f0;padding-bottom:3px;padding-top:3px}.amap-lib-driving .plan dt:hover{background:#fafafa}.amap-lib-driving .plan dt span.grey{font-weight:400}.amap-lib-driving .plan dt span.line{padding-left:5px;padding-right:5px;display:inline-block;line-height:22px;color:#fff;background:#3baeca;text-indent:0}.amap-lib-driving .plan dt:first-child{border-top:1px solid #f0f0f0}.amap-lib-driving .plan dt .beforedt{left:-30px;border-radius:50%;background-color:#fff;background-position:50%;background-repeat:no-repeat;text-indent:0;text-align:center;font-size:12px;z-index:10}.amap-lib-driving .beforedt{top:15px;left:-22px;height:100%;width:4px;z-index:-1;position:absolute;background-color:#e5e7e8}.amap-lib-driving .afterdt{position:absolute}.amap-lib-driving .plan dt.end,.amap-lib-driving .plan dt.start,.amap-lib-driving .plan dt.via{font-size:14px}.amap-lib-driving .plan dt.end .beforedt,.amap-lib-driving .plan dt.start .beforedt,.amap-lib-driving .plan dt.via .beforedt{margin-top:-10px;width:20px;height:20px;line-height:20px;color:#fff;background-image:url(https://webapi.amap.com/theme/v1.3/images/newpc/diricon.png)}.amap-lib-driving .plan dt.start .beforedt{background-position:-47px -104px}.amap-lib-driving .plan dt.via .beforedt{background-position:-85px -104px}.amap-lib-driving .plan dt.end .beforedt{background-position:-126px -104px}.amap-lib-driving .plan dt.end .afterdt{height:0%}.amap-lib-driving .afterdt{background-color:#e5e7e8;left:-22px;top:20px;height:500px;width:4px;z-index:9}.amap-lib-driving>.plan dt>.afterdt{height:100%}.amap-lib-driving .plan dt.walk .beforedt{left:-27px;width:10px;height:10px;margin-top:-6px;border:2px solid #ddd}.amap-lib-driving .plan dt.bus .beforedt,.amap-lib-driving .plan dt.subway .beforedt{left:-31px;width:24px;height:24px;margin-top:-12px;background-image:url(https://webapi.amap.com/theme/v1.3/images/newpc/diricon.png)}.amap-lib-driving .plan dt.bus .afterdt{background-color:#33a7ff}.amap-lib-driving .plan dt.subway .afterdt{background-color:#3baeca}.amap-lib-driving .plan dt.bus .beforedt{background-position:-164px -102px}.amap-lib-driving .plan dt.subway .beforedt{background-position:-243px -101px}.amap-lib-driving .plan-nobus{margin:0}.amap-lib-driving .plan-nobus dt span{display:block;line-height:18px}.amap-lib-driving .plan-nobus dt .beforedt{left:-31px;width:21px;height:21px;margin-top:-12px;border:1px solid #ddd;background-image:url(https://webapi.amap.com/theme/v1.3/images/newpc/diricon.png)}.amap-lib-driving .plan-nobus dt.end .beforedt,.amap-lib-driving .plan-nobus dt.start .beforedt,.amap-lib-driving .plan-nobus dt.via .beforedt{border:none}.amap-lib-driving .plan-nobus dt.turn-go .beforedt{background-image:url(https://webapi.amap.com/theme/v1.3/images/newpc/icon/turn-go.png)}.amap-lib-driving .plan-nobus dt.turn-advance .beforedt{background-position:-46px -23px}.amap-lib-driving .plan-nobus dt.turn-left .beforedt{background-position:-87px -23px}.amap-lib-driving .plan-nobus dt.turn-right .beforedt{background-position:-124px -23px}.amap-lib-driving .plan-nobus dt.turn-keepleft .beforedt{background-position:-406px -23px}.amap-lib-driving .plan-nobus dt.turn-keepright .beforedt{background-position:-445px -23px}.amap-lib-driving .plan-nobus dt.turn-leftup .beforedt{background-position:-165px -23px}.amap-lib-driving .plan-nobus dt.turn-leftdown .beforedt{background-position:-246px -23px}.amap-lib-driving .plan-nobus dt.turn-rightup .beforedt{background-position:-206px -23px}.amap-lib-driving .plan-nobus dt.turn-rightdown .beforedt{background-position:-284px -23px}.amap-lib-driving .plan-nobus dt.turn-leftback .beforedt{background-position:-327px -23px}.amap-lib-driving .plan-nobus dt.turn-rightback .beforedt{background-position:-365px -23px}.amap-lib-driving .plan-nobus dt.turn-enterRing .beforedt{background-position:-561px -23px}.amap-lib-driving .plan-nobus dt.turn-leaveRing .beforedt{background-position:-602px -23px}.amap-lib-driving .plan-nobus dt.turn-slow .beforedt{background-position:-524px -23px}.amap-lib-driving .plan-nobus dt.turn-crosswalk .beforedt{background-position:-126px -184px}.amap-lib-driving .plan-nobus dt.turn-overpass .beforedt{background-position:-164px -184px}.amap-lib-driving .plan-nobus dt.turn-underpass .beforedt{background-position:-85px -184px}.amap-lib-driving .plan-nobus dt.turn-squarepass .beforedt{background-position:-204px -184px}.amap-lib-marker-from,.amap-lib-marker-mid,.amap-lib-marker-to{position:absolute;width:25px;height:30px;color:#e90000;background-size:100% 100%}.amap-lib-marker-from{background-image:url(https://a.amap.com/jsapi/static/image/plugin/marker/start.png);cursor:pointer}.amap-lib-marker-to{background-image:url(https://a.amap.com/jsapi/static/image/plugin/marker/end.png);cursor:pointer}.amap-lib-marker-mid{background-image:url(https://a.amap.com/jsapi/static/image/plugin/marker/mid.png)}.amap-combo-close{position:absolute;top:11px;right:10px;background:url(https://webapi.amap.com/theme/v1.3/images/amap-info.png) no-repeat -1px -151px;width:12px;height:12px;cursor:pointer}.amap-content-body{min-width:200px;max-width:240px;font-family:Helvetica,Hiragino Sans GB,Microsoft Yahei,微软雅黑,Arial,sans-serif;box-shadow:0 0 .5px rgba(0,0,100,.6);background:none repeat scroll 0 0 #fff;border-radius:2px;text-align:left;border:1px solid silver}.amap-combo-sharp{margin:0 auto;bottom:1px;position:relative;background:url(https://webapi.amap.com/theme/v1.3/images/amap-info.png) no-repeat -5px -564px;width:18px;height:9px}.amap-lib-infowindow{padding:0;position:relative;background-color:#fff;margin:8px}.amap-lib-infowindow-title{line-height:22px;font-size:14px;border-bottom:1px solid #99adce;padding-right:15px}.amap-lib-infowindow-content{padding-top:5px;overflow:hidden;font-size:12px;zoom:1}');
|
||
_jsload_('AMap.Driving', '!function(AMap){"use strict";function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass)}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o)}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o};return _setPrototypeOf(o,p)}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(e){return false}}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called")}return self}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return _assertThisInitialized(self)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return _possibleConstructorReturn(this,result)}}var markerOffset=[-12,-30];function forOf(arr,cb){for(var i=0,len=arr.length;i<len;i++){cb(arr[i])}}var DrivingRender=function DrivingRender(initOpts){this["CLASS_NAME"]="AMap.DrivingRender";var me=this;initOpts=initOpts||{};me._styleOpts={};me._styleOpts["zIndex"]=typeof initOpts["zIndex"]==="number"?initOpts["zIndex"]:50;me._showTraffic=initOpts["showTraffic"];me._eventSelf=initOpts["eventSelf"];me.showDir=!!(initOpts?initOpts.showDir:true);me._currentRouteTitle=null;me._currentRouteOptenitem=null;me.autoRender=function(options,drivingObject){me.clear(1);if(!options||!options.data||!options.panel&&!options.map){return}this.options=options;this.hideMarkers=options["hideMarkers"]||false;if(options.map){this._infoWindow=new AMap.InfoWindow({size:new AMap.Size(0,0),isCustom:true,offset:new AMap.Pixel(0,-30)});this._overlays=[];this._route=[];this._highlightOverlay=null;if(!options.panel){this.drawRouteOverlays(0)}}if(options.panel){if(Object.prototype.toString.call(options.panel)==="[object String]"){options.panel=document.getElementById(options.panel)}if(drivingObject&&options.data.waypoints.length===0){me.listener.gotoAMap=function(){drivingObject.searchOnAMAP(options.data)};var a=document.createElement("div");a.className="amap-call";a.href="javascript:void(0)";a.innerHTML="前往高德地图查看";a.addEventListener("click",me.listener.gotoAMap);options.panel.appendChild(a)}options.panel.appendChild(this.view.createPanel(options.data));this.enableListeners()}};me.clear=function(reserve){this.clearPanel();this.clearOverlays(reserve)};me.drawRoute=function(index){var data=this.options.data,route=data.routes[index];var distance=route.distance,steps=route.steps;var walkPaths=[],drivingPaths=[];walkPaths.push([data.start.location,steps[0].path[0]]);var lastStepPath=steps[steps.length-1].path;walkPaths.push([lastStepPath[lastStepPath.length-1],data.end.location]);for(var i=0,step;i<steps.length;i++){step=steps[i];drivingPaths=drivingPaths.concat(step.path)}if(drivingPaths.length>0){drivingPaths=[drivingPaths]}drivingPaths.steps=steps;this.clearRoute();this._route=this.addOverlays([],walkPaths,drivingPaths,{strokeOpacity:.4})};me.clearRoute=function(){if(this._route){for(var i=0;i<this._route.length;i++){this._route[i].setMap(null)}this._route=[]}};me.drawRouteOverlays=function(index){var data=this.options.data,route=data.routes[index];var distance=route.distance,steps=route.steps;var walkPaths=[],drivingPaths=[],points=[];points.push(data.start);if(data.waypoints){var waypoints=data.waypoints;for(var i=0,len=waypoints.length;i<len;i++){points.push(waypoints[i])}}points.push(data.end);walkPaths.push([data.start.location,steps[0].path[0]]);var lastStepPath=steps[steps.length-1].path;walkPaths.push([lastStepPath[lastStepPath.length-1],data.end.location]);for(var _i=0,step;_i<steps.length;_i++){step=steps[_i];drivingPaths=drivingPaths.concat(step.path)}if(drivingPaths.length>0){drivingPaths=[drivingPaths]}drivingPaths.steps=steps;this.clearOverlays(1);this._overlays=this.addOverlays(points,walkPaths,drivingPaths);if(me.options["autoFitView"]){me.options.map.setFitView(this._overlays)}};me.addOverlays=function(points,walkPaths,drivingPaths,styleOptions){var _this=this;var map=this.options.map;styleOptions=styleOptions||{strokeOpacity:1};var _overlays=[];if(!this.hideMarkers){if(points[0]){if(!this.startMarker){this.startMarker=new AMap.Marker({offset:markerOffset,map:map,content:\'<div class="amap-lib-marker-from"></div>\',innerOverlay:true});this.startMarker.isOfficial=true}var start=this.startMarker;start.setPosition(points[0].location);start.setMap(map);start._data=points[0];start.on("click",this.listener.markerClick);AMap.Event.addListener(start,"click",this.listener.markerClick);_overlays.push(start)}if(points.length>1){if(!this.endMarker){this.endMarker=new AMap.Marker({offset:markerOffset,map:map,content:\'<div class="amap-lib-marker-to"></div>\',innerOverlay:true});this.endMarker.isOfficial=true}var end=this.endMarker;end.setPosition(points[points.length-1].location);end.setMap(map);end._data=points[points.length-1];end.on("click",this.listener.markerClick);AMap.Event.addListener(end,"click",this.listener.markerClick);_overlays.push(end)}for(var i=1,point;i<points.length-1;i++){if(points[i].isWaypoint){point=new AMap.Marker({map:map,offset:markerOffset,position:points[i].location,content:\'<div class="amap-lib-marker-mid"></div>\',innerOverlay:true});point._data=points[i];AMap.Event.addListener(point,"click",this.listener.markerClick)}point.isOfficial=true;_overlays.push(point)}}styleOptions=me.util.extend({},me._styleOpts,styleOptions);for(var _i2=0,drivingPath;_i2<drivingPaths.length;_i2++){var trafficGradient=undefined;if(me._showTraffic&&drivingPaths.steps){(function(){var trafficGradientValues=[];var totalDistance=0;forOf(drivingPaths.steps,function(step){if(step.tmcsPaths){forOf(step.tmcsPaths,function(tmcsPath){totalDistance+=tmcsPath.distance})}else{totalDistance+=100}});var currentDistance=0;forOf(drivingPaths.steps,function(step){if(step.tmcsPaths){forOf(step.tmcsPaths,function(tmcsPath){currentDistance+=tmcsPath.distance;trafficGradientValues.push([currentDistance/totalDistance,_this.getColorByTmcsStatus(tmcsPath.status)])})}else{currentDistance+=100;trafficGradientValues.push([currentDistance/totalDistance,_this.getColorByTmcsStatus("")])}});trafficGradient={values:trafficGradientValues}})()}drivingPath=new AMap.Polyline(me.util.extend({},styleOptions,{map:map,path:drivingPaths[_i2],lineJoin:"round",strokeColor:"#0091ff",isOutline:me.options["isOutline"],outlineColor:me.options["outlineColor"],borderWeight:2,lineGradient:trafficGradient,strokeOpacity:1,showDir:me.showDir,strokeWeight:6,innerOverlay:true}));drivingPath.isOfficial=true;_overlays.push(drivingPath);me._drivingPolyline=drivingPath}for(var _i3=0,walkPath;_i3<walkPaths.length;_i3++){walkPath=new AMap.Polyline(me.util.extend({},styleOptions,{map:map,path:walkPaths[_i3],strokeColor:"grey",strokeStyle:"dashed",strokeWeight:6,lineJoin:"bevel",innerOverlay:true}));walkPath.isOfficial=true;_overlays.push(walkPath)}if(me.showDir);return _overlays};me.getColorByTmcsStatus=function(status){var color;switch(status){case"畅通":color="#1BAC2E";break;case"缓行":color="#FFA700";break;case"拥堵":color="#E94B37";break;case"严重拥堵":color="#A81212";break;default:color="#adadad";break}return color};me.clearPanel=function(){if(this.options&&this.options.panel){var a=me.util.getElementsByClassName("amap-call","div",this.options.panel)[0];if(a){a.removeEventListener("click",me.listener.gotoAMap)}this.options.panel.innerHTML=""}};me.clearOverlays=function(reserve){if(!reserve){if(this.startMarker){this.startMarker.setMap();this.startMarker=null}if(this.endMarker){this.endMarker.setMap();this.endMarker=null}}if(this._overlays){for(var i=0,overlay;i<this._overlays.length;i++){overlay=this._overlays[i];overlay.setMap(null)}this._overlays=[]}if(this._infoWindow){this._infoWindow.close()}if(this._highlightOverlay){this._highlightOverlay.setMap(null);this._highlightOverlay=null}this.clearRoute()};me.getTitle=function(route){var policy=route.policy?" | <span class=\'blue\'>"+route.policy+"</span>":"";var result=me.util.getTime(route.time)+"("+me.util.getDistance(route.distance)+")"+policy;return result};me.util={};me.util.extend=function(dest){var sources=Array.prototype.slice.call(arguments,1),i,j,len,src;for(j=0,len=sources.length;j<len;j=j+1){src=sources[j]||{};for(i in src){if(Object.prototype.hasOwnProperty.call(src,i)){if(typeof src[i]==="function"&&typeof dest[i]==="function"){src[i].__super=dest[i]}dest[i]=src[i]}}}return dest};me.util.getDistance=function(len){if(len<=1e3){var s=len;return s+"米"}else{var _s=Math.round(len/10);return""+_s/100+"公里"}};me.util.getTime=function(second){var minute=+(second/60).toFixed(0);if(minute<60){return""+minute+"分钟"}else{return""+Math.floor(minute/60)+"小时"+minute%60+"分钟"}};me.util.domstr2dom=function(arg){var objE=document.createElement("div");objE.innerHTML=arg;return objE};me.util.getElementsByClassName=function(className,tag,parent){var testClass=new RegExp("(^|\\\\s)"+className+"(\\\\s|$)");tag=tag||"*";parent=parent||document;var elements=parent.getElementsByTagName(tag);var returnElements=[];for(var i=0,current;i<elements.length;i++){current=elements[i];if(testClass.test(current.className)){returnElements.push(current)}}return returnElements};me.enableListeners=function(){var unfocusTitles=me.util.getElementsByClassName("planTitle","div",me.options.panel);for(var i=0,unfocusTitle;i<unfocusTitles.length;i++){unfocusTitle=unfocusTitles[i];AMap.Event.addDomListener(unfocusTitle,"click",this.listener.unfocusTitleClick);AMap.Event.addDomListener(unfocusTitle,"mouseenter",this.listener.unfocusTitleMouseenter);AMap.Event.addDomListener(unfocusTitle,"mouseleave",this.listener.unfocusTitleMouseleave)}var c_divs=this.util.getElementsByClassName("*","dt",me.options.panel);for(var _i4=0,c_div;_i4<c_divs.length;_i4++){c_div=c_divs[_i4];AMap.Event.addDomListener(c_div,"click",this.listener.routeStepItem)}if(unfocusTitles.length>0){me.listener.unfocusTitleClick.call(unfocusTitles[0])}};me.listener={};me.listener.markerClick=function(){var data=this._data;if(data.type==="start"||data.type==="end"){me._infoWindow.setOffset(new AMap.Pixel(0,-30))}else{me._infoWindow.setOffset(new AMap.Pixel(0,0))}if(data.name==="起点"||data.name==="终点"||data.name==="途经点");else{me._infoWindow.setContent(me.view.createInfowindowContent(data));me._infoWindow.open(me.options.map,this.getPosition())}me.options.map.setCenter(this.getPosition())};me.listener.routeStepItem=function(){if(!me.options.map){var _p=this.parentNode;var _children=_p.children;var _stepIndex;for(var i=0,child;i<_children.length;i++){child=_children[i];if(child===this){_stepIndex=i;break}}me._eventSelf.emit("panelClick",{stepIndex:_stepIndex});return}if(me._highlightOverlay){me._highlightOverlay.setMap(null)}this.style.backgroundColor="rgb(240, 240, 240)";if(me.listener.routeStepItem.last){me.listener.routeStepItem.last.style.backgroundColor=""}me.listener.routeStepItem.last=this;var p=this.parentNode;var children=p.children;var stepIndex;for(var _i5=0,_child;_i5<children.length;_i5++){_child=children[_i5];if(_child===this){stepIndex=_i5;break}}if(stepIndex===0){me.listener.markerClick.call({_data:me.options.data.start,getPosition:function getPosition(){return me.options.data.start.location}});return}if(stepIndex===children.length-1){me.listener.markerClick.call({_data:me.options.data.end,getPosition:function getPosition(){return me.options.data.end.location}});return}me._infoWindow.close();stepIndex=stepIndex-1;var step=me.options.data.routes[me._currentRouteIndex].steps[stepIndex];var highlight;highlight=new AMap.Polyline({map:me.options.map,path:step.path,strokeColor:"red",strokeOpacity:.8,strokeWeight:8,lineJoin:"round",draggable:true,innerOverlay:true});highlight.isOfficial=true;me._highlightOverlay=highlight;me.options.map.setBounds(highlight.getBounds())};me.listener.driveTitleClick=function(){me._currentRouteTitle.style.display="block";me._currentRouteOptenitem.style.display="none";me.clearOverlays()};me.listener.unfocusTitleClick=function(){var target=arguments[0]&&(arguments[0].target||arguments[0].srcElement);if(target&&target.tagName==="A"){return}if(me._currentRouteTitleStatus==="open"&&me._currentRouteTitle===this){me.view.closeCurrentPlanDiv();me.clearOverlays()}else if(me._currentRouteTitleStatus==="open"){me.view.closeCurrentPlanDiv();me.view.openPlanDiv(this)}else{me.view.openPlanDiv(this)}};me.listener.unfocusTitleMouseenter=function(e){var index=this.getAttribute("index");me.drawRoute(index);me.listener.unfocusTitleMouseenter.last=this};me.listener.unfocusTitleMouseleave=function(e){me.clearRoute()};me.view={};me.view.openPlanDiv=function(planDiv){me._currentRouteTitle=planDiv;me._currentRouteOptenitem=planDiv.nextSibling;me.util.getElementsByClassName("icon-arrow-up","div",me._currentRouteTitle)[0].className="icon-arrow-up expand";if(me.util.getElementsByClassName("clearfix","ul",me._currentRouteTitle)[0]){me.util.getElementsByClassName("clearfix","ul",me._currentRouteTitle)[0].style.display="inline-block"}me._currentRouteOptenitem.style.display="block";me._currentRouteTitleStatus="open";var index=me._currentRouteTitle.getAttribute("index");me._currentRouteIndex=index;if(me.options.map){me.drawRouteOverlays(me._currentRouteIndex)}};me.view.closeCurrentPlanDiv=function(){var title=me.util.getElementsByClassName("icon-arrow-up expand","div",me._currentRouteTitle)[0];var fix=me.util.getElementsByClassName("clearfix","ul",me._currentRouteTitle)[0];if(title){title.className="icon-arrow-up"}if(fix){fix.style.display="none"}me._currentRouteOptenitem.style.display="none";me._currentRouteTitleStatus="close"};me.view.createInfowindowContent=function(data){var c=[data.name];return c.join("")};me.view.createInfowindowContent=function(data){var content=document.createElement("div");var div=document.createElement("div");div.className="amap-content-body";var c=[];c.push(\'<div class="amap-lib-infowindow">\');c.push(\' <div class="amap-lib-infowindow-title">\'+data.name+\' <a href="http://detail.amap.com/detail/\'+data.id+"?spm=0.0.0.0.sWhSmy&citycode="+data.citycode+\'" target="_blank">详情»</a></div>\');c.push(\' <div class="amap-lib-infowindow-content">\');c.push(\' <div class="amap-lib-infowindow-content-wrap">\');c.push(" <div>地址:"+data.address+"</div>");if(data.tel){c.push(" <div>电话:"+data.tel+"</div>")}c.push(" </div>");c.push(" </div>");c.push("</div>");div.innerHTML=c.join("");var sharp=document.createElement("div");sharp.className="amap-combo-sharp";div.appendChild(sharp);var close=document.createElement("div");close.className="amap-combo-close";div.appendChild(close);close.href="javascript: void(0)";AMap.Event.addDomListener(close,"touchend",function(e){me._infoWindow["close"]()});AMap.Event.addDomListener(close,"click",function(e){me._infoWindow["close"]()});content.appendChild(div);content.appendChild(close);content.appendChild(sharp);return content};me.view.createPanel=function(data){var div=document.createElement("div");div.className="amap-lib-driving";if(!data.routes){div.innerHTML="抱歉,没有合适的路线。";return div}var result=[];for(var i=0,route;i<data.routes.length;i++){route=data.routes[i];var isDisplay=false,title=me.getTitle(route);result=result.concat(me.view.createTitleDiv(i,title,route,!isDisplay));result=result.concat(me.view.createOpenitemDiv(i,title,data,isDisplay))}div.innerHTML=result.join("");return div};me.view.createTitleDiv=function(index,title,route,isDisplay){var steps=route.steps,roadNameArray=[],roadNames="",roadNames2="";var temp="";for(var i=0,road;i<steps.length;i++){road=steps[i].road;if(road&&road!==temp){roadNameArray.push(road);temp=road}}roadNames=roadNameArray.join(">");if(roadNameArray.length>4){roadNameArray.splice(2,roadNameArray.length-4,"......");roadNames2=roadNameArray.join(">")}else{roadNames2=roadNames}var r=[];r.push(\'<div class="planTitle" index="\'+index+\'">\');r.push(" <h3 class=\'planTitle_route\' title=\\""+roadNames+\'">\');r.push(" <b>"+roadNames2+"</b>");r.push(" </h3>");r.push(" <p>"+title+"</p>");var d=me.options.data;r.push(\' <div class="sidebar">\');r.push(\' <div class="icon-arrow-up" href="javascript:void(0)"></div>\');r.push(" </div> ");r.push("</div>");return r};me.view.createOpenitemDiv=function(index,title,data,isDisplay){var route=data.routes[index],steps=route.steps;var r=[];r.push(\'<dl class="plan plan-nobus">\');r.push(" <dt class=\\"start\\"><div class=\'beforedt\'></div><div class=\'afterdt\'></div><b>"+data.start.name+"</b></dt>");for(var i=0,step;i<steps.length;i++){step=steps[i];r.push(\' <dt class="route turn-\'+me.getSigns(step.action)+\'" index="\'+index+\'"> \');r.push(" <div class=\'beforedt\'></div><div class=\'afterdt\'></div> "+step.instruction);r.push(" </dt>")}r.push(" <dt class=\\"end\\"><div class=\'beforedt\'></div><b>"+data.end.name+"</b></dt>");r.push("</dl>");return r};me.getSigns=function(action){var signs="";var routeSign={"左转":"left","右转":"right","靠左":"keepleft","靠右":"keepright","向左前方行驶":"leftup","向左后方行驶":"leftdown","向右前方行驶":"rightup","向右后方行驶":"rightdown","左转调头":"leftback","右转调头":"rightback","进入环岛":"enterRing","离开环岛":"leaveRing","减速行驶":"slow","向左前方行走":"leftup","向左后方行走":"leftdown","向右前方行走":"rightup","向右后方行走":"rightdown","通过人行横道":"crosswalk","通过过街天桥":"overpass","通过地下通道":"underpass","通过广场":"squarepass"};signs=routeSign[action];if(!signs){signs="advance"}return signs}};var GetLL=function(){function GetLL(city){_classCallCheck(this,GetLL);this.city=city||"";this.CLASS_NAME="AMap.GetLL"}_createClass(GetLL,[{key:"getCity",value:function getCity(cbk){var url=AMap.getConfig().protocol+"://webapi.amap.com/maps/ipCity";AMap.WebService.get(url,{},function(status,data){if(status==="complete"){cbk(data)}else{cbk({})}})}},{key:"get",value:function get(keywordsList,defaultCity,cbk){var psearch=new PlaceSearch({extensions:"all"});var result=[];var getOne=function getOne(){if(keywordsList.length){var keyAndcity=keywordsList.shift();var keyword=keyAndcity["keyword"];var city=keyAndcity["city"]||defaultCity;if(!city){city=""}psearch["setCity"](city);psearch.search(keyword,function(status,data){if(status==="error"){cbk("error",data)}else if(status==="complete"){if(data["poiList"]&&data["poiList"]["pois"].length){result.push(data["poiList"]["pois"][0]);if(keywordsList.length){getOne()}else{cbk("complete",result)}}else{if(!city){cbk("no_city",keyAndcity)}else{cbk("no_poi",keyAndcity)}}}else if(status==="no_data"){if(!city){cbk("no_city",keyAndcity)}else{cbk("no_poi",keyAndcity)}}})}};getOne()}}]);return GetLL}();var PlaceSearch=function(_AMap$Event){_inherits(PlaceSearch,_AMap$Event);var _super=_createSuper(PlaceSearch);function PlaceSearch(opt){var _this;_classCallCheck(this,PlaceSearch);_this=_super.call(this);_this.closed=false;_this.opt=AMap.extend({showCover:true,autoFitView:true},opt||{});_this.opt["pageIndex"]=_this.opt["pageIndex"]||1;_this.opt["pageSize"]=typeof _this.opt["pageSize"]!=="number"||_this.opt["pageSize"]<0?10:_this.opt["pageSize"]>50?50:_this.opt["pageSize"];_this.url=AMap.getConfig().server+"/v3/place";return _this}_createClass(PlaceSearch,[{key:"search",value:function search(keyword,cbk){var params={s:"rsv3",children:+(this.opt["children"]?"1":"")};var map={city:"city",rankBy:"sortrule",type:"types",pageIndex:"page",pageSize:"offset",extensions:"extensions",citylimit:"citylimit"};this._mergeParams(this.opt,map,params);this._query(this.url+"/text",params,cbk,{keywords:keyword||""},"KEYWORD",arguments)}},{key:"setCity",value:function setCity(city){AMap.BuryPoint.add(this,"setCity");this.opt["city"]=city}},{key:"_mergeParams",value:function _mergeParams(data,map,params){for(var i in data){if(typeof data[i]!=="undefined"&&typeof map[i]!=="undefined"){params[map[i]]=data[i]}}return params}},{key:"_query",value:function _query(url,params,cbk,encodeURICom,type,args){var _this2=this;url=url+(params.length>0?"?"+params.join("&"):"");AMap.WebService.get(url,AMap.extend({type_:type,antiCrab:true},params,encodeURICom),function(status,data){if(status==="complete"){_this2._onComplete(data,cbk,type,args)}else{_this2._onError(data,cbk)}})}},{key:"_onComplete",value:function _onComplete(data,cbk,type,args){if(this.closed){return}var result;if(!parseInt(data.status,10)){result={info:data["info"]};AMap.Event.trigger(this,"error",result);if(cbk&&typeof cbk==="function"){cbk("error",data["info"])}}else{result={info:data["info"],poiList:{}};result["poiList"]={pois:[],count:parseInt(data["count"],10),pageIndex:this.opt["pageIndex"],pageSize:this.opt["pageSize"]};if(data["pois"]){for(var i=0;i<data["pois"].length;i+=1){var tmp=data["pois"][i];result["poiList"]["pois"][i]=this._parsePOI(tmp)}}if(data["suggestion"]&&data["suggestion"]["keywords"].length){result["keywordList"]=data["suggestion"]["keywords"];result["info"]="TIP_KEYWORDS"}if(data["suggestion"]&&data["suggestion"]["cities"].length){var cities=data["suggestion"]["cities"],citiesnew=[];for(var j=0;j<cities.length;j+=1){var city=cities[j];for(var pro in city){if(city.hasOwnProperty(pro)&&pro==="num"){city["count"]=city[pro];delete city[pro]}}city["count"]=parseInt(city["count"]);citiesnew.push(city)}result["info"]="TIP_CITIES";result["cityList"]=citiesnew}if((!data["count"]||parseInt(data["count"],10)===0)&&!result["cityList"]&&!result["keywordList"]){result["info"]=data["info"].toLowerCase()==="ok"?"NO_DATA":data["info"];AMap.Event.trigger(this,"complete",result);if(cbk&&typeof cbk==="function"){if(result["cityList"]||result["keywordList"]){cbk("complete",result)}else{cbk("no_data",{})}}}else{AMap.Event.trigger(this,"complete",result);if(cbk&&typeof cbk==="function"){cbk("complete",result)}}}}},{key:"_parsePOI",value:function _parsePOI(poi){this._formatFields(poi);function getLngLat(location){if(location){var lngLat=location.split(",");return new AMap.LngLat(+lngLat[0],+lngLat[1])}else{return null}}var poiBaseInfo={id:poi["id"],name:poi["name"],type:poi["type"],location:getLngLat(poi["location"]),address:poi["address"],tel:poi["tel"],distance:parseFloat(poi["distance"]),shopinfo:poi["shopinfo"]};if(poi["shopinfo"]&&poi["shopinfo"].length){poiBaseInfo["shopinfo"]=poi["shopinfo"]}else{poiBaseInfo["shopinfo"]=""}if(poi["children"]){var children=poi["children"];for(var i=0,len=children.length;i<len;i++){children[i]["location"]=getLngLat(children[i]["location"])}poiBaseInfo["children"]=children}var poiDetailInfo={website:poi["website"],pcode:poi["pcode"],citycode:poi["citycode"],adcode:poi["adcode"],postcode:poi["postcode"+""],pname:poi["pname"],cityname:poi["cityname"],adname:poi["adname"],email:poi["email"],photos:poi["photos"],entr_location:getLngLat(poi["entr_location"]),exit_location:getLngLat(poi["exit_location"]),groupbuy:poi["groupbuy_num"]!=="0",discount:poi["discount_num"]!=="0"};if(poi["indoor_map"]==="1"){poiDetailInfo["indoor_map"]=true;poiDetailInfo["indoor_data"]={cpid:this._parseString(poi["indoor_data"]["cpid"]),floor:this._parseString(poi["indoor_data"]["floor"]),truefloor:this._parseString(poi["indoor_data"]["truefloor"])}}else{poiDetailInfo["indoor_map"]=false}var poiDeepInfo={groupbuys:"",discounts:"",deep_type:"",dining:"",hotel:"",cinema:"",scenic:""};if(poi["rich_content"]){if(poiDetailInfo["groupbuy"]){var groupBuyTemp=poi["rich_content"]["groupbuys"],groupBuyNum=groupBuyTemp.length;if(groupBuyNum>0){poiDeepInfo["groupbuys"]=[]}for(var n=0;n<groupBuyNum;n+=1){var groupBuy={title:groupBuyTemp[n]["title"],type_code:groupBuyTemp[n]["typecode"],type:groupBuyTemp[n]["type"],detail:groupBuyTemp[n]["detail"],stime:groupBuyTemp[n]["start_time"],etime:groupBuyTemp[n]["end_time"],count:groupBuyTemp[n]["num"],sold_num:parseInt(groupBuyTemp[n]["sold_num"]),original_price:parseFloat(groupBuyTemp[n]["original_price"]),groupbuy_price:parseFloat(groupBuyTemp[n]["groupbuy_price"]),discount:parseFloat(groupBuyTemp[n]["discount"]),ticket_address:groupBuyTemp[n]["ticket_address"],ticket_tel:groupBuyTemp[n]["ticket_tel"],photos:groupBuyTemp[n]["photos"],url:groupBuyTemp[n]["url"],provider:""};poiDeepInfo["groupbuys"].push(groupBuy)}}if(poiDetailInfo["discount"]){var discountTemp=poi["rich_content"]["discounts"],disNum=discountTemp.length;if(disNum>0){poiDeepInfo["discounts"]=[]}for(var dis=0;dis<disNum;dis+=1){var discount={title:discountTemp[dis]["title"],detail:discountTemp[dis]["detail"],start_time:discountTemp[dis]["start_time"],end_time:discountTemp[dis]["end_time"],sold_num:parseInt(discountTemp[dis]["sold_num"]),photos:discountTemp[dis]["photos"],url:discountTemp[dis]["url"],provider:""};poiDeepInfo["discounts"].push(discount)}}}if(poi["deep_info"]){poiDeepInfo["deep_type"]=poi["deep_info"]["type"];var poiDeep=poi["deep_info"];switch(poiDeepInfo["deep_type"]){case"cinema":var cinema={intro:poiDeep["intro"],rating:poiDeep["rating"],deep_src:"",parking:poiDeep["parking"],opentime_GDF:poiDeep["opentime_GDF"],opentime:poiDeep["opentime"],photos:poiDeep["photos"]};poiDeepInfo["cinema"]=cinema;poiDeepInfo["deep_type"]="CINEMA";break;case"dining":var dining={cuisines:poiDeep["cuisines"],tag:poiDeep["tag"],intro:poiDeep["intro"],rating:poiDeep["rating"],cp_rating:poiDeep["cp_rating"],deep_src:"",taste_rating:poiDeep["taste_rating"],environment_rating:poiDeep["environment_rating"],service_rating:poiDeep["service_rating"],cost:poiDeep["cost"],recommend:poiDeep["recommend"],atmosphere:poiDeep["atmosphere"],ordering_wap_url:poiDeep["ordering_wap_url"],ordering_web_url:poiDeep["ordering_web_url"],ordering_app_url:poiDeep["ordering_app_url"],opentime_GDF:poiDeep["opentime_GDF"],opentime:poiDeep["opentime"],addition:poiDeep["addition"],photos:poiDeep["photos"]};poiDeepInfo["dining"]=dining;poiDeepInfo["deep_type"]="DINING";break;case"scenic":var scenic={intro:poiDeep["intro"],rating:poiDeep["rating"],deep_src:"",level:poiDeep["level"],price:poiDeep["price"],season:poiDeep["season"],recommend:poiDeep["recommend"],theme:poiDeep["theme"],ordering_wap_url:poiDeep["ordering_wap_url"],ordering_web_url:poiDeep["ordering_web_url"],opentime_GDF:poiDeep["opentime_GDF"],opentime:poiDeep["opentime"],photos:poiDeep["photos"]};poiDeepInfo["scenic"]=scenic;poiDeepInfo["deep_type"]="SCENIC";break;case"hotel":var hotel={rating:poiDeep["rating"],star:poiDeep["star"],intro:poiDeep["intro"],lowest_price:poiDeep["lowest_price"],faci_rating:poiDeep["faci_rating"],health_rating:poiDeep["health_rating"],environment_rating:poiDeep["environment_rating"],service_rating:poiDeep["service_rating"],traffic:poiDeep["traffic"],addition:poiDeep["addition"],deep_src:"",photos:poiDeep["photos"]};poiDeepInfo["hotel"]=hotel;poiDeepInfo["deep_type"]="HOTEL";break}}var rePoi={};for(var baseK in poiBaseInfo){if(poiBaseInfo.hasOwnProperty(baseK)){rePoi[baseK]=poiBaseInfo[baseK]}}if(this.opt["extensions"]&&this.opt["extensions"]!=="base"){for(var deepK in poiDeepInfo){if(poiDeepInfo.hasOwnProperty(deepK)){if(poiDeepInfo[deepK]){rePoi[deepK]=poiDeepInfo[deepK]}}}for(var detailK in poiDetailInfo){if(poiDetailInfo.hasOwnProperty(detailK)){rePoi[detailK]=poiDetailInfo[detailK]}}if(poi.biz_ext){for(var key in poi.biz_ext){if(poi.biz_ext.hasOwnProperty(key)&&poi.biz_ext[key].length&&rePoi[key]===undefined){rePoi[key]=poi.biz_ext[key]}}}}return rePoi}},{key:"_parseString",value:function _parseString(v){var n=v instanceof Array&&v.length===0||typeof v==="undefined"?"":v;return n}},{key:"_formatFields",value:function _formatFields(obj){for(var j in obj){if(obj.hasOwnProperty(j)){obj[j]=this._parseString(obj[j]);if(_typeof(obj[j])==="object"){this._formatFields(obj[j])}}}}},{key:"_onError",value:function _onError(e,cbk){AMap.Event.trigger(this,"error",e);if(cbk&&typeof cbk==="function"){cbk("error",e["info"])}}}]);return PlaceSearch}(AMap.Event);var DrivingPolicy=AMap.DrivingPolicy?AMap.DrivingPolicy:{LEAST_TIME:0,LEAST_FEE:1,LEAST_DISTANCE:2,REAL_TRAFFIC:4,MULTI_POLICIES:5,HIGHWAY:6,FEE_HIGHWAY:7,FEE_TRAFFIC:8,TRAFFIC_HIGHWAY:9};var Driving=function(_AMap$Event){_inherits(Driving,_AMap$Event);var _super=_createSuper(Driving);function Driving(opt){var _this2;_classCallCheck(this,Driving);_this2=_super.call(this);_this2.closed=false;_this2["CLASS_NAME"]="AMap.Driving";_this2.stampId=AMap.Util.stamp(_assertThisInitialized(_this2));_this2.opt=AMap.extend({showTraffic:true,showDir:true,policy:0,outlineColor:"#ffe",isOutline:true,autoFitView:true},opt);_this2.url=_this2.opt.serviceUrl?_this2.opt.serviceUrl:AMap.getConfig().server+"/v3/direction/driving";_this2._dodgeAreas=[];if(_this2.opt["map"]||_this2.opt["panel"]);return _this2}_createClass(Driving,[{key:"_guid",value:function _guid(){return Math.round(1e5*Math.random())}},{key:"search",value:function search(){var args=arguments;if(args.length>0){args[0]=AMap.Util.parseLngLatData(args[0]);args[1]=AMap.Util.parseLngLatData(args[1]);if(args[0].lng&&args[0].lat){this.search_.apply(this,args)}else if(args[0]instanceof Array){var this_=this;var cbk=args[1];if(!this_.getLL){this_.getLL=new GetLL}this_.getLL.getCity(function(data){var city=data["citycode"]||"";this_.getLL.get(args[0],city,function(status,result){if(status==="error"){if(cbk&&typeof cbk==="function"){cbk("error",result)}}else if(status==="complete"){var start=result[0]["exit_location"]||result[0].location;var end=result[result.length-1]["entr_location"]||result[result.length-1].location;var wps=result.slice(1,result.length-1),ps=[];for(var i=0;i<wps.length;i+=1){ps.push(wps[i]["entr_location"]||wps[i].location)}this_.search_(start,end,{waypoints:ps},args[1]||undefined,result)}else if(status==="no_poi"){args[1]&&args[1]("error",{info:"在城市"+result["city"]+"无法找到"+result["keyword"]})}else if(status==="no_city"){args[1]&&args[1]("error",{info:"请设置"+result["keyword"]+"的城市信息"})}})})}}}},{key:"clear",value:function clear(){if(this.render){this.render["clear"]()}}},{key:"setAvoidPolygons",value:function setAvoidPolygons(areas){areas=AMap.Util.parseLngLatData(areas);this._dodgeAreas=areas}},{key:"clearAvoidPolygons",value:function clearAvoidPolygons(){this._dodgeAreas=[]}},{key:"getAvoidPolygons",value:function getAvoidPolygons(){return this._dodgeAreas}},{key:"setAvoidRoad",value:function setAvoidRoad(value){this._dodgeRoad=value}},{key:"clearAvoidRoad",value:function clearAvoidRoad(){this._dodgeRoad=""}},{key:"getAvoidRoad",value:function getAvoidRoad(){return this._dodgeRoad}},{key:"searchOnAMAP",value:function searchOnAMAP(p){var pp={};pp["t"]=0;pp["m"]=typeof p["m"]!=="undefined"?p["m"]:this.opt["policy"];var o=AMap.Util.parseLngLatData(p["origin"]);var d=AMap.Util.parseLngLatData(p["destination"]);pp["sy"]=o.lat;pp["sx"]=o.lng;pp["sname"]=p["originName"]||"";pp["dy"]=d.lat;pp["dx"]=d.lng;pp["dname"]=p["destinationName"]||""}},{key:"setProvinceAndNumber",value:function setProvinceAndNumber(province,number){if(province&&number){this.opt["province"]=province;this.opt["number"]=number}}},{key:"search_",value:function search_(origin,destination,opts,cbk,poiresult){var _this3=this;if(arguments.length===2){opts={}}if(arguments.length===3){if(typeof opts==="function"){cbk=opts;opts={}}}if(!(origin instanceof AMap.LngLat)||!(destination instanceof AMap.LngLat)){if(cbk&&typeof cbk==="function"){cbk("error","NO_PARAMS")}return}var params={origin:origin.toString(),destination:destination.toString(),extensions:this._parseString(this.opt["extensions"]),s:"rsv3"};if(this.opt["province"]&&this.opt["number"]){params["province"]=this.opt["province"];params["number"]=this.opt["number"].toUpperCase()}params["strategy"]=this._parseString(this.opt["policy"]);params["ferry"]=this._parseInt(this.opt["ferry"]+0);if(opts["waypoints"]&&opts["waypoints"].slice){opts["waypoints"]=opts["waypoints"].slice(0,16);params["waypoints"]=opts["waypoints"].join(";")}if(this._dodgeAreas.length){var avoid=[];for(var i=0;i<this._dodgeAreas.length;i+=1){avoid.push(this._dodgeAreas[i].join(";"))}params["avoidpolygons"]=avoid.join("|")}if(this._dodgeRoad){params["avoidroad"]=this._dodgeRoad}AMap.WebService.get(this.url,params,function(status,data){if(status==="complete"){_this3._onComplete(data,cbk,poiresult,{waypoints:AMap.Util.parseLngLatData(opts["waypoints"])})}else{_this3._onError(data,cbk)}})}},{key:"setPolicy",value:function setPolicy(policy){this.opt["policy"]=policy}},{key:"setLocation",value:function setLocation(city){this.opt["city"]=city}},{key:"_onError",value:function _onError(e,cbk){this.emit("error",e);if(cbk&&typeof cbk==="function"){cbk("error",e["info"])}}},{key:"_str2LngLat",value:function _str2LngLat(str){var arr=str.split(",");return new AMap.LngLat(+arr[0],+arr[1])}},{key:"_multi2Lnglat",value:function _multi2Lnglat(str){var result=[];var arr=str.split(";");for(var i=0;i<arr.length;i+=1){result[i]=this._str2LngLat(arr[i])}return result}},{key:"_parseString",value:function _parseString(v){var n=_typeof(v)==="object"||typeof v==="undefined"?"":v;return n}},{key:"_parseInt",value:function _parseInt(v){var n=parseInt(v,10);return isNaN(n)?0:n}},{key:"_parseRoutes",value:function _parseRoutes(data){var r=[];data=data["path"]?[data["path"]]:data;for(var i=0;i<data.length;i+=1){var t=data[i];r[i]={steps:this._parseStep(t["steps"]),restriction:this._parseInt(t["restriction"]),distance:this._parseInt(t["distance"]),time:this._parseInt(t["duration"]),policy:t["strategy"],tolls:this._parseInt(t["tolls"]),tolls_distance:this._parseInt(t["toll_distance"])}}return r}},{key:"_parseStep",value:function _parseStep(data){var _this4=this;var r=[];var that=this;for(var i=0;i<data.length;i+=1){var driveStep=data[i];var path=this._multi2Lnglat(driveStep["polyline"]);r[i]={start_location:path[0],end_location:path[path.length-1],instruction:this._parseString(driveStep["instruction"]),orientation:this._parseString(driveStep["orientation"]),road:this._parseString(driveStep["road"]),distance:this._parseInt(driveStep["distance"]),tolls:this._parseInt(driveStep["tolls"]),toll_distance:this._parseInt(driveStep["toll_distance"]),toll_road:this._parseString(driveStep["toll_road"]),time:this._parseInt(driveStep["duration"]),path:path,action:this._parseString(driveStep["action"]),assistant_action:this._parseString(driveStep["assistant_action"])};if(this._isArray(driveStep["cities"])){r[i]["cities"]=this._parseArray(driveStep["cities"],function(data,pro){var result;switch(pro){case"districts":result=that._parseArray(data);break;default:result=data}return result})}if(this._isArray(driveStep["tmcs"])){r[i]["tmcs"]=this._parseArray(driveStep["tmcs"],function(data,pro,arrItem){var result;switch(pro){case"distance":result=+data;break;case"polyline":arrItem["path"]=_this4._multi2Lnglat(data);result=data;break;default:result=data}return result});r[i]["tmcsPaths"]=this._mergeTmcs(r[i]["tmcs"])}}return r}},{key:"_mergeTmcs",value:function _mergeTmcs(tmcs){var paths=[],lastTail=null,i,len;var tmcsPathDistance=0;for(i=0,len=tmcs.length;i<len;i++){var path=tmcs[i]["path"];var status=tmcs[i]["status"];var tmcsStepDistance=tmcs[i]["distance"];if(!path||!path.length){return}var lastTailEndPos=lastTail&&lastTail.path[lastTail["path"].length-1];if(lastTail&&status===lastTail["status"]&&path[0].equals(lastTailEndPos)){lastTail["path"].push.apply(lastTail["path"],path);tmcsPathDistance+=tmcsStepDistance;lastTail.distance=tmcsPathDistance}else{paths.push({path:[].concat(path),status:status,distance:0});tmcsPathDistance=tmcsStepDistance;lastTail=paths[paths.length-1];lastTail.distance=tmcsPathDistance}}return paths}},{key:"_parseArray",value:function _parseArray(data,filter){var results=[];for(var i=0;i<data.length;i+=1){var result={};for(var pro in data[i]){if(data[i].hasOwnProperty(pro)){if(typeof filter==="function"&&(!data[i][pro]||data[i][pro].length>0)){result[pro]=filter.call(this,data[i][pro],pro,result)}else{result[pro]=data[i][pro]}}}results.push(result)}return results.length?results:null}},{key:"_isArray",value:function _isArray(array){if(Object.prototype.toString.call(array)==="[object Array]"){return true}return false}},{key:"close",value:function close(){this.closed=true}},{key:"open",value:function open(){this.closed=false}},{key:"_onComplete",value:function _onComplete(data,cbk,poiresult,extraOpts){if(this.closed){return}var result;var that=this;if(!parseInt(data["status"],10)){result={info:data["info"]};this.emit("error",result);if(cbk&&typeof cbk==="function"){cbk("error",data["info"])}}else{if(data["route"]){result={info:data["info"],origin:this._str2LngLat(data["route"]["origin"]),destination:this._str2LngLat(data["route"]["destination"]),routes:this._parseRoutes(data["route"]["paths"])};if(this.opt["extensions"]==="all"){result["taxi_cost"]=Math.ceil(data["route"]["taxi_cost"])}if(poiresult){result["start"]=poiresult[0];result["end"]=poiresult[poiresult.length-1];result["originName"]=result["start"].name;result["destinationName"]=result["end"].name;result["waypoints"]=poiresult.slice(1,poiresult.length-1);for(var i=0,len=result["waypoints"].length;i<len;i++){result["waypoints"][i]["isWaypoint"]=true}}else if(extraOpts){result["start"]={location:result["origin"],name:"起点"};result["end"]={location:result["destination"],name:"终点"};result["start"].type="start";result["end"].type="end";result["waypoints"]=[];if(extraOpts&&extraOpts["waypoints"]){var waypoints=extraOpts["waypoints"];for(var _i=0,_len=waypoints.length;_i<_len;_i++){result["waypoints"].push({isWaypoint:true,location:waypoints[_i],name:"途经点",type:"waypoint"})}}}if(that.opt["map"]||that.opt["panel"]){if(!that.render){that.render=new DrivingRender({showTraffic:that.opt["showTraffic"],showDir:that.opt["showDir"],zIndex:that.opt["zIndex"],eventSelf:that})}that.render["autoRender"]({data:result,panel:that.opt["panel"],map:that.opt["map"],hideMarkers:that.opt["hideMarkers"]||false,isOutline:that.opt["isOutline"],outlineColor:that.opt["outlineColor"],autoFitView:that.opt["autoFitView"]},that)}this.emit("complete",result);if(cbk&&typeof cbk==="function"){cbk("complete",result)}}else{result={info:data["info"].toLowerCase()==="ok"?"NO_DATA":data["info"]};this.emit("complete",result);if(cbk&&typeof cbk==="function"){cbk("no_data",{})}}}}}]);return Driving}(AMap.Event);AMap.Driving=Driving;AMap.DrivingPolicy=DrivingPolicy}(window.AMap); ') |