mars3d-wind 3.11.3 → 3.11.4

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.3
5
- * 编译日期:2026-05-13 11:57
4
+ * 版本信息:v3.11.4
5
+ * 编译日期:2026-06-04 19:46
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(_0x55b43d,_0x31d27b){function _0x9287c6(_0x5aaeff,_0x3d0ff2){return _0x5ea3(_0x5aaeff-0x1c7,_0x3d0ff2);}const _0x3bdcfb=_0x55b43d();function _0x17add5(_0x1d6d12,_0x468e40){return _0x5ea3(_0x1d6d12- -0x1e9,_0x468e40);}while(!![]){try{const _0x170e9b=parseInt(_0x17add5(-0x156,-0x1cb))/0x1*(parseInt(_0x9287c6(0x34e,0x3d6))/0x2)+parseInt(_0x9287c6(0x303,0x31a))/0x3*(parseInt(_0x17add5(-0x119,-0x111))/0x4)+parseInt(_0x9287c6(0x2d8,0x285))/0x5+parseInt(_0x9287c6(0x30d,0x2a8))/0x6+-parseInt(_0x17add5(-0x11a,-0x128))/0x7+parseInt(_0x17add5(-0x134,-0x1b0))/0x8+-parseInt(_0x9287c6(0x315,0x2de))/0x9;if(_0x170e9b===_0x31d27b)break;else _0x3bdcfb['push'](_0x3bdcfb['shift']());}catch(_0x3b8d15){_0x3bdcfb['push'](_0x3bdcfb['shift']());}}}(_0x3488,0xe8ba0));function _interopNamespace(_0x59e061){if(_0x59e061&&_0x59e061[_0x1b571d(0x3c5,0x418)])return _0x59e061;function _0x1b571d(_0x35b999,_0x4ab5b){return _0x5ea3(_0x35b999-0x295,_0x4ab5b);}var _0x1f3e89=Object['create'](null);_0x59e061&&Object[_0x1b571d(0x3e6,0x3d9)](_0x59e061)[_0x1b571d(0x3e2,0x462)](function(_0x1f3202){function _0x1dcf64(_0x338298,_0x3b75ea){return _0x1b571d(_0x338298- -0x540,_0x3b75ea);}if(_0x1f3202!=='default'){var _0x2ef887=Object['getOwnPropertyDescriptor'](_0x59e061,_0x1f3202);Object[_0x1dcf64(-0x130,-0xf3)](_0x1f3e89,_0x1f3202,_0x2ef887['get']?_0x2ef887:{'enumerable':!![],'get':function(){return _0x59e061[_0x1f3202];}});}});_0x1f3e89[_0x1b571d(0x3b5,0x3a6)]=_0x59e061;function _0xc463b2(_0x4b80d7,_0x406267){return _0x5ea3(_0x406267- -0x15a,_0x4b80d7);}return _0x1f3e89;}var mars3d__namespace=_interopNamespace(mars3d);const Cesium$2=mars3d__namespace['Cesium'];function getU(_0x46033d,_0x155e52){const _0x228c4b=_0x46033d*Math['cos'](Cesium$2['Math']['toRadians'](_0x155e52));return _0x228c4b;}function getV(_0x3996da,_0xaa1115){const _0x2292c0=_0x3996da*Math['sin'](Cesium$2['Math']['toRadians'](_0xaa1115));return _0x2292c0;}function getSpeed(_0x274a7f,_0x279865){const _0x1d0eef=Math['sqrt'](Math['pow'](_0x274a7f,0x2)+Math['pow'](_0x279865,0x2));return _0x1d0eef;}function getDirection(_0x3f0f15,_0x38af22){let _0x2f80d3=Cesium$2[_0x14339f(0x1df,0x220)]['toDegrees'](Math['atan2'](_0x38af22,_0x3f0f15));_0x2f80d3+=_0x2f80d3<0x0?0x168:0x0;function _0x14339f(_0x556bb5,_0x1b06ee){return _0x5ea3(_0x556bb5-0x12e,_0x1b06ee);}return _0x2f80d3;}const _0x1f77f8={};_0x1f77f8[_0x5c4e84(0x1d2,0x162)]=null,_0x1f77f8['getU']=getU,_0x1f77f8['getV']=getV,_0x1f77f8['getSpeed']=getSpeed,_0x1f77f8['getDirection']=getDirection;var WindUtil=_0x1f77f8;const version=_0x580342(0x432,0x3b5),buildTime='2026-05-13\x2011:55';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=_0x5c4e84(0x217,0x287),renderParticlesVertexShader='#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';const {ShaderSource:ShaderSource$1}=mars3d__namespace[_0x580342(0x333,0x366)];function _0x5ea3(_0x4664be,_0x226f3c){const _0x3488c0=_0x3488();return _0x5ea3=function(_0x5ea326,_0x4e748b){_0x5ea326=_0x5ea326-0x7f;let _0x31b150=_0x3488c0[_0x5ea326];return _0x31b150;},_0x5ea3(_0x4664be,_0x226f3c);}class ShaderManager{static[_0x5c4e84(0x1d4,0x219)](){const _0x267f79={};_0x267f79[_0x5d2ade(0x1d2,0x1b0)]=[calculateSpeedShader];function _0x5d2ade(_0x953902,_0x5c8dd7){return _0x580342(_0x5c8dd7,_0x953902- -0x11d);}return new ShaderSource$1(_0x267f79);}static['getUpdatePositionShader'](){const _0xc45e25={};function _0x3f5dab(_0x208429,_0x1f3879){return _0x580342(_0x208429,_0x1f3879- -0x413);}return _0xc45e25[_0x3f5dab(-0xcf,-0x124)]=[updatePositionShader],new ShaderSource$1(_0xc45e25);}static[_0x5c4e84(0x244,0x24d)](){function _0x6a6a93(_0x24e1ef,_0x3eeaab){return _0x5c4e84(_0x3eeaab-0x10c,_0x24e1ef);}const _0x3ccaae={};return _0x3ccaae[_0x6a6a93(0x34b,0x2df)]=[renderParticlesVertexShader],new ShaderSource$1(_0x3ccaae);}static['getSegmentDrawFragmentShader'](){const _0x28f7d6={};function _0x3f985a(_0x42fd18,_0x3a4ca1){return _0x580342(_0x42fd18,_0x3a4ca1- -0x39d);}return _0x28f7d6[_0x3f985a(-0x103,-0xae)]=[renderParticlesFragmentShader],new ShaderSource$1(_0x28f7d6);}static['getPostProcessingPositionShader'](){const _0x50b4b4={};return _0x50b4b4['sources']=[postProcessingPositionFragmentShader],new ShaderSource$1(_0x50b4b4);}}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(_0x202d14){this[_0x191404(-0x146,-0x141)]=_0x202d14[_0x4415b4(0x1a,0x3d)];function _0x4415b4(_0x379eec,_0x555a95){return _0x580342(_0x555a95,_0x379eec- -0x37a);}function _0x191404(_0x319db1,_0x136600){return _0x580342(_0x136600,_0x319db1- -0x4da);}this[_0x191404(-0x1b3,-0x1a0)]=_0x202d14[_0x4415b4(-0x53,-0x64)],this['attributeLocations']=_0x202d14[_0x191404(-0x140,-0xbf)],this[_0x191404(-0x15e,-0x198)]=_0x202d14[_0x4415b4(0x2,0x7a)],this['uniformMap']=_0x202d14['uniformMap']||{},this['vertexShaderSource']=_0x202d14['vertexShaderSource'],this['fragmentShaderSource']=_0x202d14['fragmentShaderSource'],this['rawRenderState']=_0x202d14[_0x191404(-0x14c,-0x13a)],this[_0x191404(-0x184,-0xff)]=_0x202d14['framebuffer'],this['outputTexture']=_0x202d14['outputTexture'],this['autoClear']=_0x202d14[_0x4415b4(0x17,0x2c)]??![],this[_0x4415b4(-0x44,-0xba)]=_0x202d14['preExecute'],this['show']=!![],this[_0x191404(-0x18d,-0x1b4)]=undefined,this['clearCommand']=undefined,this[_0x191404(-0x232,-0x25a)]=_0x202d14[_0x191404(-0x232,-0x1f4)]??(()=>!![]),this['autoClear']&&(this['clearCommand']=new ClearCommand$1({'color':new Color$2(0x0,0x0,0x0,0x0),'depth':0x1,'framebuffer':this[_0x4415b4(-0x24,-0x80)],'pass':Pass$1[_0x191404(-0x22a,-0x26b)]}));}['createCommand'](_0xd42dc2){function _0x578e35(_0x4675e1,_0x94ed9){return _0x5c4e84(_0x94ed9- -0x12d,_0x4675e1);}function _0x1c00d9(_0x38a9be,_0x298e43){return _0x5c4e84(_0x38a9be-0x53,_0x298e43);}if(this[_0x1c00d9(0x2cb,0x25e)]==='Draw'){const _0x13b395={};_0x13b395['context']=_0xd42dc2,_0x13b395['geometry']=this['geometry'],_0x13b395[_0x1c00d9(0x2d1,0x30a)]=this['attributeLocations'],_0x13b395[_0x1c00d9(0x2e4,0x2e8)]=BufferUsage$1['STATIC_DRAW'];const _0x44d41e=VertexArray$1['fromGeometry'](_0x13b395),_0x3ac360={};_0x3ac360['context']=_0xd42dc2,_0x3ac360['vertexShaderSource']=this['vertexShaderSource'],_0x3ac360['fragmentShaderSource']=this['fragmentShaderSource'],_0x3ac360[_0x1c00d9(0x2d1,0x280)]=this[_0x1c00d9(0x2d1,0x256)];const _0x5341b6=ShaderProgram['fromCache'](_0x3ac360),_0x4ee906=RenderState[_0x578e35(0x1f,0x62)](this['rawRenderState']),_0x305933={};return _0x305933['owner']=this,_0x305933[_0x1c00d9(0x249,0x281)]=_0x44d41e,_0x305933['primitiveType']=this['primitiveType'],_0x305933[_0x578e35(0xf9,0x111)]=Matrix4['IDENTITY'],_0x305933['renderState']=_0x4ee906,_0x305933['shaderProgram']=_0x5341b6,_0x305933['framebuffer']=this['framebuffer'],_0x305933['uniformMap']=this['uniformMap'],_0x305933[_0x1c00d9(0x258,0x2dc)]=Pass$1['OPAQUE'],new DrawCommand(_0x305933);}else{if(this['commandType']===_0x1c00d9(0x1ee,0x213)){const _0x309e0f={};return _0x309e0f[_0x578e35(0x10f,0xa1)]=this,_0x309e0f['fragmentShaderSource']=this[_0x578e35(0x54,0x68)],_0x309e0f['uniformMap']=this[_0x1c00d9(0x28f,0x2b9)],_0x309e0f['outputTexture']=this[_0x1c00d9(0x216,0x251)],_0x309e0f[_0x578e35(0x1b0,0x134)]=!![],new ComputeCommand(_0x309e0f);}else throw new Error('Unknown\x20command\x20type');}}[_0x580342(0x342,0x2fa)](_0x457de0,_0x2dfe7e){this['geometry']=_0x2dfe7e;function _0x358689(_0xeebd31,_0x49a808){return _0x5c4e84(_0xeebd31- -0x1f7,_0x49a808);}function _0x51852b(_0x4391e0,_0x58c747){return _0x5c4e84(_0x58c747- -0x138,_0x4391e0);}defined(this['commandToExecute'])&&(this['commandToExecute']['vertexArray']=VertexArray$1['fromGeometry']({'context':_0x457de0,'geometry':this[_0x358689(0x14,-0x67)],'attributeLocations':this['attributeLocations'],'bufferUsage':BufferUsage$1[_0x51852b(0x62,0x82)]}));}[_0x580342(0x3e7,0x39b)](_0x2ed03b){if(!this['isDynamic']())return;if(!this['show']||!defined(_0x2ed03b))return;!defined(this[_0x409684(-0x1e4,-0x1e8)])&&(this[_0x55ffcf(0x164,0x189)]=this[_0x55ffcf(0x1c9,0x19d)](_0x2ed03b[_0x55ffcf(0x1b2,0x1b5)]));function _0x409684(_0x41ada4,_0x5dc1c1){return _0x580342(_0x41ada4,_0x5dc1c1- -0x535);}defined(this[_0x409684(-0x226,-0x1ff)])&&this['preExecute']();if(!_0x2ed03b['commandList']){console['warn']('frameState.commandList\x20is\x20undefined');return;}defined(this['clearCommand'])&&_0x2ed03b['commandList']['push'](this[_0x409684(-0x255,-0x1e0)]);function _0x55ffcf(_0x493e88,_0x4f267a){return _0x580342(_0x493e88,_0x4f267a- -0x1c4);}defined(this[_0x409684(-0x185,-0x1e8)])&&_0x2ed03b['commandList']['push'](this[_0x409684(-0x19c,-0x1e8)]);}['isDestroyed'](){return![];}['destroy'](){function _0x52b3f4(_0x9e6111,_0x560c93){return _0x580342(_0x560c93,_0x9e6111- -0x7e);}function _0x29e99e(_0x3421ab,_0x428330){return _0x580342(_0x3421ab,_0x428330- -0x580);}if(defined(this['commandToExecute'])){var _0x39a39e;(_0x39a39e=this['commandToExecute']['shaderProgram'])===null||_0x39a39e===void 0x0||_0x39a39e['destroy'](),this[_0x29e99e(-0x1c7,-0x233)][_0x29e99e(-0x2c3,-0x2ab)]=undefined;}return destroyObject(this);}}function deepMerge(_0x11d246,_0x48b53e){if(!_0x11d246)return _0x48b53e;if(!_0x48b53e)return _0x11d246;const _0x4a4c29={..._0x48b53e},_0x21bae1=_0x4a4c29;function _0xd12f52(_0x52819b,_0x45abdd){return _0x580342(_0x52819b,_0x45abdd- -0xf6);}function _0x11af50(_0x265a32,_0x388ddf){return _0x5c4e84(_0x388ddf- -0x3df,_0x265a32);}for(const _0x52f508 in _0x11d246){if(Object['prototype'][_0x11af50(-0x1cd,-0x1fd)]['call'](_0x11d246,_0x52f508)){const _0x1fc211=_0x11d246[_0x52f508],_0x287bba=_0x48b53e[_0x52f508];if(Array['isArray'](_0x1fc211)){_0x21bae1[_0x52f508]=_0x1fc211['slice']();continue;}if(_0x1fc211&&typeof _0x1fc211===_0x11af50(-0x1fc,-0x1d8)){_0x21bae1[_0x52f508]=deepMerge(_0x1fc211,_0x287bba||{});continue;}_0x1fc211!==undefined&&(_0x21bae1[_0x52f508]=_0x1fc211);}}return _0x21bae1;}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[_0x580342(0x34a,0x366)];class WindParticlesComputing{constructor(_0x4b6651,_0x2b60ad,_0x575ac7,_0x1dcb89,_0x1e1950){this[_0x2f05e8(0xe9,0x95)]=_0x4b6651,this[_0x4863b0(-0x5f,-0x94)]=_0x575ac7,this['viewerParameters']=_0x1dcb89,this[_0x4863b0(-0xe0,-0x69)]=_0x2b60ad,this['frameRate']=0x3c,this[_0x4863b0(-0x101,-0xba)]=0x1;function _0x4863b0(_0x431add,_0x3eb14c){return _0x580342(_0x431add,_0x3eb14c- -0x408);}const _0x62df8e={};_0x62df8e[_0x2f05e8(0xb8,0x4a)]=_0x1e1950;function _0x2f05e8(_0x520ba4,_0x24b742){return _0x580342(_0x520ba4,_0x24b742- -0x2e4);}_0x62df8e[_0x4863b0(-0xcc,-0x73)]=0x1,_0x62df8e['quietPeriod']=0x0,this['frameRateMonitor']=new FrameRateMonitor(_0x62df8e),this['initFrameRate'](),this['createWindTextures'](),this['createParticlesTextures'](),this['createComputingPrimitives']();}['initFrameRate'](){const _0x58aaa2=()=>{function _0x5afdf5(_0x5105fd,_0x11a326){return _0x5ea3(_0x5105fd-0x20b,_0x11a326);}function _0x2b2c89(_0x390739,_0x576c05){return _0x5ea3(_0x390739-0xb4,_0x576c05);}this['frameRateMonitor']['lastFramesPerSecond']>0x14&&(this['frameRate']=this['frameRateMonitor']['lastFramesPerSecond'],this[_0x2b2c89(0x1d9,0x1d2)]=0x3c/Math[_0x2b2c89(0x21d,0x1f2)](this['frameRate'],0x1));};_0x58aaa2();const _0x3efed1=setInterval(_0x58aaa2,0x3e8);function _0x33c5c1(_0x4c4aac,_0x34fb61){return _0x580342(_0x4c4aac,_0x34fb61- -0x129);}const _0x2e11e6=this['destroy']['bind'](this);this[_0x33c5c1(0x290,0x233)]=()=>{clearInterval(_0x3efed1),_0x2e11e6();};}[_0x5c4e84(0x1c9,0x1c9)](){const _0x393781={};_0x393781[_0x21dffa(0x1ba,0x1f2)]=TextureMinificationFilter$1[_0x38fda7(0x2dc,0x30d)],_0x393781[_0x21dffa(0x1f2,0x243)]=TextureMagnificationFilter$1['LINEAR'];const _0x48b2fc={'context':this[_0x38fda7(0x2d0,0x2f3)],'width':this['windData']['width'],'height':this[_0x38fda7(0x2c2,0x319)]['height'],'pixelFormat':PixelFormat$1[_0x38fda7(0x1f3,0x240)],'pixelDatatype':PixelDatatype$1['FLOAT'],'flipY':this[_0x21dffa(0x1be,0x185)]['flipY']??![],'sampler':new Sampler$1(_0x393781)};function _0x21dffa(_0x85e8a4,_0x419457){return _0x5c4e84(_0x85e8a4- -0x9a,_0x419457);}function _0x38fda7(_0x2b4edb,_0x11016b){return _0x5c4e84(_0x11016b-0x96,_0x2b4edb);}this[_0x38fda7(0x26c,0x2b1)]={'U':new Texture$1({..._0x48b2fc,'source':{'arrayBufferView':new Float32Array(this['windData']['u']['array'])}}),'V':new Texture$1({..._0x48b2fc,'source':{'arrayBufferView':new Float32Array(this['windData']['v']['array'])}})};}['createParticlesTextures'](){function _0x18af6e(_0x2f1af3,_0xffc085){return _0x5c4e84(_0xffc085-0xf6,_0x2f1af3);}const _0x553542={};_0x553542['minificationFilter']=TextureMinificationFilter$1[_0x384356(0x45e,0x46c)],_0x553542['magnificationFilter']=TextureMagnificationFilter$1[_0x384356(0x45e,0x439)];const _0xf95c08={'context':this[_0x18af6e(0x2ef,0x353)],'width':this[_0x18af6e(0x367,0x34e)]['particlesTextureSize'],'height':this[_0x384356(0x51c,0x52b)]['particlesTextureSize'],'pixelFormat':PixelFormat$1['RGBA'],'pixelDatatype':PixelDatatype$1['FLOAT'],'flipY':![],'source':{'arrayBufferView':new Float32Array(this[_0x18af6e(0x3c7,0x34e)]['particlesTextureSize']*this['options']['particlesTextureSize']*0x4)[_0x18af6e(0x2d0,0x283)](0x0)},'sampler':new Sampler$1(_0x553542)};function _0x384356(_0xf44597,_0x208531){return _0x580342(_0x208531,_0xf44597-0x1a8);}this['particlesTextures']={'previousParticlesPosition':new Texture$1(_0xf95c08),'currentParticlesPosition':new Texture$1(_0xf95c08),'nextParticlesPosition':new Texture$1(_0xf95c08),'postProcessingPosition':new Texture$1(_0xf95c08),'particlesSpeed':new Texture$1(_0xf95c08)};}['destroyParticlesTextures'](){Object['values'](this['particlesTextures'])['forEach'](_0x3be755=>_0x3be755['destroy']());}[_0x5c4e84(0x290,0x28a)](){function _0x2df44f(_0x50414e,_0x13bf46){return _0x580342(_0x50414e,_0x13bf46- -0x3e);}function _0x149fc4(_0xfdcaba,_0x171a6e){return _0x580342(_0xfdcaba,_0x171a6e-0x41);}this['primitives']={'calculateSpeed':new CustomPrimitive({'commandType':'Compute','uniformMap':{'U':()=>this['windTextures']['U'],'V':()=>this['windTextures']['V'],'uRange':()=>new Cartesian2$1(this['windData']['u']['min'],this[_0x2df44f(0x352,0x361)]['u']['max']),'vRange':()=>new Cartesian2$1(this[_0x149fc4(0x417,0x3e0)]['v'][_0x2df44f(0x35f,0x349)],this[_0x2df44f(0x389,0x361)]['v']['max']),'speedRange':()=>new Cartesian2$1(this['windData']['speed'][_0x2df44f(0x32f,0x349)],this[_0x2df44f(0x30e,0x361)][_0x2df44f(0x36a,0x306)]['max']),'currentParticlesPosition':()=>this[_0x2df44f(0x391,0x321)]['currentParticlesPosition'],'speedScaleFactor':()=>{function _0x18c417(_0x5d4da2,_0x5ad227){return _0x149fc4(_0x5ad227,_0x5d4da2- -0x165);}function _0x2472b3(_0x268ea9,_0x377c3e){return _0x149fc4(_0x377c3e,_0x268ea9- -0x202);}return(this[_0x2472b3(0x156,0xfd)]['pixelSize']+0x32)*this[_0x18c417(0x250,0x279)]['speedFactor'];},'frameRateAdjustment':()=>this[_0x2df44f(0x397,0x310)],'dimension':()=>new Cartesian2$1(this[_0x2df44f(0x3b5,0x361)]['width'],this[_0x2df44f(0x3d8,0x361)][_0x2df44f(0x279,0x2c6)]),'minimum':()=>new Cartesian2$1(this['windData'][_0x149fc4(0x3d2,0x3e2)]['west'],this['windData'][_0x2df44f(0x393,0x363)]['south']),'maximum':()=>new Cartesian2$1(this[_0x2df44f(0x302,0x361)]['bounds'][_0x2df44f(0x303,0x32f)],this[_0x149fc4(0x3a1,0x3e0)][_0x149fc4(0x3fa,0x3e2)]['north'])},'fragmentShaderSource':ShaderManager[_0x149fc4(0x39b,0x331)](),'outputTexture':this['particlesTextures']['particlesSpeed'],'preExecute':()=>{function _0x13c903(_0x23baa6,_0x43f13e){return _0x2df44f(_0x43f13e,_0x23baa6- -0x582);}const _0x384ad8=this['particlesTextures'][_0x13c903(-0x215,-0x1cd)];this['particlesTextures']['previousParticlesPosition']=this['particlesTextures']['currentParticlesPosition'];function _0xaf2be8(_0x5afbb2,_0x3afead){return _0x149fc4(_0x5afbb2,_0x3afead- -0x433);}this['particlesTextures']['currentParticlesPosition']=this[_0x13c903(-0x261,-0x2a4)][_0x13c903(-0x2c1,-0x2b0)],this['particlesTextures'][_0xaf2be8(-0x140,-0xf3)]=_0x384ad8,this['primitives'][_0x13c903(-0x23d,-0x247)]['commandToExecute']&&(this['primitives'][_0xaf2be8(-0x8,-0x6f)][_0x13c903(-0x273,-0x211)]['outputTexture']=this['particlesTextures'][_0x13c903(-0x2ed,-0x305)]);},'isDynamic':()=>this[_0x2df44f(0x355,0x336)]['dynamic']}),'updatePosition':new CustomPrimitive({'commandType':'Compute','uniformMap':{'currentParticlesPosition':()=>this['particlesTextures'][_0x149fc4(0x315,0x301)],'particlesSpeed':()=>this['particlesTextures']['particlesSpeed']},'fragmentShaderSource':ShaderManager['getUpdatePositionShader'](),'outputTexture':this['particlesTextures']['nextParticlesPosition'],'preExecute':()=>{function _0x6344ff(_0x3474e5,_0x548e7a){return _0x2df44f(_0x3474e5,_0x548e7a- -0x2a3);}function _0x104cdb(_0x3353f0,_0x560b45){return _0x149fc4(_0x560b45,_0x3353f0- -0x4e1);}this[_0x6344ff(0xe7,0x8d)]['updatePosition']['commandToExecute']&&(this['primitives']['updatePosition'][_0x6344ff(0x80,0x6c)][_0x104cdb(-0x1c1,-0x236)]=this[_0x6344ff(0xd1,0x7e)][_0x6344ff(0x11f,0xb6)]);},'isDynamic':()=>this[_0x2df44f(0x3af,0x336)]['dynamic']}),'postProcessingPosition':new CustomPrimitive({'commandType':'Compute','uniformMap':{'nextParticlesPosition':()=>this[_0x2df44f(0x36c,0x321)]['nextParticlesPosition'],'particlesSpeed':()=>this[_0x149fc4(0x425,0x3a0)]['particlesSpeed'],'lonRange':()=>this['viewerParameters']['lonRange'],'latRange':()=>this[_0x2df44f(0x2b1,0x2d9)][_0x149fc4(0x35e,0x36a)],'dataLonRange':()=>new Cartesian2$1(this[_0x2df44f(0x390,0x361)]['bounds'][_0x149fc4(0x382,0x2ff)],this['windData'][_0x149fc4(0x45b,0x3e2)][_0x149fc4(0x344,0x3ae)]),'dataLatRange':()=>new Cartesian2$1(this[_0x149fc4(0x38f,0x3e0)][_0x2df44f(0x352,0x363)][_0x2df44f(0x2c0,0x335)],this['windData'][_0x2df44f(0x3d4,0x363)][_0x2df44f(0x367,0x34e)]),'randomCoefficient':function(){function _0x164059(_0x291993,_0x1e9ccf){return _0x2df44f(_0x1e9ccf,_0x291993- -0x242);}return Math[_0x164059(0x5d,0xd0)]();},'dropRate':()=>this[_0x149fc4(0x374,0x3b5)][_0x149fc4(0x2c7,0x2fe)],'dropRateBump':()=>this[_0x149fc4(0x3dd,0x3b5)][_0x2df44f(0x319,0x2d8)],'useViewerBounds':()=>this['options']['useViewerBounds']},'fragmentShaderSource':ShaderManager['getPostProcessingPositionShader'](),'outputTexture':this['particlesTextures'][_0x149fc4(0x2c3,0x340)],'preExecute':()=>{function _0x122859(_0x16a5a0,_0xadf102){return _0x2df44f(_0x16a5a0,_0xadf102- -0x218);}function _0x850cc3(_0x501d6e,_0x199482){return _0x149fc4(_0x199482,_0x501d6e-0x11b);}this['primitives'][_0x850cc3(0x45b,0x497)]['commandToExecute']&&(this['primitives']['postProcessingPosition'][_0x122859(0xf7,0xf7)]['outputTexture']=this['particlesTextures']['postProcessingPosition']);},'isDynamic':()=>this['options'][_0x149fc4(0x3db,0x3a5)]})};}[_0x580342(0x2fc,0x36a)](){this['windTextures']['U'][_0x2008a6(-0x175,-0x10f)]();function _0x2008a6(_0x5b152b,_0xa23159){return _0x580342(_0xa23159,_0x5b152b- -0x4d1);}this[_0x34cb5f(-0x69,-0xf0)]['V']['destroy']();function _0x34cb5f(_0x6cbfd8,_0x5d4dc4){return _0x5c4e84(_0x6cbfd8- -0x284,_0x5d4dc4);}this['createWindTextures']();}['updateWindData'](_0x10bdb4){function _0x4ac491(_0x2028a8,_0x46d98c){return _0x5c4e84(_0x2028a8- -0x314,_0x46d98c);}this[_0x4ac491(-0x91,-0xd)]=_0x10bdb4,this['reCreateWindTextures']();}['updateOptions'](_0x3690b8){const _0x540569=_0x3690b8['flipY']!==undefined&&_0x3690b8['flipY']!==this['options'][_0x3b4e5a(0x31,0x35)];function _0x269d24(_0x15485b,_0x44ff55){return _0x5c4e84(_0x15485b-0x244,_0x44ff55);}this[_0x3b4e5a(0xa3,0xc8)]=deepMerge(_0x3690b8,this[_0x3b4e5a(0xf2,0xc8)]);function _0x3b4e5a(_0x44d082,_0x2a66c2){return _0x580342(_0x44d082,_0x2a66c2- -0x2ac);}_0x540569&&this['reCreateWindTextures']();}['processWindData'](_0x40f63a){const {array:_0x1f04d3}=_0x40f63a;function _0x45d636(_0x870f4,_0x60acc8){return _0x580342(_0x60acc8,_0x870f4- -0x3dd);}let {min:_0x3532c1,max:_0x5765a3}=_0x40f63a;const _0x4ed7a9=new Float32Array(_0x1f04d3['length']);_0x3532c1===undefined&&(console['warn']('min\x20is\x20undefined,\x20calculate\x20min'),_0x3532c1=Math['min'](..._0x1f04d3));_0x5765a3===undefined&&(console['warn'](_0x45d636(-0xc5,-0xee)),_0x5765a3=Math['max'](..._0x1f04d3));const _0x2a2bfd=Math[_0x45d636(-0x4b,-0x2a)](Math['abs'](_0x3532c1),Math[_0x48da68(0x2cc,0x251)](_0x5765a3));function _0x48da68(_0x54bf7a,_0x53f896){return _0x580342(_0x54bf7a,_0x53f896- -0xd3);}for(let _0x56aae6=0x0;_0x56aae6<_0x1f04d3[_0x45d636(-0xf9,-0x117)];_0x56aae6++){const _0x265d2a=_0x1f04d3[_0x56aae6]/_0x2a2bfd;_0x4ed7a9[_0x56aae6]=_0x265d2a;}return _0x4ed7a9;}['destroy'](){Object['values'](this['windTextures'])['forEach'](_0x838f36=>_0x838f36['destroy']()),Object['values'](this['particlesTextures'])['forEach'](_0x1f3996=>_0x1f3996[_0x1be11f(0x333,0x398)]());function _0x3de2bd(_0x1673bf,_0x207456){return _0x5c4e84(_0x207456- -0x26b,_0x1673bf);}Object[_0x3de2bd(-0xf4,-0xc8)](this[_0x1be11f(0x345,0x34f)])['forEach'](_0x1b052b=>_0x1b052b['destroy']());function _0x1be11f(_0x416c5a,_0x72b522){return _0x580342(_0x72b522,_0x416c5a- -0x29);}this['frameRateMonitor'][_0x3de2bd(-0x86,-0x2b)]();}}const {Appearance,BufferUsage,Cartesian2,Color:Color$1,ComponentDatatype,Framebuffer,Geometry,GeometryAttribute,GeometryAttributes,PixelDatatype,PixelFormat,PrimitiveType,Sampler,SceneMode,Texture,TextureMagnificationFilter,TextureMinificationFilter,TextureWrap,VertexArray}=mars3d__namespace[_0x5c4e84(0x24a,0x25b)];class WindParticlesRendering{constructor(_0x61684b,_0x36888a,_0x1e07f4,_0x4b0980){this[_0x5a8572(-0x289,-0x243)]=_0x61684b,this['options']=_0x36888a,this[_0x5a8572(-0x2eb,-0x336)]=_0x1e07f4,this['computing']=_0x4b0980;function _0x5a8572(_0x91c674,_0xdbffb6){return _0x580342(_0xdbffb6,_0x91c674- -0x602);}(typeof this['options'][_0x53a1dc(0x5ab,0x531)]!=='number'||this[_0x5a8572(-0x28e,-0x2c4)]['particlesTextureSize']<=0x0)&&(console[_0x53a1dc(0x549,0x4db)]('Invalid\x20particlesTextureSize.\x20Using\x20default\x20value\x20of\x20256.'),this['options'][_0x5a8572(-0x269,-0x287)]=0x100);this['colorTable']=this['createColorTableTexture']();function _0x53a1dc(_0x465cd8,_0x4f9730){return _0x5c4e84(_0x4f9730-0x2b4,_0x465cd8);}this[_0x53a1dc(0x4e7,0x4f6)]=this['createRenderingTextures'](),this['framebuffers']=this['createRenderingFramebuffers'](),this[_0x5a8572(-0x294,-0x2e9)]=this['createPrimitives']();}['createRenderingTextures'](){const _0x5d1bfb={};_0x5d1bfb['context']=this[_0x5bc7b8(0x52c,0x547)],_0x5d1bfb[_0x5bc7b8(0x4b3,0x46a)]=this['context']['drawingBufferWidth'],_0x5d1bfb[_0x276f15(0x262,0x2d8)]=this[_0x5bc7b8(0x52c,0x4d5)][_0x5bc7b8(0x565,0x4ed)],_0x5d1bfb['pixelFormat']=PixelFormat['RGBA'];function _0x276f15(_0x303f66,_0x24404d){return _0x580342(_0x24404d,_0x303f66- -0xa2);}function _0x5bc7b8(_0xcc30a3,_0x28198f){return _0x580342(_0x28198f,_0xcc30a3-0x1b3);}_0x5d1bfb['pixelDatatype']=PixelDatatype['UNSIGNED_BYTE'];const _0x37aaa2=_0x5d1bfb,_0x5341b5={};_0x5341b5['context']=this['context'],_0x5341b5[_0x276f15(0x25e,0x217)]=this['context']['drawingBufferWidth'],_0x5341b5['height']=this[_0x276f15(0x2d7,0x285)][_0x276f15(0x310,0x355)],_0x5341b5[_0x5bc7b8(0x4b9,0x488)]=PixelFormat['DEPTH_COMPONENT'],_0x5341b5['pixelDatatype']=PixelDatatype['UNSIGNED_INT'];const _0x3ab6bb=_0x5341b5;return{'segmentsColor':new Texture(_0x37aaa2),'segmentsDepth':new Texture(_0x3ab6bb)};}['createRenderingFramebuffers'](){const _0x4de42e={};function _0x5055c4(_0x351883,_0x574709){return _0x580342(_0x351883,_0x574709-0x70);}function _0x46f53e(_0x15c2f3,_0x3c8aca){return _0x580342(_0x3c8aca,_0x15c2f3- -0x49f);}return _0x4de42e[_0x5055c4(0x43c,0x3e9)]=this[_0x5055c4(0x469,0x3e9)],_0x4de42e['colorTextures']=[this[_0x5055c4(0x3c3,0x3ce)][_0x46f53e(-0x167,-0x161)]],_0x4de42e['depthTexture']=this['textures']['segmentsDepth'],{'segments':new Framebuffer(_0x4de42e)};}['destoryRenderingFramebuffers'](){Object['values'](this['framebuffers'])['forEach'](_0x36a520=>{_0x36a520['destroy']();});}['createColorTableTexture'](){const _0x41afbd=new Float32Array(this[_0x39fa3d(0x350,0x37a)][_0x3d9c45(0x2ed,0x33e)][_0x39fa3d(0x33f,0x349)](_0x189102=>{const _0x2613dc=Color$1[_0x25eb8e(0x390,0x3f6)](_0x189102);function _0x25eb8e(_0x33f5dd,_0x28c27c){return _0x3d9c45(_0x33f5dd,_0x28c27c-0x94);}return[_0x2613dc['red'],_0x2613dc['green'],_0x2613dc['blue'],_0x2613dc['alpha']];})),_0x54cc3e={};_0x54cc3e['minificationFilter']=TextureMinificationFilter[_0x39fa3d(0x36f,0x3cd)];function _0x3d9c45(_0xdf23f7,_0x43d305){return _0x5c4e84(_0x43d305-0x183,_0xdf23f7);}function _0x39fa3d(_0x355f27,_0x5171ca){return _0x580342(_0x5171ca,_0x355f27- -0x24);}return _0x54cc3e['magnificationFilter']=TextureMagnificationFilter[_0x3d9c45(0x47a,0x3fa)],_0x54cc3e['wrapS']=TextureWrap['CLAMP_TO_EDGE'],_0x54cc3e[_0x3d9c45(0x2d7,0x339)]=TextureWrap['CLAMP_TO_EDGE'],new Texture({'context':this[_0x3d9c45(0x3df,0x3e0)],'width':this[_0x39fa3d(0x350,0x36d)]['colors'][_0x39fa3d(0x2c0,0x31c)],'height':0x1,'pixelFormat':PixelFormat['RGBA'],'pixelDatatype':PixelDatatype['FLOAT'],'sampler':new Sampler(_0x54cc3e),'source':{'width':this[_0x39fa3d(0x350,0x35f)][_0x39fa3d(0x2b3,0x2c3)][_0x39fa3d(0x2c0,0x271)],'height':0x1,'arrayBufferView':_0x41afbd}});}['createSegmentsGeometry'](){const _0x4056f3=0x4,_0xecce6e=this[_0x5783c8(0x125,0xc2)]['particlesTextureSize'];let _0x4f95e4=[];for(let _0x3399ea=0x0;_0x3399ea<_0xecce6e;_0x3399ea++){for(let _0x5846eb=0x0;_0x5846eb<_0xecce6e;_0x5846eb++){for(let _0x4952b2=0x0;_0x4952b2<_0x4056f3;_0x4952b2++){_0x4f95e4['push'](_0x3399ea/_0xecce6e),_0x4f95e4[_0x3de1de(-0x27c,-0x2ec)](_0x5846eb/_0xecce6e);}}}_0x4f95e4=new Float32Array(_0x4f95e4);const _0x3e0a52=this['options']['particlesTextureSize']**0x2;let _0x3a72c8=[];for(let _0x2e93bb=0x0;_0x2e93bb<_0x3e0a52;_0x2e93bb++){_0x3a72c8['push'](-0x1,-0x1,0x0,-0x1,0x1,0x0,0x1,-0x1,0x0,0x1,0x1,0x0);}_0x3a72c8=new Float32Array(_0x3a72c8);let _0x1c225f=[];for(let _0x4456d3=0x0,_0x1b089=0x0;_0x4456d3<_0x3e0a52;_0x4456d3++){_0x1c225f['push'](_0x1b089+0x0,_0x1b089+0x1,_0x1b089+0x2,_0x1b089+0x2,_0x1b089+0x1,_0x1b089+0x3),_0x1b089+=_0x4056f3;}_0x1c225f=new Uint32Array(_0x1c225f);const _0x2af791={};_0x2af791['componentDatatype']=ComponentDatatype[_0x5783c8(0x26,-0x8)],_0x2af791['componentsPerAttribute']=0x2;function _0x5783c8(_0xeb2175,_0x427d7d){return _0x5c4e84(_0x427d7d- -0x196,_0xeb2175);}_0x2af791['values']=_0x4f95e4;const _0x11f396={};function _0x3de1de(_0x28764e,_0x5aea39){return _0x5c4e84(_0x28764e- -0x46c,_0x5aea39);}_0x11f396['componentDatatype']=ComponentDatatype[_0x3de1de(-0x2de,-0x2a3)],_0x11f396['componentsPerAttribute']=0x3,_0x11f396['values']=_0x3a72c8;const _0x83c814=new Geometry({'attributes':new GeometryAttributes({'st':new GeometryAttribute(_0x2af791),'normal':new GeometryAttribute(_0x11f396)}),'indices':_0x1c225f});return _0x83c814;}['createRawRenderState'](_0xef1fc2){const _0x5ee91e={'viewport':undefined,'depthTest':undefined,'depthMask':undefined,'blending':undefined,..._0xef1fc2};return Appearance['getDefaultRenderState'](!![],![],_0x5ee91e);}[_0x5c4e84(0x225,0x27f)](){const _0x3812ab={};_0x3812ab['st']=0x0,_0x3812ab[_0x40fd1c(-0x1c3,-0x1be)]=0x1;const _0x20e033={};_0x20e033['enabled']=!![];function _0x40fd1c(_0x134f99,_0x5656b6){return _0x5c4e84(_0x5656b6- -0x38a,_0x134f99);}const _0x2d5863={};_0x2d5863['enabled']=!![],_0x2d5863['blendEquation']=WebGLRenderingContext[_0x40fd1c(-0x81,-0xf7)],_0x2d5863['blendFuncSource']=WebGLRenderingContext['SRC_ALPHA'],_0x2d5863[_0x40fd1c(-0xe8,-0xfd)]=WebGLRenderingContext['ONE_MINUS_SRC_ALPHA'];const _0x102ce1={};function _0x16f7e3(_0x149bc5,_0x29c2b7){return _0x580342(_0x29c2b7,_0x149bc5-0x3d);}_0x102ce1[_0x40fd1c(-0x17a,-0x1e3)]=undefined,_0x102ce1[_0x16f7e3(0x37b,0x3a2)]=_0x20e033,_0x102ce1[_0x16f7e3(0x35d,0x380)]=!![],_0x102ce1['blending']=_0x2d5863;const _0x5dfa27=new CustomPrimitive({'commandType':'Draw','attributeLocations':_0x3812ab,'geometry':this['createSegmentsGeometry'](),'primitiveType':PrimitiveType['TRIANGLES'],'uniformMap':{'previousParticlesPosition':()=>this[_0x16f7e3(0x331,0x39c)][_0x16f7e3(0x39c,0x3b7)][_0x16f7e3(0x3e8,0x470)],'currentParticlesPosition':()=>this[_0x40fd1c(-0x13e,-0x1b2)][_0x40fd1c(-0xdb,-0x147)][_0x16f7e3(0x2fd,0x31c)],'postProcessingPosition':()=>this['computing']['particlesTextures']['postProcessingPosition'],'particlesSpeed':()=>this['computing']['particlesTextures'][_0x16f7e3(0x310,0x32f)],'frameRateAdjustment':()=>this['computing']['frameRateAdjustment'],'colorTable':()=>this[_0x16f7e3(0x328,0x334)],'domain':()=>{var _0x4909d4,_0x2fbb81;function _0x3dd07d(_0xbd78cb,_0x15b74b){return _0x40fd1c(_0xbd78cb,_0x15b74b-0x109);}function _0x5e2054(_0x5dbd8b,_0x2d792e){return _0x16f7e3(_0x2d792e- -0x58d,_0x5dbd8b);}const _0x541618=new Cartesian2(((_0x4909d4=this['options']['domain'])===null||_0x4909d4===void 0x0?void 0x0:_0x4909d4['min'])??this['computing']['windData'][_0x3dd07d(-0xc6,-0x59)]['min'],((_0x2fbb81=this[_0x5e2054(-0x18d,-0x1dc)]['domain'])===null||_0x2fbb81===void 0x0?void 0x0:_0x2fbb81['max'])??this['computing'][_0x5e2054(-0x227,-0x1b1)][_0x3dd07d(-0x2f,-0x59)]['max']);return _0x541618;},'displayRange':()=>{function _0x412464(_0xd3f8d,_0x51c7cd){return _0x40fd1c(_0xd3f8d,_0x51c7cd- -0x147);}function _0x442c3c(_0x3749a6,_0x4212e6){return _0x16f7e3(_0x4212e6- -0x2f5,_0x3749a6);}var _0x390457,_0xc61530;const _0x3e1ea6=new Cartesian2(((_0x390457=this['options']['displayRange'])===null||_0x390457===void 0x0?void 0x0:_0x390457[_0x442c3c(0x7d,0xcf)])??this[_0x412464(-0x2a5,-0x2f9)]['windData'][_0x412464(-0x29d,-0x2a9)]['min'],((_0xc61530=this[_0x412464(-0x22a,-0x279)][_0x412464(-0x269,-0x2b2)])===null||_0xc61530===void 0x0?void 0x0:_0xc61530[_0x442c3c(0xd2,0xda)])??this[_0x442c3c(-0xa,0x3c)][_0x412464(-0x2b5,-0x24e)]['speed'][_0x412464(-0x1d9,-0x25b)]);return _0x3e1ea6;},'particleHeight':()=>this['options'][_0x16f7e3(0x379,0x312)]||0x0,'aspect':()=>this['context']['drawingBufferWidth']/this[_0x16f7e3(0x3b6,0x3f2)]['drawingBufferHeight'],'pixelSize':()=>this['viewerParameters']['pixelSize'],'lineWidth':()=>{const _0x27edc8={};function _0x21754b(_0x5f04c6,_0xd8ff41){return _0x40fd1c(_0x5f04c6,_0xd8ff41-0x4a9);}_0x27edc8['min']=0x1,_0x27edc8[_0x2869fe(0xb4,0x43)]=0x2;function _0x2869fe(_0x362238,_0xaefead){return _0x16f7e3(_0x362238- -0x31b,_0xaefead);}const _0x30a786=this[_0x2869fe(0x96,0x95)]['lineWidth']||_0x27edc8;return new Cartesian2(_0x30a786[_0x2869fe(0xa9,0x11c)],_0x30a786['max']);},'lineLength':()=>{const _0xcd1b84={};_0xcd1b84['min']=0x14,_0xcd1b84[_0x993420(-0x2c9,-0x257)]=0x64;function _0x993420(_0x5ddbb6,_0xc33529){return _0x16f7e3(_0xc33529- -0x626,_0x5ddbb6);}function _0x3379e8(_0x65388a,_0x4c946b){return _0x40fd1c(_0x4c946b,_0x65388a-0x61a);}const _0x4b108a=this['options']['lineLength']||_0xcd1b84;return new Cartesian2(_0x4b108a['min'],_0x4b108a[_0x993420(-0x289,-0x257)]);},'is3D':()=>this[_0x16f7e3(0x354,0x2d6)]['sceneMode']===SceneMode['SCENE3D'],'segmentsDepthTexture':()=>this['textures']['segmentsDepth']},'vertexShaderSource':ShaderManager['getSegmentDrawVertexShader'](),'fragmentShaderSource':ShaderManager['getSegmentDrawFragmentShader'](),'rawRenderState':this['createRawRenderState'](_0x102ce1)}),_0x2392f6={};return _0x2392f6['segments']=_0x5dfa27,_0x2392f6;}[_0x580342(0x373,0x38b)](){const _0x310e7f=this['createSegmentsGeometry']();this[_0x480ac9(0x5c,0x36)]['segments']['geometry']=_0x310e7f;const _0x583c39={};function _0x51671d(_0x38408e,_0x3a31a1){return _0x5c4e84(_0x3a31a1-0x1f8,_0x38408e);}_0x583c39['context']=this[_0x480ac9(0xad,0x41)],_0x583c39['geometry']=_0x310e7f,_0x583c39['attributeLocations']=this['primitives']['segments'][_0x480ac9(0x20,0x62)],_0x583c39['bufferUsage']=BufferUsage[_0x51671d(0x426,0x3b2)];function _0x480ac9(_0x70a382,_0x7269c2){return _0x5c4e84(_0x7269c2- -0x21c,_0x70a382);}const _0x8c5103=VertexArray[_0x480ac9(-0x99,-0x3b)](_0x583c39);this['primitives'][_0x51671d(0x3a6,0x3f6)]['commandToExecute']&&(this[_0x51671d(0x3e0,0x44a)]['segments']['commandToExecute'][_0x480ac9(-0x3d,-0x26)]=_0x8c5103);}['onColorTableChange'](){this['colorTable']['destroy']();function _0x5e5caf(_0x4c3634,_0x1e49da){return _0x580342(_0x4c3634,_0x1e49da- -0x3db);}this[_0x5e5caf(-0xcc,-0xf0)]=this['createColorTableTexture']();}['updateOptions'](_0x42bfa8){const _0x3a9c63=_0x42bfa8['colors']&&JSON[_0x31b93e(0x3e6,0x430)](_0x42bfa8[_0x31b93e(0x3f1,0x3a8)])!==JSON['stringify'](this['options']['colors']);function _0x31b93e(_0x156f17,_0xff116a){return _0x580342(_0xff116a,_0x156f17-0x11a);}function _0x5ed4a9(_0x1c25f2,_0x11043e){return _0x5c4e84(_0x1c25f2-0x58,_0x11043e);}this[_0x5ed4a9(0x2b0,0x293)]=deepMerge(_0x42bfa8,this['options']),_0x3a9c63&&this['onColorTableChange']();}[_0x580342(0x369,0x35c)](){Object['values'](this[_0xd895c8(0x19c,0x134)])['forEach'](_0x3ca063=>{_0x3ca063['destroy']();}),Object[_0xd895c8(0x16c,0x12e)](this['primitives'])['forEach'](_0x21095a=>{_0x21095a['destroy']();});function _0xbd1ae2(_0x3dc6b9,_0x5ca4a0){return _0x5c4e84(_0x3dc6b9- -0x1a,_0x5ca4a0);}function _0xd895c8(_0x5077c5,_0x202319){return _0x580342(_0x5077c5,_0x202319- -0x191);}this['colorTable']['destroy']();}}const {ClearCommand,Color,Pass}=mars3d__namespace[_0x580342(0x346,0x366)];class WindParticleSystem{constructor(_0x3ce626,_0x530167,_0x227218,_0x14d836,_0x535a9a){function _0x2dd058(_0x18de82,_0x4341b2){return _0x5c4e84(_0x4341b2- -0x5b,_0x18de82);}this['context']=_0x3ce626,this['options']=_0x227218;function _0x21e40d(_0x198648,_0x59a8af){return _0x580342(_0x59a8af,_0x198648- -0xe2);}this['viewerParameters']=_0x14d836,this[_0x2dd058(0x115,0x17d)]=new WindParticlesComputing(_0x3ce626,_0x530167,_0x227218,_0x14d836,_0x535a9a),this['rendering']=new WindParticlesRendering(_0x3ce626,_0x227218,_0x14d836,this[_0x21e40d(0x212,0x257)]),this['clearFramebuffers']();}['getPrimitives'](){function _0x4c4329(_0x49b1a4,_0x5b7e69){return _0x580342(_0x49b1a4,_0x5b7e69- -0x33e);}function _0x33e2a7(_0x5e3674,_0x449590){return _0x5c4e84(_0x449590- -0x8f,_0x5e3674);}const _0x30aed4=[this['computing'][_0x4c4329(0xa0,0x30)]['calculateSpeed'],this[_0x33e2a7(0x1af,0x149)][_0x33e2a7(0x1f5,0x1c3)][_0x4c4329(0x95,0x2a)],this[_0x33e2a7(0x138,0x149)][_0x4c4329(0x25,0x30)][_0x4c4329(-0x93,-0x3f)],this[_0x4c4329(-0x35,0x43)]['primitives'][_0x33e2a7(0x13f,0x16f)]];return _0x30aed4;}['clearFramebuffers'](){function _0x21d974(_0x1c81e3,_0xe4d9e1){return _0x580342(_0x1c81e3,_0xe4d9e1- -0x16);}const _0x4a3d96=new ClearCommand({'color':new Color(0x0,0x0,0x0,0x0),'depth':0x1,'framebuffer':undefined,'pass':Pass['OPAQUE']});Object['keys'](this[_0x21d974(0x3c0,0x36b)]['framebuffers'])['forEach'](_0x127f8b=>{function _0xf2a8c8(_0x3cc6da,_0x1d4b62){return _0x21d974(_0x1d4b62,_0x3cc6da- -0x102);}_0x4a3d96[_0xf2a8c8(0x23e,0x1f0)]=this[_0xf2a8c8(0x269,0x255)][_0xf2a8c8(0x1ad,0x1eb)][_0x127f8b];function _0x52a5f5(_0x5a2b47,_0x1270dc){return _0x21d974(_0x1270dc,_0x5a2b47- -0x4d);}_0x4a3d96['execute'](this[_0x52a5f5(0x316,0x2fd)]);});}[_0x580342(0x397,0x39c)](_0x5b99fe){let _0x5c3522=![];_0x5b99fe['particlesTextureSize']&&this['options']['particlesTextureSize']!==_0x5b99fe[_0x518fb9(0x149,0x18b)]&&(_0x5c3522=!![]);function _0x518fb9(_0x3046cf,_0xc55fd9){return _0x580342(_0x3046cf,_0xc55fd9- -0x20e);}function _0x1bb449(_0x4250e1,_0x44881c){return _0x5c4e84(_0x4250e1- -0x2f7,_0x44881c);}const _0x359a5f=deepMerge(_0x5b99fe,this[_0x1bb449(-0x9f,-0x108)]);if(_0x359a5f['particlesTextureSize']<0x1)throw new Error('particlesTextureSize\x20must\x20be\x20greater\x20than\x200');this['options']=_0x359a5f,this[_0x1bb449(-0x92,-0x40)][_0x518fb9(0x11e,0x15d)](_0x5b99fe),this['computing'][_0x518fb9(0xeb,0x15d)](_0x5b99fe),_0x5c3522&&(this[_0x1bb449(-0x11f,-0xa3)]['destroyParticlesTextures'](),this[_0x518fb9(0xbc,0xe6)]['createParticlesTextures'](),this['rendering'][_0x518fb9(0x17f,0x17d)]());}['applyViewerParameters'](_0x5e01e3){this['viewerParameters']=_0x5e01e3;function _0x4dd93a(_0x352070,_0xe560e3){return _0x580342(_0xe560e3,_0x352070-0x40);}function _0x2e02eb(_0x687aee,_0x30b02e){return _0x580342(_0x687aee,_0x30b02e- -0x1d8);}this[_0x2e02eb(0x176,0x11c)]['viewerParameters']=_0x5e01e3,this['rendering'][_0x4dd93a(0x357,0x331)]=_0x5e01e3;}[_0x5c4e84(0x240,0x2bb)](){function _0x5e56ee(_0x1bbcd3,_0x394ffb){return _0x580342(_0x1bbcd3,_0x394ffb- -0x3c3);}this['computing'][_0x5e56ee(0x1e,-0x67)](),this['rendering']['destroy']();}}const Cesium$1=mars3d__namespace['Cesium'],BaseLayer$1=mars3d__namespace[_0x580342(0x31b,0x352)]['BaseLayer'],_0x561378={};function _0x3488(){const _0x1f07f4=['LayerUtil','NEAREST','Compute','mouse_move','steps','setData','isInExtent','1AamVKi','dropRate','west','values','currentParticlesPosition','remove','resize','viewport','cols','framebuffers','RED','pointerEvents','particlesNumber','ymin','bindEvent','canvas','stringify','getDataAtLonLat','tlat','stroke','particles','mouseDown','wrapT','particlesSpeed','MAX_VALUE','shaderProgram','STATIC_DRAW','colors','getUVByXY','mouseUp','Math','visibility','worker','random','4565176yQNmUF','outputTexture','_calcUV','flipY','getContext','_createCanvas','length','createWindTextures','strokeStyle','_randomParticle','normal','WindUtil','owner','colorTable','pickEllipsoid','updateViewerParameters','__proto__','sources','getCalculateSpeedShader','_mountedHook','addEventListener','umax','computing','_setOptionsHook','_animateFrame','unbindEvent','3686690dXoTNH','3036164kMLhll','setGeometry','fromCssColorString','requestAnimationFrame','fromGeometry','hasOwnProperty','postProcessingPosition','width','sqrt','refreshTimer','getPrimitives','height','container','pixelFormat','now','globe','_map','ymax','Cartesian2','push','changed','log','xmin','rows','latitude','vertexArray','getRandomLatLng','PointTrans','lonRange','dropRateBump','viewerParameters','max\x20is\x20undefined,\x20calculate\x20max','CanvasWindField','segments','CanvasWindLayer','xmax','initWorker','speedRate','left','depthMask','pass','vdata','object','abs','particleSystem','ellipsoid','geometry','redraw','latRange','wheel','mouseHidden','_calc_speedRate','_onMouseMoveEvent','scene','_onMouseDownEvent','lighter','sceneMode','lineTo','#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','canvasContext','frameTime','preExecute','windTextures','segmentsColor','tlng','4409270rEIGqt','displayRange','fixedHeight','setDate','depthTest','pointer-events','age','createPrimitives','umin','error','speed','camera','willReadFrequently','array','_canvasParticles','default','postMessage','maxAge','grid','commandToExecute','frameRateAdjustment','udata','toGridXY','_removedHook','layer','_drawLines','clientWidth','clearCommand','framebuffer','0px','uniformMap','__esModule','modelMatrix','zIndex','destroy','bind','textures','particlesTextures','getSegmentDrawVertexShader','createCommand','off','flatMap','dynamic','3HqVXeV','Cesium','clientHeight','updatePosition','toDegrees','reCreateWindTextures','updateOptions','style','east','primitives','6057624tvDjJp','minificationFilter','cartesianToCartographic','_colorRamp','south','options','_tomap','forEach','28285848nGcEoJ','_addedHook','context','keys','rgb(206,255,255)','primitiveType','persists','canvasWidth','morphComplete','none','rendering','original','calculateSpeed','floor','mouse_down','_onMapWhellEvent','min','data','getParticles','SCENE3D','onParticlesTextureSizeChange','north','lineLength','rawRenderState','onmessage','BaseLayer','autoClear','max','LINEAR','commandType','samplingWindow','lat','nextParticlesPosition','Log','particlesTextureSize','attributeLocations','update','changeOptions','windField','talt','windData','EventType','bounds','mode','lng','defineProperty','mars3d-wind插件注册成功\x20\x20\x20\x20\x20版本:','_canrefresh','MIN_VALUE','magnificationFilter','blendFuncDestination','lineWidth','previousParticlesPosition','createComputingPrimitives','bufferUsage','_pointerEvents','FUNC_ADD','2803288URwxjC','processWindData','drawingBufferHeight','EllipsoidalOccluder','DomUtil','3.11.3','moveTo','isDynamic','fill','FLOAT','fromCache','\x20\x20\x20\x20编译日期:','_updateIng','type','clear','OPAQUE','fragmentShaderSource','beginPath','interpolated','show'];_0x3488=function(){return _0x1f07f4;};return _0x3488();}_0x561378['min']=0x1,_0x561378['max']=0x2;function _0x5c4e84(_0x45ab6c,_0x366b0b){return _0x5ea3(_0x45ab6c-0x10d,_0x366b0b);}const _0x40b1a0={};_0x40b1a0['min']=0x14,_0x40b1a0[_0x5c4e84(0x276,0x2de)]=0x64;const _0x4c11fd={};_0x4c11fd['particlesTextureSize']=0x64,_0x4c11fd['fixedHeight']=0x0,_0x4c11fd[_0x5c4e84(0x28e,0x230)]=_0x561378,_0x4c11fd[_0x5c4e84(0x271,0x2e7)]=_0x40b1a0,_0x4c11fd['speedFactor']=0x1,_0x4c11fd[_0x5c4e84(0x1a1,0x1d9)]=0.003,_0x4c11fd[_0x5c4e84(0x1fa,0x17d)]=0.001,_0x4c11fd['colors']=[_0x5c4e84(0x25f,0x2c9)];function _0x580342(_0x4346f1,_0x418a65){return _0x5ea3(_0x418a65-0x229,_0x4346f1);}_0x4c11fd['flipY']=![],_0x4c11fd[_0x5c4e84(0x248,0x285)]=!![];const DEF_OPTIONS=_0x4c11fd;class WindLayer extends BaseLayer$1{constructor(_0x2efe27={}){function _0x170c1c(_0x2e0d1e,_0x12e187){return _0x580342(_0x12e187,_0x2e0d1e- -0x22b);}_0x2efe27={...DEF_OPTIONS,..._0x2efe27},super(_0x2efe27),this[_0x170c1c(0xca,0x5e)](_0x2efe27,_0x2efe27);}get['layer'](){function _0x50ea31(_0x2dc17b,_0x12b27a){return _0x580342(_0x2dc17b,_0x12b27a- -0x241);}return this[_0x50ea31(0x116,0x12d)];}get['data'](){return this['options']['data'];}set['data'](_0x15f34c){this['options']['data']=_0x15f34c,this['setData'](_0x15f34c);}get['colors'](){function _0x451fb2(_0x42c4a9,_0x5be380){return _0x5c4e84(_0x42c4a9- -0x1d0,_0x5be380);}return this['options'][_0x451fb2(-0x15,0x38)];}set['colors'](_0x32d9f8){function _0x52a0a5(_0x5301cd,_0x43fcdd){return _0x580342(_0x5301cd,_0x43fcdd- -0x3d6);}this['options']['colors']=_0x32d9f8;const _0x49148b={};_0x49148b[_0x52a0a5(-0x114,-0xff)]=_0x32d9f8,this['_setOptionsHook'](this['options'],_0x49148b);}['_showHook'](_0x2c1fa2){_0x2c1fa2?this['_addedHook']():this['_removedHook']();}[_0x580342(0x2d8,0x2f1)](){}['_addedHook'](){this[_0x3ed197(0x49d,0x43e)]=this[_0x3ed197(0x478,0x4d1)][_0x3ed197(0x49d,0x514)],this[_0xb819bb(0x4eb,0x4dd)]=this['_map'][_0x3ed197(0x4b4,0x47e)];this['options'][_0x3ed197(0x4f7,0x493)]&&this['setData'](this['options'][_0x3ed197(0x4f7,0x50d)]);if(!this['windData']||!this['show'])return;this['viewerParameters']={'lonRange':new Cesium$1['Cartesian2'](-0xb4,0xb4),'latRange':new Cesium$1[(_0x3ed197(0x47a,0x4b4))](-0x5a,0x5a),'pixelSize':0x3e8,'sceneMode':this['scene'][_0x3ed197(0x511,0x49e)]},this['updateViewerParameters'](),this['particleSystem']=new WindParticleSystem(this['scene'][_0xb819bb(0x494,0x511)],this['windData'],this[_0x3ed197(0x4e3,0x45e)],this['viewerParameters'],this[_0x3ed197(0x49d,0x439)]),this['primitives']=this[_0x3ed197(0x494,0x411)][_0x3ed197(0x472,0x411)](),this['primitives'][_0xb819bb(0x4fe,0x50e)](_0x137ad0=>{function _0x3763c8(_0x3e577c,_0x2ef80c){return _0xb819bb(_0x2ef80c,_0x3e577c- -0x10d);}this['scene'][_0x3763c8(0x3f9,0x3af)]['add'](_0x137ad0);}),this['camera']['percentageChanged']=0.01,this['camera'][_0xb819bb(0x42d,0x4a5)]['addEventListener'](this['updateViewerParameters'][_0xb819bb(0x54e,0x4f5)](this));function _0x3ed197(_0x2bd08f,_0x2330fb){return _0x580342(_0x2330fb,_0x2bd08f-0x16f);}function _0xb819bb(_0x3dc20d,_0x3767d2){return _0x580342(_0x3dc20d,_0x3767d2-0x198);}this[_0x3ed197(0x49d,0x4e3)]['morphComplete']['addEventListener'](this['updateViewerParameters'][_0xb819bb(0x48f,0x4f5)](this)),window[_0xb819bb(0x508,0x48a)]('resize',this['updateViewerParameters']['bind'](this));}['_removedHook'](){this['camera'][_0x59adac(0x4d7,0x452)]['removeEventListener'](this['updateViewerParameters']['bind'](this)),this[_0x5353bd(0x4e3,0x4e7)][_0x5353bd(0x534,0x4ef)]['removeEventListener'](this['updateViewerParameters'][_0x5353bd(0x512,0x548)](this)),window['removeEventListener']('resize',this[_0x5353bd(0x4a2,0x449)][_0x5353bd(0x512,0x571)](this));this[_0x59adac(0x50a,0x4b3)]&&(this['primitives'][_0x59adac(0x461,0x4bb)](_0x219df=>{function _0x120986(_0x562a2c,_0x4f0203){return _0x5353bd(_0x4f0203- -0x23c,_0x562a2c);}function _0x394129(_0x1ba775,_0x25d57c){return _0x59adac(_0x1ba775,_0x25d57c- -0x6c6);}this[_0x120986(0x24f,0x2a7)]['primitives'][_0x394129(-0x279,-0x2c0)](_0x219df);}),delete this['primitives']);function _0x59adac(_0x300f23,_0x1e6a74){return _0x5c4e84(_0x1e6a74-0x261,_0x300f23);}function _0x5353bd(_0x2a57fb,_0x585f47){return _0x580342(_0x585f47,_0x2a57fb-0x1b5);}this['particleSystem']&&(this['particleSystem'][_0x5353bd(0x511,0x595)](),delete this['particleSystem']);}[_0x5c4e84(0x19e,0x16a)](_0x394c6c,_0x85038a){function _0x522904(_0x1b4d04,_0x25bfcc){return _0x580342(_0x1b4d04,_0x25bfcc- -0x4c7);}this['windData']=this[_0x5c3c9f(0x484,0x418)](_0x394c6c);if(_0x85038a){this[_0x522904(-0x14d,-0x176)](),this['_addedHook']();return;}function _0x5c3c9f(_0xe2856f,_0x3216e5){return _0x5c4e84(_0x3216e5-0x183,_0xe2856f);}this[_0x5c3c9f(0x390,0x38c)]?(this[_0x5c3c9f(0x328,0x38c)]['computing']['updateWindData'](this[_0x5c3c9f(0x3e4,0x406)]),this['scene']['requestRender']()):this['_addedHook']();}['_setOptionsHook'](_0x4ac116,_0xbcf3cf){function _0x10d193(_0x103354,_0x4b4d79){return _0x580342(_0x4b4d79,_0x103354- -0x5e9);}function _0x2c08fb(_0x27a9cc,_0x5eb8eb){return _0x5c4e84(_0x27a9cc- -0x46d,_0x5eb8eb);}this[_0x10d193(-0x2c4,-0x268)]&&(this[_0x2c08fb(-0x264,-0x290)][_0x2c08fb(-0x1ed,-0x262)](_0xbcf3cf),this['scene']['requestRender']());}['processWindData'](_0x5c175b){function _0x3b0af3(_0x51d2ec,_0x2d83ba){return _0x5c4e84(_0x51d2ec- -0x295,_0x2d83ba);}var _0x47c8c3,_0x3bd099;const _0x4f04ca={..._0x5c175b},_0x2102f2=_0x4f04ca;!_0x2102f2['height']&&_0x2102f2['rows']&&(_0x2102f2['height']=_0x2102f2[_0x17cc98(0x2c0,0x2ac)]);!_0x2102f2['width']&&_0x2102f2['cols']&&(_0x2102f2['width']=_0x2102f2[_0x17cc98(0x274,0x217)]);!_0x2102f2[_0x3b0af3(-0x10,-0x55)]&&(_0x2102f2[_0x3b0af3(-0x10,-0x2b)]={'west':_0x2102f2[_0x17cc98(0x2bf,0x2d7)],'south':_0x2102f2['ymin'],'east':_0x2102f2[_0x17cc98(0x2cc,0x332)],'north':_0x2102f2['ymax']});function _0x17cc98(_0x462020,_0x23c2d3){return _0x5c4e84(_0x462020-0xcc,_0x23c2d3);}if(!_0x2102f2['u']){const _0x409853={};_0x409853[_0x17cc98(0x2f7,0x27c)]=_0x5c175b[_0x3b0af3(-0x62,-0x7c)],_0x409853[_0x17cc98(0x337,0x2ca)]=_0x5c175b[_0x3b0af3(-0x6f,0x18)],_0x409853['max']=_0x5c175b[_0x17cc98(0x2a3,0x268)],_0x2102f2['u']=_0x409853;}if(!_0x2102f2['v']){const _0x4de0b0={};_0x4de0b0[_0x17cc98(0x2f7,0x2da)]=_0x5c175b[_0x17cc98(0x2d2,0x29c)],_0x4de0b0['min']=_0x5c175b['vmin'],_0x4de0b0['max']=_0x5c175b['vmax'],_0x2102f2['v']=_0x4de0b0;}if(((_0x47c8c3=_0x2102f2[_0x3b0af3(-0x6d,-0x1b)])===null||_0x47c8c3===void 0x0?void 0x0:_0x47c8c3[_0x3b0af3(-0x2a,-0x8a)])===undefined||((_0x3bd099=_0x2102f2['speed'])===null||_0x3bd099===void 0x0?void 0x0:_0x3bd099['max'])===undefined||_0x2102f2['speed'][_0x17cc98(0x2f7,0x356)]===undefined){const _0x3f1156={'array':new Float32Array(_0x2102f2['u'][_0x17cc98(0x2f7,0x319)]['length']),'min':Number[_0x17cc98(0x284,0x265)],'max':Number[_0x3b0af3(-0xa,-0x4b)]};for(let _0x18d7df=0x0;_0x18d7df<_0x2102f2['u']['array'][_0x17cc98(0x294,0x29d)];_0x18d7df++){_0x3f1156['array'][_0x18d7df]=Math['sqrt'](_0x2102f2['u'][_0x17cc98(0x2f7,0x339)][_0x18d7df]*_0x2102f2['u'][_0x3b0af3(-0x6a,-0xd)][_0x18d7df]+_0x2102f2['v']['array'][_0x18d7df]*_0x2102f2['v'][_0x3b0af3(-0x6a,-0x69)][_0x18d7df]),_0x3f1156['array'][_0x18d7df]!==0x0&&(_0x3f1156[_0x3b0af3(-0x2a,0x45)]=Math[_0x3b0af3(-0x2a,-0x9b)](_0x3f1156['min'],_0x3f1156[_0x3b0af3(-0x6a,-0xb3)][_0x18d7df]),_0x3f1156[_0x3b0af3(-0x1f,-0x54)]=Math[_0x17cc98(0x342,0x340)](_0x3f1156['max'],_0x3f1156['array'][_0x18d7df]));}_0x2102f2['speed']=_0x3f1156;}return _0x2102f2;}['updateViewerParameters'](){var _0x5a7bea;const _0x38d233=this[_0x5036d1(0x273,0x203)];if(!_0x38d233)return;const _0x1fc8d7=_0x38d233[_0x5036d1(0x210,0x242)],_0x330792={};_0x330792['x']=0x0,_0x330792['y']=0x0;const _0x3fceb3={};_0x3fceb3['x']=0x0,_0x3fceb3['y']=_0x1fc8d7[_0x5036d1(0x2ac,0x31d)];const _0x12b35f={};_0x12b35f['x']=_0x1fc8d7[_0xaa6ae0(0x1ba,0x210)],_0x12b35f['y']=0x0;const _0x1a53bc={};_0x1a53bc['x']=_0x1fc8d7['clientWidth'],_0x1a53bc['y']=_0x1fc8d7['clientHeight'];const _0x50b10d=[_0x330792,_0x3fceb3,_0x12b35f,_0x1a53bc];let _0x10ba1b=0xb4,_0x29233a=-0xb4;function _0xaa6ae0(_0x11e975,_0x51bffd){return _0x5c4e84(_0x11e975- -0x7e,_0x51bffd);}let _0x27c9c2=0x5a,_0x5bb831=-0x5a,_0x4b803a=![];for(const _0x23f50b of _0x50b10d){const _0x43d647=_0x38d233['camera'][_0x5036d1(0x231,0x254)](new Cesium$1['Cartesian2'](_0x23f50b['x'],_0x23f50b['y']),_0x38d233[_0x5036d1(0x24d,0x27a)][_0x5036d1(0x26b,0x28b)]);if(!_0x43d647){_0x4b803a=!![];break;}const _0x4358fd=_0x38d233['globe']['ellipsoid'][_0x5036d1(0x2b6,0x255)](_0x43d647),_0x31c8f4=Cesium$1['Math'][_0x5036d1(0x2ae,0x26a)](_0x4358fd['longitude']),_0x4361c3=Cesium$1[_0xaa6ae0(0x140,0xfd)]['toDegrees'](_0x4358fd[_0xaa6ae0(0x177,0x151)]);_0x10ba1b=Math['min'](_0x10ba1b,_0x31c8f4),_0x29233a=Math['max'](_0x29233a,_0x31c8f4),_0x27c9c2=Math['min'](_0x27c9c2,_0x4361c3),_0x5bb831=Math['max'](_0x5bb831,_0x4361c3);}if(!_0x4b803a){const _0x1df4c6=new Cesium$1['Cartesian2'](Math[_0xaa6ae0(0x1f8,0x272)](this[_0xaa6ae0(0x205,0x1ed)][_0x5036d1(0x2e6,0x27f)][_0x5036d1(0x203,0x202)],_0x10ba1b),Math[_0xaa6ae0(0x1ed,0x199)](this[_0xaa6ae0(0x205,0x1da)]['bounds']['east'],_0x29233a)),_0x13abf8=new Cesium$1['Cartesian2'](Math['max'](this[_0xaa6ae0(0x205,0x23c)][_0x5036d1(0x2e6,0x326)][_0x5036d1(0x2b8,0x27e)],_0x27c9c2),Math['min'](this['windData'][_0xaa6ae0(0x207,0x1b3)]['north'],_0x5bb831)),_0x1a8b3e=(_0x1df4c6['y']-_0x1df4c6['x'])*0.05,_0x2d1bcd=(_0x13abf8['y']-_0x13abf8['x'])*0.05;_0x1df4c6['x']=Math[_0xaa6ae0(0x1f8,0x21a)](this[_0xaa6ae0(0x205,0x286)]['bounds']['west'],_0x1df4c6['x']-_0x1a8b3e),_0x1df4c6['y']=Math[_0xaa6ae0(0x1ed,0x1f1)](this[_0x5036d1(0x2e4,0x298)]['bounds']['east'],_0x1df4c6['y']+_0x1a8b3e),_0x13abf8['x']=Math['max'](this[_0xaa6ae0(0x205,0x25a)][_0x5036d1(0x2e6,0x2a6)][_0x5036d1(0x2b8,0x305)],_0x13abf8['x']-_0x2d1bcd),_0x13abf8['y']=Math['min'](this['windData'][_0x5036d1(0x2e6,0x2b5)][_0xaa6ae0(0x1f2,0x216)],_0x13abf8['y']+_0x2d1bcd),this['viewerParameters'][_0x5036d1(0x25a,0x2db)]=_0x1df4c6,this['viewerParameters'][_0x5036d1(0x26e,0x254)]=_0x13abf8;const _0x2927db=this['windData']['bounds']['east']-this['windData']['bounds']['west'],_0x40384c=this['windData']['bounds'][_0xaa6ae0(0x1f2,0x1d0)]-this['windData'][_0x5036d1(0x2e6,0x2a9)]['south'],_0x2b39af=(_0x1df4c6['y']-_0x1df4c6['x'])/_0x2927db,_0xed4ba3=(_0x13abf8['y']-_0x13abf8['x'])/_0x40384c,_0x1d7021=Math[_0x5036d1(0x2cc,0x245)](_0x2b39af,_0xed4ba3),_0x5af5dc=0x3e8*_0x1d7021;_0x5af5dc>0x0&&(this['viewerParameters']['pixelSize']=Math['max'](0x0,Math[_0x5036d1(0x2cc,0x269)](0x3e8,_0x5af5dc)));}function _0x5036d1(_0x1ecc3c,_0xb57034){return _0x580342(_0xb57034,_0x1ecc3c- -0xbb);}this['viewerParameters'][_0x5036d1(0x276,0x20f)]=this[_0x5036d1(0x273,0x2f6)]['mode'],(_0x5a7bea=this['particleSystem'])===null||_0x5a7bea===void 0x0||_0x5a7bea['applyViewerParameters'](this['viewerParameters']);}[_0x580342(0x2b2,0x2cd)](_0x1051f0,_0x2c69c7){const {bounds:_0x24a221,width:_0x258ae9,height:_0x3cf8d1,u:_0x2a1c35,v:_0x1ba374,speed:_0x2600fa}=this[_0x904ae9(0x28a,0x2cc)],{flipY:_0x64ce23}=this[_0x904ae9(0x2c2,0x2a1)];if(_0x1051f0<_0x24a221['west']||_0x1051f0>_0x24a221[_0x904ae9(0x21c,0x29a)]||_0x2c69c7<_0x24a221[_0xaa40a0(0x428,0x406)]||_0x2c69c7>_0x24a221[_0xaa40a0(0x441,0x498)])return null;const _0x561e3d=(_0x1051f0-_0x24a221[_0xaa40a0(0x373,0x343)])/(_0x24a221[_0xaa40a0(0x422,0x3a2)]-_0x24a221['west'])*(_0x258ae9-0x1);let _0x4e89f8=(_0x2c69c7-_0x24a221['south'])/(_0x24a221['north']-_0x24a221['south'])*(_0x3cf8d1-0x1);_0x64ce23&&(_0x4e89f8=_0x3cf8d1-0x1-_0x4e89f8);const _0x24f445=Math['floor'](_0x561e3d),_0x4ec377=Math[_0xaa40a0(0x439,0x40e)](_0x4e89f8),_0x5ada70=Math['floor'](_0x561e3d),_0x15ae54=Math['min'](_0x5ada70+0x1,_0x258ae9-0x1),_0x5543d5=Math[_0x904ae9(0x241,0x2b1)](_0x4e89f8),_0xa359de=Math['min'](_0x5543d5+0x1,_0x3cf8d1-0x1),_0x326284=_0x561e3d-_0x5ada70,_0x4a45d6=_0x4e89f8-_0x5543d5,_0x4b5e30=_0x4ec377*_0x258ae9+_0x24f445,_0x8b373c=_0x5543d5*_0x258ae9+_0x5ada70,_0x3926a3=_0x5543d5*_0x258ae9+_0x15ae54,_0x34c2b3=_0xa359de*_0x258ae9+_0x5ada70,_0x2891a5=_0xa359de*_0x258ae9+_0x15ae54;function _0x904ae9(_0x12d155,_0x499cab){return _0x580342(_0x12d155,_0x499cab- -0xd3);}const _0x2c1ac4=_0x2a1c35[_0x904ae9(0x2b4,0x274)][_0x8b373c],_0x4366c6=_0x2a1c35[_0x904ae9(0x2da,0x274)][_0x3926a3],_0x2db0d1=_0x2a1c35['array'][_0x34c2b3],_0x525be0=_0x2a1c35['array'][_0x2891a5],_0x321390=(0x1-_0x326284)*(0x1-_0x4a45d6)*_0x2c1ac4+_0x326284*(0x1-_0x4a45d6)*_0x4366c6+(0x1-_0x326284)*_0x4a45d6*_0x2db0d1+_0x326284*_0x4a45d6*_0x525be0;function _0xaa40a0(_0x2e725e,_0x2663f5){return _0x580342(_0x2663f5,_0x2e725e-0xb5);}const _0x19656c=_0x1ba374[_0x904ae9(0x2c4,0x274)][_0x8b373c],_0x197b83=_0x1ba374[_0x904ae9(0x20c,0x274)][_0x3926a3],_0x2b35bd=_0x1ba374[_0xaa40a0(0x3fc,0x395)][_0x34c2b3],_0x4b847d=_0x1ba374['array'][_0x2891a5],_0x3518f5=(0x1-_0x326284)*(0x1-_0x4a45d6)*_0x19656c+_0x326284*(0x1-_0x4a45d6)*_0x197b83+(0x1-_0x326284)*_0x4a45d6*_0x2b35bd+_0x326284*_0x4a45d6*_0x4b847d,_0x59019c=Math[_0x904ae9(0x1f2,0x22e)](_0x321390*_0x321390+_0x3518f5*_0x3518f5),_0x3468b3={};_0x3468b3['u']=_0x2a1c35['array'][_0x4b5e30],_0x3468b3['v']=_0x1ba374['array'][_0x4b5e30],_0x3468b3['speed']=_0x2600fa['array'][_0x4b5e30];const _0xe51ce4={};_0xe51ce4['u']=_0x321390,_0xe51ce4['v']=_0x3518f5,_0xe51ce4['speed']=_0x59019c;const _0x1b235e={};return _0x1b235e[_0xaa40a0(0x437,0x41a)]=_0x3468b3,_0x1b235e[_0x904ae9(0x263,0x1e0)]=_0xe51ce4,_0x1b235e;}}mars3d__namespace[_0x580342(0x2ca,0x2b5)]['register']('wind',WindLayer),mars3d__namespace[_0x5c4e84(0x236,0x1c8)]['WindLayer']=WindLayer;class CanvasParticle{constructor(){function _0x3e3327(_0x403b2b,_0x295c44){return _0x580342(_0x403b2b,_0x295c44-0xd2);}function _0x244633(_0x19797f,_0x3f64d9){return _0x580342(_0x19797f,_0x3f64d9- -0x460);}this['lng']=null,this['lat']=null,this[_0x244633(-0x1ac,-0x127)]=null,this[_0x244633(-0x1c7,-0x192)]=null,this[_0x3e3327(0x469,0x412)]=null,this['speed']=null;}['destroy'](){for(const _0x5070e9 in this){delete this[_0x5070e9];}}}class CanvasWindField{constructor(_0x570540){this['setOptions'](_0x570540);}get['speedRate'](){return this['_speedRate'];}set['speedRate'](_0x1c27c7){function _0x4baffc(_0x3b5a29,_0x585390){return _0x580342(_0x585390,_0x3b5a29- -0x5c7);}function _0x97e6a2(_0x7c63eb,_0x299224){return _0x580342(_0x299224,_0x7c63eb- -0x5fe);}this['_speedRate']=(0x64-(_0x1c27c7>0x63?0x63:_0x1c27c7))*0x64,this[_0x97e6a2(-0x2d2,-0x276)]=[(this['xmax']-this[_0x97e6a2(-0x2ef,-0x2b3)])/this['_speedRate'],(this['ymax']-this['ymin'])/this['_speedRate']];}get['maxAge'](){return this['_maxAge'];}set['maxAge'](_0x47b70d){this['_maxAge']=_0x47b70d;}['setOptions'](_0x212442){this['options']=_0x212442,this['maxAge']=_0x212442[_0x2693e2(0x3d7,0x3fd)]||0x78;function _0x56f727(_0x3126ac,_0x997c8){return _0x5c4e84(_0x997c8- -0x2ce,_0x3126ac);}function _0x2693e2(_0x4a00c7,_0x11ba36){return _0x5c4e84(_0x4a00c7-0x1a8,_0x11ba36);}this['speedRate']=_0x212442['speedRate']||0x32,this[_0x56f727(-0x12e,-0x11a)]=[];const _0x180280=_0x212442['particlesNumber']||0x1000;for(let _0x4a0f68=0x0;_0x4a0f68<_0x180280;_0x4a0f68++){const _0x3e36b9=this[_0x2693e2(0x373,0x356)](new CanvasParticle());this[_0x56f727(-0xcf,-0x11a)][_0x2693e2(0x398,0x330)](_0x3e36b9);}}[_0x5c4e84(0x221,0x1c0)](_0x1dd384){this['rows']=_0x1dd384['rows'],this['cols']=_0x1dd384[_0x3d13cb(0x459,0x434)],this[_0x4c1a05(0x170,0x1c7)]=_0x1dd384[_0x4c1a05(0x170,0x1c1)],this[_0x3d13cb(0x449,0x48c)]=_0x1dd384[_0x3d13cb(0x4a4,0x48c)],this[_0x3d13cb(0x40e,0x439)]=_0x1dd384['ymin'],this[_0x4c1a05(0x16b,0x124)]=_0x1dd384['ymax'],this[_0x3d13cb(0x4ea,0x4bc)]=[];const _0xc04011=_0x1dd384['udata'],_0x589765=_0x1dd384[_0x3d13cb(0x48d,0x492)];function _0x4c1a05(_0x50a9c7,_0x13fdfd){return _0x580342(_0x13fdfd,_0x50a9c7- -0x19f);}let _0x310f99=![];_0xc04011['length']===this[_0x4c1a05(0x171,0x1bb)]&&_0xc04011[0x0]['length']===this['cols']&&(_0x310f99=!![]);let _0x29b65a=0x0,_0x485dad=null,_0x2ed97b=null;function _0x3d13cb(_0x24dded,_0x3d8fd7){return _0x580342(_0x24dded,_0x3d8fd7-0x170);}for(let _0x1398cd=0x0;_0x1398cd<this['rows'];_0x1398cd++){_0x485dad=[];for(let _0x7f31d6=0x0;_0x7f31d6<this[_0x4c1a05(0x125,0xd1)];_0x7f31d6++,_0x29b65a++){_0x310f99?_0x2ed97b=this['_calcUV'](_0xc04011[_0x1398cd][_0x7f31d6],_0x589765[_0x1398cd][_0x7f31d6]):_0x2ed97b=this['_calcUV'](_0xc04011[_0x29b65a],_0x589765[_0x29b65a]),_0x485dad[_0x3d13cb(0x473,0x47c)](_0x2ed97b);}this[_0x4c1a05(0x1ad,0x17a)]['push'](_0x485dad);}!this[_0x3d13cb(0x522,0x4e4)][_0x4c1a05(0x142,0x13f)]&&this['grid']['reverse']();}['clear'](){delete this['rows'],delete this['cols'];function _0x563612(_0x61694d,_0x17b918){return _0x580342(_0x17b918,_0x61694d- -0x368);}delete this['xmin'],delete this['xmax'],delete this[_0x264096(-0x281,-0x2a5)];function _0x264096(_0x394cbf,_0x50dc16){return _0x580342(_0x394cbf,_0x50dc16- -0x56e);}delete this['ymax'],delete this[_0x563612(-0x1c,-0xd)],delete this['particles'];}[_0x580342(0x2f0,0x350)](_0xb6dc65,_0x92e705){function _0x4710b5(_0x543674,_0x31ca57){return _0x5c4e84(_0x31ca57-0xa5,_0x543674);}function _0x3a3080(_0x457864,_0x3e915b){return _0x5c4e84(_0x457864-0x13,_0x3e915b);}const _0xcb5da3=(_0xb6dc65-this[_0x4710b5(0x275,0x298)])/(this['xmax']-this[_0x4710b5(0x26e,0x298)])*(this['cols']-0x1),_0x10f2f3=(this[_0x3a3080(0x201,0x27b)]-_0x92e705)/(this['ymax']-this['ymin'])*(this['rows']-0x1);return[_0xcb5da3,_0x10f2f3];}[_0x580342(0x2c8,0x2d8)](_0x3aedfa,_0x16c210){if(_0x3aedfa<0x0||_0x3aedfa>=this['cols']||_0x16c210>=this[_0x278a21(0x476,0x4bf)])return[0x0,0x0,0x0];const _0x1f932e=Math[_0x278a21(0x4ea,0x4e7)](_0x3aedfa),_0x237d49=Math['floor'](_0x16c210);if(_0x1f932e===_0x3aedfa&&_0x237d49===_0x16c210)return this['grid'][_0x16c210][_0x3aedfa];const _0x55a3c7=_0x1f932e+0x1;function _0x278a21(_0x23968b,_0x414177){return _0x5c4e84(_0x23968b-0x282,_0x414177);}const _0x2e94d1=_0x237d49+0x1,_0x4e2db0=this['getUVByXY'](_0x1f932e,_0x237d49);function _0x4acd8e(_0x4b997c,_0x56cd9f){return _0x580342(_0x56cd9f,_0x4b997c- -0x303);}const _0x3f8475=this['getUVByXY'](_0x55a3c7,_0x237d49),_0x240d09=this['getUVByXY'](_0x1f932e,_0x2e94d1),_0x3445c1=this['getUVByXY'](_0x55a3c7,_0x2e94d1);let _0x10a180=null;try{_0x10a180=this['_bilinearInterpolation'](_0x3aedfa-_0x1f932e,_0x16c210-_0x237d49,_0x4e2db0,_0x3f8475,_0x240d09,_0x3445c1);}catch(_0x35ea39){console[_0x4acd8e(0xb,0x46)](_0x3aedfa,_0x16c210);}return _0x10a180;}['_bilinearInterpolation'](_0x79303b,_0x307e49,_0x48965c,_0x4ef418,_0x4cde47,_0x27937f){const _0xc9546e=0x1-_0x79303b,_0x3e0470=0x1-_0x307e49,_0x1dfd07=_0xc9546e*_0x3e0470,_0x317678=_0x79303b*_0x3e0470,_0x38efc2=_0xc9546e*_0x307e49,_0x3a71ff=_0x79303b*_0x307e49,_0x2a6466=_0x48965c[0x0]*_0x1dfd07+_0x4ef418[0x0]*_0x317678+_0x4cde47[0x0]*_0x38efc2+_0x27937f[0x0]*_0x3a71ff,_0x4b57f6=_0x48965c[0x1]*_0x1dfd07+_0x4ef418[0x1]*_0x317678+_0x4cde47[0x1]*_0x38efc2+_0x27937f[0x1]*_0x3a71ff;return this['_calcUV'](_0x2a6466,_0x4b57f6);}[_0x5c4e84(0x1c4,0x1a1)](_0x53decd,_0xc1ce7a){return[+_0x53decd,+_0xc1ce7a,Math['sqrt'](_0x53decd*_0x53decd+_0xc1ce7a*_0xc1ce7a)];}['getUVByPoint'](_0x1a4598,_0x239bbc){function _0x3ad8e7(_0x3d8026,_0x2ea6c6){return _0x5c4e84(_0x2ea6c6-0x4f,_0x3d8026);}if(!this[_0x3ad8e7(0x16a,0x1ee)](_0x1a4598,_0x239bbc))return null;const _0x11b050=this['toGridXY'](_0x1a4598,_0x239bbc),_0x210482=this['getUVByXY'](_0x11b050[0x0],_0x11b050[0x1]);return _0x210482;}[_0x580342(0x338,0x2bb)](_0x13f051,_0x12806c){function _0x558045(_0x3aa231,_0x454f5c){return _0x5c4e84(_0x3aa231- -0x3d6,_0x454f5c);}function _0x39b9cf(_0x2a3c1f,_0x5f1428){return _0x580342(_0x2a3c1f,_0x5f1428- -0x502);}return _0x13f051>=this['xmin']&&_0x13f051<=this[_0x558045(-0x1d6,-0x23a)]&&_0x12806c>=this['ymin']&&_0x12806c<=this[_0x39b9cf(-0x261,-0x1f8)]?!![]:![];}['getRandomLatLng'](){const _0x141973=fRandomByfloat(this[_0x2bd317(0x1fc,0x195)],this['xmax']),_0x27e200=fRandomByfloat(this['ymin'],this[_0x2bd317(0x1ea,0x190)]);function _0x2bd317(_0x1bd439,_0x44566b){return _0x5c4e84(_0x44566b- -0x5e,_0x1bd439);}function _0x59404b(_0x3c49c7,_0x4b3439){return _0x580342(_0x4b3439,_0x3c49c7- -0x15f);}const _0x1cd59f={};return _0x1cd59f['lat']=_0x27e200,_0x1cd59f['lng']=_0x141973,_0x1cd59f;}[_0x5c4e84(0x26d,0x2d0)](){function _0x42fa30(_0x4d1ca4,_0x4842bc){return _0x580342(_0x4d1ca4,_0x4842bc-0x1b2);}let _0x3eacb7,_0x5d3c85,_0x39b948;for(let _0xe677a=0x0,_0x8f82cd=this['particles']['length'];_0xe677a<_0x8f82cd;_0xe677a++){let _0x46eb64=this[_0x3c9ae7(0x1ea,0x20d)][_0xe677a];_0x46eb64[_0x3c9ae7(0x25a,0x2bd)]<=0x0&&(_0x46eb64=this[_0x3c9ae7(0x201,0x1fb)](_0x46eb64));if(_0x46eb64[_0x42fa30(0x4c9,0x4f2)]>0x0){const _0x4cd27e=_0x46eb64['tlng'],_0x332c92=_0x46eb64[_0x3c9ae7(0x1e8,0x1fb)];_0x39b948=this['getUVByPoint'](_0x4cd27e,_0x332c92),_0x39b948?(_0x3eacb7=_0x4cd27e+this['_calc_speedRate'][0x0]*_0x39b948[0x0],_0x5d3c85=_0x332c92+this['_calc_speedRate'][0x1]*_0x39b948[0x1],_0x46eb64['lng']=_0x4cd27e,_0x46eb64['lat']=_0x332c92,_0x46eb64['tlng']=_0x3eacb7,_0x46eb64['tlat']=_0x5d3c85,_0x46eb64['speed']=_0x39b948[0x2],_0x46eb64['age']--):_0x46eb64['age']=0x0;}}function _0x3c9ae7(_0x3b64b4,_0x58d0ea){return _0x580342(_0x58d0ea,_0x3b64b4- -0xe6);}return this[_0x3c9ae7(0x1ea,0x1d6)];}['_randomParticle'](_0x4bd425){let _0x1d54d9,_0x5905d1;function _0x32c8c9(_0x1a4466,_0x17c36e){return _0x5c4e84(_0x17c36e-0xfd,_0x1a4466);}for(let _0x378e3b=0x0;_0x378e3b<0x1e;_0x378e3b++){_0x1d54d9=this[_0x32c8c9(0x26d,0x2f4)](),_0x5905d1=this['getUVByPoint'](_0x1d54d9[_0x32c8c9(0x3a1,0x384)],_0x1d54d9['lat']);if(_0x5905d1&&_0x5905d1[0x2]>0x0)break;}if(!_0x5905d1)return _0x4bd425;const _0x12efa4=_0x1d54d9['lng']+this['_calc_speedRate'][0x0]*_0x5905d1[0x0],_0x759cde=_0x1d54d9['lat']+this[_0x32c8c9(0x295,0x30d)][0x1]*_0x5905d1[0x1];_0x4bd425[_0x4c0516(0x20b,0x1ff)]=_0x1d54d9['lng'],_0x4bd425[_0x4c0516(0x1fe,0x1f7)]=_0x1d54d9['lat'],_0x4bd425[_0x32c8c9(0x2cb,0x31a)]=_0x12efa4,_0x4bd425['tlat']=_0x759cde;function _0x4c0516(_0x52ac46,_0x5c197b){return _0x5c4e84(_0x52ac46- -0x7c,_0x5c197b);}return _0x4bd425['age']=Math['round'](0xa+Math['random']()*this[_0x4c0516(0x1b3,0x14e)]),_0x4bd425[_0x4c0516(0x1ac,0x1b2)]=_0x5905d1[0x2],_0x4bd425;}[_0x580342(0x2d8,0x35c)](){for(const _0x5be871 in this){delete this[_0x5be871];}}}function fRandomByfloat(_0x1b21a4,_0x2f4ef7){return _0x1b21a4+Math['random']()*(_0x2f4ef7-_0x1b21a4);}const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x580342(0x384,0x390)];class CanvasWindLayer extends BaseLayer{constructor(_0x4ef524={}){super(_0x4ef524);function _0x170c25(_0x38bf46,_0x2e972a){return _0x5c4e84(_0x38bf46- -0x12,_0x2e972a);}this[_0x29d743(-0x22c,-0x29f)](_0x4ef524),this[_0x29d743(-0x256,-0x2b2)]=null;function _0x29d743(_0x2ae98b,_0x8b13a8){return _0x5c4e84(_0x2ae98b- -0x405,_0x8b13a8);}_0x4ef524['colors']&&_0x4ef524[_0x170c25(0x18b,0x12b)]&&(this['_colorRamp']=new mars3d__namespace['ColorRamp'](_0x4ef524));}[_0x5c4e84(0x1d9,0x15b)](_0x51209f,_0x3a6a8a){this['frameTime']=0x3e8/(_0x51209f['frameRate']||0xa),this[_0x129095(0x276,0x1ff)]=this['options'][_0x440b68(-0x4f,-0x66)]??![];function _0x129095(_0xfd7217,_0x1059c7){return _0x5c4e84(_0x1059c7- -0x93,_0xfd7217);}this['color']=_0x51209f['color']||'#ffffff',this['lineWidth']=_0x51209f[_0x440b68(0x94,0x77)]||0x1,this['fixedHeight']=_0x51209f[_0x440b68(0x26,-0x49)]??0x0;function _0x440b68(_0x4c13e1,_0x5682c4){return _0x5c4e84(_0x4c13e1- -0x1fa,_0x5682c4);}this[_0x129095(0x15c,0x132)]=_0x51209f['flipY']??![],this['windField']&&this[_0x440b68(0x87,0xf4)]['setOptions'](_0x51209f);}get['layer'](){return this['canvas'];}get[_0x580342(0x3d0,0x37e)](){return this['_map']['scene']['canvas']['clientWidth'];}get['canvasHeight'](){return this['_map']['scene']['canvas']['clientHeight'];}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x17c6c7){function _0x109090(_0xb24dbd,_0x1a5649){return _0x580342(_0xb24dbd,_0x1a5649- -0x29a);}this[_0x109090(0x101,0x114)]=_0x17c6c7;function _0x2ba3de(_0x4e2238,_0x54bfb7){return _0x580342(_0x54bfb7,_0x4e2238- -0x1ee);}if(!this[_0x2ba3de(0xdd,0x76)])return;_0x17c6c7?this['canvas']['style'][_0x2ba3de(0x151,0x12e)]='all':this['canvas']['style']['pointer-events']=_0x109090(0x146,0xe6);}get[_0x5c4e84(0x1ac,0x12c)](){function _0x7bc718(_0x373971,_0xbe14c){return _0x5c4e84(_0x373971- -0x3da,_0xbe14c);}return this['options'][_0x7bc718(-0x22e,-0x271)];}set[_0x580342(0x2d1,0x2c8)](_0x5440af){function _0x51772f(_0x27800a,_0x429d2f){return _0x580342(_0x429d2f,_0x27800a-0x73);}this[_0x439bd3(0x258,0x27a)]['particlesNumber']=_0x5440af;function _0x439bd3(_0x32387b,_0x53e73e){return _0x5c4e84(_0x32387b-0x0,_0x53e73e);}clearTimeout(this['_canrefresh']),this[_0x439bd3(0x28a,0x20d)]=setTimeout(()=>{this['redraw']();},0x1f4);}get['speedRate'](){function _0xcea81b(_0x253453,_0x22aa7c){return _0x5c4e84(_0x253453- -0x42d,_0x22aa7c);}return this[_0xcea81b(-0x1d5,-0x1e0)]['speedRate'];}set[_0x5c4e84(0x202,0x183)](_0x202c3e){this[_0x3ece73(0x2ba,0x328)]['speedRate']=_0x202c3e;function _0x49a5de(_0x5f4bad,_0x4e0364){return _0x580342(_0x4e0364,_0x5f4bad- -0x2ae);}function _0x3ece73(_0x484cd1,_0x5a8434){return _0x580342(_0x5a8434,_0x484cd1- -0xba);}this['windField']&&(this['windField'][_0x3ece73(0x264,0x20b)]=_0x202c3e);}get['maxAge'](){function _0x41262a(_0x2264d7,_0x3d976d){return _0x580342(_0x2264d7,_0x3d976d-0x185);}return this[_0x41262a(0x49b,0x4f9)]['maxAge'];}set['maxAge'](_0x430066){this['options']['maxAge']=_0x430066;function _0x5335b8(_0x84be5a,_0x5c58ce){return _0x5c4e84(_0x5c58ce- -0x208,_0x84be5a);}function _0x54a25c(_0x945c8a,_0x526e71){return _0x5c4e84(_0x945c8a- -0x125,_0x526e71);}this[_0x5335b8(0xbb,0x79)]&&(this['windField'][_0x5335b8(0x16,0x27)]=_0x430066);}get['data'](){return this['windData'];}set[_0x580342(0x3f2,0x388)](_0x43db70){this['setData'](_0x43db70);}get['rectangle'](){let _0x28da50=this['windData'][_0x590c72(-0x141,-0x1b5)],_0x3a9930=this['windData']['xmax'];function _0x11d272(_0x537b53,_0x5ac059){return _0x5c4e84(_0x5ac059- -0x237,_0x537b53);}let _0x488cbd=this['windData']['ymin'],_0x1ebb97=this[_0x11d272(-0x30,0x4c)][_0x11d272(-0xa8,-0x49)];_0x3a9930>=0x167&&_0x28da50===0x0&&(_0x28da50=-0xb4,_0x3a9930=0xb4);_0x28da50=Math['max'](_0x28da50,-0xb4);function _0x590c72(_0x135800,_0x3cd56e){return _0x580342(_0x3cd56e,_0x135800- -0x450);}return _0x3a9930=Math['min'](_0x3a9930,0xb4),_0x488cbd=Math['max'](_0x488cbd,-0x5a),_0x1ebb97=Math['min'](_0x1ebb97,0x5a),Cesium['Rectangle']['fromDegrees'](_0x28da50,_0x488cbd,_0x3a9930,_0x1ebb97);}['_showHook'](_0x114085){function _0x4fa136(_0x3fd5e3,_0x451c11){return _0x5c4e84(_0x3fd5e3- -0x445,_0x451c11);}function _0x4c9b3b(_0xc45bd5,_0x5d26b0){return _0x5c4e84(_0xc45bd5- -0x3f0,_0x5d26b0);}_0x114085?this[_0x4fa136(-0x1e9,-0x234)]():(this['windData']&&(this['options'][_0x4c9b3b(-0x184,-0x161)]=this[_0x4fa136(-0x1c2,-0x185)]),this['_removedHook']());}['_mountedHook'](){function _0xaba13f(_0x5e81a6,_0x183fe5){return _0x5c4e84(_0x183fe5- -0xe,_0x5e81a6);}function _0x33abf7(_0x29db6e,_0x56e94f){return _0x580342(_0x29db6e,_0x56e94f-0x178);}this[_0x33abf7(0x55a,0x4ec)]['worker']?this[_0x33abf7(0x42d,0x495)]():this[_0xaba13f(0x2db,0x273)]=new CanvasWindField(this['options']);}['_addedHook'](){function _0x2a9fb0(_0x327046,_0x26d2c4){return _0x580342(_0x26d2c4,_0x327046-0xe9);}this[_0xd518ca(0x1c4,0x239)]=this[_0x2a9fb0(0x3cc,0x3db)]();function _0xd518ca(_0x2058fa,_0x270336){return _0x580342(_0x2058fa,_0x270336- -0x92);}const _0x4e2d6e={};_0x4e2d6e[_0xd518ca(0x2b6,0x2b4)]=!![],this[_0xd518ca(0x269,0x2a2)]=this[_0x2a9fb0(0x3b4,0x386)][_0xd518ca(0x1f3,0x250)]('2d',_0x4e2d6e),this['bindEvent'](),this[_0x2a9fb0(0x45d,0x4da)][_0xd518ca(0x2f8,0x2f6)]&&this['setData'](this[_0x2a9fb0(0x45d,0x49f)]['data']);}[_0x580342(0x314,0x351)](){function _0x5cbd99(_0x4917f6,_0x41be45){return _0x580342(_0x4917f6,_0x41be45- -0x509);}this[_0x33991f(-0x106,-0xc5)](),this[_0x5cbd99(-0x1ba,-0x212)]();function _0x33991f(_0x502bd3,_0x36af40){return _0x580342(_0x502bd3,_0x36af40- -0x374);}this['canvas']&&(this[_0x33991f(-0xb5,-0x6b)][_0x5cbd99(-0x21d,-0x204)]['removeChild'](this['canvas']),delete this[_0x5cbd99(-0x2ac,-0x23e)]);}[_0x5c4e84(0x1c7,0x1c0)](){const _0x36c476=mars3d__namespace[_0x36888e(0x549,0x50b)]['create'](_0x13acaa(-0x1b1,-0x167),'mars3d-canvasWind',this[_0x13acaa(-0x11e,-0x129)][_0x36888e(0x3f3,0x45c)]);_0x36c476[_0x36888e(0x4a5,0x4c3)]['position']='absolute',_0x36c476[_0x36888e(0x530,0x4c3)]['top']='0px',_0x36c476[_0x13acaa(-0x72,-0xc6)][_0x13acaa(-0xaa,-0x113)]=_0x13acaa(-0xdc,-0xdb);function _0x13acaa(_0xc67701,_0x1a1d64){return _0x5c4e84(_0x1a1d64- -0x316,_0xc67701);}_0x36c476['style']['width']=this['_map']['scene'][_0x13acaa(-0x131,-0x167)][_0x13acaa(-0x70,-0xde)]+'px',_0x36c476[_0x36888e(0x517,0x4c3)]['height']=this['_map']['scene']['canvas']['clientHeight']+'px',_0x36c476[_0x36888e(0x481,0x4c3)][_0x36888e(0x426,0x41e)]=this['_pointerEvents']?'auto':'none';function _0x36888e(_0xb013ec,_0x1f0956){return _0x5c4e84(_0x1f0956-0x273,_0xb013ec);}return _0x36c476[_0x13acaa(-0x81,-0xc6)][_0x36888e(0x519,0x4b2)]=this['options']['zIndex']??0x9,_0x36c476['width']=this['_map'][_0x13acaa(-0xb6,-0x104)]['canvas'][_0x36888e(0x49b,0x4ab)],_0x36c476[_0x36888e(0x41e,0x45b)]=this[_0x36888e(0x490,0x460)]['scene']['canvas']['clientHeight'],_0x36c476;}[_0x5c4e84(0x1a6,0x1d5)](){function _0x5b5276(_0x7694d2,_0x5ba11c){return _0x5c4e84(_0x7694d2-0x272,_0x5ba11c);}function _0x5cf3c2(_0x338c5b,_0x445e07){return _0x5c4e84(_0x338c5b- -0xc8,_0x445e07);}this['canvas']&&(this['canvas'][_0x5cf3c2(0x188,0x108)][_0x5cf3c2(0x11c,0x169)]=this['_map'][_0x5b5276(0x484,0x4fd)]['canvas'][_0x5b5276(0x4aa,0x459)]+'px',this['canvas']['style'][_0x5b5276(0x45a,0x4c2)]=this['_map']['scene'][_0x5cf3c2(0xe7,0x92)]['clientHeight']+'px',this['canvas']['width']=this['_map'][_0x5b5276(0x484,0x4b4)]['canvas']['clientWidth'],this[_0x5cf3c2(0xe7,0xc5)]['height']=this['_map']['scene'][_0x5b5276(0x421,0x421)][_0x5b5276(0x4bd,0x539)]);}[_0x5c4e84(0x1ae,0x15e)](){function _0x27e796(_0x3d7a2d,_0xabab66){return _0x5c4e84(_0xabab66- -0x1b2,_0x3d7a2d);}const _0xbd4976=this;let _0x3efef1=Date['now']();(function _0x4105a3(){function _0x524e09(_0x39eb21,_0x1a80c1){return _0x5ea3(_0x1a80c1- -0x1d0,_0x39eb21);}function _0x21363e(_0x211067,_0x4677b3){return _0x5ea3(_0x4677b3-0x275,_0x211067);}if(_0xbd4976['isDestroy'])return;_0xbd4976['_animateFrame']=window[_0x524e09(-0x10c,-0xfd)](_0x4105a3);if(_0xbd4976['show']&&_0xbd4976[_0x524e09(-0x7d,-0x5c)]){const _0x29779b=Date[_0x21363e(0x2e0,0x353)](),_0x29c6d8=_0x29779b-_0x3efef1;_0x29c6d8>_0xbd4976[_0x21363e(0x315,0x381)]&&(_0x3efef1=_0x29779b-_0x29c6d8%_0xbd4976['frameTime'],_0xbd4976['update']());}}(),window['addEventListener']('resize',this['resize'][_0x27e796(0x109,0x8f)](this),![]));function _0x413d78(_0x531e20,_0x52b445){return _0x5c4e84(_0x52b445- -0x251,_0x531e20);}this[_0x413d78(0x3f,0x18)]=![],this['mouse_move']=![],this['options']['mouseHidden']&&(this['_map']['on'](mars3d__namespace['EventType'][_0x27e796(0xcb,0x5c)],this['_onMapWhellEvent'],this),this['_map']['on'](mars3d__namespace[_0x27e796(0x96,0xd2)][_0x27e796(0x8a,0x3)],this[_0x413d78(-0xa9,-0x3e)],this),this[_0x27e796(0x33,0x3b)]['on'](mars3d__namespace['EventType'][_0x27e796(0x5c,0xb)],this['_onMouseUpEvent'],this));}['unbindEvent'](){window['cancelAnimationFrame'](this[_0x1f095d(-0x239,-0x251)]),delete this[_0x9903b9(-0x1e2,-0x185)];function _0x1f095d(_0x4f4044,_0x4b1548){return _0x5c4e84(_0x4b1548- -0x42b,_0x4f4044);}function _0x9903b9(_0x2bf523,_0x385890){return _0x5c4e84(_0x2bf523- -0x3bc,_0x385890);}window['removeEventListener'](_0x1f095d(-0x2f7,-0x285),this[_0x1f095d(-0x2cb,-0x285)]),this[_0x9903b9(-0x164,-0x1d0)][_0x9903b9(-0x1ad,-0x15d)]&&(this['_map']['off'](mars3d__namespace[_0x9903b9(-0x138,-0x18b)]['wheel'],this[_0x9903b9(-0x152,-0xf1)],this),this['_map']['off'](mars3d__namespace[_0x9903b9(-0x138,-0x156)][_0x9903b9(-0x207,-0x20b)],this['_onMouseDownEvent'],this),this['_map']['off'](mars3d__namespace[_0x9903b9(-0x138,-0x16b)]['mouseUp'],this['_onMouseUpEvent'],this),this['_map'][_0x1f095d(-0x256,-0x1e5)](mars3d__namespace[_0x1f095d(-0x127,-0x1a7)]['mouseMove'],this[_0x9903b9(-0x1ab,-0x1f5)],this));}[_0x5c4e84(0x26a,0x2e0)](_0x20a55c){function _0x23928c(_0x80f4dd,_0x72c678){return _0x5c4e84(_0x72c678- -0x2d0,_0x80f4dd);}clearTimeout(this[_0x11f735(0x2ea,0x297)]);function _0x11f735(_0x11f3d1,_0x4d117a){return _0x5c4e84(_0x11f3d1-0x104,_0x4d117a);}if(!this['show']||!this[_0x23928c(-0x164,-0x121)])return;this[_0x11f735(0x2b3,0x25f)][_0x23928c(-0x92,-0x80)][_0x11f735(0x2c3,0x241)]='hidden',this[_0x23928c(-0x11d,-0xea)]=setTimeout(()=>{function _0x3398e6(_0x4f3fa6,_0x4f2adb){return _0x23928c(_0x4f2adb,_0x4f3fa6- -0x214);}if(!this['show'])return;function _0x5164e5(_0x219cb5,_0x1035ae){return _0x23928c(_0x219cb5,_0x1035ae-0x445);}this[_0x3398e6(-0x2d8,-0x326)](),this['canvas'][_0x3398e6(-0x294,-0x2ed)][_0x3398e6(-0x325,-0x304)]='visible';},0xc8);}['_onMouseDownEvent'](_0x1a3a98){this['mouse_down']=!![],this[_0xfaa4da(0xa0,0x11f)][_0x4a244e(-0x26a,-0x23c)](mars3d__namespace['EventType']['mouseMove'],this['_onMouseMoveEvent'],this);function _0xfaa4da(_0x54172e,_0x1c3d00){return _0x5c4e84(_0x54172e- -0x14d,_0x1c3d00);}function _0x4a244e(_0x31c7db,_0x219850){return _0x580342(_0x31c7db,_0x219850- -0x59e);}this['_map']['on'](mars3d__namespace['EventType']['mouseMove'],this[_0xfaa4da(0xc4,0x11d)],this);}['_onMouseMoveEvent'](_0x5e78f0){function _0x1a7caa(_0x52cbf6,_0x171947){return _0x580342(_0x171947,_0x52cbf6- -0x517);}function _0x29bfad(_0x5be41a,_0x853d7){return _0x580342(_0x853d7,_0x5be41a- -0xd6);}if(!this['show']||!this['canvas'])return;this['mouse_down']&&(this[_0x1a7caa(-0x24c,-0x27e)][_0x29bfad(0x296,0x290)]['visibility']='hidden',this['mouse_move']=!![]);}['_onMouseUpEvent'](_0x10c5d7){if(!this[_0x19f45c(0x2e5,0x292)]||!this['canvas'])return;this[_0x4b2f09(0x468,0x462)]['off'](mars3d__namespace['EventType']['mouseMove'],this['_onMouseMoveEvent'],this);this['mouse_down']&&this['mouse_move']&&this['redraw']();this['canvas'][_0x4b2f09(0x504,0x4c5)][_0x4b2f09(0x436,0x434)]='visible',this[_0x4b2f09(0x4c9,0x4de)]=![];function _0x19f45c(_0x10403a,_0x5544aa){return _0x580342(_0x10403a,_0x5544aa- -0x22);}function _0x4b2f09(_0x4573b9,_0x38bd48){return _0x580342(_0x4573b9,_0x38bd48-0x159);}this[_0x4b2f09(0x42f,0x411)]=![];}['setData'](_0x3e05e3){function _0x51222a(_0x525f3a,_0x328e6b){return _0x5c4e84(_0x328e6b-0x8f,_0x525f3a);}this[_0xb8b5c9(0x342,0x382)]();function _0xb8b5c9(_0x3fb7f4,_0x40d6cc){return _0x580342(_0x3fb7f4,_0x40d6cc-0xd3);}this[_0x51222a(0x316,0x312)]=_0x3e05e3,this['windField']['setDate'](_0x3e05e3),this[_0xb8b5c9(0x405,0x3fb)]();}['redraw'](){function _0x38411b(_0x11a24a,_0x4e1dc1){return _0x5c4e84(_0x4e1dc1- -0x76,_0x11a24a);}if(!this['show'])return;this[_0x539ba3(0x4f0,0x510)]['setOptions'](this[_0x539ba3(0x4c7,0x4d0)]);function _0x539ba3(_0x5e2d9f,_0x32d359){return _0x580342(_0x32d359,_0x5e2d9f-0x153);}this['update']();}[_0x580342(0x3ca,0x39b)](){if(this[_0x55e383(-0x2bd,-0x2e4)])return;function _0x2830fc(_0x40f4aa,_0x52149c){return _0x580342(_0x52149c,_0x40f4aa- -0x3e2);}this[_0x55e383(-0x2bd,-0x241)]=!![];if(this['worker'])this['windField']['update']();else{const _0x3a3c9f=this['windField'][_0x2830fc(-0x59,-0xa2)]();this['_drawLines'](_0x3a3c9f);}function _0x55e383(_0x56fd81,_0x4573fb){return _0x580342(_0x4573fb,_0x56fd81- -0x56a);}this[_0x2830fc(-0x135,-0x11d)]=![];}['_drawLines'](_0x496424){this[_0x3e88e5(-0x26,-0x3c)]=_0x496424;function _0x2860a2(_0x286db0,_0x1d1d15){return _0x580342(_0x1d1d15,_0x286db0- -0x3a);}this['canvasContext']['globalCompositeOperation']='destination-in',this['canvasContext']['fillRect'](0x0,0x0,this[_0x3e88e5(0x10,0x69)],this['canvasHeight']),this['canvasContext']['globalCompositeOperation']=_0x2860a2(0x2f6,0x325),this[_0x2860a2(0x2fa,0x2b3)]['globalAlpha']=0.9;const _0x1d24cf=this[_0x2860a2(0x2cf,0x254)][_0x3e88e5(-0x40,-0x15)]['mode']!==Cesium['SceneMode']['SCENE3D'];function _0x3e88e5(_0x5e64a4,_0x138eb1){return _0x580342(_0x138eb1,_0x5e64a4- -0x36e);}const _0x2a3a34=this['canvasWidth']*0.25;if(this['_colorRamp'])for(let _0xbd4d35=0x0,_0x5314f0=_0x496424['length'];_0xbd4d35<_0x5314f0;_0xbd4d35++){const _0x5b772d=_0x496424[_0xbd4d35],_0x4dc4b1=this[_0x2860a2(0x33b,0x35a)](_0x5b772d,_0x5b772d[_0x2860a2(0x369,0x380)],_0x5b772d['lat'],_0x5b772d['alt']),_0x59c661=this[_0x2860a2(0x33b,0x311)](_0x5b772d,_0x5b772d[_0x3e88e5(-0x35,0x40)],_0x5b772d[_0x3e88e5(-0xa0,-0x7a)],_0x5b772d['talt']);if(!_0x4dc4b1||!_0x59c661)continue;if(_0x1d24cf&&Math['abs'](_0x4dc4b1[0x0]-_0x59c661[0x0])>=_0x2a3a34)continue;this[_0x2860a2(0x2fa,0x2a3)][_0x3e88e5(-0xbc,-0xb6)](),this['canvasContext'][_0x2860a2(0x370,0x330)]=this['lineWidth'],this[_0x2860a2(0x2fa,0x2fb)]['strokeStyle']=this[_0x2860a2(0x338,0x2ec)]['getColor'](_0x5b772d[_0x3e88e5(-0x2a,0x11)]),this['canvasContext']['moveTo'](_0x4dc4b1[0x0],_0x4dc4b1[0x1]),this[_0x3e88e5(-0x3a,-0x31)][_0x2860a2(0x2f8,0x2b7)](_0x59c661[0x0],_0x59c661[0x1]),this['canvasContext'][_0x2860a2(0x295,0x26a)]();}else{this['canvasContext']['beginPath'](),this['canvasContext']['lineWidth']=this['lineWidth'],this['canvasContext'][_0x2860a2(0x2ac,0x326)]=this['color'];for(let _0x3ba1cb=0x0,_0x454d4f=_0x496424['length'];_0x3ba1cb<_0x454d4f;_0x3ba1cb++){const _0x120eb9=_0x496424[_0x3ba1cb],_0x1fc042=this['_tomap'](_0x120eb9,_0x120eb9['lng'],_0x120eb9['lat'],_0x120eb9['alt']),_0x2068a5=this['_tomap'](_0x120eb9,_0x120eb9[_0x2860a2(0x2ff,0x2dc)],_0x120eb9[_0x3e88e5(-0xa0,-0x1a)],_0x120eb9[_0x3e88e5(0x30,-0xf)]);if(!_0x1fc042||!_0x2068a5)continue;if(_0x1d24cf&&Math['abs'](_0x1fc042[0x0]-_0x2068a5[0x0])>=_0x2a3a34)continue;this[_0x2860a2(0x2fa,0x36b)][_0x3e88e5(0x48,0xc2)](_0x1fc042[0x0],_0x1fc042[0x1]),this[_0x2860a2(0x2fa,0x2b5)]['lineTo'](_0x2068a5[0x0],_0x2068a5[0x1]);}this['canvasContext']['stroke']();}}[_0x5c4e84(0x259,0x258)](_0x356a96,_0x2e8591,_0x232fd7,_0x4d2793){const _0x223f70=Cesium['Cartesian3']['fromDegrees'](_0x2e8591,_0x232fd7,_0x4d2793??this[_0x2f80f3(-0x24f,-0x2a3)]),_0x2dcb78=this[_0x2f80f3(-0x2d8,-0x2d6)]['scene'];if(_0x2dcb78[_0x5b1c26(0x3cd,0x375)]===Cesium['SceneMode'][_0x2f80f3(-0x26b,-0x255)]){const _0x1816bd=new Cesium[(_0x5b1c26(0x3de,0x3e0))](_0x2dcb78[_0x2f80f3(-0x348,-0x2d7)]['ellipsoid'],_0x2dcb78['camera']['positionWC']),_0x3c0233=_0x1816bd['isPointVisible'](_0x223f70);if(!_0x3c0233)return _0x356a96[_0x5b1c26(0x36b,0x320)]=0x0,null;}function _0x5b1c26(_0x539133,_0x48acab){return _0x580342(_0x48acab,_0x539133-0x2b);}function _0x2f80f3(_0x510c2d,_0x5ca455){return _0x5c4e84(_0x5ca455- -0x4c3,_0x510c2d);}const _0x21d4a2=mars3d__namespace[_0x5b1c26(0x33f,0x396)]['toWindowCoordinates'](this[_0x5b1c26(0x334,0x32b)][_0x5b1c26(0x359,0x2f5)],_0x223f70);return _0x21d4a2?[_0x21d4a2['x'],_0x21d4a2['y']]:null;}[_0x5c4e84(0x193,0x112)](){function _0x48a171(_0xfac33c,_0x35bced){return _0x5c4e84(_0x35bced- -0x84,_0xfac33c);}this['windField'][_0x313708(0xfc,0x142)]();function _0x313708(_0x2407b8,_0x33fcea){return _0x580342(_0x33fcea,_0x2407b8- -0x1b3);}delete this[_0x48a171(0x232,0x1ff)];}[_0x5c4e84(0x201,0x1d7)](){function _0x4bb998(_0x24a928,_0x554b26){return _0x580342(_0x24a928,_0x554b26-0xa9);}this[_0x194924(-0x16d,-0xfc)]=new Worker(this[_0x194924(-0xd5,-0x14c)]['worker']);function _0x194924(_0x4bd8c8,_0x4e32f5){return _0x5c4e84(_0x4bd8c8- -0x32d,_0x4e32f5);}this['worker'][_0x194924(-0xba,-0x63)]=_0x2305d2=>{function _0x4a4260(_0xd0217d,_0x597863){return _0x4bb998(_0x597863,_0xd0217d- -0x240);}this[_0x4a4260(0x1bc,0x1d3)](_0x2305d2['data']['particles']),this['_updateIng2']=![];},this['windField']={'init':_0x14a921=>{const _0x2f536a={};_0x2f536a[_0x1218d0(0x243,0x22e)]='init';function _0x222ec6(_0x16b548,_0x15063f){return _0x4bb998(_0x15063f,_0x16b548- -0x3c0);}_0x2f536a['options']=_0x14a921;function _0x1218d0(_0xe6356d,_0x469ef8){return _0x4bb998(_0x469ef8,_0xe6356d- -0x114);}this[_0x1218d0(0x271,0x277)][_0x1218d0(0x2df,0x267)](_0x2f536a);},'setOptions':_0x3d49e0=>{function _0x372be1(_0x422a62,_0x2678c5){return _0x194924(_0x2678c5-0x59a,_0x422a62);}const _0x14d200={};_0x14d200[_0x372be1(0x38d,0x3ff)]='setOptions';function _0x5781e5(_0x5e3918,_0x567490){return _0x4bb998(_0x5e3918,_0x567490- -0x368);}_0x14d200['options']=_0x3d49e0,this[_0x372be1(0x3ed,0x42d)][_0x5781e5(0x62,0x8b)](_0x14d200);},'setDate':_0x48ab56=>{function _0x2803e2(_0x581dfa,_0x476443){return _0x4bb998(_0x476443,_0x581dfa- -0x5fe);}const _0x210e01={};_0x210e01[_0x36a4de(-0x194,-0x1a5)]=_0x36a4de(-0x190,-0x116);function _0x36a4de(_0x4a786a,_0x1d8751){return _0x194924(_0x1d8751- -0xa,_0x4a786a);}_0x210e01['data']=_0x48ab56,this[_0x2803e2(-0x279,-0x2ba)]['postMessage'](_0x210e01);},'update':()=>{function _0x2bd2a6(_0x98fa78,_0x39247c){return _0x4bb998(_0x98fa78,_0x39247c- -0x570);}if(this['_updateIng2'])return;this['_updateIng2']=!![];const _0x30f2af={};_0x30f2af[_0x2bd2a6(-0x25f,-0x219)]='update',this['worker']['postMessage'](_0x30f2af);},'clear':()=>{const _0xd51576={};_0xd51576['type']='clear',this['worker']['postMessage'](_0xd51576);}},this['windField']['init'](this[_0x194924(-0xd5,-0xbd)]);}}mars3d__namespace[_0x5c4e84(0x199,0x18b)]['register']('canvasWind',CanvasWindLayer),mars3d__namespace['layer'][_0x580342(0x391,0x31b)]=CanvasWindLayer,mars3d__namespace['CanvasWindField']=CanvasWindField,mars3d__namespace[_0x580342(0x3e7,0x398)]['logInfo'](_0x5c4e84(0x289,0x30d)+version+_0x580342(0x2c6,0x2ac)+buildTime),mars3d__namespace['WindUtil']=WindUtil,exports[_0x5c4e84(0x1fd,0x1c4)]=CanvasWindField,exports[_0x580342(0x379,0x31b)]=CanvasWindLayer,exports['WindLayer']=WindLayer,exports[_0x5c4e84(0x1cd,0x237)]=WindUtil;const _0x415122={};_0x415122['value']=!![],Object[_0x5c4e84(0x288,0x2c0)](exports,_0x5c4e84(0x23d,0x23b),_0x415122);
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);
15
15
  }));
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "mars3d-wind",
3
- "version": "3.11.3",
3
+ "version": "3.11.4",
4
4
  "description": "Mars3D平台插件,支持气象 风向图 功能插件",
5
5
  "main": "./mars3d-wind.js",
6
6
  "peerDependencies": {},
7
7
  "devDependencies": {
8
- "mars3d": "~3.11.3"
8
+ "mars3d": "~3.11.4"
9
9
  },
10
10
  "scripts": {
11
11
  "lint": "eslint ./src/**/*.{js,ts} --fix"