UNPKG

gy-cesium

Version:

gy

661 lines 1.86 MB
var __defProp = Object.defineProperty; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __publicField = (obj, key, value) => { __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); return value; }; var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb, _yb, _zb, _Ab, _Bb, _Cb, _Db, _Eb, _Fb, _Gb, _Hb, _Ib, _Jb, _Kb, _Lb, _Mb, _Nb; import { reactive, markRaw, defineComponent, onMounted, onBeforeUnmount, ref, watch, getCurrentInstance, computed } from "vue-demi"; import * as _0x24cfd9 from "cesium"; import { lineString, lineChunk, polygon, centerOfMass, transformScale } from "@turf/turf"; import _0x723fa2 from "gsap"; import _0x357bc8 from "@cesium/engine/Source/Scene/ShadowMap.js"; import _0x5aaff1 from "@cesium/engine/Source/Renderer/Texture.js"; const widgets = ""; (function(_0x23304c, _0x580b34) { const _0x59adff = _0x75a6, _0x317e4b = _0x23304c(); while (!![]) { try { const _0x20c969 = -parseInt(_0x59adff(509)) / 1 + parseInt(_0x59adff(499)) / 2 * (parseInt(_0x59adff(498)) / 3) + parseInt(_0x59adff(494)) / 4 * (-parseInt(_0x59adff(502)) / 5) + parseInt(_0x59adff(507)) / 6 * (parseInt(_0x59adff(497)) / 7) + parseInt(_0x59adff(496)) / 8 * (-parseInt(_0x59adff(495)) / 9) + -parseInt(_0x59adff(501)) / 10 + -parseInt(_0x59adff(493)) / 11 * (-parseInt(_0x59adff(503)) / 12); if (_0x20c969 === _0x580b34) break; else _0x317e4b["push"](_0x317e4b["shift"]()); } catch (_0x42c2c3) { _0x317e4b["push"](_0x317e4b["shift"]()); } } })(_0x2a80, 992556); const x_PI = 3.141592653589793 * 3e3 / 180, PI = 3.141592653589793, a = 6378245, ee = 0.006693421622965943; function bd09togcj02(_0x322bc0, _0x2f3e84) { const _0x55c529 = _0x75a6; let _0x454ac5 = 3.141592653589793 * 3e3 / 180, _0x3a87da = _0x322bc0 - 65e-4, _0x579744 = _0x2f3e84 - 6e-3, _0x1c3253 = Math[_0x55c529(500)](_0x3a87da * _0x3a87da + _0x579744 * _0x579744) - 2e-5 * Math[_0x55c529(508)](_0x579744 * _0x454ac5), _0x340d32 = Math["atan2"](_0x579744, _0x3a87da) - 3e-6 * Math["cos"](_0x3a87da * _0x454ac5), _0x24924a = _0x1c3253 * Math[_0x55c529(505)](_0x340d32), _0x2a407a = _0x1c3253 * Math[_0x55c529(508)](_0x340d32); return [_0x24924a, _0x2a407a]; } function gcj02tobd09(_0x1afa56, _0x2c5515) { const _0x516ec2 = _0x75a6; let _0x5065f6 = Math[_0x516ec2(500)](_0x1afa56 * _0x1afa56 + _0x2c5515 * _0x2c5515) + 2e-5 * Math[_0x516ec2(508)](_0x2c5515 * x_PI), _0x5f1e4e = Math[_0x516ec2(504)](_0x2c5515, _0x1afa56) + 3e-6 * Math[_0x516ec2(505)](_0x1afa56 * x_PI), _0x2ba8ce = _0x5065f6 * Math[_0x516ec2(505)](_0x5f1e4e) + 65e-4, _0x4dbd34 = _0x5065f6 * Math["sin"](_0x5f1e4e) + 6e-3; return [_0x2ba8ce, _0x4dbd34]; } function wgs84togcj02(_0xc0d171, _0x5dea75) { const _0x556ca3 = _0x75a6; if (outOfChina(_0xc0d171, _0x5dea75)) return [_0xc0d171, _0x5dea75]; else { let _0x40f0e4 = transformlat(_0xc0d171 - 105, _0x5dea75 - 35), _0x5346ff = transformlng(_0xc0d171 - 105, _0x5dea75 - 35), _0x4b4b17 = _0x5dea75 / 180 * PI, _0xaadf66 = Math["sin"](_0x4b4b17); _0xaadf66 = 1 - ee * _0xaadf66 * _0xaadf66; let _0xaa90f7 = Math[_0x556ca3(500)](_0xaadf66); _0x40f0e4 = _0x40f0e4 * 180 / (a * (1 - ee) / (_0xaadf66 * _0xaa90f7) * PI), _0x5346ff = _0x5346ff * 180 / (a / _0xaa90f7 * Math[_0x556ca3(505)](_0x4b4b17) * PI); const _0x564a7c = _0x5dea75 + _0x40f0e4, _0x5df50e = _0xc0d171 + _0x5346ff; return [_0x5df50e, _0x564a7c]; } } function gcj02towgs84(_0x5c9742, _0x4cd562) { const _0x26e851 = _0x75a6; if (outOfChina(_0x5c9742, _0x4cd562)) return [_0x5c9742, _0x4cd562]; else { let _0x4931ff = transformlat(_0x5c9742 - 105, _0x4cd562 - 35), _0xf8d246 = transformlng(_0x5c9742 - 105, _0x4cd562 - 35), _0x3f35ac = _0x4cd562 / 180 * PI, _0x3da22a = Math[_0x26e851(508)](_0x3f35ac); _0x3da22a = 1 - ee * _0x3da22a * _0x3da22a; let _0x5b8788 = Math[_0x26e851(500)](_0x3da22a); _0x4931ff = _0x4931ff * 180 / (a * (1 - ee) / (_0x3da22a * _0x5b8788) * PI), _0xf8d246 = _0xf8d246 * 180 / (a / _0x5b8788 * Math[_0x26e851(505)](_0x3f35ac) * PI); const _0x346002 = _0x4cd562 + _0x4931ff, _0x2b4914 = _0x5c9742 + _0xf8d246; return [_0x5c9742 * 2 - _0x2b4914, _0x4cd562 * 2 - _0x346002]; } } function bd09towgs84(_0x92fe27, _0x16a473) { const _0x16ebe9 = bd09togcj02(_0x92fe27, _0x16a473), _0x4f8a5f = gcj02towgs84(_0x16ebe9[0], _0x16ebe9[1]); return _0x4f8a5f; } function wgs84tobd09(_0x2db355, _0x26da19) { const _0x2cb46e = wgs84togcj02(_0x2db355, _0x26da19), _0x2243fe = gcj02tobd09(_0x2cb46e[0], _0x2cb46e[1]); return _0x2243fe; } function transformlat(_0xdbeb8b, _0x399608) { const _0x2eb690 = _0x75a6; let _0x1be0fe = -100 + 2 * _0xdbeb8b + 3 * _0x399608 + 0.2 * _0x399608 * _0x399608 + 0.1 * _0xdbeb8b * _0x399608 + 0.2 * Math[_0x2eb690(500)](Math[_0x2eb690(506)](_0xdbeb8b)); return _0x1be0fe += (20 * Math[_0x2eb690(508)](6 * _0xdbeb8b * PI) + 20 * Math[_0x2eb690(508)](2 * _0xdbeb8b * PI)) * 2 / 3, _0x1be0fe += (20 * Math[_0x2eb690(508)](_0x399608 * PI) + 40 * Math[_0x2eb690(508)](_0x399608 / 3 * PI)) * 2 / 3, _0x1be0fe += (160 * Math[_0x2eb690(508)](_0x399608 / 12 * PI) + 320 * Math[_0x2eb690(508)](_0x399608 * PI / 30)) * 2 / 3, _0x1be0fe; } function transformlng(_0x26a36f, _0x2a67e0) { const _0x524f6d = _0x75a6; let _0x54ab27 = 300 + _0x26a36f + 2 * _0x2a67e0 + 0.1 * _0x26a36f * _0x26a36f + 0.1 * _0x26a36f * _0x2a67e0 + 0.1 * Math["sqrt"](Math[_0x524f6d(506)](_0x26a36f)); return _0x54ab27 += (20 * Math[_0x524f6d(508)](6 * _0x26a36f * PI) + 20 * Math[_0x524f6d(508)](2 * _0x26a36f * PI)) * 2 / 3, _0x54ab27 += (20 * Math["sin"](_0x26a36f * PI) + 40 * Math["sin"](_0x26a36f / 3 * PI)) * 2 / 3, _0x54ab27 += (150 * Math[_0x524f6d(508)](_0x26a36f / 12 * PI) + 300 * Math[_0x524f6d(508)](_0x26a36f / 30 * PI)) * 2 / 3, _0x54ab27; } function _0x2a80() { const _0x3a890a = ["58740YQVhIS", "atan2", "cos", "abs", "3960840UQlIxR", "sin", "407727FgNHTl", "4345ZfybnS", "4uXPBfM", "9vmQUyR", "5760808tWgOuj", "21ROjAAp", "3891957XcuMNx", "2lLGNTN", "sqrt", "18365020XPYMbp", "6271890ndfFjQ"]; _0x2a80 = function() { return _0x3a890a; }; return _0x2a80(); } function _0x75a6(_0x2364c8, _0x966c1a) { const _0x2a80ca = _0x2a80(); return _0x75a6 = function(_0x75a6f, _0x39ee10) { _0x75a6f = _0x75a6f - 493; let _0x28a573 = _0x2a80ca[_0x75a6f]; return _0x28a573; }, _0x75a6(_0x2364c8, _0x966c1a); } function outOfChina(_0xc469c8, _0x4777ae) { return _0xc469c8 < 72.004 || _0xc469c8 > 137.8347 || (_0x4777ae < 0.8293 || _0x4777ae > 55.8271 || ![]); } (function(_0x33bbe6, _0x136976) { const _0x2ae415 = _0x5308, _0x56f68b = _0x33bbe6(); while (!![]) { try { const _0x3bc5a3 = parseInt(_0x2ae415(189)) / 1 + -parseInt(_0x2ae415(171)) / 2 + parseInt(_0x2ae415(169)) / 3 * (parseInt(_0x2ae415(156)) / 4) + -parseInt(_0x2ae415(179)) / 5 * (parseInt(_0x2ae415(202)) / 6) + parseInt(_0x2ae415(187)) / 7 + -parseInt(_0x2ae415(193)) / 8 + -parseInt(_0x2ae415(153)) / 9 * (-parseInt(_0x2ae415(159)) / 10); if (_0x3bc5a3 === _0x136976) break; else _0x56f68b["push"](_0x56f68b["shift"]()); } catch (_0x27cd39) { _0x56f68b["push"](_0x56f68b["shift"]()); } } })(_0x18a3, 271007); let modelIdArr = []; const toRadians = (_0x20bfbf) => { const _0x43515d = _0x5308; return _0x24cfd9[_0x43515d(173)][_0x43515d(204)](_0x20bfbf); }; const lonlatToPosition = (_0x1b18ca, _0x4a7daf, _0x5cd082 = 0) => { const _0x4605c7 = _0x5308; return _0x24cfd9[_0x4605c7(192)][_0x4605c7(176)](_0x1b18ca, _0x4a7daf, _0x5cd082); }; const getColorByCssColor = (_0x230951) => { const _0x3d1f8b = _0x5308; return _0x24cfd9[_0x3d1f8b(185)][_0x3d1f8b(162)](_0x230951); }; const getModelId = () => { const _0x29fbee = _0x5308; let _0x37e958 = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "g", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"], [_0x174cf9, _0x63304c] = [Math["floor"](Math[_0x29fbee(163)]() * (10 - 7 + 1) + 1), Math["floor"](Math[_0x29fbee(163)]() * (17 - 10 + 1) + 17)]; _0x37e958 = _0x37e958[_0x29fbee(168)](() => 0.4 - Math[_0x29fbee(163)]())[_0x29fbee(160)](_0x174cf9, _0x63304c)[_0x29fbee(160)](0, 8)[_0x29fbee(180)](""); let _0x311468 = new Date()[_0x29fbee(178)]() + _0x37e958, _0x11653e = "modelId" + _0x311468; return modelIdArr[_0x29fbee(181)](_0x11653e) ? _0x11653e = getModelId() : modelIdArr[_0x29fbee(196)](_0x11653e), _0x11653e; }; const formatLintPosition = (_0x245e52, _0x5ce022 = 0.01) => { const _0x54e31d = _0x5308; if (_0x5ce022 === 0) return _0x245e52; let _0x5b99fb = lineString(_0x245e52), _0x30a8d4 = lineChunk(_0x5b99fb, _0x5ce022, { "units": _0x54e31d(188) }), _0x5b7426 = _0x30a8d4["features"], _0x1daab6 = []; return _0x5b7426[_0x54e31d(198)]((_0x38abad) => { const _0x4c61c5 = _0x54e31d; let _0x1c8e8a = _0x38abad["geometry"], _0x4dbbbe = _0x1c8e8a[_0x4c61c5(170)]; _0x1daab6[_0x4c61c5(196)](..._0x4dbbbe); }), _0x1daab6; }; const flortSub = (_0x5304ef, _0x5e705d) => { const _0x247139 = _0x5308; let _0x5de581, _0x2682ad, _0x135920; try { _0x5de581 = (_0x5304ef["toString"]()[_0x247139(203)](".")[1] || "")[_0x247139(164)]; } catch (_0x4c6de4) { _0x5de581 = 0; } try { _0x2682ad = (_0x5e705d["toString"]()[_0x247139(203)](".")[1] || "")[_0x247139(164)]; } catch (_0x5c7e28) { _0x2682ad = 0; } _0x135920 = Math[_0x247139(177)](10, Math["max"](_0x5de581, _0x2682ad)); let _0x3f9f71 = _0x5de581 >= _0x2682ad ? _0x5de581 : _0x2682ad; return Number((Math[_0x247139(161)](_0x5304ef * _0x135920 - _0x5e705d * _0x135920) / _0x135920)[_0x247139(165)](_0x3f9f71)); }; const flortAdd = (_0x50f2e3, _0x3ad0ab) => { const _0xcb0d4b = _0x5308; var _0x506ba2, _0x1429ea, _0x429748; try { _0x506ba2 = (_0x50f2e3["toString"]()[_0xcb0d4b(203)](".")[1] || "")["length"]; } catch (_0x1a4c86) { _0x506ba2 = 0; } try { _0x1429ea = (_0x3ad0ab["toString"]()[_0xcb0d4b(203)](".")[1] || "")[_0xcb0d4b(164)]; } catch (_0x18d90a) { _0x1429ea = 0; } return _0x429748 = Math[_0xcb0d4b(177)](10, Math[_0xcb0d4b(195)](_0x506ba2, _0x1429ea)), Math["round"](_0x50f2e3 * _0x429748 + _0x3ad0ab * _0x429748) / _0x429748; }; const flortMul = (_0x47c4e1, _0xabc48a) => { const _0xd12ed = _0x5308; var _0x4e8fcc = 0, _0x30b1e5 = _0x47c4e1[_0xd12ed(183)](), _0x1856ce = _0xabc48a[_0xd12ed(183)](); try { _0x4e8fcc += (_0x30b1e5["split"](".")[1] || "")[_0xd12ed(164)]; } catch (_0x4f5986) { console["error"](_0x4f5986); } try { _0x4e8fcc += (_0x1856ce["split"](".")[1] || "")[_0xd12ed(164)]; } catch (_0x2bd5f3) { console[_0xd12ed(158)](_0x2bd5f3); } return Number(_0x30b1e5["replace"](".", "")) * Number(_0x1856ce["replace"](".", "")) / Math[_0xd12ed(177)](10, _0x4e8fcc); }; const flortDiv = (_0x104650, _0x20f365) => { const _0x38d74f = _0x5308; if (_0x104650 == 0 || _0x20f365 == 0) return 0; var _0x3dc420 = 0, _0x9b2e33 = 0, _0x4f6845, _0x391a25; try { _0x3dc420 = (_0x104650[_0x38d74f(183)]()[_0x38d74f(203)](".")[1] || "")[_0x38d74f(164)]; } catch (_0x84a467) { console[_0x38d74f(158)](_0x84a467); } try { _0x9b2e33 = (_0x20f365[_0x38d74f(183)]()[_0x38d74f(203)](".")[1] || "")[_0x38d74f(164)]; } catch (_0x17fab9) { console[_0x38d74f(158)](_0x17fab9); } return _0x4f6845 = Number(_0x104650[_0x38d74f(183)]()[_0x38d74f(172)](".", "")), _0x391a25 = Number(_0x20f365[_0x38d74f(183)]()[_0x38d74f(172)](".", "")), Number(_0x4f6845 / _0x391a25 * Math[_0x38d74f(177)](10, _0x9b2e33 - _0x3dc420)); }; const isClockwise = (_0x3dfee1) => { const _0x14c984 = _0x5308; if (!Array[_0x14c984(154)](_0x3dfee1) || _0x3dfee1[_0x14c984(164)] < 3) return console[_0x14c984(158)]("\u591A\u8FB9\u5F62\u5750\u6807\u96C6\u5408\u4E0D\u80FD\u5C11\u4E8E3\u4E2A"), ![]; let _0x45d4e8 = JSON[_0x14c984(166)](JSON[_0x14c984(190)](_0x3dfee1)); _0x45d4e8[0] === _0x45d4e8[_0x45d4e8[_0x14c984(164)] - 1] && (_0x45d4e8 = _0x45d4e8[_0x14c984(160)](0, _0x45d4e8[_0x14c984(164)] - 1)); _0x45d4e8 = _0x45d4e8[_0x14c984(174)](); let _0xb9d727 = 0, _0x222b15 = parseFloat(_0x45d4e8[_0xb9d727]["x"]), _0x11aeff, _0x42f773, _0x612853; for (let _0x23d39b = 0; _0x23d39b < _0x45d4e8[_0x14c984(164)]; _0x23d39b++) { parseFloat(_0x45d4e8[_0x23d39b]["x"]) > _0x222b15 && (_0x222b15 = parseFloat(_0x45d4e8[_0x23d39b]["x"]), _0xb9d727 = _0x23d39b); } if (_0xb9d727 === 0) _0x11aeff = _0x45d4e8[_0x45d4e8["length"] - 1], _0x42f773 = _0x45d4e8[_0xb9d727], _0x612853 = _0x45d4e8[_0xb9d727 + 1]; else _0xb9d727 === _0x45d4e8[_0x14c984(164)] - 1 ? (_0x11aeff = _0x45d4e8[_0xb9d727 - 1], _0x42f773 = _0x45d4e8[_0xb9d727], _0x612853 = _0x45d4e8[0]) : (_0x11aeff = _0x45d4e8[_0xb9d727 - 1], _0x42f773 = _0x45d4e8[_0xb9d727], _0x612853 = _0x45d4e8[_0xb9d727 + 1]); const _0x37928d = parseFloat(_0x11aeff["x"]), _0x2b9c85 = parseFloat(_0x11aeff["y"]), _0x4ef78 = parseFloat(_0x42f773["x"]), _0x333093 = parseFloat(_0x42f773["y"]), _0xdb66db = parseFloat(_0x612853["x"]), _0x2ba562 = parseFloat(_0x612853["y"]), _0x4285cb = flortSub(flortDiv(flortSub(_0x37928d, _0xdb66db), flortSub(_0x333093, _0x2ba562)), flortDiv(flortSub(_0x4ef78, _0xdb66db), flortSub(_0x2b9c85, _0x2ba562))); return _0x4285cb < 0; }; function _0x5308(_0x3eb7f7, _0x4be6ac) { const _0x18a341 = _0x18a3(); return _0x5308 = function(_0x5308bc, _0x457d60) { _0x5308bc = _0x5308bc - 151; let _0x477da7 = _0x18a341[_0x5308bc]; return _0x477da7; }, _0x5308(_0x3eb7f7, _0x4be6ac); } const scalePolygon = (_0x1fef67, _0x5d59b3) => { const _0x5efaa4 = _0x5308; if (!Array["isArray"](_0x1fef67) || _0x1fef67["length"] < 3) return console[_0x5efaa4(158)](_0x5efaa4(152)), []; let _0x7b7851 = _0x1fef67; const _0x228447 = isClockwise(_0x7b7851) ? -_0x5d59b3 : _0x5d59b3, _0x540208 = (_0x542b92, _0x33e1e3) => Math[_0x5efaa4(157)](flortAdd(flortMul(_0x542b92, _0x542b92), flortMul(_0x33e1e3, _0x33e1e3))), _0x3251a0 = _0x7b7851["length"], _0x101130 = []; for (let _0x9e7f9b = 0; _0x9e7f9b < _0x3251a0; _0x9e7f9b++) { const _0x10f9b8 = _0x7b7851[_0x9e7f9b], _0xf90b8 = _0x7b7851[_0x9e7f9b === 0 ? _0x3251a0 - 1 : _0x9e7f9b - 1], _0x370c15 = _0x7b7851[_0x9e7f9b === _0x3251a0 - 1 ? 0 : _0x9e7f9b + 1], _0x34cd1c = flortSub(_0xf90b8["x"], _0x10f9b8["x"]), _0x31f004 = flortSub(_0xf90b8["y"], _0x10f9b8["y"]), _0x457e85 = _0x540208(_0x34cd1c, _0x31f004); let _0x2e8cbf = flortDiv(_0x34cd1c, _0x457e85), _0x347ecb = flortDiv(_0x31f004, _0x457e85); const _0x3dbd98 = flortSub(_0x370c15["x"], _0x10f9b8["x"]), _0x48be90 = flortSub(_0x370c15["y"], _0x10f9b8["y"]), _0x567d98 = _0x540208(_0x3dbd98, _0x48be90); let _0xc528e3 = flortDiv(_0x3dbd98, _0x567d98), _0x204dd6 = flortDiv(_0x48be90, _0x567d98); const _0xe6e1c8 = flortDiv(-_0x228447, Math[_0x5efaa4(157)](flortDiv(flortSub(1, flortAdd(flortMul(_0x2e8cbf, _0xc528e3), flortMul(_0x347ecb, _0x204dd6))), 2))); flortAdd(flortMul(_0x34cd1c, _0x48be90), -1 * flortMul(_0x31f004, _0x3dbd98)) < 0 && (_0xc528e3 *= -1, _0x204dd6 *= -1, _0x2e8cbf *= -1, _0x347ecb *= -1); const _0x1f6239 = flortAdd(_0x2e8cbf, _0xc528e3), _0x28fb34 = flortAdd(_0x347ecb, _0x204dd6), _0xc4d441 = flortDiv(_0xe6e1c8, _0x540208(_0x1f6239, _0x28fb34)), _0x5ac173 = flortMul(_0x1f6239, _0xc4d441), _0x4b9c65 = flortMul(_0x28fb34, _0xc4d441), _0x3ac4c9 = flortAdd(_0x5ac173, _0x10f9b8["x"]), _0x5dbbbe = flortAdd(_0x4b9c65, _0x10f9b8["y"]); _0x101130[_0x9e7f9b] = { "x": _0x3ac4c9, "y": _0x5dbbbe }; } return _0x101130; }; function _0x18a3() { const _0xa713d4 = ["Ellipsoid", "sort", "11103TYFQeu", "coordinates", "528844siKxJT", "replace", "Math", "reverse", "Matrix4", "fromDegrees", "pow", "getTime", "1040lVDpoz", "join", "includes", "west", "toString", "scale", "Color", "fromUniformScale", "437983pZfMPx", "miles", "261783ycFwhF", "stringify", "rotateZ", "Cartesian3", "2968144zUKJhb", "Transforms", "max", "push", "rotateX", "forEach", "WGS84", "localFrameToFixedFrameGenerator", "multiply", "1782mrgzGJ", "split", "toRadians", "HeadingPitchRoll", "\u591A\u8FB9\u5F62\u5750\u6807\u96C6\u5408\u4E0D\u80FD\u5C11\u4E8E3\u4E2A", "27MLxxVG", "isArray", "north", "268tJeuiU", "sqrt", "error", "1319680vKHDcv", "slice", "round", "fromCssColorString", "random", "length", "toFixed", "parse"]; _0x18a3 = function() { return _0xa713d4; }; return _0x18a3(); } const getModelMatrixByOptions = (_0x4e62c2, _0x1d7000) => { const _0x170f9c = _0x5308, _0x2990ff = _0x24cfd9[_0x170f9c(173)]["toRadians"](_0x1d7000[_0x170f9c(191)]), _0x33375c = _0x24cfd9["Math"][_0x170f9c(204)](_0x1d7000[_0x170f9c(197)]), _0x38a311 = _0x24cfd9[_0x170f9c(173)][_0x170f9c(204)](_0x1d7000["rotateY"]), _0x252b73 = new _0x24cfd9[_0x170f9c(151)](_0x2990ff, _0x33375c, _0x38a311), _0x505e0a = _0x24cfd9[_0x170f9c(194)][_0x170f9c(200)](_0x170f9c(155), _0x170f9c(182)); let _0x23ba48 = _0x24cfd9[_0x170f9c(194)]["headingPitchRollToFixedFrame"](_0x4e62c2, _0x252b73, _0x24cfd9[_0x170f9c(167)][_0x170f9c(199)], _0x505e0a), _0x29bf0c = _0x24cfd9[_0x170f9c(175)][_0x170f9c(186)](_0x1d7000[_0x170f9c(184)]); return _0x23ba48 = _0x24cfd9["Matrix4"][_0x170f9c(201)](_0x23ba48, _0x29bf0c, _0x23ba48), _0x23ba48; }; const CesiumUnit = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, toRadians, lonlatToPosition, getColorByCssColor, getModelId, formatLintPosition, flortSub, flortAdd, flortMul, flortDiv, isClockwise, scalePolygon, getModelMatrixByOptions }, Symbol.toStringTag, { value: "Module" })); function _0x4f9d() { const _0x23bbe5 = ["finalPercentage", "view", "clipValue = texCoordId.x;", "values", "fromPointNormal", "delColor", "offsetY", "fromArray", "forEach", "bottom-up", "elementArr", "concat", "elementArrToObj", "fromCartesian", "old", "Matrix4", ")')", "loadTilesetFromUrl", "featureIdToActualIdMap", " float end = start + ", "innerContents", "getControlOptions", "FLOAT", "every", "loadClip_box", "animationTime", "compareType", "delay", "contentList", "toString", "39iByaEr", "fromRotationZ", "8473498ILufsd", "Cartesian3", "lonlatToWGS84", "length", "getScenetreeElement", "compareScenetree", "sort", "addModelControlsList", "maximumCacheOverflowBytes", "Plane", "getScenetree", "41027UvmhnH", "splitDirection", "setUniform", "compareTilePath", "centerMatrix4", "void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material) {\n // \u83B7\u53D6featureId\n int featureId = int(fsInput.attributes.featureId_0);\n float progress = 0.0;\n float opacity = 0.0; // \u9ED8\u8BA4\u900F\u660E\u5EA6\u4E3A0\n // \u6839\u636E\u4E0D\u540C\u7684\u751F\u957F\u65B9\u5411\u8BA1\u7B97\u88C1\u526A\u5E73\u9762\n float clipValue = 0.0;\n \n // \u6784\u5EFA\u7A7A\u95F4\u4F4D\u7F6E\uFF08\u6A21\u578B\u5750\u6807\uFF09\n vec3 positionMC = fsInput.attributes.positionMC;\n vec2 texCoordId = fsInput.attributes.positionMC.xy;\n \n // \u6839\u636E\u6784\u4EF6ID\u8BA1\u7B97\u52A8\u753B\u53C2\u6570\n", "layerList", "setMemberAnimation", "delOpacity", ") {\n", "fromPlane", "CustomShaderTranslucencyMode", "lat", "set", "clipValue = 1.0 - texCoordId.x;", "rotateY", "\n // \u5E94\u7528\u88C1\u526A\u6548\u679C\uFF08\u4EC5\u5BF9\u751F\u957F\u52A8\u753B\u6709\u6548\uFF09\n if (clipValue > progress) {\n discard;\n }\n", "getScenetreeProm", "Color", "#ff0", "BoundingSphere", "fromRotationTranslation", "isSplitView", "loaded", "getFeature", "log", "push", "content", "10uhVuES", "size", "SplitDirection", "getSphereBounding", "boundingSphere", "scenes", "#0ff", "getProperty", "readyFinish", "\n \n \n material.alpha = opacity;\n}", "updateStyle", "loadedFun", "remove", "135668HldzbO", "IDENTITY", "getDirectChildIds", "transform", "isLayering", "addComparetileset", " } else {\n", "dbId", "subtract", "flyTo", "slice", "HIDEMODELCETNER", "number", "customShader", "LightingModel", "boundingSphereCenter", "opacity", "true", "max", "fragmentShaderText", "right-left", "normalize", "getElementCenterById", "tilesetLoaderObj", "longitude", "layerTileset", "addLayeringList", "inverseTransformation", "element", " * (u_time - start) / ", "Cartographic", "filter", " progress = 0.0;\n", "initTileset", "u_time", "name", "hideEarth", "type", "1760298BjtYpv", "scene", "_normal", "toFixed", "Resource", "primitives", "tileset", "1128HztBOZ", "compareColorObj", "load3DTile", "Matrix3", "isArray", "Cesium3DTileset", "stylesByIdObj", "toDegrees", "stop", "opt", "Transforms", "primitiveObj", "inverse", "featureId", "rotateX", "equals", "fromRotationY", "wGS84ToLonlat", "fade", " progress = ", "keys", "setOpacity", "left", "show", "fromRadians", "find", "startTime", "addTilesetModelObj", "1086273QXTkzw", "clone", "map", "tilesetModelObj", "color", "getControlValue", "eastNorthUpToFixedFrame", "ClippingPlane", "212412QXDFos", "getTilesetAllContent", "NONE", "clipValue = 1.0 - texCoordId.y;", "resourceOpt", "url", "center", "setStyleColor", "error", "setPointion", "cross", "loadFinish", "clipValue = texCoordId.y;", "root", "fromUniformScale", "noTransform", "left-right", "duration", "sphere", "modelMatrix", "start", "color('rgba(", "new", "showLayerByName", "_root", "Compare", "CustomShader", "setTileMatrix4", "TilesetLoader", "includes", "multiply", "RED", "getAnimationConditionCode", "behind", " if (u_time >= start && u_time <= end) {\n", "growthAnimationMap", "setMemberAnimationOpt", "boundingVolume", "finish", "animationType", "compareResult", " float start = ", "getChildAllContent", "lon", "fromDegrees", "animHeight", "fromRotationX", "style", " }\n", "toRadians", "chgOpacity", "Math", "rotateZ", "min", "scale", "get", "latitude", "getLayerList", "slider", "animationRuntime", "distance", "restart", "setStylesById", "cesiumObj", "projectTo2D", "all", " }\n", "Cesium3DTileStyle", "TYPE", "orginMatrixInverse", "children", " if (u_time < start) {discard;}\n", "getType4Plane", "fromUrl", "useDefaultPosition", "getTilesetModelMatrix", "multiplyByPoint", "tilesetModelMatrix", "readyFun", "addColor", " opacity = progress;\n", "from", "flyToBoundingSphere", "fromTranslation", "offsetX", "fromCssColorString", "lastIndexOf", "then", "camera", "height", "5cKkQrO", "top", "animationTimer", "PBR", "383992BXuLtv", "// \u751F\u957F\u52A8\u753B\u903B\u8F91\n opacity = 1.0;\n "]; _0x4f9d = function() { return _0x23bbe5; }; return _0x4f9d(); } const _0x5b25df = _0x3ac5; (function(_0x46430b, _0x440526) { const _0x4aca37 = _0x3ac5, _0x598411 = _0x46430b(); while (!![]) { try { const _0x5f1668 = parseInt(_0x4aca37(560)) / 1 + parseInt(_0x4aca37(466)) / 2 + parseInt(_0x4aca37(592)) / 3 * (parseInt(_0x4aca37(385)) / 4) + -parseInt(_0x4aca37(556)) / 5 * (parseInt(_0x4aca37(423)) / 6) + parseInt(_0x4aca37(344)) / 7 * (-parseInt(_0x4aca37(430)) / 8) + -parseInt(_0x4aca37(458)) / 9 + parseInt(_0x4aca37(372)) / 10 * (parseInt(_0x4aca37(333)) / 11); if (_0x5f1668 === _0x440526) break; else _0x598411["push"](_0x598411["shift"]()); } catch (_0x157de9) { _0x598411["push"](_0x598411["shift"]()); } } })(_0x4f9d, 460956); function _0x3ac5(_0x1ea5d4, _0x569ec4) { const _0x4f9df0 = _0x4f9d(); return _0x3ac5 = function(_0x3ac5c6, _0x52755e) { _0x3ac5c6 = _0x3ac5c6 - 333; let _0x4262c8 = _0x4f9df0[_0x3ac5c6]; return _0x4262c8; }, _0x3ac5(_0x1ea5d4, _0x569ec4); } class TilesetLoader { constructor(_0x177da5, _0xfb9869, _0x40971f) { __publicField(this, _a); __publicField(this, _b); __publicField(this, _c); __publicField(this, _d); __publicField(this, _e); __publicField(this, "loaded"); __publicField(this, _f); __publicField(this, _g); __publicField(this, _h); __publicField(this, "rotateX"); __publicField(this, _i); __publicField(this, _j); __publicField(this, "scale"); __publicField(this, _k); __publicField(this, _l); __publicField(this, "readyFun"); __publicField(this, _m); __publicField(this, _n); __publicField(this, "tilesetModelObj"); __publicField(this, _o); __publicField(this, "id"); __publicField(this, _p); __publicField(this, _q); __publicField(this, "url"); __publicField(this, _r); __publicField(this, _s); __publicField(this, _t); __publicField(this, _u); __publicField(this, _v, /* @__PURE__ */ new Map()); __publicField(this, _w, 0); __publicField(this, "animationTimer", null); __publicField(this, _x); __publicField(this, _y); __publicField(this, _z); __publicField(this, _A); __publicField(this, _B); __publicField(this, _C); __publicField(this, _D); __publicField(this, "compareType"); __publicField(this, _E); __publicField(this, _F); __publicField(this, _G); __publicField(this, _H); __publicField(this, _I); __publicField(this, "featureIdToActualIdMap", /* @__PURE__ */ new Map()); const _0x4c6fc4 = _0x5b25df; this[_0x4c6fc4(534)] = _0x4c6fc4(494), this[_0x4c6fc4(439)] = _0x40971f, this[_0x4c6fc4(418)] = null, this["tileset"] = null, this[_0x4c6fc4(410)] = {}, this[_0x4c6fc4(590)] = [], this[_0x4c6fc4(572)] = null, this[_0x4c6fc4(504)] = ![], this[_0x4c6fc4(367)] = ![], this[_0x4c6fc4(544)] = null, this[_0x4c6fc4(383)] = null, this["lon"] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(509)]) || null, this[_0x4c6fc4(356)] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(356)]) || null, this[_0x4c6fc4(555)] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(555)]) || 0, this["offsetX"] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(550)]) || 0, this["offsetY"] = (_0x40971f == null ? void 0 : _0x40971f["offsetY"]) || 0, this[_0x4c6fc4(444)] = (_0x40971f == null ? void 0 : _0x40971f["rotateX"]) || 0, this[_0x4c6fc4(359)] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(359)]) || 0, this[_0x4c6fc4(518)] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(518)]) || 0, this[_0x4c6fc4(401)] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(401)]) !== void 0 ? _0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(401)] : 1, this[_0x4c6fc4(520)] = (_0x40971f == null ? void 0 : _0x40971f["scale"]) !== void 0 ? _0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(520)] : 1, this[_0x4c6fc4(462)] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(462)]) || "", this["compareColorObj"] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(431)]) || {}, this[_0x4c6fc4(347)] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(347)]) || "", this["compareType"] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(588)]) || _0x4c6fc4(488), this["resourceOpt"] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(470)]) || 0, this[_0x4c6fc4(341)] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(341)]) || 536870912, this[_0x4c6fc4(530)] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(530)]) || ![], this["id"] = (_0x40971f == null ? void 0 : _0x40971f["id"]) || "", this[_0x4c6fc4(345)] = (_0x40971f == null ? void 0 : _0x40971f[_0x4c6fc4(345)]) || _0x4c6fc4(468), this[_0x4c6fc4(461)] = {}, this[_0x4c6fc4(348)] = null, this[_0x4c6fc4(400)] = null, this[_0x4c6fc4(529)] = _0x177da5, this["orginMatrixInverse"] = null, this["url"] = _0xfb9869, this[_0x4c6fc4(525)] = 0, this[_0x4c6fc4(436)] = [], this[_0x4c6fc4(350)] = [], this["tilesetModelMatrix"] = null, this[_0x4c6fc4(432)](), this[_0x4c6fc4(506)] = {}; } [(_a = _0x5b25df(534), _b = _0x5b25df(429), _c = _0x5b25df(418), _d = _0x5b25df(410), _e = _0x5b25df(504), _f = _0x5b25df(555), _g = _0x5b25df(550), _h = _0x5b25df(568), _i = _0x5b25df(359), _j = _0x5b25df(518), _k = _0x5b25df(470), _l = _0x5b25df(401), _m = _0x5b25df(383), _n = _0x5b25df(590), _o = _0x5b25df(348), _p = _0x5b25df(529), _q = _0x5b25df(462), _r = _0x5b25df(345), _s = _0x5b25df(509), _t = _0x5b25df(356), _u = _0x5b25df(535), _v = _0x5b25df(501), _w = _0x5b25df(587), _x = _0x5b25df(525), _y = _0x5b25df(347), _z = _0x5b25df(436), _A = _0x5b25df(350), _B = _0x5b25df(439), _C = _0x5b25df(506), _D = _0x5b25df(431), _E = _0x5b25df(341), _F = _0x5b25df(530), _G = _0x5b25df(572), _H = _0x5b25df(400), _I = _0x5b25df(543), "getModelName")]() { const _0x3909b6 = _0x5b25df; return this["id"] || this[_0x3909b6(471)][_0x3909b6(395)](this[_0x3909b6(471)][_0x3909b6(552)]("/") + 1); } [_0x5b25df(463)]() { const _0x16fb78 = _0x5b25df; return { "lon": this["lon"], "lat": this[_0x16fb78(356)], "offsetX": this[_0x16fb78(550)], "offsetY": this[_0x16fb78(568)], "height": this[_0x16fb78(555)], "rotateX": this[_0x16fb78(444)], "rotateY": this[_0x16fb78(359)], "rotateZ": this["rotateZ"], "scale": this[_0x16fb78(520)], "opacity": this[_0x16fb78(401)] }; } [_0x5b25df(583)]() { const _0x2c4b60 = _0x5b25df; let _0x37d2e2 = []; return this[_0x2c4b60(509)] && this[_0x2c4b60(356)] && (_0x37d2e2 = [{ "name": "\u7ECF\u5EA6", "value": _0x2c4b60(509), "type": _0x2c4b60(397), "step": 1e-5 }, { "name": "\u7EAC\u5EA6", "value": "lat", "type": _0x2c4b60(397), "step": 1e-5 }]), _0x37d2e2[_0x2c4b60(573)]([{ "name": _0x2c4b60(550), "value": _0x2c4b60(550), "type": _0x2c4b60(397), "step": 1e-3 }, { "name": _0x2c4b60(568), "value": _0x2c4b60(568), "type": _0x2c4b60(397), "step": 1e-3 }, { "name": "\u9AD8\u5EA6", "value": "height", "type": _0x2c4b60(397) }, { "name": "\u7F29\u653E", "value": "scale", "type": _0x2c4b60(397), "step": 0.01 }, { "name": "\u989C\u8272", "value": _0x2c4b60(462), "type": _0x2c4b60(462) }, { "name": "rotateX", "value": _0x2c4b60(444), "type": _0x2c4b60(524), "min": -180, "max": 180 }, { "name": _0x2c4b60(359), "value": _0x2c4b60(359), "type": _0x2c4b60(524), "min": -180, "max": 180 }, { "name": _0x2c4b60(518), "value": "rotateZ", "type": _0x2c4b60(524), "min": -180, "max": 180 }, { "name": "\u900F\u660E\u5EA6", "value": _0x2c4b60(401), "type": "slider", "min": 0, "max": 1, "step": 0.01 }]); } [_0x5b25df(382)](_0x146b84) { const _0x381eef = _0x5b25df; this[_0x381eef(550)] = _0x146b84[_0x381eef(550)], this[_0x381eef(568)] = _0x146b84["offsetY"], this[_0x381eef(555)] = _0x146b84[_0x381eef(555)], this[_0x381eef(401)] = _0x146b84["opacity"], this[_0x381eef(520)] = _0x146b84[_0x381eef(520)], this[_0x381eef(444)] = _0x146b84[_0x381eef(444)], this[_0x381eef(359)] = _0x146b84[_0x381eef(359)], this[_0x381eef(518)] = _0x146b84[_0x381eef(518)], this[_0x381eef(462)] = _0x146b84[_0x381eef(462)] || "", this["tilesetModelMatrix"] = null; if (_0x146b84[_0x381eef(509)] && _0x146b84[_0x381eef(356)]) { this["lon"] = _0x146b84[_0x381eef(509)], this[_0x381eef(356)] = _0x146b84[_0x381eef(356)]; let [_0x594bb8, _0x4dfe60] = this[_0x381eef(529)]["lonlatToWGS84"](this[_0x381eef(509)], this[_0x381eef(356)]); this[_0x381eef(429)][_0x381eef(376)][_0x381eef(472)] = _0x24cfd9[_0x381eef(334)][_0x381eef(510)](_0x594bb8, _0x4dfe60, this["height"]), this[_0x381eef(348)] = null, this[_0x381eef(493)](); } this[_0x381eef(475)](this[_0x381eef(555)], this[_0x381eef(550)], this[_0x381eef(568)]), this[_0x381eef(451)](), this["setTileMatrix4"](); } [_0x5b25df(380)](_0x30931e) { const _0x3afbe5 = _0x5b25df; _0x30931e && (this[_0x3afbe5(504)] ? _0x30931e(this[_0x3afbe5(429)]) : this[_0x3afbe5(544)] = _0x30931e); } [_0x5b25df(477)](_0x596381) { const _0x153872 = _0x5b25df; _0x596381 && (this[_0x153872(590)][_0x153872(336)] !== 0 ? _0x596381(this[_0x153872(590)]) : this["loadedFun"] = _0x596381); } [_0x5b25df(579)]() { return new Promise((_0x3bffa9) => { const _0x6cb484 = _0x3ac5; if (this[_0x6cb484(439)][_0x6cb484(429)]) _0x3bffa9(this["opt"][_0x6cb484(429)][_0x6cb484(459)]()); else { let _0x53767e = this[_0x6cb484(471)]; this["resourceOpt"] && (this[_0x6cb484(470)]["url"] = this["url"], _0x53767e = new _0x24cfd9[_0x6cb484(427)](this[_0x6cb484(470)])); let _0x4cd437 = { "maximumCacheOverflowBytes": this[_0x6cb484(341)], "cacheBytes": this["maximumCacheOverflowBytes"], "projectTo2D": this["projectTo2D"] }; _0x24cfd9[_0x6cb484(435)][_0x6cb484(539)](_0x53767e, _0x4cd437)[_0x6cb484(553)]((_0x4a039a) => { _0x3bffa9(_0x4a039a); }); } }); } ["load3DTile"]() { const _0x436490 = _0x5b25df; this[_0x436490(579)]()[_0x436490(553)]((_0x1e8c60) => { const _0x41379b = _0x436490; this[_0x41379b(429)] = _0x1e8c60; let _0x49a0f6 = _0x24cfd9[_0x41379b(577)][_0x41379b(569)](_0x1e8c60[_0x41379b(490)][_0x41379b(388)]); this["orginMatrixInverse"] = _0x24cfd9[_0x41379b(577)][_0x41379b(442)](_0x49a0f6, new _0x24cfd9["Matrix4"]()); if (_0x1e8c60[_0x41379b(479)][_0x41379b(503)] && _0x1e8c60[_0x41379b(479)][_0x41379b(503)] instanceof _0x24cfd9["TileBoundingRegion"]) { let _0x37cd18 = null, _0x11b582 = this[_0x41379b(439)][_0x41379b(540)]; _0x11b582 = _0x11b582 === void 0 ? !![] : _0x11b582; if (this["cesiumObj"]["hideEarth"] && _0x11b582) _0x37cd18 = new _0x24cfd9["Cartesian3"](), this[_0x41379b(529)][_0x41379b(396)][_0x41379b(459)](_0x37cd18); else { if (this["lon"] !== null && this[_0x41379b(356)] !== null) { let [_0x1e076f, _0x42baa3] = this[_0x41379b(529)]["lonlatToWGS84"](this[_0x41379b(509)], this[_0x41379b(356)]); _0x37cd18 = _0x24cfd9[_0x41379b(334)][_0x41379b(510)](_0x1e076f, _0x42baa3, 0); } else { let _0x106f51 = _0x1e8c60[_0x41379b(376)]; _0x37cd18 = _0x106f51[_0x41379b(472)]; } } if (_0x37cd18) { let _0x49aa21 = _0x1e8c60["boundingSphere"]["center"][_0x41379b(459)](); const _0x1c28e3 = _0x24cfd9["Cartographic"][_0x41379b(575)](_0x49aa21), _0x3d7406 = _0x24cfd9[_0x41379b(415)][_0x41379b(575)](_0x37cd18), _0x15f444 = _0x24cfd9[_0x41379b(334)]["fromRadians"](_0x1c28e3["longitude"], _0x1c28e3["latitude"], 0); let _0x507760 = this[_0x41379b(550)] / 1e5, _0x3b0240 = this[_0x41379b(568)] / 1e5; const _0x2021cd = _0x24cfd9[_0x41379b(334)][_0x41379b(454)](_0x3d7406[_0x41379b(409)] + _0x507760, _0x3d7406[_0x41379b(522)] + _0x3b0240, this[_0x41379b(555)]), _0x236dc4 = _0x24cfd9[_0x41379b(334)][_0x41379b(393)](_0x2021cd, _0x15f444, new _0x24cfd9[_0x41379b(334)]()); _0x1e8c60[_0x41379b(485)] = _0x24cfd9[_0x41379b(577)]["fromTranslation"](_0x236dc4); } } else { this[_0x41379b(475)](this[_0x41379b(555)], 0, 0); if (this[_0x41379b(529)][_0x41379b(421)]) { let _0x1813cc = new _0x24cfd9[_0x41379b(334)](); this[_0x41379b(529)][_0x41379b(396)][_0x41379b(459)](_0x1813cc), _0x1e8c60[_0x41379b(376)][_0x41379b(472)] = _0x1813cc, this[_0x41379b(400)] = _0x1813cc; } else { if (this[_0x41379b(509)] !== null && this[_0x41379b(356)] !== null) { let [_0x547e75, _0x3b9267] = this[_0x41379b(529)][_0x41379b(335)](this[_0x41379b(509)], this[_0x41379b(356)]); const _0x4c5b1e = _0x24cfd9[_0x41379b(334)]["fromDegrees"](_0x547e75, _0x3b9267, this[_0x41379b(555)]); _0x1e8c60[_0x41379b(376)][_0x41379b(472)] = _0x4c5b1e, this[_0x41379b(400)] = _0x4c5b1e; } } this["setTileMatrix4"](), this[_0x41379b(475)](this["height"], this[_0x41379b(550)], this[_0x41379b(568)]); } this[_0x41379b(529)]["view"][_0x41379b(424)][_0x41379b(428)]["add"](_0x1e8c60), this[_0x41379b(529)][_0x41379b(366)] && this[_0x41379b(345)] && (_0x1e8c60[_0x41379b(345)] = _0x24cfd9[_0x41379b(374)][this[_0x41379b(345)]]), !this[_0x41379b(439)]["noControls"] && this[_0x41379b(529)][_0x41379b(340)](this), !this["id"] && (this["id"] = getModelId()), this["cesiumObj"][_0x41379b(441)][this["id"]] = this, this[_0x41379b(544)] && this["readyFun"](this[_0x41379b(429)]), this[_0x41379b(504)] = !![], this[_0x41379b(429)][_0x41379b(408)] = this, this[_0x41379b(429)]["id"] = this["id"], this[_0x41379b(451)](), _0x1e8c60["allTilesLoaded"]["addEventListener"](() => { const _0x5ec91d = _0x41379b; let _0x20919a = this[_0x5ec91d(467)](_0x1e8c60[_0x5ec91d(479)]), _0x2fc98c = {}, _0x557075 = /* @__PURE__ */ new Map(); _0x20919a[_0x5ec91d(570)]((_0x1fcff0) => { const _0x13646e = _0x5ec91d; console[_0x13646e(369)](_0x1fcff0); let _0x56e0b4 = _0x1fcff0["featuresLength"]; for (let _0x4633f6 = 0; _0x4633f6 < _0x56e0b4; _0x4633f6++) { let _0x45a008 = _0x1fcff0[_0x13646e(368)](_0x4633f6), _0x451fc7 = _0x45a008[_0x13646e(379)]("id"), _0x4a9e53 = _0x45a008[_0x13646e(443)]; _0x4a9e53 !== void 0 && _0x451fc7 !== void 0 && _0x557075[_0x13646e(357)](_0x4a9e53, _0x451fc7), _0x2fc98c[_0x451fc7] ? _0x2fc98c[_0x451fc7]["push"](_0x45a008) : _0x2fc98c[_0x451fc7] = [_0x45a008]; } }), this[_0x5ec91d(461)] = _0x2fc98c, this[_0x5ec91d(580)] = _0x557075, this["contentList"] = _0x20919a, this[_0x5ec91d(439)][_0x5ec91d(457)] && this[_0x5ec91d(439)][_0x5ec91d(457)](_0x2fc98c); }), this[_0x41379b(383)] && this[_0x41379b(383)](this[_0x41379b(590)]), this[_0x41379b(367)] = !![]; }), this[_0x436490(347)] && this[_0x436490(390)](), this[_0x436490(439)][_0x436490(389)] && this[_0x436490(411)](); } [_0x5b25df(375)]() { const _0x34df9e = _0x5b25df; let _0x15290f = [-217774947819868e-8, 438873447251549e-8, 407006229710294e-8, 0.430175895748655], _0x1f2fcf = new _0x24cfd9[_0x34df9e(334)](_0x15290f[0], _0x15290f[1], _0x15290f[2]); if (this[_0x34df9e(535)] && this[_0x34df9e(429)][_0x34df9e(490)][_0x34df9e(388)]) { const _0x43e237 = _0x24cfd9[_0x34df9e(577)]["multiply"](this[_0x34df9e(429)][_0x34df9e(490)][_0x34df9e(388)], this[_0x34df9e(535)], new _0x24cfd9[_0x34df9e(577)]()); _0x1f2fcf = _0x24cfd9["Matrix4"][_0x34df9e(542)](_0x43e237, _0x1f2fcf, new _0x24cfd9["Cartesian3"]()); } return new _0x24cfd9[_0x34df9e(364)](_0x1f2fcf, _0x15290f[3]); } ["clearIdStyles"]() { const _0x5b4db7 = _0x5b25df; this["stylesByIdObj"] = {}, this[_0x5b4db7(528)](); } [_0x5b25df(528)](_0x393fb4, _0x3ab9e3 = "#fff", _0x29f2a7 = 1) { const _0x109845 = _0x5b25df; let _0x22a8bd = []; _0x393fb4 && (!Array[_0x109845(434)](_0x393fb4) && (_0x393fb4 = [_0x393fb4]), _0x393fb4[_0x109845(570)]((_0x3623f7) => { const _0x5a59a1 = _0x109845; this[_0x5a59a1(436)][_0x3623f7] = [_0x3ab9e3, _0x29f2a7]; })); let _0x1c06f9 = Object[_0x109845(450)](this[_0x109845(436)]); _0x1c06f9[_0x109845(570)]((_0x58ed0b) => { const _0x1c6100 = _0x109845; let _0x4a3e95 = this[_0x1c6100(436)][_0x58ed0b]; new _0x24cfd9[_0x1c6100(533)](); let _0xfb8c4a = _0x24cfd9[_0x1c6100(362)]["fromCssColorString"](_0x4a3e95[0])["toBytes"](), _0x385093 = _0x1c6100(487) + _0xfb8c4a[0] + "," + _0xfb8c4a[1] + ", " + _0xfb8c4a[2] + ", " + _0x4a3e95[1] + _0x1c6100(578); _0x22a8bd[_0x1c6100(370)](["${id} === '" + _0x58ed0b + "'", _0x385093]); }); let _0x1ffd69 = null; if (this[_0x109845(462)]) { new _0x24cfd9[_0x109845(533)](); let _0x1bb9e0 = _0x24cfd9[_0x109845(362)][_0x109845(551)](this[_0x109845(462)])["toBytes"](); _0x1ffd69 = _0x109845(487) + _0x1bb9e0[0] + "," + _0x1bb9e0[1] + ", " + _0x1bb9e0[2] + ", " + this[_0x109845(401)] + _0x109845(578); } _0x1ffd69 && _0x22a8bd[_0x109845(370)]([_0x109845(402), _0x1ffd69]), this[_0x109845(429)]["style"] = new _0x24cfd9[_0x109845(533)]({ "color": { "conditions": _0x22a8bd } }); } [_0x5b25df(473)](_0x53b7f2) { const _0x3d6ca9 = _0x5b25df; this["color"] = _0x53b7f2, this[_0x3d6ca9(451)](); } ["setOpacity"](_0x7080b0) { const _0x539474 = _0x5b25df; _0x7080b0 === void 0 && (_0x7080b0 = this[_0x539474(401)]); this[_0x539474(401)] = _0x7080b0; if (this[_0x539474(462)]) { let _0xe4c842 = new _0x24cfd9["Cesium3DTileStyle"](), _0x139ed0 = _0x24cfd9["Color"][_0x539474(551)](this[_0x539474(462)])["toBytes"](); _0xe4c842[_0x539474(462)] = _0x539474(487) + _0x139ed0[0] + "," + _0x139ed0[1] + ", " + _0x139ed0[2] + ", " + this[_0x539474(401)] + ")')", this[_0x539474(429)][_0x539474(513)] = _0xe4c842; } else this[_0x539474(429)]["style"] = new _0x24cfd9[_0x539474(533)]({ "color": { "evaluateColor": () => { const _0x799245 = _0x539474; return new _0x24cfd9["Color"](1, 1, 1, this[_0x799245(401)]); } } }); } [_0x5b25df(351)]() { const _0x4f2a6d = _0x5b25df; if (!this[_0x4f2a6d(429)] || this[_0x4f2a6d(501)][_0x4f2a6d(373)] === 0) return; this[_0x4f2a6d(429)]["customShader"] && (this[_0x4f2a6d(429)][_0x4f2a6d(398)] = void 0); const _0x48e979 = new _0x24cfd9[_0x4f2a6d(492)]({ "uniforms": { "u_time": { "type": _0x24cfd9["UniformType"][_0x4f2a6d(584)], "value": this[_0x4f2a6d(587)] / 1e3 } }, "lightingModel": _0x24cfd9[_0x4f2a6d(399)][_0x4f2a6d(559)], "translucencyMode": _0x24cfd9[_0x4f2a6d(355)]["TRANSLUCENT"], "fragmentShaderText": _0x4f2a6d(349) + this["getAnimationConditionCode"]() + _0x4f2a6d(381) }); console["log"](_0x48e979[_0x4f2a6d(404)]), this["tileset"][_0x4f2a6d(398)] = _0x48e979; } [_0x5b25df(498)]() { let _0x39054b = ""; const _0x3e07c4 = /* @__PURE__ */ new Map(); return this["growthAnimationMap"]["forEach"]((_0x5e03c5, _0x1cd74e) => { const _0x104904 = _0x3ac5; _0x3e07c4[_0x104904(357)](_0x1cd74e[_0x104904(591)](), _0x5e03c5); }), this["featureIdToActualIdMap"]["forEach"]((_0x1d7bd5, _0x4ae0ee) => { const _0x2ac0ef = _0x3ac5; if (_0x3e07c4["has"](_0x1d7bd5)) { const _0x492b82 = _0x3e07c4[_0x2ac0ef(521)](_0x1d7bd5), _0x127642 = _0x492b82["finalPercentage"], _0x350a56 = _0x492b82["startTime"] / 1e3, _0x1f8647 = _0x492b82[_0x2ac0ef(483)] / 1e3; _0x39054b += " if (featureId == " + _0x4ae0ee + _0x2ac0ef(353), _0x39054b += _0x2ac0ef(507) + _0x350a56[_0x2ac0ef(426)](3) + ";\n", _0x39054b += _0x2ac0ef(581) + _0x1f8647[_0x2ac0ef(426)](3) + ";\n", _0x39054b += _0x2ac0ef(537), _0x39054b += _0x2ac0ef(500), _0x39054b += _0x2ac0ef(449) + _0x127642[_0x2ac0ef(426)](3) + _0x2ac0ef(414) + _0x1f8647[_0x2ac0ef(426)](3) + ";\n", _0x39054b += " } else if (u_time > end) {\n", _0x39054b += _0x2ac0ef(449) + _0x127642["toFixed"](3) + " * 1.0;\n", _0x39054b += _0x2ac0ef(391), _0x39054b += _0x2ac0ef(417), _0x39054b += _0x2ac0ef(514); if (_0x492b82[_0x2ac0ef(505)] !== _0x2ac0ef(448)) { let _0x5cf1dd; switch (_0x492b82[_0x2ac0ef(505)]) { case _0x2ac0ef(571): _0x5cf1dd = _0x2ac0ef(564); break; case "top-down": _0x5cf1dd = _0x2ac0ef(469); break; case _0x2ac0ef(482): _0x5cf1dd = "clipValue = texCoordId.x"; break; case _0x2ac0ef(405): _0x5cf1dd = _0x2ac0ef(358); break; default: _0x5cf1dd = _0x2ac0ef(478); } _0x39054b += _0x2ac0ef(561) + _0x5cf1dd + _0x2ac0ef(360); } else _0x39054b += _0x2ac0ef(546); _0x39054b += _0x2ac0ef(532); } }), _0x39054b; } [_0x5b25df(502)](_0x2f37a2) { const _0xe6bf85 = _0x5b25df; this["stop"](), this[_0xe6bf85(501)]["clear"](), _0x2f37a2[_0xe6bf85(570)]((_0x903eae) => { const _0x30dccc = _0xe6bf85; this[_0x30dccc(501)]["set"](_0x903eae[_0x30dccc(392)], { "startTime": _0x903eae[_0x30dccc(589)], "duration": _0x903eae[_0x30dccc(483)], "animationType": _0x903eae[_0x30dccc(505)] || _0x30dccc(571), "finalPercentage": _0x903eae[_0x30dccc(562)] !== void 0 ? Math[_0x30dccc(403)](0, Math[_0x30dccc(519)](1, _0x903eae["finalPercentage"])) : 1 }); }); let _0x4c0bdf = _0x2f37a2[_0xe6bf85(460)]((_0x2f7f60) => _0x2f7f60["delay"]), _0x98d544 = _0x4c0bdf["length"] === 0 ? 0 : Math[_0xe6bf85(403)](..._0x4c0bdf), _0x5d48f5 = _0x2f37a2[_0xe6bf85(460)]((_0x2fabe7) => _0x2fabe7[_0xe6bf85(483)]), _0x2c11af = _0x5d48f5["length"] === 0 ? 0 : Math[_0xe6bf85(403)](..._0x5d48f5); this[_0xe6bf85(525)] = _0x98d544 + _0x2c11af; } [_0x5b25df(486)]() { const _0x3e8b24 = _0x5b25df; if (this[_0x3e8b24(501)][_0x3e8b24(373)] === 0) { console[_0x3e8b24(474)]("\u8BF7\u5148\u6DFB\u52A0\u6784\u4EF6\u52A8\u753B\uFF01"); return; } if (this[_0x3e8b24(558)]) return; this[_0x3e8b24(351)](), this[_0x3e8b24(558)] = setInterval(() => { const _0x245d29 = _0x3e8b24; this[_0x245d29(587)] += 100; this[_0x245d29(429)] && this[_0x245d29(429)][_0x245d29(398)] && (console[_0x245d29(369)](this["animationTime"] / 1e3), this["tileset"][_0x245d29(398)][_0x245d29(346)](_0x245d29(419), this[_0x245d29(587)] / 1e3)); const _0x41239f = Array[_0x245d29(547)](this[_0x245d29(501)][_0x245d29(565)]())[_0x245d29(585)]((_0x366f37) => this[_0x245d29(587)] >= _0x366f37[_0x245d29(456)] + _0x366f37[_0x245d29(483)]); (_0x41239f || this[_0x245d29(587)] >= this["animationRuntime"]) && this["stop"](); }, 100); } [_0x5b25df(438)]() { const _0xb65fb8 = _0x5b25df; this[_0xb65fb8(587)] = 0, this[_0xb65fb8(558)] && (clearInterval(this[_0xb65fb8(558)]), this[_0xb65fb8(558)] = null), this[_0xb65fb8(429)] && this[_0xb65fb8(429)][_0xb65fb8(398)] && console["log"](this[_0xb65fb8(429)][_0xb65fb8(398)]); } ["pause"]() { const _0x3c92eb = _0x5b25df; this[_0x3c92eb(558)] && (clearInterval(this[_0x3c92eb(558)]), this[_0x3c92eb(558)] = null); } [_0x5b25df(527)]() { this["stop"](), this["start"](); } [_0x5b25df(511)](_0x37e2ac) { const _0x410570 = _0x5b25df; if (this[_0x410570(429)]) { let _0x8506c6 = this[_0x410570(429)]["boundingSphere"][_0x410570(472)]["clone"](); const _0x5ef073 = _0x24cfd9[_0x410570(415)]["fromCartesian"](_0x8506c6), _0x3ed922 = _0x24cfd9["Cartesian3"][_0x410570(454)](_0x5ef073[_0x410570(409)], _0x5ef073[_0x410570(522)], 0); let _0x1be81e = this[_0x410570(550)] / 1e5, _0x11b9cc = this[_0x410570(568)] / 1e5; const _0x2e1d81 = _0x24cfd9[_0x410570(334)]["fromRadians"](_0x5ef073[_0x410570(409)] + _0x1be81e, _0x5ef073["latitude"] + _0x11b9cc, _0x37e2ac), _0x582bc6 = _0x24cfd9["Cartesian3"]["subtract"](_0x2e1d81, _0x3ed922, new _0x24cfd9["Cartesian3"]()); let _0x1c2185 = _0x24cfd9[_0x410570(577)][_0x410570(549)](_0x582bc6); _0x723fa2["to"](this["tileset"][_0x410570(485)], 2, { ..._0x1c2185 }); } } [_0x5b25df(475)](_0x1a265c, _0x4f022c = 0, _0x6e093a = 0) { const _0x179be5 = _0x5b25df; if (this[_0x179be5(429)]) { let _0x19d655 = this[_0x179be5(429)][_0x179be5(376)][_0x179be5(472)][_0x179be5(459)](); const _0x4527ac = _0x24cfd9[_0x179be5(415)][_0x179be5(575)](_0x19d655), _0x1a917a = _0x24cfd9["Cartesian3"][_0x179be5(454)](_0x4527ac[_0x179be5(409)], _0x4527ac[_0x179be5(522)], 0); _0x4f022c = _0x4f022c / 1e5, _0x6e093a = _0x6e093a / 1e5; const _0x4d0dee = _0x24cfd9[_0x179be5(334)][_0x179be5(454)](_0x4527ac["longitude"] + _0x4f022c, _0x4527ac[_0x179be5(522)] + _0x6e093a, _0x1a265c), _0x2dc844 = _0x24cfd9[_0x179be5(334)][_0x179be5(393)](_0x4d0dee, _0x1a917a, new _0x24cfd9[_0x179be5(334)]()); this[_0x179be5(429)][_0x179be5(485)] = _0x24cfd9["Matrix4"]["fromTranslation"](_0x2dc844); } else this["height"] = _0x1a265c, this[_0x179be5(550)] = _0x4f022c, this["offsetY"] = _0x6e093a; } [_0x5b25df(508)](_0x482eeb) { const _0x2d277f = _0x5b25df; let _0xb807a = []; if (_0x482eeb) { _0xb807a[_0x2d277f(370)](_0x482eeb); let _0x33a801 = _0x482eeb[_0x2d277f(582)]; _0x33a801 && _0x33a801[_0x2d277f(570)]((_0x28a9c1) => { const _0x356b54 = _0x2d277f; _0xb807a[_0x356b54(370)](...this[_0x356b54(508)](_0x28a9c1)); }); } return _0xb807a; } [_0x5b25df(467)](_0x48e85f) { const _0x115e0d = _0x5b25df; let _0x21f6f4 = []; if (_0x48e85f[_0x115e0d(536)]) { let _0x280ad6 = _0x48e85f[_0x115e0d(536)]; _0x280ad6[_0x115e0d(570)]((_0x20828e) => { const _0x492688 = _0x115e0d; _0x21f6f4["push"](...this[_0x492688(467)](_0x20828e)); }); } return _0x21f6f4[_0x115e0d(370)](...this[_0x115e0d(508)](_0x48e85f[_0x115e0d(371)])), _0x21f6f4; } ["getTilesetCenterMatrix4"]() { const _0x4f2094 = _0x5b25df; if (!this[_0x4f2094(348)]) { let _0xa9159 = this[_0x4f2094(429)][_0x4f2094(376)], _0x5c6d02 = _0x24cfd9[_0x4f2094(415)][_0x4f2094(575)](_0xa9159[_0x4f2094(472)]), _0x52ee8e = _0x24cfd9["Math"]["toDegrees"](_0x5c6d02[_0x4f2094(409)]), _0x5816a5 = _0x24cfd9["Math"][_0x4f2094(437)](_0x5c6d02[_0x4f2094(522)]), _0x458f57 = _0x24cfd9[_0x4f2094(334)][_0x4f2094(454)](_0x24cfd9["Math"][_0x4f2094(515)](_0x52ee8e), _0x24cfd9[_0x4f2094(517)]["toRadians"](_0x5816a5), 0), _0x43b8d3 = _0x24cfd9["Transforms"][_0x4f2094(464)](_0x458f57); this["centerMatrix4"] = _0x43b8d3[_0x4f2094(459)](); } return this["centerMatrix4"]; } [_0x5b25df(493)]() { const _0x3938b7 = _0x5b25df; if (this["opt"][_0x3938b7(481)]) return; let _0x740461 = this["getTilesetCenterMatrix4"]()["clone"](), _0x50994e = _0x24cfd9["Matrix4"][_0x3938b7(480)](this[_0x3938b7(520)]); _0x24cfd9[_0x3938b7(577)][_0x3938b7(496)](_0x740461, _0x50994e, _0x740461); let _0x425897 = _0x24cfd9[_0x3938b7(433)]["fromRotationX"](_0x24cfd9[_0x3938b7(517)][_0x3938b7(515)](this[_0x3938b7(444)])), _0xc9d6c4 = _0x24cfd9[_0x3938b7(577)][_0x3938b7(365)](_0x425897); _0x24cfd9[_0x3938b7(577)]["multiply"](_0x740461, _0xc9d6c4, _0x740461); let _0x49a