2 lines
3.5 MiB
JavaScript
2 lines
3.5 MiB
JavaScript
|
/* 2020-9-22 15:23:26 | 版权所有 军懋国兴 */
|
||
|
function _typeof2(e){return(_typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t){"object"===("undefined"==typeof exports?"undefined":_typeof2(exports))&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Cesium={})}(this,function(exports){"use strict";function appendForwardSlash(e){return 0!==e.length&&"/"===e[e.length-1]||(e+="/"),e}function defined(e){return null!=e}function DeveloperError(e){var t;this.name="DeveloperError",this.message=e;try{throw new Error}catch(e){t=e.stack}this.stack=t}defined(Object.create)&&(DeveloperError.prototype=Object.create(Error.prototype),DeveloperError.prototype.constructor=DeveloperError),DeveloperError.prototype.toString=function(){var e=this.name+": "+this.message;return defined(this.stack)&&(e+="\n"+this.stack.toString()),e},DeveloperError.throwInstantiationError=function(){throw new DeveloperError("This function defines an interface and should not be called directly.")};var Check={};function getUndefinedErrorMessage(e){return e+" is required, actual value was undefined"}function getFailedTypeErrorMessage(e,t,r){return"Expected "+r+" to be typeof "+t+", actual typeof was "+e}function defaultValue(e,t){return null!=e?e:t}function MersenneTwister(e){null==e&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,this.init_genrand(e)}Check.typeOf={},Check.defined=function(e,t){if(!defined(t))throw new DeveloperError(getUndefinedErrorMessage(e))},Check.typeOf.func=function(e,t){if("function"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(_typeof2(t),"function",e))},Check.typeOf.string=function(e,t){if("string"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(_typeof2(t),"string",e))},Check.typeOf.number=function(e,t){if("number"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(_typeof2(t),"number",e))},Check.typeOf.number.lessThan=function(e,t,r){if(Check.typeOf.number(e,t),r<=t)throw new DeveloperError("Expected "+e+" to be less than "+r+", actual value was "+t)},Check.typeOf.number.lessThanOrEquals=function(e,t,r){if(Check.typeOf.number(e,t),r<t)throw new DeveloperError("Expected "+e+" to be less than or equal to "+r+", actual value was "+t)},Check.typeOf.number.greaterThan=function(e,t,r){if(Check.typeOf.number(e,t),t<=r)throw new DeveloperError("Expected "+e+" to be greater than "+r+", actual value was "+t)},Check.typeOf.number.greaterThanOrEquals=function(e,t,r){if(Check.typeOf.number(e,t),t<r)throw new DeveloperError("Expected "+e+" to be greater than or equal to"+r+", actual value was "+t)},Check.typeOf.object=function(e,t){if("object"!==_typeof2(t))throw new DeveloperError(getFailedTypeErrorMessage(_typeof2(t),"object",e))},Check.typeOf.bool=function(e,t){if("boolean"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(_typeof2(t),"boolean",e))},Check.typeOf.number.equals=function(e,t,r,i){if(Check.typeOf.number(e,r),Check.typeOf.number(t,i),r!==i)throw new DeveloperError(e+" must be equal to "+t+", the actual values are "+r+" and "+i)},defaultValue.EMPTY_OBJECT=Object.freeze({}),MersenneTwister.prototype.init_genrand=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++){e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0}},MersenneTwister.prototype.genrand_int32=function(){var e,t,r=new Array(0,this.MATRIX_A);if(this.mti>=this.N){for(this.mti==this.N+1&&this.init_genrand(5489),t=0;t<this.N-this.M;t++)e=this.mt[t]&this.UPPER_MASK|this.mt[t+1]&this.LOWER_MASK,this.mt[t]=this.mt[t+this.M]^e>>>1^r[1&e];for(;t<this.N-1;t++)e=this.mt[t]&this.UPPER_MASK|this.mt[t+1]&this.LOWER_MASK,this.mt[t]=this.mt[t+(this.M-this.N)]^e>>>1^r[1&
|