mars3d-wind 3.11.4 → 3.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/mars3d-wind.js +3 -3
  2. package/package.json +2 -2
package/mars3d-wind.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D平台插件,支持气象 风向图 功能插件 mars3d-wind
3
3
  *
4
- * 版本信息:v3.11.4
5
- * 编译日期:2026-06-04 19:46
4
+ * 版本信息:v3.11.5
5
+ * 编译日期:2026-07-08 13:19
6
6
  * 版权所有:Copyright by http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2026-02-01
8
8
  */
@@ -11,5 +11,5 @@
11
11
  typeof define === 'function' && define.amd ? define(['exports', 'mars3d'], factory) :
12
12
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["mars3d-wind"] = {}, global.mars3d));
13
13
  })(this, (function (exports, mars3d) {
14
- 'use strict';(function(_0x3dafe8,_0x26dfff){function _0x1a00d7(_0x531837,_0x366846){return _0x9e58(_0x531837-0x51,_0x366846);}const _0x78789c=_0x3dafe8();function _0x33661f(_0x2ce9d0,_0x3e1c2b){return _0x9e58(_0x3e1c2b-0x223,_0x2ce9d0);}while(!![]){try{const _0x1c48ce=-parseInt(_0x33661f(0x472,0x438))/0x1+-parseInt(_0x33661f(0x3ca,0x43a))/0x2+-parseInt(_0x1a00d7(0x292,0x2f8))/0x3+parseInt(_0x1a00d7(0x316,0x2dc))/0x4+parseInt(_0x33661f(0x4c9,0x448))/0x5*(-parseInt(_0x1a00d7(0x28d,0x27d))/0x6)+-parseInt(_0x33661f(0x464,0x496))/0x7+parseInt(_0x1a00d7(0x242,0x295))/0x8*(parseInt(_0x1a00d7(0x308,0x28f))/0x9);if(_0x1c48ce===_0x26dfff)break;else _0x78789c['push'](_0x78789c['shift']());}catch(_0x304fcb){_0x78789c['push'](_0x78789c['shift']());}}}(_0x4f7c,0xa20fb));function _interopNamespace(_0x33ff2b){if(_0x33ff2b&&_0x33ff2b[_0x2bfcb3(0x19e,0x16c)])return _0x33ff2b;var _0x8dd592=Object[_0x2bfcb3(0x1ac,0x156)](null);_0x33ff2b&&Object[_0xc9c77f(0x530,0x52e)](_0x33ff2b)[_0x2bfcb3(0x128,0x18c)](function(_0x4fc7ab){function _0x582826(_0x2770b0,_0xd8ee4d){return _0xc9c77f(_0x2770b0,_0xd8ee4d-0x6d);}if(_0x4fc7ab!==_0x582826(0x658,0x5e1)){var _0x6ca6e=Object['getOwnPropertyDescriptor'](_0x33ff2b,_0x4fc7ab);Object['defineProperty'](_0x8dd592,_0x4fc7ab,_0x6ca6e['get']?_0x6ca6e:{'enumerable':!![],'get':function(){return _0x33ff2b[_0x4fc7ab];}});}});function _0x2bfcb3(_0x39af6f,_0x15a957){return _0x9e58(_0x15a957- -0x144,_0x39af6f);}function _0xc9c77f(_0x56ec0f,_0x2bffcb){return _0x9e58(_0x2bffcb-0x334,_0x56ec0f);}return _0x8dd592['default']=_0x33ff2b,_0x8dd592;}var mars3d__namespace=_interopNamespace(mars3d);const Cesium$2=mars3d__namespace['Cesium'];function getU(_0xf913b1,_0x1ecfca){const _0x2308b1=_0xf913b1*Math[_0x1ba0d8(0x341,0x3c0)](Cesium$2['Math']['toRadians'](_0x1ecfca));function _0x1ba0d8(_0x29593c,_0x2f0560){return _0x9e58(_0x2f0560-0x144,_0x29593c);}return _0x2308b1;}function getV(_0x644043,_0x264781){const _0x5b8857=_0x644043*Math['sin'](Cesium$2['Math']['toRadians'](_0x264781));return _0x5b8857;}function getSpeed(_0x509013,_0x1cd0ec){function _0x22988d(_0x546d81,_0x5e6d3b){return _0x9e58(_0x546d81- -0x1ba,_0x5e6d3b);}const _0x2c0f55=Math['sqrt'](Math['pow'](_0x509013,0x2)+Math[_0x22988d(0xa7,0xba)](_0x1cd0ec,0x2));return _0x2c0f55;}function getDirection(_0x313d7c,_0xd3f825){let _0x37de93=Cesium$2[_0x296118(0x4b0,0x4f0)][_0x4460ba(0x494,0x4c9)](Math['atan2'](_0xd3f825,_0x313d7c));_0x37de93+=_0x37de93<0x0?0x168:0x0;function _0x296118(_0x358b5f,_0x28a3c3){return _0x9e58(_0x358b5f-0x21b,_0x28a3c3);}function _0x4460ba(_0x395667,_0x126762){return _0x9e58(_0x126762-0x2eb,_0x395667);}return _0x37de93;}const _0x4b72f1={};function _0xaafa2(_0x57ad37,_0x52f3d8){return _0x9e58(_0x57ad37- -0xa0,_0x52f3d8);}function _0x8e8939(_0x5b10b1,_0x43ce30){return _0x9e58(_0x5b10b1- -0xc8,_0x43ce30);}_0x4b72f1['__proto__']=null,_0x4b72f1['getU']=getU,_0x4b72f1[_0x8e8939(0x20d,0x294)]=getV,_0x4b72f1[_0xaafa2(0x1d5,0x188)]=getSpeed,_0x4b72f1['getDirection']=getDirection;var WindUtil=_0x4b72f1;const version=_0xaafa2(0x1bf,0x13b),buildTime='2026-06-04\x2019:44';var updatePositionShader='#version\x20300\x20es\x0aprecision\x20highp\x20float;\x0a\x0auniform\x20sampler2D\x20currentParticlesPosition;\x0auniform\x20sampler2D\x20particlesSpeed;\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0aout\x20vec4\x20fragColor;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20//\x20获取当前粒子的位置\x0a\x20\x20vec2\x20currentPos\x20=\x20texture(currentParticlesPosition,\x20v_textureCoordinates).rg;\x0a\x20\x20\x20\x20//\x20获取粒子的速度\x0a\x20\x20vec2\x20speed\x20=\x20texture(particlesSpeed,\x20v_textureCoordinates).rg;\x0a\x20\x20\x20\x20//\x20计算下一个位置\x0a\x20\x20vec2\x20nextPos\x20=\x20currentPos\x20+\x20speed;\x0a\x0a\x20\x20\x20\x20//\x20将新的位置写入\x20fragColor\x0a\x20\x20fragColor\x20=\x20vec4(nextPos,\x200.0f,\x201.0f);\x0a}\x0a',calculateSpeedShader='#version\x20300\x20es\x0a\x0a//\x20the\x20size\x20of\x20UV\x20textures:\x20width\x20=\x20lon,\x20height\x20=\x20lat\x0auniform\x20sampler2D\x20U;\x20//\x20eastward\x20wind\x0auniform\x20sampler2D\x20V;\x20//\x20northward\x20wind\x0auniform\x20sampler2D\x20currentParticlesPosition;\x20//\x20(lon,\x20lat,\x20lev)\x0a\x0auniform\x20vec2\x20uRange;\x20//\x20(min,\x20max)\x0auniform\x20vec2\x20vRange;\x20//\x20(min,\x20max)\x0auniform\x20vec2\x20speedRange;\x20//\x20(min,\x20max)\x0auniform\x20vec2\x20dimension;\x20//\x20(lon,\x20lat)\x0auniform\x20vec2\x20minimum;\x20//\x20minimum\x20of\x20each\x20dimension\x0auniform\x20vec2\x20maximum;\x20//\x20maximum\x20of\x20each\x20dimension\x0a\x0auniform\x20float\x20speedScaleFactor;\x0auniform\x20float\x20frameRateAdjustment;\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0avec2\x20getInterval(vec2\x20maximum,\x20vec2\x20minimum,\x20vec2\x20dimension)\x20{\x0a\x20\x20return\x20(maximum\x20-\x20minimum)\x20/\x20(dimension\x20-\x201.0f);\x0a}\x0a\x0avec2\x20mapPositionToNormalizedIndex2D(vec2\x20lonLat)\x20{\x0a\x20\x20\x20\x20//\x20ensure\x20the\x20range\x20of\x20longitude\x20and\x20latitude\x0a\x20\x20lonLat.x\x20=\x20clamp(lonLat.x,\x20minimum.x,\x20maximum.x);\x0a\x20\x20lonLat.y\x20=\x20clamp(lonLat.y,\x20minimum.y,\x20maximum.y);\x0a\x0a\x20\x20vec2\x20interval\x20=\x20getInterval(maximum,\x20minimum,\x20dimension);\x0a\x0a\x20\x20vec2\x20index2D\x20=\x20vec2(0.0f);\x0a\x20\x20index2D.x\x20=\x20(lonLat.x\x20-\x20minimum.x)\x20/\x20interval.x;\x0a\x20\x20index2D.y\x20=\x20(lonLat.y\x20-\x20minimum.y)\x20/\x20interval.y;\x0a\x0a\x20\x20vec2\x20normalizedIndex2D\x20=\x20vec2(index2D.x\x20/\x20dimension.x,\x20index2D.y\x20/\x20dimension.y);\x0a\x20\x20return\x20normalizedIndex2D;\x0a}\x0a\x0afloat\x20getWindComponent(sampler2D\x20componentTexture,\x20vec2\x20lonLat)\x20{\x0a\x20\x20vec2\x20normalizedIndex2D\x20=\x20mapPositionToNormalizedIndex2D(lonLat);\x0a\x20\x20float\x20result\x20=\x20texture(componentTexture,\x20normalizedIndex2D).r;\x0a\x20\x20return\x20result;\x0a}\x0a\x0avec2\x20getWindComponents(vec2\x20lonLat)\x20{\x0a\x20\x20vec2\x20normalizedIndex2D\x20=\x20mapPositionToNormalizedIndex2D(lonLat);\x0a\x20\x20float\x20u\x20=\x20texture(U,\x20normalizedIndex2D).r;\x0a\x20\x20float\x20v\x20=\x20texture(V,\x20normalizedIndex2D).r;\x0a\x20\x20return\x20vec2(u,\x20v);\x0a}\x0a\x0avec2\x20bilinearInterpolation(vec2\x20lonLat)\x20{\x0a\x20\x20float\x20lon\x20=\x20lonLat.x;\x0a\x20\x20float\x20lat\x20=\x20lonLat.y;\x0a\x0a\x20\x20vec2\x20interval\x20=\x20getInterval(maximum,\x20minimum,\x20dimension);\x0a\x0a\x20\x20\x20\x20//\x20Calculate\x20grid\x20cell\x20coordinates\x0a\x20\x20float\x20lon0\x20=\x20floor(lon\x20/\x20interval.x)\x20*\x20interval.x;\x0a\x20\x20float\x20lon1\x20=\x20lon0\x20+\x20interval.x;\x0a\x20\x20float\x20lat0\x20=\x20floor(lat\x20/\x20interval.y)\x20*\x20interval.y;\x0a\x20\x20float\x20lat1\x20=\x20lat0\x20+\x20interval.y;\x0a\x0a\x20\x20\x20\x20//\x20Get\x20wind\x20vectors\x20at\x20four\x20corners\x0a\x20\x20vec2\x20v00\x20=\x20getWindComponents(vec2(lon0,\x20lat0));\x0a\x20\x20vec2\x20v10\x20=\x20getWindComponents(vec2(lon1,\x20lat0));\x0a\x20\x20vec2\x20v01\x20=\x20getWindComponents(vec2(lon0,\x20lat1));\x0a\x20\x20vec2\x20v11\x20=\x20getWindComponents(vec2(lon1,\x20lat1));\x0a\x0a\x20\x20\x20\x20//\x20Check\x20if\x20all\x20wind\x20vectors\x20are\x20zero\x0a\x20\x20if(length(v00)\x20==\x200.0f\x20&&\x20length(v10)\x20==\x200.0f\x20&&\x20length(v01)\x20==\x200.0f\x20&&\x20length(v11)\x20==\x200.0f)\x20{\x0a\x20\x20\x20\x20return\x20vec2(0.0f,\x200.0f);\x0a\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20Calculate\x20interpolation\x20weights\x0a\x20\x20float\x20s\x20=\x20(lon\x20-\x20lon0)\x20/\x20interval.x;\x0a\x20\x20float\x20t\x20=\x20(lat\x20-\x20lat0)\x20/\x20interval.y;\x0a\x0a\x20\x20\x20\x20//\x20Perform\x20bilinear\x20interpolation\x20on\x20vector\x20components\x0a\x20\x20vec2\x20v0\x20=\x20mix(v00,\x20v10,\x20s);\x0a\x20\x20vec2\x20v1\x20=\x20mix(v01,\x20v11,\x20s);\x0a\x20\x20return\x20mix(v0,\x20v1,\x20t);\x0a}\x0a\x0avec2\x20lengthOfLonLat(vec2\x20lonLat)\x20{\x0a\x20\x20\x20\x20//\x20unit\x20conversion:\x20meters\x20->\x20longitude\x20latitude\x20degrees\x0a\x20\x20\x20\x20//\x20see\x20https://en.wikipedia.org/wiki/Geographic_coordinate_system#Length_of_a_degree\x20for\x20detail\x0a\x0a\x20\x20\x20\x20//\x20Calculate\x20the\x20length\x20of\x20a\x20degree\x20of\x20latitude\x20and\x20longitude\x20in\x20meters\x0a\x20\x20float\x20latitude\x20=\x20radians(lonLat.y);\x0a\x0a\x20\x20float\x20term1\x20=\x20111132.92f;\x0a\x20\x20float\x20term2\x20=\x20559.82f\x20*\x20cos(2.0f\x20*\x20latitude);\x0a\x20\x20float\x20term3\x20=\x201.175f\x20*\x20cos(4.0f\x20*\x20latitude);\x0a\x20\x20float\x20term4\x20=\x200.0023f\x20*\x20cos(6.0f\x20*\x20latitude);\x0a\x20\x20float\x20latLength\x20=\x20term1\x20-\x20term2\x20+\x20term3\x20-\x20term4;\x0a\x0a\x20\x20float\x20term5\x20=\x20111412.84f\x20*\x20cos(latitude);\x0a\x20\x20float\x20term6\x20=\x2093.5f\x20*\x20cos(3.0f\x20*\x20latitude);\x0a\x20\x20float\x20term7\x20=\x200.118f\x20*\x20cos(5.0f\x20*\x20latitude);\x0a\x20\x20float\x20longLength\x20=\x20term5\x20-\x20term6\x20+\x20term7;\x0a\x0a\x20\x20return\x20vec2(longLength,\x20latLength);\x0a}\x0a\x0avec2\x20convertSpeedUnitToLonLat(vec2\x20lonLat,\x20vec2\x20speed)\x20{\x0a\x20\x20vec2\x20lonLatLength\x20=\x20lengthOfLonLat(lonLat);\x0a\x20\x20float\x20u\x20=\x20speed.x\x20/\x20lonLatLength.x;\x0a\x20\x20float\x20v\x20=\x20speed.y\x20/\x20lonLatLength.y;\x0a\x20\x20vec2\x20windVectorInLonLat\x20=\x20vec2(u,\x20v);\x0a\x0a\x20\x20return\x20windVectorInLonLat;\x0a}\x0a\x0avec2\x20calculateSpeedByRungeKutta2(vec2\x20lonLat)\x20{\x0a\x20\x20\x20\x20//\x20see\x20https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods#Second-order_methods_with_two_stages\x20for\x20detail\x0a\x20\x20const\x20float\x20h\x20=\x200.5f;\x0a\x0a\x20\x20vec2\x20y_n\x20=\x20lonLat;\x0a\x20\x20vec2\x20f_n\x20=\x20bilinearInterpolation(lonLat);\x0a\x20\x20vec2\x20midpoint\x20=\x20y_n\x20+\x200.5f\x20*\x20h\x20*\x20convertSpeedUnitToLonLat(y_n,\x20f_n)\x20*\x20speedScaleFactor;\x0a\x20\x20vec2\x20speed\x20=\x20h\x20*\x20bilinearInterpolation(midpoint)\x20*\x20speedScaleFactor;\x0a\x0a\x20\x20return\x20speed;\x0a}\x0a\x0avec2\x20calculateWindNorm(vec2\x20speed)\x20{\x0a\x20\x20float\x20speedLength\x20=\x20length(speed.xy);\x0a\x20\x20if(speedLength\x20==\x200.0f)\x20{\x0a\x20\x20\x20\x20return\x20vec2(0.0f);\x0a\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20Clamp\x20speedLength\x20to\x20range\x0a\x20\x20float\x20clampedSpeed\x20=\x20clamp(speedLength,\x20speedRange.x,\x20speedRange.y);\x0a\x20\x20float\x20normalizedSpeed\x20=\x20(clampedSpeed\x20-\x20speedRange.x)\x20/\x20(speedRange.y\x20-\x20speedRange.x);\x0a\x20\x20return\x20vec2(speedLength,\x20normalizedSpeed);\x0a}\x0a\x0aout\x20vec4\x20fragColor;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20//\x20texture\x20coordinate\x20must\x20be\x20normalized\x0a\x20\x20vec2\x20lonLat\x20=\x20texture(currentParticlesPosition,\x20v_textureCoordinates).rg;\x0a\x20\x20vec2\x20speedOrigin\x20=\x20bilinearInterpolation(lonLat);\x0a\x20\x20vec2\x20speed\x20=\x20calculateSpeedByRungeKutta2(lonLat)\x20*\x20frameRateAdjustment;\x0a\x20\x20vec2\x20speedInLonLat\x20=\x20convertSpeedUnitToLonLat(lonLat,\x20speed);\x0a\x0a\x20\x20fragColor\x20=\x20vec4(speedInLonLat,\x20calculateWindNorm(speedOrigin));\x0a}\x0a',postProcessingPositionFragmentShader='#version\x20300\x20es\x0aprecision\x20highp\x20float;\x0a\x0auniform\x20sampler2D\x20nextParticlesPosition;\x0auniform\x20sampler2D\x20particlesSpeed;\x20//\x20(u,\x20v,\x20norm)\x0a\x0a//\x20range\x20(min,\x20max)\x0auniform\x20vec2\x20lonRange;\x0auniform\x20vec2\x20latRange;\x0a\x0a//\x20range\x20(min,\x20max)\x0auniform\x20vec2\x20dataLonRange;\x0auniform\x20vec2\x20dataLatRange;\x0a\x0auniform\x20float\x20randomCoefficient;\x0auniform\x20float\x20dropRate;\x0auniform\x20float\x20dropRateBump;\x0a\x0a//\x20添加新的\x20uniform\x20变量\x0auniform\x20bool\x20useViewerBounds;\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0a//\x20pseudo-random\x20generator\x0aconst\x20vec3\x20randomConstants\x20=\x20vec3(12.9898f,\x2078.233f,\x204375.85453f);\x0aconst\x20vec2\x20normalRange\x20=\x20vec2(0.0f,\x201.0f);\x0afloat\x20rand(vec2\x20seed,\x20vec2\x20range)\x20{\x0a\x20\x20vec2\x20randomSeed\x20=\x20randomCoefficient\x20*\x20seed;\x0a\x20\x20float\x20temp\x20=\x20dot(randomConstants.xy,\x20randomSeed);\x0a\x20\x20temp\x20=\x20fract(sin(temp)\x20*\x20(randomConstants.z\x20+\x20temp));\x0a\x20\x20return\x20temp\x20*\x20(range.y\x20-\x20range.x)\x20+\x20range.x;\x0a}\x0a\x0avec2\x20generateRandomParticle(vec2\x20seed)\x20{\x0a\x20\x20vec2\x20range;\x0a\x20\x20float\x20randomLon,\x20randomLat;\x0a\x0a\x20\x20if(useViewerBounds)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20在当前视域范围内生成粒子\x0a\x20\x20\x20\x20randomLon\x20=\x20rand(seed,\x20lonRange);\x0a\x20\x20\x20\x20randomLat\x20=\x20rand(-seed,\x20latRange);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20在数据范围内生成粒子\x0a\x20\x20\x20\x20randomLon\x20=\x20rand(seed,\x20dataLonRange);\x0a\x20\x20\x20\x20randomLat\x20=\x20rand(-seed,\x20dataLatRange);\x0a\x20\x20}\x0a\x0a\x20\x20return\x20vec2(randomLon,\x20randomLat);\x0a}\x0a\x0abool\x20particleOutbound(vec2\x20particle)\x20{\x0a\x20\x20return\x20particle.y\x20<\x20dataLatRange.x\x20||\x20particle.y\x20>\x20dataLatRange.y\x20||\x20particle.x\x20<\x20dataLonRange.x\x20||\x20particle.x\x20>\x20dataLonRange.y;\x0a}\x0a\x0aout\x20vec4\x20fragColor;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20vec2\x20nextParticle\x20=\x20texture(nextParticlesPosition,\x20v_textureCoordinates).rg;\x0a\x20\x20vec4\x20nextSpeed\x20=\x20texture(particlesSpeed,\x20v_textureCoordinates);\x0a\x20\x20float\x20speedNorm\x20=\x20nextSpeed.a;\x0a\x20\x20float\x20particleDropRate\x20=\x20dropRate\x20+\x20dropRateBump\x20*\x20speedNorm;\x0a\x0a\x20\x20vec2\x20seed1\x20=\x20nextParticle.xy\x20+\x20v_textureCoordinates;\x0a\x20\x20vec2\x20seed2\x20=\x20nextSpeed.rg\x20+\x20v_textureCoordinates;\x0a\x20\x20vec2\x20randomParticle\x20=\x20generateRandomParticle(seed1);\x0a\x20\x20float\x20randomNumber\x20=\x20rand(seed2,\x20normalRange);\x0a\x0a\x20\x20if(randomNumber\x20<\x20particleDropRate\x20||\x20particleOutbound(nextParticle))\x20{\x0a\x20\x20\x20\x20fragColor\x20=\x20vec4(randomParticle,\x200.0f,\x201.0f);\x20//\x201.0\x20means\x20this\x20is\x20a\x20random\x20particle\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20fragColor\x20=\x20vec4(nextParticle,\x200.0f,\x200.0f);\x0a\x20\x20}\x0a}\x0a',renderParticlesFragmentShader='#version\x20300\x20es\x0aprecision\x20highp\x20float;\x0a\x0ain\x20vec4\x20speed;\x0ain\x20float\x20v_segmentPosition;\x0ain\x20vec2\x20textureCoordinate;\x0a\x0auniform\x20vec2\x20domain;\x0auniform\x20vec2\x20displayRange;\x0auniform\x20sampler2D\x20colorTable;\x0auniform\x20sampler2D\x20segmentsDepthTexture;\x0a\x0aout\x20vec4\x20fragColor;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20const\x20float\x20zero\x20=\x200.0f;\x0a\x20\x20if(speed.a\x20>\x20zero\x20&&\x20speed.b\x20>\x20displayRange.x\x20&&\x20speed.b\x20<\x20displayRange.y)\x20{\x0a\x20\x20\x20\x20float\x20speedLength\x20=\x20clamp(speed.b,\x20domain.x,\x20domain.y);\x0a\x20\x20\x20\x20float\x20normalizedSpeed\x20=\x20(speedLength\x20-\x20domain.x)\x20/\x20(domain.y\x20-\x20domain.x);\x0a\x20\x20\x20\x20vec4\x20baseColor\x20=\x20texture(colorTable,\x20vec2(normalizedSpeed,\x20zero));\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用更平滑的渐变效果\x0a\x20\x20\x20\x20float\x20alpha\x20=\x20smoothstep(0.0f,\x201.0f,\x20v_segmentPosition);\x0a\x20\x20\x20\x20alpha\x20=\x20pow(alpha,\x201.5f);\x20//\x20调整透明度渐变曲线\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20根据速度调整透明度\x0a\x20\x20\x20\x20float\x20speedAlpha\x20=\x20mix(0.3f,\x201.0f,\x20speed.a);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20组合颜色和透明度\x0a\x20\x20\x20\x20fragColor\x20=\x20vec4(baseColor.rgb,\x20baseColor.a\x20*\x20alpha\x20*\x20speedAlpha);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20fragColor\x20=\x20vec4(zero);\x0a\x20\x20}\x0a\x0a\x20\x20float\x20segmentsDepth\x20=\x20texture(segmentsDepthTexture,\x20textureCoordinate).r;\x0a\x20\x20float\x20globeDepth\x20=\x20czm_unpackDepth(texture(czm_globeDepthTexture,\x20textureCoordinate));\x0a\x20\x20if(segmentsDepth\x20<\x20globeDepth)\x20{\x0a\x20\x20\x20\x20fragColor\x20=\x20vec4(zero);\x0a\x20\x20}\x0a}\x0a',renderParticlesVertexShader=_0xaafa2(0x13d,0x167);function _0x9e58(_0x51f9f4,_0xe879b6){const _0x4f7c6e=_0x4f7c();return _0x9e58=function(_0x9e5803,_0xe2dcb8){_0x9e5803=_0x9e5803-0x1d7;let _0x577a54=_0x4f7c6e[_0x9e5803];return _0x577a54;},_0x9e58(_0x51f9f4,_0xe879b6);}const {ShaderSource:ShaderSource$1}=mars3d__namespace[_0xaafa2(0x206,0x1de)];class ShaderManager{static[_0x8e8939(0x1c5,0x22d)](){function _0x30e37f(_0x195606,_0x2a3967){return _0x8e8939(_0x2a3967-0x247,_0x195606);}const _0x2efdf6={};return _0x2efdf6[_0x30e37f(0x3fa,0x3b0)]=[calculateSpeedShader],new ShaderSource$1(_0x2efdf6);}static['getUpdatePositionShader'](){const _0x39597f={};function _0x22fa6a(_0x2f7851,_0x16f2b0){return _0xaafa2(_0x16f2b0- -0x20f,_0x2f7851);}return _0x39597f[_0x22fa6a(0x4,-0x7e)]=[updatePositionShader],new ShaderSource$1(_0x39597f);}static[_0xaafa2(0x14d,0x105)](){const _0x145e5b={};function _0x53f2f5(_0x4f0c1f,_0x4f3b10){return _0x8e8939(_0x4f3b10-0x11d,_0x4f0c1f);}return _0x145e5b[_0x53f2f5(0x246,0x286)]=[renderParticlesVertexShader],new ShaderSource$1(_0x145e5b);}static['getSegmentDrawFragmentShader'](){const _0x14980d={};function _0x547860(_0x138000,_0x5850cf){return _0x8e8939(_0x5850cf- -0x263,_0x138000);}return _0x14980d[_0x547860(-0x16a,-0xfa)]=[renderParticlesFragmentShader],new ShaderSource$1(_0x14980d);}static[_0xaafa2(0x1d9,0x18d)](){const _0x2095db={};function _0x338cb8(_0x480053,_0x588aa0){return _0xaafa2(_0x480053-0x39e,_0x588aa0);}return _0x2095db[_0x338cb8(0x52f,0x4e0)]=[postProcessingPositionFragmentShader],new ShaderSource$1(_0x2095db);}}const {BufferUsage:BufferUsage$1,ClearCommand:ClearCommand$1,Color:Color$2,ComputeCommand,DrawCommand,Geometry:Geometry$1,Matrix4,Pass:Pass$1,PrimitiveType:PrimitiveType$1,RenderState,ShaderProgram,ShaderSource,VertexArray:VertexArray$1,defined,destroyObject}=mars3d__namespace['Cesium'];class CustomPrimitive{constructor(_0x43b143){this['commandType']=_0x43b143[_0x166f8d(-0xa3,-0x25)],this[_0x30d81c(0x470,0x40e)]=_0x43b143['geometry'],this[_0x166f8d(0x25,-0x44)]=_0x43b143['attributeLocations'],this[_0x166f8d(-0x116,-0xb7)]=_0x43b143['primitiveType'];function _0x30d81c(_0x1e7349,_0x5f2e49){return _0x8e8939(_0x5f2e49-0x27b,_0x1e7349);}this[_0x166f8d(0x38,-0x34)]=_0x43b143['uniformMap']||{},this['vertexShaderSource']=_0x43b143['vertexShaderSource'],this['fragmentShaderSource']=_0x43b143[_0x30d81c(0x3d1,0x3d3)];function _0x166f8d(_0x9cea5,_0x2dc8fb){return _0x8e8939(_0x2dc8fb- -0x1e7,_0x9cea5);}this['rawRenderState']=_0x43b143[_0x30d81c(0x3cc,0x398)],this['framebuffer']=_0x43b143['framebuffer'],this['outputTexture']=_0x43b143['outputTexture'],this['autoClear']=_0x43b143['autoClear']??![],this[_0x30d81c(0x468,0x444)]=_0x43b143['preExecute'],this['show']=!![],this['commandToExecute']=undefined,this[_0x166f8d(-0xaa,-0x1f)]=undefined,this['isDynamic']=_0x43b143[_0x166f8d(0x5f,0x3e)]??(()=>!![]),this['autoClear']&&(this[_0x166f8d(-0x7b,-0x1f)]=new ClearCommand$1({'color':new Color$2(0x0,0x0,0x0,0x0),'depth':0x1,'framebuffer':this[_0x166f8d(-0xc3,-0x58)],'pass':Pass$1[_0x30d81c(0x3db,0x3c9)]}));}['createCommand'](_0x1f968f){function _0x13bfa1(_0x275c27,_0x1d30fe){return _0x8e8939(_0x1d30fe- -0x2e5,_0x275c27);}function _0x3dcdf0(_0x4119ae,_0x5622ff){return _0xaafa2(_0x4119ae-0x2b3,_0x5622ff);}if(this['commandType']==='Draw'){const _0x4d7ded={};_0x4d7ded[_0x3dcdf0(0x4f1,0x4e5)]=_0x1f968f,_0x4d7ded['geometry']=this[_0x3dcdf0(0x46e,0x490)],_0x4d7ded[_0x3dcdf0(0x47e,0x48e)]=this['attributeLocations'],_0x4d7ded['bufferUsage']=BufferUsage$1['STATIC_DRAW'];const _0x3f88c7=VertexArray$1['fromGeometry'](_0x4d7ded),_0xcb50a8={};_0xcb50a8['context']=_0x1f968f,_0xcb50a8['vertexShaderSource']=this['vertexShaderSource'],_0xcb50a8['fragmentShaderSource']=this[_0x3dcdf0(0x433,0x4ad)],_0xcb50a8['attributeLocations']=this['attributeLocations'];const _0x155fe2=ShaderProgram['fromCache'](_0xcb50a8),_0x1b512e=RenderState['fromCache'](this[_0x3dcdf0(0x3f8,0x438)]),_0xc82b8e={};return _0xc82b8e[_0x13bfa1(-0x163,-0x13b)]=this,_0xc82b8e[_0x13bfa1(-0x10e,-0x14a)]=_0x3f88c7,_0xc82b8e[_0x13bfa1(-0x16d,-0x1b5)]=this['primitiveType'],_0xc82b8e['modelMatrix']=Matrix4['IDENTITY'],_0xc82b8e['renderState']=_0x1b512e,_0xc82b8e[_0x13bfa1(-0x237,-0x1cc)]=_0x155fe2,_0xc82b8e[_0x13bfa1(-0xff,-0x156)]=this['framebuffer'],_0xc82b8e['uniformMap']=this['uniformMap'],_0xc82b8e[_0x13bfa1(-0x1c4,-0x14b)]=Pass$1['OPAQUE'],new DrawCommand(_0xc82b8e);}else{if(this[_0x13bfa1(-0xe0,-0x123)]==='Compute'){const _0x4af377={};return _0x4af377[_0x13bfa1(-0x16d,-0x13b)]=this,_0x4af377['fragmentShaderSource']=this['fragmentShaderSource'],_0x4af377[_0x13bfa1(-0x154,-0x132)]=this['uniformMap'],_0x4af377['outputTexture']=this['outputTexture'],_0x4af377['persists']=!![],new ComputeCommand(_0x4af377);}else throw new Error(_0x13bfa1(-0x1ad,-0x172));}}[_0x8e8939(0x155,0x1bf)](_0x5d60f5,_0x42a6df){function _0x1e369c(_0x1e32ab,_0x49212e){return _0xaafa2(_0x49212e-0x1a2,_0x1e32ab);}function _0x2961bd(_0x20dffc,_0x54a93a){return _0xaafa2(_0x54a93a-0x110,_0x20dffc);}this['geometry']=_0x42a6df,defined(this[_0x1e369c(0x31b,0x3a2)])&&(this['commandToExecute']['vertexArray']=VertexArray$1['fromGeometry']({'context':_0x5d60f5,'geometry':this[_0x1e369c(0x353,0x35d)],'attributeLocations':this['attributeLocations'],'bufferUsage':BufferUsage$1['STATIC_DRAW']}));}['update'](_0x438285){function _0x3eb73c(_0xd52008,_0x3722b0){return _0xaafa2(_0xd52008- -0x1ce,_0x3722b0);}function _0x11abde(_0x39cfa3,_0x292c8b){return _0xaafa2(_0x39cfa3-0x10a,_0x292c8b);}if(!this['isDynamic']())return;if(!this['show']||!defined(_0x438285))return;!defined(this[_0x11abde(0x30a,0x328)])&&(this['commandToExecute']=this['createCommand'](_0x438285['context']));defined(this['preExecute'])&&this['preExecute']();if(!_0x438285[_0x11abde(0x34a,0x3b9)]){console[_0x3eb73c(-0x86,-0x11)](_0x11abde(0x29e,0x228));return;}defined(this['clearCommand'])&&_0x438285[_0x11abde(0x34a,0x305)]['push'](this['clearCommand']),defined(this[_0x11abde(0x30a,0x363)])&&_0x438285['commandList']['push'](this['commandToExecute']);}['isDestroyed'](){return![];}[_0x8e8939(0x209,0x217)](){function _0x2ad49a(_0x395af1,_0x2ac7b7){return _0xaafa2(_0x395af1-0x320,_0x2ac7b7);}function _0xdcc0de(_0x5ecf95,_0x301aa3){return _0xaafa2(_0x5ecf95- -0x30b,_0x301aa3);}if(defined(this[_0x2ad49a(0x520,0x573)])){var _0x11b343;(_0x11b343=this[_0x2ad49a(0x520,0x51d)][_0x2ad49a(0x461,0x448)])===null||_0x11b343===void 0x0||_0x11b343[_0x2ad49a(0x551,0x518)](),this['commandToExecute'][_0xdcc0de(-0x1ca,-0x1a7)]=undefined;}return destroyObject(this);}}function deepMerge(_0x1a46df,_0x2bf4e3){function _0x3ecbe1(_0x22b1ac,_0x514f4f){return _0xaafa2(_0x22b1ac- -0x23d,_0x514f4f);}if(!_0x1a46df)return _0x2bf4e3;function _0x1f9479(_0x3b896,_0xee38bd){return _0xaafa2(_0x3b896-0x20,_0xee38bd);}if(!_0x2bf4e3)return _0x1a46df;const _0x45616f={..._0x2bf4e3},_0x3f02f4=_0x45616f;for(const _0x499742 in _0x1a46df){if(Object['prototype'][_0x1f9479(0x224,0x19e)][_0x1f9479(0x1a4,0x200)](_0x1a46df,_0x499742)){const _0x27d2af=_0x1a46df[_0x499742],_0x1e7693=_0x2bf4e3[_0x499742];if(Array['isArray'](_0x27d2af)){_0x3f02f4[_0x499742]=_0x27d2af['slice']();continue;}if(_0x27d2af&&typeof _0x27d2af===_0x3ecbe1(-0xd2,-0x75)){_0x3f02f4[_0x499742]=deepMerge(_0x27d2af,_0x1e7693||{});continue;}_0x27d2af!==undefined&&(_0x3f02f4[_0x499742]=_0x27d2af);}}return _0x3f02f4;}const {Cartesian2:Cartesian2$1,FrameRateMonitor,PixelDatatype:PixelDatatype$1,PixelFormat:PixelFormat$1,Sampler:Sampler$1,Texture:Texture$1,TextureMagnificationFilter:TextureMagnificationFilter$1,TextureMinificationFilter:TextureMinificationFilter$1}=mars3d__namespace['Cesium'];class WindParticlesComputing{constructor(_0x233adb,_0xd9b65a,_0x310498,_0x2d12f1,_0x530379){this['context']=_0x233adb,this[_0x4da2c4(0x158,0x124)]=_0x310498;function _0x57cc07(_0x20e2f5,_0x47bf1d){return _0xaafa2(_0x20e2f5-0x1c6,_0x47bf1d);}this['viewerParameters']=_0x2d12f1,this['windData']=_0xd9b65a,this['frameRate']=0x3c,this['frameRateAdjustment']=0x1;const _0xe46203={};_0xe46203['scene']=_0x530379,_0xe46203[_0x4da2c4(0x16e,0x15b)]=0x1,_0xe46203[_0x4da2c4(0x64,0xb7)]=0x0,this['frameRateMonitor']=new FrameRateMonitor(_0xe46203),this['initFrameRate']();function _0x4da2c4(_0x225f3e,_0xdbf40a){return _0xaafa2(_0xdbf40a- -0xd3,_0x225f3e);}this[_0x4da2c4(0x131,0x111)](),this['createParticlesTextures'](),this[_0x4da2c4(0xe5,0x146)]();}['initFrameRate'](){const _0xc5f24=()=>{function _0x50e196(_0x453581,_0x47f63c){return _0x9e58(_0x453581- -0x1c8,_0x47f63c);}function _0x97248f(_0xf10143,_0x203ab1){return _0x9e58(_0x203ab1-0x2d5,_0xf10143);}this[_0x50e196(0x11c,0x12c)]['lastFramesPerSecond']>0x14&&(this['frameRate']=this['frameRateMonitor']['lastFramesPerSecond'],this[_0x50e196(0xc7,0x14e)]=0x3c/Math['max'](this[_0x97248f(0x582,0x580)],0x1));};_0xc5f24();const _0x23992a=setInterval(_0xc5f24,0x3e8),_0x3aa31d=this['destroy']['bind'](this);this['destroy']=()=>{clearInterval(_0x23992a),_0x3aa31d();};}[_0xaafa2(0x1e4,0x176)](){function _0x5811f6(_0x49ffba,_0x1e7b4e){return _0xaafa2(_0x1e7b4e- -0xcf,_0x49ffba);}const _0x2e486a={};function _0x271cda(_0x1045b8,_0x1aca1a){return _0x8e8939(_0x1aca1a-0x29f,_0x1045b8);}_0x2e486a['minificationFilter']=TextureMinificationFilter$1['LINEAR'],_0x2e486a['magnificationFilter']=TextureMagnificationFilter$1['LINEAR'];const _0x594bdc={'context':this['context'],'width':this['windData']['width'],'height':this[_0x5811f6(0x161,0x149)]['height'],'pixelFormat':PixelFormat$1['RED'],'pixelDatatype':PixelDatatype$1[_0x271cda(0x48c,0x4c2)],'flipY':this['options']['flipY']??![],'sampler':new Sampler$1(_0x2e486a)};this['windTextures']={'U':new Texture$1({..._0x594bdc,'source':{'arrayBufferView':new Float32Array(this[_0x5811f6(0x177,0x149)]['u'][_0x5811f6(0xda,0x114)])}}),'V':new Texture$1({..._0x594bdc,'source':{'arrayBufferView':new Float32Array(this['windData']['v']['array'])}})};}['createParticlesTextures'](){const _0x37841a={};function _0x36963e(_0x1604a7,_0x12daf1){return _0x8e8939(_0x12daf1-0x40a,_0x1604a7);}function _0x56842b(_0x523513,_0x1c1480){return _0xaafa2(_0x1c1480- -0xb9,_0x523513);}_0x37841a['minificationFilter']=TextureMinificationFilter$1[_0x36963e(0x586,0x5a6)],_0x37841a['magnificationFilter']=TextureMagnificationFilter$1['NEAREST'];const _0x152214={'context':this['context'],'width':this['options']['particlesTextureSize'],'height':this['options']['particlesTextureSize'],'pixelFormat':PixelFormat$1['RGBA'],'pixelDatatype':PixelDatatype$1[_0x36963e(0x633,0x62d)],'flipY':![],'source':{'arrayBufferView':new Float32Array(this[_0x56842b(0xf1,0x13e)][_0x36963e(0x526,0x5ac)]*this[_0x36963e(0x5c7,0x5d9)]['particlesTextureSize']*0x4)[_0x56842b(0x15c,0x174)](0x0)},'sampler':new Sampler$1(_0x37841a)};this['particlesTextures']={'previousParticlesPosition':new Texture$1(_0x152214),'currentParticlesPosition':new Texture$1(_0x152214),'nextParticlesPosition':new Texture$1(_0x152214),'postProcessingPosition':new Texture$1(_0x152214),'particlesSpeed':new Texture$1(_0x152214)};}['destroyParticlesTextures'](){function _0x36507c(_0x108485,_0x19295c){return _0xaafa2(_0x19295c- -0x25,_0x108485);}Object['values'](this['particlesTextures'])[_0x36507c(0x234,0x20b)](_0x3c0767=>_0x3c0767['destroy']());}['createComputingPrimitives'](){function _0x352ff2(_0x348b1c,_0x444aca){return _0x8e8939(_0x348b1c-0x317,_0x444aca);}function _0x35cc4d(_0x4c516e,_0x12868f){return _0x8e8939(_0x4c516e- -0xb5,_0x12868f);}this['primitives']={'calculateSpeed':new CustomPrimitive({'commandType':'Compute','uniformMap':{'U':()=>this[_0x35cc4d(0xf7,0x12c)]['U'],'V':()=>this['windTextures']['V'],'uRange':()=>new Cartesian2$1(this[_0x352ff2(0x507,0x54f)]['u']['min'],this['windData']['u']['max']),'vRange':()=>new Cartesian2$1(this['windData']['v'][_0x35cc4d(0x84,0x35)],this['windData']['v']['max']),'speedRange':()=>new Cartesian2$1(this['windData']['speed'][_0x352ff2(0x450,0x4c4)],this['windData']['speed'][_0x352ff2(0x494,0x477)]),'currentParticlesPosition':()=>this['particlesTextures']['currentParticlesPosition'],'speedScaleFactor':()=>{return(this['viewerParameters']['pixelSize']+0x32)*this['options']['speedFactor'];},'frameRateAdjustment':()=>this[_0x35cc4d(0x112,0x13a)],'dimension':()=>new Cartesian2$1(this['windData'][_0x352ff2(0x523,0x539)],this[_0x35cc4d(0x13b,0x181)]['height']),'minimum':()=>new Cartesian2$1(this['windData']['bounds']['west'],this['windData']['bounds'][_0x352ff2(0x539,0x4fe)]),'maximum':()=>new Cartesian2$1(this['windData']['bounds'][_0x352ff2(0x457,0x459)],this['windData']['bounds']['north'])},'fragmentShaderSource':ShaderManager['getCalculateSpeedShader'](),'outputTexture':this[_0x352ff2(0x48c,0x502)][_0x35cc4d(0xac,0x4a)],'preExecute':()=>{const _0x5ce4a7=this['particlesTextures'][_0x595845(0x183,0x1b1)];function _0x198ef2(_0x20e007,_0x7e728f){return _0x35cc4d(_0x20e007- -0x12a,_0x7e728f);}function _0x595845(_0x487b1c,_0x4b6175){return _0x35cc4d(_0x4b6175-0x11a,_0x487b1c);}this['particlesTextures']['previousParticlesPosition']=this['particlesTextures']['currentParticlesPosition'],this['particlesTextures'][_0x595845(0x23d,0x1e8)]=this[_0x198ef2(-0x6a,-0x84)]['postProcessingPosition'],this[_0x198ef2(-0x6a,-0x48)]['postProcessingPosition']=_0x5ce4a7,this[_0x595845(0x1f1,0x1ea)]['calculateSpeed']['commandToExecute']&&(this[_0x198ef2(-0x5a,-0x98)]['calculateSpeed']['commandToExecute'][_0x198ef2(0x23,-0x16)]=this[_0x595845(0x21f,0x1da)][_0x198ef2(-0x7e,-0xf4)]);},'isDynamic':()=>this['options']['dynamic']}),'updatePosition':new CustomPrimitive({'commandType':_0x35cc4d(0xba,0x4f),'uniformMap':{'currentParticlesPosition':()=>this['particlesTextures']['currentParticlesPosition'],'particlesSpeed':()=>this[_0x35cc4d(0xc0,0x87)][_0x352ff2(0x478,0x4ab)]},'fragmentShaderSource':ShaderManager['getUpdatePositionShader'](),'outputTexture':this['particlesTextures']['nextParticlesPosition'],'preExecute':()=>{function _0x3b16e7(_0x2ef640,_0x367845){return _0x35cc4d(_0x2ef640-0x128,_0x367845);}function _0x3e692f(_0x2810d9,_0x3ad779){return _0x35cc4d(_0x2810d9-0x19d,_0x3ad779);}this['primitives']['updatePosition'][_0x3b16e7(0x24b,0x2b2)]&&(this[_0x3b16e7(0x1f8,0x1d2)][_0x3e692f(0x291,0x259)]['commandToExecute']['outputTexture']=this[_0x3e692f(0x25d,0x1f4)]['nextParticlesPosition']);},'isDynamic':()=>this['options'][_0x35cc4d(0x82,-0x6)]}),'postProcessingPosition':new CustomPrimitive({'commandType':'Compute','uniformMap':{'nextParticlesPosition':()=>this[_0x35cc4d(0xc0,0x104)]['nextParticlesPosition'],'particlesSpeed':()=>this['particlesTextures'][_0x352ff2(0x478,0x432)],'lonRange':()=>this['viewerParameters'][_0x352ff2(0x4bf,0x49f)],'latRange':()=>this['viewerParameters']['latRange'],'dataLonRange':()=>new Cartesian2$1(this[_0x352ff2(0x507,0x4fa)]['bounds']['west'],this[_0x35cc4d(0x13b,0x105)][_0x35cc4d(0xcc,0x99)]['east']),'dataLatRange':()=>new Cartesian2$1(this['windData']['bounds']['south'],this[_0x352ff2(0x507,0x51c)]['bounds']['north']),'randomCoefficient':function(){function _0x124c2d(_0x16bfda,_0x58199f){return _0x35cc4d(_0x16bfda-0x304,_0x58199f);}return Math[_0x124c2d(0x453,0x4a3)]();},'dropRate':()=>this['options']['dropRate'],'dropRateBump':()=>this[_0x35cc4d(0x11a,0x10b)]['dropRateBump'],'useViewerBounds':()=>this[_0x352ff2(0x4e6,0x47d)]['useViewerBounds']},'fragmentShaderSource':ShaderManager['getPostProcessingPositionShader'](),'outputTexture':this['particlesTextures']['postProcessingPosition'],'preExecute':()=>{function _0x10694d(_0x442b57,_0x11600b){return _0x35cc4d(_0x11600b- -0x2e,_0x442b57);}function _0x47a89f(_0xc2fec3,_0x37d1fb){return _0x352ff2(_0x37d1fb- -0x375,_0xc2fec3);}this['primitives']['postProcessingPosition'][_0x10694d(0xf2,0xf5)]&&(this[_0x10694d(0xa9,0xa2)]['postProcessingPosition']['commandToExecute']['outputTexture']=this[_0x47a89f(0xdf,0x117)][_0x47a89f(0x12d,0x15b)]);},'isDynamic':()=>this['options'][_0x35cc4d(0x82,0x37)]})};}['reCreateWindTextures'](){function _0x580f6c(_0x3be9e5,_0x316793){return _0xaafa2(_0x3be9e5- -0xb2,_0x316793);}this[_0x34ea72(0x5c,0x7d)]['U']['destroy'](),this['windTextures']['V'][_0x34ea72(0xb9,0x12d)]();function _0x34ea72(_0x4b944d,_0x11049b){return _0x8e8939(_0x4b944d- -0x150,_0x11049b);}this['createWindTextures']();}[_0x8e8939(0x122,0x100)](_0x4c3c58){function _0x1445a9(_0xf7e247,_0x334383){return _0x8e8939(_0x334383-0x66,_0xf7e247);}this[_0x1445a9(0x21d,0x256)]=_0x4c3c58,this['reCreateWindTextures']();}['updateOptions'](_0x5ba7ac){const _0x2cd1cb=_0x5ba7ac[_0x5cbfe4(0x22d,0x224)]!==undefined&&_0x5ba7ac['flipY']!==this[_0x5ee0b0(0x1c4,0x202)]['flipY'];function _0x5cbfe4(_0x33f0ea,_0x3e3947){return _0x8e8939(_0x33f0ea-0xbd,_0x3e3947);}function _0x5ee0b0(_0x47ef38,_0x1212f0){return _0xaafa2(_0x1212f0-0xb,_0x47ef38);}this[_0x5ee0b0(0x207,0x202)]=deepMerge(_0x5ba7ac,this['options']),_0x2cd1cb&&this['reCreateWindTextures']();}[_0x8e8939(0x207,0x231)](_0x4cd85e){const {array:_0x4bd948}=_0x4cd85e;let {min:_0x1e9103,max:_0x1f1f54}=_0x4cd85e;const _0x2a3634=new Float32Array(_0x4bd948[_0x32d7ec(-0x76,-0x6c)]);function _0x407765(_0x2cd3fa,_0x276cdf){return _0xaafa2(_0x276cdf- -0x2b7,_0x2cd3fa);}_0x1e9103===undefined&&(console[_0x407765(-0x1d9,-0x16f)](_0x32d7ec(-0x194,-0x126)),_0x1e9103=Math['min'](..._0x4bd948));_0x1f1f54===undefined&&(console[_0x407765(-0x1b9,-0x16f)]('max\x20is\x20undefined,\x20calculate\x20max'),_0x1f1f54=Math['max'](..._0x4bd948));const _0x365258=Math['max'](Math[_0x407765(-0x157,-0xeb)](_0x1e9103),Math['abs'](_0x1f1f54));for(let _0x257b2b=0x0;_0x257b2b<_0x4bd948[_0x407765(-0xea,-0x93)];_0x257b2b++){const _0x6616e9=_0x4bd948[_0x257b2b]/_0x365258;_0x2a3634[_0x257b2b]=_0x6616e9;}function _0x32d7ec(_0x1e9db3,_0x1744b3){return _0x8e8939(_0x1744b3- -0x268,_0x1e9db3);}return _0x2a3634;}['destroy'](){function _0x879bfe(_0x35fdb6,_0x238b1d){return _0xaafa2(_0x238b1d-0x2f0,_0x35fdb6);}function _0x573341(_0x11831a,_0x3104a0){return _0xaafa2(_0x3104a0-0x157,_0x11831a);}Object['values'](this['windTextures'])['forEach'](_0x2d6475=>_0x2d6475[_0x879bfe(0x515,0x521)]()),Object['values'](this['particlesTextures'])['forEach'](_0x3fc805=>_0x3fc805['destroy']()),Object['values'](this['primitives'])['forEach'](_0x8b5a89=>_0x8b5a89['destroy']()),this['frameRateMonitor'][_0x573341(0x351,0x388)]();}}const {Appearance,BufferUsage,Cartesian2,Color:Color$1,ComponentDatatype,Framebuffer,Geometry,GeometryAttribute,GeometryAttributes,PixelDatatype,PixelFormat,PrimitiveType,Sampler,SceneMode,Texture,TextureMagnificationFilter,TextureMinificationFilter,TextureWrap,VertexArray}=mars3d__namespace[_0xaafa2(0x206,0x18e)];class WindParticlesRendering{constructor(_0x3dbd1e,_0x2cea34,_0x363d67,_0x43c70f){function _0x132f7f(_0x3e4ea0,_0x397342){return _0xaafa2(_0x397342- -0x2be,_0x3e4ea0);}this[_0x3abeea(0x162,0x1be)]=_0x3dbd1e;function _0x3abeea(_0x5b11a8,_0x5a4398){return _0xaafa2(_0x5b11a8- -0xdc,_0x5a4398);}this[_0x132f7f(-0xec,-0xc7)]=_0x2cea34,this['viewerParameters']=_0x363d67,this['computing']=_0x43c70f,(typeof this[_0x3abeea(0x11b,0x90)]['particlesTextureSize']!=='number'||this[_0x3abeea(0x11b,0x152)]['particlesTextureSize']<=0x0)&&(console[_0x3abeea(0xa5,0x88)]('Invalid\x20particlesTextureSize.\x20Using\x20default\x20value\x20of\x20256.'),this['options']['particlesTextureSize']=0x100),this['colorTable']=this['createColorTableTexture'](),this[_0x132f7f(-0x41,-0x85)]=this[_0x3abeea(0x15a,0x145)](),this['framebuffers']=this[_0x132f7f(-0x128,-0xc2)](),this['primitives']=this['createPrimitives']();}['createRenderingTextures'](){const _0x324dec={};_0x324dec[_0x56b52b(0x15a,0x195)]=this['context'],_0x324dec['width']=this['context']['drawingBufferWidth'],_0x324dec['height']=this['context'][_0x56b52b(0x13d,0xf1)],_0x324dec['pixelFormat']=PixelFormat['RGBA'],_0x324dec['pixelDatatype']=PixelDatatype['UNSIGNED_BYTE'];const _0x4c9b06=_0x324dec,_0x5a1c16={};function _0x56b52b(_0x8905e0,_0x590e07){return _0x8e8939(_0x590e07- -0x81,_0x8905e0);}_0x5a1c16['context']=this['context'],_0x5a1c16[_0x56b52b(0x19f,0x18b)]=this[_0x56b52b(0x21f,0x195)][_0x5dad36(-0x35,-0xb1)],_0x5a1c16['height']=this['context']['drawingBufferHeight'],_0x5a1c16['pixelFormat']=PixelFormat['DEPTH_COMPONENT'];function _0x5dad36(_0x232441,_0x53a4db){return _0xaafa2(_0x232441- -0x242,_0x53a4db);}_0x5a1c16[_0x5dad36(-0xf6,-0x71)]=PixelDatatype[_0x5dad36(-0xca,-0x148)];const _0x515804=_0x5a1c16;return{'segmentsColor':new Texture(_0x4c9b06),'segmentsDepth':new Texture(_0x515804)};}[_0x8e8939(0x1d4,0x1b8)](){function _0x2baaa9(_0x513795,_0x10d9fc){return _0xaafa2(_0x513795- -0x203,_0x10d9fc);}function _0x1ee178(_0x760af3,_0x26135d){return _0x8e8939(_0x26135d-0x1ff,_0x760af3);}const _0x12ab4c={};return _0x12ab4c[_0x2baaa9(0x3b,0x4f)]=this['context'],_0x12ab4c['colorTextures']=[this['textures'][_0x1ee178(0x428,0x426)]],_0x12ab4c[_0x2baaa9(-0x3b,-0x97)]=this[_0x2baaa9(0x36,-0x7)]['segmentsDepth'],{'segments':new Framebuffer(_0x12ab4c)};}[_0xaafa2(0x243,0x24d)](){function _0x33ddc1(_0x265323,_0x4d5dc0){return _0x8e8939(_0x4d5dc0-0x40,_0x265323);}function _0x21f173(_0x57d304,_0x2b5ee5){return _0xaafa2(_0x2b5ee5-0x219,_0x57d304);}Object[_0x21f173(0x4aa,0x421)](this[_0x21f173(0x3ea,0x440)])[_0x21f173(0x4d1,0x449)](_0x5d0610=>{function _0x397520(_0x1210e1,_0xa1fbbe){return _0x21f173(_0xa1fbbe,_0x1210e1- -0x3e7);}_0x5d0610[_0x397520(0x63,0xba)]();});}['createColorTableTexture'](){const _0x2d6f52=new Float32Array(this['options']['colors'][_0x22ed08(0x378,0x39a)](_0x339524=>{function _0x1b7992(_0x3c79b4,_0x3f771d){return _0x22ed08(_0x3c79b4,_0x3f771d-0x1fc);}function _0x24339f(_0x1feb99,_0x5dd60f){return _0x22ed08(_0x1feb99,_0x5dd60f-0x11b);}const _0x3aecdf=Color$1[_0x24339f(0x55d,0x4da)](_0x339524);return[_0x3aecdf['red'],_0x3aecdf['green'],_0x3aecdf['blue'],_0x3aecdf[_0x24339f(0x3cd,0x3dc)]];})),_0x6ad623={};_0x6ad623[_0x22ed08(0x2bc,0x300)]=TextureMinificationFilter['LINEAR'];function _0x22ed08(_0x1acba2,_0x563eae){return _0x8e8939(_0x563eae-0x1af,_0x1acba2);}function _0x336c55(_0x32ca54,_0x491aed){return _0xaafa2(_0x32ca54-0x36b,_0x491aed);}return _0x6ad623['magnificationFilter']=TextureMagnificationFilter[_0x336c55(0x58b,0x569)],_0x6ad623['wrapS']=TextureWrap[_0x22ed08(0x388,0x302)],_0x6ad623['wrapT']=TextureWrap[_0x22ed08(0x303,0x302)],new Texture({'context':this['context'],'width':this['options']['colors'][_0x22ed08(0x403,0x3ab)],'height':0x1,'pixelFormat':PixelFormat['RGBA'],'pixelDatatype':PixelDatatype[_0x336c55(0x5b6,0x52c)],'sampler':new Sampler(_0x6ad623),'source':{'width':this['options']['colors']['length'],'height':0x1,'arrayBufferView':_0x2d6f52}});}['createSegmentsGeometry'](){function _0x910f0d(_0x1205ae,_0x58afdf){return _0xaafa2(_0x58afdf-0x468,_0x1205ae);}const _0x416526=0x4,_0x3b1005=this['options']['particlesTextureSize'];let _0x1d0a7f=[];for(let _0x2eb424=0x0;_0x2eb424<_0x3b1005;_0x2eb424++){for(let _0xa5ea94=0x0;_0xa5ea94<_0x3b1005;_0xa5ea94++){for(let _0x1eee5e=0x0;_0x1eee5e<_0x416526;_0x1eee5e++){_0x1d0a7f['push'](_0x2eb424/_0x3b1005),_0x1d0a7f['push'](_0xa5ea94/_0x3b1005);}}}_0x1d0a7f=new Float32Array(_0x1d0a7f);const _0x7b9226=this[_0x910f0d(0x648,0x65f)]['particlesTextureSize']**0x2;let _0x238e45=[];for(let _0x56a045=0x0;_0x56a045<_0x7b9226;_0x56a045++){_0x238e45[_0x910f0d(0x63b,0x60e)](-0x1,-0x1,0x0,-0x1,0x1,0x0,0x1,-0x1,0x0,0x1,0x1,0x0);}_0x238e45=new Float32Array(_0x238e45);let _0x13b2e1=[];for(let _0x45690b=0x0,_0x348500=0x0;_0x45690b<_0x7b9226;_0x45690b++){_0x13b2e1['push'](_0x348500+0x0,_0x348500+0x1,_0x348500+0x2,_0x348500+0x2,_0x348500+0x1,_0x348500+0x3),_0x348500+=_0x416526;}_0x13b2e1=new Uint32Array(_0x13b2e1);const _0x219180={};_0x219180[_0x1569f5(0x570,0x4fb)]=ComponentDatatype[_0x910f0d(0x707,0x6b3)],_0x219180['componentsPerAttribute']=0x2,_0x219180['values']=_0x1d0a7f;const _0x47e136={};_0x47e136['componentDatatype']=ComponentDatatype['FLOAT'];function _0x1569f5(_0xb492a1,_0x116385){return _0x8e8939(_0x116385-0x328,_0xb492a1);}_0x47e136['componentsPerAttribute']=0x3,_0x47e136[_0x910f0d(0x636,0x670)]=_0x238e45;const _0x267b18=new Geometry({'attributes':new GeometryAttributes({'st':new GeometryAttribute(_0x219180),'normal':new GeometryAttribute(_0x47e136)}),'indices':_0x13b2e1});return _0x267b18;}[_0xaafa2(0x1c9,0x13e)](_0x2bd689){const _0x3f7b81={'viewport':undefined,'depthTest':undefined,'depthMask':undefined,'blending':undefined,..._0x2bd689};return Appearance['getDefaultRenderState'](!![],![],_0x3f7b81);}[_0x8e8939(0x1f7,0x1ce)](){const _0xddaf77={};_0xddaf77['st']=0x0,_0xddaf77['normal']=0x1;const _0x18faa3={};_0x18faa3[_0x1c8a7b(-0x11e,-0x142)]=!![];const _0x10bbb4={};_0x10bbb4['enabled']=!![],_0x10bbb4['blendEquation']=WebGLRenderingContext['FUNC_ADD'],_0x10bbb4['blendFuncSource']=WebGLRenderingContext['SRC_ALPHA'];function _0x1c8a7b(_0xd4333e,_0xde953){return _0xaafa2(_0xde953- -0x2b4,_0xd4333e);}_0x10bbb4['blendFuncDestination']=WebGLRenderingContext[_0x1c8a7b(-0xf5,-0x104)];const _0x10d8aa={};_0x10d8aa['viewport']=undefined,_0x10d8aa['depthTest']=_0x18faa3,_0x10d8aa['depthMask']=!![],_0x10d8aa['blending']=_0x10bbb4;const _0x1637b3=new CustomPrimitive({'commandType':_0x1c8a7b(-0xec,-0x6f),'attributeLocations':_0xddaf77,'geometry':this[_0x34821b(0x104,0xde)](),'primitiveType':PrimitiveType[_0x34821b(0x77,0x4b)],'uniformMap':{'previousParticlesPosition':()=>this['computing'][_0x34821b(0x99,0x94)]['previousParticlesPosition'],'currentParticlesPosition':()=>this[_0x34821b(0x1e,0x32)]['particlesTextures'][_0x1c8a7b(-0x137,-0x109)],'postProcessingPosition':()=>this['computing'][_0x34821b(0xca,0x94)]['postProcessingPosition'],'particlesSpeed':()=>this[_0x34821b(-0x33,0x32)][_0x34821b(0x7f,0x94)][_0x34821b(0x9a,0x80)],'frameRateAdjustment':()=>this['computing'][_0x1c8a7b(-0x121,-0xc5)],'colorTable':()=>this['colorTable'],'domain':()=>{var _0x26c26c,_0x3f4604;const _0xcc043d=new Cartesian2(((_0x26c26c=this[_0x1673ec(0x94,0x89)]['domain'])===null||_0x26c26c===void 0x0?void 0x0:_0x26c26c['min'])??this['computing']['windData']['speed'][_0x1673ec(-0x55,-0xd)],((_0x3f4604=this[_0x1673ec(0xce,0x89)]['domain'])===null||_0x3f4604===void 0x0?void 0x0:_0x3f4604['max'])??this['computing'][_0x1673ec(0x98,0xaa)][_0x1673ec(0x3e,-0x1e)][_0x3d2dda(0x480,0x4d6)]);function _0x3d2dda(_0x453e7d,_0x2663ec){return _0x34821b(_0x2663ec,_0x453e7d-0x3e4);}function _0x1673ec(_0x336fbe,_0x515e8a){return _0x1c8a7b(_0x336fbe,_0x515e8a-0x146);}return _0xcc043d;},'displayRange':()=>{var _0x269f52,_0x1fffde;const _0x2bf9bd=new Cartesian2(((_0x269f52=this['options']['displayRange'])===null||_0x269f52===void 0x0?void 0x0:_0x269f52[_0x35cb67(-0x96,-0x95)])??this['computing']['windData'][_0x35cb67(-0xe9,-0xa6)][_0x35cb67(-0x55,-0x95)],((_0x1fffde=this['options']['displayRange'])===null||_0x1fffde===void 0x0?void 0x0:_0x1fffde[_0x2891bf(0x597,0x523)])??this['computing']['windData']['speed']['max']);function _0x2891bf(_0x3f309e,_0xee55fc){return _0x1c8a7b(_0x3f309e,_0xee55fc-0x632);}function _0x35cb67(_0x9925c2,_0x577abd){return _0x1c8a7b(_0x9925c2,_0x577abd-0xbe);}return _0x2bf9bd;},'particleHeight':()=>this['options']['fixedHeight']||0x0,'aspect':()=>this['context']['drawingBufferWidth']/this['context'][_0x34821b(0x8b,0x91)],'pixelSize':()=>this['viewerParameters']['pixelSize'],'lineWidth':()=>{const _0x2f3410={};_0x2f3410['min']=0x1,_0x2f3410[_0x291e30(-0x4e,-0x54)]=0x2;const _0x3f3c3c=this['options']['lineWidth']||_0x2f3410;function _0x2e792f(_0x27741a,_0x4cb21d){return _0x34821b(_0x27741a,_0x4cb21d-0x4b2);}function _0x291e30(_0x31f2bf,_0x568258){return _0x34821b(_0x568258,_0x31f2bf- -0xea);}return new Cartesian2(_0x3f3c3c[_0x291e30(-0x92,-0x94)],_0x3f3c3c[_0x2e792f(0x5d1,0x54e)]);},'lineLength':()=>{function _0x593089(_0xf9ed23,_0x1ab0ca){return _0x34821b(_0x1ab0ca,_0xf9ed23-0x266);}function _0x2215bd(_0x3d1bf8,_0x402bf6){return _0x1c8a7b(_0x3d1bf8,_0x402bf6-0x264);}const _0x25b2c7={};_0x25b2c7['min']=0x14,_0x25b2c7['max']=0x64;const _0x288f1f=this[_0x593089(0x354,0x381)][_0x2215bd(0x1a9,0x146)]||_0x25b2c7;return new Cartesian2(_0x288f1f['min'],_0x288f1f[_0x593089(0x302,0x2b4)]);},'is3D':()=>this['viewerParameters']['sceneMode']===SceneMode[_0x1c8a7b(-0xe9,-0xd5)],'segmentsDepthTexture':()=>this[_0x34821b(0xd4,0x130)]['segmentsDepth']},'vertexShaderSource':ShaderManager[_0x34821b(0x12,0x44)](),'fragmentShaderSource':ShaderManager['getSegmentDrawFragmentShader'](),'rawRenderState':this[_0x1c8a7b(-0x13a,-0xeb)](_0x10d8aa)});function _0x34821b(_0x54728a,_0x58e089){return _0xaafa2(_0x58e089- -0x109,_0x54728a);}const _0x55eb0d={};return _0x55eb0d[_0x1c8a7b(-0x128,-0x145)]=_0x1637b3,_0x55eb0d;}['onParticlesTextureSizeChange'](){const _0x3e8302=this['createSegmentsGeometry']();this[_0x561fd0(0x41a,0x41d)][_0x230cea(0x31,0x34)]['geometry']=_0x3e8302;function _0x230cea(_0x539980,_0x5a62c7){return _0x8e8939(_0x5a62c7- -0x113,_0x539980);}const _0x501254={};_0x501254['context']=this['context'],_0x501254[_0x561fd0(0x428,0x3cf)]=_0x3e8302,_0x501254['attributeLocations']=this['primitives'][_0x561fd0(0x3dc,0x43f)]['attributeLocations'],_0x501254['bufferUsage']=BufferUsage['STATIC_DRAW'];const _0x3f89ba=VertexArray[_0x561fd0(0x400,0x382)](_0x501254);function _0x561fd0(_0x15ba8d,_0xf616fe){return _0xaafa2(_0x15ba8d-0x26d,_0xf616fe);}this['primitives']['segments'][_0x561fd0(0x46d,0x4c0)]&&(this[_0x561fd0(0x41a,0x498)][_0x561fd0(0x3dc,0x426)][_0x561fd0(0x46d,0x4bd)][_0x561fd0(0x430,0x4ac)]=_0x3f89ba);}['onColorTableChange'](){function _0x39dd4c(_0x36edc4,_0x233f94){return _0xaafa2(_0x36edc4-0x210,_0x233f94);}this[_0x46ea1a(0x4d7,0x48b)][_0x46ea1a(0x4f8,0x52e)]();function _0x46ea1a(_0x542e43,_0x1bd291){return _0x8e8939(_0x1bd291-0x325,_0x542e43);}this['colorTable']=this['createColorTableTexture']();}['updateOptions'](_0x1207ef){function _0x13317f(_0x41057a,_0x5b95d9){return _0xaafa2(_0x5b95d9- -0x272,_0x41057a);}function _0x2a69c3(_0x2674b9,_0x2682c9){return _0xaafa2(_0x2682c9-0x15f,_0x2674b9);}const _0x4d77db=_0x1207ef['colors']&&JSON[_0x13317f(-0xbe,-0x115)](_0x1207ef['colors'])!==JSON['stringify'](this[_0x2a69c3(0x2ed,0x356)][_0x13317f(-0x92,-0x10c)]);this[_0x13317f(-0x53,-0x7b)]=deepMerge(_0x1207ef,this['options']),_0x4d77db&&this[_0x2a69c3(0x31c,0x2db)]();}['destroy'](){Object[_0x77e635(0x535,0x583)](this['framebuffers'])['forEach'](_0x1e217e=>{_0x1e217e['destroy']();});function _0x281fff(_0x5596ee,_0x2aedf4){return _0xaafa2(_0x5596ee-0x9c,_0x2aedf4);}function _0x77e635(_0x32f786,_0x4360d5){return _0x8e8939(_0x32f786-0x355,_0x4360d5);}Object['values'](this[_0x281fff(0x249,0x1e5)])[_0x77e635(0x55d,0x4dc)](_0x495bd9=>{_0x495bd9['destroy']();}),this['colorTable']['destroy']();}}const {ClearCommand,Color,Pass}=mars3d__namespace[_0x8e8939(0x1de,0x1ef)];class WindParticleSystem{constructor(_0x33fb9b,_0x4b1c38,_0x518b53,_0x39fdf8,_0x5313a3){this['context']=_0x33fb9b;function _0x46fbff(_0x72c85a,_0x4da729){return _0xaafa2(_0x4da729-0x3bc,_0x72c85a);}this['options']=_0x518b53,this[_0x46fbff(0x571,0x58a)]=_0x39fdf8;function _0x49f4b5(_0x5e032d,_0xf6bbb8){return _0x8e8939(_0x5e032d-0xec,_0xf6bbb8);}this[_0x49f4b5(0x1ff,0x253)]=new WindParticlesComputing(_0x33fb9b,_0x4b1c38,_0x518b53,_0x39fdf8,_0x5313a3),this['rendering']=new WindParticlesRendering(_0x33fb9b,_0x518b53,_0x39fdf8,this['computing']),this['clearFramebuffers']();}['getPrimitives'](){function _0x570dd6(_0x5356bd,_0x567cb9){return _0x8e8939(_0x5356bd- -0xa4,_0x567cb9);}const _0x3c43d6=[this[_0x41a3be(0x264,0x2ec)]['primitives'][_0x570dd6(0x16e,0x1b3)],this[_0x41a3be(0x2c4,0x2ec)][_0x570dd6(0xe1,0x10a)]['updatePosition'],this[_0x570dd6(0x6f,0x8c)][_0x570dd6(0xe1,0xbb)]['postProcessingPosition'],this['rendering']['primitives']['segments']];function _0x41a3be(_0x3a4947,_0x58dc90){return _0x8e8939(_0x58dc90-0x1d9,_0x3a4947);}return _0x3c43d6;}[_0xaafa2(0x1bd,0x153)](){const _0x1ca74b=new ClearCommand({'color':new Color(0x0,0x0,0x0,0x0),'depth':0x1,'framebuffer':undefined,'pass':Pass['OPAQUE']});function _0x5da3f1(_0x191ce3,_0xca0f2d){return _0x8e8939(_0xca0f2d-0x6c,_0x191ce3);}function _0x40a358(_0x40b479,_0x386094){return _0x8e8939(_0x386094-0x429,_0x40b479);}Object[_0x40a358(0x4fd,0x55b)](this['rendering']['framebuffers'])[_0x40a358(0x68e,0x631)](_0x12bf1=>{function _0x310ddb(_0x155c89,_0x284641){return _0x40a358(_0x284641,_0x155c89- -0x1c0);}_0x1ca74b['framebuffer']=this[_0xb0aa46(0x327,0x385)]['framebuffers'][_0x12bf1];function _0xb0aa46(_0x3e89b4,_0x37239a){return _0x40a358(_0x3e89b4,_0x37239a- -0x220);}_0x1ca74b[_0xb0aa46(0x330,0x39f)](this['context']);});}['changeOptions'](_0x31a1e3){function _0x187f65(_0x54cf33,_0x8e775c){return _0xaafa2(_0x8e775c- -0x1e1,_0x54cf33);}let _0x5bca39=![];function _0x5cc3c(_0x15b2b9,_0xa62e76){return _0xaafa2(_0xa62e76-0x1eb,_0x15b2b9);}_0x31a1e3['particlesTextureSize']&&this['options']['particlesTextureSize']!==_0x31a1e3[_0x5cc3c(0x3b4,0x3b5)]&&(_0x5bca39=!![]);const _0x205991=deepMerge(_0x31a1e3,this['options']);if(_0x205991['particlesTextureSize']<0x1)throw new Error(_0x5cc3c(0x378,0x3f7));this['options']=_0x205991,this[_0x187f65(-0xa5,-0x3d)]['updateOptions'](_0x31a1e3),this['computing']['updateOptions'](_0x31a1e3),_0x5bca39&&(this['computing'][_0x187f65(0x3a,-0x7)](),this[_0x187f65(-0x117,-0xa6)][_0x187f65(0x33,-0x12)](),this['rendering']['onParticlesTextureSizeChange']());}[_0x8e8939(0x182,0x15d)](_0x1c7639){this['viewerParameters']=_0x1c7639,this['computing']['viewerParameters']=_0x1c7639;function _0x2c69c2(_0x51eac4,_0x4be963){return _0x8e8939(_0x4be963- -0x113,_0x51eac4);}this['rendering'][_0x2c69c2(0xba,0x93)]=_0x1c7639;}[_0xaafa2(0x231,0x28e)](){function _0x440ec0(_0x16f5f4,_0x432e50){return _0xaafa2(_0x432e50- -0x5e,_0x16f5f4);}function _0x465867(_0x1ef891,_0x4a59ca){return _0xaafa2(_0x1ef891-0x29f,_0x4a59ca);}this[_0x440ec0(0x11b,0xdd)][_0x465867(0x4d0,0x499)](),this['rendering'][_0x465867(0x4d0,0x51f)]();}}const Cesium$1=mars3d__namespace['Cesium'],BaseLayer$1=mars3d__namespace['layer'][_0x8e8939(0x1a5,0x225)],_0x372c25={};_0x372c25['min']=0x1,_0x372c25[_0x8e8939(0x17d,0x128)]=0x2;const _0x329450={};_0x329450['min']=0x14,_0x329450['max']=0x64;function _0x4f7c(){const _0x403d0d=['outputTexture','strokeStyle','random','fill','samplingWindow','processWindData','forEach','destroy','mouse_down','getRandomLatLng','width','getV','createRenderingTextures','wind','fromCssColorString','textures','calculateSpeed','type','position','_tomap','context','lineTo','commandList','now','style','destoryRenderingFramebuffers','frameRateMonitor','Draw','initWorker','getParticles','mode','bind','south','FLOAT','_updateIng','isDynamic','EventType','segmentsColor','interpolated','tlat','getUVByPoint','alpha','computing','removeEventListener','#version\x20300\x20es\x0aprecision\x20highp\x20float;\x0a\x0ain\x20vec2\x20st;\x0ain\x20vec3\x20normal;\x0a\x0auniform\x20sampler2D\x20previousParticlesPosition;\x0auniform\x20sampler2D\x20currentParticlesPosition;\x0auniform\x20sampler2D\x20postProcessingPosition;\x0auniform\x20sampler2D\x20particlesSpeed;\x0a\x0auniform\x20float\x20frameRateAdjustment;\x0auniform\x20float\x20particleHeight;\x0auniform\x20float\x20aspect;\x0auniform\x20float\x20pixelSize;\x0auniform\x20vec2\x20lineWidth;\x0auniform\x20vec2\x20lineLength;\x0auniform\x20vec2\x20domain;\x0auniform\x20bool\x20is3D;\x0a\x0a//\x20添加输出变量传递给片元着色器\x0aout\x20vec4\x20speed;\x0aout\x20float\x20v_segmentPosition;\x0aout\x20vec2\x20textureCoordinate;\x0a\x0a//\x20添加结构体定义\x0astruct\x20adjacentPoints\x20{\x0a\x20\x20vec4\x20previous;\x0a\x20\x20vec4\x20current;\x0a\x20\x20vec4\x20next;\x0a};\x0a\x0avec3\x20convertCoordinate(vec2\x20lonLat)\x20{\x0a\x20\x20\x20\x20//\x20WGS84\x20(lon,\x20lat,\x20lev)\x20->\x20ECEF\x20(x,\x20y,\x20z)\x0a\x20\x20\x20\x20//\x20read\x20https://en.wikipedia.org/wiki/Geographic_coordinate_conversion#From_geodetic_to_ECEF_coordinates\x20for\x20detail\x0a\x0a\x20\x20\x20\x20//\x20WGS\x2084\x20geometric\x20constants\x0a\x20\x20float\x20a\x20=\x206378137.0f;\x20//\x20Semi-major\x20axis\x0a\x20\x20float\x20b\x20=\x206356752.3142f;\x20//\x20Semi-minor\x20axis\x0a\x20\x20float\x20e2\x20=\x206.69437999014e-3f;\x20//\x20First\x20eccentricity\x20squared\x0a\x0a\x20\x20float\x20latitude\x20=\x20radians(lonLat.y);\x0a\x20\x20float\x20longitude\x20=\x20radians(lonLat.x);\x0a\x0a\x20\x20float\x20cosLat\x20=\x20cos(latitude);\x0a\x20\x20float\x20sinLat\x20=\x20sin(latitude);\x0a\x20\x20float\x20cosLon\x20=\x20cos(longitude);\x0a\x20\x20float\x20sinLon\x20=\x20sin(longitude);\x0a\x0a\x20\x20float\x20N_Phi\x20=\x20a\x20/\x20sqrt(1.0f\x20-\x20e2\x20*\x20sinLat\x20*\x20sinLat);\x0a\x20\x20float\x20h\x20=\x20particleHeight;\x20//\x20it\x20should\x20be\x20high\x20enough\x20otherwise\x20the\x20particle\x20may\x20not\x20pass\x20the\x20terrain\x20depth\x20test\x0a\x20\x20vec3\x20cartesian\x20=\x20vec3(0.0f);\x0a\x20\x20cartesian.x\x20=\x20(N_Phi\x20+\x20h)\x20*\x20cosLat\x20*\x20cosLon;\x0a\x20\x20cartesian.y\x20=\x20(N_Phi\x20+\x20h)\x20*\x20cosLat\x20*\x20sinLon;\x0a\x20\x20cartesian.z\x20=\x20((b\x20*\x20b)\x20/\x20(a\x20*\x20a)\x20*\x20N_Phi\x20+\x20h)\x20*\x20sinLat;\x0a\x20\x20return\x20cartesian;\x0a}\x0a\x0avec4\x20calculateProjectedCoordinate(vec2\x20lonLat)\x20{\x0a\x20\x20if(is3D)\x20{\x0a\x20\x20\x20\x20vec3\x20particlePosition\x20=\x20convertCoordinate(lonLat);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用\x20modelViewProjection\x20矩阵进行投影变换\x0a\x20\x20\x20\x20vec4\x20projectedPosition\x20=\x20czm_modelViewProjection\x20*\x20vec4(particlePosition,\x201.0f);\x0a\x20\x20\x20\x20return\x20projectedPosition;\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20vec3\x20position2D\x20=\x20vec3(radians(lonLat.x),\x20radians(lonLat.y),\x200.0f);\x0a\x20\x20\x20\x20return\x20czm_modelViewProjection\x20*\x20vec4(position2D,\x201.0f);\x0a\x20\x20}\x0a}\x0a\x0avec4\x20calculateOffsetOnNormalDirection(vec4\x20pointA,\x20vec4\x20pointB,\x20float\x20offsetSign,\x20float\x20widthFactor)\x20{\x0a\x20\x20vec2\x20aspectVec2\x20=\x20vec2(aspect,\x201.0f);\x0a\x20\x20vec2\x20pointA_XY\x20=\x20(pointA.xy\x20/\x20pointA.w)\x20*\x20aspectVec2;\x0a\x20\x20vec2\x20pointB_XY\x20=\x20(pointB.xy\x20/\x20pointB.w)\x20*\x20aspectVec2;\x0a\x0a\x20\x20\x20\x20//\x20计算方向向量\x0a\x20\x20vec2\x20direction\x20=\x20normalize(pointB_XY\x20-\x20pointA_XY);\x0a\x0a\x20\x20\x20\x20//\x20计算法向量\x0a\x20\x20vec2\x20normalVector\x20=\x20vec2(-direction.y,\x20direction.x);\x0a\x20\x20normalVector.x\x20=\x20normalVector.x\x20/\x20aspect;\x0a\x0a\x20\x20\x20\x20//\x20使用\x20widthFactor\x20调整宽度\x0a\x20\x20float\x20offsetLength\x20=\x20widthFactor\x20*\x20lineWidth.y;\x0a\x20\x20normalVector\x20=\x20offsetLength\x20*\x20normalVector;\x0a\x0a\x20\x20vec4\x20offset\x20=\x20vec4(offsetSign\x20*\x20normalVector,\x200.0f,\x200.0f);\x0a\x20\x20return\x20offset;\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20//\x20翻转\x20Y\x20轴坐标\x0a\x20\x20vec2\x20flippedIndex\x20=\x20vec2(st.x,\x201.0f\x20-\x20st.y);\x0a\x0a\x20\x20vec2\x20particleIndex\x20=\x20flippedIndex;\x0a\x20\x20speed\x20=\x20texture(particlesSpeed,\x20particleIndex);\x0a\x0a\x20\x20vec2\x20previousPosition\x20=\x20texture(previousParticlesPosition,\x20particleIndex).rg;\x0a\x20\x20vec2\x20currentPosition\x20=\x20texture(currentParticlesPosition,\x20particleIndex).rg;\x0a\x20\x20vec2\x20nextPosition\x20=\x20texture(postProcessingPosition,\x20particleIndex).rg;\x0a\x0a\x20\x20float\x20isAnyRandomPointUsed\x20=\x20texture(postProcessingPosition,\x20particleIndex).a\x20+\x0a\x20\x20\x20\x20texture(currentParticlesPosition,\x20particleIndex).a\x20+\x0a\x20\x20\x20\x20texture(previousParticlesPosition,\x20particleIndex).a;\x0a\x0a\x20\x20adjacentPoints\x20projectedCoordinates;\x0a\x20\x20if(isAnyRandomPointUsed\x20>\x200.0f)\x20{\x0a\x20\x20\x20\x20projectedCoordinates.previous\x20=\x20calculateProjectedCoordinate(previousPosition);\x0a\x20\x20\x20\x20projectedCoordinates.current\x20=\x20projectedCoordinates.previous;\x0a\x20\x20\x20\x20projectedCoordinates.next\x20=\x20projectedCoordinates.previous;\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20projectedCoordinates.previous\x20=\x20calculateProjectedCoordinate(previousPosition);\x0a\x20\x20\x20\x20projectedCoordinates.current\x20=\x20calculateProjectedCoordinate(currentPosition);\x0a\x20\x20\x20\x20projectedCoordinates.next\x20=\x20calculateProjectedCoordinate(nextPosition);\x0a\x20\x20}\x0a\x0a\x20\x20int\x20pointToUse\x20=\x20int(normal.x);\x0a\x20\x20float\x20offsetSign\x20=\x20normal.y;\x0a\x20\x20vec4\x20offset\x20=\x20vec4(0.0f);\x0a\x0a\x20\x20\x20\x20//\x20计算速度相关的宽度和长度因子\x0a\x20\x20float\x20speedLength\x20=\x20clamp(speed.b,\x20domain.x,\x20domain.y);\x0a\x20\x20float\x20normalizedSpeed\x20=\x20(speedLength\x20-\x20domain.x)\x20/\x20(domain.y\x20-\x20domain.x);\x0a\x0a\x20\x20\x20\x20//\x20根据速度计算宽度\x0a\x20\x20float\x20widthFactor\x20=\x20mix(lineWidth.x,\x20lineWidth.y,\x20normalizedSpeed);\x0a\x20\x20widthFactor\x20*=\x20(pointToUse\x20<\x200\x20?\x201.0f\x20:\x200.5f);\x20//\x20头部更宽,尾部更窄\x0a\x0a\x20\x20\x20\x20//\x20Calculate\x20length\x20based\x20on\x20speed\x0a\x20\x20float\x20lengthFactor\x20=\x20mix(lineLength.x,\x20lineLength.y,\x20normalizedSpeed)\x20*\x20pixelSize;\x0a\x0a\x20\x20if(pointToUse\x20==\x201)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20头部位置\x0a\x20\x20\x20\x20offset\x20=\x20pixelSize\x20*\x20calculateOffsetOnNormalDirection(projectedCoordinates.previous,\x20projectedCoordinates.current,\x20offsetSign,\x20widthFactor);\x0a\x20\x20\x20\x20gl_Position\x20=\x20projectedCoordinates.previous\x20+\x20offset;\x0a\x20\x20\x20\x20v_segmentPosition\x20=\x200.0f;\x20//\x20头部\x0a\x20\x20}\x20else\x20if(pointToUse\x20==\x20-1)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20Get\x20direction\x20and\x20normalize\x20it\x20to\x20length\x201.0\x0a\x20\x20\x20\x20vec4\x20direction\x20=\x20normalize(projectedCoordinates.next\x20-\x20projectedCoordinates.current);\x0a\x20\x20\x20\x20vec4\x20extendedPosition\x20=\x20projectedCoordinates.current\x20+\x20direction\x20*\x20lengthFactor;\x0a\x0a\x20\x20\x20\x20offset\x20=\x20pixelSize\x20*\x20calculateOffsetOnNormalDirection(projectedCoordinates.current,\x20extendedPosition,\x20offsetSign,\x20widthFactor);\x0a\x20\x20\x20\x20gl_Position\x20=\x20extendedPosition\x20+\x20offset;\x0a\x20\x20\x20\x20v_segmentPosition\x20=\x201.0f;\x20//\x20尾部\x0a\x20\x20}\x0a\x0a\x20\x20textureCoordinate\x20=\x20st;\x0a}\x0a','toDegrees','cols','globalAlpha','shaderProgram','redraw','show','globalCompositeOperation','rawRenderState','xmin','addEventListener','warn','_randomParticle','updateWindData','vmin','pixelDatatype','getSegmentDrawVertexShader','positionWC','maxAge','speed','16561648zUAFlv','requestRender','vdata','TRIANGLES','layer','container','talt','primitiveType','_calcUV','keys','_showHook','ymax','stringify','logInfo','dynamic','canvasWidth','min','lineWidth','camera','lighter','height','colors','_updateIng2','east','getDataAtLonLat','min\x20is\x20undefined,\x20calculate\x20min','object','sqrt','removeChild','value','segments','SceneMode','cartesianToCartographic','enabled','percentageChanged','previousParticlesPosition','546945JgaBTK','OPAQUE','2077706aTHUZn','UNSIGNED_INT','minificationFilter','updateViewerParameters','CLAMP_TO_EDGE','onColorTableChange','setGeometry','pointerEvents','Rectangle','fragmentShaderSource','error','postMessage','latRange','call','210sGYqme','floor','fromDegrees','_setOptionsHook','particlesSpeed','quietPeriod','particleSystem','particlesNumber','age','colorTable','setOptions','changed','sources','ellipsoid','fromGeometry','frameState.commandList\x20is\x20undefined','_bilinearInterpolation','lineLength','Compute','flipY','windField','drawingBufferHeight','Unknown\x20command\x20type','162678zJSZAh','particlesTextures','color','ymin','default','2211243SmJjnk','mars3d-canvasWind','visible','rendering','max','push','LayerUtil','morphComplete','bounds','applyViewerParameters','currentParticlesPosition','mouseHidden','primitives','_animateFrame','fixedHeight','ONE_MINUS_SRC_ALPHA','_addedHook','setData','lng','xmax','grid','none','framebuffer','setDate','init','tlng','geometry','canvasContext','clearFramebuffers','execute','3.11.4','_onMouseMoveEvent','pow','pass','vertexArray','NEAREST','off','_speedRate','lat','depthTexture','createRawRenderState','particlesTextureSize','attributeLocations','abs','BaseLayer','viewerParameters','createParticlesTextures','lonRange','updatePosition','owner','1888705gpNKZZ','windTextures','getSpeed','update','PointTrans','Cartesian2','getPostProcessingPositionShader','destroyParticlesTextures','uniformMap','cos','data','absolute','SCENE3D','_removedHook','postProcessingPosition','getContext','array','createWindTextures','#ffffff','willReadFrequently','createSegmentsGeometry','pointer-events','isInExtent','commandType','bindEvent','pixelSize','getCalculateSpeedShader','beginPath','frameRateAdjustment','clearCommand','preExecute','clear','_onMouseDownEvent','scene','Math','speedFactor','options','resize','rows','create','componentDatatype','createRenderingFramebuffers','toGridXY','canvas','cancelAnimationFrame','commandToExecute','speedRate','worker','refreshTimer','hasOwnProperty','register','Cesium','clientWidth','values','\x20\x20\x20\x20编译日期:','getUVByXY','frameRate','particlesTextureSize\x20must\x20be\x20greater\x20than\x200','drawingBufferWidth','CanvasWindField','moveTo','__esModule','mouseUp','DomUtil','flatMap','_pointerEvents','_colorRamp','_map','18svrCwx','windData','createComputingPrimitives','mouseMove','stroke','round','_onMouseUpEvent','_canrefresh','createPrimitives','LINEAR','canvasHeight','west','fillRect','length','1019324vEAzrt','WindLayer','framebuffers','mouse_move','isPointVisible'];_0x4f7c=function(){return _0x403d0d;};return _0x4f7c();}const _0x55df1e={};_0x55df1e['particlesTextureSize']=0x64,_0x55df1e['fixedHeight']=0x0,_0x55df1e[_0xaafa2(0x162,0x10b)]=_0x372c25,_0x55df1e['lineLength']=_0x329450,_0x55df1e[_0xaafa2(0x1f6,0x210)]=0x1,_0x55df1e['dropRate']=0.003,_0x55df1e['dropRateBump']=0.001,_0x55df1e['colors']=['rgb(206,255,255)'],_0x55df1e['flipY']=![],_0x55df1e[_0x8e8939(0x137,0xb0)]=!![];const DEF_OPTIONS=_0x55df1e;class WindLayer extends BaseLayer$1{constructor(_0x27bddb={}){_0x27bddb={...DEF_OPTIONS,..._0x27bddb},super(_0x27bddb),this['_setOptionsHook'](_0x27bddb,_0x27bddb);}get['layer'](){function _0x4a3d51(_0x17490b,_0x3dc48d){return _0x8e8939(_0x3dc48d-0x27f,_0x17490b);}return this[_0x4a3d51(0x3a6,0x404)];}get['data'](){return this['options']['data'];}set['data'](_0x2c065b){this['options'][_0x38b2aa(0x305,0x35e)]=_0x2c065b;function _0x38b2aa(_0x3f6882,_0x5adea2){return _0xaafa2(_0x3f6882-0x128,_0x5adea2);}this['setData'](_0x2c065b);}get[_0x8e8939(0x13e,0x123)](){return this['options']['colors'];}set['colors'](_0x1b4cb8){this[_0x36d643(0x6b7,0x635)][_0x36d643(0x580,0x5a4)]=_0x1b4cb8;function _0x41fc32(_0x5f2bea,_0x57dd99){return _0x8e8939(_0x57dd99-0x3c2,_0x5f2bea);}function _0x36d643(_0x35d310,_0x59360f){return _0x8e8939(_0x59360f-0x466,_0x35d310);}const _0x105083={};_0x105083['colors']=_0x1b4cb8,this['_setOptionsHook'](this['options'],_0x105083);}[_0x8e8939(0x133,0x16c)](_0x306d09){function _0x4bd26c(_0x43991b,_0x52b1fa){return _0xaafa2(_0x43991b-0x19a,_0x52b1fa);}_0x306d09?this['_addedHook']():this[_0x4bd26c(0x37a,0x315)]();}['_mountedHook'](){}['_addedHook'](){this['scene']=this[_0x562a03(-0x3,-0x86)]['scene'],this['camera']=this[_0x562a03(-0x3,-0x17)][_0x210578(0x421,0x473)];this['options'][_0x562a03(-0x3c,-0x54)]&&this[_0x562a03(-0x67,0x21)](this['options']['data']);function _0x210578(_0x78e67d,_0x425920){return _0xaafa2(_0x78e67d-0x2be,_0x425920);}if(!this[_0x562a03(-0x1,0x36)]||!this[_0x562a03(-0xd6,-0xfc)])return;this[_0x210578(0x48c,0x427)]={'lonRange':new Cesium$1['Cartesian2'](-0xb4,0xb4),'latRange':new Cesium$1['Cartesian2'](-0x5a,0x5a),'pixelSize':0x3e8,'sceneMode':this[_0x210578(0x4b2,0x4a9)]['mode']},this['updateViewerParameters'](),this[_0x562a03(-0x8e,-0x15)]=new WindParticleSystem(this['scene']['context'],this['windData'],this[_0x562a03(-0x22,-0x32)],this[_0x562a03(-0x4b,-0xb8)],this['scene']),this['primitives']=this[_0x210578(0x449,0x443)]['getPrimitives']();function _0x562a03(_0x457809,_0x1c7348){return _0x8e8939(_0x457809- -0x1f1,_0x1c7348);}this[_0x562a03(-0x6c,-0x52)]['forEach'](_0x28055d=>{function _0x5b2f51(_0x31c2a6,_0x46e5e3){return _0x210578(_0x46e5e3-0x7f,_0x31c2a6);}this[_0x5b2f51(0x596,0x531)]['primitives']['add'](_0x28055d);}),this['camera'][_0x210578(0x431,0x406)]=0.01,this['camera']['changed'][_0x210578(0x405,0x478)](this[_0x210578(0x438,0x408)]['bind'](this)),this['scene'][_0x210578(0x466,0x3e6)]['addEventListener'](this[_0x562a03(-0x9f,-0xf5)][_0x562a03(0x30,-0x13)](this)),window['addEventListener'](_0x210578(0x4b6,0x49f),this['updateViewerParameters']['bind'](this));}[_0xaafa2(0x1e0,0x247)](){this['camera'][_0x4d5795(-0xa6,-0x89)]['removeEventListener'](this[_0x4d5795(-0xda,-0x9f)][_0x4d5795(0xac,0x30)](this));function _0x28f4fe(_0x3eca2d,_0x511dcd){return _0xaafa2(_0x3eca2d- -0x2f,_0x511dcd);}this['scene']['morphComplete'][_0x28f4fe(0x10d,0x160)](this['updateViewerParameters'][_0x4d5795(0xba,0x30)](this));function _0x4d5795(_0x1cb9db,_0x5d1415){return _0x8e8939(_0x5d1415- -0x1f1,_0x1cb9db);}window['removeEventListener']('resize',this['updateViewerParameters']['bind'](this)),this['primitives']&&(this['primitives']['forEach'](_0x4bf812=>{function _0x31df08(_0x515f52,_0x86269b){return _0x4d5795(_0x86269b,_0x515f52-0x3c2);}this['scene'][_0x31df08(0x356,0x3e1)]['remove'](_0x4bf812);}),delete this['primitives']),this['particleSystem']&&(this['particleSystem'][_0x4d5795(-0x6c,0x18)](),delete this['particleSystem']);}[_0xaafa2(0x1b2,0x207)](_0x55e4d4,_0xeee0cb){this[_0x36abb0(0x73,-0x13)]=this['processWindData'](_0x55e4d4);function _0x2cbdc2(_0x4e1e90,_0x5ea757){return _0x8e8939(_0x4e1e90-0x404,_0x5ea757);}function _0x36abb0(_0x505e24,_0x32aedb){return _0x8e8939(_0x32aedb- -0x203,_0x505e24);}if(_0xeee0cb){this[_0x36abb0(-0x41,-0x4b)](),this[_0x36abb0(-0xdc,-0x7a)]();return;}this[_0x36abb0(-0xd7,-0xa0)]?(this[_0x2cbdc2(0x567,0x56f)]['computing']['updateWindData'](this['windData']),this['scene']['requestRender']()):this['_addedHook']();}[_0x8e8939(0x160,0x1b7)](_0x4a8fe6,_0x9123e8){function _0x54d9c1(_0x2e5933,_0x47e04e){return _0xaafa2(_0x47e04e-0x2f3,_0x2e5933);}function _0x5b6e17(_0x3afca3,_0x2cb3fe){return _0xaafa2(_0x3afca3-0x1e5,_0x2cb3fe);}this[_0x5b6e17(0x370,0x361)]&&(this['particleSystem']['changeOptions'](_0x9123e8),this[_0x54d9c1(0x49d,0x4e7)][_0x54d9c1(0x403,0x445)]());}[_0xaafa2(0x22f,0x22f)](_0x220cef){var _0x36a188,_0x1f06e3;const _0x494993={..._0x220cef};function _0x2f868d(_0x3eb195,_0x234cab){return _0xaafa2(_0x3eb195- -0x268,_0x234cab);}const _0x38454f=_0x494993;!_0x38454f[_0x2f868d(-0x103,-0x17a)]&&_0x38454f['rows']&&(_0x38454f['height']=_0x38454f[_0x2f868d(-0x6f,-0xbb)]);!_0x38454f['width']&&_0x38454f['cols']&&(_0x38454f['width']=_0x38454f['cols']);!_0x38454f['bounds']&&(_0x38454f['bounds']={'west':_0x38454f['xmin'],'south':_0x38454f['ymin'],'east':_0x38454f['xmax'],'north':_0x38454f[_0x17ae11(0x5ab,0x561)]});if(!_0x38454f['u']){const _0x129f0b={};_0x129f0b['array']=_0x220cef['udata'],_0x129f0b['min']=_0x220cef['umin'],_0x129f0b['max']=_0x220cef['umax'],_0x38454f['u']=_0x129f0b;}if(!_0x38454f['v']){const _0x377e02={};_0x377e02[_0x17ae11(0x671,0x5e8)]=_0x220cef['vdata'],_0x377e02[_0x2f868d(-0x107,-0x98)]=_0x220cef[_0x17ae11(0x544,0x550)],_0x377e02[_0x2f868d(-0xc3,-0xe9)]=_0x220cef['vmax'],_0x38454f['v']=_0x377e02;}function _0x17ae11(_0x147dce,_0x3d5d94){return _0xaafa2(_0x3d5d94-0x405,_0x147dce);}if(((_0x36a188=_0x38454f['speed'])===null||_0x36a188===void 0x0?void 0x0:_0x36a188['min'])===undefined||((_0x1f06e3=_0x38454f[_0x17ae11(0x567,0x555)])===null||_0x1f06e3===void 0x0?void 0x0:_0x1f06e3[_0x17ae11(0x52b,0x5aa)])===undefined||_0x38454f[_0x2f868d(-0x118,-0x12d)]['array']===undefined){const _0x5307c2={'array':new Float32Array(_0x38454f['u'][_0x17ae11(0x646,0x5e8)][_0x2f868d(-0x44,-0xb3)]),'min':Number['MAX_VALUE'],'max':Number['MIN_VALUE']};for(let _0x305d2d=0x0;_0x305d2d<_0x38454f['u']['array'][_0x2f868d(-0x44,-0x1)];_0x305d2d++){_0x5307c2[_0x17ae11(0x669,0x5e8)][_0x305d2d]=Math[_0x2f868d(-0xfc,-0x103)](_0x38454f['u'][_0x2f868d(-0x85,-0x10f)][_0x305d2d]*_0x38454f['u']['array'][_0x305d2d]+_0x38454f['v']['array'][_0x305d2d]*_0x38454f['v']['array'][_0x305d2d]),_0x5307c2['array'][_0x305d2d]!==0x0&&(_0x5307c2[_0x2f868d(-0x107,-0x119)]=Math[_0x17ae11(0x4db,0x566)](_0x5307c2[_0x17ae11(0x53a,0x566)],_0x5307c2['array'][_0x305d2d]),_0x5307c2['max']=Math['max'](_0x5307c2['max'],_0x5307c2['array'][_0x305d2d]));}_0x38454f[_0x2f868d(-0x118,-0x16d)]=_0x5307c2;}return _0x38454f;}['updateViewerParameters'](){var _0x1f7ae4;const _0x1deb7b=this['scene'];function _0x227846(_0x3ada75,_0x56fdaa){return _0x8e8939(_0x3ada75-0xa8,_0x56fdaa);}if(!_0x1deb7b)return;const _0x5fe92d=_0x1deb7b['canvas'],_0x4fb5ba={};_0x4fb5ba['x']=0x0,_0x4fb5ba['y']=0x0;const _0x39b0e6={};_0x39b0e6['x']=0x0,_0x39b0e6['y']=_0x5fe92d['clientHeight'];const _0x41fd72={};_0x41fd72['x']=_0x5fe92d[_0x3e52ac(0x518,0x511)],_0x41fd72['y']=0x0;const _0x5e803f={};_0x5e803f['x']=_0x5fe92d[_0x3e52ac(0x518,0x51f)],_0x5e803f['y']=_0x5fe92d['clientHeight'];const _0x5338ad=[_0x4fb5ba,_0x39b0e6,_0x41fd72,_0x5e803f];let _0x219673=0xb4;function _0x3e52ac(_0x460ff4,_0x4dbbf5){return _0x8e8939(_0x460ff4-0x339,_0x4dbbf5);}let _0x530927=-0xb4,_0x106c5e=0x5a,_0x522851=-0x5a,_0x28ccca=![];for(const _0x2c6f79 of _0x5338ad){const _0x12c3c4=_0x1deb7b[_0x227846(0x1e3,0x200)]['pickEllipsoid'](new Cesium$1['Cartesian2'](_0x2c6f79['x'],_0x2c6f79['y']),_0x1deb7b['globe']['ellipsoid']);if(!_0x12c3c4){_0x28ccca=!![];break;}const _0x2bfbe3=_0x1deb7b['globe'][_0x227846(0x212,0x295)][_0x3e52ac(0x482,0x498)](_0x12c3c4),_0x59ad6e=Cesium$1[_0x3e52ac(0x506,0x4a3)][_0x227846(0x1be,0x1ac)](_0x2bfbe3['longitude']),_0x3c32d8=Cesium$1[_0x3e52ac(0x506,0x56e)]['toDegrees'](_0x2bfbe3['latitude']);_0x219673=Math['min'](_0x219673,_0x59ad6e),_0x530927=Math['max'](_0x530927,_0x59ad6e),_0x106c5e=Math['min'](_0x106c5e,_0x3c32d8),_0x522851=Math['max'](_0x522851,_0x3c32d8);}if(!_0x28ccca){const _0x2ec0fc=new Cesium$1['Cartesian2'](Math['max'](this['windData']['bounds']['west'],_0x219673),Math[_0x3e52ac(0x472,0x4c7)](this['windData']['bounds']['east'],_0x530927)),_0x47e6fe=new Cesium$1[(_0x3e52ac(0x4e9,0x513))](Math['max'](this[_0x3e52ac(0x529,0x5a7)]['bounds']['south'],_0x106c5e),Math['min'](this['windData']['bounds']['north'],_0x522851)),_0x3649d1=(_0x2ec0fc['y']-_0x2ec0fc['x'])*0.05,_0x12b1b6=(_0x47e6fe['y']-_0x47e6fe['x'])*0.05;_0x2ec0fc['x']=Math[_0x227846(0x225,0x24f)](this[_0x3e52ac(0x529,0x58a)]['bounds'][_0x227846(0x2a2,0x2a2)],_0x2ec0fc['x']-_0x3649d1),_0x2ec0fc['y']=Math['min'](this[_0x227846(0x298,0x215)]['bounds']['east'],_0x2ec0fc['y']+_0x3649d1),_0x47e6fe['x']=Math[_0x227846(0x225,0x20d)](this['windData'][_0x227846(0x229,0x288)][_0x3e52ac(0x55b,0x531)],_0x47e6fe['x']-_0x12b1b6),_0x47e6fe['y']=Math[_0x227846(0x1e1,0x180)](this[_0x227846(0x298,0x297)][_0x227846(0x229,0x1a1)]['north'],_0x47e6fe['y']+_0x12b1b6),this[_0x227846(0x24e,0x1f3)][_0x227846(0x250,0x23c)]=_0x2ec0fc,this[_0x227846(0x24e,0x234)][_0x227846(0x203,0x1be)]=_0x47e6fe;const _0x56ad2d=this['windData']['bounds']['east']-this['windData'][_0x3e52ac(0x4ba,0x53d)][_0x3e52ac(0x533,0x4b0)],_0x3cae0d=this['windData']['bounds']['north']-this['windData']['bounds'][_0x3e52ac(0x55b,0x5b9)],_0x9e426e=(_0x2ec0fc['y']-_0x2ec0fc['x'])/_0x56ad2d,_0x4cb59f=(_0x47e6fe['y']-_0x47e6fe['x'])/_0x3cae0d,_0x471312=Math['min'](_0x9e426e,_0x4cb59f),_0x1f0d73=0x3e8*_0x471312;_0x1f0d73>0x0&&(this[_0x3e52ac(0x4df,0x498)][_0x3e52ac(0x4fd,0x556)]=Math['max'](0x0,Math['min'](0x3e8,_0x1f0d73)));}this['viewerParameters']['sceneMode']=this[_0x3e52ac(0x505,0x4bc)][_0x3e52ac(0x559,0x581)],(_0x1f7ae4=this[_0x227846(0x20b,0x226)])===null||_0x1f7ae4===void 0x0||_0x1f7ae4['applyViewerParameters'](this['viewerParameters']);}[_0x8e8939(0x141,0x11f)](_0x3b1a01,_0x49b8cb){const {bounds:_0x1aa616,width:_0x198f5c,height:_0x1403b8,u:_0x31641e,v:_0x1389d1,speed:_0x1b5985}=this[_0x494399(0x443,0x483)],{flipY:_0x508781}=this[_0x22de80(0x26e,0x29e)];if(_0x3b1a01<_0x1aa616['west']||_0x3b1a01>_0x1aa616['east']||_0x49b8cb<_0x1aa616['south']||_0x49b8cb>_0x1aa616['north'])return null;const _0x52d05b=(_0x3b1a01-_0x1aa616[_0x494399(0x4c9,0x48d)])/(_0x1aa616[_0x494399(0x440,0x3d3)]-_0x1aa616['west'])*(_0x198f5c-0x1);let _0x562ed7=(_0x49b8cb-_0x1aa616['south'])/(_0x1aa616['north']-_0x1aa616[_0x494399(0x4de,0x4b5)])*(_0x1403b8-0x1);_0x508781&&(_0x562ed7=_0x1403b8-0x1-_0x562ed7);const _0x21788d=Math[_0x494399(0x3f3,0x3f1)](_0x52d05b),_0x14f39f=Math['floor'](_0x562ed7),_0x2f50aa=Math['floor'](_0x52d05b),_0x5da262=Math[_0x494399(0x3a5,0x3cc)](_0x2f50aa+0x1,_0x198f5c-0x1),_0x4be847=Math['floor'](_0x562ed7),_0x39396e=Math['min'](_0x4be847+0x1,_0x1403b8-0x1),_0x25df0d=_0x52d05b-_0x2f50aa,_0x98eaf=_0x562ed7-_0x4be847,_0x9d4784=_0x14f39f*_0x198f5c+_0x21788d,_0x141000=_0x4be847*_0x198f5c+_0x2f50aa,_0x39473d=_0x4be847*_0x198f5c+_0x5da262,_0xba9f50=_0x39396e*_0x198f5c+_0x2f50aa,_0x5c1ccc=_0x39396e*_0x198f5c+_0x5da262,_0x4a10b1=_0x31641e['array'][_0x141000],_0x504460=_0x31641e[_0x494399(0x449,0x44e)][_0x39473d],_0x905003=_0x31641e[_0x494399(0x3c2,0x44e)][_0xba9f50];function _0x494399(_0x20c376,_0x2d974d){return _0xaafa2(_0x2d974d-0x26b,_0x20c376);}const _0x15e9fb=_0x31641e['array'][_0x5c1ccc],_0x16005a=(0x1-_0x25df0d)*(0x1-_0x98eaf)*_0x4a10b1+_0x25df0d*(0x1-_0x98eaf)*_0x504460+(0x1-_0x25df0d)*_0x98eaf*_0x905003+_0x25df0d*_0x98eaf*_0x15e9fb,_0x442532=_0x1389d1['array'][_0x141000],_0x2baaf0=_0x1389d1['array'][_0x39473d],_0x15976b=_0x1389d1['array'][_0xba9f50],_0x4a3f29=_0x1389d1[_0x494399(0x445,0x44e)][_0x5c1ccc],_0x2041e1=(0x1-_0x25df0d)*(0x1-_0x98eaf)*_0x442532+_0x25df0d*(0x1-_0x98eaf)*_0x2baaf0+(0x1-_0x25df0d)*_0x98eaf*_0x15976b+_0x25df0d*_0x98eaf*_0x4a3f29;function _0x22de80(_0x1f5de7,_0x518bba){return _0xaafa2(_0x1f5de7-0x77,_0x518bba);}const _0x4bea61=Math[_0x22de80(0x1e3,0x250)](_0x16005a*_0x16005a+_0x2041e1*_0x2041e1),_0x41f484={};_0x41f484['u']=_0x31641e['array'][_0x9d4784],_0x41f484['v']=_0x1389d1['array'][_0x9d4784],_0x41f484['speed']=_0x1b5985['array'][_0x9d4784];const _0x582786={};_0x582786['u']=_0x16005a,_0x582786['v']=_0x2041e1,_0x582786[_0x494399(0x43a,0x3bb)]=_0x4bea61;const _0x13fa9e={};return _0x13fa9e['original']=_0x41f484,_0x13fa9e[_0x22de80(0x1ae,0x15a)]=_0x582786,_0x13fa9e;}}mars3d__namespace[_0xaafa2(0x1a7,0x1e7)][_0xaafa2(0x205,0x1c1)](_0xaafa2(0x237,0x200),WindLayer),mars3d__namespace[_0x8e8939(0x12d,0x165)][_0x8e8939(0x1fe,0x190)]=WindLayer;class CanvasParticle{constructor(){this[_0x12cfa9(-0x10d,-0x18e)]=null,this['lat']=null,this['tlng']=null,this[_0x3e60eb(0x3b,0xa2)]=null;function _0x12cfa9(_0x5a710f,_0x39f38e){return _0xaafa2(_0x5a710f- -0x2c0,_0x39f38e);}function _0x3e60eb(_0x57bf9e,_0x10b6e1){return _0x8e8939(_0x10b6e1- -0x6e,_0x57bf9e);}this['age']=null,this['speed']=null;}['destroy'](){for(const _0xd6765b in this){delete this[_0xd6765b];}}}class CanvasWindField{constructor(_0x3c1fac){this['setOptions'](_0x3c1fac);}get[_0xaafa2(0x201,0x1ab)](){function _0x3da1ec(_0x4abb9d,_0xab70ba){return _0xaafa2(_0xab70ba- -0x15d,_0x4abb9d);}return this[_0x3da1ec(0xb,0x69)];}set['speedRate'](_0x3d8b27){function _0x3828e2(_0x19eea7,_0x291484){return _0xaafa2(_0x19eea7- -0x47,_0x291484);}this['_speedRate']=(0x64-(_0x3d8b27>0x63?0x63:_0x3d8b27))*0x64;function _0x29ae93(_0x2a7fa6,_0x15a30c){return _0x8e8939(_0x15a30c-0x2c6,_0x2a7fa6);}this['_calc_speedRate']=[(this['xmax']-this[_0x3828e2(0xff,0x168)])/this['_speedRate'],(this[_0x29ae93(0x37f,0x3fa)]-this[_0x3828e2(0x158,0x11b)])/this[_0x3828e2(0x17f,0x16f)]];}get['maxAge'](){return this['_maxAge'];}set['maxAge'](_0x5f17a8){this['_maxAge']=_0x5f17a8;}[_0xaafa2(0x18f,0x16c)](_0x27ed01){this[_0x576e11(-0x73,-0xfa)]=_0x27ed01,this['maxAge']=_0x27ed01[_0x3f8355(0x243,0x2b5)]||0x78,this['speedRate']=_0x27ed01['speedRate']||0x32;function _0x3f8355(_0x3d0173,_0x19fc76){return _0xaafa2(_0x3d0173-0xf4,_0x19fc76);}this['particles']=[];function _0x576e11(_0xc8b037,_0x255cd5){return _0xaafa2(_0xc8b037- -0x26a,_0x255cd5);}const _0x444284=_0x27ed01['particlesNumber']||0x1000;for(let _0x3b3508=0x0;_0x3b3508<_0x444284;_0x3b3508++){const _0x399cb6=this[_0x576e11(-0x121,-0xa9)](new CanvasParticle());this['particles'][_0x576e11(-0xc4,-0x9a)](_0x399cb6);}}[_0x8e8939(0x190,0x104)](_0x1cf01d){this[_0x2d1c04(0x127,0x165)]=_0x1cf01d[_0x2d1c04(0x131,0x165)],this[_0x2d1c04(0x135,0xab)]=_0x1cf01d['cols'],this['xmin']=_0x1cf01d[_0x3afd5d(-0x1eb,-0x166)],this[_0x3afd5d(-0x17d,-0x169)]=_0x1cf01d['xmax'];function _0x3afd5d(_0x412b56,_0xfe6498){return _0x8e8939(_0x412b56- -0x309,_0xfe6498);}this['ymin']=_0x1cf01d['ymin'],this['ymax']=_0x1cf01d[_0x3afd5d(-0x1d5,-0x25e)];function _0x2d1c04(_0x4fe4d1,_0x59b75d){return _0x8e8939(_0x59b75d- -0x6c,_0x4fe4d1);}this[_0x3afd5d(-0x17c,-0x15f)]=[];const _0x3df26e=_0x1cf01d['udata'],_0x2259ca=_0x1cf01d[_0x2d1c04(0xd9,0xbf)];let _0x728dae=![];_0x3df26e[_0x3afd5d(-0x10d,-0x103)]===this['rows']&&_0x3df26e[0x0]['length']===this['cols']&&(_0x728dae=!![]);let _0x9ecade=0x0,_0x3bd46a=null,_0x3204cf=null;for(let _0x1880be=0x0;_0x1880be<this['rows'];_0x1880be++){_0x3bd46a=[];for(let _0x5e3ca2=0x0;_0x5e3ca2<this[_0x3afd5d(-0x1f2,-0x255)];_0x5e3ca2++,_0x9ecade++){_0x728dae?_0x3204cf=this[_0x3afd5d(-0x1d8,-0x1a5)](_0x3df26e[_0x1880be][_0x5e3ca2],_0x2259ca[_0x1880be][_0x5e3ca2]):_0x3204cf=this[_0x3afd5d(-0x1d8,-0x1e4)](_0x3df26e[_0x9ecade],_0x2259ca[_0x9ecade]),_0x3bd46a[_0x2d1c04(0x176,0x112)](_0x3204cf);}this[_0x2d1c04(0x112,0x121)]['push'](_0x3bd46a);}!this[_0x3afd5d(-0x13a,-0xce)]['flipY']&&this['grid']['reverse']();}['clear'](){delete this['rows'];function _0x211cd7(_0x592aa5,_0x3b80cb){return _0x8e8939(_0x592aa5-0x1b5,_0x3b80cb);}delete this[_0x211cd7(0x2cc,0x253)],delete this[_0xa07e72(0x17f,0x1ef)],delete this['xmax'];function _0xa07e72(_0x646063,_0x1845f2){return _0x8e8939(_0x1845f2-0xd1,_0x646063);}delete this['ymin'],delete this[_0x211cd7(0x2e9,0x288)],delete this[_0xa07e72(0x2b3,0x25e)],delete this['particles'];}[_0xaafa2(0x1fd,0x257)](_0x31bb6e,_0x1d3636){function _0x378c9f(_0x36f287,_0x1e7c06){return _0x8e8939(_0x1e7c06-0x24c,_0x36f287);}function _0x400f8b(_0x270140,_0x5c44c6){return _0x8e8939(_0x5c44c6-0x58,_0x270140);}const _0x40fd7=(_0x31bb6e-this['xmin'])/(this['xmax']-this['xmin'])*(this['cols']-0x1),_0x4537d5=(this[_0x378c9f(0x340,0x380)]-_0x1d3636)/(this['ymax']-this[_0x378c9f(0x3ef,0x3c3)])*(this[_0x378c9f(0x43a,0x41d)]-0x1);return[_0x40fd7,_0x4537d5];}['getUVByXY'](_0x590d36,_0x8395ad){if(_0x590d36<0x0||_0x590d36>=this['cols']||_0x8395ad>=this['rows'])return[0x0,0x0,0x0];const _0x1f4a0d=Math['floor'](_0x590d36),_0x41c263=Math[_0x160072(0x4c3,0x4de)](_0x8395ad);if(_0x1f4a0d===_0x590d36&&_0x41c263===_0x8395ad)return this['grid'][_0x8395ad][_0x590d36];const _0x602c17=_0x1f4a0d+0x1,_0x523d11=_0x41c263+0x1,_0x2cdb7e=this[_0x3fc2d2(0x4dc,0x537)](_0x1f4a0d,_0x41c263);function _0x3fc2d2(_0x879357,_0x521e37){return _0xaafa2(_0x521e37-0x32d,_0x879357);}const _0xf66184=this['getUVByXY'](_0x602c17,_0x41c263),_0x1eb552=this[_0x160072(0x547,0x5bf)](_0x1f4a0d,_0x523d11),_0x53ca87=this[_0x3fc2d2(0x5bf,0x537)](_0x602c17,_0x523d11);let _0x23b58e=null;try{_0x23b58e=this['_bilinearInterpolation'](_0x590d36-_0x1f4a0d,_0x8395ad-_0x41c263,_0x2cdb7e,_0xf66184,_0x1eb552,_0x53ca87);}catch(_0x498285){console['log'](_0x590d36,_0x8395ad);}function _0x160072(_0x1ded3b,_0x5f3d5f){return _0x8e8939(_0x1ded3b-0x365,_0x5f3d5f);}return _0x23b58e;}[_0xaafa2(0x195,0x21b)](_0x455ac5,_0x5e537d,_0x25e6ea,_0x2a25eb,_0x395036,_0x260022){const _0x581849=0x1-_0x455ac5,_0x16ef7b=0x1-_0x5e537d,_0x5b7b4b=_0x581849*_0x16ef7b,_0xe93089=_0x455ac5*_0x16ef7b,_0x1c059e=_0x581849*_0x5e537d,_0x3bce12=_0x455ac5*_0x5e537d,_0x1bc4ed=_0x25e6ea[0x0]*_0x5b7b4b+_0x2a25eb[0x0]*_0xe93089+_0x395036[0x0]*_0x1c059e+_0x260022[0x0]*_0x3bce12,_0x138f02=_0x25e6ea[0x1]*_0x5b7b4b+_0x2a25eb[0x1]*_0xe93089+_0x395036[0x1]*_0x1c059e+_0x260022[0x1]*_0x3bce12;return this['_calcUV'](_0x1bc4ed,_0x138f02);}['_calcUV'](_0x18d735,_0x187296){return[+_0x18d735,+_0x187296,Math['sqrt'](_0x18d735*_0x18d735+_0x187296*_0x187296)];}[_0x8e8939(0x111,0xd8)](_0xd38ac9,_0x4a74b5){if(!this['isInExtent'](_0xd38ac9,_0x4a74b5))return null;function _0x1ffc69(_0x17c61a,_0x532249){return _0xaafa2(_0x532249-0x354,_0x17c61a);}function _0x547077(_0x3fe801,_0x5b4617){return _0xaafa2(_0x3fe801-0x305,_0x5b4617);}const _0x53dc8f=this[_0x1ffc69(0x540,0x551)](_0xd38ac9,_0x4a74b5),_0x130589=this[_0x547077(0x50f,0x4dc)](_0x53dc8f[0x0],_0x53dc8f[0x1]);return _0x130589;}[_0xaafa2(0x1e9,0x1e4)](_0x5097cb,_0x18c26b){function _0x6b053d(_0x339b7a,_0x336a8d){return _0xaafa2(_0x339b7a-0x13e,_0x336a8d);}return _0x5097cb>=this['xmin']&&_0x5097cb<=this['xmax']&&_0x18c26b>=this['ymin']&&_0x18c26b<=this[_0x6b053d(0x29a,0x2e4)]?!![]:![];}['getRandomLatLng'](){const _0x411304=fRandomByfloat(this['xmin'],this[_0x31d65e(0xbd,0xf2)]),_0xd6276=fRandomByfloat(this[_0x31d65e(0xa8,0x2f)],this[_0x5a2f3c(0x306,0x295)]),_0x2f3bbf={};_0x2f3bbf['lat']=_0xd6276,_0x2f3bbf[_0x31d65e(0xbc,0x12b)]=_0x411304;function _0x31d65e(_0x45fada,_0x2f18ca){return _0x8e8939(_0x45fada- -0xcf,_0x2f18ca);}function _0x5a2f3c(_0x443827,_0xaf5eca){return _0xaafa2(_0x443827-0x1aa,_0xaf5eca);}return _0x2f3bbf;}['getParticles'](){function _0x2c11ae(_0x4518bd,_0x3d045c){return _0xaafa2(_0x3d045c- -0xd8,_0x4518bd);}function _0x3b0026(_0x1fcdfe,_0x5166d5){return _0xaafa2(_0x5166d5-0x224,_0x1fcdfe);}let _0x5c20e0,_0x388594,_0x530bab;for(let _0x461339=0x0,_0x1d3f68=this['particles'][_0x3b0026(0x4c7,0x448)];_0x461339<_0x1d3f68;_0x461339++){let _0x1a9c96=this['particles'][_0x461339];_0x1a9c96['age']<=0x0&&(_0x1a9c96=this[_0x2c11ae(0x84,0x71)](_0x1a9c96));if(_0x1a9c96['age']>0x0){const _0x40fbb3=_0x1a9c96['tlng'],_0x23d310=_0x1a9c96[_0x3b0026(0x2fb,0x35c)];_0x530bab=this['getUVByPoint'](_0x40fbb3,_0x23d310),_0x530bab?(_0x5c20e0=_0x40fbb3+this['_calc_speedRate'][0x0]*_0x530bab[0x0],_0x388594=_0x23d310+this['_calc_speedRate'][0x1]*_0x530bab[0x1],_0x1a9c96['lng']=_0x40fbb3,_0x1a9c96['lat']=_0x23d310,_0x1a9c96['tlng']=_0x5c20e0,_0x1a9c96['tlat']=_0x388594,_0x1a9c96['speed']=_0x530bab[0x2],_0x1a9c96['age']--):_0x1a9c96[_0x3b0026(0x412,0x3b1)]=0x0;}}return this['particles'];}['_randomParticle'](_0x5d395c){let _0x197fb2,_0x555f7b;for(let _0x2874c6=0x0;_0x2874c6<0x1e;_0x2874c6++){_0x197fb2=this[_0x1fd4f2(0x2e4,0x2be)](),_0x555f7b=this[_0x1fd4f2(0x192,0x1c4)](_0x197fb2[_0x9eed2c(0x23,0x21)],_0x197fb2['lat']);if(_0x555f7b&&_0x555f7b[0x2]>0x0)break;}function _0x1fd4f2(_0x20624d,_0x52cef4){return _0xaafa2(_0x52cef4-0x8b,_0x20624d);}if(!_0x555f7b)return _0x5d395c;const _0x14b5f4=_0x197fb2['lng']+this['_calc_speedRate'][0x0]*_0x555f7b[0x0],_0x31050b=_0x197fb2['lat']+this['_calc_speedRate'][0x1]*_0x555f7b[0x1];_0x5d395c[_0x9eed2c(0x23,0x48)]=_0x197fb2['lng'],_0x5d395c['lat']=_0x197fb2['lat'],_0x5d395c[_0x9eed2c(0x2a,0x2a)]=_0x14b5f4,_0x5d395c[_0x9eed2c(-0x58,-0x7f)]=_0x31050b,_0x5d395c['age']=Math[_0x9eed2c(0x8c,0x115)](0xa+Math['random']()*this['maxAge']),_0x5d395c['speed']=_0x555f7b[0x2];function _0x9eed2c(_0x24022f,_0x2fd900){return _0xaafa2(_0x24022f- -0x190,_0x2fd900);}return _0x5d395c;}['destroy'](){for(const _0x4b9361 in this){delete this[_0x4b9361];}}}function fRandomByfloat(_0x6131d0,_0x3d6668){function _0x5389cd(_0xdd70e7,_0x24c2a0){return _0xaafa2(_0xdd70e7-0x236,_0x24c2a0);}return _0x6131d0+Math[_0x5389cd(0x462,0x471)]()*(_0x3d6668-_0x6131d0);}const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class CanvasWindLayer extends BaseLayer{constructor(_0x19c3ed={}){super(_0x19c3ed),this['_setOptionsHook'](_0x19c3ed),this['canvas']=null,_0x19c3ed['colors']&&_0x19c3ed['steps']&&(this['_colorRamp']=new mars3d__namespace['ColorRamp'](_0x19c3ed));}['_setOptionsHook'](_0x1476ea,_0x4cb71c){this['frameTime']=0x3e8/(_0x1476ea['frameRate']||0xa),this['_pointerEvents']=this['options']['pointerEvents']??![],this['color']=_0x1476ea[_0x3c03fd(0x2f9,0x367)]||_0x599cd6(0x88,0x17),this['lineWidth']=_0x1476ea['lineWidth']||0x1,this[_0x599cd6(0x1e,-0x1f)]=_0x1476ea['fixedHeight']??0x0;function _0x3c03fd(_0x1ee0c5,_0x3dd749){return _0xaafa2(_0x1ee0c5-0x15b,_0x3dd749);}function _0x599cd6(_0x493895,_0x5bec3f){return _0x8e8939(_0x5bec3f- -0x1a6,_0x493895);}this[_0x599cd6(0x4d,-0x36)]=_0x1476ea['flipY']??![],this[_0x3c03fd(0x2f4,0x29e)]&&this['windField']['setOptions'](_0x1476ea);}get[_0x8e8939(0x12d,0x199)](){return this['canvas'];}get[_0x8e8939(0x138,0xf6)](){function _0xd2e121(_0x3bc710,_0x47ee2d){return _0xaafa2(_0x3bc710- -0x1ae,_0x47ee2d);}return this['_map']['scene']['canvas'][_0xd2e121(0x59,0x2b)];}get['canvasHeight'](){function _0x3c5204(_0x5c513c,_0x5374e2){return _0xaafa2(_0x5c513c-0x454,_0x5374e2);}return this[_0x3c5204(0x66a,0x5e2)]['scene']['canvas']['clientHeight'];}get['pointerEvents'](){function _0x1f038c(_0x1ce809,_0x4ff614){return _0xaafa2(_0x4ff614-0x486,_0x1ce809);}return this[_0x1f038c(0x641,0x69a)];}set[_0xaafa2(0x17e,0x1f4)](_0x2f90a1){this['_pointerEvents']=_0x2f90a1;function _0x569db9(_0x20e62d,_0x53704e){return _0x8e8939(_0x20e62d- -0x166,_0x53704e);}if(!this['canvas'])return;_0x2f90a1?this['canvas']['style'][_0x569db9(0x5a,0xde)]='all':this['canvas']['style']['pointer-events']='none';}get[_0xaafa2(0x18c,0x16f)](){function _0x26871a(_0x154fec,_0x2ff647){return _0x8e8939(_0x154fec- -0x30c,_0x2ff647);}return this['options'][_0x26871a(-0x1a8,-0x187)];}set['particlesNumber'](_0xea7d2b){this['options']['particlesNumber']=_0xea7d2b,clearTimeout(this[_0x250eaf(0x55,0x8)]);function _0x457539(_0x4f9def,_0x5a3e1f){return _0xaafa2(_0x5a3e1f-0x3c1,_0x4f9def);}function _0x250eaf(_0x4e9064,_0x117f0b){return _0xaafa2(_0x4e9064- -0x1c9,_0x117f0b);}this[_0x250eaf(0x55,0x76)]=setTimeout(()=>{this['redraw']();},0x1f4);}get['speedRate'](){function _0x5b63d4(_0x4b893a,_0x2da1a9){return _0x8e8939(_0x4b893a- -0x2a4,_0x2da1a9);}function _0x18c7e6(_0x353172,_0x252718){return _0xaafa2(_0x353172- -0xec,_0x252718);}return this[_0x18c7e6(0x10b,0x180)][_0x5b63d4(-0xcb,-0x65)];}set['speedRate'](_0x47108d){this[_0x533ff9(0x3d0,0x3dd)]['speedRate']=_0x47108d;function _0x533ff9(_0x265ec2,_0x284e0a){return _0xaafa2(_0x284e0a-0x1e6,_0x265ec2);}function _0x17cd6c(_0x3c4212,_0x2c97ad){return _0x8e8939(_0x2c97ad- -0x15,_0x3c4212);}this['windField']&&(this['windField'][_0x17cd6c(0x1c1,0x1c4)]=_0x47108d);}get['maxAge'](){function _0x4c2b37(_0xae4bd3,_0x285e6c){return _0xaafa2(_0x285e6c-0x311,_0xae4bd3);}return this['options'][_0x4c2b37(0x4d0,0x460)];}set['maxAge'](_0x6b547d){function _0x576bac(_0x549f40,_0x50b323){return _0xaafa2(_0x50b323- -0x3,_0x549f40);}function _0x1281f0(_0x275413,_0x5e9de6){return _0xaafa2(_0x275413-0x2ff,_0x5e9de6);}this[_0x576bac(0x1b7,0x1f4)][_0x576bac(0xc9,0x14c)]=_0x6b547d,this['windField']&&(this[_0x1281f0(0x498,0x48a)]['maxAge']=_0x6b547d);}get['data'](){function _0xdfacab(_0x241618,_0x3e008f){return _0xaafa2(_0x3e008f-0x29e,_0x241618);}return this[_0xdfacab(0x458,0x4b6)];}set['data'](_0x1d95c0){this['setData'](_0x1d95c0);}get['rectangle'](){let _0xeb0b37=this['windData']['xmin'],_0x5cc18c=this['windData'][_0x4c34c9(0x41c,0x458)],_0x2aed44=this['windData']['ymin'],_0x58b888=this[_0x4c34c9(0x480,0x43b)][_0x3b8be2(-0x140,-0xcd)];_0x5cc18c>=0x167&&_0xeb0b37===0x0&&(_0xeb0b37=-0xb4,_0x5cc18c=0xb4);function _0x3b8be2(_0x1220c1,_0x30543b){return _0xaafa2(_0x1220c1- -0x29c,_0x30543b);}_0xeb0b37=Math[_0x4c34c9(0x40d,0x3b3)](_0xeb0b37,-0xb4),_0x5cc18c=Math['min'](_0x5cc18c,0xb4),_0x2aed44=Math['max'](_0x2aed44,-0x5a),_0x58b888=Math[_0x3b8be2(-0x13b,-0x106)](_0x58b888,0x5a);function _0x4c34c9(_0x23572f,_0x25f001){return _0x8e8939(_0x23572f-0x290,_0x25f001);}return Cesium[_0x3b8be2(-0x11d,-0x155)][_0x3b8be2(-0x115,-0xc7)](_0xeb0b37,_0x2aed44,_0x5cc18c,_0x58b888);}[_0xaafa2(0x15b,0x15c)](_0x66a34e){function _0x929631(_0xdd65,_0x38494b){return _0x8e8939(_0x38494b- -0x159,_0xdd65);}function _0x22b430(_0xd72654,_0x124e15){return _0xaafa2(_0xd72654- -0x2d8,_0x124e15);}_0x66a34e?this[_0x22b430(-0x127,-0x122)]():(this['windData']&&(this['options']['data']=this[_0x929631(0xcf,0x97)]),this[_0x22b430(-0xf8,-0xff)]());}['_mountedHook'](){function _0x1bdb20(_0x589bc1,_0x1e272d){return _0xaafa2(_0x589bc1- -0x5e,_0x1e272d);}function _0x506260(_0x48ca3e,_0x53232b){return _0xaafa2(_0x53232b- -0x234,_0x48ca3e);}this[_0x1bdb20(0x199,0x211)][_0x1bdb20(0x1a4,0x1e9)]?this[_0x1bdb20(0x1e8,0x224)]():this[_0x506260(-0x28,-0x9b)]=new CanvasWindField(this['options']);}['_addedHook'](){this['canvas']=this['_createCanvas']();function _0x539b15(_0x213876,_0x1f0b0a){return _0x8e8939(_0x1f0b0a- -0x121,_0x213876);}const _0x9e1e4={};_0x9e1e4[_0xdbd63c(0x461,0x4d4)]=!![],this[_0x539b15(0x2c,0x73)]=this[_0x539b15(0xbe,0xb5)][_0xdbd63c(0x4c6,0x4d0)]('2d',_0x9e1e4),this['bindEvent']();function _0xdbd63c(_0x2d9f3a,_0x1e7c20){return _0xaafa2(_0x1e7c20-0x2ee,_0x2d9f3a);}this[_0xdbd63c(0x485,0x4e5)]['data']&&this['setData'](this[_0xdbd63c(0x525,0x4e5)]['data']);}[_0x8e8939(0x1b8,0x1df)](){function _0x298676(_0x4276de,_0x2a0499){return _0x8e8939(_0x2a0499-0x76,_0x4276de);}this['clear']();function _0x2f52b5(_0x556e5f,_0x48f505){return _0x8e8939(_0x556e5f-0x121,_0x48f505);}this['unbindEvent'](),this['canvas']&&(this[_0x2f52b5(0x30f,0x2fe)]['container'][_0x298676(0x1ad,0x1bb)](this['canvas']),delete this['canvas']);}['_createCanvas'](){const _0x3d891a=mars3d__namespace[_0x9924cd(0x67c,0x6b1)]['create'](_0x1cc2fa(0x46c,0x43d),_0x1cc2fa(0x410,0x44f),this[_0x9924cd(0x680,0x614)][_0x1cc2fa(0x3c4,0x370)]);_0x3d891a['style'][_0x1cc2fa(0x4aa,0x507)]=_0x1cc2fa(0x44c,0x3c2),_0x3d891a[_0x1cc2fa(0x4b0,0x529)]['top']='0px';function _0x9924cd(_0x4c3156,_0x596669){return _0x8e8939(_0x4c3156-0x492,_0x596669);}_0x3d891a['style']['left']='0px',_0x3d891a[_0x1cc2fa(0x4b0,0x516)]['width']=this[_0x1cc2fa(0x484,0x491)]['scene']['canvas']['clientWidth']+'px',_0x3d891a['style']['height']=this['_map'][_0x9924cd(0x65e,0x5d5)]['canvas']['clientHeight']+'px';function _0x1cc2fa(_0x21199f,_0xb89553){return _0x8e8939(_0x21199f-0x296,_0xb89553);}return _0x3d891a['style']['pointerEvents']=this['_pointerEvents']?'auto':_0x9924cd(0x620,0x69a),_0x3d891a[_0x1cc2fa(0x4b0,0x4a1)]['zIndex']=this['options']['zIndex']??0x9,_0x3d891a['width']=this[_0x9924cd(0x680,0x6e1)]['scene'][_0x1cc2fa(0x46c,0x414)]['clientWidth'],_0x3d891a['height']=this[_0x1cc2fa(0x484,0x47f)]['scene'][_0x1cc2fa(0x46c,0x4c6)]['clientHeight'],_0x3d891a;}['resize'](){function _0x243588(_0x40ebf4,_0x1353c1){return _0x8e8939(_0x40ebf4-0x34d,_0x1353c1);}function _0x3357c9(_0xf2a1c5,_0x157116){return _0x8e8939(_0xf2a1c5- -0xbe,_0x157116);}this['canvas']&&(this[_0x3357c9(0x118,0xd0)][_0x243588(0x567,0x4e1)]['width']=this[_0x243588(0x53b,0x4e6)][_0x3357c9(0x10e,0xf2)][_0x243588(0x523,0x516)][_0x243588(0x52c,0x54d)]+'px',this['canvas'][_0x243588(0x567,0x51d)][_0x243588(0x48a,0x463)]=this['_map']['scene'][_0x3357c9(0x118,0xfa)]['clientHeight']+'px',this['canvas']['width']=this[_0x3357c9(0x130,0x199)]['scene'][_0x3357c9(0x118,0x162)][_0x243588(0x52c,0x52f)],this['canvas'][_0x3357c9(0x7f,0x93)]=this['_map']['scene']['canvas']['clientHeight']);}[_0xaafa2(0x1eb,0x17d)](){const _0x57eed3=this;let _0x19b3b3=Date['now']();function _0x46edd0(_0x5bd757,_0x493993){return _0x8e8939(_0x5bd757-0x1d7,_0x493993);}(function _0x581b0c(){function _0x10a490(_0x5726c7,_0x5ee5e5){return _0x9e58(_0x5726c7-0x361,_0x5ee5e5);}if(_0x57eed3['isDestroy'])return;_0x57eed3['_animateFrame']=window['requestAnimationFrame'](_0x581b0c);function _0x1bb5f7(_0x5319b9,_0x169001){return _0x9e58(_0x169001- -0x28f,_0x5319b9);}if(_0x57eed3['show']&&_0x57eed3[_0x1bb5f7(-0xb6,-0x56)]){const _0x30d95f=Date[_0x10a490(0x642,0x5cb)](),_0x579930=_0x30d95f-_0x19b3b3;_0x579930>_0x57eed3['frameTime']&&(_0x19b3b3=_0x30d95f-_0x579930%_0x57eed3['frameTime'],_0x57eed3['update']());}}(),window['addEventListener']('resize',this[_0x544043(0x8a,0x10c)]['bind'](this),![]),this[_0x544043(0xc4,0xe4)]=![],this[_0x46edd0(0x3d7,0x404)]=![]);function _0x544043(_0x4544c8,_0x22c3e7){return _0x8e8939(_0x4544c8- -0x146,_0x22c3e7);}this['options'][_0x544043(0x3e,0x39)]&&(this['_map']['on'](mars3d__namespace[_0x544043(0xe0,0x15b)]['wheel'],this['_onMapWhellEvent'],this),this['_map']['on'](mars3d__namespace['EventType']['mouseDown'],this[_0x544043(0x85,0x7b)],this),this['_map']['on'](mars3d__namespace['EventType'][_0x544043(0xa3,0xad)],this['_onMouseUpEvent'],this));}['unbindEvent'](){window[_0x14272d(0x192,0x17a)](this['_animateFrame']);function _0x14272d(_0x4706d6,_0x127162){return _0xaafa2(_0x127162- -0x85,_0x4706d6);}delete this[_0x14272d(0x103,0x129)],window['removeEventListener']('resize',this['resize']);function _0x7aba9d(_0x1930ed,_0x3e8c19){return _0xaafa2(_0x1930ed-0x480,_0x3e8c19);}this[_0x7aba9d(0x677,0x674)]['mouseHidden']&&(this[_0x7aba9d(0x696,0x66a)]['off'](mars3d__namespace['EventType']['wheel'],this['_onMapWhellEvent'],this),this['_map']['off'](mars3d__namespace['EventType']['mouseDown'],this[_0x7aba9d(0x673,0x608)],this),this['_map']['off'](mars3d__namespace['EventType'][_0x7aba9d(0x691,0x66d)],this['_onMouseUpEvent'],this),this[_0x14272d(0x1b6,0x191)][_0x7aba9d(0x645,0x657)](mars3d__namespace[_0x7aba9d(0x6ce,0x6b0)][_0x7aba9d(0x69a,0x63c)],this[_0x7aba9d(0x640,0x61f)],this));}['_onMapWhellEvent'](_0xc9f436){function _0x4d975f(_0x281f4e,_0x3ece43){return _0xaafa2(_0x281f4e- -0x217,_0x3ece43);}clearTimeout(this['refreshTimer']);if(!this[_0x4d975f(-0xd4,-0xa5)]||!this['canvas'])return;function _0xf36be9(_0x2898e5,_0x28aeca){return _0xaafa2(_0x28aeca-0x1b0,_0x2898e5);}this[_0xf36be9(0x33e,0x3ae)]['style']['visibility']='hidden',this[_0x4d975f(-0x14,0x49)]=setTimeout(()=>{if(!this['show'])return;function _0x1d33f7(_0x948b17,_0x28f7e9){return _0x4d975f(_0x28f7e9-0x396,_0x948b17);}function _0x2cc24a(_0x54098d,_0x4a988c){return _0x4d975f(_0x54098d-0x375,_0x4a988c);}this[_0x1d33f7(0x2a5,0x2c1)](),this['canvas']['style']['visibility']=_0x2cc24a(0x301,0x317);},0xc8);}[_0x8e8939(0x1cb,0x1ff)](_0x460bd3){function _0x1c906d(_0x5d4f6b,_0x3277d8){return _0xaafa2(_0x5d4f6b-0x474,_0x3277d8);}this[_0x533bf1(0x702,0x6ab)]=!![];function _0x533bf1(_0xace8a7,_0x18e59c){return _0xaafa2(_0x18e59c-0x479,_0xace8a7);}this['_map']['off'](mars3d__namespace[_0x1c906d(0x6c2,0x733)]['mouseMove'],this['_onMouseMoveEvent'],this),this['_map']['on'](mars3d__namespace[_0x1c906d(0x6c2,0x6de)]['mouseMove'],this['_onMouseMoveEvent'],this);}[_0x8e8939(0x198,0x20e)](_0x53e3ab){function _0x36c34c(_0x2bdc33,_0xa7897c){return _0xaafa2(_0xa7897c- -0x28e,_0x2bdc33);}function _0x4f3f2c(_0x163923,_0x161392){return _0xaafa2(_0x161392- -0x1d8,_0x163923);}if(!this['show']||!this['canvas'])return;this[_0x36c34c(-0x5,-0x5c)]&&(this['canvas'][_0x4f3f2c(0x37,0x6a)]['visibility']='hidden',this['mouse_move']=!![]);}[_0x8e8939(0x1f5,0x1fb)](_0xeb9e84){function _0x2030a1(_0x1ef8b1,_0x320f2e){return _0xaafa2(_0x320f2e-0x6b,_0x1ef8b1);}if(!this['show']||!this['canvas'])return;this['_map'][_0x2030a1(0x251,0x230)](mars3d__namespace[_0x2030a1(0x2b4,0x2b9)][_0x5ec96d(0x512,0x557)],this['_onMouseMoveEvent'],this);this['mouse_down']&&this['mouse_move']&&this['redraw']();this['canvas']['style']['visibility']='visible',this['mouse_down']=![];function _0x5ec96d(_0x78a426,_0x5c4158){return _0xaafa2(_0x5c4158-0x33d,_0x78a426);}this['mouse_move']=![];}['setData'](_0x2a37a1){this['clear'](),this['windData']=_0x2a37a1,this['windField']['setDate'](_0x2a37a1),this['redraw']();}['redraw'](){if(!this[_0x4c4585(-0x67,-0xa0)])return;this['windField']['setOptions'](this[_0x4c4585(0x1c,0x14)]);function _0x4c4585(_0xcbf837,_0x16a1a2){return _0x8e8939(_0x16a1a2- -0x1bb,_0xcbf837);}function _0x4d4008(_0x4d0a86,_0x1baac2){return _0x8e8939(_0x4d0a86-0x186,_0x1baac2);}this[_0x4c4585(0x7b,-0xd)]();}['update'](){function _0x460fcc(_0x28a9e1,_0x24fe24){return _0xaafa2(_0x24fe24-0x411,_0x28a9e1);}if(this['_updateIng'])return;this[_0x460fcc(0x63b,0x65d)]=!![];function _0x25e8b0(_0x46bf0f,_0x2189a1){return _0xaafa2(_0x46bf0f-0x28d,_0x2189a1);}if(this['worker'])this[_0x25e8b0(0x426,0x479)]['update']();else{const _0x553734=this['windField'][_0x25e8b0(0x4d4,0x557)]();this['_drawLines'](_0x553734);}this['_updateIng']=![];}['_drawLines'](_0x43627f){function _0x47497b(_0x4d3137,_0x58107e){return _0xaafa2(_0x58107e-0x7,_0x4d3137);}this['_canvasParticles']=_0x43627f,this['canvasContext'][_0x47497b(0xeb,0x14b)]='destination-in',this[_0x47497b(0x22c,0x1c3)][_0x47497b(0x291,0x22a)](0x0,0x0,this[_0x3ed31f(-0x11a,-0x134)],this[_0x3ed31f(-0xee,-0x73)]),this['canvasContext']['globalCompositeOperation']=_0x47497b(0x17a,0x16b),this[_0x3ed31f(-0xf0,-0xd8)][_0x3ed31f(-0x14c,-0x154)]=0.9;const _0x14ad3a=this['_map']['scene']['mode']!==Cesium['SceneMode'][_0x3ed31f(-0xae,-0xb5)];function _0x3ed31f(_0xfe42bd,_0x3ec53b){return _0x8e8939(_0x3ec53b- -0x26c,_0xfe42bd);}const _0x40c13a=this['canvasWidth']*0.25;if(this[_0x47497b(0x294,0x21c)])for(let _0x394dae=0x0,_0x53cd4e=_0x43627f['length'];_0x394dae<_0x53cd4e;_0x394dae++){const _0x226861=_0x43627f[_0x394dae],_0x36c0d7=this[_0x47497b(0x1db,0x244)](_0x226861,_0x226861['lng'],_0x226861[_0x3ed31f(-0xf7,-0xcd)],_0x226861['alt']),_0x1ec373=this[_0x47497b(0x259,0x244)](_0x226861,_0x226861[_0x47497b(0x1de,0x1c1)],_0x226861['tlat'],_0x226861[_0x3ed31f(-0x1b4,-0x13d)]);if(!_0x36c0d7||!_0x1ec373)continue;if(_0x14ad3a&&Math[_0x47497b(0x1ed,0x1d3)](_0x36c0d7[0x0]-_0x1ec373[0x0])>=_0x40c13a)continue;this['canvasContext'][_0x47497b(0x17c,0x1f5)](),this['canvasContext']['lineWidth']=this[_0x3ed31f(-0x109,-0x132)],this['canvasContext'][_0x3ed31f(-0x9d,-0x69)]=this['_colorRamp']['getColor'](_0x226861[_0x47497b(0xd9,0x157)]),this[_0x3ed31f(-0x5a,-0xd8)][_0x3ed31f(-0x102,-0x85)](_0x36c0d7[0x0],_0x36c0d7[0x1]),this[_0x3ed31f(-0xf4,-0xd8)][_0x47497b(0x245,0x246)](_0x1ec373[0x0],_0x1ec373[0x1]),this[_0x47497b(0x154,0x1c3)]['stroke']();}else{this[_0x3ed31f(-0x14f,-0xd8)][_0x47497b(0x16e,0x1f5)](),this[_0x47497b(0x1c9,0x1c3)]['lineWidth']=this['lineWidth'],this[_0x47497b(0x238,0x1c3)]['strokeStyle']=this['color'];for(let _0x4455be=0x0,_0x5bc382=_0x43627f[_0x3ed31f(0x17,-0x70)];_0x4455be<_0x5bc382;_0x4455be++){const _0x158b06=_0x43627f[_0x4455be],_0x42362b=this[_0x47497b(0x2cb,0x244)](_0x158b06,_0x158b06['lng'],_0x158b06['lat'],_0x158b06['alt']),_0x150867=this[_0x47497b(0x248,0x244)](_0x158b06,_0x158b06[_0x3ed31f(-0x67,-0xda)],_0x158b06['tlat'],_0x158b06['talt']);if(!_0x42362b||!_0x150867)continue;if(_0x14ad3a&&Math['abs'](_0x42362b[0x0]-_0x150867[0x0])>=_0x40c13a)continue;this['canvasContext'][_0x47497b(0x1ad,0x216)](_0x42362b[0x0],_0x42362b[0x1]),this[_0x47497b(0x1ee,0x1c3)]['lineTo'](_0x150867[0x0],_0x150867[0x1]);}this['canvasContext'][_0x47497b(0x1e4,0x222)]();}}['_tomap'](_0x13d3f3,_0xd823de,_0x48f02b,_0x5bdf43){const _0xd9a6d9=Cesium['Cartesian3']['fromDegrees'](_0xd823de,_0x48f02b,_0x5bdf43??this['fixedHeight']),_0x376be3=this['_map']['scene'];if(_0x376be3[_0x408695(0x4d4,0x506)]===Cesium[_0x408695(0x3bb,0x42e)]['SCENE3D']){const _0x2ed8ae=new Cesium['EllipsoidalOccluder'](_0x376be3['globe']['ellipsoid'],_0x376be3[_0x408695(0x482,0x421)][_0x408695(0x41c,0x40c)]),_0x34c2a4=_0x2ed8ae[_0x408695(0x541,0x4e7)](_0xd9a6d9);if(!_0x34c2a4)return _0x13d3f3['age']=0x0,null;}function _0x586476(_0x3bd415,_0x4f93f4){return _0x8e8939(_0x4f93f4-0x3e7,_0x3bd415);}const _0x41a80b=mars3d__namespace[_0x586476(0x55e,0x596)]['toWindowCoordinates'](this['_map']['scene'],_0xd9a6d9);function _0x408695(_0x54541f,_0x178418){return _0xaafa2(_0x178418-0x2be,_0x54541f);}return _0x41a80b?[_0x41a80b['x'],_0x41a80b['y']]:null;}['clear'](){function _0xd431f(_0x70ee0c,_0x5b38e0){return _0x8e8939(_0x70ee0c-0x1aa,_0x5b38e0);}this['windField'][_0xd431f(0x374,0x32c)](),delete this['windData'];}['initWorker'](){function _0x31fa08(_0x106269,_0x268251){return _0x8e8939(_0x106269- -0xad,_0x268251);}this['worker']=new Worker(this[_0x539e41(0x134,0x145)]['worker']),this[_0x539e41(0x1d6,0x150)]['onmessage']=_0x4cec3d=>{function _0x44a88e(_0x2441ef,_0x2d8d28){return _0x539e41(_0x2d8d28,_0x2441ef-0x22b);}this['_drawLines'](_0x4cec3d['data']['particles']),this[_0x44a88e(0x2e0,0x33f)]=![];};function _0x539e41(_0x10fa2b,_0x37537d){return _0xaafa2(_0x37537d- -0xb2,_0x10fa2b);}this['windField']={'init':_0x413855=>{const _0x26615d={};function _0x19add9(_0x56f731,_0x3d38f2){return _0x539e41(_0x56f731,_0x3d38f2-0x388);}function _0x5ad3ac(_0x11321f,_0x1dd6cc){return _0x31fa08(_0x1dd6cc- -0x72,_0x11321f);}_0x26615d['type']=_0x5ad3ac(0xb,0x72),_0x26615d['options']=_0x413855,this[_0x19add9(0x4ea,0x4d8)][_0x19add9(0x492,0x458)](_0x26615d);},'setOptions':_0x4dfdcb=>{const _0x4d431d={};_0x4d431d[_0x3e71b7(0x1ea,0x197)]=_0x3e71b7(0x13e,0x15c);function _0x3200b1(_0x1fef5a,_0xddf40b){return _0x539e41(_0xddf40b,_0x1fef5a-0x26d);}function _0x3e71b7(_0x1e8c1b,_0x2b5551){return _0x31fa08(_0x1e8c1b-0x84,_0x2b5551);}_0x4d431d['options']=_0x4dfdcb,this['worker']['postMessage'](_0x4d431d);},'setDate':_0x386413=>{const _0x4b205c={};_0x4b205c['type']=_0x1f02ee(0x22c,0x1e8),_0x4b205c[_0x238519(-0xfc,-0x85)]=_0x386413;function _0x1f02ee(_0x452412,_0x3e59e8){return _0x31fa08(_0x3e59e8-0x105,_0x452412);}function _0x238519(_0x158057,_0x3f1048){return _0x31fa08(_0x3f1048- -0x18d,_0x158057);}this[_0x238519(-0x7f,-0x60)][_0x238519(-0x62,-0xe0)](_0x4b205c);},'update':()=>{if(this[_0x3d53c4(0x5a0,0x5d0)])return;this['_updateIng2']=!![];function _0x3d53c4(_0x4dfd58,_0x331a3e){return _0x539e41(_0x4dfd58,_0x331a3e-0x51b);}function _0x8a6d32(_0x5d0cd4,_0x10d901){return _0x539e41(_0x5d0cd4,_0x10d901-0x52b);}const _0x349271={};_0x349271['type']=_0x8a6d32(0x6d7,0x64f),this['worker']['postMessage'](_0x349271);},'clear':()=>{const _0x431e9c={};function _0x3fb4fc(_0x468616,_0x497b96){return _0x31fa08(_0x468616- -0x12e,_0x497b96);}function _0x157d96(_0x5ad1ea,_0xa709a7){return _0x539e41(_0xa709a7,_0x5ad1ea-0xf8);}_0x431e9c['type']='clear',this[_0x3fb4fc(-0x1,-0x5b)][_0x3fb4fc(-0x81,-0x83)](_0x431e9c);}},this['windField']['init'](this['options']);}}mars3d__namespace['LayerUtil']['register']('canvasWind',CanvasWindLayer),mars3d__namespace['layer']['CanvasWindLayer']=CanvasWindLayer,mars3d__namespace[_0xaafa2(0x20e,0x292)]=CanvasWindField,mars3d__namespace['Log'][_0x8e8939(0x136,0x14c)]('mars3d-wind插件注册成功\x20\x20\x20\x20\x20版本:'+version+_0x8e8939(0x1e1,0x255)+buildTime),mars3d__namespace['WindUtil']=WindUtil,exports[_0xaafa2(0x20e,0x23c)]=CanvasWindField,exports['CanvasWindLayer']=CanvasWindLayer,exports['WindLayer']=WindLayer,exports['WindUtil']=WindUtil;const _0x5ee2de={};_0x5ee2de[_0xaafa2(0x16e,0x14c)]=!![],Object['defineProperty'](exports,_0xaafa2(0x210,0x222),_0x5ee2de);
14
+ 'use strict';(function(_0x364134,_0x42036f){function _0x4f0185(_0x33c86b,_0x12f58c){return _0x1b08(_0x12f58c- -0x271,_0x33c86b);}const _0x43b2da=_0x364134();function _0x5839d4(_0x5f16f6,_0x4d3ddd){return _0x1b08(_0x4d3ddd-0x142,_0x5f16f6);}while(!![]){try{const _0x360f9b=parseInt(_0x4f0185(-0x144,-0x167))/0x1*(-parseInt(_0x5839d4(0x373,0x30c))/0x2)+parseInt(_0x4f0185(-0x147,-0xdc))/0x3+-parseInt(_0x5839d4(0x2fd,0x2f3))/0x4*(parseInt(_0x4f0185(-0xef,-0xfc))/0x5)+parseInt(_0x5839d4(0x32a,0x2d3))/0x6*(parseInt(_0x4f0185(-0xb8,-0xe3))/0x7)+parseInt(_0x4f0185(-0xbe,-0xd5))/0x8*(parseInt(_0x4f0185(-0x119,-0xa6))/0x9)+-parseInt(_0x4f0185(-0x1a5,-0x130))/0xa+-parseInt(_0x5839d4(0x294,0x21f))/0xb*(parseInt(_0x4f0185(-0x108,-0x164))/0xc);if(_0x360f9b===_0x42036f)break;else _0x43b2da['push'](_0x43b2da['shift']());}catch(_0x3d4b6d){_0x43b2da['push'](_0x43b2da['shift']());}}}(_0x2db9,0x1a591));function _interopNamespace(_0x343675){if(_0x343675&&_0x343675[_0x2498be(0x27a,0x2e8)])return _0x343675;var _0x2377e8=Object[_0x4b6697(-0x3d,-0x91)](null);function _0x2498be(_0x494cfe,_0x1397f0){return _0x1b08(_0x1397f0-0x206,_0x494cfe);}_0x343675&&Object[_0x2498be(0x3a6,0x3a3)](_0x343675)['forEach'](function(_0x479dff){function _0x42c7c9(_0x4b1077,_0x25b2d5){return _0x2498be(_0x4b1077,_0x25b2d5-0xab);}function _0xd217a0(_0x4b8494,_0x2a4c85){return _0x2498be(_0x2a4c85,_0x4b8494- -0x41c);}if(_0x479dff!=='default'){var _0x28e5d3=Object[_0x42c7c9(0x4a3,0x484)](_0x343675,_0x479dff);Object[_0x42c7c9(0x3a3,0x390)](_0x2377e8,_0x479dff,_0x28e5d3[_0x42c7c9(0x420,0x45e)]?_0x28e5d3:{'enumerable':!![],'get':function(){return _0x343675[_0x479dff];}});}});function _0x4b6697(_0x57ed76,_0x45cdf1){return _0x1b08(_0x45cdf1- -0x246,_0x57ed76);}return _0x2377e8['default']=_0x343675,_0x2377e8;}var mars3d__namespace=_interopNamespace(mars3d);function _0x308ef9(_0x3bb818,_0xde44ea){return _0x1b08(_0x3bb818- -0x19f,_0xde44ea);}function _0x1b08(_0x20dfe5,_0x5c5d71){_0x20dfe5=_0x20dfe5-0xbf;const _0x2db92a=_0x2db9();let _0x1b081b=_0x2db92a[_0x20dfe5];return _0x1b081b;}const Cesium$2=mars3d__namespace[_0x441fa5(-0xb,-0x6)];function getU(_0x3b612f,_0x41e097){const _0x1d869d=_0x3b612f*Math['cos'](Cesium$2['Math'][_0x1a5fee(-0x196,-0x116)](_0x41e097));function _0x1a5fee(_0x494c4c,_0x472b47){return _0x441fa5(_0x494c4c- -0x14a,_0x472b47);}return _0x1d869d;}function getV(_0x4fbebe,_0x227e06){function _0x4354db(_0x582c4b,_0x2669c4){return _0x441fa5(_0x2669c4-0x494,_0x582c4b);}const _0x5ab305=_0x4fbebe*Math[_0x4354db(0x524,0x51c)](Cesium$2['Math']['toRadians'](_0x227e06));return _0x5ab305;}function _0x2db9(){const _0x204556=['ymax','number','2026-07-08\x2013:18','tlat','setOptions','componentsPerAttribute','particlesTextures','createRenderingFramebuffers','currentParticlesPosition','BaseLayer','Cesium','particlesNumber','IDENTITY','destroy','frameRateAdjustment','mouse_move','1580810yMyasK','_onMapWhellEvent','position','mars3d-canvasWind','mouseUp','blendFuncSource','pixelSize','context','style','UNSIGNED_INT','attributeLocations','sources','particleSystem','vmax','Math','blendFuncDestination','_addedHook','canvasContext','isDestroy','bufferUsage','removeEventListener','alt','speedRate','xmin','addEventListener','primitiveType','applyViewerParameters','canvas','framebuffers','SCENE3D','createComputingPrimitives','dropRateBump','Unknown\x20command\x20type','visibility','vdata','framebuffer','_onMouseDownEvent','cols','umax','north','east','south','lastFramesPerSecond','getSegmentDrawFragmentShader','dropRate','mode','quietPeriod','talt','wheel','createParticlesTextures','sqrt','magnificationFilter','38035uvzAsp','commandToExecute','updateViewerParameters','modelMatrix','EventType','_onMouseMoveEvent','_speedRate','zIndex','globe','pixelFormat','fixedHeight','length','xmax','displayRange','updatePosition','_removedHook','call','particlesSpeed','_onMouseUpEvent','getUpdatePositionShader','pointerEvents','latRange','viewerParameters','geometry','LayerUtil','455469tSVxfk','layer','getUVByPoint','18GEBfbm','uniformMap','top','segmentsColor','386337FGrOez','__proto__','frameRate','resize','floor','windTextures','UNSIGNED_BYTE','8mUbMUk','keys','reCreateWindTextures','grid','shaderProgram','data','fill','processWindData','onParticlesTextureSizeChange','type','atan2','original','_randomParticle','moveTo','clear','useViewerBounds','Draw','get','rows','lat','getDefaultRenderState','8NpssVN','drawingBufferWidth','worker','age','create','RGBA','previousParticlesPosition','isDestroyed','scene','west','rawRenderState','frameState.commandList\x20is\x20undefined','segments','unbindEvent','colorTextures','changeOptions','LINEAR','outputTexture','show','nextParticlesPosition','max','none','getCalculateSpeedShader','color','_tomap','196372OlSxbQ','1553103pfuyRa','createCommand','mouseHidden','sin','dynamic','getPrimitives','min','FUNC_ADD','getOwnPropertyDescriptor','maxAge','_calc_speedRate','wrapT','requestAnimationFrame','latitude','minificationFilter','FLOAT','getV','pixelDatatype','speed','getRandomLatLng','hidden','NEAREST','computing','fromCache','postProcessingPosition','isDynamic','#version\x20300\x20es\x0aprecision\x20highp\x20float;\x0a\x0ain\x20vec2\x20st;\x0ain\x20vec3\x20normal;\x0a\x0auniform\x20sampler2D\x20previousParticlesPosition;\x0auniform\x20sampler2D\x20currentParticlesPosition;\x0auniform\x20sampler2D\x20postProcessingPosition;\x0auniform\x20sampler2D\x20particlesSpeed;\x0a\x0auniform\x20float\x20frameRateAdjustment;\x0auniform\x20float\x20particleHeight;\x0auniform\x20float\x20aspect;\x0auniform\x20float\x20pixelSize;\x0auniform\x20vec2\x20lineWidth;\x0auniform\x20vec2\x20lineLength;\x0auniform\x20vec2\x20domain;\x0auniform\x20bool\x20is3D;\x0a\x0a//\x20添加输出变量传递给片元着色器\x0aout\x20vec4\x20speed;\x0aout\x20float\x20v_segmentPosition;\x0aout\x20vec2\x20textureCoordinate;\x0a\x0a//\x20添加结构体定义\x0astruct\x20adjacentPoints\x20{\x0a\x20\x20vec4\x20previous;\x0a\x20\x20vec4\x20current;\x0a\x20\x20vec4\x20next;\x0a};\x0a\x0avec3\x20convertCoordinate(vec2\x20lonLat)\x20{\x0a\x20\x20\x20\x20//\x20WGS84\x20(lon,\x20lat,\x20lev)\x20->\x20ECEF\x20(x,\x20y,\x20z)\x0a\x20\x20\x20\x20//\x20read\x20https://en.wikipedia.org/wiki/Geographic_coordinate_conversion#From_geodetic_to_ECEF_coordinates\x20for\x20detail\x0a\x0a\x20\x20\x20\x20//\x20WGS\x2084\x20geometric\x20constants\x0a\x20\x20float\x20a\x20=\x206378137.0f;\x20//\x20Semi-major\x20axis\x0a\x20\x20float\x20b\x20=\x206356752.3142f;\x20//\x20Semi-minor\x20axis\x0a\x20\x20float\x20e2\x20=\x206.69437999014e-3f;\x20//\x20First\x20eccentricity\x20squared\x0a\x0a\x20\x20float\x20latitude\x20=\x20radians(lonLat.y);\x0a\x20\x20float\x20longitude\x20=\x20radians(lonLat.x);\x0a\x0a\x20\x20float\x20cosLat\x20=\x20cos(latitude);\x0a\x20\x20float\x20sinLat\x20=\x20sin(latitude);\x0a\x20\x20float\x20cosLon\x20=\x20cos(longitude);\x0a\x20\x20float\x20sinLon\x20=\x20sin(longitude);\x0a\x0a\x20\x20float\x20N_Phi\x20=\x20a\x20/\x20sqrt(1.0f\x20-\x20e2\x20*\x20sinLat\x20*\x20sinLat);\x0a\x20\x20float\x20h\x20=\x20particleHeight;\x20//\x20it\x20should\x20be\x20high\x20enough\x20otherwise\x20the\x20particle\x20may\x20not\x20pass\x20the\x20terrain\x20depth\x20test\x0a\x20\x20vec3\x20cartesian\x20=\x20vec3(0.0f);\x0a\x20\x20cartesian.x\x20=\x20(N_Phi\x20+\x20h)\x20*\x20cosLat\x20*\x20cosLon;\x0a\x20\x20cartesian.y\x20=\x20(N_Phi\x20+\x20h)\x20*\x20cosLat\x20*\x20sinLon;\x0a\x20\x20cartesian.z\x20=\x20((b\x20*\x20b)\x20/\x20(a\x20*\x20a)\x20*\x20N_Phi\x20+\x20h)\x20*\x20sinLat;\x0a\x20\x20return\x20cartesian;\x0a}\x0a\x0avec4\x20calculateProjectedCoordinate(vec2\x20lonLat)\x20{\x0a\x20\x20if(is3D)\x20{\x0a\x20\x20\x20\x20vec3\x20particlePosition\x20=\x20convertCoordinate(lonLat);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用\x20modelViewProjection\x20矩阵进行投影变换\x0a\x20\x20\x20\x20vec4\x20projectedPosition\x20=\x20czm_modelViewProjection\x20*\x20vec4(particlePosition,\x201.0f);\x0a\x20\x20\x20\x20return\x20projectedPosition;\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20vec3\x20position2D\x20=\x20vec3(radians(lonLat.x),\x20radians(lonLat.y),\x200.0f);\x0a\x20\x20\x20\x20return\x20czm_modelViewProjection\x20*\x20vec4(position2D,\x201.0f);\x0a\x20\x20}\x0a}\x0a\x0avec4\x20calculateOffsetOnNormalDirection(vec4\x20pointA,\x20vec4\x20pointB,\x20float\x20offsetSign,\x20float\x20widthFactor)\x20{\x0a\x20\x20vec2\x20aspectVec2\x20=\x20vec2(aspect,\x201.0f);\x0a\x20\x20vec2\x20pointA_XY\x20=\x20(pointA.xy\x20/\x20pointA.w)\x20*\x20aspectVec2;\x0a\x20\x20vec2\x20pointB_XY\x20=\x20(pointB.xy\x20/\x20pointB.w)\x20*\x20aspectVec2;\x0a\x0a\x20\x20\x20\x20//\x20计算方向向量\x0a\x20\x20vec2\x20direction\x20=\x20normalize(pointB_XY\x20-\x20pointA_XY);\x0a\x0a\x20\x20\x20\x20//\x20计算法向量\x0a\x20\x20vec2\x20normalVector\x20=\x20vec2(-direction.y,\x20direction.x);\x0a\x20\x20normalVector.x\x20=\x20normalVector.x\x20/\x20aspect;\x0a\x0a\x20\x20\x20\x20//\x20使用\x20widthFactor\x20调整宽度\x0a\x20\x20float\x20offsetLength\x20=\x20widthFactor\x20*\x20lineWidth.y;\x0a\x20\x20normalVector\x20=\x20offsetLength\x20*\x20normalVector;\x0a\x0a\x20\x20vec4\x20offset\x20=\x20vec4(offsetSign\x20*\x20normalVector,\x200.0f,\x200.0f);\x0a\x20\x20return\x20offset;\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20//\x20翻转\x20Y\x20轴坐标\x0a\x20\x20vec2\x20flippedIndex\x20=\x20vec2(st.x,\x201.0f\x20-\x20st.y);\x0a\x0a\x20\x20vec2\x20particleIndex\x20=\x20flippedIndex;\x0a\x20\x20speed\x20=\x20texture(particlesSpeed,\x20particleIndex);\x0a\x0a\x20\x20vec2\x20previousPosition\x20=\x20texture(previousParticlesPosition,\x20particleIndex).rg;\x0a\x20\x20vec2\x20currentPosition\x20=\x20texture(currentParticlesPosition,\x20particleIndex).rg;\x0a\x20\x20vec2\x20nextPosition\x20=\x20texture(postProcessingPosition,\x20particleIndex).rg;\x0a\x0a\x20\x20float\x20isAnyRandomPointUsed\x20=\x20texture(postProcessingPosition,\x20particleIndex).a\x20+\x0a\x20\x20\x20\x20texture(currentParticlesPosition,\x20particleIndex).a\x20+\x0a\x20\x20\x20\x20texture(previousParticlesPosition,\x20particleIndex).a;\x0a\x0a\x20\x20adjacentPoints\x20projectedCoordinates;\x0a\x20\x20if(isAnyRandomPointUsed\x20>\x200.0f)\x20{\x0a\x20\x20\x20\x20projectedCoordinates.previous\x20=\x20calculateProjectedCoordinate(previousPosition);\x0a\x20\x20\x20\x20projectedCoordinates.current\x20=\x20projectedCoordinates.previous;\x0a\x20\x20\x20\x20projectedCoordinates.next\x20=\x20projectedCoordinates.previous;\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20projectedCoordinates.previous\x20=\x20calculateProjectedCoordinate(previousPosition);\x0a\x20\x20\x20\x20projectedCoordinates.current\x20=\x20calculateProjectedCoordinate(currentPosition);\x0a\x20\x20\x20\x20projectedCoordinates.next\x20=\x20calculateProjectedCoordinate(nextPosition);\x0a\x20\x20}\x0a\x0a\x20\x20int\x20pointToUse\x20=\x20int(normal.x);\x0a\x20\x20float\x20offsetSign\x20=\x20normal.y;\x0a\x20\x20vec4\x20offset\x20=\x20vec4(0.0f);\x0a\x0a\x20\x20\x20\x20//\x20计算速度相关的宽度和长度因子\x0a\x20\x20float\x20speedLength\x20=\x20clamp(speed.b,\x20domain.x,\x20domain.y);\x0a\x20\x20float\x20normalizedSpeed\x20=\x20(speedLength\x20-\x20domain.x)\x20/\x20(domain.y\x20-\x20domain.x);\x0a\x0a\x20\x20\x20\x20//\x20根据速度计算宽度\x0a\x20\x20float\x20widthFactor\x20=\x20mix(lineWidth.x,\x20lineWidth.y,\x20normalizedSpeed);\x0a\x20\x20widthFactor\x20*=\x20(pointToUse\x20<\x200\x20?\x201.0f\x20:\x200.5f);\x20//\x20头部更宽,尾部更窄\x0a\x0a\x20\x20\x20\x20//\x20Calculate\x20length\x20based\x20on\x20speed\x0a\x20\x20float\x20lengthFactor\x20=\x20mix(lineLength.x,\x20lineLength.y,\x20normalizedSpeed)\x20*\x20pixelSize;\x0a\x0a\x20\x20if(pointToUse\x20==\x201)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20头部位置\x0a\x20\x20\x20\x20offset\x20=\x20pixelSize\x20*\x20calculateOffsetOnNormalDirection(projectedCoordinates.previous,\x20projectedCoordinates.current,\x20offsetSign,\x20widthFactor);\x0a\x20\x20\x20\x20gl_Position\x20=\x20projectedCoordinates.previous\x20+\x20offset;\x0a\x20\x20\x20\x20v_segmentPosition\x20=\x200.0f;\x20//\x20头部\x0a\x20\x20}\x20else\x20if(pointToUse\x20==\x20-1)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20Get\x20direction\x20and\x20normalize\x20it\x20to\x20length\x201.0\x0a\x20\x20\x20\x20vec4\x20direction\x20=\x20normalize(projectedCoordinates.next\x20-\x20projectedCoordinates.current);\x0a\x20\x20\x20\x20vec4\x20extendedPosition\x20=\x20projectedCoordinates.current\x20+\x20direction\x20*\x20lengthFactor;\x0a\x0a\x20\x20\x20\x20offset\x20=\x20pixelSize\x20*\x20calculateOffsetOnNormalDirection(projectedCoordinates.current,\x20extendedPosition,\x20offsetSign,\x20widthFactor);\x0a\x20\x20\x20\x20gl_Position\x20=\x20extendedPosition\x20+\x20offset;\x0a\x20\x20\x20\x20v_segmentPosition\x20=\x201.0f;\x20//\x20尾部\x0a\x20\x20}\x0a\x0a\x20\x20textureCoordinate\x20=\x20st;\x0a}\x0a','windField','tlng','lng','colors','reverse','clientWidth','_drawLines','all','frameRateMonitor','Cartesian2','changed','Invalid\x20particlesTextureSize.\x20Using\x20default\x20value\x20of\x20256.','ellipsoid','values','cartesianToCartographic','left','wind','_animateFrame','208549dKnDVI','stringify','defineProperty','clearCommand','windData','__esModule','blue','vertexShaderSource','flipY','primitives','PointTrans','SceneMode','bind','_mountedHook','lineLength','particlesTextureSize','_calcUV','calculateSpeed','width','bounds','particles','wrapS','normal','ymin','ColorRamp','canvasWind','renderState','options','_maxAge','toRadians','morphComplete','_updateIng2','0px','vertexArray','STATIC_DRAW','redraw','createRenderingTextures','getU','blending','isInExtent','stroke','getUVByXY','array','createPrimitives','owner','2XmapSK','flatMap','postMessage','12TvwOxp','container','height','auto','commandType','rendering','cancelAnimationFrame','onColorTableChange','requestRender','lineWidth','preExecute','drawingBufferHeight','strokeStyle','forEach','CanvasWindLayer','clientHeight','_colorRamp','steps','camera','initFrameRate','canvasHeight','push','colorTable','depthTest','mouseDown','createWindTextures','_updateIng','enabled','hasOwnProperty','fragmentShaderSource','createColorTableTexture','_setOptionsHook','off','pass','_map','warn'];_0x2db9=function(){return _0x204556;};return _0x2db9();}function getSpeed(_0xf78802,_0x154604){function _0x44457f(_0x956f79,_0xce832d){return _0x441fa5(_0xce832d- -0x266,_0x956f79);}const _0x19f3eb=Math[_0x44457f(-0x2c6,-0x239)](Math['pow'](_0xf78802,0x2)+Math['pow'](_0x154604,0x2));return _0x19f3eb;}function getDirection(_0x26d9cf,_0x299be5){let _0x3cd420=Cesium$2[_0x333ee9(0x73,0x4c)]['toDegrees'](Math[_0x333ee9(0xf1,0xa3)](_0x299be5,_0x26d9cf));_0x3cd420+=_0x3cd420<0x0?0x168:0x0;function _0x49a791(_0x2b0e8d,_0x900b79){return _0x441fa5(_0x2b0e8d-0x1ea,_0x900b79);}function _0x333ee9(_0x5b80d9,_0x3bffb0){return _0x441fa5(_0x3bffb0-0x43,_0x5b80d9);}return _0x3cd420;}const _0x247575={};_0x247575[_0x308ef9(-0x9,0x7e)]=null,_0x247575[_0x441fa5(-0x44,-0x92)]=getU,_0x247575[_0x441fa5(-0x86,-0xfd)]=getV,_0x247575['getSpeed']=getSpeed,_0x247575['getDirection']=getDirection;var WindUtil=_0x247575;const version='3.11.5',buildTime=_0x441fa5(-0x13,0x30);var updatePositionShader='#version\x20300\x20es\x0aprecision\x20highp\x20float;\x0a\x0auniform\x20sampler2D\x20currentParticlesPosition;\x0auniform\x20sampler2D\x20particlesSpeed;\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0aout\x20vec4\x20fragColor;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20//\x20获取当前粒子的位置\x0a\x20\x20vec2\x20currentPos\x20=\x20texture(currentParticlesPosition,\x20v_textureCoordinates).rg;\x0a\x20\x20\x20\x20//\x20获取粒子的速度\x0a\x20\x20vec2\x20speed\x20=\x20texture(particlesSpeed,\x20v_textureCoordinates).rg;\x0a\x20\x20\x20\x20//\x20计算下一个位置\x0a\x20\x20vec2\x20nextPos\x20=\x20currentPos\x20+\x20speed;\x0a\x0a\x20\x20\x20\x20//\x20将新的位置写入\x20fragColor\x0a\x20\x20fragColor\x20=\x20vec4(nextPos,\x200.0f,\x201.0f);\x0a}\x0a',calculateSpeedShader='#version\x20300\x20es\x0a\x0a//\x20the\x20size\x20of\x20UV\x20textures:\x20width\x20=\x20lon,\x20height\x20=\x20lat\x0auniform\x20sampler2D\x20U;\x20//\x20eastward\x20wind\x0auniform\x20sampler2D\x20V;\x20//\x20northward\x20wind\x0auniform\x20sampler2D\x20currentParticlesPosition;\x20//\x20(lon,\x20lat,\x20lev)\x0a\x0auniform\x20vec2\x20uRange;\x20//\x20(min,\x20max)\x0auniform\x20vec2\x20vRange;\x20//\x20(min,\x20max)\x0auniform\x20vec2\x20speedRange;\x20//\x20(min,\x20max)\x0auniform\x20vec2\x20dimension;\x20//\x20(lon,\x20lat)\x0auniform\x20vec2\x20minimum;\x20//\x20minimum\x20of\x20each\x20dimension\x0auniform\x20vec2\x20maximum;\x20//\x20maximum\x20of\x20each\x20dimension\x0a\x0auniform\x20float\x20speedScaleFactor;\x0auniform\x20float\x20frameRateAdjustment;\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0avec2\x20getInterval(vec2\x20maximum,\x20vec2\x20minimum,\x20vec2\x20dimension)\x20{\x0a\x20\x20return\x20(maximum\x20-\x20minimum)\x20/\x20(dimension\x20-\x201.0f);\x0a}\x0a\x0avec2\x20mapPositionToNormalizedIndex2D(vec2\x20lonLat)\x20{\x0a\x20\x20\x20\x20//\x20ensure\x20the\x20range\x20of\x20longitude\x20and\x20latitude\x0a\x20\x20lonLat.x\x20=\x20clamp(lonLat.x,\x20minimum.x,\x20maximum.x);\x0a\x20\x20lonLat.y\x20=\x20clamp(lonLat.y,\x20minimum.y,\x20maximum.y);\x0a\x0a\x20\x20vec2\x20interval\x20=\x20getInterval(maximum,\x20minimum,\x20dimension);\x0a\x0a\x20\x20vec2\x20index2D\x20=\x20vec2(0.0f);\x0a\x20\x20index2D.x\x20=\x20(lonLat.x\x20-\x20minimum.x)\x20/\x20interval.x;\x0a\x20\x20index2D.y\x20=\x20(lonLat.y\x20-\x20minimum.y)\x20/\x20interval.y;\x0a\x0a\x20\x20vec2\x20normalizedIndex2D\x20=\x20vec2(index2D.x\x20/\x20dimension.x,\x20index2D.y\x20/\x20dimension.y);\x0a\x20\x20return\x20normalizedIndex2D;\x0a}\x0a\x0afloat\x20getWindComponent(sampler2D\x20componentTexture,\x20vec2\x20lonLat)\x20{\x0a\x20\x20vec2\x20normalizedIndex2D\x20=\x20mapPositionToNormalizedIndex2D(lonLat);\x0a\x20\x20float\x20result\x20=\x20texture(componentTexture,\x20normalizedIndex2D).r;\x0a\x20\x20return\x20result;\x0a}\x0a\x0avec2\x20getWindComponents(vec2\x20lonLat)\x20{\x0a\x20\x20vec2\x20normalizedIndex2D\x20=\x20mapPositionToNormalizedIndex2D(lonLat);\x0a\x20\x20float\x20u\x20=\x20texture(U,\x20normalizedIndex2D).r;\x0a\x20\x20float\x20v\x20=\x20texture(V,\x20normalizedIndex2D).r;\x0a\x20\x20return\x20vec2(u,\x20v);\x0a}\x0a\x0avec2\x20bilinearInterpolation(vec2\x20lonLat)\x20{\x0a\x20\x20float\x20lon\x20=\x20lonLat.x;\x0a\x20\x20float\x20lat\x20=\x20lonLat.y;\x0a\x0a\x20\x20vec2\x20interval\x20=\x20getInterval(maximum,\x20minimum,\x20dimension);\x0a\x0a\x20\x20\x20\x20//\x20Calculate\x20grid\x20cell\x20coordinates\x0a\x20\x20float\x20lon0\x20=\x20floor(lon\x20/\x20interval.x)\x20*\x20interval.x;\x0a\x20\x20float\x20lon1\x20=\x20lon0\x20+\x20interval.x;\x0a\x20\x20float\x20lat0\x20=\x20floor(lat\x20/\x20interval.y)\x20*\x20interval.y;\x0a\x20\x20float\x20lat1\x20=\x20lat0\x20+\x20interval.y;\x0a\x0a\x20\x20\x20\x20//\x20Get\x20wind\x20vectors\x20at\x20four\x20corners\x0a\x20\x20vec2\x20v00\x20=\x20getWindComponents(vec2(lon0,\x20lat0));\x0a\x20\x20vec2\x20v10\x20=\x20getWindComponents(vec2(lon1,\x20lat0));\x0a\x20\x20vec2\x20v01\x20=\x20getWindComponents(vec2(lon0,\x20lat1));\x0a\x20\x20vec2\x20v11\x20=\x20getWindComponents(vec2(lon1,\x20lat1));\x0a\x0a\x20\x20\x20\x20//\x20Check\x20if\x20all\x20wind\x20vectors\x20are\x20zero\x0a\x20\x20if(length(v00)\x20==\x200.0f\x20&&\x20length(v10)\x20==\x200.0f\x20&&\x20length(v01)\x20==\x200.0f\x20&&\x20length(v11)\x20==\x200.0f)\x20{\x0a\x20\x20\x20\x20return\x20vec2(0.0f,\x200.0f);\x0a\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20Calculate\x20interpolation\x20weights\x0a\x20\x20float\x20s\x20=\x20(lon\x20-\x20lon0)\x20/\x20interval.x;\x0a\x20\x20float\x20t\x20=\x20(lat\x20-\x20lat0)\x20/\x20interval.y;\x0a\x0a\x20\x20\x20\x20//\x20Perform\x20bilinear\x20interpolation\x20on\x20vector\x20components\x0a\x20\x20vec2\x20v0\x20=\x20mix(v00,\x20v10,\x20s);\x0a\x20\x20vec2\x20v1\x20=\x20mix(v01,\x20v11,\x20s);\x0a\x20\x20return\x20mix(v0,\x20v1,\x20t);\x0a}\x0a\x0avec2\x20lengthOfLonLat(vec2\x20lonLat)\x20{\x0a\x20\x20\x20\x20//\x20unit\x20conversion:\x20meters\x20->\x20longitude\x20latitude\x20degrees\x0a\x20\x20\x20\x20//\x20see\x20https://en.wikipedia.org/wiki/Geographic_coordinate_system#Length_of_a_degree\x20for\x20detail\x0a\x0a\x20\x20\x20\x20//\x20Calculate\x20the\x20length\x20of\x20a\x20degree\x20of\x20latitude\x20and\x20longitude\x20in\x20meters\x0a\x20\x20float\x20latitude\x20=\x20radians(lonLat.y);\x0a\x0a\x20\x20float\x20term1\x20=\x20111132.92f;\x0a\x20\x20float\x20term2\x20=\x20559.82f\x20*\x20cos(2.0f\x20*\x20latitude);\x0a\x20\x20float\x20term3\x20=\x201.175f\x20*\x20cos(4.0f\x20*\x20latitude);\x0a\x20\x20float\x20term4\x20=\x200.0023f\x20*\x20cos(6.0f\x20*\x20latitude);\x0a\x20\x20float\x20latLength\x20=\x20term1\x20-\x20term2\x20+\x20term3\x20-\x20term4;\x0a\x0a\x20\x20float\x20term5\x20=\x20111412.84f\x20*\x20cos(latitude);\x0a\x20\x20float\x20term6\x20=\x2093.5f\x20*\x20cos(3.0f\x20*\x20latitude);\x0a\x20\x20float\x20term7\x20=\x200.118f\x20*\x20cos(5.0f\x20*\x20latitude);\x0a\x20\x20float\x20longLength\x20=\x20term5\x20-\x20term6\x20+\x20term7;\x0a\x0a\x20\x20return\x20vec2(longLength,\x20latLength);\x0a}\x0a\x0avec2\x20convertSpeedUnitToLonLat(vec2\x20lonLat,\x20vec2\x20speed)\x20{\x0a\x20\x20vec2\x20lonLatLength\x20=\x20lengthOfLonLat(lonLat);\x0a\x20\x20float\x20u\x20=\x20speed.x\x20/\x20lonLatLength.x;\x0a\x20\x20float\x20v\x20=\x20speed.y\x20/\x20lonLatLength.y;\x0a\x20\x20vec2\x20windVectorInLonLat\x20=\x20vec2(u,\x20v);\x0a\x0a\x20\x20return\x20windVectorInLonLat;\x0a}\x0a\x0avec2\x20calculateSpeedByRungeKutta2(vec2\x20lonLat)\x20{\x0a\x20\x20\x20\x20//\x20see\x20https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods#Second-order_methods_with_two_stages\x20for\x20detail\x0a\x20\x20const\x20float\x20h\x20=\x200.5f;\x0a\x0a\x20\x20vec2\x20y_n\x20=\x20lonLat;\x0a\x20\x20vec2\x20f_n\x20=\x20bilinearInterpolation(lonLat);\x0a\x20\x20vec2\x20midpoint\x20=\x20y_n\x20+\x200.5f\x20*\x20h\x20*\x20convertSpeedUnitToLonLat(y_n,\x20f_n)\x20*\x20speedScaleFactor;\x0a\x20\x20vec2\x20speed\x20=\x20h\x20*\x20bilinearInterpolation(midpoint)\x20*\x20speedScaleFactor;\x0a\x0a\x20\x20return\x20speed;\x0a}\x0a\x0avec2\x20calculateWindNorm(vec2\x20speed)\x20{\x0a\x20\x20float\x20speedLength\x20=\x20length(speed.xy);\x0a\x20\x20if(speedLength\x20==\x200.0f)\x20{\x0a\x20\x20\x20\x20return\x20vec2(0.0f);\x0a\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20Clamp\x20speedLength\x20to\x20range\x0a\x20\x20float\x20clampedSpeed\x20=\x20clamp(speedLength,\x20speedRange.x,\x20speedRange.y);\x0a\x20\x20float\x20normalizedSpeed\x20=\x20(clampedSpeed\x20-\x20speedRange.x)\x20/\x20(speedRange.y\x20-\x20speedRange.x);\x0a\x20\x20return\x20vec2(speedLength,\x20normalizedSpeed);\x0a}\x0a\x0aout\x20vec4\x20fragColor;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20//\x20texture\x20coordinate\x20must\x20be\x20normalized\x0a\x20\x20vec2\x20lonLat\x20=\x20texture(currentParticlesPosition,\x20v_textureCoordinates).rg;\x0a\x20\x20vec2\x20speedOrigin\x20=\x20bilinearInterpolation(lonLat);\x0a\x20\x20vec2\x20speed\x20=\x20calculateSpeedByRungeKutta2(lonLat)\x20*\x20frameRateAdjustment;\x0a\x20\x20vec2\x20speedInLonLat\x20=\x20convertSpeedUnitToLonLat(lonLat,\x20speed);\x0a\x0a\x20\x20fragColor\x20=\x20vec4(speedInLonLat,\x20calculateWindNorm(speedOrigin));\x0a}\x0a',postProcessingPositionFragmentShader='#version\x20300\x20es\x0aprecision\x20highp\x20float;\x0a\x0auniform\x20sampler2D\x20nextParticlesPosition;\x0auniform\x20sampler2D\x20particlesSpeed;\x20//\x20(u,\x20v,\x20norm)\x0a\x0a//\x20range\x20(min,\x20max)\x0auniform\x20vec2\x20lonRange;\x0auniform\x20vec2\x20latRange;\x0a\x0a//\x20range\x20(min,\x20max)\x0auniform\x20vec2\x20dataLonRange;\x0auniform\x20vec2\x20dataLatRange;\x0a\x0auniform\x20float\x20randomCoefficient;\x0auniform\x20float\x20dropRate;\x0auniform\x20float\x20dropRateBump;\x0a\x0a//\x20添加新的\x20uniform\x20变量\x0auniform\x20bool\x20useViewerBounds;\x0a\x0ain\x20vec2\x20v_textureCoordinates;\x0a\x0a//\x20pseudo-random\x20generator\x0aconst\x20vec3\x20randomConstants\x20=\x20vec3(12.9898f,\x2078.233f,\x204375.85453f);\x0aconst\x20vec2\x20normalRange\x20=\x20vec2(0.0f,\x201.0f);\x0afloat\x20rand(vec2\x20seed,\x20vec2\x20range)\x20{\x0a\x20\x20vec2\x20randomSeed\x20=\x20randomCoefficient\x20*\x20seed;\x0a\x20\x20float\x20temp\x20=\x20dot(randomConstants.xy,\x20randomSeed);\x0a\x20\x20temp\x20=\x20fract(sin(temp)\x20*\x20(randomConstants.z\x20+\x20temp));\x0a\x20\x20return\x20temp\x20*\x20(range.y\x20-\x20range.x)\x20+\x20range.x;\x0a}\x0a\x0avec2\x20generateRandomParticle(vec2\x20seed)\x20{\x0a\x20\x20vec2\x20range;\x0a\x20\x20float\x20randomLon,\x20randomLat;\x0a\x0a\x20\x20if(useViewerBounds)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20在当前视域范围内生成粒子\x0a\x20\x20\x20\x20randomLon\x20=\x20rand(seed,\x20lonRange);\x0a\x20\x20\x20\x20randomLat\x20=\x20rand(-seed,\x20latRange);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20在数据范围内生成粒子\x0a\x20\x20\x20\x20randomLon\x20=\x20rand(seed,\x20dataLonRange);\x0a\x20\x20\x20\x20randomLat\x20=\x20rand(-seed,\x20dataLatRange);\x0a\x20\x20}\x0a\x0a\x20\x20return\x20vec2(randomLon,\x20randomLat);\x0a}\x0a\x0abool\x20particleOutbound(vec2\x20particle)\x20{\x0a\x20\x20return\x20particle.y\x20<\x20dataLatRange.x\x20||\x20particle.y\x20>\x20dataLatRange.y\x20||\x20particle.x\x20<\x20dataLonRange.x\x20||\x20particle.x\x20>\x20dataLonRange.y;\x0a}\x0a\x0aout\x20vec4\x20fragColor;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20vec2\x20nextParticle\x20=\x20texture(nextParticlesPosition,\x20v_textureCoordinates).rg;\x0a\x20\x20vec4\x20nextSpeed\x20=\x20texture(particlesSpeed,\x20v_textureCoordinates);\x0a\x20\x20float\x20speedNorm\x20=\x20nextSpeed.a;\x0a\x20\x20float\x20particleDropRate\x20=\x20dropRate\x20+\x20dropRateBump\x20*\x20speedNorm;\x0a\x0a\x20\x20vec2\x20seed1\x20=\x20nextParticle.xy\x20+\x20v_textureCoordinates;\x0a\x20\x20vec2\x20seed2\x20=\x20nextSpeed.rg\x20+\x20v_textureCoordinates;\x0a\x20\x20vec2\x20randomParticle\x20=\x20generateRandomParticle(seed1);\x0a\x20\x20float\x20randomNumber\x20=\x20rand(seed2,\x20normalRange);\x0a\x0a\x20\x20if(randomNumber\x20<\x20particleDropRate\x20||\x20particleOutbound(nextParticle))\x20{\x0a\x20\x20\x20\x20fragColor\x20=\x20vec4(randomParticle,\x200.0f,\x201.0f);\x20//\x201.0\x20means\x20this\x20is\x20a\x20random\x20particle\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20fragColor\x20=\x20vec4(nextParticle,\x200.0f,\x200.0f);\x0a\x20\x20}\x0a}\x0a',renderParticlesFragmentShader='#version\x20300\x20es\x0aprecision\x20highp\x20float;\x0a\x0ain\x20vec4\x20speed;\x0ain\x20float\x20v_segmentPosition;\x0ain\x20vec2\x20textureCoordinate;\x0a\x0auniform\x20vec2\x20domain;\x0auniform\x20vec2\x20displayRange;\x0auniform\x20sampler2D\x20colorTable;\x0auniform\x20sampler2D\x20segmentsDepthTexture;\x0a\x0aout\x20vec4\x20fragColor;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20const\x20float\x20zero\x20=\x200.0f;\x0a\x20\x20if(speed.a\x20>\x20zero\x20&&\x20speed.b\x20>\x20displayRange.x\x20&&\x20speed.b\x20<\x20displayRange.y)\x20{\x0a\x20\x20\x20\x20float\x20speedLength\x20=\x20clamp(speed.b,\x20domain.x,\x20domain.y);\x0a\x20\x20\x20\x20float\x20normalizedSpeed\x20=\x20(speedLength\x20-\x20domain.x)\x20/\x20(domain.y\x20-\x20domain.x);\x0a\x20\x20\x20\x20vec4\x20baseColor\x20=\x20texture(colorTable,\x20vec2(normalizedSpeed,\x20zero));\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用更平滑的渐变效果\x0a\x20\x20\x20\x20float\x20alpha\x20=\x20smoothstep(0.0f,\x201.0f,\x20v_segmentPosition);\x0a\x20\x20\x20\x20alpha\x20=\x20pow(alpha,\x201.5f);\x20//\x20调整透明度渐变曲线\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20根据速度调整透明度\x0a\x20\x20\x20\x20float\x20speedAlpha\x20=\x20mix(0.3f,\x201.0f,\x20speed.a);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20组合颜色和透明度\x0a\x20\x20\x20\x20fragColor\x20=\x20vec4(baseColor.rgb,\x20baseColor.a\x20*\x20alpha\x20*\x20speedAlpha);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20fragColor\x20=\x20vec4(zero);\x0a\x20\x20}\x0a\x0a\x20\x20float\x20segmentsDepth\x20=\x20texture(segmentsDepthTexture,\x20textureCoordinate).r;\x0a\x20\x20float\x20globeDepth\x20=\x20czm_unpackDepth(texture(czm_globeDepthTexture,\x20textureCoordinate));\x0a\x20\x20if(segmentsDepth\x20<\x20globeDepth)\x20{\x0a\x20\x20\x20\x20fragColor\x20=\x20vec4(zero);\x0a\x20\x20}\x0a}\x0a',renderParticlesVertexShader=_0x308ef9(-0xd5,-0x70);const {ShaderSource:ShaderSource$1}=mars3d__namespace[_0x308ef9(-0x64,-0x7e)];class ShaderManager{static['getCalculateSpeedShader'](){const _0xfb8abe={};function _0x1f9aae(_0x4cdf38,_0x3886a1){return _0x308ef9(_0x4cdf38-0x332,_0x3886a1);}return _0xfb8abe[_0x1f9aae(0x2df,0x337)]=[calculateSpeedShader],new ShaderSource$1(_0xfb8abe);}static[_0x441fa5(0x42,-0x21)](){const _0x12cc0e={};return _0x12cc0e['sources']=[updatePositionShader],new ShaderSource$1(_0x12cc0e);}static['getSegmentDrawVertexShader'](){function _0x34ec0c(_0x15a567,_0x427800){return _0x308ef9(_0x15a567-0x42,_0x427800);}const _0x2fe26c={};return _0x2fe26c[_0x34ec0c(-0x11,0x47)]=[renderParticlesVertexShader],new ShaderSource$1(_0x2fe26c);}static['getSegmentDrawFragmentShader'](){function _0x20064c(_0x140e22,_0x7e6532){return _0x308ef9(_0x7e6532-0x57d,_0x140e22);}const _0x1cda20={};return _0x1cda20[_0x20064c(0x4d1,0x52a)]=[renderParticlesFragmentShader],new ShaderSource$1(_0x1cda20);}static['getPostProcessingPositionShader'](){const _0x4834de={};function _0x414a9b(_0x19464c,_0x18e08f){return _0x308ef9(_0x18e08f-0x3d2,_0x19464c);}return _0x4834de[_0x414a9b(0x341,0x37f)]=[postProcessingPositionFragmentShader],new ShaderSource$1(_0x4834de);}}const {BufferUsage:BufferUsage$1,ClearCommand:ClearCommand$1,Color:Color$2,ComputeCommand,DrawCommand,Geometry:Geometry$1,Matrix4,Pass:Pass$1,PrimitiveType:PrimitiveType$1,RenderState,ShaderProgram,ShaderSource,VertexArray:VertexArray$1,defined,destroyObject}=mars3d__namespace[_0x308ef9(-0x64,-0x42)];class CustomPrimitive{constructor(_0x1fbe8c){this[_0x2d59ae(0x3b0,0x39b)]=_0x1fbe8c[_0x2d59ae(0x3b0,0x439)],this['geometry']=_0x1fbe8c[_0x2e9cce(0x4f0,0x49c)],this['attributeLocations']=_0x1fbe8c['attributeLocations'],this[_0x2e9cce(0x4be,0x4db)]=_0x1fbe8c['primitiveType'],this['uniformMap']=_0x1fbe8c['uniformMap']||{},this[_0x2e9cce(0x448,0x3ff)]=_0x1fbe8c[_0x2e9cce(0x448,0x444)],this[_0x2e9cce(0x48e,0x4a5)]=_0x1fbe8c[_0x2d59ae(0x3c9,0x443)];function _0x2e9cce(_0xd34560,_0xbc6c11){return _0x441fa5(_0xd34560-0x4aa,_0xbc6c11);}function _0x2d59ae(_0x3376e5,_0x1aded2){return _0x308ef9(_0x3376e5-0x43e,_0x1aded2);}this['rawRenderState']=_0x1fbe8c['rawRenderState'],this['framebuffer']=_0x1fbe8c['framebuffer'],this[_0x2d59ae(0x461,0x498)]=_0x1fbe8c['outputTexture'],this['autoClear']=_0x1fbe8c['autoClear']??![],this['preExecute']=_0x1fbe8c['preExecute'],this[_0x2d59ae(0x462,0x412)]=!![],this['commandToExecute']=undefined,this['clearCommand']=undefined,this[_0x2d59ae(0x368,0x381)]=_0x1fbe8c['isDynamic']??(()=>!![]),this['autoClear']&&(this[_0x2d59ae(0x37f,0x386)]=new ClearCommand$1({'color':new Color$2(0x0,0x0,0x0,0x0),'depth':0x1,'framebuffer':this[_0x2d59ae(0x403,0x3e0)],'pass':Pass$1['OPAQUE']}));}[_0x308ef9(0x2d,0x9c)](_0x43c438){function _0xc8b519(_0x1579de,_0x31d635){return _0x308ef9(_0x31d635- -0x1a0,_0x1579de);}function _0x2bf702(_0x32837d,_0x7e2a6){return _0x308ef9(_0x7e2a6-0xa7,_0x32837d);}if(this['commandType']===_0x2bf702(0x102,0xb4)){const _0x4fadb7={};_0x4fadb7[_0xc8b519(-0x26d,-0x1f7)]=_0x43c438,_0x4fadb7[_0xc8b519(-0x1b2,-0x1b3)]=this['geometry'],_0x4fadb7['attributeLocations']=this['attributeLocations'],_0x4fadb7[_0xc8b519(-0x201,-0x1eb)]=BufferUsage$1['STATIC_DRAW'];const _0x5aff0a=VertexArray$1['fromGeometry'](_0x4fadb7),_0x637b01={};_0x637b01['context']=_0x43c438,_0x637b01['vertexShaderSource']=this[_0x2bf702(-0x8c,-0x14)],_0x637b01[_0xc8b519(-0x19f,-0x215)]=this['fragmentShaderSource'],_0x637b01['attributeLocations']=this[_0x2bf702(-0xe,0x53)];const _0x20355c=ShaderProgram[_0x2bf702(-0x13,-0x31)](_0x637b01),_0x18c3e8=RenderState['fromCache'](this[_0xc8b519(-0x1df,-0x184)]),_0x556d8b={};return _0x556d8b[_0x2bf702(-0x3,0x11)]=this,_0x556d8b[_0x2bf702(-0x37,0x6)]=_0x5aff0a,_0x556d8b[_0x2bf702(0x4d,0x62)]=this['primitiveType'],_0x556d8b[_0x2bf702(0xa1,0x80)]=Matrix4[_0x2bf702(-0x2,0x45)],_0x556d8b[_0xc8b519(-0x26f,-0x248)]=_0x18c3e8,_0x556d8b['shaderProgram']=_0x20355c,_0x556d8b['framebuffer']=this[_0xc8b519(-0x1a8,-0x1db)],_0x556d8b[_0xc8b519(-0x1ca,-0x1ad)]=this['uniformMap'],_0x556d8b[_0x2bf702(-0x6,0x36)]=Pass$1['OPAQUE'],new DrawCommand(_0x556d8b);}else{if(this['commandType']==='Compute'){const _0x216804={};return _0x216804['owner']=this,_0x216804[_0x2bf702(0x53,0x32)]=this['fragmentShaderSource'],_0x216804['uniformMap']=this['uniformMap'],_0x216804[_0x2bf702(0x13f,0xca)]=this['outputTexture'],_0x216804['persists']=!![],new ComputeCommand(_0x216804);}else throw new Error(_0xc8b519(-0x189,-0x1de));}}['setGeometry'](_0x196944,_0x3944d8){function _0x41fdfc(_0x440730,_0x10074a){return _0x308ef9(_0x10074a- -0xdb,_0x440730);}function _0x35b4ba(_0x3389ff,_0x1b3faf){return _0x308ef9(_0x3389ff-0x256,_0x1b3faf);}this[_0x41fdfc(-0x14d,-0xee)]=_0x3944d8,defined(this[_0x41fdfc(-0x10e,-0x104)])&&(this['commandToExecute'][_0x35b4ba(0x1b5,0x198)]=VertexArray$1['fromGeometry']({'context':_0x196944,'geometry':this['geometry'],'attributeLocations':this[_0x41fdfc(-0x18e,-0x12f)],'bufferUsage':BufferUsage$1[_0x35b4ba(0x1b6,0x12e)]}));}['update'](_0x2233af){if(!this['isDynamic']())return;if(!this['show']||!defined(_0x2233af))return;!defined(this['commandToExecute'])&&(this[_0xde3050(0x484,0x47e)]=this['createCommand'](_0x2233af[_0xde3050(0x3fe,0x450)]));function _0x54e89d(_0x5ce66a,_0x33b541){return _0x308ef9(_0x5ce66a-0x3e1,_0x33b541);}defined(this[_0x54e89d(0x359,0x316)])&&this[_0xde3050(0x421,0x41f)]();function _0xde3050(_0x54eca5,_0x5a31d6){return _0x308ef9(_0x5a31d6-0x4a7,_0x54eca5);}if(!_0x2233af['commandList']){console[_0x54e89d(0x372,0x2ec)](_0xde3050(0x530,0x4c4));return;}defined(this[_0xde3050(0x3c8,0x3e8)])&&_0x2233af['commandList'][_0xde3050(0x44a,0x42a)](this[_0x54e89d(0x322,0x383)]),defined(this['commandToExecute'])&&_0x2233af['commandList'][_0xde3050(0x453,0x42a)](this[_0x54e89d(0x3b8,0x43c)]);}[_0x308ef9(0x19,0x61)](){return![];}['destroy'](){function _0x5034eb(_0x4eac49,_0x3656cc){return _0x308ef9(_0x3656cc- -0x14e,_0x4eac49);}function _0x318f68(_0x12d771,_0x2979ec){return _0x441fa5(_0x2979ec-0x3d0,_0x12d771);}if(defined(this['commandToExecute'])){var _0x2bfccd;(_0x2bfccd=this[_0x318f68(0x48d,0x400)]['shaderProgram'])===null||_0x2bfccd===void 0x0||_0x2bfccd[_0x318f68(0x397,0x3c8)](),this['commandToExecute'][_0x318f68(0x3d7,0x42a)]=undefined;}return destroyObject(this);}}function deepMerge(_0x216580,_0x321122){function _0x5e516e(_0x3b096d,_0x47fcb9){return _0x308ef9(_0x3b096d-0x30a,_0x47fcb9);}if(!_0x216580)return _0x321122;if(!_0x321122)return _0x216580;const _0x5f3108={..._0x321122},_0x3a5248=_0x5f3108;function _0x36103f(_0x2606c1,_0x5326ab){return _0x441fa5(_0x2606c1-0x249,_0x5326ab);}for(const _0x167ce9 in _0x216580){if(Object['prototype'][_0x36103f(0x22c,0x21a)][_0x5e516e(0x2f0,0x2db)](_0x216580,_0x167ce9)){const _0x16b0e6=_0x216580[_0x167ce9],_0xe3966=_0x321122[_0x167ce9];if(Array['isArray'](_0x16b0e6)){_0x3a5248[_0x167ce9]=_0x16b0e6['slice']();continue;}if(_0x16b0e6&&typeof _0x16b0e6==='object'){_0x3a5248[_0x167ce9]=deepMerge(_0x16b0e6,_0xe3966||{});continue;}_0x16b0e6!==undefined&&(_0x3a5248[_0x167ce9]=_0x16b0e6);}}return _0x3a5248;}const {Cartesian2:Cartesian2$1,FrameRateMonitor,PixelDatatype:PixelDatatype$1,PixelFormat:PixelFormat$1,Sampler:Sampler$1,Texture:Texture$1,TextureMagnificationFilter:TextureMagnificationFilter$1,TextureMinificationFilter:TextureMinificationFilter$1}=mars3d__namespace['Cesium'];class WindParticlesComputing{constructor(_0x110d46,_0x90a959,_0xd95a1e,_0x16b06c,_0xe5976e){this['context']=_0x110d46;function _0x5e3eed(_0x234e86,_0xd977b3){return _0x308ef9(_0x234e86-0x44b,_0xd977b3);}this[_0x4e2165(-0x2e,0x3b)]=_0xd95a1e;function _0x4e2165(_0x3eb1f7,_0x170236){return _0x308ef9(_0x3eb1f7-0x79,_0x170236);}this['viewerParameters']=_0x16b06c,this['windData']=_0x90a959,this[_0x5e3eed(0x443,0x3dd)]=0x3c,this['frameRateAdjustment']=0x1;const _0x2dc080={};_0x2dc080['scene']=_0xe5976e,_0x2dc080['samplingWindow']=0x1,_0x2dc080[_0x4e2165(0x49,-0x3)]=0x0,this[_0x5e3eed(0x37f,0x311)]=new FrameRateMonitor(_0x2dc080),this[_0x4e2165(-0x6,-0x25)](),this[_0x5e3eed(0x3d2,0x40d)](),this[_0x4e2165(0x4c,0x48)](),this[_0x4e2165(0x39,0x8e)]();}['initFrameRate'](){const _0x39ac70=()=>{function _0x3b4934(_0x2fee84,_0x4ec99d){return _0x1b08(_0x2fee84- -0x226,_0x4ec99d);}function _0x50ab33(_0x1f1483,_0x18350f){return _0x1b08(_0x18350f- -0x72,_0x1f1483);}this['frameRateMonitor'][_0x3b4934(-0xbb,-0xf0)]>0x14&&(this['frameRate']=this['frameRateMonitor'][_0x50ab33(0xc3,0xf9)],this[_0x3b4934(-0xe7,-0x160)]=0x3c/Math[_0x50ab33(0x1df,0x153)](this['frameRate'],0x1));};_0x39ac70();const _0x2b3fbc=setInterval(_0x39ac70,0x3e8),_0xbb4d3b=this['destroy']['bind'](this);this['destroy']=()=>{clearInterval(_0x2b3fbc),_0xbb4d3b();};}[_0x308ef9(-0x79,-0x7d)](){function _0x33450f(_0x21a247,_0x26cef7){return _0x308ef9(_0x21a247- -0x34,_0x26cef7);}const _0x4d105f={};_0x4d105f[_0x4c40aa(0x1fa,0x1d8)]=TextureMinificationFilter$1[_0x33450f(-0x12,-0x30)],_0x4d105f['magnificationFilter']=TextureMagnificationFilter$1['LINEAR'];function _0x4c40aa(_0x5bf258,_0x178dd1){return _0x441fa5(_0x5bf258-0x167,_0x178dd1);}const _0x28700a={'context':this['context'],'width':this['windData']['width'],'height':this['windData']['height'],'pixelFormat':PixelFormat$1['RED'],'pixelDatatype':PixelDatatype$1['FLOAT'],'flipY':this['options'][_0x4c40aa(0x106,0x91)]??![],'sampler':new Sampler$1(_0x4d105f)};this[_0x4c40aa(0x1bb,0x13e)]={'U':new Texture$1({..._0x28700a,'source':{'arrayBufferView':new Float32Array(this['windData']['u']['array'])}}),'V':new Texture$1({..._0x28700a,'source':{'arrayBufferView':new Float32Array(this[_0x33450f(-0xf2,-0x76)]['v'][_0x33450f(-0xcc,-0x46)])}})};}['createParticlesTextures'](){const _0x5f2749={};_0x5f2749['minificationFilter']=TextureMinificationFilter$1[_0x2e6435(-0xac,-0xfd)];function _0x2e6435(_0x252131,_0x385637){return _0x308ef9(_0x252131-0x2e,_0x385637);}_0x5f2749['magnificationFilter']=TextureMagnificationFilter$1['NEAREST'];function _0xb5f344(_0x1c82da,_0x4d4c79){return _0x308ef9(_0x4d4c79- -0x5e,_0x1c82da);}const _0x460618={'context':this['context'],'width':this[_0xb5f344(-0xe8,-0x105)][_0xb5f344(-0x157,-0x111)],'height':this[_0x2e6435(-0x79,-0xc7)]['particlesTextureSize'],'pixelFormat':PixelFormat$1[_0x2e6435(0x45,0x12)],'pixelDatatype':PixelDatatype$1[_0x2e6435(-0xb2,-0x8f)],'flipY':![],'source':{'arrayBufferView':new Float32Array(this['options']['particlesTextureSize']*this['options']['particlesTextureSize']*0x4)[_0x2e6435(0x31,-0x36)](0x0)},'sampler':new Sampler$1(_0x5f2749)};this[_0x2e6435(-0x3a,-0x22)]={'previousParticlesPosition':new Texture$1(_0x460618),'currentParticlesPosition':new Texture$1(_0x460618),'nextParticlesPosition':new Texture$1(_0x460618),'postProcessingPosition':new Texture$1(_0x460618),'particlesSpeed':new Texture$1(_0x460618)};}['destroyParticlesTextures'](){function _0x3e3df6(_0x359431,_0x371c94){return _0x308ef9(_0x371c94-0x10f,_0x359431);}Object['values'](this[_0x3e3df6(0x4d,0xa7)])['forEach'](_0x58ca90=>_0x58ca90['destroy']());}['createComputingPrimitives'](){function _0x43838c(_0x13ae79,_0x284a0f){return _0x441fa5(_0x284a0f- -0x2,_0x13ae79);}function _0x2b6a63(_0x4adf40,_0x453b56){return _0x441fa5(_0x453b56- -0x258,_0x4adf40);}this['primitives']={'calculateSpeed':new CustomPrimitive({'commandType':'Compute','uniformMap':{'U':()=>this[_0x2b6a63(-0x25b,-0x204)]['U'],'V':()=>this[_0x43838c(0x9e,0x52)]['V'],'uRange':()=>new Cartesian2$1(this['windData']['u']['min'],this[_0x2b6a63(-0x32a,-0x2bd)]['u'][_0x2b6a63(-0x1be,-0x1d9)]),'vRange':()=>new Cartesian2$1(this['windData']['v']['min'],this['windData']['v'][_0x43838c(0xde,0x7d)]),'speedRange':()=>new Cartesian2$1(this['windData']['speed']['min'],this[_0x43838c(-0xa4,-0x67)][_0x43838c(-0xdf,-0x86)]['max']),'currentParticlesPosition':()=>this['particlesTextures']['currentParticlesPosition'],'speedScaleFactor':()=>{function _0x13de5d(_0x4fb69f,_0x34d664){return _0x2b6a63(_0x4fb69f,_0x34d664-0xb1);}function _0x466543(_0x34ac02,_0x97be72){return _0x43838c(_0x97be72,_0x34ac02-0x4be);}return(this[_0x466543(0x501,0x50c)][_0x13de5d(-0x1db,-0x1a6)]+0x32)*this[_0x466543(0x46e,0x499)]['speedFactor'];},'frameRateAdjustment':()=>this['frameRateAdjustment'],'dimension':()=>new Cartesian2$1(this[_0x43838c(0x1c,-0x67)]['width'],this[_0x43838c(-0x5,-0x67)]['height']),'minimum':()=>new Cartesian2$1(this['windData'][_0x43838c(-0xae,-0x58)][_0x43838c(0x5e,0x72)],this[_0x2b6a63(-0x2da,-0x2bd)][_0x43838c(-0x79,-0x58)]['south']),'maximum':()=>new Cartesian2$1(this[_0x2b6a63(-0x258,-0x2bd)]['bounds']['east'],this['windData'][_0x43838c(-0x2a,-0x58)][_0x2b6a63(-0x21e,-0x236)])},'fragmentShaderSource':ShaderManager[_0x2b6a63(-0x19e,-0x1d7)](),'outputTexture':this[_0x43838c(-0x50,-0x11)][_0x43838c(0x92,0x3e)],'preExecute':()=>{const _0x3e1aa6=this[_0x6f56ce(-0x186,-0x199)][_0xfbdcb7(0x4ce,0x50b)];this['particlesTextures'][_0x6f56ce(-0x104,-0x119)]=this[_0x6f56ce(-0x11b,-0x199)][_0x6f56ce(-0x180,-0x197)];function _0xfbdcb7(_0x4ca62d,_0x9ccf8e){return _0x2b6a63(_0x4ca62d,_0x9ccf8e-0x6f2);}function _0x6f56ce(_0x5c7acd,_0x531f20){return _0x2b6a63(_0x5c7acd,_0x531f20-0xce);}this['particlesTextures']['currentParticlesPosition']=this['particlesTextures']['postProcessingPosition'],this['particlesTextures'][_0xfbdcb7(0x45d,0x41c)]=_0x3e1aa6,this[_0x6f56ce(-0x190,-0x1ea)][_0x6f56ce(-0x23a,-0x1e2)][_0xfbdcb7(0x4fb,0x4ca)]&&(this['primitives'][_0xfbdcb7(0x3de,0x442)]['commandToExecute']['outputTexture']=this['particlesTextures']['particlesSpeed']);},'isDynamic':()=>this['options']['dynamic']}),'updatePosition':new CustomPrimitive({'commandType':'Compute','uniformMap':{'currentParticlesPosition':()=>this['particlesTextures'][_0x2b6a63(-0x282,-0x265)],'particlesSpeed':()=>this['particlesTextures']['particlesSpeed']},'fragmentShaderSource':ShaderManager[_0x43838c(0x57,0x40)](),'outputTexture':this['particlesTextures'][_0x43838c(0x7b,0x7c)],'preExecute':()=>{function _0x485a60(_0x2d7023,_0x3e734c){return _0x2b6a63(_0x2d7023,_0x3e734c-0x588);}function _0x1db9a9(_0x9142b3,_0x245465){return _0x2b6a63(_0x9142b3,_0x245465-0x617);}this[_0x485a60(0x32f,0x2d0)][_0x485a60(0x346,0x36d)][_0x1db9a9(0x37c,0x3ef)]&&(this['primitives']['updatePosition'][_0x1db9a9(0x409,0x3ef)]['outputTexture']=this[_0x1db9a9(0x41e,0x3b0)]['nextParticlesPosition']);},'isDynamic':()=>this[_0x2b6a63(-0x259,-0x2a6)][_0x2b6a63(-0x247,-0x1cf)]}),'postProcessingPosition':new CustomPrimitive({'commandType':'Compute','uniformMap':{'nextParticlesPosition':()=>this[_0x43838c(0x77,-0x11)][_0x43838c(0x65,0x7c)],'particlesSpeed':()=>this['particlesTextures'][_0x43838c(0x6d,0x3e)],'lonRange':()=>this['viewerParameters']['lonRange'],'latRange':()=>this['viewerParameters'][_0x2b6a63(-0x25f,-0x214)],'dataLonRange':()=>new Cartesian2$1(this['windData'][_0x2b6a63(-0x338,-0x2ae)][_0x2b6a63(-0x216,-0x1e4)],this[_0x2b6a63(-0x2ea,-0x2bd)][_0x43838c(-0x53,-0x58)][_0x2b6a63(-0x26e,-0x235)]),'dataLatRange':()=>new Cartesian2$1(this['windData']['bounds'][_0x2b6a63(-0x2a7,-0x234)],this[_0x2b6a63(-0x23a,-0x2bd)]['bounds'][_0x2b6a63(-0x229,-0x236)]),'randomCoefficient':function(){return Math['random']();},'dropRate':()=>this['options']['dropRate'],'dropRateBump':()=>this['options'][_0x43838c(-0x20,0x18)],'useViewerBounds':()=>this[_0x43838c(-0x98,-0x50)][_0x43838c(-0x11,0x63)]},'fragmentShaderSource':ShaderManager['getPostProcessingPositionShader'](),'outputTexture':this['particlesTextures'][_0x43838c(-0x39,-0x80)],'preExecute':()=>{function _0x2c17dc(_0x5ede1b,_0x855751){return _0x43838c(_0x5ede1b,_0x855751- -0xff);}function _0x5dd20b(_0x216f6c,_0x15163b){return _0x2b6a63(_0x216f6c,_0x15163b-0x3da);}this[_0x2c17dc(-0xe0,-0x161)]['postProcessingPosition']['commandToExecute']&&(this['primitives']['postProcessingPosition']['commandToExecute']['outputTexture']=this['particlesTextures'][_0x5dd20b(0xf0,0x104)]);},'isDynamic':()=>this['options']['dynamic']})};}['reCreateWindTextures'](){function _0x533ac2(_0x5d2b0b,_0x5f29b2){return _0x308ef9(_0x5d2b0b-0x49a,_0x5f29b2);}this['windTextures']['U']['destroy'](),this['windTextures']['V'][_0x533ac2(0x439,0x4bc)](),this['createWindTextures']();}['updateWindData'](_0x38bc57){function _0xe7b4ed(_0x55aaea,_0x4d0172){return _0x441fa5(_0x55aaea- -0x82,_0x4d0172);}this[_0xe7b4ed(-0xe7,-0x158)]=_0x38bc57,this['reCreateWindTextures']();}['updateOptions'](_0x4d9a51){function _0x589c77(_0xbceaa1,_0xc5e0ef){return _0x441fa5(_0xc5e0ef-0x284,_0xbceaa1);}function _0x3291d7(_0x420cd5,_0x5651a0){return _0x308ef9(_0x5651a0-0x19f,_0x420cd5);}const _0x1873d0=_0x4d9a51['flipY']!==undefined&&_0x4d9a51['flipY']!==this[_0x589c77(0x2a0,0x236)][_0x589c77(0x28c,0x223)];this['options']=deepMerge(_0x4d9a51,this[_0x589c77(0x22a,0x236)]),_0x1873d0&&this[_0x3291d7(0x22c,0x19e)]();}[_0x441fa5(0x5d,-0x5)](_0x3e6a29){const {array:_0x3c8f1b}=_0x3e6a29;let {min:_0x443da8,max:_0x95f1d0}=_0x3e6a29;const _0x402b44=new Float32Array(_0x3c8f1b[_0x49ad96(-0x214,-0x1e7)]);_0x443da8===undefined&&(console['warn']('min\x20is\x20undefined,\x20calculate\x20min'),_0x443da8=Math['min'](..._0x3c8f1b));function _0x49ad96(_0x1ce9de,_0x4a35c0){return _0x441fa5(_0x4a35c0- -0x221,_0x1ce9de);}_0x95f1d0===undefined&&(console['warn']('max\x20is\x20undefined,\x20calculate\x20max'),_0x95f1d0=Math['max'](..._0x3c8f1b));const _0x889bd1=Math['max'](Math['abs'](_0x443da8),Math['abs'](_0x95f1d0));for(let _0xa91af7=0x0;_0xa91af7<_0x3c8f1b['length'];_0xa91af7++){const _0x1290f9=_0x3c8f1b[_0xa91af7]/_0x889bd1;_0x402b44[_0xa91af7]=_0x1290f9;}return _0x402b44;}['destroy'](){function _0xd55257(_0x3960e8,_0x515feb){return _0x441fa5(_0x3960e8-0x3e,_0x515feb);}Object['values'](this[_0xd55257(0x92,0x97)])[_0x393d7c(-0x145,-0x1cd)](_0x38ff3e=>_0x38ff3e['destroy']());function _0x393d7c(_0x4bf7f2,_0x7e3e67){return _0x441fa5(_0x7e3e67- -0x1a1,_0x4bf7f2);}Object[_0x393d7c(-0x258,-0x20f)](this['particlesTextures'])['forEach'](_0x18e7ee=>_0x18e7ee['destroy']()),Object['values'](this[_0xd55257(-0x22,-0x9e)])['forEach'](_0x7a6c5d=>_0x7a6c5d[_0x393d7c(-0x1a6,-0x1a9)]()),this['frameRateMonitor'][_0xd55257(0x36,0x89)]();}}const {Appearance,BufferUsage,Cartesian2,Color:Color$1,ComponentDatatype,Framebuffer,Geometry,GeometryAttribute,GeometryAttributes,PixelDatatype,PixelFormat,PrimitiveType,Sampler,SceneMode,Texture,TextureMagnificationFilter,TextureMinificationFilter,TextureWrap,VertexArray}=mars3d__namespace['Cesium'];class WindParticlesRendering{constructor(_0x3c0fac,_0x4dc253,_0x6c096b,_0x3b9f7c){function _0x4b57f4(_0x50906d,_0xd67d96){return _0x441fa5(_0xd67d96-0x451,_0x50906d);}this['context']=_0x3c0fac,this[_0x5105d8(0x34b,0x365)]=_0x4dc253,this['viewerParameters']=_0x6c096b,this['computing']=_0x3b9f7c;(typeof this[_0x4b57f4(0x3f8,0x403)]['particlesTextureSize']!==_0x4b57f4(0x3bb,0x43d)||this[_0x4b57f4(0x434,0x403)]['particlesTextureSize']<=0x0)&&(console['error'](_0x4b57f4(0x3f9,0x3e1)),this[_0x4b57f4(0x3dd,0x403)]['particlesTextureSize']=0x100);this['colorTable']=this['createColorTableTexture']();function _0x5105d8(_0xae42a5,_0xa7adda){return _0x441fa5(_0xa7adda-0x3b3,_0xae42a5);}this['textures']=this[_0x5105d8(0x358,0x36e)](),this['framebuffers']=this[_0x5105d8(0x3e1,0x3a5)](),this['primitives']=this[_0x4b57f4(0x41c,0x413)]();}['createRenderingTextures'](){const _0x2efb5b={};_0x2efb5b['context']=this['context'],_0x2efb5b[_0x46e6c5(0x13b,0x197)]=this['context']['drawingBufferWidth'],_0x2efb5b['height']=this[_0x46e6c5(0x180,0x1f0)]['drawingBufferHeight'],_0x2efb5b['pixelFormat']=PixelFormat[_0x46e6c5(0x2d4,0x25e)],_0x2efb5b[_0x46e6c5(0xe4,0x169)]=PixelDatatype[_0x1e6196(0x20d,0x194)];const _0x226179=_0x2efb5b;function _0x46e6c5(_0x1d8c65,_0x2cf7b0){return _0x441fa5(_0x2cf7b0-0x1ee,_0x1d8c65);}const _0x4a04bb={};_0x4a04bb['context']=this[_0x46e6c5(0x1b3,0x1f0)];function _0x1e6196(_0x2e6536,_0x58e87b){return _0x308ef9(_0x2e6536-0x211,_0x58e87b);}_0x4a04bb['width']=this['context']['drawingBufferWidth'],_0x4a04bb[_0x46e6c5(0x1ee,0x1b7)]=this[_0x46e6c5(0x1ae,0x1f0)]['drawingBufferHeight'],_0x4a04bb[_0x46e6c5(0x1de,0x226)]=PixelFormat['DEPTH_COMPONENT'],_0x4a04bb['pixelDatatype']=PixelDatatype[_0x46e6c5(0x17d,0x1f2)];const _0x373658=_0x4a04bb;return{'segmentsColor':new Texture(_0x226179),'segmentsDepth':new Texture(_0x373658)};}['createRenderingFramebuffers'](){function _0x1f35e6(_0x413f92,_0x2cdc00){return _0x308ef9(_0x413f92-0x2a1,_0x2cdc00);}const _0x432075={};function _0x47fe81(_0x15233c,_0x103e60){return _0x308ef9(_0x15233c- -0x231,_0x103e60);}return _0x432075[_0x1f35e6(0x24a,0x2ab)]=this['context'],_0x432075[_0x47fe81(-0x211,-0x202)]=[this['textures'][_0x1f35e6(0x296,0x27d)]],_0x432075['depthTexture']=this['textures']['segmentsDepth'],{'segments':new Framebuffer(_0x432075)};}['destoryRenderingFramebuffers'](){function _0x9e1007(_0x3e40de,_0x52985d){return _0x441fa5(_0x52985d-0x411,_0x3e40de);}function _0x17724d(_0x4763d8,_0x809305){return _0x441fa5(_0x4763d8-0x3e1,_0x809305);}Object['values'](this[_0x9e1007(0x471,0x428)])[_0x17724d(0x3b5,0x3a7)](_0x4b3bc0=>{_0x4b3bc0['destroy']();});}[_0x441fa5(-0x1b,-0x14)](){const _0x487d06=new Float32Array(this['options']['colors'][_0x3b79e0(-0x140,-0xf4)](_0x50e9d2=>{const _0x1ca3a5=Color$1['fromCssColorString'](_0x50e9d2);function _0x5777fc(_0x35820c,_0x3b58f6){return _0x3b79e0(_0x3b58f6,_0x35820c- -0x181);}return[_0x1ca3a5['red'],_0x1ca3a5['green'],_0x1ca3a5[_0x5777fc(-0x29d,-0x32b)],_0x1ca3a5['alpha']];})),_0x25df2a={};function _0x3b79e0(_0x37fb76,_0x2a7f76){return _0x308ef9(_0x2a7f76- -0x60,_0x37fb76);}_0x25df2a[_0x1c4039(0x3b4,0x344)]=TextureMinificationFilter['LINEAR'],_0x25df2a[_0x1c4039(0x367,0x2df)]=TextureMagnificationFilter['LINEAR'],_0x25df2a[_0x1c4039(0x2b2,0x25d)]=TextureWrap['CLAMP_TO_EDGE'];function _0x1c4039(_0x446bba,_0x377913){return _0x308ef9(_0x377913-0x30a,_0x446bba);}return _0x25df2a[_0x1c4039(0x309,0x341)]=TextureWrap['CLAMP_TO_EDGE'],new Texture({'context':this[_0x3b79e0(-0x134,-0xb7)],'width':this['options']['colors']['length'],'height':0x1,'pixelFormat':PixelFormat['RGBA'],'pixelDatatype':PixelDatatype['FLOAT'],'sampler':new Sampler(_0x25df2a),'source':{'width':this['options'][_0x1c4039(0x2b8,0x239)][_0x1c4039(0x369,0x2eb)],'height':0x1,'arrayBufferView':_0x487d06}});}['createSegmentsGeometry'](){const _0x1555ad=0x4,_0x4c05f3=this[_0x2d58cd(0x3dd,0x448)]['particlesTextureSize'];let _0x4dce1d=[];for(let _0x499cf1=0x0;_0x499cf1<_0x4c05f3;_0x499cf1++){for(let _0x3854f=0x0;_0x3854f<_0x4c05f3;_0x3854f++){for(let _0x4fb580=0x0;_0x4fb580<_0x1555ad;_0x4fb580++){_0x4dce1d[_0x2d58cd(0x407,0x3e4)](_0x499cf1/_0x4c05f3),_0x4dce1d['push'](_0x3854f/_0x4c05f3);}}}_0x4dce1d=new Float32Array(_0x4dce1d);const _0x28ebc9=this['options'][_0x2d58cd(0x3d1,0x3b9)]**0x2;let _0x405d1f=[];for(let _0x3e2c00=0x0;_0x3e2c00<_0x28ebc9;_0x3e2c00++){_0x405d1f[_0x445267(-0x1d,0x4c)](-0x1,-0x1,0x0,-0x1,0x1,0x0,0x1,-0x1,0x0,0x1,0x1,0x0);}_0x405d1f=new Float32Array(_0x405d1f);let _0x555057=[];for(let _0x3b3d0a=0x0,_0x111049=0x0;_0x3b3d0a<_0x28ebc9;_0x3b3d0a++){_0x555057['push'](_0x111049+0x0,_0x111049+0x1,_0x111049+0x2,_0x111049+0x2,_0x111049+0x1,_0x111049+0x3),_0x111049+=_0x1555ad;}function _0x2d58cd(_0x101ff4,_0x11b664){return _0x308ef9(_0x101ff4-0x484,_0x11b664);}_0x555057=new Uint32Array(_0x555057);function _0x445267(_0x3b8174,_0x5836bf){return _0x308ef9(_0x5836bf-0xc9,_0x3b8174);}const _0x49b5cf={};_0x49b5cf['componentDatatype']=ComponentDatatype['FLOAT'],_0x49b5cf['componentsPerAttribute']=0x2,_0x49b5cf[_0x2d58cd(0x3bd,0x407)]=_0x4dce1d;const _0x1e4d22={};_0x1e4d22['componentDatatype']=ComponentDatatype[_0x445267(-0x72,-0x17)],_0x1e4d22[_0x2d58cd(0x41b,0x457)]=0x3,_0x1e4d22['values']=_0x405d1f;const _0x1c55d6=new Geometry({'attributes':new GeometryAttributes({'st':new GeometryAttribute(_0x49b5cf),'normal':new GeometryAttribute(_0x1e4d22)}),'indices':_0x555057});return _0x1c55d6;}['createRawRenderState'](_0x5ef333){function _0x5bb59c(_0x4b21e1,_0x3a15dd){return _0x441fa5(_0x3a15dd-0x203,_0x4b21e1);}const _0x2f8e1b={'viewport':undefined,'depthTest':undefined,'depthMask':undefined,'blending':undefined,..._0x5ef333};return Appearance[_0x5bb59c(0x2a6,0x26d)](!![],![],_0x2f8e1b);}['createPrimitives'](){const _0x12d1cb={};_0x12d1cb['st']=0x0,_0x12d1cb[_0x4a51cf(0x2b8,0x267)]=0x1;const _0x1c941a={};_0x1c941a[_0x32a3dc(0x2b0,0x329)]=!![];const _0x1650d5={};_0x1650d5[_0x32a3dc(0x2b0,0x2c5)]=!![],_0x1650d5['blendEquation']=WebGLRenderingContext[_0x4a51cf(0x397,0x3ce)],_0x1650d5[_0x4a51cf(0x30b,0x27d)]=WebGLRenderingContext['SRC_ALPHA'],_0x1650d5[_0x32a3dc(0x2d8,0x28d)]=WebGLRenderingContext['ONE_MINUS_SRC_ALPHA'];function _0x4a51cf(_0x26dffc,_0x2330bd){return _0x441fa5(_0x26dffc-0x30b,_0x2330bd);}const _0xc4e48c={};_0xc4e48c['viewport']=undefined,_0xc4e48c[_0x32a3dc(0x2ac,0x235)]=_0x1c941a,_0xc4e48c['depthMask']=!![];function _0x32a3dc(_0x4bebfb,_0x40f88a){return _0x441fa5(_0x4bebfb-0x2ce,_0x40f88a);}_0xc4e48c[_0x32a3dc(0x28b,0x24b)]=_0x1650d5;const _0xa86664=new CustomPrimitive({'commandType':'Draw','attributeLocations':_0x12d1cb,'geometry':this['createSegmentsGeometry'](),'primitiveType':PrimitiveType['TRIANGLES'],'uniformMap':{'previousParticlesPosition':()=>this[_0x32a3dc(0x24e,0x257)]['particlesTextures']['previousParticlesPosition'],'currentParticlesPosition':()=>this['computing']['particlesTextures'][_0x32a3dc(0x2c1,0x250)],'postProcessingPosition':()=>this['computing'][_0x4a51cf(0x2fc,0x2af)]['postProcessingPosition'],'particlesSpeed':()=>this['computing']['particlesTextures']['particlesSpeed'],'frameRateAdjustment':()=>this['computing']['frameRateAdjustment'],'colorTable':()=>this['colorTable'],'domain':()=>{var _0x266b1b,_0x51eb0f;function _0x5ec7aa(_0x375096,_0x530295){return _0x4a51cf(_0x375096- -0x4f2,_0x530295);}const _0x36a562=new Cartesian2(((_0x266b1b=this[_0x5ec7aa(-0x235,-0x261)]['domain'])===null||_0x266b1b===void 0x0?void 0x0:_0x266b1b['min'])??this['computing']['windData']['speed']['min'],((_0x51eb0f=this['options']['domain'])===null||_0x51eb0f===void 0x0?void 0x0:_0x51eb0f['max'])??this['computing'][_0x208d58(0x1f6,0x1a9)]['speed']['max']);function _0x208d58(_0x36e626,_0x34299c){return _0x32a3dc(_0x36e626- -0x73,_0x34299c);}return _0x36a562;},'displayRange':()=>{var _0xf62507,_0x5e4adc;function _0x422c2d(_0x481c01,_0xde149){return _0x4a51cf(_0x481c01-0x21c,_0xde149);}const _0x68da1b=new Cartesian2(((_0xf62507=this['options'][_0xf106a3(0x4bc,0x48a)])===null||_0xf62507===void 0x0?void 0x0:_0xf62507[_0x422c2d(0x5b2,0x5ef)])??this[_0xf106a3(0x400,0x403)][_0xf106a3(0x41b,0x49e)][_0x422c2d(0x4a3,0x490)][_0xf106a3(0x50b,0x58d)],((_0x5e4adc=this['options']['displayRange'])===null||_0x5e4adc===void 0x0?void 0x0:_0x5e4adc['max'])??this['computing']['windData'][_0xf106a3(0x3fc,0x393)]['max']);function _0xf106a3(_0x1b42ed,_0x322096){return _0x4a51cf(_0x1b42ed-0x175,_0x322096);}return _0x68da1b;},'particleHeight':()=>this['options']['fixedHeight']||0x0,'aspect':()=>this[_0x32a3dc(0x2d0,0x2a9)][_0x32a3dc(0x33a,0x34f)]/this[_0x4a51cf(0x30d,0x2cc)][_0x4a51cf(0x2dd,0x2f1)],'pixelSize':()=>this[_0x4a51cf(0x350,0x2f4)]['pixelSize'],'lineWidth':()=>{const _0x41942e={};function _0x166e30(_0x4bed92,_0x1e194d){return _0x32a3dc(_0x1e194d- -0x177,_0x4bed92);}_0x41942e[_0x104a48(0x4b3,0x45f)]=0x1,_0x41942e[_0x104a48(0x4a7,0x430)]=0x2;function _0x104a48(_0x477662,_0x55d14d){return _0x4a51cf(_0x477662-0x11d,_0x55d14d);}const _0x17bd8a=this['options']['lineWidth']||_0x41942e;return new Cartesian2(_0x17bd8a['min'],_0x17bd8a['max']);},'lineLength':()=>{const _0x2d6546={};_0x2d6546['min']=0x14,_0x2d6546[_0x35bf03(-0x17d,-0x194)]=0x64;function _0x35bf03(_0x129e44,_0x2a5416){return _0x4a51cf(_0x2a5416- -0x51e,_0x129e44);}function _0x1009ef(_0x507a20,_0x2706a2){return _0x32a3dc(_0x507a20- -0x2ac,_0x2706a2);}const _0xa36dc5=this[_0x1009ef(-0x2c,-0x6c)][_0x35bf03(-0x2c3,-0x26e)]||_0x2d6546;return new Cartesian2(_0xa36dc5['min'],_0xa36dc5[_0x35bf03(-0x1d6,-0x194)]);},'is3D':()=>this['viewerParameters']['sceneMode']===SceneMode[_0x32a3dc(0x2e6,0x298)],'segmentsDepthTexture':()=>this['textures']['segmentsDepth']},'vertexShaderSource':ShaderManager['getSegmentDrawVertexShader'](),'fragmentShaderSource':ShaderManager[_0x32a3dc(0x2f4,0x2bf)](),'rawRenderState':this['createRawRenderState'](_0xc4e48c)}),_0x5e2186={};return _0x5e2186[_0x32a3dc(0x345,0x303)]=_0xa86664,_0x5e2186;}[_0x441fa5(0x5e,-0x14)](){const _0x5c7a90=this['createSegmentsGeometry']();this[_0x584bba(-0x232,-0x1bd)]['segments']['geometry']=_0x5c7a90;const _0x36d8fa={};_0x36d8fa[_0x584bba(-0x1d0,-0x24f)]=this['context'],_0x36d8fa[_0x584bba(-0x18c,-0x134)]=_0x5c7a90,_0x36d8fa['attributeLocations']=this[_0x584bba(-0x232,-0x1be)][_0x584bba(-0x15b,-0x14c)][_0x4a0813(-0x123,-0x196)];function _0x4a0813(_0x1d9349,_0x3bd262){return _0x308ef9(_0x3bd262- -0x142,_0x1d9349);}function _0x584bba(_0x4090ce,_0xe1b198){return _0x441fa5(_0x4090ce- -0x1d2,_0xe1b198);}_0x36d8fa[_0x584bba(-0x1c4,-0x19c)]=BufferUsage['STATIC_DRAW'];const _0x13bf44=VertexArray['fromGeometry'](_0x36d8fa);this[_0x584bba(-0x232,-0x1a6)][_0x584bba(-0x15b,-0x1af)]['commandToExecute']&&(this['primitives']['segments'][_0x584bba(-0x1a2,-0x152)]['vertexArray']=_0x13bf44);}['onColorTableChange'](){this['colorTable']['destroy'](),this['colorTable']=this['createColorTableTexture']();}['updateOptions'](_0x2de12a){const _0x93a9ad=_0x2de12a['colors']&&JSON[_0x311dd3(0x70,0x86)](_0x2de12a['colors'])!==JSON['stringify'](this[_0x4a5bbc(-0x215,-0x247)]['colors']);this[_0x311dd3(0x20,0xa0)]=deepMerge(_0x2de12a,this['options']);function _0x4a5bbc(_0x374c48,_0x19c520){return _0x308ef9(_0x19c520- -0x1a0,_0x374c48);}function _0x311dd3(_0x26b963,_0x457ffb){return _0x308ef9(_0x457ffb-0x147,_0x26b963);}_0x93a9ad&&this[_0x4a5bbc(-0x27d,-0x22b)]();}['destroy'](){function _0x49abf7(_0x1a1ad4,_0x46d9b8){return _0x441fa5(_0x1a1ad4-0x90,_0x46d9b8);}Object[_0x34d130(-0xb,-0x90)](this['framebuffers'])[_0x34d130(0x37,0x6e)](_0x6356e4=>{_0x6356e4['destroy']();});function _0x34d130(_0xf913e7,_0x2f75fe){return _0x308ef9(_0xf913e7-0xbc,_0x2f75fe);}Object['values'](this[_0x49abf7(0x30,0x47)])[_0x49abf7(0x64,0x4e)](_0x24ad9b=>{_0x24ad9b['destroy']();}),this[_0x49abf7(0x6d,0xb2)]['destroy']();}}const {ClearCommand,Color,Pass}=mars3d__namespace[_0x308ef9(-0x64,-0xbb)];class WindParticleSystem{constructor(_0x415e28,_0x220792,_0x4586b1,_0x57d85c,_0x37c183){this['context']=_0x415e28;function _0x3f4f83(_0xb99830,_0x50320a){return _0x308ef9(_0xb99830-0x2f,_0x50320a);}this[_0x3f4f83(-0x78,-0xa8)]=_0x4586b1;function _0x7e8c9b(_0x15930e,_0x54ad47){return _0x441fa5(_0x15930e-0x1d9,_0x54ad47);}this[_0x3f4f83(0x1b,0x40)]=_0x57d85c,this['computing']=new WindParticlesComputing(_0x415e28,_0x220792,_0x4586b1,_0x57d85c,_0x37c183),this['rendering']=new WindParticlesRendering(_0x415e28,_0x4586b1,_0x57d85c,this['computing']),this['clearFramebuffers']();}[_0x308ef9(0x31,0x22)](){const _0x478bb4=[this[_0x443417(0xf0,0x96)]['primitives'][_0x1c46f3(-0x1fb,-0x210)],this['computing'][_0x443417(0x110,0xd6)]['updatePosition'],this[_0x443417(0xf0,0xc4)]['primitives'][_0x443417(0xf2,0x145)],this['rendering']['primitives']['segments']];function _0x443417(_0x29cb58,_0x1f0ba0){return _0x308ef9(_0x29cb58-0x1c9,_0x1f0ba0);}function _0x1c46f3(_0x1944b6,_0x3c17d4){return _0x308ef9(_0x1944b6- -0x14a,_0x3c17d4);}return _0x478bb4;}['clearFramebuffers'](){const _0x1413a1=new ClearCommand({'color':new Color(0x0,0x0,0x0,0x0),'depth':0x1,'framebuffer':undefined,'pass':Pass['OPAQUE']});function _0x20cee8(_0x17046f,_0x396b27){return _0x308ef9(_0x17046f-0x15c,_0x396b27);}function _0x29ab2f(_0xeaa642,_0x102dbe){return _0x441fa5(_0xeaa642-0x3e2,_0x102dbe);}Object[_0x20cee8(0x15a,0x1ba)](this['rendering']['framebuffers'])[_0x20cee8(0xd7,0x93)](_0x1e1602=>{_0x1413a1[_0x5e3e9f(0x4fd,0x510)]=this['rendering']['framebuffers'][_0x1e1602];function _0x5e3e9f(_0x2b9207,_0x13d15f){return _0x29ab2f(_0x2b9207-0xfd,_0x13d15f);}_0x1413a1['execute'](this['context']);});}['changeOptions'](_0x44122d){let _0x322795=![];_0x44122d['particlesTextureSize']&&this[_0x3bc9d8(0x404,0x385)]['particlesTextureSize']!==_0x44122d[_0x3bc9d8(0x318,0x379)]&&(_0x322795=!![]);const _0x4ca73b=deepMerge(_0x44122d,this[_0x47e92d(0x40e,0x3a3)]);if(_0x4ca73b['particlesTextureSize']<0x1)throw new Error('particlesTextureSize\x20must\x20be\x20greater\x20than\x200');this['options']=_0x4ca73b;function _0x3bc9d8(_0x5aa665,_0x513aff){return _0x441fa5(_0x513aff-0x3d3,_0x5aa665);}function _0x47e92d(_0x817991,_0x66a353){return _0x441fa5(_0x817991-0x45c,_0x66a353);}this['rendering']['updateOptions'](_0x44122d),this[_0x47e92d(0x3dc,0x37c)]['updateOptions'](_0x44122d),_0x322795&&(this['computing']['destroyParticlesTextures'](),this['computing']['createParticlesTextures'](),this['rendering']['onParticlesTextureSizeChange']());}[_0x441fa5(0x15,0x1e)](_0xeef79){function _0x4c646b(_0x287f50,_0x4d2b03){return _0x308ef9(_0x4d2b03-0x467,_0x287f50);}this['viewerParameters']=_0xeef79;function _0x5d3faf(_0xb3866c,_0x5d0654){return _0x441fa5(_0x5d0654-0x29f,_0xb3866c);}this['computing'][_0x5d3faf(0x330,0x2e4)]=_0xeef79,this[_0x5d3faf(0x1df,0x26b)]['viewerParameters']=_0xeef79;}['destroy'](){function _0x3314d5(_0x220703,_0x351d29){return _0x308ef9(_0x351d29-0x45d,_0x220703);}this[_0x57c73c(-0x6a,-0xea)][_0x3314d5(0x37f,0x3fc)]();function _0x57c73c(_0x467188,_0x401d3a){return _0x441fa5(_0x401d3a- -0x6a,_0x467188);}this['rendering'][_0x57c73c(-0xfe,-0x72)]();}}const Cesium$1=mars3d__namespace[_0x441fa5(-0xb,0x7d)],BaseLayer$1=mars3d__namespace['layer'][_0x308ef9(-0x65,-0xb0)],_0x16ff7c={};_0x16ff7c['min']=0x1,_0x16ff7c['max']=0x2;const _0x281333={};_0x281333['min']=0x14,_0x281333[_0x441fa5(0x7f,0x2b)]=0x64;const _0x349357={};_0x349357['particlesTextureSize']=0x64,_0x349357['fixedHeight']=0x0,_0x349357[_0x308ef9(-0x89,-0xcc)]=_0x16ff7c,_0x349357['lineLength']=_0x281333,_0x349357['speedFactor']=0x1,_0x349357[_0x308ef9(-0x32,-0x32)]=0.003,_0x349357['dropRateBump']=0.001,_0x349357[_0x441fa5(-0x78,-0x1)]=['rgb(206,255,255)'],_0x349357[_0x308ef9(-0xba,-0x134)]=![],_0x349357['dynamic']=!![];const DEF_OPTIONS=_0x349357;class WindLayer extends BaseLayer$1{constructor(_0x3e327a={}){_0x3e327a={...DEF_OPTIONS,..._0x3e327a},super(_0x3e327a),this['_setOptionsHook'](_0x3e327a,_0x3e327a);}get[_0x441fa5(0x49,0x60)](){function _0x43f06b(_0x1a4ff0,_0x41065c){return _0x308ef9(_0x41065c-0x105,_0x1a4ff0);}return this[_0x43f06b(0x70,0x4c)];}get['data'](){return this['options']['data'];}set[_0x441fa5(0x5b,0xce)](_0x1ef1ca){function _0x5eff30(_0x130baf,_0x208bfb){return _0x308ef9(_0x130baf-0x3f6,_0x208bfb);}this[_0x5eff30(0x34f,0x35f)]['data']=_0x1ef1ca,this['setData'](_0x1ef1ca);}get['colors'](){function _0x43e52b(_0x1a3f7e,_0x53864c){return _0x441fa5(_0x53864c-0x24d,_0x1a3f7e);}return this[_0x43e52b(0x1c8,0x1ff)]['colors'];}set[_0x441fa5(-0x78,-0xa1)](_0x563b99){function _0x308d9c(_0x47b96d,_0x4dc3a2){return _0x441fa5(_0x4dc3a2-0x212,_0x47b96d);}this[_0x2bb53f(0x291,0x263)][_0x2bb53f(0x214,0x239)]=_0x563b99;const _0x14ed60={};_0x14ed60[_0x2bb53f(0x29d,0x239)]=_0x563b99;function _0x2bb53f(_0x308046,_0x45a287){return _0x441fa5(_0x45a287-0x2b1,_0x308046);}this[_0x308d9c(0x242,0x1f8)](this[_0x308d9c(0x1f3,0x1c4)],_0x14ed60);}['_showHook'](_0x1aee12){_0x1aee12?this['_addedHook']():this['_removedHook']();}[_0x441fa5(-0x5c,-0x94)](){}[_0x308ef9(-0x4e,-0x92)](){this[_0xfc8bf6(0x8d,0xf4)]=this['_map']['scene'],this[_0x1b013e(0x52,-0x2b)]=this[_0x1b013e(0x6d,-0x1b)]['camera'];function _0x1b013e(_0x431cb9,_0x1004c9){return _0x441fa5(_0x1004c9- -0x4,_0x431cb9);}this['options']['data']&&this['setData'](this[_0x1b013e(-0xdd,-0x52)]['data']);if(!this[_0xfc8bf6(-0x4b,0x17)]||!this['show'])return;this['viewerParameters']={'lonRange':new Cesium$1['Cartesian2'](-0xb4,0xb4),'latRange':new Cesium$1['Cartesian2'](-0x5a,0x5a),'pixelSize':0x3e8,'sceneMode':this['scene']['mode']};function _0xfc8bf6(_0x5199e9,_0x8be0cb){return _0x308ef9(_0x5199e9-0x73,_0x8be0cb);}this['updateViewerParameters'](),this['particleSystem']=new WindParticleSystem(this['scene'][_0xfc8bf6(0x1c,0x3a)],this['windData'],this['options'],this['viewerParameters'],this[_0x1b013e(0x30,0x6f)]),this[_0x1b013e(-0xe2,-0x64)]=this['particleSystem']['getPrimitives'](),this['primitives']['forEach'](_0x36fb55=>{function _0x12f774(_0x487460,_0x50fc18){return _0xfc8bf6(_0x487460-0x5e,_0x50fc18);}this[_0x12f774(0xeb,0xd6)]['primitives']['add'](_0x36fb55);}),this['camera']['percentageChanged']=0.01,this[_0x1b013e(0xc,-0x2b)][_0x1b013e(-0x2a,-0x75)]['addEventListener'](this[_0xfc8bf6(0x4b,0xb)][_0x1b013e(-0xc5,-0x61)](this)),this['scene']['morphComplete']['addEventListener'](this[_0xfc8bf6(0x4b,0x88)]['bind'](this)),window['addEventListener']('resize',this['updateViewerParameters']['bind'](this));}[_0x308ef9(-0x1b,-0x6a)](){function _0x332b55(_0x570420,_0x48d485){return _0x441fa5(_0x570420- -0x7a,_0x48d485);}this['camera'][_0x332b55(-0xeb,-0x112)]['removeEventListener'](this['updateViewerParameters']['bind'](this));function _0x20a39f(_0x2f53b8,_0x27a1e8){return _0x441fa5(_0x27a1e8- -0x21e,_0x2f53b8);}this['scene'][_0x20a39f(-0x1ee,-0x269)]['removeEventListener'](this['updateViewerParameters']['bind'](this)),window[_0x20a39f(-0x262,-0x20f)](_0x332b55(-0x28,-0x97),this['updateViewerParameters']['bind'](this)),this[_0x332b55(-0xda,-0xeb)]&&(this['primitives'][_0x20a39f(-0x1e0,-0x24a)](_0x3595a4=>{this['scene']['primitives']['remove'](_0x3595a4);}),delete this[_0x332b55(-0xda,-0xf3)]),this['particleSystem']&&(this['particleSystem'][_0x332b55(-0x82,-0x58)](),delete this['particleSystem']);}['setData'](_0x4bd3f4,_0x595051){function _0xcb441e(_0x344090,_0x1a82bb){return _0x441fa5(_0x344090-0x2de,_0x1a82bb);}this['windData']=this[_0xcb441e(0x33b,0x39e)](_0x4bd3f4);function _0xa370e1(_0x39384d,_0x276a56){return _0x441fa5(_0x276a56-0x25d,_0x39384d);}if(_0x595051){this[_0xa370e1(0x2f5,0x29b)](),this['_addedHook']();return;}this[_0xcb441e(0x2e5,0x27a)]?(this['particleSystem']['computing']['updateWindData'](this['windData']),this[_0xcb441e(0x351,0x3bb)][_0xa370e1(0x1fd,0x22c)]()):this['_addedHook']();}[_0x441fa5(-0x1a,0x4d)](_0x2c102b,_0x201215){function _0x5f0d32(_0x89ae4c,_0x20ddc6){return _0x308ef9(_0x89ae4c-0x234,_0x20ddc6);}function _0x3e0f5c(_0x243d00,_0x3ab2a5){return _0x441fa5(_0x243d00- -0x1b8,_0x3ab2a5);}this['particleSystem']&&(this['particleSystem'][_0x3e0f5c(-0x13e,-0x166)](_0x201215),this[_0x3e0f5c(-0x145,-0x118)][_0x5f0d32(0x1aa,0x172)]());}[_0x308ef9(0x4,-0x65)](_0x5a28de){var _0x5a15ca,_0x1d69a5;const _0x35f201={..._0x5a28de};function _0x353e6a(_0x182f12,_0x504b5b){return _0x308ef9(_0x504b5b-0x2b2,_0x182f12);}const _0x552246=_0x35f201;!_0x552246['height']&&_0x552246[_0x353e6a(0x2b9,0x2c1)]&&(_0x552246[_0x353e6a(0x21f,0x222)]=_0x552246['rows']);!_0x552246['width']&&_0x552246['cols']&&(_0x552246[_0x353e6a(0x209,0x202)]=_0x552246['cols']);!_0x552246['bounds']&&(_0x552246[_0x1579af(-0x235,-0x1cb)]={'west':_0x552246['xmin'],'south':_0x552246['ymin'],'east':_0x552246[_0x353e6a(0x290,0x294)],'north':_0x552246['ymax']});function _0x1579af(_0x344779,_0x578920){return _0x308ef9(_0x344779- -0x186,_0x578920);}if(!_0x552246['u']){const _0x29cf49={};_0x29cf49[_0x353e6a(0x24f,0x21a)]=_0x5a28de['udata'],_0x29cf49['min']=_0x5a28de['umin'],_0x29cf49['max']=_0x5a28de[_0x353e6a(0x257,0x27a)],_0x552246['u']=_0x29cf49;}if(!_0x552246['v']){const _0x290983={};_0x290983[_0x1579af(-0x21e,-0x1cd)]=_0x5a28de['vdata'],_0x290983[_0x353e6a(0x358,0x2e4)]=_0x5a28de['vmin'],_0x290983['max']=_0x5a28de[_0x353e6a(0x2cd,0x261)],_0x552246['v']=_0x290983;}if(((_0x5a15ca=_0x552246[_0x353e6a(0x215,0x1d5)])===null||_0x5a15ca===void 0x0?void 0x0:_0x5a15ca[_0x1579af(-0x154,-0xdc)])===undefined||((_0x1d69a5=_0x552246[_0x1579af(-0x263,-0x204)])===null||_0x1d69a5===void 0x0?void 0x0:_0x1d69a5['max'])===undefined||_0x552246[_0x353e6a(0x1c9,0x1d5)]['array']===undefined){const _0x248355={'array':new Float32Array(_0x552246['u']['array'][_0x1579af(-0x1a5,-0x1ed)]),'min':Number['MAX_VALUE'],'max':Number['MIN_VALUE']};for(let _0x5bb62a=0x0;_0x5bb62a<_0x552246['u']['array']['length'];_0x5bb62a++){_0x248355[_0x353e6a(0x1e3,0x21a)][_0x5bb62a]=Math['sqrt'](_0x552246['u']['array'][_0x5bb62a]*_0x552246['u']['array'][_0x5bb62a]+_0x552246['v'][_0x353e6a(0x1f1,0x21a)][_0x5bb62a]*_0x552246['v']['array'][_0x5bb62a]),_0x248355[_0x353e6a(0x1ac,0x21a)][_0x5bb62a]!==0x0&&(_0x248355['min']=Math['min'](_0x248355['min'],_0x248355['array'][_0x5bb62a]),_0x248355['max']=Math[_0x1579af(-0x160,-0x1dd)](_0x248355['max'],_0x248355['array'][_0x5bb62a]));}_0x552246['speed']=_0x248355;}return _0x552246;}[_0x308ef9(-0x28,0x5d)](){var _0x58b0ff;const _0xc7344=this['scene'];if(!_0xc7344)return;const _0x5d269c=_0xc7344[_0x59c49c(0x536,0x563)],_0x2ac4ca={};_0x2ac4ca['x']=0x0,_0x2ac4ca['y']=0x0;function _0x59c49c(_0x473671,_0x565b34){return _0x308ef9(_0x473671-0x579,_0x565b34);}const _0x80b2d9={};_0x80b2d9['x']=0x0,_0x80b2d9['y']=_0x5d269c['clientHeight'];const _0x3e0674={};_0x3e0674['x']=_0x5d269c['clientWidth'],_0x3e0674['y']=0x0;function _0x2c6d6c(_0x276672,_0x52b9a8){return _0x441fa5(_0x276672-0x3ee,_0x52b9a8);}const _0x45bb1e={};_0x45bb1e['x']=_0x5d269c[_0x2c6d6c(0x378,0x389)],_0x45bb1e['y']=_0x5d269c[_0x2c6d6c(0x3c4,0x343)];const _0x5998d0=[_0x2ac4ca,_0x80b2d9,_0x3e0674,_0x45bb1e];let _0x4c4cc7=0xb4,_0x4fca7b=-0xb4,_0x32ecbb=0x5a,_0x2ff3dc=-0x5a,_0x4f7fd2=![];for(const _0x25bd74 of _0x5998d0){const _0x435057=_0xc7344['camera']['pickEllipsoid'](new Cesium$1[(_0x59c49c(0x4ae,0x53b))](_0x25bd74['x'],_0x25bd74['y']),_0xc7344[_0x59c49c(0x557,0x56c)]['ellipsoid']);if(!_0x435057){_0x4f7fd2=!![];break;}const _0x4c9b9e=_0xc7344[_0x59c49c(0x557,0x4e0)][_0x59c49c(0x4b1,0x44b)][_0x2c6d6c(0x381,0x3ac)](_0x435057),_0x4582ca=Cesium$1['Math']['toDegrees'](_0x4c9b9e['longitude']),_0x35d105=Cesium$1['Math']['toDegrees'](_0x4c9b9e[_0x59c49c(0x5b2,0x590)]);_0x4c4cc7=Math['min'](_0x4c4cc7,_0x4582ca),_0x4fca7b=Math[_0x59c49c(0x59f,0x52f)](_0x4fca7b,_0x4582ca),_0x32ecbb=Math['min'](_0x32ecbb,_0x35d105),_0x2ff3dc=Math[_0x59c49c(0x59f,0x54f)](_0x2ff3dc,_0x35d105);}if(!_0x4f7fd2){const _0x1224f3=new Cesium$1['Cartesian2'](Math['max'](this[_0x2c6d6c(0x389,0x322)]['bounds'][_0x2c6d6c(0x462,0x47c)],_0x4c4cc7),Math['min'](this['windData'][_0x2c6d6c(0x398,0x37b)][_0x59c49c(0x543,0x523)],_0x4fca7b)),_0x42b78d=new Cesium$1['Cartesian2'](Math['max'](this['windData']['bounds'][_0x2c6d6c(0x412,0x3e5)],_0x32ecbb),Math['min'](this[_0x59c49c(0x4bb,0x523)]['bounds'][_0x59c49c(0x542,0x4e8)],_0x2ff3dc)),_0x3c5689=(_0x1224f3['y']-_0x1224f3['x'])*0.05,_0x28339f=(_0x42b78d['y']-_0x42b78d['x'])*0.05;_0x1224f3['x']=Math['max'](this['windData'][_0x2c6d6c(0x398,0x3d0)]['west'],_0x1224f3['x']-_0x3c5689),_0x1224f3['y']=Math['min'](this['windData']['bounds']['east'],_0x1224f3['y']+_0x3c5689),_0x42b78d['x']=Math[_0x2c6d6c(0x46d,0x42a)](this[_0x59c49c(0x4bb,0x4a9)]['bounds'][_0x59c49c(0x544,0x5ce)],_0x42b78d['x']-_0x28339f),_0x42b78d['y']=Math[_0x59c49c(0x5ab,0x5bb)](this[_0x2c6d6c(0x389,0x404)]['bounds'][_0x59c49c(0x542,0x563)],_0x42b78d['y']+_0x28339f),this['viewerParameters']['lonRange']=_0x1224f3,this[_0x59c49c(0x565,0x4fd)]['latRange']=_0x42b78d;const _0x7360b6=this['windData']['bounds']['east']-this[_0x2c6d6c(0x389,0x325)][_0x59c49c(0x4ca,0x530)][_0x59c49c(0x594,0x558)],_0x5a6567=this['windData']['bounds']['north']-this[_0x59c49c(0x4bb,0x442)][_0x2c6d6c(0x398,0x3c7)]['south'],_0x2239d1=(_0x1224f3['y']-_0x1224f3['x'])/_0x7360b6,_0x249fc5=(_0x42b78d['y']-_0x42b78d['x'])/_0x5a6567,_0x423478=Math['min'](_0x2239d1,_0x249fc5),_0xf89edd=0x3e8*_0x423478;_0xf89edd>0x0&&(this['viewerParameters']['pixelSize']=Math['max'](0x0,Math['min'](0x3e8,_0xf89edd)));}this[_0x59c49c(0x565,0x53c)]['sceneMode']=this['scene']['mode'],(_0x58b0ff=this['particleSystem'])===null||_0x58b0ff===void 0x0||_0x58b0ff['applyViewerParameters'](this[_0x2c6d6c(0x433,0x45c)]);}['getDataAtLonLat'](_0x36b98c,_0x4d0147){const {bounds:_0x531d38,width:_0x51f607,height:_0x49fd54,u:_0x59949c,v:_0x5f300b,speed:_0x58630b}=this['windData'];function _0xd05344(_0x4f4c09,_0xe78be){return _0x441fa5(_0xe78be-0x3b6,_0x4f4c09);}const {flipY:_0x59ecc4}=this[_0xd05344(0x3df,0x368)];if(_0x36b98c<_0x531d38['west']||_0x36b98c>_0x531d38['east']||_0x4d0147<_0x531d38['south']||_0x4d0147>_0x531d38['north'])return null;const _0x2c0a1a=(_0x36b98c-_0x531d38['west'])/(_0x531d38['east']-_0x531d38['west'])*(_0x51f607-0x1);let _0x277d04=(_0x4d0147-_0x531d38[_0xd05344(0x3cc,0x3da)])/(_0x531d38[_0xd05344(0x435,0x3d8)]-_0x531d38['south'])*(_0x49fd54-0x1);_0x59ecc4&&(_0x277d04=_0x49fd54-0x1-_0x277d04);const _0x4a9487=Math['floor'](_0x2c0a1a),_0xe01856=Math[_0x2dd0d9(-0xf,0x34)](_0x277d04),_0x574a77=Math[_0xd05344(0x476,0x409)](_0x2c0a1a),_0x4dd276=Math[_0x2dd0d9(0xc2,0x6c)](_0x574a77+0x1,_0x51f607-0x1),_0x3a814e=Math[_0xd05344(0x3ea,0x409)](_0x277d04),_0x1ad5e7=Math[_0xd05344(0x3ce,0x441)](_0x3a814e+0x1,_0x49fd54-0x1),_0x4fec16=_0x2c0a1a-_0x574a77,_0x456cd1=_0x277d04-_0x3a814e,_0x55423d=_0xe01856*_0x51f607+_0x4a9487,_0x321879=_0x3a814e*_0x51f607+_0x574a77,_0x5cf9a0=_0x3a814e*_0x51f607+_0x4dd276,_0x2a3564=_0x1ad5e7*_0x51f607+_0x574a77,_0x30a00c=_0x1ad5e7*_0x51f607+_0x4dd276,_0x51f3ff=_0x59949c[_0x2dd0d9(-0x47,-0x5e)][_0x321879],_0x4f4638=_0x59949c[_0x2dd0d9(-0xa7,-0x5e)][_0x5cf9a0],_0x1ed5d4=_0x59949c['array'][_0x2a3564],_0x57a431=_0x59949c['array'][_0x30a00c],_0x1f965d=(0x1-_0x4fec16)*(0x1-_0x456cd1)*_0x51f3ff+_0x4fec16*(0x1-_0x456cd1)*_0x4f4638+(0x1-_0x4fec16)*_0x456cd1*_0x1ed5d4+_0x4fec16*_0x456cd1*_0x57a431,_0x49fe18=_0x5f300b[_0x2dd0d9(0x16,-0x5e)][_0x321879],_0xc31cc0=_0x5f300b['array'][_0x5cf9a0],_0x35b29f=_0x5f300b['array'][_0x2a3564],_0x4eb73f=_0x5f300b['array'][_0x30a00c],_0x24439c=(0x1-_0x4fec16)*(0x1-_0x456cd1)*_0x49fe18+_0x4fec16*(0x1-_0x456cd1)*_0xc31cc0+(0x1-_0x4fec16)*_0x456cd1*_0x35b29f+_0x4fec16*_0x456cd1*_0x4eb73f;function _0x2dd0d9(_0x1302c6,_0x295d29){return _0x308ef9(_0x295d29-0x3a,_0x1302c6);}const _0x150e92=Math['sqrt'](_0x1f965d*_0x1f965d+_0x24439c*_0x24439c),_0x2df571={};_0x2df571['u']=_0x59949c['array'][_0x55423d],_0x2df571['v']=_0x5f300b[_0xd05344(0x3df,0x377)][_0x55423d],_0x2df571['speed']=_0x58630b['array'][_0x55423d];const _0x384ea5={};_0x384ea5['u']=_0x1f965d,_0x384ea5['v']=_0x24439c,_0x384ea5['speed']=_0x150e92;const _0x4c79b0={};return _0x4c79b0[_0xd05344(0x480,0x417)]=_0x2df571,_0x4c79b0['interpolated']=_0x384ea5,_0x4c79b0;}}mars3d__namespace['LayerUtil']['register'](_0x308ef9(-0xc4,-0x80),WindLayer),mars3d__namespace['layer']['WindLayer']=WindLayer;class CanvasParticle{constructor(){this[_0x1ecbe2(-0x16d,-0x133)]=null,this[_0x3e2c83(0x314,0x331)]=null;function _0x3e2c83(_0x317f64,_0x5e2238){return _0x441fa5(_0x5e2238-0x2c8,_0x317f64);}function _0x1ecbe2(_0x506f2d,_0x270a7b){return _0x308ef9(_0x270a7b- -0x61,_0x506f2d);}this['tlng']=null,this['tlat']=null,this[_0x3e2c83(0x397,0x336)]=null,this['speed']=null;}['destroy'](){for(const _0x527a7a in this){delete this[_0x527a7a];}}}class CanvasWindField{constructor(_0x5863e3){this['setOptions'](_0x5863e3);}get[_0x308ef9(-0x48,-0x78)](){return this['_speedRate'];}set['speedRate'](_0x32c889){function _0x4a67a1(_0x18baa6,_0x100a80){return _0x308ef9(_0x100a80-0x2b0,_0x18baa6);}function _0x2e823f(_0x2c8485,_0x4f29f0){return _0x308ef9(_0x2c8485-0x21d,_0x4f29f0);}this[_0x4a67a1(0x29c,0x28c)]=(0x64-(_0x32c889>0x63?0x63:_0x32c889))*0x64,this['_calc_speedRate']=[(this['xmax']-this[_0x4a67a1(0x25d,0x269)])/this['_speedRate'],(this['ymax']-this[_0x2e823f(0x172,0x142)])/this[_0x4a67a1(0x271,0x28c)]];}get[_0x308ef9(0x35,0x9f)](){function _0x15281c(_0x4c23c0,_0x1eec99){return _0x308ef9(_0x1eec99-0x316,_0x4c23c0);}return this[_0x15281c(0x287,0x270)];}set['maxAge'](_0x36633c){this['_maxAge']=_0x36633c;}['setOptions'](_0x5cc218){this['options']=_0x5cc218,this['maxAge']=_0x5cc218['maxAge']||0x78,this[_0x39da70(-0x1ff,-0x263)]=_0x5cc218[_0x39da70(-0x1ff,-0x19f)]||0x32;function _0x2e0a7d(_0x4579a8,_0x4954cf){return _0x441fa5(_0x4954cf-0xdd,_0x4579a8);}this[_0x39da70(-0x265,-0x232)]=[];const _0x5dd0e8=_0x5cc218['particlesNumber']||0x1000;function _0x39da70(_0x46cc41,_0x483346){return _0x441fa5(_0x46cc41- -0x210,_0x483346);}for(let _0x16a9e5=0x0;_0x16a9e5<_0x5dd0e8;_0x16a9e5++){const _0x2e541a=this[_0x39da70(-0x1ae,-0x155)](new CanvasParticle());this['particles']['push'](_0x2e541a);}}['setDate'](_0x26b5ce){this['rows']=_0x26b5ce['rows'],this['cols']=_0x26b5ce[_0x31b075(0x26,0x68)],this['xmin']=_0x26b5ce['xmin'],this[_0x2a8a8d(0x543,0x4e1)]=_0x26b5ce['xmax'],this['ymin']=_0x26b5ce[_0x2a8a8d(0x498,0x454)],this[_0x31b075(0x8,0x33)]=_0x26b5ce[_0x2a8a8d(0x510,0x491)],this[_0x2a8a8d(0x476,0x4ff)]=[];const _0x411cbe=_0x26b5ce['udata'],_0x453958=_0x26b5ce[_0x31b075(0x3a,0x65)];function _0x31b075(_0x528d80,_0x41aa83){return _0x441fa5(_0x41aa83-0x48,_0x528d80);}let _0x2c06b7=![];_0x411cbe['length']===this[_0x31b075(0x80,0xb0)]&&_0x411cbe[0x0]['length']===this[_0x31b075(0xa9,0x68)]&&(_0x2c06b7=!![]);let _0x38c9d0=0x0,_0x570dd7=null,_0x2a5fee=null;function _0x2a8a8d(_0x300673,_0x28c525){return _0x441fa5(_0x28c525-0x4a6,_0x300673);}for(let _0x572f5a=0x0;_0x572f5a<this['rows'];_0x572f5a++){_0x570dd7=[];for(let _0x36359c=0x0;_0x36359c<this[_0x2a8a8d(0x442,0x4c6)];_0x36359c++,_0x38c9d0++){_0x2c06b7?_0x2a5fee=this[_0x31b075(-0x8,-0x11)](_0x411cbe[_0x572f5a][_0x36359c],_0x453958[_0x572f5a][_0x36359c]):_0x2a5fee=this['_calcUV'](_0x411cbe[_0x38c9d0],_0x453958[_0x38c9d0]),_0x570dd7[_0x31b075(-0x1b,0x24)](_0x2a5fee);}this['grid']['push'](_0x570dd7);}!this['options'][_0x2a8a8d(0x3c3,0x445)]&&this[_0x2a8a8d(0x4be,0x4ff)][_0x31b075(-0xa8,-0x2f)]();}['clear'](){delete this['rows'],delete this['cols'],delete this['xmin'];function _0x5d04e6(_0x4633d2,_0x4bc863){return _0x441fa5(_0x4633d2-0x20b,_0x4bc863);}delete this['xmax'],delete this['ymin'],delete this['ymax'],delete this[_0x5d04e6(0x264,0x21d)],delete this['particles'];}['toGridXY'](_0x40b654,_0x4d91bc){function _0x11fd6c(_0x595266,_0x431813){return _0x308ef9(_0x595266- -0x1e9,_0x431813);}const _0x884d88=(_0x40b654-this['xmin'])/(this['xmax']-this[_0x11fd6c(-0x230,-0x1c7)])*(this[_0x2cea8a(0x4f1,0x49e)]-0x1),_0x54ba6a=(this['ymax']-_0x4d91bc)/(this['ymax']-this['ymin'])*(this['rows']-0x1);function _0x2cea8a(_0x3e9690,_0xd470c3){return _0x441fa5(_0xd470c3-0x47e,_0x3e9690);}return[_0x884d88,_0x54ba6a];}['getUVByXY'](_0x58ac81,_0x18dbbe){if(_0x58ac81<0x0||_0x58ac81>=this[_0x2dec64(-0x8a,-0xad)]||_0x18dbbe>=this['rows'])return[0x0,0x0,0x0];const _0x4e2bad=Math[_0x2dec64(-0x26,-0x7a)](_0x58ac81),_0xd7d1a2=Math[_0x26d280(-0x6f,-0x6a)](_0x18dbbe);if(_0x4e2bad===_0x58ac81&&_0xd7d1a2===_0x18dbbe)return this[_0x26d280(-0x2,-0x64)][_0x18dbbe][_0x58ac81];const _0x43a73e=_0x4e2bad+0x1;function _0x2dec64(_0x6276a6,_0x35f162){return _0x308ef9(_0x35f162- -0x74,_0x6276a6);}const _0x1b1648=_0xd7d1a2+0x1,_0x1b115f=this['getUVByXY'](_0x4e2bad,_0xd7d1a2),_0x1208a5=this['getUVByXY'](_0x43a73e,_0xd7d1a2),_0x589ab5=this['getUVByXY'](_0x4e2bad,_0x1b1648),_0x37329b=this[_0x2dec64(-0x188,-0x10d)](_0x43a73e,_0x1b1648);let _0x212abe=null;try{_0x212abe=this['_bilinearInterpolation'](_0x58ac81-_0x4e2bad,_0x18dbbe-_0xd7d1a2,_0x1b115f,_0x1208a5,_0x589ab5,_0x37329b);}catch(_0xbb187c){console['log'](_0x58ac81,_0x18dbbe);}function _0x26d280(_0x1da5de,_0x333f1e){return _0x441fa5(_0x333f1e- -0xbd,_0x1da5de);}return _0x212abe;}['_bilinearInterpolation'](_0xb119b5,_0x379b17,_0x5eec5b,_0x3f6d7a,_0x25f47e,_0x2701a9){const _0x590710=0x1-_0xb119b5,_0x22cf5f=0x1-_0x379b17,_0x3e5f7d=_0x590710*_0x22cf5f,_0x45a887=_0xb119b5*_0x22cf5f,_0x484f76=_0x590710*_0x379b17,_0x374443=_0xb119b5*_0x379b17,_0x4960fc=_0x5eec5b[0x0]*_0x3e5f7d+_0x3f6d7a[0x0]*_0x45a887+_0x25f47e[0x0]*_0x484f76+_0x2701a9[0x0]*_0x374443,_0x2cd093=_0x5eec5b[0x1]*_0x3e5f7d+_0x3f6d7a[0x1]*_0x45a887+_0x25f47e[0x1]*_0x484f76+_0x2701a9[0x1]*_0x374443;return this['_calcUV'](_0x4960fc,_0x2cd093);}['_calcUV'](_0x4c7888,_0x28c4f1){return[+_0x4c7888,+_0x28c4f1,Math['sqrt'](_0x4c7888*_0x4c7888+_0x28c4f1*_0x28c4f1)];}['getUVByPoint'](_0x208ac7,_0x46c5ca){if(!this[_0x3a9450(0x1fc,0x1de)](_0x208ac7,_0x46c5ca))return null;function _0x3a9450(_0x354203,_0x183e05){return _0x441fa5(_0x354203-0x23e,_0x183e05);}const _0x157562=this['toGridXY'](_0x208ac7,_0x46c5ca),_0x1822ad=this['getUVByXY'](_0x157562[0x0],_0x157562[0x1]);return _0x1822ad;}['isInExtent'](_0x1659ce,_0x4af6a0){return _0x1659ce>=this['xmin']&&_0x1659ce<=this['xmax']&&_0x4af6a0>=this['ymin']&&_0x4af6a0<=this['ymax']?!![]:![];}['getRandomLatLng'](){const _0x54c6d8=fRandomByfloat(this[_0xf581ba(-0x97,-0x11f)],this['xmax']),_0x4b8906=fRandomByfloat(this['ymin'],this['ymax']),_0x5f4b03={};_0x5f4b03['lat']=_0x4b8906;function _0xf581ba(_0x25de57,_0x13594e){return _0x308ef9(_0x13594e- -0xd8,_0x25de57);}return _0x5f4b03['lng']=_0x54c6d8,_0x5f4b03;}['getParticles'](){let _0x377fda,_0x4d00f7,_0x5d9437;function _0x6c5e0c(_0x37ff86,_0x169951){return _0x441fa5(_0x37ff86-0x25a,_0x169951);}for(let _0x3ce84a=0x0,_0x26dd23=this['particles'][_0x6c5e0c(0x294,0x271)];_0x3ce84a<_0x26dd23;_0x3ce84a++){let _0x28fe99=this['particles'][_0x3ce84a];_0x28fe99['age']<=0x0&&(_0x28fe99=this['_randomParticle'](_0x28fe99));if(_0x28fe99['age']>0x0){const _0x23e16e=_0x28fe99[_0x29642e(-0x2fe,-0x2ad)],_0x2bde88=_0x28fe99['tlat'];_0x5d9437=this[_0x6c5e0c(0x2a4,0x2c2)](_0x23e16e,_0x2bde88),_0x5d9437?(_0x377fda=_0x23e16e+this['_calc_speedRate'][0x0]*_0x5d9437[0x0],_0x4d00f7=_0x2bde88+this[_0x6c5e0c(0x2e9,0x294)][0x1]*_0x5d9437[0x1],_0x28fe99['lng']=_0x23e16e,_0x28fe99['lat']=_0x2bde88,_0x28fe99[_0x29642e(-0x30b,-0x2ad)]=_0x377fda,_0x28fe99['tlat']=_0x4d00f7,_0x28fe99[_0x29642e(-0x345,-0x2b7)]=_0x5d9437[0x2],_0x28fe99['age']--):_0x28fe99[_0x6c5e0c(0x2c8,0x2f4)]=0x0;}}function _0x29642e(_0x24c57d,_0x578811){return _0x308ef9(_0x578811- -0x1da,_0x24c57d);}return this['particles'];}['_randomParticle'](_0x154cf9){let _0x10bc3e,_0x455b21;for(let _0x55e570=0x0;_0x55e570<0x1e;_0x55e570++){_0x10bc3e=this[_0x3f0007(-0x276,-0x26e)](),_0x455b21=this[_0x17b878(0x1ea,0x169)](_0x10bc3e[_0x3f0007(-0x1da,-0x264)],_0x10bc3e['lat']);if(_0x455b21&&_0x455b21[0x2]>0x0)break;}if(!_0x455b21)return _0x154cf9;const _0x13dc45=_0x10bc3e[_0x17b878(0x10e,0xa6)]+this['_calc_speedRate'][0x0]*_0x455b21[0x0],_0x2d0f24=_0x10bc3e['lat']+this['_calc_speedRate'][0x1]*_0x455b21[0x1];_0x154cf9['lng']=_0x10bc3e['lng'];function _0x3f0007(_0x3ef3d9,_0x24ad04){return _0x308ef9(_0x24ad04- -0x192,_0x3ef3d9);}_0x154cf9['lat']=_0x10bc3e['lat'];function _0x17b878(_0x32476d,_0x311205){return _0x308ef9(_0x311205-0x178,_0x32476d);}return _0x154cf9['tlng']=_0x13dc45,_0x154cf9[_0x3f0007(-0x224,-0x1fd)]=_0x2d0f24,_0x154cf9['age']=Math['round'](0xa+Math['random']()*this['maxAge']),_0x154cf9[_0x17b878(0x77,0x9b)]=_0x455b21[0x2],_0x154cf9;}['destroy'](){for(const _0x4b908b in this){delete this[_0x4b908b];}}}function fRandomByfloat(_0x42f0a0,_0x1101bb){return _0x42f0a0+Math['random']()*(_0x1101bb-_0x42f0a0);}const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class CanvasWindLayer extends BaseLayer{constructor(_0x224146={}){super(_0x224146),this['_setOptionsHook'](_0x224146);function _0x10ac7a(_0x337023,_0x5924c9){return _0x441fa5(_0x337023-0x104,_0x5924c9);}this['canvas']=null;function _0x8dbeff(_0xe67cec,_0x2488c7){return _0x441fa5(_0xe67cec- -0x11d,_0x2488c7);}_0x224146[_0x10ac7a(0x8c,0x21)]&&_0x224146[_0x10ac7a(0xdc,0xde)]&&(this['_colorRamp']=new mars3d__namespace[(_0x8dbeff(-0x16e,-0x168))](_0x224146));}[_0x441fa5(-0x1a,-0x87)](_0x48a79b,_0x18b3d8){this['frameTime']=0x3e8/(_0x48a79b['frameRate']||0xa),this['_pointerEvents']=this['options']['pointerEvents']??![],this['color']=_0x48a79b[_0x3ba166(0x45a,0x4a5)]||'#ffffff';function _0x3ba166(_0x545634,_0x29880b){return _0x441fa5(_0x545634-0x3d8,_0x29880b);}this[_0x3ba166(0x3a8,0x330)]=_0x48a79b[_0x3ba166(0x3a8,0x3fa)]||0x1,this[_0xaa0339(0x2e1,0x2e5)]=_0x48a79b['fixedHeight']??0x0;function _0xaa0339(_0xebba97,_0x11b6fb){return _0x308ef9(_0x11b6fb-0x305,_0xebba97);}this[_0xaa0339(0x2bc,0x24b)]=_0x48a79b[_0x3ba166(0x377,0x3ee)]??![],this[_0xaa0339(0x2bb,0x231)]&&this['windField']['setOptions'](_0x48a79b);}get[_0x441fa5(0x49,0x3c)](){function _0x48c6b6(_0x15b3eb,_0x50e045){return _0x308ef9(_0x50e045- -0x16c,_0x15b3eb);}return this[_0x48c6b6(-0x1a7,-0x1af)];}get['canvasWidth'](){function _0x3463fb(_0x4be45a,_0x57c836){return _0x441fa5(_0x4be45a-0x19d,_0x57c836);}return this['_map'][_0x3463fb(0x210,0x297)]['canvas']['clientWidth'];}get[_0x308ef9(-0x7e,-0xd)](){function _0xb50196(_0x51d19a,_0x366154){return _0x441fa5(_0x51d19a-0xb3,_0x366154);}function _0x29990c(_0x1dc5a9,_0x6a1671){return _0x308ef9(_0x1dc5a9-0x3f3,_0x6a1671);}return this[_0x29990c(0x383,0x3f0)]['scene']['canvas'][_0x29990c(0x370,0x38b)];}get[_0x308ef9(-0x16,0x1a)](){return this['_pointerEvents'];}set['pointerEvents'](_0x19cc1e){this['_pointerEvents']=_0x19cc1e;function _0x2c5465(_0x447613,_0x449851){return _0x308ef9(_0x449851-0x15c,_0x447613);}if(!this['canvas'])return;function _0x436037(_0x34f078,_0x27524a){return _0x308ef9(_0x27524a-0x119,_0x34f078);}_0x19cc1e?this[_0x2c5465(0xa0,0x119)]['style']['pointer-events']=_0x2c5465(0x68,0x8f):this['canvas']['style']['pointer-events']=_0x436037(0x130,0x140);}get[_0x308ef9(-0x63,-0x46)](){return this['options']['particlesNumber'];}set[_0x441fa5(-0xa,0x43)](_0x242db5){this['options']['particlesNumber']=_0x242db5,clearTimeout(this['_canrefresh']),this['_canrefresh']=setTimeout(()=>{function _0x9a27d4(_0x16252d,_0x1ff1da){return _0x1b08(_0x16252d- -0x1a9,_0x1ff1da);}this[_0x9a27d4(-0xa9,-0xdb)]();},0x1f4);}get['speedRate'](){return this['options']['speedRate'];}set[_0x441fa5(0x11,-0xd)](_0x47af7b){function _0x463308(_0x126bbb,_0x49bb96){return _0x441fa5(_0x49bb96- -0x246,_0x126bbb);}function _0x49d9b2(_0x3e79d0,_0x485079){return _0x441fa5(_0x3e79d0- -0x1d,_0x485079);}this[_0x49d9b2(-0x6b,-0x2)][_0x49d9b2(-0xc,-0x26)]=_0x47af7b,this['windField']&&(this[_0x49d9b2(-0x98,-0x81)]['speedRate']=_0x47af7b);}get['maxAge'](){function _0x1473d7(_0x168f01,_0x140656){return _0x441fa5(_0x140656-0x1cd,_0x168f01);}return this[_0x1473d7(0x1f9,0x17f)]['maxAge'];}set['maxAge'](_0x34ed7e){function _0x16e5f1(_0x5d94e8,_0x132dcb){return _0x441fa5(_0x132dcb-0x138,_0x5d94e8);}function _0x304292(_0x1bd7f3,_0x58985c){return _0x308ef9(_0x1bd7f3- -0x221,_0x58985c);}this['options'][_0x304292(-0x1ec,-0x268)]=_0x34ed7e,this[_0x16e5f1(0x93,0xbd)]&&(this['windField']['maxAge']=_0x34ed7e);}get['data'](){function _0x43b3dd(_0x4375cc,_0x1a4487){return _0x441fa5(_0x1a4487-0x4dd,_0x4375cc);}return this[_0x43b3dd(0x4ab,0x478)];}set['data'](_0x136315){this['setData'](_0x136315);}get['rectangle'](){let _0x2d5c29=this[_0xf3c5e1(-0x157,-0xed)][_0x51c115(-0xb7,-0x10e)],_0x2cd6ce=this['windData'][_0xf3c5e1(-0xb7,-0xd5)],_0x9f0750=this[_0x51c115(-0x12e,-0x100)]['ymin'],_0x4b04ee=this['windData']['ymax'];_0x2cd6ce>=0x167&&_0x2d5c29===0x0&&(_0x2d5c29=-0xb4,_0x2cd6ce=0xb4);_0x2d5c29=Math['max'](_0x2d5c29,-0xb4),_0x2cd6ce=Math[_0x51c115(-0x3e,-0xb0)](_0x2cd6ce,0xb4),_0x9f0750=Math['max'](_0x9f0750,-0x5a);function _0x51c115(_0x5be0bc,_0x1bd217){return _0x441fa5(_0x5be0bc- -0xc9,_0x1bd217);}_0x4b04ee=Math[_0xf3c5e1(-0x67,0x4)](_0x4b04ee,0x5a);function _0xf3c5e1(_0x4b9b66,_0x565091){return _0x441fa5(_0x4b9b66- -0xf2,_0x565091);}return Cesium['Rectangle']['fromDegrees'](_0x2d5c29,_0x9f0750,_0x2cd6ce,_0x4b04ee);}['_showHook'](_0x4e489c){function _0xffef1b(_0x10aad9,_0x24dc4a){return _0x308ef9(_0x10aad9-0x29d,_0x24dc4a);}function _0x264719(_0x1ca928,_0x317e54){return _0x441fa5(_0x1ca928-0x45,_0x317e54);}_0x4e489c?this['_addedHook']():(this[_0xffef1b(0x1df,0x158)]&&(this[_0x264719(-0x9,-0x28)]['data']=this['windData']),this[_0x264719(0x83,0xd9)]());}[_0x308ef9(-0xb5,-0xaa)](){function _0x44fb26(_0x3f7524,_0x182208){return _0x308ef9(_0x182208-0x4aa,_0x3f7524);}function _0x26e40e(_0x2c055e,_0x50646e){return _0x441fa5(_0x50646e- -0x222,_0x2c055e);}this[_0x44fb26(0x3c8,0x403)][_0x26e40e(-0x1a8,-0x1b5)]?this['initWorker']():this['windField']=new CanvasWindField(this['options']);}[_0x308ef9(-0x4e,-0x95)](){this['canvas']=this['_createCanvas']();const _0x2c795d={};function _0x227c3e(_0x4d3bbe,_0x400e4f){return _0x308ef9(_0x400e4f-0x4df,_0x4d3bbe);}function _0x5eda7a(_0x3d3699,_0x2a5250){return _0x441fa5(_0x2a5250- -0x133,_0x3d3699);}_0x2c795d['willReadFrequently']=!![],this['canvasContext']=this['canvas']['getContext']('2d',_0x2c795d),this['bindEvent'](),this['options'][_0x5eda7a(-0xd3,-0xd8)]&&this['setData'](this[_0x5eda7a(-0x1f3,-0x181)]['data']);}[_0x441fa5(0x3e,-0x42)](){function _0x30fc11(_0x14049f,_0x15e022){return _0x441fa5(_0x14049f-0x4d5,_0x15e022);}function _0x40f838(_0x165b18,_0x28faba){return _0x441fa5(_0x165b18-0x34d,_0x28faba);}this['clear'](),this[_0x30fc11(0x54d,0x5b9)](),this[_0x40f838(0x363,0x33b)]&&(this['_map']['container']['removeChild'](this['canvas']),delete this['canvas']);}['_createCanvas'](){function _0x321bc7(_0xbab33d,_0x25b714){return _0x441fa5(_0xbab33d- -0x1b8,_0x25b714);}function _0x33f86e(_0x100917,_0x4d543a){return _0x441fa5(_0x4d543a-0x1b1,_0x100917);}const _0x585c6b=mars3d__namespace['DomUtil']['create']('canvas',_0x321bc7(-0x1ba,-0x1a3),this['_map'][_0x33f86e(0x145,0x179)]);return _0x585c6b[_0x321bc7(-0x1b5,-0x18f)][_0x321bc7(-0x1bb,-0x16b)]='absolute',_0x585c6b['style'][_0x33f86e(0x26a,0x1fe)]='0px',_0x585c6b['style'][_0x321bc7(-0x224,-0x24f)]=_0x321bc7(-0x201,-0x17c),_0x585c6b[_0x321bc7(-0x1b5,-0x13f)]['width']=this[_0x321bc7(-0x1cf,-0x1de)]['scene']['canvas']['clientWidth']+'px',_0x585c6b[_0x33f86e(0x135,0x1b4)][_0x321bc7(-0x1ef,-0x193)]=this['_map']['scene'][_0x321bc7(-0x1a2,-0x133)][_0x321bc7(-0x1e2,-0x221)]+'px',_0x585c6b['style'][_0x33f86e(0x1b3,0x1f4)]=this['_pointerEvents']?_0x33f86e(0xf2,0x17b):_0x33f86e(0x24f,0x231),_0x585c6b['style'][_0x321bc7(-0x182,-0x170)]=this['options']['zIndex']??0x9,_0x585c6b['width']=this['_map']['scene']['canvas'][_0x321bc7(-0x22e,-0x22f)],_0x585c6b[_0x33f86e(0x119,0x17a)]=this['_map']['scene']['canvas']['clientHeight'],_0x585c6b;}['resize'](){function _0x309b6c(_0xb3b70d,_0x2c970a){return _0x308ef9(_0xb3b70d- -0x63,_0x2c970a);}function _0x3138d3(_0x322559,_0x3dc405){return _0x308ef9(_0x322559-0x368,_0x3dc405);}this['canvas']&&(this[_0x3138d3(0x325,0x375)]['style']['width']=this['_map'][_0x3138d3(0x382,0x3ae)]['canvas']['clientWidth']+'px',this[_0x3138d3(0x325,0x3a9)][_0x3138d3(0x312,0x2bb)][_0x3138d3(0x2d8,0x26f)]=this['_map']['scene']['canvas']['clientHeight']+'px',this['canvas']['width']=this['_map'][_0x309b6c(-0x49,-0x5f)]['canvas']['clientWidth'],this['canvas']['height']=this['_map']['scene']['canvas'][_0x309b6c(-0xe6,-0xf8)]);}['bindEvent'](){const _0xf65730=this;let _0x1ecd80=Date['now']();function _0x4efd30(_0xb9f948,_0x275293){return _0x441fa5(_0x275293-0x269,_0xb9f948);}(function _0x38f48e(){function _0x13b9e2(_0x45c748,_0x546f3c){return _0x1b08(_0x546f3c-0xca,_0x45c748);}function _0x242da4(_0x1175ad,_0x406c79){return _0x1b08(_0x406c79- -0xfe,_0x1175ad);}if(_0xf65730[_0x13b9e2(0x267,0x21d)])return;_0xf65730['_animateFrame']=window[_0x242da4(0xf6,0xd9)](_0x38f48e);if(_0xf65730[_0x242da4(0xb1,0xc5)]&&_0xf65730[_0x242da4(-0x20,-0x33)]){const _0x2ea083=Date['now'](),_0x5972e2=_0x2ea083-_0x1ecd80;_0x5972e2>_0xf65730['frameTime']&&(_0x1ecd80=_0x2ea083-_0x5972e2%_0xf65730['frameTime'],_0xf65730['update']());}}(),window[_0x4efd30(0x302,0x27c)](_0x10fe51(0x1cb,0x1d9),this[_0x4efd30(0x2e3,0x2bb)]['bind'](this),![]),this['mouse_down']=![],this['mouse_move']=![]);function _0x10fe51(_0x127797,_0x22fa8f){return _0x308ef9(_0x127797-0x1d2,_0x22fa8f);}this[_0x4efd30(0x1e0,0x21b)][_0x4efd30(0x32e,0x2f0)]&&(this['_map']['on'](mars3d__namespace['EventType'][_0x4efd30(0x2af,0x294)],this['_onMapWhellEvent'],this),this['_map']['on'](mars3d__namespace[_0x4efd30(0x2a6,0x29c)]['mouseDown'],this['_onMouseDownEvent'],this),this['_map']['on'](mars3d__namespace[_0x4efd30(0x25f,0x29c)][_0x4efd30(0x2a9,0x268)],this[_0x4efd30(0x25c,0x2aa)],this));}[_0x308ef9(0x1f,-0x4f)](){window[_0x21e448(-0xee,-0xcd)](this[_0xc261b9(-0x24c,-0x1c4)]),delete this['_animateFrame'],window['removeEventListener'](_0x21e448(-0xc8,-0x48),this['resize']);function _0xc261b9(_0x265531,_0xfad1e1){return _0x308ef9(_0xfad1e1- -0x101,_0x265531);}function _0x21e448(_0x190afb,_0x56b78a){return _0x441fa5(_0x56b78a- -0x9a,_0x190afb);}this[_0xc261b9(-0x199,-0x1a8)][_0x21e448(0x35,-0x13)]&&(this['_map']['off'](mars3d__namespace['EventType']['wheel'],this[_0x21e448(-0xfd,-0x9e)],this),this['_map'][_0xc261b9(-0x166,-0x173)](mars3d__namespace['EventType'][_0x21e448(-0x36,-0xbb)],this[_0x21e448(0x1,-0x7b)],this),this['_map'][_0xc261b9(-0x185,-0x173)](mars3d__namespace['EventType']['mouseUp'],this['_onMouseUpEvent'],this),this[_0x21e448(-0x11c,-0xb1)][_0xc261b9(-0x1ae,-0x173)](mars3d__namespace['EventType']['mouseMove'],this['_onMouseMoveEvent'],this));}['_onMapWhellEvent'](_0x40a872){clearTimeout(this['refreshTimer']);if(!this[_0xf25a52(0x453,0x491)]||!this[_0x45a771(0x91,0xc9)])return;this['canvas']['style'][_0xf25a52(0x48c,0x430)]=_0xf25a52(0x338,0x392);function _0x45a771(_0x32d0f0,_0x3cf772){return _0x308ef9(_0x3cf772-0x10c,_0x32d0f0);}function _0xf25a52(_0x4dde92,_0x649e4c){return _0x308ef9(_0x649e4c-0x46d,_0x4dde92);}this['refreshTimer']=setTimeout(()=>{function _0x54f8a3(_0x28b9d7,_0x5774a8){return _0xf25a52(_0x28b9d7,_0x5774a8- -0x119);}if(!this[_0x5ec047(0x4de,0x4d4)])return;function _0x5ec047(_0x4bea2e,_0x210512){return _0xf25a52(_0x4bea2e,_0x210512-0x43);}this['redraw'](),this[_0x54f8a3(0x394,0x311)]['style']['visibility']='visible';},0xc8);}['_onMouseDownEvent'](_0x72ac51){function _0x2ed991(_0x5ecae2,_0x2cf885){return _0x441fa5(_0x2cf885-0x45a,_0x5ecae2);}this['mouse_down']=!![],this['_map'][_0x5aed2e(0x24c,0x2b5)](mars3d__namespace['EventType']['mouseMove'],this['_onMouseMoveEvent'],this);function _0x5aed2e(_0x1d48cc,_0x114ddf){return _0x441fa5(_0x114ddf-0x2ce,_0x1d48cc);}this[_0x2ed991(0x43a,0x443)]['on'](mars3d__namespace['EventType']['mouseMove'],this[_0x2ed991(0x518,0x48e)],this);}[_0x441fa5(0x34,-0x57)](_0x338e14){function _0x3a0eeb(_0x56df64,_0x57edec){return _0x441fa5(_0x56df64-0x2c0,_0x57edec);}if(!this[_0x3a0eeb(0x33d,0x34d)]||!this[_0x667146(0x329,0x2c1)])return;function _0x667146(_0x2adb59,_0x2c7432){return _0x441fa5(_0x2c7432-0x2ab,_0x2adb59);}this['mouse_down']&&(this['canvas']['style']['visibility']=_0x667146(0x281,0x229),this[_0x3a0eeb(0x2ba,0x2e6)]=!![]);}['_onMouseUpEvent'](_0x26621f){if(!this[_0x367585(0x21c,0x291)]||!this['canvas'])return;function _0x5c6da2(_0x32d2e5,_0x5c89eb){return _0x308ef9(_0x5c89eb-0x1e1,_0x32d2e5);}this[_0x367585(0x263,0x1fd)]['off'](mars3d__namespace['EventType']['mouseMove'],this['_onMouseMoveEvent'],this);this['mouse_down']&&this[_0x5c6da2(0x10c,0x182)]&&this[_0x5c6da2(0xf4,0x142)]();function _0x367585(_0x4416d5,_0x4bd390){return _0x441fa5(_0x4bd390-0x214,_0x4416d5);}this['canvas']['style']['visibility']='visible',this['mouse_down']=![],this[_0x5c6da2(0x1d4,0x182)]=![];}['setData'](_0x4b9ce2){function _0x4947d2(_0xf45f2,_0x157b29){return _0x441fa5(_0x157b29- -0xa4,_0xf45f2);}this['clear'](),this[_0x24b5c5(-0x263,-0x2d2)]=_0x4b9ce2,this['windField']['setDate'](_0x4b9ce2);function _0x24b5c5(_0x717842,_0x410bba){return _0x308ef9(_0x410bba- -0x214,_0x717842);}this[_0x24b5c5(-0x2cc,-0x2b3)]();}['redraw'](){if(!this['show'])return;this[_0x29a357(0x1dd,0x25a)][_0x29a357(0x316,0x2c4)](this[_0x29a357(0x2dc,0x287)]);function _0x52076e(_0x13ecbb,_0x8c5092){return _0x308ef9(_0x13ecbb-0x26a,_0x8c5092);}function _0x29a357(_0xa1a3bc,_0x2a60cc){return _0x441fa5(_0x2a60cc-0x2d5,_0xa1a3bc);}this['update']();}['update'](){function _0x14b409(_0x2b89cc,_0x2ebb3e){return _0x441fa5(_0x2b89cc-0x425,_0x2ebb3e);}if(this['_updateIng'])return;function _0x317f05(_0x30a2a6,_0x18f39d){return _0x308ef9(_0x18f39d- -0x173,_0x30a2a6);}this[_0x317f05(-0x1c6,-0x1eb)]=!![];if(this[_0x14b409(0x492,0x4d6)])this[_0x14b409(0x3aa,0x3c1)]['update']();else{const _0x500e96=this['windField']['getParticles']();this[_0x317f05(-0x1fc,-0x241)](_0x500e96);}this['_updateIng']=![];}['_drawLines'](_0xe48897){this['_canvasParticles']=_0xe48897,this[_0x4e0a17(0x461,0x4b8)]['globalCompositeOperation']='destination-in',this['canvasContext']['fillRect'](0x0,0x0,this['canvasWidth'],this[_0x4303c0(-0x184,-0x1d7)]),this['canvasContext']['globalCompositeOperation']='lighter',this[_0x4e0a17(0x461,0x410)]['globalAlpha']=0.9;function _0x4303c0(_0xd52903,_0x10f587){return _0x441fa5(_0xd52903- -0x15f,_0x10f587);}function _0x4e0a17(_0x181de2,_0x52aad3){return _0x308ef9(_0x181de2-0x4ae,_0x52aad3);}const _0x542b69=this['_map'][_0x4303c0(-0xec,-0x141)]['mode']!==Cesium['SceneMode']['SCENE3D'],_0x466fb0=this['canvasWidth']*0.25;if(this[_0x4e0a17(0x42c,0x445)])for(let _0x29f750=0x0,_0x1a9839=_0xe48897['length'];_0x29f750<_0x1a9839;_0x29f750++){const _0x36ab08=_0xe48897[_0x29f750],_0x6719b1=this[_0x4303c0(-0xdc,-0x153)](_0x36ab08,_0x36ab08['lng'],_0x36ab08['lat'],_0x36ab08['alt']),_0x2477cd=this[_0x4e0a17(0x4d8,0x470)](_0x36ab08,_0x36ab08['tlng'],_0x36ab08['tlat'],_0x36ab08['talt']);if(!_0x6719b1||!_0x2477cd)continue;if(_0x542b69&&Math['abs'](_0x6719b1[0x0]-_0x2477cd[0x0])>=_0x466fb0)continue;this[_0x4303c0(-0x153,-0x1d4)]['beginPath'](),this['canvasContext']['lineWidth']=this[_0x4e0a17(0x425,0x3c3)],this['canvasContext'][_0x4e0a17(0x428,0x49e)]=this['_colorRamp']['getColor'](_0x36ab08['speed']),this[_0x4e0a17(0x461,0x3f7)]['moveTo'](_0x6719b1[0x0],_0x6719b1[0x1]),this[_0x4303c0(-0x153,-0x1d4)]['lineTo'](_0x2477cd[0x0],_0x2477cd[0x1]),this[_0x4303c0(-0x153,-0x121)]['stroke']();}else{this['canvasContext']['beginPath'](),this[_0x4303c0(-0x153,-0x1c7)]['lineWidth']=this['lineWidth'],this[_0x4303c0(-0x153,-0x1b7)][_0x4e0a17(0x428,0x45f)]=this[_0x4e0a17(0x4d7,0x553)];for(let _0x402a9d=0x0,_0x5645ca=_0xe48897[_0x4303c0(-0x125,-0x168)];_0x402a9d<_0x5645ca;_0x402a9d++){const _0x2ad11a=_0xe48897[_0x402a9d],_0x33e7c4=this['_tomap'](_0x2ad11a,_0x2ad11a[_0x4e0a17(0x3dc,0x45d)],_0x2ad11a[_0x4e0a17(0x4be,0x496)],_0x2ad11a[_0x4303c0(-0x14f,-0xc8)]),_0x55ffbb=this['_tomap'](_0x2ad11a,_0x2ad11a['tlng'],_0x2ad11a[_0x4303c0(-0x171,-0x189)],_0x2ad11a[_0x4e0a17(0x47f,0x4f2)]);if(!_0x33e7c4||!_0x55ffbb)continue;if(_0x542b69&&Math['abs'](_0x33e7c4[0x0]-_0x55ffbb[0x0])>=_0x466fb0)continue;this['canvasContext'][_0x4303c0(-0xfc,-0x17e)](_0x33e7c4[0x0],_0x33e7c4[0x1]),this[_0x4e0a17(0x461,0x488)]['lineTo'](_0x55ffbb[0x0],_0x55ffbb[0x1]);}this[_0x4e0a17(0x461,0x3f8)][_0x4e0a17(0x414,0x41d)]();}}['_tomap'](_0x1d4439,_0x56a3bb,_0x5cd7db,_0x3b8778){function _0x2c313d(_0x285ac5,_0x402f64){return _0x308ef9(_0x402f64-0x498,_0x285ac5);}const _0x36e34f=Cesium['Cartesian3']['fromDegrees'](_0x56a3bb,_0x5cd7db,_0x3b8778??this['fixedHeight']),_0x7c9118=this[_0x2c313d(0x466,0x428)]['scene'];if(_0x7c9118[_0x2c313d(0x4f1,0x467)]===Cesium[_0x2c313d(0x35d,0x3e1)]['SCENE3D']){const _0x563cde=new Cesium['EllipsoidalOccluder'](_0x7c9118['globe']['ellipsoid'],_0x7c9118['camera']['positionWC']),_0x35e752=_0x563cde['isPointVisible'](_0x36e34f);if(!_0x35e752)return _0x1d4439[_0x138c00(0x553,0x52d)]=0x0,null;}const _0x3bc67e=mars3d__namespace[_0x2c313d(0x3a2,0x3e0)]['toWindowCoordinates'](this['_map']['scene'],_0x36e34f);function _0x138c00(_0x3e07d1,_0x19bf65){return _0x308ef9(_0x19bf65-0x518,_0x3e07d1);}return _0x3bc67e?[_0x3bc67e['x'],_0x3bc67e['y']]:null;}['clear'](){function _0x47db8a(_0xa44b7d,_0x244945){return _0x308ef9(_0xa44b7d- -0x42,_0x244945);}this['windField'][_0x47db8a(-0x37,0x1e)](),delete this['windData'];}['initWorker'](){this[_0x2d9dff(-0x144,-0x15e)]=new Worker(this['options']['worker']),this['worker']['onmessage']=_0x542dd1=>{this[_0x241d78(0x4e5,0x4b1)](_0x542dd1['data'][_0x241d78(0x54f,0x4d1)]);function _0x241d78(_0x3a706e,_0x3f3e68){return _0x2d9dff(_0x3f3e68-0x6d7,_0x3a706e);}function _0x4c05c7(_0x2e6e94,_0x201da8){return _0x2d9dff(_0x2e6e94-0x2c6,_0x201da8);}this[_0x241d78(0x531,0x4dc)]=![];};function _0x2d9dff(_0x2f6c4d,_0x3bc28b){return _0x308ef9(_0x2f6c4d- -0x158,_0x3bc28b);}this['windField']={'init':_0x5abea1=>{const _0x5e8936={};_0x5e8936['type']='init',_0x5e8936['options']=_0x5abea1,this['worker']['postMessage'](_0x5e8936);},'setOptions':_0x13f4a1=>{const _0x201d27={};_0x201d27['type']='setOptions',_0x201d27['options']=_0x13f4a1,this['worker']['postMessage'](_0x201d27);},'setDate':_0x568206=>{const _0xf5cadc={};_0xf5cadc[_0x1a2342(0x390,0x315)]='setDate',_0xf5cadc[_0x2d712d(0x18c,0x160)]=_0x568206;function _0x1a2342(_0xc34dd2,_0x5d275c){return _0x2d9dff(_0xc34dd2-0x4e2,_0x5d275c);}function _0x2d712d(_0x57f703,_0x1f8d16){return _0x2d9dff(_0x1f8d16-0x2b6,_0x57f703);}this['worker'][_0x1a2342(0x2f7,0x2ab)](_0xf5cadc);},'update':()=>{if(this['_updateIng2'])return;this['_updateIng2']=!![];const _0x30c51d={};function _0x1d63c2(_0xa02cf9,_0x33bc91){return _0x2d9dff(_0xa02cf9-0x352,_0x33bc91);}_0x30c51d['type']='update',this['worker'][_0x1d63c2(0x167,0xf4)](_0x30c51d);},'clear':()=>{function _0x4aa40c(_0x15ce2f,_0x661276){return _0x2d9dff(_0x15ce2f-0x5ad,_0x661276);}const _0x4c1232={};function _0x4a368e(_0x428746,_0x32da2f){return _0x2d9dff(_0x32da2f-0x1a8,_0x428746);}_0x4c1232['type']=_0x4a368e(0x4c,0x5b),this[_0x4aa40c(0x469,0x403)]['postMessage'](_0x4c1232);}},this['windField']['init'](this['options']);}}mars3d__namespace[_0x308ef9(-0x12,-0x4)]['register'](_0x441fa5(-0x50,-0x35),CanvasWindLayer),mars3d__namespace[_0x308ef9(-0x10,0x54)][_0x308ef9(-0x84,-0x10c)]=CanvasWindLayer,mars3d__namespace['CanvasWindField']=CanvasWindField,mars3d__namespace['Log']['logInfo']('mars3d-wind插件注册成功\x20\x20\x20\x20\x20版本:'+version+'\x20\x20\x20\x20编译日期:'+buildTime),mars3d__namespace['WindUtil']=WindUtil,exports['CanvasWindField']=CanvasWindField,exports['CanvasWindLayer']=CanvasWindLayer,exports['WindLayer']=WindLayer,exports['WindUtil']=WindUtil;const _0x30eac9={};_0x30eac9['value']=!![];function _0x441fa5(_0xe32fa8,_0x308fb9){return _0x1b08(_0xe32fa8- -0x146,_0x308fb9);}Object[_0x441fa5(-0x67,-0xb4)](exports,'__esModule',_0x30eac9);
15
15
  }));
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "mars3d-wind",
3
- "version": "3.11.4",
3
+ "version": "3.11.5",
4
4
  "description": "Mars3D平台插件,支持气象 风向图 功能插件",
5
5
  "main": "./mars3d-wind.js",
6
6
  "peerDependencies": {},
7
7
  "devDependencies": {
8
- "mars3d": "~3.11.4"
8
+ "mars3d": "~3.11.5"
9
9
  },
10
10
  "scripts": {
11
11
  "lint": "eslint ./src/**/*.{js,ts} --fix"