2025-11-19 10:36:20 +08:00
/*! update time: 2025/11/18 18:12:05*/ ! function ( e ) { var t = { } ; function i ( n ) { if ( t [ n ] ) return t [ n ] . exports ; var o = t [ n ] = { i : n , l : ! 1 , exports : { } } ; return e [ n ] . call ( o . exports , o , o . exports , i ) , o . l = ! 0 , o . exports } i . m = e , i . c = t , i . d = function ( e , t , n ) { i . o ( e , t ) || Object . defineProperty ( e , t , { enumerable : ! 0 , get : n } ) } , i . r = function ( e ) { "undefined" != typeof Symbol && Symbol . toStringTag && Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) , Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) } , i . t = function ( e , t ) { if ( 1 & t && ( e = i ( e ) ) , 8 & t ) return e ; if ( 4 & t && "object" == typeof e && e && e . _ _esModule ) return e ; var n = Object . create ( null ) ; if ( i . r ( n ) , Object . defineProperty ( n , "default" , { enumerable : ! 0 , value : e } ) , 2 & t && "string" != typeof e ) for ( var o in e ) i . d ( n , o , function ( t ) { return e [ t ] } . bind ( null , o ) ) ; return n } , i . n = function ( e ) { var t = e && e . _ _esModule ? function ( ) { return e . default } : function ( ) { return e } ; return i . d ( t , "a" , t ) , t } , i . o = function ( e , t ) { return Object . prototype . hasOwnProperty . call ( e , t ) } , i . p = "" , i ( i . s = 41 ) } ( [ function ( e , t , i ) { var n = i ( 42 ) ( ) ; e . exports = n ; try { regeneratorRuntime = n } catch ( e ) { "object" == typeof globalThis ? globalThis . regeneratorRuntime = n : Function ( "r" , "regeneratorRuntime = r" ) ( n ) } } , function ( e , t ) { e . exports = function ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } , e . exports . _ _esModule = ! 0 , e . exports . default = e . exports } , function ( e , t , i ) { var n = i ( 36 ) ; function o ( e , t ) { for ( var i = 0 ; i < t . length ; i ++ ) { var o = t [ i ] ; o . enumerable = o . enumerable || ! 1 , o . configurable = ! 0 , "value" in o && ( o . writable = ! 0 ) , Object . defineProperty ( e , n ( o . key ) , o ) } } e . exports = function ( e , t , i ) { return t && o ( e . prototype , t ) , i && o ( e , i ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , e } , e . exports . _ _esModule = ! 0 , e . exports . default = e . exports } , function ( e , t ) { function i ( e , t , i , n , o , s , a ) { try { var r = e [ s ] ( a ) , l = r . value } catch ( e ) { return void i ( e ) } r . done ? t ( l ) : Promise . resolve ( l ) . then ( n , o ) } e . exports = function ( e ) { return function ( ) { var t = this , n = arguments ; return new Promise ( ( function ( o , s ) { var a = e . apply ( t , n ) ; function r ( e ) { i ( a , o , s , r , l , "next" , e ) } function l ( e ) { i ( a , o , s , r , l , "throw" , e ) } r ( void 0 ) } ) ) } } , e . exports . _ _esModule = ! 0 , e . exports . default = e . exports } , function ( e , t , i ) { var n = i ( 33 ) ; e . exports = function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" ) ; e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && n ( e , t ) } , e . exports . _ _esModule = ! 0 , e . exports . default = e . exports } , function ( e , t ) { function i ( t ) { return e . exports = i = Object . setPrototypeOf ? Object . getPrototypeOf . bind ( ) : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } , e . exports . _ _esModule = ! 0 , e . exports . default = e . exports , i ( t ) } e . exports = i , e . exports . _ _esModule = ! 0 , e . exports . default = e . exports } , function ( e , t , i ) { var n = i ( 47 ) , o = i ( 48 ) , s = i ( 34 ) , a = i ( 49 ) ; e . exports = function ( e ) { return n ( e ) || o ( e ) || s ( e ) || a ( ) } , e . exports . _ _esModule = ! 0 , e . exports . default = e . exports } , function ( e , t , i ) { "use strict" ; i . d ( t , "p" , ( function ( ) { return P } ) ) , i . d ( t , "D" , ( function ( ) { return O } ) ) , i . d ( t , "i" , ( function ( ) { return D } ) ) , i . d ( t , "a" , ( function ( ) { return T } ) ) , i . d ( t , "b" , ( function ( ) { return N } ) ) , i . d ( t , "x" , ( function ( ) { return B } ) ) , i . d ( t , "j" , ( function ( ) { return j } ) ) , i . d ( t , "E" , ( function ( ) { return A } ) ) , i . d ( t , "s" , ( function ( ) { return L } ) ) , i . d ( t , "k" , ( function ( ) { return R } ) ) , i . d ( t , "y" , ( function ( ) { return I } ) ) , i . d ( t , "v" , ( function ( ) { return z } ) ) , i . d ( t , "f" , ( function ( ) { return F } ) ) , i . d ( t , "g" , ( function ( ) { return H } ) ) , i . d ( t , "c" , ( function ( ) { return V } ) ) , i . d ( t , "d" , ( function ( ) { return W } ) ) , i . d ( t , "r" , ( function ( ) { return G } ) ) , i . d ( t , "t" , ( function ( ) { return U } ) ) , i . d ( t , "o" , ( function ( ) { return Y } ) ) , i . d ( t , "B" , ( function ( ) { return J } ) ) , i . d ( t , "q" , ( function ( ) { return X } ) ) , i . d ( t , "C" , ( function ( ) { return Z } ) ) , i . d ( t , "e" , ( function ( ) { return K } ) ) , i . d ( t , "G" , ( function ( ) { return Q } ) ) , i . d ( t , "F" , ( function ( ) { return $ } ) ) , i . d ( t , "u" , ( function ( ) { return p } ) ) , i . d ( t , "H" , ( function ( ) { return d } ) ) , i . d ( t , "m" , ( function ( ) { return ee } ) ) , i . d ( t , "z" , ( function ( ) { return te } ) ) , i . d ( t , "n" , ( function ( ) { return ie } ) ) , i . d ( t , "A" , ( function ( ) { return ne } ) ) , i . d ( t , "l" , ( function ( ) { return oe } ) ) , i . d ( t , "w" , ( function ( ) { return se } ) ) , i . d ( t , "h" , ( function ( ) { return ae } ) ) ; var n = i ( 18 ) , o = i . n ( n ) , s = i ( 3 ) , a = i . n ( s ) , r
2025-08-29 09:35:52 +08:00
/ * *
* [ js - md5 ] { @ link https : //github.com/emn178/js-md5}
*
* @ namespace md5
* @ version 0.7 . 3
* @ author Chen , Yi - Cyuan [ emn178 @ gmail . com ]
* @ copyright Chen , Yi - Cyuan 2014 - 2017
* @ license MIT
2025-11-19 10:36:20 +08:00
* /!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__(52),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ ".split(" "),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return" [ object Array ] "===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return" object "==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(t){return new Md5(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod(" hex ");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var i=OUTPUT_TYPES[t];e[i]=createOutputMethod(i)}return e},nodeWrap=function(method){var crypto=eval(" require ( 'crypto' ) "),Buffer=eval(" require ( 'buffer' ) . Buffer "),nodeMethod=function(e){if(" string "==typeof e)return crypto.createHash(" md5 ").update(e," utf8 ").digest(" hex ");if(null==e)throw ERROR;return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(" md5 ").update(new Buffer(e)).digest(" hex "):method(e)};return nodeMethod};function Md5(e){if(e)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(e){if(!this.finalized){var t,i=typeof e;if(" string "!==i){if(" object " !== i ) throw ERROR ; if ( null === e ) throw ERROR ; if ( ARRAY _BUFFER && e . constructor === ArrayBuffer ) e = new Uint8Array ( e ) ; else if ( ! ( Array . isArray ( e ) || ARRAY _BUFFER && ArrayBuffer . isView ( e ) ) ) throw ERROR ; t = ! 0 } for ( var n , o , s = 0 , a = e . length , r = this . blocks , l = this . buffer8 ; s < a ; ) { if ( this . hashed && ( this . hashed = ! 1 , r [ 0 ] = r [ 16 ] , r [ 16 ] = r [ 1 ] = r [ 2 ] = r [ 3 ] = r [ 4 ] = r [ 5 ] = r [ 6 ] = r [ 7 ] = r [ 8 ] = r [ 9 ] = r [ 10 ] = r [ 11 ] = r [ 12 ] = r [ 13 ] = r [ 14 ] = r [ 15 ] = 0 ) , t ) if ( ARRAY _BUFFER ) for ( o = this . start ; s < a && o < 64 ; ++ s ) l [ o ++ ] = e [ s ] ; else for ( o = this . start ; s < a && o < 64 ; ++ s ) r [ o >> 2 ] |= e [ s ] << SHIFT [ 3 & o ++ ] ; else if ( ARRAY _BUFFER ) for ( o = this . start ; s < a && o < 64 ; ++ s ) ( n = e . charCodeAt ( s ) ) < 128 ? l [ o ++ ] = n : n < 2048 ? ( l [ o ++ ] = 192 | n >> 6 , l [ o ++ ] = 128 | 63 & n ) : n < 55296 || n >= 57344 ? ( l [ o ++ ] = 224 | n >> 12 , l [ o ++ ] = 128 | n >> 6 & 63 , l [ o ++ ] = 128 | 63 & n ) : ( n = 65536 + ( ( 1023 & n ) << 10 | 1023 & e . charCodeAt ( ++ s ) ) , l [ o ++ ] = 240 | n >> 18 , l [ o ++ ] = 128 | n >> 12 & 63 , l [ o ++ ] = 128 | n >> 6 & 63 , l [ o ++ ] = 128 | 63 & n ) ; else for ( o = this . start ; s < a && o < 64 ; ++ s ) ( n = e . charCodeAt ( s ) ) < 128 ? r [ o >> 2 ] |= n << SHIFT [ 3 & o ++ ] : n < 2048 ? ( r [ o >> 2 ] |= ( 192 | n >> 6 ) << SHIFT [ 3 & o ++ ] , r [ o >> 2 ] |= ( 128 | 63 & n ) << SHIFT [ 3 & o ++ ] ) : n < 55296 || n >= 57344 ? ( r [ o >> 2 ] |= ( 224 | n >> 12 ) << SHIFT [ 3 & o ++ ] , r [ o >> 2 ] |= ( 128 | n >> 6 & 63 ) << SHIFT [ 3 & o ++ ] , r [ o >> 2 ] |= ( 128 | 63 & n ) << SHIFT [ 3 & o ++ ] ) : ( n = 65536 + ( ( 1023 & n ) << 10 | 1023 & e . charCodeAt ( ++ s ) ) , r [ o >> 2 ] |= ( 240 | n >> 18 ) << SHIFT [ 3 & o ++ ] , r [ o >> 2 ] |= ( 128 | n >> 12 & 63 ) << SHIFT [ 3 & o ++ ] , r [ o >> 2 ] |= ( 128 | n >> 6 & 63 ) << SHIFT [ 3 & o ++ ] , r [ o >> 2 ] |= ( 128 | 63 & n ) << SHIFT [ 3 & o ++ ] ) ; this . lastByteIndex = o , this . bytes += o - this . start , o >= 64 ? ( this . start = o - 64 , this . hash ( ) , this . hashed = ! 0 ) : this . start = o } return this . bytes > 4294967295 && ( this . hBytes += th
2025-11-14 18:15:28 +08:00
return t . translation = Cesium . Cartesian3 . fromElements ( 0 , 0 , 0 ) , t . rotation = Cesium . Quaternion . fromHeadingPitchRoll ( e ) , Cesium . Matrix4 . fromTranslationRotationScale ( t ) } , c = function ( e , i ) { e . _billboard . id = t . options . id ; var n = e . position ; Cesium . Cartesian3 . normalize ( n , r ) , Cesium . Cartesian3 . multiplyByScalar ( r , l * i , r ) , e . velocity = Cesium . Cartesian3 . add ( e . velocity , r , e . velocity ) } , t = this , this . originalOptions = this . deepCopyObj ( this . options ) , i = this . sdk . viewer . scene , new Cesium . Cartesian3 , n = Cesium . Cartographic . fromDegrees ( this . options . lng , this . options . lat , this . options . alt ) , o = this . sdk . viewer . scene . globe . ellipsoid . cartographicToCartesian ( n ) , s = Cesium . Transforms . eastNorthUpToFixedFrame ( o ) , Cesium . Matrix4 . multiplyByScale ( s , new Cesium . Cartesian3 ( 1 , 1 , 1 ) , s ) , a = this . sdk . viewer . camera . positionCartographic . height , this . particleSystem = i . primitives . add ( new Cesium . ParticleSystem ( { show : ! ( a >= 1e7 ) && this . options . show , image : this . options . url || this . getSourceRootPath ( ) + "/img/particlesystem/fountain.png" , startColor : Cesium . Color . fromCssColorString ( this . options . startColor ) , endColor : Cesium . Color . fromCssColorString ( this . options . endColor ) , startScale : this . options . startScale , endScale : this . options . endScale , minimumParticleLife : this . options . minimumParticleLife , maximumParticleLife : this . options . maximumParticleLife , minimumSpeed : this . options . minimumSpeed , maximumSpeed : this . options . maximumSpeed , lifetime : . 5 , imageSize : new Cesium . Cartesian2 ( this . options . particleSize , 2 * this . options . particleSize ) , sizeInMeters : ! 0 , emissionRate : this . options . emissionRate , loop : ! 0 , emitter : new Cesium . ConeEmitter ( Cesium . Math . toRadians ( . 2 ) ) , modelMatrix : s , emitterModelMatrix : u ( ) , updateCallback : c } ) ) , r = new Cesium . Cartesian3 , l = - 3.5 , this . particleSystem . id = this . options . id , this . entity = this . particleSystem , this . entity . position = { lng : this . options . lng , lat : this . options . lat , alt : this . options . alt } , Object ( J . g ) ( this . sdk , this . options . id ) , this . options . show && Object ( Z . f ) ( 0 , this . options . id ) , this . sdk . viewer . camera . changed . addEventListener ( ( function ( ) { if ( h . entity && h . show ) { var e = h . sdk . viewer . camera . positionCartographic . height ; h . entity . show = ! ( e >= 1e7 ) } } ) ) ; case 21 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) ) , function ( ) { return s . apply ( this , arguments ) } ) } , { key : "flyTo" , value : ( o = _ ( ) ( S . a . mark ( ( function e ( ) { var t , i , n , o , s , a , r , l = arguments ; return S . a . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : if ( t = l . length > 0 && void 0 !== l [ 0 ] ? l [ 0 ] : { } , ! this . _error ) { e . next = 3 ; break } return e . abrupt ( "return" ) ; case 3 : if ( Object ( X . w ) ( 0 ) , Object ( X . f ) ( this . sdk ) , Object ( X . g ) ( this . sdk ) , ! ( this . options . customView && this . options . customView . relativePosition && this . options . customView . orientation ) ) { e . next = 25 ; break } if ( i = { heading : Cesium . Math . toRadians ( this . options . customView . orientation . heading || 0 ) , pitch : Cesium . Math . toRadians ( this . options . customView . orientation . pitch || - 60 ) , roll : Cesium . Math . toRadians ( this . options . customView . orientation . roll || 0 ) } , n = this . options . customView . relativePosition . lng , o = this . options . customView . relativePosition . lat , s = this . options . customView . relativePosition . alt , a = Cesium . Cartesian3 . fromDegrees ( n , o , s ) , r = { lng : 0 , lat : 0 } , this . options . position ? r = jr ( { } , this . options . position ) : this . options . positions ? r = jr ( { } , this . options . positions [ 0 ] ) : this . options . center ? r = jr ( { } , this . options . center ) : ( this . options . hasOwnProperty ( "lng" ) && ( r . lng = this . options . lng ) , this . options . hasOwnProperty ( "lat" ) && ( r . lat = this . options . lat ) , this . options . hasOwnProperty ( "alt" ) && ( r . alt = this . options . alt ) ) , r . hasOwnProperty ( "alt" ) ) { e . next = 18 ; break } return e . next = 17 , this . getClampToHeight ( r ) ; case 17 : r . alt = e . sent ; case 18 : n = this . options . customView . relativePosition . lng + r . lng , o = this . options . customView . relativePosition . lat + r . lat , s = this . options . customView . relativePosition . alt + r . alt , a = Cesium . Cartesian3 . fromDegrees ( n , o , s ) , this . sdk . viewer . camera . flyTo ( { destination : a , orientation : i } ) , e . next = 26 ; break ; case 25 : this . sdk . viewer . camera . flyTo ( { destination : Cesium . Cartesian3 . fromDegrees ( this . options . lng , this . options . lat , this . options . alt + 500 ) , orientation : t . orientation || { heading : Cesium . Math . toRadians ( 0 ) , pitch : Cesium . Math . toRadians ( - 90 ) , roll : Cesium . Math . toRadians ( 0 ) } } ) ; case 26 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) ) , function ( ) { return o . apply ( this , argumen
return i . translation = Cesium . Cartesian3 . fromElements ( 0 , 0 , 1 ) , i . rotation = Cesium . Quaternion . fromHeadingPitchRoll ( e ) , Cesium . Matrix4 . fromTranslationRotationScale ( i ) } , g = function ( e , i ) { e . _billboard . id = t . options . id ; var n = e . position ; Cesium . Cartesian3 . normalize ( n , a ) , Cesium . Cartesian3 . multiplyByScalar ( a , r * i , a ) , e . velocity = Cesium . Cartesian3 . add ( e . velocity , a , e . velocity ) } , t = this , this . originalOptions = this . deepCopyObj ( this . options ) , i = this . sdk . viewer . scene , n = Cesium . Cartographic . fromDegrees ( this . options . start . lng , this . options . start . lat , this . options . start . alt ) , o = this . sdk . viewer . scene . globe . ellipsoid . cartographicToCartesian ( n ) , s = Cesium . Transforms . eastNorthUpToFixedFrame ( o ) , Cesium . Matrix4 . multiplyByScale ( s , new Cesium . Cartesian3 ( 1 , 1 , 1 ) , s ) , a = new Cesium . Cartesian3 , r = - 3.8 , l = Cesium . Cartesian3 . fromDegrees ( this . options . start . lng , this . options . start . lat , this . options . start . alt ) , c = Cesium . Cartesian3 . fromDegrees ( this . options . end . lng , this . options . end . lat , this . options . end . alt ) , this . options . heading || 0 === this . options . heading || ( this . options . heading = b ( l , c ) ) , u = this . options . end . alt - this . options . start . alt , h = Cesium . Cartesian3 . distance ( l , Cesium . Cartesian3 . fromDegrees ( this . options . end . lng , this . options . end . lat , this . options . start . alt ) ) , p = u ? 2 * u / h : 0 , d = Math . atan ( p ) * ( 180 / Math . PI ) , m = Math . sqrt ( Math . abs ( p ) * h / - r ) , f = - r * m / Math . abs ( Math . cos ( d ) ) , this . options . pitch || 0 === this . options . pitch || ( this . options . pitch = 90 - d ) , this . options . speed || 0 === this . options . speed || ( this . options . speed = f ) , v = this . sdk . viewer . camera . positionCartographic . height , this . particleSystem = i . primitives . add ( new Cesium . ParticleSystem ( { show : ! ( v >= 1e7 ) && this . options . show , image : this . options . url || this . getSourceRootPath ( ) + "/img/particlesystem/smoke.png" , startColor : Cesium . Color . fromCssColorString ( this . options . startColor ) , endColor : Cesium . Color . fromCssColorString ( this . options . endColor ) , startScale : this . options . startScale , endScale : this . options . endScale , minimumParticleLife : this . options . minimumParticleLife , maximumParticleLife : this . options . maximumParticleLife , minimumSpeed : this . options . speed , maximumSpeed : this . options . speed , lifetime : . 5 , imageSize : new Cesium . Cartesian2 ( this . options . particleSize , 2 * this . options . particleSize ) , sizeInMeters : ! 0 , emissionRate : this . options . emissionRate , loop : ! 0 , emitter : new Cesium . CircleEmitter ( . 2 ) , modelMatrix : s , emitterModelMatrix : y ( ) , updateCallback : g } ) ) , this . particleSystem . id = this . options . id , this . entity = this . particleSystem , this . entity . position = { lng : this . options . start . lng , lat : this . options . start . lat , alt : this . options . start . alt } , Object ( J . g ) ( this . sdk , this . options . id ) , this . options . show && Object ( Z . f ) ( 0 , this . options . id ) , this . sdk . viewer . camera . changed . addEventListener ( ( function ( ) { if ( C . entity && C . show ) { var e = C . sdk . viewer . camera . positionCartographic . height ; C . entity . show = ! ( e >= 1e7 ) } } ) ) ; case 31 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) ) , function ( ) { return s . apply ( this , arguments ) } ) } , { key : "flyTo" , value : ( o = _ ( ) ( S . a . mark ( ( function e ( ) { var t , i , n , o , s , a , r , l = arguments ; return S . a . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : if ( t = l . length > 0 && void 0 !== l [ 0 ] ? l [ 0 ] : { } , Object ( X . w ) ( 0 ) , Object ( X . f ) ( this . sdk ) , Object ( X . g ) ( this . sdk ) , ! ( this . options . customView && this . options . customView . relativePosition && this . options . customView . orientation ) ) { e . next = 23 ; break } if ( i = { heading : Cesium . Math . toRadians ( this . options . customView . orientation . heading || 0 ) , pitch : Cesium . Math . toRadians ( this . options . customView . orientation . pitch || - 60 ) , roll : Cesium . Math . toRadians ( this . options . customView . orientation . roll || 0 ) } , n = this . options . customView . relativePosition . lng , o = this . options . customView . relativePosition . lat , s = this . options . customView . relativePosition . alt , a = Cesium . Cartesian3 . fromDegrees ( n , o , s ) , r = { lng : 0 , lat : 0 } , this . options . position ? r = Hr ( { } , this . options . position ) : this . options . positions ? r = Hr ( { } , this . options . positions [ 0 ] ) : this . options . line && this . options . line . positions ? r = Hr ( { } , this . options . line . positions [ 0 ] ) : this . options . center ? r = Hr ( { } , this . options . center ) : this . options . start ? r = Hr ( { } , this . options . start ) : ( this . options . hasOwnProperty ( "lng" ) && ( r . lng = this . options . lng ) , this . options . hasOwnProperty ( "lat" ) && ( r . lat = this . options . lat ) , this . options . hasOwnProperty ( "alt" ) && ( r . alt = this . options . alt ) ) , r . ha
2025-09-25 16:21:00 +08:00
i . translation = Cesium . Cartesian3 . fromElements ( 0 , 0 , 1 ) , i . rotation = Cesium . Quaternion . fromHeadingPitchRoll ( t ) ; var n = Cesium . Matrix4 . fromTranslationRotationScale ( i ) ; this . particleSystem . emitterModelMatrix = n , this . _elms . heading && this . _elms . heading . forEach ( ( function ( t ) { t . value = Number ( e ) } ) ) } } , { key : "pitch" , get : function ( ) { return this . options . pitch } , set : function ( e ) { this . options . pitch = Number ( e ) ; var t = Cesium . HeadingPitchRoll . fromDegrees ( this . options . heading + 90 , this . options . pitch , 0 ) , i = new Cesium . TranslationRotationScale ; //!!!发射粒子的方向
2025-11-14 18:15:28 +08:00
i . translation = Cesium . Cartesian3 . fromElements ( 0 , 0 , 1 ) , i . rotation = Cesium . Quaternion . fromHeadingPitchRoll ( t ) ; var n = Cesium . Matrix4 . fromTranslationRotationScale ( i ) ; this . particleSystem . emitterModelMatrix = n , this . _elms . pitch && this . _elms . pitch . forEach ( ( function ( t ) { t . value = Number ( e ) } ) ) } } , { key : "edit" , value : ( n = _ ( ) ( S . a . mark ( ( function e ( ) { var i , n , o , s , a , r = this , l = arguments ; return S . a . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : if ( i = l . length > 0 && void 0 !== l [ 0 ] && l [ 0 ] , this . originalOptions = this . deepCopyObj ( this . options ) , this . _DialogObject && this . _DialogObject . close && ( this . _DialogObject . close ( ) , this . _DialogObject = null ) , ! i ) { e . next = 20 ; break } return e . next = 7 , new Be ( this . sdk , this . originalOptions , { title : "喷射水柱属性" , left : "180px" , top : "100px" , confirmCallBack : function ( e ) { r . name = r . name . trim ( ) , r . name || ( r . name = "未命名对象" ) , r . originalOptions = r . deepCopyObj ( r . options ) , r . _DialogObject . close ( ) , r . Dialog . confirmCallBack && r . Dialog . confirmCallBack ( r . originalOptions ) , Object ( J . g ) ( r . sdk , r . options . id ) , Object ( Z . g ) ( r . sdk , r . options . id ) } , resetCallBack : function ( ) { r . reset ( ) , r . Dialog . resetCallBack && r . Dialog . resetCallBack ( ) } , removeCallBack : function ( ) { r . Dialog . removeCallBack && r . Dialog . removeCallBack ( ) } , closeCallBack : function ( ) { r . reset ( ) , r . positionEditing = ! 1 , r . Dialog . closeCallBack && r . Dialog . closeCallBack ( ) } , showCallBack : function ( e ) { r . show = e , r . Dialog . showCallBack && r . Dialog . showCallBack ( ) } , translationalCallBack : function ( ) { r . positionEditing = ! r . positionEditing } } , ! 0 ) ; case 7 : this . _DialogObject = e . sent , this . _DialogObject . _element . body . className = this . _DialogObject . _element . body . className + " particle-effects" , ( n = document . createElement ( "div" ) ) . innerHTML = ' \ n < span class = "custom-divider" > < / s p a n > \ n < d i v c l a s s = " d i v - i t e m " > \ n < d i v c l a s s = " r o w " > \ n < d i v c l a s s = " c o l " > \ n < s p a n c l a s s = " l a b e l " > 名 称 < / s p a n > \ n < i n p u t s t y l e = " w i d t h : 1 7 5 p x ; " c l a s s = " i n p u t " t y p e = " t e x t " @ m o d e l = " n a m e " > \ n < / d i v > \ n < d i v c l a s s = " c o l " > \ n < / d i v > \ n < / d i v > \ n < / d i v > \ n < s p a n c l a s s = " c u s t o m - d i v i d e r " > < / s p a n > \ n < d i v c l a s s = " d i v - i t e m " > \ n < d i v c l a s s = " r o w " > \ n < d i v c l a s s = " c o l " > \ n < s p a n c l a s s = " l a b e l " > 经 度 < / s p a n > \ n < i n p u t c l a s s = " i n p u t " t y p e = " n u m b e r " t i t l e = " " m i n = " - 1 8 0 " m a x = " 1 8 0 " @ m o d e l = " l n g " > \ n < / d i v > \ n < d i v c l a s s = " c o l " > \ n < s p a n c l a s s = " l a b e l " > 纬 度 < / s p a n > \ n < i n p u t c l a s s = " i n p u t " t y p e = " n u m b e r " t i t l e = " " m i n = " - 9 0 " m a x = " 9 0 " @ m o d e l = " l a t " > \ n < / d i v > \ n < / d i v > \ n < d i v c l a s s = " r o w " > \ n < d i v c l a s s = " c o l " > \ n < s p a n c l a s s = " l a b e l " > 高 度 < / s p a n > \ n < d i v c l a s s = " i n p u t - n u m b e r i n p u t - n u m b e r - u n i t - 1 " > \ n < i n p u t c l a s s = " i n p u t " t y p e = " n u m b e r " t i t l e = " " m i n = " - 9 9 9 9 9 9 9 " m a x = " 9 9 9 9 9 9 9 9 9 " @ m o d e l = " a l t " > \ n < s p a n c l a s s = " u n i t " > m < / s p a n > \ n < s p a n c l a s s = " a r r o w " > < / s p a n > \ n < / d i v > \ n < / d i v > \ n < d i v c l a s s = " c o l " > \ n < d i v c l a s s = " r o w " > \ n < d i v c l a s s = " c o l " > \ n < s p a n c l a s s = " l a b e l " > 起 始 颜 色 < / s p a n > \ n < d i v c l a s s = " s t a r t _ c o l o r " > < / d i v > \ n < / d i v > \ n < d i v c l a s s = " c o l " s t y l e = " m a r g i n : 0 ; j u s t i f y - c o n t e n t : f l e x - e n d ; " > \ n < s p a n c l a s s = " l a b e l " > 结 束 颜 色 < / s p a n > \ n < d i v c l a s s = " e n d _ c o l o r " > < / d i v > \ n < / d i v > \ n < / d i v > \ n < / d i v > \ n < / d i v > \ n < / d i v > \ n < s p a n c l a s s = " c u s t o m - d i v i d e r " > < / s p a n > \ n < d i v c l a s s = " d i v - i t e m " > \ n < d i v c l a s s = " r o w " > \ n < d i v c l a s s = " c o l " > \ n < d i v c l a s s = " r o w " > \ n < s p a n > 速 度 < / s p a n > \ n < i n p u t t y p e = " r a n g e " m a x = " 3 0 " m i n = " 0 " s t e p = " 0 . 1 " @ m o d e l = " s p e e d " > \ n < / d i v > \ n < / d i v > \ n < d i v c l a s s = " c o l " > \ n < d i v c l a s s = " r o w " > \ n < s p a n > 发 射 速 率 ( 个 / 秒 ) < / s p a n > \ n < i n p u t t y p e = " r a n g e " m a x = " 1 0 0 " m i n = " 0 " s t e p = " 1 " @ m o d e l = " e m i s s i o n R a t e " > \ n < / d i v > \ n < / d i v > \ n
2025-08-29 09:35:52 +08:00
/ * *
* @ license
* Copyright 2010 - 2024 Three . js Authors
* SPDX - License - Identifier : MIT
2025-11-14 18:15:28 +08:00
* / ( ) ? R e f l e c t . c o n s t r u c t ( t , i | | [ ] , O e ( ) ( e ) . c o n s t r u c t o r ) : t . a p p l y ( e , i ) ) } v a r p u = 1 0 1 4 , d u = 1 0 2 0 , m u = 2 4 0 0 , f u = 2 4 0 1 , v u = " s r g b " , g u = " s r g b - l i n e a r " , y u = " d i s p l a y - p 3 " , b u = " d i s p l a y - p 3 - l i n e a r " , C u = " l i n e a r " , w u = " s r g b " , k u = " r e c 7 0 9 " , _ u = 7 6 8 0 , x u = 3 5 0 4 4 , S u = 2 e 3 , E u = 2 0 0 1 , P u = f u n c t i o n ( ) { r e t u r n h ( ) ( ( f u n c t i o n e ( ) { c ( ) ( t h i s , e ) } ) , [ { k e y : " a d d E v e n t L i s t e n e r " , v a l u e : f u n c t i o n ( e , t ) { v o i d 0 = = = t h i s . _ l i s t e n e r s & & ( t h i s . _ l i s t e n e r s = { } ) ; v a r i = t h i s . _ l i s t e n e r s ; v o i d 0 = = = i [ e ] & & ( i [ e ] = [ ] ) , - 1 = = = i [ e ] . i n d e x O f ( t ) & & i [ e ] . p u s h ( t ) } } , { k e y : " h a s E v e n t L i s t e n e r " , v a l u e : f u n c t i o n ( e , t ) { i f ( v o i d 0 = = = t h i s . _ l i s t e n e r s ) r e t u r n ! 1 ; v a r i = t h i s . _ l i s t e n e r s ; r e t u r n v o i d 0 ! = = i [ e ] & & - 1 ! = = i [ e ] . i n d e x O f ( t ) } } , { k e y : " r e m o v e E v e n t L i s t e n e r " , v a l u e : f u n c t i o n ( e , t ) { i f ( v o i d 0 ! = = t h i s . _ l i s t e n e r s ) { v a r i = t h i s . _ l i s t e n e r s [ e ] ; i f ( v o i d 0 ! = = i ) { v a r n = i . i n d e x O f ( t ) ; - 1 ! = = n & & i . s p l i c e ( n , 1 ) } } } } , { k e y : " d i s p a t c h E v e n t " , v a l u e : f u n c t i o n ( e ) { i f ( v o i d 0 ! = = t h i s . _ l i s t e n e r s ) { v a r t = t h i s . _ l i s t e n e r s [ e . t y p e ] ; i f ( v o i d 0 ! = = t ) { e . t a r g e t = t h i s ; f o r ( v a r i = t . s l i c e ( 0 ) , n = 0 , o = i . l e n g t h ; n < o ; n + + ) i [ n ] . c a l l ( t h i s , e ) ; e . t a r g e t = n u l l } } } } ] ) } ( ) , O u = [ " 0 0 " , " 0 1 " , " 0 2 " , " 0 3 " , " 0 4 " , " 0 5 " , " 0 6 " , " 0 7 " , " 0 8 " , " 0 9 " , " 0 a " , " 0 b " , " 0 c " , " 0 d " , " 0 e " , " 0 f " , " 1 0 " , " 1 1 " , " 1 2 " , " 1 3 " , " 1 4 " , " 1 5 " , " 1 6 " , " 1 7 " , " 1 8 " , " 1 9 " , " 1 a " , " 1 b " , " 1 c " , " 1 d " , " 1 e " , " 1 f " , " 2 0 " , " 2 1 " , " 2 2 " , " 2 3 " , " 2 4 " , " 2 5 " , " 2 6 " , " 2 7 " , " 2 8 " , " 2 9 " , " 2 a " , " 2 b " , " 2 c " , " 2 d " , " 2 e " , " 2 f " , " 3 0 " , " 3 1 " , " 3 2 " , " 3 3 " , " 3 4 " , " 3 5 " , " 3 6 " , " 3 7 " , " 3 8 " , " 3 9 " , " 3 a " , " 3 b " , " 3 c " , " 3 d " , " 3 e " , " 3 f " , " 4 0 " , " 4 1 " , " 4 2 " , " 4 3 " , " 4 4 " , " 4 5 " , " 4 6 " , " 4 7 " , " 4 8 " , " 4 9 " , " 4 a " , " 4 b " , " 4 c " , " 4 d " , " 4 e " , " 4 f " , " 5 0 " , " 5 1 " , " 5 2 " , " 5 3 " , " 5 4 " , " 5 5 " , " 5 6 " , " 5 7 " , " 5 8 " , " 5 9 " , " 5 a " , " 5 b " , " 5 c " , " 5 d " , " 5 e " , " 5 f " , " 6 0 " , " 6 1 " , " 6 2 " , " 6 3 " , " 6 4 " , " 6 5 " , " 6 6 " , " 6 7 " , " 6 8 " , " 6 9 " , " 6 a " , " 6 b " , " 6 c " , " 6 d " , " 6 e " , " 6 f " , " 7 0 " , " 7 1 " , " 7 2 " , " 7 3 " , " 7 4 " , " 7 5 " , " 7 6 " , " 7 7 " , " 7 8 " , " 7 9 " , " 7 a " , " 7 b " , " 7 c " , " 7 d " , " 7 e " , " 7 f " , " 8 0 " , " 8 1 " , " 8 2 " , " 8 3 " , " 8 4 " , " 8 5 " , " 8 6 " , " 8 7 " , " 8 8 " , " 8 9 " , " 8 a " , " 8 b " , " 8 c " , " 8 d " , " 8 e " , " 8 f " , " 9 0 " , " 9 1 " , " 9 2 " , " 9 3 " , " 9 4 " , " 9 5 " , " 9 6 " , " 9 7 " , " 9 8 " , " 9 9 " , " 9 a " , " 9 b " , " 9 c " , " 9 d " , " 9 e " , " 9 f " , " a 0 " , " a 1 " , " a 2 " , " a 3 " , " a 4 " , " a 5 " , " a 6 " , " a 7 " , " a 8 " , " a 9 " , " a a " , " a b " , " a c " , " a d " , " a e " , " a f " , " b 0 " , " b 1 " , " b 2 " , " b 3 " , " b 4 " , " b 5 " , " b 6 " , " b 7 " , " b 8 " , " b 9 " , " b a " , " b b " , " b c " , " b d " , " b e " , " b f " , " c 0 " , " c 1 " , " c 2 " , " c 3 " , " c 4 " , " c 5 " , " c 6 " , " c 7 " , " c 8 " , " c 9 " , " c a " , " c b " , " c c " , " c d " , " c e " , " c f " , " d 0 " , " d 1 " , " d 2 " , " d 3 " , " d 4 " , " d 5 " , " d 6 " , " d 7 " , " d 8 " , " d 9 " , " d a " , " d b " , " d c " , " d d " , " d e " , " d f " , " e 0 " , " e 1 " , " e 2 " , " e 3 " , " e 4 " , " e 5 " , " e 6 " , " e 7 " , " e 8 " , " e 9 " , " e a " , " e b " , " e c " , " e d " , " e e " , " e f " , " f 0 " , " f 1 " , " f 2 " , " f 3 " , " f 4 " , " f 5 " , " f 6 " , " f 7 " , " f 8 " , " f 9 " , " f a " , " f b " , " f c " , " f d " , " f e " , " f f " ] , D u = M a t h . P I / 1 8 0 ; M a t h . P I ; f u n c t i o n M u ( ) { v a r e = 4 2 9 4 9 6 7 2 9 5 * M a t h . r a n d o m ( ) | 0 , t = 4 2 9 4 9 6 7 2 9 5 * M a t h . r a n d o m ( ) | 0 , i = 4 2 9 4 9 6 7 2 9 5 * M a t h . r a n d o m ( ) | 0 , n = 4 2 9 4 9 6 7 2 9 5 * M a t h . r a n d o m ( ) | 0 ; r e t u r n ( O u [ 2 5 5 & e ] + O u [ e > > 8 & 2 5 5 ] + O u [ e > > 1 6 & 2 5 5 ] + O u [ e > > 2 4 & 2 5 5 ] + " - " + O u [ 2 5 5 & t ] + O u [ t > > 8 & 2 5 5 ] + " - " + O u [ t > > 1 6 & 1 5 | 6 4 ] + O u [ t > > 2 4 & 2 5 5 ] + " - " + O u [ 6 3 & i | 1 2 8 ] + O u [ i > > 8 & 2 5 5 ] + " - " + O u [ i > > 1 6 & 2 5 5 ] + O u [ i > > 2 4 & 2 5 5 ] + O u [ 2 5 5 & n ] + O u [ n > > 8 & 2 5 5 ] + O u [ n > > 1 6 & 2 5 5 ] + O u [ n > > 2 4 & 2 5 5 ] ) . t o L o w e r C a s e ( ) } f u n c t i o n T u ( e , t , i ) { r e t u r n M a t h . m a x ( t , M a t h . m i n ( i , e ) ) } f u n c t i o n N u ( e , t ) { r e t u r n ( e % t + t ) % t } f u n c t i o n B u ( e , t , i ) { r e t u r n ( 1 - i ) * e + i * t } f u n c t i o n j u ( e , t ) { s w i t c h ( t . c o n s t r u c t o r ) { c a s e F l o a t 3 2 A r r a y : r e t u r n e ; c a s e U i n t 3 2 A r r a y : r e t u r n e / 4 2 9 4 9 6 7 2 9 5 ; c a s e U i n t 1 6 A r r a y : r e t u r n e / 6 5 5 3 5 ; c a s e U i n t 8 A r r a y : r e t u r n e / 2 5 5 ; c a s e I n t 3 2 A r r a y : r e t u r n M a t h . m a x ( e / 2 1 4 7 4 8 3 6 4 7 , - 1 ) ; c a s e I n t 1 6 A r r a y : r e t u r n M a t h . m a x ( e / 3 2 7 6 7 , - 1 ) ; c a s e I n t 8 A r r a y : r e t u r n M a t h . m a x ( e / 1 2 7 , - 1 ) ; d e f a u l t : t h r o w n e w E r r o r ( " I n v a l i d c o m p o n e n t t y p e . " ) } } f u n c t i o n A u ( e , t ) { s w i t c h ( t . c o n s t r u c t o r ) { c a s e F l o a t 3 2 A r r a y : r e t u r n e ; c a s e U i n t 3 2 A r r a y : r e t u r n M a t h . r o u n d ( 4 2 9 4 9 6 7 2 9 5 * e ) ; c a s e U i n t 1 6 A r r a y : r e t u r n M a t h . r o u n d ( 6 5 5 3 5 * e ) ; c a s e U i n t 8 A r r a y : r e t u r n M a t h . r o u n d ( 2 5 5 * e ) ; c a s e I n t 3 2 A r r a y : r e t u r n M a t h . r o u n d ( 2 1 4 7 4 8 3 6 4 7 * e ) ; c a s e I n t 1 6 A r r a y : r e t u r n M a t h . r o u n d ( 3 2 7 6 7 * e ) ; c a s e I n t 8 A r r a y : r e t u r n M a t h . r o u n d ( 1 2 7 * e ) ; d e f a u l t : t h r o w n e w E r r o r ( " I n v a l i d c o m p o n e n t t y p e . " ) } } v a r L u = f u n c t i o n ( ) { r e t u r n h ( ) ( ( f u n c t i o n e ( ) { v a r t = a r g u m e n t s . l e n g t h > 0 & & v o i d 0 ! = = a r g u m e n t s [ 0 ] ? a r g u m e n t s [ 0 ] : 0 , i = a r g u m e n t s . l e n g t h > 1 & & v o i d 0 ! = = a r g u m e n t s [ 1 ] ? a r g u m e n t s [ 1 ] : 0 ; c ( ) ( t h i s , e ) , e . p r o t o t y p e . i s V e c t o r 2 = ! 0 , t h i s . x = t , t h i s . y = i } ) , [ { k e y : " w i d t h " , g e t : f u n c t i o n ( ) { r e t u r n t h i s . x } , s e t : f u n c t i o n ( e ) { t h i s . x = e } } , { k e y : " h e i g h t " , g e t : f u n c t i o n ( ) { r e t u r n t h i s . y } , s e t : f u n c t i o n ( e ) { t h i s . y = e } } , { k e y : " s e t " , v a l u e : f u n c t i o n ( e , t ) { r e t u r n t h i s . x = e , t h i s . y = t , t h i s } } , { k e y : " s e t S c a l a r " , v a l u e : f u n c t i o n ( e ) { r e t u r n t h i s . x = e , t h i s . y = e , t h i s } } , { k e y : " s e t X " , v a l u e : f u n c t i o n ( e ) { r e t u r n t h i s . x = e , t h i s } } , { k e y : " s e t Y " , v a l u e : f