wangjuncheng
2 天以前 8adbf886a8062a0c96feadfe701a266601acd134
public/CimSDK/index.js
@@ -1,7 +1,7 @@
/**
 *
 * SmartEarth WebSDK - https://websdk.terra-it.cn
 * Version 5.4.1
 * Version 5.4.1.2
 *
 **/
@@ -137,13 +137,13 @@
`);return this._settledValue()},C=y.prototype.error=y.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
    See http://goo.gl/MqrFmX
`);return this._settledValue()},T=y.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},S=y.prototype.isRejected=function(){return(this._bitField&16777216)!==0},w=y.prototype.isPending=function(){return(this._bitField&50397184)===0},E=y.prototype.isResolved=function(){return(this._bitField&50331648)!==0};y.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},x.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},x.prototype._isCancelled=function(){return this._target().__isCancelled()},x.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},x.prototype.isPending=function(){return w.call(this._target())},x.prototype.isRejected=function(){return S.call(this._target())},x.prototype.isFulfilled=function(){return T.call(this._target())},x.prototype.isResolved=function(){return E.call(this._target())},x.prototype.value=function(){return v.call(this._target())},x.prototype.reason=function(){var L=this._target();return L._unsetRejectionIsUnhandled(),C.call(L)},x.prototype._value=function(){return this._settledValue()},x.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},x.PromiseInspection=y}},{}],33:[function(o,f,m){"use strict";f.exports=function(x,y){var v=o("./util"),C=v.errorObj,T=v.isObject;function S(P,A){if(T(P)){if(P instanceof x)return P;var M=E(P);if(M===C){A&&A._pushContext();var V=x.reject(M.e);return A&&A._popContext(),V}else if(typeof M=="function"){if(I(P)){var V=new x(y);return P._then(V._fulfill,V._reject,void 0,V,null),V}return R(P,M,A)}}return P}function w(P){return P.then}function E(P){try{return w(P)}catch(A){return C.e=A,C}}var L={}.hasOwnProperty;function I(P){try{return L.call(P,"_promise0")}catch{return!1}}function R(P,A,M){var V=new x(y),G=V;M&&M._pushContext(),V._captureStackTrace(),M&&M._popContext();var D=!0,N=v.tryCatch(A).call(P,k,U);D=!1,V&&N===C&&(V._rejectCallback(N.e,!0,!0),V=null);function k(B){!V||(V._resolveCallback(B),V=null)}function U(B){!V||(V._rejectCallback(B,D,!0),V=null)}return G}return S}},{"./util":36}],34:[function(o,f,m){"use strict";f.exports=function(x,y,v){var C=o("./util"),T=x.TimeoutError;function S(P){this.handle=P}S.prototype._resultCancelled=function(){clearTimeout(this.handle)};var w=function(P){return E(+this).thenReturn(P)},E=x.delay=function(P,A){var M,V;return A!==void 0?(M=x.resolve(A)._then(w,null,null,P,void 0),v.cancellation()&&A instanceof x&&M._setOnCancel(A)):(M=new x(y),V=setTimeout(function(){M._fulfill()},+P),v.cancellation()&&M._setOnCancel(new S(V)),M._captureStackTrace()),M._setAsyncGuaranteed(),M};x.prototype.delay=function(P){return E(P,this)};var L=function(P,A,M){var V;typeof A!="string"?A instanceof Error?V=A:V=new T("operation timed out"):V=new T(A),C.markAsOriginatingFromRejection(V),P._attachExtraTrace(V),P._reject(V),M?.cancel()};function I(P){return clearTimeout(this.handle),P}function R(P){throw clearTimeout(this.handle),P}x.prototype.timeout=function(P,A){P=+P;var M,V,G=new S(setTimeout(function(){M.isPending()&&L(M,A,V)},P));return v.cancellation()?(V=this.then(),M=V._then(I,R,void 0,G,void 0),M._setOnCancel(G)):M=this._then(I,R,void 0,G,void 0),M}}},{"./util":36}],35:[function(o,f,m){"use strict";f.exports=function(x,y,v,C,T,S){var w=o("./util"),E=o("./errors").TypeError,L=o("./util").inherits,I=w.errorObj,R=w.tryCatch,P={};function A(U){setTimeout(function(){throw U},0)}function M(U){var B=v(U);return B!==U&&typeof U._isDisposable=="function"&&typeof U._getDisposer=="function"&&U._isDisposable()&&B._setDisposable(U._getDisposer()),B}function V(U,B){var Y=0,J=U.length,K=new x(T);function z(){if(Y>=J)return K._fulfill();var j=M(U[Y++]);if(j instanceof x&&j._isDisposable()){try{j=v(j._getDisposer().tryDispose(B),U.promise)}catch(q){return A(q)}if(j instanceof x)return j._then(z,A,null,null,null)}z()}return z(),K}function G(U,B,Y){this._data=U,this._promise=B,this._context=Y}G.prototype.data=function(){return this._data},G.prototype.promise=function(){return this._promise},G.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():P},G.prototype.tryDispose=function(U){var B=this.resource(),Y=this._context;Y!==void 0&&Y._pushContext();var J=B!==P?this.doDispose(B,U):null;return Y!==void 0&&Y._popContext(),this._promise._unsetDisposable(),this._data=null,J},G.isDisposer=function(U){return U!=null&&typeof U.resource=="function"&&typeof U.tryDispose=="function"};function D(U,B,Y){this.constructor$(U,B,Y)}L(D,G),D.prototype.doDispose=function(U,B){var Y=this.data();return Y.call(U,U,B)};function N(U){return G.isDisposer(U)?(this.resources[this.index]._setDisposable(U),U.promise()):U}function k(U){this.length=U,this.promise=null,this[U-1]=null}k.prototype._resultCancelled=function(){for(var U=this.length,B=0;B<U;++B){var Y=this[B];Y instanceof x&&Y.cancel()}},x.using=function(){var U=arguments.length;if(U<2)return y("you must pass at least 2 arguments to Promise.using");var B=arguments[U-1];if(typeof B!="function")return y("expecting a function but got "+w.classString(B));var Y,J=!0;U===2&&Array.isArray(arguments[0])?(Y=arguments[0],U=Y.length,J=!1):(Y=arguments,U--);for(var K=new k(U),z=0;z<U;++z){var j=Y[z];if(G.isDisposer(j)){var q=j;j=j.promise(),j._setDisposable(q)}else{var O=v(j);O instanceof x&&(j=O._then(N,null,null,{resources:K,index:z},void 0))}K[z]=j}for(var te=new Array(K.length),z=0;z<te.length;++z)te[z]=x.resolve(K[z]).reflect();var ie=x.all(te).then(function(ee){for(var ae=0;ae<ee.length;++ae){var oe=ee[ae];if(oe.isRejected())return I.e=oe.error(),I;if(!oe.isFulfilled()){ie.cancel();return}ee[ae]=oe.value()}re._pushContext(),B=R(B);var ce=J?B.apply(void 0,ee):B(ee),pe=re._popContext();return S.checkForgottenReturns(ce,pe,"Promise.using",re),ce}),re=ie.lastly(function(){var ee=new x.PromiseInspection(ie);return V(K,ee)});return K.promise=re,re._setOnCancel(K),re},x.prototype._setDisposable=function(U){this._bitField=this._bitField|131072,this._disposer=U},x.prototype._isDisposable=function(){return(this._bitField&131072)>0},x.prototype._getDisposer=function(){return this._disposer},x.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},x.prototype.disposer=function(U){if(typeof U=="function")return new D(U,this,C());throw new E}}},{"./errors":12,"./util":36}],36:[function(_dereq_,module,exports){"use strict";var es5=_dereq_("./es5"),canEvaluate=typeof navigator>"u",errorObj={e:{}},tryCatchTarget,globalObject=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:this!==void 0?this:null;function tryCatcher(){try{var o=tryCatchTarget;return tryCatchTarget=null,o.apply(this,arguments)}catch(f){return errorObj.e=f,errorObj}}function tryCatch(o){return tryCatchTarget=o,tryCatcher}var inherits=function(o,f){var m={}.hasOwnProperty;function x(){this.constructor=o,this.constructor$=f;for(var y in f.prototype)m.call(f.prototype,y)&&y.charAt(y.length-1)!=="$"&&(this[y+"$"]=f.prototype[y])}return x.prototype=f.prototype,o.prototype=new x,o.prototype};function isPrimitive(o){return o==null||o===!0||o===!1||typeof o=="string"||typeof o=="number"}function isObject(o){return typeof o=="function"||typeof o=="object"&&o!==null}function maybeWrapAsError(o){return isPrimitive(o)?new Error(safeToString(o)):o}function withAppended(o,f){var m=o.length,x=new Array(m+1),y;for(y=0;y<m;++y)x[y]=o[y];return x[y]=f,x}function getDataPropertyOrDefault(o,f,m){if(es5.isES5){var x=Object.getOwnPropertyDescriptor(o,f);if(x!=null)return x.get==null&&x.set==null?x.value:m}else return{}.hasOwnProperty.call(o,f)?o[f]:void 0}function notEnumerableProp(o,f,m){if(isPrimitive(o))return o;var x={value:m,configurable:!0,enumerable:!1,writable:!0};return es5.defineProperty(o,f,x),o}function thrower(o){throw o}var inheritedDataKeys=function(){var o=[Array.prototype,Object.prototype,Function.prototype],f=function(y){for(var v=0;v<o.length;++v)if(o[v]===y)return!0;return!1};if(es5.isES5){var m=Object.getOwnPropertyNames;return function(y){for(var v=[],C=Object.create(null);y!=null&&!f(y);){var T;try{T=m(y)}catch{return v}for(var S=0;S<T.length;++S){var w=T[S];if(!C[w]){C[w]=!0;var E=Object.getOwnPropertyDescriptor(y,w);E!=null&&E.get==null&&E.set==null&&v.push(w)}}y=es5.getPrototypeOf(y)}return v}}else{var x={}.hasOwnProperty;return function(y){if(f(y))return[];var v=[];e:for(var C in y)if(x.call(y,C))v.push(C);else{for(var T=0;T<o.length;++T)if(x.call(o[T],C))continue e;v.push(C)}return v}}}(),thisAssignmentPattern=/this\s*\.\s*\S+\s*=/;function isClass(o){try{if(typeof o=="function"){var f=es5.names(o.prototype),m=es5.isES5&&f.length>1,x=f.length>0&&!(f.length===1&&f[0]==="constructor"),y=thisAssignmentPattern.test(o+"")&&es5.names(o).length>0;if(m||x||y)return!0}return!1}catch{return!1}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var receiver=new FakeConstructor;function ic(){return typeof receiver.foo}return ic(),ic(),obj;eval(obj)}var rident=/^[a-z$_][a-z$_0-9]*$/i;function isIdentifier(o){return rident.test(o)}function filledRange(o,f,m){for(var x=new Array(o),y=0;y<o;++y)x[y]=f+y+m;return x}function safeToString(o){try{return o+""}catch{return"[no string representation]"}}function isError(o){return o instanceof Error||o!==null&&typeof o=="object"&&typeof o.message=="string"&&typeof o.name=="string"}function markAsOriginatingFromRejection(o){try{notEnumerableProp(o,"isOperational",!0)}catch{}}function originatesFromRejection(o){return o==null?!1:o instanceof Error.__BluebirdErrorTypes__.OperationalError||o.isOperational===!0}function canAttachTrace(o){return isError(o)&&es5.propertyIsWritable(o,"stack")}var ensureErrorObject=function(){return"stack"in new Error?function(o){return canAttachTrace(o)?o:new Error(safeToString(o))}:function(o){if(canAttachTrace(o))return o;try{throw new Error(safeToString(o))}catch(f){return f}}}();function classString(o){return{}.toString.call(o)}function copyDescriptors(o,f,m){for(var x=es5.names(o),y=0;y<x.length;++y){var v=x[y];if(m(v))try{es5.defineProperty(f,v,es5.getDescriptor(o,v))}catch{}}}var asArray=function(o){return es5.isArray(o)?o:null};if(typeof Symbol<"u"&&Symbol.iterator){var ArrayFrom=typeof Array.from=="function"?function(o){return Array.from(o)}:function(o){for(var f=[],m=o[Symbol.iterator](),x;!(x=m.next()).done;)f.push(x.value);return f};asArray=function(o){return es5.isArray(o)?o:o!=null&&typeof o[Symbol.iterator]=="function"?ArrayFrom(o):null}}var isNode=typeof process<"u"&&classString(process).toLowerCase()==="[object process]",hasEnvVariables=typeof process<"u"&&typeof process.env<"u";function env(o){return hasEnvVariables?process.env[o]:void 0}function getNativePromise(){if(typeof Promise=="function")try{var o=new Promise(function(){});if(classString(o)==="[object Promise]")return Promise}catch{}}var reflectHandler;function contextBind(o,f){if(o===null||typeof f!="function"||f===reflectHandler)return f;o.domain!==null&&(f=o.domain.bind(f));var m=o.async;if(m!==null){var x=f;f=function(){var y=new Array(2).concat([].slice.call(arguments));return y[0]=x,y[1]=this,m.runInAsyncScope.apply(m,y)}}return f}var ret={setReflectHandler:function(o){reflectHandler=o},isClass,isIdentifier,inheritedDataKeys,getDataPropertyOrDefault,thrower,isArray:es5.isArray,asArray,notEnumerableProp,isPrimitive,isObject,isError,canEvaluate,errorObj,tryCatch,inherits,withAppended,maybeWrapAsError,toFastProperties,filledRange,toString:safeToString,canAttachTrace,ensureErrorObject,originatesFromRejection,markAsOriginatingFromRejection,classString,copyDescriptors,isNode,hasEnvVariables,env,global:globalObject,getNativePromise,contextBind};ret.isRecentNode=ret.isNode&&function(){var o;return process.versions&&process.versions.node?o=process.versions.node.split(".").map(Number):process.version&&(o=process.version.split(".").map(Number)),o[0]===0&&o[1]>10||o[0]>0}(),ret.nodeSupportsAsyncResource=ret.isNode&&function(){var o=!1;try{var f=_dereq_("async_hooks").AsyncResource;o=typeof f.prototype.runInAsyncScope=="function"}catch{o=!1}return o}(),ret.isNode&&ret.toFastProperties(process);try{throw new Error}catch(o){ret.lastLineError=o}module.exports=ret},{"./es5":13,async_hooks:void 0}]},{},[4])(4)});typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)});we();we();var cBe="CIM SDK v5.4.1",hBe="Cesium v1.129",dBe="BIM V20241204",pBe="SER V20250613",fBe="2025.7.4",iVt="WebSDK V5.4",rVt={VERSION:cBe,CesiumVERSION:hBe,BIMVERSION:dBe,SERVERSION:pBe,CompileTime:fBe},nVt=typeof window<"u"?window:typeof self<"u"?self:{};nVt.logSmartEarth=()=>{let o=`
`);return this._settledValue()},T=y.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},S=y.prototype.isRejected=function(){return(this._bitField&16777216)!==0},w=y.prototype.isPending=function(){return(this._bitField&50397184)===0},E=y.prototype.isResolved=function(){return(this._bitField&50331648)!==0};y.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},x.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},x.prototype._isCancelled=function(){return this._target().__isCancelled()},x.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},x.prototype.isPending=function(){return w.call(this._target())},x.prototype.isRejected=function(){return S.call(this._target())},x.prototype.isFulfilled=function(){return T.call(this._target())},x.prototype.isResolved=function(){return E.call(this._target())},x.prototype.value=function(){return v.call(this._target())},x.prototype.reason=function(){var L=this._target();return L._unsetRejectionIsUnhandled(),C.call(L)},x.prototype._value=function(){return this._settledValue()},x.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},x.PromiseInspection=y}},{}],33:[function(o,f,m){"use strict";f.exports=function(x,y){var v=o("./util"),C=v.errorObj,T=v.isObject;function S(P,A){if(T(P)){if(P instanceof x)return P;var M=E(P);if(M===C){A&&A._pushContext();var V=x.reject(M.e);return A&&A._popContext(),V}else if(typeof M=="function"){if(I(P)){var V=new x(y);return P._then(V._fulfill,V._reject,void 0,V,null),V}return R(P,M,A)}}return P}function w(P){return P.then}function E(P){try{return w(P)}catch(A){return C.e=A,C}}var L={}.hasOwnProperty;function I(P){try{return L.call(P,"_promise0")}catch{return!1}}function R(P,A,M){var V=new x(y),G=V;M&&M._pushContext(),V._captureStackTrace(),M&&M._popContext();var D=!0,N=v.tryCatch(A).call(P,k,U);D=!1,V&&N===C&&(V._rejectCallback(N.e,!0,!0),V=null);function k(B){!V||(V._resolveCallback(B),V=null)}function U(B){!V||(V._rejectCallback(B,D,!0),V=null)}return G}return S}},{"./util":36}],34:[function(o,f,m){"use strict";f.exports=function(x,y,v){var C=o("./util"),T=x.TimeoutError;function S(P){this.handle=P}S.prototype._resultCancelled=function(){clearTimeout(this.handle)};var w=function(P){return E(+this).thenReturn(P)},E=x.delay=function(P,A){var M,V;return A!==void 0?(M=x.resolve(A)._then(w,null,null,P,void 0),v.cancellation()&&A instanceof x&&M._setOnCancel(A)):(M=new x(y),V=setTimeout(function(){M._fulfill()},+P),v.cancellation()&&M._setOnCancel(new S(V)),M._captureStackTrace()),M._setAsyncGuaranteed(),M};x.prototype.delay=function(P){return E(P,this)};var L=function(P,A,M){var V;typeof A!="string"?A instanceof Error?V=A:V=new T("operation timed out"):V=new T(A),C.markAsOriginatingFromRejection(V),P._attachExtraTrace(V),P._reject(V),M?.cancel()};function I(P){return clearTimeout(this.handle),P}function R(P){throw clearTimeout(this.handle),P}x.prototype.timeout=function(P,A){P=+P;var M,V,G=new S(setTimeout(function(){M.isPending()&&L(M,A,V)},P));return v.cancellation()?(V=this.then(),M=V._then(I,R,void 0,G,void 0),M._setOnCancel(G)):M=this._then(I,R,void 0,G,void 0),M}}},{"./util":36}],35:[function(o,f,m){"use strict";f.exports=function(x,y,v,C,T,S){var w=o("./util"),E=o("./errors").TypeError,L=o("./util").inherits,I=w.errorObj,R=w.tryCatch,P={};function A(U){setTimeout(function(){throw U},0)}function M(U){var B=v(U);return B!==U&&typeof U._isDisposable=="function"&&typeof U._getDisposer=="function"&&U._isDisposable()&&B._setDisposable(U._getDisposer()),B}function V(U,B){var Y=0,J=U.length,K=new x(T);function z(){if(Y>=J)return K._fulfill();var j=M(U[Y++]);if(j instanceof x&&j._isDisposable()){try{j=v(j._getDisposer().tryDispose(B),U.promise)}catch(q){return A(q)}if(j instanceof x)return j._then(z,A,null,null,null)}z()}return z(),K}function G(U,B,Y){this._data=U,this._promise=B,this._context=Y}G.prototype.data=function(){return this._data},G.prototype.promise=function(){return this._promise},G.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():P},G.prototype.tryDispose=function(U){var B=this.resource(),Y=this._context;Y!==void 0&&Y._pushContext();var J=B!==P?this.doDispose(B,U):null;return Y!==void 0&&Y._popContext(),this._promise._unsetDisposable(),this._data=null,J},G.isDisposer=function(U){return U!=null&&typeof U.resource=="function"&&typeof U.tryDispose=="function"};function D(U,B,Y){this.constructor$(U,B,Y)}L(D,G),D.prototype.doDispose=function(U,B){var Y=this.data();return Y.call(U,U,B)};function N(U){return G.isDisposer(U)?(this.resources[this.index]._setDisposable(U),U.promise()):U}function k(U){this.length=U,this.promise=null,this[U-1]=null}k.prototype._resultCancelled=function(){for(var U=this.length,B=0;B<U;++B){var Y=this[B];Y instanceof x&&Y.cancel()}},x.using=function(){var U=arguments.length;if(U<2)return y("you must pass at least 2 arguments to Promise.using");var B=arguments[U-1];if(typeof B!="function")return y("expecting a function but got "+w.classString(B));var Y,J=!0;U===2&&Array.isArray(arguments[0])?(Y=arguments[0],U=Y.length,J=!1):(Y=arguments,U--);for(var K=new k(U),z=0;z<U;++z){var j=Y[z];if(G.isDisposer(j)){var q=j;j=j.promise(),j._setDisposable(q)}else{var O=v(j);O instanceof x&&(j=O._then(N,null,null,{resources:K,index:z},void 0))}K[z]=j}for(var te=new Array(K.length),z=0;z<te.length;++z)te[z]=x.resolve(K[z]).reflect();var ie=x.all(te).then(function(ee){for(var ae=0;ae<ee.length;++ae){var oe=ee[ae];if(oe.isRejected())return I.e=oe.error(),I;if(!oe.isFulfilled()){ie.cancel();return}ee[ae]=oe.value()}re._pushContext(),B=R(B);var ce=J?B.apply(void 0,ee):B(ee),pe=re._popContext();return S.checkForgottenReturns(ce,pe,"Promise.using",re),ce}),re=ie.lastly(function(){var ee=new x.PromiseInspection(ie);return V(K,ee)});return K.promise=re,re._setOnCancel(K),re},x.prototype._setDisposable=function(U){this._bitField=this._bitField|131072,this._disposer=U},x.prototype._isDisposable=function(){return(this._bitField&131072)>0},x.prototype._getDisposer=function(){return this._disposer},x.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},x.prototype.disposer=function(U){if(typeof U=="function")return new D(U,this,C());throw new E}}},{"./errors":12,"./util":36}],36:[function(_dereq_,module,exports){"use strict";var es5=_dereq_("./es5"),canEvaluate=typeof navigator>"u",errorObj={e:{}},tryCatchTarget,globalObject=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:this!==void 0?this:null;function tryCatcher(){try{var o=tryCatchTarget;return tryCatchTarget=null,o.apply(this,arguments)}catch(f){return errorObj.e=f,errorObj}}function tryCatch(o){return tryCatchTarget=o,tryCatcher}var inherits=function(o,f){var m={}.hasOwnProperty;function x(){this.constructor=o,this.constructor$=f;for(var y in f.prototype)m.call(f.prototype,y)&&y.charAt(y.length-1)!=="$"&&(this[y+"$"]=f.prototype[y])}return x.prototype=f.prototype,o.prototype=new x,o.prototype};function isPrimitive(o){return o==null||o===!0||o===!1||typeof o=="string"||typeof o=="number"}function isObject(o){return typeof o=="function"||typeof o=="object"&&o!==null}function maybeWrapAsError(o){return isPrimitive(o)?new Error(safeToString(o)):o}function withAppended(o,f){var m=o.length,x=new Array(m+1),y;for(y=0;y<m;++y)x[y]=o[y];return x[y]=f,x}function getDataPropertyOrDefault(o,f,m){if(es5.isES5){var x=Object.getOwnPropertyDescriptor(o,f);if(x!=null)return x.get==null&&x.set==null?x.value:m}else return{}.hasOwnProperty.call(o,f)?o[f]:void 0}function notEnumerableProp(o,f,m){if(isPrimitive(o))return o;var x={value:m,configurable:!0,enumerable:!1,writable:!0};return es5.defineProperty(o,f,x),o}function thrower(o){throw o}var inheritedDataKeys=function(){var o=[Array.prototype,Object.prototype,Function.prototype],f=function(y){for(var v=0;v<o.length;++v)if(o[v]===y)return!0;return!1};if(es5.isES5){var m=Object.getOwnPropertyNames;return function(y){for(var v=[],C=Object.create(null);y!=null&&!f(y);){var T;try{T=m(y)}catch{return v}for(var S=0;S<T.length;++S){var w=T[S];if(!C[w]){C[w]=!0;var E=Object.getOwnPropertyDescriptor(y,w);E!=null&&E.get==null&&E.set==null&&v.push(w)}}y=es5.getPrototypeOf(y)}return v}}else{var x={}.hasOwnProperty;return function(y){if(f(y))return[];var v=[];e:for(var C in y)if(x.call(y,C))v.push(C);else{for(var T=0;T<o.length;++T)if(x.call(o[T],C))continue e;v.push(C)}return v}}}(),thisAssignmentPattern=/this\s*\.\s*\S+\s*=/;function isClass(o){try{if(typeof o=="function"){var f=es5.names(o.prototype),m=es5.isES5&&f.length>1,x=f.length>0&&!(f.length===1&&f[0]==="constructor"),y=thisAssignmentPattern.test(o+"")&&es5.names(o).length>0;if(m||x||y)return!0}return!1}catch{return!1}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var receiver=new FakeConstructor;function ic(){return typeof receiver.foo}return ic(),ic(),obj;eval(obj)}var rident=/^[a-z$_][a-z$_0-9]*$/i;function isIdentifier(o){return rident.test(o)}function filledRange(o,f,m){for(var x=new Array(o),y=0;y<o;++y)x[y]=f+y+m;return x}function safeToString(o){try{return o+""}catch{return"[no string representation]"}}function isError(o){return o instanceof Error||o!==null&&typeof o=="object"&&typeof o.message=="string"&&typeof o.name=="string"}function markAsOriginatingFromRejection(o){try{notEnumerableProp(o,"isOperational",!0)}catch{}}function originatesFromRejection(o){return o==null?!1:o instanceof Error.__BluebirdErrorTypes__.OperationalError||o.isOperational===!0}function canAttachTrace(o){return isError(o)&&es5.propertyIsWritable(o,"stack")}var ensureErrorObject=function(){return"stack"in new Error?function(o){return canAttachTrace(o)?o:new Error(safeToString(o))}:function(o){if(canAttachTrace(o))return o;try{throw new Error(safeToString(o))}catch(f){return f}}}();function classString(o){return{}.toString.call(o)}function copyDescriptors(o,f,m){for(var x=es5.names(o),y=0;y<x.length;++y){var v=x[y];if(m(v))try{es5.defineProperty(f,v,es5.getDescriptor(o,v))}catch{}}}var asArray=function(o){return es5.isArray(o)?o:null};if(typeof Symbol<"u"&&Symbol.iterator){var ArrayFrom=typeof Array.from=="function"?function(o){return Array.from(o)}:function(o){for(var f=[],m=o[Symbol.iterator](),x;!(x=m.next()).done;)f.push(x.value);return f};asArray=function(o){return es5.isArray(o)?o:o!=null&&typeof o[Symbol.iterator]=="function"?ArrayFrom(o):null}}var isNode=typeof process<"u"&&classString(process).toLowerCase()==="[object process]",hasEnvVariables=typeof process<"u"&&typeof process.env<"u";function env(o){return hasEnvVariables?process.env[o]:void 0}function getNativePromise(){if(typeof Promise=="function")try{var o=new Promise(function(){});if(classString(o)==="[object Promise]")return Promise}catch{}}var reflectHandler;function contextBind(o,f){if(o===null||typeof f!="function"||f===reflectHandler)return f;o.domain!==null&&(f=o.domain.bind(f));var m=o.async;if(m!==null){var x=f;f=function(){var y=new Array(2).concat([].slice.call(arguments));return y[0]=x,y[1]=this,m.runInAsyncScope.apply(m,y)}}return f}var ret={setReflectHandler:function(o){reflectHandler=o},isClass,isIdentifier,inheritedDataKeys,getDataPropertyOrDefault,thrower,isArray:es5.isArray,asArray,notEnumerableProp,isPrimitive,isObject,isError,canEvaluate,errorObj,tryCatch,inherits,withAppended,maybeWrapAsError,toFastProperties,filledRange,toString:safeToString,canAttachTrace,ensureErrorObject,originatesFromRejection,markAsOriginatingFromRejection,classString,copyDescriptors,isNode,hasEnvVariables,env,global:globalObject,getNativePromise,contextBind};ret.isRecentNode=ret.isNode&&function(){var o;return process.versions&&process.versions.node?o=process.versions.node.split(".").map(Number):process.version&&(o=process.version.split(".").map(Number)),o[0]===0&&o[1]>10||o[0]>0}(),ret.nodeSupportsAsyncResource=ret.isNode&&function(){var o=!1;try{var f=_dereq_("async_hooks").AsyncResource;o=typeof f.prototype.runInAsyncScope=="function"}catch{o=!1}return o}(),ret.isNode&&ret.toFastProperties(process);try{throw new Error}catch(o){ret.lastLineError=o}module.exports=ret},{"./es5":13,async_hooks:void 0}]},{},[4])(4)});typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)});we();we();var cBe="CIM SDK v5.4.1.2",hBe="Cesium v1.129",dBe="BIM V20241204",pBe="SER V20250613",fBe="2025.7.21",iVt="WebSDK V5.4",rVt={VERSION:cBe,CesiumVERSION:hBe,BIMVERSION:dBe,SERVERSION:pBe,CompileTime:fBe},nVt=typeof window<"u"?window:typeof self<"u"?self:{};nVt.logSmartEarth=()=>{let o=`
%c${iVt}
%c
\u7248 \u672C \u53F7\uFF1A${cBe}    ${hBe} ${dBe} ${pBe}
\u7F16\u8BD1\u65F6\u95F4\uFF1A${fBe}
    `;setTimeout(console.log.bind(console,o,"color:#018aff;font-size:30px;font-wight:bold;font-family:\u5FAE\u8F6F\u96C5\u9ED1","color:#018aff;font-size:13px;font-family:\u5FAE\u8F6F\u96C5\u9ED1"),0)};var oVt=rVt;var cyt={};Bie(cyt,{AlphaMode:()=>PH,AlphaPipelineStage:()=>GAe,AnchorPointDirect:()=>FRe,AnchorPointIndirect:()=>DRe,Animation:()=>gDe,AnimationViewModel:()=>yDe,Appearance:()=>Sd,ApproximateTerrainHeights:()=>jh,ArcGISTiledElevationTerrainProvider:()=>fde,ArcGisBaseMapType:()=>NG,ArcGisMapServerImageryProvider:()=>d1,ArcGisMapService:()=>LE,ArcType:()=>qa,ArticulationStageType:()=>YC,AssociativeArray:()=>zo,Atmosphere:()=>_ce,AtmospherePipelineStage:()=>pAe,AttributeCompression:()=>Ru,AttributeType:()=>Is,AutoExposure:()=>h5e,AutomaticUniforms:()=>vB,Axis:()=>D0,AxisAlignedBoundingBox:()=>m7,B3dmLoader:()=>KRe,B3dmParser:()=>YRe,Base64Encoder:()=>bae,BaseLayerPicker:()=>vDe,BaseLayerPickerViewModel:()=>_De,BatchTable:()=>Cz,BatchTableHierarchy:()=>Nce,BatchTexture:()=>KT,BatchTexturePipelineStage:()=>FAe,Billboard:()=>Td,BillboardCollection:()=>jE,BillboardGraphics:()=>oV,BillboardLoadState:()=>Om,BillboardTexture:()=>fz,BillboardVisualizer:()=>gIe,BingMapsGeocoderService:()=>Smt,BingMapsImageryProvider:()=>vO,BingMapsStyle:()=>phe,BlendEquation:()=>F_,BlendFunction:()=>Kh,BlendOption:()=>F0,BlendTexture:()=>hz,BlendingState:()=>ru,BoundingRectangle:()=>Er,BoundingSphere:()=>Ei,BoundingSphereState:()=>Xo,BoundingVolumeSemantics:()=>ehe,BoxEmitter:()=>wde,BoxGeometry:()=>g1,BoxGeometryUpdater:()=>yIe,BoxGraphics:()=>Tue,BoxOutlineGeometry:()=>BS,BrdfLutGenerator:()=>g3e,Buffer:()=>mo,BufferLoader:()=>j7,BufferUsage:()=>rn,CPUStylingPipelineStage:()=>ZAe,CallbackPositionProperty:()=>PVe,CallbackProperty:()=>Fr,Camera:()=>Ts,CameraEventAggregator:()=>C5e,CameraEventType:()=>Jc,CameraFlightPath:()=>qPe,Cartesian2:()=>rt,Cartesian3:()=>Z,Cartesian4:()=>zt,Cartographic:()=>Gt,CartographicGeocoderService:()=>wmt,CatmullRomSpline:()=>Emt,Cesium3DContentGroup:()=>Jce,Cesium3DTile:()=>Wb,Cesium3DTileBatchTable:()=>dq,Cesium3DTileColorBlendMode:()=>xI,Cesium3DTileContent:()=>yxt,Cesium3DTileContentFactory:()=>rhe,Cesium3DTileContentState:()=>_d,Cesium3DTileContentType:()=>N_,Cesium3DTileFeature:()=>Ss,Cesium3DTileFeatureTable:()=>r4,Cesium3DTileOptimizationHint:()=>xG,Cesium3DTileOptimizations:()=>she,Cesium3DTilePass:()=>sh,Cesium3DTilePassState:()=>qm,Cesium3DTilePointFeature:()=>bZ,Cesium3DTileRefine:()=>Km,Cesium3DTileStyle:()=>ZS,Cesium3DTileStyleEngine:()=>CVe,Cesium3DTilesInspector:()=>SDe,Cesium3DTilesInspectorViewModel:()=>TDe,Cesium3DTilesVoxelProvider:()=>_xt,Cesium3DTileset:()=>_0,Cesium3DTilesetBaseTraversal:()=>SVe,Cesium3DTilesetCache:()=>vVe,Cesium3DTilesetGraphics:()=>Pue,Cesium3DTilesetHeatmap:()=>bVe,Cesium3DTilesetMetadata:()=>ahe,Cesium3DTilesetMostDetailedTraversal:()=>TVe,Cesium3DTilesetSkipTraversal:()=>wVe,Cesium3DTilesetStatistics:()=>DG,Cesium3DTilesetTraversal:()=>xv,Cesium3DTilesetVisualizer:()=>LVe,CesiumInspector:()=>EDe,CesiumInspectorViewModel:()=>wDe,CesiumNavigation:()=>JFe,CesiumRenderPass:()=>nDe,CesiumTerrainProvider:()=>N4,CesiumWidget:()=>A4,Check:()=>Da,CheckerboardMaterialProperty:()=>ele,CircleEmitter:()=>TFe,CircleGeometry:()=>Vmt,CircleOutlineGeometry:()=>Gmt,CircleWaveMaterialProperty:()=>pz,ClassificationModelDrawCommand:()=>FMe,ClassificationPipelineStage:()=>DAe,ClassificationPrimitive:()=>Tz,ClassificationType:()=>hc,ClearCommand:()=>ku,ClippingPlane:()=>Jp,ClippingPlaneCollection:()=>Ox,ClippingPolygon:()=>kb,ClippingPolygonCollection:()=>Ry,Clock:()=>Az,ClockRange:()=>Gx,ClockStep:()=>kd,ClockViewModel:()=>xDe,CloudCollection:()=>Ext,CloudType:()=>hle,CollectionSource:()=>Uit,Color:()=>Xe,ColorBlendMode:()=>II,ColorGeometryInstanceAttribute:()=>yo,ColorMaterialProperty:()=>Ba,Command:()=>Wgt,CommandLoader:()=>jFe,ComponentDatatype:()=>Qt,Composite3DTileContent:()=>KMe,CompositeEntityCollection:()=>tmt,CompositeMaterialProperty:()=>ile,CompositePositionProperty:()=>i1,CompositeProperty:()=>rS,CompressedTextureBuffer:()=>DS,ComputeCommand:()=>cV,ComputeEngine:()=>l3e,ComputeRegionBox:()=>xxt,ConditionsExpression:()=>kLe,ConeEmitter:()=>X4,ConicArcSensor:()=>ble,ConicArcSensorCollection:()=>Agt,ConicArcSensorGeometry:()=>Tle,ConicArcSensorGraphics:()=>vle,ConicArcSensorOutlineGeometry:()=>Sle,ConstantPositionProperty:()=>hI,ConstantProperty:()=>Qc,ConstantSpline:()=>eAe,ConstructionWorker:()=>Hit,ContentMetadata:()=>cVe,Context:()=>m3e,ContextLimits:()=>co,CoplanarPolygonGeometry:()=>lO,CoplanarPolygonGeometryLibrary:()=>DB,CoplanarPolygonOutlineGeometry:()=>tM,CornerType:()=>ad,CorrelationGroup:()=>NRe,CorridorGeometry:()=>N7,CorridorGeometryLibrary:()=>oh,CorridorGeometryUpdater:()=>bIe,CorridorGraphics:()=>Sue,CorridorOutlineGeometry:()=>vIe,Credit:()=>Oa,CreditDisplay:()=>y3e,CubeMap:()=>Ig,CubeMapFace:()=>ySe,CubicRealPolynomial:()=>r7,CullFace:()=>yh,CullingVolume:()=>pm,CumulusCloud:()=>wL,CustomDataSource:()=>Aue,CustomHeightmapTerrainProvider:()=>Fmt,CustomMercatorProjection:()=>xz,CustomShader:()=>P1,CustomShaderManagerEx:()=>yue,CustomShaderMode:()=>h7,CustomShaderPipelineStage:()=>zAe,CustomShaderTranslucencyMode:()=>KG,CustomTilingScheme:()=>Ert,CylinderGeometry:()=>W7,CylinderGeometryLibrary:()=>pce,CylinderGeometryUpdater:()=>CIe,CylinderGraphics:()=>wue,CylinderOutlineGeometry:()=>Z7,CzmlDataSource:()=>qq,DataSource:()=>Sy,DataSourceClock:()=>r9,DataSourceCollection:()=>mIe,DataSourceDisplay:()=>Cq,DebugAppearance:()=>Mxt,DebugCameraPrimitive:()=>Bp,DebugInspector:()=>M5e,DebugModelMatrixPrimitive:()=>LFe,DefaultProxy:()=>Nmt,DepthFunction:()=>wy,DepthPlane:()=>b3e,DequantizationPipelineStage:()=>YAe,DerivedCommand:()=>Cy,DeveloperError:()=>wt,DeviceOrientationCameraController:()=>C3e,DirectionalLight:()=>k4,DiscardEmptyTileImagePolicy:()=>fhe,DiscardMissingTileImagePolicy:()=>XVe,DistanceDisplayCondition:()=>So,DistanceDisplayConditionGeometryInstanceAttribute:()=>uh,DistanceLegendViewModel:()=>OFe,DoubleEndedPriorityQueue:()=>Hhe,DoublyLinkedList:()=>gq,DracoLoader:()=>Q7,DrawCommand:()=>En,DynamicAtmosphereLightingType:()=>k7,DynamicEnvironmentMapManager:()=>LH,DynamicGeometryBatch:()=>cce,DynamicGeometryUpdater:()=>Vh,ECharts:()=>p7,EarthOrientationParameters:()=>JTe,EarthOrientationParametersSample:()=>i7,EasingFunction:()=>J_,EllipseGeometry:()=>TS,EllipseGeometryLibrary:()=>T1,EllipseGeometryUpdater:()=>TIe,EllipseGraphics:()=>Eue,EllipseOutlineGeometry:()=>LI,Ellipsoid:()=>yi,EllipsoidGeodesic:()=>Hx,EllipsoidGeometry:()=>Jm,EllipsoidGeometryUpdater:()=>LIe,EllipsoidGraphics:()=>Ez,EllipsoidOutlineGeometry:()=>Fb,EllipsoidPrimitive:()=>a3e,EllipsoidRhumbLine:()=>lS,EllipsoidSurfaceAppearance:()=>iO,EllipsoidTangentPlane:()=>vv,EllipsoidTerrainProvider:()=>IS,EllipsoidalOccluder:()=>k9,Empty3DTileContent:()=>x6,EncodedCartesian3:()=>$u,Entity:()=>bd,EntityCluster:()=>AF,EntityCollection:()=>kS,EntityView:()=>GVe,Event:()=>Tr,EventHelper:()=>bv,ExpandBySmartEarth:()=>mb,ExpandByTerra:()=>Lrt,Expression:()=>JG,ExpressionNodeType:()=>ao,ExternalParameter:()=>Ty,ExtrapolationType:()=>nI,FBXLoader:()=>eDe,FBXPrimitive:()=>Ade,FBXTreeParser:()=>$Fe,FeatureDataProvider:()=>Kue,FeatureDetection:()=>ia,FeatureIdPipelineStage:()=>cq,FeatureJsonData:()=>Gz,FisheyeProjectionMap:()=>V7,FisheyeProjectionMapShader:()=>Bj,FlattenVS:()=>Egt,FlowEcharts:()=>Sde,Fog:()=>S3e,ForEach:()=>Or,FrameRateMonitor:()=>PFe,FrameState:()=>w3e,Framebuffer:()=>Hp,FramebufferManager:()=>Pc,Frozen:()=>si,FrustumCommands:()=>Vhe,FrustumGeometry:()=>Fz,FrustumOutlineGeometry:()=>M7,Fullscreen:()=>km,FullscreenButton:()=>PDe,FullscreenButtonViewModel:()=>LDe,GWBaiduImageryProvider:()=>Nz,GeoJsonDataSource:()=>qZ,GeoJsonLoader:()=>QRe,GeocodeType:()=>e$,Geocoder:()=>MDe,GeocoderService:()=>_de,GeocoderViewModel:()=>ADe,GeographicProjection:()=>y0,GeographicTilingScheme:()=>_h,Geometry:()=>xa,Geometry3DTileContent:()=>JMe,GeometryAttribute:()=>Xr,GeometryAttributes:()=>Zc,GeometryFactory:()=>Xmt,GeometryInstance:()=>Wn,GeometryInstanceAttribute:()=>t1,GeometryOffsetAttribute:()=>ul,GeometryPipeline:()=>qu,GeometryPipelineStage:()=>jAe,GeometryType:()=>aG,GeometryUpdater:()=>cd,GeometryUpdaterSet:()=>X7,GeometryVisualizer:()=>YIe,GetFeatureInfoFormat:()=>nQ,GifImageProperty:()=>gst,Globe:()=>t3e,GlobeDepth:()=>A3e,GlobeSurfaceShaderSet:()=>ZVe,GlobeSurfaceTile:()=>XM,GlobeSurfaceTileProvider:()=>qVe,GlobeTranslucency:()=>Rq,GlobeTranslucencyFramebuffer:()=>M3e,GlobeTranslucencyState:()=>L3e,GltfBufferViewLoader:()=>Cce,GltfDracoLoader:()=>Tce,GltfGpmLoader:()=>ZRe,GltfGpmLocal:()=>Dce,GltfImageLoader:()=>Sce,GltfIndexBufferLoader:()=>wce,GltfInstanceLoader:()=>Wce,GltfJsonLoader:()=>Pce,GltfLoader:()=>fO,GltfLoaderUtil:()=>WM,GltfMeshPrimitiveGpmLoader:()=>URe,GltfStructuralMetadataLoader:()=>VRe,GltfTextureLoader:()=>Ice,GltfVertexBufferLoader:()=>Rce,GoogleEarthEnterpriseImageryProvider:()=>Vxt,GoogleEarthEnterpriseMapsProvider:()=>BVe,GoogleEarthEnterpriseMetadata:()=>Z4,GoogleEarthEnterpriseTerrainData:()=>cle,GoogleEarthEnterpriseTerrainProvider:()=>Ymt,GoogleEarthEnterpriseTileInformation:()=>pFe,GoogleGeocoderService:()=>Jmt,GoogleMaps:()=>hQ,GpxDataSource:()=>QGe,Graticules:()=>nce,GregorianDate:()=>dz,GridImageryProvider:()=>Gxt,GridMaterialProperty:()=>rle,GroundGeometryUpdater:()=>tu,GroundPolylineGeometry:()=>vz,GroundPolylinePrimitive:()=>FF,GroundPrimitive:()=>XS,GroupMetadata:()=>Ese,GwBufferAnalysis:()=>oce,HeadingPitchRange:()=>R1,HeadingPitchRoll:()=>rs,Heap:()=>XTe,HeightMap:()=>bgt,HeightReference:()=>Mn,HeightmapEncoding:()=>dF,HeightmapTerrainData:()=>yL,HeightmapTessellator:()=>dhe,HermitePolynomialApproximation:()=>NGe,HermiteSpline:()=>p6,HilbertOrder:()=>bse,HomeButton:()=>GDe,HomeButtonViewModel:()=>VDe,HorizontalOrigin:()=>ec,HugeAdapter:()=>hq,I3SBuildingSceneLayerExplorer:()=>$gt,I3SBuildingSceneLayerExplorerViewModel:()=>FDe,I3SDataProvider:()=>gR,I3SDecoder:()=>SGe,I3SFeature:()=>EGe,I3SField:()=>LGe,I3SGeometry:()=>Kse,I3SLayer:()=>qhe,I3SNode:()=>Jse,I3SStatistics:()=>IGe,I3SSublayer:()=>RGe,I3SSymbology:()=>PGe,I3dmLoader:()=>$Re,I3dmParser:()=>qRe,ITwinData:()=>Fxt,ITwinPlatform:()=>wg,Iau2000Orientation:()=>r3e,Iau2006XysData:()=>QTe,Iau2006XysSample:()=>rue,IauOrientationAxes:()=>n3e,IauOrientationParameters:()=>i3e,ImageBasedLighting:()=>aq,ImageBasedLightingPipelineStage:()=>mAe,ImageCombine:()=>mue,ImageMaterialProperty:()=>O0,Imagery:()=>_he,ImageryLayer:()=>Up,ImageryLayerCollection:()=>$Ve,ImageryLayerFeatureInfo:()=>JF,ImageryProvider:()=>QI,ImageryState:()=>sl,Implicit3DTileContent:()=>wse,ImplicitAvailabilityBitstream:()=>Tse,ImplicitMetadataView:()=>Qce,ImplicitSubdivisionScheme:()=>Rg,ImplicitSubtree:()=>qce,ImplicitSubtreeCache:()=>bFe,ImplicitSubtreeMetadata:()=>$Me,ImplicitTileCoordinates:()=>che,ImplicitTileset:()=>uhe,IndexDatatype:()=>Fn,InfoBox:()=>WDe,InfoBoxViewModel:()=>NDe,InspectorShared:()=>sI,InstanceAttributeSemantic:()=>Hm,InstancingPipelineStage:()=>IAe,InterpolationAlgorithm:()=>jmt,InterpolationType:()=>TG,Intersect:()=>jo,IntersectionTests:()=>fc,Intersections2D:()=>D4,Interval:()=>VE,InvertClassification:()=>Ahe,Ion:()=>GG,IonGeocodeProviderType:()=>XZ,IonGeocoderService:()=>Cde,IonImageryProvider:()=>WG,IonResource:()=>FG,IonWorldImageryStyle:()=>HB,Iso8601:()=>wn,JobScheduler:()=>P3e,JobType:()=>G_,JsonMetadataTable:()=>H7,JulianDate:()=>$t,KTX2Transcoder:()=>BTe,KeyboardEventModifier:()=>lv,KeyframeNode:()=>gd,KmlCamera:()=>bPe,KmlDataSource:()=>I7,KmlLookAt:()=>CPe,KmlTour:()=>TPe,KmlTourFlyTo:()=>SPe,KmlTourWait:()=>EPe,Label:()=>bQ,LabelCollection:()=>tV,LabelGraphics:()=>Lz,LabelStyle:()=>f0,LabelVisualizer:()=>KIe,LagrangePolynomialApproximation:()=>ZGe,LeapSecond:()=>xh,Light:()=>Nxt,LightingModel:()=>uv,LightingPipelineStage:()=>qAe,LinearApproximation:()=>Uue,LinearSampler:()=>qI,LinearSpline:()=>uq,MTLLoader:()=>tDe,ManagedArray:()=>RI,MapMode2D:()=>wI,MapProjection:()=>$mt,MapboxImageryProvider:()=>bO,MapboxStyleImageryProvider:()=>Zxt,Material:()=>Co,MaterialAppearance:()=>N0,MaterialPipelineStage:()=>eMe,MaterialProperty:()=>Lg,Math:()=>be,Matrix2:()=>Z0,Matrix3:()=>Ut,Matrix4:()=>Ee,Megatexture:()=>zhe,MeshParser:()=>qFe,MeshPhongMaterial:()=>fQ,MeshPrimitiveGpmLocal:()=>kRe,MetadataClass:()=>Qz,MetadataClassProperty:()=>Kz,MetadataComponentType:()=>$o,MetadataEntity:()=>fu,MetadataEnum:()=>RRe,MetadataEnumValue:()=>IRe,MetadataPicking:()=>I3e,MetadataPickingPipelineStage:()=>YP,MetadataPipelineStage:()=>EM,MetadataSchema:()=>HF,MetadataSchemaLoader:()=>Ace,MetadataSemantic:()=>$ce,MetadataTable:()=>dO,MetadataTableProperty:()=>aRe,MetadataType:()=>fo,MipmapHint:()=>Z9,Model:()=>Ay,Model3DTileContent:()=>jP,ModelAlphaOptions:()=>vMe,ModelAnimation:()=>aAe,ModelAnimationChannel:()=>nAe,ModelAnimationCollection:()=>sAe,ModelAnimationLoop:()=>GE,ModelAnimationState:()=>nG,ModelArticulation:()=>yAe,ModelArticulationStage:()=>gAe,ModelClippingPlanesPipelineStage:()=>bAe,ModelClippingPolygonsPipelineStage:()=>SAe,ModelColorPipelineStage:()=>f6,ModelComponents:()=>ll,ModelDrawCommand:()=>DMe,ModelDrawCommands:()=>ZMe,ModelFeature:()=>lAe,ModelFeatureTable:()=>uAe,ModelFlattenPipelineStage:()=>kMe,ModelGraphics:()=>x7,ModelLightingOptions:()=>MMe,ModelMatrixUpdateStage:()=>AAe,ModelNode:()=>wAe,ModelRenderResources:()=>wMe,ModelRuntimeNode:()=>VAe,ModelRuntimePrimitive:()=>gMe,ModelSceneGraph:()=>UMe,ModelSilhouettePipelineStage:()=>PMe,ModelSkin:()=>_Me,ModelSplitterPipelineStage:()=>RMe,ModelStatistics:()=>BMe,ModelType:()=>jp,ModelUtility:()=>Qs,ModelVisualizer:()=>YMe,Moon:()=>s3e,MorphTargetsPipelineStage:()=>iMe,MorphWeightSpline:()=>ext,MortonOrder:()=>AH,MultiResourceImageryProvider:()=>Wz,MultiResourceTerrainProvider:()=>ace,Multiple3DTileContent:()=>mVe,MultisampleFramebuffer:()=>HRe,NavigationControl:()=>J4,NavigationHelpButton:()=>ODe,NavigationHelpButtonViewModel:()=>ZDe,NavigationUtils:()=>j4,NavigationViewModel:()=>dQ,NearFarScalar:()=>ea,NeverTileDiscardPolicy:()=>Oxt,NodeRenderResources:()=>AMe,NodeStatisticsPipelineStage:()=>MAe,NodeTransformationProperty:()=>Lue,OBJLoader:()=>rDe,OBJPrimitive:()=>Mde,OIT:()=>D3e,Occluder:()=>rce,OffsetGeometryInstanceAttribute:()=>Af,OlMVTImageryProvider:()=>Zz,OpenCageGeocoderService:()=>txt,OpenStreetMapImageryProvider:()=>ME,OrderedGroundPrimitiveCollection:()=>xIe,OrientedBoundingBox:()=>Tu,OrthographicFrustum:()=>$a,OrthographicOffCenterFrustum:()=>xm,Packable:()=>ixt,PackableForInterpolation:()=>rxt,Particle:()=>Lde,ParticleBurst:()=>B4,ParticleEmitter:()=>Uxt,ParticleSystem:()=>QS,Pass:()=>xr,PassState:()=>$p,PathGraphics:()=>g7,PathVisualizer:()=>IVe,PeliasGeocoderService:()=>xFe,PerInstanceColorAppearance:()=>ga,PerformanceDisplay:()=>Fq,PerformanceWatchdog:()=>HDe,PerformanceWatchdogViewModel:()=>BDe,PerspectiveFrustum:()=>mc,PerspectiveOffCenterFrustum:()=>JI,PerspectiveProjectionMap:()=>G7,PerspectiveProjectionMapShader:()=>Hj,PerspectiveProjectionMapWithDepth:()=>F7,PerspectiveProjectionMapWithDepthShader:()=>CG,PickDepth:()=>R3e,PickDepthFramebuffer:()=>N3e,PickFramebuffer:()=>W3e,PickGlobeSlope:()=>Nft,PickedMetadataInfo:()=>aGe,Picking:()=>H3e,PickingPipelineStage:()=>rMe,PinBuilder:()=>b7,PixelDatatype:()=>un,PixelFormat:()=>zr,Plane:()=>ca,PlaneGeometry:()=>PIe,PlaneGeometryUpdater:()=>AIe,PlaneGraphics:()=>iPe,PlaneOutlineGeometry:()=>IIe,PntsLoader:()=>HMe,PntsParser:()=>Yce,PointCloud:()=>CGe,PointCloudEyeDomeLighting:()=>sq,PointCloudShading:()=>i4,PointCloudStylingPipelineStage:()=>oMe,PointGraphics:()=>Iue,PointLight:()=>ede,PointPrimitive:()=>Py,PointPrimitiveCollection:()=>iV,PointVisualizer:()=>RVe,PolygonDepth:()=>b9,PolygonDepthFS:()=>Bce,PolygonDepthVS:()=>Hce,PolygonGeometry:()=>Uu,PolygonGeometryLibrary:()=>Al,PolygonGeometryUpdater:()=>VIe,PolygonGraphics:()=>hl,PolygonHierarchy:()=>Zn,PolygonOutlineGeometry:()=>MIe,PolygonPipeline:()=>Ah,Polyline:()=>YI,PolylineArrowMaterialProperty:()=>Mf,PolylineCollection:()=>WF,PolylineColorAppearance:()=>om,PolylineDashMaterialProperty:()=>Ml,PolylineGeometry:()=>B_,PolylineGeometryUpdater:()=>AVe,PolylineGlowMaterialProperty:()=>nle,PolylineGraphics:()=>bI,PolylineMaterialAppearance:()=>Eg,PolylineOutlineMaterialProperty:()=>KM,PolylinePipeline:()=>od,PolylineTrailLinkMaterialProperty:()=>Wft,PolylineVisualizer:()=>VVe,PolylineVolumeGeometry:()=>GIe,PolylineVolumeGeometryLibrary:()=>u9,PolylineVolumeGeometryUpdater:()=>DIe,PolylineVolumeGraphics:()=>Rue,PolylineVolumeOutlineGeometry:()=>FIe,PositionProperty:()=>wz,PositionPropertyArray:()=>dH,PostProcessStage:()=>Sa,PostProcessStageCollection:()=>m5e,PostProcessStageComposite:()=>Vf,PostProcessStageLibrary:()=>$2,PostProcessStageSampleMode:()=>iv,PostProcessStageTextureCache:()=>Ohe,PpeMetadata:()=>XRe,PpeSource:()=>Vgt,PpeTexture:()=>ORe,Primitive:()=>ta,PrimitiveCollection:()=>Ag,PrimitiveLoadPlan:()=>iq,PrimitiveOutlineGenerator:()=>Gce,PrimitiveOutlinePipelineStage:()=>lMe,PrimitivePipeline:()=>jZ,PrimitiveRenderResources:()=>VMe,PrimitiveState:()=>Lf,PrimitiveStatisticsPipelineStage:()=>uMe,PrimitiveType:()=>pn,ProjectionPicker:()=>kDe,ProjectionPickerViewModel:()=>XDe,Property:()=>Nt,PropertyArray:()=>cde,PropertyAttribute:()=>bce,PropertyAttributeProperty:()=>rRe,PropertyBag:()=>qE,PropertyTable:()=>kF,PropertyTexture:()=>Y7,PropertyTextureProperty:()=>tRe,ProviderViewModel:()=>Ef,Proxy:()=>axt,QuadraticRealPolynomial:()=>NE,QuadtreeOccluders:()=>She,QuadtreePrimitive:()=>G1,QuadtreePrimitivezh:()=>Xft,QuadtreeTile:()=>Aq,QuadtreeTileLoadState:()=>Mh,QuadtreeTileProvider:()=>OO,QuantizedMeshTerrainData:()=>xde,QuarticRealPolynomial:()=>pSe,Quaternion:()=>fr,QuaternionSpline:()=>iAe,Queue:()=>aV,RasterizeHtml:()=>M4,Ray:()=>Ma,Rectangle:()=>vi,RectangleCollisionChecker:()=>yce,RectangleGeometry:()=>uO,RectangleGeometryLibrary:()=>by,RectangleGeometryUpdater:()=>kIe,RectangleGraphics:()=>Pz,RectangleOutlineGeometry:()=>mce,RectangularSensor:()=>V6,RectangularSensorFS:()=>mle,RectangularSensorGraphics:()=>Mgt,RectangularSensorPrimitive:()=>cDe,RectangularSensorScanPlaneFS:()=>uDe,RectangularSensorVS:()=>Gde,RectangularSensorVisualizer:()=>hDe,ReferenceFrame:()=>pp,ReferenceProperty:()=>L7,RegionPolygonTexture:()=>DFe,RegionTexture:()=>NFe,RegionWeather:()=>Vde,RenderObjectFactory:()=>tc,RenderState:()=>cn,Renderbuffer:()=>r1,RenderbufferFormat:()=>Pb,Request:()=>hm,RequestErrorEvent:()=>zZ,RequestScheduler:()=>x1,RequestState:()=>pc,RequestType:()=>n2,ResetViewNavigationControl:()=>UFe,Resource:()=>Mr,ResourceCache:()=>qh,ResourceCacheKey:()=>zS,ResourceCacheStatistics:()=>MRe,ResourceLoader:()=>zx,ResourceLoaderState:()=>Zo,Rotation:()=>FI,RuntimeError:()=>Oi,S2Cell:()=>kB,S3MDataSource:()=>Hft,SDFSettings:()=>ev,SampledPositionProperty:()=>nS,SampledProperty:()=>uM,Sampler:()=>Yo,ScaledPositionProperty:()=>Mz,Scene:()=>VO,SceneFramebuffer:()=>Ghe,SceneHeightMap:()=>lDe,SceneHeightWaterPostProcessing:()=>XT,SceneHeightWaterPrimitive:()=>xgt,SceneMode:()=>gi,SceneMode2DPipelineStage:()=>cMe,SceneModePicker:()=>YDe,SceneModePickerViewModel:()=>zDe,SceneTransforms:()=>Ca,SceneTransitioner:()=>b5e,ScreenSpaceCameraController:()=>P5e,ScreenSpaceEventHandler:()=>Lr,ScreenSpaceEventType:()=>Si,SelectedFeatureIdPipelineStage:()=>m6,SelectionIndicator:()=>JDe,SelectionIndicatorViewModel:()=>KDe,Sensor:()=>ygt,SensorVolumePortionToDisplay:()=>ale,ShaderBuilder:()=>kce,ShaderCache:()=>c3e,ShaderDestination:()=>Ji,ShaderFunction:()=>SMe,ShaderProgram:()=>xs,ShaderSource:()=>Wr,ShaderStruct:()=>CMe,ShadowMap:()=>PV,ShadowMapShader:()=>OG,ShadowMode:()=>cl,ShadowVolumeAppearance:()=>gM,ShowGeometryInstanceAttribute:()=>qs,Simon1994PlanetaryPositions:()=>v6,SimplePolylineGeometry:()=>sxt,SingleTileImageryProvider:()=>V1,SkinningPipelineStage:()=>dMe,SkyAtmosphere:()=>zq,SkyBox:()=>GO,SlopeArrow:()=>Dde,SpatialNode:()=>iGe,Spdcf:()=>WRe,SpecularEnvironmentCubeMap:()=>_9,SphereEmitter:()=>H4,SphereGeometry:()=>lxt,SphereOutlineGeometry:()=>sV,Spherical:()=>OGe,Spline:()=>B0,SplitDirection:()=>L1,Splitter:()=>Khe,SpotLight:()=>Yft,StaticGeometryColorBatch:()=>hM,StaticGeometryPerMaterialBatch:()=>dM,StaticGroundGeometryColorBatch:()=>use,StaticGroundGeometryPerMaterialBatch:()=>zIe,StaticGroundPolylinePerMaterialBatch:()=>MVe,StaticOutlineGeometryBatch:()=>cse,StencilConstants:()=>ma,StencilFunction:()=>nu,StencilOperation:()=>Kn,SteppedSpline:()=>tAe,Stereographic:()=>Lb,StorageType:()=>IH,StripeMaterialProperty:()=>ole,StripeOrientation:()=>xF,StructuralMetadata:()=>nR,StyleCommandsNeeded:()=>v9,StyleExpression:()=>Bxt,Sun:()=>vGe,SunLight:()=>C4,SunPostProcess:()=>A5e,SupportedImageFormats:()=>GRe,SvgPathBindingHandler:()=>mDe,TaskProcessor:()=>mp,Terrain:()=>VFe,TerrainData:()=>yO,TerrainEncoding:()=>PS,TerrainFillMesh:()=>Che,TerrainFlatten:()=>kO,TerrainFlattenPolygonTexture:()=>WFe,TerrainMesh:()=>_O,TerrainOffsetProperty:()=>dce,TerrainProvider:()=>H_,TerrainQuantization:()=>sv,TerrainRegionWeather:()=>sDe,TerrainState:()=>ds,Texture:()=>Rn,Texture3D:()=>qGe,TextureAtlas:()=>aue,TextureCache:()=>h3e,TextureMagnificationFilter:()=>Xs,TextureManager:()=>OLe,TextureMinificationFilter:()=>Ho,TexturePacker:()=>oue,TextureUniform:()=>cue,TextureWrap:()=>Xn,TileAvailability:()=>kG,TileBoundingRegion:()=>LS,TileBoundingS2Cell:()=>xVe,TileBoundingSphere:()=>bV,TileBoundingVolume:()=>Hxt,TileCoordinatesImageryProvider:()=>l$,TileDiscardPolicy:()=>zxt,TileEdge:()=>hs,TileImagery:()=>vhe,TileMapServiceImageryProvider:()=>_L,TileMetadata:()=>dVe,TileOrientedBoundingBox:()=>e2,TileProviderError:()=>am,TileReplacementQueue:()=>Ehe,TileSelectionResult:()=>fa,TileState:()=>Yxt,Tileset3DTileContent:()=>eVe,TilesetMetadata:()=>_Ve,TilesetPipelineStage:()=>cAe,TilesetRegionWeather:()=>aDe,TilingScheme:()=>uxt,TimeConstants:()=>cc,TimeDynamicImagery:()=>yhe,TimeDynamicPointCloud:()=>Jhe,TimeInterval:()=>js,TimeIntervalCollection:()=>k_,TimeIntervalCollectionPositionProperty:()=>MH,TimeIntervalCollectionProperty:()=>pH,TimeStandard:()=>cu,Timeline:()=>qDe,TimelineHighlightRange:()=>jDe,TimelineTrack:()=>QDe,Tipsify:()=>mSe,ToggleButtonViewModel:()=>gB,Tonemapper:()=>SZ,TrackingReferenceFrame:()=>wB,Transforms:()=>_r,TranslationRotationScale:()=>I1,TranslucentTileClassification:()=>U3e,TridiagonalSystemSolver:()=>Zce,TrustedServers:()=>qle,TweenCollection:()=>Uhe,UniformState:()=>d3e,UniformType:()=>sa,UrlTemplateGeojsonProvider:()=>jft,UrlTemplateImageryProvider:()=>Hb,UserInterfaceControl:()=>Rde,Utils:()=>TL,VERSION:()=>o0e,VRButton:()=>iNe,VRButtonViewModel:()=>tNe,VRTheWorldTerrainProvider:()=>pxt,VaryingType:()=>Y_,Vector3DTileBatch:()=>RH,Vector3DTileClampedPolylines:()=>aVe,Vector3DTileContent:()=>uVe,Vector3DTileGeometry:()=>dZ,Vector3DTilePoints:()=>tVe,Vector3DTilePolygons:()=>iVe,Vector3DTilePolylines:()=>ihe,Vector3DTilePrimitive:()=>jce,VelocityOrientationProperty:()=>XGe,VelocityVectorProperty:()=>Tq,VertexArray:()=>Cu,VertexArrayFacade:()=>o7,VertexAttributeSemantic:()=>Ko,VertexFormat:()=>Yr,VerticalExaggeration:()=>U_,VerticalExaggerationPipelineStage:()=>fMe,VerticalOrigin:()=>jn,VideoSynchronizer:()=>cxt,View:()=>N1,ViewShed:()=>Igt,ViewShedMap:()=>I4,ViewShedMapShader:()=>XG,Viewer:()=>n0e,ViewportQuad:()=>Y4,Visibility:()=>Rl,Visualizer:()=>vmt,VolumeCloud:()=>Nde,VoxelBoxShape:()=>Xq,VoxelCell:()=>V5e,VoxelContent:()=>Bhe,VoxelCylinderShape:()=>kq,VoxelEllipsoidShape:()=>Uq,VoxelInspector:()=>eNe,VoxelInspectorViewModel:()=>$De,VoxelMetadataOrder:()=>w9,VoxelPrimitive:()=>Hq,VoxelProvider:()=>Kxt,VoxelRenderResources:()=>K5e,VoxelShape:()=>Jxt,VoxelShapeType:()=>Vb,VoxelTraversal:()=>rGe,VulkanConstants:()=>fxt,WallGeometry:()=>UIe,WallGeometryLibrary:()=>xce,WallGeometryUpdater:()=>HIe,WallGraphics:()=>y7,WallOutlineGeometry:()=>BIe,WaterFS:()=>jPe,WaterHeightMap:()=>Cgt,WaterMaterialProperty:()=>Qft,WaterPipelinePrimitive:()=>ade,WaterPostProcessing:()=>yle,WaterPostProcessingEx:()=>_le,WaterPrimitive:()=>Wde,WaterPrimitiveEx:()=>cD,WaterReflectImage:()=>dDe,WaterReflectImageEx:()=>pDe,WebGLConstants:()=>bi,WebMapServiceImageryProvider:()=>CO,WebMapTileServiceImageryProvider:()=>wV,WebMercatorProjection:()=>vd,WebMercatorTilingScheme:()=>xp,WindingOrder:()=>_1,WireframeIndexGenerator:()=>Xce,WireframePipelineStage:()=>xMe,ZoomNavigationControl:()=>dle,_shadersAcesTonemappingStage:()=>z3e,_shadersAdditiveBlend:()=>I5e,_shadersAdjustTranslucentFS:()=>Wse,_shadersAllMaterialAppearanceFS:()=>ZPe,_shadersAllMaterialAppearanceVS:()=>OPe,_shadersAmbientOcclusionGenerate:()=>Y3e,_shadersAmbientOcclusionModulate:()=>K3e,_shadersAspectRampMaterial:()=>vSe,_shadersAtmosphereCommon:()=>g9,_shadersAtmosphereStageFS:()=>hAe,_shadersAtmosphereStageVS:()=>dAe,_shadersBasicMaterialAppearanceFS:()=>XPe,_shadersBasicMaterialAppearanceVS:()=>kPe,_shadersBillboardCollectionFS:()=>bLe,_shadersBillboardCollectionVS:()=>CLe,_shadersBlackAndWhite:()=>J3e,_shadersBloomComposite:()=>j3e,_shadersBrdfLutGeneratorFS:()=>x3e,_shadersBrightPass:()=>R5e,_shadersBrightness:()=>Q3e,_shadersBumpMapMaterial:()=>bSe,_shadersCPUStylingStageFS:()=>WAe,_shadersCPUStylingStageVS:()=>NAe,_shadersCheckerboardMaterial:()=>CSe,_shadersCloudCollectionFS:()=>$Ge,_shadersCloudCollectionVS:()=>eFe,_shadersCloudNoiseFS:()=>tFe,_shadersCloudNoiseVS:()=>iFe,_shadersCompareAndPackTranslucentDepth:()=>k3e,_shadersCompositeOITFS:()=>V3e,_shadersCompositeTranslucentClassification:()=>oQ,_shadersComputeIrradianceFS:()=>jIe,_shadersComputeRadianceMapFS:()=>QIe,_shadersContrastBias:()=>q3e,_shadersConvolveSpecularMapFS:()=>qIe,_shadersConvolveSpecularMapVS:()=>$Ie,_shadersCustomShaderStageFS:()=>XAe,_shadersCustomShaderStageVS:()=>OAe,_shadersCzmBuiltins:()=>Ij,_shadersDepthOfField:()=>$3e,_shadersDepthPlaneFS:()=>_3e,_shadersDepthPlaneVS:()=>v3e,_shadersDepthView:()=>e5e,_shadersDepthViewPacked:()=>Tgt,_shadersDotMaterial:()=>TSe,_shadersEdgeDetection:()=>t5e,_shadersElevationBandMaterial:()=>SSe,_shadersElevationContourMaterial:()=>wSe,_shadersElevationRampMaterial:()=>ESe,_shadersEllipsoidFS:()=>Dse,_shadersEllipsoidSurfaceAppearanceFS:()=>HPe,_shadersEllipsoidSurfaceAppearanceVS:()=>zPe,_shadersEllipsoidVS:()=>Nse,_shadersFXAA:()=>n5e,_shadersFXAA3_11:()=>c5e,_shadersFadeMaterial:()=>LSe,_shadersFeatureIdStageFS:()=>kAe,_shadersFeatureIdStageVS:()=>UAe,_shadersFilmicTonemapping:()=>i5e,_shadersGaussianBlur1D:()=>T6,_shadersGeometryStageFS:()=>KAe,_shadersGeometryStageVS:()=>JAe,_shadersGlobeFS:()=>DVe,_shadersGlobeVS:()=>NVe,_shadersGridMaterial:()=>PSe,_shadersGroundAtmosphere:()=>Ise,_shadersHSBToRGB:()=>_Ee,_shadersHSLToRGB:()=>vEe,_shadersImageBasedLightingStageFS:()=>fAe,_shadersInstancingStageCommon:()=>EAe,_shadersInstancingStageVS:()=>LAe,_shadersIntersectBox:()=>O5e,_shadersIntersectClippingPlanes:()=>Z5e,_shadersIntersectCylinder:()=>X5e,_shadersIntersectDepth:()=>W5e,_shadersIntersectEllipsoid:()=>k5e,_shadersIntersectLongitude:()=>Xse,_shadersIntersection:()=>lQ,_shadersIntersectionUtils:()=>N5e,_shadersLegacyInstancingStageVS:()=>PAe,_shadersLensFlare:()=>o5e,_shadersLightingStageFS:()=>QAe,_shadersMaterialStageFS:()=>$Ae,_shadersMegatexture:()=>Y5e,_shadersMetadataStageFS:()=>BAe,_shadersMetadataStageVS:()=>HAe,_shadersModelClippingPlanesStageFS:()=>vAe,_shadersModelClippingPolygonsStageFS:()=>TAe,_shadersModelClippingPolygonsStageVS:()=>CAe,_shadersModelColorStageFS:()=>_Ae,_shadersModelFS:()=>WMe,_shadersModelFlattenStageFS:()=>XMe,_shadersModelFlattenStageVS:()=>OMe,_shadersModelSilhouetteStageFS:()=>EMe,_shadersModelSilhouetteStageVS:()=>LMe,_shadersModelSplitterStageFS:()=>IMe,_shadersModelVS:()=>NMe,_shadersModifiedReinhardTonemapping:()=>a5e,_shadersMorphTargetsStageVS:()=>tMe,_shadersNightVision:()=>s5e,_shadersNormalMapMaterial:()=>ISe,_shadersOctree:()=>z5e,_shadersPassThrough:()=>kM,_shadersPassThroughDepth:()=>C6,_shadersPbrNeutralTonemapping:()=>r5e,_shadersPerInstanceColorAppearanceFS:()=>$Le,_shadersPerInstanceColorAppearanceVS:()=>ePe,_shadersPerInstanceFlatColorAppearanceFS:()=>vue,_shadersPerInstanceFlatColorAppearanceVS:()=>tPe,_shadersPointCloudEyeDomeLighting:()=>zRe,_shadersPointCloudStylingStageVS:()=>nMe,_shadersPointPrimitiveCollectionFS:()=>nB,_shadersPointPrimitiveCollectionVS:()=>LLe,_shadersPolygonSignedDistanceFS:()=>JIe,_shadersPolylineArrowMaterial:()=>RSe,_shadersPolylineColorAppearanceVS:()=>JLe,_shadersPolylineCommon:()=>K9,_shadersPolylineDashMaterial:()=>ASe,_shadersPolylineFS:()=>bue,_shadersPolylineGlowMaterial:()=>MSe,_shadersPolylineMaterialAppearanceVS:()=>jLe,_shadersPolylineOutlineMaterial:()=>VSe,_shadersPolylineShadowVolumeFS:()=>HLe,_shadersPolylineShadowVolumeMorphFS:()=>zLe,_shadersPolylineShadowVolumeMorphVS:()=>YLe,_shadersPolylineShadowVolumeVS:()=>KLe,_shadersPolylineVS:()=>YPe,_shadersPostProcessRain:()=>Sgt,_shadersPostProcessSnow:()=>wgt,_shadersPrimitiveOutlineStageFS:()=>sMe,_shadersPrimitiveOutlineStageVS:()=>aMe,_shadersRGBToHSB:()=>zEe,_shadersRGBToHSL:()=>YEe,_shadersRGBToXYZ:()=>KEe,_shadersReinhardTonemapping:()=>l5e,_shadersReprojectWebMercatorFS:()=>YVe,_shadersReprojectWebMercatorVS:()=>KVe,_shadersRimLightingMaterial:()=>GSe,_shadersSelectedFeatureIdStageCommon:()=>yse,_shadersShadowVolumeAppearanceFS:()=>Cue,_shadersShadowVolumeAppearanceVS:()=>qLe,_shadersShadowVolumeFS:()=>PQ,_shadersSilhouette:()=>u5e,_shadersSkinningStageVS:()=>hMe,_shadersSkyAtmosphereCommon:()=>Hse,_shadersSkyAtmosphereFS:()=>dGe,_shadersSkyAtmosphereVS:()=>pGe,_shadersSkyBoxFS:()=>mGe,_shadersSkyBoxVS:()=>xGe,_shadersSlopeRampMaterial:()=>FSe,_shadersStripeMaterial:()=>DSe,_shadersSunFS:()=>gGe,_shadersSunTextureFS:()=>yGe,_shadersSunVS:()=>_Ge,_shadersTexturedMaterialAppearanceFS:()=>UPe,_shadersTexturedMaterialAppearanceVS:()=>BPe,_shadersVector3DTileClampedPolylinesFS:()=>oVe,_shadersVector3DTileClampedPolylinesVS:()=>nVe,_shadersVector3DTilePolylinesVS:()=>rVe,_shadersVectorTileVS:()=>vse,_shadersVerticalExaggerationStageVS:()=>pMe,_shadersViewportQuadFS:()=>rFe,_shadersViewportQuadVS:()=>Phe,_shadersVoxelFS:()=>F5e,_shadersVoxelUtils:()=>G5e,_shadersVoxelVS:()=>D5e,_shadersWater:()=>WSe,_shadersWaterMaskMaterial:()=>NSe,_shadersXYZToRGB:()=>yLe,_shadersacesTonemapping:()=>Nwe,_shadersalphaWeight:()=>Wwe,_shadersantialias:()=>Zwe,_shadersapplyHSBShift:()=>Owe,_shadersapproximateSphericalCoordinates:()=>Xwe,_shadersapproximateTanh:()=>kwe,_shadersbackFacing:()=>Uwe,_shadersbranchFreeTernary:()=>Bwe,_shaderscascadeColor:()=>Hwe,_shaderscascadeDistance:()=>zwe,_shaderscascadeMatrix:()=>Ywe,_shaderscascadeWeights:()=>Kwe,_shadersclipPolygons:()=>Jwe,_shaderscolumbusViewMorph:()=>jwe,_shaderscomputeAtmosphereColor:()=>Qwe,_shaderscomputeGroundAtmosphereScattering:()=>qwe,_shaderscomputePosition:()=>$we,_shaderscomputeScattering:()=>eEe,_shadersconvertUvToBox:()=>U5e,_shadersconvertUvToCylinder:()=>B5e,_shadersconvertUvToEllipsoid:()=>H5e,_shaderscosineAndSine:()=>tEe,_shadersdecompressTextureCoordinates:()=>iEe,_shadersdegreesPerRadian:()=>HSe,_shadersdepthClamp:()=>rEe,_shadersdepthRange:()=>zSe,_shadersdepthRangeStruct:()=>Iwe,_shaderseastNorthUpToEyeCoordinates:()=>nEe,_shadersellipsoidContainsPoint:()=>oEe,_shadersellipsoidTextureCoordinates:()=>aEe,_shadersepsilon1:()=>YSe,_shadersepsilon2:()=>KSe,_shadersepsilon3:()=>JSe,_shadersepsilon4:()=>jSe,_shadersepsilon5:()=>QSe,_shadersepsilon6:()=>qSe,_shadersepsilon7:()=>$Se,_shadersequalsEpsilon:()=>sEe,_shaderseyeOffset:()=>lEe,_shaderseyeToWindowCoordinates:()=>uEe,_shadersfastApproximateAtan:()=>cEe,_shadersfog:()=>hEe,_shadersgammaCorrect:()=>dEe,_shadersgeodeticSurfaceNormal:()=>pEe,_shadersgetDefaultMaterial:()=>fEe,_shadersgetDynamicAtmosphereLightDirection:()=>mEe,_shadersgetLambertDiffuse:()=>xEe,_shadersgetSpecular:()=>gEe,_shadersgetWaterNoise:()=>yEe,_shadershue:()=>bEe,_shadersinfinity:()=>ewe,_shadersinverseGamma:()=>CEe,_shadersisEmpty:()=>TEe,_shadersisFull:()=>SEe,_shaderslatitudeToWebMercatorFraction:()=>wEe,_shaderslineDistance:()=>LEe,_shaderslinearToSrgb:()=>EEe,_shadersluminance:()=>PEe,_shadersmaterial:()=>Rwe,_shadersmaterialInput:()=>Awe,_shadersmaximumComponent:()=>IEe,_shadersmetersPerPixel:()=>REe,_shadersmodelMaterial:()=>Mwe,_shadersmodelToWindowCoordinates:()=>AEe,_shadersmodelVertexOutput:()=>Vwe,_shadersmultiplyWithColorBalance:()=>MEe,_shadersnearFarScalar:()=>VEe,_shadersoctDecode:()=>GEe,_shadersoneOverPi:()=>twe,_shadersoneOverTwoPi:()=>iwe,_shaderspackDepth:()=>FEe,_shaderspassCesium3DTile:()=>rwe,_shaderspassCesium3DTileClassification:()=>nwe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>owe,_shaderspassClassification:()=>awe,_shaderspassCompute:()=>swe,_shaderspassEnvironment:()=>lwe,_shaderspassGlobe:()=>uwe,_shaderspassOpaque:()=>cwe,_shaderspassOverlay:()=>hwe,_shaderspassTerrainClassification:()=>dwe,_shaderspassTranslucent:()=>pwe,_shaderspassVoxels:()=>fwe,_shaderspbrLighting:()=>DEe,_shaderspbrNeutralTonemapping:()=>NEe,_shadersphong:()=>WEe,_shaderspi:()=>mwe,_shaderspiOverFour:()=>xwe,_shaderspiOverSix:()=>gwe,_shaderspiOverThree:()=>ywe,_shaderspiOverTwo:()=>_we,_shadersplaneDistance:()=>ZEe,_shaderspointAlongRay:()=>OEe,_shadersradiansPerDegree:()=>vwe,_shadersray:()=>Gwe,_shadersrayEllipsoidIntersectionInterval:()=>XEe,_shadersraySegment:()=>Fwe,_shadersraySphereIntersectionInterval:()=>kEe,_shadersreadDepth:()=>UEe,_shadersreadNonPerspective:()=>BEe,_shadersreverseLogDepth:()=>HEe,_shadersround:()=>JEe,_shaderssaturation:()=>jEe,_shaderssceneMode2D:()=>bwe,_shaderssceneMode3D:()=>Cwe,_shaderssceneModeColumbusView:()=>Twe,_shaderssceneModeMorphing:()=>Swe,_shadersshadowDepthCompare:()=>QEe,_shadersshadowParameters:()=>Dwe,_shadersshadowVisibility:()=>qEe,_shaderssignNotZero:()=>$Ee,_shaderssolarRadius:()=>wwe,_shaderssphericalHarmonics:()=>eLe,_shaderssrgbToLinear:()=>tLe,_shaderstangentToEyeSpaceMatrix:()=>iLe,_shaderstextureCube:()=>rLe,_shadersthreePiOver2:()=>Ewe,_shaderstransformPlane:()=>nLe,_shaderstranslateRelativeToEye:()=>oLe,_shaderstranslucentPhong:()=>aLe,_shaderstranspose:()=>sLe,_shaderstwoPi:()=>Lwe,_shadersunpackClippingExtents:()=>lLe,_shadersunpackDepth:()=>uLe,_shadersunpackFloat:()=>cLe,_shadersunpackUint:()=>hLe,_shadersvalueTransform:()=>dLe,_shadersvertexLogDepth:()=>pLe,_shaderswebMercatorMaxLatitude:()=>Pwe,_shaderswindowToEyeCoordinates:()=>fLe,_shaderswriteDepthClamp:()=>mLe,_shaderswriteLogDepth:()=>xLe,_shaderswriteNonPerspective:()=>gLe,addBuffer:()=>_Re,addDefaults:()=>hRe,addExtensionsRequired:()=>xRe,addExtensionsUsed:()=>pO,addPipelineExtras:()=>q7,addToArray:()=>n1,appendForwardSlash:()=>DTe,arrayRemoveDuplicates:()=>Mg,barycentricCoordinates:()=>nue,binarySearch:()=>Nx,buildModuleUrl:()=>oa,buildVoxelDrawCommands:()=>j5e,clipper2lib:()=>rG,clone:()=>zn,combine:()=>va,computeFlyToLocationForRectangle:()=>hhe,createBillboardPointCallback:()=>the,createBlurStage:()=>fle,createCommand:()=>Il,createDefaultImageryProviderViewModels:()=>bDe,createDefaultTerrainProviderViewModels:()=>CDe,createEdgeStage:()=>Q4,createElevationBandMaterial:()=>Pxt,createFragmentFromTemplate:()=>ZFe,createGooglePhotorealistic3DTileset:()=>Ixt,createGuid:()=>du,createMaterialPropertyDescriptor:()=>Ey,createOsmBuildingsAsync:()=>Rxt,createPropertyDescriptor:()=>Ii,createRawPropertyDescriptor:()=>vb,createTangentSpaceDebugPrimitive:()=>Axt,createTaskProcessorWorker:()=>Ggt,createUniform:()=>kSe,createUniformArray:()=>BSe,createWorldBathymetryAsync:()=>cFe,createWorldImageryAsync:()=>zB,createWorldTerrainAsync:()=>gde,decodeGoogleEarthEnterpriseData:()=>dFe,decodeVectorPolylinePositions:()=>sVe,defaultValue:()=>Zmt,defer:()=>fp,defined:()=>F,demodernizeShader:()=>_Le,deprecationWarning:()=>pL,destroyObject:()=>yr,exportKml:()=>fmt,fflate_module:()=>QFe,findAccessorMinMax:()=>$7,findContentMetadata:()=>nhe,findGroupMetadata:()=>ohe,findTileMetadata:()=>fVe,forEachTextureInMaterial:()=>Lce,formatError:()=>_H,fragment:()=>Lgt,freezeRenderState:()=>utt,getAbsoluteUri:()=>$B,getAccessorByteStride:()=>XF,getBaseUri:()=>WTe,getBinaryAccessor:()=>CM,getClipAndStyleCode:()=>bGe,getClippingFunction:()=>wq,getComponentReader:()=>U7,getElement:()=>Qh,getExtensionFromUri:()=>PF,getFilenameFromUri:()=>v7,getImageFromTypedArray:()=>ZLe,getImagePixels:()=>BZ,getJsonFromTypedArray:()=>Q_,getMagic:()=>jz,getMetadataClassProperty:()=>oGe,getMetadataProperty:()=>sGe,getStringFromTypedArray:()=>UF,getTimestamp:()=>lh,hasExtension:()=>ld,heightReferenceOnEntityPropertyChanged:()=>D7,isBitSet:()=>m1,isBlobUri:()=>Kle,isCrossOriginUrl:()=>HZ,isDataUri:()=>e7,isLeapYear:()=>YZ,knockout:()=>sr,knockout_3_5_1:()=>VV,knockout_es5:()=>fDe,libgif:()=>oIe,loadAndExecuteScript:()=>Jle,loadCRN:()=>qmt,loadCubeMap:()=>fGe,loadDDS:()=>$le,loadImageFromTypedArray:()=>Jz,loadKTX2:()=>IF,loadView:()=>Ide,mergeSort:()=>b4,moveTechniqueRenderStates:()=>mRe,moveTechniquesToExtension:()=>gRe,numberOfComponentsForType:()=>hO,objFS:()=>iDe,objectToQuery:()=>jle,oneTimeWarning:()=>aa,packer:()=>ULe,parseBatchTable:()=>$z,parseDefines:()=>oDe,parseFeatureMetadataLegacy:()=>lRe,parseGlb:()=>pRe,parseResponseHeaders:()=>ZTe,parseStructuralMetadata:()=>sRe,pickModel:()=>zMe,pointInsideTriangle:()=>nxt,preprocess3DTileContent:()=>fq,processVoxelProperties:()=>J5e,queryToObject:()=>lI,rasterizeHTML_allinone:()=>VGe,readAccessorPacked:()=>vRe,removeExtension:()=>h6,removeExtensionsRequired:()=>dRe,removeExtensionsUsed:()=>Ece,removePipelineExtras:()=>fRe,removeUnusedElements:()=>yRe,remove_primitive:()=>M6,resizeImageToNextPowerOfTwo:()=>EQ,sampleTerrain:()=>Sq,sampleTerrainMostDetailed:()=>cR,scaleToGeodeticSurface:()=>eue,srgbToLinear:()=>jhe,subdivideArray:()=>QLe,subscribeAndEvaluate:()=>Eb,svgCompassGyro:()=>HFe,svgCompassOuterRing:()=>BFe,svgCompassRotationMarker:()=>zFe,svgReset:()=>XFe,turf:()=>Po,updateAccessorComponentTypes:()=>bRe,updateVersion:()=>SRe,usesExtension:()=>um,vertex:()=>Pgt,viewerCesium3DTilesInspectorMixin:()=>oyt,viewerCesiumInspectorMixin:()=>ayt,viewerCesiumNavigationMixin:()=>igt,viewerDragDropMixin:()=>syt,viewerPerformanceWatchdogMixin:()=>lyt,viewerVoxelInspectorMixin:()=>uyt,webGLConstantToGlslType:()=>mxt,wrapFunction:()=>_Fe,writeTextToCanvas:()=>H9});we();var aVt=Object.create,gqe=Object.defineProperty,sVt=Object.getOwnPropertyDescriptor,lVt=Object.getOwnPropertyNames,uVt=Object.getPrototypeOf,cVt=Object.prototype.hasOwnProperty,yZ=(o=>typeof RT<"u"?RT:typeof Proxy<"u"?new Proxy(o,{get:(f,m)=>(typeof RT<"u"?RT:f)[m]}):o)(function(o){if(typeof RT<"u")return RT.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')}),Zt=(o,f)=>()=>(f||o((f={exports:{}}).exports,f),f.exports),hVt=(o,f,m,x)=>{if(f&&typeof f=="object"||typeof f=="function")for(let y of lVt(f))!cVt.call(o,y)&&y!==m&&gqe(o,y,{get:()=>f[y],enumerable:!(x=sVt(f,y))||x.enumerable});return o},k0=(o,f,m)=>(m=o!=null?aVt(uVt(o)):{},hVt(f||!o||!o.__esModule?gqe(m,"default",{value:o,enumerable:!0}):m,o)),Q1e=Zt((o,f)=>{var m=function(x){x==null&&(x=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,x.constructor==Array?this.init_by_array(x,x.length):this.init_seed(x)};m.prototype.init_seed=function(x){for(this.mt[0]=x>>>0,this.mti=1;this.mti<this.N;this.mti++){var x=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(((x&4294901760)>>>16)*1812433253<<16)+(x&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}},m.prototype.init_by_array=function(x,y){var v,C,T;for(this.init_seed(19650218),v=1,C=0,T=this.N>y?this.N:y;T;T--){var S=this.mt[v-1]^this.mt[v-1]>>>30;this.mt[v]=(this.mt[v]^(((S&4294901760)>>>16)*1664525<<16)+(S&65535)*1664525)+x[C]+C,this.mt[v]>>>=0,v++,C++,v>=this.N&&(this.mt[0]=this.mt[this.N-1],v=1),C>=y&&(C=0)}for(T=this.N-1;T;T--){var S=this.mt[v-1]^this.mt[v-1]>>>30;this.mt[v]=(this.mt[v]^(((S&4294901760)>>>16)*1566083941<<16)+(S&65535)*1566083941)-v,this.mt[v]>>>=0,v++,v>=this.N&&(this.mt[0]=this.mt[this.N-1],v=1)}this.mt[0]=2147483648},m.prototype.random_int=function(){var x,y=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var v;for(this.mti==this.N+1&&this.init_seed(5489),v=0;v<this.N-this.M;v++)x=this.mt[v]&this.UPPER_MASK|this.mt[v+1]&this.LOWER_MASK,this.mt[v]=this.mt[v+this.M]^x>>>1^y[x&1];for(;v<this.N-1;v++)x=this.mt[v]&this.UPPER_MASK|this.mt[v+1]&this.LOWER_MASK,this.mt[v]=this.mt[v+(this.M-this.N)]^x>>>1^y[x&1];x=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^x>>>1^y[x&1],this.mti=0}return x=this.mt[this.mti++],x^=x>>>11,x^=x<<7&2636928640,x^=x<<15&4022730752,x^=x>>>18,x>>>0},m.prototype.random_int31=function(){return this.random_int()>>>1},m.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},m.prototype.random=function(){return this.random_int()*(1/4294967296)},m.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},m.prototype.random_long=function(){var x=this.random_int()>>>5,y=this.random_int()>>>6;return(x*67108864+y)*(1/9007199254740992)},f.exports=m}),dVt=Zt((o,f)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */(function(m){var x=typeof o=="object"&&o&&!o.nodeType&&o,y=typeof f=="object"&&f&&!f.nodeType&&f,v=typeof global=="object"&&global;(v.global===v||v.window===v||v.self===v)&&(m=v);var C,T=2147483647,S=36,w=1,E=26,L=38,I=700,R=72,P=128,A="-",M=/^xn--/,V=/[^\x20-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,D={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=S-w,k=Math.floor,U=String.fromCharCode,B;function Y(oe){throw new RangeError(D[oe])}function J(oe,ce){for(var pe=oe.length,ue=[];pe--;)ue[pe]=ce(oe[pe]);return ue}function K(oe,ce){var pe=oe.split("@"),ue="";pe.length>1&&(ue=pe[0]+"@",oe=pe[1]),oe=oe.replace(G,".");var he=oe.split("."),fe=J(he,ce).join(".");return ue+fe}function z(oe){for(var ce=[],pe=0,ue=oe.length,he,fe;pe<ue;)he=oe.charCodeAt(pe++),he>=55296&&he<=56319&&pe<ue?(fe=oe.charCodeAt(pe++),(fe&64512)==56320?ce.push(((he&1023)<<10)+(fe&1023)+65536):(ce.push(he),pe--)):ce.push(he);return ce}function j(oe){return J(oe,function(ce){var pe="";return ce>65535&&(ce-=65536,pe+=U(ce>>>10&1023|55296),ce=56320|ce&1023),pe+=U(ce),pe}).join("")}function q(oe){return oe-48<10?oe-22:oe-65<26?oe-65:oe-97<26?oe-97:S}function O(oe,ce){return oe+22+75*(oe<26)-((ce!=0)<<5)}function te(oe,ce,pe){var ue=0;for(oe=pe?k(oe/I):oe>>1,oe+=k(oe/ce);oe>N*E>>1;ue+=S)oe=k(oe/N);return k(ue+(N+1)*oe/(oe+L))}function ie(oe){var ce=[],pe=oe.length,ue,he=0,fe=P,de=R,Ce,Se,Le,Ve,Oe,$e,at,dt,gt;for(Ce=oe.lastIndexOf(A),Ce<0&&(Ce=0),Se=0;Se<Ce;++Se)oe.charCodeAt(Se)>=128&&Y("not-basic"),ce.push(oe.charCodeAt(Se));for(Le=Ce>0?Ce+1:0;Le<pe;){for(Ve=he,Oe=1,$e=S;Le>=pe&&Y("invalid-input"),at=q(oe.charCodeAt(Le++)),(at>=S||at>k((T-he)/Oe))&&Y("overflow"),he+=at*Oe,dt=$e<=de?w:$e>=de+E?E:$e-de,!(at<dt);$e+=S)gt=S-dt,Oe>k(T/gt)&&Y("overflow"),Oe*=gt;ue=ce.length+1,de=te(he-Ve,ue,Ve==0),k(he/ue)>T-fe&&Y("overflow"),fe+=k(he/ue),he%=ue,ce.splice(he++,0,fe)}return j(ce)}function re(oe){var ce,pe,ue,he,fe,de,Ce,Se,Le,Ve,Oe,$e=[],at,dt,gt,Et;for(oe=z(oe),at=oe.length,ce=P,pe=0,fe=R,de=0;de<at;++de)Oe=oe[de],Oe<128&&$e.push(U(Oe));for(ue=he=$e.length,he&&$e.push(A);ue<at;){for(Ce=T,de=0;de<at;++de)Oe=oe[de],Oe>=ce&&Oe<Ce&&(Ce=Oe);for(dt=ue+1,Ce-ce>k((T-pe)/dt)&&Y("overflow"),pe+=(Ce-ce)*dt,ce=Ce,de=0;de<at;++de)if(Oe=oe[de],Oe<ce&&++pe>T&&Y("overflow"),Oe==ce){for(Se=pe,Le=S;Ve=Le<=fe?w:Le>=fe+E?E:Le-fe,!(Se<Ve);Le+=S)Et=Se-Ve,gt=S-Ve,$e.push(U(O(Ve+Et%gt,0))),Se=k(Et/gt);$e.push(U(O(Se,0))),fe=te(pe,dt,ue==he),pe=0,++ue}++pe,++ce}return $e.join("")}function ee(oe){return K(oe,function(ce){return M.test(ce)?ie(ce.slice(4).toLowerCase()):ce})}function ae(oe){return K(oe,function(ce){return V.test(ce)?"xn--"+re(ce):ce})}if(C={version:"1.3.2",ucs2:{decode:z,encode:j},decode:ie,encode:re,toASCII:ae,toUnicode:ee},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return C});else if(x&&y)if(f.exports==x)y.exports=C;else for(B in C)C.hasOwnProperty(B)&&(x[B]=C[B]);else m.punycode=C})(o)}),pVt=Zt((o,f)=>{/*!
    `;setTimeout(console.log.bind(console,o,"color:#018aff;font-size:30px;font-wight:bold;font-family:\u5FAE\u8F6F\u96C5\u9ED1","color:#018aff;font-size:13px;font-family:\u5FAE\u8F6F\u96C5\u9ED1"),0)};var oVt=rVt;var cyt={};Bie(cyt,{AlphaMode:()=>PH,AlphaPipelineStage:()=>GAe,AnchorPointDirect:()=>FRe,AnchorPointIndirect:()=>DRe,Animation:()=>gDe,AnimationViewModel:()=>yDe,Appearance:()=>Sd,ApproximateTerrainHeights:()=>jh,ArcGISTiledElevationTerrainProvider:()=>fde,ArcGisBaseMapType:()=>NG,ArcGisMapServerImageryProvider:()=>d1,ArcGisMapService:()=>LE,ArcType:()=>qa,ArticulationStageType:()=>YC,AssociativeArray:()=>zo,Atmosphere:()=>_ce,AtmospherePipelineStage:()=>pAe,AttributeCompression:()=>Ru,AttributeType:()=>Is,AutoExposure:()=>h5e,AutomaticUniforms:()=>vB,Axis:()=>D0,AxisAlignedBoundingBox:()=>m7,B3dmLoader:()=>KRe,B3dmParser:()=>YRe,Base64Encoder:()=>bae,BaseLayerPicker:()=>vDe,BaseLayerPickerViewModel:()=>_De,BatchTable:()=>Cz,BatchTableHierarchy:()=>Nce,BatchTexture:()=>KT,BatchTexturePipelineStage:()=>FAe,Billboard:()=>Td,BillboardCollection:()=>jE,BillboardGraphics:()=>oV,BillboardLoadState:()=>Om,BillboardTexture:()=>fz,BillboardVisualizer:()=>gIe,BingMapsGeocoderService:()=>Smt,BingMapsImageryProvider:()=>vO,BingMapsStyle:()=>phe,BlendEquation:()=>F_,BlendFunction:()=>Kh,BlendOption:()=>F0,BlendTexture:()=>hz,BlendingState:()=>ru,BoundingRectangle:()=>Er,BoundingSphere:()=>Ei,BoundingSphereState:()=>Xo,BoundingVolumeSemantics:()=>ehe,BoxEmitter:()=>Sde,BoxGeometry:()=>g1,BoxGeometryUpdater:()=>yIe,BoxGraphics:()=>Tue,BoxOutlineGeometry:()=>BS,BrdfLutGenerator:()=>g3e,Buffer:()=>mo,BufferLoader:()=>j7,BufferUsage:()=>rn,CPUStylingPipelineStage:()=>ZAe,CallbackPositionProperty:()=>PVe,CallbackProperty:()=>Fr,Camera:()=>Ts,CameraEventAggregator:()=>C5e,CameraEventType:()=>Jc,CameraFlightPath:()=>qPe,Cartesian2:()=>rt,Cartesian3:()=>Z,Cartesian4:()=>zt,Cartographic:()=>Gt,CartographicGeocoderService:()=>wmt,CatmullRomSpline:()=>Emt,Cesium3DContentGroup:()=>Jce,Cesium3DTile:()=>Wb,Cesium3DTileBatchTable:()=>dq,Cesium3DTileColorBlendMode:()=>xI,Cesium3DTileContent:()=>xxt,Cesium3DTileContentFactory:()=>rhe,Cesium3DTileContentState:()=>_d,Cesium3DTileContentType:()=>N_,Cesium3DTileFeature:()=>Ss,Cesium3DTileFeatureTable:()=>r4,Cesium3DTileOptimizationHint:()=>xG,Cesium3DTileOptimizations:()=>she,Cesium3DTilePass:()=>sh,Cesium3DTilePassState:()=>qm,Cesium3DTilePointFeature:()=>bZ,Cesium3DTileRefine:()=>Km,Cesium3DTileStyle:()=>ZS,Cesium3DTileStyleEngine:()=>CVe,Cesium3DTilesInspector:()=>SDe,Cesium3DTilesInspectorViewModel:()=>TDe,Cesium3DTilesVoxelProvider:()=>gxt,Cesium3DTileset:()=>_0,Cesium3DTilesetBaseTraversal:()=>SVe,Cesium3DTilesetCache:()=>vVe,Cesium3DTilesetGraphics:()=>Pue,Cesium3DTilesetHeatmap:()=>bVe,Cesium3DTilesetMetadata:()=>ahe,Cesium3DTilesetMostDetailedTraversal:()=>TVe,Cesium3DTilesetSkipTraversal:()=>wVe,Cesium3DTilesetStatistics:()=>DG,Cesium3DTilesetTraversal:()=>xv,Cesium3DTilesetVisualizer:()=>LVe,CesiumInspector:()=>EDe,CesiumInspectorViewModel:()=>wDe,CesiumNavigation:()=>JFe,CesiumRenderPass:()=>nDe,CesiumTerrainProvider:()=>N4,CesiumWidget:()=>A4,Check:()=>Da,CheckerboardMaterialProperty:()=>ele,CircleEmitter:()=>TFe,CircleGeometry:()=>Vmt,CircleOutlineGeometry:()=>Gmt,CircleWaveMaterialProperty:()=>pz,ClassificationModelDrawCommand:()=>FMe,ClassificationPipelineStage:()=>DAe,ClassificationPrimitive:()=>Tz,ClassificationType:()=>hc,ClearCommand:()=>ku,ClippingPlane:()=>Jp,ClippingPlaneCollection:()=>Ox,ClippingPolygon:()=>kb,ClippingPolygonCollection:()=>Ry,Clock:()=>Az,ClockRange:()=>Gx,ClockStep:()=>kd,ClockViewModel:()=>xDe,CloudCollection:()=>Sxt,CloudType:()=>hle,CollectionSource:()=>Uit,Color:()=>Xe,ColorBlendMode:()=>II,ColorGeometryInstanceAttribute:()=>yo,ColorMaterialProperty:()=>Ba,Command:()=>Wgt,CommandLoader:()=>jFe,ComponentDatatype:()=>Qt,Composite3DTileContent:()=>KMe,CompositeEntityCollection:()=>tmt,CompositeMaterialProperty:()=>ile,CompositePositionProperty:()=>i1,CompositeProperty:()=>rS,CompressedTextureBuffer:()=>DS,ComputeCommand:()=>cV,ComputeEngine:()=>l3e,ComputeRegionBox:()=>Kxt,ConditionsExpression:()=>kLe,ConeEmitter:()=>X4,ConicArcSensor:()=>ble,ConicArcSensorCollection:()=>Agt,ConicArcSensorGeometry:()=>Tle,ConicArcSensorGraphics:()=>vle,ConicArcSensorOutlineGeometry:()=>Sle,ConstantPositionProperty:()=>hI,ConstantProperty:()=>Qc,ConstantSpline:()=>eAe,ConstructionWorker:()=>Hit,ContentMetadata:()=>cVe,Context:()=>m3e,ContextLimits:()=>co,CoplanarPolygonGeometry:()=>lO,CoplanarPolygonGeometryLibrary:()=>DB,CoplanarPolygonOutlineGeometry:()=>tM,CornerType:()=>ad,CorrelationGroup:()=>NRe,CorridorGeometry:()=>N7,CorridorGeometryLibrary:()=>oh,CorridorGeometryUpdater:()=>bIe,CorridorGraphics:()=>Sue,CorridorOutlineGeometry:()=>vIe,Credit:()=>Oa,CreditDisplay:()=>y3e,CubeMap:()=>Ig,CubeMapFace:()=>ySe,CubicRealPolynomial:()=>r7,CullFace:()=>yh,CullingVolume:()=>pm,CumulusCloud:()=>wL,CustomDataSource:()=>Aue,CustomHeightmapTerrainProvider:()=>Fmt,CustomMercatorProjection:()=>xz,CustomShader:()=>P1,CustomShaderManagerEx:()=>yue,CustomShaderMode:()=>h7,CustomShaderPipelineStage:()=>zAe,CustomShaderTranslucencyMode:()=>KG,CustomTilingScheme:()=>Ert,CylinderGeometry:()=>W7,CylinderGeometryLibrary:()=>pce,CylinderGeometryUpdater:()=>CIe,CylinderGraphics:()=>wue,CylinderOutlineGeometry:()=>Z7,CzmlDataSource:()=>qq,DataSource:()=>Sy,DataSourceClock:()=>r9,DataSourceCollection:()=>mIe,DataSourceDisplay:()=>Cq,DebugAppearance:()=>Rxt,DebugCameraPrimitive:()=>Bp,DebugInspector:()=>M5e,DebugModelMatrixPrimitive:()=>LFe,DefaultProxy:()=>Nmt,DepthFunction:()=>wy,DepthPlane:()=>b3e,DequantizationPipelineStage:()=>YAe,DerivedCommand:()=>Cy,DeveloperError:()=>wt,DeviceOrientationCameraController:()=>C3e,DirectionalLight:()=>k4,DiscardEmptyTileImagePolicy:()=>fhe,DiscardMissingTileImagePolicy:()=>XVe,DistanceDisplayCondition:()=>So,DistanceDisplayConditionGeometryInstanceAttribute:()=>uh,DistanceLegendViewModel:()=>OFe,DoubleEndedPriorityQueue:()=>Hhe,DoublyLinkedList:()=>gq,DracoLoader:()=>Q7,DrawCommand:()=>En,DynamicAtmosphereLightingType:()=>k7,DynamicEnvironmentMapManager:()=>LH,DynamicGeometryBatch:()=>cce,DynamicGeometryUpdater:()=>Vh,ECharts:()=>p7,EarthOrientationParameters:()=>JTe,EarthOrientationParametersSample:()=>i7,EasingFunction:()=>J_,EllipseGeometry:()=>TS,EllipseGeometryLibrary:()=>T1,EllipseGeometryUpdater:()=>TIe,EllipseGraphics:()=>Eue,EllipseOutlineGeometry:()=>LI,Ellipsoid:()=>yi,EllipsoidGeodesic:()=>Hx,EllipsoidGeometry:()=>Jm,EllipsoidGeometryUpdater:()=>LIe,EllipsoidGraphics:()=>Ez,EllipsoidOutlineGeometry:()=>Fb,EllipsoidPrimitive:()=>a3e,EllipsoidRhumbLine:()=>lS,EllipsoidSurfaceAppearance:()=>iO,EllipsoidTangentPlane:()=>vv,EllipsoidTerrainProvider:()=>IS,EllipsoidalOccluder:()=>k9,Empty3DTileContent:()=>x6,EncodedCartesian3:()=>$u,Entity:()=>bd,EntityCluster:()=>AF,EntityCollection:()=>kS,EntityView:()=>GVe,Event:()=>Tr,EventHelper:()=>bv,ExpandBySmartEarth:()=>mb,ExpandByTerra:()=>Lrt,Expression:()=>JG,ExpressionNodeType:()=>ao,ExternalParameter:()=>Ty,ExtrapolationType:()=>nI,FBXLoader:()=>eDe,FBXPrimitive:()=>Ade,FBXTreeParser:()=>$Fe,FeatureDataProvider:()=>Kue,FeatureDetection:()=>ia,FeatureIdPipelineStage:()=>cq,FeatureJsonData:()=>Gz,FisheyeProjectionMap:()=>V7,FisheyeProjectionMapShader:()=>Bj,FlattenVS:()=>Egt,FlowEcharts:()=>Pde,Fog:()=>S3e,ForEach:()=>Or,FrameRateMonitor:()=>PFe,FrameState:()=>w3e,Framebuffer:()=>Hp,FramebufferManager:()=>Pc,Frozen:()=>si,FrustumCommands:()=>Vhe,FrustumGeometry:()=>Fz,FrustumOutlineGeometry:()=>M7,Fullscreen:()=>km,FullscreenButton:()=>qDe,FullscreenButtonViewModel:()=>QDe,GWBaiduImageryProvider:()=>Nz,GeoJsonDataSource:()=>qZ,GeoJsonLoader:()=>QRe,GeocodeType:()=>e$,Geocoder:()=>RDe,GeocoderService:()=>_de,GeocoderViewModel:()=>IDe,GeographicProjection:()=>y0,GeographicTilingScheme:()=>_h,Geometry:()=>xa,Geometry3DTileContent:()=>JMe,GeometryAttribute:()=>Xr,GeometryAttributes:()=>Zc,GeometryFactory:()=>Xmt,GeometryInstance:()=>Wn,GeometryInstanceAttribute:()=>t1,GeometryOffsetAttribute:()=>ul,GeometryPipeline:()=>qu,GeometryPipelineStage:()=>jAe,GeometryType:()=>aG,GeometryUpdater:()=>cd,GeometryUpdaterSet:()=>X7,GeometryVisualizer:()=>YIe,GetFeatureInfoFormat:()=>nQ,GifImageProperty:()=>gst,Globe:()=>t3e,GlobeDepth:()=>A3e,GlobeSurfaceShaderSet:()=>ZVe,GlobeSurfaceTile:()=>XM,GlobeSurfaceTileProvider:()=>qVe,GlobeTranslucency:()=>Rq,GlobeTranslucencyFramebuffer:()=>M3e,GlobeTranslucencyState:()=>L3e,GltfBufferViewLoader:()=>Cce,GltfDracoLoader:()=>Tce,GltfGpmLoader:()=>ZRe,GltfGpmLocal:()=>Dce,GltfImageLoader:()=>Sce,GltfIndexBufferLoader:()=>wce,GltfInstanceLoader:()=>Wce,GltfJsonLoader:()=>Pce,GltfLoader:()=>fO,GltfLoaderUtil:()=>WM,GltfMeshPrimitiveGpmLoader:()=>URe,GltfStructuralMetadataLoader:()=>VRe,GltfTextureLoader:()=>Ice,GltfVertexBufferLoader:()=>Rce,GoogleEarthEnterpriseImageryProvider:()=>Axt,GoogleEarthEnterpriseMapsProvider:()=>BVe,GoogleEarthEnterpriseMetadata:()=>Z4,GoogleEarthEnterpriseTerrainData:()=>cle,GoogleEarthEnterpriseTerrainProvider:()=>Ymt,GoogleEarthEnterpriseTileInformation:()=>sFe,GoogleGeocoderService:()=>Jmt,GoogleMaps:()=>hQ,GpxDataSource:()=>QGe,Graticules:()=>nce,GregorianDate:()=>dz,GridImageryProvider:()=>Mxt,GridMaterialProperty:()=>rle,GroundGeometryUpdater:()=>tu,GroundPolylineGeometry:()=>vz,GroundPolylinePrimitive:()=>FF,GroundPrimitive:()=>XS,GroupMetadata:()=>Ese,GwBufferAnalysis:()=>oce,HeadingPitchRange:()=>R1,HeadingPitchRoll:()=>rs,Heap:()=>XTe,HeightMap:()=>bgt,HeightReference:()=>Mn,HeightmapEncoding:()=>dF,HeightmapTerrainData:()=>yL,HeightmapTessellator:()=>dhe,HermitePolynomialApproximation:()=>NGe,HermiteSpline:()=>p6,HilbertOrder:()=>bse,HomeButton:()=>MDe,HomeButtonViewModel:()=>ADe,HorizontalOrigin:()=>ec,HugeAdapter:()=>hq,I3SBuildingSceneLayerExplorer:()=>$gt,I3SBuildingSceneLayerExplorerViewModel:()=>VDe,I3SDataProvider:()=>gR,I3SDecoder:()=>SGe,I3SFeature:()=>EGe,I3SField:()=>LGe,I3SGeometry:()=>Kse,I3SLayer:()=>qhe,I3SNode:()=>Jse,I3SStatistics:()=>IGe,I3SSublayer:()=>RGe,I3SSymbology:()=>PGe,I3dmLoader:()=>$Re,I3dmParser:()=>qRe,ITwinData:()=>Vxt,ITwinPlatform:()=>wg,Iau2000Orientation:()=>r3e,Iau2006XysData:()=>QTe,Iau2006XysSample:()=>rue,IauOrientationAxes:()=>n3e,IauOrientationParameters:()=>i3e,ImageBasedLighting:()=>aq,ImageBasedLightingPipelineStage:()=>mAe,ImageCombine:()=>mue,ImageMaterialProperty:()=>O0,Imagery:()=>_he,ImageryLayer:()=>Up,ImageryLayerCollection:()=>$Ve,ImageryLayerFeatureInfo:()=>JF,ImageryProvider:()=>QI,ImageryState:()=>sl,Implicit3DTileContent:()=>wse,ImplicitAvailabilityBitstream:()=>Tse,ImplicitMetadataView:()=>Qce,ImplicitSubdivisionScheme:()=>Rg,ImplicitSubtree:()=>qce,ImplicitSubtreeCache:()=>bFe,ImplicitSubtreeMetadata:()=>$Me,ImplicitTileCoordinates:()=>che,ImplicitTileset:()=>uhe,IndexDatatype:()=>Fn,InfoBox:()=>DDe,InfoBoxViewModel:()=>FDe,InspectorShared:()=>sI,InstanceAttributeSemantic:()=>Hm,InstancingPipelineStage:()=>IAe,InterpolationAlgorithm:()=>jmt,InterpolationType:()=>TG,Intersect:()=>jo,IntersectionTests:()=>fc,Intersections2D:()=>D4,Interval:()=>VE,InvertClassification:()=>Ahe,Ion:()=>GG,IonGeocodeProviderType:()=>XZ,IonGeocoderService:()=>Cde,IonImageryProvider:()=>WG,IonResource:()=>FG,IonWorldImageryStyle:()=>HB,Iso8601:()=>wn,JobScheduler:()=>P3e,JobType:()=>G_,JsonMetadataTable:()=>H7,JulianDate:()=>$t,KTX2Transcoder:()=>BTe,KeyboardEventModifier:()=>lv,KeyframeNode:()=>gd,KmlCamera:()=>bPe,KmlDataSource:()=>I7,KmlLookAt:()=>CPe,KmlTour:()=>TPe,KmlTourFlyTo:()=>SPe,KmlTourWait:()=>EPe,Label:()=>bQ,LabelCollection:()=>tV,LabelGraphics:()=>Lz,LabelStyle:()=>f0,LabelVisualizer:()=>KIe,LagrangePolynomialApproximation:()=>ZGe,LeapSecond:()=>xh,Light:()=>Fxt,LightingModel:()=>uv,LightingPipelineStage:()=>qAe,LinearApproximation:()=>Uue,LinearSampler:()=>qI,LinearSpline:()=>uq,MTLLoader:()=>tDe,ManagedArray:()=>RI,MapMode2D:()=>wI,MapProjection:()=>$mt,MapboxImageryProvider:()=>bO,MapboxStyleImageryProvider:()=>Nxt,Material:()=>Co,MaterialAppearance:()=>N0,MaterialPipelineStage:()=>eMe,MaterialProperty:()=>Lg,Math:()=>be,Matrix2:()=>Z0,Matrix3:()=>Ut,Matrix4:()=>Ee,Megatexture:()=>zhe,MeshParser:()=>qFe,MeshPhongMaterial:()=>fQ,MeshPrimitiveGpmLocal:()=>kRe,MetadataClass:()=>Qz,MetadataClassProperty:()=>Kz,MetadataComponentType:()=>$o,MetadataEntity:()=>fu,MetadataEnum:()=>RRe,MetadataEnumValue:()=>IRe,MetadataPicking:()=>I3e,MetadataPickingPipelineStage:()=>YP,MetadataPipelineStage:()=>EM,MetadataSchema:()=>HF,MetadataSchemaLoader:()=>Ace,MetadataSemantic:()=>$ce,MetadataTable:()=>dO,MetadataTableProperty:()=>aRe,MetadataType:()=>fo,MipmapHint:()=>Z9,Model:()=>Ay,Model3DTileContent:()=>jP,ModelAlphaOptions:()=>vMe,ModelAnimation:()=>aAe,ModelAnimationChannel:()=>nAe,ModelAnimationCollection:()=>sAe,ModelAnimationLoop:()=>GE,ModelAnimationState:()=>nG,ModelArticulation:()=>yAe,ModelArticulationStage:()=>gAe,ModelClippingPlanesPipelineStage:()=>bAe,ModelClippingPolygonsPipelineStage:()=>SAe,ModelColorPipelineStage:()=>f6,ModelComponents:()=>ll,ModelDrawCommand:()=>DMe,ModelDrawCommands:()=>ZMe,ModelFeature:()=>lAe,ModelFeatureTable:()=>uAe,ModelFlattenPipelineStage:()=>kMe,ModelGraphics:()=>x7,ModelLightingOptions:()=>MMe,ModelMatrixUpdateStage:()=>AAe,ModelNode:()=>wAe,ModelRenderResources:()=>wMe,ModelRuntimeNode:()=>VAe,ModelRuntimePrimitive:()=>gMe,ModelSceneGraph:()=>UMe,ModelSilhouettePipelineStage:()=>PMe,ModelSkin:()=>_Me,ModelSplitterPipelineStage:()=>RMe,ModelStatistics:()=>BMe,ModelType:()=>jp,ModelUtility:()=>Qs,ModelVisualizer:()=>YMe,Moon:()=>s3e,MorphTargetsPipelineStage:()=>iMe,MorphWeightSpline:()=>ext,MortonOrder:()=>AH,MultiResourceImageryProvider:()=>Wz,MultiResourceTerrainProvider:()=>ace,Multiple3DTileContent:()=>mVe,MultisampleFramebuffer:()=>HRe,NavigationControl:()=>J4,NavigationHelpButton:()=>WDe,NavigationHelpButtonViewModel:()=>NDe,NavigationUtils:()=>j4,NavigationViewModel:()=>dQ,NearFarScalar:()=>ea,NeverTileDiscardPolicy:()=>Wxt,NodeRenderResources:()=>AMe,NodeStatisticsPipelineStage:()=>MAe,NodeTransformationProperty:()=>Lue,OBJLoader:()=>rDe,OBJPrimitive:()=>Mde,OIT:()=>D3e,Occluder:()=>rce,OffsetGeometryInstanceAttribute:()=>Af,OlMVTImageryProvider:()=>Zz,OpenCageGeocoderService:()=>txt,OpenStreetMapImageryProvider:()=>ME,OrderedGroundPrimitiveCollection:()=>xIe,OrientedBoundingBox:()=>Tu,OrthographicFrustum:()=>$a,OrthographicOffCenterFrustum:()=>xm,Packable:()=>ixt,PackableForInterpolation:()=>rxt,Particle:()=>Ede,ParticleBurst:()=>B4,ParticleEmitter:()=>Xxt,ParticleSystem:()=>QS,Pass:()=>xr,PassState:()=>$p,PathGraphics:()=>g7,PathVisualizer:()=>IVe,PeliasGeocoderService:()=>cFe,PerInstanceColorAppearance:()=>ga,PerformanceDisplay:()=>Fq,PerformanceWatchdog:()=>XDe,PerformanceWatchdogViewModel:()=>ODe,PerspectiveFrustum:()=>mc,PerspectiveOffCenterFrustum:()=>JI,PerspectiveProjectionMap:()=>G7,PerspectiveProjectionMapShader:()=>Hj,PerspectiveProjectionMapWithDepth:()=>F7,PerspectiveProjectionMapWithDepthShader:()=>CG,PickDepth:()=>R3e,PickDepthFramebuffer:()=>N3e,PickFramebuffer:()=>W3e,PickGlobeSlope:()=>Nft,PickedMetadataInfo:()=>aGe,Picking:()=>H3e,PickingPipelineStage:()=>rMe,PinBuilder:()=>b7,PixelDatatype:()=>un,PixelFormat:()=>zr,Plane:()=>ca,PlaneGeometry:()=>PIe,PlaneGeometryUpdater:()=>AIe,PlaneGraphics:()=>iPe,PlaneOutlineGeometry:()=>IIe,PntsLoader:()=>HMe,PntsParser:()=>Yce,PointCloud:()=>CGe,PointCloudEyeDomeLighting:()=>sq,PointCloudShading:()=>i4,PointCloudStylingPipelineStage:()=>oMe,PointGraphics:()=>Iue,PointLight:()=>ede,PointPrimitive:()=>Py,PointPrimitiveCollection:()=>iV,PointVisualizer:()=>RVe,PolygonDepth:()=>b9,PolygonDepthFS:()=>Bce,PolygonDepthVS:()=>Hce,PolygonGeometry:()=>Uu,PolygonGeometryLibrary:()=>Al,PolygonGeometryUpdater:()=>VIe,PolygonGraphics:()=>hl,PolygonHierarchy:()=>Zn,PolygonOutlineGeometry:()=>MIe,PolygonPipeline:()=>Ah,Polyline:()=>YI,PolylineArrowMaterialProperty:()=>Mf,PolylineCollection:()=>WF,PolylineColorAppearance:()=>om,PolylineDashMaterialProperty:()=>Ml,PolylineGeometry:()=>B_,PolylineGeometryUpdater:()=>AVe,PolylineGlowMaterialProperty:()=>nle,PolylineGraphics:()=>bI,PolylineMaterialAppearance:()=>Eg,PolylineOutlineMaterialProperty:()=>KM,PolylinePipeline:()=>od,PolylineTrailLinkMaterialProperty:()=>Wft,PolylineVisualizer:()=>VVe,PolylineVolumeGeometry:()=>GIe,PolylineVolumeGeometryLibrary:()=>u9,PolylineVolumeGeometryUpdater:()=>DIe,PolylineVolumeGraphics:()=>Rue,PolylineVolumeOutlineGeometry:()=>FIe,PositionProperty:()=>wz,PositionPropertyArray:()=>dH,PostProcessStage:()=>Sa,PostProcessStageCollection:()=>m5e,PostProcessStageComposite:()=>Vf,PostProcessStageLibrary:()=>$2,PostProcessStageSampleMode:()=>iv,PostProcessStageTextureCache:()=>Ohe,PpeMetadata:()=>XRe,PpeSource:()=>Vgt,PpeTexture:()=>ORe,Primitive:()=>ta,PrimitiveCollection:()=>Ag,PrimitiveLoadPlan:()=>iq,PrimitiveOutlineGenerator:()=>Gce,PrimitiveOutlinePipelineStage:()=>lMe,PrimitivePipeline:()=>jZ,PrimitiveRenderResources:()=>VMe,PrimitiveState:()=>Lf,PrimitiveStatisticsPipelineStage:()=>uMe,PrimitiveType:()=>pn,ProjectionPicker:()=>UDe,ProjectionPickerViewModel:()=>kDe,Property:()=>Nt,PropertyArray:()=>cde,PropertyAttribute:()=>bce,PropertyAttributeProperty:()=>rRe,PropertyBag:()=>qE,PropertyTable:()=>kF,PropertyTexture:()=>Y7,PropertyTextureProperty:()=>tRe,ProviderViewModel:()=>Ef,Proxy:()=>axt,QuadraticRealPolynomial:()=>NE,QuadtreeOccluders:()=>She,QuadtreePrimitive:()=>G1,QuadtreePrimitivezh:()=>Xft,QuadtreeTile:()=>Aq,QuadtreeTileLoadState:()=>Mh,QuadtreeTileProvider:()=>OO,QuantizedMeshTerrainData:()=>xde,QuarticRealPolynomial:()=>pSe,Quaternion:()=>fr,QuaternionSpline:()=>iAe,Queue:()=>aV,RasterizeHtml:()=>M4,Ray:()=>Ma,Rectangle:()=>vi,RectangleCollisionChecker:()=>yce,RectangleGeometry:()=>uO,RectangleGeometryLibrary:()=>by,RectangleGeometryUpdater:()=>kIe,RectangleGraphics:()=>Pz,RectangleOutlineGeometry:()=>mce,RectangularSensor:()=>V6,RectangularSensorFS:()=>mle,RectangularSensorGraphics:()=>Mgt,RectangularSensorPrimitive:()=>cDe,RectangularSensorScanPlaneFS:()=>uDe,RectangularSensorVS:()=>Gde,RectangularSensorVisualizer:()=>hDe,ReferenceFrame:()=>pp,ReferenceProperty:()=>L7,RegionPolygonTexture:()=>DFe,RegionTexture:()=>NFe,RegionWeather:()=>Vde,RenderObjectFactory:()=>tc,RenderState:()=>cn,Renderbuffer:()=>r1,RenderbufferFormat:()=>Pb,Request:()=>hm,RequestErrorEvent:()=>zZ,RequestScheduler:()=>x1,RequestState:()=>pc,RequestType:()=>n2,ResetViewNavigationControl:()=>UFe,Resource:()=>Mr,ResourceCache:()=>qh,ResourceCacheKey:()=>zS,ResourceCacheStatistics:()=>MRe,ResourceLoader:()=>zx,ResourceLoaderState:()=>Zo,Rotation:()=>FI,RuntimeError:()=>Oi,S2Cell:()=>kB,S3MDataSource:()=>Hft,SDFSettings:()=>ev,SampledPositionProperty:()=>nS,SampledProperty:()=>uM,Sampler:()=>Yo,ScaledPositionProperty:()=>Mz,Scene:()=>VO,SceneFramebuffer:()=>Ghe,SceneHeightMap:()=>lDe,SceneHeightWaterPostProcessing:()=>XT,SceneHeightWaterPrimitive:()=>xgt,SceneMode:()=>gi,SceneMode2DPipelineStage:()=>cMe,SceneModePicker:()=>HDe,SceneModePickerViewModel:()=>BDe,SceneTransforms:()=>Ca,SceneTransitioner:()=>b5e,ScreenSpaceCameraController:()=>P5e,ScreenSpaceEventHandler:()=>Lr,ScreenSpaceEventType:()=>Si,SelectedFeatureIdPipelineStage:()=>m6,SelectionIndicator:()=>YDe,SelectionIndicatorViewModel:()=>zDe,Sensor:()=>ygt,SensorVolumePortionToDisplay:()=>ale,ShaderBuilder:()=>kce,ShaderCache:()=>c3e,ShaderDestination:()=>Ji,ShaderFunction:()=>SMe,ShaderProgram:()=>xs,ShaderSource:()=>Wr,ShaderStruct:()=>CMe,ShadowMap:()=>PV,ShadowMapShader:()=>OG,ShadowMode:()=>cl,ShadowVolumeAppearance:()=>gM,ShowGeometryInstanceAttribute:()=>qs,Simon1994PlanetaryPositions:()=>v6,SimplePolylineGeometry:()=>sxt,SingleTileImageryProvider:()=>V1,SkinningPipelineStage:()=>dMe,SkyAtmosphere:()=>zq,SkyBox:()=>GO,SlopeArrow:()=>Dde,SpatialNode:()=>iGe,Spdcf:()=>WRe,SpecularEnvironmentCubeMap:()=>_9,SphereEmitter:()=>H4,SphereGeometry:()=>lxt,SphereOutlineGeometry:()=>sV,Spherical:()=>OGe,Spline:()=>B0,SplitDirection:()=>L1,Splitter:()=>Khe,SpotLight:()=>Yft,StaticGeometryColorBatch:()=>hM,StaticGeometryPerMaterialBatch:()=>dM,StaticGroundGeometryColorBatch:()=>use,StaticGroundGeometryPerMaterialBatch:()=>zIe,StaticGroundPolylinePerMaterialBatch:()=>MVe,StaticOutlineGeometryBatch:()=>cse,StencilConstants:()=>ma,StencilFunction:()=>nu,StencilOperation:()=>Kn,SteppedSpline:()=>tAe,Stereographic:()=>Lb,StorageType:()=>IH,StripeMaterialProperty:()=>ole,StripeOrientation:()=>xF,StructuralMetadata:()=>nR,StyleCommandsNeeded:()=>v9,StyleExpression:()=>kxt,Sun:()=>vGe,SunLight:()=>C4,SunPostProcess:()=>A5e,SupportedImageFormats:()=>GRe,SvgPathBindingHandler:()=>mDe,TaskProcessor:()=>mp,Terrain:()=>VFe,TerrainData:()=>yO,TerrainEncoding:()=>PS,TerrainFillMesh:()=>Che,TerrainFlatten:()=>kO,TerrainFlattenPolygonTexture:()=>WFe,TerrainMesh:()=>_O,TerrainOffsetProperty:()=>dce,TerrainProvider:()=>H_,TerrainQuantization:()=>sv,TerrainRegionWeather:()=>sDe,TerrainState:()=>ds,Texture:()=>Rn,Texture3D:()=>fFe,TextureAtlas:()=>aue,TextureCache:()=>h3e,TextureMagnificationFilter:()=>Xs,TextureManager:()=>OLe,TextureMinificationFilter:()=>Ho,TexturePacker:()=>oue,TextureUniform:()=>cue,TextureWrap:()=>Xn,TileAvailability:()=>kG,TileBoundingRegion:()=>LS,TileBoundingS2Cell:()=>xVe,TileBoundingSphere:()=>bV,TileBoundingVolume:()=>Uxt,TileCoordinatesImageryProvider:()=>l$,TileDiscardPolicy:()=>Bxt,TileEdge:()=>hs,TileImagery:()=>vhe,TileMapServiceImageryProvider:()=>_L,TileMetadata:()=>dVe,TileOrientedBoundingBox:()=>e2,TileProviderError:()=>am,TileReplacementQueue:()=>Ehe,TileSelectionResult:()=>fa,TileState:()=>Hxt,Tileset3DTileContent:()=>eVe,TilesetMetadata:()=>_Ve,TilesetPipelineStage:()=>cAe,TilesetRegionWeather:()=>aDe,TilingScheme:()=>uxt,TimeConstants:()=>cc,TimeDynamicImagery:()=>yhe,TimeDynamicPointCloud:()=>Jhe,TimeInterval:()=>js,TimeIntervalCollection:()=>k_,TimeIntervalCollectionPositionProperty:()=>MH,TimeIntervalCollectionProperty:()=>pH,TimeStandard:()=>cu,Timeline:()=>jDe,TimelineHighlightRange:()=>KDe,TimelineTrack:()=>JDe,Tipsify:()=>mSe,ToggleButtonViewModel:()=>gB,Tonemapper:()=>SZ,TrackingReferenceFrame:()=>wB,Transforms:()=>_r,TranslationRotationScale:()=>I1,TranslucentTileClassification:()=>U3e,TridiagonalSystemSolver:()=>Zce,TrustedServers:()=>qle,TweenCollection:()=>Uhe,UniformState:()=>d3e,UniformType:()=>sa,UrlTemplateGeojsonProvider:()=>jft,UrlTemplateImageryProvider:()=>Hb,UserInterfaceControl:()=>Rde,Utils:()=>TL,VERSION:()=>o0e,VRButton:()=>eNe,VRButtonViewModel:()=>$De,VRTheWorldTerrainProvider:()=>pxt,VaryingType:()=>Y_,Vector3DTileBatch:()=>RH,Vector3DTileClampedPolylines:()=>aVe,Vector3DTileContent:()=>uVe,Vector3DTileGeometry:()=>dZ,Vector3DTilePoints:()=>tVe,Vector3DTilePolygons:()=>iVe,Vector3DTilePolylines:()=>ihe,Vector3DTilePrimitive:()=>jce,VelocityOrientationProperty:()=>XGe,VelocityVectorProperty:()=>Tq,VertexArray:()=>Cu,VertexArrayFacade:()=>o7,VertexAttributeSemantic:()=>Ko,VertexFormat:()=>Yr,VerticalExaggeration:()=>U_,VerticalExaggerationPipelineStage:()=>fMe,VerticalOrigin:()=>jn,VideoSynchronizer:()=>cxt,View:()=>N1,ViewShed:()=>Igt,ViewShedMap:()=>I4,ViewShedMapShader:()=>XG,Viewer:()=>r0e,ViewportQuad:()=>Y4,Visibility:()=>Rl,Visualizer:()=>vmt,VolumeCloud:()=>Nde,VoxelBoxShape:()=>Xq,VoxelCell:()=>V5e,VoxelContent:()=>Bhe,VoxelCylinderShape:()=>kq,VoxelEllipsoidShape:()=>Uq,VoxelInspector:()=>rNe,VoxelInspectorViewModel:()=>iNe,VoxelMetadataOrder:()=>w9,VoxelPrimitive:()=>Hq,VoxelProvider:()=>zxt,VoxelRenderResources:()=>K5e,VoxelShape:()=>Yxt,VoxelShapeType:()=>Vb,VoxelTraversal:()=>rGe,VulkanConstants:()=>fxt,WallGeometry:()=>UIe,WallGeometryLibrary:()=>xce,WallGeometryUpdater:()=>HIe,WallGraphics:()=>y7,WallOutlineGeometry:()=>BIe,WaterFS:()=>jPe,WaterHeightMap:()=>Cgt,WaterMaterialProperty:()=>Qft,WaterPipelinePrimitive:()=>ade,WaterPostProcessing:()=>yle,WaterPostProcessingEx:()=>_le,WaterPrimitive:()=>Wde,WaterPrimitiveEx:()=>cD,WaterReflectImage:()=>dDe,WaterReflectImageEx:()=>pDe,WebGLConstants:()=>bi,WebMapServiceImageryProvider:()=>CO,WebMapTileServiceImageryProvider:()=>wV,WebMercatorProjection:()=>vd,WebMercatorTilingScheme:()=>xp,WindingOrder:()=>_1,WireframeIndexGenerator:()=>Xce,WireframePipelineStage:()=>xMe,ZoomNavigationControl:()=>dle,_shadersAcesTonemappingStage:()=>z3e,_shadersAdditiveBlend:()=>I5e,_shadersAdjustTranslucentFS:()=>Wse,_shadersAllMaterialAppearanceFS:()=>ZPe,_shadersAllMaterialAppearanceVS:()=>OPe,_shadersAmbientOcclusionGenerate:()=>Y3e,_shadersAmbientOcclusionModulate:()=>K3e,_shadersAspectRampMaterial:()=>vSe,_shadersAtmosphereCommon:()=>g9,_shadersAtmosphereStageFS:()=>hAe,_shadersAtmosphereStageVS:()=>dAe,_shadersBasicMaterialAppearanceFS:()=>XPe,_shadersBasicMaterialAppearanceVS:()=>kPe,_shadersBillboardCollectionFS:()=>bLe,_shadersBillboardCollectionVS:()=>CLe,_shadersBlackAndWhite:()=>J3e,_shadersBloomComposite:()=>j3e,_shadersBrdfLutGeneratorFS:()=>x3e,_shadersBrightPass:()=>R5e,_shadersBrightness:()=>Q3e,_shadersBumpMapMaterial:()=>bSe,_shadersCPUStylingStageFS:()=>WAe,_shadersCPUStylingStageVS:()=>NAe,_shadersCheckerboardMaterial:()=>CSe,_shadersCloudCollectionFS:()=>mFe,_shadersCloudCollectionVS:()=>xFe,_shadersCloudNoiseFS:()=>gFe,_shadersCloudNoiseVS:()=>yFe,_shadersCompareAndPackTranslucentDepth:()=>k3e,_shadersCompositeOITFS:()=>V3e,_shadersCompositeTranslucentClassification:()=>oQ,_shadersComputeIrradianceFS:()=>jIe,_shadersComputeRadianceMapFS:()=>QIe,_shadersContrastBias:()=>q3e,_shadersConvolveSpecularMapFS:()=>qIe,_shadersConvolveSpecularMapVS:()=>$Ie,_shadersCustomShaderStageFS:()=>XAe,_shadersCustomShaderStageVS:()=>OAe,_shadersCzmBuiltins:()=>Ij,_shadersDepthOfField:()=>$3e,_shadersDepthPlaneFS:()=>_3e,_shadersDepthPlaneVS:()=>v3e,_shadersDepthView:()=>e5e,_shadersDepthViewPacked:()=>Tgt,_shadersDotMaterial:()=>TSe,_shadersEdgeDetection:()=>t5e,_shadersElevationBandMaterial:()=>SSe,_shadersElevationContourMaterial:()=>wSe,_shadersElevationRampMaterial:()=>ESe,_shadersEllipsoidFS:()=>Dse,_shadersEllipsoidSurfaceAppearanceFS:()=>HPe,_shadersEllipsoidSurfaceAppearanceVS:()=>zPe,_shadersEllipsoidVS:()=>Nse,_shadersFXAA:()=>n5e,_shadersFXAA3_11:()=>c5e,_shadersFadeMaterial:()=>LSe,_shadersFeatureIdStageFS:()=>kAe,_shadersFeatureIdStageVS:()=>UAe,_shadersFilmicTonemapping:()=>i5e,_shadersGaussianBlur1D:()=>T6,_shadersGeometryStageFS:()=>KAe,_shadersGeometryStageVS:()=>JAe,_shadersGlobeFS:()=>DVe,_shadersGlobeVS:()=>NVe,_shadersGridMaterial:()=>PSe,_shadersGroundAtmosphere:()=>Ise,_shadersHSBToRGB:()=>_Ee,_shadersHSLToRGB:()=>vEe,_shadersImageBasedLightingStageFS:()=>fAe,_shadersInstancingStageCommon:()=>EAe,_shadersInstancingStageVS:()=>LAe,_shadersIntersectBox:()=>O5e,_shadersIntersectClippingPlanes:()=>Z5e,_shadersIntersectCylinder:()=>X5e,_shadersIntersectDepth:()=>W5e,_shadersIntersectEllipsoid:()=>k5e,_shadersIntersectLongitude:()=>Xse,_shadersIntersection:()=>lQ,_shadersIntersectionUtils:()=>N5e,_shadersLegacyInstancingStageVS:()=>PAe,_shadersLensFlare:()=>o5e,_shadersLightingStageFS:()=>QAe,_shadersMaterialStageFS:()=>$Ae,_shadersMegatexture:()=>Y5e,_shadersMetadataStageFS:()=>BAe,_shadersMetadataStageVS:()=>HAe,_shadersModelClippingPlanesStageFS:()=>vAe,_shadersModelClippingPolygonsStageFS:()=>TAe,_shadersModelClippingPolygonsStageVS:()=>CAe,_shadersModelColorStageFS:()=>_Ae,_shadersModelFS:()=>WMe,_shadersModelFlattenStageFS:()=>XMe,_shadersModelFlattenStageVS:()=>OMe,_shadersModelSilhouetteStageFS:()=>EMe,_shadersModelSilhouetteStageVS:()=>LMe,_shadersModelSplitterStageFS:()=>IMe,_shadersModelVS:()=>NMe,_shadersModifiedReinhardTonemapping:()=>a5e,_shadersMorphTargetsStageVS:()=>tMe,_shadersNightVision:()=>s5e,_shadersNormalMapMaterial:()=>ISe,_shadersOctree:()=>z5e,_shadersPassThrough:()=>kM,_shadersPassThroughDepth:()=>C6,_shadersPbrNeutralTonemapping:()=>r5e,_shadersPerInstanceColorAppearanceFS:()=>$Le,_shadersPerInstanceColorAppearanceVS:()=>ePe,_shadersPerInstanceFlatColorAppearanceFS:()=>vue,_shadersPerInstanceFlatColorAppearanceVS:()=>tPe,_shadersPointCloudEyeDomeLighting:()=>zRe,_shadersPointCloudStylingStageVS:()=>nMe,_shadersPointPrimitiveCollectionFS:()=>nB,_shadersPointPrimitiveCollectionVS:()=>LLe,_shadersPolygonSignedDistanceFS:()=>JIe,_shadersPolylineArrowMaterial:()=>RSe,_shadersPolylineColorAppearanceVS:()=>JLe,_shadersPolylineCommon:()=>K9,_shadersPolylineDashMaterial:()=>ASe,_shadersPolylineFS:()=>bue,_shadersPolylineGlowMaterial:()=>MSe,_shadersPolylineMaterialAppearanceVS:()=>jLe,_shadersPolylineOutlineMaterial:()=>VSe,_shadersPolylineShadowVolumeFS:()=>HLe,_shadersPolylineShadowVolumeMorphFS:()=>zLe,_shadersPolylineShadowVolumeMorphVS:()=>YLe,_shadersPolylineShadowVolumeVS:()=>KLe,_shadersPolylineVS:()=>YPe,_shadersPostProcessRain:()=>Sgt,_shadersPostProcessSnow:()=>wgt,_shadersPrimitiveOutlineStageFS:()=>sMe,_shadersPrimitiveOutlineStageVS:()=>aMe,_shadersRGBToHSB:()=>zEe,_shadersRGBToHSL:()=>YEe,_shadersRGBToXYZ:()=>KEe,_shadersReinhardTonemapping:()=>l5e,_shadersReprojectWebMercatorFS:()=>YVe,_shadersReprojectWebMercatorVS:()=>KVe,_shadersRimLightingMaterial:()=>GSe,_shadersSelectedFeatureIdStageCommon:()=>yse,_shadersShadowVolumeAppearanceFS:()=>Cue,_shadersShadowVolumeAppearanceVS:()=>qLe,_shadersShadowVolumeFS:()=>PQ,_shadersSilhouette:()=>u5e,_shadersSkinningStageVS:()=>hMe,_shadersSkyAtmosphereCommon:()=>Hse,_shadersSkyAtmosphereFS:()=>dGe,_shadersSkyAtmosphereVS:()=>pGe,_shadersSkyBoxFS:()=>mGe,_shadersSkyBoxVS:()=>xGe,_shadersSlopeRampMaterial:()=>FSe,_shadersStripeMaterial:()=>DSe,_shadersSunFS:()=>gGe,_shadersSunTextureFS:()=>yGe,_shadersSunVS:()=>_Ge,_shadersTexturedMaterialAppearanceFS:()=>UPe,_shadersTexturedMaterialAppearanceVS:()=>BPe,_shadersVector3DTileClampedPolylinesFS:()=>oVe,_shadersVector3DTileClampedPolylinesVS:()=>nVe,_shadersVector3DTilePolylinesVS:()=>rVe,_shadersVectorTileVS:()=>vse,_shadersVerticalExaggerationStageVS:()=>pMe,_shadersViewportQuadFS:()=>_Fe,_shadersViewportQuadVS:()=>Phe,_shadersVoxelFS:()=>F5e,_shadersVoxelUtils:()=>G5e,_shadersVoxelVS:()=>D5e,_shadersWater:()=>WSe,_shadersWaterMaskMaterial:()=>NSe,_shadersXYZToRGB:()=>yLe,_shadersacesTonemapping:()=>Nwe,_shadersalphaWeight:()=>Wwe,_shadersantialias:()=>Zwe,_shadersapplyHSBShift:()=>Owe,_shadersapproximateSphericalCoordinates:()=>Xwe,_shadersapproximateTanh:()=>kwe,_shadersbackFacing:()=>Uwe,_shadersbranchFreeTernary:()=>Bwe,_shaderscascadeColor:()=>Hwe,_shaderscascadeDistance:()=>zwe,_shaderscascadeMatrix:()=>Ywe,_shaderscascadeWeights:()=>Kwe,_shadersclipPolygons:()=>Jwe,_shaderscolumbusViewMorph:()=>jwe,_shaderscomputeAtmosphereColor:()=>Qwe,_shaderscomputeGroundAtmosphereScattering:()=>qwe,_shaderscomputePosition:()=>$we,_shaderscomputeScattering:()=>eEe,_shadersconvertUvToBox:()=>U5e,_shadersconvertUvToCylinder:()=>B5e,_shadersconvertUvToEllipsoid:()=>H5e,_shaderscosineAndSine:()=>tEe,_shadersdecompressTextureCoordinates:()=>iEe,_shadersdegreesPerRadian:()=>HSe,_shadersdepthClamp:()=>rEe,_shadersdepthRange:()=>zSe,_shadersdepthRangeStruct:()=>Iwe,_shaderseastNorthUpToEyeCoordinates:()=>nEe,_shadersellipsoidContainsPoint:()=>oEe,_shadersellipsoidTextureCoordinates:()=>aEe,_shadersepsilon1:()=>YSe,_shadersepsilon2:()=>KSe,_shadersepsilon3:()=>JSe,_shadersepsilon4:()=>jSe,_shadersepsilon5:()=>QSe,_shadersepsilon6:()=>qSe,_shadersepsilon7:()=>$Se,_shadersequalsEpsilon:()=>sEe,_shaderseyeOffset:()=>lEe,_shaderseyeToWindowCoordinates:()=>uEe,_shadersfastApproximateAtan:()=>cEe,_shadersfog:()=>hEe,_shadersgammaCorrect:()=>dEe,_shadersgeodeticSurfaceNormal:()=>pEe,_shadersgetDefaultMaterial:()=>fEe,_shadersgetDynamicAtmosphereLightDirection:()=>mEe,_shadersgetLambertDiffuse:()=>xEe,_shadersgetSpecular:()=>gEe,_shadersgetWaterNoise:()=>yEe,_shadershue:()=>bEe,_shadersinfinity:()=>ewe,_shadersinverseGamma:()=>CEe,_shadersisEmpty:()=>TEe,_shadersisFull:()=>SEe,_shaderslatitudeToWebMercatorFraction:()=>wEe,_shaderslineDistance:()=>LEe,_shaderslinearToSrgb:()=>EEe,_shadersluminance:()=>PEe,_shadersmaterial:()=>Rwe,_shadersmaterialInput:()=>Awe,_shadersmaximumComponent:()=>IEe,_shadersmetersPerPixel:()=>REe,_shadersmodelMaterial:()=>Mwe,_shadersmodelToWindowCoordinates:()=>AEe,_shadersmodelVertexOutput:()=>Vwe,_shadersmultiplyWithColorBalance:()=>MEe,_shadersnearFarScalar:()=>VEe,_shadersoctDecode:()=>GEe,_shadersoneOverPi:()=>twe,_shadersoneOverTwoPi:()=>iwe,_shaderspackDepth:()=>FEe,_shaderspassCesium3DTile:()=>rwe,_shaderspassCesium3DTileClassification:()=>nwe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>owe,_shaderspassClassification:()=>awe,_shaderspassCompute:()=>swe,_shaderspassEnvironment:()=>lwe,_shaderspassGlobe:()=>uwe,_shaderspassOpaque:()=>cwe,_shaderspassOverlay:()=>hwe,_shaderspassTerrainClassification:()=>dwe,_shaderspassTranslucent:()=>pwe,_shaderspassVoxels:()=>fwe,_shaderspbrLighting:()=>DEe,_shaderspbrNeutralTonemapping:()=>NEe,_shadersphong:()=>WEe,_shaderspi:()=>mwe,_shaderspiOverFour:()=>xwe,_shaderspiOverSix:()=>gwe,_shaderspiOverThree:()=>ywe,_shaderspiOverTwo:()=>_we,_shadersplaneDistance:()=>ZEe,_shaderspointAlongRay:()=>OEe,_shadersradiansPerDegree:()=>vwe,_shadersray:()=>Gwe,_shadersrayEllipsoidIntersectionInterval:()=>XEe,_shadersraySegment:()=>Fwe,_shadersraySphereIntersectionInterval:()=>kEe,_shadersreadDepth:()=>UEe,_shadersreadNonPerspective:()=>BEe,_shadersreverseLogDepth:()=>HEe,_shadersround:()=>JEe,_shaderssaturation:()=>jEe,_shaderssceneMode2D:()=>bwe,_shaderssceneMode3D:()=>Cwe,_shaderssceneModeColumbusView:()=>Twe,_shaderssceneModeMorphing:()=>Swe,_shadersshadowDepthCompare:()=>QEe,_shadersshadowParameters:()=>Dwe,_shadersshadowVisibility:()=>qEe,_shaderssignNotZero:()=>$Ee,_shaderssolarRadius:()=>wwe,_shaderssphericalHarmonics:()=>eLe,_shaderssrgbToLinear:()=>tLe,_shaderstangentToEyeSpaceMatrix:()=>iLe,_shaderstextureCube:()=>rLe,_shadersthreePiOver2:()=>Ewe,_shaderstransformPlane:()=>nLe,_shaderstranslateRelativeToEye:()=>oLe,_shaderstranslucentPhong:()=>aLe,_shaderstranspose:()=>sLe,_shaderstwoPi:()=>Lwe,_shadersunpackClippingExtents:()=>lLe,_shadersunpackDepth:()=>uLe,_shadersunpackFloat:()=>cLe,_shadersunpackUint:()=>hLe,_shadersvalueTransform:()=>dLe,_shadersvertexLogDepth:()=>pLe,_shaderswebMercatorMaxLatitude:()=>Pwe,_shaderswindowToEyeCoordinates:()=>fLe,_shaderswriteDepthClamp:()=>mLe,_shaderswriteLogDepth:()=>xLe,_shaderswriteNonPerspective:()=>gLe,addBuffer:()=>_Re,addDefaults:()=>hRe,addExtensionsRequired:()=>xRe,addExtensionsUsed:()=>pO,addPipelineExtras:()=>q7,addToArray:()=>n1,appendForwardSlash:()=>DTe,arrayRemoveDuplicates:()=>Mg,barycentricCoordinates:()=>nue,binarySearch:()=>Nx,buildModuleUrl:()=>oa,buildVoxelDrawCommands:()=>j5e,clipper2lib:()=>rG,clone:()=>zn,combine:()=>va,computeFlyToLocationForRectangle:()=>hhe,createBillboardPointCallback:()=>the,createBlurStage:()=>fle,createCommand:()=>Il,createDefaultImageryProviderViewModels:()=>bDe,createDefaultTerrainProviderViewModels:()=>CDe,createEdgeStage:()=>Q4,createElevationBandMaterial:()=>Ext,createFragmentFromTemplate:()=>ZFe,createGooglePhotorealistic3DTileset:()=>Lxt,createGuid:()=>du,createMaterialPropertyDescriptor:()=>Ey,createOsmBuildingsAsync:()=>Pxt,createPropertyDescriptor:()=>Ii,createRawPropertyDescriptor:()=>vb,createTangentSpaceDebugPrimitive:()=>Ixt,createTaskProcessorWorker:()=>Ggt,createUniform:()=>kSe,createUniformArray:()=>BSe,createWorldBathymetryAsync:()=>nFe,createWorldImageryAsync:()=>zB,createWorldTerrainAsync:()=>gde,decodeGoogleEarthEnterpriseData:()=>aFe,decodeVectorPolylinePositions:()=>sVe,defaultValue:()=>Zmt,defer:()=>fp,defined:()=>F,demodernizeShader:()=>_Le,deprecationWarning:()=>pL,destroyObject:()=>yr,exportKml:()=>fmt,fflate_module:()=>QFe,findAccessorMinMax:()=>$7,findContentMetadata:()=>nhe,findGroupMetadata:()=>ohe,findTileMetadata:()=>fVe,forEachTextureInMaterial:()=>Lce,formatError:()=>_H,fragment:()=>Lgt,freezeRenderState:()=>utt,getAbsoluteUri:()=>$B,getAccessorByteStride:()=>XF,getBaseUri:()=>WTe,getBinaryAccessor:()=>CM,getClipAndStyleCode:()=>bGe,getClippingFunction:()=>wq,getComponentReader:()=>U7,getElement:()=>Qh,getExtensionFromUri:()=>PF,getFilenameFromUri:()=>v7,getImageFromTypedArray:()=>ZLe,getImagePixels:()=>BZ,getJsonFromTypedArray:()=>Q_,getMagic:()=>jz,getMetadataClassProperty:()=>oGe,getMetadataProperty:()=>sGe,getStringFromTypedArray:()=>UF,getTimestamp:()=>lh,hasExtension:()=>ld,heightReferenceOnEntityPropertyChanged:()=>D7,isBitSet:()=>m1,isBlobUri:()=>Kle,isCrossOriginUrl:()=>HZ,isDataUri:()=>e7,isLeapYear:()=>YZ,knockout:()=>sr,knockout_3_5_1:()=>VV,knockout_es5:()=>fDe,libgif:()=>oIe,loadAndExecuteScript:()=>Jle,loadCRN:()=>qmt,loadCubeMap:()=>fGe,loadDDS:()=>$le,loadImageFromTypedArray:()=>Jz,loadKTX2:()=>IF,loadView:()=>Ide,mergeSort:()=>b4,moveTechniqueRenderStates:()=>mRe,moveTechniquesToExtension:()=>gRe,numberOfComponentsForType:()=>hO,objFS:()=>iDe,objectToQuery:()=>jle,oneTimeWarning:()=>aa,packer:()=>ULe,parseBatchTable:()=>$z,parseDefines:()=>oDe,parseFeatureMetadataLegacy:()=>lRe,parseGlb:()=>pRe,parseResponseHeaders:()=>ZTe,parseStructuralMetadata:()=>sRe,pickModel:()=>zMe,pointInsideTriangle:()=>nxt,preprocess3DTileContent:()=>fq,processVoxelProperties:()=>J5e,queryToObject:()=>lI,rasterizeHTML_allinone:()=>VGe,readAccessorPacked:()=>vRe,removeExtension:()=>h6,removeExtensionsRequired:()=>dRe,removeExtensionsUsed:()=>Ece,removePipelineExtras:()=>fRe,removeUnusedElements:()=>yRe,remove_primitive:()=>M6,resizeImageToNextPowerOfTwo:()=>EQ,sampleTerrain:()=>Sq,sampleTerrainMostDetailed:()=>cR,scaleToGeodeticSurface:()=>eue,srgbToLinear:()=>jhe,subdivideArray:()=>QLe,subscribeAndEvaluate:()=>Eb,svgCompassGyro:()=>HFe,svgCompassOuterRing:()=>BFe,svgCompassRotationMarker:()=>zFe,svgReset:()=>XFe,turf:()=>Po,updateAccessorComponentTypes:()=>bRe,updateVersion:()=>SRe,usesExtension:()=>um,vertex:()=>Pgt,viewerCesium3DTilesInspectorMixin:()=>nyt,viewerCesiumInspectorMixin:()=>oyt,viewerCesiumNavigationMixin:()=>igt,viewerDragDropMixin:()=>ayt,viewerPerformanceWatchdogMixin:()=>syt,viewerVoxelInspectorMixin:()=>uyt,webGLConstantToGlslType:()=>mxt,wrapFunction:()=>pFe,writeTextToCanvas:()=>H9});we();var aVt=Object.create,gqe=Object.defineProperty,sVt=Object.getOwnPropertyDescriptor,lVt=Object.getOwnPropertyNames,uVt=Object.getPrototypeOf,cVt=Object.prototype.hasOwnProperty,yZ=(o=>typeof RT<"u"?RT:typeof Proxy<"u"?new Proxy(o,{get:(f,m)=>(typeof RT<"u"?RT:f)[m]}):o)(function(o){if(typeof RT<"u")return RT.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')}),Zt=(o,f)=>()=>(f||o((f={exports:{}}).exports,f),f.exports),hVt=(o,f,m,x)=>{if(f&&typeof f=="object"||typeof f=="function")for(let y of lVt(f))!cVt.call(o,y)&&y!==m&&gqe(o,y,{get:()=>f[y],enumerable:!(x=sVt(f,y))||x.enumerable});return o},k0=(o,f,m)=>(m=o!=null?aVt(uVt(o)):{},hVt(f||!o||!o.__esModule?gqe(m,"default",{value:o,enumerable:!0}):m,o)),Q1e=Zt((o,f)=>{var m=function(x){x==null&&(x=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,x.constructor==Array?this.init_by_array(x,x.length):this.init_seed(x)};m.prototype.init_seed=function(x){for(this.mt[0]=x>>>0,this.mti=1;this.mti<this.N;this.mti++){var x=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(((x&4294901760)>>>16)*1812433253<<16)+(x&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}},m.prototype.init_by_array=function(x,y){var v,C,T;for(this.init_seed(19650218),v=1,C=0,T=this.N>y?this.N:y;T;T--){var S=this.mt[v-1]^this.mt[v-1]>>>30;this.mt[v]=(this.mt[v]^(((S&4294901760)>>>16)*1664525<<16)+(S&65535)*1664525)+x[C]+C,this.mt[v]>>>=0,v++,C++,v>=this.N&&(this.mt[0]=this.mt[this.N-1],v=1),C>=y&&(C=0)}for(T=this.N-1;T;T--){var S=this.mt[v-1]^this.mt[v-1]>>>30;this.mt[v]=(this.mt[v]^(((S&4294901760)>>>16)*1566083941<<16)+(S&65535)*1566083941)-v,this.mt[v]>>>=0,v++,v>=this.N&&(this.mt[0]=this.mt[this.N-1],v=1)}this.mt[0]=2147483648},m.prototype.random_int=function(){var x,y=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var v;for(this.mti==this.N+1&&this.init_seed(5489),v=0;v<this.N-this.M;v++)x=this.mt[v]&this.UPPER_MASK|this.mt[v+1]&this.LOWER_MASK,this.mt[v]=this.mt[v+this.M]^x>>>1^y[x&1];for(;v<this.N-1;v++)x=this.mt[v]&this.UPPER_MASK|this.mt[v+1]&this.LOWER_MASK,this.mt[v]=this.mt[v+(this.M-this.N)]^x>>>1^y[x&1];x=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^x>>>1^y[x&1],this.mti=0}return x=this.mt[this.mti++],x^=x>>>11,x^=x<<7&2636928640,x^=x<<15&4022730752,x^=x>>>18,x>>>0},m.prototype.random_int31=function(){return this.random_int()>>>1},m.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},m.prototype.random=function(){return this.random_int()*(1/4294967296)},m.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},m.prototype.random_long=function(){var x=this.random_int()>>>5,y=this.random_int()>>>6;return(x*67108864+y)*(1/9007199254740992)},f.exports=m}),dVt=Zt((o,f)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */(function(m){var x=typeof o=="object"&&o&&!o.nodeType&&o,y=typeof f=="object"&&f&&!f.nodeType&&f,v=typeof global=="object"&&global;(v.global===v||v.window===v||v.self===v)&&(m=v);var C,T=2147483647,S=36,w=1,E=26,L=38,I=700,R=72,P=128,A="-",M=/^xn--/,V=/[^\x20-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,D={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=S-w,k=Math.floor,U=String.fromCharCode,B;function Y(oe){throw new RangeError(D[oe])}function J(oe,ce){for(var pe=oe.length,ue=[];pe--;)ue[pe]=ce(oe[pe]);return ue}function K(oe,ce){var pe=oe.split("@"),ue="";pe.length>1&&(ue=pe[0]+"@",oe=pe[1]),oe=oe.replace(G,".");var he=oe.split("."),fe=J(he,ce).join(".");return ue+fe}function z(oe){for(var ce=[],pe=0,ue=oe.length,he,fe;pe<ue;)he=oe.charCodeAt(pe++),he>=55296&&he<=56319&&pe<ue?(fe=oe.charCodeAt(pe++),(fe&64512)==56320?ce.push(((he&1023)<<10)+(fe&1023)+65536):(ce.push(he),pe--)):ce.push(he);return ce}function j(oe){return J(oe,function(ce){var pe="";return ce>65535&&(ce-=65536,pe+=U(ce>>>10&1023|55296),ce=56320|ce&1023),pe+=U(ce),pe}).join("")}function q(oe){return oe-48<10?oe-22:oe-65<26?oe-65:oe-97<26?oe-97:S}function O(oe,ce){return oe+22+75*(oe<26)-((ce!=0)<<5)}function te(oe,ce,pe){var ue=0;for(oe=pe?k(oe/I):oe>>1,oe+=k(oe/ce);oe>N*E>>1;ue+=S)oe=k(oe/N);return k(ue+(N+1)*oe/(oe+L))}function ie(oe){var ce=[],pe=oe.length,ue,he=0,fe=P,de=R,Ce,Se,Le,Ve,Oe,$e,at,dt,gt;for(Ce=oe.lastIndexOf(A),Ce<0&&(Ce=0),Se=0;Se<Ce;++Se)oe.charCodeAt(Se)>=128&&Y("not-basic"),ce.push(oe.charCodeAt(Se));for(Le=Ce>0?Ce+1:0;Le<pe;){for(Ve=he,Oe=1,$e=S;Le>=pe&&Y("invalid-input"),at=q(oe.charCodeAt(Le++)),(at>=S||at>k((T-he)/Oe))&&Y("overflow"),he+=at*Oe,dt=$e<=de?w:$e>=de+E?E:$e-de,!(at<dt);$e+=S)gt=S-dt,Oe>k(T/gt)&&Y("overflow"),Oe*=gt;ue=ce.length+1,de=te(he-Ve,ue,Ve==0),k(he/ue)>T-fe&&Y("overflow"),fe+=k(he/ue),he%=ue,ce.splice(he++,0,fe)}return j(ce)}function re(oe){var ce,pe,ue,he,fe,de,Ce,Se,Le,Ve,Oe,$e=[],at,dt,gt,Et;for(oe=z(oe),at=oe.length,ce=P,pe=0,fe=R,de=0;de<at;++de)Oe=oe[de],Oe<128&&$e.push(U(Oe));for(ue=he=$e.length,he&&$e.push(A);ue<at;){for(Ce=T,de=0;de<at;++de)Oe=oe[de],Oe>=ce&&Oe<Ce&&(Ce=Oe);for(dt=ue+1,Ce-ce>k((T-pe)/dt)&&Y("overflow"),pe+=(Ce-ce)*dt,ce=Ce,de=0;de<at;++de)if(Oe=oe[de],Oe<ce&&++pe>T&&Y("overflow"),Oe==ce){for(Se=pe,Le=S;Ve=Le<=fe?w:Le>=fe+E?E:Le-fe,!(Se<Ve);Le+=S)Et=Se-Ve,gt=S-Ve,$e.push(U(O(Ve+Et%gt,0))),Se=k(Et/gt);$e.push(U(O(Se,0))),fe=te(pe,dt,ue==he),pe=0,++ue}++pe,++ce}return $e.join("")}function ee(oe){return K(oe,function(ce){return M.test(ce)?ie(ce.slice(4).toLowerCase()):ce})}function ae(oe){return K(oe,function(ce){return V.test(ce)?"xn--"+re(ce):ce})}if(C={version:"1.3.2",ucs2:{decode:z,encode:j},decode:ie,encode:re,toASCII:ae,toUnicode:ee},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return C});else if(x&&y)if(f.exports==x)y.exports=C;else for(B in C)C.hasOwnProperty(B)&&(x[B]=C[B]);else m.punycode=C})(o)}),pVt=Zt((o,f)=>{/*!
* URI.js - Mutating URLs
* IPv6 Support
*
@@ -20036,7 +20036,14 @@
          //material.diffuse = vec3(1.0,0.0,0.0);
        }
      }
    `}),o.textureUniformShader.andStyle=!0}function RUi(o){let f=Math.floor(o/256/256),m=Math.floor((o-f*256*256)/255),x=o-f*256*256-m*256,y=f.toString(16).padStart(2,"0"),v=m.toString(16).padStart(2,"0"),C=x.toString(16).padStart(2,"0");return"color('#"+y+v+C+"')"}function AUi(o){return"${id} === '"+o+"'"}function MUi(o){let f=o.pipelineIds,m=f.length,x=[];for(let y=0;y<m;y++){let v=f[y];x.push([AUi(v),RUi(y)])}x.push(["true","color('white')"]),o.style=new ZS({color:{conditions:x}})}function VUi(o){let f=o.flowLevels;if(f instanceof Array&&f.length===16){o.flowLevelMatrix=Ee.fromArray(f);return}o.flowLevelMatrix=new Ee}kH.prototype.init=function(o){let f=Math.sqrt(this.pipelineIds.length);f=Math.floor(f+1),this.width=f,this.height=f,VUi(this),PUi(this),IUi(this),MUi(this),this.oldCustomShader=this.tileset.customShader,this.tileset.customShader=this.textureUniformShader,this.oldStyle=this.tileset.style,this.tileset.style=this.style};function GUi(o){let f=o.pipelineTexture,m=o.serverDatas,x=o.textureData,y=0,v=Object.keys(m);v.length>0&&(v.forEach(C=>{let T=m[C];x[y++]=T}),f.copyFrom({source:{width:o.width,height:o.height,arrayBufferView:x}}))}function FUi(o,f){new Mr({url:o.pipelineUrl,queryParameters:{timestamp:o.currentTimestamp}}).fetchJson().then(function(m){m&&m.data&&m.data instanceof Array?f(m.data,m.time):console.log("download fail!")}).catch(function(m){})}kH.prototype.update=function(){let o=performance.now(),f=(o-this.startTime)/1e3;if(this.startTime=o,this.currentTime>this.nextRequestTime){let m=this;FUi(this,function(x,y){x.forEach(v=>{m.serverDatas[v.id]=v.flow}),m.nextRequestTime=(Number(m.currentTimestamp)-Number(y))/1e3,m.currentTimestamp=y,GUi(m)})}this.currentTime+=f,this.textureUniformShader.setUniform("u_time",this.currentTime)};kH.prototype.destroy=function(){this.tileset.customShader=this.oldCustomShader,this.tileset.style=this.oldStyle,this.pipelineTexture&&this.pipelineTexture.destroy(),this.textureData&&(this.textureData=null)};kH.fromUrl=async function(o){let{context:f,tileset:m,pipelineUrl:x,flowLevels:y,startTimestamp:v,imageWidth:C,imageHeight:T}=o,S=[],w=await new Mr({url:x,queryParameters:{timestamp:v}}).fetchJson();return w&&w.data&&w.data instanceof Array&&w.data.forEach(E=>{S.push(E.id)}),new kH(f,m,S,x,v,y,C,T)};var ade=kH,DUi=Xe.WHITE,NUi=Xe.BLACK,WUi=new rt(2,2);function UH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,this._evenColor=void 0,this._evenColorSubscription=void 0,this._oddColor=void 0,this._oddColorSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.evenColor=o.evenColor,this.oddColor=o.oddColor,this.repeat=o.repeat}Object.defineProperties(UH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._evenColor)&&Nt.isConstant(this._oddColor)&&Nt.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},evenColor:Ii("evenColor"),oddColor:Ii("oddColor"),repeat:Ii("repeat")});UH.prototype.getType=function(o){return"Checkerboard"};var ZUi=new $t;UH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(ZUi)),F(f)||(f={}),f.lightColor=Nt.getValueOrClonedDefault(this._evenColor,o,DUi,f.lightColor),f.darkColor=Nt.getValueOrClonedDefault(this._oddColor,o,NUi,f.darkColor),f.repeat=Nt.getValueOrDefault(this._repeat,o,WUi),f};UH.prototype.equals=function(o){return this===o||o instanceof UH&&Nt.equals(this._evenColor,o._evenColor)&&Nt.equals(this._oddColor,o._oddColor)&&Nt.equals(this._repeat,o._repeat)};var ele=UH,tle={id:void 0},QB=new Array(2);function N1e(o){let f=o.propertyNames,m=f.length;for(let x=0;x<m;x++)o[f[x]]=void 0;o._name=void 0,o._availability=void 0}function qft(o,f,m,x){QB[0]=m,QB[1]=x.id,f[JSON.stringify(QB)]=x.definitionChanged.addEventListener(qp.prototype._onDefinitionChanged,o)}function $ft(o,f,m,x){QB[0]=m,QB[1]=x.id;let y=JSON.stringify(QB);f[y](),f[y]=void 0}function tD(o){if(o._shouldRecomposite=!0,o._suspendCount!==0)return;let f=o._collections,m=f.length,x=o._collectionsCopy,y=x.length,v,C,T,S,w,E=o._composite,L=new kS(o),I=o._eventHash,R;for(v=0;v<y;v++)for(w=x[v],w.collectionChanged.removeEventListener(qp.prototype._onCollectionChanged,o),T=w.values,R=w.id,S=T.length-1;S>-1;S--)C=T[S],$ft(o,I,R,C);for(v=m-1;v>=0;v--)for(w=f[v],w.collectionChanged.addEventListener(qp.prototype._onCollectionChanged,o),T=w.values,R=w.id,S=T.length-1;S>-1;S--){C=T[S],qft(o,I,R,C);let A=L.getById(C.id);F(A)||(A=E.getById(C.id),F(A)?N1e(A):(tle.id=C.id,A=new bd(tle)),L.add(A)),A.merge(C)}o._collectionsCopy=f.slice(0),E.suspendEvents(),E.removeAll();let P=L.values;for(v=0;v<P.length;v++)E.add(P[v]);E.resumeEvents()}function qp(o,f){this._owner=f,this._composite=new kS(this),this._suspendCount=0,this._collections=F(o)?o.slice():[],this._collectionsCopy=[],this._id=du(),this._eventHash={},tD(this),this._shouldRecomposite=!1}Object.defineProperties(qp.prototype,{collectionChanged:{get:function(){return this._composite._collectionChanged}},id:{get:function(){return this._id}},values:{get:function(){return this._composite.values}},owner:{get:function(){return this._owner}}});qp.prototype.addCollection=function(o,f){F(f)?this._collections.splice(f,0,o):(f=this._collections.length,this._collections.push(o)),tD(this)};qp.prototype.removeCollection=function(o){let f=this._collections.indexOf(o);return f!==-1?(this._collections.splice(f,1),tD(this),!0):!1};qp.prototype.removeAllCollections=function(){this._collections.length=0,tD(this)};qp.prototype.containsCollection=function(o){return this._collections.indexOf(o)!==-1};qp.prototype.contains=function(o){return this._composite.contains(o)};qp.prototype.indexOfCollection=function(o){return this._collections.indexOf(o)};qp.prototype.getCollection=function(o){return this._collections[o]};qp.prototype.getCollectionsLength=function(){return this._collections.length};function sde(o,f){return o.indexOf(f)}function emt(o,f,m){let x=o._collections;if(f=be.clamp(f,0,x.length-1),m=be.clamp(m,0,x.length-1),f===m)return;let y=x[f];x[f]=x[m],x[m]=y,tD(o)}qp.prototype.raiseCollection=function(o){let f=sde(this._collections,o);emt(this,f,f+1)};qp.prototype.lowerCollection=function(o){let f=sde(this._collections,o);emt(this,f,f-1)};qp.prototype.raiseCollectionToTop=function(o){let f=sde(this._collections,o);f!==this._collections.length-1&&(this._collections.splice(f,1),this._collections.push(o),tD(this))};qp.prototype.lowerCollectionToBottom=function(o){let f=sde(this._collections,o);f!==0&&(this._collections.splice(f,1),this._collections.splice(0,0,o),tD(this))};qp.prototype.suspendEvents=function(){this._suspendCount++,this._composite.suspendEvents()};qp.prototype.resumeEvents=function(){this._suspendCount--,this._shouldRecomposite&&this._suspendCount===0&&(tD(this),this._shouldRecomposite=!1),this._composite.resumeEvents()};qp.prototype.computeAvailability=function(){return this._composite.computeAvailability()};qp.prototype.getById=function(o){return this._composite.getById(o)};qp.prototype._onCollectionChanged=function(o,f,m){let x=this._collectionsCopy,y=x.length,v=this._composite;v.suspendEvents();let C,T,S,w,E=m.length,L=this._eventHash,I=o.id;for(C=0;C<E;C++){let P=m[C];$ft(this,L,I,P);let A=P.id;for(T=y-1;T>=0;T--)S=x[T].getById(A),F(S)&&(F(w)||(w=v.getById(A),N1e(w)),w.merge(S));F(w)||v.removeById(A),w=void 0}let R=f.length;for(C=0;C<R;C++){let P=f[C];qft(this,L,I,P);let A=P.id;for(T=y-1;T>=0;T--)S=x[T].getById(A),F(S)&&(F(w)||(w=v.getById(A),F(w)?N1e(w):(tle.id=A,w=new bd(tle),v.add(w))),w.merge(S));w=void 0}v.resumeEvents()};qp.prototype._onDefinitionChanged=function(o,f,m,x){let y=this._collections,v=this._composite,C=y.length,T=o.id,S=v.getById(T),w=S[f],E=!F(w),L=!0;for(let I=C-1;I>=0;I--){let R=y[I].getById(o.id);if(F(R)){let P=R[f];if(F(P)){if(L)if(L=!1,F(P.merge)&&F(P.clone))w=P.clone(w);else{w=P;break}w.merge(P)}}}E&&S.propertyNames.indexOf(f)===-1&&S.addProperty(f),S[f]=w};var tmt=qp;function fF(){this._definitionChanged=new Tr,this._composite=new rS,this._composite.definitionChanged.addEventListener(fF.prototype._raiseDefinitionChanged,this)}Object.defineProperties(fF.prototype,{isConstant:{get:function(){return this._composite.isConstant}},definitionChanged:{get:function(){return this._definitionChanged}},intervals:{get:function(){return this._composite._intervals}}});fF.prototype.getType=function(o){let f=this._composite._intervals.findDataForIntervalContainingDate(o);if(F(f))return f.getType(o)};var OUi=new $t;fF.prototype.getValue=function(o,f){F(o)||(o=$t.now(OUi));let m=this._composite._intervals.findDataForIntervalContainingDate(o);if(F(m))return m.getValue(o,f)};fF.prototype.equals=function(o){return this===o||o instanceof fF&&this._composite.equals(o._composite,Nt.equals)};fF.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var ile=fF,XUi=be.factorial;function DGe(o,f,m,x,y,v){let C=0,T,S,w;if(x>0){for(S=0;S<y;S++){for(T=!1,w=0;w<v.length&&!T;w++)S===v[w]&&(T=!0);T||(v.push(S),C+=DGe(o,f,m,x-1,y,v),v.splice(v.length-1,1))}return C}for(C=1,S=0;S<y;S++){for(T=!1,w=0;w<v.length&&!T;w++)S===v[w]&&(T=!0);T||(C*=o-m[f[S]])}return C}var lde={type:"Hermite"};lde.getRequiredDataPoints=function(o,f){return f=f??0,Math.max(Math.floor((o+1)/(f+1)),2)};lde.interpolateOrderZero=function(o,f,m,x,y){F(y)||(y=new Array(x));let v,C,T,S,w,E,L=f.length,I=new Array(x);for(v=0;v<x;v++){y[v]=0;let M=new Array(L);for(I[v]=M,C=0;C<L;C++)M[C]=[]}let R=L,P=new Array(R);for(v=0;v<R;v++)P[v]=v;let A=L-1;for(S=0;S<x;S++){for(C=0;C<R;C++)E=P[C]*x+S,I[S][0].push(m[E]);for(v=1;v<R;v++){let M=!1;for(C=0;C<R-v;C++){let V=f[P[C]],G=f[P[C+v]],D;G-V<=0?(E=P[C]*x+x*v+S,D=m[E],I[S][v].push(D/XUi(v))):(D=I[S][v-1][C+1]-I[S][v-1][C],I[S][v].push(D/(G-V))),M=M||D!==0}M||(A=v-1)}}for(T=0,w=0;T<=w;T++)for(v=T;v<=A;v++){let M=DGe(o,P,f,T,v,[]);for(S=0;S<x;S++){let V=I[S][v][0];y[S+T*x]+=V*M}}return y};var kUi=[];lde.interpolate=function(o,f,m,x,y,v,C){let T=x*(v+1);F(C)||(C=new Array(T));for(let V=0;V<T;V++)C[V]=0;let S=f.length,w=new Array(S*(y+1)),E;for(E=0;E<S;E++)for(let V=0;V<y+1;V++)w[E*(y+1)+V]=E;let L=w.length,I=kUi,R=UUi(I,w,f,m,x,y),P=[],A=L*(L+1)/2,M=Math.min(R,v);for(let V=0;V<=M;V++)for(E=V;E<=R;E++){P.length=0;let G=DGe(o,w,f,V,E,P),D=Math.floor(E*(1-E)/2)+L*E;for(let N=0;N<x;N++){let k=Math.floor(N*A),U=I[k+D];C[N+V*x]+=U*G}}return C};function UUi(o,f,m,x,y,v){let C,T,S=-1,w=f.length,E=w*(w+1)/2;for(let L=0;L<y;L++){let I=Math.floor(L*E);for(C=0;C<w;C++)T=f[C]*y*(v+1)+L,o[I+C]=x[T];for(let R=1;R<w;R++){let P=0,A=Math.floor(R*(1-R)/2)+w*R,M=!1;for(C=0;C<w-R;C++){let V=m[f[C]],G=m[f[C+R]],D,N;if(G-V<=0)T=f[C]*y*(v+1)+y*R+L,D=x[T],N=D/be.factorial(R),o[I+A+P]=N,P++;else{let k=Math.floor((R-1)*(2-R)/2)+w*(R-1);D=o[I+k+C+1]-o[I+k+C],N=D/(G-V),o[I+A+P]=N,P++}M=M||D!==0}M&&(S=Math.max(S,R))}}return S}var NGe=lde,WGe={type:"Lagrange"};WGe.getRequiredDataPoints=function(o){return Math.max(o+1,2)};WGe.interpolateOrderZero=function(o,f,m,x,y){F(y)||(y=new Array(x));let v,C,T=f.length;for(v=0;v<x;v++)y[v]=0;for(v=0;v<T;v++){let S=1;for(C=0;C<T;C++)if(C!==v){let w=f[v]-f[C];S*=(o-f[C])/w}for(C=0;C<x;C++)y[C]+=S*m[v*x+C]}return y};var ZGe=WGe;function r2(o,f,m){this.clock=o??0,this.cone=f??0,this.magnitude=m??1}r2.fromCartesian3=function(o,f){let m=o.x,x=o.y,y=o.z,v=m*m+x*x;return F(f)||(f=new r2),f.clock=Math.atan2(x,m),f.cone=Math.atan2(Math.sqrt(v),y),f.magnitude=Math.sqrt(v+y*y),f};r2.clone=function(o,f){if(F(o))return F(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=o.magnitude,f):new r2(o.clock,o.cone,o.magnitude)};r2.normalize=function(o,f){return F(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=1,f):new r2(o.clock,o.cone,1)};r2.equals=function(o,f){return o===f||F(o)&&F(f)&&o.clock===f.clock&&o.cone===f.cone&&o.magnitude===f.magnitude};r2.equalsEpsilon=function(o,f,m){return m=m??0,o===f||F(o)&&F(f)&&Math.abs(o.clock-f.clock)<=m&&Math.abs(o.cone-f.cone)<=m&&Math.abs(o.magnitude-f.magnitude)<=m};r2.prototype.equals=function(o){return r2.equals(this,o)};r2.prototype.clone=function(o){return r2.clone(this,o)};r2.prototype.equalsEpsilon=function(o,f){return r2.equalsEpsilon(this,o,f)};r2.prototype.toString=function(){return`(${this.clock}, ${this.cone}, ${this.magnitude})`};var OGe=r2,ude=k0(MS(),1),BUi=Xe.WHITE,HUi=.1,zUi=new rt(8,8),YUi=new rt(0,0),KUi=new rt(1,1);function BH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,this._color=void 0,this._colorSubscription=void 0,this._cellAlpha=void 0,this._cellAlphaSubscription=void 0,this._lineCount=void 0,this._lineCountSubscription=void 0,this._lineThickness=void 0,this._lineThicknessSubscription=void 0,this._lineOffset=void 0,this._lineOffsetSubscription=void 0,this.color=o.color,this.cellAlpha=o.cellAlpha,this.lineCount=o.lineCount,this.lineThickness=o.lineThickness,this.lineOffset=o.lineOffset}Object.defineProperties(BH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._cellAlpha)&&Nt.isConstant(this._lineCount)&&Nt.isConstant(this._lineThickness)&&Nt.isConstant(this._lineOffset)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),cellAlpha:Ii("cellAlpha"),lineCount:Ii("lineCount"),lineThickness:Ii("lineThickness"),lineOffset:Ii("lineOffset")});BH.prototype.getType=function(o){return"Grid"};var JUi=new $t;BH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(JUi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,BUi,f.color),f.cellAlpha=Nt.getValueOrDefault(this._cellAlpha,o,HUi),f.lineCount=Nt.getValueOrClonedDefault(this._lineCount,o,zUi,f.lineCount),f.lineThickness=Nt.getValueOrClonedDefault(this._lineThickness,o,KUi,f.lineThickness),f.lineOffset=Nt.getValueOrClonedDefault(this._lineOffset,o,YUi,f.lineOffset),f};BH.prototype.equals=function(o){return this===o||o instanceof BH&&Nt.equals(this._color,o._color)&&Nt.equals(this._cellAlpha,o._cellAlpha)&&Nt.equals(this._lineCount,o._lineCount)&&Nt.equals(this._lineThickness,o._lineThickness)&&Nt.equals(this._lineOffset,o._lineOffset)};var rle=BH,jUi=Xe.WHITE,QUi=Xe.TRANSPARENT,qUi=16,$Ui=255;function HH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,this._color=void 0,this._colorSubscription=void 0,this._gapColor=void 0,this._gapColorSubscription=void 0,this._dashLength=void 0,this._dashLengthSubscription=void 0,this._dashPattern=void 0,this._dashPatternSubscription=void 0,this.color=o.color,this.gapColor=o.gapColor,this.dashLength=o.dashLength,this.dashPattern=o.dashPattern}Object.defineProperties(HH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._gapColor)&&Nt.isConstant(this._dashLength)&&Nt.isConstant(this._dashPattern)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),gapColor:Ii("gapColor"),dashLength:Ii("dashLength"),dashPattern:Ii("dashPattern")});HH.prototype.getType=function(o){return"PolylineDash"};var eBi=new $t;HH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(eBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,jUi,f.color),f.gapColor=Nt.getValueOrClonedDefault(this._gapColor,o,QUi,f.gapColor),f.dashLength=Nt.getValueOrDefault(this._dashLength,o,qUi,f.dashLength),f.dashPattern=Nt.getValueOrDefault(this._dashPattern,o,$Ui,f.dashPattern),f};HH.prototype.equals=function(o){return this===o||o instanceof HH&&Nt.equals(this._color,o._color)&&Nt.equals(this._gapColor,o._gapColor)&&Nt.equals(this._dashLength,o._dashLength)&&Nt.equals(this._dashPattern,o._dashPattern)};var Ml=HH,tBi=Xe.WHITE,iBi=.25,rBi=1;function zH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,this._color=void 0,this._colorSubscription=void 0,this._glowPower=void 0,this._glowPowerSubscription=void 0,this._taperPower=void 0,this._taperPowerSubscription=void 0,this.color=o.color,this.glowPower=o.glowPower,this.taperPower=o.taperPower}Object.defineProperties(zH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._glow)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),glowPower:Ii("glowPower"),taperPower:Ii("taperPower")});zH.prototype.getType=function(o){return"PolylineGlow"};var nBi=new $t;zH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(nBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,tBi,f.color),f.glowPower=Nt.getValueOrDefault(this._glowPower,o,iBi,f.glowPower),f.taperPower=Nt.getValueOrDefault(this._taperPower,o,rBi,f.taperPower),f};zH.prototype.equals=function(o){return this===o||o instanceof zH&&Nt.equals(this._color,o._color)&&Nt.equals(this._glowPower,o._glowPower)&&Nt.equals(this._taperPower,o._taperPower)};var nle=zH,oBi=Xe.WHITE,aBi=Xe.BLACK,sBi=1;function YH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,this._color=void 0,this._colorSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this.color=o.color,this.outlineColor=o.outlineColor,this.outlineWidth=o.outlineWidth}Object.defineProperties(YH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._outlineColor)&&Nt.isConstant(this._outlineWidth)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),outlineColor:Ii("outlineColor"),outlineWidth:Ii("outlineWidth")});YH.prototype.getType=function(o){return"PolylineOutline"};var lBi=new $t;YH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(lBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,oBi,f.color),f.outlineColor=Nt.getValueOrClonedDefault(this._outlineColor,o,aBi,f.outlineColor),f.outlineWidth=Nt.getValueOrDefault(this._outlineWidth,o,sBi),f};YH.prototype.equals=function(o){return this===o||o instanceof YH&&Nt.equals(this._color,o._color)&&Nt.equals(this._outlineColor,o._outlineColor)&&Nt.equals(this._outlineWidth,o._outlineWidth)};var KM=YH;function mF(o){this._value=void 0,this._definitionChanged=new Tr,this._eventHelper=new bv,this.setValue(o)}Object.defineProperties(mF.prototype,{isConstant:{get:function(){let o=this._value;if(!F(o))return!0;let f=o.length;for(let m=0;m<f;m++)if(!Nt.isConstant(o[m]))return!1;return!0}},definitionChanged:{get:function(){return this._definitionChanged}}});var uBi=new $t;mF.prototype.getValue=function(o,f){F(o)||(o=$t.now(uBi));let m=this._value;if(!F(m))return;let x=m.length;F(f)||(f=new Array(x));let y=0,v=0;for(;y<x;){let C=this._value[y].getValue(o,f[y]);F(C)&&(f[v]=C,v++),y++}return f.length=v,f};mF.prototype.setValue=function(o){let f=this._eventHelper;if(f.removeAll(),F(o)){this._value=o.slice();let m=o.length;for(let x=0;x<m;x++){let y=o[x];F(y)&&f.add(y.definitionChanged,mF.prototype._raiseDefinitionChanged,this)}}else this._value=void 0;this._definitionChanged.raiseEvent(this)};mF.prototype.equals=function(o){return this===o||o instanceof mF&&Nt.arrayEquals(this._value,o._value)};mF.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var cde=mF,cBi={packedLength:1,pack:function(o,f,m){return m=m??0,f[m]=o,f},unpack:function(o,f,m){return f=f??0,o[f]},convertPackedArrayForInterpolation:function(o,f,m,x){F(x)||(x=[]),f=f??0,m=m??o.length;let y;for(let v=0,C=m-f+1;v<C;v++){let T=o[f+v];v===0||Math.abs(y-T)<Math.PI?x[v]=T:x[v]=T-be.TWO_PI,y=T}},unpackInterpolationResult:function(o,f,m,x,y){return y=o[0],y<0?y+be.TWO_PI:y}},FI=cBi,hBi={HORIZONTAL:0,VERTICAL:1},xF=Object.freeze(hBi),dBi=xF.HORIZONTAL,pBi=Xe.WHITE,fBi=Xe.BLACK,mBi=0,xBi=1;function KH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,this._orientation=void 0,this._orientationSubscription=void 0,this._evenColor=void 0,this._evenColorSubscription=void 0,this._oddColor=void 0,this._oddColorSubscription=void 0,this._offset=void 0,this._offsetSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.orientation=o.orientation,this.evenColor=o.evenColor,this.oddColor=o.oddColor,this.offset=o.offset,this.repeat=o.repeat}Object.defineProperties(KH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._orientation)&&Nt.isConstant(this._evenColor)&&Nt.isConstant(this._oddColor)&&Nt.isConstant(this._offset)&&Nt.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},orientation:Ii("orientation"),evenColor:Ii("evenColor"),oddColor:Ii("oddColor"),offset:Ii("offset"),repeat:Ii("repeat")});KH.prototype.getType=function(o){return"Stripe"};var gBi=new $t;KH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(gBi)),F(f)||(f={}),f.horizontal=Nt.getValueOrDefault(this._orientation,o,dBi)===xF.HORIZONTAL,f.evenColor=Nt.getValueOrClonedDefault(this._evenColor,o,pBi,f.evenColor),f.oddColor=Nt.getValueOrClonedDefault(this._oddColor,o,fBi,f.oddColor),f.offset=Nt.getValueOrDefault(this._offset,o,mBi),f.repeat=Nt.getValueOrDefault(this._repeat,o,xBi),f};KH.prototype.equals=function(o){return this===o||o instanceof KH&&Nt.equals(this._orientation,o._orientation)&&Nt.equals(this._evenColor,o._evenColor)&&Nt.equals(this._oddColor,o._oddColor)&&Nt.equals(this._offset,o._offset)&&Nt.equals(this._repeat,o._repeat)};var ole=KH;function w6(o,f){this._velocityVectorProperty=new Tq(o,!0),this._subscription=void 0,this._ellipsoid=void 0,this._definitionChanged=new Tr,this.ellipsoid=f??yi.default;let m=this;this._velocityVectorProperty.definitionChanged.addEventListener(function(){m._definitionChanged.raiseEvent(m)})}Object.defineProperties(w6.prototype,{isConstant:{get:function(){return Nt.isConstant(this._velocityVectorProperty)}},definitionChanged:{get:function(){return this._definitionChanged}},position:{get:function(){return this._velocityVectorProperty.position},set:function(o){this._velocityVectorProperty.position=o}},ellipsoid:{get:function(){return this._ellipsoid},set:function(o){this._ellipsoid!==o&&(this._ellipsoid=o,this._definitionChanged.raiseEvent(this))}}});var O6e=new Z,yBi=new Z,X6e=new Ut,_Bi=new $t;w6.prototype.getValue=function(o,f){F(o)||(o=$t.now(_Bi));let m=this._velocityVectorProperty._getValue(o,yBi,O6e);if(F(m))return _r.rotationMatrixFromPositionVelocity(O6e,m,this._ellipsoid,X6e),fr.fromRotationMatrix(X6e,f)};w6.prototype.equals=function(o){return this===o||o instanceof w6&&Nt.equals(this._velocityVectorProperty,o._velocityVectorProperty)&&(this._ellipsoid===o._ellipsoid||this._ellipsoid.equals(o._ellipsoid))};var XGe=w6,pM={COMPLETE:0,BELOW_ELLIPSOID_HORIZON:1,ABOVE_ELLIPSOID_HORIZON:2};pM.validate=function(o){return o===pM.COMPLETE||o===pM.BELOW_ELLIPSOID_HORIZON||o===pM.ABOVE_ELLIPSOID_HORIZON};pM.toString=function(o){switch(o){case pM.COMPLETE:return"COMPLETE";case pM.BELOW_ELLIPSOID_HORIZON:return"BELOW_ELLIPSOID_HORIZON";case pM.ABOVE_ELLIPSOID_HORIZON:return"ABOVE_ELLIPSOID_HORIZON";default:throw new wt("SensorVolumePortionToDisplay value is not valid and cannot be converted to a String.")}};var ale=pM;function gF(){}gF.packedLength=Z.packedLength;gF.unpack=Z.unpack;gF.pack=Z.pack;var W1e;function E6(o,f){return f[0]==="#"&&(f=W1e+f),L7.fromString(o,f)}function k6e(o,f,m){if(F(m.reference))return E6(f,m.reference);if(F(m.velocityReference)){let x=E6(f,m.velocityReference);switch(o){case Z:case gF:return new Tq(x,o===gF);case fr:return new XGe(x)}}throw new Oi(`${JSON.stringify(m)} is not valid CZML.`)}function vBi(o,f){return new Fr(function(m,x){return f(o.getValue(m,x))},o.isConstant)}var Lc=new Z,J2=new OGe,V_=new Gt,NO=new js,uoe=new fr;function bBi(o){let f=o.rgbaf;if(F(f))return f;let m=o.rgba;if(!F(m))return;let x=m.length;if(x===Xe.packedLength)return[Xe.byteToFloat(m[0]),Xe.byteToFloat(m[1]),Xe.byteToFloat(m[2]),Xe.byteToFloat(m[3])];f=new Array(x);for(let y=0;y<x;y+=5)f[y]=m[y],f[y+1]=Xe.byteToFloat(m[y+1]),f[y+2]=Xe.byteToFloat(m[y+2]),f[y+3]=Xe.byteToFloat(m[y+3]),f[y+4]=Xe.byteToFloat(m[y+4]);return f}function U6e(o,f){let m=o.uri??o;return F(f)?f.getDerivedResource({url:m}):Mr.createIfNeeded(m)}function CBi(o){let f=o.wsen;if(F(f))return f;let m=o.wsenDegrees;if(!F(m))return;let x=m.length;if(x===vi.packedLength)return[be.toRadians(m[0]),be.toRadians(m[1]),be.toRadians(m[2]),be.toRadians(m[3])];f=new Array(x);for(let y=0;y<x;y+=5)f[y]=m[y],f[y+1]=be.toRadians(m[y+1]),f[y+2]=be.toRadians(m[y+2]),f[y+3]=be.toRadians(m[y+3]),f[y+4]=be.toRadians(m[y+4]);return f}function TBi(o){let f=o.length;if(J2.magnitude=1,f===2)return J2.clock=o[0],J2.cone=o[1],Z.fromSpherical(J2,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f/3*4);for(let x=0,y=0;x<f;x+=3,y+=4)m[y]=o[x],J2.clock=o[x+1],J2.cone=o[x+2],Z.fromSpherical(J2,Lc),m[y+1]=Lc.x,m[y+2]=Lc.y,m[y+3]=Lc.z;return m}function SBi(o){let f=o.length;if(f===3)return J2.clock=o[0],J2.cone=o[1],J2.magnitude=o[2],Z.fromSpherical(J2,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],J2.clock=o[x+1],J2.cone=o[x+2],J2.magnitude=o[x+3],Z.fromSpherical(J2,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function wBi(o){let f=o.length;if(f===3)return V_.longitude=o[0],V_.latitude=o[1],V_.height=o[2],yi.default.cartographicToCartesian(V_,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],V_.longitude=o[x+1],V_.latitude=o[x+2],V_.height=o[x+3],yi.default.cartographicToCartesian(V_,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function EBi(o){let f=o.length;if(f===3)return V_.longitude=be.toRadians(o[0]),V_.latitude=be.toRadians(o[1]),V_.height=o[2],yi.default.cartographicToCartesian(V_,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],V_.longitude=be.toRadians(o[x+1]),V_.latitude=be.toRadians(o[x+2]),V_.height=o[x+3],yi.default.cartographicToCartesian(V_,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function kGe(o){let f=o.cartesian;if(F(f))return f;let m=o.cartesianVelocity;if(F(m))return m;let x=o.unitCartesian;if(F(x))return x;let y=o.unitSpherical;if(F(y))return TBi(y);let v=o.spherical;if(F(v))return SBi(v);let C=o.cartographicRadians;if(F(C))return wBi(C);let T=o.cartographicDegrees;if(F(T))return EBi(T);throw new Oi(`${JSON.stringify(o)} is not a valid CZML interval.`)}function B6e(o,f){Z.unpack(o,f,Lc),Z.normalize(Lc,Lc),Z.pack(Lc,o,f)}function LBi(o){let f=kGe(o);if(f.length===3)return B6e(f,0),f;for(let m=1;m<f.length;m+=4)B6e(f,m);return f}function H6e(o,f){fr.unpack(o,f,uoe),fr.normalize(uoe,uoe),fr.pack(uoe,o,f)}function PBi(o){let f=o.unitQuaternion;if(F(f)){if(f.length===4)return H6e(f,0),f;for(let m=1;m<f.length;m+=5)H6e(f,m)}return f}function z6e(o){return typeof o=="boolean"?Boolean:typeof o=="number"?Number:typeof o=="string"?String:o.hasOwnProperty("array")?Array:o.hasOwnProperty("boolean")?Boolean:o.hasOwnProperty("boundingRectangle")?Er:o.hasOwnProperty("cartesian2")?rt:o.hasOwnProperty("cartesian")||o.hasOwnProperty("spherical")||o.hasOwnProperty("cartographicRadians")||o.hasOwnProperty("cartographicDegrees")?Z:o.hasOwnProperty("unitCartesian")||o.hasOwnProperty("unitSpherical")?gF:o.hasOwnProperty("rgba")||o.hasOwnProperty("rgbaf")?Xe:o.hasOwnProperty("arcType")?qa:o.hasOwnProperty("classificationType")?hc:o.hasOwnProperty("colorBlendMode")?II:o.hasOwnProperty("cornerType")?ad:o.hasOwnProperty("heightReference")?Mn:o.hasOwnProperty("horizontalOrigin")?ec:o.hasOwnProperty("date")?$t:o.hasOwnProperty("labelStyle")?f0:o.hasOwnProperty("number")?Number:o.hasOwnProperty("nearFarScalar")?ea:o.hasOwnProperty("distanceDisplayCondition")?So:o.hasOwnProperty("object")||o.hasOwnProperty("value")?Object:o.hasOwnProperty("unitQuaternion")?fr:o.hasOwnProperty("shadowMode")?cl:o.hasOwnProperty("string")?String:o.hasOwnProperty("stripeOrientation")?xF:o.hasOwnProperty("wsen")||o.hasOwnProperty("wsenDegrees")?vi:o.hasOwnProperty("uri")?ude.default:o.hasOwnProperty("verticalOrigin")?jn:Object}function IBi(o,f,m){switch(o){case qa:return qa[f.arcType??f];case Array:return f.array;case Boolean:return f.boolean??f;case Er:return f.boundingRectangle;case rt:return f.cartesian2;case Z:return kGe(f);case gF:return LBi(f);case Xe:return bBi(f);case hc:return hc[f.classificationType??f];case II:return II[f.colorBlendMode??f];case ad:return ad[f.cornerType??f];case Mn:return Mn[f.heightReference??f];case ec:return ec[f.horizontalOrigin??f];case Image:return U6e(f,m);case $t:return $t.fromIso8601(f.date??f);case f0:return f0[f.labelStyle??f];case Number:return f.number??f;case ea:return f.nearFarScalar;case So:return f.distanceDisplayCondition;case Object:return f.object??f.value??f;case fr:return PBi(f);case FI:return f.number??f;case ale:return ale[f.portionToDisplay??f];case cl:return cl[f.shadowMode??f.shadows??f];case String:return f.string??f;case xF:return xF[f.stripeOrientation??f];case vi:return CBi(f);case ude.default:return U6e(f,m);case jn:return jn[f.verticalOrigin??f];default:throw new Oi(`Unknown CzmlDataSource interval type: ${o}`)}}var RBi={HERMITE:NGe,LAGRANGE:ZGe,LINEAR:Uue};function sle(o,f){let m=o.interpolationAlgorithm,x=o.interpolationDegree;(F(m)||F(x))&&f.setInterpolationOptions({interpolationAlgorithm:RBi[m],interpolationDegree:x});let y=o.forwardExtrapolationType;F(y)&&(f.forwardExtrapolationType=nI[y]);let v=o.forwardExtrapolationDuration;F(v)&&(f.forwardExtrapolationDuration=v);let C=o.backwardExtrapolationType;F(C)&&(f.backwardExtrapolationType=nI[C]);let T=o.backwardExtrapolationDuration;F(T)&&(f.backwardExtrapolationDuration=T)}var Y6e={iso8601:void 0};function X0(o){if(F(o))return Y6e.iso8601=o,js.fromIso8601(Y6e)}function UGe(o){let f=wn.MAXIMUM_INTERVAL.clone();return f.data=o,f}function K6e(o){let f=new rS;return f.intervals.addInterval(UGe(o)),f}function J6e(o){let f=new i1(o.referenceFrame);return f.intervals.addInterval(UGe(o)),f}function lle(o,f,m,x,y,v,C){let T=X0(x.interval);F(y)&&(F(T)?T=js.intersect(T,y,NO):T=y);let S,w,E,L=!F(x.reference)&&!F(x.velocityReference),I=F(T)&&!T.equals(wn.MAXIMUM_INTERVAL);if(x.delete===!0){if(!I){f[m]=void 0;return}return imt(f[m],T)}let R=!1;if(L){if(w=IBi(o,x,v),!F(w))return;S=o.packedLength??1,E=w.length??1,R=!F(x.array)&&typeof w!="string"&&E>S&&o!==Object}let P=typeof o.unpack=="function"&&o!==FI;if(!R&&!I){L?f[m]=new Qc(P?o.unpack(w,0):w):f[m]=k6e(o,C,x);return}let A=f[m],M,V=x.epoch;if(F(V)&&(M=$t.fromIso8601(V)),R&&!I){A instanceof uM||(f[m]=A=new uM(o)),A.addSamplesPackedArray(w,M),sle(x,A);return}let G;if(!R&&I){T=T.clone(),L?T.data=P?o.unpack(w,0):w:T.data=k6e(o,C,x),F(A)||(f[m]=A=L?new pH:new rS),L&&A instanceof pH?A.intervals.addInterval(T):A instanceof rS?(L&&(T.data=new Qc(T.data)),A.intervals.addInterval(T)):(f[m]=A=K6e(A),L&&(T.data=new Qc(T.data)),A.intervals.addInterval(T));return}F(A)||(f[m]=A=new rS),A instanceof rS||(f[m]=A=K6e(A));let D=A.intervals;G=D.findInterval(T),(!F(G)||!(G.data instanceof uM))&&(G=T.clone(),G.data=new uM(o),D.addInterval(G)),G.data.addSamplesPackedArray(w,M),sle(x,G.data)}function imt(o,f){if(o instanceof uM){o.removeSamples(f);return}else if(o instanceof pH){o.intervals.removeInterval(f);return}else if(o instanceof rS){let m=o.intervals;for(let x=0;x<m.length;++x){let y=js.intersect(m.get(x),f,NO);y.isEmpty||imt(y.data,f)}m.removeInterval(f);return}}function Bi(o,f,m,x,y,v,C){if(F(x))if(Array.isArray(x))for(let T=0,S=x.length;T<S;++T)lle(o,f,m,x[T],y,v,C);else lle(o,f,m,x,y,v,C)}function j6e(o,f,m,x,y,v){let C=X0(m.interval);F(x)&&(F(C)?C=js.intersect(C,x,NO):C=x);let T=F(m.cartesianVelocity)?1:0,S=Z.packedLength*(T+1),w,E,L=!F(m.reference),I=F(C)&&!C.equals(wn.MAXIMUM_INTERVAL);if(m.delete===!0){if(!I){o[f]=void 0;return}return rmt(o[f],C)}let R,P=!1;if(L&&(F(m.referenceFrame)&&(R=pp[m.referenceFrame]),R=R??pp.FIXED,w=kGe(m),E=w.length??1,P=E>S),!P&&!I){L?o[f]=new hI(Z.unpack(w),R):o[f]=E6(v,m.reference);return}let A=o[f],M,V=m.epoch;if(F(V)&&(M=$t.fromIso8601(V)),P&&!I){(!(A instanceof nS)||F(R)&&A.referenceFrame!==R)&&(o[f]=A=new nS(R,T)),A.addSamplesPackedArray(w,M),sle(m,A);return}let G;if(!P&&I){C=C.clone(),L?C.data=Z.unpack(w):C.data=E6(v,m.reference),F(A)||(L?A=new MH(R):A=new i1(R),o[f]=A),L&&A instanceof MH&&F(R)&&A.referenceFrame===R?A.intervals.addInterval(C):A instanceof i1?(L&&(C.data=new hI(C.data,R)),A.intervals.addInterval(C)):(o[f]=A=J6e(A),L&&(C.data=new hI(C.data,R)),A.intervals.addInterval(C));return}F(A)?A instanceof i1||(o[f]=A=J6e(A)):o[f]=A=new i1(R);let D=A.intervals;G=D.findInterval(C),(!F(G)||!(G.data instanceof nS)||F(R)&&G.data.referenceFrame!==R)&&(G=C.clone(),G.data=new nS(R,T),D.addInterval(G)),G.data.addSamplesPackedArray(w,M),sle(m,G.data)}function rmt(o,f){if(o instanceof nS){o.removeSamples(f);return}else if(o instanceof MH){o.intervals.removeInterval(f);return}else if(o instanceof i1){let m=o.intervals;for(let x=0;x<m.length;++x){let y=js.intersect(m.get(x),f,NO);y.isEmpty||rmt(y.data,f)}m.removeInterval(f);return}}function nmt(o,f,m,x,y,v){if(F(m))if(Array.isArray(m))for(let C=0,T=m.length;C<T;++C)j6e(o,f,m[C],x,y,v);else j6e(o,f,m,x,y,v)}function Q6e(o,f,m,x){F(m.references)?hde(o,f,m.references,m.interval,x,cde,rS):(F(m.cartesian2)?m.array=rt.unpackArray(m.cartesian2):F(m.cartesian)&&(m.array=rt.unpackArray(m.cartesian)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x))}function q6e(o,f,m,x,y,v){let C=X0(m.interval);F(x)&&(F(C)?C=js.intersect(C,x,NO):C=x);let T=o[f],S,w;if(F(C)){T instanceof ile||(T=new ile,o[f]=T);let L=T.intervals;w=L.findInterval({start:C.start,stop:C.stop}),F(w)?S=w.data:(w=C.clone(),L.addInterval(w))}else S=T;let E;F(m.solidColor)?(S instanceof Ba||(S=new Ba),E=m.solidColor,Bi(Xe,S,"color",E.color,void 0,void 0,v)):F(m.grid)?(S instanceof rle||(S=new rle),E=m.grid,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Number,S,"cellAlpha",E.cellAlpha,void 0,y,v),Bi(rt,S,"lineCount",E.lineCount,void 0,y,v),Bi(rt,S,"lineThickness",E.lineThickness,void 0,y,v),Bi(rt,S,"lineOffset",E.lineOffset,void 0,y,v)):F(m.image)?(S instanceof O0||(S=new O0),E=m.image,Bi(Image,S,"image",E.image,void 0,y,v),Bi(rt,S,"repeat",E.repeat,void 0,y,v),Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Boolean,S,"transparent",E.transparent,void 0,y,v)):F(m.stripe)?(S instanceof ole||(S=new ole),E=m.stripe,Bi(xF,S,"orientation",E.orientation,void 0,y,v),Bi(Xe,S,"evenColor",E.evenColor,void 0,y,v),Bi(Xe,S,"oddColor",E.oddColor,void 0,y,v),Bi(Number,S,"offset",E.offset,void 0,y,v),Bi(Number,S,"repeat",E.repeat,void 0,y,v)):F(m.polylineOutline)?(S instanceof KM||(S=new KM),E=m.polylineOutline,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Xe,S,"outlineColor",E.outlineColor,void 0,y,v),Bi(Number,S,"outlineWidth",E.outlineWidth,void 0,y,v)):F(m.polylineGlow)?(S instanceof nle||(S=new nle),E=m.polylineGlow,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Number,S,"glowPower",E.glowPower,void 0,y,v),Bi(Number,S,"taperPower",E.taperPower,void 0,y,v)):F(m.polylineArrow)?(S instanceof Mf||(S=new Mf),E=m.polylineArrow,Bi(Xe,S,"color",E.color,void 0,void 0,v)):F(m.polylineDash)?(S instanceof Ml||(S=new Ml),E=m.polylineDash,Bi(Xe,S,"color",E.color,void 0,void 0,v),Bi(Xe,S,"gapColor",E.gapColor,void 0,void 0,v),Bi(Number,S,"dashLength",E.dashLength,void 0,y,v),Bi(Number,S,"dashPattern",E.dashPattern,void 0,y,v)):F(m.checkerboard)&&(S instanceof ele||(S=new ele),E=m.checkerboard,Bi(Xe,S,"evenColor",E.evenColor,void 0,y,v),Bi(Xe,S,"oddColor",E.oddColor,void 0,y,v),Bi(rt,S,"repeat",E.repeat,void 0,y,v)),F(w)?w.data=S:o[f]=S}function S1(o,f,m,x,y,v){if(F(m))if(Array.isArray(m))for(let C=0,T=m.length;C<T;++C)q6e(o,f,m[C],x,y,v);else q6e(o,f,m,x,y,v)}function ABi(o,f,m,x){let y=f.name;F(y)&&(o.name=f.name)}function MBi(o,f,m,x){let y=f.description;F(y)&&Bi(String,o,"description",y,void 0,x,m)}function VBi(o,f,m,x){let y=f.position;F(y)&&nmt(o,"position",y,void 0,x,m)}function GBi(o,f,m,x){let y=f.viewFrom;F(y)&&Bi(Z,o,"viewFrom",y,void 0,x,m)}function FBi(o,f,m,x){let y=f.orientation;F(y)&&Bi(fr,o,"orientation",y,void 0,x,m)}function DBi(o,f,m,x){let y=f.properties;if(F(y)){F(o.properties)||(o.properties=new qE);for(let v in y)if(y.hasOwnProperty(v)){o.properties.hasProperty(v)||o.properties.addProperty(v);let C=y[v];if(Array.isArray(C))for(let T=0,S=C.length;T<S;++T)lle(z6e(C[T]),o.properties,v,C[T],void 0,x,m);else lle(z6e(C),o.properties,v,C,void 0,x,m)}}}function hde(o,f,m,x,y,v,C){let T=m.map(function(S){return E6(y,S)});if(F(x)){x=X0(x);let S=o[f];if(!(S instanceof C)){let w=new C;w.intervals.addInterval(UGe(S)),o[f]=S=w}x.data=new v(T),S.intervals.addInterval(x)}else o[f]=new v(T)}function $6e(o,f,m,x){let y=m.references;F(y)?hde(o,f,y,m.interval,x,cde,rS):Bi(Array,o,f,m,void 0,void 0,x)}function e7e(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)$6e(o,f,m[y],x);else $6e(o,f,m,x)}function t7e(o,f,m,x){let y=m.references;F(y)?hde(o,f,y,m.interval,x,dH,i1):(F(m.cartesian)?m.array=Z.unpackArray(m.cartesian):F(m.cartographicRadians)?m.array=Z.fromRadiansArrayHeights(m.cartographicRadians,yi.default):F(m.cartographicDegrees)&&(m.array=Z.fromDegreesArrayHeights(m.cartographicDegrees,yi.default)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x))}function Qq(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)t7e(o,f,m[y],x);else t7e(o,f,m,x)}function NBi(o){return Z.unpackArray(o)}function WBi(o){return Z.fromRadiansArrayHeights(o,yi.default)}function ZBi(o){return Z.fromDegreesArrayHeights(o,yi.default)}function i7e(o,f,m,x){let y=m.references;if(F(y)){let v=y.map(function(C){let T={};return hde(T,"positions",C,m.interval,x,dH,i1),T.positions});o[f]=new dH(v)}else F(m.cartesian)?m.array=m.cartesian.map(NBi):F(m.cartographicRadians)?m.array=m.cartographicRadians.map(WBi):F(m.cartographicDegrees)&&(m.array=m.cartographicDegrees.map(ZBi)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x)}function OBi(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)i7e(o,f,m[y],x);else i7e(o,f,m,x)}function XBi(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;y++)Q6e(o,f,m[y],x);else Q6e(o,f,m,x)}function kBi(o,f,m,x){let y=f.availability;if(!F(y))return;let v;if(Array.isArray(y))for(let C=0,T=y.length;C<T;++C)F(v)||(v=new k_),v.addInterval(X0(y[C]));else v=new k_,v.addInterval(X0(y));o.availability=v}function UBi(o,f,m,x,y){F(f)&&Bi(gF,o,"alignedAxis",f,m,x,y)}function BBi(o,f,m,x){let y=f.billboard;if(!F(y))return;let v=X0(y.interval),C=o.billboard;F(C)||(o.billboard=C=new oV),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Image,C,"image",y.image,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(rt,C,"pixelOffset",y.pixelOffset,v,x,m),Bi(Z,C,"eyeOffset",y.eyeOffset,v,x,m),Bi(ec,C,"horizontalOrigin",y.horizontalOrigin,v,x,m),Bi(jn,C,"verticalOrigin",y.verticalOrigin,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),UBi(C,y.alignedAxis,v,x,m),Bi(Boolean,C,"sizeInMeters",y.sizeInMeters,v,x,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(ea,C,"pixelOffsetScaleByDistance",y.pixelOffsetScaleByDistance,v,x,m),Bi(Er,C,"imageSubRegion",y.imageSubRegion,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function HBi(o,f,m,x){let y=f.box;if(!F(y))return;let v=X0(y.interval),C=o.box;F(C)||(o.box=C=new Tue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Z,C,"dimensions",y.dimensions,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function zBi(o,f,m,x){let y=f.corridor;if(!F(y))return;let v=X0(y.interval),C=o.corridor;F(C)||(o.corridor=C=new Sue),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"positions",y.positions,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(ad,C,"cornerType",y.cornerType,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function YBi(o,f,m,x){let y=f.cylinder;if(!F(y))return;let v=X0(y.interval),C=o.cylinder;F(C)||(o.cylinder=C=new wue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"length",y.length,v,x,m),Bi(Number,C,"topRadius",y.topRadius,v,x,m),Bi(Number,C,"bottomRadius",y.bottomRadius,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"numberOfVerticalLines",y.numberOfVerticalLines,v,x,m),Bi(Number,C,"slices",y.slices,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function KBi(o,f){let m=o.version;if(F(m)&&typeof m=="string"){let v=m.split(".");if(v.length===2){if(v[0]!=="1")throw new Oi("Cesium only supports CZML version 1.");f._version=m}}if(!F(f._version))throw new Oi("CZML version information invalid.  It is expected to be a property on the document object in the <Major>.<Minor> version format.");let x=f._documentPacket;F(o.name)&&(x.name=o.name);let y=o.clock;if(F(y)){let v=x.clock;F(v)?(v.interval=y.interval??v.interval,v.currentTime=y.currentTime??v.currentTime,v.range=y.range??v.range,v.step=y.step??v.step,v.multiplier=y.multiplier??v.multiplier):x.clock={interval:y.interval,currentTime:y.currentTime,range:y.range,step:y.step,multiplier:y.multiplier}}}function JBi(o,f,m,x){let y=f.ellipse;if(!F(y))return;let v=X0(y.interval),C=o.ellipse;F(C)||(o.ellipse=C=new Eue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"semiMajorAxis",y.semiMajorAxis,v,x,m),Bi(Number,C,"semiMinorAxis",y.semiMinorAxis,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"numberOfVerticalLines",y.numberOfVerticalLines,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function jBi(o,f,m,x){let y=f.ellipsoid;if(!F(y))return;let v=X0(y.interval),C=o.ellipsoid;F(C)||(o.ellipsoid=C=new Ez),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Z,C,"radii",y.radii,v,x,m),Bi(Z,C,"innerRadii",y.innerRadii,v,x,m),Bi(Number,C,"minimumClock",y.minimumClock,v,x,m),Bi(Number,C,"maximumClock",y.maximumClock,v,x,m),Bi(Number,C,"minimumCone",y.minimumCone,v,x,m),Bi(Number,C,"maximumCone",y.maximumCone,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"stackPartitions",y.stackPartitions,v,x,m),Bi(Number,C,"slicePartitions",y.slicePartitions,v,x,m),Bi(Number,C,"subdivisions",y.subdivisions,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function QBi(o,f,m,x){let y=f.label;if(!F(y))return;let v=X0(y.interval),C=o.label;F(C)||(o.label=C=new Lz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(String,C,"text",y.text,v,x,m),Bi(String,C,"font",y.font,v,x,m),Bi(f0,C,"style",y.style,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(Boolean,C,"showBackground",y.showBackground,v,x,m),Bi(Xe,C,"backgroundColor",y.backgroundColor,v,x,m),Bi(rt,C,"backgroundPadding",y.backgroundPadding,v,x,m),Bi(rt,C,"pixelOffset",y.pixelOffset,v,x,m),Bi(Z,C,"eyeOffset",y.eyeOffset,v,x,m),Bi(ec,C,"horizontalOrigin",y.horizontalOrigin,v,x,m),Bi(jn,C,"verticalOrigin",y.verticalOrigin,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"fillColor",y.fillColor,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(ea,C,"pixelOffsetScaleByDistance",y.pixelOffsetScaleByDistance,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function qBi(o,f,m,x){let y=f.model;if(!F(y))return;let v=X0(y.interval),C=o.model;F(C)||(o.model=C=new x7),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ude.default,C,"uri",y.gltf,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(Number,C,"minimumPixelSize",y.minimumPixelSize,v,x,m),Bi(Number,C,"maximumScale",y.maximumScale,v,x,m),Bi(Boolean,C,"incrementallyLoadTextures",y.incrementallyLoadTextures,v,x,m),Bi(Boolean,C,"runAnimations",y.runAnimations,v,x,m),Bi(Boolean,C,"clampAnimations",y.clampAnimations,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"silhouetteColor",y.silhouetteColor,v,x,m),Bi(Number,C,"silhouetteSize",y.silhouetteSize,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(II,C,"colorBlendMode",y.colorBlendMode,v,x,m),Bi(Number,C,"colorBlendAmount",y.colorBlendAmount,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m);let T,S,w=y.nodeTransformations;if(F(w))if(Array.isArray(w))for(T=0,S=w.length;T<S;++T)r7e(C,w[T],v,x,m);else r7e(C,w,v,x,m);let E=y.articulations;if(F(E))if(Array.isArray(E))for(T=0,S=E.length;T<S;++T)n7e(C,E[T],v,x,m);else n7e(C,E,v,x,m)}function r7e(o,f,m,x,y){let v=X0(f.interval);F(m)&&(F(v)?v=js.intersect(v,m,NO):v=m);let C=o.nodeTransformations,T=Object.keys(f);for(let S=0,w=T.length;S<w;++S){let E=T[S];if(E==="interval")continue;let L=f[E];if(!F(L))continue;F(C)||(o.nodeTransformations=C=new qE),C.hasProperty(E)||C.addProperty(E);let I=C[E];F(I)||(C[E]=I=new Lue),Bi(Z,I,"translation",L.translation,v,x,y),Bi(fr,I,"rotation",L.rotation,v,x,y),Bi(Z,I,"scale",L.scale,v,x,y)}}function n7e(o,f,m,x,y){let v=X0(f.interval);F(m)&&(F(v)?v=js.intersect(v,m,NO):v=m);let C=o.articulations,T=Object.keys(f);for(let S=0,w=T.length;S<w;++S){let E=T[S];if(E==="interval")continue;let L=f[E];F(L)&&(F(C)||(o.articulations=C=new qE),C.hasProperty(E)||C.addProperty(E),Bi(Number,C,E,L,v,x,y))}}function $Bi(o,f,m,x){let y=f.path;if(!F(y))return;let v=X0(y.interval),C=o.path;F(C)||(o.path=C=new g7),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"leadTime",y.leadTime,v,x,m),Bi(Number,C,"trailTime",y.trailTime,v,x,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"resolution",y.resolution,v,x,m),S1(C,"material",y.material,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function eHi(o,f,m,x){let y=f.point;if(!F(y))return;let v=X0(y.interval),C=o.point;F(C)||(o.point=C=new Iue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"pixelSize",y.pixelSize,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function L6(o){this.polygon=o,this._definitionChanged=new Tr}Object.defineProperties(L6.prototype,{isConstant:{get:function(){let o=this.polygon._positions,f=this.polygon._holes;return(!F(o)||o.isConstant)&&(!F(f)||f.isConstant)}},definitionChanged:{get:function(){return this._definitionChanged}}});L6.prototype.getValue=function(o,f){let m;F(this.polygon._positions)&&(m=this.polygon._positions.getValue(o));let x;return F(this.polygon._holes)&&(x=this.polygon._holes.getValue(o),F(x)&&(x=x.map(function(y){return new Zn(y)}))),F(f)?(f.positions=m,f.holes=x,f):new Zn(m,x)};L6.prototype.equals=function(o){return this===o||o instanceof L6&&Nt.equals(this.polygon._positions,o.polygon._positions)&&Nt.equals(this.polygon._holes,o.polygon._holes)};function tHi(o,f,m,x){let y=f.polygon;if(!F(y))return;let v=X0(y.interval),C=o.polygon;F(C)||(o.polygon=C=new hl),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"_positions",y.positions,m),OBi(C,"_holes",y.holes,m),(F(C._positions)||F(C._holes))&&(C.hierarchy=new L6(C)),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Boolean,C,"perPositionHeight",y.perPositionHeight,v,x,m),Bi(Boolean,C,"closeTop",y.closeTop,v,x,m),Bi(Boolean,C,"closeBottom",y.closeBottom,v,x,m),Bi(qa,C,"arcType",y.arcType,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function iHi(o){return o?qa.GEODESIC:qa.NONE}function rHi(o,f,m,x){let y=f.polyline;if(!F(y))return;let v=X0(y.interval),C=o.polyline;if(F(C)||(o.polyline=C=new bI),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"positions",y.positions,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),S1(C,"material",y.material,v,x,m),S1(C,"depthFailMaterial",y.depthFailMaterial,v,x,m),Bi(qa,C,"arcType",y.arcType,v,x,m),Bi(Boolean,C,"clampToGround",y.clampToGround,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m),F(y.followSurface)&&!F(y.arcType)){let T={};Bi(Boolean,T,"followSurface",y.followSurface,v,x,m),C.arcType=vBi(T.followSurface,iHi)}}function nHi(o,f,m,x){let y=f.polylineVolume;if(!F(y))return;let v=X0(y.interval),C=o.polylineVolume;F(C)||(o.polylineVolume=C=new Rue),Qq(C,"positions",y.positions,m),XBi(C,"shape",y.shape,m),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ad,C,"cornerType",y.cornerType,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function oHi(o,f,m,x){let y=f.rectangle;if(!F(y))return;let v=X0(y.interval),C=o.rectangle;F(C)||(o.rectangle=C=new Pz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(vi,C,"coordinates",y.coordinates,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function aHi(o,f,m,x){let y=f.tileset;if(!F(y))return;let v=X0(y.interval),C=o.tileset;F(C)||(o.tileset=C=new Pue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ude.default,C,"uri",y.uri,v,x,m),Bi(Number,C,"maximumScreenSpaceError",y.maximumScreenSpaceError,v,x,m)}function sHi(o,f,m,x){let y=f.wall;if(!F(y))return;let v=X0(y.interval),C=o.wall;F(C)||(o.wall=C=new y7),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"positions",y.positions,m),e7e(C,"minimumHeights",y.minimumHeights,m),e7e(C,"maximumHeights",y.maximumHeights,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function o7e(o,f,m,x,y){let v=o.id;if(F(v)||(v=du()),W1e=v,!F(y._version)&&v!=="document")throw new Oi("The first CZML packet is required to be the document object.");if(o.delete===!0)f.removeById(v);else if(v==="document")KBi(o,y);else{let C=f.getOrCreateEntity(v),T=o.parent;F(T)&&(C.parent=f.getOrCreateEntity(T));for(let S=m.length-1;S>-1;S--)m[S](C,o,f,x)}W1e=void 0}function lHi(o){let f,m=o._documentPacket.clock;if(!F(m)){if(!F(o._clock)){let y=o._entityCollection.computeAvailability();if(!y.start.equals(wn.MINIMUM_VALUE)){let v=y.start,C=y.stop,T=$t.secondsDifference(C,v),S=Math.round(T/120);return f=new r9,f.startTime=$t.clone(v),f.stopTime=$t.clone(C),f.clockRange=Gx.LOOP_STOP,f.multiplier=S,f.currentTime=$t.clone(v),f.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,o._clock=f,!0}}return!1}F(o._clock)?f=o._clock.clone():(f=new r9,f.startTime=wn.MINIMUM_VALUE.clone(),f.stopTime=wn.MAXIMUM_VALUE.clone(),f.currentTime=wn.MINIMUM_VALUE.clone(),f.clockRange=Gx.LOOP_STOP,f.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,f.multiplier=1);let x=X0(m.interval);return F(x)&&(f.startTime=x.start,f.stopTime=x.stop),F(m.currentTime)&&(f.currentTime=$t.fromIso8601(m.currentTime)),F(m.range)&&(f.clockRange=Gx[m.range]??Gx.LOOP_STOP),F(m.step)&&(f.clockStep=kd[m.step]??kd.SYSTEM_CLOCK_MULTIPLIER),F(m.multiplier)&&(f.multiplier=m.multiplier),f.equals(o._clock)?!1:(o._clock=f.clone(o._clock),!0)}function omt(o,f,m,x){m=m??si.EMPTY_OBJECT;let y=f,v=m.sourceUri,C=m.credit;if(typeof C=="string"&&(C=new Oa(C)),o._credit=C,typeof f=="string"||f instanceof Mr){f=Mr.createIfNeeded(f),y=f.fetchJson(),v=v??f.clone();let T=o._resourceCredits,S=f.credits;if(F(S)){let w=S.length;for(let E=0;E<w;E++)T.push(S[E])}}return v=Mr.createIfNeeded(v),Sy.setLoading(o,!0),Promise.resolve(y).then(function(T){return uHi(o,T,v,x)}).catch(function(T){return Sy.setLoading(o,!1),o._error.raiseEvent(o,T),console.log(T),Promise.reject(T)})}function uHi(o,f,m,x){Sy.setLoading(o,!0);let y=o._entityCollection;x&&(o._version=void 0,o._documentPacket=new amt,y.removeAll()),sm._processCzml(f,y,m,void 0,o);let v=lHi(o),C=o._documentPacket;return F(C.name)&&o._name!==C.name?(o._name=C.name,v=!0):!F(o._name)&&F(m)&&(o._name=v7(m.getUrlComponent()),v=!0),Sy.setLoading(o,!1),v&&o._changed.raiseEvent(o),o}function amt(){this.name=void 0,this.clock=void 0}function sm(o){this._name=o,this._changed=new Tr,this._error=new Tr,this._isLoading=!1,this._loading=new Tr,this._clock=void 0,this._documentPacket=new amt,this._version=void 0,this._entityCollection=new kS(this),this._entityCluster=new AF,this._credit=void 0,this._resourceCredits=[]}sm.load=function(o,f){return new sm().load(o,f)};Object.defineProperties(sm.prototype,{name:{get:function(){return this._name}},clock:{get:function(){return this._clock}},entities:{get:function(){return this._entityCollection}},isLoading:{get:function(){return this._isLoading}},changedEvent:{get:function(){return this._changed}},errorEvent:{get:function(){return this._error}},loadingEvent:{get:function(){return this._loading}},show:{get:function(){return this._entityCollection.show},set:function(o){this._entityCollection.show=o}},clustering:{get:function(){return this._entityCluster},set:function(o){this._entityCluster=o}},credit:{get:function(){return this._credit}}});sm.updaters=[BBi,HBi,zBi,YBi,JBi,jBi,QBi,qBi,ABi,MBi,$Bi,eHi,tHi,rHi,nHi,DBi,oHi,VBi,aHi,GBi,sHi,FBi,kBi];sm.registerUpdater=function(o){sm.updaters.includes(o)||sm.updaters.push(o)};sm.unregisterUpdater=function(o){if(sm.updaters.includes(o)){let f=sm.updaters.indexOf(o);sm.updaters.splice(f,1)}};sm.prototype.process=function(o,f){return omt(this,o,f,!1)};sm.prototype.load=function(o,f){return omt(this,o,f,!0)};sm.prototype.update=function(o){return!0};sm.processPacketData=Bi;sm.processPositionPacketData=nmt;sm.processMaterialPacketData=S1;sm._processCzml=function(o,f,m,x,y){if(x=x??sm.updaters,Array.isArray(o))for(let v=0,C=o.length;v<C;++v)o7e(o[v],f,x,m,y);else o7e(o,f,x,m,y)};var qq=sm,Z1e=32,cHi="http://www.opengis.net/kml/2.2",DE="http://www.google.com/kml/ext/2.2",hHi="http://www.w3.org/2000/xmlns/";function dde(o){this._files={},this._promises=[],this._count=0,this._modelCallback=o}var dHi=/^data:image\/([^,;]+)/;dde.prototype.texture=function(o){let f=this,m;if(typeof o=="string"||o instanceof Mr){if(o=Mr.createIfNeeded(o),!o.isDataUri)return o.url;let x=o.url.match(dHi);m=`texture_${++this._count}`,F(x)&&(m+=`.${x[1]}`);let y=o.fetchBlob().then(function(v){f._files[m]=v});return this._promises.push(y),m}if(o instanceof HTMLCanvasElement){m=`texture_${++this._count}.png`;let x=new Promise(y=>{o.toBlob(function(v){f._files[m]=v,y()})});return this._promises.push(x),m}return""};function pHi(o,f){return function(m){o._files[f]=m}}dde.prototype.model=function(o,f){let m=this._modelCallback;if(!F(m))throw new Oi("Encountered a model entity while exporting to KML, but no model callback was supplied.");let x={},y=m(o,f,x);for(let v in x)if(x.hasOwnProperty(v)){let C=Promise.resolve(x[v]);this._promises.push(C),C.then(pHi(this,v))}return y};Object.defineProperties(dde.prototype,{promise:{get:function(){return Promise.all(this._promises)}},files:{get:function(){return this._files}}});function pde(o){this._time=o}pde.prototype.get=function(o,f,m){let x;return F(o)&&(x=F(o.getValue)?o.getValue(this._time,m):o),x??f};pde.prototype.getColor=function(o,f){let m=this.get(o,f);if(F(m))return gZ(m)};pde.prototype.getMaterialType=function(o){if(F(o))return o.getType(this._time)};function BGe(){this._ids={},this._styles={},this._count=0}BGe.prototype.get=function(o){let f=this._ids,m=o.innerHTML;if(F(f[m]))return f[m];let x=`style-${++this._count}`;return o.setAttribute("id",x),x=`#${x}`,f[m]=x,this._styles[m]=o,x};BGe.prototype.save=function(o){let f=this._styles,m=o.childNodes[0];for(let x in f)f.hasOwnProperty(x)&&o.insertBefore(f[x],m)};function smt(){this._ids={}}smt.prototype.get=function(o){if(!F(o))return this.get(du());let f=this._ids;return F(f[o])?`${o.toString()}-${++f[o]}`:(f[o]=0,o)};function HGe(o){o=o??si.EMPTY_OBJECT;let f=o.entities,m=o.kmz??!1,x=HGe._createState(o),y=f.values.filter(function(w){return!F(w.parent)}),v=x.kmlDoc,C=v.documentElement;C.setAttributeNS(hHi,"xmlns:gx",DE);let T=v.createElement("Document");C.appendChild(T),umt(x,T,y),x.styleCache.save(T);let S=x.externalFileHandler;return S.promise.then(function(){let w=new XMLSerializer().serializeToString(x.kmlDoc);return m?fHi(w,S.files):{kml:w,externalFiles:S.files}})}function fHi(o,f){let m=oa("ThirdParty/Workers/z-worker-pako.js");cPe({workerScripts:{deflate:[m,"./pako_deflate.min.js"],inflate:[m,"./pako_inflate.min.js"]}});let x=new Cot,y=new Yti(x);return y.add("doc.kml",new pti(o)).then(function(){let v=Object.keys(f);return lmt(y,v,f,0)}).then(function(){return y.close()}).then(function(v){return{kmz:v}})}function lmt(o,f,m,x){if(f.length===x)return;let y=f[x];return o.add(y,new Oue(m[y])).then(function(){return lmt(o,f,m,x+1)})}HGe._createState=function(o){let f=o.entities,m=new BGe,x=f.computeAvailability(),y=F(o.time)?o.time:x.start,v=o.defaultAvailability??x,C=o.sampleDuration??60;v.start===wn.MINIMUM_VALUE?v.stop===wn.MAXIMUM_VALUE?v=new js:$t.addSeconds(v.stop,-10*C,v.start):v.stop===wn.MAXIMUM_VALUE&&$t.addSeconds(v.start,10*C,v.stop);let T=new dde(o.modelCallback);return{kmlDoc:document.implementation.createDocument(cHi,"kml"),ellipsoid:o.ellipsoid??yi.default,idManager:new smt,styleCache:m,externalFileHandler:T,time:y,valueGetter:new pde(y),sampleDuration:C,defaultAvailability:new k_([v])}};function umt(o,f,m){let x=o.kmlDoc,y=o.styleCache,v=o.valueGetter,C=o.idManager,T=m.length,S,w,E;for(let L=0;L<T;++L){let I=m[L];S=[],w=[],E=[],mHi(o,I,w,E),xHi(o,I.polyline,w,E),s7e(o,I.rectangle,w,E,S),s7e(o,I.polygon,w,E,S),vHi(o,I,I.model,w,E);let R,P=I.availability;F(P)&&(R=x.createElement("TimeSpan"),$t.equals(P.start,wn.MINIMUM_VALUE)||R.appendChild(Ua(x,"begin",$t.toIso8601(P.start))),$t.equals(P.stop,wn.MAXIMUM_VALUE)||R.appendChild(Ua(x,"end",$t.toIso8601(P.stop))));for(let V=0;V<S.length;++V){let G=S[V];G.setAttribute("id",C.get(I.id)),G.appendChild(Ua(x,"name",I.name)),G.appendChild(Ua(x,"visibility",I.show)),G.appendChild(Ua(x,"description",I.description)),F(R)&&G.appendChild(R),f.appendChild(G)}let A=w.length;if(A>0){let V=x.createElement("Placemark");V.setAttribute("id",C.get(I.id));let G=I.name,D=I.label;if(F(D)){let k=x.createElement("LabelStyle"),U=v.get(D.text);G=F(U)&&U.length>0?U:G;let B=v.getColor(D.fillColor);F(B)&&(k.appendChild(Ua(x,"color",B)),k.appendChild(Ua(x,"colorMode","normal")));let Y=v.get(D.scale);F(Y)&&k.appendChild(Ua(x,"scale",Y)),E.push(k)}V.appendChild(Ua(x,"name",G)),V.appendChild(Ua(x,"visibility",I.show)),V.appendChild(Ua(x,"description",I.description)),F(R)&&V.appendChild(R),f.appendChild(V);let N=E.length;if(N>0){let k=x.createElement("Style");for(let U=0;U<N;++U)k.appendChild(E[U]);V.appendChild(Ua(x,"styleUrl",y.get(k)))}if(w.length===1)V.appendChild(w[0]);else if(w.length>1){let k=x.createElement("MultiGeometry");for(let U=0;U<A;++U)k.appendChild(w[U]);V.appendChild(k)}}let M=I._children;if(M.length>0){let V=x.createElement("Folder");V.setAttribute("id",C.get(I.id)),V.appendChild(Ua(x,"name",I.name)),V.appendChild(Ua(x,"visibility",I.show)),V.appendChild(Ua(x,"description",I.description)),f.appendChild(V),umt(o,V,M)}}}var xb=new Z,rv=new Gt,TE=new $t;function mHi(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=o.valueGetter,T=f.billboard??f.point;if(!F(T)&&!F(f.path))return;let S=f.position;if(!S.isConstant){cmt(o,f,T,m,x);return}C.get(S,void 0,xb);let w=Ua(y,"coordinates",xZ(xb,v)),E=y.createElement("Point"),L=y.createElement("altitudeMode");L.appendChild(OZ(o,T.heightReference)),E.appendChild(L),E.appendChild(w),m.push(E);let I=T instanceof oV?dmt(o,T):hmt(o,T);x.push(I)}function cmt(o,f,m,x,y){let v=o.kmlDoc,C=o.ellipsoid,T=o.valueGetter,S,w=f.position,E=!0;w instanceof i1?(S=w.intervals,E=!1):S=f.availability??o.defaultAvailability;let L=m instanceof x7,I,R,P,A=[];for(I=0;I<S.length;++I){let V=S.get(I),G=E?w:V.data,D=v.createElement("altitudeMode");G instanceof Mz?(G=G._value,D.appendChild(OZ(o,Mn.CLAMP_TO_GROUND))):F(m)?D.appendChild(OZ(o,m.heightReference)):D.appendChild(OZ(o,Mn.NONE));let N=[],k=[];if(G.isConstant){T.get(G,void 0,xb);let B=Ua(v,"coordinates",xZ(xb,C));N.push($t.toIso8601(V.start)),k.push(B),N.push($t.toIso8601(V.stop)),k.push(B)}else if(G instanceof nS)for(P=G._property._times,R=0;R<P.length;++R)N.push($t.toIso8601(P[R])),G.getValueInReferenceFrame(P[R],pp.FIXED,xb),k.push(xZ(xb,C));else if(G instanceof uM){P=G._times;let B=G._values;for(R=0;R<P.length;++R)N.push($t.toIso8601(P[R])),Z.fromArray(B,R*3,xb),k.push(xZ(xb,C))}else{let B=o.sampleDuration;V.start.clone(TE),V.isStartIncluded||$t.addSeconds(TE,B,TE);let Y=V.stop;for(;$t.lessThan(TE,Y);)G.getValue(TE,xb),N.push($t.toIso8601(TE)),k.push(xZ(xb,C)),$t.addSeconds(TE,B,TE);V.isStopIncluded&&$t.equals(TE,Y)&&(G.getValue(TE,xb),N.push($t.toIso8601(TE)),k.push(xZ(xb,C)))}let U=v.createElementNS(DE,"Track");U.appendChild(D);for(let B=0;B<N.length;++B){let Y=Ua(v,"when",N[B]),J=Ua(v,"coord",k[B],DE);U.appendChild(Y),U.appendChild(J)}L&&U.appendChild(pmt(o,m)),A.push(U)}if(A.length===1)x.push(A[0]);else if(A.length>1){let V=v.createElementNS(DE,"MultiTrack");for(I=0;I<A.length;++I)V.appendChild(A[I]);x.push(V)}if(F(m)&&!L){let V=m instanceof oV?dmt(o,m):hmt(o,m);y.push(V)}let M=f.path;if(F(M)){let V=T.get(M.width),G=M.material;if(F(G)||F(V)){let D=v.createElement("LineStyle");F(V)&&D.appendChild(Ua(v,"width",V)),zGe(o,G,D),y.push(D)}}}function hmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=m.createElement("IconStyle"),v=x.getColor(f.color);F(v)&&(y.appendChild(Ua(m,"color",v)),y.appendChild(Ua(m,"colorMode","normal")));let C=x.get(f.pixelSize);return F(C)&&y.appendChild(Ua(m,"scale",C/Z1e)),y}function dmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=o.externalFileHandler,v=m.createElement("IconStyle"),C=x.get(f.image);if(F(C)){C=y.texture(C);let I=m.createElement("Icon");I.appendChild(Ua(m,"href",C));let R=x.get(f.imageSubRegion);F(R)&&(I.appendChild(Ua(m,"x",R.x,DE)),I.appendChild(Ua(m,"y",R.y,DE)),I.appendChild(Ua(m,"w",R.width,DE)),I.appendChild(Ua(m,"h",R.height,DE))),v.appendChild(I)}let T=x.getColor(f.color);F(T)&&(v.appendChild(Ua(m,"color",T)),v.appendChild(Ua(m,"colorMode","normal")));let S=x.get(f.scale);F(S)&&v.appendChild(Ua(m,"scale",S));let w=x.get(f.pixelOffset);if(F(w)){S=S??1,rt.divideByScalar(w,S,w);let I=x.get(f.width,Z1e),R=x.get(f.height,Z1e),P=x.get(f.horizontalOrigin,ec.CENTER);P===ec.CENTER?w.x-=I*.5:P===ec.RIGHT&&(w.x-=I);let A=x.get(f.verticalOrigin,jn.CENTER);A===jn.TOP?w.y+=R:A===jn.CENTER&&(w.y+=R*.5);let M=m.createElement("hotSpot");M.setAttribute("x",-w.x),M.setAttribute("y",w.y),M.setAttribute("xunits","pixels"),M.setAttribute("yunits","pixels"),v.appendChild(M)}let E=x.get(f.rotation),L=x.get(f.alignedAxis);return F(E)&&Z.equals(Z.UNIT_Z,L)&&(E=be.toDegrees(-E),E===0&&(E=360),v.appendChild(Ua(m,"heading",E))),v}function xHi(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=o.valueGetter;if(!F(f))return;let T=y.createElement("LineString"),S=y.createElement("altitudeMode"),w=C.get(f.clampToGround,!1),E;w?(T.appendChild(Ua(y,"tessellate",!0)),E=y.createTextNode("clampToGround")):E=y.createTextNode("absolute"),S.appendChild(E),T.appendChild(S);let L=f.positions,I=C.get(L),R=Ua(y,"coordinates",xZ(I,v));T.appendChild(R);let P=C.get(f.zIndex);w&&F(P)&&T.appendChild(Ua(y,"drawOrder",P,DE)),m.push(T);let A=y.createElement("LineStyle"),M=C.get(f.width);F(M)&&A.appendChild(Ua(y,"width",M)),zGe(o,f.material,A),x.push(A)}function gHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=y.get(f.height,0);m>0&&(v=m);let C=f.coordinates,T=y.get(C),S=[],w=[vi.northeast,vi.southeast,vi.southwest,vi.northwest];for(let R=0;R<4;++R)w[R](T,rv),S.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${v}`);let E=Ua(x,"coordinates",S.join(" ")),L=x.createElement("outerBoundaryIs"),I=x.createElement("LinearRing");return I.appendChild(E),L.appendChild(I),[L]}function a7e(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=[],T=f.length;for(let E=0;E<T;++E)Gt.fromCartesian(f[E],v,rv),C.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${x?rv.height:m}`);let S=Ua(y,"coordinates",C.join(" ")),w=y.createElement("LinearRing");return w.appendChild(S),w}function yHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=y.get(f.height,0),C=y.get(f.perPositionHeight,!1);!C&&m>0&&(v=m);let T=[],S=f.hierarchy,w=y.get(S),E=Array.isArray(w)?w:w.positions,L=x.createElement("outerBoundaryIs");L.appendChild(a7e(o,E,v,C)),T.push(L);let I=w.holes;if(F(I)){let R=I.length;for(let P=0;P<R;++P){let A=x.createElement("innerBoundaryIs");A.appendChild(a7e(o,I[P].positions,v,C)),T.push(A)}}return T}function s7e(o,f,m,x,y){let v=o.kmlDoc,C=o.valueGetter;if(!F(f))return;let T=f instanceof Pz;if(T&&C.getMaterialType(f.material)==="Image"){_Hi(o,f,y);return}let S=v.createElement("Polygon"),w=C.get(f.extrudedHeight,0);w>0&&S.appendChild(Ua(v,"extrude",!0));let E=T?gHi(o,f,w):yHi(o,f,w),L=E.length;for(let M=0;M<L;++M)S.appendChild(E[M]);let I=v.createElement("altitudeMode");I.appendChild(OZ(o,f.heightReference)),S.appendChild(I),m.push(S);let R=v.createElement("PolyStyle"),P=C.get(f.fill,!1);P&&R.appendChild(Ua(v,"fill",P)),zGe(o,f.material,R);let A=C.get(f.outline,!1);if(A){R.appendChild(Ua(v,"outline",A));let M=v.createElement("LineStyle"),V=C.get(f.outlineWidth,1);M.appendChild(Ua(v,"width",V));let G=C.getColor(f.outlineColor,Xe.BLACK);M.appendChild(Ua(v,"color",G)),M.appendChild(Ua(v,"colorMode","normal")),x.push(M)}x.push(R)}function _Hi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=o.externalFileHandler,C=x.createElement("GroundOverlay"),T=x.createElement("altitudeMode");T.appendChild(OZ(o,f.heightReference)),C.appendChild(T);let S=y.get(f.height);F(S)&&C.appendChild(Ua(x,"altitude",S));let w=y.get(f.coordinates),E=x.createElement("LatLonBox");E.appendChild(Ua(x,"north",be.toDegrees(w.north))),E.appendChild(Ua(x,"south",be.toDegrees(w.south))),E.appendChild(Ua(x,"east",be.toDegrees(w.east))),E.appendChild(Ua(x,"west",be.toDegrees(w.west))),C.appendChild(E);let L=y.get(f.material),I=v.texture(L.image),R=x.createElement("Icon");R.appendChild(Ua(x,"href",I)),C.appendChild(R);let P=L.color;F(P)&&C.appendChild(Ua(x,"color",gZ(L.color))),m.push(C)}function pmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=o.externalFileHandler,v=m.createElement("Model"),C=x.get(f.scale);if(F(C)){let w=m.createElement("scale");w.appendChild(Ua(m,"x",C)),w.appendChild(Ua(m,"y",C)),w.appendChild(Ua(m,"z",C)),v.appendChild(w)}let T=m.createElement("Link"),S=y.model(f,o.time);return T.appendChild(Ua(m,"href",S)),v.appendChild(T),v}function vHi(o,f,m,x,y){let v=o.kmlDoc,C=o.ellipsoid,T=o.valueGetter;if(!F(m))return;let S=f.position;if(!S.isConstant){cmt(o,f,m,x,y);return}let w=pmt(o,m),E=v.createElement("altitudeMode");E.appendChild(OZ(o,m.heightReference)),w.appendChild(E),T.get(S,void 0,xb),Gt.fromCartesian(xb,C,rv);let L=v.createElement("Location");L.appendChild(Ua(v,"longitude",be.toDegrees(rv.longitude))),L.appendChild(Ua(v,"latitude",be.toDegrees(rv.latitude))),L.appendChild(Ua(v,"altitude",rv.height)),w.appendChild(L),x.push(w)}function zGe(o,f,m){let x=o.kmlDoc,y=o.valueGetter;if(!F(f))return;let v=y.get(f);if(!F(v))return;let C,T=y.getMaterialType(f),S,w;switch(T){case"Image":C=gZ(Xe.WHITE);break;case"Color":case"Grid":case"PolylineGlow":case"PolylineArrow":case"PolylineDash":C=gZ(v.color);break;case"PolylineOutline":C=gZ(v.color),S=gZ(v.outlineColor),w=v.outlineWidth,m.appendChild(Ua(x,"outerColor",S,DE)),m.appendChild(Ua(x,"outerWidth",w,DE));break;case"Stripe":C=gZ(v.oddColor);break}F(C)&&(m.appendChild(Ua(x,"color",C)),m.appendChild(Ua(x,"colorMode","normal")))}function OZ(o,f){let m=o.kmlDoc,x=o.valueGetter.get(f,Mn.NONE),y;switch(x){case Mn.NONE:y=m.createTextNode("absolute");break;case Mn.CLAMP_TO_GROUND:y=m.createTextNode("clampToGround");break;case Mn.RELATIVE_TO_GROUND:y=m.createTextNode("relativeToGround");break}return y}function xZ(o,f){Array.isArray(o)||(o=[o]);let m=o.length,x=[];for(let y=0;y<m;++y)Gt.fromCartesian(o[y],f,rv),x.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${rv.height}`);return x.join(" ")}function Ua(o,f,m,x){m=m??"",typeof m=="boolean"&&(m=m?"1":"0");let y=F(x)?o.createElementNS(x,f):o.createElement(f),v=m==="string"&&m.indexOf("<")!==-1?o.createCDATASection(m):o.createTextNode(m);return y.appendChild(v),y}function gZ(o){let f="",m=o.toBytes();for(let x=3;x>=0;--x)f+=m[x]<16?`0${m[x].toString(16)}`:m[x].toString(16);return f}var fmt=HGe,mmt;typeof DOMParser<"u"&&(mmt=new DOMParser);var bHi=new Unt({stripPrefix:!1,email:!1,replaceFn:function(o,f){return f.urlMatchType==="scheme"||f.urlMatchType==="www"}}),ule=32,l7e=2414016,u7e=1,c7e=16093e3,h7e=.1,CHi=[null,void 0,"http://www.topografix.com/GPX/1/1"],sd={gpx:CHi};function THi(o){return new Promise((f,m)=>{let x=new FileReader;x.addEventListener("load",function(){f(x.result)}),x.addEventListener("error",function(){m(x.error)}),x.readAsText(o)})}function YGe(o,f){let m=P6(o,"id");return m=F(m)?m:du(),f.getOrCreateEntity(m)}function KGe(o){let f=d7e(o,"lon"),m=d7e(o,"lat"),x=bj(o,"ele",sd.gpx);return Z.fromDegrees(f,m,x)}function d7e(o,f){if(!F(o))return;let m=o.getAttribute(f);if(m!==null){let x=parseFloat(m);return isNaN(x)?void 0:x}}function P6(o,f){if(!F(o))return;let m=o.getAttribute(f);return m!==null?m:void 0}function iD(o,f,m){if(!F(o))return;let x=o.childNodes,y=x.length;for(let v=0;v<y;v++){let C=x[v];if(C.localName===f&&m.indexOf(C.namespaceURI)!==-1)return C}}function JGe(o,f,m){if(!F(o))return;let x=[],y=o.getElementsByTagName(f),v=y.length;for(let C=0;C<v;C++){let T=y[C];T.localName===f&&m.indexOf(T.namespaceURI)!==-1&&x.push(T)}return x}function bj(o,f,m){let x=iD(o,f,m);if(F(x)){let y=parseFloat(x.textContent);return isNaN(y)?void 0:y}}function Ib(o,f,m){let x=iD(o,f,m);if(F(x))return x.textContent.trim()}function xmt(o){let f=new oV;return f.width=ule,f.height=ule,f.scaleByDistance=new ea(l7e,u7e,c7e,h7e),f.pixelOffsetScaleByDistance=new ea(l7e,u7e,c7e,h7e),f.verticalOrigin=new Qc(jn.BOTTOM),f.image=o,f}function SHi(){let o=new Lz;return o.translucencyByDistance=new ea(3e6,1,5e6,0),o.pixelOffset=new rt(17,0),o.horizontalOrigin=ec.LEFT,o.font="16px sans-serif",o.style=f0.FILL_AND_OUTLINE,o}function gmt(o){let f=new bI;return f.width=4,f.material=new KM,f.material.color=F(o)?o:Xe.RED,f.material.outlineWidth=2,f.material.outlineColor=Xe.BLACK,f}var p7e={time:{text:"Time",tag:"time"},comment:{text:"Comment",tag:"cmt"},description:{text:"Description",tag:"desc"},source:{text:"Source",tag:"src"},number:{text:"GPS track/route number",tag:"number"},type:{text:"Type",tag:"type"}},Cj;typeof document<"u"&&(Cj=document.createElement("div"));function jGe(o,f){let m,x="",y=Object.keys(p7e),v=y.length;for(m=0;m<v;m++){let E=y[m],L=p7e[E];L.value=Ib(o,L.tag,sd.gpx)??"",F(L.value)&&L.value!==""&&(x=`${x}<p>${L.text}: ${L.value}</p>`)}if(!F(x)||x==="")return;x=bHi.link(x),Cj.innerHTML=x;let C=Cj.querySelectorAll("a");for(m=0;m<C.length;m++)C[m].setAttribute("target","_blank");let T=Xe.WHITE,S=Xe.BLACK,w='<div class="cesium-infoBox-description-lighter" style="';return w+="overflow:auto;",w+="word-wrap:break-word;",w+=`background-color:${T.toCssColorString()};`,w+=`color:${S.toCssColorString()};`,w+='">',w+=`${Cj.innerHTML}</div>`,Cj.innerHTML="",w}function ymt(o,f,m,x){let y=KGe(f),v=YGe(f,m);v.position=y;let C=F(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",Xe.RED,ule);v.billboard=xmt(C);let T=Ib(f,"name",sd.gpx);v.name=T,v.label=SHi(),v.label.text=T,v.description=jGe(f,v),x.clampToGround&&(v.billboard.heightReference=Mn.CLAMP_TO_GROUND,v.label.heightReference=Mn.CLAMP_TO_GROUND)}function wHi(o,f,m,x){let y=YGe(f,m);y.description=jGe(f,y);let v=JGe(f,"rtept",sd.gpx),C=new Array(v.length);for(let T=0;T<v.length;T++)ymt(o,v[T],m,x),C[T]=KGe(v[T]);y.polyline=gmt(x.routeColor),x.clampToGround&&(y.polyline.clampToGround=!0),y.polyline.positions=C}function EHi(o,f,m,x){let y=YGe(f,m);y.description=jGe(f,y);let v=JGe(f,"trkseg",sd.gpx),C=[],T=[],S,w=!0,E=new nS;for(let L=0;L<v.length;L++)S=LHi(v[L]),C=C.concat(S.positions),S.times.length>0?(T=T.concat(S.times),E.addSamples(T,C),w=w&&!0):w=!1;if(w){let L=F(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",Xe.RED,ule);y.billboard=xmt(L),y.position=E,x.clampToGround&&(y.billboard.heightReference=Mn.CLAMP_TO_GROUND),y.availability=new k_,y.availability.addInterval(new js({start:T[0],stop:T[T.length-1]}))}y.polyline=gmt(x.trackColor),y.polyline.positions=C,x.clampToGround&&(y.polyline.clampToGround=!0)}function LHi(o){let f={positions:[],times:[]},m=JGe(o,"trkpt",sd.gpx),x;for(let y=0;y<m.length;y++){let v=KGe(m[y]);f.positions.push(v),x=Ib(m[y],"time",sd.gpx),F(x)&&f.times.push($t.fromIso8601(x))}return f}function PHi(o){let f=iD(o,"metadata",sd.gpx);if(F(f)){let m={name:Ib(f,"name",sd.gpx),desc:Ib(f,"desc",sd.gpx),author:IHi(f),copyright:AHi(f),link:_mt(f),time:Ib(f,"time",sd.gpx),keywords:Ib(f,"keywords",sd.gpx),bounds:MHi(f)};if(F(m.name)||F(m.desc)||F(m.author)||F(m.copyright)||F(m.link)||F(m.time)||F(m.keywords)||F(m.bounds))return m}}function IHi(o){let f=iD(o,"author",sd.gpx);if(F(f)){let m={name:Ib(f,"name",sd.gpx),email:RHi(f),link:_mt(f)};if(F(m.name)||F(m.email)||F(m.link))return m}}function RHi(o){let f=iD(o,"email",sd.gpx);if(F(f)){let m=Ib(f,"id",sd.gpx),x=Ib(f,"domain",sd.gpx);return`${m}@${x}`}}function _mt(o){let f=iD(o,"link",sd.gpx);if(F(f)){let m={href:P6(f,"href"),text:Ib(f,"text",sd.gpx),mimeType:Ib(f,"type",sd.gpx)};if(F(m.href)||F(m.text)||F(m.mimeType))return m}}function AHi(o){let f=iD(o,"copyright",sd.gpx);if(F(f)){let m={author:P6(f,"author"),year:Ib(f,"year",sd.gpx),license:Ib(f,"license",sd.gpx)};if(F(m.author)||F(m.year)||F(m.license))return m}}function MHi(o){let f=iD(o,"bounds",sd.gpx);if(F(f)){let m={minLat:bj(f,"minlat",sd.gpx),maxLat:bj(f,"maxlat",sd.gpx),minLon:bj(f,"minlon",sd.gpx),maxLon:bj(f,"maxlon",sd.gpx)};if(F(m.minLat)||F(m.maxLat)||F(m.minLon)||F(m.maxLon))return m}}var f7e={wpt:ymt,rte:wHi,trk:EHi};function VHi(o,f,m,x){let y=Object.keys(f7e),v=y.length;for(let C=0;C<v;C++){let T=y[C],S=f7e[T],w=f.childNodes,E=w.length;for(let L=0;L<E;L++){let I=w[L];I.localName===T&&sd.gpx.indexOf(I.namespaceURI)!==-1&&S(o,I,m,x)}}}function m7e(o,f,m){let x=o._entityCollection;x.removeAll();let y=f.documentElement,v=P6(y,"version"),C=P6(y,"creator"),T,S=PHi(y);F(S)&&(T=S.name),y.localName==="gpx"?VHi(o,y,x,m):console.log(`GPX - Unsupported node: ${y.localName}`);let w,E=x.computeAvailability(),L=E.start,I=E.stop,R=$t.equals(L,wn.MINIMUM_VALUE),P=$t.equals(I,wn.MAXIMUM_VALUE);if(!R||!P){let M;R&&(M=new Date,M.setHours(0,0,0,0),L=$t.fromDate(M)),P&&(M=new Date,M.setHours(24,0,0,0),I=$t.fromDate(M)),w=new r9,w.startTime=L,w.stopTime=I,w.currentTime=$t.clone(L),w.clockRange=Gx.LOOP_STOP,w.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,w.multiplier=Math.round(Math.min(Math.max($t.secondsDifference(I,L)/60,1),31556900))}let A=!1;return o._name!==T&&(o._name=T,A=!0),o._creator!==C&&(o._creator=C,A=!0),GHi(o._metadata,S)&&(o._metadata=S,A=!0),o._version!==v&&(o._version=v,A=!0),w!==o._clock&&(A=!0,o._clock=w),A&&o._changed.raiseEvent(o),Sy.setLoading(o,!1),o}function GHi(o,f){return!F(o)&&!F(f)?!1:F(o)&&F(f)?o.name!==f.name||o.dec!==f.desc||o.src!==f.src||o.author!==f.author||o.copyright!==f.copyright||o.link!==f.link||o.time!==f.time||o.bounds!==f.bounds:!0}function FHi(o,f,m,x){x=x??si.EMPTY_OBJECT;let y=m;if(typeof m=="string"||m instanceof Mr){m=Mr.createIfNeeded(m),y=m.fetchBlob();let v=o._resourceCredits,C=m.credits;if(F(C)){let T=C.length;for(let S=0;S<T;S++)v.push(C[S])}}return Promise.resolve(y).then(function(v){return v instanceof Blob?THi(v).then(function(C){let T,S;try{T=mmt.parseFromString(C,"application/xml")}catch(w){S=w.toString()}if(F(S)||T.body||T.documentElement.tagName==="parsererror"){let w=F(S)?S:T.documentElement.firstChild.nodeValue;throw w||(w=T.body.innerText),new Oi(w)}return m7e(o,T,x)}):m7e(o,v,x)}).catch(function(v){return o._error.raiseEvent(o,v),console.log(v),Promise.reject(v)})}function JH(){this._changed=new Tr,this._error=new Tr,this._loading=new Tr,this._clock=void 0,this._entityCollection=new kS(this),this._entityCluster=new AF,this._name=void 0,this._version=void 0,this._creator=void 0,this._metadata=void 0,this._isLoading=!1,this._pinBuilder=new b7}JH.load=function(o,f){return new JH().load(o,f)};Object.defineProperties(JH.prototype,{name:{get:function(){return this._name}},version:{get:function(){return this._version}},creator:{get:function(){return this._creator}},metadata:{get:function(){return this._metadata}},clock:{get:function(){return this._clock}},entities:{get:function(){return this._entityCollection}},isLoading:{get:function(){return this._isLoading}},changedEvent:{get:function(){return this._changed}},errorEvent:{get:function(){return this._error}},loadingEvent:{get:function(){return this._loading}},show:{get:function(){return this._entityCollection.show},set:function(o){this._entityCollection.show=o}},clustering:{get:function(){return this._entityCluster},set:function(o){this._entityCluster=o}}});JH.prototype.update=function(o){return!0};JH.prototype.load=function(o,f){if(!F(o))throw new wt("data is required.");f=f??si.EMPTY_OBJECT,Sy.setLoading(this,!0);let m=this._name,x=this;return FHi(this,this._entityCollection,o,f).then(function(){let y,v=x._entityCollection.computeAvailability(),C=v.start,T=v.stop,S=$t.equals(C,wn.MINIMUM_VALUE),w=$t.equals(T,wn.MAXIMUM_VALUE);if(!S||!w){let L;S&&(L=new Date,L.setHours(0,0,0,0),C=$t.fromDate(L)),w&&(L=new Date,L.setHours(24,0,0,0),T=$t.fromDate(L)),y=new r9,y.startTime=C,y.stopTime=T,y.currentTime=$t.clone(C),y.clockRange=Gx.LOOP_STOP,y.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,y.multiplier=Math.round(Math.min(Math.max($t.secondsDifference(T,C)/60,1),31556900))}let E=!1;return y!==x._clock&&(x._clock=y,E=!0),m!==x._name&&(E=!0),E&&x._changed.raiseEvent(x),Sy.setLoading(x,!1),x}).catch(function(y){return Sy.setLoading(x,!1),x._error.raiseEvent(x,y),console.log(y),Promise.reject(y)})};var QGe=JH;function $q(){wt.throwInstantiationError()}$q.prototype.update=wt.throwInstantiationError;$q.prototype.getBoundingSphere=wt.throwInstantiationError;$q.prototype.isDestroyed=wt.throwInstantiationError;$q.prototype.destroy=wt.throwInstantiationError;var vmt=$q;function jH(o){o=o??si.EMPTY_OBJECT,Da.defined("options.context",o.context);let f=o.context,m=o.width,x=o.height,y=o.depth,v=o.source,C=o.pixelFormat??zr.RGBA,T=o.pixelDataType??un.UNSIGNED_BYTE,S=zr.toInternalFormat(C,T,f);if(!F(m)||!F(x)||!F(y))throw new wt("options requires a source field to create an 3d texture. width or height or dimension fileds");if(Da.typeOf.number.greaterThan("width",m,0),m>co.maximumTextureSize)throw new wt("width must be less than or equal to the maximum texture size");if(Da.typeOf.number.greaterThan("height",x,0),x>co.maximumTextureSize)throw new wt("height must be less than or equal to the maximum texture size");if(Da.typeOf.number.greaterThan("dimensions",y,0),y>co.maximumTextureSize)throw new wt("dimension must be less than or equal to the maximum texture size");if(!zr.validate(C))throw new wt("Invalid options.pixelFormat.");if(!un.validate(T))throw new wt("Invalid options.pixelDatatype.");let w=!0,E=f._gl,L=E.TEXTURE_3D,I=E.createTexture();E.activeTexture(E.TEXTURE0),E.bindTexture(L,I);let R=4;if(F(v)&&F(v.arrayBufferView)&&(R=zr.alignmentInBytes(C,T,m)),E.pixelStorei(E.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),E.pixelStorei(E.UNPACK_FLIP_Y_WEBGL,!1),E.pixelStorei(E.UNPACK_ALIGNMENT,R),E.pixelStorei(E.UNPACK_COLORSPACE_CONVERSION_WEBGL,E.BROWSER_DEFAULT_WEBGL),F(v)&&F(v.arrayBufferView)){let P=v.arrayBufferView;E.texImage3D(L,0,S,m,x,y,0,C,un.toWebGLConstant(T,f),P),w=!0}E.bindTexture(L,null),this._id=du(),this._context=f,this._textureFilterAnisotropic=f._textureFilterAnisotropic,this._textureTarget=L,this._texture=I,this._internalFormat=S,this._pixelFormat=C,this._pixelDatatype=T,this._width=m,this._height=x,this._depth=y,this._dimensions=new Z(m,x,y),this._hasMinmap=!1,this._sizeInBytes=4,this._preMultiplyAlpha=!1,this._flipY=!1,this._initialized=w,this._sampler=void 0,this.sampler=F(o.sampler)?o.sampler:new Yo}jH.fromFramebuffer=function(o){o=o??si.EMPTY_OBJECT,Da.defined("options.context",o.context);let f=o.context,m=f._gl,x=o.pixelFormat??zr.RGB,y=o.width??m.drawingBufferWidth,v=o.height??m.drawingBufferHeight,C=o.depth??128,T=o.framebuffer;return new jH({context:f,width:y,height:v,pixelFormat:x,source:{framebuffer:F(T)?T:f.defaultFramebuffer,width:y,height:v,depth:C}})};Object.defineProperties(jH.prototype,{id:{get:function(){return this._id}},sampler:{get:function(){return this._sampler},set:function(o){let f=o.minificationFilter,m=o.magnificationFilter,x=this._context._gl,y=this._textureTarget;x.activeTexture(x.TEXTURE0),x.bindTexture(y,this._texture),x.texParameteri(y,x.TEXTURE_MIN_FILTER,f),x.texParameteri(y,x.TEXTURE_MAG_FILTER,m),x.texParameteri(y,x.TEXTURE_WRAP_R,o.wrapR),x.texParameteri(y,x.TEXTURE_WRAP_S,o.wrapS),x.texParameteri(y,x.TEXTURE_WRAP_T,o.wrapT),x.bindTexture(y,null),this._sampler=o}},dimensions:{get:function(){return this._dimensions}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},depth:{get:function(){return this._depth}},_target:{get:function(){return this._textureTarget}}});jH.prototype.isDestroyed=function(){return!1};jH.prototype.destory=function(){return this._context._gl.deleteTexture(this._texture),yr(this)};var qGe=jH,$Ge=`uniform sampler2D u_noiseTexture;
    `}),o.textureUniformShader.andStyle=!0}function RUi(o){let f=Math.floor(o/256/256),m=Math.floor((o-f*256*256)/255),x=o-f*256*256-m*256,y=f.toString(16).padStart(2,"0"),v=m.toString(16).padStart(2,"0"),C=x.toString(16).padStart(2,"0");return"color('#"+y+v+C+"')"}function AUi(o){return"${id} === '"+o+"'"}function MUi(o){let f=o.pipelineIds,m=f.length,x=[];for(let y=0;y<m;y++){let v=f[y];x.push([AUi(v),RUi(y)])}x.push(["true","color('white')"]),o.style=new ZS({color:{conditions:x}})}function VUi(o){let f=o.flowLevels;if(f instanceof Array&&f.length===16){o.flowLevelMatrix=Ee.fromArray(f);return}o.flowLevelMatrix=new Ee}kH.prototype.init=function(o){let f=Math.sqrt(this.pipelineIds.length);f=Math.floor(f+1),this.width=f,this.height=f,VUi(this),PUi(this),IUi(this),MUi(this),this.oldCustomShader=this.tileset.customShader,this.tileset.customShader=this.textureUniformShader,this.oldStyle=this.tileset.style,this.tileset.style=this.style};function GUi(o){let f=o.pipelineTexture,m=o.serverDatas,x=o.textureData,y=0,v=Object.keys(m);v.length>0&&(v.forEach(C=>{let T=m[C];x[y++]=T}),f.copyFrom({source:{width:o.width,height:o.height,arrayBufferView:x}}))}function FUi(o,f){new Mr({url:o.pipelineUrl,queryParameters:{timestamp:o.currentTimestamp}}).fetchJson().then(function(m){m&&m.data&&m.data instanceof Array?f(m.data,m.time):console.log("download fail!")}).catch(function(m){})}kH.prototype.update=function(){let o=performance.now(),f=(o-this.startTime)/1e3;if(this.startTime=o,this.currentTime>this.nextRequestTime){let m=this;FUi(this,function(x,y){x.forEach(v=>{m.serverDatas[v.id]=v.flow}),m.nextRequestTime=(Number(m.currentTimestamp)-Number(y))/1e3,m.currentTimestamp=y,GUi(m)})}this.currentTime+=f,this.textureUniformShader.setUniform("u_time",this.currentTime)};kH.prototype.destroy=function(){this.tileset.customShader=this.oldCustomShader,this.tileset.style=this.oldStyle,this.pipelineTexture&&this.pipelineTexture.destroy(),this.textureData&&(this.textureData=null)};kH.fromUrl=async function(o){let{context:f,tileset:m,pipelineUrl:x,flowLevels:y,startTimestamp:v,imageWidth:C,imageHeight:T}=o,S=[],w=await new Mr({url:x,queryParameters:{timestamp:v}}).fetchJson();return w&&w.data&&w.data instanceof Array&&w.data.forEach(E=>{S.push(E.id)}),new kH(f,m,S,x,v,y,C,T)};var ade=kH,DUi=Xe.WHITE,NUi=Xe.BLACK,WUi=new rt(2,2);function UH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,this._evenColor=void 0,this._evenColorSubscription=void 0,this._oddColor=void 0,this._oddColorSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.evenColor=o.evenColor,this.oddColor=o.oddColor,this.repeat=o.repeat}Object.defineProperties(UH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._evenColor)&&Nt.isConstant(this._oddColor)&&Nt.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},evenColor:Ii("evenColor"),oddColor:Ii("oddColor"),repeat:Ii("repeat")});UH.prototype.getType=function(o){return"Checkerboard"};var ZUi=new $t;UH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(ZUi)),F(f)||(f={}),f.lightColor=Nt.getValueOrClonedDefault(this._evenColor,o,DUi,f.lightColor),f.darkColor=Nt.getValueOrClonedDefault(this._oddColor,o,NUi,f.darkColor),f.repeat=Nt.getValueOrDefault(this._repeat,o,WUi),f};UH.prototype.equals=function(o){return this===o||o instanceof UH&&Nt.equals(this._evenColor,o._evenColor)&&Nt.equals(this._oddColor,o._oddColor)&&Nt.equals(this._repeat,o._repeat)};var ele=UH,tle={id:void 0},QB=new Array(2);function N1e(o){let f=o.propertyNames,m=f.length;for(let x=0;x<m;x++)o[f[x]]=void 0;o._name=void 0,o._availability=void 0}function qft(o,f,m,x){QB[0]=m,QB[1]=x.id,f[JSON.stringify(QB)]=x.definitionChanged.addEventListener(qp.prototype._onDefinitionChanged,o)}function $ft(o,f,m,x){QB[0]=m,QB[1]=x.id;let y=JSON.stringify(QB);f[y](),f[y]=void 0}function tD(o){if(o._shouldRecomposite=!0,o._suspendCount!==0)return;let f=o._collections,m=f.length,x=o._collectionsCopy,y=x.length,v,C,T,S,w,E=o._composite,L=new kS(o),I=o._eventHash,R;for(v=0;v<y;v++)for(w=x[v],w.collectionChanged.removeEventListener(qp.prototype._onCollectionChanged,o),T=w.values,R=w.id,S=T.length-1;S>-1;S--)C=T[S],$ft(o,I,R,C);for(v=m-1;v>=0;v--)for(w=f[v],w.collectionChanged.addEventListener(qp.prototype._onCollectionChanged,o),T=w.values,R=w.id,S=T.length-1;S>-1;S--){C=T[S],qft(o,I,R,C);let A=L.getById(C.id);F(A)||(A=E.getById(C.id),F(A)?N1e(A):(tle.id=C.id,A=new bd(tle)),L.add(A)),A.merge(C)}o._collectionsCopy=f.slice(0),E.suspendEvents(),E.removeAll();let P=L.values;for(v=0;v<P.length;v++)E.add(P[v]);E.resumeEvents()}function qp(o,f){this._owner=f,this._composite=new kS(this),this._suspendCount=0,this._collections=F(o)?o.slice():[],this._collectionsCopy=[],this._id=du(),this._eventHash={},tD(this),this._shouldRecomposite=!1}Object.defineProperties(qp.prototype,{collectionChanged:{get:function(){return this._composite._collectionChanged}},id:{get:function(){return this._id}},values:{get:function(){return this._composite.values}},owner:{get:function(){return this._owner}}});qp.prototype.addCollection=function(o,f){F(f)?this._collections.splice(f,0,o):(f=this._collections.length,this._collections.push(o)),tD(this)};qp.prototype.removeCollection=function(o){let f=this._collections.indexOf(o);return f!==-1?(this._collections.splice(f,1),tD(this),!0):!1};qp.prototype.removeAllCollections=function(){this._collections.length=0,tD(this)};qp.prototype.containsCollection=function(o){return this._collections.indexOf(o)!==-1};qp.prototype.contains=function(o){return this._composite.contains(o)};qp.prototype.indexOfCollection=function(o){return this._collections.indexOf(o)};qp.prototype.getCollection=function(o){return this._collections[o]};qp.prototype.getCollectionsLength=function(){return this._collections.length};function sde(o,f){return o.indexOf(f)}function emt(o,f,m){let x=o._collections;if(f=be.clamp(f,0,x.length-1),m=be.clamp(m,0,x.length-1),f===m)return;let y=x[f];x[f]=x[m],x[m]=y,tD(o)}qp.prototype.raiseCollection=function(o){let f=sde(this._collections,o);emt(this,f,f+1)};qp.prototype.lowerCollection=function(o){let f=sde(this._collections,o);emt(this,f,f-1)};qp.prototype.raiseCollectionToTop=function(o){let f=sde(this._collections,o);f!==this._collections.length-1&&(this._collections.splice(f,1),this._collections.push(o),tD(this))};qp.prototype.lowerCollectionToBottom=function(o){let f=sde(this._collections,o);f!==0&&(this._collections.splice(f,1),this._collections.splice(0,0,o),tD(this))};qp.prototype.suspendEvents=function(){this._suspendCount++,this._composite.suspendEvents()};qp.prototype.resumeEvents=function(){this._suspendCount--,this._shouldRecomposite&&this._suspendCount===0&&(tD(this),this._shouldRecomposite=!1),this._composite.resumeEvents()};qp.prototype.computeAvailability=function(){return this._composite.computeAvailability()};qp.prototype.getById=function(o){return this._composite.getById(o)};qp.prototype._onCollectionChanged=function(o,f,m){let x=this._collectionsCopy,y=x.length,v=this._composite;v.suspendEvents();let C,T,S,w,E=m.length,L=this._eventHash,I=o.id;for(C=0;C<E;C++){let P=m[C];$ft(this,L,I,P);let A=P.id;for(T=y-1;T>=0;T--)S=x[T].getById(A),F(S)&&(F(w)||(w=v.getById(A),N1e(w)),w.merge(S));F(w)||v.removeById(A),w=void 0}let R=f.length;for(C=0;C<R;C++){let P=f[C];qft(this,L,I,P);let A=P.id;for(T=y-1;T>=0;T--)S=x[T].getById(A),F(S)&&(F(w)||(w=v.getById(A),F(w)?N1e(w):(tle.id=A,w=new bd(tle),v.add(w))),w.merge(S));w=void 0}v.resumeEvents()};qp.prototype._onDefinitionChanged=function(o,f,m,x){let y=this._collections,v=this._composite,C=y.length,T=o.id,S=v.getById(T),w=S[f],E=!F(w),L=!0;for(let I=C-1;I>=0;I--){let R=y[I].getById(o.id);if(F(R)){let P=R[f];if(F(P)){if(L)if(L=!1,F(P.merge)&&F(P.clone))w=P.clone(w);else{w=P;break}w.merge(P)}}}E&&S.propertyNames.indexOf(f)===-1&&S.addProperty(f),S[f]=w};var tmt=qp;function fF(){this._definitionChanged=new Tr,this._composite=new rS,this._composite.definitionChanged.addEventListener(fF.prototype._raiseDefinitionChanged,this)}Object.defineProperties(fF.prototype,{isConstant:{get:function(){return this._composite.isConstant}},definitionChanged:{get:function(){return this._definitionChanged}},intervals:{get:function(){return this._composite._intervals}}});fF.prototype.getType=function(o){let f=this._composite._intervals.findDataForIntervalContainingDate(o);if(F(f))return f.getType(o)};var OUi=new $t;fF.prototype.getValue=function(o,f){F(o)||(o=$t.now(OUi));let m=this._composite._intervals.findDataForIntervalContainingDate(o);if(F(m))return m.getValue(o,f)};fF.prototype.equals=function(o){return this===o||o instanceof fF&&this._composite.equals(o._composite,Nt.equals)};fF.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var ile=fF,XUi=be.factorial;function DGe(o,f,m,x,y,v){let C=0,T,S,w;if(x>0){for(S=0;S<y;S++){for(T=!1,w=0;w<v.length&&!T;w++)S===v[w]&&(T=!0);T||(v.push(S),C+=DGe(o,f,m,x-1,y,v),v.splice(v.length-1,1))}return C}for(C=1,S=0;S<y;S++){for(T=!1,w=0;w<v.length&&!T;w++)S===v[w]&&(T=!0);T||(C*=o-m[f[S]])}return C}var lde={type:"Hermite"};lde.getRequiredDataPoints=function(o,f){return f=f??0,Math.max(Math.floor((o+1)/(f+1)),2)};lde.interpolateOrderZero=function(o,f,m,x,y){F(y)||(y=new Array(x));let v,C,T,S,w,E,L=f.length,I=new Array(x);for(v=0;v<x;v++){y[v]=0;let M=new Array(L);for(I[v]=M,C=0;C<L;C++)M[C]=[]}let R=L,P=new Array(R);for(v=0;v<R;v++)P[v]=v;let A=L-1;for(S=0;S<x;S++){for(C=0;C<R;C++)E=P[C]*x+S,I[S][0].push(m[E]);for(v=1;v<R;v++){let M=!1;for(C=0;C<R-v;C++){let V=f[P[C]],G=f[P[C+v]],D;G-V<=0?(E=P[C]*x+x*v+S,D=m[E],I[S][v].push(D/XUi(v))):(D=I[S][v-1][C+1]-I[S][v-1][C],I[S][v].push(D/(G-V))),M=M||D!==0}M||(A=v-1)}}for(T=0,w=0;T<=w;T++)for(v=T;v<=A;v++){let M=DGe(o,P,f,T,v,[]);for(S=0;S<x;S++){let V=I[S][v][0];y[S+T*x]+=V*M}}return y};var kUi=[];lde.interpolate=function(o,f,m,x,y,v,C){let T=x*(v+1);F(C)||(C=new Array(T));for(let V=0;V<T;V++)C[V]=0;let S=f.length,w=new Array(S*(y+1)),E;for(E=0;E<S;E++)for(let V=0;V<y+1;V++)w[E*(y+1)+V]=E;let L=w.length,I=kUi,R=UUi(I,w,f,m,x,y),P=[],A=L*(L+1)/2,M=Math.min(R,v);for(let V=0;V<=M;V++)for(E=V;E<=R;E++){P.length=0;let G=DGe(o,w,f,V,E,P),D=Math.floor(E*(1-E)/2)+L*E;for(let N=0;N<x;N++){let k=Math.floor(N*A),U=I[k+D];C[N+V*x]+=U*G}}return C};function UUi(o,f,m,x,y,v){let C,T,S=-1,w=f.length,E=w*(w+1)/2;for(let L=0;L<y;L++){let I=Math.floor(L*E);for(C=0;C<w;C++)T=f[C]*y*(v+1)+L,o[I+C]=x[T];for(let R=1;R<w;R++){let P=0,A=Math.floor(R*(1-R)/2)+w*R,M=!1;for(C=0;C<w-R;C++){let V=m[f[C]],G=m[f[C+R]],D,N;if(G-V<=0)T=f[C]*y*(v+1)+y*R+L,D=x[T],N=D/be.factorial(R),o[I+A+P]=N,P++;else{let k=Math.floor((R-1)*(2-R)/2)+w*(R-1);D=o[I+k+C+1]-o[I+k+C],N=D/(G-V),o[I+A+P]=N,P++}M=M||D!==0}M&&(S=Math.max(S,R))}}return S}var NGe=lde,WGe={type:"Lagrange"};WGe.getRequiredDataPoints=function(o){return Math.max(o+1,2)};WGe.interpolateOrderZero=function(o,f,m,x,y){F(y)||(y=new Array(x));let v,C,T=f.length;for(v=0;v<x;v++)y[v]=0;for(v=0;v<T;v++){let S=1;for(C=0;C<T;C++)if(C!==v){let w=f[v]-f[C];S*=(o-f[C])/w}for(C=0;C<x;C++)y[C]+=S*m[v*x+C]}return y};var ZGe=WGe;function r2(o,f,m){this.clock=o??0,this.cone=f??0,this.magnitude=m??1}r2.fromCartesian3=function(o,f){let m=o.x,x=o.y,y=o.z,v=m*m+x*x;return F(f)||(f=new r2),f.clock=Math.atan2(x,m),f.cone=Math.atan2(Math.sqrt(v),y),f.magnitude=Math.sqrt(v+y*y),f};r2.clone=function(o,f){if(F(o))return F(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=o.magnitude,f):new r2(o.clock,o.cone,o.magnitude)};r2.normalize=function(o,f){return F(f)?(f.clock=o.clock,f.cone=o.cone,f.magnitude=1,f):new r2(o.clock,o.cone,1)};r2.equals=function(o,f){return o===f||F(o)&&F(f)&&o.clock===f.clock&&o.cone===f.cone&&o.magnitude===f.magnitude};r2.equalsEpsilon=function(o,f,m){return m=m??0,o===f||F(o)&&F(f)&&Math.abs(o.clock-f.clock)<=m&&Math.abs(o.cone-f.cone)<=m&&Math.abs(o.magnitude-f.magnitude)<=m};r2.prototype.equals=function(o){return r2.equals(this,o)};r2.prototype.clone=function(o){return r2.clone(this,o)};r2.prototype.equalsEpsilon=function(o,f){return r2.equalsEpsilon(this,o,f)};r2.prototype.toString=function(){return`(${this.clock}, ${this.cone}, ${this.magnitude})`};var OGe=r2,ude=k0(MS(),1),BUi=Xe.WHITE,HUi=.1,zUi=new rt(8,8),YUi=new rt(0,0),KUi=new rt(1,1);function BH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,this._color=void 0,this._colorSubscription=void 0,this._cellAlpha=void 0,this._cellAlphaSubscription=void 0,this._lineCount=void 0,this._lineCountSubscription=void 0,this._lineThickness=void 0,this._lineThicknessSubscription=void 0,this._lineOffset=void 0,this._lineOffsetSubscription=void 0,this.color=o.color,this.cellAlpha=o.cellAlpha,this.lineCount=o.lineCount,this.lineThickness=o.lineThickness,this.lineOffset=o.lineOffset}Object.defineProperties(BH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._cellAlpha)&&Nt.isConstant(this._lineCount)&&Nt.isConstant(this._lineThickness)&&Nt.isConstant(this._lineOffset)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),cellAlpha:Ii("cellAlpha"),lineCount:Ii("lineCount"),lineThickness:Ii("lineThickness"),lineOffset:Ii("lineOffset")});BH.prototype.getType=function(o){return"Grid"};var JUi=new $t;BH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(JUi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,BUi,f.color),f.cellAlpha=Nt.getValueOrDefault(this._cellAlpha,o,HUi),f.lineCount=Nt.getValueOrClonedDefault(this._lineCount,o,zUi,f.lineCount),f.lineThickness=Nt.getValueOrClonedDefault(this._lineThickness,o,KUi,f.lineThickness),f.lineOffset=Nt.getValueOrClonedDefault(this._lineOffset,o,YUi,f.lineOffset),f};BH.prototype.equals=function(o){return this===o||o instanceof BH&&Nt.equals(this._color,o._color)&&Nt.equals(this._cellAlpha,o._cellAlpha)&&Nt.equals(this._lineCount,o._lineCount)&&Nt.equals(this._lineThickness,o._lineThickness)&&Nt.equals(this._lineOffset,o._lineOffset)};var rle=BH,jUi=Xe.WHITE,QUi=Xe.TRANSPARENT,qUi=16,$Ui=255;function HH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,this._color=void 0,this._colorSubscription=void 0,this._gapColor=void 0,this._gapColorSubscription=void 0,this._dashLength=void 0,this._dashLengthSubscription=void 0,this._dashPattern=void 0,this._dashPatternSubscription=void 0,this.color=o.color,this.gapColor=o.gapColor,this.dashLength=o.dashLength,this.dashPattern=o.dashPattern}Object.defineProperties(HH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._gapColor)&&Nt.isConstant(this._dashLength)&&Nt.isConstant(this._dashPattern)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),gapColor:Ii("gapColor"),dashLength:Ii("dashLength"),dashPattern:Ii("dashPattern")});HH.prototype.getType=function(o){return"PolylineDash"};var eBi=new $t;HH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(eBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,jUi,f.color),f.gapColor=Nt.getValueOrClonedDefault(this._gapColor,o,QUi,f.gapColor),f.dashLength=Nt.getValueOrDefault(this._dashLength,o,qUi,f.dashLength),f.dashPattern=Nt.getValueOrDefault(this._dashPattern,o,$Ui,f.dashPattern),f};HH.prototype.equals=function(o){return this===o||o instanceof HH&&Nt.equals(this._color,o._color)&&Nt.equals(this._gapColor,o._gapColor)&&Nt.equals(this._dashLength,o._dashLength)&&Nt.equals(this._dashPattern,o._dashPattern)};var Ml=HH,tBi=Xe.WHITE,iBi=.25,rBi=1;function zH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,this._color=void 0,this._colorSubscription=void 0,this._glowPower=void 0,this._glowPowerSubscription=void 0,this._taperPower=void 0,this._taperPowerSubscription=void 0,this.color=o.color,this.glowPower=o.glowPower,this.taperPower=o.taperPower}Object.defineProperties(zH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._glow)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),glowPower:Ii("glowPower"),taperPower:Ii("taperPower")});zH.prototype.getType=function(o){return"PolylineGlow"};var nBi=new $t;zH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(nBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,tBi,f.color),f.glowPower=Nt.getValueOrDefault(this._glowPower,o,iBi,f.glowPower),f.taperPower=Nt.getValueOrDefault(this._taperPower,o,rBi,f.taperPower),f};zH.prototype.equals=function(o){return this===o||o instanceof zH&&Nt.equals(this._color,o._color)&&Nt.equals(this._glowPower,o._glowPower)&&Nt.equals(this._taperPower,o._taperPower)};var nle=zH,oBi=Xe.WHITE,aBi=Xe.BLACK,sBi=1;function YH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,this._color=void 0,this._colorSubscription=void 0,this._outlineColor=void 0,this._outlineColorSubscription=void 0,this._outlineWidth=void 0,this._outlineWidthSubscription=void 0,this.color=o.color,this.outlineColor=o.outlineColor,this.outlineWidth=o.outlineWidth}Object.defineProperties(YH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._color)&&Nt.isConstant(this._outlineColor)&&Nt.isConstant(this._outlineWidth)}},definitionChanged:{get:function(){return this._definitionChanged}},color:Ii("color"),outlineColor:Ii("outlineColor"),outlineWidth:Ii("outlineWidth")});YH.prototype.getType=function(o){return"PolylineOutline"};var lBi=new $t;YH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(lBi)),F(f)||(f={}),f.color=Nt.getValueOrClonedDefault(this._color,o,oBi,f.color),f.outlineColor=Nt.getValueOrClonedDefault(this._outlineColor,o,aBi,f.outlineColor),f.outlineWidth=Nt.getValueOrDefault(this._outlineWidth,o,sBi),f};YH.prototype.equals=function(o){return this===o||o instanceof YH&&Nt.equals(this._color,o._color)&&Nt.equals(this._outlineColor,o._outlineColor)&&Nt.equals(this._outlineWidth,o._outlineWidth)};var KM=YH;function mF(o){this._value=void 0,this._definitionChanged=new Tr,this._eventHelper=new bv,this.setValue(o)}Object.defineProperties(mF.prototype,{isConstant:{get:function(){let o=this._value;if(!F(o))return!0;let f=o.length;for(let m=0;m<f;m++)if(!Nt.isConstant(o[m]))return!1;return!0}},definitionChanged:{get:function(){return this._definitionChanged}}});var uBi=new $t;mF.prototype.getValue=function(o,f){F(o)||(o=$t.now(uBi));let m=this._value;if(!F(m))return;let x=m.length;F(f)||(f=new Array(x));let y=0,v=0;for(;y<x;){let C=this._value[y].getValue(o,f[y]);F(C)&&(f[v]=C,v++),y++}return f.length=v,f};mF.prototype.setValue=function(o){let f=this._eventHelper;if(f.removeAll(),F(o)){this._value=o.slice();let m=o.length;for(let x=0;x<m;x++){let y=o[x];F(y)&&f.add(y.definitionChanged,mF.prototype._raiseDefinitionChanged,this)}}else this._value=void 0;this._definitionChanged.raiseEvent(this)};mF.prototype.equals=function(o){return this===o||o instanceof mF&&Nt.arrayEquals(this._value,o._value)};mF.prototype._raiseDefinitionChanged=function(){this._definitionChanged.raiseEvent(this)};var cde=mF,cBi={packedLength:1,pack:function(o,f,m){return m=m??0,f[m]=o,f},unpack:function(o,f,m){return f=f??0,o[f]},convertPackedArrayForInterpolation:function(o,f,m,x){F(x)||(x=[]),f=f??0,m=m??o.length;let y;for(let v=0,C=m-f+1;v<C;v++){let T=o[f+v];v===0||Math.abs(y-T)<Math.PI?x[v]=T:x[v]=T-be.TWO_PI,y=T}},unpackInterpolationResult:function(o,f,m,x,y){return y=o[0],y<0?y+be.TWO_PI:y}},FI=cBi,hBi={HORIZONTAL:0,VERTICAL:1},xF=Object.freeze(hBi),dBi=xF.HORIZONTAL,pBi=Xe.WHITE,fBi=Xe.BLACK,mBi=0,xBi=1;function KH(o){o=o??si.EMPTY_OBJECT,this._definitionChanged=new Tr,this._orientation=void 0,this._orientationSubscription=void 0,this._evenColor=void 0,this._evenColorSubscription=void 0,this._oddColor=void 0,this._oddColorSubscription=void 0,this._offset=void 0,this._offsetSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.orientation=o.orientation,this.evenColor=o.evenColor,this.oddColor=o.oddColor,this.offset=o.offset,this.repeat=o.repeat}Object.defineProperties(KH.prototype,{isConstant:{get:function(){return Nt.isConstant(this._orientation)&&Nt.isConstant(this._evenColor)&&Nt.isConstant(this._oddColor)&&Nt.isConstant(this._offset)&&Nt.isConstant(this._repeat)}},definitionChanged:{get:function(){return this._definitionChanged}},orientation:Ii("orientation"),evenColor:Ii("evenColor"),oddColor:Ii("oddColor"),offset:Ii("offset"),repeat:Ii("repeat")});KH.prototype.getType=function(o){return"Stripe"};var gBi=new $t;KH.prototype.getValue=function(o,f){return F(o)||(o=$t.now(gBi)),F(f)||(f={}),f.horizontal=Nt.getValueOrDefault(this._orientation,o,dBi)===xF.HORIZONTAL,f.evenColor=Nt.getValueOrClonedDefault(this._evenColor,o,pBi,f.evenColor),f.oddColor=Nt.getValueOrClonedDefault(this._oddColor,o,fBi,f.oddColor),f.offset=Nt.getValueOrDefault(this._offset,o,mBi),f.repeat=Nt.getValueOrDefault(this._repeat,o,xBi),f};KH.prototype.equals=function(o){return this===o||o instanceof KH&&Nt.equals(this._orientation,o._orientation)&&Nt.equals(this._evenColor,o._evenColor)&&Nt.equals(this._oddColor,o._oddColor)&&Nt.equals(this._offset,o._offset)&&Nt.equals(this._repeat,o._repeat)};var ole=KH;function w6(o,f){this._velocityVectorProperty=new Tq(o,!0),this._subscription=void 0,this._ellipsoid=void 0,this._definitionChanged=new Tr,this.ellipsoid=f??yi.default;let m=this;this._velocityVectorProperty.definitionChanged.addEventListener(function(){m._definitionChanged.raiseEvent(m)})}Object.defineProperties(w6.prototype,{isConstant:{get:function(){return Nt.isConstant(this._velocityVectorProperty)}},definitionChanged:{get:function(){return this._definitionChanged}},position:{get:function(){return this._velocityVectorProperty.position},set:function(o){this._velocityVectorProperty.position=o}},ellipsoid:{get:function(){return this._ellipsoid},set:function(o){this._ellipsoid!==o&&(this._ellipsoid=o,this._definitionChanged.raiseEvent(this))}}});var O6e=new Z,yBi=new Z,X6e=new Ut,_Bi=new $t;w6.prototype.getValue=function(o,f){F(o)||(o=$t.now(_Bi));let m=this._velocityVectorProperty._getValue(o,yBi,O6e);if(F(m))return _r.rotationMatrixFromPositionVelocity(O6e,m,this._ellipsoid,X6e),fr.fromRotationMatrix(X6e,f)};w6.prototype.equals=function(o){return this===o||o instanceof w6&&Nt.equals(this._velocityVectorProperty,o._velocityVectorProperty)&&(this._ellipsoid===o._ellipsoid||this._ellipsoid.equals(o._ellipsoid))};var XGe=w6,pM={COMPLETE:0,BELOW_ELLIPSOID_HORIZON:1,ABOVE_ELLIPSOID_HORIZON:2};pM.validate=function(o){return o===pM.COMPLETE||o===pM.BELOW_ELLIPSOID_HORIZON||o===pM.ABOVE_ELLIPSOID_HORIZON};pM.toString=function(o){switch(o){case pM.COMPLETE:return"COMPLETE";case pM.BELOW_ELLIPSOID_HORIZON:return"BELOW_ELLIPSOID_HORIZON";case pM.ABOVE_ELLIPSOID_HORIZON:return"ABOVE_ELLIPSOID_HORIZON";default:throw new wt("SensorVolumePortionToDisplay value is not valid and cannot be converted to a String.")}};var ale=pM;function gF(){}gF.packedLength=Z.packedLength;gF.unpack=Z.unpack;gF.pack=Z.pack;var W1e;function E6(o,f){return f[0]==="#"&&(f=W1e+f),L7.fromString(o,f)}function k6e(o,f,m){if(F(m.reference))return E6(f,m.reference);if(F(m.velocityReference)){let x=E6(f,m.velocityReference);switch(o){case Z:case gF:return new Tq(x,o===gF);case fr:return new XGe(x)}}throw new Oi(`${JSON.stringify(m)} is not valid CZML.`)}function vBi(o,f){return new Fr(function(m,x){return f(o.getValue(m,x))},o.isConstant)}var Lc=new Z,J2=new OGe,V_=new Gt,NO=new js,uoe=new fr;function bBi(o){let f=o.rgbaf;if(F(f))return f;let m=o.rgba;if(!F(m))return;let x=m.length;if(x===Xe.packedLength)return[Xe.byteToFloat(m[0]),Xe.byteToFloat(m[1]),Xe.byteToFloat(m[2]),Xe.byteToFloat(m[3])];f=new Array(x);for(let y=0;y<x;y+=5)f[y]=m[y],f[y+1]=Xe.byteToFloat(m[y+1]),f[y+2]=Xe.byteToFloat(m[y+2]),f[y+3]=Xe.byteToFloat(m[y+3]),f[y+4]=Xe.byteToFloat(m[y+4]);return f}function U6e(o,f){let m=o.uri??o;return F(f)?f.getDerivedResource({url:m}):Mr.createIfNeeded(m)}function CBi(o){let f=o.wsen;if(F(f))return f;let m=o.wsenDegrees;if(!F(m))return;let x=m.length;if(x===vi.packedLength)return[be.toRadians(m[0]),be.toRadians(m[1]),be.toRadians(m[2]),be.toRadians(m[3])];f=new Array(x);for(let y=0;y<x;y+=5)f[y]=m[y],f[y+1]=be.toRadians(m[y+1]),f[y+2]=be.toRadians(m[y+2]),f[y+3]=be.toRadians(m[y+3]),f[y+4]=be.toRadians(m[y+4]);return f}function TBi(o){let f=o.length;if(J2.magnitude=1,f===2)return J2.clock=o[0],J2.cone=o[1],Z.fromSpherical(J2,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f/3*4);for(let x=0,y=0;x<f;x+=3,y+=4)m[y]=o[x],J2.clock=o[x+1],J2.cone=o[x+2],Z.fromSpherical(J2,Lc),m[y+1]=Lc.x,m[y+2]=Lc.y,m[y+3]=Lc.z;return m}function SBi(o){let f=o.length;if(f===3)return J2.clock=o[0],J2.cone=o[1],J2.magnitude=o[2],Z.fromSpherical(J2,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],J2.clock=o[x+1],J2.cone=o[x+2],J2.magnitude=o[x+3],Z.fromSpherical(J2,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function wBi(o){let f=o.length;if(f===3)return V_.longitude=o[0],V_.latitude=o[1],V_.height=o[2],yi.default.cartographicToCartesian(V_,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],V_.longitude=o[x+1],V_.latitude=o[x+2],V_.height=o[x+3],yi.default.cartographicToCartesian(V_,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function EBi(o){let f=o.length;if(f===3)return V_.longitude=be.toRadians(o[0]),V_.latitude=be.toRadians(o[1]),V_.height=o[2],yi.default.cartographicToCartesian(V_,Lc),[Lc.x,Lc.y,Lc.z];let m=new Array(f);for(let x=0;x<f;x+=4)m[x]=o[x],V_.longitude=be.toRadians(o[x+1]),V_.latitude=be.toRadians(o[x+2]),V_.height=o[x+3],yi.default.cartographicToCartesian(V_,Lc),m[x+1]=Lc.x,m[x+2]=Lc.y,m[x+3]=Lc.z;return m}function kGe(o){let f=o.cartesian;if(F(f))return f;let m=o.cartesianVelocity;if(F(m))return m;let x=o.unitCartesian;if(F(x))return x;let y=o.unitSpherical;if(F(y))return TBi(y);let v=o.spherical;if(F(v))return SBi(v);let C=o.cartographicRadians;if(F(C))return wBi(C);let T=o.cartographicDegrees;if(F(T))return EBi(T);throw new Oi(`${JSON.stringify(o)} is not a valid CZML interval.`)}function B6e(o,f){Z.unpack(o,f,Lc),Z.normalize(Lc,Lc),Z.pack(Lc,o,f)}function LBi(o){let f=kGe(o);if(f.length===3)return B6e(f,0),f;for(let m=1;m<f.length;m+=4)B6e(f,m);return f}function H6e(o,f){fr.unpack(o,f,uoe),fr.normalize(uoe,uoe),fr.pack(uoe,o,f)}function PBi(o){let f=o.unitQuaternion;if(F(f)){if(f.length===4)return H6e(f,0),f;for(let m=1;m<f.length;m+=5)H6e(f,m)}return f}function z6e(o){return typeof o=="boolean"?Boolean:typeof o=="number"?Number:typeof o=="string"?String:o.hasOwnProperty("array")?Array:o.hasOwnProperty("boolean")?Boolean:o.hasOwnProperty("boundingRectangle")?Er:o.hasOwnProperty("cartesian2")?rt:o.hasOwnProperty("cartesian")||o.hasOwnProperty("spherical")||o.hasOwnProperty("cartographicRadians")||o.hasOwnProperty("cartographicDegrees")?Z:o.hasOwnProperty("unitCartesian")||o.hasOwnProperty("unitSpherical")?gF:o.hasOwnProperty("rgba")||o.hasOwnProperty("rgbaf")?Xe:o.hasOwnProperty("arcType")?qa:o.hasOwnProperty("classificationType")?hc:o.hasOwnProperty("colorBlendMode")?II:o.hasOwnProperty("cornerType")?ad:o.hasOwnProperty("heightReference")?Mn:o.hasOwnProperty("horizontalOrigin")?ec:o.hasOwnProperty("date")?$t:o.hasOwnProperty("labelStyle")?f0:o.hasOwnProperty("number")?Number:o.hasOwnProperty("nearFarScalar")?ea:o.hasOwnProperty("distanceDisplayCondition")?So:o.hasOwnProperty("object")||o.hasOwnProperty("value")?Object:o.hasOwnProperty("unitQuaternion")?fr:o.hasOwnProperty("shadowMode")?cl:o.hasOwnProperty("string")?String:o.hasOwnProperty("stripeOrientation")?xF:o.hasOwnProperty("wsen")||o.hasOwnProperty("wsenDegrees")?vi:o.hasOwnProperty("uri")?ude.default:o.hasOwnProperty("verticalOrigin")?jn:Object}function IBi(o,f,m){switch(o){case qa:return qa[f.arcType??f];case Array:return f.array;case Boolean:return f.boolean??f;case Er:return f.boundingRectangle;case rt:return f.cartesian2;case Z:return kGe(f);case gF:return LBi(f);case Xe:return bBi(f);case hc:return hc[f.classificationType??f];case II:return II[f.colorBlendMode??f];case ad:return ad[f.cornerType??f];case Mn:return Mn[f.heightReference??f];case ec:return ec[f.horizontalOrigin??f];case Image:return U6e(f,m);case $t:return $t.fromIso8601(f.date??f);case f0:return f0[f.labelStyle??f];case Number:return f.number??f;case ea:return f.nearFarScalar;case So:return f.distanceDisplayCondition;case Object:return f.object??f.value??f;case fr:return PBi(f);case FI:return f.number??f;case ale:return ale[f.portionToDisplay??f];case cl:return cl[f.shadowMode??f.shadows??f];case String:return f.string??f;case xF:return xF[f.stripeOrientation??f];case vi:return CBi(f);case ude.default:return U6e(f,m);case jn:return jn[f.verticalOrigin??f];default:throw new Oi(`Unknown CzmlDataSource interval type: ${o}`)}}var RBi={HERMITE:NGe,LAGRANGE:ZGe,LINEAR:Uue};function sle(o,f){let m=o.interpolationAlgorithm,x=o.interpolationDegree;(F(m)||F(x))&&f.setInterpolationOptions({interpolationAlgorithm:RBi[m],interpolationDegree:x});let y=o.forwardExtrapolationType;F(y)&&(f.forwardExtrapolationType=nI[y]);let v=o.forwardExtrapolationDuration;F(v)&&(f.forwardExtrapolationDuration=v);let C=o.backwardExtrapolationType;F(C)&&(f.backwardExtrapolationType=nI[C]);let T=o.backwardExtrapolationDuration;F(T)&&(f.backwardExtrapolationDuration=T)}var Y6e={iso8601:void 0};function X0(o){if(F(o))return Y6e.iso8601=o,js.fromIso8601(Y6e)}function UGe(o){let f=wn.MAXIMUM_INTERVAL.clone();return f.data=o,f}function K6e(o){let f=new rS;return f.intervals.addInterval(UGe(o)),f}function J6e(o){let f=new i1(o.referenceFrame);return f.intervals.addInterval(UGe(o)),f}function lle(o,f,m,x,y,v,C){let T=X0(x.interval);F(y)&&(F(T)?T=js.intersect(T,y,NO):T=y);let S,w,E,L=!F(x.reference)&&!F(x.velocityReference),I=F(T)&&!T.equals(wn.MAXIMUM_INTERVAL);if(x.delete===!0){if(!I){f[m]=void 0;return}return imt(f[m],T)}let R=!1;if(L){if(w=IBi(o,x,v),!F(w))return;S=o.packedLength??1,E=w.length??1,R=!F(x.array)&&typeof w!="string"&&E>S&&o!==Object}let P=typeof o.unpack=="function"&&o!==FI;if(!R&&!I){L?f[m]=new Qc(P?o.unpack(w,0):w):f[m]=k6e(o,C,x);return}let A=f[m],M,V=x.epoch;if(F(V)&&(M=$t.fromIso8601(V)),R&&!I){A instanceof uM||(f[m]=A=new uM(o)),A.addSamplesPackedArray(w,M),sle(x,A);return}let G;if(!R&&I){T=T.clone(),L?T.data=P?o.unpack(w,0):w:T.data=k6e(o,C,x),F(A)||(f[m]=A=L?new pH:new rS),L&&A instanceof pH?A.intervals.addInterval(T):A instanceof rS?(L&&(T.data=new Qc(T.data)),A.intervals.addInterval(T)):(f[m]=A=K6e(A),L&&(T.data=new Qc(T.data)),A.intervals.addInterval(T));return}F(A)||(f[m]=A=new rS),A instanceof rS||(f[m]=A=K6e(A));let D=A.intervals;G=D.findInterval(T),(!F(G)||!(G.data instanceof uM))&&(G=T.clone(),G.data=new uM(o),D.addInterval(G)),G.data.addSamplesPackedArray(w,M),sle(x,G.data)}function imt(o,f){if(o instanceof uM){o.removeSamples(f);return}else if(o instanceof pH){o.intervals.removeInterval(f);return}else if(o instanceof rS){let m=o.intervals;for(let x=0;x<m.length;++x){let y=js.intersect(m.get(x),f,NO);y.isEmpty||imt(y.data,f)}m.removeInterval(f);return}}function Bi(o,f,m,x,y,v,C){if(F(x))if(Array.isArray(x))for(let T=0,S=x.length;T<S;++T)lle(o,f,m,x[T],y,v,C);else lle(o,f,m,x,y,v,C)}function j6e(o,f,m,x,y,v){let C=X0(m.interval);F(x)&&(F(C)?C=js.intersect(C,x,NO):C=x);let T=F(m.cartesianVelocity)?1:0,S=Z.packedLength*(T+1),w,E,L=!F(m.reference),I=F(C)&&!C.equals(wn.MAXIMUM_INTERVAL);if(m.delete===!0){if(!I){o[f]=void 0;return}return rmt(o[f],C)}let R,P=!1;if(L&&(F(m.referenceFrame)&&(R=pp[m.referenceFrame]),R=R??pp.FIXED,w=kGe(m),E=w.length??1,P=E>S),!P&&!I){L?o[f]=new hI(Z.unpack(w),R):o[f]=E6(v,m.reference);return}let A=o[f],M,V=m.epoch;if(F(V)&&(M=$t.fromIso8601(V)),P&&!I){(!(A instanceof nS)||F(R)&&A.referenceFrame!==R)&&(o[f]=A=new nS(R,T)),A.addSamplesPackedArray(w,M),sle(m,A);return}let G;if(!P&&I){C=C.clone(),L?C.data=Z.unpack(w):C.data=E6(v,m.reference),F(A)||(L?A=new MH(R):A=new i1(R),o[f]=A),L&&A instanceof MH&&F(R)&&A.referenceFrame===R?A.intervals.addInterval(C):A instanceof i1?(L&&(C.data=new hI(C.data,R)),A.intervals.addInterval(C)):(o[f]=A=J6e(A),L&&(C.data=new hI(C.data,R)),A.intervals.addInterval(C));return}F(A)?A instanceof i1||(o[f]=A=J6e(A)):o[f]=A=new i1(R);let D=A.intervals;G=D.findInterval(C),(!F(G)||!(G.data instanceof nS)||F(R)&&G.data.referenceFrame!==R)&&(G=C.clone(),G.data=new nS(R,T),D.addInterval(G)),G.data.addSamplesPackedArray(w,M),sle(m,G.data)}function rmt(o,f){if(o instanceof nS){o.removeSamples(f);return}else if(o instanceof MH){o.intervals.removeInterval(f);return}else if(o instanceof i1){let m=o.intervals;for(let x=0;x<m.length;++x){let y=js.intersect(m.get(x),f,NO);y.isEmpty||rmt(y.data,f)}m.removeInterval(f);return}}function nmt(o,f,m,x,y,v){if(F(m))if(Array.isArray(m))for(let C=0,T=m.length;C<T;++C)j6e(o,f,m[C],x,y,v);else j6e(o,f,m,x,y,v)}function Q6e(o,f,m,x){F(m.references)?hde(o,f,m.references,m.interval,x,cde,rS):(F(m.cartesian2)?m.array=rt.unpackArray(m.cartesian2):F(m.cartesian)&&(m.array=rt.unpackArray(m.cartesian)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x))}function q6e(o,f,m,x,y,v){let C=X0(m.interval);F(x)&&(F(C)?C=js.intersect(C,x,NO):C=x);let T=o[f],S,w;if(F(C)){T instanceof ile||(T=new ile,o[f]=T);let L=T.intervals;w=L.findInterval({start:C.start,stop:C.stop}),F(w)?S=w.data:(w=C.clone(),L.addInterval(w))}else S=T;let E;F(m.solidColor)?(S instanceof Ba||(S=new Ba),E=m.solidColor,Bi(Xe,S,"color",E.color,void 0,void 0,v)):F(m.grid)?(S instanceof rle||(S=new rle),E=m.grid,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Number,S,"cellAlpha",E.cellAlpha,void 0,y,v),Bi(rt,S,"lineCount",E.lineCount,void 0,y,v),Bi(rt,S,"lineThickness",E.lineThickness,void 0,y,v),Bi(rt,S,"lineOffset",E.lineOffset,void 0,y,v)):F(m.image)?(S instanceof O0||(S=new O0),E=m.image,Bi(Image,S,"image",E.image,void 0,y,v),Bi(rt,S,"repeat",E.repeat,void 0,y,v),Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Boolean,S,"transparent",E.transparent,void 0,y,v)):F(m.stripe)?(S instanceof ole||(S=new ole),E=m.stripe,Bi(xF,S,"orientation",E.orientation,void 0,y,v),Bi(Xe,S,"evenColor",E.evenColor,void 0,y,v),Bi(Xe,S,"oddColor",E.oddColor,void 0,y,v),Bi(Number,S,"offset",E.offset,void 0,y,v),Bi(Number,S,"repeat",E.repeat,void 0,y,v)):F(m.polylineOutline)?(S instanceof KM||(S=new KM),E=m.polylineOutline,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Xe,S,"outlineColor",E.outlineColor,void 0,y,v),Bi(Number,S,"outlineWidth",E.outlineWidth,void 0,y,v)):F(m.polylineGlow)?(S instanceof nle||(S=new nle),E=m.polylineGlow,Bi(Xe,S,"color",E.color,void 0,y,v),Bi(Number,S,"glowPower",E.glowPower,void 0,y,v),Bi(Number,S,"taperPower",E.taperPower,void 0,y,v)):F(m.polylineArrow)?(S instanceof Mf||(S=new Mf),E=m.polylineArrow,Bi(Xe,S,"color",E.color,void 0,void 0,v)):F(m.polylineDash)?(S instanceof Ml||(S=new Ml),E=m.polylineDash,Bi(Xe,S,"color",E.color,void 0,void 0,v),Bi(Xe,S,"gapColor",E.gapColor,void 0,void 0,v),Bi(Number,S,"dashLength",E.dashLength,void 0,y,v),Bi(Number,S,"dashPattern",E.dashPattern,void 0,y,v)):F(m.checkerboard)&&(S instanceof ele||(S=new ele),E=m.checkerboard,Bi(Xe,S,"evenColor",E.evenColor,void 0,y,v),Bi(Xe,S,"oddColor",E.oddColor,void 0,y,v),Bi(rt,S,"repeat",E.repeat,void 0,y,v)),F(w)?w.data=S:o[f]=S}function S1(o,f,m,x,y,v){if(F(m))if(Array.isArray(m))for(let C=0,T=m.length;C<T;++C)q6e(o,f,m[C],x,y,v);else q6e(o,f,m,x,y,v)}function ABi(o,f,m,x){let y=f.name;F(y)&&(o.name=f.name)}function MBi(o,f,m,x){let y=f.description;F(y)&&Bi(String,o,"description",y,void 0,x,m)}function VBi(o,f,m,x){let y=f.position;F(y)&&nmt(o,"position",y,void 0,x,m)}function GBi(o,f,m,x){let y=f.viewFrom;F(y)&&Bi(Z,o,"viewFrom",y,void 0,x,m)}function FBi(o,f,m,x){let y=f.orientation;F(y)&&Bi(fr,o,"orientation",y,void 0,x,m)}function DBi(o,f,m,x){let y=f.properties;if(F(y)){F(o.properties)||(o.properties=new qE);for(let v in y)if(y.hasOwnProperty(v)){o.properties.hasProperty(v)||o.properties.addProperty(v);let C=y[v];if(Array.isArray(C))for(let T=0,S=C.length;T<S;++T)lle(z6e(C[T]),o.properties,v,C[T],void 0,x,m);else lle(z6e(C),o.properties,v,C,void 0,x,m)}}}function hde(o,f,m,x,y,v,C){let T=m.map(function(S){return E6(y,S)});if(F(x)){x=X0(x);let S=o[f];if(!(S instanceof C)){let w=new C;w.intervals.addInterval(UGe(S)),o[f]=S=w}x.data=new v(T),S.intervals.addInterval(x)}else o[f]=new v(T)}function $6e(o,f,m,x){let y=m.references;F(y)?hde(o,f,y,m.interval,x,cde,rS):Bi(Array,o,f,m,void 0,void 0,x)}function e7e(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)$6e(o,f,m[y],x);else $6e(o,f,m,x)}function t7e(o,f,m,x){let y=m.references;F(y)?hde(o,f,y,m.interval,x,dH,i1):(F(m.cartesian)?m.array=Z.unpackArray(m.cartesian):F(m.cartographicRadians)?m.array=Z.fromRadiansArrayHeights(m.cartographicRadians,yi.default):F(m.cartographicDegrees)&&(m.array=Z.fromDegreesArrayHeights(m.cartographicDegrees,yi.default)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x))}function Qq(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)t7e(o,f,m[y],x);else t7e(o,f,m,x)}function NBi(o){return Z.unpackArray(o)}function WBi(o){return Z.fromRadiansArrayHeights(o,yi.default)}function ZBi(o){return Z.fromDegreesArrayHeights(o,yi.default)}function i7e(o,f,m,x){let y=m.references;if(F(y)){let v=y.map(function(C){let T={};return hde(T,"positions",C,m.interval,x,dH,i1),T.positions});o[f]=new dH(v)}else F(m.cartesian)?m.array=m.cartesian.map(NBi):F(m.cartographicRadians)?m.array=m.cartographicRadians.map(WBi):F(m.cartographicDegrees)&&(m.array=m.cartographicDegrees.map(ZBi)),F(m.array)&&Bi(Array,o,f,m,void 0,void 0,x)}function OBi(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;++y)i7e(o,f,m[y],x);else i7e(o,f,m,x)}function XBi(o,f,m,x){if(F(m))if(Array.isArray(m))for(let y=0,v=m.length;y<v;y++)Q6e(o,f,m[y],x);else Q6e(o,f,m,x)}function kBi(o,f,m,x){let y=f.availability;if(!F(y))return;let v;if(Array.isArray(y))for(let C=0,T=y.length;C<T;++C)F(v)||(v=new k_),v.addInterval(X0(y[C]));else v=new k_,v.addInterval(X0(y));o.availability=v}function UBi(o,f,m,x,y){F(f)&&Bi(gF,o,"alignedAxis",f,m,x,y)}function BBi(o,f,m,x){let y=f.billboard;if(!F(y))return;let v=X0(y.interval),C=o.billboard;F(C)||(o.billboard=C=new oV),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Image,C,"image",y.image,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(rt,C,"pixelOffset",y.pixelOffset,v,x,m),Bi(Z,C,"eyeOffset",y.eyeOffset,v,x,m),Bi(ec,C,"horizontalOrigin",y.horizontalOrigin,v,x,m),Bi(jn,C,"verticalOrigin",y.verticalOrigin,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),UBi(C,y.alignedAxis,v,x,m),Bi(Boolean,C,"sizeInMeters",y.sizeInMeters,v,x,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(ea,C,"pixelOffsetScaleByDistance",y.pixelOffsetScaleByDistance,v,x,m),Bi(Er,C,"imageSubRegion",y.imageSubRegion,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function HBi(o,f,m,x){let y=f.box;if(!F(y))return;let v=X0(y.interval),C=o.box;F(C)||(o.box=C=new Tue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Z,C,"dimensions",y.dimensions,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function zBi(o,f,m,x){let y=f.corridor;if(!F(y))return;let v=X0(y.interval),C=o.corridor;F(C)||(o.corridor=C=new Sue),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"positions",y.positions,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(ad,C,"cornerType",y.cornerType,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function YBi(o,f,m,x){let y=f.cylinder;if(!F(y))return;let v=X0(y.interval),C=o.cylinder;F(C)||(o.cylinder=C=new wue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"length",y.length,v,x,m),Bi(Number,C,"topRadius",y.topRadius,v,x,m),Bi(Number,C,"bottomRadius",y.bottomRadius,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"numberOfVerticalLines",y.numberOfVerticalLines,v,x,m),Bi(Number,C,"slices",y.slices,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function KBi(o,f){let m=o.version;if(F(m)&&typeof m=="string"){let v=m.split(".");if(v.length===2){if(v[0]!=="1")throw new Oi("Cesium only supports CZML version 1.");f._version=m}}if(!F(f._version))throw new Oi("CZML version information invalid.  It is expected to be a property on the document object in the <Major>.<Minor> version format.");let x=f._documentPacket;F(o.name)&&(x.name=o.name);let y=o.clock;if(F(y)){let v=x.clock;F(v)?(v.interval=y.interval??v.interval,v.currentTime=y.currentTime??v.currentTime,v.range=y.range??v.range,v.step=y.step??v.step,v.multiplier=y.multiplier??v.multiplier):x.clock={interval:y.interval,currentTime:y.currentTime,range:y.range,step:y.step,multiplier:y.multiplier}}}function JBi(o,f,m,x){let y=f.ellipse;if(!F(y))return;let v=X0(y.interval),C=o.ellipse;F(C)||(o.ellipse=C=new Eue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"semiMajorAxis",y.semiMajorAxis,v,x,m),Bi(Number,C,"semiMinorAxis",y.semiMinorAxis,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"numberOfVerticalLines",y.numberOfVerticalLines,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function jBi(o,f,m,x){let y=f.ellipsoid;if(!F(y))return;let v=X0(y.interval),C=o.ellipsoid;F(C)||(o.ellipsoid=C=new Ez),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Z,C,"radii",y.radii,v,x,m),Bi(Z,C,"innerRadii",y.innerRadii,v,x,m),Bi(Number,C,"minimumClock",y.minimumClock,v,x,m),Bi(Number,C,"maximumClock",y.maximumClock,v,x,m),Bi(Number,C,"minimumCone",y.minimumCone,v,x,m),Bi(Number,C,"maximumCone",y.maximumCone,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"stackPartitions",y.stackPartitions,v,x,m),Bi(Number,C,"slicePartitions",y.slicePartitions,v,x,m),Bi(Number,C,"subdivisions",y.subdivisions,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function QBi(o,f,m,x){let y=f.label;if(!F(y))return;let v=X0(y.interval),C=o.label;F(C)||(o.label=C=new Lz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(String,C,"text",y.text,v,x,m),Bi(String,C,"font",y.font,v,x,m),Bi(f0,C,"style",y.style,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(Boolean,C,"showBackground",y.showBackground,v,x,m),Bi(Xe,C,"backgroundColor",y.backgroundColor,v,x,m),Bi(rt,C,"backgroundPadding",y.backgroundPadding,v,x,m),Bi(rt,C,"pixelOffset",y.pixelOffset,v,x,m),Bi(Z,C,"eyeOffset",y.eyeOffset,v,x,m),Bi(ec,C,"horizontalOrigin",y.horizontalOrigin,v,x,m),Bi(jn,C,"verticalOrigin",y.verticalOrigin,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"fillColor",y.fillColor,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(ea,C,"pixelOffsetScaleByDistance",y.pixelOffsetScaleByDistance,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function qBi(o,f,m,x){let y=f.model;if(!F(y))return;let v=X0(y.interval),C=o.model;F(C)||(o.model=C=new x7),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ude.default,C,"uri",y.gltf,v,x,m),Bi(Number,C,"scale",y.scale,v,x,m),Bi(Number,C,"minimumPixelSize",y.minimumPixelSize,v,x,m),Bi(Number,C,"maximumScale",y.maximumScale,v,x,m),Bi(Boolean,C,"incrementallyLoadTextures",y.incrementallyLoadTextures,v,x,m),Bi(Boolean,C,"runAnimations",y.runAnimations,v,x,m),Bi(Boolean,C,"clampAnimations",y.clampAnimations,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"silhouetteColor",y.silhouetteColor,v,x,m),Bi(Number,C,"silhouetteSize",y.silhouetteSize,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(II,C,"colorBlendMode",y.colorBlendMode,v,x,m),Bi(Number,C,"colorBlendAmount",y.colorBlendAmount,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m);let T,S,w=y.nodeTransformations;if(F(w))if(Array.isArray(w))for(T=0,S=w.length;T<S;++T)r7e(C,w[T],v,x,m);else r7e(C,w,v,x,m);let E=y.articulations;if(F(E))if(Array.isArray(E))for(T=0,S=E.length;T<S;++T)n7e(C,E[T],v,x,m);else n7e(C,E,v,x,m)}function r7e(o,f,m,x,y){let v=X0(f.interval);F(m)&&(F(v)?v=js.intersect(v,m,NO):v=m);let C=o.nodeTransformations,T=Object.keys(f);for(let S=0,w=T.length;S<w;++S){let E=T[S];if(E==="interval")continue;let L=f[E];if(!F(L))continue;F(C)||(o.nodeTransformations=C=new qE),C.hasProperty(E)||C.addProperty(E);let I=C[E];F(I)||(C[E]=I=new Lue),Bi(Z,I,"translation",L.translation,v,x,y),Bi(fr,I,"rotation",L.rotation,v,x,y),Bi(Z,I,"scale",L.scale,v,x,y)}}function n7e(o,f,m,x,y){let v=X0(f.interval);F(m)&&(F(v)?v=js.intersect(v,m,NO):v=m);let C=o.articulations,T=Object.keys(f);for(let S=0,w=T.length;S<w;++S){let E=T[S];if(E==="interval")continue;let L=f[E];F(L)&&(F(C)||(o.articulations=C=new qE),C.hasProperty(E)||C.addProperty(E),Bi(Number,C,E,L,v,x,y))}}function $Bi(o,f,m,x){let y=f.path;if(!F(y))return;let v=X0(y.interval),C=o.path;F(C)||(o.path=C=new g7),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"leadTime",y.leadTime,v,x,m),Bi(Number,C,"trailTime",y.trailTime,v,x,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"resolution",y.resolution,v,x,m),S1(C,"material",y.material,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function eHi(o,f,m,x){let y=f.point;if(!F(y))return;let v=X0(y.interval),C=o.point;F(C)||(o.point=C=new Iue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(Number,C,"pixelSize",y.pixelSize,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Xe,C,"color",y.color,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(ea,C,"scaleByDistance",y.scaleByDistance,v,x,m),Bi(ea,C,"translucencyByDistance",y.translucencyByDistance,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(Number,C,"disableDepthTestDistance",y.disableDepthTestDistance,v,x,m)}function L6(o){this.polygon=o,this._definitionChanged=new Tr}Object.defineProperties(L6.prototype,{isConstant:{get:function(){let o=this.polygon._positions,f=this.polygon._holes;return(!F(o)||o.isConstant)&&(!F(f)||f.isConstant)}},definitionChanged:{get:function(){return this._definitionChanged}}});L6.prototype.getValue=function(o,f){let m;F(this.polygon._positions)&&(m=this.polygon._positions.getValue(o));let x;return F(this.polygon._holes)&&(x=this.polygon._holes.getValue(o),F(x)&&(x=x.map(function(y){return new Zn(y)}))),F(f)?(f.positions=m,f.holes=x,f):new Zn(m,x)};L6.prototype.equals=function(o){return this===o||o instanceof L6&&Nt.equals(this.polygon._positions,o.polygon._positions)&&Nt.equals(this.polygon._holes,o.polygon._holes)};function tHi(o,f,m,x){let y=f.polygon;if(!F(y))return;let v=X0(y.interval),C=o.polygon;F(C)||(o.polygon=C=new hl),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"_positions",y.positions,m),OBi(C,"_holes",y.holes,m),(F(C._positions)||F(C._holes))&&(C.hierarchy=new L6(C)),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Boolean,C,"perPositionHeight",y.perPositionHeight,v,x,m),Bi(Boolean,C,"closeTop",y.closeTop,v,x,m),Bi(Boolean,C,"closeBottom",y.closeBottom,v,x,m),Bi(qa,C,"arcType",y.arcType,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function iHi(o){return o?qa.GEODESIC:qa.NONE}function rHi(o,f,m,x){let y=f.polyline;if(!F(y))return;let v=X0(y.interval),C=o.polyline;if(F(C)||(o.polyline=C=new bI),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"positions",y.positions,m),Bi(Number,C,"width",y.width,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),S1(C,"material",y.material,v,x,m),S1(C,"depthFailMaterial",y.depthFailMaterial,v,x,m),Bi(qa,C,"arcType",y.arcType,v,x,m),Bi(Boolean,C,"clampToGround",y.clampToGround,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m),F(y.followSurface)&&!F(y.arcType)){let T={};Bi(Boolean,T,"followSurface",y.followSurface,v,x,m),C.arcType=vBi(T.followSurface,iHi)}}function nHi(o,f,m,x){let y=f.polylineVolume;if(!F(y))return;let v=X0(y.interval),C=o.polylineVolume;F(C)||(o.polylineVolume=C=new Rue),Qq(C,"positions",y.positions,m),XBi(C,"shape",y.shape,m),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ad,C,"cornerType",y.cornerType,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function oHi(o,f,m,x){let y=f.rectangle;if(!F(y))return;let v=X0(y.interval),C=o.rectangle;F(C)||(o.rectangle=C=new Pz),Bi(Boolean,C,"show",y.show,v,x,m),Bi(vi,C,"coordinates",y.coordinates,v,x,m),Bi(Number,C,"height",y.height,v,x,m),Bi(Mn,C,"heightReference",y.heightReference,v,x,m),Bi(Number,C,"extrudedHeight",y.extrudedHeight,v,x,m),Bi(Mn,C,"extrudedHeightReference",y.extrudedHeightReference,v,x,m),Bi(FI,C,"rotation",y.rotation,v,x,m),Bi(FI,C,"stRotation",y.stRotation,v,x,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m),Bi(hc,C,"classificationType",y.classificationType,v,x,m),Bi(Number,C,"zIndex",y.zIndex,v,x,m)}function aHi(o,f,m,x){let y=f.tileset;if(!F(y))return;let v=X0(y.interval),C=o.tileset;F(C)||(o.tileset=C=new Pue),Bi(Boolean,C,"show",y.show,v,x,m),Bi(ude.default,C,"uri",y.uri,v,x,m),Bi(Number,C,"maximumScreenSpaceError",y.maximumScreenSpaceError,v,x,m)}function sHi(o,f,m,x){let y=f.wall;if(!F(y))return;let v=X0(y.interval),C=o.wall;F(C)||(o.wall=C=new y7),Bi(Boolean,C,"show",y.show,v,x,m),Qq(C,"positions",y.positions,m),e7e(C,"minimumHeights",y.minimumHeights,m),e7e(C,"maximumHeights",y.maximumHeights,m),Bi(Number,C,"granularity",y.granularity,v,x,m),Bi(Boolean,C,"fill",y.fill,v,x,m),S1(C,"material",y.material,v,x,m),Bi(Boolean,C,"outline",y.outline,v,x,m),Bi(Xe,C,"outlineColor",y.outlineColor,v,x,m),Bi(Number,C,"outlineWidth",y.outlineWidth,v,x,m),Bi(cl,C,"shadows",y.shadows,v,x,m),Bi(So,C,"distanceDisplayCondition",y.distanceDisplayCondition,v,x,m)}function o7e(o,f,m,x,y){let v=o.id;if(F(v)||(v=du()),W1e=v,!F(y._version)&&v!=="document")throw new Oi("The first CZML packet is required to be the document object.");if(o.delete===!0)f.removeById(v);else if(v==="document")KBi(o,y);else{let C=f.getOrCreateEntity(v),T=o.parent;F(T)&&(C.parent=f.getOrCreateEntity(T));for(let S=m.length-1;S>-1;S--)m[S](C,o,f,x)}W1e=void 0}function lHi(o){let f,m=o._documentPacket.clock;if(!F(m)){if(!F(o._clock)){let y=o._entityCollection.computeAvailability();if(!y.start.equals(wn.MINIMUM_VALUE)){let v=y.start,C=y.stop,T=$t.secondsDifference(C,v),S=Math.round(T/120);return f=new r9,f.startTime=$t.clone(v),f.stopTime=$t.clone(C),f.clockRange=Gx.LOOP_STOP,f.multiplier=S,f.currentTime=$t.clone(v),f.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,o._clock=f,!0}}return!1}F(o._clock)?f=o._clock.clone():(f=new r9,f.startTime=wn.MINIMUM_VALUE.clone(),f.stopTime=wn.MAXIMUM_VALUE.clone(),f.currentTime=wn.MINIMUM_VALUE.clone(),f.clockRange=Gx.LOOP_STOP,f.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,f.multiplier=1);let x=X0(m.interval);return F(x)&&(f.startTime=x.start,f.stopTime=x.stop),F(m.currentTime)&&(f.currentTime=$t.fromIso8601(m.currentTime)),F(m.range)&&(f.clockRange=Gx[m.range]??Gx.LOOP_STOP),F(m.step)&&(f.clockStep=kd[m.step]??kd.SYSTEM_CLOCK_MULTIPLIER),F(m.multiplier)&&(f.multiplier=m.multiplier),f.equals(o._clock)?!1:(o._clock=f.clone(o._clock),!0)}function omt(o,f,m,x){m=m??si.EMPTY_OBJECT;let y=f,v=m.sourceUri,C=m.credit;if(typeof C=="string"&&(C=new Oa(C)),o._credit=C,typeof f=="string"||f instanceof Mr){f=Mr.createIfNeeded(f),y=f.fetchJson(),v=v??f.clone();let T=o._resourceCredits,S=f.credits;if(F(S)){let w=S.length;for(let E=0;E<w;E++)T.push(S[E])}}return v=Mr.createIfNeeded(v),Sy.setLoading(o,!0),Promise.resolve(y).then(function(T){return uHi(o,T,v,x)}).catch(function(T){return Sy.setLoading(o,!1),o._error.raiseEvent(o,T),console.log(T),Promise.reject(T)})}function uHi(o,f,m,x){Sy.setLoading(o,!0);let y=o._entityCollection;x&&(o._version=void 0,o._documentPacket=new amt,y.removeAll()),sm._processCzml(f,y,m,void 0,o);let v=lHi(o),C=o._documentPacket;return F(C.name)&&o._name!==C.name?(o._name=C.name,v=!0):!F(o._name)&&F(m)&&(o._name=v7(m.getUrlComponent()),v=!0),Sy.setLoading(o,!1),v&&o._changed.raiseEvent(o),o}function amt(){this.name=void 0,this.clock=void 0}function sm(o){this._name=o,this._changed=new Tr,this._error=new Tr,this._isLoading=!1,this._loading=new Tr,this._clock=void 0,this._documentPacket=new amt,this._version=void 0,this._entityCollection=new kS(this),this._entityCluster=new AF,this._credit=void 0,this._resourceCredits=[]}sm.load=function(o,f){return new sm().load(o,f)};Object.defineProperties(sm.prototype,{name:{get:function(){return this._name}},clock:{get:function(){return this._clock}},entities:{get:function(){return this._entityCollection}},isLoading:{get:function(){return this._isLoading}},changedEvent:{get:function(){return this._changed}},errorEvent:{get:function(){return this._error}},loadingEvent:{get:function(){return this._loading}},show:{get:function(){return this._entityCollection.show},set:function(o){this._entityCollection.show=o}},clustering:{get:function(){return this._entityCluster},set:function(o){this._entityCluster=o}},credit:{get:function(){return this._credit}}});sm.updaters=[BBi,HBi,zBi,YBi,JBi,jBi,QBi,qBi,ABi,MBi,$Bi,eHi,tHi,rHi,nHi,DBi,oHi,VBi,aHi,GBi,sHi,FBi,kBi];sm.registerUpdater=function(o){sm.updaters.includes(o)||sm.updaters.push(o)};sm.unregisterUpdater=function(o){if(sm.updaters.includes(o)){let f=sm.updaters.indexOf(o);sm.updaters.splice(f,1)}};sm.prototype.process=function(o,f){return omt(this,o,f,!1)};sm.prototype.load=function(o,f){return omt(this,o,f,!0)};sm.prototype.update=function(o){return!0};sm.processPacketData=Bi;sm.processPositionPacketData=nmt;sm.processMaterialPacketData=S1;sm._processCzml=function(o,f,m,x,y){if(x=x??sm.updaters,Array.isArray(o))for(let v=0,C=o.length;v<C;++v)o7e(o[v],f,x,m,y);else o7e(o,f,x,m,y)};var qq=sm,Z1e=32,cHi="http://www.opengis.net/kml/2.2",DE="http://www.google.com/kml/ext/2.2",hHi="http://www.w3.org/2000/xmlns/";function dde(o){this._files={},this._promises=[],this._count=0,this._modelCallback=o}var dHi=/^data:image\/([^,;]+)/;dde.prototype.texture=function(o){let f=this,m;if(typeof o=="string"||o instanceof Mr){if(o=Mr.createIfNeeded(o),!o.isDataUri)return o.url;let x=o.url.match(dHi);m=`texture_${++this._count}`,F(x)&&(m+=`.${x[1]}`);let y=o.fetchBlob().then(function(v){f._files[m]=v});return this._promises.push(y),m}if(o instanceof HTMLCanvasElement){m=`texture_${++this._count}.png`;let x=new Promise(y=>{o.toBlob(function(v){f._files[m]=v,y()})});return this._promises.push(x),m}return""};function pHi(o,f){return function(m){o._files[f]=m}}dde.prototype.model=function(o,f){let m=this._modelCallback;if(!F(m))throw new Oi("Encountered a model entity while exporting to KML, but no model callback was supplied.");let x={},y=m(o,f,x);for(let v in x)if(x.hasOwnProperty(v)){let C=Promise.resolve(x[v]);this._promises.push(C),C.then(pHi(this,v))}return y};Object.defineProperties(dde.prototype,{promise:{get:function(){return Promise.all(this._promises)}},files:{get:function(){return this._files}}});function pde(o){this._time=o}pde.prototype.get=function(o,f,m){let x;return F(o)&&(x=F(o.getValue)?o.getValue(this._time,m):o),x??f};pde.prototype.getColor=function(o,f){let m=this.get(o,f);if(F(m))return gZ(m)};pde.prototype.getMaterialType=function(o){if(F(o))return o.getType(this._time)};function BGe(){this._ids={},this._styles={},this._count=0}BGe.prototype.get=function(o){let f=this._ids,m=o.innerHTML;if(F(f[m]))return f[m];let x=`style-${++this._count}`;return o.setAttribute("id",x),x=`#${x}`,f[m]=x,this._styles[m]=o,x};BGe.prototype.save=function(o){let f=this._styles,m=o.childNodes[0];for(let x in f)f.hasOwnProperty(x)&&o.insertBefore(f[x],m)};function smt(){this._ids={}}smt.prototype.get=function(o){if(!F(o))return this.get(du());let f=this._ids;return F(f[o])?`${o.toString()}-${++f[o]}`:(f[o]=0,o)};function HGe(o){o=o??si.EMPTY_OBJECT;let f=o.entities,m=o.kmz??!1,x=HGe._createState(o),y=f.values.filter(function(w){return!F(w.parent)}),v=x.kmlDoc,C=v.documentElement;C.setAttributeNS(hHi,"xmlns:gx",DE);let T=v.createElement("Document");C.appendChild(T),umt(x,T,y),x.styleCache.save(T);let S=x.externalFileHandler;return S.promise.then(function(){let w=new XMLSerializer().serializeToString(x.kmlDoc);return m?fHi(w,S.files):{kml:w,externalFiles:S.files}})}function fHi(o,f){let m=oa("ThirdParty/Workers/z-worker-pako.js");cPe({workerScripts:{deflate:[m,"./pako_deflate.min.js"],inflate:[m,"./pako_inflate.min.js"]}});let x=new Cot,y=new Yti(x);return y.add("doc.kml",new pti(o)).then(function(){let v=Object.keys(f);return lmt(y,v,f,0)}).then(function(){return y.close()}).then(function(v){return{kmz:v}})}function lmt(o,f,m,x){if(f.length===x)return;let y=f[x];return o.add(y,new Oue(m[y])).then(function(){return lmt(o,f,m,x+1)})}HGe._createState=function(o){let f=o.entities,m=new BGe,x=f.computeAvailability(),y=F(o.time)?o.time:x.start,v=o.defaultAvailability??x,C=o.sampleDuration??60;v.start===wn.MINIMUM_VALUE?v.stop===wn.MAXIMUM_VALUE?v=new js:$t.addSeconds(v.stop,-10*C,v.start):v.stop===wn.MAXIMUM_VALUE&&$t.addSeconds(v.start,10*C,v.stop);let T=new dde(o.modelCallback);return{kmlDoc:document.implementation.createDocument(cHi,"kml"),ellipsoid:o.ellipsoid??yi.default,idManager:new smt,styleCache:m,externalFileHandler:T,time:y,valueGetter:new pde(y),sampleDuration:C,defaultAvailability:new k_([v])}};function umt(o,f,m){let x=o.kmlDoc,y=o.styleCache,v=o.valueGetter,C=o.idManager,T=m.length,S,w,E;for(let L=0;L<T;++L){let I=m[L];S=[],w=[],E=[],mHi(o,I,w,E),xHi(o,I.polyline,w,E),s7e(o,I.rectangle,w,E,S),s7e(o,I.polygon,w,E,S),vHi(o,I,I.model,w,E);let R,P=I.availability;F(P)&&(R=x.createElement("TimeSpan"),$t.equals(P.start,wn.MINIMUM_VALUE)||R.appendChild(Ua(x,"begin",$t.toIso8601(P.start))),$t.equals(P.stop,wn.MAXIMUM_VALUE)||R.appendChild(Ua(x,"end",$t.toIso8601(P.stop))));for(let V=0;V<S.length;++V){let G=S[V];G.setAttribute("id",C.get(I.id)),G.appendChild(Ua(x,"name",I.name)),G.appendChild(Ua(x,"visibility",I.show)),G.appendChild(Ua(x,"description",I.description)),F(R)&&G.appendChild(R),f.appendChild(G)}let A=w.length;if(A>0){let V=x.createElement("Placemark");V.setAttribute("id",C.get(I.id));let G=I.name,D=I.label;if(F(D)){let k=x.createElement("LabelStyle"),U=v.get(D.text);G=F(U)&&U.length>0?U:G;let B=v.getColor(D.fillColor);F(B)&&(k.appendChild(Ua(x,"color",B)),k.appendChild(Ua(x,"colorMode","normal")));let Y=v.get(D.scale);F(Y)&&k.appendChild(Ua(x,"scale",Y)),E.push(k)}V.appendChild(Ua(x,"name",G)),V.appendChild(Ua(x,"visibility",I.show)),V.appendChild(Ua(x,"description",I.description)),F(R)&&V.appendChild(R),f.appendChild(V);let N=E.length;if(N>0){let k=x.createElement("Style");for(let U=0;U<N;++U)k.appendChild(E[U]);V.appendChild(Ua(x,"styleUrl",y.get(k)))}if(w.length===1)V.appendChild(w[0]);else if(w.length>1){let k=x.createElement("MultiGeometry");for(let U=0;U<A;++U)k.appendChild(w[U]);V.appendChild(k)}}let M=I._children;if(M.length>0){let V=x.createElement("Folder");V.setAttribute("id",C.get(I.id)),V.appendChild(Ua(x,"name",I.name)),V.appendChild(Ua(x,"visibility",I.show)),V.appendChild(Ua(x,"description",I.description)),f.appendChild(V),umt(o,V,M)}}}var xb=new Z,rv=new Gt,TE=new $t;function mHi(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=o.valueGetter,T=f.billboard??f.point;if(!F(T)&&!F(f.path))return;let S=f.position;if(!S.isConstant){cmt(o,f,T,m,x);return}C.get(S,void 0,xb);let w=Ua(y,"coordinates",xZ(xb,v)),E=y.createElement("Point"),L=y.createElement("altitudeMode");L.appendChild(OZ(o,T.heightReference)),E.appendChild(L),E.appendChild(w),m.push(E);let I=T instanceof oV?dmt(o,T):hmt(o,T);x.push(I)}function cmt(o,f,m,x,y){let v=o.kmlDoc,C=o.ellipsoid,T=o.valueGetter,S,w=f.position,E=!0;w instanceof i1?(S=w.intervals,E=!1):S=f.availability??o.defaultAvailability;let L=m instanceof x7,I,R,P,A=[];for(I=0;I<S.length;++I){let V=S.get(I),G=E?w:V.data,D=v.createElement("altitudeMode");G instanceof Mz?(G=G._value,D.appendChild(OZ(o,Mn.CLAMP_TO_GROUND))):F(m)?D.appendChild(OZ(o,m.heightReference)):D.appendChild(OZ(o,Mn.NONE));let N=[],k=[];if(G.isConstant){T.get(G,void 0,xb);let B=Ua(v,"coordinates",xZ(xb,C));N.push($t.toIso8601(V.start)),k.push(B),N.push($t.toIso8601(V.stop)),k.push(B)}else if(G instanceof nS)for(P=G._property._times,R=0;R<P.length;++R)N.push($t.toIso8601(P[R])),G.getValueInReferenceFrame(P[R],pp.FIXED,xb),k.push(xZ(xb,C));else if(G instanceof uM){P=G._times;let B=G._values;for(R=0;R<P.length;++R)N.push($t.toIso8601(P[R])),Z.fromArray(B,R*3,xb),k.push(xZ(xb,C))}else{let B=o.sampleDuration;V.start.clone(TE),V.isStartIncluded||$t.addSeconds(TE,B,TE);let Y=V.stop;for(;$t.lessThan(TE,Y);)G.getValue(TE,xb),N.push($t.toIso8601(TE)),k.push(xZ(xb,C)),$t.addSeconds(TE,B,TE);V.isStopIncluded&&$t.equals(TE,Y)&&(G.getValue(TE,xb),N.push($t.toIso8601(TE)),k.push(xZ(xb,C)))}let U=v.createElementNS(DE,"Track");U.appendChild(D);for(let B=0;B<N.length;++B){let Y=Ua(v,"when",N[B]),J=Ua(v,"coord",k[B],DE);U.appendChild(Y),U.appendChild(J)}L&&U.appendChild(pmt(o,m)),A.push(U)}if(A.length===1)x.push(A[0]);else if(A.length>1){let V=v.createElementNS(DE,"MultiTrack");for(I=0;I<A.length;++I)V.appendChild(A[I]);x.push(V)}if(F(m)&&!L){let V=m instanceof oV?dmt(o,m):hmt(o,m);y.push(V)}let M=f.path;if(F(M)){let V=T.get(M.width),G=M.material;if(F(G)||F(V)){let D=v.createElement("LineStyle");F(V)&&D.appendChild(Ua(v,"width",V)),zGe(o,G,D),y.push(D)}}}function hmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=m.createElement("IconStyle"),v=x.getColor(f.color);F(v)&&(y.appendChild(Ua(m,"color",v)),y.appendChild(Ua(m,"colorMode","normal")));let C=x.get(f.pixelSize);return F(C)&&y.appendChild(Ua(m,"scale",C/Z1e)),y}function dmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=o.externalFileHandler,v=m.createElement("IconStyle"),C=x.get(f.image);if(F(C)){C=y.texture(C);let I=m.createElement("Icon");I.appendChild(Ua(m,"href",C));let R=x.get(f.imageSubRegion);F(R)&&(I.appendChild(Ua(m,"x",R.x,DE)),I.appendChild(Ua(m,"y",R.y,DE)),I.appendChild(Ua(m,"w",R.width,DE)),I.appendChild(Ua(m,"h",R.height,DE))),v.appendChild(I)}let T=x.getColor(f.color);F(T)&&(v.appendChild(Ua(m,"color",T)),v.appendChild(Ua(m,"colorMode","normal")));let S=x.get(f.scale);F(S)&&v.appendChild(Ua(m,"scale",S));let w=x.get(f.pixelOffset);if(F(w)){S=S??1,rt.divideByScalar(w,S,w);let I=x.get(f.width,Z1e),R=x.get(f.height,Z1e),P=x.get(f.horizontalOrigin,ec.CENTER);P===ec.CENTER?w.x-=I*.5:P===ec.RIGHT&&(w.x-=I);let A=x.get(f.verticalOrigin,jn.CENTER);A===jn.TOP?w.y+=R:A===jn.CENTER&&(w.y+=R*.5);let M=m.createElement("hotSpot");M.setAttribute("x",-w.x),M.setAttribute("y",w.y),M.setAttribute("xunits","pixels"),M.setAttribute("yunits","pixels"),v.appendChild(M)}let E=x.get(f.rotation),L=x.get(f.alignedAxis);return F(E)&&Z.equals(Z.UNIT_Z,L)&&(E=be.toDegrees(-E),E===0&&(E=360),v.appendChild(Ua(m,"heading",E))),v}function xHi(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=o.valueGetter;if(!F(f))return;let T=y.createElement("LineString"),S=y.createElement("altitudeMode"),w=C.get(f.clampToGround,!1),E;w?(T.appendChild(Ua(y,"tessellate",!0)),E=y.createTextNode("clampToGround")):E=y.createTextNode("absolute"),S.appendChild(E),T.appendChild(S);let L=f.positions,I=C.get(L),R=Ua(y,"coordinates",xZ(I,v));T.appendChild(R);let P=C.get(f.zIndex);w&&F(P)&&T.appendChild(Ua(y,"drawOrder",P,DE)),m.push(T);let A=y.createElement("LineStyle"),M=C.get(f.width);F(M)&&A.appendChild(Ua(y,"width",M)),zGe(o,f.material,A),x.push(A)}function gHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=y.get(f.height,0);m>0&&(v=m);let C=f.coordinates,T=y.get(C),S=[],w=[vi.northeast,vi.southeast,vi.southwest,vi.northwest];for(let R=0;R<4;++R)w[R](T,rv),S.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${v}`);let E=Ua(x,"coordinates",S.join(" ")),L=x.createElement("outerBoundaryIs"),I=x.createElement("LinearRing");return I.appendChild(E),L.appendChild(I),[L]}function a7e(o,f,m,x){let y=o.kmlDoc,v=o.ellipsoid,C=[],T=f.length;for(let E=0;E<T;++E)Gt.fromCartesian(f[E],v,rv),C.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${x?rv.height:m}`);let S=Ua(y,"coordinates",C.join(" ")),w=y.createElement("LinearRing");return w.appendChild(S),w}function yHi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=y.get(f.height,0),C=y.get(f.perPositionHeight,!1);!C&&m>0&&(v=m);let T=[],S=f.hierarchy,w=y.get(S),E=Array.isArray(w)?w:w.positions,L=x.createElement("outerBoundaryIs");L.appendChild(a7e(o,E,v,C)),T.push(L);let I=w.holes;if(F(I)){let R=I.length;for(let P=0;P<R;++P){let A=x.createElement("innerBoundaryIs");A.appendChild(a7e(o,I[P].positions,v,C)),T.push(A)}}return T}function s7e(o,f,m,x,y){let v=o.kmlDoc,C=o.valueGetter;if(!F(f))return;let T=f instanceof Pz;if(T&&C.getMaterialType(f.material)==="Image"){_Hi(o,f,y);return}let S=v.createElement("Polygon"),w=C.get(f.extrudedHeight,0);w>0&&S.appendChild(Ua(v,"extrude",!0));let E=T?gHi(o,f,w):yHi(o,f,w),L=E.length;for(let M=0;M<L;++M)S.appendChild(E[M]);let I=v.createElement("altitudeMode");I.appendChild(OZ(o,f.heightReference)),S.appendChild(I),m.push(S);let R=v.createElement("PolyStyle"),P=C.get(f.fill,!1);P&&R.appendChild(Ua(v,"fill",P)),zGe(o,f.material,R);let A=C.get(f.outline,!1);if(A){R.appendChild(Ua(v,"outline",A));let M=v.createElement("LineStyle"),V=C.get(f.outlineWidth,1);M.appendChild(Ua(v,"width",V));let G=C.getColor(f.outlineColor,Xe.BLACK);M.appendChild(Ua(v,"color",G)),M.appendChild(Ua(v,"colorMode","normal")),x.push(M)}x.push(R)}function _Hi(o,f,m){let x=o.kmlDoc,y=o.valueGetter,v=o.externalFileHandler,C=x.createElement("GroundOverlay"),T=x.createElement("altitudeMode");T.appendChild(OZ(o,f.heightReference)),C.appendChild(T);let S=y.get(f.height);F(S)&&C.appendChild(Ua(x,"altitude",S));let w=y.get(f.coordinates),E=x.createElement("LatLonBox");E.appendChild(Ua(x,"north",be.toDegrees(w.north))),E.appendChild(Ua(x,"south",be.toDegrees(w.south))),E.appendChild(Ua(x,"east",be.toDegrees(w.east))),E.appendChild(Ua(x,"west",be.toDegrees(w.west))),C.appendChild(E);let L=y.get(f.material),I=v.texture(L.image),R=x.createElement("Icon");R.appendChild(Ua(x,"href",I)),C.appendChild(R);let P=L.color;F(P)&&C.appendChild(Ua(x,"color",gZ(L.color))),m.push(C)}function pmt(o,f){let m=o.kmlDoc,x=o.valueGetter,y=o.externalFileHandler,v=m.createElement("Model"),C=x.get(f.scale);if(F(C)){let w=m.createElement("scale");w.appendChild(Ua(m,"x",C)),w.appendChild(Ua(m,"y",C)),w.appendChild(Ua(m,"z",C)),v.appendChild(w)}let T=m.createElement("Link"),S=y.model(f,o.time);return T.appendChild(Ua(m,"href",S)),v.appendChild(T),v}function vHi(o,f,m,x,y){let v=o.kmlDoc,C=o.ellipsoid,T=o.valueGetter;if(!F(m))return;let S=f.position;if(!S.isConstant){cmt(o,f,m,x,y);return}let w=pmt(o,m),E=v.createElement("altitudeMode");E.appendChild(OZ(o,m.heightReference)),w.appendChild(E),T.get(S,void 0,xb),Gt.fromCartesian(xb,C,rv);let L=v.createElement("Location");L.appendChild(Ua(v,"longitude",be.toDegrees(rv.longitude))),L.appendChild(Ua(v,"latitude",be.toDegrees(rv.latitude))),L.appendChild(Ua(v,"altitude",rv.height)),w.appendChild(L),x.push(w)}function zGe(o,f,m){let x=o.kmlDoc,y=o.valueGetter;if(!F(f))return;let v=y.get(f);if(!F(v))return;let C,T=y.getMaterialType(f),S,w;switch(T){case"Image":C=gZ(Xe.WHITE);break;case"Color":case"Grid":case"PolylineGlow":case"PolylineArrow":case"PolylineDash":C=gZ(v.color);break;case"PolylineOutline":C=gZ(v.color),S=gZ(v.outlineColor),w=v.outlineWidth,m.appendChild(Ua(x,"outerColor",S,DE)),m.appendChild(Ua(x,"outerWidth",w,DE));break;case"Stripe":C=gZ(v.oddColor);break}F(C)&&(m.appendChild(Ua(x,"color",C)),m.appendChild(Ua(x,"colorMode","normal")))}function OZ(o,f){let m=o.kmlDoc,x=o.valueGetter.get(f,Mn.NONE),y;switch(x){case Mn.NONE:y=m.createTextNode("absolute");break;case Mn.CLAMP_TO_GROUND:y=m.createTextNode("clampToGround");break;case Mn.RELATIVE_TO_GROUND:y=m.createTextNode("relativeToGround");break}return y}function xZ(o,f){Array.isArray(o)||(o=[o]);let m=o.length,x=[];for(let y=0;y<m;++y)Gt.fromCartesian(o[y],f,rv),x.push(`${be.toDegrees(rv.longitude)},${be.toDegrees(rv.latitude)},${rv.height}`);return x.join(" ")}function Ua(o,f,m,x){m=m??"",typeof m=="boolean"&&(m=m?"1":"0");let y=F(x)?o.createElementNS(x,f):o.createElement(f),v=m==="string"&&m.indexOf("<")!==-1?o.createCDATASection(m):o.createTextNode(m);return y.appendChild(v),y}function gZ(o){let f="",m=o.toBytes();for(let x=3;x>=0;--x)f+=m[x]<16?`0${m[x].toString(16)}`:m[x].toString(16);return f}var fmt=HGe,mmt;typeof DOMParser<"u"&&(mmt=new DOMParser);var bHi=new Unt({stripPrefix:!1,email:!1,replaceFn:function(o,f){return f.urlMatchType==="scheme"||f.urlMatchType==="www"}}),ule=32,l7e=2414016,u7e=1,c7e=16093e3,h7e=.1,CHi=[null,void 0,"http://www.topografix.com/GPX/1/1"],sd={gpx:CHi};function THi(o){return new Promise((f,m)=>{let x=new FileReader;x.addEventListener("load",function(){f(x.result)}),x.addEventListener("error",function(){m(x.error)}),x.readAsText(o)})}function YGe(o,f){let m=P6(o,"id");return m=F(m)?m:du(),f.getOrCreateEntity(m)}function KGe(o){let f=d7e(o,"lon"),m=d7e(o,"lat"),x=bj(o,"ele",sd.gpx);return Z.fromDegrees(f,m,x)}function d7e(o,f){if(!F(o))return;let m=o.getAttribute(f);if(m!==null){let x=parseFloat(m);return isNaN(x)?void 0:x}}function P6(o,f){if(!F(o))return;let m=o.getAttribute(f);return m!==null?m:void 0}function iD(o,f,m){if(!F(o))return;let x=o.childNodes,y=x.length;for(let v=0;v<y;v++){let C=x[v];if(C.localName===f&&m.indexOf(C.namespaceURI)!==-1)return C}}function JGe(o,f,m){if(!F(o))return;let x=[],y=o.getElementsByTagName(f),v=y.length;for(let C=0;C<v;C++){let T=y[C];T.localName===f&&m.indexOf(T.namespaceURI)!==-1&&x.push(T)}return x}function bj(o,f,m){let x=iD(o,f,m);if(F(x)){let y=parseFloat(x.textContent);return isNaN(y)?void 0:y}}function Ib(o,f,m){let x=iD(o,f,m);if(F(x))return x.textContent.trim()}function xmt(o){let f=new oV;return f.width=ule,f.height=ule,f.scaleByDistance=new ea(l7e,u7e,c7e,h7e),f.pixelOffsetScaleByDistance=new ea(l7e,u7e,c7e,h7e),f.verticalOrigin=new Qc(jn.BOTTOM),f.image=o,f}function SHi(){let o=new Lz;return o.translucencyByDistance=new ea(3e6,1,5e6,0),o.pixelOffset=new rt(17,0),o.horizontalOrigin=ec.LEFT,o.font="16px sans-serif",o.style=f0.FILL_AND_OUTLINE,o}function gmt(o){let f=new bI;return f.width=4,f.material=new KM,f.material.color=F(o)?o:Xe.RED,f.material.outlineWidth=2,f.material.outlineColor=Xe.BLACK,f}var p7e={time:{text:"Time",tag:"time"},comment:{text:"Comment",tag:"cmt"},description:{text:"Description",tag:"desc"},source:{text:"Source",tag:"src"},number:{text:"GPS track/route number",tag:"number"},type:{text:"Type",tag:"type"}},Cj;typeof document<"u"&&(Cj=document.createElement("div"));function jGe(o,f){let m,x="",y=Object.keys(p7e),v=y.length;for(m=0;m<v;m++){let E=y[m],L=p7e[E];L.value=Ib(o,L.tag,sd.gpx)??"",F(L.value)&&L.value!==""&&(x=`${x}<p>${L.text}: ${L.value}</p>`)}if(!F(x)||x==="")return;x=bHi.link(x),Cj.innerHTML=x;let C=Cj.querySelectorAll("a");for(m=0;m<C.length;m++)C[m].setAttribute("target","_blank");let T=Xe.WHITE,S=Xe.BLACK,w='<div class="cesium-infoBox-description-lighter" style="';return w+="overflow:auto;",w+="word-wrap:break-word;",w+=`background-color:${T.toCssColorString()};`,w+=`color:${S.toCssColorString()};`,w+='">',w+=`${Cj.innerHTML}</div>`,Cj.innerHTML="",w}function ymt(o,f,m,x){let y=KGe(f),v=YGe(f,m);v.position=y;let C=F(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",Xe.RED,ule);v.billboard=xmt(C);let T=Ib(f,"name",sd.gpx);v.name=T,v.label=SHi(),v.label.text=T,v.description=jGe(f,v),x.clampToGround&&(v.billboard.heightReference=Mn.CLAMP_TO_GROUND,v.label.heightReference=Mn.CLAMP_TO_GROUND)}function wHi(o,f,m,x){let y=YGe(f,m);y.description=jGe(f,y);let v=JGe(f,"rtept",sd.gpx),C=new Array(v.length);for(let T=0;T<v.length;T++)ymt(o,v[T],m,x),C[T]=KGe(v[T]);y.polyline=gmt(x.routeColor),x.clampToGround&&(y.polyline.clampToGround=!0),y.polyline.positions=C}function EHi(o,f,m,x){let y=YGe(f,m);y.description=jGe(f,y);let v=JGe(f,"trkseg",sd.gpx),C=[],T=[],S,w=!0,E=new nS;for(let L=0;L<v.length;L++)S=LHi(v[L]),C=C.concat(S.positions),S.times.length>0?(T=T.concat(S.times),E.addSamples(T,C),w=w&&!0):w=!1;if(w){let L=F(x.waypointImage)?x.waypointImage:o._pinBuilder.fromMakiIconId("marker",Xe.RED,ule);y.billboard=xmt(L),y.position=E,x.clampToGround&&(y.billboard.heightReference=Mn.CLAMP_TO_GROUND),y.availability=new k_,y.availability.addInterval(new js({start:T[0],stop:T[T.length-1]}))}y.polyline=gmt(x.trackColor),y.polyline.positions=C,x.clampToGround&&(y.polyline.clampToGround=!0)}function LHi(o){let f={positions:[],times:[]},m=JGe(o,"trkpt",sd.gpx),x;for(let y=0;y<m.length;y++){let v=KGe(m[y]);f.positions.push(v),x=Ib(m[y],"time",sd.gpx),F(x)&&f.times.push($t.fromIso8601(x))}return f}function PHi(o){let f=iD(o,"metadata",sd.gpx);if(F(f)){let m={name:Ib(f,"name",sd.gpx),desc:Ib(f,"desc",sd.gpx),author:IHi(f),copyright:AHi(f),link:_mt(f),time:Ib(f,"time",sd.gpx),keywords:Ib(f,"keywords",sd.gpx),bounds:MHi(f)};if(F(m.name)||F(m.desc)||F(m.author)||F(m.copyright)||F(m.link)||F(m.time)||F(m.keywords)||F(m.bounds))return m}}function IHi(o){let f=iD(o,"author",sd.gpx);if(F(f)){let m={name:Ib(f,"name",sd.gpx),email:RHi(f),link:_mt(f)};if(F(m.name)||F(m.email)||F(m.link))return m}}function RHi(o){let f=iD(o,"email",sd.gpx);if(F(f)){let m=Ib(f,"id",sd.gpx),x=Ib(f,"domain",sd.gpx);return`${m}@${x}`}}function _mt(o){let f=iD(o,"link",sd.gpx);if(F(f)){let m={href:P6(f,"href"),text:Ib(f,"text",sd.gpx),mimeType:Ib(f,"type",sd.gpx)};if(F(m.href)||F(m.text)||F(m.mimeType))return m}}function AHi(o){let f=iD(o,"copyright",sd.gpx);if(F(f)){let m={author:P6(f,"author"),year:Ib(f,"year",sd.gpx),license:Ib(f,"license",sd.gpx)};if(F(m.author)||F(m.year)||F(m.license))return m}}function MHi(o){let f=iD(o,"bounds",sd.gpx);if(F(f)){let m={minLat:bj(f,"minlat",sd.gpx),maxLat:bj(f,"maxlat",sd.gpx),minLon:bj(f,"minlon",sd.gpx),maxLon:bj(f,"maxlon",sd.gpx)};if(F(m.minLat)||F(m.maxLat)||F(m.minLon)||F(m.maxLon))return m}}var f7e={wpt:ymt,rte:wHi,trk:EHi};function VHi(o,f,m,x){let y=Object.keys(f7e),v=y.length;for(let C=0;C<v;C++){let T=y[C],S=f7e[T],w=f.childNodes,E=w.length;for(let L=0;L<E;L++){let I=w[L];I.localName===T&&sd.gpx.indexOf(I.namespaceURI)!==-1&&S(o,I,m,x)}}}function m7e(o,f,m){let x=o._entityCollection;x.removeAll();let y=f.documentElement,v=P6(y,"version"),C=P6(y,"creator"),T,S=PHi(y);F(S)&&(T=S.name),y.localName==="gpx"?VHi(o,y,x,m):console.log(`GPX - Unsupported node: ${y.localName}`);let w,E=x.computeAvailability(),L=E.start,I=E.stop,R=$t.equals(L,wn.MINIMUM_VALUE),P=$t.equals(I,wn.MAXIMUM_VALUE);if(!R||!P){let M;R&&(M=new Date,M.setHours(0,0,0,0),L=$t.fromDate(M)),P&&(M=new Date,M.setHours(24,0,0,0),I=$t.fromDate(M)),w=new r9,w.startTime=L,w.stopTime=I,w.currentTime=$t.clone(L),w.clockRange=Gx.LOOP_STOP,w.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,w.multiplier=Math.round(Math.min(Math.max($t.secondsDifference(I,L)/60,1),31556900))}let A=!1;return o._name!==T&&(o._name=T,A=!0),o._creator!==C&&(o._creator=C,A=!0),GHi(o._metadata,S)&&(o._metadata=S,A=!0),o._version!==v&&(o._version=v,A=!0),w!==o._clock&&(A=!0,o._clock=w),A&&o._changed.raiseEvent(o),Sy.setLoading(o,!1),o}function GHi(o,f){return!F(o)&&!F(f)?!1:F(o)&&F(f)?o.name!==f.name||o.dec!==f.desc||o.src!==f.src||o.author!==f.author||o.copyright!==f.copyright||o.link!==f.link||o.time!==f.time||o.bounds!==f.bounds:!0}function FHi(o,f,m,x){x=x??si.EMPTY_OBJECT;let y=m;if(typeof m=="string"||m instanceof Mr){m=Mr.createIfNeeded(m),y=m.fetchBlob();let v=o._resourceCredits,C=m.credits;if(F(C)){let T=C.length;for(let S=0;S<T;S++)v.push(C[S])}}return Promise.resolve(y).then(function(v){return v instanceof Blob?THi(v).then(function(C){let T,S;try{T=mmt.parseFromString(C,"application/xml")}catch(w){S=w.toString()}if(F(S)||T.body||T.documentElement.tagName==="parsererror"){let w=F(S)?S:T.documentElement.firstChild.nodeValue;throw w||(w=T.body.innerText),new Oi(w)}return m7e(o,T,x)}):m7e(o,v,x)}).catch(function(v){return o._error.raiseEvent(o,v),console.log(v),Promise.reject(v)})}function JH(){this._changed=new Tr,this._error=new Tr,this._loading=new Tr,this._clock=void 0,this._entityCollection=new kS(this),this._entityCluster=new AF,this._name=void 0,this._version=void 0,this._creator=void 0,this._metadata=void 0,this._isLoading=!1,this._pinBuilder=new b7}JH.load=function(o,f){return new JH().load(o,f)};Object.defineProperties(JH.prototype,{name:{get:function(){return this._name}},version:{get:function(){return this._version}},creator:{get:function(){return this._creator}},metadata:{get:function(){return this._metadata}},clock:{get:function(){return this._clock}},entities:{get:function(){return this._entityCollection}},isLoading:{get:function(){return this._isLoading}},changedEvent:{get:function(){return this._changed}},errorEvent:{get:function(){return this._error}},loadingEvent:{get:function(){return this._loading}},show:{get:function(){return this._entityCollection.show},set:function(o){this._entityCollection.show=o}},clustering:{get:function(){return this._entityCluster},set:function(o){this._entityCluster=o}}});JH.prototype.update=function(o){return!0};JH.prototype.load=function(o,f){if(!F(o))throw new wt("data is required.");f=f??si.EMPTY_OBJECT,Sy.setLoading(this,!0);let m=this._name,x=this;return FHi(this,this._entityCollection,o,f).then(function(){let y,v=x._entityCollection.computeAvailability(),C=v.start,T=v.stop,S=$t.equals(C,wn.MINIMUM_VALUE),w=$t.equals(T,wn.MAXIMUM_VALUE);if(!S||!w){let L;S&&(L=new Date,L.setHours(0,0,0,0),C=$t.fromDate(L)),w&&(L=new Date,L.setHours(24,0,0,0),T=$t.fromDate(L)),y=new r9,y.startTime=C,y.stopTime=T,y.currentTime=$t.clone(C),y.clockRange=Gx.LOOP_STOP,y.clockStep=kd.SYSTEM_CLOCK_MULTIPLIER,y.multiplier=Math.round(Math.min(Math.max($t.secondsDifference(T,C)/60,1),31556900))}let E=!1;return y!==x._clock&&(x._clock=y,E=!0),m!==x._name&&(E=!0),E&&x._changed.raiseEvent(x),Sy.setLoading(x,!1),x}).catch(function(y){return Sy.setLoading(x,!1),x._error.raiseEvent(x,y),console.log(y),Promise.reject(y)})};var QGe=JH;function $q(){wt.throwInstantiationError()}$q.prototype.update=wt.throwInstantiationError;$q.prototype.getBoundingSphere=wt.throwInstantiationError;$q.prototype.isDestroyed=wt.throwInstantiationError;$q.prototype.destroy=wt.throwInstantiationError;var vmt=$q;function F4(o,f){this._tilingScheme=o,this._maximumLevel=f,this._rootNodes=[]}var lZ=new vi;function DHi(o,f,m,x){let y=x.length;for(let v=0;v<y;++v){let C=x[v];if(C.x===f&&C.y===m&&C.level===o)return!0}return!1}F4.prototype.addAvailableTileRange=function(o,f,m,x,y){let v=this._tilingScheme,C=this._rootNodes;if(o===0)for(let I=m;I<=y;++I)for(let R=f;R<=x;++R)DHi(o,R,I,C)||C.push(new tB(v,void 0,0,R,I));v.tileXYToRectangle(f,m,o,lZ);let T=lZ.west,S=lZ.north;v.tileXYToRectangle(x,y,o,lZ);let w=lZ.east,E=lZ.south,L=new XHi(o,T,E,w,S);for(let I=0;I<C.length;++I){let R=C[I];qGe(R.extent,L)&&kHi(this._maximumLevel,R,L)}};F4.prototype.computeMaximumLevelAtPosition=function(o){let f;for(let m=0;m<this._rootNodes.length;++m){let x=this._rootNodes[m];if(iB(x.extent,o)){f=x;break}}return F(f)?Tj(void 0,f,o):-1};var NHi=[],WHi=[],ZHi=new vi,OHi=new vi;F4.prototype.computeBestAvailableLevelOverRectangle=function(o){let f=NHi;f.length=0,o.east<o.west?(f.push(vi.fromRadians(-Math.PI,o.south,o.east,o.north,ZHi)),f.push(vi.fromRadians(o.west,o.south,Math.PI,o.north,OHi))):f.push(o);let m=WHi;m.length=0;let x;for(x=0;x<this._rootNodes.length;++x)Sj(m,this._rootNodes[x],f);for(x=m.length-1;x>=0;--x)if(F(m[x])&&m[x].length===0)return x;return 0};var x7e=new Gt;F4.prototype.isTileAvailable=function(o,f,m){let x=this._tilingScheme.tileXYToRectangle(f,m,o,lZ);return vi.center(x,x7e),this.computeMaximumLevelAtPosition(x7e)>=o};F4.prototype.computeChildMaskForTile=function(o,f,m){let x=o+1;if(x>=this._maximumLevel)return 0;let y=0;return y|=this.isTileAvailable(x,2*f,2*m+1)?1:0,y|=this.isTileAvailable(x,2*f+1,2*m+1)?2:0,y|=this.isTileAvailable(x,2*f,2*m)?4:0,y|=this.isTileAvailable(x,2*f+1,2*m)?8:0,y};function tB(o,f,m,x,y){this.tilingScheme=o,this.parent=f,this.level=m,this.x=x,this.y=y,this.extent=o.tileXYToRectangle(x,y,m),this.rectangles=[],this._sw=void 0,this._se=void 0,this._nw=void 0,this._ne=void 0}Object.defineProperties(tB.prototype,{nw:{get:function(){return this._nw||(this._nw=new tB(this.tilingScheme,this,this.level+1,this.x*2,this.y*2)),this._nw}},ne:{get:function(){return this._ne||(this._ne=new tB(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2)),this._ne}},sw:{get:function(){return this._sw||(this._sw=new tB(this.tilingScheme,this,this.level+1,this.x*2,this.y*2+1)),this._sw}},se:{get:function(){return this._se||(this._se=new tB(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2+1)),this._se}}});function XHi(o,f,m,x,y){this.level=o,this.west=f,this.south=m,this.east=x,this.north=y}function qGe(o,f){let m=Math.max(o.west,f.west),x=Math.max(o.south,f.south),y=Math.min(o.east,f.east),v=Math.min(o.north,f.north);return x<v&&m<y}function kHi(o,f,m){for(;f.level<o;)if(coe(f.nw.extent,m))f=f.nw;else if(coe(f.ne.extent,m))f=f.ne;else if(coe(f.sw.extent,m))f=f.sw;else if(coe(f.se.extent,m))f=f.se;else break;if(f.rectangles.length===0||f.rectangles[f.rectangles.length-1].level<=m.level)f.rectangles.push(m);else{let x=Nx(f.rectangles,m.level,UHi);x<0&&(x=~x),f.rectangles.splice(x,0,m)}}function UHi(o,f){return o.level-f}function coe(o,f){return f.west>=o.west&&f.east<=o.east&&f.south>=o.south&&f.north<=o.north}function iB(o,f){return f.longitude>=o.west&&f.longitude<=o.east&&f.latitude>=o.south&&f.latitude<=o.north}function Tj(o,f,m){let x=0,y=!1;for(;!y;){let v=f._nw&&iB(f._nw.extent,m),C=f._ne&&iB(f._ne.extent,m),T=f._sw&&iB(f._sw.extent,m),S=f._se&&iB(f._se.extent,m);if(v+C+T+S>1){v&&(x=Math.max(x,Tj(f,f._nw,m))),C&&(x=Math.max(x,Tj(f,f._ne,m))),T&&(x=Math.max(x,Tj(f,f._sw,m))),S&&(x=Math.max(x,Tj(f,f._se,m)));break}else v?f=f._nw:C?f=f._ne:T?f=f._sw:S?f=f._se:y=!0}for(;f!==o;){let v=f.rectangles;for(let C=v.length-1;C>=0&&v[C].level>x;--C){let T=v[C];iB(T,m)&&(x=T.level)}f=f.parent}return x}function Sj(o,f,m){if(!f)return;let x,y=!1;for(x=0;x<m.length;++x)y=y||qGe(f.extent,m[x]);if(!y)return;let v=f.rectangles;for(x=0;x<v.length;++x){let C=v[x];o[C.level]||(o[C.level]=m),o[C.level]=BHi(o[C.level],C)}Sj(o,f._nw,m),Sj(o,f._ne,m),Sj(o,f._sw,m),Sj(o,f._se,m)}function BHi(o,f){let m=[];for(let x=0;x<o.length;++x){let y=o[x];qGe(y,f)?(y.west<f.west&&m.push(new vi(y.west,y.south,f.west,y.north)),y.east>f.east&&m.push(new vi(f.east,y.south,y.east,y.north)),y.south<f.south&&m.push(new vi(Math.max(f.west,y.west),y.south,Math.min(f.east,y.east),f.south)),y.north>f.north&&m.push(new vi(Math.max(f.west,y.west),f.north,Math.min(f.east,y.east),y.north))):m.push(y)}return m}var kG=F4,HHi=15;function bmt(o){this.ellipsoid=o.ellipsoid??yi.default,this.credit=void 0,this.tilingScheme=void 0,this.height=void 0,this.width=void 0,this.encoding=void 0,this.lodCount=void 0,this.hasAvailability=!1,this.tilesAvailable=void 0,this.tilesAvailabilityLoaded=void 0,this.levelZeroMaximumGeometricError=void 0,this.terrainDataStructure=void 0}bmt.prototype.build=function(o){o._credit=this.credit,o._tilingScheme=this.tilingScheme,o._height=this.height,o._width=this.width,o._encoding=this.encoding,o._lodCount=this.lodCount,o._hasAvailability=this.hasAvailability,o._tilesAvailable=this.tilesAvailable,o._tilesAvailabilityLoaded=this.tilesAvailabilityLoaded,o._levelZeroMaximumGeometricError=this.levelZeroMaximumGeometricError,o._terrainDataStructure=this.terrainDataStructure};function zHi(o,f){let m=f.copyrightText;F(m)&&(o.credit=new Oa(m));let x=f.spatialReference,y=x.latestWkid??x.wkid,v=f.extent,C={ellipsoid:o.ellipsoid};if(y===4326||y===4490)C.rectangle=vi.fromDegrees(v.xmin,v.ymin,v.xmax,v.ymax),o.tilingScheme=new _h(C);else if(y===3857){let S=Math.PI*o.ellipsoid.maximumRadius;f.extent.xmax>S&&(f.extent.xmax=S),f.extent.ymax>S&&(f.extent.ymax=S),f.extent.xmin<-S&&(f.extent.xmin=-S),f.extent.ymin<-S&&(f.extent.ymin=-S),C.rectangleSouthwestInMeters=new rt(v.xmin,v.ymin),C.rectangleNortheastInMeters=new rt(v.xmax,v.ymax),o.tilingScheme=new xp(C)}else throw new Oi("Invalid spatial reference");let T=f.tileInfo;if(!F(T))throw new Oi("tileInfo is required");o.width=T.rows+1,o.height=T.cols+1,o.encoding=T.format==="LERC"?dF.LERC:dF.NONE,o.lodCount=T.lods.length-1,(o.hasAvailability=f.capabilities.indexOf("Tilemap")!==-1)&&(o.tilesAvailable=new kG(o.tilingScheme,o.lodCount),o.tilesAvailable.addAvailableTileRange(0,0,0,o.tilingScheme.getNumberOfXTilesAtLevel(0),o.tilingScheme.getNumberOfYTilesAtLevel(0)),o.tilesAvailabilityLoaded=new kG(o.tilingScheme,o.lodCount)),o.levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.tilingScheme.ellipsoid,o.width,o.tilingScheme.getNumberOfXTilesAtLevel(0)),f.bandCount>1&&console.log("ArcGISTiledElevationTerrainProvider: Terrain data has more than 1 band. Using the first one."),F(f.minValues)&&F(f.maxValues)?o.terrainDataStructure={elementMultiplier:1,lowestEncodedHeight:f.minValues[0],highestEncodedHeight:f.maxValues[0]}:o.terrainDataStructure={elementMultiplier:1}}async function YHi(o,f,m){try{let x=await f.fetchJson();zHi(o,x)}catch(x){let y=`An error occurred while accessing ${f}.`;throw am.reportError(void 0,m,F(m)?m._errorEvent:void 0,y),x}}function yF(o){o=o??si.EMPTY_OBJECT,this._resource=void 0,this._credit=void 0,this._tilingScheme=void 0,this._levelZeroMaximumGeometricError=void 0,this._maxLevel=void 0,this._terrainDataStructure=void 0,this._width=void 0,this._height=void 0,this._encoding=void 0,this._lodCount=void 0,this._hasAvailability=!1,this._tilesAvailable=void 0,this._tilesAvailabilityLoaded=void 0,this._availableCache={},this._errorEvent=new Tr}Object.defineProperties(yF.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){return this._tilesAvailable}}});yF.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Mr.createIfNeeded(o);m.appendForwardSlash(),F(f.token)&&(m=m.getDerivedResource({queryParameters:{token:f.token}}));let x=m.getDerivedResource({queryParameters:{f:"pjson"}}),y=new bmt(f);await YHi(y,x);let v=new yF(f);return y.build(v),v._resource=m,v};yF.prototype.requestTileGeometry=function(o,f,m,x){let y=this._resource.getDerivedResource({url:`tile/${m}/${f}/${o}`,request:x}),v=this._hasAvailability,C=Promise.resolve(!0),T;if(v&&!F($Ge(this,m+1,o*2,f*2))){let L=Cmt(this,m+1,o*2,f*2);C=L.promise,T=L.request}let S=y.fetchArrayBuffer();if(!F(S)||!F(C))return;let w=this,E=this._tilesAvailable;return Promise.all([S,C]).then(function(L){return new yL({buffer:L[0],width:w._width,height:w._height,childTileMask:v?E.computeChildMaskForTile(m,o,f):HHi,structure:w._terrainDataStructure,encoding:w._encoding})}).catch(async function(L){if(F(T)&&T.state===pc.CANCELLED){x.cancel();try{await x.deferred?.promise}catch{}return x.state=pc.CANCELLED,Promise.reject(L)}return Promise.reject(L)})};function $Ge(o,f,m,x){if(!o._hasAvailability)return;let y=o._tilesAvailabilityLoaded,v=o._tilesAvailable;if(f>o._lodCount)return!1;if(v.isTileAvailable(f,m,x))return!0;if(y.isTileAvailable(f,m,x))return!1}yF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};yF.prototype.getTileDataAvailable=function(o,f,m){if(!this._hasAvailability)return;let x=$Ge(this,m,o,f);if(F(x))return x;Cmt(this,m,o,f)};yF.prototype.loadTileDataAvailability=function(o,f,m){};function KHi(o,f,m,x){let y=f-1,v=m-1,C=x[o.y*f+o.x],T=[],S={startX:o.x,startY:o.y,endX:0,endY:0},w=new rt(o.x+1,o.y+1),E=!1,L=!1;for(;!(E&&L);){let I=w.x,R=L?w.y+1:w.y;if(!E){for(let P=o.y;P<R;++P)if(x[P*f+w.x]!==C){E=!0;break}E?(T.push(new rt(w.x,o.y)),--w.x,--I,S.endX=w.x):w.x===y?(S.endX=w.x,E=!0):++w.x}if(!L){let P=w.y*f;for(let A=o.x;A<=I;++A)if(x[P+A]!==C){L=!0;break}L?(T.push(new rt(o.x,w.y)),--w.y,S.endY=w.y):w.y===v?(S.endY=w.y,L=!0):++w.y}}return{endingIndices:T,range:S,value:C}}function JHi(o,f,m,x,y){let v=[];if(y.every(function(T){return T===y[0]}))return y[0]===1&&v.push({startX:o,startY:f,endX:o+m-1,endY:f+x-1}),v;let C=[new rt(0,0)];for(;C.length>0;){let T=C.pop(),S=KHi(T,m,x,y);if(S.value===1){let E=S.range;E.startX+=o,E.endX+=o,E.startY+=f,E.endY+=f,v.push(E)}let w=S.endingIndices;w.length>0&&(C=C.concat(w))}return v}function Cmt(o,f,m,x){if(!o._hasAvailability)return{};let y=Math.floor(m/128)*128,v=Math.floor(x/128)*128,C=Math.min(1<<f,128),T=`tilemap/${f}/${v}/${y}/${C}/${C}`,S=o._availableCache;if(F(S[T]))return S[T];let w=new hm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN}),E=o._resource.getDerivedResource({url:T,request:w}).fetchJson();return F(E)?(E=E.then(function(L){let I=JHi(y,v,C,C,L.data);o._tilesAvailabilityLoaded.addAvailableTileRange(f,y,v,y+C,v+C);let R=o._tilesAvailable;for(let P=0;P<I.length;++P){let A=I[P];R.addAvailableTileRange(f,A.startX,A.startY,A.endX,A.endY)}return $Ge(o,f,m,x)}),S[T]={promise:E,request:w},E=E.finally(function(L){return delete S[T],L}),{promise:E,request:w}):{}}var fde=yF,Tmt="https://dev.virtualearth.net/REST/v1/Locations";function eFe(o){o=o??si.EMPTY_OBJECT;let f=o.key;this._key=f;let m={key:f};F(o.culture)&&(m.culture=o.culture),this._resource=new Mr({url:Tmt,queryParameters:m}),this._credit=new Oa('<img src="http://dev.virtualearth.net/Branding/logo_powered_by.png"/>',!1)}Object.defineProperties(eFe.prototype,{url:{get:function(){return Tmt}},key:{get:function(){return this._key}},credit:{get:function(){return this._credit}}});eFe.prototype.geocode=async function(o){return this._resource.getDerivedResource({queryParameters:{query:o}}).fetchJsonp("jsonp").then(function(f){return f.resourceSets.length===0?[]:f.resourceSets[0].resources.map(function(m){let x=m.bbox,y=x[0],v=x[1],C=x[2],T=x[3];return{displayName:m.name,destination:vi.fromDegrees(v,y,T,C)}})})};var Smt=eFe;function tFe(){}Object.defineProperties(tFe.prototype,{credit:{get:function(){}}});tFe.prototype.geocode=function(o){let f=o.match(/[^\s,\n]+/g);if(f.length===2||f.length===3){let m=+f[0],x=+f[1],y=f.length===3?+f[2]:300;if(isNaN(m)&&isNaN(x)){let v=/^(\d+.?\d*)([nsew])/i;for(let C=0;C<f.length;++C){let T=f[C].match(v);v.test(f[C])&&T.length===3&&(/^[ns]/i.test(T[2])?x=/^[n]/i.test(T[2])?+T[1]:-T[1]:/^[ew]/i.test(T[2])&&(m=/^[e]/i.test(T[2])?+T[1]:-T[1]))}}if(!isNaN(m)&&!isNaN(x)&&!isNaN(y)){let v={displayName:o,destination:Z.fromDegrees(m,x,y)};return Promise.resolve([v])}}return Promise.resolve([])};var wmt=tFe,jHi=new zt,g7e=new Z,HU=new Z;function QHi(o){let f=o.points,m=o.times;if(f.length<3){let x=m[0],y=1/(m[1]-x),v=f[0],C=f[1];return function(T,S){F(S)||(S=new Z);let w=(T-x)*y;return Z.lerp(v,C,w,S)}}return function(x,y){F(y)||(y=new Z);let v=o._lastTimeIndex=o.findTimeInterval(x,o._lastTimeIndex),C=(x-m[v])/(m[v+1]-m[v]),T=jHi;T.z=C,T.y=C*C,T.x=T.y*C,T.w=1;let S,w,E,L,I;return v===0?(S=f[0],w=f[1],E=o.firstTangent,L=Z.subtract(f[2],S,g7e),Z.multiplyByScalar(L,.5,L),I=Ee.multiplyByVector(p6.hermiteCoefficientMatrix,T,T)):v===f.length-2?(S=f[v],w=f[v+1],L=o.lastTangent,E=Z.subtract(w,f[v-1],g7e),Z.multiplyByScalar(E,.5,E),I=Ee.multiplyByVector(p6.hermiteCoefficientMatrix,T,T)):(S=f[v-1],w=f[v],E=f[v+1],L=f[v+2],I=Ee.multiplyByVector(rD.catmullRomCoefficientMatrix,T,T)),y=Z.multiplyByScalar(S,I.x,y),Z.multiplyByScalar(w,I.y,HU),Z.add(y,HU,y),Z.multiplyByScalar(E,I.z,HU),Z.add(y,HU,y),Z.multiplyByScalar(L,I.w,HU),Z.add(y,HU,y)}}var qHi=new Z,$Hi=new Z;function rD(o){o=o??si.EMPTY_OBJECT;let f=o.points,m=o.times,x=o.firstTangent,y=o.lastTangent;if(f.length>2&&(F(x)||(x=qHi,Z.multiplyByScalar(f[1],2,x),Z.subtract(x,f[2],x),Z.subtract(x,f[0],x),Z.multiplyByScalar(x,.5,x)),!F(y))){let v=f.length-1;y=$Hi,Z.multiplyByScalar(f[v-1],2,y),Z.subtract(f[v],y,y),Z.add(y,f[v-2],y),Z.multiplyByScalar(y,.5,y)}this._times=m,this._points=f,this._firstTangent=Z.clone(x),this._lastTangent=Z.clone(y),this._evaluateFunction=QHi(this),this._lastTimeIndex=0}Object.defineProperties(rD.prototype,{times:{get:function(){return this._times}},points:{get:function(){return this._points}},firstTangent:{get:function(){return this._firstTangent}},lastTangent:{get:function(){return this._lastTangent}}});rD.catmullRomCoefficientMatrix=new Ee(-.5,1,-.5,0,1.5,-2.5,0,1,-1.5,2,.5,0,.5,-.5,0,0);rD.prototype.findTimeInterval=B0.prototype.findTimeInterval;rD.prototype.wrapTime=B0.prototype.wrapTime;rD.prototype.clampTime=B0.prototype.clampTime;rD.prototype.evaluate=function(o,f){return this._evaluateFunction(o,f)};var Emt=rD,mde={};mde.clipTriangleAtAxisAlignedThreshold=function(o,f,m,x,y,v){F(v)?v.length=0:v=[];let C,T,S;f?(C=m<o,T=x<o,S=y<o):(C=m>o,T=x>o,S=y>o);let w=C+T+S,E,L,I,R,P,A;return w===1?C?(E=(o-m)/(x-m),L=(o-m)/(y-m),v.push(1),v.push(2),L!==1&&(v.push(-1),v.push(0),v.push(2),v.push(L)),E!==1&&(v.push(-1),v.push(0),v.push(1),v.push(E))):T?(I=(o-x)/(y-x),R=(o-x)/(m-x),v.push(2),v.push(0),R!==1&&(v.push(-1),v.push(1),v.push(0),v.push(R)),I!==1&&(v.push(-1),v.push(1),v.push(2),v.push(I))):S&&(P=(o-y)/(m-y),A=(o-y)/(x-y),v.push(0),v.push(1),A!==1&&(v.push(-1),v.push(2),v.push(1),v.push(A)),P!==1&&(v.push(-1),v.push(2),v.push(0),v.push(P))):w===2?!C&&m!==o?(R=(o-x)/(m-x),P=(o-y)/(m-y),v.push(0),v.push(-1),v.push(1),v.push(0),v.push(R),v.push(-1),v.push(2),v.push(0),v.push(P)):!T&&x!==o?(A=(o-y)/(x-y),E=(o-m)/(x-m),v.push(1),v.push(-1),v.push(2),v.push(1),v.push(A),v.push(-1),v.push(0),v.push(1),v.push(E)):!S&&y!==o&&(L=(o-m)/(y-m),I=(o-x)/(y-x),v.push(2),v.push(-1),v.push(0),v.push(2),v.push(L),v.push(-1),v.push(1),v.push(2),v.push(I)):w!==3&&(v.push(0),v.push(1),v.push(2)),v};mde.computeBarycentricCoordinates=function(o,f,m,x,y,v,C,T,S){let w=m-C,E=C-y,L=v-T,I=x-T,R=1/(L*w+E*I),P=f-T,A=o-C,M=(L*A+E*P)*R,V=(-I*A+w*P)*R,G=1-M-V;return F(S)?(S.x=M,S.y=V,S.z=G,S):new Z(M,V,G)};mde.computeLineSegmentLineSegmentIntersection=function(o,f,m,x,y,v,C,T,S){let w=(C-y)*(f-v)-(T-v)*(o-y),E=(m-o)*(f-v)-(x-f)*(o-y),L=(T-v)*(m-o)-(C-y)*(x-f);if(L===0)return;let I=w/L,R=E/L;if(I>=0&&I<=1&&R>=0&&R<=1)return F(S)||(S=new rt),S.x=o+I*(m-o),S.y=f+I*(x-f),S};var D4=mde;function _F(o){this._flattenPolygonHeight=o.flattenPolygonHeight||[1],this._flattenPolygon=o.flattenPolygon||[],this._flattenRectangle=o.flattenRectangle,this._quantizedVertices=o.quantizedVertices,this._encodedNormals=o.encodedNormals,this._indices=o.indices,this._minimumHeight=o.minimumHeight,this._maximumHeight=o.maximumHeight,this._boundingSphere=o.boundingSphere,this._orientedBoundingBox=o.orientedBoundingBox,this._horizonOcclusionPoint=o.horizonOcclusionPoint,this._credits=o.credits;let f=this._quantizedVertices.length/3,m=this._uValues=this._quantizedVertices.subarray(0,f),x=this._vValues=this._quantizedVertices.subarray(f,2*f);this._heightValues=this._quantizedVertices.subarray(2*f,3*f);function y(C,T){return x[C]-x[T]}function v(C,T){return m[C]-m[T]}this._westIndices=doe(o.westIndices,y,f),this._southIndices=doe(o.southIndices,v,f),this._eastIndices=doe(o.eastIndices,y,f),this._northIndices=doe(o.northIndices,v,f),this._westSkirtHeight=o.westSkirtHeight,this._southSkirtHeight=o.southSkirtHeight,this._eastSkirtHeight=o.eastSkirtHeight,this._northSkirtHeight=o.northSkirtHeight,this._childTileMask=o.childTileMask??15,this._createdByUpsampling=o.createdByUpsampling??!1,this._waterMask=o.waterMask,this._mesh=void 0}Object.defineProperties(_F.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){return this._waterMask}},childTileMask:{get:function(){return this._childTileMask}},canUpsample:{get:function(){return F(this._mesh)}}});var hoe=[];function doe(o,f,m){hoe.length=o.length;let x=!1;for(let y=0,v=o.length;y<v;++y)hoe[y]=o[y],x=x||y>0&&f(o[y-1],o[y])>0;return x?(hoe.sort(f),Fn.createTypedArray(m,hoe)):o}var Lmt="createVerticesFromQuantizedTerrainMesh",ezi=new mp(Lmt),tzi=new mp(Lmt,yO.maximumAsynchronousTasks);_F.prototype.createMesh=function(o){o=o??si.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,y=o.level,v=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,T=o.throttle??!0,S=f.ellipsoid,w=f.tileXYToRectangle(m,x,y),E=(T?tzi:ezi).scheduleTask({minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,quantizedVertices:this._quantizedVertices,octEncodedNormals:this._encodedNormals,includeWebMercatorT:!0,indices:this._indices,westIndices:this._westIndices,southIndices:this._southIndices,eastIndices:this._eastIndices,northIndices:this._northIndices,westSkirtHeight:this._westSkirtHeight,southSkirtHeight:this._southSkirtHeight,eastSkirtHeight:this._eastSkirtHeight,northSkirtHeight:this._northSkirtHeight,rectangle:w,relativeToCenter:this._boundingSphere.center,ellipsoid:S,exaggeration:v,exaggerationRelativeHeight:C,flattenPolygonHeight:this._flattenPolygonHeight,flattenPolygon:this._flattenPolygon});if(!F(E))return;let L=this;return Promise.resolve(E).then(function(I){let R=L._quantizedVertices.length/3,P=R+L._westIndices.length+L._southIndices.length+L._eastIndices.length+L._northIndices.length,A=Fn.createTypedArray(P,I.indices),M=new Float32Array(I.vertices),V=I.center,G=I.minimumHeight,D=I.maximumHeight,N=L._boundingSphere,k=L._orientedBoundingBox,U=Z.clone(I.occludeePointInScaledSpace)??L._horizonOcclusionPoint,B=I.vertexStride,Y=PS.clone(I.encoding);return L._mesh=new _O(V,M,A,I.indexCountWithoutSkirts,R,G,D,N,U,B,k,Y,I.westIndicesSouthToNorth,I.southIndicesEastToWest,I.eastIndicesNorthToSouth,I.northIndicesWestToEast),L._quantizedVertices=void 0,L._encodedNormals=void 0,L._indices=void 0,L._uValues=void 0,L._vValues=void 0,L._heightValues=void 0,L._westIndices=void 0,L._southIndices=void 0,L._eastIndices=void 0,L._northIndices=void 0,L._mesh})};var izi=new mp("upsampleQuantizedTerrainMesh",yO.maximumAsynchronousTasks);_F.prototype.upsample=function(o,f,m,x,y,v,C){let T=this._mesh;if(!F(this._mesh))return;let S=f*2!==y,w=m*2===v,E=o.ellipsoid,L=o.tileXYToRectangle(y,v,C),I=izi.scheduleTask({vertices:T.vertices,vertexCountWithoutSkirts:T.vertexCountWithoutSkirts,indices:T.indices,indexCountWithoutSkirts:T.indexCountWithoutSkirts,encoding:T.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:S,isNorthChild:w,childRectangle:L,ellipsoid:E});if(!F(I))return;let R=Math.min(this._westSkirtHeight,this._eastSkirtHeight);R=Math.min(R,this._southSkirtHeight),R=Math.min(R,this._northSkirtHeight);let P=S?R*.5:this._westSkirtHeight,A=w?R*.5:this._southSkirtHeight,M=S?this._eastSkirtHeight:R*.5,V=w?this._northSkirtHeight:R*.5,G=this._credits,D=this;return Promise.resolve(I).then(function(N){let k=new Uint16Array(N.vertices),U=Fn.createTypedArray(k.length/3,N.indices),B;return F(N.encodedNormals)&&(B=new Uint8Array(N.encodedNormals)),new _F({quantizedVertices:k,indices:U,encodedNormals:B,minimumHeight:N.minimumHeight,maximumHeight:N.maximumHeight,boundingSphere:Ei.clone(N.boundingSphere),orientedBoundingBox:Tu.clone(N.orientedBoundingBox),horizonOcclusionPoint:Z.clone(N.horizonOcclusionPoint),westIndices:N.westIndices,southIndices:N.southIndices,eastIndices:N.eastIndices,northIndices:N.northIndices,westSkirtHeight:P,southSkirtHeight:A,eastSkirtHeight:M,northSkirtHeight:V,childTileMask:0,credits:G,createdByUpsampling:!0,flattenPolygonHeight:D._flattenPolygonHeight,flattenPolygon:D._flattenPolygon,flattenRectangle:D._flattenRectangle})})};var O1e=32767,Pmt=new Z;_F.prototype.interpolateHeight=function(o,f,m){let x=be.clamp((f-o.west)/o.width,0,1);x*=O1e;let y=be.clamp((m-o.south)/o.height,0,1);return y*=O1e,F(this._mesh)?azi(this,x,y):szi(this,x,y)};function Imt(o,f,m,x,y,v,C,T){let S=Math.min(m,y,C),w=Math.max(m,y,C),E=Math.min(x,v,T),L=Math.max(x,v,T);return o>=S&&o<=w&&f>=E&&f<=L}var rzi=new rt,nzi=new rt,ozi=new rt;function azi(o,f,m){let x=o._mesh,y=x.vertices,v=x.encoding,C=x.indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=v.decodeTextureCoordinates(y,w,rzi),R=v.decodeTextureCoordinates(y,E,nzi),P=v.decodeTextureCoordinates(y,L,ozi);if(Imt(f,m,I.x,I.y,R.x,R.y,P.x,P.y)){let A=D4.computeBarycentricCoordinates(f,m,I.x,I.y,R.x,R.y,P.x,P.y,Pmt);if(A.x>=-1e-15&&A.y>=-1e-15&&A.z>=-1e-15){let M=v.decodeHeight(y,w),V=v.decodeHeight(y,E),G=v.decodeHeight(y,L);return A.x*M+A.y*V+A.z*G}}}}function szi(o,f,m){let x=o._uValues,y=o._vValues,v=o._heightValues,C=o._indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=x[w],R=x[E],P=x[L],A=y[w],M=y[E],V=y[L];if(Imt(f,m,I,A,R,M,P,V)){let G=D4.computeBarycentricCoordinates(f,m,I,A,R,M,P,V,Pmt);if(G.x>=-1e-15&&G.y>=-1e-15&&G.z>=-1e-15){let D=G.x*v[w]+G.y*v[E]+G.z*v[L];return be.lerp(o._minimumHeight,o._maximumHeight,D/O1e)}}}}_F.prototype.isChildAvailable=function(o,f,m,x){let y=2;return m!==o*2&&++y,x!==f*2&&(y-=2),(this._childTileMask&1<<y)!==0};_F.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var xde=_F;function lzi(o){this.resource=o.resource,this.version=o.version,this.isHeightmap=o.isHeightmap,this.tileUrlTemplates=o.tileUrlTemplates,this.availability=o.availability,this.hasVertexNormals=o.hasVertexNormals,this.hasWaterMask=o.hasWaterMask,this.hasMetadata=o.hasMetadata,this.availabilityLevels=o.availabilityLevels,this.availabilityTilesLoaded=o.availabilityTilesLoaded,this.littleEndianExtensionSize=o.littleEndianExtensionSize,this.availabilityPromiseCache={}}function Rmt(o){this.requestVertexNormals=o.requestVertexNormals??!1,this.requestWaterMask=o.requestWaterMask??!1,this.requestMetadata=o.requestMetadata??!0,this.ellipsoid=o.ellipsoid??yi.default,this.heightmapWidth=65,this.heightmapStructure=void 0,this.hasWaterMask=!1,this.hasMetadata=!1,this.hasVertexNormals=!1,this.scheme=void 0,this._flattenPolygonHeight=o.flattenPolygonHeight,this._flattenPolygon=o.flattenPolygon,this.lastResource=void 0,this.layerJsonResource=void 0,this.previousError=void 0,this.availability=void 0,this.tilingScheme=void 0,this.levelZeroMaximumGeometricError=void 0,this.heightmapStructure=void 0,this.layers=[],this.attribution="",this.overallAvailability=[],this.overallMaxZoom=0,this.tileCredits=[]}Rmt.prototype.build=function(o){o._heightmapWidth=this.heightmapWidth,o._scheme=this.scheme;let f=F(this.lastResource.credits)?this.lastResource.credits:[];o._tileCredits=f.concat(this.tileCredits),o._availability=this.availability,o._tilingScheme=this.tilingScheme,o._requestWaterMask=this.requestWaterMask,o._levelZeroMaximumGeometricError=this.levelZeroMaximumGeometricError,o._heightmapStructure=this.heightmapStructure,o._layers=this.layers,o._hasWaterMask=this.hasWaterMask,o._hasVertexNormals=this.hasVertexNormals,o._hasMetadata=this.hasMetadata};async function Amt(o,f,m){if(!f.format){let M="The tile format is not specified in the layer.json file.";throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}if(!f.tiles||f.tiles.length===0){let M="The layer.json file does not specify any tile URL templates.";throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let x=!1,y=!1,v=!1,C=!0,T=!1;if(f.format==="heightmap-1.0")T=!0,F(o.heightmapStructure)||(o.heightmapStructure={heightScale:1/5,heightOffset:-1e3,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1,lowestEncodedHeight:0,highestEncodedHeight:256*256-1}),y=!0,o.requestWaterMask=!0;else if(f.format.indexOf("quantized-mesh-1.")!==0){let M=`The tile format "${f.format}" is invalid or not supported.`;throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let S=f.tiles,w=f.maxzoom;o.overallMaxZoom=Math.max(o.overallMaxZoom,w);let E=[];if(F(f.valid_bounds)?E=f.valid_bounds:E=f.bounds,!f.projection||f.projection==="EPSG:4326")o.tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:E.length?E:[]});else if(f.projection==="EPSG:3857"){let M=Math.PI*o.ellipsoid.maximumRadius;E[0]<-M&&(E[0]=-M),E[1]<-M&&(E[1]=-M),E[2]>M&&(E[2]=M),E[3]>M&&(E[3]=M),o.tilingScheme=new xp({numberOfLevelZeroTilesX:1,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:E.length?E:[]})}else{let M=`The projection "${f.projection}" is invalid or not supported.`;throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}if(o.levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.tilingScheme.ellipsoid,o.heightmapWidth,o.tilingScheme.getNumberOfXTilesAtLevel(0)),!f.scheme||f.scheme==="tms"||f.scheme==="slippyMap")o.scheme=f.scheme;else{let M=`The scheme "${f.scheme}" is invalid or not supported.`;throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let L;F(f.extensions)&&f.extensions.indexOf("octvertexnormals")!==-1?x=!0:F(f.extensions)&&f.extensions.indexOf("vertexnormals")!==-1&&(x=!0,C=!1),F(f.extensions)&&f.extensions.indexOf("watermask")!==-1&&(y=!0),F(f.extensions)&&f.extensions.indexOf("metadata")!==-1&&(v=!0);let I=f.metadataAvailability,R=f.available,P;if(F(R)&&!F(I)){P=new kG(o.tilingScheme,R.length);for(let M=0;M<R.length;++M){let V=R[M],G=o.tilingScheme.getNumberOfYTilesAtLevel(M);F(o.overallAvailability[M])||(o.overallAvailability[M]=[]);for(let D=0;D<V.length;++D){let N=V[D],k=G-N.endY-1,U=G-N.startY-1;o.overallAvailability[M].push([N.startX,k,N.endX,U]),P.addAvailableTileRange(M,N.startX,k,N.endX,U)}}}else F(I)&&(L=new kG(o.tilingScheme,w),P=new kG(o.tilingScheme,w),o.overallAvailability[0]=[[0,0,1,0]],P.addAvailableTileRange(0,0,0,1,0));o.hasWaterMask=o.hasWaterMask||y,o.hasVertexNormals=o.hasVertexNormals||x,o.hasMetadata=o.hasMetadata||v,F(f.attribution)&&(o.attribution.length>0&&(o.attribution+=" "),o.attribution+=f.attribution),o.layers.push(new lzi({resource:o.lastResource,version:f.version,isHeightmap:T,tileUrlTemplates:S,availability:P,hasVertexNormals:x,hasWaterMask:y,hasMetadata:v,availabilityLevels:I,availabilityTilesLoaded:L,littleEndianExtensionSize:C}));let A=f.parentUrl;return F(A)?F(P)?(o.lastResource=o.lastResource.getDerivedResource({url:A}),o.lastResource.appendForwardSlash(),o.layerJsonResource=o.lastResource.getDerivedResource({url:"layer.json"}),await iFe(o),!0):(console.log("A layer.json can't have a parentUrl if it does't have an available array."),!0):!0}function uzi(o,f,m){let x=`An error occurred while accessing ${o.layerJsonResource.url}.`;if(F(f)&&(x+=`
${f.message}`),o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,x),o.previousError.retry)return iFe(o,m);throw new Oi(x)}async function czi(o,f,m){await Amt(o,f,m);let x=o.overallAvailability.length;if(x>0){let y=o.availability=new kG(o.tilingScheme,o.overallMaxZoom);for(let v=0;v<x;++v){let C=o.overallAvailability[v];for(let T=0;T<C.length;++T){let S=C[T];y.addAvailableTileRange(v,S[0],S[1],S[2],S[3])}}}if(o.attribution.length>0){let y=new Oa(o.attribution);o.tileCredits.push(y)}return!0}async function iFe(o,f){try{let m=await o.layerJsonResource.fetchJson();return czi(o,m,f)}catch(m){return F(m)&&m.statusCode===404?(await Amt(o,{tilejson:"2.1.0",format:"heightmap-1.0",version:"1.0.0",scheme:"tms",tiles:["{z}/{x}/{y}.terrain?v={version}"]},f),!0):uzi(o,m,f)}}function iL(o){o=o??si.EMPTY_OBJECT,this._heightmapWidth=void 0,this._heightmapStructure=void 0,this._hasWaterMask=!1,this._hasVertexNormals=!1,this._hasMetadata=!1,this._scheme=void 0,this._ellipsoid=o.ellipsoid,this._requestVertexNormals=o.requestVertexNormals??!1,this._requestWaterMask=o.requestWaterMask??!1,this._requestMetadata=o.requestMetadata??!0,this._errorEvent=new Tr;let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._availability=void 0,this._tilingScheme=void 0,this._levelZeroMaximumGeometricError=void 0,this._layers=void 0,this._tileCredits=void 0}var Nve={OCT_VERTEX_NORMALS:1,WATER_MASK:2,METADATA:4};function y7e(o){return!F(o)||o.length===0?{Accept:"application/vnd.quantized-mesh,application/octet-stream;q=0.9,*/*;q=0.01"}:{Accept:`application/vnd.quantized-mesh;extensions=${o.join("-")},application/octet-stream;q=0.9,*/*;q=0.01`}}function hzi(o,f,m,x,y){let v=new Uint16Array(f,0,o._heightmapWidth*o._heightmapWidth);return new yL({buffer:v,childTileMask:new Uint8Array(f,v.byteLength,1)[0],waterMask:new Uint8Array(f,v.byteLength+1,f.byteLength-v.byteLength-1),width:o._heightmapWidth,height:o._heightmapWidth,structure:o._heightmapStructure,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon})}function dzi(o,f,m,x,y,v){let C=v.littleEndianExtensionSize,T=0,S=3,w=S+1,E=Float64Array.BYTES_PER_ELEMENT*S,L=Float64Array.BYTES_PER_ELEMENT*w,I=Uint16Array.BYTES_PER_ELEMENT*3,R=3,P=Uint16Array.BYTES_PER_ELEMENT,A=P*R,M=new DataView(f),V=new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0));T+=E;let G=M.getFloat32(T,!0);T+=Float32Array.BYTES_PER_ELEMENT;let D=M.getFloat32(T,!0);T+=Float32Array.BYTES_PER_ELEMENT;let N=new Ei(new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0)),M.getFloat64(T+E,!0));T+=L;let k=new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0));T+=E;let U=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let B=new Uint16Array(f,T,U*3);T+=U*I,U>64*1024&&(P=Uint32Array.BYTES_PER_ELEMENT,A=P*R);let Y=B.subarray(0,U),J=B.subarray(U,2*U),K=B.subarray(U*2,3*U);Ru.zigZagDeltaDecode(Y,J,K),T%P!==0&&(T+=P-T%P);let z=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let j=Fn.createTypedArrayFromArrayBuffer(U,f,T,z*R);T+=z*A;let q=0,O=j.length;for(let Se=0;Se<O;++Se){let Le=j[Se];j[Se]=q-Le,Le===0&&++q}let te=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let ie=Fn.createTypedArrayFromArrayBuffer(U,f,T,te);T+=te*P;let re=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let ee=Fn.createTypedArrayFromArrayBuffer(U,f,T,re);T+=re*P;let ae=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let oe=Fn.createTypedArrayFromArrayBuffer(U,f,T,ae);T+=ae*P;let ce=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let pe=Fn.createTypedArrayFromArrayBuffer(U,f,T,ce);T+=ce*P;let ue,he;for(;T<M.byteLength;){let Se=M.getUint8(T,!0);T+=Uint8Array.BYTES_PER_ELEMENT;let Le=M.getUint32(T,C);if(T+=Uint32Array.BYTES_PER_ELEMENT,Se===Nve.OCT_VERTEX_NORMALS&&o._requestVertexNormals)ue=new Uint8Array(f,T,U*2);else if(Se===Nve.WATER_MASK&&o._requestWaterMask)he=new Uint8Array(f,T,Le);else if(Se===Nve.METADATA&&o._requestMetadata){let Ve=M.getUint32(T,!0);if(Ve>0){let Oe=Q_(new Uint8Array(f),T+Uint32Array.BYTES_PER_ELEMENT,Ve).available;if(F(Oe))for(let $e=0;$e<Oe.length;++$e){let at=m+$e+1,dt=Oe[$e],gt=o._tilingScheme.getNumberOfYTilesAtLevel(at);for(let Et=0;Et<dt.length;++Et){let et=dt[Et],yt=gt-et.endY-1,Rt=gt-et.startY-1;o.availability.addAvailableTileRange(at,et.startX,yt,et.endX,Rt),v.availability.addAvailableTileRange(at,et.startX,yt,et.endX,Rt)}}}v.availabilityTilesLoaded.addAvailableTileRange(m,x,y,x,y)}T+=Le}let fe=o.getLevelMaximumGeometricError(m)*5,de=o._tilingScheme.tileXYToRectangle(x,y,m),Ce=Tu.fromRectangle(de,G,D,o._tilingScheme.ellipsoid);return new xde({center:V,minimumHeight:G,maximumHeight:D,boundingSphere:N,orientedBoundingBox:Ce,horizonOcclusionPoint:k,quantizedVertices:B,encodedNormals:ue,indices:j,westIndices:ie,southIndices:ee,eastIndices:oe,northIndices:pe,westSkirtHeight:fe,southSkirtHeight:fe,eastSkirtHeight:fe,northSkirtHeight:fe,childTileMask:o.availability.computeChildMaskForTile(m,x,y),waterMask:he,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon,flattenRectangle:{rectangle:de,minimumHeight:G,maximumHeight:D,ellipsoid:o._tilingScheme.ellipsoid}})}iL.prototype.requestTileGeometry=function(o,f,m,x){let y=this._layers,v,C=y.length,T=!1,S=Promise.resolve();if(C===1)v=y[0];else for(let w=0;w<C;++w){let E=y[w];if(!F(E.availability)||E.availability.isTileAvailable(m,o,f)){v=E;break}let L=rFe(this,o,f,m,E,w===0);L.result&&(T=!0,S=S.then(()=>L.promise))}return!F(v)&&T?S.then(()=>new Promise(w=>{setTimeout(()=>{let E=this.requestTileGeometry(o,f,m,x);w(E)},0)})):Mmt(this,o,f,m,v,x)};function Mmt(o,f,m,x,y,v){if(!F(y))return Promise.reject(new Oi("Terrain tile doesn't exist"));let C=y.tileUrlTemplates;if(C.length===0)return;let T;!o._scheme||o._scheme==="tms"?T=o._tilingScheme.getNumberOfYTilesAtLevel(x)-m-1:T=m;let S=[];o._requestVertexNormals&&y.hasVertexNormals&&S.push(y.littleEndianExtensionSize?"octvertexnormals":"vertexnormals"),o._requestWaterMask&&y.hasWaterMask&&S.push("watermask"),o._requestMetadata&&y.hasMetadata&&S.push("metadata");let w,E,L=C[(f+T+x)%C.length],I=y.resource;F(I._ionEndpoint)&&!F(I._ionEndpoint.externalType)?(S.length!==0&&(E={extensions:S.join("-")}),w=y7e(void 0)):w=y7e(S);let R=I.getDerivedResource({url:L,templateValues:{version:y.version,z:x,x:f,y:T},queryParameters:E,headers:w,request:v}).fetchArrayBuffer();if(F(R))return R.then(function(P){return F(P)?F(o._heightmapStructure)?hzi(o,P,x,f,m):dzi(o,P,x,f,m,y):Promise.reject(new Oi("Mesh buffer doesn't exist."))})}Object.defineProperties(iL.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return this._hasWaterMask&&this._requestWaterMask}},hasVertexNormals:{get:function(){return this._hasVertexNormals&&this._requestVertexNormals}},hasMetadata:{get:function(){return this._hasMetadata&&this._requestMetadata}},requestVertexNormals:{get:function(){return this._requestVertexNormals}},requestWaterMask:{get:function(){return this._requestWaterMask}},requestMetadata:{get:function(){return this._requestMetadata}},availability:{get:function(){return this._availability}}});iL.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};iL.fromIonAssetId=async function(o,f){let m=await FG.fromAssetId(o);return iL.fromUrl(m,f)};iL.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Mr.createIfNeeded(o);m.appendForwardSlash();let x=new Rmt(f);x.lastResource=m,x.layerJsonResource=x.lastResource.getDerivedResource({url:"layer.json"}),await iFe(x);let y=new iL(f);return x.build(y),y};iL.prototype.getTileDataAvailable=function(o,f,m){if(!F(this._availability))return;if(m>this._availability._maximumLevel)return!1;if(this._availability.isTileAvailable(m,o,f))return!0;if(!this._hasMetadata)return!1;let x=this._layers,y=x.length;for(let v=0;v<y;++v)if(rFe(this,o,f,m,x[v],v===0).result)return;return!1};iL.prototype.loadTileDataAvailability=function(o,f,m){if(!F(this._availability)||m>this._availability._maximumLevel||this._availability.isTileAvailable(m,o,f)||!this._hasMetadata)return;let x=this._layers,y=x.length;for(let v=0;v<y;++v){let C=rFe(this,o,f,m,x[v],v===0);if(F(C.promise))return C.promise}};function X1e(o,f,m,x){if(x===0)return;let y=o.availabilityLevels,v=x%y===0?x-y:(x/y|0)*y,C=1<<x-v,T=f/C|0,S=m/C|0;return{level:v,x:T,y:S}}function rFe(o,f,m,x,y,v){if(!F(y.availabilityLevels))return{result:!1};let C,T=function(){delete y.availabilityPromiseCache[C]},S=y.availabilityTilesLoaded,w=y.availability,E=X1e(y,f,m,x);for(;F(E);){if(w.isTileAvailable(E.level,E.x,E.y)&&!S.isTileAvailable(E.level,E.x,E.y)){let L;if(!v&&(C=`${E.level}-${E.x}-${E.y}`,L=y.availabilityPromiseCache[C],!F(L))){let I=new hm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN});L=Mmt(o,E.x,E.y,E.level,y,I),F(L)&&(y.availabilityPromiseCache[C]=L,L.then(T))}return{result:!0,promise:L}}E=X1e(y,E.x,E.y,E.level)}return{result:!1}}iL._getAvailabilityTile=X1e;var N4=iL;function JM(o){o=o??si.EMPTY_OBJECT;let f=o.radius,m={center:o.center,semiMajorAxis:f,semiMinorAxis:f,ellipsoid:o.ellipsoid,height:o.height,extrudedHeight:o.extrudedHeight,granularity:o.granularity,vertexFormat:o.vertexFormat,stRotation:o.stRotation,shadowVolume:o.shadowVolume};this._ellipseGeometry=new TS(m),this._workerName="createCircleGeometry"}JM.packedLength=TS.packedLength;JM.pack=function(o,f,m){return TS.pack(o._ellipseGeometry,f,m)};var _7e=new TS({center:new Z,semiMajorAxis:1,semiMinorAxis:1}),dy={center:new Z,radius:void 0,ellipsoid:yi.clone(yi.default),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new Yr,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};JM.unpack=function(o,f,m){let x=TS.unpack(o,f,_7e);return dy.center=Z.clone(x._center,dy.center),dy.ellipsoid=yi.clone(x._ellipsoid,dy.ellipsoid),dy.ellipsoid=yi.clone(x._ellipsoid,_7e._ellipsoid),dy.height=x._height,dy.extrudedHeight=x._extrudedHeight,dy.granularity=x._granularity,dy.vertexFormat=Yr.clone(x._vertexFormat,dy.vertexFormat),dy.stRotation=x._stRotation,dy.shadowVolume=x._shadowVolume,F(m)?(dy.semiMajorAxis=x._semiMajorAxis,dy.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new TS(dy),m):(dy.radius=x._semiMajorAxis,new JM(dy))};JM.createGeometry=function(o){return TS.createGeometry(o._ellipseGeometry)};JM.createShadowVolume=function(o,f,m){let x=o._ellipseGeometry._granularity,y=o._ellipseGeometry._ellipsoid,v=f(x,y),C=m(x,y);return new JM({center:o._ellipseGeometry._center,radius:o._ellipseGeometry._semiMajorAxis,ellipsoid:y,stRotation:o._ellipseGeometry._stRotation,granularity:x,extrudedHeight:v,height:C,vertexFormat:Yr.POSITION_ONLY,shadowVolume:!0})};Object.defineProperties(JM.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}});var Vmt=JM;function jH(o){o=o??si.EMPTY_OBJECT;let f=o.radius,m={center:o.center,semiMajorAxis:f,semiMinorAxis:f,ellipsoid:o.ellipsoid,height:o.height,extrudedHeight:o.extrudedHeight,granularity:o.granularity,numberOfVerticalLines:o.numberOfVerticalLines};this._ellipseGeometry=new LI(m),this._workerName="createCircleOutlineGeometry"}jH.packedLength=LI.packedLength;jH.pack=function(o,f,m){return LI.pack(o._ellipseGeometry,f,m)};var pzi=new LI({center:new Z,semiMajorAxis:1,semiMinorAxis:1}),BC={center:new Z,radius:void 0,ellipsoid:yi.clone(yi.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};jH.unpack=function(o,f,m){let x=LI.unpack(o,f,pzi);return BC.center=Z.clone(x._center,BC.center),BC.ellipsoid=yi.clone(x._ellipsoid,BC.ellipsoid),BC.height=x._height,BC.extrudedHeight=x._extrudedHeight,BC.granularity=x._granularity,BC.numberOfVerticalLines=x._numberOfVerticalLines,F(m)?(BC.semiMajorAxis=x._semiMajorAxis,BC.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new LI(BC),m):(BC.radius=x._semiMajorAxis,new jH(BC))};jH.createGeometry=function(o){return LI.createGeometry(o._ellipseGeometry)};var Gmt=jH;function fzi(o){return o=o??si.EMPTY_OBJECT,N4.fromIonAssetId(2426648,{requestVertexNormals:o.requestVertexNormals??!1})}var nFe=fzi;function mzi(o){return o=o??si.EMPTY_OBJECT,N4.fromIonAssetId(1,{requestVertexNormals:o.requestVertexNormals??!1,requestWaterMask:o.requestWaterMask??!1,ellipsoid:yi.WGS84})}var gde=mzi;function W4(o){o=o??si.EMPTY_OBJECT,this._callback=o.callback,this._tilingScheme=o.tilingScheme,F(this._tilingScheme)||(this._tilingScheme=new _h({ellipsoid:o.ellipsoid??yi.default})),this._width=o.width,this._height=o.height;let f=Math.max(this._width,this._height);this._levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._errorEvent=new Tr;let m=o.credit;typeof m=="string"&&(m=new Oa(m)),this._credit=m}Object.defineProperties(W4.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}});W4.prototype.requestTileGeometry=function(o,f,m,x){let y=this._callback(o,f,m);if(!F(y))return;let v=this._width,C=this._height;return Promise.resolve(y).then(function(T){let S=T;return Array.isArray(S)&&(S=new Float64Array(S)),new yL({buffer:S,width:v,height:C})})};W4.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};W4.prototype.getTileDataAvailable=function(o,f,m){};W4.prototype.loadTileDataAvailability=function(o,f,m){};var Fmt=W4,xzi=1953029805,gzi=2917034100;function oFe(o,f){if(oFe.passThroughDataForTesting)return f;let m=o.byteLength;if(m===0||m%4!==0)throw new Oi("The length of key must be greater than 0 and a multiple of 4.");let x=new DataView(f),y=x.getUint32(0,!0);if(y===xzi||y===gzi)return f;let v=new DataView(o),C=0,T=f.byteLength,S=T-T%8,w=m,E,L=8;for(;C<S;)for(L=(L+8)%24,E=L;C<S&&E<w;)x.setUint32(C,x.getUint32(C,!0)^v.getUint32(E,!0),!0),x.setUint32(C+4,x.getUint32(C+4,!0)^v.getUint32(E+4,!0),!0),C+=8,E+=24;if(C<T)for(E>=w&&(L=(L+8)%24,E=L);C<T;)x.setUint8(C,x.getUint8(C)^v.getUint8(E)),C++,E++}oFe.passThroughDataForTesting=!1;var aFe=oFe;function Dmt(o){this.proxy=o}Dmt.prototype.getURL=function(o){let f=this.proxy.indexOf("?")===-1?"?":"";return this.proxy+f+encodeURIComponent(o)};var Nmt=Dmt;function Wmt(o,f){return pL("defaultValue","defaultValue has been deprecated and will be removed in Cesium 1.134. Use the nullish coalescing operator instead: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing"),o??f}Object.defineProperty(Wmt,"EMPTY_OBJECT",{get:function(){return pL("defaultValue.EMPTY_OBJECT","defaultValue.EMPTY_OBJECT has been deprecated and will be removed in Cesium 1.134. Use Frozen.EMPTY_OBJECT instead"),si.EMPTY_OBJECT}});var Zmt=Wmt;function yde(){wt.throwInstantiationError()}Object.defineProperties(yde.prototype,{credit:{get:wt.throwInstantiationError}});yde.getCreditsFromResult=function(o){if(F(o.attributions))return o.attributions.map(Oa.getIonCredit)};yde.prototype.geocode=wt.throwInstantiationError;var _de=yde,yzi={SEARCH:0,AUTOCOMPLETE:1},e$=Object.freeze(yzi);function Omt(){wt.throwInstantiationError()}Omt.createGeometry=function(o){wt.throwInstantiationError()};var Xmt=Omt,_zi=k0(j$e(),1);function vzi(o,f){return(o&f)!==0}var m1=vzi,bzi=[1,2,4,8],kmt=15,Czi=16,Tzi=64,Szi=128;function DI(o,f,m,x,y,v){this._bits=o,this.cnodeVersion=f,this.imageryVersion=m,this.terrainVersion=x,this.imageryProvider=y,this.terrainProvider=v,this.ancestorHasTerrain=!1,this.terrainState=void 0}DI.clone=function(o,f){return F(f)?(f._bits=o._bits,f.cnodeVersion=o.cnodeVersion,f.imageryVersion=o.imageryVersion,f.terrainVersion=o.terrainVersion,f.imageryProvider=o.imageryProvider,f.terrainProvider=o.terrainProvider):f=new DI(o._bits,o.cnodeVersion,o.imageryVersion,o.terrainVersion,o.imageryProvider,o.terrainProvider),f.ancestorHasTerrain=o.ancestorHasTerrain,f.terrainState=o.terrainState,f};DI.prototype.setParent=function(o){this.ancestorHasTerrain=o.ancestorHasTerrain||this.hasTerrain()};DI.prototype.hasSubtree=function(){return m1(this._bits,Czi)};DI.prototype.hasImagery=function(){return m1(this._bits,Tzi)};DI.prototype.hasTerrain=function(){return m1(this._bits,Szi)};DI.prototype.hasChildren=function(){return m1(this._bits,kmt)};DI.prototype.hasChild=function(o){return m1(this._bits,bzi[o])};DI.prototype.getChildBitmask=function(){return this._bits&kmt};var sFe=DI;function wzi(o){let f=o.length,m=new ArrayBuffer(f),x=new Uint8Array(m);for(let y=0;y<f;++y)x[y]=o.charCodeAt(y);return m}var Ezi=wzi(`E\xF4\xBD\vy\xE2jE"\x92,\xCDq\xF8IFgQ\0B%\xC6\xE8a,f)\b\xC64\xDCjb%y
wmi\xD6\xF0\x9Ck\x93\xA1\xBDNu\xE0A[\xDF@V\f\xD9\xBBr\x9B\x81|3S\xEEOl\xD4q\xB0{\xC0\x7FEVZ\xADwUe\v3\x92*\xACl5\xC50s\xF83>mF8J\xB4\xDD\xF0.\xDDu\xDA\x8CDt"\xFAa"\f3"So\xAF9D\v\x8C9\xD99L\xB9\xBF\x7F\xAB\\\x8CP_\x9F"ux\xE9\x07q\x91h;\xC1\xC4\x9B\x7F\xF0<VqH\x82'UfYNe\x98u\xA3aF}a?A\0\x9F\xD7\xB44M\xCE\x87F\xB0\xD5\xB8\x8A'{\x8B\xDC+\xBBMg0\xC8\xD1\xF6\\\x8FP\xFA[/F\x9Bn5/'C.\xEB
\f^\xA5s\x1Be4\xE5l.jC'c#U\xA9?q{gC}:\xAF\xCD\xE2TU\x9C\xFDK\xC6\xE2\x9F/(\xED\xCB\\\xC6-f\x07\x88\xA7;/*"N\xB0k.\xDD\r\x95}}G\xBAC\xB2\xB2+>M\xAA>}\xE6\xCEI\x89\xC6\xE6x\fa1-\xA4O\xA5~q \x88\xEC\r1\xE8N\v\0nPh}=\b\r\x95\xA6n\xA3h\x97$[k\xF3#\xF3\xB6s\xB3\r\v@\xC0\x9F\xD8Q]\xFA".j\xDFI\0\xB9\xA0wU\xC6\xEFj\xBF{GL\x7F\x83\xEE\xDC\xDCF\x85\xA9\xADS\x07+S4\x07\xFF\x94Y\xE48\xE81\x83N\xB9XFk\xCB-#\x86\x92p\x005\x88"\xCF1\xB2&/\xE7\xC3u-6,rt\xB0#G\xB7\xD3\xD1&\x857r\xE2\0\x8CD\xCF\xDA3-\xDE\`\x86i#i*|\xCDKQ\r\x95T9w.)\xEA\x1B\xA6P\xA2j\x8FoP\x99\\>T\xFB\xEFP[\v\x07E\x89m(w7\xDB\x8EJfJo\x99 \xE5p\xE2\xB9q~\fmI-z\xFEr\xC7\xF2Y0\x8F\xBB]s\xE5\xC9 \xEAx\xEC \x90\xF0\x8A\x7FB|G\`\xB0\xBD&\xB7q\xB6\xC7\x9F\xD13\x82=\xD3\xAB\xEEc\x99\xC8+S\xA0D\\q\xC6\xCCD2O<\xCA\xC0)=R\xD3aX\xA9}e\xB4\xDC\xCF\r\xF4=\xF1\b\xA9B\xDA#   \xD8\xBF^PI\xF8M\xC0\xCBGLO\xF7{+\xD8\xC51\x92;\xB5o\xDCl\r\x92\x88\xD1\x9E\xDB?\xE2\xE9\xDA_\xD4\x84\xE2FaZ\xDEU\xCF\xA4\0\xBE\xFD\xCEg\xF1Ji\x97\xE6 H\xD8]\x7F~\xAEq N\xAE\xC0V\xA9\x91<\x82r\xE7v\xEC)I\xD6]-\x83\xE3\xDB6\xA9;f\x97\x87j\xD5\xB6=P^R\xB9K\xC7sWx\xC9\xF4.Y\x07\x95\x93o\xD0KW>''\xC7\`\xDB;\xED\x9ASD>?\x8D\x92mw\xA2
\xEB?R\xA8\xC6U^1I7\x85\xF4\xC5&-\xA9\xBF\x8B'T\xDA\xC3j \xE5*x\xB0\xD6\x90pr\xAA\x8Bh\xBD\x88\xF7_H\xB1~\xC0XL?f\xF9>\xE1e\xC0p\xA7\xCF8i\xAF\xF0VldI\x9C'\xADxtO\xC2\x87\xDEV9\0\xDAw\v\xCB-\x1B\x89\xFB5O\xF5\bQ\`\xC1
ZGM&30x\xDA\xC0\x9CFG\xE2[y\`In7gS
>\xE9\xECF9\xB2\xF14\r\xC6\x84Sun\xE1\fY\xD9\xDE)\x85{II\xA5wy\xBEIV.6\xE7\v:\xBBOb{\xD2M1\x95/\xBD8{\xA8O!\xE1\xECFpv\x95})"x\x88
\x90\xDD\x9D\\\xDA\xDEQ\xCF\xF0\xFCYRe|3\xDF\xF3H\xDA\xBB*u\xDB\`\xB2\xD4\xFC\xED\x1B\xEC\x7F5\xA8\xFF(1\x07-\xC8\xDC\x88F|\x8A["`);function w1(o){this.imageryPresent=!0,this.protoImagery=void 0,this.terrainPresent=!0,this.negativeAltitudeExponentBias=32,this.negativeAltitudeThreshold=be.EPSILON12,this.providers={},this.key=void 0,this._resource=void 0,this._quadPacketVersion=1,this._tileInfo={},this._subtreePromises={}}Object.defineProperties(w1.prototype,{url:{get:function(){return this._resource.url}},proxy:{get:function(){return this._resource.proxy}},resource:{get:function(){return this._resource}}});w1.fromUrl=async function(o){let f=o;typeof f!="string"&&!(f instanceof Mr)&&(f=o.url);let m=Mr.createIfNeeded(f);m.appendForwardSlash();let x=new w1;x._resource=m;try{await Lzi(x),await x.getQuadTreePacket("",x._quadPacketVersion)}catch(y){let v=`An error occurred while accessing ${Bmt(x,"",1).url}: ${y}`;throw new Oi(v)}return x};w1.tileXYToQuadKey=function(o,f,m){let x="";for(let y=m;y>=0;--y){let v=1<<y,C=0;m1(f,v)?m1(o,v)&&(C|=1):(C|=2,m1(o,v)||(C|=1)),x+=C}return x};w1.quadKeyToTileXY=function(o){let f=0,m=0,x=o.length-1;for(let y=x;y>=0;--y){let v=1<<y,C=+o[x-y];m1(C,2)?m1(C,1)||(f|=v):(m|=v,m1(C,1)&&(f|=v))}return{x:f,y:m,level:x}};w1.prototype.isValid=function(o){let f=this.getTileInformationFromQuadKey(o);if(F(f))return f!==null;let m=!0,x=o,y;for(;x.length>1;)if(y=x.substring(x.length-1),x=x.substring(0,x.length-1),f=this.getTileInformationFromQuadKey(x),F(f)){!f.hasSubtree()&&!f.hasChild(parseInt(y))&&(m=!1);break}else if(f===null){m=!1;break}return m};var Umt=new mp("decodeGoogleEarthEnterprisePacket");w1.prototype.getQuadTreePacket=function(o,f,m){f=f??1,o=o??"";let x=Bmt(this,o,f,m).fetchArrayBuffer();if(!F(x))return;let y=this._tileInfo,v=this.key;return x.then(function(C){return Umt.scheduleTask({buffer:C,quadKey:o,type:"Metadata",key:v},[C]).then(function(T){let S,w=-1;if(o!==""){w=o.length+1;let I=T[o];S=y[o],S._bits|=I._bits,delete T[o]}let E=Object.keys(T);E.sort(function(I,R){return I.length-R.length});let L=E.length;for(let I=0;I<L;++I){let R=E[I];if(T[R]!==null){let P=sFe.clone(T[R]),A=R.length;if(A===w)P.setParent(S);else if(A>1){let M=y[R.substring(0,R.length-1)];P.setParent(M)}y[R]=P}else y[R]=null}})})};w1.prototype.populateSubtree=function(o,f,m,x){let y=w1.tileXYToQuadKey(o,f,m);return k1e(this,y,x)};function k1e(o,f,m){let x=o._tileInfo,y=f,v=x[y];if(F(v)&&(!v.hasSubtree()||v.hasChildren()))return v;for(;v===void 0&&y.length>1;)y=y.substring(0,y.length-1),v=x[y];let C,T=o._subtreePromises,S=T[y];if(F(S))return S.then(function(){return C=new hm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),k1e(o,f,C)});if(!F(v)||!v.hasSubtree())return Promise.reject(new Oi(`Couldn't load metadata for tile ${f}`));if(S=o.getQuadTreePacket(y,v.cnodeVersion,m),!!F(S))return T[y]=S,S.then(function(){return C=new hm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),k1e(o,f,C)}).finally(function(){delete T[y]})}w1.prototype.getTileInformation=function(o,f,m){let x=w1.tileXYToQuadKey(o,f,m);return this._tileInfo[x]};w1.prototype.getTileInformationFromQuadKey=function(o){return this._tileInfo[o]};function Bmt(o,f,m,x){return o._resource.getDerivedResource({url:`flatfile?q2-0${f}-q.${m.toString()}`,request:x})}var Wve,Zve;function Lzi(o){let f=o._resource.getDerivedResource({url:"dbRoot.v5",queryParameters:{output:"proto"}});if(!F(Zve)){let m=oa("ThirdParty/google-earth-dbroot-parser.js"),x=window.cesiumGoogleEarthDbRootParser;Zve=Jle(m).then(function(){Wve=window.cesiumGoogleEarthDbRootParser(_zi),F(x)?window.cesiumGoogleEarthDbRootParser=x:delete window.cesiumGoogleEarthDbRootParser})}return Zve.then(function(){return f.fetchArrayBuffer()}).then(function(m){let x=Wve.EncryptedDbRootProto.decode(new Uint8Array(m)),y=x.encryptionData,v=y.byteOffset,C=v+y.byteLength,T=o.key=y.buffer.slice(v,C);y=x.dbrootData,v=y.byteOffset,C=v+y.byteLength;let S=y.buffer.slice(v,C);return Umt.scheduleTask({buffer:S,type:"DbRoot",key:T},[S])}).then(function(m){let x=Wve.DbRootProto.decode(new Uint8Array(m.buffer));if(o.imageryPresent=x.imageryPresent??o.imageryPresent,o.protoImagery=x.protoImagery,o.terrainPresent=x.terrainPresent??o.terrainPresent,F(x.endSnippet)&&F(x.endSnippet.model)){let T=x.endSnippet.model;o.negativeAltitudeExponentBias=T.negativeAltitudeExponentBias??o.negativeAltitudeExponentBias,o.negativeAltitudeThreshold=T.compressedNegativeAltitudeThreshold??o.negativeAltitudeThreshold}F(x.databaseVersion)&&(o._quadPacketVersion=x.databaseVersion.quadtreeVersion??o._quadPacketVersion);let y=o.providers,v=x.providerInfo??[],C=v.length;for(let T=0;T<C;++T){let S=v[T],w=S.copyrightString;F(w)&&(y[S.providerId]=new Oa(w.value))}}).catch(function(){console.log(`Failed to retrieve ${f.url}. Using defaults.`),o.key=Ezi})}var Z4=w1;function WO(o){o=o??si.EMPTY_OBJECT,this._buffer=o.buffer,this._credits=o.credits,this._negativeAltitudeExponentBias=o.negativeAltitudeExponentBias,this._negativeElevationThreshold=o.negativeElevationThreshold;let f=o.childTileMask??15,m=f&3;m|=f&4?8:0,m|=f&8?4:0,this._childTileMask=m,this._createdByUpsampling=o.createdByUpsampling??!1,this._skirtHeight=void 0,this._bufferType=this._buffer.constructor,this._mesh=void 0,this._minimumHeight=void 0,this._maximumHeight=void 0}Object.defineProperties(WO.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){}}});var Hmt="createVerticesFromGoogleEarthEnterpriseBuffer",Pzi=new mp(Hmt),Izi=new mp(Hmt,yO.maximumAsynchronousTasks),v7e=new vi,Ove=new vi;WO.prototype.createMesh=function(o){o=o??si.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,y=o.level,v=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,T=o.throttle??!0,S=f.ellipsoid;f.tileXYToNativeRectangle(m,x,y,v7e),f.tileXYToRectangle(m,x,y,Ove);let w=S.cartographicToCartesian(vi.center(Ove)),E=40075.16/(1<<y);this._skirtHeight=Math.min(E*8,1e3);let L=(T?Izi:Pzi).scheduleTask({buffer:this._buffer,nativeRectangle:v7e,rectangle:Ove,relativeToCenter:w,ellipsoid:S,skirtHeight:this._skirtHeight,exaggeration:v,exaggerationRelativeHeight:C,includeWebMercatorT:!0,negativeAltitudeExponentBias:this._negativeAltitudeExponentBias,negativeElevationThreshold:this._negativeElevationThreshold});if(!F(L))return;let I=this;return L.then(function(R){return I._mesh=new _O(w,new Float32Array(R.vertices),new Uint16Array(R.indices),R.indexCountWithoutSkirts,R.vertexCountWithoutSkirts,R.minimumHeight,R.maximumHeight,Ei.clone(R.boundingSphere3D),Z.clone(R.occludeePointInScaledSpace),R.numberOfAttributes,Tu.clone(R.orientedBoundingBox),PS.clone(R.encoding),R.westIndicesSouthToNorth,R.southIndicesEastToWest,R.eastIndicesNorthToSouth,R.northIndicesWestToEast),I._minimumHeight=R.minimumHeight,I._maximumHeight=R.maximumHeight,I._buffer=void 0,I._mesh})};WO.prototype.interpolateHeight=function(o,f,m){let x=be.clamp((f-o.west)/o.width,0,1),y=be.clamp((m-o.south)/o.height,0,1);return F(this._mesh)?Gzi(this,x,y):Nzi(this,x,y,o)};var Rzi=new mp("upsampleQuantizedTerrainMesh",yO.maximumAsynchronousTasks);WO.prototype.upsample=function(o,f,m,x,y,v,C){let T=this._mesh;if(!F(this._mesh))return;let S=f*2!==y,w=m*2===v,E=o.ellipsoid,L=o.tileXYToRectangle(y,v,C),I=Rzi.scheduleTask({vertices:T.vertices,indices:T.indices,indexCountWithoutSkirts:T.indexCountWithoutSkirts,vertexCountWithoutSkirts:T.vertexCountWithoutSkirts,encoding:T.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:S,isNorthChild:w,childRectangle:L,ellipsoid:E});if(!F(I))return;let R=this;return I.then(function(P){let A=new Uint16Array(P.vertices),M=Fn.createTypedArray(A.length/3,P.indices),V=R._skirtHeight;return new xde({quantizedVertices:A,indices:M,minimumHeight:P.minimumHeight,maximumHeight:P.maximumHeight,boundingSphere:Ei.clone(P.boundingSphere),orientedBoundingBox:Tu.clone(P.orientedBoundingBox),horizonOcclusionPoint:Z.clone(P.horizonOcclusionPoint),westIndices:P.westIndices,southIndices:P.southIndices,eastIndices:P.eastIndices,northIndices:P.northIndices,westSkirtHeight:V,southSkirtHeight:V,eastSkirtHeight:V,northSkirtHeight:V,childTileMask:0,createdByUpsampling:!0,credits:R._credits})})};WO.prototype.isChildAvailable=function(o,f,m,x){let y=2;return m!==o*2&&++y,x!==f*2&&(y-=2),(this._childTileMask&1<<y)!==0};WO.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var Azi=new rt,Mzi=new rt,Vzi=new rt,zmt=new Z;function Gzi(o,f,m){let x=o._mesh,y=x.vertices,v=x.encoding,C=x.indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=v.decodeTextureCoordinates(y,w,Azi),R=v.decodeTextureCoordinates(y,E,Mzi),P=v.decodeTextureCoordinates(y,L,Vzi),A=D4.computeBarycentricCoordinates(f,m,I.x,I.y,R.x,R.y,P.x,P.y,zmt);if(A.x>=-1e-15&&A.y>=-1e-15&&A.z>=-1e-15){let M=v.decodeHeight(y,w),V=v.decodeHeight(y,E),G=v.decodeHeight(y,L);return A.x*M+A.y*V+A.z*G}}}var Fzi=Uint16Array.BYTES_PER_ELEMENT,b7e=Uint32Array.BYTES_PER_ELEMENT,Xve=Int32Array.BYTES_PER_ELEMENT,Dzi=Float32Array.BYTES_PER_ELEMENT,kve=Float64Array.BYTES_PER_ELEMENT;function Nzi(o,f,m,x){let y=o._buffer,v=0,C=0,T=0;m>.5?(f>.5?(v=2,C=.5):v=3,T=.5):f>.5&&(v=1,C=.5);let S=new DataView(y),w=0;for(let k=0;k<v;++k)w+=S.getUint32(w,!0),w+=b7e;w+=b7e,w+=2*kve;let E=be.toRadians(S.getFloat64(w,!0)*180);w+=kve;let L=be.toRadians(S.getFloat64(w,!0)*180);w+=kve;let I=x.width/E/2,R=x.height/L/2,P=S.getInt32(w,!0);w+=Xve;let A=S.getInt32(w,!0)*3;w+=Xve,w+=Xve;let M=new Array(P),V=new Array(P),G=new Array(P),D;for(D=0;D<P;++D)M[D]=C+S.getUint8(w++)*I,V[D]=T+S.getUint8(w++)*R,G[D]=S.getFloat32(w,!0)*6371010,w+=Dzi;let N=new Array(A);for(D=0;D<A;++D)N[D]=S.getUint16(w,!0),w+=Fzi;for(D=0;D<A;D+=3){let k=N[D],U=N[D+1],B=N[D+2],Y=M[k],J=M[U],K=M[B],z=V[k],j=V[U],q=V[B],O=D4.computeBarycentricCoordinates(f,m,Y,z,J,j,K,q,zmt);if(O.x>=-1e-15&&O.y>=-1e-15&&O.z>=-1e-15)return O.x*G[k]+O.y*G[U]+O.z*G[B]}}var cle=WO,BT={UNKNOWN:0,NONE:1,SELF:2,PARENT:3},poe=new $t;function vde(){this._terrainCache={},this._lastTidy=$t.now()}vde.prototype.add=function(o,f){this._terrainCache[o]={buffer:f,timestamp:$t.now()}};vde.prototype.get=function(o){let f=this._terrainCache[o];if(F(f))return delete this._terrainCache[o],f.buffer};vde.prototype.tidy=function(){if($t.now(poe),$t.secondsDifference(poe,this._lastTidy)>10){let o=this._terrainCache,f=Object.keys(o),m=f.length;for(let x=0;x<m;++x){let y=f[x],v=o[y];$t.secondsDifference(poe,v.timestamp)>10&&delete o[y]}$t.clone(poe,this._lastTidy)}};function vF(o){o=o??si.EMPTY_OBJECT,this._tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new vi(-be.PI,-be.PI,be.PI,be.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._levelZeroMaximumGeometricError=40075.16,this._terrainCache=new vde,this._terrainPromises={},this._terrainRequests={},this._errorEvent=new Tr}Object.defineProperties(vF.prototype,{url:{get:function(){return this._metadata.url}},proxy:{get:function(){return this._metadata.proxy}},tilingScheme:{get:function(){return this._tilingScheme}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}}});vF.fromMetadata=function(o,f){if(!o.terrainPresent)throw new Oi(`The server ${o.url} doesn't have terrain`);let m=new vF(f);return m._metadata=o,m};var Wzi=new mp("decodeGoogleEarthEnterprisePacket");function C7e(o,f,m){let x=f.getChildBitmask();if(f.terrainState===BT.PARENT){x=0;for(let y=0;y<4;++y){let v=m.getTileInformationFromQuadKey(o+y.toString());F(v)&&v.hasTerrain()&&(x|=1<<y)}}return x}vF.prototype.requestTileGeometry=function(o,f,m,x){let y=Z4.tileXYToQuadKey(o,f,m),v=this._terrainCache,C=this._metadata,T=C.getTileInformationFromQuadKey(y);if(!F(T))return Promise.reject(new Oi("Terrain tile doesn't exist"));let S=T.terrainState;F(S)||(S=T.terrainState=BT.UNKNOWN);let w=v.get(y);if(F(w)){let V=C.providers[T.terrainProvider];return Promise.resolve(new cle({buffer:w,childTileMask:C7e(y,T,C),credits:F(V)?[V]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold}))}if(v.tidy(),T.ancestorHasTerrain){if(S===BT.NONE)return Promise.reject(new Oi("Terrain tile doesn't exist"))}else return Promise.resolve(new yL({buffer:new Uint8Array(16*16),width:16,height:16}));let E,L=y,I=-1;switch(S){case BT.SELF:I=T.terrainVersion;break;case BT.PARENT:L=L.substring(0,L.length-1),E=C.getTileInformationFromQuadKey(L),I=E.terrainVersion;break;case BT.UNKNOWN:T.hasTerrain()?I=T.terrainVersion:(L=L.substring(0,L.length-1),E=C.getTileInformationFromQuadKey(L),F(E)&&E.hasTerrain()&&(I=E.terrainVersion));break}if(I<0)return Promise.reject(new Oi("Terrain tile doesn't exist"));let R=this._terrainPromises,P=this._terrainRequests,A,M;if(F(R[L]))A=R[L],M=P[L];else{M=x;let V=Zzi(this,L,I,M).fetchArrayBuffer();if(!F(V))return;A=V.then(function(G){return F(G)?Wzi.scheduleTask({buffer:G,type:"Terrain",key:C.key},[G]).then(function(D){let N=C.getTileInformationFromQuadKey(L);N.terrainState=BT.SELF,v.add(L,D[0]);let k=N.terrainProvider,U=D.length-1;for(let B=0;B<U;++B){let Y=L+B.toString(),J=C.getTileInformationFromQuadKey(Y);F(J)&&(v.add(Y,D[B+1]),J.terrainState=BT.PARENT,J.terrainProvider===0&&(J.terrainProvider=k))}}):Promise.reject(new Oi("Failed to load terrain."))}),R[L]=A,P[L]=M,A=A.finally(function(){delete R[L],delete P[L]})}return A.then(function(){let V=v.get(y);if(F(V)){let G=C.providers[T.terrainProvider];return new cle({buffer:V,childTileMask:C7e(y,T,C),credits:F(G)?[G]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold})}return Promise.reject(new Oi("Failed to load terrain."))}).catch(function(V){return M.state===pc.CANCELLED?(x.state=M.state,Promise.reject(V)):(T.terrainState=BT.NONE,Promise.reject(V))})};vF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};vF.prototype.getTileDataAvailable=function(o,f,m){let x=this._metadata,y=Z4.tileXYToQuadKey(o,f,m),v=x.getTileInformation(o,f,m);if(v===null)return!1;if(F(v)){if(!v.ancestorHasTerrain)return!0;let C=v.terrainState;if(C===BT.NONE)return!1;if((!F(C)||C===BT.UNKNOWN)&&(v.terrainState=BT.UNKNOWN,!v.hasTerrain())){y=y.substring(0,y.length-1);let T=x.getTileInformationFromQuadKey(y);if(!F(T)||!T.hasTerrain())return!1}return!0}if(x.isValid(y)){let C=new hm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN});x.populateSubtree(o,f,m,C)}return!1};vF.prototype.loadTileDataAvailability=function(o,f,m){};function Zzi(o,f,m,x){return m=F(m)&&m>0?m:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1c-0${f}-t.${m.toString()}`,request:x})}var Ymt=vF,Ozi="https://maps.googleapis.com/maps/api/geocode/json",Kmt='<img alt="Google" src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align:-5px">';function lFe(o){o=o??si.EMPTY_OBJECT;let f=o.key;this._resource=new Mr({url:Ozi,queryParameters:{key:f}}),this._credit=new Oa(Kmt,!0)}Object.defineProperties(lFe.prototype,{credit:{get:function(){return this._credit}}});lFe.prototype.geocode=async function(o){let f=await this._resource.getDerivedResource({queryParameters:{address:o}}).fetchJson();if(f.status==="ZERO_RESULTS")return[];if(f.status!=="OK")throw new Oi(`GoogleGeocoderService got a bad response ${f.status}: ${f.error_message}`);return f.results.map(m=>{let x=m.geometry.viewport.southwest,y=m.geometry.viewport.northeast;return{displayName:m.formatted_address,destination:vi.fromDegrees(x.lng,x.lat,y.lng,y.lat),attribution:{html:Kmt,collapsible:!1}}})};var Jmt=lFe,bde={};bde.defaultApiKey=void 0;bde.mapTilesApiEndpoint=new Mr({url:"https://tile.googleapis.com/v1/"});bde.getDefaultCredit=function(){return new Oa('<img src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align: -5px" alt="Google">',!0)};var hQ=bde,t$={};t$.type=void 0;t$.getRequiredDataPoints=wt.throwInstantiationError;t$.interpolateOrderZero=wt.throwInstantiationError;t$.interpolate=wt.throwInstantiationError;var jmt=t$,Xzi={GOOGLE:"GOOGLE",BING:"BING",DEFAULT:"DEFAULT"},XZ=Object.freeze(Xzi);function uFe(o){this._url=Mr.createIfNeeded(o),this._url.appendForwardSlash()}Object.defineProperties(uFe.prototype,{url:{get:function(){return this._url}},credit:{get:function(){}}});uFe.prototype.geocode=async function(o,f){return this._url.getDerivedResource({url:f===e$.AUTOCOMPLETE?"autocomplete":"search",queryParameters:{text:o}}).fetchJson().then(function(m){return m.features.map(function(x){let y,v=x.bbox;if(F(v))y=vi.fromDegrees(v[0],v[1],v[2],v[3]);else{let C=x.geometry.coordinates[0],T=x.geometry.coordinates[1];y=Z.fromDegrees(C,T)}return{displayName:x.properties.label,destination:y,attributions:m.attributions}})})};var cFe=uFe;function kzi(o){if(!Object.values(XZ).some(f=>f===o))throw new wt(`Invalid geocodeProviderType: "${o}"`)}var Qmt=Object.freeze({[XZ.GOOGLE]:"google",[XZ.BING]:"bing",[XZ.DEFAULT]:void 0});function Uzi(o){return Qmt[o]}function Bzi(o){return Object.entries(Qmt).find(f=>f[1]===o)[0]}function hFe(o){o=o??si.EMPTY_OBJECT;let f=o.geocodeProviderType??XZ.DEFAULT,m=o.accessToken??GG.defaultAccessToken,x=Mr.createIfNeeded(o.server??GG.defaultServer);x.appendForwardSlash();let y=GG.getDefaultTokenCredit(m);F(y)&&o.scene.frameState.creditDisplay.addStaticCredit(Oa.clone(y));let v=x.getDerivedResource({url:"v1/geocode"});F(m)&&v.appendQueryParameters({access_token:m}),this._accessToken=m,this._server=x,this._pelias=new cFe(v),this.geocodeProviderType=f}Object.defineProperties(hFe.prototype,{credit:{get:function(){}},geocodeProviderType:{get:function(){return Bzi(this._pelias.url.queryParameters.geocoder)},set:function(o){kzi(o);let f={...this._pelias.url.queryParameters,geocoder:Uzi(o)};F(f.geocoder)||delete f.geocoder,this._pelias.url.setQueryParameters(f)}}});hFe.prototype.geocode=async function(o,f){return this._pelias.geocode(o,f)};var Cde=hFe,lm={};lm.ExportStatus=Object.freeze({NotStarted:"NotStarted",InProgress:"InProgress",Complete:"Complete",Invalid:"Invalid"});lm.ExportType=Object.freeze({IMODEL:"IMODEL",CESIUM:"CESIUM","3DTILES":"3DTILES"});lm.RealityDataType=Object.freeze({Cesium3DTiles:"Cesium3DTiles",PNTS:"PNTS",RealityMesh3DTiles:"RealityMesh3DTiles",Terrain3DTiles:"Terrain3DTiles",KML:"KML",GeoJSON:"GeoJSON",Unstructured:"Unstructured"});lm.defaultAccessToken=void 0;lm.defaultShareKey=void 0;lm._getAuthorizationHeader=function(){return F(lm.defaultShareKey)?`Basic ${lm.defaultShareKey}`:`Bearer ${lm.defaultAccessToken}`};lm.apiEndpoint=new Mr({url:"https://api.bentley.com"});lm.getExports=async function(o){let f=new Mr({url:`${lm.apiEndpoint}mesh-export`,headers:{Authorization:lm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json",Prefer:"return=representation"},queryParameters:{iModelId:o,exportType:lm.ExportType["3DTILES"],$top:"5",client:"CesiumJS"}});typeof CESIUM_VERSION<"u"&&f.appendQueryParameters({clientVersion:CESIUM_VERSION});try{return await f.fetchJson()}catch(m){let x=JSON.parse(m.response);if(m.statusCode===401){let y=x.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${y}`)}else{if(m.statusCode===403)throw console.error(x.error.code,x.error.message),new Oi("Not allowed, forbidden");if(m.statusCode===422)throw new Oi(`Unprocessable Entity:${x.error.code} ${x.error.message}`);if(m.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${m.statusCode}`)}};lm.getRealityDataMetadata=async function(o,f){let m=new Mr({url:`${lm.apiEndpoint}reality-management/reality-data/${f}`,headers:{Authorization:lm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{return(await m.fetchJson()).realityData}catch(x){let y=JSON.parse(x.response);if(x.statusCode===401){let v=y.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${v}`)}else{if(x.statusCode===403)throw console.error(y.error.code,y.error.message),new Oi("Not allowed, forbidden");if(x.statusCode===404)throw new Oi(`Reality data not found: ${o}, ${f}`);if(x.statusCode===422)throw new Oi(`Unprocessable Entity:${y.error.code} ${y.error.message}`);if(x.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${x.statusCode}`)}};lm.getRealityDataURL=async function(o,f,m){let x=new Mr({url:`${lm.apiEndpoint}reality-management/reality-data/${f}/readaccess`,headers:{Authorization:lm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{let y=(await x.fetchJson())._links.containerUrl.href,v=new URL(y);return v.pathname=`${v.pathname}/${m}`,v.toString()}catch(y){let v=JSON.parse(y.response);if(y.statusCode===401){let C=v.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${C}`)}else{if(y.statusCode===403)throw console.error(v.error.code,v.error.message),new Oi("Not allowed, forbidden");if(y.statusCode===404)throw new Oi(`Reality data not found: ${o}, ${f}`);if(y.statusCode===422)throw new Oi(`Unprocessable Entity:${v.error.code} ${v.error.message}`);if(y.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${y.statusCode}`)}};var wg=lm,Hzi=new mp("transcodeCRNToDXT",Number.POSITIVE_INFINITY);function zzi(o){let f;if(o instanceof ArrayBuffer||ArrayBuffer.isView(o)?f=Promise.resolve(o):f=Mr.createIfNeeded(o).fetchArrayBuffer(),!!F(f))return f.then(function(m){if(!F(m))return;let x=[];return m instanceof ArrayBuffer?x.push(m):(m.byteOffset===0&&m.byteLength===m.buffer.byteLength||(m=m.slice(0,m.length)),x.push(m.buffer)),Hzi.scheduleTask(m,x)}).then(function(m){return DS.clone(m)})}var qmt=zzi;function Tde(){wt.throwInstantiationError()}Object.defineProperties(Tde.prototype,{ellipsoid:{get:wt.throwInstantiationError}});Tde.prototype.project=wt.throwInstantiationError;Tde.prototype.unproject=wt.throwInstantiationError;var $mt=Tde;function O4(o){o=o??si.EMPTY_OBJECT;let f=o.weights,m=o.times;this._times=m,this._weights=f,this._count=f.length/m.length,this._lastTimeIndex=0}Object.defineProperties(O4.prototype,{times:{get:function(){return this._times}},weights:{get:function(){return this._weights}}});O4.prototype.findTimeInterval=B0.prototype.findTimeInterval;O4.prototype.wrapTime=B0.prototype.wrapTime;O4.prototype.clampTime=B0.prototype.clampTime;O4.prototype.evaluate=function(o,f){let m=this.weights,x=this.times,y=this._lastTimeIndex=this.findTimeInterval(o,this._lastTimeIndex),v=(o-x[y])/(x[y+1]-x[y]);F(f)||(f=new Array(this._count));for(let C=0;C<this._count;C++){let T=y*this._count+C;f[C]=m[T]*(1-v)+m[T+this._count]*v}return f};var ext=O4;function dFe(o,f,m){o=Mr.createIfNeeded(o),o.appendForwardSlash(),o.setQueryParameters({key:f}),this._url=o,this._params=m??{},this._credit=new Oa('Geodata copyright <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',!1)}Object.defineProperties(dFe.prototype,{url:{get:function(){return this._url}},params:{get:function(){return this._params}},credit:{get:function(){return this._credit}}});dFe.prototype.geocode=async function(o){return this._url.getDerivedResource({url:"json",queryParameters:va(this._params,{q:o})}).fetchJson().then(function(f){return f.results.map(function(m){let x,y=m.bounds;if(F(y))x=vi.fromDegrees(y.southwest.lng,y.southwest.lat,y.northeast.lng,y.northeast.lat);else{let v=m.geometry.lat,C=m.geometry.lng;x=Z.fromDegrees(v,C)}return{displayName:m.formatted,destination:x}})})};var txt=dFe,Yzi={packedLength:void 0,pack:wt.throwInstantiationError,unpack:wt.throwInstantiationError},ixt=Yzi,Kzi={packedInterpolationLength:void 0,convertPackedArrayForInterpolation:wt.throwInstantiationError,unpackInterpolationResult:wt.throwInstantiationError},rxt=Kzi,Jzi=new Z;function jzi(o,f,m,x){let y=nue(o,f,m,x,Jzi);return F(y)?y.x>0&&y.y>0&&y.z>0:!1}var nxt=jzi;function oxt(){wt.throwInstantiationError()}oxt.prototype.getURL=wt.throwInstantiationError;var axt=oxt;function Qzi(o,f,m,x,y,v,C){let T=od.numberOfPoints(o,f,y),S,w=m.red,E=m.green,L=m.blue,I=m.alpha,R=x.red,P=x.green,A=x.blue,M=x.alpha;if(Xe.equals(m,x)){for(S=0;S<T;S++)v[C++]=Xe.floatToByte(w),v[C++]=Xe.floatToByte(E),v[C++]=Xe.floatToByte(L),v[C++]=Xe.floatToByte(I);return C}let V=(R-w)/T,G=(P-E)/T,D=(A-L)/T,N=(M-I)/T,k=C;for(S=0;S<T;S++)v[k++]=Xe.floatToByte(w+S*V),v[k++]=Xe.floatToByte(E+S*G),v[k++]=Xe.floatToByte(L+S*D),v[k++]=Xe.floatToByte(I+S*N);return k}function I6(o){o=o??si.EMPTY_OBJECT;let f=o.positions,m=o.colors,x=o.colorsPerVertex??!1;this._positions=f,this._colors=m,this._colorsPerVertex=x,this._arcType=o.arcType??qa.GEODESIC,this._granularity=o.granularity??be.RADIANS_PER_DEGREE,this._ellipsoid=o.ellipsoid??yi.default,this._workerName="createSimplePolylineGeometry";let y=1+f.length*Z.packedLength;y+=F(m)?1+m.length*Xe.packedLength:1,this.packedLength=y+yi.packedLength+3}I6.pack=function(o,f,m){m=m??0;let x,y=o._positions,v=y.length;for(f[m++]=v,x=0;x<v;++x,m+=Z.packedLength)Z.pack(y[x],f,m);let C=o._colors;for(v=F(C)?C.length:0,f[m++]=v,x=0;x<v;++x,m+=Xe.packedLength)Xe.pack(C[x],f,m);return yi.pack(o._ellipsoid,f,m),m+=yi.packedLength,f[m++]=o._colorsPerVertex?1:0,f[m++]=o._arcType,f[m]=o._granularity,f};I6.unpack=function(o,f,m){f=f??0;let x,y=o[f++],v=new Array(y);for(x=0;x<y;++x,f+=Z.packedLength)v[x]=Z.unpack(o,f);y=o[f++];let C=y>0?new Array(y):void 0;for(x=0;x<y;++x,f+=Xe.packedLength)C[x]=Xe.unpack(o,f);let T=yi.unpack(o,f);f+=yi.packedLength;let S=o[f++]===1,w=o[f++],E=o[f];return F(m)?(m._positions=v,m._colors=C,m._ellipsoid=T,m._colorsPerVertex=S,m._arcType=w,m._granularity=E,m):new I6({positions:v,colors:C,ellipsoid:T,colorsPerVertex:S,arcType:w,granularity:E})};var xae=new Array(2),gae=new Array(2),qzi={positions:xae,height:gae,ellipsoid:void 0,minDistance:void 0,granularity:void 0};I6.createGeometry=function(o){let f=o._positions,m=o._colors,x=o._colorsPerVertex,y=o._arcType,v=o._granularity,C=o._ellipsoid,T=be.chordLength(v,C.maximumRadius),S=F(m)&&!x,w,E=f.length,L,I,R,P,A=0;if(y===qa.GEODESIC||y===qa.RHUMB){let N,k,U;y===qa.GEODESIC?(N=be.chordLength(v,C.maximumRadius),k=od.numberOfPoints,U=od.generateArc):(N=v,k=od.numberOfPointsRhumbLine,U=od.generateRhumbArc);let B=od.extractHeights(f,C),Y=qzi;if(y===qa.GEODESIC?Y.minDistance=T:Y.granularity=v,Y.ellipsoid=C,S){let J=0;for(w=0;w<E-1;w++)J+=k(f[w],f[w+1],N)+1;L=new Float64Array(J*3),R=new Uint8Array(J*4),Y.positions=xae,Y.height=gae;let K=0;for(w=0;w<E-1;++w){xae[0]=f[w],xae[1]=f[w+1],gae[0]=B[w],gae[1]=B[w+1];let z=U(Y);if(F(m)){let j=z.length/3;P=m[w];for(let q=0;q<j;++q)R[K++]=Xe.floatToByte(P.red),R[K++]=Xe.floatToByte(P.green),R[K++]=Xe.floatToByte(P.blue),R[K++]=Xe.floatToByte(P.alpha)}L.set(z,A),A+=z.length}}else if(Y.positions=f,Y.height=B,L=new Float64Array(U(Y)),F(m)){for(R=new Uint8Array(L.length/3*4),w=0;w<E-1;++w){let K=f[w],z=f[w+1],j=m[w],q=m[w+1];A=Qzi(K,z,j,q,T,R,A)}let J=m[E-1];R[A++]=Xe.floatToByte(J.red),R[A++]=Xe.floatToByte(J.green),R[A++]=Xe.floatToByte(J.blue),R[A++]=Xe.floatToByte(J.alpha)}}else{I=S?E*2-2:E,L=new Float64Array(I*3),R=F(m)?new Uint8Array(I*4):void 0;let N=0,k=0;for(w=0;w<E;++w){let U=f[w];if(S&&w>0&&(Z.pack(U,L,N),N+=3,P=m[w-1],R[k++]=Xe.floatToByte(P.red),R[k++]=Xe.floatToByte(P.green),R[k++]=Xe.floatToByte(P.blue),R[k++]=Xe.floatToByte(P.alpha)),S&&w===E-1)break;Z.pack(U,L,N),N+=3,F(m)&&(P=m[w],R[k++]=Xe.floatToByte(P.red),R[k++]=Xe.floatToByte(P.green),R[k++]=Xe.floatToByte(P.blue),R[k++]=Xe.floatToByte(P.alpha))}}let M=new Zc;M.position=new Xr({componentDatatype:Qt.DOUBLE,componentsPerAttribute:3,values:L}),F(m)&&(M.color=new Xr({componentDatatype:Qt.UNSIGNED_BYTE,componentsPerAttribute:4,values:R,normalize:!0})),I=L.length/3;let V=(I-1)*2,G=Fn.createTypedArray(I,V),D=0;for(w=0;w<I-1;++w)G[D++]=w,G[D++]=w+1;return new xa({attributes:M,indices:G,primitiveType:pn.LINES,boundingSphere:Ei.fromPoints(f)})};var sxt=I6;function QH(o){let f=o.radius??1,m={radii:new Z(f,f,f),stackPartitions:o.stackPartitions,slicePartitions:o.slicePartitions,vertexFormat:o.vertexFormat};this._ellipsoidGeometry=new Jm(m),this._workerName="createSphereGeometry"}QH.packedLength=Jm.packedLength;QH.pack=function(o,f,m){return Jm.pack(o._ellipsoidGeometry,f,m)};var $zi=new Jm,O5={radius:void 0,radii:new Z,vertexFormat:new Yr,stackPartitions:void 0,slicePartitions:void 0};QH.unpack=function(o,f,m){let x=Jm.unpack(o,f,$zi);return O5.vertexFormat=Yr.clone(x._vertexFormat,O5.vertexFormat),O5.stackPartitions=x._stackPartitions,O5.slicePartitions=x._slicePartitions,F(m)?(Z.clone(x._radii,O5.radii),m._ellipsoidGeometry=new Jm(O5),m):(O5.radius=x._radii.x,new QH(O5))};QH.createGeometry=function(o){return Jm.createGeometry(o._ellipsoidGeometry)};var lxt=QH;function nD(o){}Object.defineProperties(nD.prototype,{ellipsoid:{get:wt.throwInstantiationError},rectangle:{get:wt.throwInstantiationError},projection:{get:wt.throwInstantiationError}});nD.prototype.getNumberOfXTilesAtLevel=wt.throwInstantiationError;nD.prototype.getNumberOfYTilesAtLevel=wt.throwInstantiationError;nD.prototype.rectangleToNativeRectangle=wt.throwInstantiationError;nD.prototype.tileXYToNativeRectangle=wt.throwInstantiationError;nD.prototype.tileXYToRectangle=wt.throwInstantiationError;nD.prototype.positionToTileXY=wt.throwInstantiationError;var uxt=nD;function L9(o){o=o??si.EMPTY_OBJECT,this._clock=void 0,this._element=void 0,this._clockSubscription=void 0,this._seekFunction=void 0,this._lastPlaybackRate=void 0,this.clock=o.clock,this.element=o.element,this.epoch=o.epoch??wn.MINIMUM_VALUE,this.tolerance=o.tolerance??1,this._seeking=!1,this._seekFunction=void 0,this._firstTickAfterSeek=!1}Object.defineProperties(L9.prototype,{clock:{get:function(){return this._clock},set:function(o){let f=this._clock;f!==o&&(F(f)&&(this._clockSubscription(),this._clockSubscription=void 0),F(o)&&(this._clockSubscription=o.onTick.addEventListener(L9.prototype._onTick,this)),this._clock=o)}},element:{get:function(){return this._element},set:function(o){let f=this._element;f!==o&&(F(f)&&f.removeEventListener("seeked",this._seekFunction,!1),F(o)&&(this._seeking=!1,this._seekFunction=e4i(this),o.addEventListener("seeked",this._seekFunction,!1)),this._element=o,this._seeking=!1,this._firstTickAfterSeek=!1)}}});L9.prototype.destroy=function(){return this.element=void 0,this.clock=void 0,yr(this)};L9.prototype.isDestroyed=function(){return!1};L9.prototype._trySetPlaybackRate=function(o){if(this._lastPlaybackRate===o.multiplier)return;let f=this._element;try{f.playbackRate=o.multiplier}catch{f.playbackRate=0}this._lastPlaybackRate=o.multiplier};L9.prototype._onTick=function(o){let f=this._element;if(!F(f)||f.readyState<2)return;let m=f.paused,x=o.shouldAnimate;if(x===m&&(x?f.play():f.pause()),this._seeking||this._firstTickAfterSeek){this._firstTickAfterSeek=!1;return}this._trySetPlaybackRate(o);let y=o.currentTime,v=this.epoch??wn.MINIMUM_VALUE,C=$t.secondsDifference(y,v),T=f.duration,S,w=f.currentTime;f.loop?(C=C%T,C<0&&(C=T-C),S=C):C>T?S=T:C<0?S=0:S=C;let E=x?this.tolerance??1:.001;Math.abs(S-w)>E&&(this._seeking=!0,f.currentTime=S)};function e4i(o){return function(){o._seeking=!1,o._firstTickAfterSeek=!0}}var cxt=L9;function t4i(o,f){this.rectangle=o,this.maxLevel=f}function hxt(o){this.ellipsoid=o.ellipsoid??yi.default,this.tilingScheme=void 0,this.heightmapWidth=void 0,this.heightmapHeight=void 0,this.levelZeroMaximumGeometricError=void 0,this.rectangles=[]}hxt.prototype.build=function(o){o._tilingScheme=this.tilingScheme,o._heightmapWidth=this.heightmapWidth,o._heightmapHeight=this.heightmapHeight,o._levelZeroMaximumGeometricError=this.levelZeroMaximumGeometricError,o._rectangles=this.rectangles};function i4i(o,f){let m=f.getElementsByTagName("SRS")[0].textContent;if(m==="EPSG:4326")o.tilingScheme=new _h({ellipsoid:o.ellipsoid});else throw new Oi(`SRS ${m} is not supported`);let x=f.getElementsByTagName("TileFormat")[0];o.heightmapWidth=parseInt(x.getAttribute("width"),10),o.heightmapHeight=parseInt(x.getAttribute("height"),10),o.levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.ellipsoid,Math.min(o.heightmapWidth,o.heightmapHeight),o.tilingScheme.getNumberOfXTilesAtLevel(0));let y=f.getElementsByTagName("DataExtent");for(let v=0;v<y.length;++v){let C=y[v],T=be.toRadians(parseFloat(C.getAttribute("minx"))),S=be.toRadians(parseFloat(C.getAttribute("miny"))),w=be.toRadians(parseFloat(C.getAttribute("maxx"))),E=be.toRadians(parseFloat(C.getAttribute("maxy"))),L=parseInt(C.getAttribute("maxlevel"),10);o.rectangles.push(new t4i(new vi(T,S,w,E),L))}}function r4i(o,f,m){let x=`An error occurred while accessing ${o.url}`;throw F(f)&&F(f.message)&&(x=`${x}: ${f.message}`),am.reportError(void 0,m,F(m)?m._errorEvent:void 0,x),new Oi(x)}async function n4i(o,f,m){try{let x=await f.fetchXML();i4i(o,x)}catch(x){r4i(f,x,m)}}function bF(o){o=o??si.EMPTY_OBJECT,this._errorEvent=new Tr,this._terrainDataStructure={heightScale:1/1e3,heightOffset:-1e3,elementsPerHeight:3,stride:4,elementMultiplier:256,isBigEndian:!0,lowestEncodedHeight:0,highestEncodedHeight:256*256*256-1};let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._tilingScheme=void 0,this._rectangles=[]}Object.defineProperties(bF.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}}});bF.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT;let m=new hxt(f),x=Mr.createIfNeeded(o);await n4i(m,x);let y=new bF(f);return m.build(y),y._resource=x,y};bF.prototype.requestTileGeometry=function(o,f,m,x){let y=this._tilingScheme.getNumberOfYTilesAtLevel(m),v=this._resource.getDerivedResource({url:`${m}/${o}/${y-f-1}.tif`,queryParameters:{cesium:!0},request:x}).fetchImage({preferImageBitmap:!0});if(!F(v))return;let C=this;return Promise.resolve(v).then(function(T){return new yL({buffer:BZ(T),width:C._heightmapWidth,height:C._heightmapHeight,childTileMask:o4i(C,o,f,m),structure:C._terrainDataStructure})})};bF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};var dxt=new vi;function o4i(o,f,m,x){let y=o._tilingScheme,v=o._rectangles,C=y.tileXYToRectangle(f,m,x),T=0;for(let S=0;S<v.length&&T!==15;++S){let w=v[S];if(w.maxLevel<=x)continue;let E=w.rectangle,L=vi.intersection(E,C,dxt);F(L)&&(foe(y,E,f*2,m*2,x+1)&&(T|=4),foe(y,E,f*2+1,m*2,x+1)&&(T|=8),foe(y,E,f*2,m*2+1,x+1)&&(T|=1),foe(y,E,f*2+1,m*2+1,x+1)&&(T|=2))}return T}function foe(o,f,m,x,y){let v=o.tileXYToRectangle(m,x,y);return F(vi.intersection(v,f,dxt))}bF.prototype.getTileDataAvailable=function(o,f,m){};bF.prototype.loadTileDataAvailability=function(o,f,m){};var pxt=bF,a4i={VK_FORMAT_UNDEFINED:0,VK_FORMAT_R4G4_UNORM_PACK8:1,VK_FORMAT_R4G4B4A4_UNORM_PACK16:2,VK_FORMAT_B4G4R4A4_UNORM_PACK16:3,VK_FORMAT_R5G6B5_UNORM_PACK16:4,VK_FORMAT_B5G6R5_UNORM_PACK16:5,VK_FORMAT_R5G5B5A1_UNORM_PACK16:6,VK_FORMAT_B5G5R5A1_UNORM_PACK16:7,VK_FORMAT_A1R5G5B5_UNORM_PACK16:8,VK_FORMAT_R8_UNORM:9,VK_FORMAT_R8_SNORM:10,VK_FORMAT_R8_USCALED:11,VK_FORMAT_R8_SSCALED:12,VK_FORMAT_R8_UINT:13,VK_FORMAT_R8_SINT:14,VK_FORMAT_R8_SRGB:15,VK_FORMAT_R8G8_UNORM:16,VK_FORMAT_R8G8_SNORM:17,VK_FORMAT_R8G8_USCALED:18,VK_FORMAT_R8G8_SSCALED:19,VK_FORMAT_R8G8_UINT:20,VK_FORMAT_R8G8_SINT:21,VK_FORMAT_R8G8_SRGB:22,VK_FORMAT_R8G8B8_UNORM:23,VK_FORMAT_R8G8B8_SNORM:24,VK_FORMAT_R8G8B8_USCALED:25,VK_FORMAT_R8G8B8_SSCALED:26,VK_FORMAT_R8G8B8_UINT:27,VK_FORMAT_R8G8B8_SINT:28,VK_FORMAT_R8G8B8_SRGB:29,VK_FORMAT_B8G8R8_UNORM:30,VK_FORMAT_B8G8R8_SNORM:31,VK_FORMAT_B8G8R8_USCALED:32,VK_FORMAT_B8G8R8_SSCALED:33,VK_FORMAT_B8G8R8_UINT:34,VK_FORMAT_B8G8R8_SINT:35,VK_FORMAT_B8G8R8_SRGB:36,VK_FORMAT_R8G8B8A8_UNORM:37,VK_FORMAT_R8G8B8A8_SNORM:38,VK_FORMAT_R8G8B8A8_USCALED:39,VK_FORMAT_R8G8B8A8_SSCALED:40,VK_FORMAT_R8G8B8A8_UINT:41,VK_FORMAT_R8G8B8A8_SINT:42,VK_FORMAT_R8G8B8A8_SRGB:43,VK_FORMAT_B8G8R8A8_UNORM:44,VK_FORMAT_B8G8R8A8_SNORM:45,VK_FORMAT_B8G8R8A8_USCALED:46,VK_FORMAT_B8G8R8A8_SSCALED:47,VK_FORMAT_B8G8R8A8_UINT:48,VK_FORMAT_B8G8R8A8_SINT:49,VK_FORMAT_B8G8R8A8_SRGB:50,VK_FORMAT_A8B8G8R8_UNORM_PACK32:51,VK_FORMAT_A8B8G8R8_SNORM_PACK32:52,VK_FORMAT_A8B8G8R8_USCALED_PACK32:53,VK_FORMAT_A8B8G8R8_SSCALED_PACK32:54,VK_FORMAT_A8B8G8R8_UINT_PACK32:55,VK_FORMAT_A8B8G8R8_SINT_PACK32:56,VK_FORMAT_A8B8G8R8_SRGB_PACK32:57,VK_FORMAT_A2R10G10B10_UNORM_PACK32:58,VK_FORMAT_A2R10G10B10_SNORM_PACK32:59,VK_FORMAT_A2R10G10B10_USCALED_PACK32:60,VK_FORMAT_A2R10G10B10_SSCALED_PACK32:61,VK_FORMAT_A2R10G10B10_UINT_PACK32:62,VK_FORMAT_A2R10G10B10_SINT_PACK32:63,VK_FORMAT_A2B10G10R10_UNORM_PACK32:64,VK_FORMAT_A2B10G10R10_SNORM_PACK32:65,VK_FORMAT_A2B10G10R10_USCALED_PACK32:66,VK_FORMAT_A2B10G10R10_SSCALED_PACK32:67,VK_FORMAT_A2B10G10R10_UINT_PACK32:68,VK_FORMAT_A2B10G10R10_SINT_PACK32:69,VK_FORMAT_R16_UNORM:70,VK_FORMAT_R16_SNORM:71,VK_FORMAT_R16_USCALED:72,VK_FORMAT_R16_SSCALED:73,VK_FORMAT_R16_UINT:74,VK_FORMAT_R16_SINT:75,VK_FORMAT_R16_SFLOAT:76,VK_FORMAT_R16G16_UNORM:77,VK_FORMAT_R16G16_SNORM:78,VK_FORMAT_R16G16_USCALED:79,VK_FORMAT_R16G16_SSCALED:80,VK_FORMAT_R16G16_UINT:81,VK_FORMAT_R16G16_SINT:82,VK_FORMAT_R16G16_SFLOAT:83,VK_FORMAT_R16G16B16_UNORM:84,VK_FORMAT_R16G16B16_SNORM:85,VK_FORMAT_R16G16B16_USCALED:86,VK_FORMAT_R16G16B16_SSCALED:87,VK_FORMAT_R16G16B16_UINT:88,VK_FORMAT_R16G16B16_SINT:89,VK_FORMAT_R16G16B16_SFLOAT:90,VK_FORMAT_R16G16B16A16_UNORM:91,VK_FORMAT_R16G16B16A16_SNORM:92,VK_FORMAT_R16G16B16A16_USCALED:93,VK_FORMAT_R16G16B16A16_SSCALED:94,VK_FORMAT_R16G16B16A16_UINT:95,VK_FORMAT_R16G16B16A16_SINT:96,VK_FORMAT_R16G16B16A16_SFLOAT:97,VK_FORMAT_R32_UINT:98,VK_FORMAT_R32_SINT:99,VK_FORMAT_R32_SFLOAT:100,VK_FORMAT_R32G32_UINT:101,VK_FORMAT_R32G32_SINT:102,VK_FORMAT_R32G32_SFLOAT:103,VK_FORMAT_R32G32B32_UINT:104,VK_FORMAT_R32G32B32_SINT:105,VK_FORMAT_R32G32B32_SFLOAT:106,VK_FORMAT_R32G32B32A32_UINT:107,VK_FORMAT_R32G32B32A32_SINT:108,VK_FORMAT_R32G32B32A32_SFLOAT:109,VK_FORMAT_R64_UINT:110,VK_FORMAT_R64_SINT:111,VK_FORMAT_R64_SFLOAT:112,VK_FORMAT_R64G64_UINT:113,VK_FORMAT_R64G64_SINT:114,VK_FORMAT_R64G64_SFLOAT:115,VK_FORMAT_R64G64B64_UINT:116,VK_FORMAT_R64G64B64_SINT:117,VK_FORMAT_R64G64B64_SFLOAT:118,VK_FORMAT_R64G64B64A64_UINT:119,VK_FORMAT_R64G64B64A64_SINT:120,VK_FORMAT_R64G64B64A64_SFLOAT:121,VK_FORMAT_B10G11R11_UFLOAT_PACK32:122,VK_FORMAT_E5B9G9R9_UFLOAT_PACK32:123,VK_FORMAT_D16_UNORM:124,VK_FORMAT_X8_D24_UNORM_PACK32:125,VK_FORMAT_D32_SFLOAT:126,VK_FORMAT_S8_UINT:127,VK_FORMAT_D16_UNORM_S8_UINT:128,VK_FORMAT_D24_UNORM_S8_UINT:129,VK_FORMAT_D32_SFLOAT_S8_UINT:130,VK_FORMAT_BC1_RGB_UNORM_BLOCK:131,VK_FORMAT_BC1_RGB_SRGB_BLOCK:132,VK_FORMAT_BC1_RGBA_UNORM_BLOCK:133,VK_FORMAT_BC1_RGBA_SRGB_BLOCK:134,VK_FORMAT_BC2_UNORM_BLOCK:135,VK_FORMAT_BC2_SRGB_BLOCK:136,VK_FORMAT_BC3_UNORM_BLOCK:137,VK_FORMAT_BC3_SRGB_BLOCK:138,VK_FORMAT_BC4_UNORM_BLOCK:139,VK_FORMAT_BC4_SNORM_BLOCK:140,VK_FORMAT_BC5_UNORM_BLOCK:141,VK_FORMAT_BC5_SNORM_BLOCK:142,VK_FORMAT_BC6H_UFLOAT_BLOCK:143,VK_FORMAT_BC6H_SFLOAT_BLOCK:144,VK_FORMAT_BC7_UNORM_BLOCK:145,VK_FORMAT_BC7_SRGB_BLOCK:146,VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK:147,VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK:148,VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK:149,VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK:150,VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK:151,VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK:152,VK_FORMAT_EAC_R11_UNORM_BLOCK:153,VK_FORMAT_EAC_R11_SNORM_BLOCK:154,VK_FORMAT_EAC_R11G11_UNORM_BLOCK:155,VK_FORMAT_EAC_R11G11_SNORM_BLOCK:156,VK_FORMAT_ASTC_4x4_UNORM_BLOCK:157,VK_FORMAT_ASTC_4x4_SRGB_BLOCK:158,VK_FORMAT_ASTC_5x4_UNORM_BLOCK:159,VK_FORMAT_ASTC_5x4_SRGB_BLOCK:160,VK_FORMAT_ASTC_5x5_UNORM_BLOCK:161,VK_FORMAT_ASTC_5x5_SRGB_BLOCK:162,VK_FORMAT_ASTC_6x5_UNORM_BLOCK:163,VK_FORMAT_ASTC_6x5_SRGB_BLOCK:164,VK_FORMAT_ASTC_6x6_UNORM_BLOCK:165,VK_FORMAT_ASTC_6x6_SRGB_BLOCK:166,VK_FORMAT_ASTC_8x5_UNORM_BLOCK:167,VK_FORMAT_ASTC_8x5_SRGB_BLOCK:168,VK_FORMAT_ASTC_8x6_UNORM_BLOCK:169,VK_FORMAT_ASTC_8x6_SRGB_BLOCK:170,VK_FORMAT_ASTC_8x8_UNORM_BLOCK:171,VK_FORMAT_ASTC_8x8_SRGB_BLOCK:172,VK_FORMAT_ASTC_10x5_UNORM_BLOCK:173,VK_FORMAT_ASTC_10x5_SRGB_BLOCK:174,VK_FORMAT_ASTC_10x6_UNORM_BLOCK:175,VK_FORMAT_ASTC_10x6_SRGB_BLOCK:176,VK_FORMAT_ASTC_10x8_UNORM_BLOCK:177,VK_FORMAT_ASTC_10x8_SRGB_BLOCK:178,VK_FORMAT_ASTC_10x10_UNORM_BLOCK:179,VK_FORMAT_ASTC_10x10_SRGB_BLOCK:180,VK_FORMAT_ASTC_12x10_UNORM_BLOCK:181,VK_FORMAT_ASTC_12x10_SRGB_BLOCK:182,VK_FORMAT_ASTC_12x12_UNORM_BLOCK:183,VK_FORMAT_ASTC_12x12_SRGB_BLOCK:184,VK_FORMAT_G8B8G8R8_422_UNORM:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM:1000156006,VK_FORMAT_R10X6_UNORM_PACK16:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16:1000156016,VK_FORMAT_R12X4_UNORM_PACK16:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM:1000156033,VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG:1000054e3,VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG:1000054001,VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG:1000054002,VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG:1000054003,VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG:1000054004,VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG:1000054005,VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG:1000054006,VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG:1000054007,VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT:1000066e3,VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT:1000066001,VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT:1000066002,VK_FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT:1000066003,VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT:1000066004,VK_FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT:1000066005,VK_FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT:1000066006,VK_FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT:1000066007,VK_FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT:1000066008,VK_FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT:1000066009,VK_FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT:1000066010,VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT:1000066011,VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT:1000066012,VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT:1000066013,VK_FORMAT_G8B8G8R8_422_UNORM_KHR:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM_KHR:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM_KHR:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM_KHR:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM_KHR:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM_KHR:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM_KHR:1000156006,VK_FORMAT_R10X6_UNORM_PACK16_KHR:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16_KHR:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16_KHR:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16_KHR:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16_KHR:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16_KHR:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16_KHR:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16_KHR:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16_KHR:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16_KHR:1000156016,VK_FORMAT_R12X4_UNORM_PACK16_KHR:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16_KHR:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16_KHR:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16_KHR:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16_KHR:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16_KHR:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16_KHR:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16_KHR:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16_KHR:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16_KHR:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM_KHR:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM_KHR:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM_KHR:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM_KHR:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM_KHR:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM_KHR:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM_KHR:1000156033},fxt=Object.freeze(a4i);function s4i(o){switch(o){case bi.FLOAT:return"float";case bi.FLOAT_VEC2:return"vec2";case bi.FLOAT_VEC3:return"vec3";case bi.FLOAT_VEC4:return"vec4";case bi.FLOAT_MAT2:return"mat2";case bi.FLOAT_MAT3:return"mat3";case bi.FLOAT_MAT4:return"mat4";case bi.SAMPLER_2D:return"sampler2D";case bi.BOOL:return"bool"}}var mxt=s4i;function l4i(o,f,m){return function(){m.apply(o,arguments),f.apply(o,arguments)}}var pFe=l4i;function qH(o){o=o??si.EMPTY_OBJECT,Da.defined("options.context",o.context);let f=o.context,m=o.width,x=o.height,y=o.depth,v=o.source,C=o.pixelFormat??zr.RGBA,T=o.pixelDataType??un.UNSIGNED_BYTE,S=zr.toInternalFormat(C,T,f);if(!F(m)||!F(x)||!F(y))throw new wt("options requires a source field to create an 3d texture. width or height or dimension fileds");if(Da.typeOf.number.greaterThan("width",m,0),m>co.maximumTextureSize)throw new wt("width must be less than or equal to the maximum texture size");if(Da.typeOf.number.greaterThan("height",x,0),x>co.maximumTextureSize)throw new wt("height must be less than or equal to the maximum texture size");if(Da.typeOf.number.greaterThan("dimensions",y,0),y>co.maximumTextureSize)throw new wt("dimension must be less than or equal to the maximum texture size");if(!zr.validate(C))throw new wt("Invalid options.pixelFormat.");if(!un.validate(T))throw new wt("Invalid options.pixelDatatype.");let w=!0,E=f._gl,L=E.TEXTURE_3D,I=E.createTexture();E.activeTexture(E.TEXTURE0),E.bindTexture(L,I);let R=4;if(F(v)&&F(v.arrayBufferView)&&(R=zr.alignmentInBytes(C,T,m)),E.pixelStorei(E.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),E.pixelStorei(E.UNPACK_FLIP_Y_WEBGL,!1),E.pixelStorei(E.UNPACK_ALIGNMENT,R),E.pixelStorei(E.UNPACK_COLORSPACE_CONVERSION_WEBGL,E.BROWSER_DEFAULT_WEBGL),F(v)&&F(v.arrayBufferView)){let P=v.arrayBufferView;E.texImage3D(L,0,S,m,x,y,0,C,un.toWebGLConstant(T,f),P),w=!0}E.bindTexture(L,null),this._id=du(),this._context=f,this._textureFilterAnisotropic=f._textureFilterAnisotropic,this._textureTarget=L,this._texture=I,this._internalFormat=S,this._pixelFormat=C,this._pixelDatatype=T,this._width=m,this._height=x,this._depth=y,this._dimensions=new Z(m,x,y),this._hasMinmap=!1,this._sizeInBytes=4,this._preMultiplyAlpha=!1,this._flipY=!1,this._initialized=w,this._sampler=void 0,this.sampler=F(o.sampler)?o.sampler:new Yo}qH.fromFramebuffer=function(o){o=o??si.EMPTY_OBJECT,Da.defined("options.context",o.context);let f=o.context,m=f._gl,x=o.pixelFormat??zr.RGB,y=o.width??m.drawingBufferWidth,v=o.height??m.drawingBufferHeight,C=o.depth??128,T=o.framebuffer;return new qH({context:f,width:y,height:v,pixelFormat:x,source:{framebuffer:F(T)?T:f.defaultFramebuffer,width:y,height:v,depth:C}})};Object.defineProperties(qH.prototype,{id:{get:function(){return this._id}},sampler:{get:function(){return this._sampler},set:function(o){let f=o.minificationFilter,m=o.magnificationFilter,x=this._context._gl,y=this._textureTarget;x.activeTexture(x.TEXTURE0),x.bindTexture(y,this._texture),x.texParameteri(y,x.TEXTURE_MIN_FILTER,f),x.texParameteri(y,x.TEXTURE_MAG_FILTER,m),x.texParameteri(y,x.TEXTURE_WRAP_R,o.wrapR),x.texParameteri(y,x.TEXTURE_WRAP_S,o.wrapS),x.texParameteri(y,x.TEXTURE_WRAP_T,o.wrapT),x.bindTexture(y,null),this._sampler=o}},dimensions:{get:function(){return this._dimensions}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},depth:{get:function(){return this._depth}},_target:{get:function(){return this._textureTarget}}});qH.prototype.isDestroyed=function(){return!1};qH.prototype.destory=function(){return this._context._gl.deleteTexture(this._texture),yr(this)};var fFe=qH,mFe=`uniform sampler2D u_noiseTexture;
uniform vec3 u_noiseTextureDimensions;
uniform float u_noiseDetail;
in vec2 v_offset;
@@ -20299,7 +20306,7 @@
#endif
#endif
}
`,eFe=`#ifdef INSTANCED
`,xFe=`#ifdef INSTANCED
in vec2 direction;
#endif
in vec4 positionHighAndScaleX;
@@ -20347,7 +20354,7 @@
    v_slice = slice;
    v_brightness = brightness;
}
`,tFe=`uniform vec3 u_noiseTextureDimensions;
`,gFe=`uniform vec3 u_noiseTextureDimensions;
uniform float u_noiseDetail;
uniform vec3 u_noiseOffset;
in vec2 v_position;
@@ -20439,7 +20446,7 @@
    float worley2 = clamp(worleyFBMNoise(position, 3.0, 3.0), 0.0, 1.0);
    out_FragColor = vec4(worley0, worley1, worley2, 1.0);
}
`,iFe=`uniform vec3 u_noiseTextureDimensions;
`,yFe=`uniform vec3 u_noiseTextureDimensions;
in vec2 position;
out vec2 v_position;
@@ -20457,7 +20464,7 @@
    transformedPos.y *= noiseTextureRows;
    v_position = transformedPos;
}
`,rFe=`
`,_Fe=`
in vec2 v_textureCoordinates;
void main()
@@ -20473,14 +20480,7 @@
    out_FragColor = vec4(material.diffuse + material.emission, material.alpha);
}
`;function F4(o,f){this._tilingScheme=o,this._maximumLevel=f,this._rootNodes=[]}var lZ=new vi;function DHi(o,f,m,x){let y=x.length;for(let v=0;v<y;++v){let C=x[v];if(C.x===f&&C.y===m&&C.level===o)return!0}return!1}F4.prototype.addAvailableTileRange=function(o,f,m,x,y){let v=this._tilingScheme,C=this._rootNodes;if(o===0)for(let I=m;I<=y;++I)for(let R=f;R<=x;++R)DHi(o,R,I,C)||C.push(new tB(v,void 0,0,R,I));v.tileXYToRectangle(f,m,o,lZ);let T=lZ.west,S=lZ.north;v.tileXYToRectangle(x,y,o,lZ);let w=lZ.east,E=lZ.south,L=new XHi(o,T,E,w,S);for(let I=0;I<C.length;++I){let R=C[I];nFe(R.extent,L)&&kHi(this._maximumLevel,R,L)}};F4.prototype.computeMaximumLevelAtPosition=function(o){let f;for(let m=0;m<this._rootNodes.length;++m){let x=this._rootNodes[m];if(iB(x.extent,o)){f=x;break}}return F(f)?Tj(void 0,f,o):-1};var NHi=[],WHi=[],ZHi=new vi,OHi=new vi;F4.prototype.computeBestAvailableLevelOverRectangle=function(o){let f=NHi;f.length=0,o.east<o.west?(f.push(vi.fromRadians(-Math.PI,o.south,o.east,o.north,ZHi)),f.push(vi.fromRadians(o.west,o.south,Math.PI,o.north,OHi))):f.push(o);let m=WHi;m.length=0;let x;for(x=0;x<this._rootNodes.length;++x)Sj(m,this._rootNodes[x],f);for(x=m.length-1;x>=0;--x)if(F(m[x])&&m[x].length===0)return x;return 0};var x7e=new Gt;F4.prototype.isTileAvailable=function(o,f,m){let x=this._tilingScheme.tileXYToRectangle(f,m,o,lZ);return vi.center(x,x7e),this.computeMaximumLevelAtPosition(x7e)>=o};F4.prototype.computeChildMaskForTile=function(o,f,m){let x=o+1;if(x>=this._maximumLevel)return 0;let y=0;return y|=this.isTileAvailable(x,2*f,2*m+1)?1:0,y|=this.isTileAvailable(x,2*f+1,2*m+1)?2:0,y|=this.isTileAvailable(x,2*f,2*m)?4:0,y|=this.isTileAvailable(x,2*f+1,2*m)?8:0,y};function tB(o,f,m,x,y){this.tilingScheme=o,this.parent=f,this.level=m,this.x=x,this.y=y,this.extent=o.tileXYToRectangle(x,y,m),this.rectangles=[],this._sw=void 0,this._se=void 0,this._nw=void 0,this._ne=void 0}Object.defineProperties(tB.prototype,{nw:{get:function(){return this._nw||(this._nw=new tB(this.tilingScheme,this,this.level+1,this.x*2,this.y*2)),this._nw}},ne:{get:function(){return this._ne||(this._ne=new tB(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2)),this._ne}},sw:{get:function(){return this._sw||(this._sw=new tB(this.tilingScheme,this,this.level+1,this.x*2,this.y*2+1)),this._sw}},se:{get:function(){return this._se||(this._se=new tB(this.tilingScheme,this,this.level+1,this.x*2+1,this.y*2+1)),this._se}}});function XHi(o,f,m,x,y){this.level=o,this.west=f,this.south=m,this.east=x,this.north=y}function nFe(o,f){let m=Math.max(o.west,f.west),x=Math.max(o.south,f.south),y=Math.min(o.east,f.east),v=Math.min(o.north,f.north);return x<v&&m<y}function kHi(o,f,m){for(;f.level<o;)if(coe(f.nw.extent,m))f=f.nw;else if(coe(f.ne.extent,m))f=f.ne;else if(coe(f.sw.extent,m))f=f.sw;else if(coe(f.se.extent,m))f=f.se;else break;if(f.rectangles.length===0||f.rectangles[f.rectangles.length-1].level<=m.level)f.rectangles.push(m);else{let x=Nx(f.rectangles,m.level,UHi);x<0&&(x=~x),f.rectangles.splice(x,0,m)}}function UHi(o,f){return o.level-f}function coe(o,f){return f.west>=o.west&&f.east<=o.east&&f.south>=o.south&&f.north<=o.north}function iB(o,f){return f.longitude>=o.west&&f.longitude<=o.east&&f.latitude>=o.south&&f.latitude<=o.north}function Tj(o,f,m){let x=0,y=!1;for(;!y;){let v=f._nw&&iB(f._nw.extent,m),C=f._ne&&iB(f._ne.extent,m),T=f._sw&&iB(f._sw.extent,m),S=f._se&&iB(f._se.extent,m);if(v+C+T+S>1){v&&(x=Math.max(x,Tj(f,f._nw,m))),C&&(x=Math.max(x,Tj(f,f._ne,m))),T&&(x=Math.max(x,Tj(f,f._sw,m))),S&&(x=Math.max(x,Tj(f,f._se,m)));break}else v?f=f._nw:C?f=f._ne:T?f=f._sw:S?f=f._se:y=!0}for(;f!==o;){let v=f.rectangles;for(let C=v.length-1;C>=0&&v[C].level>x;--C){let T=v[C];iB(T,m)&&(x=T.level)}f=f.parent}return x}function Sj(o,f,m){if(!f)return;let x,y=!1;for(x=0;x<m.length;++x)y=y||nFe(f.extent,m[x]);if(!y)return;let v=f.rectangles;for(x=0;x<v.length;++x){let C=v[x];o[C.level]||(o[C.level]=m),o[C.level]=BHi(o[C.level],C)}Sj(o,f._nw,m),Sj(o,f._ne,m),Sj(o,f._sw,m),Sj(o,f._se,m)}function BHi(o,f){let m=[];for(let x=0;x<o.length;++x){let y=o[x];nFe(y,f)?(y.west<f.west&&m.push(new vi(y.west,y.south,f.west,y.north)),y.east>f.east&&m.push(new vi(f.east,y.south,y.east,y.north)),y.south<f.south&&m.push(new vi(Math.max(f.west,y.west),y.south,Math.min(f.east,y.east),f.south)),y.north>f.north&&m.push(new vi(Math.max(f.west,y.west),f.north,Math.min(f.east,y.east),y.north))):m.push(y)}return m}var kG=F4,HHi=15;function bmt(o){this.ellipsoid=o.ellipsoid??yi.default,this.credit=void 0,this.tilingScheme=void 0,this.height=void 0,this.width=void 0,this.encoding=void 0,this.lodCount=void 0,this.hasAvailability=!1,this.tilesAvailable=void 0,this.tilesAvailabilityLoaded=void 0,this.levelZeroMaximumGeometricError=void 0,this.terrainDataStructure=void 0}bmt.prototype.build=function(o){o._credit=this.credit,o._tilingScheme=this.tilingScheme,o._height=this.height,o._width=this.width,o._encoding=this.encoding,o._lodCount=this.lodCount,o._hasAvailability=this.hasAvailability,o._tilesAvailable=this.tilesAvailable,o._tilesAvailabilityLoaded=this.tilesAvailabilityLoaded,o._levelZeroMaximumGeometricError=this.levelZeroMaximumGeometricError,o._terrainDataStructure=this.terrainDataStructure};function zHi(o,f){let m=f.copyrightText;F(m)&&(o.credit=new Oa(m));let x=f.spatialReference,y=x.latestWkid??x.wkid,v=f.extent,C={ellipsoid:o.ellipsoid};if(y===4326||y===4490)C.rectangle=vi.fromDegrees(v.xmin,v.ymin,v.xmax,v.ymax),o.tilingScheme=new _h(C);else if(y===3857){let S=Math.PI*o.ellipsoid.maximumRadius;f.extent.xmax>S&&(f.extent.xmax=S),f.extent.ymax>S&&(f.extent.ymax=S),f.extent.xmin<-S&&(f.extent.xmin=-S),f.extent.ymin<-S&&(f.extent.ymin=-S),C.rectangleSouthwestInMeters=new rt(v.xmin,v.ymin),C.rectangleNortheastInMeters=new rt(v.xmax,v.ymax),o.tilingScheme=new xp(C)}else throw new Oi("Invalid spatial reference");let T=f.tileInfo;if(!F(T))throw new Oi("tileInfo is required");o.width=T.rows+1,o.height=T.cols+1,o.encoding=T.format==="LERC"?dF.LERC:dF.NONE,o.lodCount=T.lods.length-1,(o.hasAvailability=f.capabilities.indexOf("Tilemap")!==-1)&&(o.tilesAvailable=new kG(o.tilingScheme,o.lodCount),o.tilesAvailable.addAvailableTileRange(0,0,0,o.tilingScheme.getNumberOfXTilesAtLevel(0),o.tilingScheme.getNumberOfYTilesAtLevel(0)),o.tilesAvailabilityLoaded=new kG(o.tilingScheme,o.lodCount)),o.levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.tilingScheme.ellipsoid,o.width,o.tilingScheme.getNumberOfXTilesAtLevel(0)),f.bandCount>1&&console.log("ArcGISTiledElevationTerrainProvider: Terrain data has more than 1 band. Using the first one."),F(f.minValues)&&F(f.maxValues)?o.terrainDataStructure={elementMultiplier:1,lowestEncodedHeight:f.minValues[0],highestEncodedHeight:f.maxValues[0]}:o.terrainDataStructure={elementMultiplier:1}}async function YHi(o,f,m){try{let x=await f.fetchJson();zHi(o,x)}catch(x){let y=`An error occurred while accessing ${f}.`;throw am.reportError(void 0,m,F(m)?m._errorEvent:void 0,y),x}}function yF(o){o=o??si.EMPTY_OBJECT,this._resource=void 0,this._credit=void 0,this._tilingScheme=void 0,this._levelZeroMaximumGeometricError=void 0,this._maxLevel=void 0,this._terrainDataStructure=void 0,this._width=void 0,this._height=void 0,this._encoding=void 0,this._lodCount=void 0,this._hasAvailability=!1,this._tilesAvailable=void 0,this._tilesAvailabilityLoaded=void 0,this._availableCache={},this._errorEvent=new Tr}Object.defineProperties(yF.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){return this._tilesAvailable}}});yF.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Mr.createIfNeeded(o);m.appendForwardSlash(),F(f.token)&&(m=m.getDerivedResource({queryParameters:{token:f.token}}));let x=m.getDerivedResource({queryParameters:{f:"pjson"}}),y=new bmt(f);await YHi(y,x);let v=new yF(f);return y.build(v),v._resource=m,v};yF.prototype.requestTileGeometry=function(o,f,m,x){let y=this._resource.getDerivedResource({url:`tile/${m}/${f}/${o}`,request:x}),v=this._hasAvailability,C=Promise.resolve(!0),T;if(v&&!F(oFe(this,m+1,o*2,f*2))){let L=Cmt(this,m+1,o*2,f*2);C=L.promise,T=L.request}let S=y.fetchArrayBuffer();if(!F(S)||!F(C))return;let w=this,E=this._tilesAvailable;return Promise.all([S,C]).then(function(L){return new yL({buffer:L[0],width:w._width,height:w._height,childTileMask:v?E.computeChildMaskForTile(m,o,f):HHi,structure:w._terrainDataStructure,encoding:w._encoding})}).catch(async function(L){if(F(T)&&T.state===pc.CANCELLED){x.cancel();try{await x.deferred?.promise}catch{}return x.state=pc.CANCELLED,Promise.reject(L)}return Promise.reject(L)})};function oFe(o,f,m,x){if(!o._hasAvailability)return;let y=o._tilesAvailabilityLoaded,v=o._tilesAvailable;if(f>o._lodCount)return!1;if(v.isTileAvailable(f,m,x))return!0;if(y.isTileAvailable(f,m,x))return!1}yF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};yF.prototype.getTileDataAvailable=function(o,f,m){if(!this._hasAvailability)return;let x=oFe(this,m,o,f);if(F(x))return x;Cmt(this,m,o,f)};yF.prototype.loadTileDataAvailability=function(o,f,m){};function KHi(o,f,m,x){let y=f-1,v=m-1,C=x[o.y*f+o.x],T=[],S={startX:o.x,startY:o.y,endX:0,endY:0},w=new rt(o.x+1,o.y+1),E=!1,L=!1;for(;!(E&&L);){let I=w.x,R=L?w.y+1:w.y;if(!E){for(let P=o.y;P<R;++P)if(x[P*f+w.x]!==C){E=!0;break}E?(T.push(new rt(w.x,o.y)),--w.x,--I,S.endX=w.x):w.x===y?(S.endX=w.x,E=!0):++w.x}if(!L){let P=w.y*f;for(let A=o.x;A<=I;++A)if(x[P+A]!==C){L=!0;break}L?(T.push(new rt(o.x,w.y)),--w.y,S.endY=w.y):w.y===v?(S.endY=w.y,L=!0):++w.y}}return{endingIndices:T,range:S,value:C}}function JHi(o,f,m,x,y){let v=[];if(y.every(function(T){return T===y[0]}))return y[0]===1&&v.push({startX:o,startY:f,endX:o+m-1,endY:f+x-1}),v;let C=[new rt(0,0)];for(;C.length>0;){let T=C.pop(),S=KHi(T,m,x,y);if(S.value===1){let E=S.range;E.startX+=o,E.endX+=o,E.startY+=f,E.endY+=f,v.push(E)}let w=S.endingIndices;w.length>0&&(C=C.concat(w))}return v}function Cmt(o,f,m,x){if(!o._hasAvailability)return{};let y=Math.floor(m/128)*128,v=Math.floor(x/128)*128,C=Math.min(1<<f,128),T=`tilemap/${f}/${v}/${y}/${C}/${C}`,S=o._availableCache;if(F(S[T]))return S[T];let w=new hm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN}),E=o._resource.getDerivedResource({url:T,request:w}).fetchJson();return F(E)?(E=E.then(function(L){let I=JHi(y,v,C,C,L.data);o._tilesAvailabilityLoaded.addAvailableTileRange(f,y,v,y+C,v+C);let R=o._tilesAvailable;for(let P=0;P<I.length;++P){let A=I[P];R.addAvailableTileRange(f,A.startX,A.startY,A.endX,A.endY)}return oFe(o,f,m,x)}),S[T]={promise:E,request:w},E=E.finally(function(L){return delete S[T],L}),{promise:E,request:w}):{}}var fde=yF,Tmt="https://dev.virtualearth.net/REST/v1/Locations";function aFe(o){o=o??si.EMPTY_OBJECT;let f=o.key;this._key=f;let m={key:f};F(o.culture)&&(m.culture=o.culture),this._resource=new Mr({url:Tmt,queryParameters:m}),this._credit=new Oa('<img src="http://dev.virtualearth.net/Branding/logo_powered_by.png"/>',!1)}Object.defineProperties(aFe.prototype,{url:{get:function(){return Tmt}},key:{get:function(){return this._key}},credit:{get:function(){return this._credit}}});aFe.prototype.geocode=async function(o){return this._resource.getDerivedResource({queryParameters:{query:o}}).fetchJsonp("jsonp").then(function(f){return f.resourceSets.length===0?[]:f.resourceSets[0].resources.map(function(m){let x=m.bbox,y=x[0],v=x[1],C=x[2],T=x[3];return{displayName:m.name,destination:vi.fromDegrees(v,y,T,C)}})})};var Smt=aFe;function sFe(){}Object.defineProperties(sFe.prototype,{credit:{get:function(){}}});sFe.prototype.geocode=function(o){let f=o.match(/[^\s,\n]+/g);if(f.length===2||f.length===3){let m=+f[0],x=+f[1],y=f.length===3?+f[2]:300;if(isNaN(m)&&isNaN(x)){let v=/^(\d+.?\d*)([nsew])/i;for(let C=0;C<f.length;++C){let T=f[C].match(v);v.test(f[C])&&T.length===3&&(/^[ns]/i.test(T[2])?x=/^[n]/i.test(T[2])?+T[1]:-T[1]:/^[ew]/i.test(T[2])&&(m=/^[e]/i.test(T[2])?+T[1]:-T[1]))}}if(!isNaN(m)&&!isNaN(x)&&!isNaN(y)){let v={displayName:o,destination:Z.fromDegrees(m,x,y)};return Promise.resolve([v])}}return Promise.resolve([])};var wmt=sFe,jHi=new zt,g7e=new Z,HU=new Z;function QHi(o){let f=o.points,m=o.times;if(f.length<3){let x=m[0],y=1/(m[1]-x),v=f[0],C=f[1];return function(T,S){F(S)||(S=new Z);let w=(T-x)*y;return Z.lerp(v,C,w,S)}}return function(x,y){F(y)||(y=new Z);let v=o._lastTimeIndex=o.findTimeInterval(x,o._lastTimeIndex),C=(x-m[v])/(m[v+1]-m[v]),T=jHi;T.z=C,T.y=C*C,T.x=T.y*C,T.w=1;let S,w,E,L,I;return v===0?(S=f[0],w=f[1],E=o.firstTangent,L=Z.subtract(f[2],S,g7e),Z.multiplyByScalar(L,.5,L),I=Ee.multiplyByVector(p6.hermiteCoefficientMatrix,T,T)):v===f.length-2?(S=f[v],w=f[v+1],L=o.lastTangent,E=Z.subtract(w,f[v-1],g7e),Z.multiplyByScalar(E,.5,E),I=Ee.multiplyByVector(p6.hermiteCoefficientMatrix,T,T)):(S=f[v-1],w=f[v],E=f[v+1],L=f[v+2],I=Ee.multiplyByVector(rD.catmullRomCoefficientMatrix,T,T)),y=Z.multiplyByScalar(S,I.x,y),Z.multiplyByScalar(w,I.y,HU),Z.add(y,HU,y),Z.multiplyByScalar(E,I.z,HU),Z.add(y,HU,y),Z.multiplyByScalar(L,I.w,HU),Z.add(y,HU,y)}}var qHi=new Z,$Hi=new Z;function rD(o){o=o??si.EMPTY_OBJECT;let f=o.points,m=o.times,x=o.firstTangent,y=o.lastTangent;if(f.length>2&&(F(x)||(x=qHi,Z.multiplyByScalar(f[1],2,x),Z.subtract(x,f[2],x),Z.subtract(x,f[0],x),Z.multiplyByScalar(x,.5,x)),!F(y))){let v=f.length-1;y=$Hi,Z.multiplyByScalar(f[v-1],2,y),Z.subtract(f[v],y,y),Z.add(y,f[v-2],y),Z.multiplyByScalar(y,.5,y)}this._times=m,this._points=f,this._firstTangent=Z.clone(x),this._lastTangent=Z.clone(y),this._evaluateFunction=QHi(this),this._lastTimeIndex=0}Object.defineProperties(rD.prototype,{times:{get:function(){return this._times}},points:{get:function(){return this._points}},firstTangent:{get:function(){return this._firstTangent}},lastTangent:{get:function(){return this._lastTangent}}});rD.catmullRomCoefficientMatrix=new Ee(-.5,1,-.5,0,1.5,-2.5,0,1,-1.5,2,.5,0,.5,-.5,0,0);rD.prototype.findTimeInterval=B0.prototype.findTimeInterval;rD.prototype.wrapTime=B0.prototype.wrapTime;rD.prototype.clampTime=B0.prototype.clampTime;rD.prototype.evaluate=function(o,f){return this._evaluateFunction(o,f)};var Emt=rD,mde={};mde.clipTriangleAtAxisAlignedThreshold=function(o,f,m,x,y,v){F(v)?v.length=0:v=[];let C,T,S;f?(C=m<o,T=x<o,S=y<o):(C=m>o,T=x>o,S=y>o);let w=C+T+S,E,L,I,R,P,A;return w===1?C?(E=(o-m)/(x-m),L=(o-m)/(y-m),v.push(1),v.push(2),L!==1&&(v.push(-1),v.push(0),v.push(2),v.push(L)),E!==1&&(v.push(-1),v.push(0),v.push(1),v.push(E))):T?(I=(o-x)/(y-x),R=(o-x)/(m-x),v.push(2),v.push(0),R!==1&&(v.push(-1),v.push(1),v.push(0),v.push(R)),I!==1&&(v.push(-1),v.push(1),v.push(2),v.push(I))):S&&(P=(o-y)/(m-y),A=(o-y)/(x-y),v.push(0),v.push(1),A!==1&&(v.push(-1),v.push(2),v.push(1),v.push(A)),P!==1&&(v.push(-1),v.push(2),v.push(0),v.push(P))):w===2?!C&&m!==o?(R=(o-x)/(m-x),P=(o-y)/(m-y),v.push(0),v.push(-1),v.push(1),v.push(0),v.push(R),v.push(-1),v.push(2),v.push(0),v.push(P)):!T&&x!==o?(A=(o-y)/(x-y),E=(o-m)/(x-m),v.push(1),v.push(-1),v.push(2),v.push(1),v.push(A),v.push(-1),v.push(0),v.push(1),v.push(E)):!S&&y!==o&&(L=(o-m)/(y-m),I=(o-x)/(y-x),v.push(2),v.push(-1),v.push(0),v.push(2),v.push(L),v.push(-1),v.push(1),v.push(2),v.push(I)):w!==3&&(v.push(0),v.push(1),v.push(2)),v};mde.computeBarycentricCoordinates=function(o,f,m,x,y,v,C,T,S){let w=m-C,E=C-y,L=v-T,I=x-T,R=1/(L*w+E*I),P=f-T,A=o-C,M=(L*A+E*P)*R,V=(-I*A+w*P)*R,G=1-M-V;return F(S)?(S.x=M,S.y=V,S.z=G,S):new Z(M,V,G)};mde.computeLineSegmentLineSegmentIntersection=function(o,f,m,x,y,v,C,T,S){let w=(C-y)*(f-v)-(T-v)*(o-y),E=(m-o)*(f-v)-(x-f)*(o-y),L=(T-v)*(m-o)-(C-y)*(x-f);if(L===0)return;let I=w/L,R=E/L;if(I>=0&&I<=1&&R>=0&&R<=1)return F(S)||(S=new rt),S.x=o+I*(m-o),S.y=f+I*(x-f),S};var D4=mde;function _F(o){this._flattenPolygonHeight=o.flattenPolygonHeight||[1],this._flattenPolygon=o.flattenPolygon||[],this._flattenRectangle=o.flattenRectangle,this._quantizedVertices=o.quantizedVertices,this._encodedNormals=o.encodedNormals,this._indices=o.indices,this._minimumHeight=o.minimumHeight,this._maximumHeight=o.maximumHeight,this._boundingSphere=o.boundingSphere,this._orientedBoundingBox=o.orientedBoundingBox,this._horizonOcclusionPoint=o.horizonOcclusionPoint,this._credits=o.credits;let f=this._quantizedVertices.length/3,m=this._uValues=this._quantizedVertices.subarray(0,f),x=this._vValues=this._quantizedVertices.subarray(f,2*f);this._heightValues=this._quantizedVertices.subarray(2*f,3*f);function y(C,T){return x[C]-x[T]}function v(C,T){return m[C]-m[T]}this._westIndices=doe(o.westIndices,y,f),this._southIndices=doe(o.southIndices,v,f),this._eastIndices=doe(o.eastIndices,y,f),this._northIndices=doe(o.northIndices,v,f),this._westSkirtHeight=o.westSkirtHeight,this._southSkirtHeight=o.southSkirtHeight,this._eastSkirtHeight=o.eastSkirtHeight,this._northSkirtHeight=o.northSkirtHeight,this._childTileMask=o.childTileMask??15,this._createdByUpsampling=o.createdByUpsampling??!1,this._waterMask=o.waterMask,this._mesh=void 0}Object.defineProperties(_F.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){return this._waterMask}},childTileMask:{get:function(){return this._childTileMask}},canUpsample:{get:function(){return F(this._mesh)}}});var hoe=[];function doe(o,f,m){hoe.length=o.length;let x=!1;for(let y=0,v=o.length;y<v;++y)hoe[y]=o[y],x=x||y>0&&f(o[y-1],o[y])>0;return x?(hoe.sort(f),Fn.createTypedArray(m,hoe)):o}var Lmt="createVerticesFromQuantizedTerrainMesh",ezi=new mp(Lmt),tzi=new mp(Lmt,yO.maximumAsynchronousTasks);_F.prototype.createMesh=function(o){o=o??si.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,y=o.level,v=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,T=o.throttle??!0,S=f.ellipsoid,w=f.tileXYToRectangle(m,x,y),E=(T?tzi:ezi).scheduleTask({minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,quantizedVertices:this._quantizedVertices,octEncodedNormals:this._encodedNormals,includeWebMercatorT:!0,indices:this._indices,westIndices:this._westIndices,southIndices:this._southIndices,eastIndices:this._eastIndices,northIndices:this._northIndices,westSkirtHeight:this._westSkirtHeight,southSkirtHeight:this._southSkirtHeight,eastSkirtHeight:this._eastSkirtHeight,northSkirtHeight:this._northSkirtHeight,rectangle:w,relativeToCenter:this._boundingSphere.center,ellipsoid:S,exaggeration:v,exaggerationRelativeHeight:C,flattenPolygonHeight:this._flattenPolygonHeight,flattenPolygon:this._flattenPolygon});if(!F(E))return;let L=this;return Promise.resolve(E).then(function(I){let R=L._quantizedVertices.length/3,P=R+L._westIndices.length+L._southIndices.length+L._eastIndices.length+L._northIndices.length,A=Fn.createTypedArray(P,I.indices),M=new Float32Array(I.vertices),V=I.center,G=I.minimumHeight,D=I.maximumHeight,N=L._boundingSphere,k=L._orientedBoundingBox,U=Z.clone(I.occludeePointInScaledSpace)??L._horizonOcclusionPoint,B=I.vertexStride,Y=PS.clone(I.encoding);return L._mesh=new _O(V,M,A,I.indexCountWithoutSkirts,R,G,D,N,U,B,k,Y,I.westIndicesSouthToNorth,I.southIndicesEastToWest,I.eastIndicesNorthToSouth,I.northIndicesWestToEast),L._quantizedVertices=void 0,L._encodedNormals=void 0,L._indices=void 0,L._uValues=void 0,L._vValues=void 0,L._heightValues=void 0,L._westIndices=void 0,L._southIndices=void 0,L._eastIndices=void 0,L._northIndices=void 0,L._mesh})};var izi=new mp("upsampleQuantizedTerrainMesh",yO.maximumAsynchronousTasks);_F.prototype.upsample=function(o,f,m,x,y,v,C){let T=this._mesh;if(!F(this._mesh))return;let S=f*2!==y,w=m*2===v,E=o.ellipsoid,L=o.tileXYToRectangle(y,v,C),I=izi.scheduleTask({vertices:T.vertices,vertexCountWithoutSkirts:T.vertexCountWithoutSkirts,indices:T.indices,indexCountWithoutSkirts:T.indexCountWithoutSkirts,encoding:T.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:S,isNorthChild:w,childRectangle:L,ellipsoid:E});if(!F(I))return;let R=Math.min(this._westSkirtHeight,this._eastSkirtHeight);R=Math.min(R,this._southSkirtHeight),R=Math.min(R,this._northSkirtHeight);let P=S?R*.5:this._westSkirtHeight,A=w?R*.5:this._southSkirtHeight,M=S?this._eastSkirtHeight:R*.5,V=w?this._northSkirtHeight:R*.5,G=this._credits,D=this;return Promise.resolve(I).then(function(N){let k=new Uint16Array(N.vertices),U=Fn.createTypedArray(k.length/3,N.indices),B;return F(N.encodedNormals)&&(B=new Uint8Array(N.encodedNormals)),new _F({quantizedVertices:k,indices:U,encodedNormals:B,minimumHeight:N.minimumHeight,maximumHeight:N.maximumHeight,boundingSphere:Ei.clone(N.boundingSphere),orientedBoundingBox:Tu.clone(N.orientedBoundingBox),horizonOcclusionPoint:Z.clone(N.horizonOcclusionPoint),westIndices:N.westIndices,southIndices:N.southIndices,eastIndices:N.eastIndices,northIndices:N.northIndices,westSkirtHeight:P,southSkirtHeight:A,eastSkirtHeight:M,northSkirtHeight:V,childTileMask:0,credits:G,createdByUpsampling:!0,flattenPolygonHeight:D._flattenPolygonHeight,flattenPolygon:D._flattenPolygon,flattenRectangle:D._flattenRectangle})})};var O1e=32767,Pmt=new Z;_F.prototype.interpolateHeight=function(o,f,m){let x=be.clamp((f-o.west)/o.width,0,1);x*=O1e;let y=be.clamp((m-o.south)/o.height,0,1);return y*=O1e,F(this._mesh)?azi(this,x,y):szi(this,x,y)};function Imt(o,f,m,x,y,v,C,T){let S=Math.min(m,y,C),w=Math.max(m,y,C),E=Math.min(x,v,T),L=Math.max(x,v,T);return o>=S&&o<=w&&f>=E&&f<=L}var rzi=new rt,nzi=new rt,ozi=new rt;function azi(o,f,m){let x=o._mesh,y=x.vertices,v=x.encoding,C=x.indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=v.decodeTextureCoordinates(y,w,rzi),R=v.decodeTextureCoordinates(y,E,nzi),P=v.decodeTextureCoordinates(y,L,ozi);if(Imt(f,m,I.x,I.y,R.x,R.y,P.x,P.y)){let A=D4.computeBarycentricCoordinates(f,m,I.x,I.y,R.x,R.y,P.x,P.y,Pmt);if(A.x>=-1e-15&&A.y>=-1e-15&&A.z>=-1e-15){let M=v.decodeHeight(y,w),V=v.decodeHeight(y,E),G=v.decodeHeight(y,L);return A.x*M+A.y*V+A.z*G}}}}function szi(o,f,m){let x=o._uValues,y=o._vValues,v=o._heightValues,C=o._indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=x[w],R=x[E],P=x[L],A=y[w],M=y[E],V=y[L];if(Imt(f,m,I,A,R,M,P,V)){let G=D4.computeBarycentricCoordinates(f,m,I,A,R,M,P,V,Pmt);if(G.x>=-1e-15&&G.y>=-1e-15&&G.z>=-1e-15){let D=G.x*v[w]+G.y*v[E]+G.z*v[L];return be.lerp(o._minimumHeight,o._maximumHeight,D/O1e)}}}}_F.prototype.isChildAvailable=function(o,f,m,x){let y=2;return m!==o*2&&++y,x!==f*2&&(y-=2),(this._childTileMask&1<<y)!==0};_F.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var xde=_F;function lzi(o){this.resource=o.resource,this.version=o.version,this.isHeightmap=o.isHeightmap,this.tileUrlTemplates=o.tileUrlTemplates,this.availability=o.availability,this.hasVertexNormals=o.hasVertexNormals,this.hasWaterMask=o.hasWaterMask,this.hasMetadata=o.hasMetadata,this.availabilityLevels=o.availabilityLevels,this.availabilityTilesLoaded=o.availabilityTilesLoaded,this.littleEndianExtensionSize=o.littleEndianExtensionSize,this.availabilityPromiseCache={}}function Rmt(o){this.requestVertexNormals=o.requestVertexNormals??!1,this.requestWaterMask=o.requestWaterMask??!1,this.requestMetadata=o.requestMetadata??!0,this.ellipsoid=o.ellipsoid??yi.default,this.heightmapWidth=65,this.heightmapStructure=void 0,this.hasWaterMask=!1,this.hasMetadata=!1,this.hasVertexNormals=!1,this.scheme=void 0,this._flattenPolygonHeight=o.flattenPolygonHeight,this._flattenPolygon=o.flattenPolygon,this.lastResource=void 0,this.layerJsonResource=void 0,this.previousError=void 0,this.availability=void 0,this.tilingScheme=void 0,this.levelZeroMaximumGeometricError=void 0,this.heightmapStructure=void 0,this.layers=[],this.attribution="",this.overallAvailability=[],this.overallMaxZoom=0,this.tileCredits=[]}Rmt.prototype.build=function(o){o._heightmapWidth=this.heightmapWidth,o._scheme=this.scheme;let f=F(this.lastResource.credits)?this.lastResource.credits:[];o._tileCredits=f.concat(this.tileCredits),o._availability=this.availability,o._tilingScheme=this.tilingScheme,o._requestWaterMask=this.requestWaterMask,o._levelZeroMaximumGeometricError=this.levelZeroMaximumGeometricError,o._heightmapStructure=this.heightmapStructure,o._layers=this.layers,o._hasWaterMask=this.hasWaterMask,o._hasVertexNormals=this.hasVertexNormals,o._hasMetadata=this.hasMetadata};async function Amt(o,f,m){if(!f.format){let M="The tile format is not specified in the layer.json file.";throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}if(!f.tiles||f.tiles.length===0){let M="The layer.json file does not specify any tile URL templates.";throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let x=!1,y=!1,v=!1,C=!0,T=!1;if(f.format==="heightmap-1.0")T=!0,F(o.heightmapStructure)||(o.heightmapStructure={heightScale:1/5,heightOffset:-1e3,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1,lowestEncodedHeight:0,highestEncodedHeight:256*256-1}),y=!0,o.requestWaterMask=!0;else if(f.format.indexOf("quantized-mesh-1.")!==0){let M=`The tile format "${f.format}" is invalid or not supported.`;throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let S=f.tiles,w=f.maxzoom;o.overallMaxZoom=Math.max(o.overallMaxZoom,w);let E=[];if(F(f.valid_bounds)?E=f.valid_bounds:E=f.bounds,!f.projection||f.projection==="EPSG:4326")o.tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:E.length?E:[]});else if(f.projection==="EPSG:3857"){let M=Math.PI*o.ellipsoid.maximumRadius;E[0]<-M&&(E[0]=-M),E[1]<-M&&(E[1]=-M),E[2]>M&&(E[2]=M),E[3]>M&&(E[3]=M),o.tilingScheme=new xp({numberOfLevelZeroTilesX:1,numberOfLevelZeroTilesY:1,ellipsoid:o.ellipsoid,bounds:E.length?E:[]})}else{let M=`The projection "${f.projection}" is invalid or not supported.`;throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}if(o.levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.tilingScheme.ellipsoid,o.heightmapWidth,o.tilingScheme.getNumberOfXTilesAtLevel(0)),!f.scheme||f.scheme==="tms"||f.scheme==="slippyMap")o.scheme=f.scheme;else{let M=`The scheme "${f.scheme}" is invalid or not supported.`;throw o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,M),new Oi(M)}let L;F(f.extensions)&&f.extensions.indexOf("octvertexnormals")!==-1?x=!0:F(f.extensions)&&f.extensions.indexOf("vertexnormals")!==-1&&(x=!0,C=!1),F(f.extensions)&&f.extensions.indexOf("watermask")!==-1&&(y=!0),F(f.extensions)&&f.extensions.indexOf("metadata")!==-1&&(v=!0);let I=f.metadataAvailability,R=f.available,P;if(F(R)&&!F(I)){P=new kG(o.tilingScheme,R.length);for(let M=0;M<R.length;++M){let V=R[M],G=o.tilingScheme.getNumberOfYTilesAtLevel(M);F(o.overallAvailability[M])||(o.overallAvailability[M]=[]);for(let D=0;D<V.length;++D){let N=V[D],k=G-N.endY-1,U=G-N.startY-1;o.overallAvailability[M].push([N.startX,k,N.endX,U]),P.addAvailableTileRange(M,N.startX,k,N.endX,U)}}}else F(I)&&(L=new kG(o.tilingScheme,w),P=new kG(o.tilingScheme,w),o.overallAvailability[0]=[[0,0,1,0]],P.addAvailableTileRange(0,0,0,1,0));o.hasWaterMask=o.hasWaterMask||y,o.hasVertexNormals=o.hasVertexNormals||x,o.hasMetadata=o.hasMetadata||v,F(f.attribution)&&(o.attribution.length>0&&(o.attribution+=" "),o.attribution+=f.attribution),o.layers.push(new lzi({resource:o.lastResource,version:f.version,isHeightmap:T,tileUrlTemplates:S,availability:P,hasVertexNormals:x,hasWaterMask:y,hasMetadata:v,availabilityLevels:I,availabilityTilesLoaded:L,littleEndianExtensionSize:C}));let A=f.parentUrl;return F(A)?F(P)?(o.lastResource=o.lastResource.getDerivedResource({url:A}),o.lastResource.appendForwardSlash(),o.layerJsonResource=o.lastResource.getDerivedResource({url:"layer.json"}),await lFe(o),!0):(console.log("A layer.json can't have a parentUrl if it does't have an available array."),!0):!0}function uzi(o,f,m){let x=`An error occurred while accessing ${o.layerJsonResource.url}.`;if(F(f)&&(x+=`
${f.message}`),o.previousError=am.reportError(o.previousError,m,F(m)?m._errorEvent:void 0,x),o.previousError.retry)return lFe(o,m);throw new Oi(x)}async function czi(o,f,m){await Amt(o,f,m);let x=o.overallAvailability.length;if(x>0){let y=o.availability=new kG(o.tilingScheme,o.overallMaxZoom);for(let v=0;v<x;++v){let C=o.overallAvailability[v];for(let T=0;T<C.length;++T){let S=C[T];y.addAvailableTileRange(v,S[0],S[1],S[2],S[3])}}}if(o.attribution.length>0){let y=new Oa(o.attribution);o.tileCredits.push(y)}return!0}async function lFe(o,f){try{let m=await o.layerJsonResource.fetchJson();return czi(o,m,f)}catch(m){return F(m)&&m.statusCode===404?(await Amt(o,{tilejson:"2.1.0",format:"heightmap-1.0",version:"1.0.0",scheme:"tms",tiles:["{z}/{x}/{y}.terrain?v={version}"]},f),!0):uzi(o,m,f)}}function iL(o){o=o??si.EMPTY_OBJECT,this._heightmapWidth=void 0,this._heightmapStructure=void 0,this._hasWaterMask=!1,this._hasVertexNormals=!1,this._hasMetadata=!1,this._scheme=void 0,this._ellipsoid=o.ellipsoid,this._requestVertexNormals=o.requestVertexNormals??!1,this._requestWaterMask=o.requestWaterMask??!1,this._requestMetadata=o.requestMetadata??!0,this._errorEvent=new Tr;let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._availability=void 0,this._tilingScheme=void 0,this._levelZeroMaximumGeometricError=void 0,this._layers=void 0,this._tileCredits=void 0}var Nve={OCT_VERTEX_NORMALS:1,WATER_MASK:2,METADATA:4};function y7e(o){return!F(o)||o.length===0?{Accept:"application/vnd.quantized-mesh,application/octet-stream;q=0.9,*/*;q=0.01"}:{Accept:`application/vnd.quantized-mesh;extensions=${o.join("-")},application/octet-stream;q=0.9,*/*;q=0.01`}}function hzi(o,f,m,x,y){let v=new Uint16Array(f,0,o._heightmapWidth*o._heightmapWidth);return new yL({buffer:v,childTileMask:new Uint8Array(f,v.byteLength,1)[0],waterMask:new Uint8Array(f,v.byteLength+1,f.byteLength-v.byteLength-1),width:o._heightmapWidth,height:o._heightmapWidth,structure:o._heightmapStructure,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon})}function dzi(o,f,m,x,y,v){let C=v.littleEndianExtensionSize,T=0,S=3,w=S+1,E=Float64Array.BYTES_PER_ELEMENT*S,L=Float64Array.BYTES_PER_ELEMENT*w,I=Uint16Array.BYTES_PER_ELEMENT*3,R=3,P=Uint16Array.BYTES_PER_ELEMENT,A=P*R,M=new DataView(f),V=new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0));T+=E;let G=M.getFloat32(T,!0);T+=Float32Array.BYTES_PER_ELEMENT;let D=M.getFloat32(T,!0);T+=Float32Array.BYTES_PER_ELEMENT;let N=new Ei(new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0)),M.getFloat64(T+E,!0));T+=L;let k=new Z(M.getFloat64(T,!0),M.getFloat64(T+8,!0),M.getFloat64(T+16,!0));T+=E;let U=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let B=new Uint16Array(f,T,U*3);T+=U*I,U>64*1024&&(P=Uint32Array.BYTES_PER_ELEMENT,A=P*R);let Y=B.subarray(0,U),J=B.subarray(U,2*U),K=B.subarray(U*2,3*U);Ru.zigZagDeltaDecode(Y,J,K),T%P!==0&&(T+=P-T%P);let z=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let j=Fn.createTypedArrayFromArrayBuffer(U,f,T,z*R);T+=z*A;let q=0,O=j.length;for(let Se=0;Se<O;++Se){let Le=j[Se];j[Se]=q-Le,Le===0&&++q}let te=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let ie=Fn.createTypedArrayFromArrayBuffer(U,f,T,te);T+=te*P;let re=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let ee=Fn.createTypedArrayFromArrayBuffer(U,f,T,re);T+=re*P;let ae=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let oe=Fn.createTypedArrayFromArrayBuffer(U,f,T,ae);T+=ae*P;let ce=M.getUint32(T,!0);T+=Uint32Array.BYTES_PER_ELEMENT;let pe=Fn.createTypedArrayFromArrayBuffer(U,f,T,ce);T+=ce*P;let ue,he;for(;T<M.byteLength;){let Se=M.getUint8(T,!0);T+=Uint8Array.BYTES_PER_ELEMENT;let Le=M.getUint32(T,C);if(T+=Uint32Array.BYTES_PER_ELEMENT,Se===Nve.OCT_VERTEX_NORMALS&&o._requestVertexNormals)ue=new Uint8Array(f,T,U*2);else if(Se===Nve.WATER_MASK&&o._requestWaterMask)he=new Uint8Array(f,T,Le);else if(Se===Nve.METADATA&&o._requestMetadata){let Ve=M.getUint32(T,!0);if(Ve>0){let Oe=Q_(new Uint8Array(f),T+Uint32Array.BYTES_PER_ELEMENT,Ve).available;if(F(Oe))for(let $e=0;$e<Oe.length;++$e){let at=m+$e+1,dt=Oe[$e],gt=o._tilingScheme.getNumberOfYTilesAtLevel(at);for(let Et=0;Et<dt.length;++Et){let et=dt[Et],yt=gt-et.endY-1,Rt=gt-et.startY-1;o.availability.addAvailableTileRange(at,et.startX,yt,et.endX,Rt),v.availability.addAvailableTileRange(at,et.startX,yt,et.endX,Rt)}}}v.availabilityTilesLoaded.addAvailableTileRange(m,x,y,x,y)}T+=Le}let fe=o.getLevelMaximumGeometricError(m)*5,de=o._tilingScheme.tileXYToRectangle(x,y,m),Ce=Tu.fromRectangle(de,G,D,o._tilingScheme.ellipsoid);return new xde({center:V,minimumHeight:G,maximumHeight:D,boundingSphere:N,orientedBoundingBox:Ce,horizonOcclusionPoint:k,quantizedVertices:B,encodedNormals:ue,indices:j,westIndices:ie,southIndices:ee,eastIndices:oe,northIndices:pe,westSkirtHeight:fe,southSkirtHeight:fe,eastSkirtHeight:fe,northSkirtHeight:fe,childTileMask:o.availability.computeChildMaskForTile(m,x,y),waterMask:he,credits:o._tileCredits,flattenPolygonHeight:o._flattenPolygonHeight,flattenPolygon:o._flattenPolygon,flattenRectangle:{rectangle:de,minimumHeight:G,maximumHeight:D,ellipsoid:o._tilingScheme.ellipsoid}})}iL.prototype.requestTileGeometry=function(o,f,m,x){let y=this._layers,v,C=y.length,T=!1,S=Promise.resolve();if(C===1)v=y[0];else for(let w=0;w<C;++w){let E=y[w];if(!F(E.availability)||E.availability.isTileAvailable(m,o,f)){v=E;break}let L=uFe(this,o,f,m,E,w===0);L.result&&(T=!0,S=S.then(()=>L.promise))}return!F(v)&&T?S.then(()=>new Promise(w=>{setTimeout(()=>{let E=this.requestTileGeometry(o,f,m,x);w(E)},0)})):Mmt(this,o,f,m,v,x)};function Mmt(o,f,m,x,y,v){if(!F(y))return Promise.reject(new Oi("Terrain tile doesn't exist"));let C=y.tileUrlTemplates;if(C.length===0)return;let T;!o._scheme||o._scheme==="tms"?T=o._tilingScheme.getNumberOfYTilesAtLevel(x)-m-1:T=m;let S=[];o._requestVertexNormals&&y.hasVertexNormals&&S.push(y.littleEndianExtensionSize?"octvertexnormals":"vertexnormals"),o._requestWaterMask&&y.hasWaterMask&&S.push("watermask"),o._requestMetadata&&y.hasMetadata&&S.push("metadata");let w,E,L=C[(f+T+x)%C.length],I=y.resource;F(I._ionEndpoint)&&!F(I._ionEndpoint.externalType)?(S.length!==0&&(E={extensions:S.join("-")}),w=y7e(void 0)):w=y7e(S);let R=I.getDerivedResource({url:L,templateValues:{version:y.version,z:x,x:f,y:T},queryParameters:E,headers:w,request:v}).fetchArrayBuffer();if(F(R))return R.then(function(P){return F(P)?F(o._heightmapStructure)?hzi(o,P,x,f,m):dzi(o,P,x,f,m,y):Promise.reject(new Oi("Mesh buffer doesn't exist."))})}Object.defineProperties(iL.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return this._hasWaterMask&&this._requestWaterMask}},hasVertexNormals:{get:function(){return this._hasVertexNormals&&this._requestVertexNormals}},hasMetadata:{get:function(){return this._hasMetadata&&this._requestMetadata}},requestVertexNormals:{get:function(){return this._requestVertexNormals}},requestWaterMask:{get:function(){return this._requestWaterMask}},requestMetadata:{get:function(){return this._requestMetadata}},availability:{get:function(){return this._availability}}});iL.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};iL.fromIonAssetId=async function(o,f){let m=await FG.fromAssetId(o);return iL.fromUrl(m,f)};iL.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT,o=await Promise.resolve(o);let m=Mr.createIfNeeded(o);m.appendForwardSlash();let x=new Rmt(f);x.lastResource=m,x.layerJsonResource=x.lastResource.getDerivedResource({url:"layer.json"}),await lFe(x);let y=new iL(f);return x.build(y),y};iL.prototype.getTileDataAvailable=function(o,f,m){if(!F(this._availability))return;if(m>this._availability._maximumLevel)return!1;if(this._availability.isTileAvailable(m,o,f))return!0;if(!this._hasMetadata)return!1;let x=this._layers,y=x.length;for(let v=0;v<y;++v)if(uFe(this,o,f,m,x[v],v===0).result)return;return!1};iL.prototype.loadTileDataAvailability=function(o,f,m){if(!F(this._availability)||m>this._availability._maximumLevel||this._availability.isTileAvailable(m,o,f)||!this._hasMetadata)return;let x=this._layers,y=x.length;for(let v=0;v<y;++v){let C=uFe(this,o,f,m,x[v],v===0);if(F(C.promise))return C.promise}};function X1e(o,f,m,x){if(x===0)return;let y=o.availabilityLevels,v=x%y===0?x-y:(x/y|0)*y,C=1<<x-v,T=f/C|0,S=m/C|0;return{level:v,x:T,y:S}}function uFe(o,f,m,x,y,v){if(!F(y.availabilityLevels))return{result:!1};let C,T=function(){delete y.availabilityPromiseCache[C]},S=y.availabilityTilesLoaded,w=y.availability,E=X1e(y,f,m,x);for(;F(E);){if(w.isTileAvailable(E.level,E.x,E.y)&&!S.isTileAvailable(E.level,E.x,E.y)){let L;if(!v&&(C=`${E.level}-${E.x}-${E.y}`,L=y.availabilityPromiseCache[C],!F(L))){let I=new hm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN});L=Mmt(o,E.x,E.y,E.level,y,I),F(L)&&(y.availabilityPromiseCache[C]=L,L.then(T))}return{result:!0,promise:L}}E=X1e(y,E.x,E.y,E.level)}return{result:!1}}iL._getAvailabilityTile=X1e;var N4=iL;function JM(o){o=o??si.EMPTY_OBJECT;let f=o.radius,m={center:o.center,semiMajorAxis:f,semiMinorAxis:f,ellipsoid:o.ellipsoid,height:o.height,extrudedHeight:o.extrudedHeight,granularity:o.granularity,vertexFormat:o.vertexFormat,stRotation:o.stRotation,shadowVolume:o.shadowVolume};this._ellipseGeometry=new TS(m),this._workerName="createCircleGeometry"}JM.packedLength=TS.packedLength;JM.pack=function(o,f,m){return TS.pack(o._ellipseGeometry,f,m)};var _7e=new TS({center:new Z,semiMajorAxis:1,semiMinorAxis:1}),dy={center:new Z,radius:void 0,ellipsoid:yi.clone(yi.default),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new Yr,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};JM.unpack=function(o,f,m){let x=TS.unpack(o,f,_7e);return dy.center=Z.clone(x._center,dy.center),dy.ellipsoid=yi.clone(x._ellipsoid,dy.ellipsoid),dy.ellipsoid=yi.clone(x._ellipsoid,_7e._ellipsoid),dy.height=x._height,dy.extrudedHeight=x._extrudedHeight,dy.granularity=x._granularity,dy.vertexFormat=Yr.clone(x._vertexFormat,dy.vertexFormat),dy.stRotation=x._stRotation,dy.shadowVolume=x._shadowVolume,F(m)?(dy.semiMajorAxis=x._semiMajorAxis,dy.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new TS(dy),m):(dy.radius=x._semiMajorAxis,new JM(dy))};JM.createGeometry=function(o){return TS.createGeometry(o._ellipseGeometry)};JM.createShadowVolume=function(o,f,m){let x=o._ellipseGeometry._granularity,y=o._ellipseGeometry._ellipsoid,v=f(x,y),C=m(x,y);return new JM({center:o._ellipseGeometry._center,radius:o._ellipseGeometry._semiMajorAxis,ellipsoid:y,stRotation:o._ellipseGeometry._stRotation,granularity:x,extrudedHeight:v,height:C,vertexFormat:Yr.POSITION_ONLY,shadowVolume:!0})};Object.defineProperties(JM.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}});var Vmt=JM;function QH(o){o=o??si.EMPTY_OBJECT;let f=o.radius,m={center:o.center,semiMajorAxis:f,semiMinorAxis:f,ellipsoid:o.ellipsoid,height:o.height,extrudedHeight:o.extrudedHeight,granularity:o.granularity,numberOfVerticalLines:o.numberOfVerticalLines};this._ellipseGeometry=new LI(m),this._workerName="createCircleOutlineGeometry"}QH.packedLength=LI.packedLength;QH.pack=function(o,f,m){return LI.pack(o._ellipseGeometry,f,m)};var pzi=new LI({center:new Z,semiMajorAxis:1,semiMinorAxis:1}),BC={center:new Z,radius:void 0,ellipsoid:yi.clone(yi.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};QH.unpack=function(o,f,m){let x=LI.unpack(o,f,pzi);return BC.center=Z.clone(x._center,BC.center),BC.ellipsoid=yi.clone(x._ellipsoid,BC.ellipsoid),BC.height=x._height,BC.extrudedHeight=x._extrudedHeight,BC.granularity=x._granularity,BC.numberOfVerticalLines=x._numberOfVerticalLines,F(m)?(BC.semiMajorAxis=x._semiMajorAxis,BC.semiMinorAxis=x._semiMinorAxis,m._ellipseGeometry=new LI(BC),m):(BC.radius=x._semiMajorAxis,new QH(BC))};QH.createGeometry=function(o){return LI.createGeometry(o._ellipseGeometry)};var Gmt=QH;function fzi(o){return o=o??si.EMPTY_OBJECT,N4.fromIonAssetId(2426648,{requestVertexNormals:o.requestVertexNormals??!1})}var cFe=fzi;function mzi(o){return o=o??si.EMPTY_OBJECT,N4.fromIonAssetId(1,{requestVertexNormals:o.requestVertexNormals??!1,requestWaterMask:o.requestWaterMask??!1,ellipsoid:yi.WGS84})}var gde=mzi;function W4(o){o=o??si.EMPTY_OBJECT,this._callback=o.callback,this._tilingScheme=o.tilingScheme,F(this._tilingScheme)||(this._tilingScheme=new _h({ellipsoid:o.ellipsoid??yi.default})),this._width=o.width,this._height=o.height;let f=Math.max(this._width,this._height);this._levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._errorEvent=new Tr;let m=o.credit;typeof m=="string"&&(m=new Oa(m)),this._credit=m}Object.defineProperties(W4.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}});W4.prototype.requestTileGeometry=function(o,f,m,x){let y=this._callback(o,f,m);if(!F(y))return;let v=this._width,C=this._height;return Promise.resolve(y).then(function(T){let S=T;return Array.isArray(S)&&(S=new Float64Array(S)),new yL({buffer:S,width:v,height:C})})};W4.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};W4.prototype.getTileDataAvailable=function(o,f,m){};W4.prototype.loadTileDataAvailability=function(o,f,m){};var Fmt=W4,xzi=1953029805,gzi=2917034100;function hFe(o,f){if(hFe.passThroughDataForTesting)return f;let m=o.byteLength;if(m===0||m%4!==0)throw new Oi("The length of key must be greater than 0 and a multiple of 4.");let x=new DataView(f),y=x.getUint32(0,!0);if(y===xzi||y===gzi)return f;let v=new DataView(o),C=0,T=f.byteLength,S=T-T%8,w=m,E,L=8;for(;C<S;)for(L=(L+8)%24,E=L;C<S&&E<w;)x.setUint32(C,x.getUint32(C,!0)^v.getUint32(E,!0),!0),x.setUint32(C+4,x.getUint32(C+4,!0)^v.getUint32(E+4,!0),!0),C+=8,E+=24;if(C<T)for(E>=w&&(L=(L+8)%24,E=L);C<T;)x.setUint8(C,x.getUint8(C)^v.getUint8(E)),C++,E++}hFe.passThroughDataForTesting=!1;var dFe=hFe;function Dmt(o){this.proxy=o}Dmt.prototype.getURL=function(o){let f=this.proxy.indexOf("?")===-1?"?":"";return this.proxy+f+encodeURIComponent(o)};var Nmt=Dmt;function Wmt(o,f){return pL("defaultValue","defaultValue has been deprecated and will be removed in Cesium 1.134. Use the nullish coalescing operator instead: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing"),o??f}Object.defineProperty(Wmt,"EMPTY_OBJECT",{get:function(){return pL("defaultValue.EMPTY_OBJECT","defaultValue.EMPTY_OBJECT has been deprecated and will be removed in Cesium 1.134. Use Frozen.EMPTY_OBJECT instead"),si.EMPTY_OBJECT}});var Zmt=Wmt;function yde(){wt.throwInstantiationError()}Object.defineProperties(yde.prototype,{credit:{get:wt.throwInstantiationError}});yde.getCreditsFromResult=function(o){if(F(o.attributions))return o.attributions.map(Oa.getIonCredit)};yde.prototype.geocode=wt.throwInstantiationError;var _de=yde,yzi={SEARCH:0,AUTOCOMPLETE:1},e$=Object.freeze(yzi);function Omt(){wt.throwInstantiationError()}Omt.createGeometry=function(o){wt.throwInstantiationError()};var Xmt=Omt,_zi=k0(j$e(),1);function vzi(o,f){return(o&f)!==0}var m1=vzi,bzi=[1,2,4,8],kmt=15,Czi=16,Tzi=64,Szi=128;function DI(o,f,m,x,y,v){this._bits=o,this.cnodeVersion=f,this.imageryVersion=m,this.terrainVersion=x,this.imageryProvider=y,this.terrainProvider=v,this.ancestorHasTerrain=!1,this.terrainState=void 0}DI.clone=function(o,f){return F(f)?(f._bits=o._bits,f.cnodeVersion=o.cnodeVersion,f.imageryVersion=o.imageryVersion,f.terrainVersion=o.terrainVersion,f.imageryProvider=o.imageryProvider,f.terrainProvider=o.terrainProvider):f=new DI(o._bits,o.cnodeVersion,o.imageryVersion,o.terrainVersion,o.imageryProvider,o.terrainProvider),f.ancestorHasTerrain=o.ancestorHasTerrain,f.terrainState=o.terrainState,f};DI.prototype.setParent=function(o){this.ancestorHasTerrain=o.ancestorHasTerrain||this.hasTerrain()};DI.prototype.hasSubtree=function(){return m1(this._bits,Czi)};DI.prototype.hasImagery=function(){return m1(this._bits,Tzi)};DI.prototype.hasTerrain=function(){return m1(this._bits,Szi)};DI.prototype.hasChildren=function(){return m1(this._bits,kmt)};DI.prototype.hasChild=function(o){return m1(this._bits,bzi[o])};DI.prototype.getChildBitmask=function(){return this._bits&kmt};var pFe=DI;function wzi(o){let f=o.length,m=new ArrayBuffer(f),x=new Uint8Array(m);for(let y=0;y<f;++y)x[y]=o.charCodeAt(y);return m}var Ezi=wzi(`E\xF4\xBD\vy\xE2jE"\x92,\xCDq\xF8IFgQ\0B%\xC6\xE8a,f)\b\xC64\xDCjb%y
wmi\xD6\xF0\x9Ck\x93\xA1\xBDNu\xE0A[\xDF@V\f\xD9\xBBr\x9B\x81|3S\xEEOl\xD4q\xB0{\xC0\x7FEVZ\xADwUe\v3\x92*\xACl5\xC50s\xF83>mF8J\xB4\xDD\xF0.\xDDu\xDA\x8CDt"\xFAa"\f3"So\xAF9D\v\x8C9\xD99L\xB9\xBF\x7F\xAB\\\x8CP_\x9F"ux\xE9\x07q\x91h;\xC1\xC4\x9B\x7F\xF0<VqH\x82'UfYNe\x98u\xA3aF}a?A\0\x9F\xD7\xB44M\xCE\x87F\xB0\xD5\xB8\x8A'{\x8B\xDC+\xBBMg0\xC8\xD1\xF6\\\x8FP\xFA[/F\x9Bn5/'C.\xEB
\f^\xA5s\x1Be4\xE5l.jC'c#U\xA9?q{gC}:\xAF\xCD\xE2TU\x9C\xFDK\xC6\xE2\x9F/(\xED\xCB\\\xC6-f\x07\x88\xA7;/*"N\xB0k.\xDD\r\x95}}G\xBAC\xB2\xB2+>M\xAA>}\xE6\xCEI\x89\xC6\xE6x\fa1-\xA4O\xA5~q \x88\xEC\r1\xE8N\v\0nPh}=\b\r\x95\xA6n\xA3h\x97$[k\xF3#\xF3\xB6s\xB3\r\v@\xC0\x9F\xD8Q]\xFA".j\xDFI\0\xB9\xA0wU\xC6\xEFj\xBF{GL\x7F\x83\xEE\xDC\xDCF\x85\xA9\xADS\x07+S4\x07\xFF\x94Y\xE48\xE81\x83N\xB9XFk\xCB-#\x86\x92p\x005\x88"\xCF1\xB2&/\xE7\xC3u-6,rt\xB0#G\xB7\xD3\xD1&\x857r\xE2\0\x8CD\xCF\xDA3-\xDE\`\x86i#i*|\xCDKQ\r\x95T9w.)\xEA\x1B\xA6P\xA2j\x8FoP\x99\\>T\xFB\xEFP[\v\x07E\x89m(w7\xDB\x8EJfJo\x99 \xE5p\xE2\xB9q~\fmI-z\xFEr\xC7\xF2Y0\x8F\xBB]s\xE5\xC9 \xEAx\xEC \x90\xF0\x8A\x7FB|G\`\xB0\xBD&\xB7q\xB6\xC7\x9F\xD13\x82=\xD3\xAB\xEEc\x99\xC8+S\xA0D\\q\xC6\xCCD2O<\xCA\xC0)=R\xD3aX\xA9}e\xB4\xDC\xCF\r\xF4=\xF1\b\xA9B\xDA#   \xD8\xBF^PI\xF8M\xC0\xCBGLO\xF7{+\xD8\xC51\x92;\xB5o\xDCl\r\x92\x88\xD1\x9E\xDB?\xE2\xE9\xDA_\xD4\x84\xE2FaZ\xDEU\xCF\xA4\0\xBE\xFD\xCEg\xF1Ji\x97\xE6 H\xD8]\x7F~\xAEq N\xAE\xC0V\xA9\x91<\x82r\xE7v\xEC)I\xD6]-\x83\xE3\xDB6\xA9;f\x97\x87j\xD5\xB6=P^R\xB9K\xC7sWx\xC9\xF4.Y\x07\x95\x93o\xD0KW>''\xC7\`\xDB;\xED\x9ASD>?\x8D\x92mw\xA2
\xEB?R\xA8\xC6U^1I7\x85\xF4\xC5&-\xA9\xBF\x8B'T\xDA\xC3j \xE5*x\xB0\xD6\x90pr\xAA\x8Bh\xBD\x88\xF7_H\xB1~\xC0XL?f\xF9>\xE1e\xC0p\xA7\xCF8i\xAF\xF0VldI\x9C'\xADxtO\xC2\x87\xDEV9\0\xDAw\v\xCB-\x1B\x89\xFB5O\xF5\bQ\`\xC1
ZGM&30x\xDA\xC0\x9CFG\xE2[y\`In7gS
>\xE9\xECF9\xB2\xF14\r\xC6\x84Sun\xE1\fY\xD9\xDE)\x85{II\xA5wy\xBEIV.6\xE7\v:\xBBOb{\xD2M1\x95/\xBD8{\xA8O!\xE1\xECFpv\x95})"x\x88
\x90\xDD\x9D\\\xDA\xDEQ\xCF\xF0\xFCYRe|3\xDF\xF3H\xDA\xBB*u\xDB\`\xB2\xD4\xFC\xED\x1B\xEC\x7F5\xA8\xFF(1\x07-\xC8\xDC\x88F|\x8A["`);function w1(o){this.imageryPresent=!0,this.protoImagery=void 0,this.terrainPresent=!0,this.negativeAltitudeExponentBias=32,this.negativeAltitudeThreshold=be.EPSILON12,this.providers={},this.key=void 0,this._resource=void 0,this._quadPacketVersion=1,this._tileInfo={},this._subtreePromises={}}Object.defineProperties(w1.prototype,{url:{get:function(){return this._resource.url}},proxy:{get:function(){return this._resource.proxy}},resource:{get:function(){return this._resource}}});w1.fromUrl=async function(o){let f=o;typeof f!="string"&&!(f instanceof Mr)&&(f=o.url);let m=Mr.createIfNeeded(f);m.appendForwardSlash();let x=new w1;x._resource=m;try{await Lzi(x),await x.getQuadTreePacket("",x._quadPacketVersion)}catch(y){let v=`An error occurred while accessing ${Bmt(x,"",1).url}: ${y}`;throw new Oi(v)}return x};w1.tileXYToQuadKey=function(o,f,m){let x="";for(let y=m;y>=0;--y){let v=1<<y,C=0;m1(f,v)?m1(o,v)&&(C|=1):(C|=2,m1(o,v)||(C|=1)),x+=C}return x};w1.quadKeyToTileXY=function(o){let f=0,m=0,x=o.length-1;for(let y=x;y>=0;--y){let v=1<<y,C=+o[x-y];m1(C,2)?m1(C,1)||(f|=v):(m|=v,m1(C,1)&&(f|=v))}return{x:f,y:m,level:x}};w1.prototype.isValid=function(o){let f=this.getTileInformationFromQuadKey(o);if(F(f))return f!==null;let m=!0,x=o,y;for(;x.length>1;)if(y=x.substring(x.length-1),x=x.substring(0,x.length-1),f=this.getTileInformationFromQuadKey(x),F(f)){!f.hasSubtree()&&!f.hasChild(parseInt(y))&&(m=!1);break}else if(f===null){m=!1;break}return m};var Umt=new mp("decodeGoogleEarthEnterprisePacket");w1.prototype.getQuadTreePacket=function(o,f,m){f=f??1,o=o??"";let x=Bmt(this,o,f,m).fetchArrayBuffer();if(!F(x))return;let y=this._tileInfo,v=this.key;return x.then(function(C){return Umt.scheduleTask({buffer:C,quadKey:o,type:"Metadata",key:v},[C]).then(function(T){let S,w=-1;if(o!==""){w=o.length+1;let I=T[o];S=y[o],S._bits|=I._bits,delete T[o]}let E=Object.keys(T);E.sort(function(I,R){return I.length-R.length});let L=E.length;for(let I=0;I<L;++I){let R=E[I];if(T[R]!==null){let P=pFe.clone(T[R]),A=R.length;if(A===w)P.setParent(S);else if(A>1){let M=y[R.substring(0,R.length-1)];P.setParent(M)}y[R]=P}else y[R]=null}})})};w1.prototype.populateSubtree=function(o,f,m,x){let y=w1.tileXYToQuadKey(o,f,m);return k1e(this,y,x)};function k1e(o,f,m){let x=o._tileInfo,y=f,v=x[y];if(F(v)&&(!v.hasSubtree()||v.hasChildren()))return v;for(;v===void 0&&y.length>1;)y=y.substring(0,y.length-1),v=x[y];let C,T=o._subtreePromises,S=T[y];if(F(S))return S.then(function(){return C=new hm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),k1e(o,f,C)});if(!F(v)||!v.hasSubtree())return Promise.reject(new Oi(`Couldn't load metadata for tile ${f}`));if(S=o.getQuadTreePacket(y,v.cnodeVersion,m),!!F(S))return T[y]=S,S.then(function(){return C=new hm({throttle:m.throttle,throttleByServer:m.throttleByServer,type:m.type,priorityFunction:m.priorityFunction}),k1e(o,f,C)}).finally(function(){delete T[y]})}w1.prototype.getTileInformation=function(o,f,m){let x=w1.tileXYToQuadKey(o,f,m);return this._tileInfo[x]};w1.prototype.getTileInformationFromQuadKey=function(o){return this._tileInfo[o]};function Bmt(o,f,m,x){return o._resource.getDerivedResource({url:`flatfile?q2-0${f}-q.${m.toString()}`,request:x})}var Wve,Zve;function Lzi(o){let f=o._resource.getDerivedResource({url:"dbRoot.v5",queryParameters:{output:"proto"}});if(!F(Zve)){let m=oa("ThirdParty/google-earth-dbroot-parser.js"),x=window.cesiumGoogleEarthDbRootParser;Zve=Jle(m).then(function(){Wve=window.cesiumGoogleEarthDbRootParser(_zi),F(x)?window.cesiumGoogleEarthDbRootParser=x:delete window.cesiumGoogleEarthDbRootParser})}return Zve.then(function(){return f.fetchArrayBuffer()}).then(function(m){let x=Wve.EncryptedDbRootProto.decode(new Uint8Array(m)),y=x.encryptionData,v=y.byteOffset,C=v+y.byteLength,T=o.key=y.buffer.slice(v,C);y=x.dbrootData,v=y.byteOffset,C=v+y.byteLength;let S=y.buffer.slice(v,C);return Umt.scheduleTask({buffer:S,type:"DbRoot",key:T},[S])}).then(function(m){let x=Wve.DbRootProto.decode(new Uint8Array(m.buffer));if(o.imageryPresent=x.imageryPresent??o.imageryPresent,o.protoImagery=x.protoImagery,o.terrainPresent=x.terrainPresent??o.terrainPresent,F(x.endSnippet)&&F(x.endSnippet.model)){let T=x.endSnippet.model;o.negativeAltitudeExponentBias=T.negativeAltitudeExponentBias??o.negativeAltitudeExponentBias,o.negativeAltitudeThreshold=T.compressedNegativeAltitudeThreshold??o.negativeAltitudeThreshold}F(x.databaseVersion)&&(o._quadPacketVersion=x.databaseVersion.quadtreeVersion??o._quadPacketVersion);let y=o.providers,v=x.providerInfo??[],C=v.length;for(let T=0;T<C;++T){let S=v[T],w=S.copyrightString;F(w)&&(y[S.providerId]=new Oa(w.value))}}).catch(function(){console.log(`Failed to retrieve ${f.url}. Using defaults.`),o.key=Ezi})}var Z4=w1;function WO(o){o=o??si.EMPTY_OBJECT,this._buffer=o.buffer,this._credits=o.credits,this._negativeAltitudeExponentBias=o.negativeAltitudeExponentBias,this._negativeElevationThreshold=o.negativeElevationThreshold;let f=o.childTileMask??15,m=f&3;m|=f&4?8:0,m|=f&8?4:0,this._childTileMask=m,this._createdByUpsampling=o.createdByUpsampling??!1,this._skirtHeight=void 0,this._bufferType=this._buffer.constructor,this._mesh=void 0,this._minimumHeight=void 0,this._maximumHeight=void 0}Object.defineProperties(WO.prototype,{credits:{get:function(){return this._credits}},waterMask:{get:function(){}}});var Hmt="createVerticesFromGoogleEarthEnterpriseBuffer",Pzi=new mp(Hmt),Izi=new mp(Hmt,yO.maximumAsynchronousTasks),v7e=new vi,Ove=new vi;WO.prototype.createMesh=function(o){o=o??si.EMPTY_OBJECT;let f=o.tilingScheme,m=o.x,x=o.y,y=o.level,v=o.exaggeration??1,C=o.exaggerationRelativeHeight??0,T=o.throttle??!0,S=f.ellipsoid;f.tileXYToNativeRectangle(m,x,y,v7e),f.tileXYToRectangle(m,x,y,Ove);let w=S.cartographicToCartesian(vi.center(Ove)),E=40075.16/(1<<y);this._skirtHeight=Math.min(E*8,1e3);let L=(T?Izi:Pzi).scheduleTask({buffer:this._buffer,nativeRectangle:v7e,rectangle:Ove,relativeToCenter:w,ellipsoid:S,skirtHeight:this._skirtHeight,exaggeration:v,exaggerationRelativeHeight:C,includeWebMercatorT:!0,negativeAltitudeExponentBias:this._negativeAltitudeExponentBias,negativeElevationThreshold:this._negativeElevationThreshold});if(!F(L))return;let I=this;return L.then(function(R){return I._mesh=new _O(w,new Float32Array(R.vertices),new Uint16Array(R.indices),R.indexCountWithoutSkirts,R.vertexCountWithoutSkirts,R.minimumHeight,R.maximumHeight,Ei.clone(R.boundingSphere3D),Z.clone(R.occludeePointInScaledSpace),R.numberOfAttributes,Tu.clone(R.orientedBoundingBox),PS.clone(R.encoding),R.westIndicesSouthToNorth,R.southIndicesEastToWest,R.eastIndicesNorthToSouth,R.northIndicesWestToEast),I._minimumHeight=R.minimumHeight,I._maximumHeight=R.maximumHeight,I._buffer=void 0,I._mesh})};WO.prototype.interpolateHeight=function(o,f,m){let x=be.clamp((f-o.west)/o.width,0,1),y=be.clamp((m-o.south)/o.height,0,1);return F(this._mesh)?Gzi(this,x,y):Nzi(this,x,y,o)};var Rzi=new mp("upsampleQuantizedTerrainMesh",yO.maximumAsynchronousTasks);WO.prototype.upsample=function(o,f,m,x,y,v,C){let T=this._mesh;if(!F(this._mesh))return;let S=f*2!==y,w=m*2===v,E=o.ellipsoid,L=o.tileXYToRectangle(y,v,C),I=Rzi.scheduleTask({vertices:T.vertices,indices:T.indices,indexCountWithoutSkirts:T.indexCountWithoutSkirts,vertexCountWithoutSkirts:T.vertexCountWithoutSkirts,encoding:T.encoding,minimumHeight:this._minimumHeight,maximumHeight:this._maximumHeight,isEastChild:S,isNorthChild:w,childRectangle:L,ellipsoid:E});if(!F(I))return;let R=this;return I.then(function(P){let A=new Uint16Array(P.vertices),M=Fn.createTypedArray(A.length/3,P.indices),V=R._skirtHeight;return new xde({quantizedVertices:A,indices:M,minimumHeight:P.minimumHeight,maximumHeight:P.maximumHeight,boundingSphere:Ei.clone(P.boundingSphere),orientedBoundingBox:Tu.clone(P.orientedBoundingBox),horizonOcclusionPoint:Z.clone(P.horizonOcclusionPoint),westIndices:P.westIndices,southIndices:P.southIndices,eastIndices:P.eastIndices,northIndices:P.northIndices,westSkirtHeight:V,southSkirtHeight:V,eastSkirtHeight:V,northSkirtHeight:V,childTileMask:0,createdByUpsampling:!0,credits:R._credits})})};WO.prototype.isChildAvailable=function(o,f,m,x){let y=2;return m!==o*2&&++y,x!==f*2&&(y-=2),(this._childTileMask&1<<y)!==0};WO.prototype.wasCreatedByUpsampling=function(){return this._createdByUpsampling};var Azi=new rt,Mzi=new rt,Vzi=new rt,zmt=new Z;function Gzi(o,f,m){let x=o._mesh,y=x.vertices,v=x.encoding,C=x.indices;for(let T=0,S=C.length;T<S;T+=3){let w=C[T],E=C[T+1],L=C[T+2],I=v.decodeTextureCoordinates(y,w,Azi),R=v.decodeTextureCoordinates(y,E,Mzi),P=v.decodeTextureCoordinates(y,L,Vzi),A=D4.computeBarycentricCoordinates(f,m,I.x,I.y,R.x,R.y,P.x,P.y,zmt);if(A.x>=-1e-15&&A.y>=-1e-15&&A.z>=-1e-15){let M=v.decodeHeight(y,w),V=v.decodeHeight(y,E),G=v.decodeHeight(y,L);return A.x*M+A.y*V+A.z*G}}}var Fzi=Uint16Array.BYTES_PER_ELEMENT,b7e=Uint32Array.BYTES_PER_ELEMENT,Xve=Int32Array.BYTES_PER_ELEMENT,Dzi=Float32Array.BYTES_PER_ELEMENT,kve=Float64Array.BYTES_PER_ELEMENT;function Nzi(o,f,m,x){let y=o._buffer,v=0,C=0,T=0;m>.5?(f>.5?(v=2,C=.5):v=3,T=.5):f>.5&&(v=1,C=.5);let S=new DataView(y),w=0;for(let k=0;k<v;++k)w+=S.getUint32(w,!0),w+=b7e;w+=b7e,w+=2*kve;let E=be.toRadians(S.getFloat64(w,!0)*180);w+=kve;let L=be.toRadians(S.getFloat64(w,!0)*180);w+=kve;let I=x.width/E/2,R=x.height/L/2,P=S.getInt32(w,!0);w+=Xve;let A=S.getInt32(w,!0)*3;w+=Xve,w+=Xve;let M=new Array(P),V=new Array(P),G=new Array(P),D;for(D=0;D<P;++D)M[D]=C+S.getUint8(w++)*I,V[D]=T+S.getUint8(w++)*R,G[D]=S.getFloat32(w,!0)*6371010,w+=Dzi;let N=new Array(A);for(D=0;D<A;++D)N[D]=S.getUint16(w,!0),w+=Fzi;for(D=0;D<A;D+=3){let k=N[D],U=N[D+1],B=N[D+2],Y=M[k],J=M[U],K=M[B],z=V[k],j=V[U],q=V[B],O=D4.computeBarycentricCoordinates(f,m,Y,z,J,j,K,q,zmt);if(O.x>=-1e-15&&O.y>=-1e-15&&O.z>=-1e-15)return O.x*G[k]+O.y*G[U]+O.z*G[B]}}var cle=WO,BT={UNKNOWN:0,NONE:1,SELF:2,PARENT:3},poe=new $t;function vde(){this._terrainCache={},this._lastTidy=$t.now()}vde.prototype.add=function(o,f){this._terrainCache[o]={buffer:f,timestamp:$t.now()}};vde.prototype.get=function(o){let f=this._terrainCache[o];if(F(f))return delete this._terrainCache[o],f.buffer};vde.prototype.tidy=function(){if($t.now(poe),$t.secondsDifference(poe,this._lastTidy)>10){let o=this._terrainCache,f=Object.keys(o),m=f.length;for(let x=0;x<m;++x){let y=f[x],v=o[y];$t.secondsDifference(poe,v.timestamp)>10&&delete o[y]}$t.clone(poe,this._lastTidy)}};function vF(o){o=o??si.EMPTY_OBJECT,this._tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new vi(-be.PI,-be.PI,be.PI,be.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._levelZeroMaximumGeometricError=40075.16,this._terrainCache=new vde,this._terrainPromises={},this._terrainRequests={},this._errorEvent=new Tr}Object.defineProperties(vF.prototype,{url:{get:function(){return this._metadata.url}},proxy:{get:function(){return this._metadata.proxy}},tilingScheme:{get:function(){return this._tilingScheme}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}}});vF.fromMetadata=function(o,f){if(!o.terrainPresent)throw new Oi(`The server ${o.url} doesn't have terrain`);let m=new vF(f);return m._metadata=o,m};var Wzi=new mp("decodeGoogleEarthEnterprisePacket");function C7e(o,f,m){let x=f.getChildBitmask();if(f.terrainState===BT.PARENT){x=0;for(let y=0;y<4;++y){let v=m.getTileInformationFromQuadKey(o+y.toString());F(v)&&v.hasTerrain()&&(x|=1<<y)}}return x}vF.prototype.requestTileGeometry=function(o,f,m,x){let y=Z4.tileXYToQuadKey(o,f,m),v=this._terrainCache,C=this._metadata,T=C.getTileInformationFromQuadKey(y);if(!F(T))return Promise.reject(new Oi("Terrain tile doesn't exist"));let S=T.terrainState;F(S)||(S=T.terrainState=BT.UNKNOWN);let w=v.get(y);if(F(w)){let V=C.providers[T.terrainProvider];return Promise.resolve(new cle({buffer:w,childTileMask:C7e(y,T,C),credits:F(V)?[V]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold}))}if(v.tidy(),T.ancestorHasTerrain){if(S===BT.NONE)return Promise.reject(new Oi("Terrain tile doesn't exist"))}else return Promise.resolve(new yL({buffer:new Uint8Array(16*16),width:16,height:16}));let E,L=y,I=-1;switch(S){case BT.SELF:I=T.terrainVersion;break;case BT.PARENT:L=L.substring(0,L.length-1),E=C.getTileInformationFromQuadKey(L),I=E.terrainVersion;break;case BT.UNKNOWN:T.hasTerrain()?I=T.terrainVersion:(L=L.substring(0,L.length-1),E=C.getTileInformationFromQuadKey(L),F(E)&&E.hasTerrain()&&(I=E.terrainVersion));break}if(I<0)return Promise.reject(new Oi("Terrain tile doesn't exist"));let R=this._terrainPromises,P=this._terrainRequests,A,M;if(F(R[L]))A=R[L],M=P[L];else{M=x;let V=Zzi(this,L,I,M).fetchArrayBuffer();if(!F(V))return;A=V.then(function(G){return F(G)?Wzi.scheduleTask({buffer:G,type:"Terrain",key:C.key},[G]).then(function(D){let N=C.getTileInformationFromQuadKey(L);N.terrainState=BT.SELF,v.add(L,D[0]);let k=N.terrainProvider,U=D.length-1;for(let B=0;B<U;++B){let Y=L+B.toString(),J=C.getTileInformationFromQuadKey(Y);F(J)&&(v.add(Y,D[B+1]),J.terrainState=BT.PARENT,J.terrainProvider===0&&(J.terrainProvider=k))}}):Promise.reject(new Oi("Failed to load terrain."))}),R[L]=A,P[L]=M,A=A.finally(function(){delete R[L],delete P[L]})}return A.then(function(){let V=v.get(y);if(F(V)){let G=C.providers[T.terrainProvider];return new cle({buffer:V,childTileMask:C7e(y,T,C),credits:F(G)?[G]:void 0,negativeAltitudeExponentBias:C.negativeAltitudeExponentBias,negativeElevationThreshold:C.negativeAltitudeThreshold})}return Promise.reject(new Oi("Failed to load terrain."))}).catch(function(V){return M.state===pc.CANCELLED?(x.state=M.state,Promise.reject(V)):(T.terrainState=BT.NONE,Promise.reject(V))})};vF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};vF.prototype.getTileDataAvailable=function(o,f,m){let x=this._metadata,y=Z4.tileXYToQuadKey(o,f,m),v=x.getTileInformation(o,f,m);if(v===null)return!1;if(F(v)){if(!v.ancestorHasTerrain)return!0;let C=v.terrainState;if(C===BT.NONE)return!1;if((!F(C)||C===BT.UNKNOWN)&&(v.terrainState=BT.UNKNOWN,!v.hasTerrain())){y=y.substring(0,y.length-1);let T=x.getTileInformationFromQuadKey(y);if(!F(T)||!T.hasTerrain())return!1}return!0}if(x.isValid(y)){let C=new hm({throttle:!1,throttleByServer:!0,type:n2.TERRAIN});x.populateSubtree(o,f,m,C)}return!1};vF.prototype.loadTileDataAvailability=function(o,f,m){};function Zzi(o,f,m,x){return m=F(m)&&m>0?m:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1c-0${f}-t.${m.toString()}`,request:x})}var Ymt=vF,Ozi="https://maps.googleapis.com/maps/api/geocode/json",Kmt='<img alt="Google" src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align:-5px">';function fFe(o){o=o??si.EMPTY_OBJECT;let f=o.key;this._resource=new Mr({url:Ozi,queryParameters:{key:f}}),this._credit=new Oa(Kmt,!0)}Object.defineProperties(fFe.prototype,{credit:{get:function(){return this._credit}}});fFe.prototype.geocode=async function(o){let f=await this._resource.getDerivedResource({queryParameters:{address:o}}).fetchJson();if(f.status==="ZERO_RESULTS")return[];if(f.status!=="OK")throw new Oi(`GoogleGeocoderService got a bad response ${f.status}: ${f.error_message}`);return f.results.map(m=>{let x=m.geometry.viewport.southwest,y=m.geometry.viewport.northeast;return{displayName:m.formatted_address,destination:vi.fromDegrees(x.lng,x.lat,y.lng,y.lat),attribution:{html:Kmt,collapsible:!1}}})};var Jmt=fFe,bde={};bde.defaultApiKey=void 0;bde.mapTilesApiEndpoint=new Mr({url:"https://tile.googleapis.com/v1/"});bde.getDefaultCredit=function(){return new Oa('<img src="https://assets.ion.cesium.com/google-credit.png" style="vertical-align: -5px" alt="Google">',!0)};var hQ=bde,t$={};t$.type=void 0;t$.getRequiredDataPoints=wt.throwInstantiationError;t$.interpolateOrderZero=wt.throwInstantiationError;t$.interpolate=wt.throwInstantiationError;var jmt=t$,Xzi={GOOGLE:"GOOGLE",BING:"BING",DEFAULT:"DEFAULT"},XZ=Object.freeze(Xzi);function mFe(o){this._url=Mr.createIfNeeded(o),this._url.appendForwardSlash()}Object.defineProperties(mFe.prototype,{url:{get:function(){return this._url}},credit:{get:function(){}}});mFe.prototype.geocode=async function(o,f){return this._url.getDerivedResource({url:f===e$.AUTOCOMPLETE?"autocomplete":"search",queryParameters:{text:o}}).fetchJson().then(function(m){return m.features.map(function(x){let y,v=x.bbox;if(F(v))y=vi.fromDegrees(v[0],v[1],v[2],v[3]);else{let C=x.geometry.coordinates[0],T=x.geometry.coordinates[1];y=Z.fromDegrees(C,T)}return{displayName:x.properties.label,destination:y,attributions:m.attributions}})})};var xFe=mFe;function kzi(o){if(!Object.values(XZ).some(f=>f===o))throw new wt(`Invalid geocodeProviderType: "${o}"`)}var Qmt=Object.freeze({[XZ.GOOGLE]:"google",[XZ.BING]:"bing",[XZ.DEFAULT]:void 0});function Uzi(o){return Qmt[o]}function Bzi(o){return Object.entries(Qmt).find(f=>f[1]===o)[0]}function gFe(o){o=o??si.EMPTY_OBJECT;let f=o.geocodeProviderType??XZ.DEFAULT,m=o.accessToken??GG.defaultAccessToken,x=Mr.createIfNeeded(o.server??GG.defaultServer);x.appendForwardSlash();let y=GG.getDefaultTokenCredit(m);F(y)&&o.scene.frameState.creditDisplay.addStaticCredit(Oa.clone(y));let v=x.getDerivedResource({url:"v1/geocode"});F(m)&&v.appendQueryParameters({access_token:m}),this._accessToken=m,this._server=x,this._pelias=new xFe(v),this.geocodeProviderType=f}Object.defineProperties(gFe.prototype,{credit:{get:function(){}},geocodeProviderType:{get:function(){return Bzi(this._pelias.url.queryParameters.geocoder)},set:function(o){kzi(o);let f={...this._pelias.url.queryParameters,geocoder:Uzi(o)};F(f.geocoder)||delete f.geocoder,this._pelias.url.setQueryParameters(f)}}});gFe.prototype.geocode=async function(o,f){return this._pelias.geocode(o,f)};var Cde=gFe,lm={};lm.ExportStatus=Object.freeze({NotStarted:"NotStarted",InProgress:"InProgress",Complete:"Complete",Invalid:"Invalid"});lm.ExportType=Object.freeze({IMODEL:"IMODEL",CESIUM:"CESIUM","3DTILES":"3DTILES"});lm.RealityDataType=Object.freeze({Cesium3DTiles:"Cesium3DTiles",PNTS:"PNTS",RealityMesh3DTiles:"RealityMesh3DTiles",Terrain3DTiles:"Terrain3DTiles",KML:"KML",GeoJSON:"GeoJSON",Unstructured:"Unstructured"});lm.defaultAccessToken=void 0;lm.defaultShareKey=void 0;lm._getAuthorizationHeader=function(){return F(lm.defaultShareKey)?`Basic ${lm.defaultShareKey}`:`Bearer ${lm.defaultAccessToken}`};lm.apiEndpoint=new Mr({url:"https://api.bentley.com"});lm.getExports=async function(o){let f=new Mr({url:`${lm.apiEndpoint}mesh-export`,headers:{Authorization:lm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json",Prefer:"return=representation"},queryParameters:{iModelId:o,exportType:lm.ExportType["3DTILES"],$top:"5",client:"CesiumJS"}});typeof CESIUM_VERSION<"u"&&f.appendQueryParameters({clientVersion:CESIUM_VERSION});try{return await f.fetchJson()}catch(m){let x=JSON.parse(m.response);if(m.statusCode===401){let y=x.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${y}`)}else{if(m.statusCode===403)throw console.error(x.error.code,x.error.message),new Oi("Not allowed, forbidden");if(m.statusCode===422)throw new Oi(`Unprocessable Entity:${x.error.code} ${x.error.message}`);if(m.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${m.statusCode}`)}};lm.getRealityDataMetadata=async function(o,f){let m=new Mr({url:`${lm.apiEndpoint}reality-management/reality-data/${f}`,headers:{Authorization:lm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{return(await m.fetchJson()).realityData}catch(x){let y=JSON.parse(x.response);if(x.statusCode===401){let v=y.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${v}`)}else{if(x.statusCode===403)throw console.error(y.error.code,y.error.message),new Oi("Not allowed, forbidden");if(x.statusCode===404)throw new Oi(`Reality data not found: ${o}, ${f}`);if(x.statusCode===422)throw new Oi(`Unprocessable Entity:${y.error.code} ${y.error.message}`);if(x.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${x.statusCode}`)}};lm.getRealityDataURL=async function(o,f,m){let x=new Mr({url:`${lm.apiEndpoint}reality-management/reality-data/${f}/readaccess`,headers:{Authorization:lm._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{iTwinId:o}});try{let y=(await x.fetchJson())._links.containerUrl.href,v=new URL(y);return v.pathname=`${v.pathname}/${m}`,v.toString()}catch(y){let v=JSON.parse(y.response);if(y.statusCode===401){let C=v.error.details?.[0].code??"";throw new Oi(`Unauthorized, bad token, wrong scopes or headers bad. ${C}`)}else{if(y.statusCode===403)throw console.error(v.error.code,v.error.message),new Oi("Not allowed, forbidden");if(y.statusCode===404)throw new Oi(`Reality data not found: ${o}, ${f}`);if(y.statusCode===422)throw new Oi(`Unprocessable Entity:${v.error.code} ${v.error.message}`);if(y.statusCode===429)throw new Oi("Too many requests")}throw new Oi(`Unknown request failure ${y.statusCode}`)}};var wg=lm,Hzi=new mp("transcodeCRNToDXT",Number.POSITIVE_INFINITY);function zzi(o){let f;if(o instanceof ArrayBuffer||ArrayBuffer.isView(o)?f=Promise.resolve(o):f=Mr.createIfNeeded(o).fetchArrayBuffer(),!!F(f))return f.then(function(m){if(!F(m))return;let x=[];return m instanceof ArrayBuffer?x.push(m):(m.byteOffset===0&&m.byteLength===m.buffer.byteLength||(m=m.slice(0,m.length)),x.push(m.buffer)),Hzi.scheduleTask(m,x)}).then(function(m){return DS.clone(m)})}var qmt=zzi;function Tde(){wt.throwInstantiationError()}Object.defineProperties(Tde.prototype,{ellipsoid:{get:wt.throwInstantiationError}});Tde.prototype.project=wt.throwInstantiationError;Tde.prototype.unproject=wt.throwInstantiationError;var $mt=Tde;function O4(o){o=o??si.EMPTY_OBJECT;let f=o.weights,m=o.times;this._times=m,this._weights=f,this._count=f.length/m.length,this._lastTimeIndex=0}Object.defineProperties(O4.prototype,{times:{get:function(){return this._times}},weights:{get:function(){return this._weights}}});O4.prototype.findTimeInterval=B0.prototype.findTimeInterval;O4.prototype.wrapTime=B0.prototype.wrapTime;O4.prototype.clampTime=B0.prototype.clampTime;O4.prototype.evaluate=function(o,f){let m=this.weights,x=this.times,y=this._lastTimeIndex=this.findTimeInterval(o,this._lastTimeIndex),v=(o-x[y])/(x[y+1]-x[y]);F(f)||(f=new Array(this._count));for(let C=0;C<this._count;C++){let T=y*this._count+C;f[C]=m[T]*(1-v)+m[T+this._count]*v}return f};var ext=O4;function yFe(o,f,m){o=Mr.createIfNeeded(o),o.appendForwardSlash(),o.setQueryParameters({key:f}),this._url=o,this._params=m??{},this._credit=new Oa('Geodata copyright <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',!1)}Object.defineProperties(yFe.prototype,{url:{get:function(){return this._url}},params:{get:function(){return this._params}},credit:{get:function(){return this._credit}}});yFe.prototype.geocode=async function(o){return this._url.getDerivedResource({url:"json",queryParameters:va(this._params,{q:o})}).fetchJson().then(function(f){return f.results.map(function(m){let x,y=m.bounds;if(F(y))x=vi.fromDegrees(y.southwest.lng,y.southwest.lat,y.northeast.lng,y.northeast.lat);else{let v=m.geometry.lat,C=m.geometry.lng;x=Z.fromDegrees(v,C)}return{displayName:m.formatted,destination:x}})})};var txt=yFe,Yzi={packedLength:void 0,pack:wt.throwInstantiationError,unpack:wt.throwInstantiationError},ixt=Yzi,Kzi={packedInterpolationLength:void 0,convertPackedArrayForInterpolation:wt.throwInstantiationError,unpackInterpolationResult:wt.throwInstantiationError},rxt=Kzi,Jzi=new Z;function jzi(o,f,m,x){let y=nue(o,f,m,x,Jzi);return F(y)?y.x>0&&y.y>0&&y.z>0:!1}var nxt=jzi;function oxt(){wt.throwInstantiationError()}oxt.prototype.getURL=wt.throwInstantiationError;var axt=oxt;function Qzi(o,f,m,x,y,v,C){let T=od.numberOfPoints(o,f,y),S,w=m.red,E=m.green,L=m.blue,I=m.alpha,R=x.red,P=x.green,A=x.blue,M=x.alpha;if(Xe.equals(m,x)){for(S=0;S<T;S++)v[C++]=Xe.floatToByte(w),v[C++]=Xe.floatToByte(E),v[C++]=Xe.floatToByte(L),v[C++]=Xe.floatToByte(I);return C}let V=(R-w)/T,G=(P-E)/T,D=(A-L)/T,N=(M-I)/T,k=C;for(S=0;S<T;S++)v[k++]=Xe.floatToByte(w+S*V),v[k++]=Xe.floatToByte(E+S*G),v[k++]=Xe.floatToByte(L+S*D),v[k++]=Xe.floatToByte(I+S*N);return k}function I6(o){o=o??si.EMPTY_OBJECT;let f=o.positions,m=o.colors,x=o.colorsPerVertex??!1;this._positions=f,this._colors=m,this._colorsPerVertex=x,this._arcType=o.arcType??qa.GEODESIC,this._granularity=o.granularity??be.RADIANS_PER_DEGREE,this._ellipsoid=o.ellipsoid??yi.default,this._workerName="createSimplePolylineGeometry";let y=1+f.length*Z.packedLength;y+=F(m)?1+m.length*Xe.packedLength:1,this.packedLength=y+yi.packedLength+3}I6.pack=function(o,f,m){m=m??0;let x,y=o._positions,v=y.length;for(f[m++]=v,x=0;x<v;++x,m+=Z.packedLength)Z.pack(y[x],f,m);let C=o._colors;for(v=F(C)?C.length:0,f[m++]=v,x=0;x<v;++x,m+=Xe.packedLength)Xe.pack(C[x],f,m);return yi.pack(o._ellipsoid,f,m),m+=yi.packedLength,f[m++]=o._colorsPerVertex?1:0,f[m++]=o._arcType,f[m]=o._granularity,f};I6.unpack=function(o,f,m){f=f??0;let x,y=o[f++],v=new Array(y);for(x=0;x<y;++x,f+=Z.packedLength)v[x]=Z.unpack(o,f);y=o[f++];let C=y>0?new Array(y):void 0;for(x=0;x<y;++x,f+=Xe.packedLength)C[x]=Xe.unpack(o,f);let T=yi.unpack(o,f);f+=yi.packedLength;let S=o[f++]===1,w=o[f++],E=o[f];return F(m)?(m._positions=v,m._colors=C,m._ellipsoid=T,m._colorsPerVertex=S,m._arcType=w,m._granularity=E,m):new I6({positions:v,colors:C,ellipsoid:T,colorsPerVertex:S,arcType:w,granularity:E})};var xae=new Array(2),gae=new Array(2),qzi={positions:xae,height:gae,ellipsoid:void 0,minDistance:void 0,granularity:void 0};I6.createGeometry=function(o){let f=o._positions,m=o._colors,x=o._colorsPerVertex,y=o._arcType,v=o._granularity,C=o._ellipsoid,T=be.chordLength(v,C.maximumRadius),S=F(m)&&!x,w,E=f.length,L,I,R,P,A=0;if(y===qa.GEODESIC||y===qa.RHUMB){let N,k,U;y===qa.GEODESIC?(N=be.chordLength(v,C.maximumRadius),k=od.numberOfPoints,U=od.generateArc):(N=v,k=od.numberOfPointsRhumbLine,U=od.generateRhumbArc);let B=od.extractHeights(f,C),Y=qzi;if(y===qa.GEODESIC?Y.minDistance=T:Y.granularity=v,Y.ellipsoid=C,S){let J=0;for(w=0;w<E-1;w++)J+=k(f[w],f[w+1],N)+1;L=new Float64Array(J*3),R=new Uint8Array(J*4),Y.positions=xae,Y.height=gae;let K=0;for(w=0;w<E-1;++w){xae[0]=f[w],xae[1]=f[w+1],gae[0]=B[w],gae[1]=B[w+1];let z=U(Y);if(F(m)){let j=z.length/3;P=m[w];for(let q=0;q<j;++q)R[K++]=Xe.floatToByte(P.red),R[K++]=Xe.floatToByte(P.green),R[K++]=Xe.floatToByte(P.blue),R[K++]=Xe.floatToByte(P.alpha)}L.set(z,A),A+=z.length}}else if(Y.positions=f,Y.height=B,L=new Float64Array(U(Y)),F(m)){for(R=new Uint8Array(L.length/3*4),w=0;w<E-1;++w){let K=f[w],z=f[w+1],j=m[w],q=m[w+1];A=Qzi(K,z,j,q,T,R,A)}let J=m[E-1];R[A++]=Xe.floatToByte(J.red),R[A++]=Xe.floatToByte(J.green),R[A++]=Xe.floatToByte(J.blue),R[A++]=Xe.floatToByte(J.alpha)}}else{I=S?E*2-2:E,L=new Float64Array(I*3),R=F(m)?new Uint8Array(I*4):void 0;let N=0,k=0;for(w=0;w<E;++w){let U=f[w];if(S&&w>0&&(Z.pack(U,L,N),N+=3,P=m[w-1],R[k++]=Xe.floatToByte(P.red),R[k++]=Xe.floatToByte(P.green),R[k++]=Xe.floatToByte(P.blue),R[k++]=Xe.floatToByte(P.alpha)),S&&w===E-1)break;Z.pack(U,L,N),N+=3,F(m)&&(P=m[w],R[k++]=Xe.floatToByte(P.red),R[k++]=Xe.floatToByte(P.green),R[k++]=Xe.floatToByte(P.blue),R[k++]=Xe.floatToByte(P.alpha))}}let M=new Zc;M.position=new Xr({componentDatatype:Qt.DOUBLE,componentsPerAttribute:3,values:L}),F(m)&&(M.color=new Xr({componentDatatype:Qt.UNSIGNED_BYTE,componentsPerAttribute:4,values:R,normalize:!0})),I=L.length/3;let V=(I-1)*2,G=Fn.createTypedArray(I,V),D=0;for(w=0;w<I-1;++w)G[D++]=w,G[D++]=w+1;return new xa({attributes:M,indices:G,primitiveType:pn.LINES,boundingSphere:Ei.fromPoints(f)})};var sxt=I6;function qH(o){let f=o.radius??1,m={radii:new Z(f,f,f),stackPartitions:o.stackPartitions,slicePartitions:o.slicePartitions,vertexFormat:o.vertexFormat};this._ellipsoidGeometry=new Jm(m),this._workerName="createSphereGeometry"}qH.packedLength=Jm.packedLength;qH.pack=function(o,f,m){return Jm.pack(o._ellipsoidGeometry,f,m)};var $zi=new Jm,O5={radius:void 0,radii:new Z,vertexFormat:new Yr,stackPartitions:void 0,slicePartitions:void 0};qH.unpack=function(o,f,m){let x=Jm.unpack(o,f,$zi);return O5.vertexFormat=Yr.clone(x._vertexFormat,O5.vertexFormat),O5.stackPartitions=x._stackPartitions,O5.slicePartitions=x._slicePartitions,F(m)?(Z.clone(x._radii,O5.radii),m._ellipsoidGeometry=new Jm(O5),m):(O5.radius=x._radii.x,new qH(O5))};qH.createGeometry=function(o){return Jm.createGeometry(o._ellipsoidGeometry)};var lxt=qH;function nD(o){}Object.defineProperties(nD.prototype,{ellipsoid:{get:wt.throwInstantiationError},rectangle:{get:wt.throwInstantiationError},projection:{get:wt.throwInstantiationError}});nD.prototype.getNumberOfXTilesAtLevel=wt.throwInstantiationError;nD.prototype.getNumberOfYTilesAtLevel=wt.throwInstantiationError;nD.prototype.rectangleToNativeRectangle=wt.throwInstantiationError;nD.prototype.tileXYToNativeRectangle=wt.throwInstantiationError;nD.prototype.tileXYToRectangle=wt.throwInstantiationError;nD.prototype.positionToTileXY=wt.throwInstantiationError;var uxt=nD;function L9(o){o=o??si.EMPTY_OBJECT,this._clock=void 0,this._element=void 0,this._clockSubscription=void 0,this._seekFunction=void 0,this._lastPlaybackRate=void 0,this.clock=o.clock,this.element=o.element,this.epoch=o.epoch??wn.MINIMUM_VALUE,this.tolerance=o.tolerance??1,this._seeking=!1,this._seekFunction=void 0,this._firstTickAfterSeek=!1}Object.defineProperties(L9.prototype,{clock:{get:function(){return this._clock},set:function(o){let f=this._clock;f!==o&&(F(f)&&(this._clockSubscription(),this._clockSubscription=void 0),F(o)&&(this._clockSubscription=o.onTick.addEventListener(L9.prototype._onTick,this)),this._clock=o)}},element:{get:function(){return this._element},set:function(o){let f=this._element;f!==o&&(F(f)&&f.removeEventListener("seeked",this._seekFunction,!1),F(o)&&(this._seeking=!1,this._seekFunction=e4i(this),o.addEventListener("seeked",this._seekFunction,!1)),this._element=o,this._seeking=!1,this._firstTickAfterSeek=!1)}}});L9.prototype.destroy=function(){return this.element=void 0,this.clock=void 0,yr(this)};L9.prototype.isDestroyed=function(){return!1};L9.prototype._trySetPlaybackRate=function(o){if(this._lastPlaybackRate===o.multiplier)return;let f=this._element;try{f.playbackRate=o.multiplier}catch{f.playbackRate=0}this._lastPlaybackRate=o.multiplier};L9.prototype._onTick=function(o){let f=this._element;if(!F(f)||f.readyState<2)return;let m=f.paused,x=o.shouldAnimate;if(x===m&&(x?f.play():f.pause()),this._seeking||this._firstTickAfterSeek){this._firstTickAfterSeek=!1;return}this._trySetPlaybackRate(o);let y=o.currentTime,v=this.epoch??wn.MINIMUM_VALUE,C=$t.secondsDifference(y,v),T=f.duration,S,w=f.currentTime;f.loop?(C=C%T,C<0&&(C=T-C),S=C):C>T?S=T:C<0?S=0:S=C;let E=x?this.tolerance??1:.001;Math.abs(S-w)>E&&(this._seeking=!0,f.currentTime=S)};function e4i(o){return function(){o._seeking=!1,o._firstTickAfterSeek=!0}}var cxt=L9;function t4i(o,f){this.rectangle=o,this.maxLevel=f}function hxt(o){this.ellipsoid=o.ellipsoid??yi.default,this.tilingScheme=void 0,this.heightmapWidth=void 0,this.heightmapHeight=void 0,this.levelZeroMaximumGeometricError=void 0,this.rectangles=[]}hxt.prototype.build=function(o){o._tilingScheme=this.tilingScheme,o._heightmapWidth=this.heightmapWidth,o._heightmapHeight=this.heightmapHeight,o._levelZeroMaximumGeometricError=this.levelZeroMaximumGeometricError,o._rectangles=this.rectangles};function i4i(o,f){let m=f.getElementsByTagName("SRS")[0].textContent;if(m==="EPSG:4326")o.tilingScheme=new _h({ellipsoid:o.ellipsoid});else throw new Oi(`SRS ${m} is not supported`);let x=f.getElementsByTagName("TileFormat")[0];o.heightmapWidth=parseInt(x.getAttribute("width"),10),o.heightmapHeight=parseInt(x.getAttribute("height"),10),o.levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(o.ellipsoid,Math.min(o.heightmapWidth,o.heightmapHeight),o.tilingScheme.getNumberOfXTilesAtLevel(0));let y=f.getElementsByTagName("DataExtent");for(let v=0;v<y.length;++v){let C=y[v],T=be.toRadians(parseFloat(C.getAttribute("minx"))),S=be.toRadians(parseFloat(C.getAttribute("miny"))),w=be.toRadians(parseFloat(C.getAttribute("maxx"))),E=be.toRadians(parseFloat(C.getAttribute("maxy"))),L=parseInt(C.getAttribute("maxlevel"),10);o.rectangles.push(new t4i(new vi(T,S,w,E),L))}}function r4i(o,f,m){let x=`An error occurred while accessing ${o.url}`;throw F(f)&&F(f.message)&&(x=`${x}: ${f.message}`),am.reportError(void 0,m,F(m)?m._errorEvent:void 0,x),new Oi(x)}async function n4i(o,f,m){try{let x=await f.fetchXML();i4i(o,x)}catch(x){r4i(f,x,m)}}function bF(o){o=o??si.EMPTY_OBJECT,this._errorEvent=new Tr,this._terrainDataStructure={heightScale:1/1e3,heightOffset:-1e3,elementsPerHeight:3,stride:4,elementMultiplier:256,isBigEndian:!0,lowestEncodedHeight:0,highestEncodedHeight:256*256*256-1};let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._tilingScheme=void 0,this._rectangles=[]}Object.defineProperties(bF.prototype,{errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},tilingScheme:{get:function(){return this._tilingScheme}},hasWaterMask:{get:function(){return!1}},hasVertexNormals:{get:function(){return!1}},availability:{get:function(){}}});bF.fromUrl=async function(o,f){f=f??si.EMPTY_OBJECT;let m=new hxt(f),x=Mr.createIfNeeded(o);await n4i(m,x);let y=new bF(f);return m.build(y),y._resource=x,y};bF.prototype.requestTileGeometry=function(o,f,m,x){let y=this._tilingScheme.getNumberOfYTilesAtLevel(m),v=this._resource.getDerivedResource({url:`${m}/${o}/${y-f-1}.tif`,queryParameters:{cesium:!0},request:x}).fetchImage({preferImageBitmap:!0});if(!F(v))return;let C=this;return Promise.resolve(v).then(function(T){return new yL({buffer:BZ(T),width:C._heightmapWidth,height:C._heightmapHeight,childTileMask:o4i(C,o,f,m),structure:C._terrainDataStructure})})};bF.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)};var dxt=new vi;function o4i(o,f,m,x){let y=o._tilingScheme,v=o._rectangles,C=y.tileXYToRectangle(f,m,x),T=0;for(let S=0;S<v.length&&T!==15;++S){let w=v[S];if(w.maxLevel<=x)continue;let E=w.rectangle,L=vi.intersection(E,C,dxt);F(L)&&(foe(y,E,f*2,m*2,x+1)&&(T|=4),foe(y,E,f*2+1,m*2,x+1)&&(T|=8),foe(y,E,f*2,m*2+1,x+1)&&(T|=1),foe(y,E,f*2+1,m*2+1,x+1)&&(T|=2))}return T}function foe(o,f,m,x,y){let v=o.tileXYToRectangle(m,x,y);return F(vi.intersection(v,f,dxt))}bF.prototype.getTileDataAvailable=function(o,f,m){};bF.prototype.loadTileDataAvailability=function(o,f,m){};var pxt=bF,a4i={VK_FORMAT_UNDEFINED:0,VK_FORMAT_R4G4_UNORM_PACK8:1,VK_FORMAT_R4G4B4A4_UNORM_PACK16:2,VK_FORMAT_B4G4R4A4_UNORM_PACK16:3,VK_FORMAT_R5G6B5_UNORM_PACK16:4,VK_FORMAT_B5G6R5_UNORM_PACK16:5,VK_FORMAT_R5G5B5A1_UNORM_PACK16:6,VK_FORMAT_B5G5R5A1_UNORM_PACK16:7,VK_FORMAT_A1R5G5B5_UNORM_PACK16:8,VK_FORMAT_R8_UNORM:9,VK_FORMAT_R8_SNORM:10,VK_FORMAT_R8_USCALED:11,VK_FORMAT_R8_SSCALED:12,VK_FORMAT_R8_UINT:13,VK_FORMAT_R8_SINT:14,VK_FORMAT_R8_SRGB:15,VK_FORMAT_R8G8_UNORM:16,VK_FORMAT_R8G8_SNORM:17,VK_FORMAT_R8G8_USCALED:18,VK_FORMAT_R8G8_SSCALED:19,VK_FORMAT_R8G8_UINT:20,VK_FORMAT_R8G8_SINT:21,VK_FORMAT_R8G8_SRGB:22,VK_FORMAT_R8G8B8_UNORM:23,VK_FORMAT_R8G8B8_SNORM:24,VK_FORMAT_R8G8B8_USCALED:25,VK_FORMAT_R8G8B8_SSCALED:26,VK_FORMAT_R8G8B8_UINT:27,VK_FORMAT_R8G8B8_SINT:28,VK_FORMAT_R8G8B8_SRGB:29,VK_FORMAT_B8G8R8_UNORM:30,VK_FORMAT_B8G8R8_SNORM:31,VK_FORMAT_B8G8R8_USCALED:32,VK_FORMAT_B8G8R8_SSCALED:33,VK_FORMAT_B8G8R8_UINT:34,VK_FORMAT_B8G8R8_SINT:35,VK_FORMAT_B8G8R8_SRGB:36,VK_FORMAT_R8G8B8A8_UNORM:37,VK_FORMAT_R8G8B8A8_SNORM:38,VK_FORMAT_R8G8B8A8_USCALED:39,VK_FORMAT_R8G8B8A8_SSCALED:40,VK_FORMAT_R8G8B8A8_UINT:41,VK_FORMAT_R8G8B8A8_SINT:42,VK_FORMAT_R8G8B8A8_SRGB:43,VK_FORMAT_B8G8R8A8_UNORM:44,VK_FORMAT_B8G8R8A8_SNORM:45,VK_FORMAT_B8G8R8A8_USCALED:46,VK_FORMAT_B8G8R8A8_SSCALED:47,VK_FORMAT_B8G8R8A8_UINT:48,VK_FORMAT_B8G8R8A8_SINT:49,VK_FORMAT_B8G8R8A8_SRGB:50,VK_FORMAT_A8B8G8R8_UNORM_PACK32:51,VK_FORMAT_A8B8G8R8_SNORM_PACK32:52,VK_FORMAT_A8B8G8R8_USCALED_PACK32:53,VK_FORMAT_A8B8G8R8_SSCALED_PACK32:54,VK_FORMAT_A8B8G8R8_UINT_PACK32:55,VK_FORMAT_A8B8G8R8_SINT_PACK32:56,VK_FORMAT_A8B8G8R8_SRGB_PACK32:57,VK_FORMAT_A2R10G10B10_UNORM_PACK32:58,VK_FORMAT_A2R10G10B10_SNORM_PACK32:59,VK_FORMAT_A2R10G10B10_USCALED_PACK32:60,VK_FORMAT_A2R10G10B10_SSCALED_PACK32:61,VK_FORMAT_A2R10G10B10_UINT_PACK32:62,VK_FORMAT_A2R10G10B10_SINT_PACK32:63,VK_FORMAT_A2B10G10R10_UNORM_PACK32:64,VK_FORMAT_A2B10G10R10_SNORM_PACK32:65,VK_FORMAT_A2B10G10R10_USCALED_PACK32:66,VK_FORMAT_A2B10G10R10_SSCALED_PACK32:67,VK_FORMAT_A2B10G10R10_UINT_PACK32:68,VK_FORMAT_A2B10G10R10_SINT_PACK32:69,VK_FORMAT_R16_UNORM:70,VK_FORMAT_R16_SNORM:71,VK_FORMAT_R16_USCALED:72,VK_FORMAT_R16_SSCALED:73,VK_FORMAT_R16_UINT:74,VK_FORMAT_R16_SINT:75,VK_FORMAT_R16_SFLOAT:76,VK_FORMAT_R16G16_UNORM:77,VK_FORMAT_R16G16_SNORM:78,VK_FORMAT_R16G16_USCALED:79,VK_FORMAT_R16G16_SSCALED:80,VK_FORMAT_R16G16_UINT:81,VK_FORMAT_R16G16_SINT:82,VK_FORMAT_R16G16_SFLOAT:83,VK_FORMAT_R16G16B16_UNORM:84,VK_FORMAT_R16G16B16_SNORM:85,VK_FORMAT_R16G16B16_USCALED:86,VK_FORMAT_R16G16B16_SSCALED:87,VK_FORMAT_R16G16B16_UINT:88,VK_FORMAT_R16G16B16_SINT:89,VK_FORMAT_R16G16B16_SFLOAT:90,VK_FORMAT_R16G16B16A16_UNORM:91,VK_FORMAT_R16G16B16A16_SNORM:92,VK_FORMAT_R16G16B16A16_USCALED:93,VK_FORMAT_R16G16B16A16_SSCALED:94,VK_FORMAT_R16G16B16A16_UINT:95,VK_FORMAT_R16G16B16A16_SINT:96,VK_FORMAT_R16G16B16A16_SFLOAT:97,VK_FORMAT_R32_UINT:98,VK_FORMAT_R32_SINT:99,VK_FORMAT_R32_SFLOAT:100,VK_FORMAT_R32G32_UINT:101,VK_FORMAT_R32G32_SINT:102,VK_FORMAT_R32G32_SFLOAT:103,VK_FORMAT_R32G32B32_UINT:104,VK_FORMAT_R32G32B32_SINT:105,VK_FORMAT_R32G32B32_SFLOAT:106,VK_FORMAT_R32G32B32A32_UINT:107,VK_FORMAT_R32G32B32A32_SINT:108,VK_FORMAT_R32G32B32A32_SFLOAT:109,VK_FORMAT_R64_UINT:110,VK_FORMAT_R64_SINT:111,VK_FORMAT_R64_SFLOAT:112,VK_FORMAT_R64G64_UINT:113,VK_FORMAT_R64G64_SINT:114,VK_FORMAT_R64G64_SFLOAT:115,VK_FORMAT_R64G64B64_UINT:116,VK_FORMAT_R64G64B64_SINT:117,VK_FORMAT_R64G64B64_SFLOAT:118,VK_FORMAT_R64G64B64A64_UINT:119,VK_FORMAT_R64G64B64A64_SINT:120,VK_FORMAT_R64G64B64A64_SFLOAT:121,VK_FORMAT_B10G11R11_UFLOAT_PACK32:122,VK_FORMAT_E5B9G9R9_UFLOAT_PACK32:123,VK_FORMAT_D16_UNORM:124,VK_FORMAT_X8_D24_UNORM_PACK32:125,VK_FORMAT_D32_SFLOAT:126,VK_FORMAT_S8_UINT:127,VK_FORMAT_D16_UNORM_S8_UINT:128,VK_FORMAT_D24_UNORM_S8_UINT:129,VK_FORMAT_D32_SFLOAT_S8_UINT:130,VK_FORMAT_BC1_RGB_UNORM_BLOCK:131,VK_FORMAT_BC1_RGB_SRGB_BLOCK:132,VK_FORMAT_BC1_RGBA_UNORM_BLOCK:133,VK_FORMAT_BC1_RGBA_SRGB_BLOCK:134,VK_FORMAT_BC2_UNORM_BLOCK:135,VK_FORMAT_BC2_SRGB_BLOCK:136,VK_FORMAT_BC3_UNORM_BLOCK:137,VK_FORMAT_BC3_SRGB_BLOCK:138,VK_FORMAT_BC4_UNORM_BLOCK:139,VK_FORMAT_BC4_SNORM_BLOCK:140,VK_FORMAT_BC5_UNORM_BLOCK:141,VK_FORMAT_BC5_SNORM_BLOCK:142,VK_FORMAT_BC6H_UFLOAT_BLOCK:143,VK_FORMAT_BC6H_SFLOAT_BLOCK:144,VK_FORMAT_BC7_UNORM_BLOCK:145,VK_FORMAT_BC7_SRGB_BLOCK:146,VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK:147,VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK:148,VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK:149,VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK:150,VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK:151,VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK:152,VK_FORMAT_EAC_R11_UNORM_BLOCK:153,VK_FORMAT_EAC_R11_SNORM_BLOCK:154,VK_FORMAT_EAC_R11G11_UNORM_BLOCK:155,VK_FORMAT_EAC_R11G11_SNORM_BLOCK:156,VK_FORMAT_ASTC_4x4_UNORM_BLOCK:157,VK_FORMAT_ASTC_4x4_SRGB_BLOCK:158,VK_FORMAT_ASTC_5x4_UNORM_BLOCK:159,VK_FORMAT_ASTC_5x4_SRGB_BLOCK:160,VK_FORMAT_ASTC_5x5_UNORM_BLOCK:161,VK_FORMAT_ASTC_5x5_SRGB_BLOCK:162,VK_FORMAT_ASTC_6x5_UNORM_BLOCK:163,VK_FORMAT_ASTC_6x5_SRGB_BLOCK:164,VK_FORMAT_ASTC_6x6_UNORM_BLOCK:165,VK_FORMAT_ASTC_6x6_SRGB_BLOCK:166,VK_FORMAT_ASTC_8x5_UNORM_BLOCK:167,VK_FORMAT_ASTC_8x5_SRGB_BLOCK:168,VK_FORMAT_ASTC_8x6_UNORM_BLOCK:169,VK_FORMAT_ASTC_8x6_SRGB_BLOCK:170,VK_FORMAT_ASTC_8x8_UNORM_BLOCK:171,VK_FORMAT_ASTC_8x8_SRGB_BLOCK:172,VK_FORMAT_ASTC_10x5_UNORM_BLOCK:173,VK_FORMAT_ASTC_10x5_SRGB_BLOCK:174,VK_FORMAT_ASTC_10x6_UNORM_BLOCK:175,VK_FORMAT_ASTC_10x6_SRGB_BLOCK:176,VK_FORMAT_ASTC_10x8_UNORM_BLOCK:177,VK_FORMAT_ASTC_10x8_SRGB_BLOCK:178,VK_FORMAT_ASTC_10x10_UNORM_BLOCK:179,VK_FORMAT_ASTC_10x10_SRGB_BLOCK:180,VK_FORMAT_ASTC_12x10_UNORM_BLOCK:181,VK_FORMAT_ASTC_12x10_SRGB_BLOCK:182,VK_FORMAT_ASTC_12x12_UNORM_BLOCK:183,VK_FORMAT_ASTC_12x12_SRGB_BLOCK:184,VK_FORMAT_G8B8G8R8_422_UNORM:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM:1000156006,VK_FORMAT_R10X6_UNORM_PACK16:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16:1000156016,VK_FORMAT_R12X4_UNORM_PACK16:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM:1000156033,VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG:1000054e3,VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG:1000054001,VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG:1000054002,VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG:1000054003,VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG:1000054004,VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG:1000054005,VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG:1000054006,VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG:1000054007,VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT:1000066e3,VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT:1000066001,VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT:1000066002,VK_FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT:1000066003,VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT:1000066004,VK_FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT:1000066005,VK_FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT:1000066006,VK_FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT:1000066007,VK_FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT:1000066008,VK_FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT:1000066009,VK_FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT:1000066010,VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT:1000066011,VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT:1000066012,VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT:1000066013,VK_FORMAT_G8B8G8R8_422_UNORM_KHR:1000156e3,VK_FORMAT_B8G8R8G8_422_UNORM_KHR:1000156001,VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM_KHR:1000156002,VK_FORMAT_G8_B8R8_2PLANE_420_UNORM_KHR:1000156003,VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM_KHR:1000156004,VK_FORMAT_G8_B8R8_2PLANE_422_UNORM_KHR:1000156005,VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM_KHR:1000156006,VK_FORMAT_R10X6_UNORM_PACK16_KHR:1000156007,VK_FORMAT_R10X6G10X6_UNORM_2PACK16_KHR:1000156008,VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16_KHR:1000156009,VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16_KHR:1000156010,VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16_KHR:1000156011,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16_KHR:1000156012,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16_KHR:1000156013,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16_KHR:1000156014,VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16_KHR:1000156015,VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16_KHR:1000156016,VK_FORMAT_R12X4_UNORM_PACK16_KHR:1000156017,VK_FORMAT_R12X4G12X4_UNORM_2PACK16_KHR:1000156018,VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16_KHR:1000156019,VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16_KHR:1000156020,VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16_KHR:1000156021,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16_KHR:1000156022,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16_KHR:1000156023,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16_KHR:1000156024,VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16_KHR:1000156025,VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16_KHR:1000156026,VK_FORMAT_G16B16G16R16_422_UNORM_KHR:1000156027,VK_FORMAT_B16G16R16G16_422_UNORM_KHR:1000156028,VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM_KHR:1000156029,VK_FORMAT_G16_B16R16_2PLANE_420_UNORM_KHR:1000156030,VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM_KHR:1000156031,VK_FORMAT_G16_B16R16_2PLANE_422_UNORM_KHR:1000156032,VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM_KHR:1000156033},fxt=Object.freeze(a4i);function s4i(o){switch(o){case bi.FLOAT:return"float";case bi.FLOAT_VEC2:return"vec2";case bi.FLOAT_VEC3:return"vec3";case bi.FLOAT_VEC4:return"vec4";case bi.FLOAT_MAT2:return"mat2";case bi.FLOAT_MAT3:return"mat3";case bi.FLOAT_MAT4:return"mat4";case bi.SAMPLER_2D:return"sampler2D";case bi.BOOL:return"bool"}}var mxt=s4i;function l4i(o,f,m){return function(){m.apply(o,arguments),f.apply(o,arguments)}}var _Fe=l4i,u4i=function(){var o=import.meta.url;return function(f){return f=f||{},f.ready}}(),yae={};yae.onRuntimeInitialized||(yae.onRuntimeInitialized=function(){},u4i(yae));var xxt=yae,j8=k0(J$e(),1),gxt={};(function(o,f){o.FlowEcharts=f(j8.default,o.Geoworld)})(gxt,function(o,f){return function(m){var x={};function y(v){if(x[v])return x[v].exports;var C=x[v]={i:v,l:!1,exports:{}};return m[v].call(C.exports,C,C.exports,y),C.l=!0,C.exports}return y.m=m,y.c=x,y.d=function(v,C,T){y.o(v,C)||Object.defineProperty(v,C,{enumerable:!0,get:T})},y.r=function(v){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},y.t=function(v,C){if(C&1&&(v=y(v)),C&8||C&4&&typeof v=="object"&&v&&v.__esModule)return v;var T=Object.create(null);if(y.r(T),Object.defineProperty(T,"default",{enumerable:!0,value:v}),C&2&&typeof v!="string")for(var S in v)y.d(T,S,function(w){return v[w]}.bind(null,S));return T},y.n=function(v){var C=v&&v.__esModule?function(){return v.default}:function(){return v};return y.d(C,"a",C),C},y.o=function(v,C){return Object.prototype.hasOwnProperty.call(v,C)},y.p="",y(y.s=0)}([function(m,x,y){y(1);var v=y(7);m.exports=v},function(m,x,y){var v;v=function(C){return y(2).registerCoordinateSystem("GLMap",y(3)),y(5),y(6),y(2).registerAction({type:"GLMapRoam",event:"GLMapRoam",update:"updateLayout"},function(T,S){}),{version:"1.0.0"}}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){m.exports=o},function(m,x,y){var v;v=function(C){var T=y(2);function S(w,E){this._GLMap=w,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=E}return S.prototype.dimensions=["lng","lat"],S.prototype.setMapOffset=function(w){this._mapOffset=w},S.prototype.getBMap=function(){return this._GLMap},S.prototype.dataToPoint=function(w){var E=be.toRadians(80),L=[99999,99999],I=Z.fromDegrees(w[0],w[1]);if(!I)return L;var R=this._GLMap.cartesianToCanvasCoordinates(I);if(!R)return L;var P=this._GLMap;return P.mode===gi.SCENE3D&&Z.angleBetween(P.camera.position,I)>E?!1:[R.x-this._mapOffset[0],R.y-this._mapOffset[1]]},S.prototype.pointToData=function(L){var E=this._mapOffset,L=this._bmap.project([L[0]+E[0],L[1]+E[1]]);return[L.lng,L.lat]},S.prototype.getViewRect=function(){var w=this._api;return new T.graphic.BoundingRect(0,0,w.getWidth(),w.getHeight())},S.prototype.getRoamTransform=function(){return T.matrix.create()},S.dimensions=S.prototype.dimensions,S.create=function(w,E){var L;w.eachComponent("GLMap",function(I){var R=E.getZr().painter.getViewportRoot(),P=T.glMap;L=new S(P,E),L.setMapOffset(I.__mapOffset||[0,0]),I.coordinateSystem=L}),w.eachSeries(function(I){I.get("coordinateSystem")==="GLMap"&&(I.coordinateSystem=L)})},S}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){m.exports=f},function(m,x,y){var v;v=function(C){return y(2).extendComponentModel({type:"GLMap",getBMap:function(){return this.__GLMap},defaultOption:{roam:!1}})}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x,y){var v;v=function(C){return y(2).extendComponentView({type:"GLMap",init:function(T,S){this.api=S,j8.default.glMap.postRender.addEventListener(this.moveHandler,this)},moveHandler:function(){this.api.dispatchAction({type:"GLMapRoam"})},render:function(T,S,w){},dispose:function(T,S){j8.default.glMap.postRender.removeEventListener(this.moveHandler,this)}})}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){function y(v,C){this._mapContainer=v,this._overlay=this._createChartOverlay(),this._overlay.setOption(C)}y.prototype._createChartOverlay=function(){var v=this._mapContainer.scene;v.canvas.setAttribute("tabIndex",0);var C=document.createElement("div");return C.style.position="absolute",C.style.top=this._mapContainer.container.getBoundingClientRect().top+"px",C.style.left="0px",C.style.width=v.canvas.width+"px",C.style.height=v.canvas.height+"px",C.style.pointerEvents="none",C.setAttribute("id","echarts"),C.setAttribute("class","echartMap"),this._mapContainer.container.appendChild(C),this._echartsContainer=C,j8.default.glMap=v,j8.default.init(C)},y.prototype.dispose=function(){this._echartsContainer&&(this._mapContainer.container.removeChild(this._echartsContainer),this._echartsContainer=null),this._overlay&&(this._overlay.dispose(),this._overlay=null)},y.prototype.destroy=function(){this.dispose()},y.prototype.updateOverlay=function(v){this._overlay&&this._overlay.setOption(v)},y.prototype.getMap=function(){return this._mapContainer},y.prototype.getOverlay=function(){return this._overlay},m.exports=y}])});var Sde=gxt.FlowEcharts,c4i=new Z(1,1,1);function vFe(o){o=o??c4i,this._dimensions=Z.clone(o)}Object.defineProperties(vFe.prototype,{dimensions:{get:function(){return this._dimensions},set:function(o){Z.clone(o,this._dimensions)}}});var h4i=new Z;vFe.prototype.emit=function(o){let f=this._dimensions,m=Z.multiplyByScalar(f,.5,h4i),x=be.randomBetween(-m.x,m.x),y=be.randomBetween(-m.y,m.y),v=be.randomBetween(-m.z,m.z);o.position=Z.fromElements(x,y,v,o.position),o.velocity=Z.normalize(o.position,o.velocity)};var wde=vFe;function yR(){this.featurePropertiesDirty=!1}Object.defineProperties(yR.prototype,{featuresLength:{get:function(){wt.throwInstantiationError()}},pointsLength:{get:function(){wt.throwInstantiationError()}},trianglesLength:{get:function(){wt.throwInstantiationError()}},geometryByteLength:{get:function(){wt.throwInstantiationError()}},texturesByteLength:{get:function(){wt.throwInstantiationError()}},batchTableByteLength:{get:function(){wt.throwInstantiationError()}},innerContents:{get:function(){wt.throwInstantiationError()}},ready:{get:function(){wt.throwInstantiationError()}},tileset:{get:function(){wt.throwInstantiationError()}},tile:{get:function(){wt.throwInstantiationError()}},url:{get:function(){wt.throwInstantiationError()}},batchTable:{get:function(){wt.throwInstantiationError()}},metadata:{get:function(){wt.throwInstantiationError()},set:function(o){wt.throwInstantiationError()}},group:{get:function(){wt.throwInstantiationError()},set:function(o){wt.throwInstantiationError()}}});yR.prototype.hasProperty=function(o,f){wt.throwInstantiationError()};yR.prototype.getFeature=function(o){wt.throwInstantiationError()};yR.prototype.applyDebugSettings=function(o,f){wt.throwInstantiationError()};yR.prototype.applyStyle=function(o){wt.throwInstantiationError()};yR.prototype.update=function(o,f){wt.throwInstantiationError()};yR.prototype.pick=function(o,f,m){wt.throwInstantiationError()};yR.prototype.isDestroyed=function(){wt.throwInstantiationError()};yR.prototype.destroy=function(){wt.throwInstantiationError()};var yxt=yR;function i$(o){o=o??si.EMPTY_OBJECT,this._maximumSubtreeCount=o.maximumSubtreeCount??0,this._subtreeRequestCounter=0,this._queue=new Hhe({comparator:i$.comparator})}i$.prototype.addSubtree=function(o){let f=new d4i(o,this._subtreeRequestCounter);this._subtreeRequestCounter++,this._queue.insert(f);let m=o.implicitCoordinates;if(m.level>0){let x=m.getParentSubtreeCoordinates(),y=this.find(x)}if(this._maximumSubtreeCount>0)for(;this._queue.length>this._maximumSubtreeCount&&this._queue.getMinimum()!==f;)this._queue.removeMinimum()};i$.prototype.find=function(o){let f=this._queue,m=f.internalArray,x=f.length;for(let y=0;y<x;y++){let v=m[y],C=v.subtree.implicitCoordinates;if(o.isEqual(C))return v.subtree}};i$.comparator=function(o,f){let m=o.subtree.implicitCoordinates,x=f.subtree.implicitCoordinates;return m.isAncestor(x)?1:x.isAncestor(m)?-1:o.stamp-f.stamp};function d4i(o,f){this.subtree=o,this.stamp=f}var bFe=i$;function R6(o){o=o??si.EMPTY_OBJECT;let{className:f,names:m,types:x,componentTypes:y,shape:v,dimensions:C,paddingBefore:T=Z.ZERO.clone(),paddingAfter:S=Z.ZERO.clone(),globalTransform:w=Ee.IDENTITY.clone(),shapeTransform:E=Ee.IDENTITY.clone(),minBounds:L,maxBounds:I,minimumValues:R,maximumValues:P,maximumTileCount:A}=o;this._shapeTransform=E,this._globalTransform=w,this._shape=v,this._minBounds=L,this._maxBounds=I,this._dimensions=C,this._paddingBefore=T,this._paddingAfter=S,this._className=f,this._names=m,this._types=x,this._componentTypes=y,this._metadataOrder=v===Vb.ELLIPSOID?w9.Z_UP:w9.Y_UP,this._minimumValues=R,this._maximumValues=P,this._maximumTileCount=A,this._availableLevels=void 0,this._implicitTileset=void 0,this._subtreeCache=new bFe}Object.defineProperties(R6.prototype,{globalTransform:{get:function(){return this._globalTransform}},shapeTransform:{get:function(){return this._shapeTransform}},shape:{get:function(){return this._shape}},minBounds:{get:function(){return this._minBounds}},maxBounds:{get:function(){return this._maxBounds}},dimensions:{get:function(){return this._dimensions}},paddingBefore:{get:function(){return this._paddingBefore}},paddingAfter:{get:function(){return this._paddingAfter}},className:{get:function(){return this._className}},names:{get:function(){return this._names}},types:{get:function(){return this._types}},componentTypes:{get:function(){return this._componentTypes}},metadataOrder:{get:function(){return this._metadataOrder}},minimumValues:{get:function(){return this._minimumValues}},maximumValues:{get:function(){return this._maximumValues}},maximumTileCount:{get:function(){return this._maximumTileCount}},availableLevels:{get:function(){return this._availableLevels}}});R6.fromUrl=async function(o){let f=Mr.createIfNeeded(o),m=await f.fetchJson();f4i(m);let x=b4i(m,f);await x.load();let{root:y}=m,v=ld(m,"3DTILES_metadata")?m.extensions["3DTILES_metadata"]:m,C=new ahe({metadataJson:v,schema:x.schema}),T=y.content.extensions["3DTILES_content_voxels"],S=T.class,w=C4i(C,S);Object.assign(w,m4i(y)),F(y.transform)?w.globalTransform=Ee.unpack(y.transform):w.globalTransform=Ee.clone(Ee.IDENTITY),w.dimensions=Z.unpack(T.dimensions),w.maximumTileCount=p4i(C),F(T.padding)&&(w.paddingBefore=Z.unpack(T.padding.before),w.paddingAfter=Z.unpack(T.padding.after));let E=new R6(w),L=new uhe(f,y,x.schema);return E._implicitTileset=L,E._availableLevels=L.availableLevels,qh.unload(x),E};function p4i(o){if(F(o.tileset))return o.tileset.getPropertyBySemantic($ce.TILESET_TILE_COUNT)}function f4i(o){let f=o.root;if(!F(f.content))throw new Oi("Root must have content");if(!ld(f.content,"3DTILES_content_voxels"))throw new Oi("Root tile content must have 3DTILES_content_voxels extension");if(!ld(f,"3DTILES_implicit_tiling")&&!F(f.implicitTiling))throw new Oi("Root tile must have implicit tiling");if(!F(o.schema)&&!F(o.schemaUri)&&!ld(o,"3DTILES_metadata"))throw new Oi("Tileset must have a metadata schema")}function m4i(o){let f=o.boundingVolume;if(F(f.box))return _4i(f.box);if(F(f.region))return x4i(f.region);if(ld(f,"3DTILES_bounding_volume_cylinder"))return v4i(f.extensions["3DTILES_bounding_volume_cylinder"]);throw new Oi("Only box, region and 3DTILES_bounding_volume_cylinder are supported in Cesium3DTilesVoxelProvider")}function x4i(o){let f=o[0],m=o[1],x=o[2],y=o[3],v=o[4],C=o[5],T=Ee.fromScale(yi.WGS84.radii),S=new Z(f,m,v),w=new Z(x,y,C);return{shape:Vb.ELLIPSOID,minBounds:S,maxBounds:w,shapeTransform:T}}var g4i=new Z,y4i=new Ut;function _4i(o){let f=Tu.unpack(o),m=Ut.getScale(f.halfAxes,g4i),x=Ut.getRotation(f.halfAxes,y4i);return{shape:Vb.BOX,minBounds:Z.negate(m,new Z),maxBounds:Z.clone(m),shapeTransform:Ee.fromRotationTranslation(x,f.center)}}function v4i(o){let{minRadius:f,maxRadius:m,height:x,minAngle:y=-be.PI,maxAngle:v=be.PI,translation:C=[0,0,0],rotation:T=[0,0,0,1]}=o,S=-.5*x+C[2],w=.5*x+C[2],E=Ee.fromTranslationQuaternionRotationScale(Z.unpack(C),fr.unpack(T),Z.ONE);return{shape:Vb.CYLINDER,minBounds:Z.fromElements(f,y,S),maxBounds:Z.fromElements(m,v,w),shapeTransform:E}}function b4i(o,f){let{schemaUri:m,schema:x}=o;return F(m)?qh.getSchemaLoader({resource:f.getDerivedResource({url:m})}):qh.getSchemaLoader({schema:x})}function C4i(o,f){let{schema:m,statistics:x}=o,y=x?.classes[f],v=m.classes[f].properties,C=Object.entries(v).map(([R,P])=>{let{type:A,componentType:M}=P,V=y?.properties[R].min,G=y?.properties[R].max,D=fo.getComponentCount(A),N=T7e(V,D),k=T7e(G,D);return{id:R,type:A,componentType:M,minValue:N,maxValue:k}}),T=C.map(R=>R.id),S=C.map(R=>R.type),w=C.map(R=>R.componentType),E=C.map(R=>R.minValue),L=C.map(R=>R.maxValue),I=E.some(F);return{className:f,names:T,types:S,componentTypes:w,minimumValues:I?E:void 0,maximumValues:I?L:void 0}}function T7e(o,f){if(!F(o))return;let m=Array.isArray(o)?o:[o];return Array.from({length:f},(x,y)=>m[y])}async function T4i(o,f){let m=o._implicitTileset,x=o._subtreeCache,y=x.find(f);if(F(y))return y;let v=m.subtreeUriTemplate.getDerivedResource({templateValues:f.getTemplateValues()}),C=m.baseResource.getDerivedResource({url:v.url}),T=await C.fetchArrayBuffer();if(y=x.find(f),F(y))return y;let S=fq(T);return y=await qce.fromSubtreeJson(C,S.jsonPayload,S.binaryPayload,m,f),x.addSubtree(y),y}R6.prototype.requestData=async function(o){o=o??si.EMPTY_OBJECT;let{tileLevel:f=0,tileX:m=0,tileY:x=0,tileZ:y=0,keyframe:v=0}=o;if(v!==0)return Promise.reject("3D Tiles currently doesn't support time-dynamic data.");let C=this._implicitTileset,T=new che({subdivisionScheme:C.subdivisionScheme,subtreeLevels:C.subtreeLevels,level:f,x:m,y:x,z:y}),S=T.isSubtreeRoot()&&T.level>0,w=S?T.getParentSubtreeCoordinates():T.getSubtreeCoordinates(),E=await T4i(this,w);if(!(S?E.childSubtreeIsAvailableAtCoordinates:E.tileIsAvailableAtCoordinates).call(E,T))return Promise.reject(`Tile is not available at level ${f}, x ${m}, y ${x}, z ${y}.`);let{contentUriTemplates:L,baseResource:I}=C,R=L[0].getDerivedResource({templateValues:T.getTemplateValues()}),P=I.getDerivedResource({url:R.url});return Bhe.fromGltf(P)};var _xt=R6;function CFe(o){o=o??1,this._radius=o??1}Object.defineProperties(CFe.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});CFe.prototype.emit=function(o){let f=be.randomBetween(0,be.TWO_PI),m=be.randomBetween(0,this._radius),x=m*Math.cos(f),y=m*Math.sin(f),v=0;o.position=Z.fromElements(x,y,v,o.position),o.velocity=Z.clone(Z.UNIT_Z,o.velocity)};var TFe=CFe,U1e={CUMULUS:0};U1e.validate=function(o){return o===U1e.CUMULUS};var hle=Object.freeze(U1e);function SL(o,f){if(o=o??si.EMPTY_OBJECT,this._show=o.show??!0,this._position=Z.clone(o.position??Z.ZERO),!F(o.scale)&&F(o.maximumSize))this._maximumSize=Z.clone(o.maximumSize),this._scale=new rt(this._maximumSize.x,this._maximumSize.y);else{this._scale=rt.clone(o.scale??new rt(20,12));let m=new Z(this._scale.x,this._scale.y,Math.min(this._scale.x,this._scale.y)/1.5);this._maximumSize=Z.clone(o.maximumSize??m)}this._slice=o.slice??-1,this._color=Xe.clone(o.color??Xe.WHITE),this._brightness=o.brightness??1,this._cloudCollection=f,this._index=-1}var S4i=SL.SHOW_INDEX=0,w4i=SL.POSITION_INDEX=1,E4i=SL.SCALE_INDEX=2,L4i=SL.MAXIMUM_SIZE_INDEX=3,P4i=SL.SLICE_INDEX=4,I4i=SL.BRIGHTNESS_INDEX=5,R4i=SL.COLOR_INDEX=6;SL.NUMBER_OF_PROPERTIES=7;function eZ(o,f){let m=o._cloudCollection;F(m)&&(m._updateCloud(o,f),o._dirty=!0)}Object.defineProperties(SL.prototype,{show:{get:function(){return this._show},set:function(o){this._show!==o&&(this._show=o,eZ(this,S4i))}},position:{get:function(){return this._position},set:function(o){let f=this._position;Z.equals(f,o)||(Z.clone(o,f),eZ(this,w4i))}},scale:{get:function(){return this._scale},set:function(o){let f=this._scale;rt.equals(f,o)||(rt.clone(o,f),eZ(this,E4i))}},maximumSize:{get:function(){return this._maximumSize},set:function(o){let f=this._maximumSize;Z.equals(f,o)||(Z.clone(o,f),eZ(this,L4i))}},color:{get:function(){return this._color},set:function(o){let f=this._color;Xe.equals(f,o)||(Xe.clone(o,f),eZ(this,R4i))}},slice:{get:function(){return this._slice},set:function(o){this._slice!==o&&(this._slice=o,eZ(this,P4i))}},brightness:{get:function(){return this._brightness},set:function(o){this._brightness!==o&&(this._brightness=o,eZ(this,I4i))}}});SL.prototype._destroy=function(){this._cloudCollection=void 0};var wL=SL,$C,moe=new Z,A4i={positionHighAndScaleX:0,positionLowAndScaleY:1,packedAttribute0:2,packedAttribute1:3,color:4},M4i={direction:0,positionHighAndScaleX:1,positionLowAndScaleY:2,packedAttribute0:3,packedAttribute1:4,color:5},V4i=wL.SHOW_INDEX,G4i=wL.POSITION_INDEX,F4i=wL.SCALE_INDEX,D4i=wL.MAXIMUM_SIZE_INDEX,N4i=wL.SLICE_INDEX,W4i=wL.BRIGHTNESS_INDEX,Z4i=wL.NUMBER_OF_PROPERTIES,O4i=wL.COLOR_INDEX;function EL(o){o=o??si.EMPTY_OBJECT,this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!1,this._propertiesChanged=new Uint32Array(Z4i),this._noiseTexture=void 0,this._textureSliceWidth=128,this._noiseTextureRows=4,this.noiseDetail=o.noiseDetail??16,this.noiseOffset=Z.clone(o.noiseOffset??Z.ZERO),this._loading=!1,this._ready=!1;let f=this;this._uniforms={u_noiseTexture:function(){return f._noiseTexture},u_noiseTextureDimensions:vxt(f),u_noiseDetail:function(){return f.noiseDetail}},this._vaNoise=void 0,this._spNoise=void 0,this._spCreated=!1,this._sp=void 0,this._rs=void 0,this.show=o.show??!0,this._colorCommands=[],this.debugBillboards=o.debugBillboards??!1,this._compiledDebugBillboards=!1,this.debugEllipsoids=o.debugEllipsoids??!1,this._compiledDebugEllipsoids=!1}function vxt(o){return function(){return moe.x=o._textureSliceWidth,moe.y=o._noiseTextureRows,moe.z=1/o._noiseTextureRows,moe}}Object.defineProperties(EL.prototype,{length:{get:function(){return SFe(this),this._clouds.length}}});function bxt(o){let f=o.length;for(let m=0;m<f;++m)o[m]&&o[m]._destroy()}EL.prototype.add=function(o){o=o??si.EMPTY_OBJECT;let f=o.cloudType??hle.CUMULUS,m;return f===hle.CUMULUS&&(m=new wL(o,this),m._index=this._clouds.length,this._clouds.push(m),this._createVertexArray=!0),m};EL.prototype.remove=function(o){return this.contains(o)?(this._clouds[o._index]=void 0,this._cloudsRemoved=!0,this._createVertexArray=!0,o._destroy(),!0):!1};EL.prototype.removeAll=function(){bxt(this._clouds),this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!0};function SFe(o){if(o._cloudsRemoved){o._cloudsRemoved=!1;let f=[],m=o._clouds,x=m.length;for(let y=0,v=0;y<x;++y){let C=m[y];F(C)&&(m._index=v++,f.push(C))}o._clouds=f}}EL.prototype._updateCloud=function(o,f){o._dirty||(this._cloudsToUpdate[this._cloudsToUpdateIndex++]=o),++this._propertiesChanged[f]};EL.prototype.contains=function(o){return F(o)&&o._cloudCollection===this};EL.prototype.get=function(o){return SFe(this),this._clouds[o]};var X4i=new Float32Array([-1,-1,1,-1,1,1,-1,1]),k4i=new Uint16Array([0,1,2,0,2,3]);function U4i(o){let f=mo.createVertexBuffer({context:o,typedArray:X4i,usage:rn.STATIC_DRAW}),m=mo.createIndexBuffer({context:o,typedArray:k4i,usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),x=[{index:0,vertexBuffer:f,componentsPerAttribute:2,componentDatatype:Qt.FLOAT}];return new Cu({context:o,attributes:x,indexBuffer:m})}var wFe;function B4i(o){let f=o.cache.cloudCollection_indexBufferBatched;if(F(f))return f;let m=16384*6-6,x=new Uint16Array(m);for(let y=0,v=0;y<m;y+=6,v+=4)x[y]=v,x[y+1]=v+1,x[y+2]=v+2,x[y+3]=v,x[y+4]=v+2,x[y+5]=v+3;return f=mo.createIndexBuffer({context:o,typedArray:x,usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferBatched=f,f}function H4i(o){let f=o.cache.cloudCollection_indexBufferInstanced;return F(f)||(f=mo.createIndexBuffer({context:o,typedArray:new Uint16Array([0,1,2,0,2,3]),usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferInstanced=f),f}function z4i(o){let f=o.cache.cloudCollection_vertexBufferInstanced;return F(f)||(f=mo.createVertexBuffer({context:o,typedArray:new Float32Array([0,0,1,0,1,1,0,1]),usage:rn.STATIC_DRAW}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_vertexBufferInstanced=f),f}function Y4i(o,f,m){let x=[{index:$C.positionHighAndScaleX,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.positionLowAndScaleY,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.packedAttribute0,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.packedAttribute1,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.color,componentsPerAttribute:4,componentDatatype:Qt.UNSIGNED_BYTE,normalize:!0,usage:rn.STATIC_DRAW}];m&&x.push({index:$C.direction,componentsPerAttribute:2,componentDatatype:Qt.FLOAT,vertexBuffer:z4i(o)});let y=m?f:4*f;return new o7(o,x,y,m)}var Uve=new $u;function Cxt(o,f,m,x){let y,v=m[$C.positionHighAndScaleX],C=m[$C.positionLowAndScaleY],T=x.position;$u.fromCartesian(T,Uve);let S=x.scale,w=Uve.high,E=Uve.low;o._instanced?(y=x._index,v(y,w.x,w.y,w.z,S.x),C(y,E.x,E.y,E.z,S.y)):(y=x._index*4,v(y+0,w.x,w.y,w.z,S.x),v(y+1,w.x,w.y,w.z,S.x),v(y+2,w.x,w.y,w.z,S.x),v(y+3,w.x,w.y,w.z,S.x),C(y+0,E.x,E.y,E.z,S.y),C(y+1,E.x,E.y,E.z,S.y),C(y+2,E.x,E.y,E.z,S.y),C(y+3,E.x,E.y,E.z,S.y))}function Txt(o,f,m,x){let y,v=m[$C.packedAttribute0],C=x.show,T=x.brightness;o._instanced?(y=x._index,v(y,C,T,0,0)):(y=x._index*4,v(y+0,C,T,0,0),v(y+1,C,T,1,0),v(y+2,C,T,1,1),v(y+3,C,T,0,1))}function Sxt(o,f,m,x){let y,v=m[$C.packedAttribute1],C=x.maximumSize,T=x.slice;o._instanced?(y=x._index,v(y,C.x,C.y,C.z,T)):(y=x._index*4,v(y+0,C.x,C.y,C.z,T),v(y+1,C.x,C.y,C.z,T),v(y+2,C.x,C.y,C.z,T),v(y+3,C.x,C.y,C.z,T))}function wxt(o,f,m,x){let y,v=m[$C.color],C=x.color,T=Xe.floatToByte(C.red),S=Xe.floatToByte(C.green),w=Xe.floatToByte(C.blue),E=Xe.floatToByte(C.alpha);o._instanced?(y=x._index,v(y,T,S,w,E)):(y=x._index*4,v(y+0,T,S,w,E),v(y+1,T,S,w,E),v(y+2,T,S,w,E),v(y+3,T,S,w,E))}function K4i(o,f,m,x){Cxt(o,f,m,x),Txt(o,f,m,x),Sxt(o,f,m,x),wxt(o,f,m,x)}function J4i(o,f,m,x){let y=o,v=y._textureSliceWidth,C=y._noiseTextureRows,T=f.context;y._vaNoise=U4i(T),y._spNoise=xs.fromCache({context:T,vertexShaderSource:m,fragmentShaderSource:x,attributeLocations:{position:0}});let S=y.noiseDetail,w=y.noiseOffset;y._noiseTexture=new Rn({context:T,width:v*v/C,height:v*C,pixelDatatype:un.UNSIGNED_BYTE,pixelFormat:zr.RGBA,sampler:new Yo({wrapS:Xn.REPEAT,wrapT:Xn.REPEAT,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})});let E=new cV({vertexArray:y._vaNoise,shaderProgram:y._spNoise,outputTexture:y._noiseTexture,uniformMap:{u_noiseTextureDimensions:vxt(y),u_noiseDetail:function(){return S},u_noiseOffset:function(){return w}},persists:!1,owner:o,postExecute:function(L){y._ready=!0,y._loading=!1}});f.commandList.push(E),y._loading=!0}function j4i(o,f){let m=o,x=f.context;m._createVertexArray=!1,m._vaf=m._vaf&&m._vaf.destroy();let y=o._clouds,v=y.length;if(v>0){m._vaf=Y4i(x,v,m._instanced);let C=m._vaf.writers,T;for(T=0;T<v;++T){let S=y[T];K4i(o,f,C,S)}m._vaf.commit(wFe(x))}}var Q4i=[];function q4i(o,f){let m=f.context,x=o,y=x._clouds.length,v=x._cloudsToUpdate,C=x._cloudsToUpdateIndex,T=x._propertiesChanged,S=Q4i;S.length=0,(T[G4i]||T[F4i])&&S.push(Cxt),(T[V4i]||T[W4i])&&S.push(Txt),(T[D4i]||T[N4i])&&S.push(Sxt),T[O4i]&&S.push(wxt);let w=S.length,E=x._vaf.writers,L,I,R;if(C/y>.1){for(L=0;L<C;++L)for(I=v[L],I._dirty=!1,R=0;R<w;++R)S[R](o,f,E,I);x._vaf.commit(wFe(m))}else{for(L=0;L<C;++L){for(I=v[L],I._dirty=!1,R=0;R<w;++R)S[R](o,f,E,I);x._instanced?x._vaf.subCommit(I._index,1):x._vaf.subCommit(I._index*4,4)}x._vaf.endSubCommits()}x._cloudsToUpdateIndex=0}function $4i(o,f,m,x){let y=f.context,v=o,C=new Wr({defines:[],sources:[m]});v._instanced&&C.defines.push("INSTANCED");let T=new Wr({defines:[],sources:[x]});v.debugBillboards&&T.defines.push("DEBUG_BILLBOARDS"),v.debugEllipsoids&&T.defines.push("DEBUG_ELLIPSOIDS"),v._sp=xs.replaceCache({context:y,shaderProgram:v._sp,vertexShaderSource:C,fragmentShaderSource:T,attributeLocations:$C}),v._rs=cn.fromCache({depthTest:{enabled:!0,func:bi.LESS},depthMask:!1,blending:ru.ALPHA_BLEND}),v._spCreated=!0,v._compiledDebugBillboards=v.debugBillboards,v._compiledDebugEllipsoids=v.debugEllipsoids}function eYi(o,f){let m=o,x=f.passes,y=m._uniforms,v=f.commandList;if(x.render){let C=m._colorCommands,T=m._vaf.va,S=T.length;C.length=S;for(let w=0;w<S;w++){let E=C[w];F(E)||(E=C[w]=new En),E.pass=xr.TRANSLUCENT,E.owner=o,E.uniformMap=y,E.count=T[w].indicesCount,E.vertexArray=T[w].va,E.shaderProgram=m._sp,E.renderState=m._rs,m._instanced&&(E.count=6,E.instanceCount=m._clouds.length),v.push(E)}}}EL.prototype.update=function(o){if(SFe(this),!this.show)return;let f=this.debugBillboards||this.debugEllipsoids;this._ready=f?!0:F(this._noiseTexture),!this._ready&&!this._loading&&!f&&J4i(this,o,iFe,tFe),this._instanced=o.context.instancedArrays,$C=this._instanced?M4i:A4i,wFe=this._instanced?H4i:B4i;let m=this._clouds.length,x=this._cloudsToUpdate,y=this._cloudsToUpdateIndex;this._createVertexArray?j4i(this,o):y>0&&q4i(this,o),y>m*1.5&&(x.length=m),!(!F(this._vaf)||!F(this._vaf.va)||!this._ready&!f)&&((!this._spCreated||this.debugBillboards!==this._compiledDebugBillboards||this.debugEllipsoids!==this._compiledDebugEllipsoids)&&$4i(this,o,eFe,$Ge),eYi(this,o))};EL.prototype.isDestroyed=function(){return!1};EL.prototype.destroy=function(){return this._noiseTexture=this._noiseTexture&&this._noiseTexture.destroy(),this._sp=this._sp&&this._sp.destroy(),this._vaf=this._vaf&&this._vaf.destroy(),bxt(this._clouds),yr(this)};var Ext=EL,tYi=be.toRadians(30);function EFe(o){this._angle=o??tYi}Object.defineProperties(EFe.prototype,{angle:{get:function(){return this._angle},set:function(o){this._angle=o}}});EFe.prototype.emit=function(o){let f=Math.tan(this._angle),m=be.randomBetween(0,be.TWO_PI),x=be.randomBetween(0,f),y=x*Math.cos(m),v=x*Math.sin(m),C=1;o.velocity=Z.fromElements(y,v,C,o.velocity),Z.normalize(o.velocity,o.velocity),o.position=Z.clone(Z.ZERO,o.position)};var X4=EFe,iYi=new Xe,rYi=new Xe,nYi=new Xe,oYi=new Xe,S7e=new zt,Q8=new Uint8Array(4);function w7e(o,f,m,x){let y=f.height===m.height?0:(o-f.height)/(m.height-f.height);return Xe.lerp(f.color,m.color,y,x)}function _ae(o,f){return{height:o,color:Xe.clone(f)}}function Lxt(o){return o=o.filter(function(f,m,x){let y=m>0,v=m<x.length-1,C=y?f.height===x[m-1].height:!0,T=v?f.height===x[m+1].height:!0;return!C||!T}),o=o.filter(function(f,m,x){let y=m>0,v=m<x.length-1,C=y?Xe.equals(f.color,x[m-1].color):!1,T=v?Xe.equals(f.color,x[m+1].color):!1;return!C||!T}),o=o.filter(function(f,m,x){let y=m>0,v=y?Xe.equals(f.color,x[m-1].color):!1,C=y?f.height===x[m-1].height:!0;return!v||!C}),o}function aYi(o){let f,m,x=[],y=o.length;for(f=0;f<y;f++){let v=o[f],C=v.entries,T=C.length,S=[];for(m=0;m<T;m++){let R=C[m],P=be.clamp(R.height,Rb._minimumHeight,Rb._maximumHeight),A=Xe.clone(R.color,iYi);A.red*=A.alpha,A.green*=A.alpha,A.blue*=A.alpha,S.push(_ae(P,A))}let w=!0,E=!0;for(m=0;m<T-1;m++){let R=S[m+0],P=S[m+1];w=w&&R.height<=P.height,E=E&&R.height>=P.height}E?S=S.reverse():w||b4(S,function(R,P){return be.sign(R.height-P.height)});let L=v.extendDownwards??!1,I=v.extendUpwards??!1;S.length===1&&!L&&!I&&(L=!0,I=!0),L&&S.splice(0,0,_ae(Rb._minimumHeight,S[0].color)),I&&S.splice(S.length,0,_ae(Rb._maximumHeight,S[S.length-1].color)),S=Lxt(S),x.push(S)}return x}function sYi(o){let f=aYi(o),m=[],x=[],y;function v(S,w){m.push(_ae(S,w))}function C(S,w,E){let L=Xe.multiplyByScalar(E,1-w.alpha,oYi);L=Xe.add(L,w,L),v(S,L)}let T=f.length;for(y=0;y<T;y++){let S=f[y],w=0,E=0;x=m,m=[];let L=S.length,I=x.length;for(;w<L||E<I;){let R=w<L?S[w]:void 0,P=w>0?S[w-1]:void 0,A=w<L-1?S[w+1]:void 0,M=E<I?x[E]:void 0,V=E>0?x[E-1]:void 0,G=E<I-1?x[E+1]:void 0;if(F(R)&&F(M)&&R.height===M.height){let D=F(G)&&M.height===G.height,N=!F(V),k=!F(G),U=F(A)&&R.height===A.height,B=!F(P),Y=!F(A);D?U?(C(R.height,R.color,M.color),C(R.height,A.color,G.color)):B?(v(R.height,M.color),C(R.height,R.color,G.color)):Y?(C(R.height,R.color,M.color),v(R.height,G.color)):(C(R.height,R.color,M.color),C(R.height,R.color,G.color)):N?U?(v(R.height,R.color),C(R.height,A.color,M.color)):Y?(v(R.height,R.color),v(R.height,M.color)):(B||v(R.height,R.color),C(R.height,R.color,M.color)):k?U?(C(R.height,R.color,M.color),v(R.height,A.color)):B?(v(R.height,M.color),v(R.height,R.color)):Y?C(R.height,R.color,M.color):(C(R.height,R.color,M.color),v(R.height,R.color)):U?(C(R.height,R.color,M.color),C(R.height,A.color,M.color)):B?(v(R.height,M.color),C(R.height,R.color,M.color)):Y?(C(R.height,R.color,M.color),v(R.height,M.color)):C(R.height,R.color,M.color),w+=U?2:1,E+=D?2:1}else if(F(R)&&F(M)&&F(V)&&R.height<M.height){let D=w7e(R.height,V,M,nYi);F(P)?F(A)?C(R.height,R.color,D):(C(R.height,R.color,D),v(R.height,D)):(v(R.height,D),C(R.height,R.color,D)),w++}else if(F(M)&&F(R)&&F(P)&&M.height<R.height){let D=w7e(M.height,P,R,rYi);F(V)?F(G)?C(M.height,D,M.color):(C(M.height,D,M.color),v(M.height,D)):(v(M.height,D),C(M.height,D,M.color)),E++}else F(R)&&(!F(M)||R.height<M.height)?(F(M)&&!F(V)&&!F(A)?(v(R.height,R.color),v(R.height,Rb._emptyColor),v(M.height,Rb._emptyColor)):(!F(M)&&F(V)&&!F(P)&&(v(V.height,Rb._emptyColor),v(R.height,Rb._emptyColor)),v(R.height,R.color)),w++):F(M)&&(!F(R)||M.height<R.height)&&(v(M.height,M.color),E++)}}return Lxt(m)}function Rb(o){let{scene:f,layers:m}=o??si.EMPTY_OBJECT,{context:x}=f,y=sYi(m),v=y.length,C,T,S;if(Rb._useFloatTexture(x)){T=un.FLOAT,S=x.webgl2?zr.RED:zr.LUMINANCE,C=new Float32Array(v);for(let I=0;I<v;I++)C[I]=y[I].height}else{T=un.UNSIGNED_BYTE,S=zr.RGBA,C=new Uint8Array(v*4);for(let I=0;I<v;I++)zt.packFloat(y[I].height,S7e),zt.pack(S7e,C,I*4)}let w=Rn.create({context:x,pixelFormat:S,pixelDatatype:T,source:{arrayBufferView:C,width:v,height:1},sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})}),E=new Uint8Array(v*4);for(let I=0;I<v;I++)y[I].color.toBytes(Q8),E[I*4+0]=Q8[0],E[I*4+1]=Q8[1],E[I*4+2]=Q8[2],E[I*4+3]=Q8[3];let L=Rn.create({context:x,pixelFormat:zr.RGBA,pixelDatatype:un.UNSIGNED_BYTE,source:{arrayBufferView:E,width:v,height:1},sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})});return Co.fromType("ElevationBand",{heights:w,colors:L})}Rb._useFloatTexture=function(o){return o.floatingPointTexture};Rb._maximumHeight=5906376425472;Rb._minimumHeight=-5906376425472;Rb._emptyColor=new Xe(0,0,0,0);var Pxt=Rb;async function lYi(o,f){f=f??{},f.cacheBytes=f.cacheBytes??1536*1024*1024,f.maximumCacheOverflowBytes=f.maximumCacheOverflowBytes??1024*1024*1024,f.enableCollision=f.enableCollision??!0,o=o??si.EMPTY_OBJECT,o.onlyUsingWithGoogleGeocoder||aa("google-tiles-with-google-geocoder","Only the Google geocoder can be used with Google Photorealistic 3D Tiles.  Set the `geocode` property of Viewer constructor options.  You can set additionalOptions.onlyUsingWithGoogleGeocoder to hide this warning once you have configured the geocoder.");let m=o.key??hQ.defaultApiKey;if(!F(m))return uYi(f);let x,y=hQ.getDefaultCredit();F(y)&&(x=[y]);let v=new Mr({url:`${hQ.mapTilesApiEndpoint}3dtiles/root.json`,queryParameters:{key:m},credits:x});return _0.fromUrl(v,f)}var E7e={};async function uYi(o){let f=E7e[2275207];F(f)||(f=FG.fromAssetId(2275207),E7e[2275207]=f);let m=await f;return _0.fromUrl(m,o)}var Ixt=lYi;async function cYi(o){let f=await _0.fromIonAssetId(96188,o);o=o??si.EMPTY_OBJECT;let m=o.style;if(!F(m)){let x=(o.defaultColor??Xe.WHITE).toCssColorString();m=new ZS({color:`Boolean(\${feature['cesium#color']}) ? color(\${feature['cesium#color']}) : ${x}`})}return f.style=m,f}var Rxt=cYi;function hYi(o){o=o??si.EMPTY_OBJECT;let f=[],m=o.geometry;(!F(m.attributes)||!F(m.primitiveType))&&(m=m.constructor.createGeometry(m));let x=m.attributes,y=Ee.clone(o.modelMatrix??Ee.IDENTITY),v=o.length??1e4;if(F(x.normal)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"normal",v),attributes:{color:new yo(1,0,0,1)},modelMatrix:y})),F(x.tangent)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"tangent",v),attributes:{color:new yo(0,1,0,1)},modelMatrix:y})),F(x.bitangent)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"bitangent",v),attributes:{color:new yo(0,0,1,1)},modelMatrix:y})),f.length>0)return new ta({asynchronous:!1,geometryInstances:f,appearance:new ga({flat:!0,translucent:!1})})}var Axt=hYi;function r$(o){o=o??si.EMPTY_OBJECT;let f=o.attributeName,m=o.perInstanceAttribute;F(m)||(m=!1);let x=o.glslDatatype??"vec3",y=`v_${f}`,v;if(f==="normal"||f==="tangent"||f==="bitangent")v=`vec4 getColor() { return vec4((${y} + vec3(1.0)) * 0.5, 1.0); }
`,u4i=new Z(1,1,1);function vFe(o){o=o??u4i,this._dimensions=Z.clone(o)}Object.defineProperties(vFe.prototype,{dimensions:{get:function(){return this._dimensions},set:function(o){Z.clone(o,this._dimensions)}}});var c4i=new Z;vFe.prototype.emit=function(o){let f=this._dimensions,m=Z.multiplyByScalar(f,.5,c4i),x=be.randomBetween(-m.x,m.x),y=be.randomBetween(-m.y,m.y),v=be.randomBetween(-m.z,m.z);o.position=Z.fromElements(x,y,v,o.position),o.velocity=Z.normalize(o.position,o.velocity)};var Sde=vFe;function yR(){this.featurePropertiesDirty=!1}Object.defineProperties(yR.prototype,{featuresLength:{get:function(){wt.throwInstantiationError()}},pointsLength:{get:function(){wt.throwInstantiationError()}},trianglesLength:{get:function(){wt.throwInstantiationError()}},geometryByteLength:{get:function(){wt.throwInstantiationError()}},texturesByteLength:{get:function(){wt.throwInstantiationError()}},batchTableByteLength:{get:function(){wt.throwInstantiationError()}},innerContents:{get:function(){wt.throwInstantiationError()}},ready:{get:function(){wt.throwInstantiationError()}},tileset:{get:function(){wt.throwInstantiationError()}},tile:{get:function(){wt.throwInstantiationError()}},url:{get:function(){wt.throwInstantiationError()}},batchTable:{get:function(){wt.throwInstantiationError()}},metadata:{get:function(){wt.throwInstantiationError()},set:function(o){wt.throwInstantiationError()}},group:{get:function(){wt.throwInstantiationError()},set:function(o){wt.throwInstantiationError()}}});yR.prototype.hasProperty=function(o,f){wt.throwInstantiationError()};yR.prototype.getFeature=function(o){wt.throwInstantiationError()};yR.prototype.applyDebugSettings=function(o,f){wt.throwInstantiationError()};yR.prototype.applyStyle=function(o){wt.throwInstantiationError()};yR.prototype.update=function(o,f){wt.throwInstantiationError()};yR.prototype.pick=function(o,f,m){wt.throwInstantiationError()};yR.prototype.isDestroyed=function(){wt.throwInstantiationError()};yR.prototype.destroy=function(){wt.throwInstantiationError()};var xxt=yR;function i$(o){o=o??si.EMPTY_OBJECT,this._maximumSubtreeCount=o.maximumSubtreeCount??0,this._subtreeRequestCounter=0,this._queue=new Hhe({comparator:i$.comparator})}i$.prototype.addSubtree=function(o){let f=new h4i(o,this._subtreeRequestCounter);this._subtreeRequestCounter++,this._queue.insert(f);let m=o.implicitCoordinates;if(m.level>0){let x=m.getParentSubtreeCoordinates(),y=this.find(x)}if(this._maximumSubtreeCount>0)for(;this._queue.length>this._maximumSubtreeCount&&this._queue.getMinimum()!==f;)this._queue.removeMinimum()};i$.prototype.find=function(o){let f=this._queue,m=f.internalArray,x=f.length;for(let y=0;y<x;y++){let v=m[y],C=v.subtree.implicitCoordinates;if(o.isEqual(C))return v.subtree}};i$.comparator=function(o,f){let m=o.subtree.implicitCoordinates,x=f.subtree.implicitCoordinates;return m.isAncestor(x)?1:x.isAncestor(m)?-1:o.stamp-f.stamp};function h4i(o,f){this.subtree=o,this.stamp=f}var bFe=i$;function R6(o){o=o??si.EMPTY_OBJECT;let{className:f,names:m,types:x,componentTypes:y,shape:v,dimensions:C,paddingBefore:T=Z.ZERO.clone(),paddingAfter:S=Z.ZERO.clone(),globalTransform:w=Ee.IDENTITY.clone(),shapeTransform:E=Ee.IDENTITY.clone(),minBounds:L,maxBounds:I,minimumValues:R,maximumValues:P,maximumTileCount:A}=o;this._shapeTransform=E,this._globalTransform=w,this._shape=v,this._minBounds=L,this._maxBounds=I,this._dimensions=C,this._paddingBefore=T,this._paddingAfter=S,this._className=f,this._names=m,this._types=x,this._componentTypes=y,this._metadataOrder=v===Vb.ELLIPSOID?w9.Z_UP:w9.Y_UP,this._minimumValues=R,this._maximumValues=P,this._maximumTileCount=A,this._availableLevels=void 0,this._implicitTileset=void 0,this._subtreeCache=new bFe}Object.defineProperties(R6.prototype,{globalTransform:{get:function(){return this._globalTransform}},shapeTransform:{get:function(){return this._shapeTransform}},shape:{get:function(){return this._shape}},minBounds:{get:function(){return this._minBounds}},maxBounds:{get:function(){return this._maxBounds}},dimensions:{get:function(){return this._dimensions}},paddingBefore:{get:function(){return this._paddingBefore}},paddingAfter:{get:function(){return this._paddingAfter}},className:{get:function(){return this._className}},names:{get:function(){return this._names}},types:{get:function(){return this._types}},componentTypes:{get:function(){return this._componentTypes}},metadataOrder:{get:function(){return this._metadataOrder}},minimumValues:{get:function(){return this._minimumValues}},maximumValues:{get:function(){return this._maximumValues}},maximumTileCount:{get:function(){return this._maximumTileCount}},availableLevels:{get:function(){return this._availableLevels}}});R6.fromUrl=async function(o){let f=Mr.createIfNeeded(o),m=await f.fetchJson();p4i(m);let x=v4i(m,f);await x.load();let{root:y}=m,v=ld(m,"3DTILES_metadata")?m.extensions["3DTILES_metadata"]:m,C=new ahe({metadataJson:v,schema:x.schema}),T=y.content.extensions["3DTILES_content_voxels"],S=T.class,w=b4i(C,S);Object.assign(w,f4i(y)),F(y.transform)?w.globalTransform=Ee.unpack(y.transform):w.globalTransform=Ee.clone(Ee.IDENTITY),w.dimensions=Z.unpack(T.dimensions),w.maximumTileCount=d4i(C),F(T.padding)&&(w.paddingBefore=Z.unpack(T.padding.before),w.paddingAfter=Z.unpack(T.padding.after));let E=new R6(w),L=new uhe(f,y,x.schema);return E._implicitTileset=L,E._availableLevels=L.availableLevels,qh.unload(x),E};function d4i(o){if(F(o.tileset))return o.tileset.getPropertyBySemantic($ce.TILESET_TILE_COUNT)}function p4i(o){let f=o.root;if(!F(f.content))throw new Oi("Root must have content");if(!ld(f.content,"3DTILES_content_voxels"))throw new Oi("Root tile content must have 3DTILES_content_voxels extension");if(!ld(f,"3DTILES_implicit_tiling")&&!F(f.implicitTiling))throw new Oi("Root tile must have implicit tiling");if(!F(o.schema)&&!F(o.schemaUri)&&!ld(o,"3DTILES_metadata"))throw new Oi("Tileset must have a metadata schema")}function f4i(o){let f=o.boundingVolume;if(F(f.box))return y4i(f.box);if(F(f.region))return m4i(f.region);if(ld(f,"3DTILES_bounding_volume_cylinder"))return _4i(f.extensions["3DTILES_bounding_volume_cylinder"]);throw new Oi("Only box, region and 3DTILES_bounding_volume_cylinder are supported in Cesium3DTilesVoxelProvider")}function m4i(o){let f=o[0],m=o[1],x=o[2],y=o[3],v=o[4],C=o[5],T=Ee.fromScale(yi.WGS84.radii),S=new Z(f,m,v),w=new Z(x,y,C);return{shape:Vb.ELLIPSOID,minBounds:S,maxBounds:w,shapeTransform:T}}var x4i=new Z,g4i=new Ut;function y4i(o){let f=Tu.unpack(o),m=Ut.getScale(f.halfAxes,x4i),x=Ut.getRotation(f.halfAxes,g4i);return{shape:Vb.BOX,minBounds:Z.negate(m,new Z),maxBounds:Z.clone(m),shapeTransform:Ee.fromRotationTranslation(x,f.center)}}function _4i(o){let{minRadius:f,maxRadius:m,height:x,minAngle:y=-be.PI,maxAngle:v=be.PI,translation:C=[0,0,0],rotation:T=[0,0,0,1]}=o,S=-.5*x+C[2],w=.5*x+C[2],E=Ee.fromTranslationQuaternionRotationScale(Z.unpack(C),fr.unpack(T),Z.ONE);return{shape:Vb.CYLINDER,minBounds:Z.fromElements(f,y,S),maxBounds:Z.fromElements(m,v,w),shapeTransform:E}}function v4i(o,f){let{schemaUri:m,schema:x}=o;return F(m)?qh.getSchemaLoader({resource:f.getDerivedResource({url:m})}):qh.getSchemaLoader({schema:x})}function b4i(o,f){let{schema:m,statistics:x}=o,y=x?.classes[f],v=m.classes[f].properties,C=Object.entries(v).map(([R,P])=>{let{type:A,componentType:M}=P,V=y?.properties[R].min,G=y?.properties[R].max,D=fo.getComponentCount(A),N=T7e(V,D),k=T7e(G,D);return{id:R,type:A,componentType:M,minValue:N,maxValue:k}}),T=C.map(R=>R.id),S=C.map(R=>R.type),w=C.map(R=>R.componentType),E=C.map(R=>R.minValue),L=C.map(R=>R.maxValue),I=E.some(F);return{className:f,names:T,types:S,componentTypes:w,minimumValues:I?E:void 0,maximumValues:I?L:void 0}}function T7e(o,f){if(!F(o))return;let m=Array.isArray(o)?o:[o];return Array.from({length:f},(x,y)=>m[y])}async function C4i(o,f){let m=o._implicitTileset,x=o._subtreeCache,y=x.find(f);if(F(y))return y;let v=m.subtreeUriTemplate.getDerivedResource({templateValues:f.getTemplateValues()}),C=m.baseResource.getDerivedResource({url:v.url}),T=await C.fetchArrayBuffer();if(y=x.find(f),F(y))return y;let S=fq(T);return y=await qce.fromSubtreeJson(C,S.jsonPayload,S.binaryPayload,m,f),x.addSubtree(y),y}R6.prototype.requestData=async function(o){o=o??si.EMPTY_OBJECT;let{tileLevel:f=0,tileX:m=0,tileY:x=0,tileZ:y=0,keyframe:v=0}=o;if(v!==0)return Promise.reject("3D Tiles currently doesn't support time-dynamic data.");let C=this._implicitTileset,T=new che({subdivisionScheme:C.subdivisionScheme,subtreeLevels:C.subtreeLevels,level:f,x:m,y:x,z:y}),S=T.isSubtreeRoot()&&T.level>0,w=S?T.getParentSubtreeCoordinates():T.getSubtreeCoordinates(),E=await C4i(this,w);if(!(S?E.childSubtreeIsAvailableAtCoordinates:E.tileIsAvailableAtCoordinates).call(E,T))return Promise.reject(`Tile is not available at level ${f}, x ${m}, y ${x}, z ${y}.`);let{contentUriTemplates:L,baseResource:I}=C,R=L[0].getDerivedResource({templateValues:T.getTemplateValues()}),P=I.getDerivedResource({url:R.url});return Bhe.fromGltf(P)};var gxt=R6;function CFe(o){o=o??1,this._radius=o??1}Object.defineProperties(CFe.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});CFe.prototype.emit=function(o){let f=be.randomBetween(0,be.TWO_PI),m=be.randomBetween(0,this._radius),x=m*Math.cos(f),y=m*Math.sin(f),v=0;o.position=Z.fromElements(x,y,v,o.position),o.velocity=Z.clone(Z.UNIT_Z,o.velocity)};var TFe=CFe,U1e={CUMULUS:0};U1e.validate=function(o){return o===U1e.CUMULUS};var hle=Object.freeze(U1e);function SL(o,f){if(o=o??si.EMPTY_OBJECT,this._show=o.show??!0,this._position=Z.clone(o.position??Z.ZERO),!F(o.scale)&&F(o.maximumSize))this._maximumSize=Z.clone(o.maximumSize),this._scale=new rt(this._maximumSize.x,this._maximumSize.y);else{this._scale=rt.clone(o.scale??new rt(20,12));let m=new Z(this._scale.x,this._scale.y,Math.min(this._scale.x,this._scale.y)/1.5);this._maximumSize=Z.clone(o.maximumSize??m)}this._slice=o.slice??-1,this._color=Xe.clone(o.color??Xe.WHITE),this._brightness=o.brightness??1,this._cloudCollection=f,this._index=-1}var T4i=SL.SHOW_INDEX=0,S4i=SL.POSITION_INDEX=1,w4i=SL.SCALE_INDEX=2,E4i=SL.MAXIMUM_SIZE_INDEX=3,L4i=SL.SLICE_INDEX=4,P4i=SL.BRIGHTNESS_INDEX=5,I4i=SL.COLOR_INDEX=6;SL.NUMBER_OF_PROPERTIES=7;function eZ(o,f){let m=o._cloudCollection;F(m)&&(m._updateCloud(o,f),o._dirty=!0)}Object.defineProperties(SL.prototype,{show:{get:function(){return this._show},set:function(o){this._show!==o&&(this._show=o,eZ(this,T4i))}},position:{get:function(){return this._position},set:function(o){let f=this._position;Z.equals(f,o)||(Z.clone(o,f),eZ(this,S4i))}},scale:{get:function(){return this._scale},set:function(o){let f=this._scale;rt.equals(f,o)||(rt.clone(o,f),eZ(this,w4i))}},maximumSize:{get:function(){return this._maximumSize},set:function(o){let f=this._maximumSize;Z.equals(f,o)||(Z.clone(o,f),eZ(this,E4i))}},color:{get:function(){return this._color},set:function(o){let f=this._color;Xe.equals(f,o)||(Xe.clone(o,f),eZ(this,I4i))}},slice:{get:function(){return this._slice},set:function(o){this._slice!==o&&(this._slice=o,eZ(this,L4i))}},brightness:{get:function(){return this._brightness},set:function(o){this._brightness!==o&&(this._brightness=o,eZ(this,P4i))}}});SL.prototype._destroy=function(){this._cloudCollection=void 0};var wL=SL,$C,moe=new Z,R4i={positionHighAndScaleX:0,positionLowAndScaleY:1,packedAttribute0:2,packedAttribute1:3,color:4},A4i={direction:0,positionHighAndScaleX:1,positionLowAndScaleY:2,packedAttribute0:3,packedAttribute1:4,color:5},M4i=wL.SHOW_INDEX,V4i=wL.POSITION_INDEX,G4i=wL.SCALE_INDEX,F4i=wL.MAXIMUM_SIZE_INDEX,D4i=wL.SLICE_INDEX,N4i=wL.BRIGHTNESS_INDEX,W4i=wL.NUMBER_OF_PROPERTIES,Z4i=wL.COLOR_INDEX;function EL(o){o=o??si.EMPTY_OBJECT,this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!1,this._propertiesChanged=new Uint32Array(W4i),this._noiseTexture=void 0,this._textureSliceWidth=128,this._noiseTextureRows=4,this.noiseDetail=o.noiseDetail??16,this.noiseOffset=Z.clone(o.noiseOffset??Z.ZERO),this._loading=!1,this._ready=!1;let f=this;this._uniforms={u_noiseTexture:function(){return f._noiseTexture},u_noiseTextureDimensions:yxt(f),u_noiseDetail:function(){return f.noiseDetail}},this._vaNoise=void 0,this._spNoise=void 0,this._spCreated=!1,this._sp=void 0,this._rs=void 0,this.show=o.show??!0,this._colorCommands=[],this.debugBillboards=o.debugBillboards??!1,this._compiledDebugBillboards=!1,this.debugEllipsoids=o.debugEllipsoids??!1,this._compiledDebugEllipsoids=!1}function yxt(o){return function(){return moe.x=o._textureSliceWidth,moe.y=o._noiseTextureRows,moe.z=1/o._noiseTextureRows,moe}}Object.defineProperties(EL.prototype,{length:{get:function(){return SFe(this),this._clouds.length}}});function _xt(o){let f=o.length;for(let m=0;m<f;++m)o[m]&&o[m]._destroy()}EL.prototype.add=function(o){o=o??si.EMPTY_OBJECT;let f=o.cloudType??hle.CUMULUS,m;return f===hle.CUMULUS&&(m=new wL(o,this),m._index=this._clouds.length,this._clouds.push(m),this._createVertexArray=!0),m};EL.prototype.remove=function(o){return this.contains(o)?(this._clouds[o._index]=void 0,this._cloudsRemoved=!0,this._createVertexArray=!0,o._destroy(),!0):!1};EL.prototype.removeAll=function(){_xt(this._clouds),this._clouds=[],this._cloudsToUpdate=[],this._cloudsToUpdateIndex=0,this._cloudsRemoved=!1,this._createVertexArray=!0};function SFe(o){if(o._cloudsRemoved){o._cloudsRemoved=!1;let f=[],m=o._clouds,x=m.length;for(let y=0,v=0;y<x;++y){let C=m[y];F(C)&&(m._index=v++,f.push(C))}o._clouds=f}}EL.prototype._updateCloud=function(o,f){o._dirty||(this._cloudsToUpdate[this._cloudsToUpdateIndex++]=o),++this._propertiesChanged[f]};EL.prototype.contains=function(o){return F(o)&&o._cloudCollection===this};EL.prototype.get=function(o){return SFe(this),this._clouds[o]};var O4i=new Float32Array([-1,-1,1,-1,1,1,-1,1]),X4i=new Uint16Array([0,1,2,0,2,3]);function k4i(o){let f=mo.createVertexBuffer({context:o,typedArray:O4i,usage:rn.STATIC_DRAW}),m=mo.createIndexBuffer({context:o,typedArray:X4i,usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),x=[{index:0,vertexBuffer:f,componentsPerAttribute:2,componentDatatype:Qt.FLOAT}];return new Cu({context:o,attributes:x,indexBuffer:m})}var wFe;function U4i(o){let f=o.cache.cloudCollection_indexBufferBatched;if(F(f))return f;let m=16384*6-6,x=new Uint16Array(m);for(let y=0,v=0;y<m;y+=6,v+=4)x[y]=v,x[y+1]=v+1,x[y+2]=v+2,x[y+3]=v,x[y+4]=v+2,x[y+5]=v+3;return f=mo.createIndexBuffer({context:o,typedArray:x,usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferBatched=f,f}function B4i(o){let f=o.cache.cloudCollection_indexBufferInstanced;return F(f)||(f=mo.createIndexBuffer({context:o,typedArray:new Uint16Array([0,1,2,0,2,3]),usage:rn.STATIC_DRAW,indexDatatype:Fn.UNSIGNED_SHORT}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_indexBufferInstanced=f),f}function H4i(o){let f=o.cache.cloudCollection_vertexBufferInstanced;return F(f)||(f=mo.createVertexBuffer({context:o,typedArray:new Float32Array([0,0,1,0,1,1,0,1]),usage:rn.STATIC_DRAW}),f.vertexArrayDestroyable=!1,o.cache.cloudCollection_vertexBufferInstanced=f),f}function z4i(o,f,m){let x=[{index:$C.positionHighAndScaleX,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.positionLowAndScaleY,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.packedAttribute0,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.packedAttribute1,componentsPerAttribute:4,componentDatatype:Qt.FLOAT,usage:rn.STATIC_DRAW},{index:$C.color,componentsPerAttribute:4,componentDatatype:Qt.UNSIGNED_BYTE,normalize:!0,usage:rn.STATIC_DRAW}];m&&x.push({index:$C.direction,componentsPerAttribute:2,componentDatatype:Qt.FLOAT,vertexBuffer:H4i(o)});let y=m?f:4*f;return new o7(o,x,y,m)}var Uve=new $u;function vxt(o,f,m,x){let y,v=m[$C.positionHighAndScaleX],C=m[$C.positionLowAndScaleY],T=x.position;$u.fromCartesian(T,Uve);let S=x.scale,w=Uve.high,E=Uve.low;o._instanced?(y=x._index,v(y,w.x,w.y,w.z,S.x),C(y,E.x,E.y,E.z,S.y)):(y=x._index*4,v(y+0,w.x,w.y,w.z,S.x),v(y+1,w.x,w.y,w.z,S.x),v(y+2,w.x,w.y,w.z,S.x),v(y+3,w.x,w.y,w.z,S.x),C(y+0,E.x,E.y,E.z,S.y),C(y+1,E.x,E.y,E.z,S.y),C(y+2,E.x,E.y,E.z,S.y),C(y+3,E.x,E.y,E.z,S.y))}function bxt(o,f,m,x){let y,v=m[$C.packedAttribute0],C=x.show,T=x.brightness;o._instanced?(y=x._index,v(y,C,T,0,0)):(y=x._index*4,v(y+0,C,T,0,0),v(y+1,C,T,1,0),v(y+2,C,T,1,1),v(y+3,C,T,0,1))}function Cxt(o,f,m,x){let y,v=m[$C.packedAttribute1],C=x.maximumSize,T=x.slice;o._instanced?(y=x._index,v(y,C.x,C.y,C.z,T)):(y=x._index*4,v(y+0,C.x,C.y,C.z,T),v(y+1,C.x,C.y,C.z,T),v(y+2,C.x,C.y,C.z,T),v(y+3,C.x,C.y,C.z,T))}function Txt(o,f,m,x){let y,v=m[$C.color],C=x.color,T=Xe.floatToByte(C.red),S=Xe.floatToByte(C.green),w=Xe.floatToByte(C.blue),E=Xe.floatToByte(C.alpha);o._instanced?(y=x._index,v(y,T,S,w,E)):(y=x._index*4,v(y+0,T,S,w,E),v(y+1,T,S,w,E),v(y+2,T,S,w,E),v(y+3,T,S,w,E))}function Y4i(o,f,m,x){vxt(o,f,m,x),bxt(o,f,m,x),Cxt(o,f,m,x),Txt(o,f,m,x)}function K4i(o,f,m,x){let y=o,v=y._textureSliceWidth,C=y._noiseTextureRows,T=f.context;y._vaNoise=k4i(T),y._spNoise=xs.fromCache({context:T,vertexShaderSource:m,fragmentShaderSource:x,attributeLocations:{position:0}});let S=y.noiseDetail,w=y.noiseOffset;y._noiseTexture=new Rn({context:T,width:v*v/C,height:v*C,pixelDatatype:un.UNSIGNED_BYTE,pixelFormat:zr.RGBA,sampler:new Yo({wrapS:Xn.REPEAT,wrapT:Xn.REPEAT,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})});let E=new cV({vertexArray:y._vaNoise,shaderProgram:y._spNoise,outputTexture:y._noiseTexture,uniformMap:{u_noiseTextureDimensions:yxt(y),u_noiseDetail:function(){return S},u_noiseOffset:function(){return w}},persists:!1,owner:o,postExecute:function(L){y._ready=!0,y._loading=!1}});f.commandList.push(E),y._loading=!0}function J4i(o,f){let m=o,x=f.context;m._createVertexArray=!1,m._vaf=m._vaf&&m._vaf.destroy();let y=o._clouds,v=y.length;if(v>0){m._vaf=z4i(x,v,m._instanced);let C=m._vaf.writers,T;for(T=0;T<v;++T){let S=y[T];Y4i(o,f,C,S)}m._vaf.commit(wFe(x))}}var j4i=[];function Q4i(o,f){let m=f.context,x=o,y=x._clouds.length,v=x._cloudsToUpdate,C=x._cloudsToUpdateIndex,T=x._propertiesChanged,S=j4i;S.length=0,(T[V4i]||T[G4i])&&S.push(vxt),(T[M4i]||T[N4i])&&S.push(bxt),(T[F4i]||T[D4i])&&S.push(Cxt),T[Z4i]&&S.push(Txt);let w=S.length,E=x._vaf.writers,L,I,R;if(C/y>.1){for(L=0;L<C;++L)for(I=v[L],I._dirty=!1,R=0;R<w;++R)S[R](o,f,E,I);x._vaf.commit(wFe(m))}else{for(L=0;L<C;++L){for(I=v[L],I._dirty=!1,R=0;R<w;++R)S[R](o,f,E,I);x._instanced?x._vaf.subCommit(I._index,1):x._vaf.subCommit(I._index*4,4)}x._vaf.endSubCommits()}x._cloudsToUpdateIndex=0}function q4i(o,f,m,x){let y=f.context,v=o,C=new Wr({defines:[],sources:[m]});v._instanced&&C.defines.push("INSTANCED");let T=new Wr({defines:[],sources:[x]});v.debugBillboards&&T.defines.push("DEBUG_BILLBOARDS"),v.debugEllipsoids&&T.defines.push("DEBUG_ELLIPSOIDS"),v._sp=xs.replaceCache({context:y,shaderProgram:v._sp,vertexShaderSource:C,fragmentShaderSource:T,attributeLocations:$C}),v._rs=cn.fromCache({depthTest:{enabled:!0,func:bi.LESS},depthMask:!1,blending:ru.ALPHA_BLEND}),v._spCreated=!0,v._compiledDebugBillboards=v.debugBillboards,v._compiledDebugEllipsoids=v.debugEllipsoids}function $4i(o,f){let m=o,x=f.passes,y=m._uniforms,v=f.commandList;if(x.render){let C=m._colorCommands,T=m._vaf.va,S=T.length;C.length=S;for(let w=0;w<S;w++){let E=C[w];F(E)||(E=C[w]=new En),E.pass=xr.TRANSLUCENT,E.owner=o,E.uniformMap=y,E.count=T[w].indicesCount,E.vertexArray=T[w].va,E.shaderProgram=m._sp,E.renderState=m._rs,m._instanced&&(E.count=6,E.instanceCount=m._clouds.length),v.push(E)}}}EL.prototype.update=function(o){if(SFe(this),!this.show)return;let f=this.debugBillboards||this.debugEllipsoids;this._ready=f?!0:F(this._noiseTexture),!this._ready&&!this._loading&&!f&&K4i(this,o,yFe,gFe),this._instanced=o.context.instancedArrays,$C=this._instanced?A4i:R4i,wFe=this._instanced?B4i:U4i;let m=this._clouds.length,x=this._cloudsToUpdate,y=this._cloudsToUpdateIndex;this._createVertexArray?J4i(this,o):y>0&&Q4i(this,o),y>m*1.5&&(x.length=m),!(!F(this._vaf)||!F(this._vaf.va)||!this._ready&!f)&&((!this._spCreated||this.debugBillboards!==this._compiledDebugBillboards||this.debugEllipsoids!==this._compiledDebugEllipsoids)&&q4i(this,o,xFe,mFe),$4i(this,o))};EL.prototype.isDestroyed=function(){return!1};EL.prototype.destroy=function(){return this._noiseTexture=this._noiseTexture&&this._noiseTexture.destroy(),this._sp=this._sp&&this._sp.destroy(),this._vaf=this._vaf&&this._vaf.destroy(),_xt(this._clouds),yr(this)};var Sxt=EL,eYi=be.toRadians(30);function EFe(o){this._angle=o??eYi}Object.defineProperties(EFe.prototype,{angle:{get:function(){return this._angle},set:function(o){this._angle=o}}});EFe.prototype.emit=function(o){let f=Math.tan(this._angle),m=be.randomBetween(0,be.TWO_PI),x=be.randomBetween(0,f),y=x*Math.cos(m),v=x*Math.sin(m),C=1;o.velocity=Z.fromElements(y,v,C,o.velocity),Z.normalize(o.velocity,o.velocity),o.position=Z.clone(Z.ZERO,o.position)};var X4=EFe,tYi=new Xe,iYi=new Xe,rYi=new Xe,nYi=new Xe,S7e=new zt,j8=new Uint8Array(4);function w7e(o,f,m,x){let y=f.height===m.height?0:(o-f.height)/(m.height-f.height);return Xe.lerp(f.color,m.color,y,x)}function yae(o,f){return{height:o,color:Xe.clone(f)}}function wxt(o){return o=o.filter(function(f,m,x){let y=m>0,v=m<x.length-1,C=y?f.height===x[m-1].height:!0,T=v?f.height===x[m+1].height:!0;return!C||!T}),o=o.filter(function(f,m,x){let y=m>0,v=m<x.length-1,C=y?Xe.equals(f.color,x[m-1].color):!1,T=v?Xe.equals(f.color,x[m+1].color):!1;return!C||!T}),o=o.filter(function(f,m,x){let y=m>0,v=y?Xe.equals(f.color,x[m-1].color):!1,C=y?f.height===x[m-1].height:!0;return!v||!C}),o}function oYi(o){let f,m,x=[],y=o.length;for(f=0;f<y;f++){let v=o[f],C=v.entries,T=C.length,S=[];for(m=0;m<T;m++){let R=C[m],P=be.clamp(R.height,Rb._minimumHeight,Rb._maximumHeight),A=Xe.clone(R.color,tYi);A.red*=A.alpha,A.green*=A.alpha,A.blue*=A.alpha,S.push(yae(P,A))}let w=!0,E=!0;for(m=0;m<T-1;m++){let R=S[m+0],P=S[m+1];w=w&&R.height<=P.height,E=E&&R.height>=P.height}E?S=S.reverse():w||b4(S,function(R,P){return be.sign(R.height-P.height)});let L=v.extendDownwards??!1,I=v.extendUpwards??!1;S.length===1&&!L&&!I&&(L=!0,I=!0),L&&S.splice(0,0,yae(Rb._minimumHeight,S[0].color)),I&&S.splice(S.length,0,yae(Rb._maximumHeight,S[S.length-1].color)),S=wxt(S),x.push(S)}return x}function aYi(o){let f=oYi(o),m=[],x=[],y;function v(S,w){m.push(yae(S,w))}function C(S,w,E){let L=Xe.multiplyByScalar(E,1-w.alpha,nYi);L=Xe.add(L,w,L),v(S,L)}let T=f.length;for(y=0;y<T;y++){let S=f[y],w=0,E=0;x=m,m=[];let L=S.length,I=x.length;for(;w<L||E<I;){let R=w<L?S[w]:void 0,P=w>0?S[w-1]:void 0,A=w<L-1?S[w+1]:void 0,M=E<I?x[E]:void 0,V=E>0?x[E-1]:void 0,G=E<I-1?x[E+1]:void 0;if(F(R)&&F(M)&&R.height===M.height){let D=F(G)&&M.height===G.height,N=!F(V),k=!F(G),U=F(A)&&R.height===A.height,B=!F(P),Y=!F(A);D?U?(C(R.height,R.color,M.color),C(R.height,A.color,G.color)):B?(v(R.height,M.color),C(R.height,R.color,G.color)):Y?(C(R.height,R.color,M.color),v(R.height,G.color)):(C(R.height,R.color,M.color),C(R.height,R.color,G.color)):N?U?(v(R.height,R.color),C(R.height,A.color,M.color)):Y?(v(R.height,R.color),v(R.height,M.color)):(B||v(R.height,R.color),C(R.height,R.color,M.color)):k?U?(C(R.height,R.color,M.color),v(R.height,A.color)):B?(v(R.height,M.color),v(R.height,R.color)):Y?C(R.height,R.color,M.color):(C(R.height,R.color,M.color),v(R.height,R.color)):U?(C(R.height,R.color,M.color),C(R.height,A.color,M.color)):B?(v(R.height,M.color),C(R.height,R.color,M.color)):Y?(C(R.height,R.color,M.color),v(R.height,M.color)):C(R.height,R.color,M.color),w+=U?2:1,E+=D?2:1}else if(F(R)&&F(M)&&F(V)&&R.height<M.height){let D=w7e(R.height,V,M,rYi);F(P)?F(A)?C(R.height,R.color,D):(C(R.height,R.color,D),v(R.height,D)):(v(R.height,D),C(R.height,R.color,D)),w++}else if(F(M)&&F(R)&&F(P)&&M.height<R.height){let D=w7e(M.height,P,R,iYi);F(V)?F(G)?C(M.height,D,M.color):(C(M.height,D,M.color),v(M.height,D)):(v(M.height,D),C(M.height,D,M.color)),E++}else F(R)&&(!F(M)||R.height<M.height)?(F(M)&&!F(V)&&!F(A)?(v(R.height,R.color),v(R.height,Rb._emptyColor),v(M.height,Rb._emptyColor)):(!F(M)&&F(V)&&!F(P)&&(v(V.height,Rb._emptyColor),v(R.height,Rb._emptyColor)),v(R.height,R.color)),w++):F(M)&&(!F(R)||M.height<R.height)&&(v(M.height,M.color),E++)}}return wxt(m)}function Rb(o){let{scene:f,layers:m}=o??si.EMPTY_OBJECT,{context:x}=f,y=aYi(m),v=y.length,C,T,S;if(Rb._useFloatTexture(x)){T=un.FLOAT,S=x.webgl2?zr.RED:zr.LUMINANCE,C=new Float32Array(v);for(let I=0;I<v;I++)C[I]=y[I].height}else{T=un.UNSIGNED_BYTE,S=zr.RGBA,C=new Uint8Array(v*4);for(let I=0;I<v;I++)zt.packFloat(y[I].height,S7e),zt.pack(S7e,C,I*4)}let w=Rn.create({context:x,pixelFormat:S,pixelDatatype:T,source:{arrayBufferView:C,width:v,height:1},sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})}),E=new Uint8Array(v*4);for(let I=0;I<v;I++)y[I].color.toBytes(j8),E[I*4+0]=j8[0],E[I*4+1]=j8[1],E[I*4+2]=j8[2],E[I*4+3]=j8[3];let L=Rn.create({context:x,pixelFormat:zr.RGBA,pixelDatatype:un.UNSIGNED_BYTE,source:{arrayBufferView:E,width:v,height:1},sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})});return Co.fromType("ElevationBand",{heights:w,colors:L})}Rb._useFloatTexture=function(o){return o.floatingPointTexture};Rb._maximumHeight=5906376425472;Rb._minimumHeight=-5906376425472;Rb._emptyColor=new Xe(0,0,0,0);var Ext=Rb;async function sYi(o,f){f=f??{},f.cacheBytes=f.cacheBytes??1536*1024*1024,f.maximumCacheOverflowBytes=f.maximumCacheOverflowBytes??1024*1024*1024,f.enableCollision=f.enableCollision??!0,o=o??si.EMPTY_OBJECT,o.onlyUsingWithGoogleGeocoder||aa("google-tiles-with-google-geocoder","Only the Google geocoder can be used with Google Photorealistic 3D Tiles.  Set the `geocode` property of Viewer constructor options.  You can set additionalOptions.onlyUsingWithGoogleGeocoder to hide this warning once you have configured the geocoder.");let m=o.key??hQ.defaultApiKey;if(!F(m))return lYi(f);let x,y=hQ.getDefaultCredit();F(y)&&(x=[y]);let v=new Mr({url:`${hQ.mapTilesApiEndpoint}3dtiles/root.json`,queryParameters:{key:m},credits:x});return _0.fromUrl(v,f)}var E7e={};async function lYi(o){let f=E7e[2275207];F(f)||(f=FG.fromAssetId(2275207),E7e[2275207]=f);let m=await f;return _0.fromUrl(m,o)}var Lxt=sYi;async function uYi(o){let f=await _0.fromIonAssetId(96188,o);o=o??si.EMPTY_OBJECT;let m=o.style;if(!F(m)){let x=(o.defaultColor??Xe.WHITE).toCssColorString();m=new ZS({color:`Boolean(\${feature['cesium#color']}) ? color(\${feature['cesium#color']}) : ${x}`})}return f.style=m,f}var Pxt=uYi;function cYi(o){o=o??si.EMPTY_OBJECT;let f=[],m=o.geometry;(!F(m.attributes)||!F(m.primitiveType))&&(m=m.constructor.createGeometry(m));let x=m.attributes,y=Ee.clone(o.modelMatrix??Ee.IDENTITY),v=o.length??1e4;if(F(x.normal)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"normal",v),attributes:{color:new yo(1,0,0,1)},modelMatrix:y})),F(x.tangent)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"tangent",v),attributes:{color:new yo(0,1,0,1)},modelMatrix:y})),F(x.bitangent)&&f.push(new Wn({geometry:qu.createLineSegmentsForVectors(m,"bitangent",v),attributes:{color:new yo(0,0,1,1)},modelMatrix:y})),f.length>0)return new ta({asynchronous:!1,geometryInstances:f,appearance:new ga({flat:!0,translucent:!1})})}var Ixt=cYi;function r$(o){o=o??si.EMPTY_OBJECT;let f=o.attributeName,m=o.perInstanceAttribute;F(m)||(m=!1);let x=o.glslDatatype??"vec3",y=`v_${f}`,v;if(f==="normal"||f==="tangent"||f==="bitangent")v=`vec4 getColor() { return vec4((${y} + vec3(1.0)) * 0.5, 1.0); }
`;else switch(f==="st"&&(x="vec2"),x){case"float":v=`vec4 getColor() { return vec4(vec3(${y}), 1.0); }
`;break;case"vec2":v=`vec4 getColor() { return vec4(${y}, 0.0, 1.0); }
`;break;case"vec3":v=`vec4 getColor() { return vec4(${y}, 1.0); }
@@ -20501,7 +20501,7 @@
void main()
{
out_FragColor = getColor();
}`;this.material=void 0,this.translucent=o.translucent??!1,this._vertexShaderSource=o.vertexShaderSource??C,this._fragmentShaderSource=o.fragmentShaderSource??T,this._renderState=Sd.getDefaultRenderState(!1,!1,o.renderState),this._closed=o.closed??!1,this._attributeName=f,this._glslDatatype=x}Object.defineProperties(r$.prototype,{vertexShaderSource:{get:function(){return this._vertexShaderSource}},fragmentShaderSource:{get:function(){return this._fragmentShaderSource}},renderState:{get:function(){return this._renderState}},closed:{get:function(){return this._closed}},attributeName:{get:function(){return this._attributeName}},glslDatatype:{get:function(){return this._glslDatatype}}});r$.prototype.getFragmentShaderSource=Sd.prototype.getFragmentShaderSource;r$.prototype.isTranslucent=Sd.prototype.isTranslucent;r$.prototype.getRenderState=Sd.prototype.getRenderState;var Mxt=r$;function Ede(o){o=o??si.EMPTY_OBJECT,this.length=o.length??1e7,this._length=void 0,this.width=o.width??2,this._width=void 0,this.show=o.show??!0,this.modelMatrix=Ee.clone(o.modelMatrix??Ee.IDENTITY),this._modelMatrix=new Ee,this.id=o.id,this._id=void 0,this._primitive=void 0}Ede.prototype.update=function(o){if(this.show){if(!F(this._primitive)||!Ee.equals(this._modelMatrix,this.modelMatrix)||this._length!==this.length||this._width!==this.width||this._id!==this.id){this._modelMatrix=Ee.clone(this.modelMatrix,this._modelMatrix),this._length=this.length,this._width=this.width,this._id=this.id,F(this._primitive)&&this._primitive.destroy(),this.modelMatrix[12]===0&&this.modelMatrix[13]===0&&this.modelMatrix[14]===0&&(this.modelMatrix[14]=.01);let f=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_X],width:this.width,vertexFormat:om.VERTEX_FORMAT,colors:[Xe.RED,Xe.RED],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),m=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_Y],width:this.width,vertexFormat:om.VERTEX_FORMAT,colors:[Xe.GREEN,Xe.GREEN],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),x=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_Z],width:this.width,vertexFormat:om.VERTEX_FORMAT,colors:[Xe.BLUE,Xe.BLUE],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this});this._primitive=new ta({geometryInstances:[f,m,x],appearance:new om,asynchronous:!1})}this._primitive.update(o)}};Ede.prototype.isDestroyed=function(){return!1};Ede.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),yr(this)};var LFe=Ede;function dYi(o){this.direction=Z.clone(o.direction),this.color=Xe.clone(o.color??Xe.WHITE),this.intensity=o.intensity??1}var k4=dYi;function wb(o){this._scene=o.scene,this.samplingWindow=o.samplingWindow??wb.defaultSettings.samplingWindow,this.quietPeriod=o.quietPeriod??wb.defaultSettings.quietPeriod,this.warmupPeriod=o.warmupPeriod??wb.defaultSettings.warmupPeriod,this.minimumFrameRateDuringWarmup=o.minimumFrameRateDuringWarmup??wb.defaultSettings.minimumFrameRateDuringWarmup,this.minimumFrameRateAfterWarmup=o.minimumFrameRateAfterWarmup??wb.defaultSettings.minimumFrameRateAfterWarmup,this._lowFrameRate=new Tr,this._nominalFrameRate=new Tr,this._frameTimes=[],this._needsQuietPeriod=!0,this._quietPeriodEndTime=0,this._warmupPeriodEndTime=0,this._frameRateIsLow=!1,this._lastFramesPerSecond=void 0,this._pauseCount=0;let f=this;this._preUpdateRemoveListener=this._scene.preUpdate.addEventListener(function(y,v){pYi(f,v)}),this._hiddenPropertyName=document.hidden!==void 0?"hidden":document.mozHidden!==void 0?"mozHidden":document.msHidden!==void 0?"msHidden":document.webkitHidden!==void 0?"webkitHidden":void 0;let m=document.hidden!==void 0?"visibilitychange":document.mozHidden!==void 0?"mozvisibilitychange":document.msHidden!==void 0?"msvisibilitychange":document.webkitHidden!==void 0?"webkitvisibilitychange":void 0;function x(){fYi(f)}this._visibilityChangeRemoveListener=void 0,F(m)&&(document.addEventListener(m,x,!1),this._visibilityChangeRemoveListener=function(){document.removeEventListener(m,x,!1)})}wb.defaultSettings={samplingWindow:5,quietPeriod:2,warmupPeriod:5,minimumFrameRateDuringWarmup:4,minimumFrameRateAfterWarmup:8};wb.fromScene=function(o){return(!F(o._frameRateMonitor)||o._frameRateMonitor.isDestroyed())&&(o._frameRateMonitor=new wb({scene:o})),o._frameRateMonitor};Object.defineProperties(wb.prototype,{scene:{get:function(){return this._scene}},lowFrameRate:{get:function(){return this._lowFrameRate}},nominalFrameRate:{get:function(){return this._nominalFrameRate}},lastFramesPerSecond:{get:function(){return this._lastFramesPerSecond}}});wb.prototype.pause=function(){++this._pauseCount,this._pauseCount===1&&(this._frameTimes.length=0,this._lastFramesPerSecond=void 0)};wb.prototype.unpause=function(){--this._pauseCount,this._pauseCount<=0&&(this._pauseCount=0,this._needsQuietPeriod=!0)};wb.prototype.isDestroyed=function(){return!1};wb.prototype.destroy=function(){return this._preUpdateRemoveListener(),F(this._visibilityChangeRemoveListener)&&this._visibilityChangeRemoveListener(),yr(this)};function pYi(o,f){if(o._pauseCount>0)return;let m=lh();if(o._needsQuietPeriod)o._needsQuietPeriod=!1,o._frameTimes.length=0,o._quietPeriodEndTime=m+o.quietPeriod/cc.SECONDS_PER_MILLISECOND,o._warmupPeriodEndTime=o._quietPeriodEndTime+(o.warmupPeriod+o.samplingWindow)/cc.SECONDS_PER_MILLISECOND;else if(m>=o._quietPeriodEndTime){o._frameTimes.push(m);let x=m-o.samplingWindow/cc.SECONDS_PER_MILLISECOND;if(o._frameTimes.length>=2&&o._frameTimes[0]<=x){for(;o._frameTimes.length>=2&&o._frameTimes[1]<x;)o._frameTimes.shift();let y=(m-o._frameTimes[0])/(o._frameTimes.length-1);o._lastFramesPerSecond=1e3/y;let v=1e3/(m>o._warmupPeriodEndTime?o.minimumFrameRateAfterWarmup:o.minimumFrameRateDuringWarmup);y>v?o._frameRateIsLow||(o._frameRateIsLow=!0,o._needsQuietPeriod=!0,o.lowFrameRate.raiseEvent(o.scene,o._lastFramesPerSecond)):o._frameRateIsLow&&(o._frameRateIsLow=!1,o._needsQuietPeriod=!0,o.nominalFrameRate.raiseEvent(o.scene,o._lastFramesPerSecond))}}}function fYi(o){document[o._hiddenPropertyName]?o.pause():o.unpause()}var PFe=wb,mYi=k0(j$e(),1);function IFe(){this._image=new Image}IFe.prototype.isReady=function(){return!0};IFe.prototype.shouldDiscardImage=function(o){return o===this._image};function P9(o){o=o??si.EMPTY_OBJECT,this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0,this._tileDiscardPolicy=o.tileDiscardPolicy,this._tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new vi(-be.PI,-be.PI,be.PI,be.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._tileWidth=256,this._tileHeight=256,this._maximumLevel=23,F(this._tileDiscardPolicy)||(this._tileDiscardPolicy=new IFe),this._errorEvent=new Tr}Object.defineProperties(P9.prototype,{url:{get:function(){return this._metadata.url}},proxy:{get:function(){return this._metadata.proxy}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){return this._maximumLevel}},minimumLevel:{get:function(){return 0}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){return this._tileDiscardPolicy}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},hasAlphaChannel:{get:function(){return!1}}});P9.fromMetadata=function(o,f){if(!o.imageryPresent)throw new Oi(`The server ${o.url} doesn't have imagery`);let m=new P9(f);return m._metadata=o,m};P9.prototype.getTileCredits=function(o,f,m){let x=this._metadata,y=x.getTileInformation(o,f,m);if(F(y)){let v=x.providers[y.imageryProvider];if(F(v))return[v]}};P9.prototype.requestImage=function(o,f,m,x){let y=this._tileDiscardPolicy._image,v=this._metadata,C=Z4.tileXYToQuadKey(o,f,m),T=v.getTileInformation(o,f,m);if(!F(T)){if(v.isValid(C)){let w=new hm({throttle:x.throttle,throttleByServer:x.throttleByServer,type:x.type,priorityFunction:x.priorityFunction});v.populateSubtree(o,f,m,w);return}return Promise.resolve(y)}if(!T.hasImagery())return Promise.resolve(y);let S=xYi(this,T,o,f,m,x).fetchArrayBuffer();if(F(S))return S.then(function(w){dFe(v.key,w);let E=new Uint8Array(w),L,I=v.protoImagery;if((!F(I)||!I)&&(L=gYi(E)),!F(L)&&(!F(I)||I)){let R=yYi(E);L=R.imageType,E=R.imageData}return!F(L)||!F(E)?y:Jz({uint8Array:E,format:L,flipY:!0})})};P9.prototype.pickFeatures=function(o,f,m,x,y){};function xYi(o,f,m,x,y,v){let C=Z4.tileXYToQuadKey(m,x,y),T=f.imageryVersion;return T=F(T)&&T>0?T:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1-0${C}-i.${T.toString()}`,request:v})}function gYi(o){let f="JFIF";if(o[6]===f.charCodeAt(0)&&o[7]===f.charCodeAt(1)&&o[8]===f.charCodeAt(2)&&o[9]===f.charCodeAt(3))return"image/jpeg";let m="PNG";if(o[1]===m.charCodeAt(0)&&o[2]===m.charCodeAt(1)&&o[3]===m.charCodeAt(2))return"image/png"}function yYi(o){let f=mYi.Reader.create(o),m=f.len,x={};for(;f.pos<m;){let C=f.uint32(),T;switch(C>>>3){case 1:x.imageType=f.uint32();break;case 2:x.imageData=f.bytes();break;case 3:x.alphaType=f.uint32();break;case 4:x.imageAlpha=f.bytes();break;case 5:if(T=x.copyrightIds,F(T)||(T=x.copyrightIds=[]),(C&7)===2){let S=f.uint32()+f.pos;for(;f.pos<S;)T.push(f.uint32())}else T.push(f.uint32());break;default:f.skipType(C&7);break}}let y=x.imageType;if(F(y))switch(y){case 0:x.imageType="image/jpeg";break;case 4:x.imageType="image/png";break;default:throw new Oi("GoogleEarthEnterpriseImageryProvider: Unsupported image type.")}let v=x.alphaType;return F(v)&&v!==0&&(console.log("GoogleEarthEnterpriseImageryProvider: External alpha not supported."),delete x.alphaType,delete x.imageAlpha),x}var Vxt=P9,_Yi=new Xe(1,1,1,.4),vYi=new Xe(0,1,0,.05),bYi=new Xe(0,.5,0,.2);function ZO(o){o=o??si.EMPTY_OBJECT,this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0,this._tilingScheme=F(o.tilingScheme)?o.tilingScheme:new _h({ellipsoid:o.ellipsoid}),this._cells=o.cells??8,this._color=o.color??_Yi,this._glowColor=o.glowColor??vYi,this._glowWidth=o.glowWidth??6,this._backgroundColor=o.backgroundColor??bYi,this._errorEvent=new Tr,this._tileWidth=o.tileWidth??256,this._tileHeight=o.tileHeight??256,this._canvasSize=o.canvasSize??256,this._canvas=this._createGridCanvas()}Object.defineProperties(ZO.prototype,{proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){}},minimumLevel:{get:function(){}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){}},hasAlphaChannel:{get:function(){return!0}}});ZO.prototype._drawGrid=function(o){let f=this._canvasSize;for(let m=0;m<=this._cells;++m){let x=1+m/this._cells*(f-1);o.moveTo(x,0),o.lineTo(x,f),o.moveTo(0,x),o.lineTo(f,x)}o.stroke()};ZO.prototype._createGridCanvas=function(){let o=document.createElement("canvas");o.width=this._canvasSize,o.height=this._canvasSize;let f=0,m=this._canvasSize,x=o.getContext("2d"),y=this._backgroundColor.toCssColorString();x.fillStyle=y,x.fillRect(f,f,m,m);let v=this._glowColor.toCssColorString();x.strokeStyle=v,x.lineWidth=this._glowWidth,x.strokeRect(f,f,m,m),this._drawGrid(x),x.lineWidth=this._glowWidth*.5,x.strokeRect(f,f,m,m),this._drawGrid(x);let C=this._color.toCssColorString();return x.strokeStyle=C,x.lineWidth=2,x.strokeRect(f,f,m,m),x.lineWidth=1,this._drawGrid(x),o};ZO.prototype.getTileCredits=function(o,f,m){};ZO.prototype.requestImage=function(o,f,m,x){return Promise.resolve(this._canvas)};ZO.prototype.pickFeatures=function(o,f,m,x,y){};var Gxt=ZO,n$={};n$.createTilesetFromIModelId=async function(o,f){let{exports:m}=await wg.getExports(o);if(m.length>0&&m.every(T=>T.status===wg.ExportStatus.Invalid))throw new Oi(`All exports for this iModel are Invalid: ${o}`);let x=m.find(T=>T.status===wg.ExportStatus.Complete);if(!F(x))return;let y=new URL(x._links.mesh.href);y.pathname=`${y.pathname}/tileset.json`;let v=y.toString(),C=new Mr({url:v});return _0.fromUrl(C,f)};n$.createTilesetForRealityDataId=async function(o,f,m,x){if(!F(m)||!F(x)){let v=await wg.getRealityDataMetadata(o,f);x=v.rootDocument,m=v.type}if(![wg.RealityDataType.Cesium3DTiles,wg.RealityDataType.PNTS,wg.RealityDataType.RealityMesh3DTiles,wg.RealityDataType.Terrain3DTiles].includes(m))throw new Oi(`Reality data type is not a mesh type: ${m}`);let y=await wg.getRealityDataURL(o,f,x);return _0.fromUrl(y,{maximumScreenSpaceError:4})};n$.createDataSourceForRealityDataId=async function(o,f,m,x){if(!F(m)||!F(x)){let v=await wg.getRealityDataMetadata(o,f);x=v.rootDocument,m=v.type}if(![wg.RealityDataType.KML,wg.RealityDataType.GeoJSON].includes(m))throw new Oi(`Reality data type is not a data source type: ${m}`);let y=await wg.getRealityDataURL(o,f,x);return m===wg.RealityDataType.GeoJSON?qZ.load(y):I7.load(y)};n$.loadGeospatialFeatures=async function(o,f,m){let x=m??1e4,y=`${wg.apiEndpoint}geospatial-features/itwins/${o}/ogc/collections/${f}/items`,v=new Mr({url:y,headers:{Authorization:wg._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{limit:x,client:"CesiumJS"}});return qZ.load(v)};var Fxt=n$;function Dxt(){}Object.defineProperties(Dxt.prototype,{color:{get:wt.throwInstantiationError},intensity:{get:wt.throwInstantiationError}});var Nxt=Dxt,CYi=/\/$/,Wxt=new Oa('&copy; <a href="https://www.mapbox.com/about/maps/">Mapbox</a> &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <strong><a href="https://www.mapbox.com/map-feedback/">Improve this map</a></strong>');function U4(o){o=o??si.EMPTY_OBJECT;let f=o.styleId,m=o.accessToken;this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0;let x=Mr.createIfNeeded(o.url??"https://api.mapbox.com/styles/v1/");this._styleId=f,this._accessToken=m;let y=o.tilesize??512;this._tilesize=y;let v=o.username??"mapbox";this._username=v;let C=F(o.scaleFactor)?"@2x":"",T=x.getUrlComponent();CYi.test(T)||(T+="/"),T+=`${this._username}/${f}/tiles/${this._tilesize}/{z}/{x}/{y}${C}`,x.url=T,x.setQueryParameters({access_token:m});let S;F(o.credit)?(S=o.credit,typeof S=="string"&&(S=new Oa(S))):S=Wxt,this._resource=x,this._imageryProvider=new Hb({url:x,credit:S,ellipsoid:o.ellipsoid,minimumLevel:o.minimumLevel,maximumLevel:o.maximumLevel,rectangle:o.rectangle})}Object.defineProperties(U4.prototype,{url:{get:function(){return this._imageryProvider.url}},rectangle:{get:function(){return this._imageryProvider.rectangle}},tileWidth:{get:function(){return this._imageryProvider.tileWidth}},tileHeight:{get:function(){return this._imageryProvider.tileHeight}},maximumLevel:{get:function(){return this._imageryProvider.maximumLevel}},minimumLevel:{get:function(){return this._imageryProvider.minimumLevel}},tilingScheme:{get:function(){return this._imageryProvider.tilingScheme}},tileDiscardPolicy:{get:function(){return this._imageryProvider.tileDiscardPolicy}},errorEvent:{get:function(){return this._imageryProvider.errorEvent}},credit:{get:function(){return this._imageryProvider.credit}},proxy:{get:function(){return this._imageryProvider.proxy}},hasAlphaChannel:{get:function(){return this._imageryProvider.hasAlphaChannel}}});U4.prototype.getTileCredits=function(o,f,m){};U4.prototype.requestImage=function(o,f,m,x){return this._imageryProvider.requestImage(o,f,m,x)};U4.prototype.pickFeatures=function(o,f,m,x,y){return this._imageryProvider.pickFeatures(o,f,m,x,y)};U4._defaultCredit=Wxt;var Zxt=U4;function RFe(o){}RFe.prototype.isReady=function(){return!0};RFe.prototype.shouldDiscardImage=function(o){return!1};var Oxt=RFe,TYi=new Oa("MapQuest, Open Street Map and contributors, CC-BY-SA");function vae(o){o=o??si.EMPTY_OBJECT;let f=Mr.createIfNeeded(o.url??"https://tile.openstreetmap.org/");f.appendForwardSlash(),f.url+=`{z}/{x}/{y}${o.retinaTiles?"@2x":""}.${o.fileExtension??"png"}`;let m=new xp({ellipsoid:o.ellipsoid}),x=256,y=256,v=o.minimumLevel??0,C=o.maximumLevel,T=o.rectangle??m.rectangle,S=m.positionToTileXY(vi.southwest(T),v),w=m.positionToTileXY(vi.northeast(T),v),E=(Math.abs(w.x-S.x)+1)*(Math.abs(w.y-S.y)+1),L=o.credit??TYi;typeof L=="string"&&(L=new Oa(L)),Hb.call(this,{url:f,credit:L,tilingScheme:m,tileWidth:x,tileHeight:y,minimumLevel:v,maximumLevel:C,rectangle:T})}F(Object.create)&&(vae.prototype=Object.create(Hb.prototype),vae.prototype.constructor=vae);var ME=vae,SYi=new rt(1,1);function AFe(o){o=o??si.EMPTY_OBJECT,this.mass=o.mass??1,this.position=Z.clone(o.position??Z.ZERO),this.velocity=Z.clone(o.velocity??Z.ZERO),this.life=o.life??Number.MAX_VALUE,this.image=o.image,this.startColor=Xe.clone(o.startColor??Xe.WHITE),this.endColor=Xe.clone(o.endColor??Xe.WHITE),this.startScale=o.startScale??1,this.endScale=o.endScale??1,this.imageSize=rt.clone(o.imageSize??SYi),this._age=0,this._normalizedAge=0,this._billboard=void 0}Object.defineProperties(AFe.prototype,{age:{get:function(){return this._age}},normalizedAge:{get:function(){return this._normalizedAge}}});var L7e=new Z;AFe.prototype.update=function(o,f){return Z.multiplyByScalar(this.velocity,o,L7e),Z.add(this.position,L7e,this.position),F(f)&&f(this,o),this._age+=o,this.life===Number.MAX_VALUE?this._normalizedAge=0:this._normalizedAge=this._age/this.life,this._age<=this.life};var Lde=AFe;function Xxt(o){o=o??si.EMPTY_OBJECT,this.time=o.time??0,this.minimum=o.minimum??0,this.maximum=o.maximum??50,this._complete=!1}Object.defineProperties(Xxt.prototype,{complete:{get:function(){return this._complete}}});var B4=Xxt;function kxt(o){}kxt.prototype.emit=function(o){wt.throwInstantiationError()};var Uxt=kxt,P7e=new rt(1,1);function o$(o){o=o??si.EMPTY_OBJECT,this.show=o.show??!0,this.updateCallback=o.updateCallback,this.loop=o.loop??!0,this.image=o.image??void 0;let f=o.emitter;F(f)||(f=new TFe(.5)),this._emitter=f,this._bursts=o.bursts,this._modelMatrix=Ee.clone(o.modelMatrix??Ee.IDENTITY),this._emitterModelMatrix=Ee.clone(o.emitterModelMatrix??Ee.IDENTITY),this._matrixDirty=!0,this._combinedMatrix=new Ee,this._startColor=Xe.clone(o.color??o.startColor??Xe.WHITE),this._endColor=Xe.clone(o.color??o.endColor??Xe.WHITE),this._startScale=o.scale??o.startScale??1,this._endScale=o.scale??o.endScale??1,this._emissionRate=o.emissionRate??5,this._minimumSpeed=o.speed??o.minimumSpeed??1,this._maximumSpeed=o.speed??o.maximumSpeed??1,this._minimumParticleLife=o.particleLife??o.minimumParticleLife??5,this._maximumParticleLife=o.particleLife??o.maximumParticleLife??5,this._minimumMass=o.mass??o.minimumMass??1,this._maximumMass=o.mass??o.maximumMass??1,this._minimumImageSize=rt.clone(o.imageSize??o.minimumImageSize??P7e),this._maximumImageSize=rt.clone(o.imageSize??o.maximumImageSize??P7e),this._sizeInMeters=o.sizeInMeters??!1,this._lifetime=o.lifetime??Number.MAX_VALUE,this._billboardCollection=void 0,this._particles=[],this._particlePool=[],this._previousTime=void 0,this._currentTime=0,this._carryOver=0,this._complete=new Tr,this._isComplete=!1,this._updateParticlePool=!0,this._particleEstimate=0}Object.defineProperties(o$.prototype,{emitter:{get:function(){return this._emitter},set:function(o){this._emitter=o}},bursts:{get:function(){return this._bursts},set:function(o){this._bursts=o,this._updateParticlePool=!0}},modelMatrix:{get:function(){return this._modelMatrix},set:function(o){this._matrixDirty=this._matrixDirty||!Ee.equals(this._modelMatrix,o),Ee.clone(o,this._modelMatrix)}},emitterModelMatrix:{get:function(){return this._emitterModelMatrix},set:function(o){this._matrixDirty=this._matrixDirty||!Ee.equals(this._emitterModelMatrix,o),Ee.clone(o,this._emitterModelMatrix)}},startColor:{get:function(){return this._startColor},set:function(o){Xe.clone(o,this._startColor)}},endColor:{get:function(){return this._endColor},set:function(o){Xe.clone(o,this._endColor)}},startScale:{get:function(){return this._startScale},set:function(o){this._startScale=o}},endScale:{get:function(){return this._endScale},set:function(o){this._endScale=o}},emissionRate:{get:function(){return this._emissionRate},set:function(o){this._emissionRate=o,this._updateParticlePool=!0}},minimumSpeed:{get:function(){return this._minimumSpeed},set:function(o){this._minimumSpeed=o}},maximumSpeed:{get:function(){return this._maximumSpeed},set:function(o){this._maximumSpeed=o}},minimumParticleLife:{get:function(){return this._minimumParticleLife},set:function(o){this._minimumParticleLife=o}},maximumParticleLife:{get:function(){return this._maximumParticleLife},set:function(o){this._maximumParticleLife=o,this._updateParticlePool=!0}},minimumMass:{get:function(){return this._minimumMass},set:function(o){this._minimumMass=o}},maximumMass:{get:function(){return this._maximumMass},set:function(o){this._maximumMass=o}},minimumImageSize:{get:function(){return this._minimumImageSize},set:function(o){this._minimumImageSize=o}},maximumImageSize:{get:function(){return this._maximumImageSize},set:function(o){this._maximumImageSize=o}},sizeInMeters:{get:function(){return this._sizeInMeters},set:function(o){this._sizeInMeters=o}},lifetime:{get:function(){return this._lifetime},set:function(o){this._lifetime=o}},complete:{get:function(){return this._complete}},isComplete:{get:function(){return this._isComplete}}});function wYi(o){let f=o._emissionRate,m=o._maximumParticleLife,x=0,y=o._bursts;if(F(y)){let L=y.length;for(let I=0;I<L;++I)x+=y[I].maximum}let v=o._billboardCollection,C=o.image,T=Math.ceil(f*m+x),S=o._particles,w=o._particlePool,E=Math.max(T-S.length-w.length,0);for(let L=0;L<E;++L){let I=new Lde;I._billboard=v.add({image:C,show:!1}),w.push(I)}o._particleEstimate=T}function EYi(o){let f=o._particlePool.pop();return F(f)||(f=new Lde),f}function LYi(o,f){o._particlePool.push(f)}function PYi(o){let f=o._particles,m=o._particlePool,x=o._billboardCollection,y=f.length,v=m.length,C=o._particleEstimate,T=v-Math.max(C-y-v,0);for(let S=T;S<v;++S){let w=m[S];x.remove(w._billboard)}m.length=T}function IYi(o){F(o._billboard)&&(o._billboard.show=!1)}function I7e(o,f){let m=f._billboard;F(m)||(m=f._billboard=o._billboardCollection.add({image:f.image})),m.width=f.imageSize.x,m.height=f.imageSize.y,m.position=f.position,m.sizeInMeters=o.sizeInMeters,m.show=!0;let x=be.lerp(f.startColor.red,f.endColor.red,f.normalizedAge),y=be.lerp(f.startColor.green,f.endColor.green,f.normalizedAge),v=be.lerp(f.startColor.blue,f.endColor.blue,f.normalizedAge),C=be.lerp(f.startColor.alpha,f.endColor.alpha,f.normalizedAge);m.color=new Xe(x,y,v,C),m.scale=be.lerp(f.startScale,f.endScale,f.normalizedAge)}function RYi(o,f){f.startColor=Xe.clone(o._startColor,f.startColor),f.endColor=Xe.clone(o._endColor,f.endColor),f.startScale=o._startScale,f.endScale=o._endScale,f.image=o.image,f.life=be.randomBetween(o._minimumParticleLife,o._maximumParticleLife),f.mass=be.randomBetween(o._minimumMass,o._maximumMass),f.imageSize.x=be.randomBetween(o._minimumImageSize.x,o._maximumImageSize.x),f.imageSize.y=be.randomBetween(o._minimumImageSize.y,o._maximumImageSize.y),f._normalizedAge=0,f._age=0;let m=be.randomBetween(o._minimumSpeed,o._maximumSpeed);Z.multiplyByScalar(f.velocity,m,f.velocity),o._particles.push(f)}function AYi(o,f){if(o._isComplete)return 0;f=be.mod(f,o._lifetime);let m=f*o._emissionRate,x=Math.floor(m);if(o._carryOver+=m-x,o._carryOver>1&&(x++,o._carryOver-=1),F(o.bursts)){let y=o.bursts.length;for(let v=0;v<y;v++){let C=o.bursts[v],T=o._currentTime;F(C)&&!C._complete&&T>C.time&&(x+=be.randomBetween(C.minimum,C.maximum),C._complete=!0)}}return x}var xoe=new Z;o$.prototype.update=function(o){if(!this.show)return;F(this._billboardCollection)||(this._billboardCollection=new jE),this._updateParticlePool&&(wYi(this),this._updateParticlePool=!1);let f=0;this._previousTime&&(f=$t.secondsDifference(o.time,this._previousTime)),f<0&&(f=0);let m=this._particles,x=this._emitter,y=this.updateCallback,v,C,T=m.length;for(v=0;v<T;++v)C=m[v],C.update(f,y)?I7e(this,C):(IYi(C),LYi(this,C),m[v]=m[T-1],--v,--T);m.length=T;let S=AYi(this,f);if(S>0&&F(x)){this._matrixDirty&&(this._combinedMatrix=Ee.multiply(this.modelMatrix,this.emitterModelMatrix,this._combinedMatrix),this._matrixDirty=!1);let w=this._combinedMatrix;for(v=0;v<S;v++)C=EYi(this),this._emitter.emit(C),Z.add(C.position,C.velocity,xoe),Ee.multiplyByPoint(w,xoe,xoe),C.position=Ee.multiplyByPoint(w,C.position,C.position),Z.subtract(xoe,C.position,C.velocity),Z.normalize(C.velocity,C.velocity),RYi(this,C),I7e(this,C)}if(this._billboardCollection.update(o),this._previousTime=$t.clone(o.time,this._previousTime),this._currentTime+=f,this._lifetime!==Number.MAX_VALUE&&this._currentTime>this._lifetime)if(this.loop){if(this._currentTime=be.mod(this._currentTime,this._lifetime),this.bursts){let w=this.bursts.length;for(v=0;v<w;v++)this.bursts[v]._complete=!1}}else this._isComplete=!0,this._complete.raiseEvent(this);o.frameNumber%120===0&&PYi(this)};o$.prototype.isDestroyed=function(){return!1};o$.prototype.destroy=function(){return this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),yr(this)};var QS=o$;function W1(){wt.throwInstantiationError()}W1.computeDefaultLevelZeroMaximumGeometricError=function(o){return o.ellipsoid.maximumRadius*2*Math.PI*.25/(65*o.getNumberOfXTilesAtLevel(0))};Object.defineProperties(W1.prototype,{quadtree:{get:wt.throwInstantiationError,set:wt.throwInstantiationError},tilingScheme:{get:wt.throwInstantiationError},errorEvent:{get:wt.throwInstantiationError}});W1.prototype.update=wt.throwInstantiationError;W1.prototype.beginUpdate=wt.throwInstantiationError;W1.prototype.endUpdate=wt.throwInstantiationError;W1.prototype.getLevelMaximumGeometricError=wt.throwInstantiationError;W1.prototype.loadTile=wt.throwInstantiationError;W1.prototype.computeTileVisibility=wt.throwInstantiationError;W1.prototype.showTileThisFrame=wt.throwInstantiationError;W1.prototype.computeDistanceToTile=wt.throwInstantiationError;W1.prototype.isDestroyed=wt.throwInstantiationError;W1.prototype.destroy=wt.throwInstantiationError;var OO=W1;function MFe(o){o=o??1,this._radius=o??1}Object.defineProperties(MFe.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});MFe.prototype.emit=function(o){let f=be.randomBetween(0,be.TWO_PI),m=be.randomBetween(0,be.PI),x=be.randomBetween(0,this._radius),y=x*Math.cos(f)*Math.sin(m),v=x*Math.sin(f)*Math.sin(m),C=x*Math.cos(m);o.position=Z.fromElements(y,v,C,o.position),o.velocity=Z.normalize(o.position,o.velocity)};var H4=MFe;function a$(){}a$.prototype.evaluate=function(o,f){wt.throwInstantiationError()};a$.prototype.evaluateColor=function(o,f){wt.throwInstantiationError()};a$.prototype.getShaderFunction=function(o,f,m,x){wt.throwInstantiationError()};a$.prototype.getVariables=function(){wt.throwInstantiationError()};var Bxt=a$;function $H(o){this._ready=!1,this._provider=void 0,this._errorEvent=new Tr,this._readyEvent=new Tr,VYi(this,o)}Object.defineProperties($H.prototype,{errorEvent:{get:function(){return this._errorEvent}},readyEvent:{get:function(){return this._readyEvent}},ready:{get:function(){return this._ready}},provider:{get:function(){return this._provider}}});$H.fromWorldTerrain=function(o){return new $H(gde(o))};$H.fromWorldBathymetry=function(o){return new $H(cFe(o))};function MYi(o,f){o.numberOfListeners>0?o.raiseEvent(f):console.error(f)}async function VYi(o,f){let m;try{m=await Promise.resolve(f),o._provider=m,o._ready=!0,o._readyEvent.raiseEvent(m)}catch(x){MYi(o._errorEvent,x)}}var VFe=$H;function z4(){}z4.prototype.boundingVolume=void 0;z4.prototype.boundingSphere=void 0;z4.prototype.distanceToCamera=function(o){wt.throwInstantiationError()};z4.prototype.intersectPlane=function(o){wt.throwInstantiationError()};z4.prototype.createDebugVolume=function(o){wt.throwInstantiationError()};var Hxt=z4;function s$(o){o=o??si.EMPTY_OBJECT,this._tilingScheme=F(o.tilingScheme)?o.tilingScheme:new _h({ellipsoid:o.ellipsoid}),this._color=o.color??Xe.YELLOW,this._errorEvent=new Tr,this._tileWidth=o.tileWidth??256,this._tileHeight=o.tileHeight??256,this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0}Object.defineProperties(s$.prototype,{proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){}},minimumLevel:{get:function(){}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){}},hasAlphaChannel:{get:function(){return!0}}});s$.prototype.getTileCredits=function(o,f,m){};s$.prototype.requestImage=function(o,f,m,x){let y=document.createElement("canvas");y.width=256,y.height=256;let v=y.getContext("2d"),C=this._color.toCssColorString();return v.strokeStyle=C,v.lineWidth=2,v.strokeRect(1,1,255,255),v.font="bold 25px Arial",v.textAlign="center",v.fillStyle=C,v.fillText(`L: ${m}`,124,86),v.fillText(`X: ${o}`,124,136),v.fillText(`Y: ${f}`,124,186),Promise.resolve(y)};s$.prototype.pickFeatures=function(o,f,m,x,y){};var l$=s$;function GFe(o){wt.throwInstantiationError()}GFe.prototype.isReady=wt.throwInstantiationError;GFe.prototype.shouldDiscardImage=wt.throwInstantiationError;var zxt=GFe,GYi={START:0,LOADING:1,READY:2,UPSAMPLED_ONLY:3},Yxt=Object.freeze(GYi);function Pde(o,f){this.show=!0,F(o)||(o=new Er),this.rectangle=Er.clone(o),F(f)||(f=Co.fromType(Co.ColorType,{color:new Xe(1,1,1,1)})),this.material=f,this._material=void 0,this._overlayCommand=void 0,this._rs=void 0}Pde.prototype.update=function(o){if(!this.show)return;let f=this._rs;if((!F(f)||!Er.equals(f.viewport,this.rectangle))&&(this._rs=cn.fromCache({blending:ru.ALPHA_BLEND,viewport:this.rectangle})),o.passes.render){let m=o.context;if(this._material!==this.material||!F(this._overlayCommand)){this._material=this.material,F(this._overlayCommand)&&this._overlayCommand.shaderProgram.destroy();let x=new Wr({sources:[this._material.shaderSource,rFe]});this._overlayCommand=m.createViewportQuadCommand(x,{renderState:this._rs,uniformMap:this._material._uniforms,owner:this}),this._overlayCommand.pass=xr.OVERLAY}this._material.update(m),this._overlayCommand.renderState=this._rs,this._overlayCommand.uniformMap=this._material._uniforms,o.commandList.push(this._overlayCommand)}};Pde.prototype.isDestroyed=function(){return!1};Pde.prototype.destroy=function(){return F(this._overlayCommand)&&(this._overlayCommand.shaderProgram=this._overlayCommand.shaderProgram&&this._overlayCommand.shaderProgram.destroy()),yr(this)};var Y4=Pde;function FFe(){wt.throwInstantiationError()}Object.defineProperties(FFe.prototype,{globalTransform:{get:wt.throwInstantiationError},shapeTransform:{get:wt.throwInstantiationError},shape:{get:wt.throwInstantiationError},minBounds:{get:wt.throwInstantiationError},maxBounds:{get:wt.throwInstantiationError},dimensions:{get:wt.throwInstantiationError},paddingBefore:{get:wt.throwInstantiationError},paddingAfter:{get:wt.throwInstantiationError},names:{get:wt.throwInstantiationError},types:{get:wt.throwInstantiationError},componentTypes:{get:wt.throwInstantiationError},minimumValues:{get:wt.throwInstantiationError},maximumValues:{get:wt.throwInstantiationError},maximumTileCount:{get:wt.throwInstantiationError},availableLevels:{get:wt.throwInstantiationError},keyframeCount:{get:wt.throwInstantiationError},timeIntervalCollection:{get:wt.throwInstantiationError}});FFe.prototype.requestData=function(o){wt.throwInstantiationError()};var Kxt=FFe;function XO(){wt.throwInstantiationError()}Object.defineProperties(XO.prototype,{orientedBoundingBox:{get:wt.throwInstantiationError},boundingSphere:{get:wt.throwInstantiationError},boundTransform:{get:wt.throwInstantiationError},shapeTransform:{get:wt.throwInstantiationError},shaderUniforms:{get:wt.throwInstantiationError},shaderDefines:{get:wt.throwInstantiationError},shaderMaximumIntersectionsLength:{get:wt.throwInstantiationError}});XO.prototype.update=wt.throwInstantiationError;XO.prototype.computeOrientedBoundingBoxForTile=wt.throwInstantiationError;XO.prototype.computeOrientedBoundingBoxForSample=wt.throwInstantiationError;XO.DefaultMinBounds=wt.throwInstantiationError;XO.DefaultMaxBounds=wt.throwInstantiationError;var Jxt=XO,FYi=`in vec2 depth;
}`;this.material=void 0,this.translucent=o.translucent??!1,this._vertexShaderSource=o.vertexShaderSource??C,this._fragmentShaderSource=o.fragmentShaderSource??T,this._renderState=Sd.getDefaultRenderState(!1,!1,o.renderState),this._closed=o.closed??!1,this._attributeName=f,this._glslDatatype=x}Object.defineProperties(r$.prototype,{vertexShaderSource:{get:function(){return this._vertexShaderSource}},fragmentShaderSource:{get:function(){return this._fragmentShaderSource}},renderState:{get:function(){return this._renderState}},closed:{get:function(){return this._closed}},attributeName:{get:function(){return this._attributeName}},glslDatatype:{get:function(){return this._glslDatatype}}});r$.prototype.getFragmentShaderSource=Sd.prototype.getFragmentShaderSource;r$.prototype.isTranslucent=Sd.prototype.isTranslucent;r$.prototype.getRenderState=Sd.prototype.getRenderState;var Rxt=r$;function wde(o){o=o??si.EMPTY_OBJECT,this.length=o.length??1e7,this._length=void 0,this.width=o.width??2,this._width=void 0,this.show=o.show??!0,this.modelMatrix=Ee.clone(o.modelMatrix??Ee.IDENTITY),this._modelMatrix=new Ee,this.id=o.id,this._id=void 0,this._primitive=void 0}wde.prototype.update=function(o){if(this.show){if(!F(this._primitive)||!Ee.equals(this._modelMatrix,this.modelMatrix)||this._length!==this.length||this._width!==this.width||this._id!==this.id){this._modelMatrix=Ee.clone(this.modelMatrix,this._modelMatrix),this._length=this.length,this._width=this.width,this._id=this.id,F(this._primitive)&&this._primitive.destroy(),this.modelMatrix[12]===0&&this.modelMatrix[13]===0&&this.modelMatrix[14]===0&&(this.modelMatrix[14]=.01);let f=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_X],width:this.width,vertexFormat:om.VERTEX_FORMAT,colors:[Xe.RED,Xe.RED],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),m=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_Y],width:this.width,vertexFormat:om.VERTEX_FORMAT,colors:[Xe.GREEN,Xe.GREEN],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this}),x=new Wn({geometry:new B_({positions:[Z.ZERO,Z.UNIT_Z],width:this.width,vertexFormat:om.VERTEX_FORMAT,colors:[Xe.BLUE,Xe.BLUE],arcType:qa.NONE}),modelMatrix:Ee.multiplyByUniformScale(this.modelMatrix,this.length,new Ee),id:this.id,pickPrimitive:this});this._primitive=new ta({geometryInstances:[f,m,x],appearance:new om,asynchronous:!1})}this._primitive.update(o)}};wde.prototype.isDestroyed=function(){return!1};wde.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),yr(this)};var LFe=wde;function hYi(o){this.direction=Z.clone(o.direction),this.color=Xe.clone(o.color??Xe.WHITE),this.intensity=o.intensity??1}var k4=hYi;function wb(o){this._scene=o.scene,this.samplingWindow=o.samplingWindow??wb.defaultSettings.samplingWindow,this.quietPeriod=o.quietPeriod??wb.defaultSettings.quietPeriod,this.warmupPeriod=o.warmupPeriod??wb.defaultSettings.warmupPeriod,this.minimumFrameRateDuringWarmup=o.minimumFrameRateDuringWarmup??wb.defaultSettings.minimumFrameRateDuringWarmup,this.minimumFrameRateAfterWarmup=o.minimumFrameRateAfterWarmup??wb.defaultSettings.minimumFrameRateAfterWarmup,this._lowFrameRate=new Tr,this._nominalFrameRate=new Tr,this._frameTimes=[],this._needsQuietPeriod=!0,this._quietPeriodEndTime=0,this._warmupPeriodEndTime=0,this._frameRateIsLow=!1,this._lastFramesPerSecond=void 0,this._pauseCount=0;let f=this;this._preUpdateRemoveListener=this._scene.preUpdate.addEventListener(function(y,v){dYi(f,v)}),this._hiddenPropertyName=document.hidden!==void 0?"hidden":document.mozHidden!==void 0?"mozHidden":document.msHidden!==void 0?"msHidden":document.webkitHidden!==void 0?"webkitHidden":void 0;let m=document.hidden!==void 0?"visibilitychange":document.mozHidden!==void 0?"mozvisibilitychange":document.msHidden!==void 0?"msvisibilitychange":document.webkitHidden!==void 0?"webkitvisibilitychange":void 0;function x(){pYi(f)}this._visibilityChangeRemoveListener=void 0,F(m)&&(document.addEventListener(m,x,!1),this._visibilityChangeRemoveListener=function(){document.removeEventListener(m,x,!1)})}wb.defaultSettings={samplingWindow:5,quietPeriod:2,warmupPeriod:5,minimumFrameRateDuringWarmup:4,minimumFrameRateAfterWarmup:8};wb.fromScene=function(o){return(!F(o._frameRateMonitor)||o._frameRateMonitor.isDestroyed())&&(o._frameRateMonitor=new wb({scene:o})),o._frameRateMonitor};Object.defineProperties(wb.prototype,{scene:{get:function(){return this._scene}},lowFrameRate:{get:function(){return this._lowFrameRate}},nominalFrameRate:{get:function(){return this._nominalFrameRate}},lastFramesPerSecond:{get:function(){return this._lastFramesPerSecond}}});wb.prototype.pause=function(){++this._pauseCount,this._pauseCount===1&&(this._frameTimes.length=0,this._lastFramesPerSecond=void 0)};wb.prototype.unpause=function(){--this._pauseCount,this._pauseCount<=0&&(this._pauseCount=0,this._needsQuietPeriod=!0)};wb.prototype.isDestroyed=function(){return!1};wb.prototype.destroy=function(){return this._preUpdateRemoveListener(),F(this._visibilityChangeRemoveListener)&&this._visibilityChangeRemoveListener(),yr(this)};function dYi(o,f){if(o._pauseCount>0)return;let m=lh();if(o._needsQuietPeriod)o._needsQuietPeriod=!1,o._frameTimes.length=0,o._quietPeriodEndTime=m+o.quietPeriod/cc.SECONDS_PER_MILLISECOND,o._warmupPeriodEndTime=o._quietPeriodEndTime+(o.warmupPeriod+o.samplingWindow)/cc.SECONDS_PER_MILLISECOND;else if(m>=o._quietPeriodEndTime){o._frameTimes.push(m);let x=m-o.samplingWindow/cc.SECONDS_PER_MILLISECOND;if(o._frameTimes.length>=2&&o._frameTimes[0]<=x){for(;o._frameTimes.length>=2&&o._frameTimes[1]<x;)o._frameTimes.shift();let y=(m-o._frameTimes[0])/(o._frameTimes.length-1);o._lastFramesPerSecond=1e3/y;let v=1e3/(m>o._warmupPeriodEndTime?o.minimumFrameRateAfterWarmup:o.minimumFrameRateDuringWarmup);y>v?o._frameRateIsLow||(o._frameRateIsLow=!0,o._needsQuietPeriod=!0,o.lowFrameRate.raiseEvent(o.scene,o._lastFramesPerSecond)):o._frameRateIsLow&&(o._frameRateIsLow=!1,o._needsQuietPeriod=!0,o.nominalFrameRate.raiseEvent(o.scene,o._lastFramesPerSecond))}}}function pYi(o){document[o._hiddenPropertyName]?o.pause():o.unpause()}var PFe=wb,fYi=k0(j$e(),1);function IFe(){this._image=new Image}IFe.prototype.isReady=function(){return!0};IFe.prototype.shouldDiscardImage=function(o){return o===this._image};function P9(o){o=o??si.EMPTY_OBJECT,this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0,this._tileDiscardPolicy=o.tileDiscardPolicy,this._tilingScheme=new _h({numberOfLevelZeroTilesX:2,numberOfLevelZeroTilesY:2,rectangle:new vi(-be.PI,-be.PI,be.PI,be.PI),ellipsoid:o.ellipsoid});let f=o.credit;typeof f=="string"&&(f=new Oa(f)),this._credit=f,this._tileWidth=256,this._tileHeight=256,this._maximumLevel=23,F(this._tileDiscardPolicy)||(this._tileDiscardPolicy=new IFe),this._errorEvent=new Tr}Object.defineProperties(P9.prototype,{url:{get:function(){return this._metadata.url}},proxy:{get:function(){return this._metadata.proxy}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){return this._maximumLevel}},minimumLevel:{get:function(){return 0}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){return this._tileDiscardPolicy}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){return this._credit}},hasAlphaChannel:{get:function(){return!1}}});P9.fromMetadata=function(o,f){if(!o.imageryPresent)throw new Oi(`The server ${o.url} doesn't have imagery`);let m=new P9(f);return m._metadata=o,m};P9.prototype.getTileCredits=function(o,f,m){let x=this._metadata,y=x.getTileInformation(o,f,m);if(F(y)){let v=x.providers[y.imageryProvider];if(F(v))return[v]}};P9.prototype.requestImage=function(o,f,m,x){let y=this._tileDiscardPolicy._image,v=this._metadata,C=Z4.tileXYToQuadKey(o,f,m),T=v.getTileInformation(o,f,m);if(!F(T)){if(v.isValid(C)){let w=new hm({throttle:x.throttle,throttleByServer:x.throttleByServer,type:x.type,priorityFunction:x.priorityFunction});v.populateSubtree(o,f,m,w);return}return Promise.resolve(y)}if(!T.hasImagery())return Promise.resolve(y);let S=mYi(this,T,o,f,m,x).fetchArrayBuffer();if(F(S))return S.then(function(w){aFe(v.key,w);let E=new Uint8Array(w),L,I=v.protoImagery;if((!F(I)||!I)&&(L=xYi(E)),!F(L)&&(!F(I)||I)){let R=gYi(E);L=R.imageType,E=R.imageData}return!F(L)||!F(E)?y:Jz({uint8Array:E,format:L,flipY:!0})})};P9.prototype.pickFeatures=function(o,f,m,x,y){};function mYi(o,f,m,x,y,v){let C=Z4.tileXYToQuadKey(m,x,y),T=f.imageryVersion;return T=F(T)&&T>0?T:1,o._metadata.resource.getDerivedResource({url:`flatfile?f1-0${C}-i.${T.toString()}`,request:v})}function xYi(o){let f="JFIF";if(o[6]===f.charCodeAt(0)&&o[7]===f.charCodeAt(1)&&o[8]===f.charCodeAt(2)&&o[9]===f.charCodeAt(3))return"image/jpeg";let m="PNG";if(o[1]===m.charCodeAt(0)&&o[2]===m.charCodeAt(1)&&o[3]===m.charCodeAt(2))return"image/png"}function gYi(o){let f=fYi.Reader.create(o),m=f.len,x={};for(;f.pos<m;){let C=f.uint32(),T;switch(C>>>3){case 1:x.imageType=f.uint32();break;case 2:x.imageData=f.bytes();break;case 3:x.alphaType=f.uint32();break;case 4:x.imageAlpha=f.bytes();break;case 5:if(T=x.copyrightIds,F(T)||(T=x.copyrightIds=[]),(C&7)===2){let S=f.uint32()+f.pos;for(;f.pos<S;)T.push(f.uint32())}else T.push(f.uint32());break;default:f.skipType(C&7);break}}let y=x.imageType;if(F(y))switch(y){case 0:x.imageType="image/jpeg";break;case 4:x.imageType="image/png";break;default:throw new Oi("GoogleEarthEnterpriseImageryProvider: Unsupported image type.")}let v=x.alphaType;return F(v)&&v!==0&&(console.log("GoogleEarthEnterpriseImageryProvider: External alpha not supported."),delete x.alphaType,delete x.imageAlpha),x}var Axt=P9,yYi=new Xe(1,1,1,.4),_Yi=new Xe(0,1,0,.05),vYi=new Xe(0,.5,0,.2);function ZO(o){o=o??si.EMPTY_OBJECT,this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0,this._tilingScheme=F(o.tilingScheme)?o.tilingScheme:new _h({ellipsoid:o.ellipsoid}),this._cells=o.cells??8,this._color=o.color??yYi,this._glowColor=o.glowColor??_Yi,this._glowWidth=o.glowWidth??6,this._backgroundColor=o.backgroundColor??vYi,this._errorEvent=new Tr,this._tileWidth=o.tileWidth??256,this._tileHeight=o.tileHeight??256,this._canvasSize=o.canvasSize??256,this._canvas=this._createGridCanvas()}Object.defineProperties(ZO.prototype,{proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){}},minimumLevel:{get:function(){}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){}},hasAlphaChannel:{get:function(){return!0}}});ZO.prototype._drawGrid=function(o){let f=this._canvasSize;for(let m=0;m<=this._cells;++m){let x=1+m/this._cells*(f-1);o.moveTo(x,0),o.lineTo(x,f),o.moveTo(0,x),o.lineTo(f,x)}o.stroke()};ZO.prototype._createGridCanvas=function(){let o=document.createElement("canvas");o.width=this._canvasSize,o.height=this._canvasSize;let f=0,m=this._canvasSize,x=o.getContext("2d"),y=this._backgroundColor.toCssColorString();x.fillStyle=y,x.fillRect(f,f,m,m);let v=this._glowColor.toCssColorString();x.strokeStyle=v,x.lineWidth=this._glowWidth,x.strokeRect(f,f,m,m),this._drawGrid(x),x.lineWidth=this._glowWidth*.5,x.strokeRect(f,f,m,m),this._drawGrid(x);let C=this._color.toCssColorString();return x.strokeStyle=C,x.lineWidth=2,x.strokeRect(f,f,m,m),x.lineWidth=1,this._drawGrid(x),o};ZO.prototype.getTileCredits=function(o,f,m){};ZO.prototype.requestImage=function(o,f,m,x){return Promise.resolve(this._canvas)};ZO.prototype.pickFeatures=function(o,f,m,x,y){};var Mxt=ZO,n$={};n$.createTilesetFromIModelId=async function(o,f){let{exports:m}=await wg.getExports(o);if(m.length>0&&m.every(T=>T.status===wg.ExportStatus.Invalid))throw new Oi(`All exports for this iModel are Invalid: ${o}`);let x=m.find(T=>T.status===wg.ExportStatus.Complete);if(!F(x))return;let y=new URL(x._links.mesh.href);y.pathname=`${y.pathname}/tileset.json`;let v=y.toString(),C=new Mr({url:v});return _0.fromUrl(C,f)};n$.createTilesetForRealityDataId=async function(o,f,m,x){if(!F(m)||!F(x)){let v=await wg.getRealityDataMetadata(o,f);x=v.rootDocument,m=v.type}if(![wg.RealityDataType.Cesium3DTiles,wg.RealityDataType.PNTS,wg.RealityDataType.RealityMesh3DTiles,wg.RealityDataType.Terrain3DTiles].includes(m))throw new Oi(`Reality data type is not a mesh type: ${m}`);let y=await wg.getRealityDataURL(o,f,x);return _0.fromUrl(y,{maximumScreenSpaceError:4})};n$.createDataSourceForRealityDataId=async function(o,f,m,x){if(!F(m)||!F(x)){let v=await wg.getRealityDataMetadata(o,f);x=v.rootDocument,m=v.type}if(![wg.RealityDataType.KML,wg.RealityDataType.GeoJSON].includes(m))throw new Oi(`Reality data type is not a data source type: ${m}`);let y=await wg.getRealityDataURL(o,f,x);return m===wg.RealityDataType.GeoJSON?qZ.load(y):I7.load(y)};n$.loadGeospatialFeatures=async function(o,f,m){let x=m??1e4,y=`${wg.apiEndpoint}geospatial-features/itwins/${o}/ogc/collections/${f}/items`,v=new Mr({url:y,headers:{Authorization:wg._getAuthorizationHeader(),Accept:"application/vnd.bentley.itwin-platform.v1+json"},queryParameters:{limit:x,client:"CesiumJS"}});return qZ.load(v)};var Vxt=n$;function Gxt(){}Object.defineProperties(Gxt.prototype,{color:{get:wt.throwInstantiationError},intensity:{get:wt.throwInstantiationError}});var Fxt=Gxt,bYi=/\/$/,Dxt=new Oa('&copy; <a href="https://www.mapbox.com/about/maps/">Mapbox</a> &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <strong><a href="https://www.mapbox.com/map-feedback/">Improve this map</a></strong>');function U4(o){o=o??si.EMPTY_OBJECT;let f=o.styleId,m=o.accessToken;this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0;let x=Mr.createIfNeeded(o.url??"https://api.mapbox.com/styles/v1/");this._styleId=f,this._accessToken=m;let y=o.tilesize??512;this._tilesize=y;let v=o.username??"mapbox";this._username=v;let C=F(o.scaleFactor)?"@2x":"",T=x.getUrlComponent();bYi.test(T)||(T+="/"),T+=`${this._username}/${f}/tiles/${this._tilesize}/{z}/{x}/{y}${C}`,x.url=T,x.setQueryParameters({access_token:m});let S;F(o.credit)?(S=o.credit,typeof S=="string"&&(S=new Oa(S))):S=Dxt,this._resource=x,this._imageryProvider=new Hb({url:x,credit:S,ellipsoid:o.ellipsoid,minimumLevel:o.minimumLevel,maximumLevel:o.maximumLevel,rectangle:o.rectangle})}Object.defineProperties(U4.prototype,{url:{get:function(){return this._imageryProvider.url}},rectangle:{get:function(){return this._imageryProvider.rectangle}},tileWidth:{get:function(){return this._imageryProvider.tileWidth}},tileHeight:{get:function(){return this._imageryProvider.tileHeight}},maximumLevel:{get:function(){return this._imageryProvider.maximumLevel}},minimumLevel:{get:function(){return this._imageryProvider.minimumLevel}},tilingScheme:{get:function(){return this._imageryProvider.tilingScheme}},tileDiscardPolicy:{get:function(){return this._imageryProvider.tileDiscardPolicy}},errorEvent:{get:function(){return this._imageryProvider.errorEvent}},credit:{get:function(){return this._imageryProvider.credit}},proxy:{get:function(){return this._imageryProvider.proxy}},hasAlphaChannel:{get:function(){return this._imageryProvider.hasAlphaChannel}}});U4.prototype.getTileCredits=function(o,f,m){};U4.prototype.requestImage=function(o,f,m,x){return this._imageryProvider.requestImage(o,f,m,x)};U4.prototype.pickFeatures=function(o,f,m,x,y){return this._imageryProvider.pickFeatures(o,f,m,x,y)};U4._defaultCredit=Dxt;var Nxt=U4;function RFe(o){}RFe.prototype.isReady=function(){return!0};RFe.prototype.shouldDiscardImage=function(o){return!1};var Wxt=RFe,CYi=new Oa("MapQuest, Open Street Map and contributors, CC-BY-SA");function _ae(o){o=o??si.EMPTY_OBJECT;let f=Mr.createIfNeeded(o.url??"https://tile.openstreetmap.org/");f.appendForwardSlash(),f.url+=`{z}/{x}/{y}${o.retinaTiles?"@2x":""}.${o.fileExtension??"png"}`;let m=new xp({ellipsoid:o.ellipsoid}),x=256,y=256,v=o.minimumLevel??0,C=o.maximumLevel,T=o.rectangle??m.rectangle,S=m.positionToTileXY(vi.southwest(T),v),w=m.positionToTileXY(vi.northeast(T),v),E=(Math.abs(w.x-S.x)+1)*(Math.abs(w.y-S.y)+1),L=o.credit??CYi;typeof L=="string"&&(L=new Oa(L)),Hb.call(this,{url:f,credit:L,tilingScheme:m,tileWidth:x,tileHeight:y,minimumLevel:v,maximumLevel:C,rectangle:T})}F(Object.create)&&(_ae.prototype=Object.create(Hb.prototype),_ae.prototype.constructor=_ae);var ME=_ae,TYi=new rt(1,1);function AFe(o){o=o??si.EMPTY_OBJECT,this.mass=o.mass??1,this.position=Z.clone(o.position??Z.ZERO),this.velocity=Z.clone(o.velocity??Z.ZERO),this.life=o.life??Number.MAX_VALUE,this.image=o.image,this.startColor=Xe.clone(o.startColor??Xe.WHITE),this.endColor=Xe.clone(o.endColor??Xe.WHITE),this.startScale=o.startScale??1,this.endScale=o.endScale??1,this.imageSize=rt.clone(o.imageSize??TYi),this._age=0,this._normalizedAge=0,this._billboard=void 0}Object.defineProperties(AFe.prototype,{age:{get:function(){return this._age}},normalizedAge:{get:function(){return this._normalizedAge}}});var L7e=new Z;AFe.prototype.update=function(o,f){return Z.multiplyByScalar(this.velocity,o,L7e),Z.add(this.position,L7e,this.position),F(f)&&f(this,o),this._age+=o,this.life===Number.MAX_VALUE?this._normalizedAge=0:this._normalizedAge=this._age/this.life,this._age<=this.life};var Ede=AFe;function Zxt(o){o=o??si.EMPTY_OBJECT,this.time=o.time??0,this.minimum=o.minimum??0,this.maximum=o.maximum??50,this._complete=!1}Object.defineProperties(Zxt.prototype,{complete:{get:function(){return this._complete}}});var B4=Zxt;function Oxt(o){}Oxt.prototype.emit=function(o){wt.throwInstantiationError()};var Xxt=Oxt,P7e=new rt(1,1);function o$(o){o=o??si.EMPTY_OBJECT,this.show=o.show??!0,this.updateCallback=o.updateCallback,this.loop=o.loop??!0,this.image=o.image??void 0;let f=o.emitter;F(f)||(f=new TFe(.5)),this._emitter=f,this._bursts=o.bursts,this._modelMatrix=Ee.clone(o.modelMatrix??Ee.IDENTITY),this._emitterModelMatrix=Ee.clone(o.emitterModelMatrix??Ee.IDENTITY),this._matrixDirty=!0,this._combinedMatrix=new Ee,this._startColor=Xe.clone(o.color??o.startColor??Xe.WHITE),this._endColor=Xe.clone(o.color??o.endColor??Xe.WHITE),this._startScale=o.scale??o.startScale??1,this._endScale=o.scale??o.endScale??1,this._emissionRate=o.emissionRate??5,this._minimumSpeed=o.speed??o.minimumSpeed??1,this._maximumSpeed=o.speed??o.maximumSpeed??1,this._minimumParticleLife=o.particleLife??o.minimumParticleLife??5,this._maximumParticleLife=o.particleLife??o.maximumParticleLife??5,this._minimumMass=o.mass??o.minimumMass??1,this._maximumMass=o.mass??o.maximumMass??1,this._minimumImageSize=rt.clone(o.imageSize??o.minimumImageSize??P7e),this._maximumImageSize=rt.clone(o.imageSize??o.maximumImageSize??P7e),this._sizeInMeters=o.sizeInMeters??!1,this._lifetime=o.lifetime??Number.MAX_VALUE,this._billboardCollection=void 0,this._particles=[],this._particlePool=[],this._previousTime=void 0,this._currentTime=0,this._carryOver=0,this._complete=new Tr,this._isComplete=!1,this._updateParticlePool=!0,this._particleEstimate=0}Object.defineProperties(o$.prototype,{emitter:{get:function(){return this._emitter},set:function(o){this._emitter=o}},bursts:{get:function(){return this._bursts},set:function(o){this._bursts=o,this._updateParticlePool=!0}},modelMatrix:{get:function(){return this._modelMatrix},set:function(o){this._matrixDirty=this._matrixDirty||!Ee.equals(this._modelMatrix,o),Ee.clone(o,this._modelMatrix)}},emitterModelMatrix:{get:function(){return this._emitterModelMatrix},set:function(o){this._matrixDirty=this._matrixDirty||!Ee.equals(this._emitterModelMatrix,o),Ee.clone(o,this._emitterModelMatrix)}},startColor:{get:function(){return this._startColor},set:function(o){Xe.clone(o,this._startColor)}},endColor:{get:function(){return this._endColor},set:function(o){Xe.clone(o,this._endColor)}},startScale:{get:function(){return this._startScale},set:function(o){this._startScale=o}},endScale:{get:function(){return this._endScale},set:function(o){this._endScale=o}},emissionRate:{get:function(){return this._emissionRate},set:function(o){this._emissionRate=o,this._updateParticlePool=!0}},minimumSpeed:{get:function(){return this._minimumSpeed},set:function(o){this._minimumSpeed=o}},maximumSpeed:{get:function(){return this._maximumSpeed},set:function(o){this._maximumSpeed=o}},minimumParticleLife:{get:function(){return this._minimumParticleLife},set:function(o){this._minimumParticleLife=o}},maximumParticleLife:{get:function(){return this._maximumParticleLife},set:function(o){this._maximumParticleLife=o,this._updateParticlePool=!0}},minimumMass:{get:function(){return this._minimumMass},set:function(o){this._minimumMass=o}},maximumMass:{get:function(){return this._maximumMass},set:function(o){this._maximumMass=o}},minimumImageSize:{get:function(){return this._minimumImageSize},set:function(o){this._minimumImageSize=o}},maximumImageSize:{get:function(){return this._maximumImageSize},set:function(o){this._maximumImageSize=o}},sizeInMeters:{get:function(){return this._sizeInMeters},set:function(o){this._sizeInMeters=o}},lifetime:{get:function(){return this._lifetime},set:function(o){this._lifetime=o}},complete:{get:function(){return this._complete}},isComplete:{get:function(){return this._isComplete}}});function SYi(o){let f=o._emissionRate,m=o._maximumParticleLife,x=0,y=o._bursts;if(F(y)){let L=y.length;for(let I=0;I<L;++I)x+=y[I].maximum}let v=o._billboardCollection,C=o.image,T=Math.ceil(f*m+x),S=o._particles,w=o._particlePool,E=Math.max(T-S.length-w.length,0);for(let L=0;L<E;++L){let I=new Ede;I._billboard=v.add({image:C,show:!1}),w.push(I)}o._particleEstimate=T}function wYi(o){let f=o._particlePool.pop();return F(f)||(f=new Ede),f}function EYi(o,f){o._particlePool.push(f)}function LYi(o){let f=o._particles,m=o._particlePool,x=o._billboardCollection,y=f.length,v=m.length,C=o._particleEstimate,T=v-Math.max(C-y-v,0);for(let S=T;S<v;++S){let w=m[S];x.remove(w._billboard)}m.length=T}function PYi(o){F(o._billboard)&&(o._billboard.show=!1)}function I7e(o,f){let m=f._billboard;F(m)||(m=f._billboard=o._billboardCollection.add({image:f.image})),m.width=f.imageSize.x,m.height=f.imageSize.y,m.position=f.position,m.sizeInMeters=o.sizeInMeters,m.show=!0;let x=be.lerp(f.startColor.red,f.endColor.red,f.normalizedAge),y=be.lerp(f.startColor.green,f.endColor.green,f.normalizedAge),v=be.lerp(f.startColor.blue,f.endColor.blue,f.normalizedAge),C=be.lerp(f.startColor.alpha,f.endColor.alpha,f.normalizedAge);m.color=new Xe(x,y,v,C),m.scale=be.lerp(f.startScale,f.endScale,f.normalizedAge)}function IYi(o,f){f.startColor=Xe.clone(o._startColor,f.startColor),f.endColor=Xe.clone(o._endColor,f.endColor),f.startScale=o._startScale,f.endScale=o._endScale,f.image=o.image,f.life=be.randomBetween(o._minimumParticleLife,o._maximumParticleLife),f.mass=be.randomBetween(o._minimumMass,o._maximumMass),f.imageSize.x=be.randomBetween(o._minimumImageSize.x,o._maximumImageSize.x),f.imageSize.y=be.randomBetween(o._minimumImageSize.y,o._maximumImageSize.y),f._normalizedAge=0,f._age=0;let m=be.randomBetween(o._minimumSpeed,o._maximumSpeed);Z.multiplyByScalar(f.velocity,m,f.velocity),o._particles.push(f)}function RYi(o,f){if(o._isComplete)return 0;f=be.mod(f,o._lifetime);let m=f*o._emissionRate,x=Math.floor(m);if(o._carryOver+=m-x,o._carryOver>1&&(x++,o._carryOver-=1),F(o.bursts)){let y=o.bursts.length;for(let v=0;v<y;v++){let C=o.bursts[v],T=o._currentTime;F(C)&&!C._complete&&T>C.time&&(x+=be.randomBetween(C.minimum,C.maximum),C._complete=!0)}}return x}var xoe=new Z;o$.prototype.update=function(o){if(!this.show)return;F(this._billboardCollection)||(this._billboardCollection=new jE),this._updateParticlePool&&(SYi(this),this._updateParticlePool=!1);let f=0;this._previousTime&&(f=$t.secondsDifference(o.time,this._previousTime)),f<0&&(f=0);let m=this._particles,x=this._emitter,y=this.updateCallback,v,C,T=m.length;for(v=0;v<T;++v)C=m[v],C.update(f,y)?I7e(this,C):(PYi(C),EYi(this,C),m[v]=m[T-1],--v,--T);m.length=T;let S=RYi(this,f);if(S>0&&F(x)){this._matrixDirty&&(this._combinedMatrix=Ee.multiply(this.modelMatrix,this.emitterModelMatrix,this._combinedMatrix),this._matrixDirty=!1);let w=this._combinedMatrix;for(v=0;v<S;v++)C=wYi(this),this._emitter.emit(C),Z.add(C.position,C.velocity,xoe),Ee.multiplyByPoint(w,xoe,xoe),C.position=Ee.multiplyByPoint(w,C.position,C.position),Z.subtract(xoe,C.position,C.velocity),Z.normalize(C.velocity,C.velocity),IYi(this,C),I7e(this,C)}if(this._billboardCollection.update(o),this._previousTime=$t.clone(o.time,this._previousTime),this._currentTime+=f,this._lifetime!==Number.MAX_VALUE&&this._currentTime>this._lifetime)if(this.loop){if(this._currentTime=be.mod(this._currentTime,this._lifetime),this.bursts){let w=this.bursts.length;for(v=0;v<w;v++)this.bursts[v]._complete=!1}}else this._isComplete=!0,this._complete.raiseEvent(this);o.frameNumber%120===0&&LYi(this)};o$.prototype.isDestroyed=function(){return!1};o$.prototype.destroy=function(){return this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),yr(this)};var QS=o$;function W1(){wt.throwInstantiationError()}W1.computeDefaultLevelZeroMaximumGeometricError=function(o){return o.ellipsoid.maximumRadius*2*Math.PI*.25/(65*o.getNumberOfXTilesAtLevel(0))};Object.defineProperties(W1.prototype,{quadtree:{get:wt.throwInstantiationError,set:wt.throwInstantiationError},tilingScheme:{get:wt.throwInstantiationError},errorEvent:{get:wt.throwInstantiationError}});W1.prototype.update=wt.throwInstantiationError;W1.prototype.beginUpdate=wt.throwInstantiationError;W1.prototype.endUpdate=wt.throwInstantiationError;W1.prototype.getLevelMaximumGeometricError=wt.throwInstantiationError;W1.prototype.loadTile=wt.throwInstantiationError;W1.prototype.computeTileVisibility=wt.throwInstantiationError;W1.prototype.showTileThisFrame=wt.throwInstantiationError;W1.prototype.computeDistanceToTile=wt.throwInstantiationError;W1.prototype.isDestroyed=wt.throwInstantiationError;W1.prototype.destroy=wt.throwInstantiationError;var OO=W1;function MFe(o){o=o??1,this._radius=o??1}Object.defineProperties(MFe.prototype,{radius:{get:function(){return this._radius},set:function(o){this._radius=o}}});MFe.prototype.emit=function(o){let f=be.randomBetween(0,be.TWO_PI),m=be.randomBetween(0,be.PI),x=be.randomBetween(0,this._radius),y=x*Math.cos(f)*Math.sin(m),v=x*Math.sin(f)*Math.sin(m),C=x*Math.cos(m);o.position=Z.fromElements(y,v,C,o.position),o.velocity=Z.normalize(o.position,o.velocity)};var H4=MFe;function a$(){}a$.prototype.evaluate=function(o,f){wt.throwInstantiationError()};a$.prototype.evaluateColor=function(o,f){wt.throwInstantiationError()};a$.prototype.getShaderFunction=function(o,f,m,x){wt.throwInstantiationError()};a$.prototype.getVariables=function(){wt.throwInstantiationError()};var kxt=a$;function $H(o){this._ready=!1,this._provider=void 0,this._errorEvent=new Tr,this._readyEvent=new Tr,MYi(this,o)}Object.defineProperties($H.prototype,{errorEvent:{get:function(){return this._errorEvent}},readyEvent:{get:function(){return this._readyEvent}},ready:{get:function(){return this._ready}},provider:{get:function(){return this._provider}}});$H.fromWorldTerrain=function(o){return new $H(gde(o))};$H.fromWorldBathymetry=function(o){return new $H(nFe(o))};function AYi(o,f){o.numberOfListeners>0?o.raiseEvent(f):console.error(f)}async function MYi(o,f){let m;try{m=await Promise.resolve(f),o._provider=m,o._ready=!0,o._readyEvent.raiseEvent(m)}catch(x){AYi(o._errorEvent,x)}}var VFe=$H;function z4(){}z4.prototype.boundingVolume=void 0;z4.prototype.boundingSphere=void 0;z4.prototype.distanceToCamera=function(o){wt.throwInstantiationError()};z4.prototype.intersectPlane=function(o){wt.throwInstantiationError()};z4.prototype.createDebugVolume=function(o){wt.throwInstantiationError()};var Uxt=z4;function s$(o){o=o??si.EMPTY_OBJECT,this._tilingScheme=F(o.tilingScheme)?o.tilingScheme:new _h({ellipsoid:o.ellipsoid}),this._color=o.color??Xe.YELLOW,this._errorEvent=new Tr,this._tileWidth=o.tileWidth??256,this._tileHeight=o.tileHeight??256,this._defaultAlpha=void 0,this._defaultNightAlpha=void 0,this._defaultDayAlpha=void 0,this._defaultBrightness=void 0,this._defaultContrast=void 0,this._defaultHue=void 0,this._defaultSaturation=void 0,this._defaultGamma=void 0,this._defaultMinificationFilter=void 0,this._defaultMagnificationFilter=void 0}Object.defineProperties(s$.prototype,{proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){}},minimumLevel:{get:function(){}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},credit:{get:function(){}},hasAlphaChannel:{get:function(){return!0}}});s$.prototype.getTileCredits=function(o,f,m){};s$.prototype.requestImage=function(o,f,m,x){let y=document.createElement("canvas");y.width=256,y.height=256;let v=y.getContext("2d"),C=this._color.toCssColorString();return v.strokeStyle=C,v.lineWidth=2,v.strokeRect(1,1,255,255),v.font="bold 25px Arial",v.textAlign="center",v.fillStyle=C,v.fillText(`L: ${m}`,124,86),v.fillText(`X: ${o}`,124,136),v.fillText(`Y: ${f}`,124,186),Promise.resolve(y)};s$.prototype.pickFeatures=function(o,f,m,x,y){};var l$=s$;function GFe(o){wt.throwInstantiationError()}GFe.prototype.isReady=wt.throwInstantiationError;GFe.prototype.shouldDiscardImage=wt.throwInstantiationError;var Bxt=GFe,VYi={START:0,LOADING:1,READY:2,UPSAMPLED_ONLY:3},Hxt=Object.freeze(VYi);function Lde(o,f){this.show=!0,F(o)||(o=new Er),this.rectangle=Er.clone(o),F(f)||(f=Co.fromType(Co.ColorType,{color:new Xe(1,1,1,1)})),this.material=f,this._material=void 0,this._overlayCommand=void 0,this._rs=void 0}Lde.prototype.update=function(o){if(!this.show)return;let f=this._rs;if((!F(f)||!Er.equals(f.viewport,this.rectangle))&&(this._rs=cn.fromCache({blending:ru.ALPHA_BLEND,viewport:this.rectangle})),o.passes.render){let m=o.context;if(this._material!==this.material||!F(this._overlayCommand)){this._material=this.material,F(this._overlayCommand)&&this._overlayCommand.shaderProgram.destroy();let x=new Wr({sources:[this._material.shaderSource,_Fe]});this._overlayCommand=m.createViewportQuadCommand(x,{renderState:this._rs,uniformMap:this._material._uniforms,owner:this}),this._overlayCommand.pass=xr.OVERLAY}this._material.update(m),this._overlayCommand.renderState=this._rs,this._overlayCommand.uniformMap=this._material._uniforms,o.commandList.push(this._overlayCommand)}};Lde.prototype.isDestroyed=function(){return!1};Lde.prototype.destroy=function(){return F(this._overlayCommand)&&(this._overlayCommand.shaderProgram=this._overlayCommand.shaderProgram&&this._overlayCommand.shaderProgram.destroy()),yr(this)};var Y4=Lde;function FFe(){wt.throwInstantiationError()}Object.defineProperties(FFe.prototype,{globalTransform:{get:wt.throwInstantiationError},shapeTransform:{get:wt.throwInstantiationError},shape:{get:wt.throwInstantiationError},minBounds:{get:wt.throwInstantiationError},maxBounds:{get:wt.throwInstantiationError},dimensions:{get:wt.throwInstantiationError},paddingBefore:{get:wt.throwInstantiationError},paddingAfter:{get:wt.throwInstantiationError},names:{get:wt.throwInstantiationError},types:{get:wt.throwInstantiationError},componentTypes:{get:wt.throwInstantiationError},minimumValues:{get:wt.throwInstantiationError},maximumValues:{get:wt.throwInstantiationError},maximumTileCount:{get:wt.throwInstantiationError},availableLevels:{get:wt.throwInstantiationError},keyframeCount:{get:wt.throwInstantiationError},timeIntervalCollection:{get:wt.throwInstantiationError}});FFe.prototype.requestData=function(o){wt.throwInstantiationError()};var zxt=FFe;function XO(){wt.throwInstantiationError()}Object.defineProperties(XO.prototype,{orientedBoundingBox:{get:wt.throwInstantiationError},boundingSphere:{get:wt.throwInstantiationError},boundTransform:{get:wt.throwInstantiationError},shapeTransform:{get:wt.throwInstantiationError},shaderUniforms:{get:wt.throwInstantiationError},shaderDefines:{get:wt.throwInstantiationError},shaderMaximumIntersectionsLength:{get:wt.throwInstantiationError}});XO.prototype.update=wt.throwInstantiationError;XO.prototype.computeOrientedBoundingBoxForTile=wt.throwInstantiationError;XO.prototype.computeOrientedBoundingBoxForSample=wt.throwInstantiationError;XO.DefaultMinBounds=wt.throwInstantiationError;XO.DefaultMaxBounds=wt.throwInstantiationError;var Yxt=XO,GYi=function(){var o=import.meta.url;return function(f){return f=f||{},f.ready}}(),vae={};vae.onRuntimeInitialized||(vae.onRuntimeInitialized=function(){},GYi(vae));var Kxt=vae,Q8=k0(J$e(),1),Jxt={};(function(o,f){o.FlowEcharts=f(Q8.default,o.Geoworld)})(Jxt,function(o,f){return function(m){var x={};function y(v){if(x[v])return x[v].exports;var C=x[v]={i:v,l:!1,exports:{}};return m[v].call(C.exports,C,C.exports,y),C.l=!0,C.exports}return y.m=m,y.c=x,y.d=function(v,C,T){y.o(v,C)||Object.defineProperty(v,C,{enumerable:!0,get:T})},y.r=function(v){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},y.t=function(v,C){if(C&1&&(v=y(v)),C&8||C&4&&typeof v=="object"&&v&&v.__esModule)return v;var T=Object.create(null);if(y.r(T),Object.defineProperty(T,"default",{enumerable:!0,value:v}),C&2&&typeof v!="string")for(var S in v)y.d(T,S,function(w){return v[w]}.bind(null,S));return T},y.n=function(v){var C=v&&v.__esModule?function(){return v.default}:function(){return v};return y.d(C,"a",C),C},y.o=function(v,C){return Object.prototype.hasOwnProperty.call(v,C)},y.p="",y(y.s=0)}([function(m,x,y){y(1);var v=y(7);m.exports=v},function(m,x,y){var v;v=function(C){return y(2).registerCoordinateSystem("GLMap",y(3)),y(5),y(6),y(2).registerAction({type:"GLMapRoam",event:"GLMapRoam",update:"updateLayout"},function(T,S){}),{version:"1.0.0"}}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){m.exports=o},function(m,x,y){var v;v=function(C){var T=y(2);function S(w,E){this._GLMap=w,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=E}return S.prototype.dimensions=["lng","lat"],S.prototype.setMapOffset=function(w){this._mapOffset=w},S.prototype.getBMap=function(){return this._GLMap},S.prototype.dataToPoint=function(w){var E=be.toRadians(80),L=[99999,99999],I=Z.fromDegrees(w[0],w[1]);if(!I)return L;var R=this._GLMap.cartesianToCanvasCoordinates(I);if(!R)return L;var P=this._GLMap;return P.mode===gi.SCENE3D&&Z.angleBetween(P.camera.position,I)>E?!1:[R.x-this._mapOffset[0],R.y-this._mapOffset[1]]},S.prototype.pointToData=function(L){var E=this._mapOffset,L=this._bmap.project([L[0]+E[0],L[1]+E[1]]);return[L.lng,L.lat]},S.prototype.getViewRect=function(){var w=this._api;return new T.graphic.BoundingRect(0,0,w.getWidth(),w.getHeight())},S.prototype.getRoamTransform=function(){return T.matrix.create()},S.dimensions=S.prototype.dimensions,S.create=function(w,E){var L;w.eachComponent("GLMap",function(I){var R=E.getZr().painter.getViewportRoot(),P=T.glMap;L=new S(P,E),L.setMapOffset(I.__mapOffset||[0,0]),I.coordinateSystem=L}),w.eachSeries(function(I){I.get("coordinateSystem")==="GLMap"&&(I.coordinateSystem=L)})},S}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){m.exports=f},function(m,x,y){var v;v=function(C){return y(2).extendComponentModel({type:"GLMap",getBMap:function(){return this.__GLMap},defaultOption:{roam:!1}})}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x,y){var v;v=function(C){return y(2).extendComponentView({type:"GLMap",init:function(T,S){this.api=S,Q8.default.glMap.postRender.addEventListener(this.moveHandler,this)},moveHandler:function(){this.api.dispatchAction({type:"GLMapRoam"})},render:function(T,S,w){},dispose:function(T,S){Q8.default.glMap.postRender.removeEventListener(this.moveHandler,this)}})}.call(x,y,x,m),v!==void 0&&(m.exports=v)},function(m,x){function y(v,C){this._mapContainer=v,this._overlay=this._createChartOverlay(),this._overlay.setOption(C)}y.prototype._createChartOverlay=function(){var v=this._mapContainer.scene;v.canvas.setAttribute("tabIndex",0);var C=document.createElement("div");return C.style.position="absolute",C.style.top=this._mapContainer.container.getBoundingClientRect().top+"px",C.style.left="0px",C.style.width=v.canvas.width+"px",C.style.height=v.canvas.height+"px",C.style.pointerEvents="none",C.setAttribute("id","echarts"),C.setAttribute("class","echartMap"),this._mapContainer.container.appendChild(C),this._echartsContainer=C,Q8.default.glMap=v,Q8.default.init(C)},y.prototype.dispose=function(){this._echartsContainer&&(this._mapContainer.container.removeChild(this._echartsContainer),this._echartsContainer=null),this._overlay&&(this._overlay.dispose(),this._overlay=null)},y.prototype.destroy=function(){this.dispose()},y.prototype.updateOverlay=function(v){this._overlay&&this._overlay.setOption(v)},y.prototype.getMap=function(){return this._mapContainer},y.prototype.getOverlay=function(){return this._overlay},m.exports=y}])});var Pde=Jxt.FlowEcharts,FYi=`in vec2 depth;
vec4 packDepth(float depth)
{
  const vec4 bias = vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);
@@ -21125,7 +21125,7 @@
              }
            }
        }
        `}),D=new Vf({name:`${f}Composite`,stages:[V,G],inputPreviousStageTexture:!1});function N(k){Object.defineProperties(k,{showGlow:{get(){return S},set(U){S=U}},edgeGlow:{get(){return w},set(U){w=U}},edgeStrength:{get(){return E},set(U){E=U}},thresholdAngle:{get(){return x},set(U){x=U}},showOutlineOnly:{get(){return v},set(U){v=U}},edgeOnly:{get(){return L},set(U){L=U}},useSingleColor:{get(){return y},set(U){y=U}},outlineWidth:{get(){return m},set(U){m=U}},visibleEdgeColor:{get(){return C},set(U){C=U}},hiddenEdgeColor:{get(){return T},set(U){T=U}}})}return N(D),D._uniforms=D._uniforms||{},N(D._uniforms),D}function d$(o){this._primitive=o,this._primitive.ripple=!1,this._primitive.snow=!1,this._primitive.heightFog=!1,this._primitive.fogHeight=100,this._primitive.regionAlpha=1,this._primitive.regionGradientDistance=1,this._primitive.fogGradientDistance=100,this._ripple=!1,this._snow=!1,this._heightFog=!1}Object.defineProperties(d$.prototype,{ripple:{set:function(o){this._ripple!==o&&(this._primitive.snow=!1,this._primitive.heightFog=!1),this._primitive.ripple=o,this._ripple=o}},snow:{set:function(o){this._snow!==o&&(this._primitive.ripple=!1,this._primitive.heightFog=!1),this._primitive.snow=o,this._snow=o}},heightFog:{set:function(o){this._heightFog!==o&&(this._primitive.snow=!1,this._primitive.ripple=!1),this._primitive.heightFog=o,this._heightFog=o}},fogHeight:{set:function(o){this._primitive.fogHeight=o}},fogGradientDistance:{set:function(o){this._primitive.fogGradientDistance=o}},regionAlpha:{set:function(o){this._primitive.regionAlpha=o}},regionGradientDistance:{set:function(o){this._primitive.regionGradientDistance=o}},disabled:{set:function(o){this.ripple=o,this.snow=o,this.heightFog=o,this._primitive.ripple=!1,this._primitive.snow=!1,this._primitive.heightFog=!1}}});d$.prototype.addPolygon=function(o){this._primitive.addFlattenPolygon(o)};d$.prototype.clearPolygon=function(){this._primitive.clearFlattenPolygon()};d$.prototype.update=function(){this._primitive.update()};var aDe=d$;function p$(o){this._terrainFlatten=new kO(o,!1,!0),this._terrainFlatten.ripple=!1,this._terrainFlatten.snow=!1,this._terrainFlatten.heightFog=!1,this._terrainFlatten.fogHeight=100,this._terrainFlatten.regionAlpha=1,this._terrainFlatten.regionGradientDistance=10,this._terrainFlatten.fogGradientDistance=100,this._ripple=!1,this._snow=!1,this._heightFog=!1}Object.defineProperties(p$.prototype,{ripple:{set:function(o){this._ripple!==o&&(this._terrainFlatten.snow=!1,this._terrainFlatten.heightFog=!1),this._terrainFlatten.ripple=o,this._ripple=o}},snow:{set:function(o){this._snow!==o&&(this._terrainFlatten.ripple=!1,this._terrainFlatten.heightFog=!1),this._terrainFlatten.snow=o,this._snow=o}},heightFog:{set:function(o){this._heightFog!==o&&(this._terrainFlatten.snow=!1,this._terrainFlatten.ripple=!1),this._terrainFlatten.heightFog=o,this._heightFog=o}},fogHeight:{set:function(o){this._terrainFlatten.fogHeight=o}},fogGradientDistance:{set:function(o){this._terrainFlatten.fogGradientDistance=o}},regionAlpha:{set:function(o){this._terrainFlatten.regionAlpha=o}},regionGradientDistance:{set:function(o){this._terrainFlatten.regionGradientDistance=o}},disabled:{set:function(o){this.ripple=o,this.snow=o,this.heightFog=o,this._terrainFlatten.ripple=!1,this._terrainFlatten.snow=!1,this._terrainFlatten.heightFog=!1}}});p$.prototype.addPolygon=function(o){this._terrainFlatten.addPolygon(o)};p$.prototype.clearPolygon=function(){this._terrainFlatten.clearPolygon()};p$.prototype.update=function(){this._terrainFlatten.update()};var sDe=p$;function zKi(o,f,m){let x=new rt(15,30),y=new Z,v=function(C,T){y=Z.normalize(C.position,y),y=Z.multiplyByScalar(y,-1050,y),C.position=Z.add(C.position,y,C.position);let S=Z.distance(o.camera.position,C.position),w=1;m<1e5&&(w=.1/(m/1e5));let E=m*w;S>E?C.endColor.alpha=0:C.endColor.alpha=Xe.BLUE.alpha/(S/E+.1)};return new QS({modelMatrix:new Ee.fromTranslation(f),speed:-1,lifetime:15,emitter:new wde(new Z(m,m,m)),startScale:5,endScale:0,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/littleRain.png`,emissionRate:9e3,startColor:new Xe(.8,.8,.8,0),endColor:new Xe(.8,.8,.8,.9),imageSize:x,updateCallback:v})}function YKi(o,f,m){let x=new rt(12,12),y=new rt(12*2,12*2),v=new Z,C=function(T,S){v=Z.normalize(T.position,v),Z.multiplyByScalar(v,be.randomBetween(-30,-300),v),T.velocity=Z.add(T.velocity,v,T.velocity);let w=Z.distance(o.camera.position,T.position);w>m?T.endColor.alpha=0:T.endColor.alpha=1/(w/m+.1)};return new QS({modelMatrix:new Ee.fromTranslation(f),minimumSpeed:-1,maximumSpeed:0,lifetime:15,emitter:new wde(new Z(m,m,m)),startScale:.5,endScale:1,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/snow.png`,emissionRate:7e3,startColor:Xe.WHITE.withAlpha(0),endColor:Xe.WHITE.withAlpha(1),minimumImageSize:x,maximumImageSize:y,updateCallback:C})}function KKi(o,f){let m=_r.eastNorthUpToFixedFrame(o),x=Ee.multiplyByPoint(m,new Z(f*.5,f*.5,0),new Z),y=Ee.multiplyByPoint(m,new Z(f*.5,-f*.5,0),new Z),v=Ee.multiplyByPoint(m,new Z(-f*.5,-f*.5,0),new Z),C=Ee.multiplyByPoint(m,new Z(-f*.5,f*.5,0),new Z),T=Gt.fromCartesian(x),S=Gt.fromCartesian(y),w=Gt.fromCartesian(v),E=Gt.fromCartesian(C);return[be.toDegrees(T.longitude),be.toDegrees(T.latitude),-1e4,be.toDegrees(S.longitude),be.toDegrees(S.latitude),-1e4,be.toDegrees(w.longitude),be.toDegrees(w.latitude),-1e4,be.toDegrees(E.longitude),be.toDegrees(E.latitude),-1e4]}function Qu(o,f,m,x){this._scene=o,this._primitive=f,this._position=m,this._radius=x,f&&(this._tilesetWeather=new aDe(f)),o&&(this._terrainWeather=new sDe(o)),this._enableWeatherType=Qu.TYPE_NONE,this._region=KKi(m,x),this._skyAtmosphereHueShift=o.skyAtmosphere.hueShift,this._skyAtmosphereSaturationShift=o.skyAtmosphere.saturationShift,this._skyAtmosphereBrightnessShift=o.skyAtmosphere.brightnessShift,this._fogDensity=o.fog.density,this._fogMinimumBrightness=o.fog.minimumBrightness}Object.defineProperties(Qu.prototype,{enableWeatherType:{get:function(){return this._enableWeatherType},set:function(o){this._enableWeatherType!==o&&(this._enableWeatherType!==Qu.TYPE_RAIN&&this._enableWeatherType!==Qu.TYPE_SNOW&&this._enableWeatherType!==Qu.TYPE_HEIGHT_FOG&&(o===Qu.TYPE_RAIN||o===Qu.TYPE_SNOW||o===Qu.TYPE_HEIGHT_FOG)&&(this.addPolygon(this._region),this.update()),(this._enableWeatherType===Qu.TYPE_RAIN||this._enableWeatherType===Qu.TYPE_SNOW||this._enableWeatherType===Qu.TYPE_HEIGHT_FOG)&&o!==Qu.TYPE_RAIN&&o!==Qu.TYPE_SNOW&&o!==Qu.TYPE_HEIGHT_FOG&&this.clearPolygon(),o===Qu.TYPE_RAIN?this.enableRainSnowFog(o):o===Qu.TYPE_SNOW?this.enableRainSnowFog(o):o===Qu.TYPE_HEIGHT_FOG?this.enableRainSnowFog(o):o===Qu.TYPE_NONE&&this.disableRainSnowFog(),this._enableWeatherType=o)}},fogHeight:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.fogHeight=o),this._terrainWeather&&(this._terrainWeather.fogHeight=o)}},regionAlpha:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.regionAlpha=o),this._terrainWeather&&(this._terrainWeather.regionAlpha=o)}},fogGradientDistance:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.fogGradientDistance=o),this._terrainWeather&&(this._terrainWeather.fogGradientDistance=o)}},regionGradientDistance:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.regionGradientDistance=o),this._terrainWeather&&(this._terrainWeather.regionGradientDistance=o)}}});Qu.prototype.enableRainSnowFog=function(o){let f=this._scene,m=this._position,x=this._radius;f.skyAtmosphere.hueShift=-.97,f.skyAtmosphere.saturationShift=.25,f.skyAtmosphere.brightnessShift=-.4,f.fog.density=25e-5,f.fog.minimumBrightness=.005,this._weatherParticle&&f.primitives.remove(this._weatherParticle),o===Qu.TYPE_RAIN?(this._weatherParticle=zKi(f,m,x),f.primitives.add(this._weatherParticle)):o===Qu.TYPE_SNOW&&(this._weatherParticle=YKi(f,m,x),f.primitives.add(this._weatherParticle)),this._terrainWeather&&(this._terrainWeather.disabled=!0,o===Qu.TYPE_RAIN?this._terrainWeather.ripple=!0:o===Qu.TYPE_SNOW?this._terrainWeather.snow=!0:o===Qu.TYPE_HEIGHT_FOG?this._terrainWeather.heightFog=!0:o===Qu.TYPE_NONE&&(this._terrainWeather.disabled=!0)),this._tilesetWeather&&(this._tilesetWeather.disabled=!0,o===Qu.TYPE_RAIN?this._tilesetWeather.ripple=!0:o===Qu.TYPE_SNOW?this._tilesetWeather.snow=!0:o===Qu.TYPE_HEIGHT_FOG?this._tilesetWeather.heightFog=!0:o===Qu.TYPE_NONE&&(this._tilesetWeather.disabled=!0))};Qu.prototype.disableRainSnowFog=function(){let o=this._scene;o.skyAtmosphere.hueShift=this._skyAtmosphereHueShift,o.skyAtmosphere.saturationShift=this._skyAtmosphereSaturationShift,o.skyAtmosphere.brightnessShift=this._skyAtmosphereBrightnessShift,o.fog.density=this._fogDensity,o.fog.minimumBrightness=this._fogMinimumBrightness,this._weatherParticle&&o.primitives.remove(this._weatherParticle)};Qu.prototype.addPolygon=function(){if(this._terrainWeather&&this._terrainWeather.addPolygon(this._region),this._tilesetWeather){let o=Uu.fromPositions({positions:Z.fromDegreesArrayHeights(this._region),perPositionHeight:!0});this._tilesetWeather.addPolygon(o)}};Qu.prototype.clearPolygon=function(){this._terrainWeather&&this._terrainWeather.clearPolygon(),this._tilesetWeather&&this._tilesetWeather.clearPolygon()};Qu.prototype.update=function(){this._terrainWeather&&this._terrainWeather.update(),this._tilesetWeather};Qu.TYPE_RAIN=0;Qu.TYPE_SNOW=1;Qu.TYPE_HEIGHT_FOG=2;Qu.TYPE_NONE=3;var Vde=Qu,txr=new qm({pass:sh.PICK}),JKi=new qm({pass:sh.RENDER}),jKi=new Xe(0,0,0,0);function UO(o){this.scene=o.scene;let f=this.scene.context;this.boxHeight=o.boxHeight,this.centerPosition=Gt.clone(o.centerPosition,new Gt(0,0,0)),this.size=o.size,this.viewPort=new Er(0,0,f.drawingBufferWidth,f.drawingBufferHeight),this.rect=this.calcRect(this.centerPosition,this.boxHeight,this.size),this.depthTexture=null,this.colorTexture=null,this.init()}UO.prototype.calcRect=function(o,f,m){o.height+=f;let x=Gt.toCartesian(o,yi.WGS84,new Z),y={heading:0,pitch:-90*3.1415926/180,roll:0};return{position:x,orientation:y,size:m}};UO.prototype.createPassState=function(o){let f=new $p(o);return f.blendingEnabled=!1,f.scissorTest={enabled:!1,rectangle:new Er},f.viewport=new Er,f};function QKi(o,f,m,x){let{width:y,height:v}=f;return Er.clone(f,x.scissorTest.rectangle),m.update(o,y,v),x.framebuffer=m.framebuffer,x.viewport.width=y,x.viewport.height=v,x}function qKi(o,f,m,x){let{context:y,frameState:v}=o,C=y.uniformState,T=f;o.view=T,QKi(y,T.viewport,m,x),o.jobScheduler.disableThisFrame(),o.updateFrameState(),v.invertClassification=!1,v.passes.pick=!1,v.passes.render=!0,v.tilesetPassState=JKi,v.passes.offscreen=!0,v.passes.heightField=!0,C.update(v),o.updateEnvironment(),o.updateAndExecuteCommands(x,jKi);let S=T.frustumCommandsList.length;if(console.log("numFrustums:",S),o.resolveFramebuffers(x),o.context.depthTexture){let w=T.frustumCommandsList.length;for(let E=0;E<w;++E){let L=o.picking.getPickDepth(o,E).getDepth(y,10,10);if(L&&L>0&&L<1){let I=T.frustumCommandsList[E],R=I.near*(E!==0?o.opaqueFrustumNearOffset:1),P=I.far,A=R+L*(P-R);console.log("depth",L),console.log("near",R),console.log("far",P),console.log("distance",A);break}}}return T.globeDepth.executeCopyDepth(y,x),o.view=o.defaultView,y.endFrame(),T.globeDepth._copyDepthFramebuffer.getColorTexture()}UO.prototype.init=function(){let o=this.scene,f=o.context,m=this.rect,x=this.boxHeight,y=this.viewPort,v=new Ts(o);v.frustum=new $a({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x}),v.setView({destination:m.position,orientation:m.orientation,endTransform:Ee.IDENTITY}),v.frustum=new $a({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x});let C=new N1(o,v,y),T=new Pc({name:"yes"}),S=this.createPassState(f),w=this;w.depthTexture=qKi(o,C,T,S),w.colorTexture=T.getColorTexture(0)};UO.prototype.getDepthTexture=function(){return this.depthTexture};UO.prototype.getColorTexture=function(){return this.colorTexture};UO.prototype.destroy=function(){};var lDe=UO,zU={baseShader:{shader:`
        `}),D=new Vf({name:`${f}Composite`,stages:[V,G],inputPreviousStageTexture:!1});function N(k){Object.defineProperties(k,{showGlow:{get(){return S},set(U){S=U}},edgeGlow:{get(){return w},set(U){w=U}},edgeStrength:{get(){return E},set(U){E=U}},thresholdAngle:{get(){return x},set(U){x=U}},showOutlineOnly:{get(){return v},set(U){v=U}},edgeOnly:{get(){return L},set(U){L=U}},useSingleColor:{get(){return y},set(U){y=U}},outlineWidth:{get(){return m},set(U){m=U}},visibleEdgeColor:{get(){return C},set(U){C=U}},hiddenEdgeColor:{get(){return T},set(U){T=U}}})}return N(D),D._uniforms=D._uniforms||{},N(D._uniforms),D}function d$(o){this._primitive=o,this._primitive.ripple=!1,this._primitive.snow=!1,this._primitive.heightFog=!1,this._primitive.fogHeight=100,this._primitive.regionAlpha=1,this._primitive.regionGradientDistance=1,this._primitive.fogGradientDistance=100,this._ripple=!1,this._snow=!1,this._heightFog=!1}Object.defineProperties(d$.prototype,{ripple:{set:function(o){this._ripple!==o&&(this._primitive.snow=!1,this._primitive.heightFog=!1),this._primitive.ripple=o,this._ripple=o}},snow:{set:function(o){this._snow!==o&&(this._primitive.ripple=!1,this._primitive.heightFog=!1),this._primitive.snow=o,this._snow=o}},heightFog:{set:function(o){this._heightFog!==o&&(this._primitive.snow=!1,this._primitive.ripple=!1),this._primitive.heightFog=o,this._heightFog=o}},fogHeight:{set:function(o){this._primitive.fogHeight=o}},fogGradientDistance:{set:function(o){this._primitive.fogGradientDistance=o}},regionAlpha:{set:function(o){this._primitive.regionAlpha=o}},regionGradientDistance:{set:function(o){this._primitive.regionGradientDistance=o}},disabled:{set:function(o){this.ripple=o,this.snow=o,this.heightFog=o,this._primitive.ripple=!1,this._primitive.snow=!1,this._primitive.heightFog=!1}}});d$.prototype.addPolygon=function(o){this._primitive.addFlattenPolygon(o)};d$.prototype.clearPolygon=function(){this._primitive.clearFlattenPolygon()};d$.prototype.update=function(){this._primitive.update()};var aDe=d$;function p$(o){this._terrainFlatten=new kO(o,!1,!0),this._terrainFlatten.ripple=!1,this._terrainFlatten.snow=!1,this._terrainFlatten.heightFog=!1,this._terrainFlatten.fogHeight=100,this._terrainFlatten.regionAlpha=1,this._terrainFlatten.regionGradientDistance=10,this._terrainFlatten.fogGradientDistance=100,this._ripple=!1,this._snow=!1,this._heightFog=!1}Object.defineProperties(p$.prototype,{ripple:{set:function(o){this._ripple!==o&&(this._terrainFlatten.snow=!1,this._terrainFlatten.heightFog=!1),this._terrainFlatten.ripple=o,this._ripple=o}},snow:{set:function(o){this._snow!==o&&(this._terrainFlatten.ripple=!1,this._terrainFlatten.heightFog=!1),this._terrainFlatten.snow=o,this._snow=o}},heightFog:{set:function(o){this._heightFog!==o&&(this._terrainFlatten.snow=!1,this._terrainFlatten.ripple=!1),this._terrainFlatten.heightFog=o,this._heightFog=o}},fogHeight:{set:function(o){this._terrainFlatten.fogHeight=o}},fogGradientDistance:{set:function(o){this._terrainFlatten.fogGradientDistance=o}},regionAlpha:{set:function(o){this._terrainFlatten.regionAlpha=o}},regionGradientDistance:{set:function(o){this._terrainFlatten.regionGradientDistance=o}},disabled:{set:function(o){this.ripple=o,this.snow=o,this.heightFog=o,this._terrainFlatten.ripple=!1,this._terrainFlatten.snow=!1,this._terrainFlatten.heightFog=!1}}});p$.prototype.addPolygon=function(o){this._terrainFlatten.addPolygon(o)};p$.prototype.clearPolygon=function(){this._terrainFlatten.clearPolygon()};p$.prototype.update=function(){this._terrainFlatten.update()};var sDe=p$;function zKi(o,f,m){let x=new rt(15,30),y=new Z,v=function(C,T){y=Z.normalize(C.position,y),y=Z.multiplyByScalar(y,-1050,y),C.position=Z.add(C.position,y,C.position);let S=Z.distance(o.camera.position,C.position),w=1;m<1e5&&(w=.1/(m/1e5));let E=m*w;S>E?C.endColor.alpha=0:C.endColor.alpha=Xe.BLUE.alpha/(S/E+.1)};return new QS({modelMatrix:new Ee.fromTranslation(f),speed:-1,lifetime:15,emitter:new Sde(new Z(m,m,m)),startScale:5,endScale:0,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/littleRain.png`,emissionRate:9e3,startColor:new Xe(.8,.8,.8,0),endColor:new Xe(.8,.8,.8,.9),imageSize:x,updateCallback:v})}function YKi(o,f,m){let x=new rt(12,12),y=new rt(12*2,12*2),v=new Z,C=function(T,S){v=Z.normalize(T.position,v),Z.multiplyByScalar(v,be.randomBetween(-30,-300),v),T.velocity=Z.add(T.velocity,v,T.velocity);let w=Z.distance(o.camera.position,T.position);w>m?T.endColor.alpha=0:T.endColor.alpha=1/(w/m+.1)};return new QS({modelMatrix:new Ee.fromTranslation(f),minimumSpeed:-1,maximumSpeed:0,lifetime:15,emitter:new Sde(new Z(m,m,m)),startScale:.5,endScale:1,image:`${globalThis.GEOWORLD_BASE_URL}Assets/Textures/snow.png`,emissionRate:7e3,startColor:Xe.WHITE.withAlpha(0),endColor:Xe.WHITE.withAlpha(1),minimumImageSize:x,maximumImageSize:y,updateCallback:C})}function KKi(o,f){let m=_r.eastNorthUpToFixedFrame(o),x=Ee.multiplyByPoint(m,new Z(f*.5,f*.5,0),new Z),y=Ee.multiplyByPoint(m,new Z(f*.5,-f*.5,0),new Z),v=Ee.multiplyByPoint(m,new Z(-f*.5,-f*.5,0),new Z),C=Ee.multiplyByPoint(m,new Z(-f*.5,f*.5,0),new Z),T=Gt.fromCartesian(x),S=Gt.fromCartesian(y),w=Gt.fromCartesian(v),E=Gt.fromCartesian(C);return[be.toDegrees(T.longitude),be.toDegrees(T.latitude),-1e4,be.toDegrees(S.longitude),be.toDegrees(S.latitude),-1e4,be.toDegrees(w.longitude),be.toDegrees(w.latitude),-1e4,be.toDegrees(E.longitude),be.toDegrees(E.latitude),-1e4]}function Qu(o,f,m,x){this._scene=o,this._primitive=f,this._position=m,this._radius=x,f&&(this._tilesetWeather=new aDe(f)),o&&(this._terrainWeather=new sDe(o)),this._enableWeatherType=Qu.TYPE_NONE,this._region=KKi(m,x),this._skyAtmosphereHueShift=o.skyAtmosphere.hueShift,this._skyAtmosphereSaturationShift=o.skyAtmosphere.saturationShift,this._skyAtmosphereBrightnessShift=o.skyAtmosphere.brightnessShift,this._fogDensity=o.fog.density,this._fogMinimumBrightness=o.fog.minimumBrightness}Object.defineProperties(Qu.prototype,{enableWeatherType:{get:function(){return this._enableWeatherType},set:function(o){this._enableWeatherType!==o&&(this._enableWeatherType!==Qu.TYPE_RAIN&&this._enableWeatherType!==Qu.TYPE_SNOW&&this._enableWeatherType!==Qu.TYPE_HEIGHT_FOG&&(o===Qu.TYPE_RAIN||o===Qu.TYPE_SNOW||o===Qu.TYPE_HEIGHT_FOG)&&(this.addPolygon(this._region),this.update()),(this._enableWeatherType===Qu.TYPE_RAIN||this._enableWeatherType===Qu.TYPE_SNOW||this._enableWeatherType===Qu.TYPE_HEIGHT_FOG)&&o!==Qu.TYPE_RAIN&&o!==Qu.TYPE_SNOW&&o!==Qu.TYPE_HEIGHT_FOG&&this.clearPolygon(),o===Qu.TYPE_RAIN?this.enableRainSnowFog(o):o===Qu.TYPE_SNOW?this.enableRainSnowFog(o):o===Qu.TYPE_HEIGHT_FOG?this.enableRainSnowFog(o):o===Qu.TYPE_NONE&&this.disableRainSnowFog(),this._enableWeatherType=o)}},fogHeight:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.fogHeight=o),this._terrainWeather&&(this._terrainWeather.fogHeight=o)}},regionAlpha:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.regionAlpha=o),this._terrainWeather&&(this._terrainWeather.regionAlpha=o)}},fogGradientDistance:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.fogGradientDistance=o),this._terrainWeather&&(this._terrainWeather.fogGradientDistance=o)}},regionGradientDistance:{set:function(o){this._tilesetWeather&&(this._tilesetWeather.regionGradientDistance=o),this._terrainWeather&&(this._terrainWeather.regionGradientDistance=o)}}});Qu.prototype.enableRainSnowFog=function(o){let f=this._scene,m=this._position,x=this._radius;f.skyAtmosphere.hueShift=-.97,f.skyAtmosphere.saturationShift=.25,f.skyAtmosphere.brightnessShift=-.4,f.fog.density=25e-5,f.fog.minimumBrightness=.005,this._weatherParticle&&f.primitives.remove(this._weatherParticle),o===Qu.TYPE_RAIN?(this._weatherParticle=zKi(f,m,x),f.primitives.add(this._weatherParticle)):o===Qu.TYPE_SNOW&&(this._weatherParticle=YKi(f,m,x),f.primitives.add(this._weatherParticle)),this._terrainWeather&&(this._terrainWeather.disabled=!0,o===Qu.TYPE_RAIN?this._terrainWeather.ripple=!0:o===Qu.TYPE_SNOW?this._terrainWeather.snow=!0:o===Qu.TYPE_HEIGHT_FOG?this._terrainWeather.heightFog=!0:o===Qu.TYPE_NONE&&(this._terrainWeather.disabled=!0)),this._tilesetWeather&&(this._tilesetWeather.disabled=!0,o===Qu.TYPE_RAIN?this._tilesetWeather.ripple=!0:o===Qu.TYPE_SNOW?this._tilesetWeather.snow=!0:o===Qu.TYPE_HEIGHT_FOG?this._tilesetWeather.heightFog=!0:o===Qu.TYPE_NONE&&(this._tilesetWeather.disabled=!0))};Qu.prototype.disableRainSnowFog=function(){let o=this._scene;o.skyAtmosphere.hueShift=this._skyAtmosphereHueShift,o.skyAtmosphere.saturationShift=this._skyAtmosphereSaturationShift,o.skyAtmosphere.brightnessShift=this._skyAtmosphereBrightnessShift,o.fog.density=this._fogDensity,o.fog.minimumBrightness=this._fogMinimumBrightness,this._weatherParticle&&o.primitives.remove(this._weatherParticle)};Qu.prototype.addPolygon=function(){if(this._terrainWeather&&this._terrainWeather.addPolygon(this._region),this._tilesetWeather){let o=Uu.fromPositions({positions:Z.fromDegreesArrayHeights(this._region),perPositionHeight:!0});this._tilesetWeather.addPolygon(o)}};Qu.prototype.clearPolygon=function(){this._terrainWeather&&this._terrainWeather.clearPolygon(),this._tilesetWeather&&this._tilesetWeather.clearPolygon()};Qu.prototype.update=function(){this._terrainWeather&&this._terrainWeather.update(),this._tilesetWeather};Qu.TYPE_RAIN=0;Qu.TYPE_SNOW=1;Qu.TYPE_HEIGHT_FOG=2;Qu.TYPE_NONE=3;var Vde=Qu,txr=new qm({pass:sh.PICK}),JKi=new qm({pass:sh.RENDER}),jKi=new Xe(0,0,0,0);function UO(o){this.scene=o.scene;let f=this.scene.context;this.boxHeight=o.boxHeight,this.centerPosition=Gt.clone(o.centerPosition,new Gt(0,0,0)),this.size=o.size,this.viewPort=new Er(0,0,f.drawingBufferWidth,f.drawingBufferHeight),this.rect=this.calcRect(this.centerPosition,this.boxHeight,this.size),this.depthTexture=null,this.colorTexture=null,this.init()}UO.prototype.calcRect=function(o,f,m){o.height+=f;let x=Gt.toCartesian(o,yi.WGS84,new Z),y={heading:0,pitch:-90*3.1415926/180,roll:0};return{position:x,orientation:y,size:m}};UO.prototype.createPassState=function(o){let f=new $p(o);return f.blendingEnabled=!1,f.scissorTest={enabled:!1,rectangle:new Er},f.viewport=new Er,f};function QKi(o,f,m,x){let{width:y,height:v}=f;return Er.clone(f,x.scissorTest.rectangle),m.update(o,y,v),x.framebuffer=m.framebuffer,x.viewport.width=y,x.viewport.height=v,x}function qKi(o,f,m,x){let{context:y,frameState:v}=o,C=y.uniformState,T=f;o.view=T,QKi(y,T.viewport,m,x),o.jobScheduler.disableThisFrame(),o.updateFrameState(),v.invertClassification=!1,v.passes.pick=!1,v.passes.render=!0,v.tilesetPassState=JKi,v.passes.offscreen=!0,v.passes.heightField=!0,C.update(v),o.updateEnvironment(),o.updateAndExecuteCommands(x,jKi);let S=T.frustumCommandsList.length;if(console.log("numFrustums:",S),o.resolveFramebuffers(x),o.context.depthTexture){let w=T.frustumCommandsList.length;for(let E=0;E<w;++E){let L=o.picking.getPickDepth(o,E).getDepth(y,10,10);if(L&&L>0&&L<1){let I=T.frustumCommandsList[E],R=I.near*(E!==0?o.opaqueFrustumNearOffset:1),P=I.far,A=R+L*(P-R);console.log("depth",L),console.log("near",R),console.log("far",P),console.log("distance",A);break}}}return T.globeDepth.executeCopyDepth(y,x),o.view=o.defaultView,y.endFrame(),T.globeDepth._copyDepthFramebuffer.getColorTexture()}UO.prototype.init=function(){let o=this.scene,f=o.context,m=this.rect,x=this.boxHeight,y=this.viewPort,v=new Ts(o);v.frustum=new $a({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x}),v.setView({destination:m.position,orientation:m.orientation,endTransform:Ee.IDENTITY}),v.frustum=new $a({width:m.size.x,aspectRatio:m.size.x/m.size.y,near:1,far:x});let C=new N1(o,v,y),T=new Pc({name:"yes"}),S=this.createPassState(f),w=this;w.depthTexture=qKi(o,C,T,S),w.colorTexture=T.getColorTexture(0)};UO.prototype.getDepthTexture=function(){return this.depthTexture};UO.prototype.getColorTexture=function(){return this.colorTexture};UO.prototype.destroy=function(){};var lDe=UO,zU={baseShader:{shader:`
     const int textureSize = 512;
    // Render
    //const vec3 backgroundColor = vec3(0.2);
@@ -22325,7 +22325,7 @@
  void main() {
    getColor();
  }
  `;function Y7e(o,f,m,x){let y=new Uint8Array(f),v=Math.ceil(Math.sqrt(y.length));return new qGe({width:m,height:m,depth:m,context:o,pixelFormat:x?zr.RGBA:zr.RGB,pixelDataType:un.UNSIGNED_BYTE,source:{width:v,height:v,arrayBufferView:y},sampler:new Yo({wrapR:Xn.MIRRORED_REPEAT,wrapS:Xn.MIRRORED_REPEAT,wrapT:Xn.MIRRORED_REPEAT,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})})}function K7e(o,f,m){let x=f;return new Rn({context:o,source:x,sampler:new Yo({wrapS:Xn.MIRRORED_REPEAT,wrapT:Xn.MIRRORED_REPEAT,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})})}function vJi(o){let f=[],m=o.detail_noise_high,x=new Mr({url:m,queryParameters:{format:"bin"}});f.push(x.fetchArrayBuffer());let y=o.detail_noise,v=new Mr({url:y,queryParameters:{format:"bin"}});f.push(v.fetchArrayBuffer());let C=o.weather,T=new Mr({url:C,queryParameters:{format:"png"}});f.push(T.fetchImage());let S=o.mark_noise,w=new Mr({url:S,queryParameters:{format:"png"}});return f.push(w.fetchImage()),Promise.all(f)}function f$(o){this._coordinate=o.coordinate,this._modelMatrix=null,this._modelMatrixDirty=!0,this._cloudParam=o.cloudParam;let f=o.urls,m=o.viewer;this._viewer=m;let x=m.scene.camera.viewMatrix;this._enable=!0,this._postProcess=null;let y=this;vJi(f).then(function(v){let C=y.getUniforms(x,m.scene.context,v);y._postProcess=m.scene.postProcessStages.add(new Sa({fragmentShader:_Ji,uniforms:C}))}).catch(function(v){console.log(v)})}f$.prototype.getModelMatrix=function(o){if(this._modelMatrixDirty){let f=o.cartographicPosition,m=o.height,x=o.size,y=Ee.fromScale(x),v=_r.eastNorthUpToFixedFrame(Z.fromDegrees(f.x,f.y));Ee.multiply(v,y,y);let C=Ee.fromTranslation(new Z(0,0,m));Ee.multiply(C,y,y),this._modelMatrixDirty=!1,this._modelMatrix=y}return this._modelMatrix};f$.prototype.getUniforms=function(o,f,m){let x=new Ee,y=new Ee,v=new Ee,C=0,T=null,S=null,w=null,E=null,L=this;return{u_inversModelView:function(){let I=L.getModelMatrix(L._coordinate);return Ee.multiply(o,I,x),Ee.inverse(x,y),y},u_inversModelMatrix:function(){let I=L.getModelMatrix(L._coordinate);return Ee.inverse(I,v),v},u_time:function(){return C+=.001,C},detail_map_high:function(){return S||(S=Y7e(f,m[0],32,!1)),S},detail_map:function(){return T||(T=Y7e(f,m[1],128,!0)),T},weather_map:function(){return w||(w=K7e(f,m[2],512)),w},mark_noise:function(){return E||(E=K7e(f,m[3],512)),E},wind_speed:function(){return L._cloudParam.wind_speed},wind_direction:function(){let I=new rt;return I.x=L._cloudParam.wind_direction_x,I.z=L._cloudParam.wind_direction_z,I},global_coverage:function(){return L._cloudParam.global_coverage},global_density:function(){return L._cloudParam.global_density},global_lightAbsorption:function(){return L._cloudParam.global_lightAbsorption},cloud_in_scatter:function(){return L._cloudParam.cloud_in_scatter},cloud_out_scatter:function(){return L._cloudParam.cloud_out_scatter},cloud_scatter_ratio:function(){return L._cloudParam.cloud_scatter_ratio},cloud_silver_intensity:function(){return L._cloudParam.cloud_silver_intensity},cloud_silver_exponent:function(){return L._cloudParam.cloud_silver_exponent},cloud_out_scatter_ambient:function(){return L._cloudParam.cloud_out_scatter_ambient},wind_animation:function(){return L._cloudParam.wind_animation},use_blue_noise:function(){return L._cloudParam.use_blue_noise},use_quarter_update:function(){return L._cloudParam.use_quarter_update},highlightScale:function(){return L._cloudParam.highlightScale},backScale:function(){return L._cloudParam.backScale},attenuationScale:function(){return L._cloudParam.attenuationScale}}};Object.defineProperties(f$.prototype,{enable:{set:function(o){this._enable=o,this._postProcess.enabled=o},get:function(){return this._enable}},coordinate:{get:function(){return this._coordinate}},cloudParam:{get:function(){return this._cloudParam}}});f$.prototype.update=function(){F(this._postProcess)&&this._enable&&(this._viewer.camera.positionCartographic.height>5e5?this._postProcess.enabled=!1:this._postProcess.enabled=!0)};var Nde=f$,J7e={baseShader:{shader:`
  `;function Y7e(o,f,m,x){let y=new Uint8Array(f),v=Math.ceil(Math.sqrt(y.length));return new fFe({width:m,height:m,depth:m,context:o,pixelFormat:x?zr.RGBA:zr.RGB,pixelDataType:un.UNSIGNED_BYTE,source:{width:v,height:v,arrayBufferView:y},sampler:new Yo({wrapR:Xn.MIRRORED_REPEAT,wrapS:Xn.MIRRORED_REPEAT,wrapT:Xn.MIRRORED_REPEAT,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})})}function K7e(o,f,m){let x=f;return new Rn({context:o,source:x,sampler:new Yo({wrapS:Xn.MIRRORED_REPEAT,wrapT:Xn.MIRRORED_REPEAT,minificationFilter:Ho.LINEAR,magnificationFilter:Xs.LINEAR})})}function vJi(o){let f=[],m=o.detail_noise_high,x=new Mr({url:m,queryParameters:{format:"bin"}});f.push(x.fetchArrayBuffer());let y=o.detail_noise,v=new Mr({url:y,queryParameters:{format:"bin"}});f.push(v.fetchArrayBuffer());let C=o.weather,T=new Mr({url:C,queryParameters:{format:"png"}});f.push(T.fetchImage());let S=o.mark_noise,w=new Mr({url:S,queryParameters:{format:"png"}});return f.push(w.fetchImage()),Promise.all(f)}function f$(o){this._coordinate=o.coordinate,this._modelMatrix=null,this._modelMatrixDirty=!0,this._cloudParam=o.cloudParam;let f=o.urls,m=o.viewer;this._viewer=m;let x=m.scene.camera.viewMatrix;this._enable=!0,this._postProcess=null;let y=this;vJi(f).then(function(v){let C=y.getUniforms(x,m.scene.context,v);y._postProcess=m.scene.postProcessStages.add(new Sa({fragmentShader:_Ji,uniforms:C}))}).catch(function(v){console.log(v)})}f$.prototype.getModelMatrix=function(o){if(this._modelMatrixDirty){let f=o.cartographicPosition,m=o.height,x=o.size,y=Ee.fromScale(x),v=_r.eastNorthUpToFixedFrame(Z.fromDegrees(f.x,f.y));Ee.multiply(v,y,y);let C=Ee.fromTranslation(new Z(0,0,m));Ee.multiply(C,y,y),this._modelMatrixDirty=!1,this._modelMatrix=y}return this._modelMatrix};f$.prototype.getUniforms=function(o,f,m){let x=new Ee,y=new Ee,v=new Ee,C=0,T=null,S=null,w=null,E=null,L=this;return{u_inversModelView:function(){let I=L.getModelMatrix(L._coordinate);return Ee.multiply(o,I,x),Ee.inverse(x,y),y},u_inversModelMatrix:function(){let I=L.getModelMatrix(L._coordinate);return Ee.inverse(I,v),v},u_time:function(){return C+=.001,C},detail_map_high:function(){return S||(S=Y7e(f,m[0],32,!1)),S},detail_map:function(){return T||(T=Y7e(f,m[1],128,!0)),T},weather_map:function(){return w||(w=K7e(f,m[2],512)),w},mark_noise:function(){return E||(E=K7e(f,m[3],512)),E},wind_speed:function(){return L._cloudParam.wind_speed},wind_direction:function(){let I=new rt;return I.x=L._cloudParam.wind_direction_x,I.z=L._cloudParam.wind_direction_z,I},global_coverage:function(){return L._cloudParam.global_coverage},global_density:function(){return L._cloudParam.global_density},global_lightAbsorption:function(){return L._cloudParam.global_lightAbsorption},cloud_in_scatter:function(){return L._cloudParam.cloud_in_scatter},cloud_out_scatter:function(){return L._cloudParam.cloud_out_scatter},cloud_scatter_ratio:function(){return L._cloudParam.cloud_scatter_ratio},cloud_silver_intensity:function(){return L._cloudParam.cloud_silver_intensity},cloud_silver_exponent:function(){return L._cloudParam.cloud_silver_exponent},cloud_out_scatter_ambient:function(){return L._cloudParam.cloud_out_scatter_ambient},wind_animation:function(){return L._cloudParam.wind_animation},use_blue_noise:function(){return L._cloudParam.use_blue_noise},use_quarter_update:function(){return L._cloudParam.use_quarter_update},highlightScale:function(){return L._cloudParam.highlightScale},backScale:function(){return L._cloudParam.backScale},attenuationScale:function(){return L._cloudParam.attenuationScale}}};Object.defineProperties(f$.prototype,{enable:{set:function(o){this._enable=o,this._postProcess.enabled=o},get:function(){return this._enable}},coordinate:{get:function(){return this._coordinate}},cloudParam:{get:function(){return this._cloudParam}}});f$.prototype.update=function(){F(this._postProcess)&&this._enable&&(this._viewer.camera.positionCartographic.height>5e5?this._postProcess.enabled=!1:this._postProcess.enabled=!0)};var Nde=f$,J7e={baseShader:{shader:`
    const int textureSize = 512;
    // Render
    //const vec3 backgroundColor = vec3(0.0);
@@ -23034,6 +23034,36 @@
      return normalize( normal );
    }
    float noise( const in vec3 x ) {
      vec3 p = floor(x);
      vec3 f = fract(x);
      f = f*f*(3.0-2.0*f);
      vec2 uv = (p.xy+vec2(37.0,17.0)*p.z) + f.xy;
      vec2 rg = textureLod( iNormalWater, (uv+ 0.5)/256.0, 0.0 ).yx;
      return mix( rg.x, rg.y, f.z );
    }
    const mat3 m3 = mat3( 0.00,  0.80,  0.60,
                        -0.80,  0.36, -0.48,
                        -0.60, -0.48,  0.64 );
    float fbm( in vec3 p ) {
        float f = 0.0;
      // \u591A\u7EA7\u566A\u58F0\u53E0\u52A0
        f += 0.5000*noise( p ); p = m3*p*2.02;
        f += 0.2500*noise( p ); p = m3*p*2.03;
        f += 0.1250*noise( p ); p = m3*p*2.01;
        f += 0.0625*noise( p );
        return f/0.9375;
    }
    float waterMap( vec2 pos ) {
      vec2 posm = pos;
      return abs( fbm( vec3( 8.*posm, iTime ))-0.5 )* 0.1;
    }
    float decodeHeight(vec3 height){
      float tempH = height.r * 255.0 * 256.0 * 256.0 + height.g * 255.0 * 256.0 + height.b * 255.0;
      return (tempH  / 65535.0) * fHeight;
@@ -23217,15 +23247,16 @@
    }
    vec4 getNoise( vec2 uv ) {
        vec2 uv0 = ( uv / 103.0 ) + vec2(iTime / 17.0, iTime / 29.0);
        vec2 uv1 = uv / 107.0-vec2( iTime / -19.0, iTime / 31.0 );
        vec2 uv2 = uv / vec2( 8907.0, 9803.0 ) + vec2( iTime / 101.0, iTime / 97.0 );
        vec2 uv3 = uv / vec2( 1091.0, 1027.0 ) - vec2( iTime / 109.0, iTime / -113.0 );
        vec4 noise = texture( iNormalWater, uv0 ) +
        vec2 uv0 = ( uv / 100.0 ) + vec2(iTime / 100.0, iTime / 100.0);
        vec2 uv1 = uv / 100.0-vec2( iTime / -100.0, iTime / 100.0 );
        vec2 uv2 = uv / vec2( 100.0, 100.0 ) + vec2( iTime / 100.0, iTime / 100.0 );
        vec2 uv3 = uv / vec2( 100.0, 100.0 ) - vec2( iTime / 100.0, iTime / -100.0 );
        vec4 noise =
        texture( iNormalWater, uv0 ) +
        texture( iNormalWater, uv1 ) +
        texture( iNormalWater, uv2 ) +
        texture( iNormalWater, uv3 );
        return noise * 0.5 - 1.0;
        return noise*0.5 - 1.0;
    }
    vec4 toColor(float fColor){
@@ -23253,6 +23284,39 @@
      }
      float fColor = u_waterLevelColors[3][3];
      return toColor(fColor);
    }
    vec3 getFlowMormal(vec2 vUv, vec2 flow){
      // \u534A\u4E2A\u5468\u671F\u7684\u957F\u5EA6
         float halfCycle = 0.5;
         // 1\u4E2A\u5468\u671F\u7684\u957F\u5EA6
         float scale = halfCycle * 2.0;
         // \u534A\u4E2A\u5468\u671F\u7684\u504F\u79FB\u91CF
         float flowMapOffset0 = 0.0;
         float flowMapOffset1 = 0.0;
      float speed = 10.0;
         flowMapOffset0 = fract(iTime * speed);
         flowMapOffset1 = flowMapOffset0 + halfCycle;
         if(flowMapOffset1 > (halfCycle * 2.0)){
            flowMapOffset1 = flowMapOffset1 - (halfCycle * 2.0);
         }
      // sample normal maps (distort uvs with flowdata)
         vec4 normalColor0 = texture( iNormalWater, ( vUv * scale ) + flow * flowMapOffset0 );
         vec4 normalColor1 = texture( iNormalWater1, ( vUv * scale ) + flow * flowMapOffset1 );
         // linear interpolate to get the final normal color
         float flowLerp = abs( halfCycle - flowMapOffset0 ) / halfCycle;
         vec4 normalColor = mix( normalColor0, normalColor1, flowLerp );
         // calculate normal vector
         // \u8BA1\u7B97\u6CD5\u7EBF\u5411\u91CF
         vec3 normal = normalize( vec3( normalColor.r * 2.0 - 1.0, normalColor.g * 2.0 - 1.0,  normalColor.b * 2.0 - 1.0 ) );
      return normal;
    }
    vec3 Render(in vec3 ro, in vec3 rd, vec3 backgroundColor)
@@ -23319,33 +23383,52 @@
        vec4 arrowTexture = vec4(0.0);
        vec2 uv = vec2(0.0);
        if(iFlowEnabled){
          uv = getFlowUv(finalPoint);
          //uv = getFlowUv(finalPoint);
          // \u6D41\u901F\u6D41\u5411
          vec2 flowUv = finalPoint.xy / (u_size);
          flowUv = flowUv + 0.5;
          vec3 flowVec3 = texture(iFlowImageTexture, flowUv).xyz;
          vec2 flowVec2 = flowVec3.yz * 2.0 - 1.0;
          flowVec2.y = -flowVec2.y;
          //vec2 flowVec2 = vec2(1.0,0.0);
          flowVec2 = normalize(flowVec2);
          uv = flowVec2 * max(flowVec3.r, 0.1) * 1.0;
        if(iFlowEnabled){
          // \u6D41\u5411\u7BAD\u5934
          mat2 flowRot = mat2(flowVec2.x, flowVec2.y, -flowVec2.y, flowVec2.x);
          mat2 flowRot = mat2(flowVec2.x, flowVec2.y, flowVec2.y, -flowVec2.x);
          flowRot = inverse(flowRot);
          //vec2 sc = vec2(564.0, 1024.0) / max(floor(addHeight * 0.1), 1.0);
          vec2 sc = vec2(564.0, 1024.0);
          vec2 ff = flowUv * sc - vec2(float(int(flowUv.x * sc.x)),float(int(flowUv.y * sc.y)));
          ff.y = 1.0 - ff.y;
          vec2 ff = flowUv * sc;
          ff = fract(ff);
          ff -= vec2(0.5);
          vec2 nw = (flowRot * ff) + vec2(float(int(flowUv.x * sc.x)),float(int(flowUv.y * sc.y))) + vec2(0.5);
          vec2 nw = (flowRot * ff) + vec2(0.5);
          arrowTexture = texture(iArrowTexture, nw);
        } else {
          uv = getFlow(finalPoint, 1);
        }
        //else {
        //  uv = getFlow(finalPoint, 1);
        //}
        vec4 noise = getNoise( finalPoint.xy + uv );
        vec3 surfaceNormal = normalize( noise.xyz );
        //vec4 noise = getNoise( finalPoint.xy + uv );
        //vec3 noise = WaterNormalFBM(finalPoint.xyx - uv, 0.1);
        //vec3 surfaceNormal = normalize( noise.xyz );
        vec3 surfaceNormal = getFlowMormal(finalPoint.xy * 0.1 , -uv);
        /*float EPSILON = 0.1;
        float bumpfactor = 1.0;
        vec2 dx = vec2( EPSILON, 0. );
        vec2 dz = vec2( 0., EPSILON );
        vec3 surfaceNormal = vec3( 0., 0. , 1. );
        surfaceNormal.x = -bumpfactor * (waterMap(finalPoint.xy + dx) - waterMap(finalPoint.xy-dx) ) / (2. * EPSILON);
        surfaceNormal.y = -bumpfactor * (waterMap(finalPoint.xy + dz) - waterMap(finalPoint.xy-dz) ) / (2. * EPSILON);
        surfaceNormal = normalize( surfaceNormal );*/
        vec3 waterNormal = surfaceNormal.xyz;
@@ -23402,7 +23485,7 @@
      vec4 backgroundColor = texture(colorTexture, v_textureCoordinates);
      vec3 col = Render(ro, rd, backgroundColor.rgb);
      out_FragColor = vec4(col, 1.0);
    }`,uniforms:{iWaterTexture:function(){return E.waterVideoTexture?(E.waterVideoTexture.sampler=QA,E.waterVideoTexture):v},iWaterImageTexture:function(){return E.waterImageTexture?(E.waterImageTexture.sampler=QA,E.waterImageTexture):v},iFlowImageTexture:function(){return E.flowImageTexture?(E.flowImageTexture.sampler=QA,E.flowImageTexture):v},iArrowTexture:function(){return E.arrowTexture?(E.arrowTexture.sampler=QA,E.arrowTexture):v},iFlowEnabled:function(){return E.flowEnabled},iTerrainTexture:function(){return E.terrainTexture?(E.terrainTexture.sampler=QA,E.terrainTexture):v},iWaterReflectTexture:function(){return A&&A.reflexImage?(A.reflexImage.sampler=QA,A.reflexImage):v},iWaterColorTexture:function(){return M?(M.sampler=QA,M):v},iNormalWater:function(){return S||v},iNormalWater1:function(){return w||v},iEnabelTerrainTexture:function(){return!0},u_size:function(){return P},u_height:function(){return x},iTime:function(){return V++,V*.03},u_transformDirectionViewToModel:function(){let N=m.uniformState.inverseView;return Ee.multiplyTransformation(T,N,new Ee)},u_cameraPositionUv:function(){let N=f.frameState.camera.positionWC;return Ee.multiplyByPoint(T,N,new Z)},u_cameraDirection:function(){return f.frameState.camera.directionWC},u_sunPositionUv:function(){let N=m.uniformState.sunPositionWC;return Ee.multiplyByPoint(T,N,new Z)},u_waterColor:function(){return E.waterColor},u_debug:function(){return E.debug},u_waterHeightLevelEnabled:function(){return E.waterHeightLevelEnabled},u_waterLevelHeights:function(){return I},u_waterLevelColors:function(){return R},u_alphaByDepth:function(){return E.alphaByDepth},u_bottomHeight:function(){return E._bottomHeight},u_topHeight:function(){return E._topHeight},u_offsetBottomHeight:function(){return E._offsetBottomHeight},u_offsetTopHeight:function(){return E._offsetTopHeight}}});let D=new Vf({inputPreviousStageTexture:!1,stages:[G],name:`${o}watereffect`});f.postProcessStages.add(D),this.waterProcess=D};jM.prototype.calcWaterRectSize=function(o,f){let m=o.west,x=o.east,y=o.south,v=o.north,C=ube(m,y,0,f),T=ube(x,y,0,f),S=ube(m,v,0,f),w=Z.magnitude(Z.subtract(T,C,new Z)),E=Z.magnitude(Z.subtract(S,C,new Z));return new rt(w,E)};jM.prototype.generateWaterReflectMap=function(){let o=this.scene,f=Gt.clone(this.centerPosition,new Gt);f.height=10;let m=Gt.toCartesian(f,yi.WGS84,new Z),x=_r.eastNorthUpToFixedFrame(m,yi.WGS84,new Ee);return new pDe({scene:o,waterCenter:m,waterMatrix:x})};jM.prototype.update=function(){if(!this.enabled)return;let o=this.scene.context;this.currentIndex++;let f=this.currentIndex;this.currentIndex>this.imageCount&&(this.currentIndex=0);let m=this.imageList[this.currentIndex];if(m){let x=`${this.waterUrl}/${m}/${this.waterImageWidth}_${this.waterImageHeight}.png`,y=`${this.flowUrl}/${m}/${this.waterImageWidth}_${this.waterImageHeight}.png`,v=this;YJi([x,y]).then(C=>{v.waterImageTexture?f===v.currentIndex?(v.waterImageTexture.copyFrom({source:C[0]}),v.flowImageTexture.copyFrom({source:C[1]})):console.log("-------lost-----"):(v.waterImageTexture=new Rn({context:o,source:C[0],sampler:QA}),v.flowImageTexture=new Rn({context:o,source:C[1],sampler:BJi}))})}};jM.prototype.destroy=function(){this.scene.postProcessStages.remove(this.waterProcess),this.scene.disabledPostProcessClear=this.oldDisabledPostProcessClear,this.waterReflectTexture&&(this.waterReflectTexture.destroy(),this.waterReflectTexture=void 0),this.waterColorTexure&&(this.waterColorTexure.destroy(),this.waterColorTexure=void 0),this.normalWaterTexture&&(this.normalWaterTexture.destroy(),this.normalWaterTexture=void 0),this.normalWaterTexture1&&(this.normalWaterTexture1.destroy(),this.normalWaterTexture1=void 0),this.terrainTexture&&(this.terrainTexture.destroy(),this.terrainTexture=void 0),this.waterImageTexture&&(this.waterImageTexture.destroy(),this.waterImageTexture=void 0),this.flowImageTexture&&(this.flowImageTexture.destroy(),this.flowImageTexture=void 0)};jM.fromUrl=async function(o,f){let m=o.context,x=[oa("Assets/Textures/water/caustics.png"),oa("Assets/Textures/water/Water_1_M_Normal.jpg"),oa("Assets/Textures/water/Water_2_M_Normal.jpg"),oa("Assets/Textures/water/arrow.png"),f.terrainUrl],[y,v,C,T,S]=await zJi(x,m);return new jM({name:`${f.baseName}WaterPrimitiveEx`,rectangle:f.rectangle,height:f.height,boxHeight:f.boxHeight,waterVideo:f.waterVideo,imageList:f.imageList,waterUrl:f.waterUrl,flowUrl:f.flowUrl,waterImageWidth:f.imageWidth,waterImageHeight:f.imageHeight,terrainTexture:S,waterColorTexure:y,normalWaterTexture:v,normalWaterTexture1:C,arrowTexture:T,show:!0,waterHeightLevels:f.waterHeightLevels,alphaByDepth:f.alphaByDepth},o)};Object.defineProperties(jM.prototype,{enabled:{get:function(){return this._enabled},set:function(o){this._enabled!==o&&(this._enabled=o,this.waterProcess.enabled=o)}},color:{get:function(){return this._color},set:function(o){this._color=o}},waterColor:{get:function(){return this._waterColor},set:function(o){this._waterColor=o}},debug:{get:function(){return this._debug},set:function(o){this._debug=o}},flowEnabled:{get:function(){return this._flowEnabled},set:function(o){this._flowEnabled=o}},waterHeightLevelEnabled:{get:function(){return this._waterHeightLevelEnabled},set:function(o){this._waterHeightLevelEnabled=o}},alphaByDepth:{get:function(){return this._alphaByDepth},set:function(o){this._alphaByDepth=o}},clampMinHeight:{get:function(){return this._bottomHeight},set:function(o){this._bottomHeight=o}},clampMaxHeight:{get:function(){return this._topHeight},set:function(o){this._topHeight=o}},offsetMinHeight:{get:function(){return this._offsetBottomHeight},set:function(o){this._offsetBottomHeight=o}},offsetMaxHeight:{get:function(){return this._offsetTopHeight},set:function(o){this._offsetTopHeight=o}}});var cD=jM,Tgt=`uniform sampler2D u_depthTexture;
    }`,uniforms:{iWaterTexture:function(){return E.waterVideoTexture?(E.waterVideoTexture.sampler=QA,E.waterVideoTexture):v},iWaterImageTexture:function(){return E.waterImageTexture?(E.waterImageTexture.sampler=QA,E.waterImageTexture):v},iFlowImageTexture:function(){return E.flowImageTexture?(E.flowImageTexture.sampler=QA,E.flowImageTexture):v},iArrowTexture:function(){return E.arrowTexture?(E.arrowTexture.sampler=QA,E.arrowTexture):v},iFlowEnabled:function(){return E.flowEnabled},iTerrainTexture:function(){return E.terrainTexture?(E.terrainTexture.sampler=QA,E.terrainTexture):v},iWaterReflectTexture:function(){return A&&A.reflexImage?(A.reflexImage.sampler=QA,A.reflexImage):v},iWaterColorTexture:function(){return M?(M.sampler=QA,M):v},iNormalWater:function(){return S||v},iNormalWater1:function(){return w||v},iEnabelTerrainTexture:function(){return!0},u_size:function(){return P},u_height:function(){return x},iTime:function(){return V+=.01,V},u_transformDirectionViewToModel:function(){let N=m.uniformState.inverseView;return Ee.multiplyTransformation(T,N,new Ee)},u_cameraPositionUv:function(){let N=f.frameState.camera.positionWC;return Ee.multiplyByPoint(T,N,new Z)},u_cameraDirection:function(){return f.frameState.camera.directionWC},u_sunPositionUv:function(){let N=m.uniformState.sunPositionWC;return Ee.multiplyByPoint(T,N,new Z)},u_waterColor:function(){return E.waterColor},u_debug:function(){return E.debug},u_waterHeightLevelEnabled:function(){return E.waterHeightLevelEnabled},u_waterLevelHeights:function(){return I},u_waterLevelColors:function(){return R},u_alphaByDepth:function(){return E.alphaByDepth},u_bottomHeight:function(){return E._bottomHeight},u_topHeight:function(){return E._topHeight},u_offsetBottomHeight:function(){return E._offsetBottomHeight},u_offsetTopHeight:function(){return E._offsetTopHeight}}});let D=new Vf({inputPreviousStageTexture:!1,stages:[G],name:`${o}watereffect`});f.postProcessStages.add(D),this.waterProcess=D};jM.prototype.calcWaterRectSize=function(o,f){let m=o.west,x=o.east,y=o.south,v=o.north,C=ube(m,y,0,f),T=ube(x,y,0,f),S=ube(m,v,0,f),w=Z.magnitude(Z.subtract(T,C,new Z)),E=Z.magnitude(Z.subtract(S,C,new Z));return new rt(w,E)};jM.prototype.generateWaterReflectMap=function(){let o=this.scene,f=Gt.clone(this.centerPosition,new Gt);f.height=10;let m=Gt.toCartesian(f,yi.WGS84,new Z),x=_r.eastNorthUpToFixedFrame(m,yi.WGS84,new Ee);return new pDe({scene:o,waterCenter:m,waterMatrix:x})};jM.prototype.update=function(){if(!this.enabled)return;let o=this.scene.context;this.currentIndex++;let f=this.currentIndex;this.currentIndex>this.imageCount&&(this.currentIndex=0);let m=this.imageList[this.currentIndex];if(m){let x=`${this.waterUrl}/${m}/${this.waterImageWidth}_${this.waterImageHeight}.png`,y=`${this.flowUrl}/${m}/${this.waterImageWidth}_${this.waterImageHeight}.png`,v=this;YJi([x,y]).then(C=>{v.waterImageTexture?f===v.currentIndex?(v.waterImageTexture.copyFrom({source:C[0]}),v.flowImageTexture.copyFrom({source:C[1]})):console.log("-------lost-----"):(v.waterImageTexture=new Rn({context:o,source:C[0],sampler:QA}),v.flowImageTexture=new Rn({context:o,source:C[1],sampler:BJi}))})}};jM.prototype.destroy=function(){this.scene.postProcessStages.remove(this.waterProcess),this.scene.disabledPostProcessClear=this.oldDisabledPostProcessClear,this.waterReflectTexture&&(this.waterReflectTexture.destroy(),this.waterReflectTexture=void 0),this.waterColorTexure&&(this.waterColorTexure.destroy(),this.waterColorTexure=void 0),this.normalWaterTexture&&(this.normalWaterTexture.destroy(),this.normalWaterTexture=void 0),this.normalWaterTexture1&&(this.normalWaterTexture1.destroy(),this.normalWaterTexture1=void 0),this.terrainTexture&&(this.terrainTexture.destroy(),this.terrainTexture=void 0),this.waterImageTexture&&(this.waterImageTexture.destroy(),this.waterImageTexture=void 0),this.flowImageTexture&&(this.flowImageTexture.destroy(),this.flowImageTexture=void 0)};jM.fromUrl=async function(o,f){let m=o.context,x=[oa("Assets/Textures/water/caustics.png"),oa("Assets/Textures/water/Water_1_M_Normal.jpg"),oa("Assets/Textures/water/Water_2_M_Normal.jpg"),oa("Assets/Textures/water/arrow.png"),f.terrainUrl],[y,v,C,T,S]=await zJi(x,m);return new jM({name:`${f.baseName}WaterPrimitiveEx`,rectangle:f.rectangle,height:f.height,boxHeight:f.boxHeight,waterVideo:f.waterVideo,imageList:f.imageList,waterUrl:f.waterUrl,flowUrl:f.flowUrl,waterImageWidth:f.imageWidth,waterImageHeight:f.imageHeight,terrainTexture:S,waterColorTexure:y,normalWaterTexture:v,normalWaterTexture1:C,arrowTexture:T,show:!0,waterHeightLevels:f.waterHeightLevels,alphaByDepth:f.alphaByDepth},o)};Object.defineProperties(jM.prototype,{enabled:{get:function(){return this._enabled},set:function(o){this._enabled!==o&&(this._enabled=o,this.waterProcess.enabled=o)}},color:{get:function(){return this._color},set:function(o){this._color=o}},waterColor:{get:function(){return this._waterColor},set:function(o){this._waterColor=o}},debug:{get:function(){return this._debug},set:function(o){this._debug=o}},flowEnabled:{get:function(){return this._flowEnabled},set:function(o){this._flowEnabled=o}},waterHeightLevelEnabled:{get:function(){return this._waterHeightLevelEnabled},set:function(o){this._waterHeightLevelEnabled=o}},alphaByDepth:{get:function(){return this._alphaByDepth},set:function(o){this._alphaByDepth=o}},clampMinHeight:{get:function(){return this._bottomHeight},set:function(o){this._bottomHeight=o}},clampMaxHeight:{get:function(){return this._topHeight},set:function(o){this._topHeight=o}},offsetMinHeight:{get:function(){return this._offsetBottomHeight},set:function(o){this._offsetBottomHeight=o}},offsetMaxHeight:{get:function(){return this._offsetTopHeight},set:function(o){this._offsetTopHeight=o}}});var cD=jM,Tgt=`uniform sampler2D u_depthTexture;
in vec2 v_textureCoordinates;
@@ -23709,7 +23792,7 @@
  </ul>
  `}var P8i=[{text:"Highlight",value:xI.HIGHLIGHT},{text:"Replace",value:xI.REPLACE},{text:"Mix",value:xI.MIX}],lqe=new Xe(1,1,0,.4),I8i=new Xe,woe=new Xe;function Ng(o,f){let m=this,x=o.canvas;this._eventHandler=new Lr(x),this._scene=o,this._performanceContainer=f,this._canvas=x,this._performanceDisplay=new Fq({container:f}),this._statisticsText="",this._pickStatisticsText="",this._resourceCacheStatisticsText="",this._editorError="",this.performance=!1,this.showStatistics=!0,this.showPickStatistics=!0,this.showResourceCacheStatistics=!1,this.inspectorVisible=!0,this.tilesetVisible=!1,this.displayVisible=!1,this.updateVisible=!1,this.loggingVisible=!1,this.styleVisible=!1,this.tileDebugLabelsVisible=!1,this.optimizationVisible=!1,this.styleString="{}",this.hasEnabledWireframe=!1,this._tileset=void 0,this._feature=void 0,this._tile=void 0,sr.track(this,["performance","inspectorVisible","_statisticsText","_pickStatisticsText","_resourceCacheStatisticsText","_editorError","showPickStatistics","showStatistics","showResourceCacheStatistics","tilesetVisible","displayVisible","updateVisible","loggingVisible","styleVisible","optimizationVisible","tileDebugLabelsVisible","styleString","_feature","_tile","_tileset","hasEnabledWireframe"]),this._properties=sr.observable({}),this.properties=[],sr.defineProperty(this,"properties",function(){let oe=[],ce=m._properties();for(let pe in ce)ce.hasOwnProperty(pe)&&oe.push(pe);return oe});let y=sr.observable();sr.defineProperty(this,"dynamicScreenSpaceError",{get:function(){return y()},set:function(oe){y(oe),F(m._tileset)&&(m._tileset.dynamicScreenSpaceError=oe)}}),this.dynamicScreenSpaceError=!1;let v=sr.observable();sr.defineProperty(this,"colorBlendMode",{get:function(){return v()},set:function(oe){v(oe),F(m._tileset)&&(m._tileset.colorBlendMode=oe,m._scene.requestRender())}}),this.colorBlendMode=xI.HIGHLIGHT;let C=sr.observable(),T=sr.observable();sr.defineProperty(this,"picking",{get:function(){return T()},set:function(oe){T(oe),oe?m._eventHandler.setInputAction(function(ce){let pe=o.pick(ce.endPosition);if(pe instanceof Ss?(m.feature=pe,m.tile=pe.content.tile):F(pe)&&F(pe.content)?(m.feature=void 0,m.tile=pe.content.tile):(m.feature=void 0,m.tile=void 0),!!F(m._tileset)){if(C&&F(pe)&&F(pe.content)){let ue;o.pickPositionSupported&&(ue=o.pickPosition(ce.endPosition),F(ue)&&(m._tileset.debugPickPosition=ue)),m._tileset.debugPickedTile=pe.content.tile}else m._tileset.debugPickedTile=void 0;m._scene.requestRender()}},Si.MOUSE_MOVE):(m.feature=void 0,m.tile=void 0,m._eventHandler.removeInputAction(Si.MOUSE_MOVE))}}),this.picking=!0;let S=sr.observable();sr.defineProperty(this,"colorize",{get:function(){return S()},set:function(oe){S(oe),F(m._tileset)&&(m._tileset.debugColorizeTiles=oe,m._scene.requestRender())}}),this.colorize=!1;let w=sr.observable();sr.defineProperty(this,"wireframe",{get:function(){return w()},set:function(oe){w(oe),F(m._tileset)&&(m._tileset.debugWireframe=oe,m._scene.requestRender())}}),this.wireframe=!1;let E=sr.observable();sr.defineProperty(this,"showBoundingVolumes",{get:function(){return E()},set:function(oe){E(oe),F(m._tileset)&&(m._tileset.debugShowBoundingVolume=oe,m._scene.requestRender())}}),this.showBoundingVolumes=!1;let L=sr.observable();sr.defineProperty(this,"showContentBoundingVolumes",{get:function(){return L()},set:function(oe){L(oe),F(m._tileset)&&(m._tileset.debugShowContentBoundingVolume=oe,m._scene.requestRender())}}),this.showContentBoundingVolumes=!1;let I=sr.observable();sr.defineProperty(this,"showRequestVolumes",{get:function(){return I()},set:function(oe){I(oe),F(m._tileset)&&(m._tileset.debugShowViewerRequestVolume=oe,m._scene.requestRender())}}),this.showRequestVolumes=!1;let R=sr.observable();sr.defineProperty(this,"freezeFrame",{get:function(){return R()},set:function(oe){R(oe),F(m._tileset)&&(m._tileset.debugFreezeFrame=oe,m._scene.debugShowFrustumPlanes=oe,m._scene.requestRender())}}),this.freezeFrame=!1,sr.defineProperty(this,"showOnlyPickedTileDebugLabel",{get:function(){return C()},set:function(oe){C(oe),F(m._tileset)&&(m._tileset.debugPickedTileLabelOnly=oe,m._scene.requestRender())}}),this.showOnlyPickedTileDebugLabel=!1;let P=sr.observable();sr.defineProperty(this,"showGeometricError",{get:function(){return P()},set:function(oe){P(oe),F(m._tileset)&&(m._tileset.debugShowGeometricError=oe,m._scene.requestRender())}}),this.showGeometricError=!1;let A=sr.observable();sr.defineProperty(this,"showRenderingStatistics",{get:function(){return A()},set:function(oe){A(oe),F(m._tileset)&&(m._tileset.debugShowRenderingStatistics=oe,m._scene.requestRender())}}),this.showRenderingStatistics=!1;let M=sr.observable();sr.defineProperty(this,"showMemoryUsage",{get:function(){return M()},set:function(oe){M(oe),F(m._tileset)&&(m._tileset.debugShowMemoryUsage=oe,m._scene.requestRender())}}),this.showMemoryUsage=!1;let V=sr.observable();sr.defineProperty(this,"showUrl",{get:function(){return V()},set:function(oe){V(oe),F(m._tileset)&&(m._tileset.debugShowUrl=oe,m._scene.requestRender())}}),this.showUrl=!1;let G=sr.observable();sr.defineProperty(this,"maximumScreenSpaceError",{get:function(){return G()},set:function(oe){oe=Number(oe),isNaN(oe)||(G(oe),F(m._tileset)&&(m._tileset.maximumScreenSpaceError=oe))}}),this.maximumScreenSpaceError=16;let D=sr.observable();sr.defineProperty(this,"dynamicScreenSpaceErrorDensity",{get:function(){return D()},set:function(oe){oe=Number(oe),isNaN(oe)||(D(oe),F(m._tileset)&&(m._tileset.dynamicScreenSpaceErrorDensity=oe))}}),this.dynamicScreenSpaceErrorDensity=2e-4,this.dynamicScreenSpaceErrorDensitySliderValue=void 0,sr.defineProperty(this,"dynamicScreenSpaceErrorDensitySliderValue",{get:function(){return Math.pow(D(),1/6)},set:function(oe){let ce=Math.pow(oe,6);D(ce),F(m._tileset)&&(m._tileset.dynamicScreenSpaceErrorDensity=ce)}});let N=sr.observable();sr.defineProperty(this,"dynamicScreenSpaceErrorFactor",{get:function(){return N()},set:function(oe){oe=Number(oe),isNaN(oe)||(N(oe),F(m._tileset)&&(m._tileset.dynamicScreenSpaceErrorFactor=oe))}}),this.dynamicScreenSpaceErrorFactor=24;let k=E8i(this),U=sr.observable();sr.defineProperty(this,"pickActive",{get:function(){return U()},set:function(oe){U(oe),oe?m._eventHandler.setInputAction(k,Si.LEFT_CLICK):m._eventHandler.removeInputAction(Si.LEFT_CLICK)}});let B=sr.observable();sr.defineProperty(this,"pointCloudShading",{get:function(){return B()},set:function(oe){B(oe),F(m._tileset)&&(m._tileset.pointCloudShading.attenuation=oe)}}),this.pointCloudShading=!1;let Y=sr.observable();sr.defineProperty(this,"geometricErrorScale",{get:function(){return Y()},set:function(oe){oe=Number(oe),isNaN(oe)||(Y(oe),F(m._tileset)&&(m._tileset.pointCloudShading.geometricErrorScale=oe))}}),this.geometricErrorScale=1;let J=sr.observable();sr.defineProperty(this,"maximumAttenuation",{get:function(){return J()},set:function(oe){oe=Number(oe),isNaN(oe)||(J(oe),F(m._tileset)&&(m._tileset.pointCloudShading.maximumAttenuation=oe===0?void 0:oe))}}),this.maximumAttenuation=0;let K=sr.observable();sr.defineProperty(this,"baseResolution",{get:function(){return K()},set:function(oe){oe=Number(oe),isNaN(oe)||(K(oe),F(m._tileset)&&(m._tileset.pointCloudShading.baseResolution=oe===0?void 0:oe))}}),this.baseResolution=0;let z=sr.observable();sr.defineProperty(this,"eyeDomeLighting",{get:function(){return z()},set:function(oe){z(oe),F(m._tileset)&&(m._tileset.pointCloudShading.eyeDomeLighting=oe)}}),this.eyeDomeLighting=!1;let j=sr.observable();sr.defineProperty(this,"eyeDomeLightingStrength",{get:function(){return j()},set:function(oe){oe=Number(oe),isNaN(oe)||(j(oe),F(m._tileset)&&(m._tileset.pointCloudShading.eyeDomeLightingStrength=oe))}}),this.eyeDomeLightingStrength=1;let q=sr.observable();sr.defineProperty(this,"eyeDomeLightingRadius",{get:function(){return q()},set:function(oe){oe=Number(oe),isNaN(oe)||(q(oe),F(m._tileset)&&(m._tileset.pointCloudShading.eyeDomeLightingRadius=oe))}}),this.eyeDomeLightingRadius=1,this.pickActive=!1;let O=sr.observable();sr.defineProperty(this,"skipLevelOfDetail",{get:function(){return O()},set:function(oe){O(oe),F(m._tileset)&&(m._tileset.skipLevelOfDetail=oe)}}),this.skipLevelOfDetail=!0;let te=sr.observable();sr.defineProperty(this,"skipScreenSpaceErrorFactor",{get:function(){return te()},set:function(oe){oe=Number(oe),isNaN(oe)||(te(oe),F(m._tileset)&&(m._tileset.skipScreenSpaceErrorFactor=oe))}}),this.skipScreenSpaceErrorFactor=16;let ie=sr.observable();sr.defineProperty(this,"baseScreenSpaceError",{get:function(){return ie()},set:function(oe){oe=Number(oe),isNaN(oe)||(ie(oe),F(m._tileset)&&(m._tileset.baseScreenSpaceError=oe))}}),this.baseScreenSpaceError=1024;let re=sr.observable();sr.defineProperty(this,"skipLevels",{get:function(){return re()},set:function(oe){oe=Number(oe),isNaN(oe)||(re(oe),F(m._tileset)&&(m._tileset.skipLevels=oe))}}),this.skipLevels=1;let ee=sr.observable();sr.defineProperty(this,"immediatelyLoadDesiredLevelOfDetail",{get:function(){return ee()},set:function(oe){ee(oe),F(m._tileset)&&(m._tileset.immediatelyLoadDesiredLevelOfDetail=oe)}}),this.immediatelyLoadDesiredLevelOfDetail=!1;let ae=sr.observable();sr.defineProperty(this,"loadSiblings",{get:function(){return ae()},set:function(oe){ae(oe),F(m._tileset)&&(m._tileset.loadSiblings=oe)}}),this.loadSiblings=!1,this._style=void 0,this._shouldStyle=!1,this._definedProperties=["properties","dynamicScreenSpaceError","colorBlendMode","picking","colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","maximumScreenSpaceError","dynamicScreenSpaceErrorDensity","baseScreenSpaceError","skipScreenSpaceErrorFactor","skipLevelOfDetail","skipLevels","immediatelyLoadDesiredLevelOfDetail","loadSiblings","dynamicScreenSpaceErrorDensitySliderValue","dynamicScreenSpaceErrorFactor","pickActive","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl","pointCloudShading","geometricErrorScale","maximumAttenuation","baseResolution","eyeDomeLighting","eyeDomeLightingStrength","eyeDomeLightingRadius"],this._removePostRenderEvent=o.postRender.addEventListener(function(){m._update()}),F(this._tileset)||Bgt(this,!0)}Object.defineProperties(Ng.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},statisticsText:{get:function(){return this._statisticsText}},pickStatisticsText:{get:function(){return this._pickStatisticsText}},resourceCacheStatisticsText:{get:function(){return this._resourceCacheStatisticsText}},colorBlendModes:{get:function(){return P8i}},editorError:{get:function(){return this._editorError}},tileset:{get:function(){return this._tileset},set:function(o){if(this._tileset=o,this._style=void 0,this.styleString="{}",this.feature=void 0,this.tile=void 0,F(o)){this._properties(o.properties);let f=["colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl"],m=f.length;for(let y=0;y<m;++y){let v=f[y];this[v]=this[v]}this.maximumScreenSpaceError=o.maximumScreenSpaceError,this.dynamicScreenSpaceError=o.dynamicScreenSpaceError,this.dynamicScreenSpaceErrorDensity=o.dynamicScreenSpaceErrorDensity,this.dynamicScreenSpaceErrorFactor=o.dynamicScreenSpaceErrorFactor,this.colorBlendMode=o.colorBlendMode,this.skipLevelOfDetail=o.skipLevelOfDetail,this.skipScreenSpaceErrorFactor=o.skipScreenSpaceErrorFactor,this.baseScreenSpaceError=o.baseScreenSpaceError,this.skipLevels=o.skipLevels,this.immediatelyLoadDesiredLevelOfDetail=o.immediatelyLoadDesiredLevelOfDetail,this.loadSiblings=o.loadSiblings,this.hasEnabledWireframe=o._enableDebugWireframe;let x=o.pointCloudShading;this.pointCloudShading=x.attenuation,this.geometricErrorScale=x.geometricErrorScale,this.maximumAttenuation=x.maximumAttenuation?x.maximumAttenuation:0,this.baseResolution=x.baseResolution?x.baseResolution:0,this.eyeDomeLighting=x.eyeDomeLighting,this.eyeDomeLightingStrength=x.eyeDomeLightingStrength,this.eyeDomeLightingRadius=x.eyeDomeLightingRadius,this._scene.requestRender()}else this._properties({});this._statisticsText=N6(o,!1),this._pickStatisticsText=N6(o,!0),this._resourceCacheStatisticsText=Hgt(),Bgt(this,!1)}},feature:{get:function(){return this._feature},set:function(o){if(this._feature===o)return;let f=this._feature;F(f)&&!f.content.isDestroyed()&&(!this.colorize&&F(this._style)?f.color=F(this._style.color)?this._style.color.evaluateColor(f,I8i):Xe.WHITE:f.color=woe,this._scene.requestRender()),F(o)&&(Xe.clone(o.color,woe),o.color=lqe,this._scene.requestRender()),this._feature=o}},tile:{get:function(){return this._tile},set:function(o){if(this._tile===o)return;let f=this._tile;F(f)&&!f.isDestroyed()&&!J1e(f.content)&&(f.color=woe,this._scene.requestRender()),F(o)&&!J1e(o.content)&&(Xe.clone(o.color,woe),o.color=lqe,this._scene.requestRender()),this._tile=o}}});function J1e(o){if(!F(o))return!1;if(o.featuresLength>0)return!0;let f=o.innerContents;if(F(f)){let m=f.length;for(let x=0;x<m;++x)if(!J1e(f[x]))return!1;return!0}return!1}Ng.prototype.togglePickTileset=function(){this.pickActive=!this.pickActive};Ng.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};Ng.prototype.toggleTileset=function(){this.tilesetVisible=!this.tilesetVisible};Ng.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};Ng.prototype.toggleUpdate=function(){this.updateVisible=!this.updateVisible};Ng.prototype.toggleLogging=function(){this.loggingVisible=!this.loggingVisible};Ng.prototype.toggleStyle=function(){this.styleVisible=!this.styleVisible};Ng.prototype.toggleTileDebugLabels=function(){this.tileDebugLabelsVisible=!this.tileDebugLabelsVisible};Ng.prototype.toggleOptimization=function(){this.optimizationVisible=!this.optimizationVisible};Ng.prototype.trimTilesCache=function(){F(this._tileset)&&this._tileset.trimLoadedTiles()};Ng.prototype.compileStyle=function(){let o=this._tileset;if(!(!F(o)||this.styleString===JSON.stringify(o.style))){this._editorError="";try{this.styleString.length===0&&(this.styleString="{}"),this._style=new ZS(JSON.parse(this.styleString)),this._shouldStyle=!0,this._scene.requestRender()}catch(f){this._editorError=f.toString()}this.feature=this._feature,this.tile=this._tile}};Ng.prototype.styleEditorKeyPress=function(o,f){if(f.keyCode===9){f.preventDefault();let m=f.target,x=m.selectionStart,y=m.selectionEnd,v=y,C=m.value.slice(x,y).split(`
`),T=C.length,S;if(f.shiftKey)for(S=0;S<T;++S)C[S][0]===" "&&(C[S][1]===" "?(C[S]=C[S].substr(2),v-=2):(C[S]=C[S].substr(1),v-=1));else for(S=0;S<T;++S)C[S]=`  ${C[S]}`,v+=2;let w=C.join(`
`);m.value=m.value.slice(0,x)+w+m.value.slice(y),m.selectionStart=x!==y?x:v,m.selectionEnd=v}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileStyle();return!0};Ng.prototype._update=function(){let o=this._tileset;if(this.performance&&this._performanceDisplay.update(),F(o)){if(o.isDestroyed()){this.tile=void 0,this.feature=void 0,this.tileset=void 0;return}let f=o.style;this._style!==o.style&&(this._shouldStyle?(o.style=this._style,this._shouldStyle=!1):(this._style=f,this.styleString=JSON.stringify(f.style,null,"  ")))}this.showStatistics&&(this._statisticsText=N6(o,!1),this._pickStatisticsText=N6(o,!0),this._resourceCacheStatisticsText=Hgt())};Ng.prototype.isDestroyed=function(){return!1};Ng.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let o=this;return this._definedProperties.forEach(function(f){sr.getObservable(o,f).dispose()}),yr(this)};Ng.getStatistics=N6;var TDe=Ng;function Xde(o,f){o=Qh(o);let m=document.createElement("div"),x=document.createElement("div");x.setAttribute("data-bind","visible: performance");let y=new TDe(f,x);this._viewModel=y,this._container=o,this._element=m;let v=document.createElement("div");v.textContent="3D Tiles Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleInspector"),m.appendChild(v),m.className="cesium-cesiumInspector cesium-3DTilesInspector",m.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),o.appendChild(m);let C=document.createElement("div");C.className="cesium-cesiumInspector-dropDown",m.appendChild(C);let T=sI.createSection,S=sI.createCheckbox,w=sI.createRangeInput,E=sI.createButton,L=T(C,"Tileset","tilesetVisible","toggleTileset"),I=T(C,"Display","displayVisible","toggleDisplay"),R=T(C,"Update","updateVisible","toggleUpdate"),P=T(C,"Logging","loggingVisible","toggleLogging"),A=T(C,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),M=T(C,"Style","styleVisible","toggleStyle"),V=T(C,"Optimization","optimizationVisible","toggleOptimization"),G=document.createElement("div");G.className="field-group";let D=document.createElement("label");D.className="field-label",D.appendChild(document.createTextNode("Properties: "));let N=document.createElement("div");N.setAttribute("data-bind","text: properties"),G.appendChild(D),G.appendChild(N),L.appendChild(G),L.appendChild(E("Pick Tileset","togglePickTileset","pickActive")),L.appendChild(E("Trim Tiles Cache","trimTilesCache")),L.appendChild(S("Enable Picking","picking")),I.appendChild(S("Colorize","colorize"));let k=I.appendChild(S("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),U=document.createElement("p");U.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),U.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),U.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",k.appendChild(U),I.appendChild(S("Bounding Volumes","showBoundingVolumes")),I.appendChild(S("Content Volumes","showContentBoundingVolumes")),I.appendChild(S("Request Volumes","showRequestVolumes")),I.appendChild(S("Point Cloud Shading","pointCloudShading"));let B=document.createElement("div");B.setAttribute("data-bind","visible: pointCloudShading"),B.appendChild(w("Geometric Error Scale","geometricErrorScale",0,2,.01)),B.appendChild(w("Maximum Attenuation","maximumAttenuation",0,32,1)),B.appendChild(w("Base Resolution","baseResolution",0,1,.01)),B.appendChild(S("Eye Dome Lighting (EDL)","eyeDomeLighting")),I.appendChild(B);let Y=document.createElement("div");Y.setAttribute("data-bind","visible: eyeDomeLighting"),Y.appendChild(w("EDL Strength","eyeDomeLightingStrength",0,2,.1)),Y.appendChild(w("EDL Radius","eyeDomeLightingRadius",0,4,.1)),B.appendChild(Y),R.appendChild(S("Freeze Frame","freezeFrame")),R.appendChild(S("Dynamic Screen Space Error","dynamicScreenSpaceError"));let J=document.createElement("div");J.appendChild(w("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),R.appendChild(J);let K=document.createElement("div");K.setAttribute("data-bind","visible: dynamicScreenSpaceError"),K.appendChild(w("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),K.appendChild(w("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),R.appendChild(K),P.appendChild(S("Performance","performance")),P.appendChild(x),P.appendChild(S("Statistics","showStatistics"));let z=document.createElement("div");z.className="cesium-3dTilesInspector-statistics",z.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),P.appendChild(z),P.appendChild(S("Pick Statistics","showPickStatistics"));let j=document.createElement("div");j.className="cesium-3dTilesInspector-statistics",j.setAttribute("data-bind","html: pickStatisticsText, visible: showPickStatistics"),P.appendChild(j),P.appendChild(S("Resource Cache Statistics","showResourceCacheStatistics"));let q=document.createElement("div");q.className="cesium-3dTilesInspector-statistics",q.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),P.appendChild(q);let O=document.createElement("div");M.appendChild(O),O.appendChild(document.createTextNode("Color Blend Mode: "));let te=document.createElement("select");te.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),O.appendChild(te);let ie=document.createElement("textarea");ie.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),O.className="cesium-cesiumInspector-styleEditor",O.appendChild(ie);let re=E("Compile (Ctrl+Enter)","compileStyle");O.appendChild(re);let ee=document.createElement("div");ee.className="cesium-cesiumInspector-error",ee.setAttribute("data-bind","text: editorError"),O.appendChild(ee),A.appendChild(S("Show Picked Only","showOnlyPickedTileDebugLabel")),A.appendChild(S("Geometric Error","showGeometricError")),A.appendChild(S("Rendering Statistics","showRenderingStatistics")),A.appendChild(S("Memory Usage (MB)","showMemoryUsage")),A.appendChild(S("Url","showUrl")),V.appendChild(S("Skip Tile LODs","skipLevelOfDetail"));let ae=document.createElement("div");ae.appendChild(w("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),V.appendChild(ae);let oe=document.createElement("div");oe.appendChild(w("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),V.appendChild(oe);let ce=document.createElement("div");ce.appendChild(w("Min. levels to skip","skipLevels",0,10,1)),V.appendChild(ce),V.appendChild(S("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),V.appendChild(S("Load siblings of visible tiles","loadSiblings")),sr.applyBindings(y,m)}Object.defineProperties(Xde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Xde.prototype.isDestroyed=function(){return!1};Xde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};var SDe=Xde;function R8i(o){let f;if(F(o)){f="Command Statistics";let m=o.commandsInFrustums;for(let x in m)if(m.hasOwnProperty(x)){let y=parseInt(x,10),v;if(y===7)v="1, 2 and 3";else{let C=[];for(let T=2;T>=0;T--){let S=Math.pow(2,T);y>=S&&(C.push(T+1),y-=S)}v=C.reverse().join(" and ")}f+=`<br>&nbsp;&nbsp;&nbsp;&nbsp;${m[x]} in frustum ${v}`}f+=`<br>Total: ${o.totalCommands}`}return f}function j1e(o,f,m){let x=Math.min(m,f);return x=Math.max(x,o),x}var A8i=new Ma,M8i=new Z;function g$(o,f){let m=this,x=o.canvas,y=new Lr(x);this._eventHandler=y,this._scene=o,this._canvas=x,this._primitive=void 0,this._tile=void 0,this._modelMatrixPrimitive=void 0,this._performanceDisplay=void 0,this._performanceContainer=f;let v=this._scene.globe;v.depthTestAgainstTerrain=!0,this.frustums=!1,this.frustumPlanes=!1,this.performance=!1,this.shaderCacheText="",this.primitiveBoundingSphere=!1,this.primitiveReferenceFrame=!1,this.filterPrimitive=!1,this.tileBoundingSphere=!1,this.filterTile=!1,this.wireframe=!1,this.depthFrustum=1,this._numberOfFrustums=1,this.suspendUpdates=!1,this.tileCoordinates=!1,this.frustumStatisticText=!1,this.tileText="",this.hasPickedPrimitive=!1,this.hasPickedTile=!1,this.pickPrimitiveActive=!1,this.pickTileActive=!1,this.dropDownVisible=!0,this.generalVisible=!0,this.primitivesVisible=!1,this.terrainVisible=!1,this.depthFrustumText="",sr.track(this,["frustums","frustumPlanes","performance","shaderCacheText","primitiveBoundingSphere","primitiveReferenceFrame","filterPrimitive","tileBoundingSphere","filterTile","wireframe","depthFrustum","suspendUpdates","tileCoordinates","frustumStatisticText","tileText","hasPickedPrimitive","hasPickedTile","pickPrimitiveActive","pickTileActive","dropDownVisible","generalVisible","primitivesVisible","terrainVisible","depthFrustumText"]),this._toggleDropDown=Il(function(){m.dropDownVisible=!m.dropDownVisible}),this._toggleGeneral=Il(function(){m.generalVisible=!m.generalVisible}),this._togglePrimitives=Il(function(){m.primitivesVisible=!m.primitivesVisible}),this._toggleTerrain=Il(function(){m.terrainVisible=!m.terrainVisible}),this._frustumsSubscription=sr.getObservable(this,"frustums").subscribe(function(w){m._scene.debugShowFrustums=w,m._scene.requestRender()}),this._frustumPlanesSubscription=sr.getObservable(this,"frustumPlanes").subscribe(function(w){m._scene.debugShowFrustumPlanes=w,m._scene.requestRender()}),this._performanceSubscription=sr.getObservable(this,"performance").subscribe(function(w){w?m._performanceDisplay=new Fq({container:m._performanceContainer}):m._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=Il(function(){return m._primitive.debugShowBoundingVolume=m.primitiveBoundingSphere,m._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=sr.getObservable(this,"primitiveBoundingSphere").subscribe(function(){m._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=Il(function(){if(m.primitiveReferenceFrame){let w=m._primitive.modelMatrix;m._modelMatrixPrimitive=new LFe({modelMatrix:w}),m._scene.primitives.add(m._modelMatrixPrimitive)}else F(m._modelMatrixPrimitive)&&(m._scene.primitives.remove(m._modelMatrixPrimitive),m._modelMatrixPrimitive=void 0);return m._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=sr.getObservable(this,"primitiveReferenceFrame").subscribe(function(){m._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=Il(function(){return m.filterPrimitive?m._scene.debugCommandFilter=function(w){return F(m._modelMatrixPrimitive)&&w.owner===m._modelMatrixPrimitive._primitive?!0:F(m._primitive)?w.owner===m._primitive||w.owner===m._primitive._billboardCollection||w.owner.primitive===m._primitive:!1}:m._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=sr.getObservable(this,"filterPrimitive").subscribe(function(){m._doFilterPrimitive(),m._scene.requestRender()}),this._wireframeSubscription=sr.getObservable(this,"wireframe").subscribe(function(w){v._surface.tileProvider._debug.wireframe=w,m._scene.requestRender()}),this._depthFrustumSubscription=sr.getObservable(this,"depthFrustum").subscribe(function(w){m._scene.debugShowDepthFrustum=w,m._scene.requestRender()}),this._incrementDepthFrustum=Il(function(){let w=m.depthFrustum+1;return m.depthFrustum=j1e(1,m._numberOfFrustums,w),m._scene.requestRender(),!0}),this._decrementDepthFrustum=Il(function(){let w=m.depthFrustum-1;return m.depthFrustum=j1e(1,m._numberOfFrustums,w),m._scene.requestRender(),!0}),this._suspendUpdatesSubscription=sr.getObservable(this,"suspendUpdates").subscribe(function(w){v._surface._debug.suspendLodUpdate=w,w||(m.filterTile=!1)});let C;this._showTileCoordinates=Il(function(){return m.tileCoordinates&&!F(C)?C=o.imageryLayers.addImageryProvider(new l$({tilingScheme:o.terrainProvider.tilingScheme})):!m.tileCoordinates&&F(C)&&(o.imageryLayers.remove(C),C=void 0),!0}),this._tileCoordinatesSubscription=sr.getObservable(this,"tileCoordinates").subscribe(function(){m._showTileCoordinates(),m._scene.requestRender()}),this._tileBoundingSphereSubscription=sr.getObservable(this,"tileBoundingSphere").subscribe(function(){m._showTileBoundingSphere(),m._scene.requestRender()}),this._showTileBoundingSphere=Il(function(){return m.tileBoundingSphere?v._surface.tileProvider._debug.boundingSphereTile=m._tile:v._surface.tileProvider._debug.boundingSphereTile=void 0,m._scene.requestRender(),!0}),this._doFilterTile=Il(function(){return m.filterTile?(m.suspendUpdates=!0,v._surface._tilesToRender=[],F(m._tile)&&m._tile.renderable&&v._surface._tilesToRender.push(m._tile)):m.suspendUpdates=!1,!0}),this._filterTileSubscription=sr.getObservable(this,"filterTile").subscribe(function(){m.doFilterTile(),m._scene.requestRender()});function T(w){let E=m._scene.pick({x:w.position.x,y:w.position.y});F(E)&&(m.primitive=F(E.collection)?E.collection:E.primitive),m._scene.requestRender(),m.pickPrimitiveActive=!1}this._pickPrimitive=Il(function(){m.pickPrimitiveActive=!m.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=sr.getObservable(this,"pickPrimitiveActive").subscribe(function(w){w?y.setInputAction(T,Si.LEFT_CLICK):y.removeInputAction(Si.LEFT_CLICK)});function S(w){let E,L=v.ellipsoid,I=m._scene.camera.getPickRay(w.position,A8i),R=v.pick(I,m._scene,M8i);if(F(R)){let P=L.cartesianToCartographic(R),A=v._surface.tileProvider._tilesToRenderByTextureCount;for(let M=0;!E&&M<A.length;++M){let V=A[M];if(F(V))for(let G=0;!E&&G<V.length;++G){let D=V[G];vi.contains(D.rectangle,P)&&(E=D)}}}m.tile=E,m.pickTileActive=!1}this._pickTile=Il(function(){m.pickTileActive=!m.pickTileActive}),this._pickTileActiveSubscription=sr.getObservable(this,"pickTileActive").subscribe(function(w){w?y.setInputAction(S,Si.LEFT_CLICK):y.removeInputAction(Si.LEFT_CLICK)}),this._removePostRenderEvent=o.postRender.addEventListener(function(){m._update()})}Object.defineProperties(g$.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},toggleDropDown:{get:function(){return this._toggleDropDown}},showPrimitiveBoundingSphere:{get:function(){return this._showPrimitiveBoundingSphere}},showPrimitiveReferenceFrame:{get:function(){return this._showPrimitiveReferenceFrame}},doFilterPrimitive:{get:function(){return this._doFilterPrimitive}},incrementDepthFrustum:{get:function(){return this._incrementDepthFrustum}},decrementDepthFrustum:{get:function(){return this._decrementDepthFrustum}},showTileCoordinates:{get:function(){return this._showTileCoordinates}},showTileBoundingSphere:{get:function(){return this._showTileBoundingSphere}},doFilterTile:{get:function(){return this._doFilterTile}},toggleGeneral:{get:function(){return this._toggleGeneral}},togglePrimitives:{get:function(){return this._togglePrimitives}},toggleTerrain:{get:function(){return this._toggleTerrain}},pickPrimitive:{get:function(){return this._pickPrimitive}},pickTile:{get:function(){return this._pickTile}},selectParent:{get:function(){let o=this;return Il(function(){o.tile=o.tile.parent})}},selectNW:{get:function(){let o=this;return Il(function(){o.tile=o.tile.northwestChild})}},selectNE:{get:function(){let o=this;return Il(function(){o.tile=o.tile.northeastChild})}},selectSW:{get:function(){let o=this;return Il(function(){o.tile=o.tile.southwestChild})}},selectSE:{get:function(){let o=this;return Il(function(){o.tile=o.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(o){let f=this._primitive;o!==f&&(this.hasPickedPrimitive=!0,F(f)&&(f.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,F(this._modelMatrixPrimitive)&&(this._scene.primitives.remove(this._modelMatrixPrimitive),this._modelMatrixPrimitive=void 0),this._primitive=o,o.show=!1,setTimeout(function(){o.show=!0},50),this.showPrimitiveBoundingSphere(),this.showPrimitiveReferenceFrame(),this.doFilterPrimitive())}},tile:{get:function(){return this._tile},set:function(o){if(F(o)){this.hasPickedTile=!0;let f=this._tile;if(o!==f){this.tileText=`L: ${o.level} X: ${o.x} Y: ${o.y}`,this.tileText+=`<br>SW corner: ${o.rectangle.west}, ${o.rectangle.south}`,this.tileText+=`<br>NE corner: ${o.rectangle.east}, ${o.rectangle.north}`;let m=o.data;F(m)&&F(m.tileBoundingRegion)?this.tileText+=`<br>Min: ${m.tileBoundingRegion.minimumHeight} Max: ${m.tileBoundingRegion.maximumHeight}`:this.tileText+="<br>(Tile is not loaded)"}this._tile=o,this.showTileBoundingSphere(),this.doFilterTile()}else this.hasPickedTile=!1,this._tile=void 0}}});g$.prototype._update=function(){this.frustums&&(this.frustumStatisticText=R8i(this._scene.debugFrustumStatistics));let o=this._scene.numberOfFrustums;this._numberOfFrustums=o,this.depthFrustum=j1e(1,o,this.depthFrustum),this.depthFrustumText=`${this.depthFrustum} of ${o}`,this.performance&&this._performanceDisplay.update(),this.primitiveReferenceFrame&&(this._modelMatrixPrimitive.modelMatrix=this._primitive.modelMatrix),this.shaderCacheText=`Cached shaders: ${this._scene.context.shaderCache.numberOfShaders}`};g$.prototype.isDestroyed=function(){return!1};g$.prototype.destroy=function(){return this._eventHandler.destroy(),this._removePostRenderEvent(),this._frustumsSubscription.dispose(),this._frustumPlanesSubscription.dispose(),this._performanceSubscription.dispose(),this._primitiveBoundingSphereSubscription.dispose(),this._primitiveReferenceFrameSubscription.dispose(),this._filterPrimitiveSubscription.dispose(),this._wireframeSubscription.dispose(),this._depthFrustumSubscription.dispose(),this._suspendUpdatesSubscription.dispose(),this._tileCoordinatesSubscription.dispose(),this._tileBoundingSphereSubscription.dispose(),this._filterTileSubscription.dispose(),this._pickPrimitiveActiveSubscription.dispose(),this._pickTileActiveSubscription.dispose(),yr(this)};var wDe=g$;function kde(o,f){o=Qh(o);let m=document.createElement("div"),x=new wDe(f,m);this._viewModel=x,this._container=o;let y=document.createElement("div");this._element=y;let v=document.createElement("div");v.textContent="Cesium Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleDropDown"),y.appendChild(v),y.className="cesium-cesiumInspector",y.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }'),o.appendChild(this._element);let C=document.createElement("div");C.className="cesium-cesiumInspector-dropDown",y.appendChild(C);let T=sI.createSection,S=sI.createCheckbox,w=T(C,"General","generalVisible","toggleGeneral"),E=S("Show Frustums","frustums"),L=document.createElement("div");L.className="cesium-cesiumInspector-frustumStatistics",L.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),E.appendChild(L),w.appendChild(E),w.appendChild(S("Show Frustum Planes","frustumPlanes")),w.appendChild(S("Performance Display","performance")),m.className="cesium-cesiumInspector-performanceDisplay",w.appendChild(m);let I=document.createElement("div");I.className="cesium-cesiumInspector-shaderCache",I.setAttribute("data-bind","html: shaderCacheText"),w.appendChild(I);let R=document.createElement("div");w.appendChild(R);let P=document.createElement("span");P.setAttribute("data-bind",'html: "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Frustum:"'),R.appendChild(P);let A=document.createElement("span");A.setAttribute("data-bind","text: depthFrustumText"),R.appendChild(A);let M=document.createElement("input");M.type="button",M.value="-",M.className="cesium-cesiumInspector-pickButton",M.setAttribute("data-bind","click: decrementDepthFrustum"),R.appendChild(M);let V=document.createElement("input");V.type="button",V.value="+",V.className="cesium-cesiumInspector-pickButton",V.setAttribute("data-bind","click: incrementDepthFrustum"),R.appendChild(V);let G=T(C,"Primitives","primitivesVisible","togglePrimitives"),D=document.createElement("div");D.className="cesium-cesiumInspector-pickSection",G.appendChild(D);let N=document.createElement("input");N.type="button",N.value="Pick a primitive",N.className="cesium-cesiumInspector-pickButton",N.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let k=document.createElement("div");k.className="cesium-cesiumInspector-center",k.appendChild(N),D.appendChild(k),D.appendChild(S("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),D.appendChild(S("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=S("Show only selected","filterPrimitive","hasPickedPrimitive"),D.appendChild(this._primitiveOnly);let U=T(C,"Terrain","terrainVisible","toggleTerrain"),B=document.createElement("div");B.className="cesium-cesiumInspector-pickSection",U.appendChild(B);let Y=document.createElement("input");Y.type="button",Y.value="Pick a tile",Y.className="cesium-cesiumInspector-pickButton",Y.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile'),k=document.createElement("div"),k.appendChild(Y),k.className="cesium-cesiumInspector-center",B.appendChild(k);let J=document.createElement("div");B.appendChild(J);let K=document.createElement("input");K.type="button",K.value="Parent",K.className="cesium-cesiumInspector-pickButton",K.setAttribute("data-bind","click: selectParent");let z=document.createElement("input");z.type="button",z.value="NW",z.className="cesium-cesiumInspector-pickButton",z.setAttribute("data-bind","click: selectNW");let j=document.createElement("input");j.type="button",j.value="NE",j.className="cesium-cesiumInspector-pickButton",j.setAttribute("data-bind","click: selectNE");let q=document.createElement("input");q.type="button",q.value="SW",q.className="cesium-cesiumInspector-pickButton",q.setAttribute("data-bind","click: selectSW");let O=document.createElement("input");O.type="button",O.value="SE",O.className="cesium-cesiumInspector-pickButton",O.setAttribute("data-bind","click: selectSE");let te=document.createElement("div");te.className="cesium-cesiumInspector-tileText",J.className="cesium-cesiumInspector-frustumStatistics",J.appendChild(te),J.setAttribute("data-bind","visible: hasPickedTile"),te.setAttribute("data-bind","html: tileText");let ie=document.createElement("div");ie.className="cesium-cesiumInspector-relativeText",ie.textContent="Select relative:",J.appendChild(ie);let re=document.createElement("table"),ee=document.createElement("tr"),ae=document.createElement("tr"),oe=document.createElement("td");oe.appendChild(K);let ce=document.createElement("td");ce.appendChild(z);let pe=document.createElement("td");pe.appendChild(j),ee.appendChild(oe),ee.appendChild(ce),ee.appendChild(pe);let ue=document.createElement("td"),he=document.createElement("td");he.appendChild(q);let fe=document.createElement("td");fe.appendChild(O),ae.appendChild(ue),ae.appendChild(he),ae.appendChild(fe),re.appendChild(ee),re.appendChild(ae),J.appendChild(re),B.appendChild(S("Show bounding volume","tileBoundingSphere","hasPickedTile")),B.appendChild(S("Show only selected","filterTile","hasPickedTile")),U.appendChild(S("Wireframe","wireframe")),U.appendChild(S("Suspend LOD update","suspendUpdates")),U.appendChild(S("Show tile coordinates","tileCoordinates")),sr.applyBindings(x,this._element)}Object.defineProperties(kde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});kde.prototype.isDestroyed=function(){return!1};kde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};var EDe=kde;function Ude(o,f){F(f)||(f=document.body),f=Qh(f);let m=this,x=sr.observable(km.fullscreen),y=sr.observable(km.enabled),v=f.ownerDocument;this.isFullscreen=void 0,sr.defineProperty(this,"isFullscreen",{get:function(){return x()}}),this.isFullscreenEnabled=void 0,sr.defineProperty(this,"isFullscreenEnabled",{get:function(){return y()},set:function(C){y(C&&km.enabled)}}),this.tooltip=void 0,sr.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?x()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=Il(function(){km.fullscreen?km.exitFullscreen():km.requestFullscreen(m._fullscreenElement)},sr.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=Qh(o)??v.body,this._callback=function(){x(km.fullscreen)},v.addEventListener(km.changeEventName,this._callback)}Object.defineProperties(Ude.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(o){this._fullscreenElement=o}},command:{get:function(){return this._command}}});Ude.prototype.isDestroyed=function(){return!1};Ude.prototype.destroy=function(){document.removeEventListener(km.changeEventName,this._callback),yr(this)};var LDe=Ude,V8i="M 83.96875 17.5625 L 83.96875 17.59375 L 76.65625 24.875 L 97.09375 24.96875 L 76.09375 45.96875 L 81.9375 51.8125 L 102.78125 30.9375 L 102.875 51.15625 L 110.15625 43.875 L 110.1875 17.59375 L 83.96875 17.5625 z M 44.125 17.59375 L 17.90625 17.625 L 17.9375 43.90625 L 25.21875 51.1875 L 25.3125 30.96875 L 46.15625 51.8125 L 52 45.96875 L 31 25 L 51.4375 24.90625 L 44.125 17.59375 z M 46.0625 76.03125 L 25.1875 96.875 L 25.09375 76.65625 L 17.8125 83.9375 L 17.8125 110.21875 L 44 110.25 L 51.3125 102.9375 L 30.90625 102.84375 L 51.875 81.875 L 46.0625 76.03125 z M 82 76.15625 L 76.15625 82 L 97.15625 103 L 76.71875 103.0625 L 84.03125 110.375 L 110.25 110.34375 L 110.21875 84.0625 L 102.9375 76.8125 L 102.84375 97 L 82 76.15625 z",G8i="M 104.34375 17.5625 L 83.5 38.4375 L 83.40625 18.21875 L 76.125 25.5 L 76.09375 51.78125 L 102.3125 51.8125 L 102.3125 51.78125 L 109.625 44.5 L 89.1875 44.40625 L 110.1875 23.40625 L 104.34375 17.5625 z M 23.75 17.59375 L 17.90625 23.4375 L 38.90625 44.4375 L 18.5 44.53125 L 25.78125 51.8125 L 52 51.78125 L 51.96875 25.53125 L 44.6875 18.25 L 44.625 38.46875 L 23.75 17.59375 z M 25.6875 76.03125 L 18.375 83.3125 L 38.78125 83.40625 L 17.8125 104.40625 L 23.625 110.25 L 44.5 89.375 L 44.59375 109.59375 L 51.875 102.3125 L 51.875 76.0625 L 25.6875 76.03125 z M 102.375 76.15625 L 76.15625 76.1875 L 76.1875 102.4375 L 83.46875 109.71875 L 83.5625 89.53125 L 104.40625 110.375 L 110.25 104.53125 L 89.25 83.53125 L 109.6875 83.46875 L 102.375 76.15625 z";function Bde(o,f){o=Qh(o);let m=new LDe(f,o);m._exitFullScreenPath=G8i,m._enterFullScreenPath=V8i;let x=document.createElement("button");x.type="button",x.className="cesium-button cesium-fullscreenButton",x.setAttribute("data-bind","attr: { title: tooltip },click: command,enable: isFullscreenEnabled,cesiumSvgPath: { path: isFullscreen ? _exitFullScreenPath : _enterFullScreenPath, width: 128, height: 128 }"),o.appendChild(x),sr.applyBindings(m,x),this._container=o,this._viewModel=m,this._element=x}Object.defineProperties(Bde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Bde.prototype.isDestroyed=function(){return!1};Bde.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var PDe=Bde,uqe=1e3;function AS(o){F(o.geocoderServices)?this._geocoderServices=o.geocoderServices:this._geocoderServices=[new Cde({scene:o.scene})],this._viewContainer=o.container,this._scene=o.scene,this._flightDuration=o.flightDuration,this._searchText="",this._isSearchInProgress=!1,this._wasGeocodeCancelled=!1,this._previousCredits=[],this._complete=new Tr,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=hqe,this._handleArrowUp=cqe;let f=this;this._suggestionsVisible=sr.pureComputed(function(){let x=sr.getObservable(f,"_suggestions")().length>0,y=sr.getObservable(f,"_showSuggestions")();return x&&y}),this._searchCommand=Il(function(x){if(x=x??e$.SEARCH,f._focusTextbox=!1,F(f._selectedSuggestion))return f.activateSuggestion(f._selectedSuggestion),!1;if(f.hideSuggestions(),f.isSearchInProgress)O8i(f);else return W8i(f,f._geocoderServices,x)}),this.deselectSuggestion=function(){f._selectedSuggestion=void 0},this.handleKeyDown=function(x,y){let v=y.key==="ArrowDown"||y.key==="Down"||y.keyCode===40,C=y.key==="ArrowUp"||y.key==="Up"||y.keyCode===38;return(v||C)&&y.preventDefault(),!0},this.handleKeyUp=function(x,y){let v=y.key==="ArrowDown"||y.key==="Down"||y.keyCode===40,C=y.key==="ArrowUp"||y.key==="Up"||y.keyCode===38,T=y.key==="Enter"||y.keyCode===13;return C?cqe(f):v?hqe(f):T&&f._searchCommand(),!0},this.activateSuggestion=function(x){f.hideSuggestions(),f._searchText=x.displayName;let y=x.destination;Kgt(f),f.destinationFound(f,y)},this.hideSuggestions=function(){f._showSuggestions=!1,f._selectedSuggestion=void 0},this.showSuggestions=function(){f._showSuggestions=!0},this.handleMouseover=function(x,y){x!==f._selectedSuggestion&&(f._selectedSuggestion=x)},this.keepExpanded=!1,this.autoComplete=o.autocomplete??!0,this.destinationFound=o.destinationFound??AS.flyToDestination,this._focusTextbox=!1,sr.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let m=sr.getObservable(this,"_searchText");m.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=m.subscribe(function(){AS._updateSearchSuggestions(f)}),this.isSearchInProgress=void 0,sr.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,sr.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(x){this._searchText=x}}),this.flightDuration=void 0,sr.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(x){this._flightDuration=x}})}Object.defineProperties(AS.prototype,{complete:{get:function(){return this._complete}},scene:{get:function(){return this._scene}},search:{get:function(){return this._searchCommand}},selectedSuggestion:{get:function(){return this._selectedSuggestion}},suggestions:{get:function(){return this._suggestions}}});AS.prototype.destroy=function(){this._suggestionSubscription.dispose()};function cqe(o){if(o._suggestions.length===0)return;let f=o._suggestions.indexOf(o._selectedSuggestion);if(f===-1||f===0){o._selectedSuggestion=void 0;return}let m=f-1;o._selectedSuggestion=o._suggestions[m],AS._adjustSuggestionsScroll(o,m)}function hqe(o){if(o._suggestions.length===0)return;let f=o._suggestions.length,m=(o._suggestions.indexOf(o._selectedSuggestion)+1)%f;o._selectedSuggestion=o._suggestions[m],AS._adjustSuggestionsScroll(o,m)}function F8i(o,f){let m=F(f)?f.availability:void 0;return F(m)?cR(f,[o]).then(function(x){return o=x[0],o.height+=uqe,o}):(o.height+=uqe,Promise.resolve(o))}function D8i(o,f){let m=o._scene,x=m.ellipsoid,y=m.camera,v=m.terrainProvider,C=f,T;return f instanceof vi?be.equalsEpsilon(f.south,f.north,be.EPSILON7)&&be.equalsEpsilon(f.east,f.west,be.EPSILON7)?f=vi.center(f):T=hhe(f,m):f=x.cartesianToCartographic(f),F(T)||(T=F8i(f,v)),T.then(function(S){C=x.cartographicToCartesian(S)}).finally(function(){y.flyTo({destination:C,complete:function(){o._complete.raiseEvent()},duration:o._flightDuration,endTransform:Ee.IDENTITY})})}async function N8i(o,f,m){try{return{state:"fulfilled",value:await o.geocode(f,m),credits:o.credit}}catch(x){return{state:"rejected",reason:x}}}async function W8i(o,f,m){let x=o._searchText;if(Ygt(x)){o.showSuggestions();return}o._isSearchInProgress=!0,o._wasGeocodeCancelled=!1;let y,v;for(y=0;y<f.length;y++){if(o._wasGeocodeCancelled)return;if(v=await N8i(f[y],x,m),F(v)&&v.state==="fulfilled"&&v.value.length>0)break}if(o._wasGeocodeCancelled)return;o._isSearchInProgress=!1,RDe(o);let C=v.value;if(v.state==="fulfilled"&&F(C)&&C.length>0){o._searchText=C[0].displayName,o.destinationFound(o,C[0].destination);let T=zgt(o,_de.getCreditsFromResult(C[0]));F(T)||IDe(o,f[y].credit);return}o._searchText=`${x} (not found)`}function IDe(o,f){F(f)&&!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&(o._scene.frameState.creditDisplay.addStaticCredit(f),o._previousCredits.push(f))}function zgt(o,f){return F(f)&&f.forEach(m=>IDe(o,m)),f}function RDe(o){!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&o._previousCredits.forEach(f=>{o._scene.frameState.creditDisplay.removeStaticCredit(f)}),o._previousCredits.length=0}function Z8i(o,f){let m=Qh(o._viewContainer),x=m.getElementsByClassName("search-results")[0],y=m.getElementsByTagName("li")[f];if(f===0){x.scrollTop=0;return}let v=y.offsetTop;v+y.clientHeight>x.clientHeight?x.scrollTop=v+y.clientHeight:v<x.scrollTop&&(x.scrollTop=v)}function O8i(o){o._isSearchInProgress&&(o._isSearchInProgress=!1,o._wasGeocodeCancelled=!0)}function Ygt(o){return/^\s*$/.test(o)}function Kgt(o){sr.getObservable(o,"_suggestions").removeAll()}async function X8i(o){if(!o.autoComplete)return;let f=o._searchText;if(Kgt(o),RDe(o),!Ygt(f))for(let m of o._geocoderServices){let x=await m.geocode(f,e$.AUTOCOMPLETE);if(o._suggestions=o._suggestions.concat(x),x.length>0){let y=!0;x.forEach(v=>{let C=_de.getCreditsFromResult(v);y=y&&!F(C),zgt(o,C)}),y&&IDe(o,m.credit)}if(o._suggestions.length>=5)return}}AS.flyToDestination=D8i;AS._updateSearchSuggestions=X8i;AS._adjustSuggestionsScroll=Z8i;AS.prototype.isDestroyed=function(){return!1};AS.prototype.destroy=function(){return RDe(this),yr(this)};var ADe=AS,k8i="M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z",U8i="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z";function Hde(o){let f=Qh(o.container),m=new ADe(o);m._startSearchPath=k8i,m._stopSearchPath=U8i;let x=document.createElement("form");x.setAttribute("data-bind","submit: search");let y=document.createElement("input");y.type="search",y.className="cesium-geocoder-input",y.setAttribute("placeholder","Enter an address or landmark..."),y.setAttribute("data-bind",'textInput: searchText,disable: isSearchInProgress,event: { keyup: handleKeyUp, keydown: handleKeyDown, mouseover: deselectSuggestion },css: { "cesium-geocoder-input-wide" : keepExpanded || searchText.length > 0 },hasFocus: _focusTextbox'),this._onTextBoxFocus=function(){setTimeout(function(){y.select()},0)},y.addEventListener("focus",this._onTextBoxFocus,!1),x.appendChild(y),this._textBox=y;let v=document.createElement("span");v.className="cesium-geocoder-searchButton",v.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),x.appendChild(v),f.appendChild(x);let C=document.createElement("div");C.className="search-results",C.setAttribute("data-bind","visible: _suggestionsVisible");let T=document.createElement("ul");T.setAttribute("data-bind","foreach: _suggestions");let S=document.createElement("li");T.appendChild(S),S.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),C.appendChild(T),f.appendChild(C),sr.applyBindings(m,x),sr.applyBindings(m,C),this._container=f,this._searchSuggestionsContainer=C,this._viewModel=m,this._form=x,this._onInputBegin=function(w){let E=w.target;typeof w.composedPath=="function"&&(E=w.composedPath()[0]),f.contains(E)||(m._focusTextbox=!1,m.hideSuggestions())},this._onInputEnd=function(w){m._focusTextbox=!0,m.showSuggestions()},ia.supportsPointerEvents()?(document.addEventListener("pointerdown",this._onInputBegin,!0),f.addEventListener("pointerup",this._onInputEnd,!0),f.addEventListener("pointercancel",this._onInputEnd,!0)):(document.addEventListener("mousedown",this._onInputBegin,!0),f.addEventListener("mouseup",this._onInputEnd,!0),document.addEventListener("touchstart",this._onInputBegin,!0),f.addEventListener("touchend",this._onInputEnd,!0),f.addEventListener("touchcancel",this._onInputEnd,!0))}Object.defineProperties(Hde.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});Hde.prototype.isDestroyed=function(){return!1};Hde.prototype.destroy=function(){let o=this._container;return ia.supportsPointerEvents()?(document.removeEventListener("pointerdown",this._onInputBegin,!0),o.removeEventListener("pointerup",this._onInputEnd,!0)):(document.removeEventListener("mousedown",this._onInputBegin,!0),o.removeEventListener("mouseup",this._onInputEnd,!0),document.removeEventListener("touchstart",this._onInputBegin,!0),o.removeEventListener("touchend",this._onInputEnd,!0)),this._viewModel.destroy(),sr.cleanNode(this._form),sr.cleanNode(this._searchSuggestionsContainer),o.removeChild(this._form),o.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),yr(this)};var MDe=Hde;function Jgt(o,f){this._scene=o,this._duration=f;let m=this;this._command=Il(function(){m._scene.camera.flyHome(m._duration)}),this.tooltip="View Home",sr.track(this,["tooltip"])}Object.defineProperties(Jgt.prototype,{scene:{get:function(){return this._scene}},command:{get:function(){return this._command}},duration:{get:function(){return this._duration},set:function(o){this._duration=o}}});var VDe=Jgt;function zde(o,f,m){o=Qh(o);let x=new VDe(f,m);x._svgPath="M14,4l-10,8.75h20l-4.25-3.7188v-4.6562h-2.812v2.1875l-2.938-2.5625zm-7.0938,9.906v10.094h14.094v-10.094h-14.094zm2.1876,2.313h3.3122v4.25h-3.3122v-4.25zm5.8442,1.281h3.406v6.438h-3.406v-6.438z";let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button cesium-home-button",y.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),o.appendChild(y),sr.applyBindings(x,y),this._container=o,this._viewModel=x,this._element=y}Object.defineProperties(zde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});zde.prototype.isDestroyed=function(){return!1};zde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var GDe=zde;function B8i(o,f){f.currentTarget.parentElement.parentElement.querySelector(`#${o.name}-expander`).classList.toggle("active"),f.currentTarget.textContent=f.currentTarget.textContent==="+"?"-":"+"}function jgt(o,f){sr.track(o);for(let m=0;m<o.sublayers.length;m++)jgt(o.sublayers[m],f)}function wle(o){return o.modelName==="FullModel"}function Qgt(o){return o.modelName==="Overview"}function qgt(o){return Qgt(o)||wle(o)}function dqe(o,f){if(qgt(o)){o.visibility=!1;for(let x=0;x<o.sublayers.length;x++)o.sublayers[x].visibility=!0;let m={name:o.name,modelName:o.modelName,disable:sr.observable(!1),index:f.sublayers.length};return f.topLayers.push(m),f.sublayers.push(o),m}}function H8i(o,f){if(qgt(o)){f.sublayers.forEach(x=>x.visibility=!1),f.sublayers[o.index].visibility=!0;let m=document.getElementById("bsl-wrapper");wle(o)?(f.currentLevel=f.selectedLevel,m.style.display="block"):(f.selectedLevel=f.currentLevel,f.currentLevel="All",m.style.display="none")}}async function z8i(o,f){try{let m=o.getAttributeNames();for(let x=0;x<m.length;x++)if(m[x]==="BldgLevel"){let y=o.getAttributeValues(m[x]);for(let v=0;v<y.length;v++)f.push(y[v])}f.sort((x,y)=>x-y),f.unshift("All")}catch(m){console.log(`There was an error getting attributes: ${m}`)}}function Y8i(o){let f=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:sr.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:sr.observable(!0),index:-1}],currentLayer:sr.observable(),expandClickHandler:B8i,setOptionDisable:function(x,y){sr.applyBindingsToNode(x,{disable:y.disable},y)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(x){H8i(x,f.viewModel)});let m=o.sublayers;for(let x=0;x<m.length;x++){jgt(m[x],this.viewModel);let y=dqe(m[x],this.viewModel);F(y)&&(Qgt(y)||!F(this.viewModel.defaultLayer)&&wle(y))&&(this.viewModel.defaultLayer=y)}if(this.viewModel.topLayers.length===1&&m.length>0){o.show=!1;let x={name:"Full Model",modelName:"FullModel",visibility:o.show,sublayers:o.sublayers};this.viewModel.defaultLayer=dqe(x,this.viewModel),this.viewModel.currentLayer.subscribe(function(y){o.show=wle(y)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return z8i(o,this.levels),this.viewModel.currentLevel.subscribe(function(x){x!=="All"?o.filterByAttributes([{name:"BldgLevel",values:[x]}]):o.filterByAttributes()}),this.viewModel}var FDe=Y8i;function K8i(o,f){let m=document.getElementById(o),x=document.createElement("div");x.classList.add("cesium-viewer-i3s-explorer"),x.innerHTML=`
`);m.value=m.value.slice(0,x)+w+m.value.slice(y),m.selectionStart=x!==y?x:v,m.selectionEnd=v}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileStyle();return!0};Ng.prototype._update=function(){let o=this._tileset;if(this.performance&&this._performanceDisplay.update(),F(o)){if(o.isDestroyed()){this.tile=void 0,this.feature=void 0,this.tileset=void 0;return}let f=o.style;this._style!==o.style&&(this._shouldStyle?(o.style=this._style,this._shouldStyle=!1):(this._style=f,this.styleString=JSON.stringify(f.style,null,"  ")))}this.showStatistics&&(this._statisticsText=N6(o,!1),this._pickStatisticsText=N6(o,!0),this._resourceCacheStatisticsText=Hgt())};Ng.prototype.isDestroyed=function(){return!1};Ng.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let o=this;return this._definedProperties.forEach(function(f){sr.getObservable(o,f).dispose()}),yr(this)};Ng.getStatistics=N6;var TDe=Ng;function Xde(o,f){o=Qh(o);let m=document.createElement("div"),x=document.createElement("div");x.setAttribute("data-bind","visible: performance");let y=new TDe(f,x);this._viewModel=y,this._container=o,this._element=m;let v=document.createElement("div");v.textContent="3D Tiles Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleInspector"),m.appendChild(v),m.className="cesium-cesiumInspector cesium-3DTilesInspector",m.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),o.appendChild(m);let C=document.createElement("div");C.className="cesium-cesiumInspector-dropDown",m.appendChild(C);let T=sI.createSection,S=sI.createCheckbox,w=sI.createRangeInput,E=sI.createButton,L=T(C,"Tileset","tilesetVisible","toggleTileset"),I=T(C,"Display","displayVisible","toggleDisplay"),R=T(C,"Update","updateVisible","toggleUpdate"),P=T(C,"Logging","loggingVisible","toggleLogging"),A=T(C,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),M=T(C,"Style","styleVisible","toggleStyle"),V=T(C,"Optimization","optimizationVisible","toggleOptimization"),G=document.createElement("div");G.className="field-group";let D=document.createElement("label");D.className="field-label",D.appendChild(document.createTextNode("Properties: "));let N=document.createElement("div");N.setAttribute("data-bind","text: properties"),G.appendChild(D),G.appendChild(N),L.appendChild(G),L.appendChild(E("Pick Tileset","togglePickTileset","pickActive")),L.appendChild(E("Trim Tiles Cache","trimTilesCache")),L.appendChild(S("Enable Picking","picking")),I.appendChild(S("Colorize","colorize"));let k=I.appendChild(S("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),U=document.createElement("p");U.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),U.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),U.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",k.appendChild(U),I.appendChild(S("Bounding Volumes","showBoundingVolumes")),I.appendChild(S("Content Volumes","showContentBoundingVolumes")),I.appendChild(S("Request Volumes","showRequestVolumes")),I.appendChild(S("Point Cloud Shading","pointCloudShading"));let B=document.createElement("div");B.setAttribute("data-bind","visible: pointCloudShading"),B.appendChild(w("Geometric Error Scale","geometricErrorScale",0,2,.01)),B.appendChild(w("Maximum Attenuation","maximumAttenuation",0,32,1)),B.appendChild(w("Base Resolution","baseResolution",0,1,.01)),B.appendChild(S("Eye Dome Lighting (EDL)","eyeDomeLighting")),I.appendChild(B);let Y=document.createElement("div");Y.setAttribute("data-bind","visible: eyeDomeLighting"),Y.appendChild(w("EDL Strength","eyeDomeLightingStrength",0,2,.1)),Y.appendChild(w("EDL Radius","eyeDomeLightingRadius",0,4,.1)),B.appendChild(Y),R.appendChild(S("Freeze Frame","freezeFrame")),R.appendChild(S("Dynamic Screen Space Error","dynamicScreenSpaceError"));let J=document.createElement("div");J.appendChild(w("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),R.appendChild(J);let K=document.createElement("div");K.setAttribute("data-bind","visible: dynamicScreenSpaceError"),K.appendChild(w("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),K.appendChild(w("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),R.appendChild(K),P.appendChild(S("Performance","performance")),P.appendChild(x),P.appendChild(S("Statistics","showStatistics"));let z=document.createElement("div");z.className="cesium-3dTilesInspector-statistics",z.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),P.appendChild(z),P.appendChild(S("Pick Statistics","showPickStatistics"));let j=document.createElement("div");j.className="cesium-3dTilesInspector-statistics",j.setAttribute("data-bind","html: pickStatisticsText, visible: showPickStatistics"),P.appendChild(j),P.appendChild(S("Resource Cache Statistics","showResourceCacheStatistics"));let q=document.createElement("div");q.className="cesium-3dTilesInspector-statistics",q.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),P.appendChild(q);let O=document.createElement("div");M.appendChild(O),O.appendChild(document.createTextNode("Color Blend Mode: "));let te=document.createElement("select");te.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),O.appendChild(te);let ie=document.createElement("textarea");ie.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),O.className="cesium-cesiumInspector-styleEditor",O.appendChild(ie);let re=E("Compile (Ctrl+Enter)","compileStyle");O.appendChild(re);let ee=document.createElement("div");ee.className="cesium-cesiumInspector-error",ee.setAttribute("data-bind","text: editorError"),O.appendChild(ee),A.appendChild(S("Show Picked Only","showOnlyPickedTileDebugLabel")),A.appendChild(S("Geometric Error","showGeometricError")),A.appendChild(S("Rendering Statistics","showRenderingStatistics")),A.appendChild(S("Memory Usage (MB)","showMemoryUsage")),A.appendChild(S("Url","showUrl")),V.appendChild(S("Skip Tile LODs","skipLevelOfDetail"));let ae=document.createElement("div");ae.appendChild(w("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),V.appendChild(ae);let oe=document.createElement("div");oe.appendChild(w("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),V.appendChild(oe);let ce=document.createElement("div");ce.appendChild(w("Min. levels to skip","skipLevels",0,10,1)),V.appendChild(ce),V.appendChild(S("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),V.appendChild(S("Load siblings of visible tiles","loadSiblings")),sr.applyBindings(y,m)}Object.defineProperties(Xde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Xde.prototype.isDestroyed=function(){return!1};Xde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};var SDe=Xde;function R8i(o){let f;if(F(o)){f="Command Statistics";let m=o.commandsInFrustums;for(let x in m)if(m.hasOwnProperty(x)){let y=parseInt(x,10),v;if(y===7)v="1, 2 and 3";else{let C=[];for(let T=2;T>=0;T--){let S=Math.pow(2,T);y>=S&&(C.push(T+1),y-=S)}v=C.reverse().join(" and ")}f+=`<br>&nbsp;&nbsp;&nbsp;&nbsp;${m[x]} in frustum ${v}`}f+=`<br>Total: ${o.totalCommands}`}return f}function j1e(o,f,m){let x=Math.min(m,f);return x=Math.max(x,o),x}var A8i=new Ma,M8i=new Z;function g$(o,f){let m=this,x=o.canvas,y=new Lr(x);this._eventHandler=y,this._scene=o,this._canvas=x,this._primitive=void 0,this._tile=void 0,this._modelMatrixPrimitive=void 0,this._performanceDisplay=void 0,this._performanceContainer=f;let v=this._scene.globe;v.depthTestAgainstTerrain=!0,this.frustums=!1,this.frustumPlanes=!1,this.performance=!1,this.shaderCacheText="",this.primitiveBoundingSphere=!1,this.primitiveReferenceFrame=!1,this.filterPrimitive=!1,this.tileBoundingSphere=!1,this.filterTile=!1,this.wireframe=!1,this.depthFrustum=1,this._numberOfFrustums=1,this.suspendUpdates=!1,this.tileCoordinates=!1,this.frustumStatisticText=!1,this.tileText="",this.hasPickedPrimitive=!1,this.hasPickedTile=!1,this.pickPrimitiveActive=!1,this.pickTileActive=!1,this.dropDownVisible=!0,this.generalVisible=!0,this.primitivesVisible=!1,this.terrainVisible=!1,this.depthFrustumText="",sr.track(this,["frustums","frustumPlanes","performance","shaderCacheText","primitiveBoundingSphere","primitiveReferenceFrame","filterPrimitive","tileBoundingSphere","filterTile","wireframe","depthFrustum","suspendUpdates","tileCoordinates","frustumStatisticText","tileText","hasPickedPrimitive","hasPickedTile","pickPrimitiveActive","pickTileActive","dropDownVisible","generalVisible","primitivesVisible","terrainVisible","depthFrustumText"]),this._toggleDropDown=Il(function(){m.dropDownVisible=!m.dropDownVisible}),this._toggleGeneral=Il(function(){m.generalVisible=!m.generalVisible}),this._togglePrimitives=Il(function(){m.primitivesVisible=!m.primitivesVisible}),this._toggleTerrain=Il(function(){m.terrainVisible=!m.terrainVisible}),this._frustumsSubscription=sr.getObservable(this,"frustums").subscribe(function(w){m._scene.debugShowFrustums=w,m._scene.requestRender()}),this._frustumPlanesSubscription=sr.getObservable(this,"frustumPlanes").subscribe(function(w){m._scene.debugShowFrustumPlanes=w,m._scene.requestRender()}),this._performanceSubscription=sr.getObservable(this,"performance").subscribe(function(w){w?m._performanceDisplay=new Fq({container:m._performanceContainer}):m._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=Il(function(){return m._primitive.debugShowBoundingVolume=m.primitiveBoundingSphere,m._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=sr.getObservable(this,"primitiveBoundingSphere").subscribe(function(){m._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=Il(function(){if(m.primitiveReferenceFrame){let w=m._primitive.modelMatrix;m._modelMatrixPrimitive=new LFe({modelMatrix:w}),m._scene.primitives.add(m._modelMatrixPrimitive)}else F(m._modelMatrixPrimitive)&&(m._scene.primitives.remove(m._modelMatrixPrimitive),m._modelMatrixPrimitive=void 0);return m._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=sr.getObservable(this,"primitiveReferenceFrame").subscribe(function(){m._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=Il(function(){return m.filterPrimitive?m._scene.debugCommandFilter=function(w){return F(m._modelMatrixPrimitive)&&w.owner===m._modelMatrixPrimitive._primitive?!0:F(m._primitive)?w.owner===m._primitive||w.owner===m._primitive._billboardCollection||w.owner.primitive===m._primitive:!1}:m._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=sr.getObservable(this,"filterPrimitive").subscribe(function(){m._doFilterPrimitive(),m._scene.requestRender()}),this._wireframeSubscription=sr.getObservable(this,"wireframe").subscribe(function(w){v._surface.tileProvider._debug.wireframe=w,m._scene.requestRender()}),this._depthFrustumSubscription=sr.getObservable(this,"depthFrustum").subscribe(function(w){m._scene.debugShowDepthFrustum=w,m._scene.requestRender()}),this._incrementDepthFrustum=Il(function(){let w=m.depthFrustum+1;return m.depthFrustum=j1e(1,m._numberOfFrustums,w),m._scene.requestRender(),!0}),this._decrementDepthFrustum=Il(function(){let w=m.depthFrustum-1;return m.depthFrustum=j1e(1,m._numberOfFrustums,w),m._scene.requestRender(),!0}),this._suspendUpdatesSubscription=sr.getObservable(this,"suspendUpdates").subscribe(function(w){v._surface._debug.suspendLodUpdate=w,w||(m.filterTile=!1)});let C;this._showTileCoordinates=Il(function(){return m.tileCoordinates&&!F(C)?C=o.imageryLayers.addImageryProvider(new l$({tilingScheme:o.terrainProvider.tilingScheme})):!m.tileCoordinates&&F(C)&&(o.imageryLayers.remove(C),C=void 0),!0}),this._tileCoordinatesSubscription=sr.getObservable(this,"tileCoordinates").subscribe(function(){m._showTileCoordinates(),m._scene.requestRender()}),this._tileBoundingSphereSubscription=sr.getObservable(this,"tileBoundingSphere").subscribe(function(){m._showTileBoundingSphere(),m._scene.requestRender()}),this._showTileBoundingSphere=Il(function(){return m.tileBoundingSphere?v._surface.tileProvider._debug.boundingSphereTile=m._tile:v._surface.tileProvider._debug.boundingSphereTile=void 0,m._scene.requestRender(),!0}),this._doFilterTile=Il(function(){return m.filterTile?(m.suspendUpdates=!0,v._surface._tilesToRender=[],F(m._tile)&&m._tile.renderable&&v._surface._tilesToRender.push(m._tile)):m.suspendUpdates=!1,!0}),this._filterTileSubscription=sr.getObservable(this,"filterTile").subscribe(function(){m.doFilterTile(),m._scene.requestRender()});function T(w){let E=m._scene.pick({x:w.position.x,y:w.position.y});F(E)&&(m.primitive=F(E.collection)?E.collection:E.primitive),m._scene.requestRender(),m.pickPrimitiveActive=!1}this._pickPrimitive=Il(function(){m.pickPrimitiveActive=!m.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=sr.getObservable(this,"pickPrimitiveActive").subscribe(function(w){w?y.setInputAction(T,Si.LEFT_CLICK):y.removeInputAction(Si.LEFT_CLICK)});function S(w){let E,L=v.ellipsoid,I=m._scene.camera.getPickRay(w.position,A8i),R=v.pick(I,m._scene,M8i);if(F(R)){let P=L.cartesianToCartographic(R),A=v._surface.tileProvider._tilesToRenderByTextureCount;for(let M=0;!E&&M<A.length;++M){let V=A[M];if(F(V))for(let G=0;!E&&G<V.length;++G){let D=V[G];vi.contains(D.rectangle,P)&&(E=D)}}}m.tile=E,m.pickTileActive=!1}this._pickTile=Il(function(){m.pickTileActive=!m.pickTileActive}),this._pickTileActiveSubscription=sr.getObservable(this,"pickTileActive").subscribe(function(w){w?y.setInputAction(S,Si.LEFT_CLICK):y.removeInputAction(Si.LEFT_CLICK)}),this._removePostRenderEvent=o.postRender.addEventListener(function(){m._update()})}Object.defineProperties(g$.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},toggleDropDown:{get:function(){return this._toggleDropDown}},showPrimitiveBoundingSphere:{get:function(){return this._showPrimitiveBoundingSphere}},showPrimitiveReferenceFrame:{get:function(){return this._showPrimitiveReferenceFrame}},doFilterPrimitive:{get:function(){return this._doFilterPrimitive}},incrementDepthFrustum:{get:function(){return this._incrementDepthFrustum}},decrementDepthFrustum:{get:function(){return this._decrementDepthFrustum}},showTileCoordinates:{get:function(){return this._showTileCoordinates}},showTileBoundingSphere:{get:function(){return this._showTileBoundingSphere}},doFilterTile:{get:function(){return this._doFilterTile}},toggleGeneral:{get:function(){return this._toggleGeneral}},togglePrimitives:{get:function(){return this._togglePrimitives}},toggleTerrain:{get:function(){return this._toggleTerrain}},pickPrimitive:{get:function(){return this._pickPrimitive}},pickTile:{get:function(){return this._pickTile}},selectParent:{get:function(){let o=this;return Il(function(){o.tile=o.tile.parent})}},selectNW:{get:function(){let o=this;return Il(function(){o.tile=o.tile.northwestChild})}},selectNE:{get:function(){let o=this;return Il(function(){o.tile=o.tile.northeastChild})}},selectSW:{get:function(){let o=this;return Il(function(){o.tile=o.tile.southwestChild})}},selectSE:{get:function(){let o=this;return Il(function(){o.tile=o.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(o){let f=this._primitive;o!==f&&(this.hasPickedPrimitive=!0,F(f)&&(f.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,F(this._modelMatrixPrimitive)&&(this._scene.primitives.remove(this._modelMatrixPrimitive),this._modelMatrixPrimitive=void 0),this._primitive=o,o.show=!1,setTimeout(function(){o.show=!0},50),this.showPrimitiveBoundingSphere(),this.showPrimitiveReferenceFrame(),this.doFilterPrimitive())}},tile:{get:function(){return this._tile},set:function(o){if(F(o)){this.hasPickedTile=!0;let f=this._tile;if(o!==f){this.tileText=`L: ${o.level} X: ${o.x} Y: ${o.y}`,this.tileText+=`<br>SW corner: ${o.rectangle.west}, ${o.rectangle.south}`,this.tileText+=`<br>NE corner: ${o.rectangle.east}, ${o.rectangle.north}`;let m=o.data;F(m)&&F(m.tileBoundingRegion)?this.tileText+=`<br>Min: ${m.tileBoundingRegion.minimumHeight} Max: ${m.tileBoundingRegion.maximumHeight}`:this.tileText+="<br>(Tile is not loaded)"}this._tile=o,this.showTileBoundingSphere(),this.doFilterTile()}else this.hasPickedTile=!1,this._tile=void 0}}});g$.prototype._update=function(){this.frustums&&(this.frustumStatisticText=R8i(this._scene.debugFrustumStatistics));let o=this._scene.numberOfFrustums;this._numberOfFrustums=o,this.depthFrustum=j1e(1,o,this.depthFrustum),this.depthFrustumText=`${this.depthFrustum} of ${o}`,this.performance&&this._performanceDisplay.update(),this.primitiveReferenceFrame&&(this._modelMatrixPrimitive.modelMatrix=this._primitive.modelMatrix),this.shaderCacheText=`Cached shaders: ${this._scene.context.shaderCache.numberOfShaders}`};g$.prototype.isDestroyed=function(){return!1};g$.prototype.destroy=function(){return this._eventHandler.destroy(),this._removePostRenderEvent(),this._frustumsSubscription.dispose(),this._frustumPlanesSubscription.dispose(),this._performanceSubscription.dispose(),this._primitiveBoundingSphereSubscription.dispose(),this._primitiveReferenceFrameSubscription.dispose(),this._filterPrimitiveSubscription.dispose(),this._wireframeSubscription.dispose(),this._depthFrustumSubscription.dispose(),this._suspendUpdatesSubscription.dispose(),this._tileCoordinatesSubscription.dispose(),this._tileBoundingSphereSubscription.dispose(),this._filterTileSubscription.dispose(),this._pickPrimitiveActiveSubscription.dispose(),this._pickTileActiveSubscription.dispose(),yr(this)};var wDe=g$;function kde(o,f){o=Qh(o);let m=document.createElement("div"),x=new wDe(f,m);this._viewModel=x,this._container=o;let y=document.createElement("div");this._element=y;let v=document.createElement("div");v.textContent="Cesium Inspector",v.className="cesium-cesiumInspector-button",v.setAttribute("data-bind","click: toggleDropDown"),y.appendChild(v),y.className="cesium-cesiumInspector",y.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }'),o.appendChild(this._element);let C=document.createElement("div");C.className="cesium-cesiumInspector-dropDown",y.appendChild(C);let T=sI.createSection,S=sI.createCheckbox,w=T(C,"General","generalVisible","toggleGeneral"),E=S("Show Frustums","frustums"),L=document.createElement("div");L.className="cesium-cesiumInspector-frustumStatistics",L.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),E.appendChild(L),w.appendChild(E),w.appendChild(S("Show Frustum Planes","frustumPlanes")),w.appendChild(S("Performance Display","performance")),m.className="cesium-cesiumInspector-performanceDisplay",w.appendChild(m);let I=document.createElement("div");I.className="cesium-cesiumInspector-shaderCache",I.setAttribute("data-bind","html: shaderCacheText"),w.appendChild(I);let R=document.createElement("div");w.appendChild(R);let P=document.createElement("span");P.setAttribute("data-bind",'html: "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Frustum:"'),R.appendChild(P);let A=document.createElement("span");A.setAttribute("data-bind","text: depthFrustumText"),R.appendChild(A);let M=document.createElement("input");M.type="button",M.value="-",M.className="cesium-cesiumInspector-pickButton",M.setAttribute("data-bind","click: decrementDepthFrustum"),R.appendChild(M);let V=document.createElement("input");V.type="button",V.value="+",V.className="cesium-cesiumInspector-pickButton",V.setAttribute("data-bind","click: incrementDepthFrustum"),R.appendChild(V);let G=T(C,"Primitives","primitivesVisible","togglePrimitives"),D=document.createElement("div");D.className="cesium-cesiumInspector-pickSection",G.appendChild(D);let N=document.createElement("input");N.type="button",N.value="Pick a primitive",N.className="cesium-cesiumInspector-pickButton",N.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let k=document.createElement("div");k.className="cesium-cesiumInspector-center",k.appendChild(N),D.appendChild(k),D.appendChild(S("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),D.appendChild(S("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=S("Show only selected","filterPrimitive","hasPickedPrimitive"),D.appendChild(this._primitiveOnly);let U=T(C,"Terrain","terrainVisible","toggleTerrain"),B=document.createElement("div");B.className="cesium-cesiumInspector-pickSection",U.appendChild(B);let Y=document.createElement("input");Y.type="button",Y.value="Pick a tile",Y.className="cesium-cesiumInspector-pickButton",Y.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile'),k=document.createElement("div"),k.appendChild(Y),k.className="cesium-cesiumInspector-center",B.appendChild(k);let J=document.createElement("div");B.appendChild(J);let K=document.createElement("input");K.type="button",K.value="Parent",K.className="cesium-cesiumInspector-pickButton",K.setAttribute("data-bind","click: selectParent");let z=document.createElement("input");z.type="button",z.value="NW",z.className="cesium-cesiumInspector-pickButton",z.setAttribute("data-bind","click: selectNW");let j=document.createElement("input");j.type="button",j.value="NE",j.className="cesium-cesiumInspector-pickButton",j.setAttribute("data-bind","click: selectNE");let q=document.createElement("input");q.type="button",q.value="SW",q.className="cesium-cesiumInspector-pickButton",q.setAttribute("data-bind","click: selectSW");let O=document.createElement("input");O.type="button",O.value="SE",O.className="cesium-cesiumInspector-pickButton",O.setAttribute("data-bind","click: selectSE");let te=document.createElement("div");te.className="cesium-cesiumInspector-tileText",J.className="cesium-cesiumInspector-frustumStatistics",J.appendChild(te),J.setAttribute("data-bind","visible: hasPickedTile"),te.setAttribute("data-bind","html: tileText");let ie=document.createElement("div");ie.className="cesium-cesiumInspector-relativeText",ie.textContent="Select relative:",J.appendChild(ie);let re=document.createElement("table"),ee=document.createElement("tr"),ae=document.createElement("tr"),oe=document.createElement("td");oe.appendChild(K);let ce=document.createElement("td");ce.appendChild(z);let pe=document.createElement("td");pe.appendChild(j),ee.appendChild(oe),ee.appendChild(ce),ee.appendChild(pe);let ue=document.createElement("td"),he=document.createElement("td");he.appendChild(q);let fe=document.createElement("td");fe.appendChild(O),ae.appendChild(ue),ae.appendChild(he),ae.appendChild(fe),re.appendChild(ee),re.appendChild(ae),J.appendChild(re),B.appendChild(S("Show bounding volume","tileBoundingSphere","hasPickedTile")),B.appendChild(S("Show only selected","filterTile","hasPickedTile")),U.appendChild(S("Wireframe","wireframe")),U.appendChild(S("Suspend LOD update","suspendUpdates")),U.appendChild(S("Show tile coordinates","tileCoordinates")),sr.applyBindings(x,this._element)}Object.defineProperties(kde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});kde.prototype.isDestroyed=function(){return!1};kde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};var EDe=kde,uqe=1e3;function AS(o){F(o.geocoderServices)?this._geocoderServices=o.geocoderServices:this._geocoderServices=[new Cde({scene:o.scene})],this._viewContainer=o.container,this._scene=o.scene,this._flightDuration=o.flightDuration,this._searchText="",this._isSearchInProgress=!1,this._wasGeocodeCancelled=!1,this._previousCredits=[],this._complete=new Tr,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=hqe,this._handleArrowUp=cqe;let f=this;this._suggestionsVisible=sr.pureComputed(function(){let x=sr.getObservable(f,"_suggestions")().length>0,y=sr.getObservable(f,"_showSuggestions")();return x&&y}),this._searchCommand=Il(function(x){if(x=x??e$.SEARCH,f._focusTextbox=!1,F(f._selectedSuggestion))return f.activateSuggestion(f._selectedSuggestion),!1;if(f.hideSuggestions(),f.isSearchInProgress)W8i(f);else return D8i(f,f._geocoderServices,x)}),this.deselectSuggestion=function(){f._selectedSuggestion=void 0},this.handleKeyDown=function(x,y){let v=y.key==="ArrowDown"||y.key==="Down"||y.keyCode===40,C=y.key==="ArrowUp"||y.key==="Up"||y.keyCode===38;return(v||C)&&y.preventDefault(),!0},this.handleKeyUp=function(x,y){let v=y.key==="ArrowDown"||y.key==="Down"||y.keyCode===40,C=y.key==="ArrowUp"||y.key==="Up"||y.keyCode===38,T=y.key==="Enter"||y.keyCode===13;return C?cqe(f):v?hqe(f):T&&f._searchCommand(),!0},this.activateSuggestion=function(x){f.hideSuggestions(),f._searchText=x.displayName;let y=x.destination;Kgt(f),f.destinationFound(f,y)},this.hideSuggestions=function(){f._showSuggestions=!1,f._selectedSuggestion=void 0},this.showSuggestions=function(){f._showSuggestions=!0},this.handleMouseover=function(x,y){x!==f._selectedSuggestion&&(f._selectedSuggestion=x)},this.keepExpanded=!1,this.autoComplete=o.autocomplete??!0,this.destinationFound=o.destinationFound??AS.flyToDestination,this._focusTextbox=!1,sr.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let m=sr.getObservable(this,"_searchText");m.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=m.subscribe(function(){AS._updateSearchSuggestions(f)}),this.isSearchInProgress=void 0,sr.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,sr.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(x){this._searchText=x}}),this.flightDuration=void 0,sr.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(x){this._flightDuration=x}})}Object.defineProperties(AS.prototype,{complete:{get:function(){return this._complete}},scene:{get:function(){return this._scene}},search:{get:function(){return this._searchCommand}},selectedSuggestion:{get:function(){return this._selectedSuggestion}},suggestions:{get:function(){return this._suggestions}}});AS.prototype.destroy=function(){this._suggestionSubscription.dispose()};function cqe(o){if(o._suggestions.length===0)return;let f=o._suggestions.indexOf(o._selectedSuggestion);if(f===-1||f===0){o._selectedSuggestion=void 0;return}let m=f-1;o._selectedSuggestion=o._suggestions[m],AS._adjustSuggestionsScroll(o,m)}function hqe(o){if(o._suggestions.length===0)return;let f=o._suggestions.length,m=(o._suggestions.indexOf(o._selectedSuggestion)+1)%f;o._selectedSuggestion=o._suggestions[m],AS._adjustSuggestionsScroll(o,m)}function V8i(o,f){let m=F(f)?f.availability:void 0;return F(m)?cR(f,[o]).then(function(x){return o=x[0],o.height+=uqe,o}):(o.height+=uqe,Promise.resolve(o))}function G8i(o,f){let m=o._scene,x=m.ellipsoid,y=m.camera,v=m.terrainProvider,C=f,T;return f instanceof vi?be.equalsEpsilon(f.south,f.north,be.EPSILON7)&&be.equalsEpsilon(f.east,f.west,be.EPSILON7)?f=vi.center(f):T=hhe(f,m):f=x.cartesianToCartographic(f),F(T)||(T=V8i(f,v)),T.then(function(S){C=x.cartographicToCartesian(S)}).finally(function(){y.flyTo({destination:C,complete:function(){o._complete.raiseEvent()},duration:o._flightDuration,endTransform:Ee.IDENTITY})})}async function F8i(o,f,m){try{return{state:"fulfilled",value:await o.geocode(f,m),credits:o.credit}}catch(x){return{state:"rejected",reason:x}}}async function D8i(o,f,m){let x=o._searchText;if(Ygt(x)){o.showSuggestions();return}o._isSearchInProgress=!0,o._wasGeocodeCancelled=!1;let y,v;for(y=0;y<f.length;y++){if(o._wasGeocodeCancelled)return;if(v=await F8i(f[y],x,m),F(v)&&v.state==="fulfilled"&&v.value.length>0)break}if(o._wasGeocodeCancelled)return;o._isSearchInProgress=!1,PDe(o);let C=v.value;if(v.state==="fulfilled"&&F(C)&&C.length>0){o._searchText=C[0].displayName,o.destinationFound(o,C[0].destination);let T=zgt(o,_de.getCreditsFromResult(C[0]));F(T)||LDe(o,f[y].credit);return}o._searchText=`${x} (not found)`}function LDe(o,f){F(f)&&!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&(o._scene.frameState.creditDisplay.addStaticCredit(f),o._previousCredits.push(f))}function zgt(o,f){return F(f)&&f.forEach(m=>LDe(o,m)),f}function PDe(o){!o._scene.isDestroyed()&&!o._scene.frameState.creditDisplay.isDestroyed()&&o._previousCredits.forEach(f=>{o._scene.frameState.creditDisplay.removeStaticCredit(f)}),o._previousCredits.length=0}function N8i(o,f){let m=Qh(o._viewContainer),x=m.getElementsByClassName("search-results")[0],y=m.getElementsByTagName("li")[f];if(f===0){x.scrollTop=0;return}let v=y.offsetTop;v+y.clientHeight>x.clientHeight?x.scrollTop=v+y.clientHeight:v<x.scrollTop&&(x.scrollTop=v)}function W8i(o){o._isSearchInProgress&&(o._isSearchInProgress=!1,o._wasGeocodeCancelled=!0)}function Ygt(o){return/^\s*$/.test(o)}function Kgt(o){sr.getObservable(o,"_suggestions").removeAll()}async function Z8i(o){if(!o.autoComplete)return;let f=o._searchText;if(Kgt(o),PDe(o),!Ygt(f))for(let m of o._geocoderServices){let x=await m.geocode(f,e$.AUTOCOMPLETE);if(o._suggestions=o._suggestions.concat(x),x.length>0){let y=!0;x.forEach(v=>{let C=_de.getCreditsFromResult(v);y=y&&!F(C),zgt(o,C)}),y&&LDe(o,m.credit)}if(o._suggestions.length>=5)return}}AS.flyToDestination=G8i;AS._updateSearchSuggestions=Z8i;AS._adjustSuggestionsScroll=N8i;AS.prototype.isDestroyed=function(){return!1};AS.prototype.destroy=function(){return PDe(this),yr(this)};var IDe=AS,O8i="M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z",X8i="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z";function Ude(o){let f=Qh(o.container),m=new IDe(o);m._startSearchPath=O8i,m._stopSearchPath=X8i;let x=document.createElement("form");x.setAttribute("data-bind","submit: search");let y=document.createElement("input");y.type="search",y.className="cesium-geocoder-input",y.setAttribute("placeholder","Enter an address or landmark..."),y.setAttribute("data-bind",'textInput: searchText,disable: isSearchInProgress,event: { keyup: handleKeyUp, keydown: handleKeyDown, mouseover: deselectSuggestion },css: { "cesium-geocoder-input-wide" : keepExpanded || searchText.length > 0 },hasFocus: _focusTextbox'),this._onTextBoxFocus=function(){setTimeout(function(){y.select()},0)},y.addEventListener("focus",this._onTextBoxFocus,!1),x.appendChild(y),this._textBox=y;let v=document.createElement("span");v.className="cesium-geocoder-searchButton",v.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),x.appendChild(v),f.appendChild(x);let C=document.createElement("div");C.className="search-results",C.setAttribute("data-bind","visible: _suggestionsVisible");let T=document.createElement("ul");T.setAttribute("data-bind","foreach: _suggestions");let S=document.createElement("li");T.appendChild(S),S.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),C.appendChild(T),f.appendChild(C),sr.applyBindings(m,x),sr.applyBindings(m,C),this._container=f,this._searchSuggestionsContainer=C,this._viewModel=m,this._form=x,this._onInputBegin=function(w){let E=w.target;typeof w.composedPath=="function"&&(E=w.composedPath()[0]),f.contains(E)||(m._focusTextbox=!1,m.hideSuggestions())},this._onInputEnd=function(w){m._focusTextbox=!0,m.showSuggestions()},ia.supportsPointerEvents()?(document.addEventListener("pointerdown",this._onInputBegin,!0),f.addEventListener("pointerup",this._onInputEnd,!0),f.addEventListener("pointercancel",this._onInputEnd,!0)):(document.addEventListener("mousedown",this._onInputBegin,!0),f.addEventListener("mouseup",this._onInputEnd,!0),document.addEventListener("touchstart",this._onInputBegin,!0),f.addEventListener("touchend",this._onInputEnd,!0),f.addEventListener("touchcancel",this._onInputEnd,!0))}Object.defineProperties(Ude.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});Ude.prototype.isDestroyed=function(){return!1};Ude.prototype.destroy=function(){let o=this._container;return ia.supportsPointerEvents()?(document.removeEventListener("pointerdown",this._onInputBegin,!0),o.removeEventListener("pointerup",this._onInputEnd,!0)):(document.removeEventListener("mousedown",this._onInputBegin,!0),o.removeEventListener("mouseup",this._onInputEnd,!0),document.removeEventListener("touchstart",this._onInputBegin,!0),o.removeEventListener("touchend",this._onInputEnd,!0)),this._viewModel.destroy(),sr.cleanNode(this._form),sr.cleanNode(this._searchSuggestionsContainer),o.removeChild(this._form),o.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),yr(this)};var RDe=Ude;function Jgt(o,f){this._scene=o,this._duration=f;let m=this;this._command=Il(function(){m._scene.camera.flyHome(m._duration)}),this.tooltip="View Home",sr.track(this,["tooltip"])}Object.defineProperties(Jgt.prototype,{scene:{get:function(){return this._scene}},command:{get:function(){return this._command}},duration:{get:function(){return this._duration},set:function(o){this._duration=o}}});var ADe=Jgt;function Bde(o,f,m){o=Qh(o);let x=new ADe(f,m);x._svgPath="M14,4l-10,8.75h20l-4.25-3.7188v-4.6562h-2.812v2.1875l-2.938-2.5625zm-7.0938,9.906v10.094h14.094v-10.094h-14.094zm2.1876,2.313h3.3122v4.25h-3.3122v-4.25zm5.8442,1.281h3.406v6.438h-3.406v-6.438z";let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button cesium-home-button",y.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),o.appendChild(y),sr.applyBindings(x,y),this._container=o,this._viewModel=x,this._element=y}Object.defineProperties(Bde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Bde.prototype.isDestroyed=function(){return!1};Bde.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var MDe=Bde;function k8i(o,f){f.currentTarget.parentElement.parentElement.querySelector(`#${o.name}-expander`).classList.toggle("active"),f.currentTarget.textContent=f.currentTarget.textContent==="+"?"-":"+"}function jgt(o,f){sr.track(o);for(let m=0;m<o.sublayers.length;m++)jgt(o.sublayers[m],f)}function wle(o){return o.modelName==="FullModel"}function Qgt(o){return o.modelName==="Overview"}function qgt(o){return Qgt(o)||wle(o)}function dqe(o,f){if(qgt(o)){o.visibility=!1;for(let x=0;x<o.sublayers.length;x++)o.sublayers[x].visibility=!0;let m={name:o.name,modelName:o.modelName,disable:sr.observable(!1),index:f.sublayers.length};return f.topLayers.push(m),f.sublayers.push(o),m}}function U8i(o,f){if(qgt(o)){f.sublayers.forEach(x=>x.visibility=!1),f.sublayers[o.index].visibility=!0;let m=document.getElementById("bsl-wrapper");wle(o)?(f.currentLevel=f.selectedLevel,m.style.display="block"):(f.selectedLevel=f.currentLevel,f.currentLevel="All",m.style.display="none")}}async function B8i(o,f){try{let m=o.getAttributeNames();for(let x=0;x<m.length;x++)if(m[x]==="BldgLevel"){let y=o.getAttributeValues(m[x]);for(let v=0;v<y.length;v++)f.push(y[v])}f.sort((x,y)=>x-y),f.unshift("All")}catch(m){console.log(`There was an error getting attributes: ${m}`)}}function H8i(o){let f=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:sr.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:sr.observable(!0),index:-1}],currentLayer:sr.observable(),expandClickHandler:k8i,setOptionDisable:function(x,y){sr.applyBindingsToNode(x,{disable:y.disable},y)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(x){U8i(x,f.viewModel)});let m=o.sublayers;for(let x=0;x<m.length;x++){jgt(m[x],this.viewModel);let y=dqe(m[x],this.viewModel);F(y)&&(Qgt(y)||!F(this.viewModel.defaultLayer)&&wle(y))&&(this.viewModel.defaultLayer=y)}if(this.viewModel.topLayers.length===1&&m.length>0){o.show=!1;let x={name:"Full Model",modelName:"FullModel",visibility:o.show,sublayers:o.sublayers};this.viewModel.defaultLayer=dqe(x,this.viewModel),this.viewModel.currentLayer.subscribe(function(y){o.show=wle(y)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return B8i(o,this.levels),this.viewModel.currentLevel.subscribe(function(x){x!=="All"?o.filterByAttributes([{name:"BldgLevel",values:[x]}]):o.filterByAttributes()}),this.viewModel}var VDe=H8i;function z8i(o,f){let m=document.getElementById(o),x=document.createElement("div");x.classList.add("cesium-viewer-i3s-explorer"),x.innerHTML=`
        <h3>Building explorer</h3>
        <select
          data-bind="options: topLayers, optionsText: 'name', optionsAfterRender: setOptionDisable, value: currentLayer"
@@ -23751,11 +23834,11 @@
              </li>
            </ul>
          </ul>
        </div>`,m.appendChild(x);let y=new FDe(f);sr.track(y),sr.applyBindings(y,m),F(y.defaultLayer)&&(y.currentLayer=y.defaultLayer)}var $gt=K8i,J8i="M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4853444 22.104033 11.423165 24.0625 13.84375 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 8.975298 28.305952 7.03125 25.875 7.03125 L 13.84375 7.03125 z",j8i="M 27.34375 1.65625 L 5.28125 27.9375 L 8.09375 30.3125 L 30.15625 4.03125 L 27.34375 1.65625 z M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4724893 20.232036 9.5676108 20.7379 9.75 21.21875 L 21.65625 7.03125 L 13.84375 7.03125 z M 28.21875 7.71875 L 14.53125 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 9.8371439 29.456025 8.4902779 28.21875 7.71875 z";function DDe(){this._cameraClicked=new Tr,this._closeClicked=new Tr,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",sr.track(this,["showInfo","titleText","description","maxHeight","enableCamera","isCameraTracking"]),this._loadingIndicatorHtml='<div class="cesium-infoBox-loadingContainer"><span class="cesium-infoBox-loading"></span></div>',this.cameraIconPath=void 0,sr.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?j8i:J8i}}),sr.defineProperty(this,"_bodyless",{get:function(){return!F(this.description)||this.description.length===0}})}DDe.prototype.maxHeightOffset=function(o){return`${this.maxHeight-o}px`};Object.defineProperties(DDe.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var NDe=DDe;function Yde(o){o=Qh(o);let f=document.createElement("div");f.className="cesium-infoBox",f.setAttribute("data-bind",'css: { "cesium-infoBox-visible" : showInfo, "cesium-infoBox-bodyless" : _bodyless }'),o.appendChild(f);let m=document.createElement("div");m.className="cesium-infoBox-title",m.setAttribute("data-bind","text: titleText"),f.appendChild(m);let x=document.createElement("button");x.type="button",x.className="cesium-button cesium-infoBox-camera",x.setAttribute("data-bind",'attr: { title: "Focus camera on object" },click: function () { cameraClicked.raiseEvent(this); },enable: enableCamera,cesiumSvgPath: { path: cameraIconPath, width: 32, height: 32 }'),f.appendChild(x);let y=document.createElement("button");y.type="button",y.className="cesium-infoBox-close",y.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),y.innerHTML="&times;",f.appendChild(y);let v=document.createElement("iframe");v.className="cesium-infoBox-iframe",v.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),v.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),v.setAttribute("allowfullscreen",!0),f.appendChild(v);let C=new NDe;sr.applyBindings(C,f),this._container=o,this._element=f,this._frame=v,this._viewModel=C,this._descriptionSubscription=void 0;let T=this;v.addEventListener("load",function(){let S=v.contentDocument,w=S.createElement("link");w.href=oa("Widgets/InfoBox/InfoBoxDescription.css"),w.rel="stylesheet",w.type="text/css";let E=S.createElement("div");E.className="cesium-infoBox-description",S.head.appendChild(w),S.body.appendChild(E),T._descriptionSubscription=Eb(C,"description",function(L){v.style.height="5px",E.innerHTML=L;let I=null,R=E.firstElementChild;if(R!==null&&E.childNodes.length===1){let A=window.getComputedStyle(R);if(A!==null){let M=A["background-color"],V=Xe.fromCssColorString(M);F(V)&&V.alpha!==0&&(I=A["background-color"])}}f.style["background-color"]=I;let P=E.getBoundingClientRect().height;v.style.height=`${P}px`})}),v.setAttribute("src","about:blank")}Object.defineProperties(Yde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});Yde.prototype.isDestroyed=function(){return!1};Yde.prototype.destroy=function(){let o=this._container;return sr.cleanNode(this._element),o.removeChild(this._element),F(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),yr(this)};var WDe=Yde;function eyt(){this.showInstructions=!1;let o=this;this._command=Il(function(){o.showInstructions=!o.showInstructions}),this._showClick=Il(function(){o._touch=!1}),this._showTouch=Il(function(){o._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",sr.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties(eyt.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var ZDe=eyt;function Kde(o){let f=Qh(o.container),m=new ZDe,x=o.instructionsInitiallyVisible??!1;m.showInstructions=x,m._svgPath="M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466z M17.328,24.371h-2.707v-2.596h2.707V24.371zM17.328,19.003v0.858h-2.707v-1.057c0-3.19,3.63-3.696,3.63-5.963c0-1.034-0.924-1.826-2.134-1.826c-1.254,0-2.354,0.924-2.354,0.924l-1.541-1.915c0,0,1.519-1.584,4.137-1.584c2.487,0,4.796,1.54,4.796,4.136C21.156,16.208,17.328,16.627,17.328,19.003z";let y=document.createElement("span");y.className="cesium-navigationHelpButton-wrapper",f.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",v.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),y.appendChild(v);let C=document.createElement("div");C.className="cesium-navigation-help",C.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),y.appendChild(C);let T=document.createElement("button");T.type="button",T.className="cesium-navigation-button cesium-navigation-button-left",T.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let S=document.createElement("img");S.src=oa("Widgets/Images/NavigationHelp/Mouse.svg"),S.className="cesium-navigation-button-icon",S.style.width="25px",S.style.height="25px",T.appendChild(S),T.appendChild(document.createTextNode("Mouse"));let w=document.createElement("button");w.type="button",w.className="cesium-navigation-button cesium-navigation-button-right",w.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let E=document.createElement("img");E.src=oa("Widgets/Images/NavigationHelp/Touch.svg"),E.className="cesium-navigation-button-icon",E.style.width="25px",E.style.height="25px",w.appendChild(E),w.appendChild(document.createTextNode("Touch")),C.appendChild(T),C.appendChild(w);let L=document.createElement("div");L.className="cesium-click-navigation-help cesium-navigation-help-instructions",L.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),L.innerHTML=`            <table>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/MouseLeft.svg")}" width="48" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-pan">Pan view</div>                        <div class="cesium-navigation-help-details">Left click + drag</div>                    </td>                </tr>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/MouseRight.svg")}" width="48" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-zoom">Zoom view</div>                        <div class="cesium-navigation-help-details">Right click + drag, or</div>                        <div class="cesium-navigation-help-details">Mouse wheel scroll</div>                    </td>                </tr>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/MouseMiddle.svg")}" width="48" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-rotate">Rotate view</div>                        <div class="cesium-navigation-help-details">Middle click + drag, or</div>                        <div class="cesium-navigation-help-details">CTRL + Left/Right click + drag</div>                    </td>                </tr>            </table>`,C.appendChild(L);let I=document.createElement("div");I.className="cesium-touch-navigation-help cesium-navigation-help-instructions",I.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),I.innerHTML=`            <table>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/TouchDrag.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-pan">Pan view</div>                        <div class="cesium-navigation-help-details">One finger drag</div>                    </td>                </tr>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/TouchZoom.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-zoom">Zoom view</div>                        <div class="cesium-navigation-help-details">Two finger pinch</div>                    </td>                </tr>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/TouchTilt.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-rotate">Tilt view</div>                        <div class="cesium-navigation-help-details">Two finger drag, same direction</div>                    </td>                </tr>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/TouchRotate.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-tilt">Rotate view</div>                        <div class="cesium-navigation-help-details">Two finger drag, opposite direction</div>                    </td>                </tr>            </table>`,C.appendChild(I),sr.applyBindings(m,y),this._container=f,this._viewModel=m,this._wrapper=y,this._closeInstructions=function(R){y.contains(R.target)||(m.showInstructions=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(Kde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Kde.prototype.isDestroyed=function(){return!1};Kde.prototype.destroy=function(){return ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var ODe=Kde;function Jde(o){this._scene=o,this._orthographic=o.camera.frustum instanceof $a,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=o.mode,sr.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let f=this;sr.defineProperty(this,"selectedTooltip",function(){return f._orthographic?f.tooltipOrthographic:f.tooltipPerspective}),this._toggleDropDown=Il(function(){f.sceneMode===gi.SCENE2D||f._flightInProgress||(f.dropDownVisible=!f.dropDownVisible)}),this._eventHelper=new bv,this._eventHelper.add(o.morphComplete,function(m,x,y,v){f.sceneMode=y,f._orthographic=y===gi.SCENE2D||f._scene.camera.frustum instanceof $a}),this._eventHelper.add(o.preRender,function(){f._flightInProgress=F(o.camera._currentFlight)}),this._switchToPerspective=Il(function(){f.sceneMode!==gi.SCENE2D&&(f._scene.camera.switchToPerspectiveFrustum(),f._orthographic=!1,f.dropDownVisible=!1)}),this._switchToOrthographic=Il(function(){f.sceneMode!==gi.SCENE2D&&(f._scene.camera.switchToOrthographicFrustum(),f._orthographic=!0,f.dropDownVisible=!1)}),this._sceneMode=gi}Object.defineProperties(Jde.prototype,{scene:{get:function(){return this._scene}},toggleDropDown:{get:function(){return this._toggleDropDown}},switchToPerspective:{get:function(){return this._switchToPerspective}},switchToOrthographic:{get:function(){return this._switchToOrthographic}},isOrthographicProjection:{get:function(){return this._orthographic}}});Jde.prototype.isDestroyed=function(){return!1};Jde.prototype.destroy=function(){this._eventHelper.removeAll(),yr(this)};var XDe=Jde,Q8i="M 28.15625,10.4375 9.125,13.21875 13.75,43.25 41.75,55.09375 50.8125,37 54.5,11.9375 z m 0.125,3 19.976451,0.394265 L 43.03125,16.875 22.6875,14.28125 z M 50.971746,15.705477 47.90625,36.03125 42.53125,46 44.84375,19.3125 z M 12.625,16.03125 l 29.15625,3.6875 -2.65625,31 L 16.4375,41.125 z",q8i="m 31.560594,6.5254438 -20.75,12.4687502 0.1875,24.5625 22.28125,11.8125 19.5,-12 0.65625,-0.375 0,-0.75 0.0312,-23.21875 z m 0.0625,3.125 16.65625,9.5000002 -16.125,10.28125 -17.34375,-9.71875 z m 18.96875,11.1875002 0.15625,20.65625 -17.46875,10.59375 0.15625,-20.28125 z m -37.0625,1.25 17.21875,9.625 -0.15625,19.21875 -16.9375,-9 z";function jde(o,f){o=Qh(o);let m=new XDe(f);m._perspectivePath=Q8i,m._orthographicPath=q8i;let x=document.createElement("span");x.className="cesium-projectionPicker-wrapper cesium-toolbar-button",o.appendChild(x);let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button",y.setAttribute("data-bind",'css: { "cesium-projectionPicker-buttonPerspective": !_orthographic,       "cesium-projectionPicker-buttonOrthographic": _orthographic,       "cesium-button-disabled" : sceneMode === _sceneMode.SCENE2D || _flightInProgress,        "cesium-projectionPicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),y.innerHTML='<!-- ko cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64, css: "cesium-projectionPicker-iconPerspective" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64, css: "cesium-projectionPicker-iconOrthographic" } --><!-- /ko -->',x.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",v.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && _orthographic),       "cesium-projectionPicker-none" : !_orthographic,       "cesium-projectionPicker-hidden" : !dropDownVisible },attr: { title: tooltipPerspective },click: switchToPerspective,cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64 }'),x.appendChild(v);let C=document.createElement("button");C.type="button",C.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",C.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && !_orthographic),       "cesium-projectionPicker-none" : _orthographic,       "cesium-projectionPicker-hidden" : !dropDownVisible},attr: { title: tooltipOrthographic },click: switchToOrthographic,cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64 }'),x.appendChild(C),sr.applyBindings(m,x),this._viewModel=m,this._container=o,this._wrapper=x,this._closeDropDown=function(T){x.contains(T.target)||(m.dropDownVisible=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(jde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});jde.prototype.isDestroyed=function(){return!1};jde.prototype.destroy=function(){return this._viewModel.destroy(),ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var kDe=jde;function UDe(o){this._scene=o.scene,this.lowFrameRateMessage=o.lowFrameRateMessage??"This application appears to be performing poorly on your system.  Please try using a different web browser or updating your video drivers.",this.lowFrameRateMessageDismissed=!1,this.showingLowFrameRateMessage=!1,sr.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let f=this;this._dismissMessage=Il(function(){f.showingLowFrameRateMessage=!1,f.lowFrameRateMessageDismissed=!0});let m=PFe.fromScene(o.scene);this._unsubscribeLowFrameRate=m.lowFrameRate.addEventListener(function(){f.lowFrameRateMessageDismissed||(f.showingLowFrameRateMessage=!0)}),this._unsubscribeNominalFrameRate=m.nominalFrameRate.addEventListener(function(){f.showingLowFrameRateMessage=!1})}Object.defineProperties(UDe.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});UDe.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),yr(this)};var BDe=UDe;function Qde(o){let f=Qh(o.container),m=new BDe(o),x=document.createElement("div");x.className="cesium-performance-watchdog-message-area",x.setAttribute("data-bind","visible: showingLowFrameRateMessage");let y=document.createElement("button");y.setAttribute("type","button"),y.className="cesium-performance-watchdog-message-dismiss",y.innerHTML="&times;",y.setAttribute("data-bind","click: dismissMessage"),x.appendChild(y);let v=document.createElement("div");v.className="cesium-performance-watchdog-message",v.setAttribute("data-bind","html: lowFrameRateMessage"),x.appendChild(v),f.appendChild(x),sr.applyBindings(m,x),this._container=f,this._viewModel=m,this._element=x}Object.defineProperties(Qde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Qde.prototype.isDestroyed=function(){return!1};Qde.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var HDe=Qde;function qde(o,f){this._scene=o;let m=this,x=function(y,v,C,T){m.sceneMode=C,m.dropDownVisible=!1};this._eventHelper=new bv,this._eventHelper.add(o.morphStart,x),this._duration=f??2,this.sceneMode=o.mode,this.dropDownVisible=!1,this.tooltip2D="2D",this.tooltip3D="3D",this.tooltipColumbusView="Columbus View",sr.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,sr.defineProperty(this,"selectedTooltip",function(){let y=m.sceneMode;return y===gi.SCENE2D?m.tooltip2D:y===gi.SCENE3D?m.tooltip3D:m.tooltipColumbusView}),this._toggleDropDown=Il(function(){m.dropDownVisible=!m.dropDownVisible}),this._morphTo2D=Il(function(){o.morphTo2D(m._duration)}),this._morphTo3D=Il(function(){o.morphTo3D(m._duration)}),this._morphToColumbusView=Il(function(){o.morphToColumbusView(m._duration)}),this._sceneMode=gi}Object.defineProperties(qde.prototype,{scene:{get:function(){return this._scene}},duration:{get:function(){return this._duration},set:function(o){this._duration=o}},toggleDropDown:{get:function(){return this._toggleDropDown}},morphTo2D:{get:function(){return this._morphTo2D}},morphTo3D:{get:function(){return this._morphTo3D}},morphToColumbusView:{get:function(){return this._morphToColumbusView}}});qde.prototype.isDestroyed=function(){return!1};qde.prototype.destroy=function(){this._eventHelper.removeAll(),yr(this)};var zDe=qde,$8i="m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878         -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132         -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285         11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z         M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201         5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461         -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z",eji="m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z",tji="m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z";function $de(o,f,m){o=Qh(o);let x=new zDe(f,m);x._globePath=$8i,x._flatMapPath=eji,x._columbusViewPath=tji;let y=document.createElement("span");y.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",o.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button",v.setAttribute("data-bind",'css: { "cesium-sceneModePicker-button2D": sceneMode === _sceneMode.SCENE2D,       "cesium-sceneModePicker-button3D": sceneMode === _sceneMode.SCENE3D,       "cesium-sceneModePicker-buttonColumbusView": sceneMode === _sceneMode.COLUMBUS_VIEW,       "cesium-sceneModePicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),v.innerHTML='<!-- ko cesiumSvgPath: { path: _globePath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon3D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon2D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-iconColumbusView" } --><!-- /ko -->',y.appendChild(v);let C=document.createElement("button");C.type="button",C.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",C.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE3D)) || (!dropDownVisible && (sceneMode === _sceneMode.SCENE3D)),       "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE3D,       "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip3D },click: morphTo3D,cesiumSvgPath: { path: _globePath, width: 64, height: 64 }'),y.appendChild(C);let T=document.createElement("button");T.type="button",T.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",T.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE2D)),       "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D,       "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),y.appendChild(T);let S=document.createElement("button");S.type="button",S.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",S.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.COLUMBUS_VIEW)) || (!dropDownVisible && (sceneMode === _sceneMode.COLUMBUS_VIEW)),       "cesium-sceneModePicker-none" : sceneMode === _sceneMode.COLUMBUS_VIEW,       "cesium-sceneModePicker-hidden" : !dropDownVisible},attr: { title: tooltipColumbusView },click: morphToColumbusView,cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64 }'),y.appendChild(S),sr.applyBindings(x,y),this._viewModel=x,this._container=o,this._wrapper=y,this._closeDropDown=function(w){y.contains(w.target)||(x.dropDownVisible=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties($de.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});$de.prototype.isDestroyed=function(){return!1};$de.prototype.destroy=function(){return this._viewModel.destroy(),ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var YDe=$de,iji=new rt,Ele="-1000px";function y$(o,f,m){this._scene=o,this._screenPositionX=Ele,this._screenPositionY=Ele,this._tweens=o.tweens,this._container=m??document.body,this._selectionIndicatorElement=f,this._scale=1,this.position=void 0,this.showSelection=!1,sr.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,sr.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&F(this.position)}}),sr.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(x,y){return Ca.worldToWindowCoordinates(o,x,y)}}y$.prototype.update=function(){if(this.showSelection&&F(this.position)){let o=this.computeScreenSpacePosition(this.position,iji);if(!F(o))this._screenPositionX=Ele,this._screenPositionY=Ele;else{let f=this._container,m=f.parentNode.clientWidth,x=f.parentNode.clientHeight,y=this._selectionIndicatorElement.clientWidth,v=y*.5;o.x=Math.min(Math.max(o.x,-y),m+y)-v,o.y=Math.min(Math.max(o.y,-y),x+y)-v,this._screenPositionX=`${Math.floor(o.x+.25)}px`,this._screenPositionY=`${Math.floor(o.y+.25)}px`}}};y$.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:J_.EXPONENTIAL_OUT})};y$.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:J_.EXPONENTIAL_OUT})};Object.defineProperties(y$.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var KDe=y$;function e0e(o,f){o=Qh(o),this._container=o;let m=document.createElement("div");m.className="cesium-selection-wrapper",m.setAttribute("data-bind",'style: { "top" : _screenPositionY, "left" : _screenPositionX },css: { "cesium-selection-wrapper-visible" : isVisible }'),o.appendChild(m),this._element=m;let x="http://www.w3.org/2000/svg",y="M -34 -34 L -34 -11.25 L -30 -15.25 L -30 -30 L -15.25 -30 L -11.25 -34 L -34 -34 z M 11.25 -34 L 15.25 -30 L 30 -30 L 30 -15.25 L 34 -11.25 L 34 -34 L 11.25 -34 z M -34 11.25 L -34 34 L -11.25 34 L -15.25 30 L -30 30 L -30 15.25 L -34 11.25 z M 34 11.25 L 30 15.25 L 30 30 L 15.25 30 L 11.25 34 L 34 34 L 34 11.25 z",v=document.createElementNS(x,"svg:svg");v.setAttribute("width",160),v.setAttribute("height",160),v.setAttribute("viewBox","0 0 160 160");let C=document.createElementNS(x,"g");C.setAttribute("transform","translate(80,80)"),v.appendChild(C);let T=document.createElementNS(x,"path");T.setAttribute("data-bind","attr: { transform: _transform }"),T.setAttribute("d",y),C.appendChild(T),m.appendChild(v);let S=new KDe(f,this._element,this._container);this._viewModel=S,sr.applyBindings(this._viewModel,this._element)}Object.defineProperties(e0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});e0e.prototype.isDestroyed=function(){return!1};e0e.prototype.destroy=function(){let o=this._container;return sr.cleanNode(this._element),o.removeChild(this._element),yr(this)};var JDe=e0e;function BO(o,f,m){this._color=o,this._height=f,this._base=m??0}BO.prototype.getHeight=function(){return this._height};BO.prototype.getBase=function(){return this._base};BO.prototype.getStartTime=function(){return this._start};BO.prototype.getStopTime=function(){return this._stop};BO.prototype.setRange=function(o,f){this._start=o,this._stop=f};BO.prototype.render=function(o){let f="";if(this._start&&this._stop&&this._color){let m=$t.secondsDifference(this._start,o.epochJulian),x=Math.round(o.timeBarWidth*o.getAlpha(m)),y=$t.secondsDifference(this._stop,o.epochJulian),v=Math.round(o.timeBarWidth*o.getAlpha(y))-x;x<0&&(v+=x,x=0),x+v>o.timeBarWidth&&(v=o.timeBarWidth-x),v>0&&(f=`<span class="cesium-timeline-highlight" style="left: ${x.toString()}px; width: ${v.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return f};var jDe=BO;function tyt(o,f,m,x){this.interval=o,this.height=f,this.color=m||new Xe(.5,.5,.5,1),this.backgroundColor=x||new Xe(0,0,0,0)}tyt.prototype.render=function(o,f){let m=this.interval.start,x=this.interval.stop,y=f.startJulian,v=$t.addSeconds(f.startJulian,f.duration,new $t);if($t.lessThan(m,y)&&$t.greaterThan(x,v))o.fillStyle=this.color.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height);else if($t.lessThanOrEquals(m,v)&&$t.greaterThanOrEquals(x,y)){let C,T,S;for(C=0;C<f.timeBarWidth;++C){let w=$t.addSeconds(f.startJulian,C/f.timeBarWidth*f.duration,new $t);!F(T)&&$t.greaterThanOrEquals(w,m)?T=C:!F(S)&&$t.greaterThanOrEquals(w,x)&&(S=C)}o.fillStyle=this.backgroundColor.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height),F(T)&&(F(S)||(S=f.timeBarWidth),o.fillStyle=this.color.toCssColorString(),o.fillRect(T,f.y,Math.max(S-T,1),this.height))}};var QDe=tyt,xbe=1e12,oS={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},q2={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},H5=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800,1296e3,2592e3,5184e3,7776e3,15552e3,31536e3,63072e3,126144e3,15768e4,31536e4,63072e4,126144e4,15768e5,31536e5,63072e5,126144e5,15768e6,31536e6];function Lv(o,f){o=Qh(o);let m=o.ownerDocument;this.container=o;let x=m.createElement("div");x.className="cesium-timeline-main",o.appendChild(x),this._topDiv=x,this._endJulian=void 0,this._epochJulian=void 0,this._lastXPos=void 0,this._scrubElement=void 0,this._startJulian=void 0,this._timeBarSecondsSpan=void 0,this._clock=f,this._scrubJulian=f.currentTime,this._mainTicSpan=-1,this._mouseMode=oS.none,this._touchMode=q2.none,this._touchState={centerX:0,spanX:0},this._mouseX=0,this._timelineDrag=0,this._timelineDragLocation=void 0,this._lastHeight=void 0,this._lastWidth=void 0,this._topDiv.innerHTML='<div class="cesium-timeline-bar"></div><div class="cesium-timeline-trackContainer"><canvas class="cesium-timeline-tracks" width="10" height="1"></canvas></div><div class="cesium-timeline-needle"></div><span class="cesium-timeline-ruler"></span>',this._timeBarEle=this._topDiv.childNodes[0],this._trackContainer=this._topDiv.childNodes[1],this._trackListEle=this._topDiv.childNodes[1].childNodes[0],this._needleEle=this._topDiv.childNodes[2],this._rulerEle=this._topDiv.childNodes[3],this._context=this._trackListEle.getContext("2d"),this._trackList=[],this._highlightRanges=[],this.zoomTo(f.startTime,f.stopTime),this._onMouseDown=rji(this),this._onMouseUp=nji(this),this._onMouseMove=oji(this),this._onMouseWheel=aji(this),this._onTouchStart=sji(this),this._onTouchMove=uji(this),this._onTouchEnd=lji(this);let y=this._timeBarEle;m.addEventListener("mouseup",this._onMouseUp,!1),m.addEventListener("mousemove",this._onMouseMove,!1),y.addEventListener("mousedown",this._onMouseDown,!1),y.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),y.addEventListener("mousewheel",this._onMouseWheel,!1),y.addEventListener("touchstart",this._onTouchStart,!1),y.addEventListener("touchmove",this._onTouchMove,!1),y.addEventListener("touchend",this._onTouchEnd,!1),y.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},f.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}Lv.prototype.addEventListener=function(o,f,m){this._topDiv.addEventListener(o,f,m)};Lv.prototype.removeEventListener=function(o,f,m){this._topDiv.removeEventListener(o,f,m)};Lv.prototype.isDestroyed=function(){return!1};Lv.prototype.destroy=function(){this._clock.onTick.removeEventListener(this.updateFromClock,this);let o=this.container.ownerDocument;o.removeEventListener("mouseup",this._onMouseUp,!1),o.removeEventListener("mousemove",this._onMouseMove,!1);let f=this._timeBarEle;f.removeEventListener("mousedown",this._onMouseDown,!1),f.removeEventListener("DOMMouseScroll",this._onMouseWheel,!1),f.removeEventListener("mousewheel",this._onMouseWheel,!1),f.removeEventListener("touchstart",this._onTouchStart,!1),f.removeEventListener("touchmove",this._onTouchMove,!1),f.removeEventListener("touchend",this._onTouchEnd,!1),f.removeEventListener("touchcancel",this._onTouchEnd,!1),this.container.removeChild(this._topDiv),yr(this)};Lv.prototype.addHighlightRange=function(o,f,m){let x=new jDe(o,f,m);return this._highlightRanges.push(x),this.resize(),x};Lv.prototype.addTrack=function(o,f,m,x){let y=new QDe(o,f,m,x);return this._trackList.push(y),this._lastHeight=void 0,this.resize(),y};Lv.prototype.zoomTo=function(o,f){if(this._startJulian=o,this._endJulian=f,this._timeBarSecondsSpan=$t.secondsDifference(f,o),this._clock&&this._clock.clockRange!==Gx.UNBOUNDED){let x=this._clock.startTime,y=this._clock.stopTime,v=$t.secondsDifference(y,x),C=$t.secondsDifference(x,this._startJulian),T=$t.secondsDifference(y,this._endJulian);this._timeBarSecondsSpan>=v?(this._timeBarSecondsSpan=v,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):C>0?(this._endJulian=$t.addSeconds(this._endJulian,C,new $t),this._startJulian=x,this._timeBarSecondsSpan=$t.secondsDifference(this._endJulian,this._startJulian)):T<0&&(this._startJulian=$t.addSeconds(this._startJulian,T,new $t),this._endJulian=y,this._timeBarSecondsSpan=$t.secondsDifference(this._endJulian,this._startJulian))}this._makeTics();let m=document.createEvent("Event");m.initEvent("setzoom",!0,!0),m.startJulian=this._startJulian,m.endJulian=this._endJulian,m.epochJulian=this._epochJulian,m.totalSpan=this._timeBarSecondsSpan,m.mainTicSpan=this._mainTicSpan,this._topDiv.dispatchEvent(m)};Lv.prototype.zoomFrom=function(o){let f=$t.secondsDifference(this._scrubJulian,this._startJulian);o>1||f<0||f>this._timeBarSecondsSpan?f=this._timeBarSecondsSpan*.5:f+=f-this._timeBarSecondsSpan*.5;let m=this._timeBarSecondsSpan-f;this.zoomTo($t.addSeconds(this._startJulian,f-f*o,new $t),$t.addSeconds(this._endJulian,m*o-m,new $t))};Lv.prototype.makeLabel=function(o){let f=new Date(o);return`${f.getFullYear()} ${f.getMonth()+1} ${f.getDate()-1} ${f.getHours()}:${f.getMinutes()}:${f.getSeconds()}`};Lv.prototype.smallestTicInPixels=7;Lv.prototype._makeTics=function(){let o=this._timeBarEle,f=$t.secondsDifference(this._scrubJulian,this._startJulian),m=Math.round(f*this._topDiv.clientWidth/this._timeBarSecondsSpan),x=m-8,y,v=this;this._needleEle.style.left=`${m.toString()}px`;let C="",T=.01,S=31536e6,w=1e-10,E=0,L=this._timeBarSecondsSpan;L<T?(L=T,this._timeBarSecondsSpan=T,this._endJulian=$t.addSeconds(this._startJulian,T,new $t)):L>S&&(L=S,this._timeBarSecondsSpan=S,this._endJulian=$t.addSeconds(this._startJulian,S,new $t));let I=this._timeBarEle.clientWidth;I<10&&(I=10);let R=this._startJulian,P=Math.min(L/I*1e-5,.4),A,M=$t.toGregorianDate(R);L>31536e4?A=$t.fromDate(new Date(Date.UTC(Math.floor(M.year/100)*100,0))):L>31536e3?A=$t.fromDate(new Date(Date.UTC(Math.floor(M.year/10)*10,0))):L>86400?A=$t.fromDate(new Date(Date.UTC(M.year,0))):A=$t.fromDate(new Date(Date.UTC(M.year,M.month,M.day)));let V=$t.secondsDifference(this._startJulian,$t.addSeconds(A,P,new $t)),G=V+L;this._epochJulian=A;function D(oe){return Math.floor(V/oe)*oe}function N(oe,ce){return Math.ceil(oe/ce+.5)*ce}function k(oe){return(oe-V)/L}function U(oe,ce){return oe-ce*Math.round(oe/ce)}this._rulerEle.innerHTML=this.makeLabel($t.addSeconds(this._endJulian,-T,new $t));let B=this._rulerEle.offsetWidth+20;B<30&&(B=180);let Y=E;E-=w;let J={startTime:V,startJulian:R,epochJulian:A,duration:L,timeBarWidth:I,getAlpha:k};this._highlightRanges.forEach(function(oe){C+=oe.render(J)});let K=0,z=0,j=0,q=B/I;q>1&&(q=1),q*=this._timeBarSecondsSpan;let O=-1,te=-1,ie=H5.length,re;for(re=0;re<ie;++re){let oe=H5[re];if(++O,K=oe,oe>q&&oe>E)break;te<0&&I*(oe/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(te=O)}if(O>0){for(;O>0;)if(--O,Math.abs(U(K,H5[O]))<1e-5){H5[O]>=E&&(z=H5[O]);break}if(te>=0)for(;te<O;){if(Math.abs(U(z,H5[te]))<1e-5&&H5[te]>=E){j=H5[te];break}++te}}E=Y,E>w&&j<1e-5&&Math.abs(E-K)>w&&(j=E,E<=K+w&&(z=0));let ee=-999999,ae;if(I*(j/this._timeBarSecondsSpan)>=3)for(y=D(j);y<=G;y=N(y,j))C+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(I*k(y)).toString()}px;"></span>`;if(I*(z/this._timeBarSecondsSpan)>=3)for(y=D(z);y<=G;y=N(y,z))C+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(I*k(y)).toString()}px;"></span>`;if(I*(K/this._timeBarSecondsSpan)>=2){this._mainTicSpan=K,G+=K,y=D(K);let oe=$t.computeTaiMinusUtc(A);for(;y<=G;){let ce=$t.addSeconds(R,y-V,new $t);if(K>2.1){let fe=$t.computeTaiMinusUtc(ce);Math.abs(fe-oe)>.1&&(y+=fe-oe,ce=$t.addSeconds(R,y-V,new $t))}let pe=Math.round(I*k(y)),ue=this.makeLabel(ce);this._rulerEle.innerHTML=ue,ae=this._rulerEle.offsetWidth,ae<10&&(ae=B);let he=pe-(ae/2-1);he>ee?(ee=he+ae+5,C+=`<span class="cesium-timeline-ticMain" style="left: ${pe.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${he.toString()}px;">${ue}</span>`):C+=`<span class="cesium-timeline-ticSub" style="left: ${pe.toString()}px;"></span>`,y=N(y,K)}}else this._mainTicSpan=-1;C+=`<span class="cesium-timeline-icon16" style="left:${x}px;bottom:0;background-position: 0 0;"></span>`,o.innerHTML=C,this._scrubElement=o.lastChild,this._context.clearRect(0,0,this._trackListEle.width,this._trackListEle.height),J.y=0,this._trackList.forEach(function(oe){oe.render(v._context,J),J.y+=oe.height})};Lv.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let o=this._scrubElement;if(F(this._scrubElement)){let f=$t.secondsDifference(this._scrubJulian,this._startJulian),m=Math.round(f*this._topDiv.clientWidth/this._timeBarSecondsSpan);this._lastXPos!==m&&(this._lastXPos=m,o.style.left=`${m-8}px`,this._needleEle.style.left=`${m}px`)}F(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo($t.addSeconds(this._startJulian,this._timelineDrag,new $t),$t.addSeconds(this._endJulian,this._timelineDrag,new $t)))};Lv.prototype._setTimeBarTime=function(o,f){if(o=Math.round(o),this._scrubJulian=$t.addSeconds(this._startJulian,f,new $t),this._scrubElement){let x=o-8;this._scrubElement.style.left=`${x.toString()}px`,this._needleEle.style.left=`${o.toString()}px`}let m=document.createEvent("Event");m.initEvent("settime",!0,!0),m.clientX=o,m.timeSeconds=f,m.timeJulian=this._scrubJulian,m.clock=this._clock,this._topDiv.dispatchEvent(m)};function rji(o){return function(f){o._mouseMode!==oS.touchOnly&&(f.button===0?(o._mouseMode=oS.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition="-16px 0"),o._onMouseMove(f)):(o._mouseX=f.clientX,f.button===2?o._mouseMode=oS.zoom:o._mouseMode=oS.slide)),f.preventDefault()}}function nji(o){return function(f){o._mouseMode=oS.none,o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0"),o._timelineDrag=0,o._timelineDragLocation=void 0}}function oji(o){return function(f){let m;if(o._mouseMode===oS.scrub){f.preventDefault();let x=f.clientX-o._topDiv.getBoundingClientRect().left;x<0?(o._timelineDragLocation=0,o._timelineDrag=-.01*o._timeBarSecondsSpan):x>o._topDiv.clientWidth?(o._timelineDragLocation=o._topDiv.clientWidth,o._timelineDrag=.01*o._timeBarSecondsSpan):(o._timelineDragLocation=void 0,o._setTimeBarTime(x,x*o._timeBarSecondsSpan/o._topDiv.clientWidth))}else if(o._mouseMode===oS.slide){if(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0){let x=m*o._timeBarSecondsSpan/o._topDiv.clientWidth;o.zoomTo($t.addSeconds(o._startJulian,x,new $t),$t.addSeconds(o._endJulian,x,new $t))}}else o._mouseMode===oS.zoom&&(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0&&o.zoomFrom(Math.pow(1.01,m)))}}function aji(o){return function(f){let m=f.wheelDeltaY||f.wheelDelta||-f.detail;xbe=Math.max(Math.min(Math.abs(m),xbe),1),m/=xbe,o.zoomFrom(Math.pow(1.05,-m))}}function sji(o){return function(f){let m=f.touches.length,x,y,v=o._topDiv.getBoundingClientRect().left;f.preventDefault(),o._mouseMode=oS.touchOnly,m===1?(x=$t.secondsDifference(o._scrubJulian,o._startJulian),y=Math.round(x*o._topDiv.clientWidth/o._timeBarSecondsSpan+v),Math.abs(f.touches[0].clientX-y)<50?(o._touchMode=q2.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition=m===1?"-16px 0":"0 0")):(o._touchMode=q2.singleTap,o._touchState.centerX=f.touches[0].clientX-v)):m===2?(o._touchMode=q2.slideZoom,o._touchState.centerX=(f.touches[0].clientX+f.touches[1].clientX)*.5-v,o._touchState.spanX=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):o._touchMode=q2.ignore}}function lji(o){return function(f){let m=f.touches.length,x=o._topDiv.getBoundingClientRect().left;o._touchMode===q2.singleTap?(o._touchMode=q2.scrub,o._onTouchMove(f)):o._touchMode===q2.scrub&&o._onTouchMove(f),o._mouseMode=oS.touchOnly,m!==1?o._touchMode=m>0?q2.ignore:q2.none:o._touchMode===q2.slideZoom&&(o._touchState.centerX=f.touches[0].clientX-x),o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0")}}function uji(o){return function(f){let m,x,y,v,C,T,S=1,w=o._topDiv.getBoundingClientRect().left;o._touchMode===q2.singleTap&&(o._touchMode=q2.slideZoom),o._mouseMode=oS.touchOnly,o._touchMode===q2.scrub?(f.preventDefault(),f.changedTouches.length===1&&(x=f.changedTouches[0].clientX-w,x>=0&&x<=o._topDiv.clientWidth&&o._setTimeBarTime(x,x*o._timeBarSecondsSpan/o._topDiv.clientWidth))):o._touchMode===q2.slideZoom&&(y=f.touches.length,y===2?(v=(f.touches[0].clientX+f.touches[1].clientX)*.5-w,C=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):y===1&&(v=f.touches[0].clientX-w,C=0),F(v)&&(C>0&&o._touchState.spanX>0?(S=o._touchState.spanX/C,T=$t.addSeconds(o._startJulian,(o._touchState.centerX*o._timeBarSecondsSpan-v*o._timeBarSecondsSpan*S)/o._topDiv.clientWidth,new $t)):(m=o._touchState.centerX-v,T=$t.addSeconds(o._startJulian,m*o._timeBarSecondsSpan/o._topDiv.clientWidth,new $t)),o.zoomTo(T,$t.addSeconds(T,o._timeBarSecondsSpan*S,new $t)),o._touchState.centerX=v,o._touchState.spanX=C))}}Lv.prototype.resize=function(){let o=this.container.clientWidth,f=this.container.clientHeight;if(o===this._lastWidth&&f===this._lastHeight)return;this._trackContainer.style.height=`${f}px`;let m=1;this._trackList.forEach(function(x){m+=x.height}),this._trackListEle.style.height=`${m.toString()}px`,this._trackListEle.width=this._trackListEle.clientWidth,this._trackListEle.height=m,this._makeTics(),this._lastXPos=void 0,this._lastWidth=o,this._lastHeight=f};var qDe=Lv;function iyt(o){let f=o.split(`
        </div>`,m.appendChild(x);let y=new VDe(f);sr.track(y),sr.applyBindings(y,m),F(y.defaultLayer)&&(y.currentLayer=y.defaultLayer)}var $gt=z8i,Y8i="M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4853444 22.104033 11.423165 24.0625 13.84375 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 8.975298 28.305952 7.03125 25.875 7.03125 L 13.84375 7.03125 z",K8i="M 27.34375 1.65625 L 5.28125 27.9375 L 8.09375 30.3125 L 30.15625 4.03125 L 27.34375 1.65625 z M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4724893 20.232036 9.5676108 20.7379 9.75 21.21875 L 21.65625 7.03125 L 13.84375 7.03125 z M 28.21875 7.71875 L 14.53125 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 9.8371439 29.456025 8.4902779 28.21875 7.71875 z";function GDe(){this._cameraClicked=new Tr,this._closeClicked=new Tr,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",sr.track(this,["showInfo","titleText","description","maxHeight","enableCamera","isCameraTracking"]),this._loadingIndicatorHtml='<div class="cesium-infoBox-loadingContainer"><span class="cesium-infoBox-loading"></span></div>',this.cameraIconPath=void 0,sr.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?K8i:Y8i}}),sr.defineProperty(this,"_bodyless",{get:function(){return!F(this.description)||this.description.length===0}})}GDe.prototype.maxHeightOffset=function(o){return`${this.maxHeight-o}px`};Object.defineProperties(GDe.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var FDe=GDe;function Hde(o){o=Qh(o);let f=document.createElement("div");f.className="cesium-infoBox",f.setAttribute("data-bind",'css: { "cesium-infoBox-visible" : showInfo, "cesium-infoBox-bodyless" : _bodyless }'),o.appendChild(f);let m=document.createElement("div");m.className="cesium-infoBox-title",m.setAttribute("data-bind","text: titleText"),f.appendChild(m);let x=document.createElement("button");x.type="button",x.className="cesium-button cesium-infoBox-camera",x.setAttribute("data-bind",'attr: { title: "Focus camera on object" },click: function () { cameraClicked.raiseEvent(this); },enable: enableCamera,cesiumSvgPath: { path: cameraIconPath, width: 32, height: 32 }'),f.appendChild(x);let y=document.createElement("button");y.type="button",y.className="cesium-infoBox-close",y.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),y.innerHTML="&times;",f.appendChild(y);let v=document.createElement("iframe");v.className="cesium-infoBox-iframe",v.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),v.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),v.setAttribute("allowfullscreen",!0),f.appendChild(v);let C=new FDe;sr.applyBindings(C,f),this._container=o,this._element=f,this._frame=v,this._viewModel=C,this._descriptionSubscription=void 0;let T=this;v.addEventListener("load",function(){let S=v.contentDocument,w=S.createElement("link");w.href=oa("Widgets/InfoBox/InfoBoxDescription.css"),w.rel="stylesheet",w.type="text/css";let E=S.createElement("div");E.className="cesium-infoBox-description",S.head.appendChild(w),S.body.appendChild(E),T._descriptionSubscription=Eb(C,"description",function(L){v.style.height="5px",E.innerHTML=L;let I=null,R=E.firstElementChild;if(R!==null&&E.childNodes.length===1){let A=window.getComputedStyle(R);if(A!==null){let M=A["background-color"],V=Xe.fromCssColorString(M);F(V)&&V.alpha!==0&&(I=A["background-color"])}}f.style["background-color"]=I;let P=E.getBoundingClientRect().height;v.style.height=`${P}px`})}),v.setAttribute("src","about:blank")}Object.defineProperties(Hde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});Hde.prototype.isDestroyed=function(){return!1};Hde.prototype.destroy=function(){let o=this._container;return sr.cleanNode(this._element),o.removeChild(this._element),F(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),yr(this)};var DDe=Hde;function eyt(){this.showInstructions=!1;let o=this;this._command=Il(function(){o.showInstructions=!o.showInstructions}),this._showClick=Il(function(){o._touch=!1}),this._showTouch=Il(function(){o._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",sr.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties(eyt.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var NDe=eyt;function zde(o){let f=Qh(o.container),m=new NDe,x=o.instructionsInitiallyVisible??!1;m.showInstructions=x,m._svgPath="M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466z M17.328,24.371h-2.707v-2.596h2.707V24.371zM17.328,19.003v0.858h-2.707v-1.057c0-3.19,3.63-3.696,3.63-5.963c0-1.034-0.924-1.826-2.134-1.826c-1.254,0-2.354,0.924-2.354,0.924l-1.541-1.915c0,0,1.519-1.584,4.137-1.584c2.487,0,4.796,1.54,4.796,4.136C21.156,16.208,17.328,16.627,17.328,19.003z";let y=document.createElement("span");y.className="cesium-navigationHelpButton-wrapper",f.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",v.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),y.appendChild(v);let C=document.createElement("div");C.className="cesium-navigation-help",C.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),y.appendChild(C);let T=document.createElement("button");T.type="button",T.className="cesium-navigation-button cesium-navigation-button-left",T.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let S=document.createElement("img");S.src=oa("Widgets/Images/NavigationHelp/Mouse.svg"),S.className="cesium-navigation-button-icon",S.style.width="25px",S.style.height="25px",T.appendChild(S),T.appendChild(document.createTextNode("Mouse"));let w=document.createElement("button");w.type="button",w.className="cesium-navigation-button cesium-navigation-button-right",w.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let E=document.createElement("img");E.src=oa("Widgets/Images/NavigationHelp/Touch.svg"),E.className="cesium-navigation-button-icon",E.style.width="25px",E.style.height="25px",w.appendChild(E),w.appendChild(document.createTextNode("Touch")),C.appendChild(T),C.appendChild(w);let L=document.createElement("div");L.className="cesium-click-navigation-help cesium-navigation-help-instructions",L.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),L.innerHTML=`            <table>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/MouseLeft.svg")}" width="48" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-pan">Pan view</div>                        <div class="cesium-navigation-help-details">Left click + drag</div>                    </td>                </tr>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/MouseRight.svg")}" width="48" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-zoom">Zoom view</div>                        <div class="cesium-navigation-help-details">Right click + drag, or</div>                        <div class="cesium-navigation-help-details">Mouse wheel scroll</div>                    </td>                </tr>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/MouseMiddle.svg")}" width="48" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-rotate">Rotate view</div>                        <div class="cesium-navigation-help-details">Middle click + drag, or</div>                        <div class="cesium-navigation-help-details">CTRL + Left/Right click + drag</div>                    </td>                </tr>            </table>`,C.appendChild(L);let I=document.createElement("div");I.className="cesium-touch-navigation-help cesium-navigation-help-instructions",I.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),I.innerHTML=`            <table>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/TouchDrag.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-pan">Pan view</div>                        <div class="cesium-navigation-help-details">One finger drag</div>                    </td>                </tr>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/TouchZoom.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-zoom">Zoom view</div>                        <div class="cesium-navigation-help-details">Two finger pinch</div>                    </td>                </tr>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/TouchTilt.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-rotate">Tilt view</div>                        <div class="cesium-navigation-help-details">Two finger drag, same direction</div>                    </td>                </tr>                <tr>                    <td><img src="${oa("Widgets/Images/NavigationHelp/TouchRotate.svg")}" width="70" height="48" /></td>                    <td>                        <div class="cesium-navigation-help-tilt">Rotate view</div>                        <div class="cesium-navigation-help-details">Two finger drag, opposite direction</div>                    </td>                </tr>            </table>`,C.appendChild(I),sr.applyBindings(m,y),this._container=f,this._viewModel=m,this._wrapper=y,this._closeInstructions=function(R){y.contains(R.target)||(m.showInstructions=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(zde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});zde.prototype.isDestroyed=function(){return!1};zde.prototype.destroy=function(){return ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var WDe=zde;function ZDe(o){this._scene=o.scene,this.lowFrameRateMessage=o.lowFrameRateMessage??"This application appears to be performing poorly on your system.  Please try using a different web browser or updating your video drivers.",this.lowFrameRateMessageDismissed=!1,this.showingLowFrameRateMessage=!1,sr.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let f=this;this._dismissMessage=Il(function(){f.showingLowFrameRateMessage=!1,f.lowFrameRateMessageDismissed=!0});let m=PFe.fromScene(o.scene);this._unsubscribeLowFrameRate=m.lowFrameRate.addEventListener(function(){f.lowFrameRateMessageDismissed||(f.showingLowFrameRateMessage=!0)}),this._unsubscribeNominalFrameRate=m.nominalFrameRate.addEventListener(function(){f.showingLowFrameRateMessage=!1})}Object.defineProperties(ZDe.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});ZDe.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),yr(this)};var ODe=ZDe;function Yde(o){let f=Qh(o.container),m=new ODe(o),x=document.createElement("div");x.className="cesium-performance-watchdog-message-area",x.setAttribute("data-bind","visible: showingLowFrameRateMessage");let y=document.createElement("button");y.setAttribute("type","button"),y.className="cesium-performance-watchdog-message-dismiss",y.innerHTML="&times;",y.setAttribute("data-bind","click: dismissMessage"),x.appendChild(y);let v=document.createElement("div");v.className="cesium-performance-watchdog-message",v.setAttribute("data-bind","html: lowFrameRateMessage"),x.appendChild(v),f.appendChild(x),sr.applyBindings(m,x),this._container=f,this._viewModel=m,this._element=x}Object.defineProperties(Yde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Yde.prototype.isDestroyed=function(){return!1};Yde.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var XDe=Yde;function Kde(o){this._scene=o,this._orthographic=o.camera.frustum instanceof $a,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=o.mode,sr.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let f=this;sr.defineProperty(this,"selectedTooltip",function(){return f._orthographic?f.tooltipOrthographic:f.tooltipPerspective}),this._toggleDropDown=Il(function(){f.sceneMode===gi.SCENE2D||f._flightInProgress||(f.dropDownVisible=!f.dropDownVisible)}),this._eventHelper=new bv,this._eventHelper.add(o.morphComplete,function(m,x,y,v){f.sceneMode=y,f._orthographic=y===gi.SCENE2D||f._scene.camera.frustum instanceof $a}),this._eventHelper.add(o.preRender,function(){f._flightInProgress=F(o.camera._currentFlight)}),this._switchToPerspective=Il(function(){f.sceneMode!==gi.SCENE2D&&(f._scene.camera.switchToPerspectiveFrustum(),f._orthographic=!1,f.dropDownVisible=!1)}),this._switchToOrthographic=Il(function(){f.sceneMode!==gi.SCENE2D&&(f._scene.camera.switchToOrthographicFrustum(),f._orthographic=!0,f.dropDownVisible=!1)}),this._sceneMode=gi}Object.defineProperties(Kde.prototype,{scene:{get:function(){return this._scene}},toggleDropDown:{get:function(){return this._toggleDropDown}},switchToPerspective:{get:function(){return this._switchToPerspective}},switchToOrthographic:{get:function(){return this._switchToOrthographic}},isOrthographicProjection:{get:function(){return this._orthographic}}});Kde.prototype.isDestroyed=function(){return!1};Kde.prototype.destroy=function(){this._eventHelper.removeAll(),yr(this)};var kDe=Kde,J8i="M 28.15625,10.4375 9.125,13.21875 13.75,43.25 41.75,55.09375 50.8125,37 54.5,11.9375 z m 0.125,3 19.976451,0.394265 L 43.03125,16.875 22.6875,14.28125 z M 50.971746,15.705477 47.90625,36.03125 42.53125,46 44.84375,19.3125 z M 12.625,16.03125 l 29.15625,3.6875 -2.65625,31 L 16.4375,41.125 z",j8i="m 31.560594,6.5254438 -20.75,12.4687502 0.1875,24.5625 22.28125,11.8125 19.5,-12 0.65625,-0.375 0,-0.75 0.0312,-23.21875 z m 0.0625,3.125 16.65625,9.5000002 -16.125,10.28125 -17.34375,-9.71875 z m 18.96875,11.1875002 0.15625,20.65625 -17.46875,10.59375 0.15625,-20.28125 z m -37.0625,1.25 17.21875,9.625 -0.15625,19.21875 -16.9375,-9 z";function Jde(o,f){o=Qh(o);let m=new kDe(f);m._perspectivePath=J8i,m._orthographicPath=j8i;let x=document.createElement("span");x.className="cesium-projectionPicker-wrapper cesium-toolbar-button",o.appendChild(x);let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-toolbar-button",y.setAttribute("data-bind",'css: { "cesium-projectionPicker-buttonPerspective": !_orthographic,       "cesium-projectionPicker-buttonOrthographic": _orthographic,       "cesium-button-disabled" : sceneMode === _sceneMode.SCENE2D || _flightInProgress,        "cesium-projectionPicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),y.innerHTML='<!-- ko cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64, css: "cesium-projectionPicker-iconPerspective" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64, css: "cesium-projectionPicker-iconOrthographic" } --><!-- /ko -->',x.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",v.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && _orthographic),       "cesium-projectionPicker-none" : !_orthographic,       "cesium-projectionPicker-hidden" : !dropDownVisible },attr: { title: tooltipPerspective },click: switchToPerspective,cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64 }'),x.appendChild(v);let C=document.createElement("button");C.type="button",C.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",C.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && !_orthographic),       "cesium-projectionPicker-none" : _orthographic,       "cesium-projectionPicker-hidden" : !dropDownVisible},attr: { title: tooltipOrthographic },click: switchToOrthographic,cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64 }'),x.appendChild(C),sr.applyBindings(m,x),this._viewModel=m,this._container=o,this._wrapper=x,this._closeDropDown=function(T){x.contains(T.target)||(m.dropDownVisible=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(Jde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Jde.prototype.isDestroyed=function(){return!1};Jde.prototype.destroy=function(){return this._viewModel.destroy(),ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var UDe=Jde;function jde(o,f){this._scene=o;let m=this,x=function(y,v,C,T){m.sceneMode=C,m.dropDownVisible=!1};this._eventHelper=new bv,this._eventHelper.add(o.morphStart,x),this._duration=f??2,this.sceneMode=o.mode,this.dropDownVisible=!1,this.tooltip2D="2D",this.tooltip3D="3D",this.tooltipColumbusView="Columbus View",sr.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,sr.defineProperty(this,"selectedTooltip",function(){let y=m.sceneMode;return y===gi.SCENE2D?m.tooltip2D:y===gi.SCENE3D?m.tooltip3D:m.tooltipColumbusView}),this._toggleDropDown=Il(function(){m.dropDownVisible=!m.dropDownVisible}),this._morphTo2D=Il(function(){o.morphTo2D(m._duration)}),this._morphTo3D=Il(function(){o.morphTo3D(m._duration)}),this._morphToColumbusView=Il(function(){o.morphToColumbusView(m._duration)}),this._sceneMode=gi}Object.defineProperties(jde.prototype,{scene:{get:function(){return this._scene}},duration:{get:function(){return this._duration},set:function(o){this._duration=o}},toggleDropDown:{get:function(){return this._toggleDropDown}},morphTo2D:{get:function(){return this._morphTo2D}},morphTo3D:{get:function(){return this._morphTo3D}},morphToColumbusView:{get:function(){return this._morphToColumbusView}}});jde.prototype.isDestroyed=function(){return!1};jde.prototype.destroy=function(){this._eventHelper.removeAll(),yr(this)};var BDe=jde,Q8i="m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878         -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132         -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285         11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z         M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201         5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461         -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z",q8i="m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z",$8i="m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z";function Qde(o,f,m){o=Qh(o);let x=new BDe(f,m);x._globePath=Q8i,x._flatMapPath=q8i,x._columbusViewPath=$8i;let y=document.createElement("span");y.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",o.appendChild(y);let v=document.createElement("button");v.type="button",v.className="cesium-button cesium-toolbar-button",v.setAttribute("data-bind",'css: { "cesium-sceneModePicker-button2D": sceneMode === _sceneMode.SCENE2D,       "cesium-sceneModePicker-button3D": sceneMode === _sceneMode.SCENE3D,       "cesium-sceneModePicker-buttonColumbusView": sceneMode === _sceneMode.COLUMBUS_VIEW,       "cesium-sceneModePicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),v.innerHTML='<!-- ko cesiumSvgPath: { path: _globePath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon3D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon2D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-iconColumbusView" } --><!-- /ko -->',y.appendChild(v);let C=document.createElement("button");C.type="button",C.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",C.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE3D)) || (!dropDownVisible && (sceneMode === _sceneMode.SCENE3D)),       "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE3D,       "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip3D },click: morphTo3D,cesiumSvgPath: { path: _globePath, width: 64, height: 64 }'),y.appendChild(C);let T=document.createElement("button");T.type="button",T.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",T.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE2D)),       "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D,       "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),y.appendChild(T);let S=document.createElement("button");S.type="button",S.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",S.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.COLUMBUS_VIEW)) || (!dropDownVisible && (sceneMode === _sceneMode.COLUMBUS_VIEW)),       "cesium-sceneModePicker-none" : sceneMode === _sceneMode.COLUMBUS_VIEW,       "cesium-sceneModePicker-hidden" : !dropDownVisible},attr: { title: tooltipColumbusView },click: morphToColumbusView,cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64 }'),y.appendChild(S),sr.applyBindings(x,y),this._viewModel=x,this._container=o,this._wrapper=y,this._closeDropDown=function(w){y.contains(w.target)||(x.dropDownVisible=!1)},ia.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(Qde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});Qde.prototype.isDestroyed=function(){return!1};Qde.prototype.destroy=function(){return this._viewModel.destroy(),ia.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),sr.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),yr(this)};var HDe=Qde,eji=new rt,Ele="-1000px";function y$(o,f,m){this._scene=o,this._screenPositionX=Ele,this._screenPositionY=Ele,this._tweens=o.tweens,this._container=m??document.body,this._selectionIndicatorElement=f,this._scale=1,this.position=void 0,this.showSelection=!1,sr.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,sr.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&F(this.position)}}),sr.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(x,y){return Ca.worldToWindowCoordinates(o,x,y)}}y$.prototype.update=function(){if(this.showSelection&&F(this.position)){let o=this.computeScreenSpacePosition(this.position,eji);if(!F(o))this._screenPositionX=Ele,this._screenPositionY=Ele;else{let f=this._container,m=f.parentNode.clientWidth,x=f.parentNode.clientHeight,y=this._selectionIndicatorElement.clientWidth,v=y*.5;o.x=Math.min(Math.max(o.x,-y),m+y)-v,o.y=Math.min(Math.max(o.y,-y),x+y)-v,this._screenPositionX=`${Math.floor(o.x+.25)}px`,this._screenPositionY=`${Math.floor(o.y+.25)}px`}}};y$.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:J_.EXPONENTIAL_OUT})};y$.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:J_.EXPONENTIAL_OUT})};Object.defineProperties(y$.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var zDe=y$;function qde(o,f){o=Qh(o),this._container=o;let m=document.createElement("div");m.className="cesium-selection-wrapper",m.setAttribute("data-bind",'style: { "top" : _screenPositionY, "left" : _screenPositionX },css: { "cesium-selection-wrapper-visible" : isVisible }'),o.appendChild(m),this._element=m;let x="http://www.w3.org/2000/svg",y="M -34 -34 L -34 -11.25 L -30 -15.25 L -30 -30 L -15.25 -30 L -11.25 -34 L -34 -34 z M 11.25 -34 L 15.25 -30 L 30 -30 L 30 -15.25 L 34 -11.25 L 34 -34 L 11.25 -34 z M -34 11.25 L -34 34 L -11.25 34 L -15.25 30 L -30 30 L -30 15.25 L -34 11.25 z M 34 11.25 L 30 15.25 L 30 30 L 15.25 30 L 11.25 34 L 34 34 L 34 11.25 z",v=document.createElementNS(x,"svg:svg");v.setAttribute("width",160),v.setAttribute("height",160),v.setAttribute("viewBox","0 0 160 160");let C=document.createElementNS(x,"g");C.setAttribute("transform","translate(80,80)"),v.appendChild(C);let T=document.createElementNS(x,"path");T.setAttribute("data-bind","attr: { transform: _transform }"),T.setAttribute("d",y),C.appendChild(T),m.appendChild(v);let S=new zDe(f,this._element,this._container);this._viewModel=S,sr.applyBindings(this._viewModel,this._element)}Object.defineProperties(qde.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});qde.prototype.isDestroyed=function(){return!1};qde.prototype.destroy=function(){let o=this._container;return sr.cleanNode(this._element),o.removeChild(this._element),yr(this)};var YDe=qde;function BO(o,f,m){this._color=o,this._height=f,this._base=m??0}BO.prototype.getHeight=function(){return this._height};BO.prototype.getBase=function(){return this._base};BO.prototype.getStartTime=function(){return this._start};BO.prototype.getStopTime=function(){return this._stop};BO.prototype.setRange=function(o,f){this._start=o,this._stop=f};BO.prototype.render=function(o){let f="";if(this._start&&this._stop&&this._color){let m=$t.secondsDifference(this._start,o.epochJulian),x=Math.round(o.timeBarWidth*o.getAlpha(m)),y=$t.secondsDifference(this._stop,o.epochJulian),v=Math.round(o.timeBarWidth*o.getAlpha(y))-x;x<0&&(v+=x,x=0),x+v>o.timeBarWidth&&(v=o.timeBarWidth-x),v>0&&(f=`<span class="cesium-timeline-highlight" style="left: ${x.toString()}px; width: ${v.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return f};var KDe=BO;function tyt(o,f,m,x){this.interval=o,this.height=f,this.color=m||new Xe(.5,.5,.5,1),this.backgroundColor=x||new Xe(0,0,0,0)}tyt.prototype.render=function(o,f){let m=this.interval.start,x=this.interval.stop,y=f.startJulian,v=$t.addSeconds(f.startJulian,f.duration,new $t);if($t.lessThan(m,y)&&$t.greaterThan(x,v))o.fillStyle=this.color.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height);else if($t.lessThanOrEquals(m,v)&&$t.greaterThanOrEquals(x,y)){let C,T,S;for(C=0;C<f.timeBarWidth;++C){let w=$t.addSeconds(f.startJulian,C/f.timeBarWidth*f.duration,new $t);!F(T)&&$t.greaterThanOrEquals(w,m)?T=C:!F(S)&&$t.greaterThanOrEquals(w,x)&&(S=C)}o.fillStyle=this.backgroundColor.toCssColorString(),o.fillRect(0,f.y,f.timeBarWidth,this.height),F(T)&&(F(S)||(S=f.timeBarWidth),o.fillStyle=this.color.toCssColorString(),o.fillRect(T,f.y,Math.max(S-T,1),this.height))}};var JDe=tyt,xbe=1e12,oS={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},q2={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},H5=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800,1296e3,2592e3,5184e3,7776e3,15552e3,31536e3,63072e3,126144e3,15768e4,31536e4,63072e4,126144e4,15768e5,31536e5,63072e5,126144e5,15768e6,31536e6];function Lv(o,f){o=Qh(o);let m=o.ownerDocument;this.container=o;let x=m.createElement("div");x.className="cesium-timeline-main",o.appendChild(x),this._topDiv=x,this._endJulian=void 0,this._epochJulian=void 0,this._lastXPos=void 0,this._scrubElement=void 0,this._startJulian=void 0,this._timeBarSecondsSpan=void 0,this._clock=f,this._scrubJulian=f.currentTime,this._mainTicSpan=-1,this._mouseMode=oS.none,this._touchMode=q2.none,this._touchState={centerX:0,spanX:0},this._mouseX=0,this._timelineDrag=0,this._timelineDragLocation=void 0,this._lastHeight=void 0,this._lastWidth=void 0,this._topDiv.innerHTML='<div class="cesium-timeline-bar"></div><div class="cesium-timeline-trackContainer"><canvas class="cesium-timeline-tracks" width="10" height="1"></canvas></div><div class="cesium-timeline-needle"></div><span class="cesium-timeline-ruler"></span>',this._timeBarEle=this._topDiv.childNodes[0],this._trackContainer=this._topDiv.childNodes[1],this._trackListEle=this._topDiv.childNodes[1].childNodes[0],this._needleEle=this._topDiv.childNodes[2],this._rulerEle=this._topDiv.childNodes[3],this._context=this._trackListEle.getContext("2d"),this._trackList=[],this._highlightRanges=[],this.zoomTo(f.startTime,f.stopTime),this._onMouseDown=tji(this),this._onMouseUp=iji(this),this._onMouseMove=rji(this),this._onMouseWheel=nji(this),this._onTouchStart=oji(this),this._onTouchMove=sji(this),this._onTouchEnd=aji(this);let y=this._timeBarEle;m.addEventListener("mouseup",this._onMouseUp,!1),m.addEventListener("mousemove",this._onMouseMove,!1),y.addEventListener("mousedown",this._onMouseDown,!1),y.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),y.addEventListener("mousewheel",this._onMouseWheel,!1),y.addEventListener("touchstart",this._onTouchStart,!1),y.addEventListener("touchmove",this._onTouchMove,!1),y.addEventListener("touchend",this._onTouchEnd,!1),y.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},f.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}Lv.prototype.addEventListener=function(o,f,m){this._topDiv.addEventListener(o,f,m)};Lv.prototype.removeEventListener=function(o,f,m){this._topDiv.removeEventListener(o,f,m)};Lv.prototype.isDestroyed=function(){return!1};Lv.prototype.destroy=function(){this._clock.onTick.removeEventListener(this.updateFromClock,this);let o=this.container.ownerDocument;o.removeEventListener("mouseup",this._onMouseUp,!1),o.removeEventListener("mousemove",this._onMouseMove,!1);let f=this._timeBarEle;f.removeEventListener("mousedown",this._onMouseDown,!1),f.removeEventListener("DOMMouseScroll",this._onMouseWheel,!1),f.removeEventListener("mousewheel",this._onMouseWheel,!1),f.removeEventListener("touchstart",this._onTouchStart,!1),f.removeEventListener("touchmove",this._onTouchMove,!1),f.removeEventListener("touchend",this._onTouchEnd,!1),f.removeEventListener("touchcancel",this._onTouchEnd,!1),this.container.removeChild(this._topDiv),yr(this)};Lv.prototype.addHighlightRange=function(o,f,m){let x=new KDe(o,f,m);return this._highlightRanges.push(x),this.resize(),x};Lv.prototype.addTrack=function(o,f,m,x){let y=new JDe(o,f,m,x);return this._trackList.push(y),this._lastHeight=void 0,this.resize(),y};Lv.prototype.zoomTo=function(o,f){if(this._startJulian=o,this._endJulian=f,this._timeBarSecondsSpan=$t.secondsDifference(f,o),this._clock&&this._clock.clockRange!==Gx.UNBOUNDED){let x=this._clock.startTime,y=this._clock.stopTime,v=$t.secondsDifference(y,x),C=$t.secondsDifference(x,this._startJulian),T=$t.secondsDifference(y,this._endJulian);this._timeBarSecondsSpan>=v?(this._timeBarSecondsSpan=v,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):C>0?(this._endJulian=$t.addSeconds(this._endJulian,C,new $t),this._startJulian=x,this._timeBarSecondsSpan=$t.secondsDifference(this._endJulian,this._startJulian)):T<0&&(this._startJulian=$t.addSeconds(this._startJulian,T,new $t),this._endJulian=y,this._timeBarSecondsSpan=$t.secondsDifference(this._endJulian,this._startJulian))}this._makeTics();let m=document.createEvent("Event");m.initEvent("setzoom",!0,!0),m.startJulian=this._startJulian,m.endJulian=this._endJulian,m.epochJulian=this._epochJulian,m.totalSpan=this._timeBarSecondsSpan,m.mainTicSpan=this._mainTicSpan,this._topDiv.dispatchEvent(m)};Lv.prototype.zoomFrom=function(o){let f=$t.secondsDifference(this._scrubJulian,this._startJulian);o>1||f<0||f>this._timeBarSecondsSpan?f=this._timeBarSecondsSpan*.5:f+=f-this._timeBarSecondsSpan*.5;let m=this._timeBarSecondsSpan-f;this.zoomTo($t.addSeconds(this._startJulian,f-f*o,new $t),$t.addSeconds(this._endJulian,m*o-m,new $t))};Lv.prototype.makeLabel=function(o){let f=new Date(o);return`${f.getFullYear()} ${f.getMonth()+1} ${f.getDate()-1} ${f.getHours()}:${f.getMinutes()}:${f.getSeconds()}`};Lv.prototype.smallestTicInPixels=7;Lv.prototype._makeTics=function(){let o=this._timeBarEle,f=$t.secondsDifference(this._scrubJulian,this._startJulian),m=Math.round(f*this._topDiv.clientWidth/this._timeBarSecondsSpan),x=m-8,y,v=this;this._needleEle.style.left=`${m.toString()}px`;let C="",T=.01,S=31536e6,w=1e-10,E=0,L=this._timeBarSecondsSpan;L<T?(L=T,this._timeBarSecondsSpan=T,this._endJulian=$t.addSeconds(this._startJulian,T,new $t)):L>S&&(L=S,this._timeBarSecondsSpan=S,this._endJulian=$t.addSeconds(this._startJulian,S,new $t));let I=this._timeBarEle.clientWidth;I<10&&(I=10);let R=this._startJulian,P=Math.min(L/I*1e-5,.4),A,M=$t.toGregorianDate(R);L>31536e4?A=$t.fromDate(new Date(Date.UTC(Math.floor(M.year/100)*100,0))):L>31536e3?A=$t.fromDate(new Date(Date.UTC(Math.floor(M.year/10)*10,0))):L>86400?A=$t.fromDate(new Date(Date.UTC(M.year,0))):A=$t.fromDate(new Date(Date.UTC(M.year,M.month,M.day)));let V=$t.secondsDifference(this._startJulian,$t.addSeconds(A,P,new $t)),G=V+L;this._epochJulian=A;function D(oe){return Math.floor(V/oe)*oe}function N(oe,ce){return Math.ceil(oe/ce+.5)*ce}function k(oe){return(oe-V)/L}function U(oe,ce){return oe-ce*Math.round(oe/ce)}this._rulerEle.innerHTML=this.makeLabel($t.addSeconds(this._endJulian,-T,new $t));let B=this._rulerEle.offsetWidth+20;B<30&&(B=180);let Y=E;E-=w;let J={startTime:V,startJulian:R,epochJulian:A,duration:L,timeBarWidth:I,getAlpha:k};this._highlightRanges.forEach(function(oe){C+=oe.render(J)});let K=0,z=0,j=0,q=B/I;q>1&&(q=1),q*=this._timeBarSecondsSpan;let O=-1,te=-1,ie=H5.length,re;for(re=0;re<ie;++re){let oe=H5[re];if(++O,K=oe,oe>q&&oe>E)break;te<0&&I*(oe/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(te=O)}if(O>0){for(;O>0;)if(--O,Math.abs(U(K,H5[O]))<1e-5){H5[O]>=E&&(z=H5[O]);break}if(te>=0)for(;te<O;){if(Math.abs(U(z,H5[te]))<1e-5&&H5[te]>=E){j=H5[te];break}++te}}E=Y,E>w&&j<1e-5&&Math.abs(E-K)>w&&(j=E,E<=K+w&&(z=0));let ee=-999999,ae;if(I*(j/this._timeBarSecondsSpan)>=3)for(y=D(j);y<=G;y=N(y,j))C+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(I*k(y)).toString()}px;"></span>`;if(I*(z/this._timeBarSecondsSpan)>=3)for(y=D(z);y<=G;y=N(y,z))C+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(I*k(y)).toString()}px;"></span>`;if(I*(K/this._timeBarSecondsSpan)>=2){this._mainTicSpan=K,G+=K,y=D(K);let oe=$t.computeTaiMinusUtc(A);for(;y<=G;){let ce=$t.addSeconds(R,y-V,new $t);if(K>2.1){let fe=$t.computeTaiMinusUtc(ce);Math.abs(fe-oe)>.1&&(y+=fe-oe,ce=$t.addSeconds(R,y-V,new $t))}let pe=Math.round(I*k(y)),ue=this.makeLabel(ce);this._rulerEle.innerHTML=ue,ae=this._rulerEle.offsetWidth,ae<10&&(ae=B);let he=pe-(ae/2-1);he>ee?(ee=he+ae+5,C+=`<span class="cesium-timeline-ticMain" style="left: ${pe.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${he.toString()}px;">${ue}</span>`):C+=`<span class="cesium-timeline-ticSub" style="left: ${pe.toString()}px;"></span>`,y=N(y,K)}}else this._mainTicSpan=-1;C+=`<span class="cesium-timeline-icon16" style="left:${x}px;bottom:0;background-position: 0 0;"></span>`,o.innerHTML=C,this._scrubElement=o.lastChild,this._context.clearRect(0,0,this._trackListEle.width,this._trackListEle.height),J.y=0,this._trackList.forEach(function(oe){oe.render(v._context,J),J.y+=oe.height})};Lv.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let o=this._scrubElement;if(F(this._scrubElement)){let f=$t.secondsDifference(this._scrubJulian,this._startJulian),m=Math.round(f*this._topDiv.clientWidth/this._timeBarSecondsSpan);this._lastXPos!==m&&(this._lastXPos=m,o.style.left=`${m-8}px`,this._needleEle.style.left=`${m}px`)}F(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo($t.addSeconds(this._startJulian,this._timelineDrag,new $t),$t.addSeconds(this._endJulian,this._timelineDrag,new $t)))};Lv.prototype._setTimeBarTime=function(o,f){if(o=Math.round(o),this._scrubJulian=$t.addSeconds(this._startJulian,f,new $t),this._scrubElement){let x=o-8;this._scrubElement.style.left=`${x.toString()}px`,this._needleEle.style.left=`${o.toString()}px`}let m=document.createEvent("Event");m.initEvent("settime",!0,!0),m.clientX=o,m.timeSeconds=f,m.timeJulian=this._scrubJulian,m.clock=this._clock,this._topDiv.dispatchEvent(m)};function tji(o){return function(f){o._mouseMode!==oS.touchOnly&&(f.button===0?(o._mouseMode=oS.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition="-16px 0"),o._onMouseMove(f)):(o._mouseX=f.clientX,f.button===2?o._mouseMode=oS.zoom:o._mouseMode=oS.slide)),f.preventDefault()}}function iji(o){return function(f){o._mouseMode=oS.none,o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0"),o._timelineDrag=0,o._timelineDragLocation=void 0}}function rji(o){return function(f){let m;if(o._mouseMode===oS.scrub){f.preventDefault();let x=f.clientX-o._topDiv.getBoundingClientRect().left;x<0?(o._timelineDragLocation=0,o._timelineDrag=-.01*o._timeBarSecondsSpan):x>o._topDiv.clientWidth?(o._timelineDragLocation=o._topDiv.clientWidth,o._timelineDrag=.01*o._timeBarSecondsSpan):(o._timelineDragLocation=void 0,o._setTimeBarTime(x,x*o._timeBarSecondsSpan/o._topDiv.clientWidth))}else if(o._mouseMode===oS.slide){if(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0){let x=m*o._timeBarSecondsSpan/o._topDiv.clientWidth;o.zoomTo($t.addSeconds(o._startJulian,x,new $t),$t.addSeconds(o._endJulian,x,new $t))}}else o._mouseMode===oS.zoom&&(m=o._mouseX-f.clientX,o._mouseX=f.clientX,m!==0&&o.zoomFrom(Math.pow(1.01,m)))}}function nji(o){return function(f){let m=f.wheelDeltaY||f.wheelDelta||-f.detail;xbe=Math.max(Math.min(Math.abs(m),xbe),1),m/=xbe,o.zoomFrom(Math.pow(1.05,-m))}}function oji(o){return function(f){let m=f.touches.length,x,y,v=o._topDiv.getBoundingClientRect().left;f.preventDefault(),o._mouseMode=oS.touchOnly,m===1?(x=$t.secondsDifference(o._scrubJulian,o._startJulian),y=Math.round(x*o._topDiv.clientWidth/o._timeBarSecondsSpan+v),Math.abs(f.touches[0].clientX-y)<50?(o._touchMode=q2.scrub,o._scrubElement&&(o._scrubElement.style.backgroundPosition=m===1?"-16px 0":"0 0")):(o._touchMode=q2.singleTap,o._touchState.centerX=f.touches[0].clientX-v)):m===2?(o._touchMode=q2.slideZoom,o._touchState.centerX=(f.touches[0].clientX+f.touches[1].clientX)*.5-v,o._touchState.spanX=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):o._touchMode=q2.ignore}}function aji(o){return function(f){let m=f.touches.length,x=o._topDiv.getBoundingClientRect().left;o._touchMode===q2.singleTap?(o._touchMode=q2.scrub,o._onTouchMove(f)):o._touchMode===q2.scrub&&o._onTouchMove(f),o._mouseMode=oS.touchOnly,m!==1?o._touchMode=m>0?q2.ignore:q2.none:o._touchMode===q2.slideZoom&&(o._touchState.centerX=f.touches[0].clientX-x),o._scrubElement&&(o._scrubElement.style.backgroundPosition="0 0")}}function sji(o){return function(f){let m,x,y,v,C,T,S=1,w=o._topDiv.getBoundingClientRect().left;o._touchMode===q2.singleTap&&(o._touchMode=q2.slideZoom),o._mouseMode=oS.touchOnly,o._touchMode===q2.scrub?(f.preventDefault(),f.changedTouches.length===1&&(x=f.changedTouches[0].clientX-w,x>=0&&x<=o._topDiv.clientWidth&&o._setTimeBarTime(x,x*o._timeBarSecondsSpan/o._topDiv.clientWidth))):o._touchMode===q2.slideZoom&&(y=f.touches.length,y===2?(v=(f.touches[0].clientX+f.touches[1].clientX)*.5-w,C=Math.abs(f.touches[0].clientX-f.touches[1].clientX)):y===1&&(v=f.touches[0].clientX-w,C=0),F(v)&&(C>0&&o._touchState.spanX>0?(S=o._touchState.spanX/C,T=$t.addSeconds(o._startJulian,(o._touchState.centerX*o._timeBarSecondsSpan-v*o._timeBarSecondsSpan*S)/o._topDiv.clientWidth,new $t)):(m=o._touchState.centerX-v,T=$t.addSeconds(o._startJulian,m*o._timeBarSecondsSpan/o._topDiv.clientWidth,new $t)),o.zoomTo(T,$t.addSeconds(T,o._timeBarSecondsSpan*S,new $t)),o._touchState.centerX=v,o._touchState.spanX=C))}}Lv.prototype.resize=function(){let o=this.container.clientWidth,f=this.container.clientHeight;if(o===this._lastWidth&&f===this._lastHeight)return;this._trackContainer.style.height=`${f}px`;let m=1;this._trackList.forEach(function(x){m+=x.height}),this._trackListEle.style.height=`${m.toString()}px`,this._trackListEle.width=this._trackListEle.clientWidth,this._trackListEle.height=m,this._makeTics(),this._lastXPos=void 0,this._lastWidth=o,this._lastHeight=f};var jDe=Lv;function $de(o,f){F(f)||(f=document.body),f=Qh(f);let m=this,x=sr.observable(km.fullscreen),y=sr.observable(km.enabled),v=f.ownerDocument;this.isFullscreen=void 0,sr.defineProperty(this,"isFullscreen",{get:function(){return x()}}),this.isFullscreenEnabled=void 0,sr.defineProperty(this,"isFullscreenEnabled",{get:function(){return y()},set:function(C){y(C&&km.enabled)}}),this.tooltip=void 0,sr.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?x()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=Il(function(){km.fullscreen?km.exitFullscreen():km.requestFullscreen(m._fullscreenElement)},sr.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=Qh(o)??v.body,this._callback=function(){x(km.fullscreen)},v.addEventListener(km.changeEventName,this._callback)}Object.defineProperties($de.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(o){this._fullscreenElement=o}},command:{get:function(){return this._command}}});$de.prototype.isDestroyed=function(){return!1};$de.prototype.destroy=function(){document.removeEventListener(km.changeEventName,this._callback),yr(this)};var QDe=$de,lji="M 83.96875 17.5625 L 83.96875 17.59375 L 76.65625 24.875 L 97.09375 24.96875 L 76.09375 45.96875 L 81.9375 51.8125 L 102.78125 30.9375 L 102.875 51.15625 L 110.15625 43.875 L 110.1875 17.59375 L 83.96875 17.5625 z M 44.125 17.59375 L 17.90625 17.625 L 17.9375 43.90625 L 25.21875 51.1875 L 25.3125 30.96875 L 46.15625 51.8125 L 52 45.96875 L 31 25 L 51.4375 24.90625 L 44.125 17.59375 z M 46.0625 76.03125 L 25.1875 96.875 L 25.09375 76.65625 L 17.8125 83.9375 L 17.8125 110.21875 L 44 110.25 L 51.3125 102.9375 L 30.90625 102.84375 L 51.875 81.875 L 46.0625 76.03125 z M 82 76.15625 L 76.15625 82 L 97.15625 103 L 76.71875 103.0625 L 84.03125 110.375 L 110.25 110.34375 L 110.21875 84.0625 L 102.9375 76.8125 L 102.84375 97 L 82 76.15625 z",uji="M 104.34375 17.5625 L 83.5 38.4375 L 83.40625 18.21875 L 76.125 25.5 L 76.09375 51.78125 L 102.3125 51.8125 L 102.3125 51.78125 L 109.625 44.5 L 89.1875 44.40625 L 110.1875 23.40625 L 104.34375 17.5625 z M 23.75 17.59375 L 17.90625 23.4375 L 38.90625 44.4375 L 18.5 44.53125 L 25.78125 51.8125 L 52 51.78125 L 51.96875 25.53125 L 44.6875 18.25 L 44.625 38.46875 L 23.75 17.59375 z M 25.6875 76.03125 L 18.375 83.3125 L 38.78125 83.40625 L 17.8125 104.40625 L 23.625 110.25 L 44.5 89.375 L 44.59375 109.59375 L 51.875 102.3125 L 51.875 76.0625 L 25.6875 76.03125 z M 102.375 76.15625 L 76.15625 76.1875 L 76.1875 102.4375 L 83.46875 109.71875 L 83.5625 89.53125 L 104.40625 110.375 L 110.25 104.53125 L 89.25 83.53125 L 109.6875 83.46875 L 102.375 76.15625 z";function e0e(o,f){o=Qh(o);let m=new QDe(f,o);m._exitFullScreenPath=uji,m._enterFullScreenPath=lji;let x=document.createElement("button");x.type="button",x.className="cesium-button cesium-fullscreenButton",x.setAttribute("data-bind","attr: { title: tooltip },click: command,enable: isFullscreenEnabled,cesiumSvgPath: { path: isFullscreen ? _exitFullScreenPath : _enterFullScreenPath, width: 128, height: 128 }"),o.appendChild(x),sr.applyBindings(m,x),this._container=o,this._viewModel=m,this._element=x}Object.defineProperties(e0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});e0e.prototype.isDestroyed=function(){return!1};e0e.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var qDe=e0e,cji=k0(tNt(),1);function hji(o){let f=!1,m=window.screen;return F(m)&&(F(m.lockOrientation)?f=m.lockOrientation(o):F(m.mozLockOrientation)?f=m.mozLockOrientation(o):F(m.msLockOrientation)?f=m.msLockOrientation(o):F(m.orientation&&m.orientation.lock)&&(f=m.orientation.lock(o))),f}function iyt(){let o=window.screen;F(o)&&(F(o.unlockOrientation)?o.unlockOrientation():F(o.mozUnlockOrientation)?o.mozUnlockOrientation():F(o.msUnlockOrientation)?o.msUnlockOrientation():F(o.orientation&&o.orientation.unlock)&&o.orientation.unlock())}function dji(o,f,m,x){x()||(m()?(f.useWebVR=!1,o._locked&&(iyt(),o._locked=!1),o._noSleep.disable(),km.exitFullscreen(),m(!1)):(km.fullscreen||km.requestFullscreen(o._vrElement),o._noSleep.enable(),o._locked||(o._locked=hji("landscape")),f.useWebVR=!0,m(!0)))}function t0e(o,f){let m=this,x=sr.observable(km.enabled),y=sr.observable(!1);this.isVRMode=void 0,sr.defineProperty(this,"isVRMode",{get:function(){return y()}}),this.isVREnabled=void 0,sr.defineProperty(this,"isVREnabled",{get:function(){return x()},set:function(C){x(C&&km.enabled)}}),this.tooltip=void 0,sr.defineProperty(this,"tooltip",function(){return x()?y()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let v=sr.observable(!1);this._isOrthographic=void 0,sr.defineProperty(this,"_isOrthographic",{get:function(){return v()}}),this._eventHelper=new bv,this._eventHelper.add(o.preRender,function(){v(o.camera.frustum instanceof $a)}),this._locked=!1,this._noSleep=new cji.default,this._command=Il(function(){dji(m,o,y,v)},sr.getObservable(this,"isVREnabled")),this._vrElement=Qh(f)??document.body,this._callback=function(){!km.fullscreen&&y()&&(o.useWebVR=!1,m._locked&&(iyt(),m._locked=!1),m._noSleep.disable(),y(!1))},document.addEventListener(km.changeEventName,this._callback)}Object.defineProperties(t0e.prototype,{vrElement:{get:function(){return this._vrElement},set:function(o){this._vrElement=o}},command:{get:function(){return this._command}}});t0e.prototype.isDestroyed=function(){return!1};t0e.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(km.changeEventName,this._callback),yr(this)};var $De=t0e,pji="M 5.3125 6.375 C 4.008126 6.375 2.96875 7.4141499 2.96875 8.71875 L 2.96875 19.5 C 2.96875 20.8043 4.008126 21.875 5.3125 21.875 L 13.65625 21.875 C 13.71832 20.0547 14.845166 18.59375 16.21875 18.59375 C 17.592088 18.59375 18.71881 20.0552 18.78125 21.875 L 27.09375 21.875 C 28.398125 21.875 29.4375 20.8043 29.4375 19.5 L 29.4375 8.71875 C 29.4375 7.4141499 28.398125 6.375 27.09375 6.375 L 5.3125 6.375 z M 9.625 10.4375 C 11.55989 10.4375 13.125 12.03385 13.125 13.96875 C 13.125 15.90365 11.55989 17.46875 9.625 17.46875 C 7.69011 17.46875 6.125 15.90365 6.125 13.96875 C 6.125 12.03385 7.69011 10.4375 9.625 10.4375 z M 22.46875 10.4375 C 24.40364 10.4375 25.96875 12.03385 25.96875 13.96875 C 25.96875 15.90365 24.40364 17.46875 22.46875 17.46875 C 20.53386 17.46875 18.96875 15.90365 18.96875 13.96875 C 18.96875 12.03385 20.53386 10.4375 22.46875 10.4375 z",fji="M 25.770585,2.4552065 C 15.72282,13.962707 10.699956,19.704407 8.1768352,22.580207 c -1.261561,1.4379 -1.902282,2.1427 -2.21875,2.5 -0.141624,0.1599 -0.208984,0.2355 -0.25,0.2813 l 0.6875,0.75 c 10e-5,-10e-5 0.679191,0.727 0.6875,0.7187 0.01662,-0.016 0.02451,-0.024 0.03125,-0.031 0.01348,-0.014 0.04013,-0.038 0.0625,-0.062 0.04474,-0.05 0.120921,-0.1315 0.28125,-0.3126 0.320657,-0.3619 0.956139,-1.0921 2.2187499,-2.5312 2.5252219,-2.8781 7.5454589,-8.6169 17.5937499,-20.1250005 l -1.5,-1.3125 z m -20.5624998,3.9063 c -1.304375,0 -2.34375,1.0391 -2.34375,2.3437 l 0,10.8125005 c 0,1.3043 1.039375,2.375 2.34375,2.375 l 2.25,0 c 1.9518039,-2.2246 7.4710958,-8.5584 13.5624998,-15.5312005 l -15.8124998,0 z m 21.1249998,0 c -1.855467,2.1245 -2.114296,2.4005 -3.59375,4.0936995 1.767282,0.1815 3.15625,1.685301 3.15625,3.500001 0,1.9349 -1.56511,3.5 -3.5,3.5 -1.658043,0 -3.043426,-1.1411 -3.40625,-2.6875 -1.089617,1.2461 -2.647139,2.9988 -3.46875,3.9375 0.191501,-0.062 0.388502,-0.094 0.59375,-0.094 1.373338,0 2.50006,1.4614 2.5625,3.2812 l 8.3125,0 c 1.304375,0 2.34375,-1.0707 2.34375,-2.375 l 0,-10.8125005 c 0,-1.3046 -1.039375,-2.3437 -2.34375,-2.3437 l -0.65625,0 z M 9.5518351,10.423906 c 1.9348899,0 3.4999999,1.596401 3.4999999,3.531301 0,1.9349 -1.56511,3.5 -3.4999999,3.5 -1.9348899,0 -3.4999999,-1.5651 -3.4999999,-3.5 0,-1.9349 1.56511,-3.531301 3.4999999,-3.531301 z m 4.2187499,10.312601 c -0.206517,0.2356 -0.844218,0.9428 -1.03125,1.1562 l 0.8125,0 c 0.01392,-0.4081 0.107026,-0.7968 0.21875,-1.1562 z";function i0e(o,f,m){o=Qh(o);let x=new $De(f,m);x._exitVRPath=fji,x._enterVRPath=pji;let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-vrButton",y.setAttribute("data-bind",'css: { "cesium-button-disabled" : _isOrthographic }, attr: { title: tooltip },click: command,enable: isVREnabled,cesiumSvgPath: { path: isVRMode ? _exitVRPath : _enterVRPath, width: 32, height: 32 }'),o.appendChild(y),sr.applyBindings(x,y),this._container=o,this._viewModel=x,this._element=y}Object.defineProperties(i0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});i0e.prototype.isDestroyed=function(){return!1};i0e.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var eNe=i0e,pqe=new Ei;function ryt(o){let f=o.clock;f.currentTime=o.timeJulian,f.shouldAnimate=!1}function mji(o){let f=o.getPropertyIds(),m="";return f.forEach(function(x){let y=o.getProperty(x);F(y)&&(m+=`<tr><th>${x}</th><td>${y}</td></tr>`)}),m.length>0&&(m=`<table class="cesium-infoBox-defaultTable"><tbody>${m}</tbody></table>`),m}function xji(o){let f,m=[],x=o.getPropertyIds();for(f=0;f<x.length;f++){let v=x[f];/^name$/i.test(v)?m[0]=o.getProperty(v):/name/i.test(v)?m[1]=o.getProperty(v):/^title$/i.test(v)?m[2]=o.getProperty(v):/^(id|identifier)$/i.test(v)?m[3]=o.getProperty(v):/element/i.test(v)?m[4]=o.getProperty(v):/(id|identifier)$/i.test(v)&&(m[5]=o.getProperty(v))}let y=m.length;for(f=0;f<y;f++){let v=m[f];if(F(v)&&v!=="")return v}return"Unnamed Feature"}function fqe(o,f){let m=o.scene.pick(f.position);if(F(m)){let x=m.id??m.primitive.id;if(x instanceof bd)return x;if(m instanceof Ss)return new bd({name:xji(m),description:mji(m),feature:m})}if(F(o.scene.globe))return _ji(o,f.position)}var gji=new $t;function tNe(o,f){if(F(f)){let m=f.clock;if(F(m)&&F(o)){let x=m.startTime,y=m.stopTime;$t.equals(x,y)&&(y=$t.addSeconds(x,be.EPSILON2,gji)),o.updateFromClock(),o.zoomTo(x,y)}}}var yji=new Z;function _ji(o,f){let m=o.scene,x=m.camera.getPickRay(f),y=m.imageryLayers.pickImageryLayerFeatures(x,m);if(!F(y))return;let v=new bd({id:"Loading...",description:"Loading feature information..."});return y.then(function(C){if(o.selectedEntity!==v)return;if(!F(C)||C.length===0){o.selectedEntity=mqe();return}let T=C[0],S=new bd({id:T.name,description:T.description});if(F(T.position)){let w=o.scene.ellipsoid.cartographicToCartesian(T.position,yji);S.position=new hI(w)}o.selectedEntity=S},function(){o.selectedEntity===v&&(o.selectedEntity=mqe())}),v}function mqe(){return new bd({id:"None",description:"No features found."})}function vji(o,f){let m=o._geocoder,x=o._homeButton,y=o._sceneModePicker,v=o._projectionPicker,C=o._baseLayerPicker,T=o._animation,S=o._timeline,w=o._fullscreenButton,E=o._infoBox,L=o._selectionIndicator,I=f?"hidden":"visible";if(F(m)&&(m.container.style.visibility=I),F(x)&&(x.container.style.visibility=I),F(y)&&(y.container.style.visibility=I),F(v)&&(v.container.style.visibility=I),F(C)&&(C.container.style.visibility=I),F(T)&&(T.container.style.visibility=I),F(S)&&(S.container.style.visibility=I),F(w)&&w.viewModel.isFullscreenEnabled&&(w.container.style.visibility=I),F(E)&&(E.container.style.visibility=I),F(L)&&(L.container.style.visibility=I),o._container){let R=f||!F(w)?0:w.container.clientWidth;o._vrButton.container.style.right=`${R}px`,o.forceResize()}}function Wc(o,f){o=Qh(o),f=f??si.EMPTY_OBJECT;let m=(!F(f.globe)||f.globe!==!1)&&(!F(f.baseLayerPicker)||f.baseLayerPicker!==!1),x=this,y=document.createElement("div");y.className="cesium-viewer",o.appendChild(y);let v=document.createElement("div");v.className="cesium-viewer-cesiumWidgetContainer",y.appendChild(v);let C=document.createElement("div");C.className="cesium-viewer-bottom",y.appendChild(C);let T=f.scene3DOnly??!1,S,w,E=!1;F(f.clockViewModel)?(w=f.clockViewModel,S=w.clock):(S=new Az,w=new xDe(S),E=!0);let L=new A4(v,{baseLayer:m&&F(f.selectedImageryProviderViewModel)||F(f.baseLayer)||F(f.imageryProvider)?!1:void 0,clock:S,shouldAnimate:f.shouldAnimate,skyBox:f.skyBox,skyAtmosphere:f.skyAtmosphere,sceneMode:f.sceneMode,ellipsoid:f.ellipsoid,mapProjection:f.mapProjection,globe:f.globe,orderIndependentTranslucency:f.orderIndependentTranslucency,automaticallyTrackDataSourceClocks:f.automaticallyTrackDataSourceClocks,contextOptions:f.contextOptions,useDefaultRenderLoop:f.useDefaultRenderLoop,targetFrameRate:f.targetFrameRate,showRenderLoopErrors:f.showRenderLoopErrors,useBrowserRecommendedResolution:f.useBrowserRecommendedResolution,creditContainer:F(f.creditContainer)?f.creditContainer:C,creditViewport:f.creditViewport,dataSources:f.dataSources,scene3DOnly:T,shadows:f.shadows,terrainShadows:f.terrainShadows,mapMode2D:f.mapMode2D,blurActiveElementOnCanvasFocus:f.blurActiveElementOnCanvasFocus,requestRenderMode:f.requestRenderMode,maximumRenderTimeChange:f.maximumRenderTimeChange,depthPlaneEllipsoidOffset:f.depthPlaneEllipsoidOffset,msaaSamples:f.msaaSamples}),I=L.scene,R=new bv;R.add(S.onTick,Wc.prototype._onTick,this);let P;if(!F(f.selectionIndicator)||f.selectionIndicator!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-selectionIndicatorContainer",y.appendChild(ce),P=new YDe(ce,I)}let A;if(!F(f.infoBox)||f.infoBox!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-infoBoxContainer",y.appendChild(ce),A=new DDe(ce);let pe=A.viewModel;R.add(pe.cameraClicked,Wc.prototype._onInfoBoxCameraClicked,this),R.add(pe.closeClicked,Wc.prototype._onInfoBoxClockClicked,this)}let M=document.createElement("div");M.className="cesium-viewer-toolbar",y.appendChild(M);let V;if(!F(f.geocoder)||f.geocoder!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-geocoderContainer",M.appendChild(ce);let pe;typeof f.geocoder=="string"?pe=[new Cde({scene:I,geocodeProviderType:f.geocoder})]:F(f.geocoder)&&typeof f.geocoder!="boolean"&&(pe=Array.isArray(f.geocoder)?f.geocoder:[f.geocoder]),V=new RDe({container:ce,geocoderServices:pe,scene:I}),R.add(V.viewModel.search.beforeExecute,Wc.prototype._clearObjects,this)}let G;(!F(f.homeButton)||f.homeButton!==!1)&&(G=new MDe(M,I),F(V)&&R.add(G.viewModel.command.afterExecute,function(){let ce=V.viewModel;ce.searchText="",ce.isSearchInProgress&&ce.search()}),R.add(G.viewModel.command.beforeExecute,Wc.prototype._clearTrackedObject,this));let D;!T&&(!F(f.sceneModePicker)||f.sceneModePicker!==!1)&&(D=new HDe(M,I));let N;f.projectionPicker&&(N=new UDe(M,I));let k,U;if(m){let ce=f.imageryProviderViewModels??bDe(),pe=f.terrainProviderViewModels??CDe();k=new vDe(M,{globe:I.globe,imageryProviderViewModels:ce,selectedImageryProviderViewModel:f.selectedImageryProviderViewModel,terrainProviderViewModels:pe,selectedTerrainProviderViewModel:f.selectedTerrainProviderViewModel}),U=M.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}F(f.baseLayer)&&f.baseLayer!==!1&&(m&&(k.viewModel.selectedImagery=void 0),I.imageryLayers.removeAll(),I.imageryLayers.add(f.baseLayer)),F(f.terrainProvider)&&(m&&(k.viewModel.selectedTerrain=void 0),I.terrainProvider=f.terrainProvider),F(f.terrain)&&(m&&(I.globe.depthTestAgainstTerrain=!0),I.setTerrain(f.terrain));let B;if(!F(f.navigationHelpButton)||f.navigationHelpButton!==!1){let ce=!0;try{if(F(window.localStorage)){let pe=window.localStorage.getItem("cesium-hasSeenNavHelp");F(pe)&&pe?ce=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}B=new WDe({container:M,instructionsInitiallyVisible:f.navigationInstructionsInitiallyVisible??ce})}let Y;if(!F(f.animation)||f.animation!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-animationContainer",y.appendChild(ce),Y=new gDe(ce,new yDe(w))}let J;if(!F(f.timeline)||f.timeline!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-timelineContainer",y.appendChild(ce),J=new jDe(ce,S),J.addEventListener("settime",ryt,!1),J.zoomTo(S.startTime,S.stopTime)}let K,z,j;(!F(f.fullscreenButton)||f.fullscreenButton!==!1)&&(j=document.createElement("div"),j.className="cesium-viewer-fullscreenContainer",y.appendChild(j),K=new qDe(j,f.fullscreenElement),z=Eb(K.viewModel,"isFullscreenEnabled",function(ce){j.style.display=ce?"block":"none",F(J)&&(J.container.style.right=`${j.clientWidth}px`,J.resize())}));let q,O,te;if(f.vrButton){let ce=document.createElement("div");ce.className="cesium-viewer-vrContainer",y.appendChild(ce),q=new eNe(ce,I,f.fullScreenElement),O=Eb(q.viewModel,"isVREnabled",function(pe){ce.style.display=pe?"block":"none",F(K)&&(ce.style.right=`${j.clientWidth}px`),F(J)&&(J.container.style.right=`${ce.clientWidth}px`,J.resize())}),te=Eb(q.viewModel,"isVRMode",function(pe){vji(x,pe)})}this._baseLayerPickerDropDown=U,this._fullscreenSubscription=z,this._vrSubscription=O,this._vrModeSubscription=te,this._dataSourceChangedListeners={},this._container=o,this._bottomContainer=C,this._element=y,this._cesiumWidget=L,this._selectionIndicator=P,this._infoBox=A,this._clockViewModel=w,this._destroyClockViewModel=E,this._toolbar=M,this._homeButton=G,this._sceneModePicker=D,this._projectionPicker=N,this._baseLayerPicker=k,this._navigationHelpButton=B,this._animation=Y,this._timeline=J,this._fullscreenButton=K,this._vrButton=q,this._geocoder=V,this._eventHelper=R,this._lastWidth=0,this._lastHeight=0,this._enableInfoOrSelection=F(A)||F(P),this._selectedEntity=void 0,this._selectedEntityChanged=new Tr;let ie=this._cesiumWidget.dataSources,re=this._cesiumWidget.dataSourceDisplay;R.add(ie.dataSourceAdded,Wc.prototype._onDataSourceAdded,this),R.add(ie.dataSourceRemoved,Wc.prototype._onDataSourceRemoved,this),R.add(I.postUpdate,Wc.prototype.resize,this);let ee=ie.length;for(let ce=0;ce<ee;ce++)this._dataSourceAdded(ie,ie.get(ce));this._dataSourceAdded(void 0,re.defaultDataSource),R.add(ie.dataSourceAdded,Wc.prototype._dataSourceAdded,this),R.add(ie.dataSourceRemoved,Wc.prototype._dataSourceRemoved,this);function ae(ce){let pe=fqe(x,ce);F(pe)?Nt.getValueOrUndefined(pe.position,x.clock.currentTime)?x.trackedEntity=pe:x.zoomTo(pe):F(x.trackedEntity)&&(x.trackedEntity=void 0)}function oe(ce){x.selectedEntity=fqe(x,ce)}L.screenSpaceEventHandler.setInputAction(oe,Si.LEFT_CLICK),L.screenSpaceEventHandler.setInputAction(ae,Si.LEFT_DOUBLE_CLICK),L._canAnimateUpdateCallback=this._updateCanAnimate(this)}Object.defineProperties(Wc.prototype,{container:{get:function(){return this._container}},creditDisplay:{get:function(){return this._cesiumWidget.creditDisplay}},bottomContainer:{get:function(){return this._bottomContainer}},cesiumWidget:{get:function(){return this._cesiumWidget}},selectionIndicator:{get:function(){return this._selectionIndicator}},infoBox:{get:function(){return this._infoBox}},geocoder:{get:function(){return this._geocoder}},homeButton:{get:function(){return this._homeButton}},sceneModePicker:{get:function(){return this._sceneModePicker}},projectionPicker:{get:function(){return this._projectionPicker}},baseLayerPicker:{get:function(){return this._baseLayerPicker}},navigationHelpButton:{get:function(){return this._navigationHelpButton}},animation:{get:function(){return this._animation}},timeline:{get:function(){return this._timeline}},fullscreenButton:{get:function(){return this._fullscreenButton}},vrButton:{get:function(){return this._vrButton}},dataSourceDisplay:{get:function(){return this._cesiumWidget.dataSourceDisplay}},entities:{get:function(){return this._cesiumWidget.entities}},dataSources:{get:function(){return this._cesiumWidget.dataSources}},canvas:{get:function(){return this._cesiumWidget.canvas}},scene:{get:function(){return this._cesiumWidget.scene}},shadows:{get:function(){return this.scene.shadowMap.enabled},set:function(o){this.scene.shadowMap.enabled=o}},terrainShadows:{get:function(){return this.scene.globe.shadows},set:function(o){this.scene.globe.shadows=o}},shadowMap:{get:function(){return this.scene.shadowMap}},imageryLayers:{get:function(){return this.scene.imageryLayers}},terrainProvider:{get:function(){return this.scene.terrainProvider},set:function(o){this.scene.terrainProvider=o}},camera:{get:function(){return this.scene.camera}},ellipsoid:{get:function(){return this._scene.ellipsoid}},postProcessStages:{get:function(){return this.scene.postProcessStages}},clock:{get:function(){return this._clockViewModel.clock}},clockViewModel:{get:function(){return this._clockViewModel}},screenSpaceEventHandler:{get:function(){return this._cesiumWidget.screenSpaceEventHandler}},targetFrameRate:{get:function(){return this._cesiumWidget.targetFrameRate},set:function(o){this._cesiumWidget.targetFrameRate=o}},useDefaultRenderLoop:{get:function(){return this._cesiumWidget.useDefaultRenderLoop},set:function(o){this._cesiumWidget.useDefaultRenderLoop=o}},resolutionScale:{get:function(){return this._cesiumWidget.resolutionScale},set:function(o){this._cesiumWidget.resolutionScale=o}},useBrowserRecommendedResolution:{get:function(){return this._cesiumWidget.useBrowserRecommendedResolution},set:function(o){this._cesiumWidget.useBrowserRecommendedResolution=o}},allowDataSourcesToSuspendAnimation:{get:function(){return this._cesiumWidget.allowDataSourcesToSuspendAnimation},set:function(o){this._cesiumWidget.allowDataSourcesToSuspendAnimation=o}},trackedEntity:{get:function(){return this._cesiumWidget.trackedEntity},set:function(o){this._cesiumWidget.trackedEntity=o}},selectedEntity:{get:function(){return this._selectedEntity},set:function(o){if(this._selectedEntity!==o){this._selectedEntity=o;let f=F(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;F(o)?F(f)&&f.animateAppear():F(f)&&f.animateDepart(),this._selectedEntityChanged.raiseEvent(o)}}},selectedEntityChanged:{get:function(){return this._selectedEntityChanged}},trackedEntityChanged:{get:function(){return this._cesiumWidget.trackedEntityChanged}},clockTrackedDataSource:{get:function(){return this._cesiumWidget.clockTrackedDataSource},set:function(o){this._cesiumWidget.clockTrackedDataSource!==o&&(this._cesiumWidget.clockTrackedDataSource=o,tNe(this._timeline,o))}}});Wc.prototype.extend=function(o,f){o(this,f)};Wc.prototype.resize=function(){let o=this._cesiumWidget,f=this._container,m=f.clientWidth,x=f.clientHeight,y=F(this._animation),v=F(this._timeline);if(o.resize(),m===this._lastWidth&&x===this._lastHeight)return;let C=x-125,T=this._baseLayerPickerDropDown;if(F(T)&&(T.style.maxHeight=`${C}px`),F(this._geocoder)){let P=this._geocoder.searchSuggestionsContainer;P.style.maxHeight=`${C}px`}F(this._infoBox)&&(this._infoBox.viewModel.maxHeight=C);let S=this._timeline,w,E=0,L=5,I=3,R=0;if(y&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let P=this._lastWidth;w=this._animation.container,m>900?(E=169,P<=900&&(w.style.width="169px",w.style.height="112px",this._animation.resize())):m>=600?(E=136,(P<600||P>900)&&(w.style.width="136px",w.style.height="90px",this._animation.resize())):(E=106,(P>600||P===0)&&(w.style.width="106px",w.style.height="70px",this._animation.resize())),L=E+5}if(v&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let P=this._fullscreenButton,A=this._vrButton,M=S.container,V=M.style;I=M.clientHeight+3,V.left=`${E}px`;let G=0;F(P)&&(G+=P.container.clientWidth),F(A)&&(G+=A.container.clientWidth),V.right=`${G}px`,S.resize()}!v&&F(this._fullscreenButton)&&(R=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${L}px`,this._bottomContainer.style.bottom=`${I}px`,this._bottomContainer.style.right=`${R}px`,this._lastWidth=m,this._lastHeight=x};Wc.prototype.forceResize=function(){this._lastWidth=0,this.resize()};Wc.prototype.render=function(){this._cesiumWidget.render()};Wc.prototype.isDestroyed=function(){return!1};Wc.prototype.destroy=function(){return F(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(Si.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(Si.LEFT_DOUBLE_CLICK)),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),F(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),F(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),F(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),F(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),F(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),F(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),F(this._timeline)&&(this._timeline.removeEventListener("settime",ryt,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),F(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),F(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),F(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),F(this._selectionIndicator)&&(this._element.removeChild(this._selectionIndicator.container),this._selectionIndicator=this._selectionIndicator.destroy()),this._destroyClockViewModel&&(this._clockViewModel=this._clockViewModel.destroy()),this._cesiumWidget=this._cesiumWidget.destroy(),yr(this)};Wc.prototype._dataSourceAdded=function(o,f){f.entities.collectionChanged.addEventListener(Wc.prototype._onEntityCollectionChanged,this)};Wc.prototype._dataSourceRemoved=function(o,f){let m=f.entities;m.collectionChanged.removeEventListener(Wc.prototype._onEntityCollectionChanged,this),F(this.selectedEntity)&&m.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};Wc.prototype._updateCanAnimate=function(o){return function(f){o._clockViewModel.canAnimate=f}};Wc.prototype._onTick=function(o){let f=o.currentTime,m,x=!1,y=this.selectedEntity,v=F(y)&&this._enableInfoOrSelection;v&&y.isShowing&&y.isAvailable(f)&&(this._cesiumWidget.dataSourceDisplay.getBoundingSphere(y,!0,pqe)!==Xo.FAILED?m=pqe.center:F(y.position)&&(m=y.position.getValue(f,m)),x=F(m));let C=F(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;F(C)&&(C.position=Z.clone(m,C.position),C.showSelection=v&&x,C.update());let T=F(this._infoBox)?this._infoBox.viewModel:void 0;F(T)&&(T.showInfo=v,T.enableCamera=x,T.isCameraTracking=this.trackedEntity===this.selectedEntity,v?(T.titleText=y.name??y.id,T.description=Nt.getValueOrDefault(y.description,f,"")):(T.titleText="",T.description=""))};Wc.prototype._onEntityCollectionChanged=function(o,f,m){let x=m.length;for(let y=0;y<x;y++){let v=m[y];this.selectedEntity===v&&(this.selectedEntity=void 0)}};Wc.prototype._onInfoBoxCameraClicked=function(o){if(o.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let f=this.selectedEntity.position;F(f)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};Wc.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};Wc.prototype._onInfoBoxClockClicked=function(o){this.selectedEntity=void 0};Wc.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};Wc.prototype._onDataSourceChanged=function(o){this.clockTrackedDataSource===o&&tNe(this.timeline,o)};Wc.prototype._onDataSourceAdded=function(o,f){this._cesiumWidget._automaticallyTrackDataSourceClocks&&f===this.clockTrackedDataSource&&tNe(this._timeline,f);let m=f.entities.id,x=this._eventHelper.add(f.changedEvent,Wc.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[m]=x};Wc.prototype._onDataSourceRemoved=function(o,f){let m=f.entities.id;this._dataSourceChangedListeners[m](),this._dataSourceChangedListeners[m]=void 0};Wc.prototype.zoomTo=function(o,f){return this._cesiumWidget.zoomTo(o,f)};Wc.prototype.flyTo=function(o,f){return this._cesiumWidget.flyTo(o,f)};var r0e=Wc;function bji(o){let f=document.createElement("div");f.className="cesium-viewer-cesium3DTilesInspectorContainer",o.container.appendChild(f);let m=new SDe(f,o.scene);Object.defineProperties(o,{cesium3DTilesInspector:{get:function(){return m}}})}var nyt=bji;function Cji(o){let f=document.createElement("div");f.className="cesium-viewer-cesiumInspectorContainer",o.container.appendChild(f);let m=new EDe(f,o.scene);Object.defineProperties(o,{cesiumInspector:{get:function(){return m}}})}var oyt=Cji;function Tji(o,f){f=f??si.EMPTY_OBJECT;let m=!0,x=f.flyToOnDrop??!0,y=new Tr,v=f.clearOnDrop??!0,C=f.dropTarget??o.container,T=f.clampToGround??!0,S=f.proxy;C=Qh(C),Object.defineProperties(o,{dropTarget:{get:function(){return C},set:function(E){xqe(C,w),C=E,gbe(C,w)}},dropEnabled:{get:function(){return m},set:function(E){E!==m&&(E?gbe(C,w):xqe(C,w),m=E)}},dropError:{get:function(){return y}},clearOnDrop:{get:function(){return v},set:function(E){v=E}},flyToOnDrop:{get:function(){return x},set:function(E){x=E}},proxy:{get:function(){return S},set:function(E){S=E}},clampToGround:{get:function(){return T},set:function(E){T=E}}});function w(E){kZ(E),v&&(o.entities.removeAll(),o.dataSources.removeAll());let L=E.dataTransfer.files,I=L.length;for(let R=0;R<I;R++){let P=L[R],A=new FileReader;A.onload=Sji(o,P,S,T),A.onerror=wji(o,P),A.readAsText(P)}}gbe(C,w),o.destroy=pFe(o,o.destroy,function(){o.dropEnabled=!1}),o._handleDrop=w}function kZ(o){o.stopPropagation(),o.preventDefault()}function xqe(o,f){let m=o;F(m)&&(m.removeEventListener("drop",f,!1),m.removeEventListener("dragenter",kZ,!1),m.removeEventListener("dragover",kZ,!1),m.removeEventListener("dragexit",kZ,!1))}function gbe(o,f){o.addEventListener("drop",f,!1),o.addEventListener("dragenter",kZ,!1),o.addEventListener("dragover",kZ,!1),o.addEventListener("dragexit",kZ,!1)}function Sji(o,f,m,x){let y=o.scene;return function(v){let C=f.name;try{let T;if(/\.czml$/i.test(C))T=qq.load(JSON.parse(v.target.result),{sourceUri:C});else if(/\.geojson$/i.test(C)||/\.json$/i.test(C)||/\.topojson$/i.test(C))T=qZ.load(JSON.parse(v.target.result),{sourceUri:C,clampToGround:x});else if(/\.(kml|kmz)$/i.test(C))T=I7.load(f,{sourceUri:C,proxy:m,camera:y.camera,canvas:y.canvas,clampToGround:x,screenOverlayContainer:o.container});else if(/\.gpx$/i.test(C))T=QGe.load(f,{sourceUri:C,proxy:m});else{o.dropError.raiseEvent(o,C,`Unrecognized file: ${C}`);return}F(T)&&o.dataSources.add(T).then(function(S){o.flyToOnDrop&&o.flyTo(S)}).catch(function(S){o.dropError.raiseEvent(o,C,S)})}catch(T){o.dropError.raiseEvent(o,C,T)}}}function wji(o,f){return function(m){o.dropError.raiseEvent(o,f.name,m.target.error)}}var ayt=Tji;function Eji(o,f){f=f??si.EMPTY_OBJECT;let m=new XDe({scene:o.scene,container:o.bottomContainer,lowFrameRateMessage:f.lowFrameRateMessage});Object.defineProperties(o,{performanceWatchdog:{get:function(){return m}}})}var syt=Eji;function lyt(o){let f=o.split(`
`),m;for(m=0;m<f.length&&!f[m].match(/\S/);m++);if(m===f.length)return"";let x="",y=/^\s*/,v=f[m].match(y)[0].length;for(let C=m;C<f.length;C++){let T=f[C];T.match(y)[0].length>=v&&(T=T.slice(v)),x+=`${T}
`}return x}function qS(o){this._scene=o,this._voxelPrimitive=void 0,this._customShaderCompilationRemoveCallback=void 0,this._definedProperties=[],this._getPrimitiveFunctions=[],this._modelMatrixReady=!1;let f=this;function m(y){let{name:v,initialValue:C}=y;f._definedProperties.push(v);let T=y.setPrimitiveFunction;T===!0&&(T=function(E){f._voxelPrimitive[v]=E});let S=y.getPrimitiveFunction;S===!0&&(S=function(){f[v]=f._voxelPrimitive[v]}),F(S)&&f._getPrimitiveFunctions.push(S);let w=sr.observable();return sr.defineProperty(f,v,{get:function(){return w()},set:function(E){typeof C=="number"&&typeof E=="string"&&(E=Number(E),isNaN(E)&&(E=C)),typeof C=="boolean"&&typeof E=="number"&&(E=E===1),w(E),F(T)&&F(f._voxelPrimitive)&&(T(E),o.requestRender())}}),f[v]=C,w}function x(y,v){return function(C){let T=f._voxelPrimitive[y].clone();T[v]=C,f._voxelPrimitive[y]=T}}m({name:"inspectorVisible",initialValue:!0}),m({name:"displayVisible",initialValue:!1}),m({name:"transformVisible",initialValue:!1}),m({name:"boundsVisible",initialValue:!1}),m({name:"clippingVisible",initialValue:!1}),m({name:"shaderVisible",initialValue:!1}),m({name:"shaderString",initialValue:"",getPrimitiveFunction:function(){let y=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=iyt(y)}}),m({name:"shaderCompilationMessage",initialValue:""}),m({name:"shaderCompilationSuccess",initialValue:!0}),m({name:"depthTest",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"show",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"disableUpdate",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"debugDraw",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"jitter",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"nearestSampling",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"screenSpaceError",initialValue:4,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"stepSize",initialValue:1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"shapeIsBox",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsBox=y===Vb.BOX}}),m({name:"shapeIsEllipsoid",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsEllipsoid=y===Vb.ELLIPSOID}}),m({name:"shapeIsCylinder",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsCylinder=y===Vb.CYLINDER}}),m({name:"clippingBoxMaxXMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMaxXMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingBoxMaxXMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMaxXMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingBoxMaxX",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","x"),getPrimitiveFunction:function(){f.clippingBoxMaxX=f._voxelPrimitive.maxClippingBounds.x}}),m({name:"clippingBoxMinXMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMinXMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingBoxMinXMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMinXMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingBoxMinX",initialValue:0,setPrimitiveFunction:x("minClippingBounds","x"),getPrimitiveFunction:function(){f.clippingBoxMinX=f._voxelPrimitive.minClippingBounds.x}}),m({name:"clippingBoxMaxYMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMaxYMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingBoxMaxYMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMaxYMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingBoxMaxY",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","y"),getPrimitiveFunction:function(){f.clippingBoxMaxY=f._voxelPrimitive.maxClippingBounds.y}}),m({name:"clippingBoxMinYMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMinYMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingBoxMinYMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMinYMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingBoxMinY",initialValue:0,setPrimitiveFunction:x("minClippingBounds","y"),getPrimitiveFunction:function(){f.clippingBoxMinY=f._voxelPrimitive.minClippingBounds.y}}),m({name:"clippingBoxMaxZMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMaxZMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingBoxMaxZMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMaxZMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingBoxMaxZ",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","z"),getPrimitiveFunction:function(){f.clippingBoxMaxZ=f._voxelPrimitive.maxClippingBounds.z}}),m({name:"clippingBoxMinZMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMinZMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingBoxMinZMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMinZMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingBoxMinZ",initialValue:0,setPrimitiveFunction:x("minClippingBounds","z"),getPrimitiveFunction:function(){f.clippingBoxMinZ=f._voxelPrimitive.minClippingBounds.z}}),m({name:"clippingEllipsoidMaxLongitudeMin",initialValue:-be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMaxLongitudeMax",initialValue:be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitudeMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","x"),getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitude=f._voxelPrimitive.maxClippingBounds.x}}),m({name:"clippingEllipsoidMinLongitudeMin",initialValue:-be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMinLongitudeMax",initialValue:be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitudeMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:x("minClippingBounds","x"),getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitude=f._voxelPrimitive.minClippingBounds.x}}),m({name:"clippingEllipsoidMaxLatitudeMin",initialValue:-be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMaxLatitudeMax",initialValue:be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitudeMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","y"),getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitude=f._voxelPrimitive.maxClippingBounds.y}}),m({name:"clippingEllipsoidMinLatitudeMin",initialValue:-be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMinLatitudeMax",initialValue:be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitudeMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:x("minClippingBounds","y"),getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitude=f._voxelPrimitive.minClippingBounds.y}}),m({name:"clippingEllipsoidMaxHeightMin",initialValue:0,getPrimitiveFunction:function(){f.clippingEllipsoidMaxHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingEllipsoidMaxHeightMax",initialValue:1e5,getPrimitiveFunction:function(){f.clippingEllipsoidMaxHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","z"),getPrimitiveFunction:function(){f.clippingEllipsoidMaxHeight=f._voxelPrimitive.maxClippingBounds.z}}),m({name:"clippingEllipsoidMinHeightMin",initialValue:-1e5,getPrimitiveFunction:function(){f.clippingEllipsoidMinHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingEllipsoidMinHeightMax",initialValue:0,getPrimitiveFunction:function(){f.clippingEllipsoidMinHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:x("minClippingBounds","z"),getPrimitiveFunction:function(){f.clippingEllipsoidMinHeight=f._voxelPrimitive.minClippingBounds.z}}),m({name:"clippingCylinderMaxRadiusMin",initialValue:0,getPrimitiveFunction:function(){f.clippingCylinderMaxRadiusMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingCylinderMaxRadiusMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMaxRadiusMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingCylinderMaxRadius",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","x"),getPrimitiveFunction:function(){f.clippingCylinderMaxRadius=f._voxelPrimitive.maxClippingBounds.x}}),m({name:"clippingCylinderMinRadiusMin",initialValue:0,getPrimitiveFunction:function(){f.clippingCylinderMinRadiusMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingCylinderMinRadiusMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMinRadiusMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingCylinderMinRadius",initialValue:0,setPrimitiveFunction:x("minClippingBounds","x"),getPrimitiveFunction:function(){f.clippingCylinderMinRadius=f._voxelPrimitive.minClippingBounds.x}}),m({name:"clippingCylinderMaxAngleMin",initialValue:-be.PI,getPrimitiveFunction:function(){f.clippingCylinderMaxAngleMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingCylinderMaxAngleMax",initialValue:be.PI,getPrimitiveFunction:function(){f.clippingCylinderMaxAngleMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingCylinderMaxAngle",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","y"),getPrimitiveFunction:function(){f.clippingCylinderMaxAngle=f._voxelPrimitive.maxClippingBounds.y}}),m({name:"clippingCylinderMinAngleMin",initialValue:-be.PI}),m({name:"clippingCylinderMinAngleMax",initialValue:be.PI}),m({name:"clippingCylinderMinAngle",initialValue:0,setPrimitiveFunction:x("minClippingBounds","y"),getPrimitiveFunction:function(){f.clippingCylinderMinAngle=f._voxelPrimitive.minClippingBounds.y}}),m({name:"clippingCylinderMaxHeightMin",initialValue:-1,getPrimitiveFunction:function(){f.clippingCylinderMaxHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingCylinderMaxHeightMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMaxHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingCylinderMaxHeight",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","z"),getPrimitiveFunction:function(){f.clippingCylinderMaxHeight=f._voxelPrimitive.maxClippingBounds.z}}),m({name:"clippingCylinderMinHeightMin",initialValue:-1,getPrimitiveFunction:function(){f.clippingCylinderMinHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingCylinderMinHeightMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMinHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingCylinderMinHeight",initialValue:0,setPrimitiveFunction:x("minClippingBounds","z"),getPrimitiveFunction:function(){f.clippingCylinderMinHeight=f._voxelPrimitive.minClippingBounds.z}}),m({name:"translationX",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationX=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).x}}),m({name:"translationY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationY=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).y}}),m({name:"translationZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationZ=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).z}}),m({name:"scaleX",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleX=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).x}}),m({name:"scaleY",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleY=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).y}}),m({name:"scaleZ",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleZ=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).z}}),m({name:"angleX",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}}),m({name:"angleY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}}),m({name:"angleZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}})}var cji=new Z,hji=new Z,dji=new rs,pji=new Ut;function HP(o){let f=Z.fromElements(o.translationX,o.translationY,o.translationZ,cji),m=Z.fromElements(o.scaleX,o.scaleY,o.scaleZ,hji),x=dji;x.heading=o.angleX,x.pitch=o.angleY,x.roll=o.angleZ;let y=Ut.fromHeadingPitchRoll(x,pji),v=Ut.multiplyByScale(y,m,y);o._voxelPrimitive.modelMatrix=Ee.fromRotationTranslation(v,f,o._voxelPrimitive.modelMatrix)}Object.defineProperties(qS.prototype,{scene:{get:function(){return this._scene}},voxelPrimitive:{get:function(){return this._voxelPrimitive},set:function(o){if(F(this._customShaderCompilationRemoveCallback)&&this._customShaderCompilationRemoveCallback(),!F(o))return;this._voxelPrimitive=o;let f=this;f._customShaderCompilationRemoveCallback=f._voxelPrimitive.customShaderCompilationEvent.addEventListener(function(m){let x=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=iyt(x),F(m)?(f.shaderCompilationMessage=m.message,f.shaderCompilationSuccess=!1):(f.shaderCompilationMessage="Shader compiled successfully!",f.shaderCompilationSuccess=!0)}),f._modelMatrixReady=!1;for(let m=0;m<f._getPrimitiveFunctions.length;m++)f._getPrimitiveFunctions[m]();f._modelMatrixReady=!0,HP(f)}}});qS.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};qS.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};qS.prototype.toggleTransform=function(){this.transformVisible=!this.transformVisible};qS.prototype.toggleBounds=function(){this.boundsVisible=!this.boundsVisible};qS.prototype.toggleClipping=function(){this.clippingVisible=!this.clippingVisible};qS.prototype.toggleShader=function(){this.shaderVisible=!this.shaderVisible};qS.prototype.compileShader=function(){F(this._voxelPrimitive)&&(this._voxelPrimitive.customShader=new P1({fragmentShaderText:this.shaderString,uniforms:this._voxelPrimitive.customShader.uniforms}))};qS.prototype.shaderEditorKeyPress=function(o,f){if(f.keyCode===9){f.preventDefault();let m=f.target,x=m.selectionStart,y=m.selectionEnd,v=y,C=m.value.slice(x,y).split(`
`}return x}function qS(o){this._scene=o,this._voxelPrimitive=void 0,this._customShaderCompilationRemoveCallback=void 0,this._definedProperties=[],this._getPrimitiveFunctions=[],this._modelMatrixReady=!1;let f=this;function m(y){let{name:v,initialValue:C}=y;f._definedProperties.push(v);let T=y.setPrimitiveFunction;T===!0&&(T=function(E){f._voxelPrimitive[v]=E});let S=y.getPrimitiveFunction;S===!0&&(S=function(){f[v]=f._voxelPrimitive[v]}),F(S)&&f._getPrimitiveFunctions.push(S);let w=sr.observable();return sr.defineProperty(f,v,{get:function(){return w()},set:function(E){typeof C=="number"&&typeof E=="string"&&(E=Number(E),isNaN(E)&&(E=C)),typeof C=="boolean"&&typeof E=="number"&&(E=E===1),w(E),F(T)&&F(f._voxelPrimitive)&&(T(E),o.requestRender())}}),f[v]=C,w}function x(y,v){return function(C){let T=f._voxelPrimitive[y].clone();T[v]=C,f._voxelPrimitive[y]=T}}m({name:"inspectorVisible",initialValue:!0}),m({name:"displayVisible",initialValue:!1}),m({name:"transformVisible",initialValue:!1}),m({name:"boundsVisible",initialValue:!1}),m({name:"clippingVisible",initialValue:!1}),m({name:"shaderVisible",initialValue:!1}),m({name:"shaderString",initialValue:"",getPrimitiveFunction:function(){let y=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=lyt(y)}}),m({name:"shaderCompilationMessage",initialValue:""}),m({name:"shaderCompilationSuccess",initialValue:!0}),m({name:"depthTest",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"show",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"disableUpdate",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"debugDraw",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"jitter",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"nearestSampling",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"screenSpaceError",initialValue:4,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"stepSize",initialValue:1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),m({name:"shapeIsBox",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsBox=y===Vb.BOX}}),m({name:"shapeIsEllipsoid",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsEllipsoid=y===Vb.ELLIPSOID}}),m({name:"shapeIsCylinder",getPrimitiveFunction:function(){let y=f._voxelPrimitive.shape;f.shapeIsCylinder=y===Vb.CYLINDER}}),m({name:"clippingBoxMaxXMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMaxXMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingBoxMaxXMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMaxXMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingBoxMaxX",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","x"),getPrimitiveFunction:function(){f.clippingBoxMaxX=f._voxelPrimitive.maxClippingBounds.x}}),m({name:"clippingBoxMinXMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMinXMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingBoxMinXMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMinXMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingBoxMinX",initialValue:0,setPrimitiveFunction:x("minClippingBounds","x"),getPrimitiveFunction:function(){f.clippingBoxMinX=f._voxelPrimitive.minClippingBounds.x}}),m({name:"clippingBoxMaxYMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMaxYMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingBoxMaxYMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMaxYMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingBoxMaxY",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","y"),getPrimitiveFunction:function(){f.clippingBoxMaxY=f._voxelPrimitive.maxClippingBounds.y}}),m({name:"clippingBoxMinYMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMinYMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingBoxMinYMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMinYMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingBoxMinY",initialValue:0,setPrimitiveFunction:x("minClippingBounds","y"),getPrimitiveFunction:function(){f.clippingBoxMinY=f._voxelPrimitive.minClippingBounds.y}}),m({name:"clippingBoxMaxZMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMaxZMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingBoxMaxZMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMaxZMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingBoxMaxZ",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","z"),getPrimitiveFunction:function(){f.clippingBoxMaxZ=f._voxelPrimitive.maxClippingBounds.z}}),m({name:"clippingBoxMinZMin",initialValue:0,getPrimitiveFunction:function(){f.clippingBoxMinZMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingBoxMinZMax",initialValue:1,getPrimitiveFunction:function(){f.clippingBoxMinZMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingBoxMinZ",initialValue:0,setPrimitiveFunction:x("minClippingBounds","z"),getPrimitiveFunction:function(){f.clippingBoxMinZ=f._voxelPrimitive.minClippingBounds.z}}),m({name:"clippingEllipsoidMaxLongitudeMin",initialValue:-be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMaxLongitudeMax",initialValue:be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitudeMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","x"),getPrimitiveFunction:function(){f.clippingEllipsoidMaxLongitude=f._voxelPrimitive.maxClippingBounds.x}}),m({name:"clippingEllipsoidMinLongitudeMin",initialValue:-be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitudeMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingEllipsoidMinLongitudeMax",initialValue:be.PI,getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitudeMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:x("minClippingBounds","x"),getPrimitiveFunction:function(){f.clippingEllipsoidMinLongitude=f._voxelPrimitive.minClippingBounds.x}}),m({name:"clippingEllipsoidMaxLatitudeMin",initialValue:-be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMaxLatitudeMax",initialValue:be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitudeMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","y"),getPrimitiveFunction:function(){f.clippingEllipsoidMaxLatitude=f._voxelPrimitive.maxClippingBounds.y}}),m({name:"clippingEllipsoidMinLatitudeMin",initialValue:-be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitudeMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingEllipsoidMinLatitudeMax",initialValue:be.PI_OVER_TWO,getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitudeMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:x("minClippingBounds","y"),getPrimitiveFunction:function(){f.clippingEllipsoidMinLatitude=f._voxelPrimitive.minClippingBounds.y}}),m({name:"clippingEllipsoidMaxHeightMin",initialValue:0,getPrimitiveFunction:function(){f.clippingEllipsoidMaxHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingEllipsoidMaxHeightMax",initialValue:1e5,getPrimitiveFunction:function(){f.clippingEllipsoidMaxHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","z"),getPrimitiveFunction:function(){f.clippingEllipsoidMaxHeight=f._voxelPrimitive.maxClippingBounds.z}}),m({name:"clippingEllipsoidMinHeightMin",initialValue:-1e5,getPrimitiveFunction:function(){f.clippingEllipsoidMinHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingEllipsoidMinHeightMax",initialValue:0,getPrimitiveFunction:function(){f.clippingEllipsoidMinHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:x("minClippingBounds","z"),getPrimitiveFunction:function(){f.clippingEllipsoidMinHeight=f._voxelPrimitive.minClippingBounds.z}}),m({name:"clippingCylinderMaxRadiusMin",initialValue:0,getPrimitiveFunction:function(){f.clippingCylinderMaxRadiusMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingCylinderMaxRadiusMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMaxRadiusMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingCylinderMaxRadius",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","x"),getPrimitiveFunction:function(){f.clippingCylinderMaxRadius=f._voxelPrimitive.maxClippingBounds.x}}),m({name:"clippingCylinderMinRadiusMin",initialValue:0,getPrimitiveFunction:function(){f.clippingCylinderMinRadiusMin=f._voxelPrimitive.minBounds.x}}),m({name:"clippingCylinderMinRadiusMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMinRadiusMax=f._voxelPrimitive.maxBounds.x}}),m({name:"clippingCylinderMinRadius",initialValue:0,setPrimitiveFunction:x("minClippingBounds","x"),getPrimitiveFunction:function(){f.clippingCylinderMinRadius=f._voxelPrimitive.minClippingBounds.x}}),m({name:"clippingCylinderMaxAngleMin",initialValue:-be.PI,getPrimitiveFunction:function(){f.clippingCylinderMaxAngleMin=f._voxelPrimitive.minBounds.y}}),m({name:"clippingCylinderMaxAngleMax",initialValue:be.PI,getPrimitiveFunction:function(){f.clippingCylinderMaxAngleMax=f._voxelPrimitive.maxBounds.y}}),m({name:"clippingCylinderMaxAngle",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","y"),getPrimitiveFunction:function(){f.clippingCylinderMaxAngle=f._voxelPrimitive.maxClippingBounds.y}}),m({name:"clippingCylinderMinAngleMin",initialValue:-be.PI}),m({name:"clippingCylinderMinAngleMax",initialValue:be.PI}),m({name:"clippingCylinderMinAngle",initialValue:0,setPrimitiveFunction:x("minClippingBounds","y"),getPrimitiveFunction:function(){f.clippingCylinderMinAngle=f._voxelPrimitive.minClippingBounds.y}}),m({name:"clippingCylinderMaxHeightMin",initialValue:-1,getPrimitiveFunction:function(){f.clippingCylinderMaxHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingCylinderMaxHeightMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMaxHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingCylinderMaxHeight",initialValue:0,setPrimitiveFunction:x("maxClippingBounds","z"),getPrimitiveFunction:function(){f.clippingCylinderMaxHeight=f._voxelPrimitive.maxClippingBounds.z}}),m({name:"clippingCylinderMinHeightMin",initialValue:-1,getPrimitiveFunction:function(){f.clippingCylinderMinHeightMin=f._voxelPrimitive.minBounds.z}}),m({name:"clippingCylinderMinHeightMax",initialValue:1,getPrimitiveFunction:function(){f.clippingCylinderMinHeightMax=f._voxelPrimitive.maxBounds.z}}),m({name:"clippingCylinderMinHeight",initialValue:0,setPrimitiveFunction:x("minClippingBounds","z"),getPrimitiveFunction:function(){f.clippingCylinderMinHeight=f._voxelPrimitive.minClippingBounds.z}}),m({name:"translationX",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationX=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).x}}),m({name:"translationY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationY=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).y}}),m({name:"translationZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.translationZ=Ee.getTranslation(f._voxelPrimitive.modelMatrix,new Z).z}}),m({name:"scaleX",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleX=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).x}}),m({name:"scaleY",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleY=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).y}}),m({name:"scaleZ",initialValue:1,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)},getPrimitiveFunction:function(){f.scaleZ=Ee.getScale(f._voxelPrimitive.modelMatrix,new Z).z}}),m({name:"angleX",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}}),m({name:"angleY",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}}),m({name:"angleZ",initialValue:0,setPrimitiveFunction:function(){f._modelMatrixReady&&HP(f)}})}var Lji=new Z,Pji=new Z,Iji=new rs,Rji=new Ut;function HP(o){let f=Z.fromElements(o.translationX,o.translationY,o.translationZ,Lji),m=Z.fromElements(o.scaleX,o.scaleY,o.scaleZ,Pji),x=Iji;x.heading=o.angleX,x.pitch=o.angleY,x.roll=o.angleZ;let y=Ut.fromHeadingPitchRoll(x,Rji),v=Ut.multiplyByScale(y,m,y);o._voxelPrimitive.modelMatrix=Ee.fromRotationTranslation(v,f,o._voxelPrimitive.modelMatrix)}Object.defineProperties(qS.prototype,{scene:{get:function(){return this._scene}},voxelPrimitive:{get:function(){return this._voxelPrimitive},set:function(o){if(F(this._customShaderCompilationRemoveCallback)&&this._customShaderCompilationRemoveCallback(),!F(o))return;this._voxelPrimitive=o;let f=this;f._customShaderCompilationRemoveCallback=f._voxelPrimitive.customShaderCompilationEvent.addEventListener(function(m){let x=f._voxelPrimitive.customShader.fragmentShaderText;f.shaderString=lyt(x),F(m)?(f.shaderCompilationMessage=m.message,f.shaderCompilationSuccess=!1):(f.shaderCompilationMessage="Shader compiled successfully!",f.shaderCompilationSuccess=!0)}),f._modelMatrixReady=!1;for(let m=0;m<f._getPrimitiveFunctions.length;m++)f._getPrimitiveFunctions[m]();f._modelMatrixReady=!0,HP(f)}}});qS.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};qS.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};qS.prototype.toggleTransform=function(){this.transformVisible=!this.transformVisible};qS.prototype.toggleBounds=function(){this.boundsVisible=!this.boundsVisible};qS.prototype.toggleClipping=function(){this.clippingVisible=!this.clippingVisible};qS.prototype.toggleShader=function(){this.shaderVisible=!this.shaderVisible};qS.prototype.compileShader=function(){F(this._voxelPrimitive)&&(this._voxelPrimitive.customShader=new P1({fragmentShaderText:this.shaderString,uniforms:this._voxelPrimitive.customShader.uniforms}))};qS.prototype.shaderEditorKeyPress=function(o,f){if(f.keyCode===9){f.preventDefault();let m=f.target,x=m.selectionStart,y=m.selectionEnd,v=y,C=m.value.slice(x,y).split(`
`),T=C.length,S;if(f.shiftKey)for(S=0;S<T;++S)C[S][0]===" "&&(C[S][1]===" "?(C[S]=C[S].substr(2),v-=2):(C[S]=C[S].substr(1),v-=1));else for(S=0;S<T;++S)C[S]=`  ${C[S]}`,v+=2;let w=C.join(`
`);m.value=m.value.slice(0,x)+w+m.value.slice(y),m.selectionStart=x!==y?x:v,m.selectionEnd=v}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileShader();return!0};qS.prototype.isDestroyed=function(){return!1};qS.prototype.destroy=function(){let o=this;return this._definedProperties.forEach(function(f){sr.getObservable(o,f).dispose()}),yr(this)};var $De=qS;function t0e(o,f){o=Qh(o);let m=document.createElement("div"),x=new $De(f);this._viewModel=x,this._container=o,this._element=m;let y=document.createElement("div");y.textContent="Voxel Inspector",y.className="cesium-cesiumInspector-button",y.setAttribute("data-bind","click: toggleInspector"),m.appendChild(y),m.className="cesium-cesiumInspector cesium-VoxelInspector",m.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),o.appendChild(m);let v=document.createElement("div");v.className="cesium-cesiumInspector-dropDown",m.appendChild(v);let{createSection:C,createCheckbox:T,createRangeInput:S,createButton:w}=sI,E=C(v,"Display","displayVisible","toggleDisplay"),L=C(v,"Transform","transformVisible","toggleTransform"),I=C(v,"Clipping","clippingVisible","toggleClipping"),R=C(v,"Shader","shaderVisible","toggleShader");E.appendChild(T("Depth Test","depthTest")),E.appendChild(T("Show","show")),E.appendChild(T("Disable Update","disableUpdate")),E.appendChild(T("Debug Draw","debugDraw")),E.appendChild(T("Jitter","jitter")),E.appendChild(T("Nearest Sampling","nearestSampling")),E.appendChild(S("Screen Space Error","screenSpaceError",0,128)),E.appendChild(S("Step Size","stepSize",0,2));let P=10,A=10,M=be.PI;L.appendChild(S("Translation X","translationX",-P,+P)),L.appendChild(S("Translation Y","translationY",-P,+P)),L.appendChild(S("Translation Z","translationZ",-P,+P)),L.appendChild(S("Scale X","scaleX",0,+A)),L.appendChild(S("Scale Y","scaleY",0,+A)),L.appendChild(S("Scale Z","scaleZ",0,+A)),L.appendChild(S("Heading","angleX",-M,+M)),L.appendChild(S("Pitch","angleY",-M,+M)),L.appendChild(S("Roll","angleZ",-M,+M)),gbe("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ","shapeIsBox",I),gbe("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight","shapeIsEllipsoid",I),gbe("Max Radius","Min Radius","Max Angle","Min Angle","Max Height","Min Height","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxAngle","clippingCylinderMinAngle","clippingCylinderMaxHeight","clippingCylinderMinHeight","shapeIsCylinder",I);let V=document.createElement("div");R.appendChild(V);let G=document.createElement("textarea");G.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),V.className="cesium-cesiumInspector-styleEditor",V.appendChild(G);let D=w("Compile (Ctrl+Enter)","compileShader");V.appendChild(D);let N=document.createElement("label");N.style.display="block",N.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),V.appendChild(N),sr.applyBindings(x,m)}Object.defineProperties(t0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});t0e.prototype.isDestroyed=function(){return!1};t0e.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};function gbe(o,f,m,x,y,v,C,T,S,w,E,L,I,R){let P=sI.createRangeInputWithDynamicMinMax,A=R.appendChild(document.createElement("div"));A.setAttribute("data-bind",`if: ${I}`),A.appendChild(P(o,C)),A.appendChild(P(f,T)),A.appendChild(P(m,S)),A.appendChild(P(x,w)),A.appendChild(P(y,E)),A.appendChild(P(v,L))}var eNe=t0e,fji=k0(tNt(),1);function mji(o){let f=!1,m=window.screen;return F(m)&&(F(m.lockOrientation)?f=m.lockOrientation(o):F(m.mozLockOrientation)?f=m.mozLockOrientation(o):F(m.msLockOrientation)?f=m.msLockOrientation(o):F(m.orientation&&m.orientation.lock)&&(f=m.orientation.lock(o))),f}function ryt(){let o=window.screen;F(o)&&(F(o.unlockOrientation)?o.unlockOrientation():F(o.mozUnlockOrientation)?o.mozUnlockOrientation():F(o.msUnlockOrientation)?o.msUnlockOrientation():F(o.orientation&&o.orientation.unlock)&&o.orientation.unlock())}function xji(o,f,m,x){x()||(m()?(f.useWebVR=!1,o._locked&&(ryt(),o._locked=!1),o._noSleep.disable(),km.exitFullscreen(),m(!1)):(km.fullscreen||km.requestFullscreen(o._vrElement),o._noSleep.enable(),o._locked||(o._locked=mji("landscape")),f.useWebVR=!0,m(!0)))}function i0e(o,f){let m=this,x=sr.observable(km.enabled),y=sr.observable(!1);this.isVRMode=void 0,sr.defineProperty(this,"isVRMode",{get:function(){return y()}}),this.isVREnabled=void 0,sr.defineProperty(this,"isVREnabled",{get:function(){return x()},set:function(C){x(C&&km.enabled)}}),this.tooltip=void 0,sr.defineProperty(this,"tooltip",function(){return x()?y()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let v=sr.observable(!1);this._isOrthographic=void 0,sr.defineProperty(this,"_isOrthographic",{get:function(){return v()}}),this._eventHelper=new bv,this._eventHelper.add(o.preRender,function(){v(o.camera.frustum instanceof $a)}),this._locked=!1,this._noSleep=new fji.default,this._command=Il(function(){xji(m,o,y,v)},sr.getObservable(this,"isVREnabled")),this._vrElement=Qh(f)??document.body,this._callback=function(){!km.fullscreen&&y()&&(o.useWebVR=!1,m._locked&&(ryt(),m._locked=!1),m._noSleep.disable(),y(!1))},document.addEventListener(km.changeEventName,this._callback)}Object.defineProperties(i0e.prototype,{vrElement:{get:function(){return this._vrElement},set:function(o){this._vrElement=o}},command:{get:function(){return this._command}}});i0e.prototype.isDestroyed=function(){return!1};i0e.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(km.changeEventName,this._callback),yr(this)};var tNe=i0e,gji="M 5.3125 6.375 C 4.008126 6.375 2.96875 7.4141499 2.96875 8.71875 L 2.96875 19.5 C 2.96875 20.8043 4.008126 21.875 5.3125 21.875 L 13.65625 21.875 C 13.71832 20.0547 14.845166 18.59375 16.21875 18.59375 C 17.592088 18.59375 18.71881 20.0552 18.78125 21.875 L 27.09375 21.875 C 28.398125 21.875 29.4375 20.8043 29.4375 19.5 L 29.4375 8.71875 C 29.4375 7.4141499 28.398125 6.375 27.09375 6.375 L 5.3125 6.375 z M 9.625 10.4375 C 11.55989 10.4375 13.125 12.03385 13.125 13.96875 C 13.125 15.90365 11.55989 17.46875 9.625 17.46875 C 7.69011 17.46875 6.125 15.90365 6.125 13.96875 C 6.125 12.03385 7.69011 10.4375 9.625 10.4375 z M 22.46875 10.4375 C 24.40364 10.4375 25.96875 12.03385 25.96875 13.96875 C 25.96875 15.90365 24.40364 17.46875 22.46875 17.46875 C 20.53386 17.46875 18.96875 15.90365 18.96875 13.96875 C 18.96875 12.03385 20.53386 10.4375 22.46875 10.4375 z",yji="M 25.770585,2.4552065 C 15.72282,13.962707 10.699956,19.704407 8.1768352,22.580207 c -1.261561,1.4379 -1.902282,2.1427 -2.21875,2.5 -0.141624,0.1599 -0.208984,0.2355 -0.25,0.2813 l 0.6875,0.75 c 10e-5,-10e-5 0.679191,0.727 0.6875,0.7187 0.01662,-0.016 0.02451,-0.024 0.03125,-0.031 0.01348,-0.014 0.04013,-0.038 0.0625,-0.062 0.04474,-0.05 0.120921,-0.1315 0.28125,-0.3126 0.320657,-0.3619 0.956139,-1.0921 2.2187499,-2.5312 2.5252219,-2.8781 7.5454589,-8.6169 17.5937499,-20.1250005 l -1.5,-1.3125 z m -20.5624998,3.9063 c -1.304375,0 -2.34375,1.0391 -2.34375,2.3437 l 0,10.8125005 c 0,1.3043 1.039375,2.375 2.34375,2.375 l 2.25,0 c 1.9518039,-2.2246 7.4710958,-8.5584 13.5624998,-15.5312005 l -15.8124998,0 z m 21.1249998,0 c -1.855467,2.1245 -2.114296,2.4005 -3.59375,4.0936995 1.767282,0.1815 3.15625,1.685301 3.15625,3.500001 0,1.9349 -1.56511,3.5 -3.5,3.5 -1.658043,0 -3.043426,-1.1411 -3.40625,-2.6875 -1.089617,1.2461 -2.647139,2.9988 -3.46875,3.9375 0.191501,-0.062 0.388502,-0.094 0.59375,-0.094 1.373338,0 2.50006,1.4614 2.5625,3.2812 l 8.3125,0 c 1.304375,0 2.34375,-1.0707 2.34375,-2.375 l 0,-10.8125005 c 0,-1.3046 -1.039375,-2.3437 -2.34375,-2.3437 l -0.65625,0 z M 9.5518351,10.423906 c 1.9348899,0 3.4999999,1.596401 3.4999999,3.531301 0,1.9349 -1.56511,3.5 -3.4999999,3.5 -1.9348899,0 -3.4999999,-1.5651 -3.4999999,-3.5 0,-1.9349 1.56511,-3.531301 3.4999999,-3.531301 z m 4.2187499,10.312601 c -0.206517,0.2356 -0.844218,0.9428 -1.03125,1.1562 l 0.8125,0 c 0.01392,-0.4081 0.107026,-0.7968 0.21875,-1.1562 z";function r0e(o,f,m){o=Qh(o);let x=new tNe(f,m);x._exitVRPath=yji,x._enterVRPath=gji;let y=document.createElement("button");y.type="button",y.className="cesium-button cesium-vrButton",y.setAttribute("data-bind",'css: { "cesium-button-disabled" : _isOrthographic }, attr: { title: tooltip },click: command,enable: isVREnabled,cesiumSvgPath: { path: isVRMode ? _exitVRPath : _enterVRPath, width: 32, height: 32 }'),o.appendChild(y),sr.applyBindings(x,y),this._container=o,this._viewModel=x,this._element=y}Object.defineProperties(r0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});r0e.prototype.isDestroyed=function(){return!1};r0e.prototype.destroy=function(){return this._viewModel.destroy(),sr.cleanNode(this._element),this._container.removeChild(this._element),yr(this)};var iNe=r0e,pqe=new Ei;function nyt(o){let f=o.clock;f.currentTime=o.timeJulian,f.shouldAnimate=!1}function _ji(o){let f=o.getPropertyIds(),m="";return f.forEach(function(x){let y=o.getProperty(x);F(y)&&(m+=`<tr><th>${x}</th><td>${y}</td></tr>`)}),m.length>0&&(m=`<table class="cesium-infoBox-defaultTable"><tbody>${m}</tbody></table>`),m}function vji(o){let f,m=[],x=o.getPropertyIds();for(f=0;f<x.length;f++){let v=x[f];/^name$/i.test(v)?m[0]=o.getProperty(v):/name/i.test(v)?m[1]=o.getProperty(v):/^title$/i.test(v)?m[2]=o.getProperty(v):/^(id|identifier)$/i.test(v)?m[3]=o.getProperty(v):/element/i.test(v)?m[4]=o.getProperty(v):/(id|identifier)$/i.test(v)&&(m[5]=o.getProperty(v))}let y=m.length;for(f=0;f<y;f++){let v=m[f];if(F(v)&&v!=="")return v}return"Unnamed Feature"}function fqe(o,f){let m=o.scene.pick(f.position);if(F(m)){let x=m.id??m.primitive.id;if(x instanceof bd)return x;if(m instanceof Ss)return new bd({name:vji(m),description:_ji(m),feature:m})}if(F(o.scene.globe))return Tji(o,f.position)}var bji=new $t;function rNe(o,f){if(F(f)){let m=f.clock;if(F(m)&&F(o)){let x=m.startTime,y=m.stopTime;$t.equals(x,y)&&(y=$t.addSeconds(x,be.EPSILON2,bji)),o.updateFromClock(),o.zoomTo(x,y)}}}var Cji=new Z;function Tji(o,f){let m=o.scene,x=m.camera.getPickRay(f),y=m.imageryLayers.pickImageryLayerFeatures(x,m);if(!F(y))return;let v=new bd({id:"Loading...",description:"Loading feature information..."});return y.then(function(C){if(o.selectedEntity!==v)return;if(!F(C)||C.length===0){o.selectedEntity=mqe();return}let T=C[0],S=new bd({id:T.name,description:T.description});if(F(T.position)){let w=o.scene.ellipsoid.cartographicToCartesian(T.position,Cji);S.position=new hI(w)}o.selectedEntity=S},function(){o.selectedEntity===v&&(o.selectedEntity=mqe())}),v}function mqe(){return new bd({id:"None",description:"No features found."})}function Sji(o,f){let m=o._geocoder,x=o._homeButton,y=o._sceneModePicker,v=o._projectionPicker,C=o._baseLayerPicker,T=o._animation,S=o._timeline,w=o._fullscreenButton,E=o._infoBox,L=o._selectionIndicator,I=f?"hidden":"visible";if(F(m)&&(m.container.style.visibility=I),F(x)&&(x.container.style.visibility=I),F(y)&&(y.container.style.visibility=I),F(v)&&(v.container.style.visibility=I),F(C)&&(C.container.style.visibility=I),F(T)&&(T.container.style.visibility=I),F(S)&&(S.container.style.visibility=I),F(w)&&w.viewModel.isFullscreenEnabled&&(w.container.style.visibility=I),F(E)&&(E.container.style.visibility=I),F(L)&&(L.container.style.visibility=I),o._container){let R=f||!F(w)?0:w.container.clientWidth;o._vrButton.container.style.right=`${R}px`,o.forceResize()}}function Wc(o,f){o=Qh(o),f=f??si.EMPTY_OBJECT;let m=(!F(f.globe)||f.globe!==!1)&&(!F(f.baseLayerPicker)||f.baseLayerPicker!==!1),x=this,y=document.createElement("div");y.className="cesium-viewer",o.appendChild(y);let v=document.createElement("div");v.className="cesium-viewer-cesiumWidgetContainer",y.appendChild(v);let C=document.createElement("div");C.className="cesium-viewer-bottom",y.appendChild(C);let T=f.scene3DOnly??!1,S,w,E=!1;F(f.clockViewModel)?(w=f.clockViewModel,S=w.clock):(S=new Az,w=new xDe(S),E=!0);let L=new A4(v,{baseLayer:m&&F(f.selectedImageryProviderViewModel)||F(f.baseLayer)||F(f.imageryProvider)?!1:void 0,clock:S,shouldAnimate:f.shouldAnimate,skyBox:f.skyBox,skyAtmosphere:f.skyAtmosphere,sceneMode:f.sceneMode,ellipsoid:f.ellipsoid,mapProjection:f.mapProjection,globe:f.globe,orderIndependentTranslucency:f.orderIndependentTranslucency,automaticallyTrackDataSourceClocks:f.automaticallyTrackDataSourceClocks,contextOptions:f.contextOptions,useDefaultRenderLoop:f.useDefaultRenderLoop,targetFrameRate:f.targetFrameRate,showRenderLoopErrors:f.showRenderLoopErrors,useBrowserRecommendedResolution:f.useBrowserRecommendedResolution,creditContainer:F(f.creditContainer)?f.creditContainer:C,creditViewport:f.creditViewport,dataSources:f.dataSources,scene3DOnly:T,shadows:f.shadows,terrainShadows:f.terrainShadows,mapMode2D:f.mapMode2D,blurActiveElementOnCanvasFocus:f.blurActiveElementOnCanvasFocus,requestRenderMode:f.requestRenderMode,maximumRenderTimeChange:f.maximumRenderTimeChange,depthPlaneEllipsoidOffset:f.depthPlaneEllipsoidOffset,msaaSamples:f.msaaSamples}),I=L.scene,R=new bv;R.add(S.onTick,Wc.prototype._onTick,this);let P;if(!F(f.selectionIndicator)||f.selectionIndicator!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-selectionIndicatorContainer",y.appendChild(ce),P=new JDe(ce,I)}let A;if(!F(f.infoBox)||f.infoBox!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-infoBoxContainer",y.appendChild(ce),A=new WDe(ce);let pe=A.viewModel;R.add(pe.cameraClicked,Wc.prototype._onInfoBoxCameraClicked,this),R.add(pe.closeClicked,Wc.prototype._onInfoBoxClockClicked,this)}let M=document.createElement("div");M.className="cesium-viewer-toolbar",y.appendChild(M);let V;if(!F(f.geocoder)||f.geocoder!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-geocoderContainer",M.appendChild(ce);let pe;typeof f.geocoder=="string"?pe=[new Cde({scene:I,geocodeProviderType:f.geocoder})]:F(f.geocoder)&&typeof f.geocoder!="boolean"&&(pe=Array.isArray(f.geocoder)?f.geocoder:[f.geocoder]),V=new MDe({container:ce,geocoderServices:pe,scene:I}),R.add(V.viewModel.search.beforeExecute,Wc.prototype._clearObjects,this)}let G;(!F(f.homeButton)||f.homeButton!==!1)&&(G=new GDe(M,I),F(V)&&R.add(G.viewModel.command.afterExecute,function(){let ce=V.viewModel;ce.searchText="",ce.isSearchInProgress&&ce.search()}),R.add(G.viewModel.command.beforeExecute,Wc.prototype._clearTrackedObject,this));let D;!T&&(!F(f.sceneModePicker)||f.sceneModePicker!==!1)&&(D=new YDe(M,I));let N;f.projectionPicker&&(N=new kDe(M,I));let k,U;if(m){let ce=f.imageryProviderViewModels??bDe(),pe=f.terrainProviderViewModels??CDe();k=new vDe(M,{globe:I.globe,imageryProviderViewModels:ce,selectedImageryProviderViewModel:f.selectedImageryProviderViewModel,terrainProviderViewModels:pe,selectedTerrainProviderViewModel:f.selectedTerrainProviderViewModel}),U=M.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}F(f.baseLayer)&&f.baseLayer!==!1&&(m&&(k.viewModel.selectedImagery=void 0),I.imageryLayers.removeAll(),I.imageryLayers.add(f.baseLayer)),F(f.terrainProvider)&&(m&&(k.viewModel.selectedTerrain=void 0),I.terrainProvider=f.terrainProvider),F(f.terrain)&&(m&&(I.globe.depthTestAgainstTerrain=!0),I.setTerrain(f.terrain));let B;if(!F(f.navigationHelpButton)||f.navigationHelpButton!==!1){let ce=!0;try{if(F(window.localStorage)){let pe=window.localStorage.getItem("cesium-hasSeenNavHelp");F(pe)&&pe?ce=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}B=new ODe({container:M,instructionsInitiallyVisible:f.navigationInstructionsInitiallyVisible??ce})}let Y;if(!F(f.animation)||f.animation!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-animationContainer",y.appendChild(ce),Y=new gDe(ce,new yDe(w))}let J;if(!F(f.timeline)||f.timeline!==!1){let ce=document.createElement("div");ce.className="cesium-viewer-timelineContainer",y.appendChild(ce),J=new qDe(ce,S),J.addEventListener("settime",nyt,!1),J.zoomTo(S.startTime,S.stopTime)}let K,z,j;(!F(f.fullscreenButton)||f.fullscreenButton!==!1)&&(j=document.createElement("div"),j.className="cesium-viewer-fullscreenContainer",y.appendChild(j),K=new PDe(j,f.fullscreenElement),z=Eb(K.viewModel,"isFullscreenEnabled",function(ce){j.style.display=ce?"block":"none",F(J)&&(J.container.style.right=`${j.clientWidth}px`,J.resize())}));let q,O,te;if(f.vrButton){let ce=document.createElement("div");ce.className="cesium-viewer-vrContainer",y.appendChild(ce),q=new iNe(ce,I,f.fullScreenElement),O=Eb(q.viewModel,"isVREnabled",function(pe){ce.style.display=pe?"block":"none",F(K)&&(ce.style.right=`${j.clientWidth}px`),F(J)&&(J.container.style.right=`${ce.clientWidth}px`,J.resize())}),te=Eb(q.viewModel,"isVRMode",function(pe){Sji(x,pe)})}this._baseLayerPickerDropDown=U,this._fullscreenSubscription=z,this._vrSubscription=O,this._vrModeSubscription=te,this._dataSourceChangedListeners={},this._container=o,this._bottomContainer=C,this._element=y,this._cesiumWidget=L,this._selectionIndicator=P,this._infoBox=A,this._clockViewModel=w,this._destroyClockViewModel=E,this._toolbar=M,this._homeButton=G,this._sceneModePicker=D,this._projectionPicker=N,this._baseLayerPicker=k,this._navigationHelpButton=B,this._animation=Y,this._timeline=J,this._fullscreenButton=K,this._vrButton=q,this._geocoder=V,this._eventHelper=R,this._lastWidth=0,this._lastHeight=0,this._enableInfoOrSelection=F(A)||F(P),this._selectedEntity=void 0,this._selectedEntityChanged=new Tr;let ie=this._cesiumWidget.dataSources,re=this._cesiumWidget.dataSourceDisplay;R.add(ie.dataSourceAdded,Wc.prototype._onDataSourceAdded,this),R.add(ie.dataSourceRemoved,Wc.prototype._onDataSourceRemoved,this),R.add(I.postUpdate,Wc.prototype.resize,this);let ee=ie.length;for(let ce=0;ce<ee;ce++)this._dataSourceAdded(ie,ie.get(ce));this._dataSourceAdded(void 0,re.defaultDataSource),R.add(ie.dataSourceAdded,Wc.prototype._dataSourceAdded,this),R.add(ie.dataSourceRemoved,Wc.prototype._dataSourceRemoved,this);function ae(ce){let pe=fqe(x,ce);F(pe)?Nt.getValueOrUndefined(pe.position,x.clock.currentTime)?x.trackedEntity=pe:x.zoomTo(pe):F(x.trackedEntity)&&(x.trackedEntity=void 0)}function oe(ce){x.selectedEntity=fqe(x,ce)}L.screenSpaceEventHandler.setInputAction(oe,Si.LEFT_CLICK),L.screenSpaceEventHandler.setInputAction(ae,Si.LEFT_DOUBLE_CLICK),L._canAnimateUpdateCallback=this._updateCanAnimate(this)}Object.defineProperties(Wc.prototype,{container:{get:function(){return this._container}},creditDisplay:{get:function(){return this._cesiumWidget.creditDisplay}},bottomContainer:{get:function(){return this._bottomContainer}},cesiumWidget:{get:function(){return this._cesiumWidget}},selectionIndicator:{get:function(){return this._selectionIndicator}},infoBox:{get:function(){return this._infoBox}},geocoder:{get:function(){return this._geocoder}},homeButton:{get:function(){return this._homeButton}},sceneModePicker:{get:function(){return this._sceneModePicker}},projectionPicker:{get:function(){return this._projectionPicker}},baseLayerPicker:{get:function(){return this._baseLayerPicker}},navigationHelpButton:{get:function(){return this._navigationHelpButton}},animation:{get:function(){return this._animation}},timeline:{get:function(){return this._timeline}},fullscreenButton:{get:function(){return this._fullscreenButton}},vrButton:{get:function(){return this._vrButton}},dataSourceDisplay:{get:function(){return this._cesiumWidget.dataSourceDisplay}},entities:{get:function(){return this._cesiumWidget.entities}},dataSources:{get:function(){return this._cesiumWidget.dataSources}},canvas:{get:function(){return this._cesiumWidget.canvas}},scene:{get:function(){return this._cesiumWidget.scene}},shadows:{get:function(){return this.scene.shadowMap.enabled},set:function(o){this.scene.shadowMap.enabled=o}},terrainShadows:{get:function(){return this.scene.globe.shadows},set:function(o){this.scene.globe.shadows=o}},shadowMap:{get:function(){return this.scene.shadowMap}},imageryLayers:{get:function(){return this.scene.imageryLayers}},terrainProvider:{get:function(){return this.scene.terrainProvider},set:function(o){this.scene.terrainProvider=o}},camera:{get:function(){return this.scene.camera}},ellipsoid:{get:function(){return this._scene.ellipsoid}},postProcessStages:{get:function(){return this.scene.postProcessStages}},clock:{get:function(){return this._clockViewModel.clock}},clockViewModel:{get:function(){return this._clockViewModel}},screenSpaceEventHandler:{get:function(){return this._cesiumWidget.screenSpaceEventHandler}},targetFrameRate:{get:function(){return this._cesiumWidget.targetFrameRate},set:function(o){this._cesiumWidget.targetFrameRate=o}},useDefaultRenderLoop:{get:function(){return this._cesiumWidget.useDefaultRenderLoop},set:function(o){this._cesiumWidget.useDefaultRenderLoop=o}},resolutionScale:{get:function(){return this._cesiumWidget.resolutionScale},set:function(o){this._cesiumWidget.resolutionScale=o}},useBrowserRecommendedResolution:{get:function(){return this._cesiumWidget.useBrowserRecommendedResolution},set:function(o){this._cesiumWidget.useBrowserRecommendedResolution=o}},allowDataSourcesToSuspendAnimation:{get:function(){return this._cesiumWidget.allowDataSourcesToSuspendAnimation},set:function(o){this._cesiumWidget.allowDataSourcesToSuspendAnimation=o}},trackedEntity:{get:function(){return this._cesiumWidget.trackedEntity},set:function(o){this._cesiumWidget.trackedEntity=o}},selectedEntity:{get:function(){return this._selectedEntity},set:function(o){if(this._selectedEntity!==o){this._selectedEntity=o;let f=F(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;F(o)?F(f)&&f.animateAppear():F(f)&&f.animateDepart(),this._selectedEntityChanged.raiseEvent(o)}}},selectedEntityChanged:{get:function(){return this._selectedEntityChanged}},trackedEntityChanged:{get:function(){return this._cesiumWidget.trackedEntityChanged}},clockTrackedDataSource:{get:function(){return this._cesiumWidget.clockTrackedDataSource},set:function(o){this._cesiumWidget.clockTrackedDataSource!==o&&(this._cesiumWidget.clockTrackedDataSource=o,rNe(this._timeline,o))}}});Wc.prototype.extend=function(o,f){o(this,f)};Wc.prototype.resize=function(){let o=this._cesiumWidget,f=this._container,m=f.clientWidth,x=f.clientHeight,y=F(this._animation),v=F(this._timeline);if(o.resize(),m===this._lastWidth&&x===this._lastHeight)return;let C=x-125,T=this._baseLayerPickerDropDown;if(F(T)&&(T.style.maxHeight=`${C}px`),F(this._geocoder)){let P=this._geocoder.searchSuggestionsContainer;P.style.maxHeight=`${C}px`}F(this._infoBox)&&(this._infoBox.viewModel.maxHeight=C);let S=this._timeline,w,E=0,L=5,I=3,R=0;if(y&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let P=this._lastWidth;w=this._animation.container,m>900?(E=169,P<=900&&(w.style.width="169px",w.style.height="112px",this._animation.resize())):m>=600?(E=136,(P<600||P>900)&&(w.style.width="136px",w.style.height="90px",this._animation.resize())):(E=106,(P>600||P===0)&&(w.style.width="106px",w.style.height="70px",this._animation.resize())),L=E+5}if(v&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let P=this._fullscreenButton,A=this._vrButton,M=S.container,V=M.style;I=M.clientHeight+3,V.left=`${E}px`;let G=0;F(P)&&(G+=P.container.clientWidth),F(A)&&(G+=A.container.clientWidth),V.right=`${G}px`,S.resize()}!v&&F(this._fullscreenButton)&&(R=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${L}px`,this._bottomContainer.style.bottom=`${I}px`,this._bottomContainer.style.right=`${R}px`,this._lastWidth=m,this._lastHeight=x};Wc.prototype.forceResize=function(){this._lastWidth=0,this.resize()};Wc.prototype.render=function(){this._cesiumWidget.render()};Wc.prototype.isDestroyed=function(){return!1};Wc.prototype.destroy=function(){return F(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(Si.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(Si.LEFT_DOUBLE_CLICK)),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),F(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),F(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),F(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),F(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),F(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),F(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),F(this._timeline)&&(this._timeline.removeEventListener("settime",nyt,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),F(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),F(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),F(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),F(this._selectionIndicator)&&(this._element.removeChild(this._selectionIndicator.container),this._selectionIndicator=this._selectionIndicator.destroy()),this._destroyClockViewModel&&(this._clockViewModel=this._clockViewModel.destroy()),this._cesiumWidget=this._cesiumWidget.destroy(),yr(this)};Wc.prototype._dataSourceAdded=function(o,f){f.entities.collectionChanged.addEventListener(Wc.prototype._onEntityCollectionChanged,this)};Wc.prototype._dataSourceRemoved=function(o,f){let m=f.entities;m.collectionChanged.removeEventListener(Wc.prototype._onEntityCollectionChanged,this),F(this.selectedEntity)&&m.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};Wc.prototype._updateCanAnimate=function(o){return function(f){o._clockViewModel.canAnimate=f}};Wc.prototype._onTick=function(o){let f=o.currentTime,m,x=!1,y=this.selectedEntity,v=F(y)&&this._enableInfoOrSelection;v&&y.isShowing&&y.isAvailable(f)&&(this._cesiumWidget.dataSourceDisplay.getBoundingSphere(y,!0,pqe)!==Xo.FAILED?m=pqe.center:F(y.position)&&(m=y.position.getValue(f,m)),x=F(m));let C=F(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;F(C)&&(C.position=Z.clone(m,C.position),C.showSelection=v&&x,C.update());let T=F(this._infoBox)?this._infoBox.viewModel:void 0;F(T)&&(T.showInfo=v,T.enableCamera=x,T.isCameraTracking=this.trackedEntity===this.selectedEntity,v?(T.titleText=y.name??y.id,T.description=Nt.getValueOrDefault(y.description,f,"")):(T.titleText="",T.description=""))};Wc.prototype._onEntityCollectionChanged=function(o,f,m){let x=m.length;for(let y=0;y<x;y++){let v=m[y];this.selectedEntity===v&&(this.selectedEntity=void 0)}};Wc.prototype._onInfoBoxCameraClicked=function(o){if(o.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let f=this.selectedEntity.position;F(f)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};Wc.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};Wc.prototype._onInfoBoxClockClicked=function(o){this.selectedEntity=void 0};Wc.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};Wc.prototype._onDataSourceChanged=function(o){this.clockTrackedDataSource===o&&rNe(this.timeline,o)};Wc.prototype._onDataSourceAdded=function(o,f){this._cesiumWidget._automaticallyTrackDataSourceClocks&&f===this.clockTrackedDataSource&&rNe(this._timeline,f);let m=f.entities.id,x=this._eventHelper.add(f.changedEvent,Wc.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[m]=x};Wc.prototype._onDataSourceRemoved=function(o,f){let m=f.entities.id;this._dataSourceChangedListeners[m](),this._dataSourceChangedListeners[m]=void 0};Wc.prototype.zoomTo=function(o,f){return this._cesiumWidget.zoomTo(o,f)};Wc.prototype.flyTo=function(o,f){return this._cesiumWidget.flyTo(o,f)};var n0e=Wc;function wji(o){let f=document.createElement("div");f.className="cesium-viewer-cesium3DTilesInspectorContainer",o.container.appendChild(f);let m=new SDe(f,o.scene);Object.defineProperties(o,{cesium3DTilesInspector:{get:function(){return m}}})}var oyt=wji;function Eji(o){let f=document.createElement("div");f.className="cesium-viewer-cesiumInspectorContainer",o.container.appendChild(f);let m=new EDe(f,o.scene);Object.defineProperties(o,{cesiumInspector:{get:function(){return m}}})}var ayt=Eji;function Lji(o,f){f=f??si.EMPTY_OBJECT;let m=!0,x=f.flyToOnDrop??!0,y=new Tr,v=f.clearOnDrop??!0,C=f.dropTarget??o.container,T=f.clampToGround??!0,S=f.proxy;C=Qh(C),Object.defineProperties(o,{dropTarget:{get:function(){return C},set:function(E){xqe(C,w),C=E,ybe(C,w)}},dropEnabled:{get:function(){return m},set:function(E){E!==m&&(E?ybe(C,w):xqe(C,w),m=E)}},dropError:{get:function(){return y}},clearOnDrop:{get:function(){return v},set:function(E){v=E}},flyToOnDrop:{get:function(){return x},set:function(E){x=E}},proxy:{get:function(){return S},set:function(E){S=E}},clampToGround:{get:function(){return T},set:function(E){T=E}}});function w(E){kZ(E),v&&(o.entities.removeAll(),o.dataSources.removeAll());let L=E.dataTransfer.files,I=L.length;for(let R=0;R<I;R++){let P=L[R],A=new FileReader;A.onload=Pji(o,P,S,T),A.onerror=Iji(o,P),A.readAsText(P)}}ybe(C,w),o.destroy=_Fe(o,o.destroy,function(){o.dropEnabled=!1}),o._handleDrop=w}function kZ(o){o.stopPropagation(),o.preventDefault()}function xqe(o,f){let m=o;F(m)&&(m.removeEventListener("drop",f,!1),m.removeEventListener("dragenter",kZ,!1),m.removeEventListener("dragover",kZ,!1),m.removeEventListener("dragexit",kZ,!1))}function ybe(o,f){o.addEventListener("drop",f,!1),o.addEventListener("dragenter",kZ,!1),o.addEventListener("dragover",kZ,!1),o.addEventListener("dragexit",kZ,!1)}function Pji(o,f,m,x){let y=o.scene;return function(v){let C=f.name;try{let T;if(/\.czml$/i.test(C))T=qq.load(JSON.parse(v.target.result),{sourceUri:C});else if(/\.geojson$/i.test(C)||/\.json$/i.test(C)||/\.topojson$/i.test(C))T=qZ.load(JSON.parse(v.target.result),{sourceUri:C,clampToGround:x});else if(/\.(kml|kmz)$/i.test(C))T=I7.load(f,{sourceUri:C,proxy:m,camera:y.camera,canvas:y.canvas,clampToGround:x,screenOverlayContainer:o.container});else if(/\.gpx$/i.test(C))T=QGe.load(f,{sourceUri:C,proxy:m});else{o.dropError.raiseEvent(o,C,`Unrecognized file: ${C}`);return}F(T)&&o.dataSources.add(T).then(function(S){o.flyToOnDrop&&o.flyTo(S)}).catch(function(S){o.dropError.raiseEvent(o,C,S)})}catch(T){o.dropError.raiseEvent(o,C,T)}}}function Iji(o,f){return function(m){o.dropError.raiseEvent(o,f.name,m.target.error)}}var syt=Lji;function Rji(o,f){f=f??si.EMPTY_OBJECT;let m=new HDe({scene:o.scene,container:o.bottomContainer,lowFrameRateMessage:f.lowFrameRateMessage});Object.defineProperties(o,{performanceWatchdog:{get:function(){return m}}})}var lyt=Rji;function Aji(o){let f=document.createElement("div");f.className="cesium-viewer-voxelInspectorContainer",o.container.appendChild(f);let m=new eNe(f,o.scene);Object.defineProperties(o,{voxelInspector:{get:function(){return m}}})}var uyt=Aji;globalThis.CESIUM_VERSION="1.129";var o0e="1.129";we();var Vi={};Bie(Vi,{AlphaMode:()=>PH,AlphaPipelineStage:()=>GAe,AnchorPointDirect:()=>FRe,AnchorPointIndirect:()=>DRe,Animation:()=>gDe,AnimationViewModel:()=>yDe,Appearance:()=>Sd,ApproximateTerrainHeights:()=>jh,ArcGISTiledElevationTerrainProvider:()=>fde,ArcGisBaseMapType:()=>NG,ArcGisMapServerImageryProvider:()=>d1,ArcGisMapService:()=>LE,ArcType:()=>qa,ArticulationStageType:()=>YC,AssociativeArray:()=>zo,Atmosphere:()=>_ce,AtmospherePipelineStage:()=>pAe,AttributeCompression:()=>Ru,AttributeType:()=>Is,AutoExposure:()=>h5e,AutomaticUniforms:()=>vB,Axis:()=>D0,AxisAlignedBoundingBox:()=>m7,B3dmLoader:()=>KRe,B3dmParser:()=>YRe,Base64Encoder:()=>bae,BaseLayerPicker:()=>vDe,BaseLayerPickerViewModel:()=>_De,BatchTable:()=>Cz,BatchTableHierarchy:()=>Nce,BatchTexture:()=>KT,BatchTexturePipelineStage:()=>FAe,Billboard:()=>Td,BillboardCollection:()=>jE,BillboardGraphics:()=>oV,BillboardLoadState:()=>Om,BillboardTexture:()=>fz,BillboardVisualizer:()=>gIe,BingMapsGeocoderService:()=>Smt,BingMapsImageryProvider:()=>vO,BingMapsStyle:()=>phe,BlendEquation:()=>F_,BlendFunction:()=>Kh,BlendOption:()=>F0,BlendTexture:()=>hz,BlendingState:()=>ru,BoundingRectangle:()=>Er,BoundingSphere:()=>Ei,BoundingSphereState:()=>Xo,BoundingVolumeSemantics:()=>ehe,BoxEmitter:()=>wde,BoxGeometry:()=>g1,BoxGeometryUpdater:()=>yIe,BoxGraphics:()=>Tue,BoxOutlineGeometry:()=>BS,BrdfLutGenerator:()=>g3e,Buffer:()=>mo,BufferLoader:()=>j7,BufferUsage:()=>rn,CPUStylingPipelineStage:()=>ZAe,CallbackPositionProperty:()=>PVe,CallbackProperty:()=>Fr,Camera:()=>Ts,CameraEventAggregator:()=>C5e,CameraEventType:()=>Jc,CameraFlightPath:()=>qPe,Cartesian2:()=>rt,Cartesian3:()=>Z,Cartesian4:()=>zt,Cartographic:()=>Gt,CartographicGeocoderService:()=>wmt,CatmullRomSpline:()=>Emt,Cesium3DContentGroup:()=>Jce,Cesium3DTile:()=>Wb,Cesium3DTileBatchTable:()=>dq,Cesium3DTileColorBlendMode:()=>xI,Cesium3DTileContent:()=>yxt,Cesium3DTileContentFactory:()=>rhe,Cesium3DTileContentState:()=>_d,Cesium3DTileContentType:()=>N_,Cesium3DTileFeature:()=>Ss,Cesium3DTileFeatureTable:()=>r4,Cesium3DTileOptimizationHint:()=>xG,Cesium3DTileOptimizations:()=>she,Cesium3DTilePass:()=>sh,Cesium3DTilePassState:()=>qm,Cesium3DTilePointFeature:()=>bZ,Cesium3DTileRefine:()=>Km,Cesium3DTileStyle:()=>ZS,Cesium3DTileStyleEngine:()=>CVe,Cesium3DTilesInspector:()=>SDe,Cesium3DTilesInspectorViewModel:()=>TDe,Cesium3DTilesVoxelProvider:()=>_xt,Cesium3DTileset:()=>_0,Cesium3DTilesetBaseTraversal:()=>SVe,Cesium3DTilesetCache:()=>vVe,Cesium3DTilesetGraphics:()=>Pue,Cesium3DTilesetHeatmap:()=>bVe,Cesium3DTilesetMetadata:()=>ahe,Cesium3DTilesetMostDetailedTraversal:()=>TVe,Cesium3DTilesetSkipTraversal:()=>wVe,Cesium3DTilesetStatistics:()=>DG,Cesium3DTilesetTraversal:()=>xv,Cesium3DTilesetVisualizer:()=>LVe,CesiumInspector:()=>EDe,CesiumInspectorViewModel:()=>wDe,CesiumNavigation:()=>JFe,CesiumRenderPass:()=>nDe,CesiumTerrainProvider:()=>N4,CesiumWidget:()=>A4,Check:()=>Da,CheckerboardMaterialProperty:()=>ele,CircleEmitter:()=>TFe,CircleGeometry:()=>Vmt,CircleOutlineGeometry:()=>Gmt,CircleWaveMaterialProperty:()=>pz,ClassificationModelDrawCommand:()=>FMe,ClassificationPipelineStage:()=>DAe,ClassificationPrimitive:()=>Tz,ClassificationType:()=>hc,ClearCommand:()=>ku,ClippingPlane:()=>Jp,ClippingPlaneCollection:()=>Ox,ClippingPolygon:()=>kb,ClippingPolygonCollection:()=>Ry,Clock:()=>Az,ClockRange:()=>Gx,ClockStep:()=>kd,ClockViewModel:()=>xDe,CloudCollection:()=>Ext,CloudType:()=>hle,CollectionSource:()=>Uit,Color:()=>Xe,ColorBlendMode:()=>II,ColorGeometryInstanceAttribute:()=>yo,ColorMaterialProperty:()=>Ba,Command:()=>Wgt,CommandLoader:()=>jFe,ComponentDatatype:()=>Qt,Composite3DTileContent:()=>KMe,CompositeEntityCollection:()=>tmt,CompositeMaterialProperty:()=>ile,CompositePositionProperty:()=>i1,CompositeProperty:()=>rS,CompressedTextureBuffer:()=>DS,ComputeCommand:()=>cV,ComputeEngine:()=>l3e,ComputeRegionBox:()=>xxt,ConditionsExpression:()=>kLe,ConeEmitter:()=>X4,ConicArcSensor:()=>ble,ConicArcSensorCollection:()=>Agt,ConicArcSensorGeometry:()=>Tle,ConicArcSensorGraphics:()=>vle,ConicArcSensorOutlineGeometry:()=>Sle,ConstantPositionProperty:()=>hI,ConstantProperty:()=>Qc,ConstantSpline:()=>eAe,ConstructionWorker:()=>Hit,ContentMetadata:()=>cVe,Context:()=>m3e,ContextLimits:()=>co,CoplanarPolygonGeometry:()=>lO,CoplanarPolygonGeometryLibrary:()=>DB,CoplanarPolygonOutlineGeometry:()=>tM,CornerType:()=>ad,CorrelationGroup:()=>NRe,CorridorGeometry:()=>N7,CorridorGeometryLibrary:()=>oh,CorridorGeometryUpdater:()=>bIe,CorridorGraphics:()=>Sue,CorridorOutlineGeometry:()=>vIe,Credit:()=>Oa,CreditDisplay:()=>y3e,CubeMap:()=>Ig,CubeMapFace:()=>ySe,CubicRealPolynomial:()=>r7,CullFace:()=>yh,CullingVolume:()=>pm,CumulusCloud:()=>wL,CustomDataSource:()=>Aue,CustomHeightmapTerrainProvider:()=>Fmt,CustomMercatorProjection:()=>xz,CustomShader:()=>P1,CustomShaderManagerEx:()=>yue,CustomShaderMode:()=>h7,CustomShaderPipelineStage:()=>zAe,CustomShaderTranslucencyMode:()=>KG,CustomTilingScheme:()=>Ert,CylinderGeometry:()=>W7,CylinderGeometryLibrary:()=>pce,CylinderGeometryUpdater:()=>CIe,CylinderGraphics:()=>wue,CylinderOutlineGeometry:()=>Z7,CzmlDataSource:()=>qq,DataSource:()=>Sy,DataSourceClock:()=>r9,DataSourceCollection:()=>mIe,DataSourceDisplay:()=>Cq,DebugAppearance:()=>Mxt,DebugCameraPrimitive:()=>Bp,DebugInspector:()=>M5e,DebugModelMatrixPrimitive:()=>LFe,DefaultProxy:()=>Nmt,DepthFunction:()=>wy,DepthPlane:()=>b3e,DequantizationPipelineStage:()=>YAe,DerivedCommand:()=>Cy,DeveloperError:()=>wt,DeviceOrientationCameraController:()=>C3e,DirectionalLight:()=>k4,DiscardEmptyTileImagePolicy:()=>fhe,DiscardMissingTileImagePolicy:()=>XVe,DistanceDisplayCondition:()=>So,DistanceDisplayConditionGeometryInstanceAttribute:()=>uh,DistanceLegendViewModel:()=>OFe,DoubleEndedPriorityQueue:()=>Hhe,DoublyLinkedList:()=>gq,DracoLoader:()=>Q7,DrawCommand:()=>En,DynamicAtmosphereLightingType:()=>k7,DynamicEnvironmentMapManager:()=>LH,DynamicGeometryBatch:()=>cce,DynamicGeometryUpdater:()=>Vh,ECharts:()=>p7,EarthOrientationParameters:()=>JTe,EarthOrientationParametersSample:()=>i7,EasingFunction:()=>J_,EllipseGeometry:()=>TS,EllipseGeometryLibrary:()=>T1,EllipseGeometryUpdater:()=>TIe,EllipseGraphics:()=>Eue,EllipseOutlineGeometry:()=>LI,Ellipsoid:()=>yi,EllipsoidGeodesic:()=>Hx,EllipsoidGeometry:()=>Jm,EllipsoidGeometryUpdater:()=>LIe,EllipsoidGraphics:()=>Ez,EllipsoidOutlineGeometry:()=>Fb,EllipsoidPrimitive:()=>a3e,EllipsoidRhumbLine:()=>lS,EllipsoidSurfaceAppearance:()=>iO,EllipsoidTangentPlane:()=>vv,EllipsoidTerrainProvider:()=>IS,EllipsoidalOccluder:()=>k9,Empty3DTileContent:()=>x6,EncodedCartesian3:()=>$u,Entity:()=>bd,EntityCluster:()=>AF,EntityCollection:()=>kS,EntityView:()=>GVe,Event:()=>Tr,EventHelper:()=>bv,ExpandBySmartEarth:()=>mb,ExpandByTerra:()=>Lrt,Expression:()=>JG,ExpressionNodeType:()=>ao,ExternalParameter:()=>Ty,ExtrapolationType:()=>nI,FBXLoader:()=>eDe,FBXPrimitive:()=>Ade,FBXTreeParser:()=>$Fe,FeatureDataProvider:()=>Kue,FeatureDetection:()=>ia,FeatureIdPipelineStage:()=>cq,FeatureJsonData:()=>Gz,FisheyeProjectionMap:()=>V7,FisheyeProjectionMapShader:()=>Bj,FlattenVS:()=>Egt,FlowEcharts:()=>Sde,Fog:()=>S3e,ForEach:()=>Or,FrameRateMonitor:()=>PFe,FrameState:()=>w3e,Framebuffer:()=>Hp,FramebufferManager:()=>Pc,Frozen:()=>si,FrustumCommands:()=>Vhe,FrustumGeometry:()=>Fz,FrustumOutlineGeometry:()=>M7,Fullscreen:()=>km,FullscreenButton:()=>PDe,FullscreenButtonViewModel:()=>LDe,GWBaiduImageryProvider:()=>Nz,GeoJsonDataSource:()=>qZ,GeoJsonLoader:()=>QRe,GeocodeType:()=>e$,Geocoder:()=>MDe,GeocoderService:()=>_de,GeocoderViewModel:()=>ADe,GeographicProjection:()=>y0,GeographicTilingScheme:()=>_h,Geometry:()=>xa,Geometry3DTileContent:()=>JMe,GeometryAttribute:()=>Xr,GeometryAttributes:()=>Zc,GeometryFactory:()=>Xmt,GeometryInstance:()=>Wn,GeometryInstanceAttribute:()=>t1,GeometryOffsetAttribute:()=>ul,GeometryPipeline:()=>qu,GeometryPipelineStage:()=>jAe,GeometryType:()=>aG,GeometryUpdater:()=>cd,GeometryUpdaterSet:()=>X7,GeometryVisualizer:()=>YIe,GetFeatureInfoFormat:()=>nQ,GifImageProperty:()=>gst,Globe:()=>t3e,GlobeDepth:()=>A3e,GlobeSurfaceShaderSet:()=>ZVe,GlobeSurfaceTile:()=>XM,GlobeSurfaceTileProvider:()=>qVe,GlobeTranslucency:()=>Rq,GlobeTranslucencyFramebuffer:()=>M3e,GlobeTranslucencyState:()=>L3e,GltfBufferViewLoader:()=>Cce,GltfDracoLoader:()=>Tce,GltfGpmLoader:()=>ZRe,GltfGpmLocal:()=>Dce,GltfImageLoader:()=>Sce,GltfIndexBufferLoader:()=>wce,GltfInstanceLoader:()=>Wce,GltfJsonLoader:()=>Pce,GltfLoader:()=>fO,GltfLoaderUtil:()=>WM,GltfMeshPrimitiveGpmLoader:()=>URe,GltfStructuralMetadataLoader:()=>VRe,GltfTextureLoader:()=>Ice,GltfVertexBufferLoader:()=>Rce,GoogleEarthEnterpriseImageryProvider:()=>Vxt,GoogleEarthEnterpriseMapsProvider:()=>BVe,GoogleEarthEnterpriseMetadata:()=>Z4,GoogleEarthEnterpriseTerrainData:()=>cle,GoogleEarthEnterpriseTerrainProvider:()=>Ymt,GoogleEarthEnterpriseTileInformation:()=>pFe,GoogleGeocoderService:()=>Jmt,GoogleMaps:()=>hQ,GpxDataSource:()=>QGe,Graticules:()=>nce,GregorianDate:()=>dz,GridImageryProvider:()=>Gxt,GridMaterialProperty:()=>rle,GroundGeometryUpdater:()=>tu,GroundPolylineGeometry:()=>vz,GroundPolylinePrimitive:()=>FF,GroundPrimitive:()=>XS,GroupMetadata:()=>Ese,GwBufferAnalysis:()=>oce,HeadingPitchRange:()=>R1,HeadingPitchRoll:()=>rs,Heap:()=>XTe,HeightMap:()=>bgt,HeightReference:()=>Mn,HeightmapEncoding:()=>dF,HeightmapTerrainData:()=>yL,HeightmapTessellator:()=>dhe,HermitePolynomialApproximation:()=>NGe,HermiteSpline:()=>p6,HilbertOrder:()=>bse,HomeButton:()=>GDe,HomeButtonViewModel:()=>VDe,HorizontalOrigin:()=>ec,HugeAdapter:()=>hq,I3SBuildingSceneLayerExplorer:()=>$gt,I3SBuildingSceneLayerExplorerViewModel:()=>FDe,I3SDataProvider:()=>gR,I3SDecoder:()=>SGe,I3SFeature:()=>EGe,I3SField:()=>LGe,I3SGeometry:()=>Kse,I3SLayer:()=>qhe,I3SNode:()=>Jse,I3SStatistics:()=>IGe,I3SSublayer:()=>RGe,I3SSymbology:()=>PGe,I3dmLoader:()=>$Re,I3dmParser:()=>qRe,ITwinData:()=>Fxt,ITwinPlatform:()=>wg,Iau2000Orientation:()=>r3e,Iau2006XysData:()=>QTe,Iau2006XysSample:()=>rue,IauOrientationAxes:()=>n3e,IauOrientationParameters:()=>i3e,ImageBasedLighting:()=>aq,ImageBasedLightingPipelineStage:()=>mAe,ImageCombine:()=>mue,ImageMaterialProperty:()=>O0,Imagery:()=>_he,ImageryLayer:()=>Up,ImageryLayerCollection:()=>$Ve,ImageryLayerFeatureInfo:()=>JF,ImageryProvider:()=>QI,ImageryState:()=>sl,Implicit3DTileContent:()=>wse,ImplicitAvailabilityBitstream:()=>Tse,ImplicitMetadataView:()=>Qce,ImplicitSubdivisionScheme:()=>Rg,ImplicitSubtree:()=>qce,ImplicitSubtreeCache:()=>bFe,ImplicitSubtreeMetadata:()=>$Me,ImplicitTileCoordinates:()=>che,ImplicitTileset:()=>uhe,IndexDatatype:()=>Fn,InfoBox:()=>WDe,InfoBoxViewModel:()=>NDe,InspectorShared:()=>sI,InstanceAttributeSemantic:()=>Hm,InstancingPipelineStage:()=>IAe,InterpolationAlgorithm:()=>jmt,InterpolationType:()=>TG,Intersect:()=>jo,IntersectionTests:()=>fc,Intersections2D:()=>D4,Interval:()=>VE,InvertClassification:()=>Ahe,Ion:()=>GG,IonGeocodeProviderType:()=>XZ,IonGeocoderService:()=>Cde,IonImageryProvider:()=>WG,IonResource:()=>FG,IonWorldImageryStyle:()=>HB,Iso8601:()=>wn,JobScheduler:()=>P3e,JobType:()=>G_,JsonMetadataTable:()=>H7,JulianDate:()=>$t,KTX2Transcoder:()=>BTe,KeyboardEventModifier:()=>lv,KeyframeNode:()=>gd,KmlCamera:()=>bPe,KmlDataSource:()=>I7,KmlLookAt:()=>CPe,KmlTour:()=>TPe,KmlTourFlyTo:()=>SPe,KmlTourWait:()=>EPe,Label:()=>bQ,LabelCollection:()=>tV,LabelGraphics:()=>Lz,LabelStyle:()=>f0,LabelVisualizer:()=>KIe,LagrangePolynomialApproximation:()=>ZGe,LeapSecond:()=>xh,Light:()=>Nxt,LightingModel:()=>uv,LightingPipelineStage:()=>qAe,LinearApproximation:()=>Uue,LinearSampler:()=>qI,LinearSpline:()=>uq,MTLLoader:()=>tDe,ManagedArray:()=>RI,MapMode2D:()=>wI,MapProjection:()=>$mt,MapboxImageryProvider:()=>bO,MapboxStyleImageryProvider:()=>Zxt,Material:()=>Co,MaterialAppearance:()=>N0,MaterialPipelineStage:()=>eMe,MaterialProperty:()=>Lg,Math:()=>be,Matrix2:()=>Z0,Matrix3:()=>Ut,Matrix4:()=>Ee,Megatexture:()=>zhe,MeshParser:()=>qFe,MeshPhongMaterial:()=>fQ,MeshPrimitiveGpmLocal:()=>kRe,MetadataClass:()=>Qz,MetadataClassProperty:()=>Kz,MetadataComponentType:()=>$o,MetadataEntity:()=>fu,MetadataEnum:()=>RRe,MetadataEnumValue:()=>IRe,MetadataPicking:()=>I3e,MetadataPickingPipelineStage:()=>YP,MetadataPipelineStage:()=>EM,MetadataSchema:()=>HF,MetadataSchemaLoader:()=>Ace,MetadataSemantic:()=>$ce,MetadataTable:()=>dO,MetadataTableProperty:()=>aRe,MetadataType:()=>fo,MipmapHint:()=>Z9,Model:()=>Ay,Model3DTileContent:()=>jP,ModelAlphaOptions:()=>vMe,ModelAnimation:()=>aAe,ModelAnimationChannel:()=>nAe,ModelAnimationCollection:()=>sAe,ModelAnimationLoop:()=>GE,ModelAnimationState:()=>nG,ModelArticulation:()=>yAe,ModelArticulationStage:()=>gAe,ModelClippingPlanesPipelineStage:()=>bAe,ModelClippingPolygonsPipelineStage:()=>SAe,ModelColorPipelineStage:()=>f6,ModelComponents:()=>ll,ModelDrawCommand:()=>DMe,ModelDrawCommands:()=>ZMe,ModelFeature:()=>lAe,ModelFeatureTable:()=>uAe,ModelFlattenPipelineStage:()=>kMe,ModelGraphics:()=>x7,ModelLightingOptions:()=>MMe,ModelMatrixUpdateStage:()=>AAe,ModelNode:()=>wAe,ModelRenderResources:()=>wMe,ModelRuntimeNode:()=>VAe,ModelRuntimePrimitive:()=>gMe,ModelSceneGraph:()=>UMe,ModelSilhouettePipelineStage:()=>PMe,ModelSkin:()=>_Me,ModelSplitterPipelineStage:()=>RMe,ModelStatistics:()=>BMe,ModelType:()=>jp,ModelUtility:()=>Qs,ModelVisualizer:()=>YMe,Moon:()=>s3e,MorphTargetsPipelineStage:()=>iMe,MorphWeightSpline:()=>ext,MortonOrder:()=>AH,MultiResourceImageryProvider:()=>Wz,MultiResourceTerrainProvider:()=>ace,Multiple3DTileContent:()=>mVe,MultisampleFramebuffer:()=>HRe,NavigationControl:()=>J4,NavigationHelpButton:()=>ODe,NavigationHelpButtonViewModel:()=>ZDe,NavigationUtils:()=>j4,NavigationViewModel:()=>dQ,NearFarScalar:()=>ea,NeverTileDiscardPolicy:()=>Oxt,NodeRenderResources:()=>AMe,NodeStatisticsPipelineStage:()=>MAe,NodeTransformationProperty:()=>Lue,OBJLoader:()=>rDe,OBJPrimitive:()=>Mde,OIT:()=>D3e,Occluder:()=>rce,OffsetGeometryInstanceAttribute:()=>Af,OlMVTImageryProvider:()=>Zz,OpenCageGeocoderService:()=>txt,OpenStreetMapImageryProvider:()=>ME,OrderedGroundPrimitiveCollection:()=>xIe,OrientedBoundingBox:()=>Tu,OrthographicFrustum:()=>$a,OrthographicOffCenterFrustum:()=>xm,Packable:()=>ixt,PackableForInterpolation:()=>rxt,Particle:()=>Lde,ParticleBurst:()=>B4,ParticleEmitter:()=>Uxt,ParticleSystem:()=>QS,Pass:()=>xr,PassState:()=>$p,PathGraphics:()=>g7,PathVisualizer:()=>IVe,PeliasGeocoderService:()=>xFe,PerInstanceColorAppearance:()=>ga,PerformanceDisplay:()=>Fq,PerformanceWatchdog:()=>HDe,PerformanceWatchdogViewModel:()=>BDe,PerspectiveFrustum:()=>mc,PerspectiveOffCenterFrustum:()=>JI,PerspectiveProjectionMap:()=>G7,PerspectiveProjectionMapShader:()=>Hj,PerspectiveProjectionMapWithDepth:()=>F7,PerspectiveProjectionMapWithDepthShader:()=>CG,PickDepth:()=>R3e,PickDepthFramebuffer:()=>N3e,PickFramebuffer:()=>W3e,PickGlobeSlope:()=>Nft,PickedMetadataInfo:()=>aGe,Picking:()=>H3e,PickingPipelineStage:()=>rMe,PinBuilder:()=>b7,PixelDatatype:()=>un,PixelFormat:()=>zr,Plane:()=>ca,PlaneGeometry:()=>PIe,PlaneGeometryUpdater:()=>AIe,PlaneGraphics:()=>iPe,PlaneOutlineGeometry:()=>IIe,PntsLoader:()=>HMe,PntsParser:()=>Yce,PointCloud:()=>CGe,PointCloudEyeDomeLighting:()=>sq,PointCloudShading:()=>i4,PointCloudStylingPipelineStage:()=>oMe,PointGraphics:()=>Iue,PointLight:()=>ede,PointPrimitive:()=>Py,PointPrimitiveCollection:()=>iV,PointVisualizer:()=>RVe,PolygonDepth:()=>b9,PolygonDepthFS:()=>Bce,PolygonDepthVS:()=>Hce,PolygonGeometry:()=>Uu,PolygonGeometryLibrary:()=>Al,PolygonGeometryUpdater:()=>VIe,PolygonGraphics:()=>hl,PolygonHierarchy:()=>Zn,PolygonOutlineGeometry:()=>MIe,PolygonPipeline:()=>Ah,Polyline:()=>YI,PolylineArrowMaterialProperty:()=>Mf,PolylineCollection:()=>WF,PolylineColorAppearance:()=>om,PolylineDashMaterialProperty:()=>Ml,PolylineGeometry:()=>B_,PolylineGeometryUpdater:()=>AVe,PolylineGlowMaterialProperty:()=>nle,PolylineGraphics:()=>bI,PolylineMaterialAppearance:()=>Eg,PolylineOutlineMaterialProperty:()=>KM,PolylinePipeline:()=>od,PolylineTrailLinkMaterialProperty:()=>Wft,PolylineVisualizer:()=>VVe,PolylineVolumeGeometry:()=>GIe,PolylineVolumeGeometryLibrary:()=>u9,PolylineVolumeGeometryUpdater:()=>DIe,PolylineVolumeGraphics:()=>Rue,PolylineVolumeOutlineGeometry:()=>FIe,PositionProperty:()=>wz,PositionPropertyArray:()=>dH,PostProcessStage:()=>Sa,PostProcessStageCollection:()=>m5e,PostProcessStageComposite:()=>Vf,PostProcessStageLibrary:()=>$2,PostProcessStageSampleMode:()=>iv,PostProcessStageTextureCache:()=>Ohe,PpeMetadata:()=>XRe,PpeSource:()=>Vgt,PpeTexture:()=>ORe,Primitive:()=>ta,PrimitiveCollection:()=>Ag,PrimitiveLoadPlan:()=>iq,PrimitiveOutlineGenerator:()=>Gce,PrimitiveOutlinePipelineStage:()=>lMe,PrimitivePipeline:()=>jZ,PrimitiveRenderResources:()=>VMe,PrimitiveState:()=>Lf,PrimitiveStatisticsPipelineStage:()=>uMe,PrimitiveType:()=>pn,ProjectionPicker:()=>kDe,ProjectionPickerViewModel:()=>XDe,Property:()=>Nt,PropertyArray:()=>cde,PropertyAttribute:()=>bce,PropertyAttributeProperty:()=>rRe,PropertyBag:()=>qE,PropertyTable:()=>kF,PropertyTexture:()=>Y7,PropertyTextureProperty:()=>tRe,ProviderViewModel:()=>Ef,Proxy:()=>axt,QuadraticRealPolynomial:()=>NE,QuadtreeOccluders:()=>She,QuadtreePrimitive:()=>G1,QuadtreePrimitivezh:()=>Xft,QuadtreeTile:()=>Aq,QuadtreeTileLoadState:()=>Mh,QuadtreeTileProvider:()=>OO,QuantizedMeshTerrainData:()=>xde,QuarticRealPolynomial:()=>pSe,Quaternion:()=>fr,QuaternionSpline:()=>iAe,Queue:()=>aV,RasterizeHtml:()=>M4,Ray:()=>Ma,Rectangle:()=>vi,RectangleCollisionChecker:()=>yce,RectangleGeometry:()=>uO,RectangleGeometryLibrary:()=>by,RectangleGeometryUpdater:()=>kIe,RectangleGraphics:()=>Pz,RectangleOutlineGeometry:()=>mce,RectangularSensor:()=>V6,RectangularSensorFS:()=>mle,RectangularSensorGraphics:()=>Mgt,RectangularSensorPrimitive:()=>cDe,RectangularSensorScanPlaneFS:()=>uDe,RectangularSensorVS:()=>Gde,RectangularSensorVisualizer:()=>hDe,ReferenceFrame:()=>pp,ReferenceProperty:()=>L7,RegionPolygonTexture:()=>DFe,RegionTexture:()=>NFe,RegionWeather:()=>Vde,RenderObjectFactory:()=>tc,RenderState:()=>cn,Renderbuffer:()=>r1,RenderbufferFormat:()=>Pb,Request:()=>hm,RequestErrorEvent:()=>zZ,RequestScheduler:()=>x1,RequestState:()=>pc,RequestType:()=>n2,ResetViewNavigationControl:()=>UFe,Resource:()=>Mr,ResourceCache:()=>qh,ResourceCacheKey:()=>zS,ResourceCacheStatistics:()=>MRe,ResourceLoader:()=>zx,ResourceLoaderState:()=>Zo,Rotation:()=>FI,RuntimeError:()=>Oi,S2Cell:()=>kB,S3MDataSource:()=>Hft,SDFSettings:()=>ev,SampledPositionProperty:()=>nS,SampledProperty:()=>uM,Sampler:()=>Yo,ScaledPositionProperty:()=>Mz,Scene:()=>VO,SceneFramebuffer:()=>Ghe,SceneHeightMap:()=>lDe,SceneHeightWaterPostProcessing:()=>XT,SceneHeightWaterPrimitive:()=>xgt,SceneMode:()=>gi,SceneMode2DPipelineStage:()=>cMe,SceneModePicker:()=>YDe,SceneModePickerViewModel:()=>zDe,SceneTransforms:()=>Ca,SceneTransitioner:()=>b5e,ScreenSpaceCameraController:()=>P5e,ScreenSpaceEventHandler:()=>Lr,ScreenSpaceEventType:()=>Si,SelectedFeatureIdPipelineStage:()=>m6,SelectionIndicator:()=>JDe,SelectionIndicatorViewModel:()=>KDe,Sensor:()=>ygt,SensorVolumePortionToDisplay:()=>ale,ShaderBuilder:()=>kce,ShaderCache:()=>c3e,ShaderDestination:()=>Ji,ShaderFunction:()=>SMe,ShaderProgram:()=>xs,ShaderSource:()=>Wr,ShaderStruct:()=>CMe,ShadowMap:()=>PV,ShadowMapShader:()=>OG,ShadowMode:()=>cl,ShadowVolumeAppearance:()=>gM,ShowGeometryInstanceAttribute:()=>qs,Simon1994PlanetaryPositions:()=>v6,SimplePolylineGeometry:()=>sxt,SingleTileImageryProvider:()=>V1,SkinningPipelineStage:()=>dMe,SkyAtmosphere:()=>zq,SkyBox:()=>GO,SlopeArrow:()=>Dde,SpatialNode:()=>iGe,Spdcf:()=>WRe,SpecularEnvironmentCubeMap:()=>_9,SphereEmitter:()=>H4,SphereGeometry:()=>lxt,SphereOutlineGeometry:()=>sV,Spherical:()=>OGe,Spline:()=>B0,SplitDirection:()=>L1,Splitter:()=>Khe,SpotLight:()=>Yft,StaticGeometryColorBatch:()=>hM,StaticGeometryPerMaterialBatch:()=>dM,StaticGroundGeometryColorBatch:()=>use,StaticGroundGeometryPerMaterialBatch:()=>zIe,StaticGroundPolylinePerMaterialBatch:()=>MVe,StaticOutlineGeometryBatch:()=>cse,StencilConstants:()=>ma,StencilFunction:()=>nu,StencilOperation:()=>Kn,SteppedSpline:()=>tAe,Stereographic:()=>Lb,StorageType:()=>IH,StripeMaterialProperty:()=>ole,StripeOrientation:()=>xF,StructuralMetadata:()=>nR,StyleCommandsNeeded:()=>v9,StyleExpression:()=>Bxt,Sun:()=>vGe,SunLight:()=>C4,SunPostProcess:()=>A5e,SupportedImageFormats:()=>GRe,SvgPathBindingHandler:()=>mDe,TaskProcessor:()=>mp,Terrain:()=>VFe,TerrainData:()=>yO,TerrainEncoding:()=>PS,TerrainFillMesh:()=>Che,TerrainFlatten:()=>kO,TerrainFlattenPolygonTexture:()=>WFe,TerrainMesh:()=>_O,TerrainOffsetProperty:()=>dce,TerrainProvider:()=>H_,TerrainQuantization:()=>sv,TerrainRegionWeather:()=>sDe,TerrainState:()=>ds,Texture:()=>Rn,Texture3D:()=>qGe,TextureAtlas:()=>aue,TextureCache:()=>h3e,TextureMagnificationFilter:()=>Xs,TextureManager:()=>OLe,TextureMinificationFilter:()=>Ho,TexturePacker:()=>oue,TextureUniform:()=>cue,TextureWrap:()=>Xn,TileAvailability:()=>kG,TileBoundingRegion:()=>LS,TileBoundingS2Cell:()=>xVe,TileBoundingSphere:()=>bV,TileBoundingVolume:()=>Hxt,TileCoordinatesImageryProvider:()=>l$,TileDiscardPolicy:()=>zxt,TileEdge:()=>hs,TileImagery:()=>vhe,TileMapServiceImageryProvider:()=>_L,TileMetadata:()=>dVe,TileOrientedBoundingBox:()=>e2,TileProviderError:()=>am,TileReplacementQueue:()=>Ehe,TileSelectionResult:()=>fa,TileState:()=>Yxt,Tileset3DTileContent:()=>eVe,TilesetMetadata:()=>_Ve,TilesetPipelineStage:()=>cAe,TilesetRegionWeather:()=>aDe,TilingScheme:()=>uxt,TimeConstants:()=>cc,TimeDynamicImagery:()=>yhe,TimeDynamicPointCloud:()=>Jhe,TimeInterval:()=>js,TimeIntervalCollection:()=>k_,TimeIntervalCollectionPositionProperty:()=>MH,TimeIntervalCollectionProperty:()=>pH,TimeStandard:()=>cu,Timeline:()=>qDe,TimelineHighlightRange:()=>jDe,TimelineTrack:()=>QDe,Tipsify:()=>mSe,ToggleButtonViewModel:()=>gB,Tonemapper:()=>SZ,TrackingReferenceFrame:()=>wB,Transforms:()=>_r,TranslationRotationScale:()=>I1,TranslucentTileClassification:()=>U3e,TridiagonalSystemSolver:()=>Zce,TrustedServers:()=>qle,TweenCollection:()=>Uhe,UniformState:()=>d3e,UniformType:()=>sa,UrlTemplateGeojsonProvider:()=>jft,UrlTemplateImageryProvider:()=>Hb,UserInterfaceControl:()=>Rde,Utils:()=>TL,VERSION:()=>o0e,VRButton:()=>iNe,VRButtonViewModel:()=>tNe,VRTheWorldTerrainProvider:()=>pxt,VaryingType:()=>Y_,Vector3DTileBatch:()=>RH,Vector3DTileClampedPolylines:()=>aVe,Vector3DTileContent:()=>uVe,Vector3DTileGeometry:()=>dZ,Vector3DTilePoints:()=>tVe,Vector3DTilePolygons:()=>iVe,Vector3DTilePolylines:()=>ihe,Vector3DTilePrimitive:()=>jce,VelocityOrientationProperty:()=>XGe,VelocityVectorProperty:()=>Tq,VertexArray:()=>Cu,VertexArrayFacade:()=>o7,VertexAttributeSemantic:()=>Ko,VertexFormat:()=>Yr,VerticalExaggeration:()=>U_,VerticalExaggerationPipelineStage:()=>fMe,VerticalOrigin:()=>jn,VideoSynchronizer:()=>cxt,View:()=>N1,ViewShed:()=>Igt,ViewShedMap:()=>I4,ViewShedMapShader:()=>XG,Viewer:()=>n0e,ViewportQuad:()=>Y4,Visibility:()=>Rl,Visualizer:()=>vmt,VolumeCloud:()=>Nde,VoxelBoxShape:()=>Xq,VoxelCell:()=>V5e,VoxelContent:()=>Bhe,VoxelCylinderShape:()=>kq,VoxelEllipsoidShape:()=>Uq,VoxelInspector:()=>eNe,VoxelInspectorViewModel:()=>$De,VoxelMetadataOrder:()=>w9,VoxelPrimitive:()=>Hq,VoxelProvider:()=>Kxt,VoxelRenderResources:()=>K5e,VoxelShape:()=>Jxt,VoxelShapeType:()=>Vb,VoxelTraversal:()=>rGe,VulkanConstants:()=>fxt,WallGeometry:()=>UIe,WallGeometryLibrary:()=>xce,WallGeometryUpdater:()=>HIe,WallGraphics:()=>y7,WallOutlineGeometry:()=>BIe,WaterFS:()=>jPe,WaterHeightMap:()=>Cgt,WaterMaterialProperty:()=>Qft,WaterPipelinePrimitive:()=>ade,WaterPostProcessing:()=>yle,WaterPostProcessingEx:()=>_le,WaterPrimitive:()=>Wde,WaterPrimitiveEx:()=>cD,WaterReflectImage:()=>dDe,WaterReflectImageEx:()=>pDe,WebGLConstants:()=>bi,WebMapServiceImageryProvider:()=>CO,WebMapTileServiceImageryProvider:()=>wV,WebMercatorProjection:()=>vd,WebMercatorTilingScheme:()=>xp,WindingOrder:()=>_1,WireframeIndexGenerator:()=>Xce,WireframePipelineStage:()=>xMe,ZoomNavigationControl:()=>dle,_shadersAcesTonemappingStage:()=>z3e,_shadersAdditiveBlend:()=>I5e,_shadersAdjustTranslucentFS:()=>Wse,_shadersAllMaterialAppearanceFS:()=>ZPe,_shadersAllMaterialAppearanceVS:()=>OPe,_shadersAmbientOcclusionGenerate:()=>Y3e,_shadersAmbientOcclusionModulate:()=>K3e,_shadersAspectRampMaterial:()=>vSe,_shadersAtmosphereCommon:()=>g9,_shadersAtmosphereStageFS:()=>hAe,_shadersAtmosphereStageVS:()=>dAe,_shadersBasicMaterialAppearanceFS:()=>XPe,_shadersBasicMaterialAppearanceVS:()=>kPe,_shadersBillboardCollectionFS:()=>bLe,_shadersBillboardCollectionVS:()=>CLe,_shadersBlackAndWhite:()=>J3e,_shadersBloomComposite:()=>j3e,_shadersBrdfLutGeneratorFS:()=>x3e,_shadersBrightPass:()=>R5e,_shadersBrightness:()=>Q3e,_shadersBumpMapMaterial:()=>bSe,_shadersCPUStylingStageFS:()=>WAe,_shadersCPUStylingStageVS:()=>NAe,_shadersCheckerboardMaterial:()=>CSe,_shadersCloudCollectionFS:()=>$Ge,_shadersCloudCollectionVS:()=>eFe,_shadersCloudNoiseFS:()=>tFe,_shadersCloudNoiseVS:()=>iFe,_shadersCompareAndPackTranslucentDepth:()=>k3e,_shadersCompositeOITFS:()=>V3e,_shadersCompositeTranslucentClassification:()=>oQ,_shadersComputeIrradianceFS:()=>jIe,_shadersComputeRadianceMapFS:()=>QIe,_shadersContrastBias:()=>q3e,_shadersConvolveSpecularMapFS:()=>qIe,_shadersConvolveSpecularMapVS:()=>$Ie,_shadersCustomShaderStageFS:()=>XAe,_shadersCustomShaderStageVS:()=>OAe,_shadersCzmBuiltins:()=>Ij,_shadersDepthOfField:()=>$3e,_shadersDepthPlaneFS:()=>_3e,_shadersDepthPlaneVS:()=>v3e,_shadersDepthView:()=>e5e,_shadersDepthViewPacked:()=>Tgt,_shadersDotMaterial:()=>TSe,_shadersEdgeDetection:()=>t5e,_shadersElevationBandMaterial:()=>SSe,_shadersElevationContourMaterial:()=>wSe,_shadersElevationRampMaterial:()=>ESe,_shadersEllipsoidFS:()=>Dse,_shadersEllipsoidSurfaceAppearanceFS:()=>HPe,_shadersEllipsoidSurfaceAppearanceVS:()=>zPe,_shadersEllipsoidVS:()=>Nse,_shadersFXAA:()=>n5e,_shadersFXAA3_11:()=>c5e,_shadersFadeMaterial:()=>LSe,_shadersFeatureIdStageFS:()=>kAe,_shadersFeatureIdStageVS:()=>UAe,_shadersFilmicTonemapping:()=>i5e,_shadersGaussianBlur1D:()=>T6,_shadersGeometryStageFS:()=>KAe,_shadersGeometryStageVS:()=>JAe,_shadersGlobeFS:()=>DVe,_shadersGlobeVS:()=>NVe,_shadersGridMaterial:()=>PSe,_shadersGroundAtmosphere:()=>Ise,_shadersHSBToRGB:()=>_Ee,_shadersHSLToRGB:()=>vEe,_shadersImageBasedLightingStageFS:()=>fAe,_shadersInstancingStageCommon:()=>EAe,_shadersInstancingStageVS:()=>LAe,_shadersIntersectBox:()=>O5e,_shadersIntersectClippingPlanes:()=>Z5e,_shadersIntersectCylinder:()=>X5e,_shadersIntersectDepth:()=>W5e,_shadersIntersectEllipsoid:()=>k5e,_shadersIntersectLongitude:()=>Xse,_shadersIntersection:()=>lQ,_shadersIntersectionUtils:()=>N5e,_shadersLegacyInstancingStageVS:()=>PAe,_shadersLensFlare:()=>o5e,_shadersLightingStageFS:()=>QAe,_shadersMaterialStageFS:()=>$Ae,_shadersMegatexture:()=>Y5e,_shadersMetadataStageFS:()=>BAe,_shadersMetadataStageVS:()=>HAe,_shadersModelClippingPlanesStageFS:()=>vAe,_shadersModelClippingPolygonsStageFS:()=>TAe,_shadersModelClippingPolygonsStageVS:()=>CAe,_shadersModelColorStageFS:()=>_Ae,_shadersModelFS:()=>WMe,_shadersModelFlattenStageFS:()=>XMe,_shadersModelFlattenStageVS:()=>OMe,_shadersModelSilhouetteStageFS:()=>EMe,_shadersModelSilhouetteStageVS:()=>LMe,_shadersModelSplitterStageFS:()=>IMe,_shadersModelVS:()=>NMe,_shadersModifiedReinhardTonemapping:()=>a5e,_shadersMorphTargetsStageVS:()=>tMe,_shadersNightVision:()=>s5e,_shadersNormalMapMaterial:()=>ISe,_shadersOctree:()=>z5e,_shadersPassThrough:()=>kM,_shadersPassThroughDepth:()=>C6,_shadersPbrNeutralTonemapping:()=>r5e,_shadersPerInstanceColorAppearanceFS:()=>$Le,_shadersPerInstanceColorAppearanceVS:()=>ePe,_shadersPerInstanceFlatColorAppearanceFS:()=>vue,_shadersPerInstanceFlatColorAppearanceVS:()=>tPe,_shadersPointCloudEyeDomeLighting:()=>zRe,_shadersPointCloudStylingStageVS:()=>nMe,_shadersPointPrimitiveCollectionFS:()=>nB,_shadersPointPrimitiveCollectionVS:()=>LLe,_shadersPolygonSignedDistanceFS:()=>JIe,_shadersPolylineArrowMaterial:()=>RSe,_shadersPolylineColorAppearanceVS:()=>JLe,_shadersPolylineCommon:()=>K9,_shadersPolylineDashMaterial:()=>ASe,_shadersPolylineFS:()=>bue,_shadersPolylineGlowMaterial:()=>MSe,_shadersPolylineMaterialAppearanceVS:()=>jLe,_shadersPolylineOutlineMaterial:()=>VSe,_shadersPolylineShadowVolumeFS:()=>HLe,_shadersPolylineShadowVolumeMorphFS:()=>zLe,_shadersPolylineShadowVolumeMorphVS:()=>YLe,_shadersPolylineShadowVolumeVS:()=>KLe,_shadersPolylineVS:()=>YPe,_shadersPostProcessRain:()=>Sgt,_shadersPostProcessSnow:()=>wgt,_shadersPrimitiveOutlineStageFS:()=>sMe,_shadersPrimitiveOutlineStageVS:()=>aMe,_shadersRGBToHSB:()=>zEe,_shadersRGBToHSL:()=>YEe,_shadersRGBToXYZ:()=>KEe,_shadersReinhardTonemapping:()=>l5e,_shadersReprojectWebMercatorFS:()=>YVe,_shadersReprojectWebMercatorVS:()=>KVe,_shadersRimLightingMaterial:()=>GSe,_shadersSelectedFeatureIdStageCommon:()=>yse,_shadersShadowVolumeAppearanceFS:()=>Cue,_shadersShadowVolumeAppearanceVS:()=>qLe,_shadersShadowVolumeFS:()=>PQ,_shadersSilhouette:()=>u5e,_shadersSkinningStageVS:()=>hMe,_shadersSkyAtmosphereCommon:()=>Hse,_shadersSkyAtmosphereFS:()=>dGe,_shadersSkyAtmosphereVS:()=>pGe,_shadersSkyBoxFS:()=>mGe,_shadersSkyBoxVS:()=>xGe,_shadersSlopeRampMaterial:()=>FSe,_shadersStripeMaterial:()=>DSe,_shadersSunFS:()=>gGe,_shadersSunTextureFS:()=>yGe,_shadersSunVS:()=>_Ge,_shadersTexturedMaterialAppearanceFS:()=>UPe,_shadersTexturedMaterialAppearanceVS:()=>BPe,_shadersVector3DTileClampedPolylinesFS:()=>oVe,_shadersVector3DTileClampedPolylinesVS:()=>nVe,_shadersVector3DTilePolylinesVS:()=>rVe,_shadersVectorTileVS:()=>vse,_shadersVerticalExaggerationStageVS:()=>pMe,_shadersViewportQuadFS:()=>rFe,_shadersViewportQuadVS:()=>Phe,_shadersVoxelFS:()=>F5e,_shadersVoxelUtils:()=>G5e,_shadersVoxelVS:()=>D5e,_shadersWater:()=>WSe,_shadersWaterMaskMaterial:()=>NSe,_shadersXYZToRGB:()=>yLe,_shadersacesTonemapping:()=>Nwe,_shadersalphaWeight:()=>Wwe,_shadersantialias:()=>Zwe,_shadersapplyHSBShift:()=>Owe,_shadersapproximateSphericalCoordinates:()=>Xwe,_shadersapproximateTanh:()=>kwe,_shadersbackFacing:()=>Uwe,_shadersbranchFreeTernary:()=>Bwe,_shaderscascadeColor:()=>Hwe,_shaderscascadeDistance:()=>zwe,_shaderscascadeMatrix:()=>Ywe,_shaderscascadeWeights:()=>Kwe,_shadersclipPolygons:()=>Jwe,_shaderscolumbusViewMorph:()=>jwe,_shaderscomputeAtmosphereColor:()=>Qwe,_shaderscomputeGroundAtmosphereScattering:()=>qwe,_shaderscomputePosition:()=>$we,_shaderscomputeScattering:()=>eEe,_shadersconvertUvToBox:()=>U5e,_shadersconvertUvToCylinder:()=>B5e,_shadersconvertUvToEllipsoid:()=>H5e,_shaderscosineAndSine:()=>tEe,_shadersdecompressTextureCoordinates:()=>iEe,_shadersdegreesPerRadian:()=>HSe,_shadersdepthClamp:()=>rEe,_shadersdepthRange:()=>zSe,_shadersdepthRangeStruct:()=>Iwe,_shaderseastNorthUpToEyeCoordinates:()=>nEe,_shadersellipsoidContainsPoint:()=>oEe,_shadersellipsoidTextureCoordinates:()=>aEe,_shadersepsilon1:()=>YSe,_shadersepsilon2:()=>KSe,_shadersepsilon3:()=>JSe,_shadersepsilon4:()=>jSe,_shadersepsilon5:()=>QSe,_shadersepsilon6:()=>qSe,_shadersepsilon7:()=>$Se,_shadersequalsEpsilon:()=>sEe,_shaderseyeOffset:()=>lEe,_shaderseyeToWindowCoordinates:()=>uEe,_shadersfastApproximateAtan:()=>cEe,_shadersfog:()=>hEe,_shadersgammaCorrect:()=>dEe,_shadersgeodeticSurfaceNormal:()=>pEe,_shadersgetDefaultMaterial:()=>fEe,_shadersgetDynamicAtmosphereLightDirection:()=>mEe,_shadersgetLambertDiffuse:()=>xEe,_shadersgetSpecular:()=>gEe,_shadersgetWaterNoise:()=>yEe,_shadershue:()=>bEe,_shadersinfinity:()=>ewe,_shadersinverseGamma:()=>CEe,_shadersisEmpty:()=>TEe,_shadersisFull:()=>SEe,_shaderslatitudeToWebMercatorFraction:()=>wEe,_shaderslineDistance:()=>LEe,_shaderslinearToSrgb:()=>EEe,_shadersluminance:()=>PEe,_shadersmaterial:()=>Rwe,_shadersmaterialInput:()=>Awe,_shadersmaximumComponent:()=>IEe,_shadersmetersPerPixel:()=>REe,_shadersmodelMaterial:()=>Mwe,_shadersmodelToWindowCoordinates:()=>AEe,_shadersmodelVertexOutput:()=>Vwe,_shadersmultiplyWithColorBalance:()=>MEe,_shadersnearFarScalar:()=>VEe,_shadersoctDecode:()=>GEe,_shadersoneOverPi:()=>twe,_shadersoneOverTwoPi:()=>iwe,_shaderspackDepth:()=>FEe,_shaderspassCesium3DTile:()=>rwe,_shaderspassCesium3DTileClassification:()=>nwe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>owe,_shaderspassClassification:()=>awe,_shaderspassCompute:()=>swe,_shaderspassEnvironment:()=>lwe,_shaderspassGlobe:()=>uwe,_shaderspassOpaque:()=>cwe,_shaderspassOverlay:()=>hwe,_shaderspassTerrainClassification:()=>dwe,_shaderspassTranslucent:()=>pwe,_shaderspassVoxels:()=>fwe,_shaderspbrLighting:()=>DEe,_shaderspbrNeutralTonemapping:()=>NEe,_shadersphong:()=>WEe,_shaderspi:()=>mwe,_shaderspiOverFour:()=>xwe,_shaderspiOverSix:()=>gwe,_shaderspiOverThree:()=>ywe,_shaderspiOverTwo:()=>_we,_shadersplaneDistance:()=>ZEe,_shaderspointAlongRay:()=>OEe,_shadersradiansPerDegree:()=>vwe,_shadersray:()=>Gwe,_shadersrayEllipsoidIntersectionInterval:()=>XEe,_shadersraySegment:()=>Fwe,_shadersraySphereIntersectionInterval:()=>kEe,_shadersreadDepth:()=>UEe,_shadersreadNonPerspective:()=>BEe,_shadersreverseLogDepth:()=>HEe,_shadersround:()=>JEe,_shaderssaturation:()=>jEe,_shaderssceneMode2D:()=>bwe,_shaderssceneMode3D:()=>Cwe,_shaderssceneModeColumbusView:()=>Twe,_shaderssceneModeMorphing:()=>Swe,_shadersshadowDepthCompare:()=>QEe,_shadersshadowParameters:()=>Dwe,_shadersshadowVisibility:()=>qEe,_shaderssignNotZero:()=>$Ee,_shaderssolarRadius:()=>wwe,_shaderssphericalHarmonics:()=>eLe,_shaderssrgbToLinear:()=>tLe,_shaderstangentToEyeSpaceMatrix:()=>iLe,_shaderstextureCube:()=>rLe,_shadersthreePiOver2:()=>Ewe,_shaderstransformPlane:()=>nLe,_shaderstranslateRelativeToEye:()=>oLe,_shaderstranslucentPhong:()=>aLe,_shaderstranspose:()=>sLe,_shaderstwoPi:()=>Lwe,_shadersunpackClippingExtents:()=>lLe,_shadersunpackDepth:()=>uLe,_shadersunpackFloat:()=>cLe,_shadersunpackUint:()=>hLe,_shadersvalueTransform:()=>dLe,_shadersvertexLogDepth:()=>pLe,_shaderswebMercatorMaxLatitude:()=>Pwe,_shaderswindowToEyeCoordinates:()=>fLe,_shaderswriteDepthClamp:()=>mLe,_shaderswriteLogDepth:()=>xLe,_shaderswriteNonPerspective:()=>gLe,addBuffer:()=>_Re,addDefaults:()=>hRe,addExtensionsRequired:()=>xRe,addExtensionsUsed:()=>pO,addPipelineExtras:()=>q7,addToArray:()=>n1,appendForwardSlash:()=>DTe,arrayRemoveDuplicates:()=>Mg,barycentricCoordinates:()=>nue,binarySearch:()=>Nx,buildModuleUrl:()=>oa,buildVoxelDrawCommands:()=>j5e,clipper2lib:()=>rG,clone:()=>zn,combine:()=>va,computeFlyToLocationForRectangle:()=>hhe,createBillboardPointCallback:()=>the,createBlurStage:()=>fle,createCommand:()=>Il,createDefaultImageryProviderViewModels:()=>bDe,createDefaultTerrainProviderViewModels:()=>CDe,createEdgeStage:()=>Q4,createElevationBandMaterial:()=>Pxt,createFragmentFromTemplate:()=>ZFe,createGooglePhotorealistic3DTileset:()=>Ixt,createGuid:()=>du,createMaterialPropertyDescriptor:()=>Ey,createOsmBuildingsAsync:()=>Rxt,createPropertyDescriptor:()=>Ii,createRawPropertyDescriptor:()=>vb,createTangentSpaceDebugPrimitive:()=>Axt,createTaskProcessorWorker:()=>Ggt,createUniform:()=>kSe,createUniformArray:()=>BSe,createWorldBathymetryAsync:()=>cFe,createWorldImageryAsync:()=>zB,createWorldTerrainAsync:()=>gde,decodeGoogleEarthEnterpriseData:()=>dFe,decodeVectorPolylinePositions:()=>sVe,defaultValue:()=>Zmt,defer:()=>fp,defined:()=>F,demodernizeShader:()=>_Le,deprecationWarning:()=>pL,destroyObject:()=>yr,exportKml:()=>fmt,fflate_module:()=>QFe,findAccessorMinMax:()=>$7,findContentMetadata:()=>nhe,findGroupMetadata:()=>ohe,findTileMetadata:()=>fVe,forEachTextureInMaterial:()=>Lce,formatError:()=>_H,fragment:()=>Lgt,freezeRenderState:()=>utt,getAbsoluteUri:()=>$B,getAccessorByteStride:()=>XF,getBaseUri:()=>WTe,getBinaryAccessor:()=>CM,getClipAndStyleCode:()=>bGe,getClippingFunction:()=>wq,getComponentReader:()=>U7,getElement:()=>Qh,getExtensionFromUri:()=>PF,getFilenameFromUri:()=>v7,getImageFromTypedArray:()=>ZLe,getImagePixels:()=>BZ,getJsonFromTypedArray:()=>Q_,getMagic:()=>jz,getMetadataClassProperty:()=>oGe,getMetadataProperty:()=>sGe,getStringFromTypedArray:()=>UF,getTimestamp:()=>lh,hasExtension:()=>ld,heightReferenceOnEntityPropertyChanged:()=>D7,isBitSet:()=>m1,isBlobUri:()=>Kle,isCrossOriginUrl:()=>HZ,isDataUri:()=>e7,isLeapYear:()=>YZ,knockout:()=>sr,knockout_3_5_1:()=>VV,knockout_es5:()=>fDe,libgif:()=>oIe,loadAndExecuteScript:()=>Jle,loadCRN:()=>qmt,loadCubeMap:()=>fGe,loadDDS:()=>$le,loadImageFromTypedArray:()=>Jz,loadKTX2:()=>IF,loadView:()=>Ide,mergeSort:()=>b4,moveTechniqueRenderStates:()=>mRe,moveTechniquesToExtension:()=>gRe,numberOfComponentsForType:()=>hO,objFS:()=>iDe,objectToQuery:()=>jle,oneTimeWarning:()=>aa,packer:()=>ULe,parseBatchTable:()=>$z,parseDefines:()=>oDe,parseFeatureMetadataLegacy:()=>lRe,parseGlb:()=>pRe,parseResponseHeaders:()=>ZTe,parseStructuralMetadata:()=>sRe,pickModel:()=>zMe,pointInsideTriangle:()=>nxt,preprocess3DTileContent:()=>fq,processVoxelProperties:()=>J5e,queryToObject:()=>lI,rasterizeHTML_allinone:()=>VGe,readAccessorPacked:()=>vRe,removeExtension:()=>h6,removeExtensionsRequired:()=>dRe,removeExtensionsUsed:()=>Ece,removePipelineExtras:()=>fRe,removeUnusedElements:()=>yRe,remove_primitive:()=>M6,resizeImageToNextPowerOfTwo:()=>EQ,sampleTerrain:()=>Sq,sampleTerrainMostDetailed:()=>cR,scaleToGeodeticSurface:()=>eue,srgbToLinear:()=>jhe,subdivideArray:()=>QLe,subscribeAndEvaluate:()=>Eb,svgCompassGyro:()=>HFe,svgCompassOuterRing:()=>BFe,svgCompassRotationMarker:()=>zFe,svgReset:()=>XFe,turf:()=>Po,updateAccessorComponentTypes:()=>bRe,updateVersion:()=>SRe,usesExtension:()=>um,vertex:()=>Pgt,viewerCesium3DTilesInspectorMixin:()=>oyt,viewerCesiumInspectorMixin:()=>ayt,viewerCesiumNavigationMixin:()=>igt,viewerDragDropMixin:()=>syt,viewerPerformanceWatchdogMixin:()=>lyt,viewerVoxelInspectorMixin:()=>uyt,webGLConstantToGlslType:()=>mxt,wrapFunction:()=>_Fe,writeTextToCanvas:()=>H9});we();we();function _$(o=!0){this.async=o}_$.prototype.getXmlHttpRequest=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new ActiveXObject("MsXml2.XmlHttp")};_$.prototype.includeJsText=function(o,f){if(o!=null){var m=document.createElement("script");m.type="text/javascript",m.text=f,o.appendChild(m)}};_$.prototype.includeJsSrc=function(o,f,m){if(o!=null){var x=document.createElement("script");x.type="text/javascript",x.src=f,m&&typeof m=="function"&&(x.onload=m),o.appendChild(x)}};_$.prototype.addJs=function(o,f,m){var x=this.getXmlHttpRequest(),y=this;x.onreadystatechange=function(){x.readyState===4&&(x.status===200||x.status===304?y.includeJsSrc(o,f,m):console.log("XML request error: "+x.statusText+" ("+x.status+")"))},x.open("GET",f,y.async),x.send(null),x.status===404?console.log(f+" is not found"):y.includeJsText(o,x.responseText)};var ex=_$;we();we();var Mji={testModel:"Workers/Model/xiaoche.glb",modelAxis:"Workers/Model/axis.gltf",flyModel:"Workers/Model/fly.glb",divpoint:"Workers/image/divpoint.png",divpoint1:"Workers/image/divpoint1.png",richtextpoint:"Workers/image/richtextpoint1.png",mark:"Workers/image/mark.png",mark1:"Workers/image/mark1.png",TrailLine:"Workers/image/TrailLine.png",road:"Workers/image/road.jpg",colors3:"Workers/image/colors3.png",loading:"Workers/image/loading.gif",smog:"Workers/image/smog.png",penquan:"Workers/image/penquan.png",fire:"Workers/image/fire.png",fire2:"Workers/image/fire2.png",bottomplane:"Workers/image/bottomplane.jpg",MTY0001:"Workers/image/MTY0001.jpg",MTY0002:"Workers/image/MTY0002.jpg",wall:"Workers/image/ggy.jpg",rotate:"Workers/image/rotate.png",move:"Workers/image/move.png",draw:"Workers/image/cursor/draw.cur",water:"Workers/image/waterNormals.jpg",movingRiver:"Workers/image/movingRiver.png",effectCircle:"Workers/image/circle.png",scanCircle:"Workers/image/scan.png",particles:"Workers/image/particles.png",trafficLight:{l_go:"Workers/image/trafficLights/l-go.png",l_wait:"Workers/image/trafficLights/l-wait.png",l_stop:"Workers/image/trafficLights/l-stop.png",l_null:"Workers/image/trafficLights/l-null.png",go:"Workers/image/trafficLights/go.png",wait:"Workers/image/trafficLights/wait.png",stop:"Workers/image/trafficLights/stop.png",null:"Workers/image/trafficLights/null.png",r_go:"Workers/image/trafficLights/r-go.png",r_wait:"Workers/image/trafficLights/r-wait.png",r_stop:"Workers/image/trafficLights/r-stop.png",r_null:"Workers/image/trafficLights/r-null.png",bg:"Workers/image/trafficLights/bg.png"}},$r=Object.freeze(Mji);we();we();we();function Vji(o,f){return o??f}var Ff=Vji;we();var hyt=`// author: \u5F20\u4E39\u948A
`);m.value=m.value.slice(0,x)+w+m.value.slice(y),m.selectionStart=x!==y?x:v,m.selectionEnd=v}else f.ctrlKey&&(f.keyCode===10||f.keyCode===13)&&this.compileShader();return!0};qS.prototype.isDestroyed=function(){return!1};qS.prototype.destroy=function(){let o=this;return this._definedProperties.forEach(function(f){sr.getObservable(o,f).dispose()}),yr(this)};var iNe=qS;function n0e(o,f){o=Qh(o);let m=document.createElement("div"),x=new iNe(f);this._viewModel=x,this._container=o,this._element=m;let y=document.createElement("div");y.textContent="Voxel Inspector",y.className="cesium-cesiumInspector-button",y.setAttribute("data-bind","click: toggleInspector"),m.appendChild(y),m.className="cesium-cesiumInspector cesium-VoxelInspector",m.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),o.appendChild(m);let v=document.createElement("div");v.className="cesium-cesiumInspector-dropDown",m.appendChild(v);let{createSection:C,createCheckbox:T,createRangeInput:S,createButton:w}=sI,E=C(v,"Display","displayVisible","toggleDisplay"),L=C(v,"Transform","transformVisible","toggleTransform"),I=C(v,"Clipping","clippingVisible","toggleClipping"),R=C(v,"Shader","shaderVisible","toggleShader");E.appendChild(T("Depth Test","depthTest")),E.appendChild(T("Show","show")),E.appendChild(T("Disable Update","disableUpdate")),E.appendChild(T("Debug Draw","debugDraw")),E.appendChild(T("Jitter","jitter")),E.appendChild(T("Nearest Sampling","nearestSampling")),E.appendChild(S("Screen Space Error","screenSpaceError",0,128)),E.appendChild(S("Step Size","stepSize",0,2));let P=10,A=10,M=be.PI;L.appendChild(S("Translation X","translationX",-P,+P)),L.appendChild(S("Translation Y","translationY",-P,+P)),L.appendChild(S("Translation Z","translationZ",-P,+P)),L.appendChild(S("Scale X","scaleX",0,+A)),L.appendChild(S("Scale Y","scaleY",0,+A)),L.appendChild(S("Scale Z","scaleZ",0,+A)),L.appendChild(S("Heading","angleX",-M,+M)),L.appendChild(S("Pitch","angleY",-M,+M)),L.appendChild(S("Roll","angleZ",-M,+M)),ybe("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ","shapeIsBox",I),ybe("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight","shapeIsEllipsoid",I),ybe("Max Radius","Min Radius","Max Angle","Min Angle","Max Height","Min Height","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxAngle","clippingCylinderMinAngle","clippingCylinderMaxHeight","clippingCylinderMinHeight","shapeIsCylinder",I);let V=document.createElement("div");R.appendChild(V);let G=document.createElement("textarea");G.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),V.className="cesium-cesiumInspector-styleEditor",V.appendChild(G);let D=w("Compile (Ctrl+Enter)","compileShader");V.appendChild(D);let N=document.createElement("label");N.style.display="block",N.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),V.appendChild(N),sr.applyBindings(x,m)}Object.defineProperties(n0e.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});n0e.prototype.isDestroyed=function(){return!1};n0e.prototype.destroy=function(){return sr.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),yr(this)};function ybe(o,f,m,x,y,v,C,T,S,w,E,L,I,R){let P=sI.createRangeInputWithDynamicMinMax,A=R.appendChild(document.createElement("div"));A.setAttribute("data-bind",`if: ${I}`),A.appendChild(P(o,C)),A.appendChild(P(f,T)),A.appendChild(P(m,S)),A.appendChild(P(x,w)),A.appendChild(P(y,E)),A.appendChild(P(v,L))}var rNe=n0e;function Aji(o){let f=document.createElement("div");f.className="cesium-viewer-voxelInspectorContainer",o.container.appendChild(f);let m=new rNe(f,o.scene);Object.defineProperties(o,{voxelInspector:{get:function(){return m}}})}var uyt=Aji;globalThis.CESIUM_VERSION="1.129";var o0e="1.129";we();var Vi={};Bie(Vi,{AlphaMode:()=>PH,AlphaPipelineStage:()=>GAe,AnchorPointDirect:()=>FRe,AnchorPointIndirect:()=>DRe,Animation:()=>gDe,AnimationViewModel:()=>yDe,Appearance:()=>Sd,ApproximateTerrainHeights:()=>jh,ArcGISTiledElevationTerrainProvider:()=>fde,ArcGisBaseMapType:()=>NG,ArcGisMapServerImageryProvider:()=>d1,ArcGisMapService:()=>LE,ArcType:()=>qa,ArticulationStageType:()=>YC,AssociativeArray:()=>zo,Atmosphere:()=>_ce,AtmospherePipelineStage:()=>pAe,AttributeCompression:()=>Ru,AttributeType:()=>Is,AutoExposure:()=>h5e,AutomaticUniforms:()=>vB,Axis:()=>D0,AxisAlignedBoundingBox:()=>m7,B3dmLoader:()=>KRe,B3dmParser:()=>YRe,Base64Encoder:()=>bae,BaseLayerPicker:()=>vDe,BaseLayerPickerViewModel:()=>_De,BatchTable:()=>Cz,BatchTableHierarchy:()=>Nce,BatchTexture:()=>KT,BatchTexturePipelineStage:()=>FAe,Billboard:()=>Td,BillboardCollection:()=>jE,BillboardGraphics:()=>oV,BillboardLoadState:()=>Om,BillboardTexture:()=>fz,BillboardVisualizer:()=>gIe,BingMapsGeocoderService:()=>Smt,BingMapsImageryProvider:()=>vO,BingMapsStyle:()=>phe,BlendEquation:()=>F_,BlendFunction:()=>Kh,BlendOption:()=>F0,BlendTexture:()=>hz,BlendingState:()=>ru,BoundingRectangle:()=>Er,BoundingSphere:()=>Ei,BoundingSphereState:()=>Xo,BoundingVolumeSemantics:()=>ehe,BoxEmitter:()=>Sde,BoxGeometry:()=>g1,BoxGeometryUpdater:()=>yIe,BoxGraphics:()=>Tue,BoxOutlineGeometry:()=>BS,BrdfLutGenerator:()=>g3e,Buffer:()=>mo,BufferLoader:()=>j7,BufferUsage:()=>rn,CPUStylingPipelineStage:()=>ZAe,CallbackPositionProperty:()=>PVe,CallbackProperty:()=>Fr,Camera:()=>Ts,CameraEventAggregator:()=>C5e,CameraEventType:()=>Jc,CameraFlightPath:()=>qPe,Cartesian2:()=>rt,Cartesian3:()=>Z,Cartesian4:()=>zt,Cartographic:()=>Gt,CartographicGeocoderService:()=>wmt,CatmullRomSpline:()=>Emt,Cesium3DContentGroup:()=>Jce,Cesium3DTile:()=>Wb,Cesium3DTileBatchTable:()=>dq,Cesium3DTileColorBlendMode:()=>xI,Cesium3DTileContent:()=>xxt,Cesium3DTileContentFactory:()=>rhe,Cesium3DTileContentState:()=>_d,Cesium3DTileContentType:()=>N_,Cesium3DTileFeature:()=>Ss,Cesium3DTileFeatureTable:()=>r4,Cesium3DTileOptimizationHint:()=>xG,Cesium3DTileOptimizations:()=>she,Cesium3DTilePass:()=>sh,Cesium3DTilePassState:()=>qm,Cesium3DTilePointFeature:()=>bZ,Cesium3DTileRefine:()=>Km,Cesium3DTileStyle:()=>ZS,Cesium3DTileStyleEngine:()=>CVe,Cesium3DTilesInspector:()=>SDe,Cesium3DTilesInspectorViewModel:()=>TDe,Cesium3DTilesVoxelProvider:()=>gxt,Cesium3DTileset:()=>_0,Cesium3DTilesetBaseTraversal:()=>SVe,Cesium3DTilesetCache:()=>vVe,Cesium3DTilesetGraphics:()=>Pue,Cesium3DTilesetHeatmap:()=>bVe,Cesium3DTilesetMetadata:()=>ahe,Cesium3DTilesetMostDetailedTraversal:()=>TVe,Cesium3DTilesetSkipTraversal:()=>wVe,Cesium3DTilesetStatistics:()=>DG,Cesium3DTilesetTraversal:()=>xv,Cesium3DTilesetVisualizer:()=>LVe,CesiumInspector:()=>EDe,CesiumInspectorViewModel:()=>wDe,CesiumNavigation:()=>JFe,CesiumRenderPass:()=>nDe,CesiumTerrainProvider:()=>N4,CesiumWidget:()=>A4,Check:()=>Da,CheckerboardMaterialProperty:()=>ele,CircleEmitter:()=>TFe,CircleGeometry:()=>Vmt,CircleOutlineGeometry:()=>Gmt,CircleWaveMaterialProperty:()=>pz,ClassificationModelDrawCommand:()=>FMe,ClassificationPipelineStage:()=>DAe,ClassificationPrimitive:()=>Tz,ClassificationType:()=>hc,ClearCommand:()=>ku,ClippingPlane:()=>Jp,ClippingPlaneCollection:()=>Ox,ClippingPolygon:()=>kb,ClippingPolygonCollection:()=>Ry,Clock:()=>Az,ClockRange:()=>Gx,ClockStep:()=>kd,ClockViewModel:()=>xDe,CloudCollection:()=>Sxt,CloudType:()=>hle,CollectionSource:()=>Uit,Color:()=>Xe,ColorBlendMode:()=>II,ColorGeometryInstanceAttribute:()=>yo,ColorMaterialProperty:()=>Ba,Command:()=>Wgt,CommandLoader:()=>jFe,ComponentDatatype:()=>Qt,Composite3DTileContent:()=>KMe,CompositeEntityCollection:()=>tmt,CompositeMaterialProperty:()=>ile,CompositePositionProperty:()=>i1,CompositeProperty:()=>rS,CompressedTextureBuffer:()=>DS,ComputeCommand:()=>cV,ComputeEngine:()=>l3e,ComputeRegionBox:()=>Kxt,ConditionsExpression:()=>kLe,ConeEmitter:()=>X4,ConicArcSensor:()=>ble,ConicArcSensorCollection:()=>Agt,ConicArcSensorGeometry:()=>Tle,ConicArcSensorGraphics:()=>vle,ConicArcSensorOutlineGeometry:()=>Sle,ConstantPositionProperty:()=>hI,ConstantProperty:()=>Qc,ConstantSpline:()=>eAe,ConstructionWorker:()=>Hit,ContentMetadata:()=>cVe,Context:()=>m3e,ContextLimits:()=>co,CoplanarPolygonGeometry:()=>lO,CoplanarPolygonGeometryLibrary:()=>DB,CoplanarPolygonOutlineGeometry:()=>tM,CornerType:()=>ad,CorrelationGroup:()=>NRe,CorridorGeometry:()=>N7,CorridorGeometryLibrary:()=>oh,CorridorGeometryUpdater:()=>bIe,CorridorGraphics:()=>Sue,CorridorOutlineGeometry:()=>vIe,Credit:()=>Oa,CreditDisplay:()=>y3e,CubeMap:()=>Ig,CubeMapFace:()=>ySe,CubicRealPolynomial:()=>r7,CullFace:()=>yh,CullingVolume:()=>pm,CumulusCloud:()=>wL,CustomDataSource:()=>Aue,CustomHeightmapTerrainProvider:()=>Fmt,CustomMercatorProjection:()=>xz,CustomShader:()=>P1,CustomShaderManagerEx:()=>yue,CustomShaderMode:()=>h7,CustomShaderPipelineStage:()=>zAe,CustomShaderTranslucencyMode:()=>KG,CustomTilingScheme:()=>Ert,CylinderGeometry:()=>W7,CylinderGeometryLibrary:()=>pce,CylinderGeometryUpdater:()=>CIe,CylinderGraphics:()=>wue,CylinderOutlineGeometry:()=>Z7,CzmlDataSource:()=>qq,DataSource:()=>Sy,DataSourceClock:()=>r9,DataSourceCollection:()=>mIe,DataSourceDisplay:()=>Cq,DebugAppearance:()=>Rxt,DebugCameraPrimitive:()=>Bp,DebugInspector:()=>M5e,DebugModelMatrixPrimitive:()=>LFe,DefaultProxy:()=>Nmt,DepthFunction:()=>wy,DepthPlane:()=>b3e,DequantizationPipelineStage:()=>YAe,DerivedCommand:()=>Cy,DeveloperError:()=>wt,DeviceOrientationCameraController:()=>C3e,DirectionalLight:()=>k4,DiscardEmptyTileImagePolicy:()=>fhe,DiscardMissingTileImagePolicy:()=>XVe,DistanceDisplayCondition:()=>So,DistanceDisplayConditionGeometryInstanceAttribute:()=>uh,DistanceLegendViewModel:()=>OFe,DoubleEndedPriorityQueue:()=>Hhe,DoublyLinkedList:()=>gq,DracoLoader:()=>Q7,DrawCommand:()=>En,DynamicAtmosphereLightingType:()=>k7,DynamicEnvironmentMapManager:()=>LH,DynamicGeometryBatch:()=>cce,DynamicGeometryUpdater:()=>Vh,ECharts:()=>p7,EarthOrientationParameters:()=>JTe,EarthOrientationParametersSample:()=>i7,EasingFunction:()=>J_,EllipseGeometry:()=>TS,EllipseGeometryLibrary:()=>T1,EllipseGeometryUpdater:()=>TIe,EllipseGraphics:()=>Eue,EllipseOutlineGeometry:()=>LI,Ellipsoid:()=>yi,EllipsoidGeodesic:()=>Hx,EllipsoidGeometry:()=>Jm,EllipsoidGeometryUpdater:()=>LIe,EllipsoidGraphics:()=>Ez,EllipsoidOutlineGeometry:()=>Fb,EllipsoidPrimitive:()=>a3e,EllipsoidRhumbLine:()=>lS,EllipsoidSurfaceAppearance:()=>iO,EllipsoidTangentPlane:()=>vv,EllipsoidTerrainProvider:()=>IS,EllipsoidalOccluder:()=>k9,Empty3DTileContent:()=>x6,EncodedCartesian3:()=>$u,Entity:()=>bd,EntityCluster:()=>AF,EntityCollection:()=>kS,EntityView:()=>GVe,Event:()=>Tr,EventHelper:()=>bv,ExpandBySmartEarth:()=>mb,ExpandByTerra:()=>Lrt,Expression:()=>JG,ExpressionNodeType:()=>ao,ExternalParameter:()=>Ty,ExtrapolationType:()=>nI,FBXLoader:()=>eDe,FBXPrimitive:()=>Ade,FBXTreeParser:()=>$Fe,FeatureDataProvider:()=>Kue,FeatureDetection:()=>ia,FeatureIdPipelineStage:()=>cq,FeatureJsonData:()=>Gz,FisheyeProjectionMap:()=>V7,FisheyeProjectionMapShader:()=>Bj,FlattenVS:()=>Egt,FlowEcharts:()=>Pde,Fog:()=>S3e,ForEach:()=>Or,FrameRateMonitor:()=>PFe,FrameState:()=>w3e,Framebuffer:()=>Hp,FramebufferManager:()=>Pc,Frozen:()=>si,FrustumCommands:()=>Vhe,FrustumGeometry:()=>Fz,FrustumOutlineGeometry:()=>M7,Fullscreen:()=>km,FullscreenButton:()=>qDe,FullscreenButtonViewModel:()=>QDe,GWBaiduImageryProvider:()=>Nz,GeoJsonDataSource:()=>qZ,GeoJsonLoader:()=>QRe,GeocodeType:()=>e$,Geocoder:()=>RDe,GeocoderService:()=>_de,GeocoderViewModel:()=>IDe,GeographicProjection:()=>y0,GeographicTilingScheme:()=>_h,Geometry:()=>xa,Geometry3DTileContent:()=>JMe,GeometryAttribute:()=>Xr,GeometryAttributes:()=>Zc,GeometryFactory:()=>Xmt,GeometryInstance:()=>Wn,GeometryInstanceAttribute:()=>t1,GeometryOffsetAttribute:()=>ul,GeometryPipeline:()=>qu,GeometryPipelineStage:()=>jAe,GeometryType:()=>aG,GeometryUpdater:()=>cd,GeometryUpdaterSet:()=>X7,GeometryVisualizer:()=>YIe,GetFeatureInfoFormat:()=>nQ,GifImageProperty:()=>gst,Globe:()=>t3e,GlobeDepth:()=>A3e,GlobeSurfaceShaderSet:()=>ZVe,GlobeSurfaceTile:()=>XM,GlobeSurfaceTileProvider:()=>qVe,GlobeTranslucency:()=>Rq,GlobeTranslucencyFramebuffer:()=>M3e,GlobeTranslucencyState:()=>L3e,GltfBufferViewLoader:()=>Cce,GltfDracoLoader:()=>Tce,GltfGpmLoader:()=>ZRe,GltfGpmLocal:()=>Dce,GltfImageLoader:()=>Sce,GltfIndexBufferLoader:()=>wce,GltfInstanceLoader:()=>Wce,GltfJsonLoader:()=>Pce,GltfLoader:()=>fO,GltfLoaderUtil:()=>WM,GltfMeshPrimitiveGpmLoader:()=>URe,GltfStructuralMetadataLoader:()=>VRe,GltfTextureLoader:()=>Ice,GltfVertexBufferLoader:()=>Rce,GoogleEarthEnterpriseImageryProvider:()=>Axt,GoogleEarthEnterpriseMapsProvider:()=>BVe,GoogleEarthEnterpriseMetadata:()=>Z4,GoogleEarthEnterpriseTerrainData:()=>cle,GoogleEarthEnterpriseTerrainProvider:()=>Ymt,GoogleEarthEnterpriseTileInformation:()=>sFe,GoogleGeocoderService:()=>Jmt,GoogleMaps:()=>hQ,GpxDataSource:()=>QGe,Graticules:()=>nce,GregorianDate:()=>dz,GridImageryProvider:()=>Mxt,GridMaterialProperty:()=>rle,GroundGeometryUpdater:()=>tu,GroundPolylineGeometry:()=>vz,GroundPolylinePrimitive:()=>FF,GroundPrimitive:()=>XS,GroupMetadata:()=>Ese,GwBufferAnalysis:()=>oce,HeadingPitchRange:()=>R1,HeadingPitchRoll:()=>rs,Heap:()=>XTe,HeightMap:()=>bgt,HeightReference:()=>Mn,HeightmapEncoding:()=>dF,HeightmapTerrainData:()=>yL,HeightmapTessellator:()=>dhe,HermitePolynomialApproximation:()=>NGe,HermiteSpline:()=>p6,HilbertOrder:()=>bse,HomeButton:()=>MDe,HomeButtonViewModel:()=>ADe,HorizontalOrigin:()=>ec,HugeAdapter:()=>hq,I3SBuildingSceneLayerExplorer:()=>$gt,I3SBuildingSceneLayerExplorerViewModel:()=>VDe,I3SDataProvider:()=>gR,I3SDecoder:()=>SGe,I3SFeature:()=>EGe,I3SField:()=>LGe,I3SGeometry:()=>Kse,I3SLayer:()=>qhe,I3SNode:()=>Jse,I3SStatistics:()=>IGe,I3SSublayer:()=>RGe,I3SSymbology:()=>PGe,I3dmLoader:()=>$Re,I3dmParser:()=>qRe,ITwinData:()=>Vxt,ITwinPlatform:()=>wg,Iau2000Orientation:()=>r3e,Iau2006XysData:()=>QTe,Iau2006XysSample:()=>rue,IauOrientationAxes:()=>n3e,IauOrientationParameters:()=>i3e,ImageBasedLighting:()=>aq,ImageBasedLightingPipelineStage:()=>mAe,ImageCombine:()=>mue,ImageMaterialProperty:()=>O0,Imagery:()=>_he,ImageryLayer:()=>Up,ImageryLayerCollection:()=>$Ve,ImageryLayerFeatureInfo:()=>JF,ImageryProvider:()=>QI,ImageryState:()=>sl,Implicit3DTileContent:()=>wse,ImplicitAvailabilityBitstream:()=>Tse,ImplicitMetadataView:()=>Qce,ImplicitSubdivisionScheme:()=>Rg,ImplicitSubtree:()=>qce,ImplicitSubtreeCache:()=>bFe,ImplicitSubtreeMetadata:()=>$Me,ImplicitTileCoordinates:()=>che,ImplicitTileset:()=>uhe,IndexDatatype:()=>Fn,InfoBox:()=>DDe,InfoBoxViewModel:()=>FDe,InspectorShared:()=>sI,InstanceAttributeSemantic:()=>Hm,InstancingPipelineStage:()=>IAe,InterpolationAlgorithm:()=>jmt,InterpolationType:()=>TG,Intersect:()=>jo,IntersectionTests:()=>fc,Intersections2D:()=>D4,Interval:()=>VE,InvertClassification:()=>Ahe,Ion:()=>GG,IonGeocodeProviderType:()=>XZ,IonGeocoderService:()=>Cde,IonImageryProvider:()=>WG,IonResource:()=>FG,IonWorldImageryStyle:()=>HB,Iso8601:()=>wn,JobScheduler:()=>P3e,JobType:()=>G_,JsonMetadataTable:()=>H7,JulianDate:()=>$t,KTX2Transcoder:()=>BTe,KeyboardEventModifier:()=>lv,KeyframeNode:()=>gd,KmlCamera:()=>bPe,KmlDataSource:()=>I7,KmlLookAt:()=>CPe,KmlTour:()=>TPe,KmlTourFlyTo:()=>SPe,KmlTourWait:()=>EPe,Label:()=>bQ,LabelCollection:()=>tV,LabelGraphics:()=>Lz,LabelStyle:()=>f0,LabelVisualizer:()=>KIe,LagrangePolynomialApproximation:()=>ZGe,LeapSecond:()=>xh,Light:()=>Fxt,LightingModel:()=>uv,LightingPipelineStage:()=>qAe,LinearApproximation:()=>Uue,LinearSampler:()=>qI,LinearSpline:()=>uq,MTLLoader:()=>tDe,ManagedArray:()=>RI,MapMode2D:()=>wI,MapProjection:()=>$mt,MapboxImageryProvider:()=>bO,MapboxStyleImageryProvider:()=>Nxt,Material:()=>Co,MaterialAppearance:()=>N0,MaterialPipelineStage:()=>eMe,MaterialProperty:()=>Lg,Math:()=>be,Matrix2:()=>Z0,Matrix3:()=>Ut,Matrix4:()=>Ee,Megatexture:()=>zhe,MeshParser:()=>qFe,MeshPhongMaterial:()=>fQ,MeshPrimitiveGpmLocal:()=>kRe,MetadataClass:()=>Qz,MetadataClassProperty:()=>Kz,MetadataComponentType:()=>$o,MetadataEntity:()=>fu,MetadataEnum:()=>RRe,MetadataEnumValue:()=>IRe,MetadataPicking:()=>I3e,MetadataPickingPipelineStage:()=>YP,MetadataPipelineStage:()=>EM,MetadataSchema:()=>HF,MetadataSchemaLoader:()=>Ace,MetadataSemantic:()=>$ce,MetadataTable:()=>dO,MetadataTableProperty:()=>aRe,MetadataType:()=>fo,MipmapHint:()=>Z9,Model:()=>Ay,Model3DTileContent:()=>jP,ModelAlphaOptions:()=>vMe,ModelAnimation:()=>aAe,ModelAnimationChannel:()=>nAe,ModelAnimationCollection:()=>sAe,ModelAnimationLoop:()=>GE,ModelAnimationState:()=>nG,ModelArticulation:()=>yAe,ModelArticulationStage:()=>gAe,ModelClippingPlanesPipelineStage:()=>bAe,ModelClippingPolygonsPipelineStage:()=>SAe,ModelColorPipelineStage:()=>f6,ModelComponents:()=>ll,ModelDrawCommand:()=>DMe,ModelDrawCommands:()=>ZMe,ModelFeature:()=>lAe,ModelFeatureTable:()=>uAe,ModelFlattenPipelineStage:()=>kMe,ModelGraphics:()=>x7,ModelLightingOptions:()=>MMe,ModelMatrixUpdateStage:()=>AAe,ModelNode:()=>wAe,ModelRenderResources:()=>wMe,ModelRuntimeNode:()=>VAe,ModelRuntimePrimitive:()=>gMe,ModelSceneGraph:()=>UMe,ModelSilhouettePipelineStage:()=>PMe,ModelSkin:()=>_Me,ModelSplitterPipelineStage:()=>RMe,ModelStatistics:()=>BMe,ModelType:()=>jp,ModelUtility:()=>Qs,ModelVisualizer:()=>YMe,Moon:()=>s3e,MorphTargetsPipelineStage:()=>iMe,MorphWeightSpline:()=>ext,MortonOrder:()=>AH,MultiResourceImageryProvider:()=>Wz,MultiResourceTerrainProvider:()=>ace,Multiple3DTileContent:()=>mVe,MultisampleFramebuffer:()=>HRe,NavigationControl:()=>J4,NavigationHelpButton:()=>WDe,NavigationHelpButtonViewModel:()=>NDe,NavigationUtils:()=>j4,NavigationViewModel:()=>dQ,NearFarScalar:()=>ea,NeverTileDiscardPolicy:()=>Wxt,NodeRenderResources:()=>AMe,NodeStatisticsPipelineStage:()=>MAe,NodeTransformationProperty:()=>Lue,OBJLoader:()=>rDe,OBJPrimitive:()=>Mde,OIT:()=>D3e,Occluder:()=>rce,OffsetGeometryInstanceAttribute:()=>Af,OlMVTImageryProvider:()=>Zz,OpenCageGeocoderService:()=>txt,OpenStreetMapImageryProvider:()=>ME,OrderedGroundPrimitiveCollection:()=>xIe,OrientedBoundingBox:()=>Tu,OrthographicFrustum:()=>$a,OrthographicOffCenterFrustum:()=>xm,Packable:()=>ixt,PackableForInterpolation:()=>rxt,Particle:()=>Ede,ParticleBurst:()=>B4,ParticleEmitter:()=>Xxt,ParticleSystem:()=>QS,Pass:()=>xr,PassState:()=>$p,PathGraphics:()=>g7,PathVisualizer:()=>IVe,PeliasGeocoderService:()=>cFe,PerInstanceColorAppearance:()=>ga,PerformanceDisplay:()=>Fq,PerformanceWatchdog:()=>XDe,PerformanceWatchdogViewModel:()=>ODe,PerspectiveFrustum:()=>mc,PerspectiveOffCenterFrustum:()=>JI,PerspectiveProjectionMap:()=>G7,PerspectiveProjectionMapShader:()=>Hj,PerspectiveProjectionMapWithDepth:()=>F7,PerspectiveProjectionMapWithDepthShader:()=>CG,PickDepth:()=>R3e,PickDepthFramebuffer:()=>N3e,PickFramebuffer:()=>W3e,PickGlobeSlope:()=>Nft,PickedMetadataInfo:()=>aGe,Picking:()=>H3e,PickingPipelineStage:()=>rMe,PinBuilder:()=>b7,PixelDatatype:()=>un,PixelFormat:()=>zr,Plane:()=>ca,PlaneGeometry:()=>PIe,PlaneGeometryUpdater:()=>AIe,PlaneGraphics:()=>iPe,PlaneOutlineGeometry:()=>IIe,PntsLoader:()=>HMe,PntsParser:()=>Yce,PointCloud:()=>CGe,PointCloudEyeDomeLighting:()=>sq,PointCloudShading:()=>i4,PointCloudStylingPipelineStage:()=>oMe,PointGraphics:()=>Iue,PointLight:()=>ede,PointPrimitive:()=>Py,PointPrimitiveCollection:()=>iV,PointVisualizer:()=>RVe,PolygonDepth:()=>b9,PolygonDepthFS:()=>Bce,PolygonDepthVS:()=>Hce,PolygonGeometry:()=>Uu,PolygonGeometryLibrary:()=>Al,PolygonGeometryUpdater:()=>VIe,PolygonGraphics:()=>hl,PolygonHierarchy:()=>Zn,PolygonOutlineGeometry:()=>MIe,PolygonPipeline:()=>Ah,Polyline:()=>YI,PolylineArrowMaterialProperty:()=>Mf,PolylineCollection:()=>WF,PolylineColorAppearance:()=>om,PolylineDashMaterialProperty:()=>Ml,PolylineGeometry:()=>B_,PolylineGeometryUpdater:()=>AVe,PolylineGlowMaterialProperty:()=>nle,PolylineGraphics:()=>bI,PolylineMaterialAppearance:()=>Eg,PolylineOutlineMaterialProperty:()=>KM,PolylinePipeline:()=>od,PolylineTrailLinkMaterialProperty:()=>Wft,PolylineVisualizer:()=>VVe,PolylineVolumeGeometry:()=>GIe,PolylineVolumeGeometryLibrary:()=>u9,PolylineVolumeGeometryUpdater:()=>DIe,PolylineVolumeGraphics:()=>Rue,PolylineVolumeOutlineGeometry:()=>FIe,PositionProperty:()=>wz,PositionPropertyArray:()=>dH,PostProcessStage:()=>Sa,PostProcessStageCollection:()=>m5e,PostProcessStageComposite:()=>Vf,PostProcessStageLibrary:()=>$2,PostProcessStageSampleMode:()=>iv,PostProcessStageTextureCache:()=>Ohe,PpeMetadata:()=>XRe,PpeSource:()=>Vgt,PpeTexture:()=>ORe,Primitive:()=>ta,PrimitiveCollection:()=>Ag,PrimitiveLoadPlan:()=>iq,PrimitiveOutlineGenerator:()=>Gce,PrimitiveOutlinePipelineStage:()=>lMe,PrimitivePipeline:()=>jZ,PrimitiveRenderResources:()=>VMe,PrimitiveState:()=>Lf,PrimitiveStatisticsPipelineStage:()=>uMe,PrimitiveType:()=>pn,ProjectionPicker:()=>UDe,ProjectionPickerViewModel:()=>kDe,Property:()=>Nt,PropertyArray:()=>cde,PropertyAttribute:()=>bce,PropertyAttributeProperty:()=>rRe,PropertyBag:()=>qE,PropertyTable:()=>kF,PropertyTexture:()=>Y7,PropertyTextureProperty:()=>tRe,ProviderViewModel:()=>Ef,Proxy:()=>axt,QuadraticRealPolynomial:()=>NE,QuadtreeOccluders:()=>She,QuadtreePrimitive:()=>G1,QuadtreePrimitivezh:()=>Xft,QuadtreeTile:()=>Aq,QuadtreeTileLoadState:()=>Mh,QuadtreeTileProvider:()=>OO,QuantizedMeshTerrainData:()=>xde,QuarticRealPolynomial:()=>pSe,Quaternion:()=>fr,QuaternionSpline:()=>iAe,Queue:()=>aV,RasterizeHtml:()=>M4,Ray:()=>Ma,Rectangle:()=>vi,RectangleCollisionChecker:()=>yce,RectangleGeometry:()=>uO,RectangleGeometryLibrary:()=>by,RectangleGeometryUpdater:()=>kIe,RectangleGraphics:()=>Pz,RectangleOutlineGeometry:()=>mce,RectangularSensor:()=>V6,RectangularSensorFS:()=>mle,RectangularSensorGraphics:()=>Mgt,RectangularSensorPrimitive:()=>cDe,RectangularSensorScanPlaneFS:()=>uDe,RectangularSensorVS:()=>Gde,RectangularSensorVisualizer:()=>hDe,ReferenceFrame:()=>pp,ReferenceProperty:()=>L7,RegionPolygonTexture:()=>DFe,RegionTexture:()=>NFe,RegionWeather:()=>Vde,RenderObjectFactory:()=>tc,RenderState:()=>cn,Renderbuffer:()=>r1,RenderbufferFormat:()=>Pb,Request:()=>hm,RequestErrorEvent:()=>zZ,RequestScheduler:()=>x1,RequestState:()=>pc,RequestType:()=>n2,ResetViewNavigationControl:()=>UFe,Resource:()=>Mr,ResourceCache:()=>qh,ResourceCacheKey:()=>zS,ResourceCacheStatistics:()=>MRe,ResourceLoader:()=>zx,ResourceLoaderState:()=>Zo,Rotation:()=>FI,RuntimeError:()=>Oi,S2Cell:()=>kB,S3MDataSource:()=>Hft,SDFSettings:()=>ev,SampledPositionProperty:()=>nS,SampledProperty:()=>uM,Sampler:()=>Yo,ScaledPositionProperty:()=>Mz,Scene:()=>VO,SceneFramebuffer:()=>Ghe,SceneHeightMap:()=>lDe,SceneHeightWaterPostProcessing:()=>XT,SceneHeightWaterPrimitive:()=>xgt,SceneMode:()=>gi,SceneMode2DPipelineStage:()=>cMe,SceneModePicker:()=>HDe,SceneModePickerViewModel:()=>BDe,SceneTransforms:()=>Ca,SceneTransitioner:()=>b5e,ScreenSpaceCameraController:()=>P5e,ScreenSpaceEventHandler:()=>Lr,ScreenSpaceEventType:()=>Si,SelectedFeatureIdPipelineStage:()=>m6,SelectionIndicator:()=>YDe,SelectionIndicatorViewModel:()=>zDe,Sensor:()=>ygt,SensorVolumePortionToDisplay:()=>ale,ShaderBuilder:()=>kce,ShaderCache:()=>c3e,ShaderDestination:()=>Ji,ShaderFunction:()=>SMe,ShaderProgram:()=>xs,ShaderSource:()=>Wr,ShaderStruct:()=>CMe,ShadowMap:()=>PV,ShadowMapShader:()=>OG,ShadowMode:()=>cl,ShadowVolumeAppearance:()=>gM,ShowGeometryInstanceAttribute:()=>qs,Simon1994PlanetaryPositions:()=>v6,SimplePolylineGeometry:()=>sxt,SingleTileImageryProvider:()=>V1,SkinningPipelineStage:()=>dMe,SkyAtmosphere:()=>zq,SkyBox:()=>GO,SlopeArrow:()=>Dde,SpatialNode:()=>iGe,Spdcf:()=>WRe,SpecularEnvironmentCubeMap:()=>_9,SphereEmitter:()=>H4,SphereGeometry:()=>lxt,SphereOutlineGeometry:()=>sV,Spherical:()=>OGe,Spline:()=>B0,SplitDirection:()=>L1,Splitter:()=>Khe,SpotLight:()=>Yft,StaticGeometryColorBatch:()=>hM,StaticGeometryPerMaterialBatch:()=>dM,StaticGroundGeometryColorBatch:()=>use,StaticGroundGeometryPerMaterialBatch:()=>zIe,StaticGroundPolylinePerMaterialBatch:()=>MVe,StaticOutlineGeometryBatch:()=>cse,StencilConstants:()=>ma,StencilFunction:()=>nu,StencilOperation:()=>Kn,SteppedSpline:()=>tAe,Stereographic:()=>Lb,StorageType:()=>IH,StripeMaterialProperty:()=>ole,StripeOrientation:()=>xF,StructuralMetadata:()=>nR,StyleCommandsNeeded:()=>v9,StyleExpression:()=>kxt,Sun:()=>vGe,SunLight:()=>C4,SunPostProcess:()=>A5e,SupportedImageFormats:()=>GRe,SvgPathBindingHandler:()=>mDe,TaskProcessor:()=>mp,Terrain:()=>VFe,TerrainData:()=>yO,TerrainEncoding:()=>PS,TerrainFillMesh:()=>Che,TerrainFlatten:()=>kO,TerrainFlattenPolygonTexture:()=>WFe,TerrainMesh:()=>_O,TerrainOffsetProperty:()=>dce,TerrainProvider:()=>H_,TerrainQuantization:()=>sv,TerrainRegionWeather:()=>sDe,TerrainState:()=>ds,Texture:()=>Rn,Texture3D:()=>fFe,TextureAtlas:()=>aue,TextureCache:()=>h3e,TextureMagnificationFilter:()=>Xs,TextureManager:()=>OLe,TextureMinificationFilter:()=>Ho,TexturePacker:()=>oue,TextureUniform:()=>cue,TextureWrap:()=>Xn,TileAvailability:()=>kG,TileBoundingRegion:()=>LS,TileBoundingS2Cell:()=>xVe,TileBoundingSphere:()=>bV,TileBoundingVolume:()=>Uxt,TileCoordinatesImageryProvider:()=>l$,TileDiscardPolicy:()=>Bxt,TileEdge:()=>hs,TileImagery:()=>vhe,TileMapServiceImageryProvider:()=>_L,TileMetadata:()=>dVe,TileOrientedBoundingBox:()=>e2,TileProviderError:()=>am,TileReplacementQueue:()=>Ehe,TileSelectionResult:()=>fa,TileState:()=>Hxt,Tileset3DTileContent:()=>eVe,TilesetMetadata:()=>_Ve,TilesetPipelineStage:()=>cAe,TilesetRegionWeather:()=>aDe,TilingScheme:()=>uxt,TimeConstants:()=>cc,TimeDynamicImagery:()=>yhe,TimeDynamicPointCloud:()=>Jhe,TimeInterval:()=>js,TimeIntervalCollection:()=>k_,TimeIntervalCollectionPositionProperty:()=>MH,TimeIntervalCollectionProperty:()=>pH,TimeStandard:()=>cu,Timeline:()=>jDe,TimelineHighlightRange:()=>KDe,TimelineTrack:()=>JDe,Tipsify:()=>mSe,ToggleButtonViewModel:()=>gB,Tonemapper:()=>SZ,TrackingReferenceFrame:()=>wB,Transforms:()=>_r,TranslationRotationScale:()=>I1,TranslucentTileClassification:()=>U3e,TridiagonalSystemSolver:()=>Zce,TrustedServers:()=>qle,TweenCollection:()=>Uhe,UniformState:()=>d3e,UniformType:()=>sa,UrlTemplateGeojsonProvider:()=>jft,UrlTemplateImageryProvider:()=>Hb,UserInterfaceControl:()=>Rde,Utils:()=>TL,VERSION:()=>o0e,VRButton:()=>eNe,VRButtonViewModel:()=>$De,VRTheWorldTerrainProvider:()=>pxt,VaryingType:()=>Y_,Vector3DTileBatch:()=>RH,Vector3DTileClampedPolylines:()=>aVe,Vector3DTileContent:()=>uVe,Vector3DTileGeometry:()=>dZ,Vector3DTilePoints:()=>tVe,Vector3DTilePolygons:()=>iVe,Vector3DTilePolylines:()=>ihe,Vector3DTilePrimitive:()=>jce,VelocityOrientationProperty:()=>XGe,VelocityVectorProperty:()=>Tq,VertexArray:()=>Cu,VertexArrayFacade:()=>o7,VertexAttributeSemantic:()=>Ko,VertexFormat:()=>Yr,VerticalExaggeration:()=>U_,VerticalExaggerationPipelineStage:()=>fMe,VerticalOrigin:()=>jn,VideoSynchronizer:()=>cxt,View:()=>N1,ViewShed:()=>Igt,ViewShedMap:()=>I4,ViewShedMapShader:()=>XG,Viewer:()=>r0e,ViewportQuad:()=>Y4,Visibility:()=>Rl,Visualizer:()=>vmt,VolumeCloud:()=>Nde,VoxelBoxShape:()=>Xq,VoxelCell:()=>V5e,VoxelContent:()=>Bhe,VoxelCylinderShape:()=>kq,VoxelEllipsoidShape:()=>Uq,VoxelInspector:()=>rNe,VoxelInspectorViewModel:()=>iNe,VoxelMetadataOrder:()=>w9,VoxelPrimitive:()=>Hq,VoxelProvider:()=>zxt,VoxelRenderResources:()=>K5e,VoxelShape:()=>Yxt,VoxelShapeType:()=>Vb,VoxelTraversal:()=>rGe,VulkanConstants:()=>fxt,WallGeometry:()=>UIe,WallGeometryLibrary:()=>xce,WallGeometryUpdater:()=>HIe,WallGraphics:()=>y7,WallOutlineGeometry:()=>BIe,WaterFS:()=>jPe,WaterHeightMap:()=>Cgt,WaterMaterialProperty:()=>Qft,WaterPipelinePrimitive:()=>ade,WaterPostProcessing:()=>yle,WaterPostProcessingEx:()=>_le,WaterPrimitive:()=>Wde,WaterPrimitiveEx:()=>cD,WaterReflectImage:()=>dDe,WaterReflectImageEx:()=>pDe,WebGLConstants:()=>bi,WebMapServiceImageryProvider:()=>CO,WebMapTileServiceImageryProvider:()=>wV,WebMercatorProjection:()=>vd,WebMercatorTilingScheme:()=>xp,WindingOrder:()=>_1,WireframeIndexGenerator:()=>Xce,WireframePipelineStage:()=>xMe,ZoomNavigationControl:()=>dle,_shadersAcesTonemappingStage:()=>z3e,_shadersAdditiveBlend:()=>I5e,_shadersAdjustTranslucentFS:()=>Wse,_shadersAllMaterialAppearanceFS:()=>ZPe,_shadersAllMaterialAppearanceVS:()=>OPe,_shadersAmbientOcclusionGenerate:()=>Y3e,_shadersAmbientOcclusionModulate:()=>K3e,_shadersAspectRampMaterial:()=>vSe,_shadersAtmosphereCommon:()=>g9,_shadersAtmosphereStageFS:()=>hAe,_shadersAtmosphereStageVS:()=>dAe,_shadersBasicMaterialAppearanceFS:()=>XPe,_shadersBasicMaterialAppearanceVS:()=>kPe,_shadersBillboardCollectionFS:()=>bLe,_shadersBillboardCollectionVS:()=>CLe,_shadersBlackAndWhite:()=>J3e,_shadersBloomComposite:()=>j3e,_shadersBrdfLutGeneratorFS:()=>x3e,_shadersBrightPass:()=>R5e,_shadersBrightness:()=>Q3e,_shadersBumpMapMaterial:()=>bSe,_shadersCPUStylingStageFS:()=>WAe,_shadersCPUStylingStageVS:()=>NAe,_shadersCheckerboardMaterial:()=>CSe,_shadersCloudCollectionFS:()=>mFe,_shadersCloudCollectionVS:()=>xFe,_shadersCloudNoiseFS:()=>gFe,_shadersCloudNoiseVS:()=>yFe,_shadersCompareAndPackTranslucentDepth:()=>k3e,_shadersCompositeOITFS:()=>V3e,_shadersCompositeTranslucentClassification:()=>oQ,_shadersComputeIrradianceFS:()=>jIe,_shadersComputeRadianceMapFS:()=>QIe,_shadersContrastBias:()=>q3e,_shadersConvolveSpecularMapFS:()=>qIe,_shadersConvolveSpecularMapVS:()=>$Ie,_shadersCustomShaderStageFS:()=>XAe,_shadersCustomShaderStageVS:()=>OAe,_shadersCzmBuiltins:()=>Ij,_shadersDepthOfField:()=>$3e,_shadersDepthPlaneFS:()=>_3e,_shadersDepthPlaneVS:()=>v3e,_shadersDepthView:()=>e5e,_shadersDepthViewPacked:()=>Tgt,_shadersDotMaterial:()=>TSe,_shadersEdgeDetection:()=>t5e,_shadersElevationBandMaterial:()=>SSe,_shadersElevationContourMaterial:()=>wSe,_shadersElevationRampMaterial:()=>ESe,_shadersEllipsoidFS:()=>Dse,_shadersEllipsoidSurfaceAppearanceFS:()=>HPe,_shadersEllipsoidSurfaceAppearanceVS:()=>zPe,_shadersEllipsoidVS:()=>Nse,_shadersFXAA:()=>n5e,_shadersFXAA3_11:()=>c5e,_shadersFadeMaterial:()=>LSe,_shadersFeatureIdStageFS:()=>kAe,_shadersFeatureIdStageVS:()=>UAe,_shadersFilmicTonemapping:()=>i5e,_shadersGaussianBlur1D:()=>T6,_shadersGeometryStageFS:()=>KAe,_shadersGeometryStageVS:()=>JAe,_shadersGlobeFS:()=>DVe,_shadersGlobeVS:()=>NVe,_shadersGridMaterial:()=>PSe,_shadersGroundAtmosphere:()=>Ise,_shadersHSBToRGB:()=>_Ee,_shadersHSLToRGB:()=>vEe,_shadersImageBasedLightingStageFS:()=>fAe,_shadersInstancingStageCommon:()=>EAe,_shadersInstancingStageVS:()=>LAe,_shadersIntersectBox:()=>O5e,_shadersIntersectClippingPlanes:()=>Z5e,_shadersIntersectCylinder:()=>X5e,_shadersIntersectDepth:()=>W5e,_shadersIntersectEllipsoid:()=>k5e,_shadersIntersectLongitude:()=>Xse,_shadersIntersection:()=>lQ,_shadersIntersectionUtils:()=>N5e,_shadersLegacyInstancingStageVS:()=>PAe,_shadersLensFlare:()=>o5e,_shadersLightingStageFS:()=>QAe,_shadersMaterialStageFS:()=>$Ae,_shadersMegatexture:()=>Y5e,_shadersMetadataStageFS:()=>BAe,_shadersMetadataStageVS:()=>HAe,_shadersModelClippingPlanesStageFS:()=>vAe,_shadersModelClippingPolygonsStageFS:()=>TAe,_shadersModelClippingPolygonsStageVS:()=>CAe,_shadersModelColorStageFS:()=>_Ae,_shadersModelFS:()=>WMe,_shadersModelFlattenStageFS:()=>XMe,_shadersModelFlattenStageVS:()=>OMe,_shadersModelSilhouetteStageFS:()=>EMe,_shadersModelSilhouetteStageVS:()=>LMe,_shadersModelSplitterStageFS:()=>IMe,_shadersModelVS:()=>NMe,_shadersModifiedReinhardTonemapping:()=>a5e,_shadersMorphTargetsStageVS:()=>tMe,_shadersNightVision:()=>s5e,_shadersNormalMapMaterial:()=>ISe,_shadersOctree:()=>z5e,_shadersPassThrough:()=>kM,_shadersPassThroughDepth:()=>C6,_shadersPbrNeutralTonemapping:()=>r5e,_shadersPerInstanceColorAppearanceFS:()=>$Le,_shadersPerInstanceColorAppearanceVS:()=>ePe,_shadersPerInstanceFlatColorAppearanceFS:()=>vue,_shadersPerInstanceFlatColorAppearanceVS:()=>tPe,_shadersPointCloudEyeDomeLighting:()=>zRe,_shadersPointCloudStylingStageVS:()=>nMe,_shadersPointPrimitiveCollectionFS:()=>nB,_shadersPointPrimitiveCollectionVS:()=>LLe,_shadersPolygonSignedDistanceFS:()=>JIe,_shadersPolylineArrowMaterial:()=>RSe,_shadersPolylineColorAppearanceVS:()=>JLe,_shadersPolylineCommon:()=>K9,_shadersPolylineDashMaterial:()=>ASe,_shadersPolylineFS:()=>bue,_shadersPolylineGlowMaterial:()=>MSe,_shadersPolylineMaterialAppearanceVS:()=>jLe,_shadersPolylineOutlineMaterial:()=>VSe,_shadersPolylineShadowVolumeFS:()=>HLe,_shadersPolylineShadowVolumeMorphFS:()=>zLe,_shadersPolylineShadowVolumeMorphVS:()=>YLe,_shadersPolylineShadowVolumeVS:()=>KLe,_shadersPolylineVS:()=>YPe,_shadersPostProcessRain:()=>Sgt,_shadersPostProcessSnow:()=>wgt,_shadersPrimitiveOutlineStageFS:()=>sMe,_shadersPrimitiveOutlineStageVS:()=>aMe,_shadersRGBToHSB:()=>zEe,_shadersRGBToHSL:()=>YEe,_shadersRGBToXYZ:()=>KEe,_shadersReinhardTonemapping:()=>l5e,_shadersReprojectWebMercatorFS:()=>YVe,_shadersReprojectWebMercatorVS:()=>KVe,_shadersRimLightingMaterial:()=>GSe,_shadersSelectedFeatureIdStageCommon:()=>yse,_shadersShadowVolumeAppearanceFS:()=>Cue,_shadersShadowVolumeAppearanceVS:()=>qLe,_shadersShadowVolumeFS:()=>PQ,_shadersSilhouette:()=>u5e,_shadersSkinningStageVS:()=>hMe,_shadersSkyAtmosphereCommon:()=>Hse,_shadersSkyAtmosphereFS:()=>dGe,_shadersSkyAtmosphereVS:()=>pGe,_shadersSkyBoxFS:()=>mGe,_shadersSkyBoxVS:()=>xGe,_shadersSlopeRampMaterial:()=>FSe,_shadersStripeMaterial:()=>DSe,_shadersSunFS:()=>gGe,_shadersSunTextureFS:()=>yGe,_shadersSunVS:()=>_Ge,_shadersTexturedMaterialAppearanceFS:()=>UPe,_shadersTexturedMaterialAppearanceVS:()=>BPe,_shadersVector3DTileClampedPolylinesFS:()=>oVe,_shadersVector3DTileClampedPolylinesVS:()=>nVe,_shadersVector3DTilePolylinesVS:()=>rVe,_shadersVectorTileVS:()=>vse,_shadersVerticalExaggerationStageVS:()=>pMe,_shadersViewportQuadFS:()=>_Fe,_shadersViewportQuadVS:()=>Phe,_shadersVoxelFS:()=>F5e,_shadersVoxelUtils:()=>G5e,_shadersVoxelVS:()=>D5e,_shadersWater:()=>WSe,_shadersWaterMaskMaterial:()=>NSe,_shadersXYZToRGB:()=>yLe,_shadersacesTonemapping:()=>Nwe,_shadersalphaWeight:()=>Wwe,_shadersantialias:()=>Zwe,_shadersapplyHSBShift:()=>Owe,_shadersapproximateSphericalCoordinates:()=>Xwe,_shadersapproximateTanh:()=>kwe,_shadersbackFacing:()=>Uwe,_shadersbranchFreeTernary:()=>Bwe,_shaderscascadeColor:()=>Hwe,_shaderscascadeDistance:()=>zwe,_shaderscascadeMatrix:()=>Ywe,_shaderscascadeWeights:()=>Kwe,_shadersclipPolygons:()=>Jwe,_shaderscolumbusViewMorph:()=>jwe,_shaderscomputeAtmosphereColor:()=>Qwe,_shaderscomputeGroundAtmosphereScattering:()=>qwe,_shaderscomputePosition:()=>$we,_shaderscomputeScattering:()=>eEe,_shadersconvertUvToBox:()=>U5e,_shadersconvertUvToCylinder:()=>B5e,_shadersconvertUvToEllipsoid:()=>H5e,_shaderscosineAndSine:()=>tEe,_shadersdecompressTextureCoordinates:()=>iEe,_shadersdegreesPerRadian:()=>HSe,_shadersdepthClamp:()=>rEe,_shadersdepthRange:()=>zSe,_shadersdepthRangeStruct:()=>Iwe,_shaderseastNorthUpToEyeCoordinates:()=>nEe,_shadersellipsoidContainsPoint:()=>oEe,_shadersellipsoidTextureCoordinates:()=>aEe,_shadersepsilon1:()=>YSe,_shadersepsilon2:()=>KSe,_shadersepsilon3:()=>JSe,_shadersepsilon4:()=>jSe,_shadersepsilon5:()=>QSe,_shadersepsilon6:()=>qSe,_shadersepsilon7:()=>$Se,_shadersequalsEpsilon:()=>sEe,_shaderseyeOffset:()=>lEe,_shaderseyeToWindowCoordinates:()=>uEe,_shadersfastApproximateAtan:()=>cEe,_shadersfog:()=>hEe,_shadersgammaCorrect:()=>dEe,_shadersgeodeticSurfaceNormal:()=>pEe,_shadersgetDefaultMaterial:()=>fEe,_shadersgetDynamicAtmosphereLightDirection:()=>mEe,_shadersgetLambertDiffuse:()=>xEe,_shadersgetSpecular:()=>gEe,_shadersgetWaterNoise:()=>yEe,_shadershue:()=>bEe,_shadersinfinity:()=>ewe,_shadersinverseGamma:()=>CEe,_shadersisEmpty:()=>TEe,_shadersisFull:()=>SEe,_shaderslatitudeToWebMercatorFraction:()=>wEe,_shaderslineDistance:()=>LEe,_shaderslinearToSrgb:()=>EEe,_shadersluminance:()=>PEe,_shadersmaterial:()=>Rwe,_shadersmaterialInput:()=>Awe,_shadersmaximumComponent:()=>IEe,_shadersmetersPerPixel:()=>REe,_shadersmodelMaterial:()=>Mwe,_shadersmodelToWindowCoordinates:()=>AEe,_shadersmodelVertexOutput:()=>Vwe,_shadersmultiplyWithColorBalance:()=>MEe,_shadersnearFarScalar:()=>VEe,_shadersoctDecode:()=>GEe,_shadersoneOverPi:()=>twe,_shadersoneOverTwoPi:()=>iwe,_shaderspackDepth:()=>FEe,_shaderspassCesium3DTile:()=>rwe,_shaderspassCesium3DTileClassification:()=>nwe,_shaderspassCesium3DTileClassificationIgnoreShow:()=>owe,_shaderspassClassification:()=>awe,_shaderspassCompute:()=>swe,_shaderspassEnvironment:()=>lwe,_shaderspassGlobe:()=>uwe,_shaderspassOpaque:()=>cwe,_shaderspassOverlay:()=>hwe,_shaderspassTerrainClassification:()=>dwe,_shaderspassTranslucent:()=>pwe,_shaderspassVoxels:()=>fwe,_shaderspbrLighting:()=>DEe,_shaderspbrNeutralTonemapping:()=>NEe,_shadersphong:()=>WEe,_shaderspi:()=>mwe,_shaderspiOverFour:()=>xwe,_shaderspiOverSix:()=>gwe,_shaderspiOverThree:()=>ywe,_shaderspiOverTwo:()=>_we,_shadersplaneDistance:()=>ZEe,_shaderspointAlongRay:()=>OEe,_shadersradiansPerDegree:()=>vwe,_shadersray:()=>Gwe,_shadersrayEllipsoidIntersectionInterval:()=>XEe,_shadersraySegment:()=>Fwe,_shadersraySphereIntersectionInterval:()=>kEe,_shadersreadDepth:()=>UEe,_shadersreadNonPerspective:()=>BEe,_shadersreverseLogDepth:()=>HEe,_shadersround:()=>JEe,_shaderssaturation:()=>jEe,_shaderssceneMode2D:()=>bwe,_shaderssceneMode3D:()=>Cwe,_shaderssceneModeColumbusView:()=>Twe,_shaderssceneModeMorphing:()=>Swe,_shadersshadowDepthCompare:()=>QEe,_shadersshadowParameters:()=>Dwe,_shadersshadowVisibility:()=>qEe,_shaderssignNotZero:()=>$Ee,_shaderssolarRadius:()=>wwe,_shaderssphericalHarmonics:()=>eLe,_shaderssrgbToLinear:()=>tLe,_shaderstangentToEyeSpaceMatrix:()=>iLe,_shaderstextureCube:()=>rLe,_shadersthreePiOver2:()=>Ewe,_shaderstransformPlane:()=>nLe,_shaderstranslateRelativeToEye:()=>oLe,_shaderstranslucentPhong:()=>aLe,_shaderstranspose:()=>sLe,_shaderstwoPi:()=>Lwe,_shadersunpackClippingExtents:()=>lLe,_shadersunpackDepth:()=>uLe,_shadersunpackFloat:()=>cLe,_shadersunpackUint:()=>hLe,_shadersvalueTransform:()=>dLe,_shadersvertexLogDepth:()=>pLe,_shaderswebMercatorMaxLatitude:()=>Pwe,_shaderswindowToEyeCoordinates:()=>fLe,_shaderswriteDepthClamp:()=>mLe,_shaderswriteLogDepth:()=>xLe,_shaderswriteNonPerspective:()=>gLe,addBuffer:()=>_Re,addDefaults:()=>hRe,addExtensionsRequired:()=>xRe,addExtensionsUsed:()=>pO,addPipelineExtras:()=>q7,addToArray:()=>n1,appendForwardSlash:()=>DTe,arrayRemoveDuplicates:()=>Mg,barycentricCoordinates:()=>nue,binarySearch:()=>Nx,buildModuleUrl:()=>oa,buildVoxelDrawCommands:()=>j5e,clipper2lib:()=>rG,clone:()=>zn,combine:()=>va,computeFlyToLocationForRectangle:()=>hhe,createBillboardPointCallback:()=>the,createBlurStage:()=>fle,createCommand:()=>Il,createDefaultImageryProviderViewModels:()=>bDe,createDefaultTerrainProviderViewModels:()=>CDe,createEdgeStage:()=>Q4,createElevationBandMaterial:()=>Ext,createFragmentFromTemplate:()=>ZFe,createGooglePhotorealistic3DTileset:()=>Lxt,createGuid:()=>du,createMaterialPropertyDescriptor:()=>Ey,createOsmBuildingsAsync:()=>Pxt,createPropertyDescriptor:()=>Ii,createRawPropertyDescriptor:()=>vb,createTangentSpaceDebugPrimitive:()=>Ixt,createTaskProcessorWorker:()=>Ggt,createUniform:()=>kSe,createUniformArray:()=>BSe,createWorldBathymetryAsync:()=>nFe,createWorldImageryAsync:()=>zB,createWorldTerrainAsync:()=>gde,decodeGoogleEarthEnterpriseData:()=>aFe,decodeVectorPolylinePositions:()=>sVe,defaultValue:()=>Zmt,defer:()=>fp,defined:()=>F,demodernizeShader:()=>_Le,deprecationWarning:()=>pL,destroyObject:()=>yr,exportKml:()=>fmt,fflate_module:()=>QFe,findAccessorMinMax:()=>$7,findContentMetadata:()=>nhe,findGroupMetadata:()=>ohe,findTileMetadata:()=>fVe,forEachTextureInMaterial:()=>Lce,formatError:()=>_H,fragment:()=>Lgt,freezeRenderState:()=>utt,getAbsoluteUri:()=>$B,getAccessorByteStride:()=>XF,getBaseUri:()=>WTe,getBinaryAccessor:()=>CM,getClipAndStyleCode:()=>bGe,getClippingFunction:()=>wq,getComponentReader:()=>U7,getElement:()=>Qh,getExtensionFromUri:()=>PF,getFilenameFromUri:()=>v7,getImageFromTypedArray:()=>ZLe,getImagePixels:()=>BZ,getJsonFromTypedArray:()=>Q_,getMagic:()=>jz,getMetadataClassProperty:()=>oGe,getMetadataProperty:()=>sGe,getStringFromTypedArray:()=>UF,getTimestamp:()=>lh,hasExtension:()=>ld,heightReferenceOnEntityPropertyChanged:()=>D7,isBitSet:()=>m1,isBlobUri:()=>Kle,isCrossOriginUrl:()=>HZ,isDataUri:()=>e7,isLeapYear:()=>YZ,knockout:()=>sr,knockout_3_5_1:()=>VV,knockout_es5:()=>fDe,libgif:()=>oIe,loadAndExecuteScript:()=>Jle,loadCRN:()=>qmt,loadCubeMap:()=>fGe,loadDDS:()=>$le,loadImageFromTypedArray:()=>Jz,loadKTX2:()=>IF,loadView:()=>Ide,mergeSort:()=>b4,moveTechniqueRenderStates:()=>mRe,moveTechniquesToExtension:()=>gRe,numberOfComponentsForType:()=>hO,objFS:()=>iDe,objectToQuery:()=>jle,oneTimeWarning:()=>aa,packer:()=>ULe,parseBatchTable:()=>$z,parseDefines:()=>oDe,parseFeatureMetadataLegacy:()=>lRe,parseGlb:()=>pRe,parseResponseHeaders:()=>ZTe,parseStructuralMetadata:()=>sRe,pickModel:()=>zMe,pointInsideTriangle:()=>nxt,preprocess3DTileContent:()=>fq,processVoxelProperties:()=>J5e,queryToObject:()=>lI,rasterizeHTML_allinone:()=>VGe,readAccessorPacked:()=>vRe,removeExtension:()=>h6,removeExtensionsRequired:()=>dRe,removeExtensionsUsed:()=>Ece,removePipelineExtras:()=>fRe,removeUnusedElements:()=>yRe,remove_primitive:()=>M6,resizeImageToNextPowerOfTwo:()=>EQ,sampleTerrain:()=>Sq,sampleTerrainMostDetailed:()=>cR,scaleToGeodeticSurface:()=>eue,srgbToLinear:()=>jhe,subdivideArray:()=>QLe,subscribeAndEvaluate:()=>Eb,svgCompassGyro:()=>HFe,svgCompassOuterRing:()=>BFe,svgCompassRotationMarker:()=>zFe,svgReset:()=>XFe,turf:()=>Po,updateAccessorComponentTypes:()=>bRe,updateVersion:()=>SRe,usesExtension:()=>um,vertex:()=>Pgt,viewerCesium3DTilesInspectorMixin:()=>nyt,viewerCesiumInspectorMixin:()=>oyt,viewerCesiumNavigationMixin:()=>igt,viewerDragDropMixin:()=>ayt,viewerPerformanceWatchdogMixin:()=>syt,viewerVoxelInspectorMixin:()=>uyt,webGLConstantToGlslType:()=>mxt,wrapFunction:()=>pFe,writeTextToCanvas:()=>H9});we();we();function _$(o=!0){this.async=o}_$.prototype.getXmlHttpRequest=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new ActiveXObject("MsXml2.XmlHttp")};_$.prototype.includeJsText=function(o,f){if(o!=null){var m=document.createElement("script");m.type="text/javascript",m.text=f,o.appendChild(m)}};_$.prototype.includeJsSrc=function(o,f,m){if(o!=null){var x=document.createElement("script");x.type="text/javascript",x.src=f,m&&typeof m=="function"&&(x.onload=m),o.appendChild(x)}};_$.prototype.addJs=function(o,f,m){var x=this.getXmlHttpRequest(),y=this;x.onreadystatechange=function(){x.readyState===4&&(x.status===200||x.status===304?y.includeJsSrc(o,f,m):console.log("XML request error: "+x.statusText+" ("+x.status+")"))},x.open("GET",f,y.async),x.send(null),x.status===404?console.log(f+" is not found"):y.includeJsText(o,x.responseText)};var ex=_$;we();we();var Mji={testModel:"Workers/Model/xiaoche.glb",modelAxis:"Workers/Model/axis.gltf",flyModel:"Workers/Model/fly.glb",divpoint:"Workers/image/divpoint.png",divpoint1:"Workers/image/divpoint1.png",richtextpoint:"Workers/image/richtextpoint1.png",mark:"Workers/image/mark.png",mark1:"Workers/image/mark1.png",TrailLine:"Workers/image/TrailLine.png",road:"Workers/image/road.jpg",colors3:"Workers/image/colors3.png",loading:"Workers/image/loading.gif",smog:"Workers/image/smog.png",penquan:"Workers/image/penquan.png",fire:"Workers/image/fire.png",fire2:"Workers/image/fire2.png",bottomplane:"Workers/image/bottomplane.jpg",MTY0001:"Workers/image/MTY0001.jpg",MTY0002:"Workers/image/MTY0002.jpg",wall:"Workers/image/ggy.jpg",rotate:"Workers/image/rotate.png",move:"Workers/image/move.png",draw:"Workers/image/cursor/draw.cur",water:"Workers/image/waterNormals.jpg",movingRiver:"Workers/image/movingRiver.png",effectCircle:"Workers/image/circle.png",scanCircle:"Workers/image/scan.png",particles:"Workers/image/particles.png",trafficLight:{l_go:"Workers/image/trafficLights/l-go.png",l_wait:"Workers/image/trafficLights/l-wait.png",l_stop:"Workers/image/trafficLights/l-stop.png",l_null:"Workers/image/trafficLights/l-null.png",go:"Workers/image/trafficLights/go.png",wait:"Workers/image/trafficLights/wait.png",stop:"Workers/image/trafficLights/stop.png",null:"Workers/image/trafficLights/null.png",r_go:"Workers/image/trafficLights/r-go.png",r_wait:"Workers/image/trafficLights/r-wait.png",r_stop:"Workers/image/trafficLights/r-stop.png",r_null:"Workers/image/trafficLights/r-null.png",bg:"Workers/image/trafficLights/bg.png"}},$r=Object.freeze(Mji);we();we();we();function Vji(o,f){return o??f}var Ff=Vji;we();var hyt=`// author: \u5F20\u4E39\u948A
czm_material czm_getMaterial(czm_materialInput materialInput)
{
    czm_material material = czm_getDefaultMaterial(materialInput);
@@ -25399,7 +25482,7 @@
`||w===E){v=Math.max(v,C),y.push(C),C=0,T+=S;continue}var I=f[w+1]||o.font,R=Dfe(I,L);m.push(R),C+=R;var P=Anr(I);x.push(P),S=Math.max(S,P)}return{width:v,height:T,widths:m,heights:x,lineWidths:y}}function NTt(o,f,m,x,y,v,C,T,S,w,E){o.save(),m!==1&&(o.globalAlpha*=m),f&&o.setTransform.apply(o,f),x.contextInstructions?(o.translate(S,w),o.scale(E[0],E[1]),Mnr(x,o)):E[0]<0||E[1]<0?(o.translate(S,w),o.scale(E[0],E[1]),o.drawImage(x,y,v,C,T,0,0,C,T)):o.drawImage(x,y,v,C,T,S,w,C*E[0],T*E[1]),o.restore()}function Mnr(o,f){for(var m=o.contextInstructions,x=0,y=m.length;x<y;x+=2)Array.isArray(m[x+1])?f[m[x]].apply(f,m[x+1]):f[m[x]]=m[x+1]}var Vnr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Gnr=function(o){Vnr(f,o);function f(m){var x=this,y=m.rotateWithView!==void 0?m.rotateWithView:!1;return x=o.call(this,{opacity:1,rotateWithView:y,rotation:m.rotation!==void 0?m.rotation:0,scale:m.scale!==void 0?m.scale:1,displacement:m.displacement!==void 0?m.displacement:[0,0],declutterMode:m.declutterMode})||this,x.canvas_=void 0,x.hitDetectionCanvas_=null,x.fill_=m.fill!==void 0?m.fill:null,x.origin_=[0,0],x.points_=m.points,x.radius_=m.radius!==void 0?m.radius:m.radius1,x.radius2_=m.radius2,x.angle_=m.angle!==void 0?m.angle:0,x.stroke_=m.stroke!==void 0?m.stroke:null,x.size_=null,x.renderOptions_=null,x.render(),x}return f.prototype.clone=function(){var m=this.getScale(),x=new f({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(m)?m.slice():m,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return x.setOpacity(this.getOpacity()),x},f.prototype.getAnchor=function(){var m=this.size_;if(!m)return null;var x=this.getDisplacement();return[m[0]/2-x[0],m[1]/2+x[1]]},f.prototype.getAngle=function(){return this.angle_},f.prototype.getFill=function(){return this.fill_},f.prototype.setFill=function(m){this.fill_=m,this.render()},f.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},f.prototype.getImage=function(m){var x=this.canvas_[m];if(!x){var y=this.renderOptions_,v=Wf(y.size*m,y.size*m);this.draw_(y,v,m),x=v.canvas,this.canvas_[m]=x}return x},f.prototype.getPixelRatio=function(m){return m},f.prototype.getImageSize=function(){return this.size_},f.prototype.getImageState=function(){return bh.LOADED},f.prototype.getOrigin=function(){return this.origin_},f.prototype.getPoints=function(){return this.points_},f.prototype.getRadius=function(){return this.radius_},f.prototype.getRadius2=function(){return this.radius2_},f.prototype.getSize=function(){return this.size_},f.prototype.getStroke=function(){return this.stroke_},f.prototype.setStroke=function(m){this.stroke_=m,this.render()},f.prototype.listenImageChange=function(m){},f.prototype.load=function(){},f.prototype.unlistenImageChange=function(m){},f.prototype.calculateLineJoinSize_=function(m,x,y){if(x===0||this.points_===1/0||m!=="bevel"&&m!=="miter")return x;var v=this.radius_,C=this.radius2_===void 0?v:this.radius2_;if(v<C){var T=v;v=C,C=T}var S=this.radius2_===void 0?this.points_:this.points_*2,w=2*Math.PI/S,E=C*Math.sin(w),L=Math.sqrt(C*C-E*E),I=v-L,R=Math.sqrt(E*E+I*I),P=R/E;if(m==="miter"&&P<=y)return P*x;var A=x/2/P,M=x/2*(I/R),V=Math.sqrt((v+A)*(v+A)+M*M),G=V-v;if(this.radius2_===void 0||m==="bevel")return G*2;var D=v*Math.sin(w),N=Math.sqrt(v*v-D*D),k=C-N,U=Math.sqrt(D*D+k*k),B=U/D;if(B<=y){var Y=B*x/2-C-v;return 2*Math.max(G,Y)}return G*2},f.prototype.createRenderOptions=function(){var m=MR,x=0,y=null,v=0,C,T=0;this.stroke_&&(C=this.stroke_.getColor(),C===null&&(C=QV),C=$b(C),T=this.stroke_.getWidth(),T===void 0&&(T=$V),y=this.stroke_.getLineDash(),v=this.stroke_.getLineDashOffset(),m=this.stroke_.getLineJoin(),m===void 0&&(m=MR),x=this.stroke_.getMiterLimit(),x===void 0&&(x=jV));var S=this.calculateLineJoinSize_(m,T,x),w=Math.max(this.radius_,this.radius2_||0),E=Math.ceil(2*w+S);return{strokeStyle:C,strokeWidth:T,size:E,lineDash:y,lineDashOffset:v,lineJoin:m,miterLimit:x}},f.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var m=this.renderOptions_.size;this.canvas_={},this.size_=[m,m]},f.prototype.draw_=function(m,x,y){if(x.scale(y,y),x.translate(m.size/2,m.size/2),this.createPath_(x),this.fill_){var v=this.fill_.getColor();v===null&&(v=eC),x.fillStyle=$b(v),x.fill()}this.stroke_&&(x.strokeStyle=m.strokeStyle,x.lineWidth=m.strokeWidth,x.setLineDash&&m.lineDash&&(x.setLineDash(m.lineDash),x.lineDashOffset=m.lineDashOffset),x.lineJoin=m.lineJoin,x.miterLimit=m.miterLimit,x.stroke())},f.prototype.createHitDetectionCanvas_=function(m){if(this.fill_){var x=this.fill_.getColor(),y=0;if(typeof x=="string"&&(x=xX(x)),x===null?y=1:Array.isArray(x)&&(y=x.length===4?x[3]:1),y===0){var v=Wf(m.size,m.size);this.hitDetectionCanvas_=v.canvas,this.drawHitDetectionCanvas_(m,v)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},f.prototype.createPath_=function(m){var x=this.points_,y=this.radius_;if(x===1/0)m.arc(0,0,y,0,2*Math.PI);else{var v=this.radius2_===void 0?y:this.radius2_;this.radius2_!==void 0&&(x*=2);for(var C=this.angle_-Math.PI/2,T=2*Math.PI/x,S=0;S<x;S++){var w=C+S*T,E=S%2===0?y:v;m.lineTo(E*Math.cos(w),E*Math.sin(w))}m.closePath()}},f.prototype.drawHitDetectionCanvas_=function(m,x){x.translate(m.size/2,m.size/2),this.createPath_(x),x.fillStyle=eC,x.fill(),this.stroke_&&(x.strokeStyle=m.strokeStyle,x.lineWidth=m.strokeWidth,m.lineDash&&(x.setLineDash(m.lineDash),x.lineDashOffset=m.lineDashOffset),x.lineJoin=m.lineJoin,x.miterLimit=m.miterLimit,x.stroke())},f}(Gfe),WTt=Gnr;var Fnr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Dnr=function(o){Fnr(f,o);function f(m){var x=m||{};return o.call(this,{points:1/0,fill:x.fill,radius:x.radius,stroke:x.stroke,scale:x.scale!==void 0?x.scale:1,rotation:x.rotation!==void 0?x.rotation:0,rotateWithView:x.rotateWithView!==void 0?x.rotateWithView:!1,displacement:x.displacement!==void 0?x.displacement:[0,0],declutterMode:x.declutterMode})||this}return f.prototype.clone=function(){var m=this.getScale(),x=new f({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(m)?m.slice():m,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return x.setOpacity(this.getOpacity()),x},f.prototype.setRadius=function(m){this.radius_=m,this.render()},f}(WTt),ZTt=Dnr;we();var Nnr=function(){function o(f){var m=f||{};this.color_=m.color!==void 0?m.color:null}return o.prototype.clone=function(){var f=this.getColor();return new o({color:Array.isArray(f)?f.slice():f||void 0})},o.prototype.getColor=function(){return this.color_},o.prototype.setColor=function(f){this.color_=f},o}(),_X=Nnr;we();var Wnr=function(){function o(f){var m=f||{};this.color_=m.color!==void 0?m.color:null,this.lineCap_=m.lineCap,this.lineDash_=m.lineDash!==void 0?m.lineDash:null,this.lineDashOffset_=m.lineDashOffset,this.lineJoin_=m.lineJoin,this.miterLimit_=m.miterLimit,this.width_=m.width}return o.prototype.clone=function(){var f=this.getColor();return new o({color:Array.isArray(f)?f.slice():f||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},o.prototype.getColor=function(){return this.color_},o.prototype.getLineCap=function(){return this.lineCap_},o.prototype.getLineDash=function(){return this.lineDash_},o.prototype.getLineDashOffset=function(){return this.lineDashOffset_},o.prototype.getLineJoin=function(){return this.lineJoin_},o.prototype.getMiterLimit=function(){return this.miterLimit_},o.prototype.getWidth=function(){return this.width_},o.prototype.setColor=function(f){this.color_=f},o.prototype.setLineCap=function(f){this.lineCap_=f},o.prototype.setLineDash=function(f){this.lineDash_=f},o.prototype.setLineDashOffset=function(f){this.lineDashOffset_=f},o.prototype.setLineJoin=function(f){this.lineJoin_=f},o.prototype.setMiterLimit=function(f){this.miterLimit_=f},o.prototype.setWidth=function(f){this.width_=f},o}(),Zee=Wnr;var XTt=function(){function o(f){var m=f||{};this.geometry_=null,this.geometryFunction_=OTt,m.geometry!==void 0&&this.setGeometry(m.geometry),this.fill_=m.fill!==void 0?m.fill:null,this.image_=m.image!==void 0?m.image:null,this.renderer_=m.renderer!==void 0?m.renderer:null,this.hitDetectionRenderer_=m.hitDetectionRenderer!==void 0?m.hitDetectionRenderer:null,this.stroke_=m.stroke!==void 0?m.stroke:null,this.text_=m.text!==void 0?m.text:null,this.zIndex_=m.zIndex}return o.prototype.clone=function(){var f=this.getGeometry();return f&&typeof f=="object"&&(f=f.clone()),new o({geometry:f,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},o.prototype.getRenderer=function(){return this.renderer_},o.prototype.setRenderer=function(f){this.renderer_=f},o.prototype.setHitDetectionRenderer=function(f){this.hitDetectionRenderer_=f},o.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},o.prototype.getGeometry=function(){return this.geometry_},o.prototype.getGeometryFunction=function(){return this.geometryFunction_},o.prototype.getFill=function(){return this.fill_},o.prototype.setFill=function(f){this.fill_=f},o.prototype.getImage=function(){return this.image_},o.prototype.setImage=function(f){this.image_=f},o.prototype.getStroke=function(){return this.stroke_},o.prototype.setStroke=function(f){this.stroke_=f},o.prototype.getText=function(){return this.text_},o.prototype.setText=function(f){this.text_=f},o.prototype.getZIndex=function(){return this.zIndex_},o.prototype.setGeometry=function(f){typeof f=="function"?this.geometryFunction_=f:typeof f=="string"?this.geometryFunction_=function(m){return m.get(f)}:f?f!==void 0&&(this.geometryFunction_=function(){return f}):this.geometryFunction_=OTt,this.geometry_=f},o.prototype.setZIndex=function(f){this.zIndex_=f},o}();function kTt(o){var f;if(typeof o=="function")f=o;else{var m;if(Array.isArray(o))m=o;else{Su(typeof o.getZIndex=="function",41);var x=o;m=[x]}f=function(){return m}}return f}var aOe=null;function UTt(o,f){if(!aOe){var m=new _X({color:"rgba(255,255,255,0.4)"}),x=new Zee({color:"#3399CC",width:1.25});aOe=[new XTt({image:new ZTt({fill:m,stroke:x,radius:5}),fill:m,stroke:x})]}return aOe}function OTt(o){return o.getGeometry()}var BTt=XTt;we();we();var Wfe={POINT:"point",LINE:"line"};var Znr="#333",Onr=function(){function o(f){var m=f||{};this.font_=m.font,this.rotation_=m.rotation,this.rotateWithView_=m.rotateWithView,this.scale_=m.scale,this.scaleArray_=sf(m.scale!==void 0?m.scale:1),this.text_=m.text,this.textAlign_=m.textAlign,this.justify_=m.justify,this.textBaseline_=m.textBaseline,this.fill_=m.fill!==void 0?m.fill:new _X({color:Znr}),this.maxAngle_=m.maxAngle!==void 0?m.maxAngle:Math.PI/4,this.placement_=m.placement!==void 0?m.placement:Wfe.POINT,this.overflow_=!!m.overflow,this.stroke_=m.stroke!==void 0?m.stroke:null,this.offsetX_=m.offsetX!==void 0?m.offsetX:0,this.offsetY_=m.offsetY!==void 0?m.offsetY:0,this.backgroundFill_=m.backgroundFill?m.backgroundFill:null,this.backgroundStroke_=m.backgroundStroke?m.backgroundStroke:null,this.padding_=m.padding===void 0?null:m.padding}return o.prototype.clone=function(){var f=this.getScale();return new o({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(f)?f.slice():f,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},o.prototype.getOverflow=function(){return this.overflow_},o.prototype.getFont=function(){return this.font_},o.prototype.getMaxAngle=function(){return this.maxAngle_},o.prototype.getPlacement=function(){return this.placement_},o.prototype.getOffsetX=function(){return this.offsetX_},o.prototype.getOffsetY=function(){return this.offsetY_},o.prototype.getFill=function(){return this.fill_},o.prototype.getRotateWithView=function(){return this.rotateWithView_},o.prototype.getRotation=function(){return this.rotation_},o.prototype.getScale=function(){return this.scale_},o.prototype.getScaleArray=function(){return this.scaleArray_},o.prototype.getStroke=function(){return this.stroke_},o.prototype.getText=function(){return this.text_},o.prototype.getTextAlign=function(){return this.textAlign_},o.prototype.getJustify=function(){return this.justify_},o.prototype.getTextBaseline=function(){return this.textBaseline_},o.prototype.getBackgroundFill=function(){return this.backgroundFill_},o.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},o.prototype.getPadding=function(){return this.padding_},o.prototype.setOverflow=function(f){this.overflow_=f},o.prototype.setFont=function(f){this.font_=f},o.prototype.setMaxAngle=function(f){this.maxAngle_=f},o.prototype.setOffsetX=function(f){this.offsetX_=f},o.prototype.setOffsetY=function(f){this.offsetY_=f},o.prototype.setPlacement=function(f){this.placement_=f},o.prototype.setRotateWithView=function(f){this.rotateWithView_=f},o.prototype.setFill=function(f){this.fill_=f},o.prototype.setRotation=function(f){this.rotation_=f},o.prototype.setScale=function(f){this.scale_=f,this.scaleArray_=sf(f!==void 0?f:1)},o.prototype.setStroke=function(f){this.stroke_=f},o.prototype.setText=function(f){this.text_=f},o.prototype.setTextAlign=function(f){this.textAlign_=f},o.prototype.setJustify=function(f){this.justify_=f},o.prototype.setTextBaseline=function(f){this.textBaseline_=f},o.prototype.setBackgroundFill=function(f){this.backgroundFill_=f},o.prototype.setBackgroundStroke=function(f){this.backgroundStroke_=f},o.prototype.setPadding=function(f){this.padding_=f},o}(),HTt=Onr;we();we();we();we();we();var Nh={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"};var Xnr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),knr=function(o){Xnr(f,o);function f(m){var x=o.call(this)||this;x.on,x.once,x.un,x.background_=m.background;var y=ox({},m);return typeof m.properties=="object"&&(delete y.properties,ox(y,m.properties)),y[Nh.OPACITY]=m.opacity!==void 0?m.opacity:1,Su(typeof y[Nh.OPACITY]=="number",64),y[Nh.VISIBLE]=m.visible!==void 0?m.visible:!0,y[Nh.Z_INDEX]=m.zIndex,y[Nh.MAX_RESOLUTION]=m.maxResolution!==void 0?m.maxResolution:1/0,y[Nh.MIN_RESOLUTION]=m.minResolution!==void 0?m.minResolution:0,y[Nh.MIN_ZOOM]=m.minZoom!==void 0?m.minZoom:-1/0,y[Nh.MAX_ZOOM]=m.maxZoom!==void 0?m.maxZoom:1/0,x.className_=y.className!==void 0?y.className:"ol-layer",delete y.className,x.setProperties(y),x.state_=null,x}return f.prototype.getBackground=function(){return this.background_},f.prototype.getClassName=function(){return this.className_},f.prototype.getLayerState=function(m){var x=this.state_||{layer:this,managed:m===void 0?!0:m},y=this.getZIndex();return x.opacity=Mv(Math.round(this.getOpacity()*100)/100,0,1),x.visible=this.getVisible(),x.extent=this.getExtent(),x.zIndex=y===void 0&&!x.managed?1/0:y,x.maxResolution=this.getMaxResolution(),x.minResolution=Math.max(this.getMinResolution(),0),x.minZoom=this.getMinZoom(),x.maxZoom=this.getMaxZoom(),this.state_=x,x},f.prototype.getLayersArray=function(m){return Us()},f.prototype.getLayerStatesArray=function(m){return Us()},f.prototype.getExtent=function(){return this.get(Nh.EXTENT)},f.prototype.getMaxResolution=function(){return this.get(Nh.MAX_RESOLUTION)},f.prototype.getMinResolution=function(){return this.get(Nh.MIN_RESOLUTION)},f.prototype.getMinZoom=function(){return this.get(Nh.MIN_ZOOM)},f.prototype.getMaxZoom=function(){return this.get(Nh.MAX_ZOOM)},f.prototype.getOpacity=function(){return this.get(Nh.OPACITY)},f.prototype.getSourceState=function(){return Us()},f.prototype.getVisible=function(){return this.get(Nh.VISIBLE)},f.prototype.getZIndex=function(){return this.get(Nh.Z_INDEX)},f.prototype.setBackground=function(m){this.background_=m,this.changed()},f.prototype.setExtent=function(m){this.set(Nh.EXTENT,m)},f.prototype.setMaxResolution=function(m){this.set(Nh.MAX_RESOLUTION,m)},f.prototype.setMinResolution=function(m){this.set(Nh.MIN_RESOLUTION,m)},f.prototype.setMaxZoom=function(m){this.set(Nh.MAX_ZOOM,m)},f.prototype.setMinZoom=function(m){this.set(Nh.MIN_ZOOM,m)},f.prototype.setOpacity=function(m){Su(typeof m=="number",64),this.set(Nh.OPACITY,m)},f.prototype.setVisible=function(m){this.set(Nh.VISIBLE,m)},f.prototype.setZIndex=function(m){this.set(Nh.Z_INDEX,m)},f.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),o.prototype.disposeInternal.call(this)},f}(fw),zTt=knr;we();var Oee={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"};var Unr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Bnr=function(o){Unr(f,o);function f(m){var x=this,y=ox({},m);delete y.source,x=o.call(this,y)||this,x.on,x.once,x.un,x.mapPrecomposeKey_=null,x.mapRenderKey_=null,x.sourceChangeKey_=null,x.renderer_=null,x.rendered=!1,m.render&&(x.render=m.render),m.map&&x.setMap(m.map),x.addChangeListener(Nh.SOURCE,x.handleSourcePropertyChange_);var v=m.source?m.source:null;return x.setSource(v),x}return f.prototype.getLayersArray=function(m){var x=m||[];return x.push(this),x},f.prototype.getLayerStatesArray=function(m){var x=m||[];return x.push(this.getLayerState()),x},f.prototype.getSource=function(){return this.get(Nh.SOURCE)||null},f.prototype.getRenderSource=function(){return this.getSource()},f.prototype.getSourceState=function(){var m=this.getSource();return m?m.getState():"undefined"},f.prototype.handleSourceChange_=function(){this.changed()},f.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Dy(this.sourceChangeKey_),this.sourceChangeKey_=null);var m=this.getSource();m&&(this.sourceChangeKey_=Vv(m,wd.CHANGE,this.handleSourceChange_,this)),this.changed()},f.prototype.getFeatures=function(m){return this.renderer_?this.renderer_.getFeatures(m):new Promise(function(x){return x([])})},f.prototype.getData=function(m){return!this.renderer_||!this.rendered?null:this.renderer_.getData(m)},f.prototype.render=function(m,x){var y=this.getRenderer();if(y.prepareFrame(m))return this.rendered=!0,y.renderFrame(m,x)},f.prototype.unrender=function(){this.rendered=!1},f.prototype.setMapInternal=function(m){m||this.unrender(),this.set(Nh.MAP,m)},f.prototype.getMapInternal=function(){return this.get(Nh.MAP)},f.prototype.setMap=function(m){this.mapPrecomposeKey_&&(Dy(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),m||this.changed(),this.mapRenderKey_&&(Dy(this.mapRenderKey_),this.mapRenderKey_=null),m&&(this.mapPrecomposeKey_=Vv(m,Oee.PRECOMPOSE,function(x){var y=x,v=y.frameState.layerStatesArray,C=this.getLayerState(!1);Su(!v.some(function(T){return T.layer===C.layer}),67),v.push(C)},this),this.mapRenderKey_=Vv(this,wd.CHANGE,m.render,m),this.changed())},f.prototype.setSource=function(m){this.set(Nh.SOURCE,m)},f.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},f.prototype.hasRenderer=function(){return!!this.renderer_},f.prototype.createRenderer=function(){return null},f.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),o.prototype.disposeInternal.call(this)},f}(zTt);var YTt=Bnr;var JTt=x5(uOe(),1);var Hnr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),KTt={RENDER_ORDER:"renderOrder"},znr=function(o){Hnr(f,o);function f(m){var x=this,y=m||{},v=ox({},y);return delete v.style,delete v.renderBuffer,delete v.updateWhileAnimating,delete v.updateWhileInteracting,x=o.call(this,v)||this,x.declutter_=y.declutter!==void 0?y.declutter:!1,x.renderBuffer_=y.renderBuffer!==void 0?y.renderBuffer:100,x.style_=null,x.styleFunction_=void 0,x.setStyle(y.style),x.updateWhileAnimating_=y.updateWhileAnimating!==void 0?y.updateWhileAnimating:!1,x.updateWhileInteracting_=y.updateWhileInteracting!==void 0?y.updateWhileInteracting:!1,x}return f.prototype.getDeclutter=function(){return this.declutter_},f.prototype.getFeatures=function(m){return o.prototype.getFeatures.call(this,m)},f.prototype.getRenderBuffer=function(){return this.renderBuffer_},f.prototype.getRenderOrder=function(){return this.get(KTt.RENDER_ORDER)},f.prototype.getStyle=function(){return this.style_},f.prototype.getStyleFunction=function(){return this.styleFunction_},f.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},f.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},f.prototype.renderDeclutter=function(m){m.declutterTree||(m.declutterTree=new JTt.default(9)),this.getRenderer().renderDeclutter(m)},f.prototype.setRenderOrder=function(m){this.set(KTt.RENDER_ORDER,m)},f.prototype.setStyle=function(m){this.style_=m!==void 0?m:UTt,this.styleFunction_=m===null?void 0:kTt(this.style_),this.changed()},f}(YTt),jTt=znr;we();we();we();we();var Xee={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},kee=[Xee.FILL],VR=[Xee.STROKE],e3=[Xee.BEGIN_PATH],cOe=[Xee.CLOSE_PATH],Es=Xee;we();var Ynr=function(){function o(){}return o.prototype.drawCustom=function(f,m,x,y){},o.prototype.drawGeometry=function(f){},o.prototype.setStyle=function(f){},o.prototype.drawCircle=function(f,m){},o.prototype.drawFeature=function(f,m){},o.prototype.drawGeometryCollection=function(f,m){},o.prototype.drawLineString=function(f,m){},o.prototype.drawMultiLineString=function(f,m){},o.prototype.drawMultiPoint=function(f,m){},o.prototype.drawMultiPolygon=function(f,m){},o.prototype.drawPoint=function(f,m){},o.prototype.drawPolygon=function(f,m){},o.prototype.drawText=function(f,m){},o.prototype.setFillStrokeStyle=function(f,m){},o.prototype.setImageStyle=function(f,m){},o.prototype.setTextStyle=function(f,m){},o}(),Zfe=Ynr;var Knr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Jnr=function(o){Knr(f,o);function f(m,x,y,v){var C=o.call(this)||this;return C.tolerance=m,C.maxExtent=x,C.pixelRatio=v,C.maxLineWidth=0,C.resolution=y,C.beginGeometryInstruction1_=null,C.beginGeometryInstruction2_=null,C.bufferedMaxExtent_=null,C.instructions=[],C.coordinates=[],C.tmpCoordinate_=[],C.hitDetectionInstructions=[],C.state={},C}return f.prototype.applyPixelRatio=function(m){var x=this.pixelRatio;return x==1?m:m.map(function(y){return y*x})},f.prototype.appendFlatPointCoordinates=function(m,x){for(var y=this.getBufferedMaxExtent(),v=this.tmpCoordinate_,C=this.coordinates,T=C.length,S=0,w=m.length;S<w;S+=x)v[0]=m[S],v[1]=m[S+1],IR(y,v)&&(C[T++]=v[0],C[T++]=v[1]);return T},f.prototype.appendFlatLineCoordinates=function(m,x,y,v,C,T){var S=this.coordinates,w=S.length,E=this.getBufferedMaxExtent();T&&(x+=v);var L=m[x],I=m[x+1],R=this.tmpCoordinate_,P=!0,A,M,V;for(A=x+v;A<y;A+=v)R[0]=m[A],R[1]=m[A+1],V=lfe(E,R),V!==M?(P&&(S[w++]=L,S[w++]=I,P=!1),S[w++]=R[0],S[w++]=R[1]):V===ax.INTERSECTING?(S[w++]=R[0],S[w++]=R[1],P=!1):P=!0,L=R[0],I=R[1],M=V;return(C&&P||A===x+v)&&(S[w++]=L,S[w++]=I),w},f.prototype.drawCustomCoordinates_=function(m,x,y,v,C){for(var T=0,S=y.length;T<S;++T){var w=y[T],E=this.appendFlatLineCoordinates(m,x,w,v,!1,!1);C.push(E),x=w}return x},f.prototype.drawCustom=function(m,x,y,v){this.beginGeometry(m,x);var C=m.getType(),T=m.getStride(),S=this.coordinates.length,w,E,L,I,R;switch(C){case"MultiPolygon":w=m.getOrientedFlatCoordinates(),I=[];var P=m.getEndss();R=0;for(var A=0,M=P.length;A<M;++A){var V=[];R=this.drawCustomCoordinates_(w,R,P[A],T,V),I.push(V)}this.instructions.push([Es.CUSTOM,S,I,m,y,Gee]),this.hitDetectionInstructions.push([Es.CUSTOM,S,I,m,v||y,Gee]);break;case"Polygon":case"MultiLineString":L=[],w=C=="Polygon"?m.getOrientedFlatCoordinates():m.getFlatCoordinates(),R=this.drawCustomCoordinates_(w,0,m.getEnds(),T,L),this.instructions.push([Es.CUSTOM,S,L,m,y,zD]),this.hitDetectionInstructions.push([Es.CUSTOM,S,L,m,v||y,zD]);break;case"LineString":case"Circle":w=m.getFlatCoordinates(),E=this.appendFlatLineCoordinates(w,0,w.length,T,!1,!1),this.instructions.push([Es.CUSTOM,S,E,m,y,xw]),this.hitDetectionInstructions.push([Es.CUSTOM,S,E,m,v||y,xw]);break;case"MultiPoint":w=m.getFlatCoordinates(),E=this.appendFlatPointCoordinates(w,T),E>S&&(this.instructions.push([Es.CUSTOM,S,E,m,y,xw]),this.hitDetectionInstructions.push([Es.CUSTOM,S,E,m,v||y,xw]));break;case"Point":w=m.getFlatCoordinates(),this.coordinates.push(w[0],w[1]),E=this.coordinates.length,this.instructions.push([Es.CUSTOM,S,E,m,y]),this.hitDetectionInstructions.push([Es.CUSTOM,S,E,m,v||y]);break;default:}this.endGeometry(x)},f.prototype.beginGeometry=function(m,x){this.beginGeometryInstruction1_=[Es.BEGIN_GEOMETRY,x,0,m],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Es.BEGIN_GEOMETRY,x,0,m],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},f.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},f.prototype.reverseHitDetectionInstructions=function(){var m=this.hitDetectionInstructions;m.reverse();var x,y=m.length,v,C,T=-1;for(x=0;x<y;++x)v=m[x],C=v[0],C==Es.END_GEOMETRY?T=x:C==Es.BEGIN_GEOMETRY&&(v[2]=x,HCt(this.hitDetectionInstructions,T,x),T=-1)},f.prototype.setFillStrokeStyle=function(m,x){var y=this.state;if(m){var v=m.getColor();y.fillStyle=$b(v||eC)}else y.fillStyle=void 0;if(x){var C=x.getColor();y.strokeStyle=$b(C||QV);var T=x.getLineCap();y.lineCap=T!==void 0?T:gX;var S=x.getLineDash();y.lineDash=S?S.slice():KV;var w=x.getLineDashOffset();y.lineDashOffset=w||JV;var E=x.getLineJoin();y.lineJoin=E!==void 0?E:MR;var L=x.getWidth();y.lineWidth=L!==void 0?L:$V;var I=x.getMiterLimit();y.miterLimit=I!==void 0?I:jV,y.lineWidth>this.maxLineWidth&&(this.maxLineWidth=y.lineWidth,this.bufferedMaxExtent_=null)}else y.strokeStyle=void 0,y.lineCap=void 0,y.lineDash=null,y.lineDashOffset=void 0,y.lineJoin=void 0,y.lineWidth=void 0,y.miterLimit=void 0},f.prototype.createFill=function(m){var x=m.fillStyle,y=[Es.SET_FILL_STYLE,x];return typeof x!="string"&&y.push(!0),y},f.prototype.applyStroke=function(m){this.instructions.push(this.createStroke(m))},f.prototype.createStroke=function(m){return[Es.SET_STROKE_STYLE,m.strokeStyle,m.lineWidth*this.pixelRatio,m.lineCap,m.lineJoin,m.miterLimit,this.applyPixelRatio(m.lineDash),m.lineDashOffset*this.pixelRatio]},f.prototype.updateFillStyle=function(m,x){var y=m.fillStyle;(typeof y!="string"||m.currentFillStyle!=y)&&(y!==void 0&&this.instructions.push(x.call(this,m)),m.currentFillStyle=y)},f.prototype.updateStrokeStyle=function(m,x){var y=m.strokeStyle,v=m.lineCap,C=m.lineDash,T=m.lineDashOffset,S=m.lineJoin,w=m.lineWidth,E=m.miterLimit;(m.currentStrokeStyle!=y||m.currentLineCap!=v||C!=m.currentLineDash&&!LR(m.currentLineDash,C)||m.currentLineDashOffset!=T||m.currentLineJoin!=S||m.currentLineWidth!=w||m.currentMiterLimit!=E)&&(y!==void 0&&x.call(this,m),m.currentStrokeStyle=y,m.currentLineCap=v,m.currentLineDash=C,m.currentLineDashOffset=T,m.currentLineJoin=S,m.currentLineWidth=w,m.currentMiterLimit=E)},f.prototype.endGeometry=function(m){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var x=[Es.END_GEOMETRY,m];this.instructions.push(x),this.hitDetectionInstructions.push(x)},f.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=u1t(this.maxExtent),this.maxLineWidth>0)){var m=this.resolution*(this.maxLineWidth+1)/2;ZL(this.bufferedMaxExtent_,m,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},f}(Zfe),GR=Jnr;we();var jnr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Qnr=function(o){jnr(f,o);function f(m,x,y,v){var C=o.call(this,m,x,y,v)||this;return C.hitDetectionImage_=null,C.image_=null,C.imagePixelRatio_=void 0,C.anchorX_=void 0,C.anchorY_=void 0,C.height_=void 0,C.opacity_=void 0,C.originX_=void 0,C.originY_=void 0,C.rotateWithView_=void 0,C.rotation_=void 0,C.scale_=void 0,C.width_=void 0,C.declutterMode_=void 0,C.declutterImageWithText_=void 0,C}return f.prototype.drawPoint=function(m,x){if(!!this.image_){this.beginGeometry(m,x);var y=m.getFlatCoordinates(),v=m.getStride(),C=this.coordinates.length,T=this.appendFlatPointCoordinates(y,v);this.instructions.push([Es.DRAW_IMAGE,C,T,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Es.DRAW_IMAGE,C,T,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(x)}},f.prototype.drawMultiPoint=function(m,x){if(!!this.image_){this.beginGeometry(m,x);var y=m.getFlatCoordinates(),v=m.getStride(),C=this.coordinates.length,T=this.appendFlatPointCoordinates(y,v);this.instructions.push([Es.DRAW_IMAGE,C,T,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Es.DRAW_IMAGE,C,T,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(x)}},f.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,o.prototype.finish.call(this)},f.prototype.setImageStyle=function(m,x){var y=m.getAnchor(),v=m.getSize(),C=m.getOrigin();this.imagePixelRatio_=m.getPixelRatio(this.pixelRatio),this.anchorX_=y[0],this.anchorY_=y[1],this.hitDetectionImage_=m.getHitDetectionImage(),this.image_=m.getImage(this.pixelRatio),this.height_=v[1],this.opacity_=m.getOpacity(),this.originX_=C[0],this.originY_=C[1],this.rotateWithView_=m.getRotateWithView(),this.rotation_=m.getRotation(),this.scale_=m.getScaleArray(),this.width_=v[0],this.declutterMode_=m.getDeclutterMode(),this.declutterImageWithText_=x},f}(GR),QTt=Qnr;we();var qnr=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),$nr=function(o){qnr(f,o);function f(m,x,y,v){return o.call(this,m,x,y,v)||this}return f.prototype.drawFlatCoordinates_=function(m,x,y,v){var C=this.coordinates.length,T=this.appendFlatLineCoordinates(m,x,y,v,!1,!1),S=[Es.MOVE_TO_LINE_TO,C,T];return this.instructions.push(S),this.hitDetectionInstructions.push(S),y},f.prototype.drawLineString=function(m,x){var y=this.state,v=y.strokeStyle,C=y.lineWidth;if(!(v===void 0||C===void 0)){this.updateStrokeStyle(y,this.applyStroke),this.beginGeometry(m,x),this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,KV,JV],e3);var T=m.getFlatCoordinates(),S=m.getStride();this.drawFlatCoordinates_(T,0,T.length,S),this.hitDetectionInstructions.push(VR),this.endGeometry(x)}},f.prototype.drawMultiLineString=function(m,x){var y=this.state,v=y.strokeStyle,C=y.lineWidth;if(!(v===void 0||C===void 0)){this.updateStrokeStyle(y,this.applyStroke),this.beginGeometry(m,x),this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,y.lineDash,y.lineDashOffset],e3);for(var T=m.getEnds(),S=m.getFlatCoordinates(),w=m.getStride(),E=0,L=0,I=T.length;L<I;++L)E=this.drawFlatCoordinates_(S,E,T[L],w);this.hitDetectionInstructions.push(VR),this.endGeometry(x)}},f.prototype.finish=function(){var m=this.state;return m.lastStroke!=null&&m.lastStroke!=this.coordinates.length&&this.instructions.push(VR),this.reverseHitDetectionInstructions(),this.state=null,o.prototype.finish.call(this)},f.prototype.applyStroke=function(m){m.lastStroke!=null&&m.lastStroke!=this.coordinates.length&&(this.instructions.push(VR),m.lastStroke=this.coordinates.length),m.lastStroke=0,o.prototype.applyStroke.call(this,m),this.instructions.push(e3)},f}(GR),qTt=$nr;we();var eor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),tor=function(o){eor(f,o);function f(m,x,y,v){return o.call(this,m,x,y,v)||this}return f.prototype.drawFlatCoordinatess_=function(m,x,y,v){var C=this.state,T=C.fillStyle!==void 0,S=C.strokeStyle!==void 0,w=y.length;this.instructions.push(e3),this.hitDetectionInstructions.push(e3);for(var E=0;E<w;++E){var L=y[E],I=this.coordinates.length,R=this.appendFlatLineCoordinates(m,x,L,v,!0,!S),P=[Es.MOVE_TO_LINE_TO,I,R];this.instructions.push(P),this.hitDetectionInstructions.push(P),S&&(this.instructions.push(cOe),this.hitDetectionInstructions.push(cOe)),x=L}return T&&(this.instructions.push(kee),this.hitDetectionInstructions.push(kee)),S&&(this.instructions.push(VR),this.hitDetectionInstructions.push(VR)),x},f.prototype.drawCircle=function(m,x){var y=this.state,v=y.fillStyle,C=y.strokeStyle;if(!(v===void 0&&C===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(m,x),y.fillStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_FILL_STYLE,eC]),y.strokeStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,y.lineDash,y.lineDashOffset]);var T=m.getFlatCoordinates(),S=m.getStride(),w=this.coordinates.length;this.appendFlatLineCoordinates(T,0,T.length,S,!1,!1);var E=[Es.CIRCLE,w];this.instructions.push(e3,E),this.hitDetectionInstructions.push(e3,E),y.fillStyle!==void 0&&(this.instructions.push(kee),this.hitDetectionInstructions.push(kee)),y.strokeStyle!==void 0&&(this.instructions.push(VR),this.hitDetectionInstructions.push(VR)),this.endGeometry(x)}},f.prototype.drawPolygon=function(m,x){var y=this.state,v=y.fillStyle,C=y.strokeStyle;if(!(v===void 0&&C===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(m,x),y.fillStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_FILL_STYLE,eC]),y.strokeStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,y.lineDash,y.lineDashOffset]);var T=m.getEnds(),S=m.getOrientedFlatCoordinates(),w=m.getStride();this.drawFlatCoordinatess_(S,0,T,w),this.endGeometry(x)}},f.prototype.drawMultiPolygon=function(m,x){var y=this.state,v=y.fillStyle,C=y.strokeStyle;if(!(v===void 0&&C===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(m,x),y.fillStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_FILL_STYLE,eC]),y.strokeStyle!==void 0&&this.hitDetectionInstructions.push([Es.SET_STROKE_STYLE,y.strokeStyle,y.lineWidth,y.lineCap,y.lineJoin,y.miterLimit,y.lineDash,y.lineDashOffset]);for(var T=m.getEndss(),S=m.getOrientedFlatCoordinates(),w=m.getStride(),E=0,L=0,I=T.length;L<I;++L)E=this.drawFlatCoordinatess_(S,E,T[L],w);this.endGeometry(x)}},f.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var m=this.tolerance;if(m!==0)for(var x=this.coordinates,y=0,v=x.length;y<v;++y)x[y]=HD(x[y],m);return o.prototype.finish.call(this)},f.prototype.setFillStrokeStyles_=function(){var m=this.state,x=m.fillStyle;x!==void 0&&this.updateFillStyle(m,this.createFill),m.strokeStyle!==void 0&&this.updateStrokeStyle(m,this.applyStroke)},f}(GR),hOe=tor;we();we();function $Tt(o,f,m,x,y){var v=m,C=m,T=0,S=0,w=m,E,L,I,R,P,A,M,V,G,D;for(L=m;L<x;L+=y){var N=f[L],k=f[L+1];P!==void 0&&(G=N-P,D=k-A,R=Math.sqrt(G*G+D*D),M!==void 0&&(S+=I,E=Math.acos((M*G+V*D)/(I*R)),E>o&&(S>T&&(T=S,v=w,C=L),S=0,w=L-y)),I=R,M=G,V=D),P=N,A=k}return S+=R,S>T?[w,L]:[v,C]}var ior=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),hK={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},ror=function(o){ior(f,o);function f(m,x,y,v){var C=o.call(this,m,x,y,v)||this;return C.labels_=null,C.text_="",C.textOffsetX_=0,C.textOffsetY_=0,C.textRotateWithView_=void 0,C.textRotation_=0,C.textFillState_=null,C.fillStates={},C.textStrokeState_=null,C.strokeStates={},C.textState_={},C.textStates={},C.textKey_="",C.fillKey_="",C.strokeKey_="",C.declutterImageWithText_=void 0,C}return f.prototype.finish=function(){var m=o.prototype.finish.call(this);return m.textStates=this.textStates,m.fillStates=this.fillStates,m.strokeStates=this.strokeStates,m},f.prototype.drawText=function(m,x){var y=this.textFillState_,v=this.textStrokeState_,C=this.textState_;if(!(this.text_===""||!C||!y&&!v)){var T=this.coordinates,S=T.length,w=m.getType(),E=null,L=m.getStride();if(C.placement===Wfe.LINE&&(w=="LineString"||w=="MultiLineString"||w=="Polygon"||w=="MultiPolygon")){if(!Ed(this.getBufferedMaxExtent(),m.getExtent()))return;var I=void 0;if(E=m.getFlatCoordinates(),w=="LineString")I=[E.length];else if(w=="MultiLineString")I=m.getEnds();else if(w=="Polygon")I=m.getEnds().slice(0,1);else if(w=="MultiPolygon"){var R=m.getEndss();I=[];for(var P=0,A=R.length;P<A;++P)I.push(R[P][0])}this.beginGeometry(m,x);for(var M=C.textAlign,V=0,G=void 0,D=0,N=I.length;D<N;++D){if(M==null){var k=$Tt(C.maxAngle,E,V,I[D],L);V=k[0],G=k[1]}else G=I[D];for(var P=V;P<G;P+=L)T.push(E[P],E[P+1]);var U=T.length;V=I[D],this.drawChars_(S,U),S=U}this.endGeometry(x)}else{var B=C.overflow?null:[];switch(w){case"Point":case"MultiPoint":E=m.getFlatCoordinates();break;case"LineString":E=m.getFlatMidpoint();break;case"Circle":E=m.getCenter();break;case"MultiLineString":E=m.getFlatMidpoints(),L=2;break;case"Polygon":E=m.getFlatInteriorPoint(),C.overflow||B.push(E[2]/this.resolution),L=3;break;case"MultiPolygon":var Y=m.getFlatInteriorPoints();E=[];for(var P=0,A=Y.length;P<A;P+=3)C.overflow||B.push(Y[P+2]/this.resolution),E.push(Y[P],Y[P+1]);if(E.length===0)return;L=2;break;default:}var U=this.appendFlatPointCoordinates(E,L);if(U===S)return;if(B&&(U-S)/2!==E.length/L){var J=S/2;B=B.filter(function(ee,ae){var oe=T[(J+ae)*2]===E[ae*L]&&T[(J+ae)*2+1]===E[ae*L+1];return oe||--J,oe})}this.saveTextStates_(),(C.backgroundFill||C.backgroundStroke)&&(this.setFillStrokeStyle(C.backgroundFill,C.backgroundStroke),C.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),C.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(m,x);var K=C.padding;if(K!=qV&&(C.scale[0]<0||C.scale[1]<0)){var z=C.padding[0],j=C.padding[1],q=C.padding[2],O=C.padding[3];C.scale[0]<0&&(j=-j,O=-O),C.scale[1]<0&&(z=-z,q=-q),K=[z,j,q,O]}var te=this.pixelRatio;this.instructions.push([Es.DRAW_IMAGE,S,U,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,K==qV?qV:K.map(function(ee){return ee*te}),!!C.backgroundFill,!!C.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,B]);var ie=1/te;this.hitDetectionInstructions.push([Es.DRAW_IMAGE,S,U,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[ie,ie],NaN,void 0,this.declutterImageWithText_,K,!!C.backgroundFill,!!C.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,B]),this.endGeometry(x)}}},f.prototype.saveTextStates_=function(){var m=this.textStrokeState_,x=this.textState_,y=this.textFillState_,v=this.strokeKey_;m&&(v in this.strokeStates||(this.strokeStates[v]={strokeStyle:m.strokeStyle,lineCap:m.lineCap,lineDashOffset:m.lineDashOffset,lineWidth:m.lineWidth,lineJoin:m.lineJoin,miterLimit:m.miterLimit,lineDash:m.lineDash}));var C=this.textKey_;C in this.textStates||(this.textStates[C]={font:x.font,textAlign:x.textAlign||jD,justify:x.justify,textBaseline:x.textBaseline||yX,scale:x.scale});var T=this.fillKey_;y&&(T in this.fillStates||(this.fillStates[T]={fillStyle:y.fillStyle}))},f.prototype.drawChars_=function(m,x){var y=this.textStrokeState_,v=this.textState_,C=this.strokeKey_,T=this.textKey_,S=this.fillKey_;this.saveTextStates_();var w=this.pixelRatio,E=hK[v.textBaseline],L=this.textOffsetY_*w,I=this.text_,R=y?y.lineWidth*Math.abs(v.scale[0])/2:0;this.instructions.push([Es.DRAW_CHARS,m,x,E,v.overflow,S,v.maxAngle,w,L,C,R*w,I,T,1]),this.hitDetectionInstructions.push([Es.DRAW_CHARS,m,x,E,v.overflow,S,v.maxAngle,1,L,C,R,I,T,1/w])},f.prototype.setTextStyle=function(m,x){var y,v,C;if(!m)this.text_="";else{var T=m.getFill();T?(v=this.textFillState_,v||(v={},this.textFillState_=v),v.fillStyle=$b(T.getColor()||eC)):(v=null,this.textFillState_=v);var S=m.getStroke();if(!S)C=null,this.textStrokeState_=C;else{C=this.textStrokeState_,C||(C={},this.textStrokeState_=C);var w=S.getLineDash(),E=S.getLineDashOffset(),L=S.getWidth(),I=S.getMiterLimit();C.lineCap=S.getLineCap()||gX,C.lineDash=w?w.slice():KV,C.lineDashOffset=E===void 0?JV:E,C.lineJoin=S.getLineJoin()||MR,C.lineWidth=L===void 0?$V:L,C.miterLimit=I===void 0?jV:I,C.strokeStyle=$b(S.getColor()||QV)}y=this.textState_;var R=m.getFont()||Nfe;GTt(R);var P=m.getScaleArray();y.overflow=m.getOverflow(),y.font=R,y.maxAngle=m.getMaxAngle(),y.placement=m.getPlacement(),y.textAlign=m.getTextAlign(),y.justify=m.getJustify(),y.textBaseline=m.getTextBaseline()||yX,y.backgroundFill=m.getBackgroundFill(),y.backgroundStroke=m.getBackgroundStroke(),y.padding=m.getPadding()||qV,y.scale=P===void 0?[1,1]:P;var A=m.getOffsetX(),M=m.getOffsetY(),V=m.getRotateWithView(),G=m.getRotation();this.text_=m.getText()||"",this.textOffsetX_=A===void 0?0:A,this.textOffsetY_=M===void 0?0:M,this.textRotateWithView_=V===void 0?!1:V,this.textRotation_=G===void 0?0:G,this.strokeKey_=C?(typeof C.strokeStyle=="string"?C.strokeStyle:mu(C.strokeStyle))+C.lineCap+C.lineDashOffset+"|"+C.lineWidth+C.lineJoin+C.miterLimit+"["+C.lineDash.join()+"]":"",this.textKey_=y.font+y.scale+(y.textAlign||"?")+(y.justify||"?")+(y.textBaseline||"?"),this.fillKey_=v?typeof v.fillStyle=="string"?v.fillStyle:"|"+mu(v.fillStyle):""}this.declutterImageWithText_=x},f}(GR),eSt=ror;var nor={Circle:hOe,Default:GR,Image:QTt,LineString:qTt,Polygon:hOe,Text:eSt},oor=function(){function o(f,m,x,y){this.tolerance_=f,this.maxExtent_=m,this.pixelRatio_=y,this.resolution_=x,this.buildersByZIndex_={}}return o.prototype.finish=function(){var f={};for(var m in this.buildersByZIndex_){f[m]=f[m]||{};var x=this.buildersByZIndex_[m];for(var y in x){var v=x[y].finish();f[m][y]=v}}return f},o.prototype.getBuilder=function(f,m){var x=f!==void 0?f.toString():"0",y=this.buildersByZIndex_[x];y===void 0&&(y={},this.buildersByZIndex_[x]=y);var v=y[m];if(v===void 0){var C=nor[m];v=new C(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),y[m]=v}return v},o}(),dOe=oor;we();we();we();function tSt(o,f,m,x,y,v,C,T,S,w,E,L){var I=o[f],R=o[f+1],P=0,A=0,M=0,V=0;function G(){P=I,A=R,f+=x,I=o[f],R=o[f+1],V+=M,M=Math.sqrt((I-P)*(I-P)+(R-A)*(R-A))}do G();while(f<m-x&&V+M<v);for(var D=M===0?0:(v-V)/M,N=dw(P,I,D),k=dw(A,R,D),U=f-x,B=V,Y=v+T*S(w,y,E);f<m-x&&V+M<Y;)G();D=M===0?0:(Y-V)/M;var J=dw(P,I,D),K=dw(A,R,D),z;if(L){var j=[N,k,J,K];wfe(j,0,4,2,L,j,j),z=j[0]>j[2]}else z=N>J;var q=Math.PI,O=[],te=U+x===f;f=U,M=0,V=B,I=o[f],R=o[f+1];var ie;if(te){G(),ie=Math.atan2(R-A,I-P),z&&(ie+=ie>0?-q:q);var re=(J+N)/2,ee=(K+k)/2;return O[0]=[re,ee,(Y-v)/2,ie,y],O}y=y.replace(/\n/g," ");for(var ae=0,oe=y.length;ae<oe;){G();var ce=Math.atan2(R-A,I-P);if(z&&(ce+=ce>0?-q:q),ie!==void 0){var pe=ce-ie;if(pe+=pe>q?-2*q:pe<-q?2*q:0,Math.abs(pe)>C)return null}ie=ce;for(var ue=ae,he=0;ae<oe;++ae){var fe=z?oe-ae-1:ae,de=T*S(w,y[fe],E);if(f+x<m&&V+M<v+he+de/2)break;he+=de}if(ae!==ue){var Ce=z?y.substring(oe-ue,oe-ae):y.substring(ue,ae);D=M===0?0:(v+he/2-V)/M;var re=dw(P,I,D),ee=dw(A,R,D);O.push([re,ee,he/2,ce,Ce]),v+=he}}return O}var dK=Zg(),QD=[],t3=[],i3=[],qD=[];function iSt(o){return o[3].declutterBox}var aor=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function rSt(o,f){return(f==="start"||f==="end")&&!aor.test(o)&&(f=f==="start"?"left":"right"),hK[f]}function sor(o,f,m){return m>0&&o.push(`
`,""),o.push(f,""),o}var lor=function(){function o(f,m,x,y){this.overlaps=x,this.pixelRatio=m,this.resolution=f,this.alignFill_,this.instructions=y.instructions,this.coordinates=y.coordinates,this.coordinateCache_={},this.renderedTransform_=Ny(),this.hitDetectionInstructions=y.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=y.fillStates||{},this.strokeStates=y.strokeStates||{},this.textStates=y.textStates||{},this.widths_={},this.labels_={}}return o.prototype.createLabel=function(f,m,x,y){var v=f+m+x+y;if(this.labels_[v])return this.labels_[v];var C=y?this.strokeStates[y]:null,T=x?this.fillStates[x]:null,S=this.textStates[m],w=this.pixelRatio,E=[S.scale[0]*w,S.scale[1]*w],L=Array.isArray(f),I=S.justify?hK[S.justify]:rSt(Array.isArray(f)?f[0]:f,S.textAlign||jD),R=y&&C.lineWidth?C.lineWidth:0,P=L?f:f.split(`
`).reduce(sor,[]),A=DTt(S,P),M=A.width,V=A.height,G=A.widths,D=A.heights,N=A.lineWidths,k=M+R,U=[],B=(k+2)*E[0],Y=(V+R)*E[1],J={width:B<0?Math.floor(B):Math.ceil(B),height:Y<0?Math.floor(Y):Math.ceil(Y),contextInstructions:U};if((E[0]!=1||E[1]!=1)&&U.push("scale",E),y){U.push("strokeStyle",C.strokeStyle),U.push("lineWidth",R),U.push("lineCap",C.lineCap),U.push("lineJoin",C.lineJoin),U.push("miterLimit",C.miterLimit);var K=BD?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;K.prototype.setLineDash&&(U.push("setLineDash",[C.lineDash]),U.push("lineDashOffset",C.lineDashOffset))}x&&U.push("fillStyle",T.fillStyle),U.push("textBaseline","middle"),U.push("textAlign","center");for(var z=.5-I,j=I*k+z*R,q=[],O=[],te=0,ie=0,re=0,ee=0,ae,oe=0,ce=P.length;oe<ce;oe+=2){var pe=P[oe];if(pe===`
`){ie+=te,te=0,j=I*k+z*R,++ee;continue}var ue=P[oe+1]||S.font;ue!==ae&&(y&&q.push("font",ue),x&&O.push("font",ue),ae=ue),te=Math.max(te,D[re]);var he=[pe,j+z*G[re]+I*(G[re]-N[ee]),.5*(R+te)+ie];j+=G[re],y&&q.push("strokeText",he),x&&O.push("fillText",he),++re}return Array.prototype.push.apply(U,q),Array.prototype.push.apply(U,O),this.labels_[v]=J,J},o.prototype.replayTextBackground_=function(f,m,x,y,v,C,T){f.beginPath(),f.moveTo.apply(f,m),f.lineTo.apply(f,x),f.lineTo.apply(f,y),f.lineTo.apply(f,v),f.lineTo.apply(f,m),C&&(this.alignFill_=C[2],this.fill_(f)),T&&(this.setStrokeStyle_(f,T),f.stroke())},o.prototype.calculateImageOrLabelDimensions_=function(f,m,x,y,v,C,T,S,w,E,L,I,R,P,A,M){T*=I[0],S*=I[1];var V=x-T,G=y-S,D=v+w>f?f-w:v,N=C+E>m?m-E:C,k=P[3]+D*I[0]+P[1],U=P[0]+N*I[1]+P[2],B=V-P[3],Y=G-P[0];(A||L!==0)&&(QD[0]=B,qD[0]=B,QD[1]=Y,t3[1]=Y,t3[0]=B+k,i3[0]=t3[0],i3[1]=Y+U,qD[1]=i3[1]);var J;return L!==0?(J=d2(Ny(),x,y,1,1,L,-x,-y),Zf(J,QD),Zf(J,t3),Zf(J,i3),Zf(J,qD),K1(Math.min(QD[0],t3[0],i3[0],qD[0]),Math.min(QD[1],t3[1],i3[1],qD[1]),Math.max(QD[0],t3[0],i3[0],qD[0]),Math.max(QD[1],t3[1],i3[1],qD[1]),dK)):K1(Math.min(B,B+k),Math.min(Y,Y+U),Math.max(B,B+k),Math.max(Y,Y+U),dK),R&&(V=Math.round(V),G=Math.round(G)),{drawImageX:V,drawImageY:G,drawImageW:D,drawImageH:N,originX:w,originY:E,declutterBox:{minX:dK[0],minY:dK[1],maxX:dK[2],maxY:dK[3],value:M},canvasTransform:J,scale:I}},o.prototype.replayImageOrLabel_=function(f,m,x,y,v,C,T){var S=!!(C||T),w=y.declutterBox,E=f.canvas,L=T?T[2]*y.scale[0]/2:0,I=w.minX-L<=E.width/m&&w.maxX+L>=0&&w.minY-L<=E.height/m&&w.maxY+L>=0;return I&&(S&&this.replayTextBackground_(f,QD,t3,i3,qD,C,T),NTt(f,y.canvasTransform,v,x,y.originX,y.originY,y.drawImageW,y.drawImageH,y.drawImageX,y.drawImageY,y.scale)),!0},o.prototype.fill_=function(f){if(this.alignFill_){var m=Zf(this.renderedTransform_,[0,0]),x=512*this.pixelRatio;f.save(),f.translate(m[0]%x,m[1]%x),f.rotate(this.viewRotation_)}f.fill(),this.alignFill_&&f.restore()},o.prototype.setStrokeStyle_=function(f,m){f.strokeStyle=m[1],f.lineWidth=m[2],f.lineCap=m[3],f.lineJoin=m[4],f.miterLimit=m[5],f.setLineDash&&(f.lineDashOffset=m[7],f.setLineDash(m[6]))},o.prototype.drawLabelWithPointPlacement_=function(f,m,x,y){var v=this.textStates[m],C=this.createLabel(f,m,y,x),T=this.strokeStates[x],S=this.pixelRatio,w=rSt(Array.isArray(f)?f[0]:f,v.textAlign||jD),E=hK[v.textBaseline||yX],L=T&&T.lineWidth?T.lineWidth:0,I=C.width/S-2*v.scale[0],R=w*I+2*(.5-w)*L,P=E*C.height/S+2*(.5-E)*L;return{label:C,anchorX:R,anchorY:P}},o.prototype.execute_=function(f,m,x,y,v,C,T,S){var w;this.pixelCoordinates_&&LR(x,this.renderedTransform_)?w=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),w=Qb(this.coordinates,0,this.coordinates.length,2,x,this.pixelCoordinates_),eTt(this.renderedTransform_,x));for(var E=0,L=y.length,I=0,R,P,A,M,V,G,D,N,k,U,B,Y,J=0,K=0,z=null,j=null,q=this.coordinateCache_,O=this.viewRotation_,te=Math.round(Math.atan2(-x[1],x[0])*1e12)/1e12,ie={context:f,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:O},re=this.instructions!=y||this.overlaps?0:200,ee,ae,oe,ce;E<L;){var pe=y[E],ue=pe[0];switch(ue){case Es.BEGIN_GEOMETRY:ee=pe[1],ce=pe[3],ee.getGeometry()?T!==void 0&&!Ed(T,ce.getExtent())?E=pe[2]+1:++E:E=pe[2];break;case Es.BEGIN_PATH:J>re&&(this.fill_(f),J=0),K>re&&(f.stroke(),K=0),!J&&!K&&(f.beginPath(),M=NaN,V=NaN),++E;break;case Es.CIRCLE:I=pe[1];var he=w[I],fe=w[I+1],de=w[I+2],Ce=w[I+3],Se=de-he,Le=Ce-fe,Ve=Math.sqrt(Se*Se+Le*Le);f.moveTo(he+Ve,fe),f.arc(he,fe,Ve,0,2*Math.PI,!0),++E;break;case Es.CLOSE_PATH:f.closePath(),++E;break;case Es.CUSTOM:I=pe[1],R=pe[2];var Oe=pe[3],$e=pe[4],at=pe.length==6?pe[5]:void 0;ie.geometry=Oe,ie.feature=ee,E in q||(q[E]=[]);var dt=q[E];at?at(w,I,R,2,dt):(dt[0]=w[I],dt[1]=w[I+1],dt.length=2),$e(dt,ie),++E;break;case Es.DRAW_IMAGE:I=pe[1],R=pe[2],N=pe[3],P=pe[4],A=pe[5];var gt=pe[6],Et=pe[7],et=pe[8],yt=pe[9],Rt=pe[10],Vt=pe[11],_t=pe[12],se=pe[13],ve=pe[14],je=pe[15];if(!N&&pe.length>=20){k=pe[19],U=pe[20],B=pe[21],Y=pe[22];var Ft=this.drawLabelWithPointPlacement_(k,U,B,Y);N=Ft.label,pe[3]=N;var kt=pe[23];P=(Ft.anchorX-kt)*this.pixelRatio,pe[4]=P;var bt=pe[24];A=(Ft.anchorY-bt)*this.pixelRatio,pe[5]=A,gt=N.height,pe[6]=gt,se=N.width,pe[13]=se}var lt=void 0;pe.length>25&&(lt=pe[25]);var ot=void 0,tt=void 0,ze=void 0;pe.length>17?(ot=pe[16],tt=pe[17],ze=pe[18]):(ot=qV,tt=!1,ze=!1),Rt&&te?Vt+=O:!Rt&&!te&&(Vt-=O);for(var ct=0;I<R;I+=2)if(!(lt&&lt[ct++]<se/this.pixelRatio)){var Wt=this.calculateImageOrLabelDimensions_(N.width,N.height,w[I],w[I+1],se,gt,P,A,et,yt,Vt,_t,v,ot,tt||ze,ee),Tt=[f,m,N,Wt,Et,tt?z:null,ze?j:null];if(S){if(ve==="none")continue;if(ve==="obstacle"){S.insert(Wt.declutterBox);continue}else{var Ht=void 0,Ci=void 0;if(je){var Yt=R-I;if(!je[Yt]){je[Yt]=Tt;continue}if(Ht=je[Yt],delete je[Yt],Ci=iSt(Ht),S.collides(Ci))continue}if(S.collides(Wt.declutterBox))continue;Ht&&(S.insert(Ci),this.replayImageOrLabel_.apply(this,Ht)),S.insert(Wt.declutterBox)}}this.replayImageOrLabel_.apply(this,Tt)}++E;break;case Es.DRAW_CHARS:var li=pe[1],Ne=pe[2],Ze=pe[3],De=pe[4];Y=pe[5];var He=pe[6],Ue=pe[7],ft=pe[8];B=pe[9];var St=pe[10];k=pe[11],U=pe[12];var Be=[pe[13],pe[13]],st=this.textStates[U],At=st.font,Mt=[st.scale[0]*Ue,st.scale[1]*Ue],It=void 0;At in this.widths_?It=this.widths_[At]:(It={},this.widths_[At]=It);var ui=Lfe(w,li,Ne,2),Ai=Math.abs(Mt[0])*oOe(At,k,It);if(De||Ai<=ui){var wi=this.textStates[U].textAlign,zi=(ui-Ai)*hK[wi],Ri=tSt(w,li,Ne,2,k,zi,He,Math.abs(Mt[0]),oOe,At,It,te?0:this.viewRotation_);e:if(Ri){var Ot=[],Kt=void 0,ri=void 0,ii=void 0,ci=void 0,Gi=void 0;if(B)for(Kt=0,ri=Ri.length;Kt<ri;++Kt){Gi=Ri[Kt],ii=Gi[4],ci=this.createLabel(ii,U,"",B),P=Gi[2]+(Mt[0]<0?-St:St),A=Ze*ci.height+(.5-Ze)*2*St*Mt[1]/Mt[0]-ft;var Wt=this.calculateImageOrLabelDimensions_(ci.width,ci.height,Gi[0],Gi[1],ci.width,ci.height,P,A,0,0,Gi[3],Be,!1,qV,!1,ee);if(S&&S.collides(Wt.declutterBox))break e;Ot.push([f,m,ci,Wt,1,null,null])}if(Y)for(Kt=0,ri=Ri.length;Kt<ri;++Kt){Gi=Ri[Kt],ii=Gi[4],ci=this.createLabel(ii,U,Y,""),P=Gi[2],A=Ze*ci.height-ft;var Wt=this.calculateImageOrLabelDimensions_(ci.width,ci.height,Gi[0],Gi[1],ci.width,ci.height,P,A,0,0,Gi[3],Be,!1,qV,!1,ee);if(S&&S.collides(Wt.declutterBox))break e;Ot.push([f,m,ci,Wt,1,null,null])}S&&S.load(Ot.map(iSt));for(var Ki=0,ar=Ot.length;Ki<ar;++Ki)this.replayImageOrLabel_.apply(this,Ot[Ki])}}++E;break;case Es.END_GEOMETRY:if(C!==void 0){ee=pe[1];var Ir=C(ee,ce);if(Ir)return Ir}++E;break;case Es.FILL:re?J++:this.fill_(f),++E;break;case Es.MOVE_TO_LINE_TO:for(I=pe[1],R=pe[2],ae=w[I],oe=w[I+1],G=ae+.5|0,D=oe+.5|0,(G!==M||D!==V)&&(f.moveTo(ae,oe),M=G,V=D),I+=2;I<R;I+=2)ae=w[I],oe=w[I+1],G=ae+.5|0,D=oe+.5|0,(I==R-2||G!==M||D!==V)&&(f.lineTo(ae,oe),M=G,V=D);++E;break;case Es.SET_FILL_STYLE:z=pe,this.alignFill_=pe[2],J&&(this.fill_(f),J=0,K&&(f.stroke(),K=0)),f.fillStyle=pe[1],++E;break;case Es.SET_STROKE_STYLE:j=pe,K&&(f.stroke(),K=0),this.setStrokeStyle_(f,pe),++E;break;case Es.STROKE:re?K++:f.stroke(),++E;break;default:++E;break}}J&&this.fill_(f),K&&f.stroke()},o.prototype.execute=function(f,m,x,y,v,C){this.viewRotation_=y,this.execute_(f,m,x,this.instructions,v,void 0,void 0,C)},o.prototype.executeHitDetection=function(f,m,x,y,v){return this.viewRotation_=x,this.execute_(f,1,m,this.hitDetectionInstructions,!0,y,v)},o}(),nSt=lor;var pOe=["Polygon","Circle","LineString","Image","Text","Default"],uor=function(){function o(f,m,x,y,v,C){this.maxExtent_=f,this.overlaps_=y,this.pixelRatio_=x,this.resolution_=m,this.renderBuffer_=C,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Ny(),this.createExecutors_(v)}return o.prototype.clip=function(f,m){var x=this.getClipCoords(m);f.beginPath(),f.moveTo(x[0],x[1]),f.lineTo(x[2],x[3]),f.lineTo(x[4],x[5]),f.lineTo(x[6],x[7]),f.clip()},o.prototype.createExecutors_=function(f){for(var m in f){var x=this.executorsByZIndex_[m];x===void 0&&(x={},this.executorsByZIndex_[m]=x);var y=f[m];for(var v in y){var C=y[v];x[v]=new nSt(this.resolution_,this.pixelRatio_,this.overlaps_,C)}}},o.prototype.hasExecutors=function(f){for(var m in this.executorsByZIndex_)for(var x=this.executorsByZIndex_[m],y=0,v=f.length;y<v;++y)if(f[y]in x)return!0;return!1},o.prototype.forEachFeatureAtCoordinate=function(f,m,x,y,v,C){y=Math.round(y);var T=y*2+1,S=d2(this.hitDetectionTransform_,y+.5,y+.5,1/m,-1/m,-x,-f[0],-f[1]),w=!this.hitDetectionContext_;w&&(this.hitDetectionContext_=Wf(T,T));var E=this.hitDetectionContext_;E.canvas.width!==T||E.canvas.height!==T?(E.canvas.width=T,E.canvas.height=T):w||E.clearRect(0,0,T,T);var L;this.renderBuffer_!==void 0&&(L=Zg(),cX(L,f),ZL(L,m*(this.renderBuffer_+y),L));var I=cor(y),R;function P(U,B){for(var Y=E.getImageData(0,0,T,T).data,J=0,K=I.length;J<K;J++)if(Y[I[J]]>0){if(!C||R!=="Image"&&R!=="Text"||C.indexOf(U)!==-1){var z=(I[J]-3)/4,j=y-z%T,q=y-(z/T|0),O=v(U,B,j*j+q*q);if(O)return O}E.clearRect(0,0,T,T);break}}var A=Object.keys(this.executorsByZIndex_).map(Number);A.sort(DL);var M,V,G,D,N;for(M=A.length-1;M>=0;--M){var k=A[M].toString();for(G=this.executorsByZIndex_[k],V=pOe.length-1;V>=0;--V)if(R=pOe[V],D=G[R],D!==void 0&&(N=D.executeHitDetection(E,S,x,P,L),N))return N}},o.prototype.getClipCoords=function(f){var m=this.maxExtent_;if(!m)return null;var x=m[0],y=m[1],v=m[2],C=m[3],T=[x,y,x,C,v,C,v,y];return Qb(T,0,8,2,f,T),T},o.prototype.isEmpty=function(){return NL(this.executorsByZIndex_)},o.prototype.execute=function(f,m,x,y,v,C,T){var S=Object.keys(this.executorsByZIndex_).map(Number);S.sort(DL),this.maxExtent_&&(f.save(),this.clip(f,x));var w=C||pOe,E,L,I,R,P,A;for(T&&S.reverse(),E=0,L=S.length;E<L;++E){var M=S[E].toString();for(P=this.executorsByZIndex_[M],I=0,R=w.length;I<R;++I){var V=w[I];A=P[V],A!==void 0&&A.execute(f,m,x,y,v,T)}}this.maxExtent_&&f.restore()},o}(),fOe={};function cor(o){if(fOe[o]!==void 0)return fOe[o];for(var f=o*2+1,m=o*o,x=new Array(m+1),y=0;y<=o;++y)for(var v=0;v<=o;++v){var C=y*y+v*v;if(C>m)break;var T=x[C];T||(T=[],x[C]=T),T.push(((o+y)*f+(o+v))*4+3),y>0&&T.push(((o-y)*f+(o+v))*4+3),v>0&&(T.push(((o+y)*f+(o-v))*4+3),y>0&&T.push(((o-y)*f+(o-v))*4+3))}for(var S=[],y=0,w=x.length;y<w;++y)x[y]&&S.push.apply(S,x[y]);return fOe[o]=S,S}var mOe=uor;we();we();we();var hor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),dor=function(o){hor(f,o);function f(m){var x=o.call(this)||this;return x.ready=!0,x.boundHandleImageChange_=x.handleImageChange_.bind(x),x.layer_=m,x.declutterExecutorGroup=null,x}return f.prototype.getFeatures=function(m){return Us()},f.prototype.getData=function(m){return null},f.prototype.prepareFrame=function(m){return Us()},f.prototype.renderFrame=function(m,x){return Us()},f.prototype.loadedTileCallback=function(m,x,y){m[x]||(m[x]={}),m[x][y.tileCoord.toString()]=y},f.prototype.createLoadedTileFinder=function(m,x,y){return function(v,C){var T=this.loadedTileCallback.bind(this,y,v);return m.forEachLoadedTile(x,v,C,T)}.bind(this)},f.prototype.forEachFeatureAtCoordinate=function(m,x,y,v,C){},f.prototype.getDataAtPixel=function(m,x,y){return null},f.prototype.getLayer=function(){return this.layer_},f.prototype.handleFontsChanged=function(){},f.prototype.handleImageChange_=function(m){var x=m.target;x.getState()===bh.LOADED&&this.renderIfReadyAndVisible()},f.prototype.loadImage=function(m){var x=m.getState();return x!=bh.LOADED&&x!=bh.ERROR&&m.addEventListener(wd.CHANGE,this.boundHandleImageChange_),x==bh.IDLE&&(m.load(),x=m.getState()),x==bh.LOADED},f.prototype.renderIfReadyAndVisible=function(){var m=this.getLayer();m&&m.getVisible()&&m.getSourceState()==="ready"&&m.changed()},f.prototype.disposeInternal=function(){delete this.layer_,o.prototype.disposeInternal.call(this)},f}(xfe),oSt=dor;we();var por=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),mor=function(o){por(f,o);function f(m,x,y,v){var C=o.call(this,m)||this;return C.inversePixelTransform=x,C.frameState=y,C.context=v,C}return f}(hw),aSt=mor;var xor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}();var pK=null;function gor(){var o=document.createElement("canvas");o.width=1,o.height=1,pK=o.getContext("2d")}var yor=function(o){xor(f,o);function f(m){var x=o.call(this,m)||this;return x.container=null,x.renderedResolution,x.tempTransform=Ny(),x.pixelTransform=Ny(),x.inversePixelTransform=Ny(),x.context=null,x.containerReused=!1,x.pixelContext_=null,x.frameState=null,x}return f.prototype.getImageData=function(m,x,y){pK||gor(),pK.clearRect(0,0,1,1);var v;try{pK.drawImage(m,x,y,1,1,0,0,1,1),v=pK.getImageData(0,0,1,1).data}catch{return pK=null,null}return v},f.prototype.getBackground=function(m){var x=this.getLayer(),y=x.getBackground();return typeof y=="function"&&(y=y(m.viewState.resolution)),y||void 0},f.prototype.useContainer=function(m,x,y){var v=this.getLayer().getClassName(),C,T;if(m&&m.className===v&&(!y||m&&m.style.backgroundColor&&LR(xX(m.style.backgroundColor),xX(y)))){var S=m.firstElementChild;S instanceof HTMLCanvasElement&&(T=S.getContext("2d"))}if(T&&T.canvas.style.transform===x?(this.container=m,this.context=T,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){C=document.createElement("div"),C.className=v;var w=C.style;w.position="absolute",w.width="100%",w.height="100%",T=Wf();var S=T.canvas;C.appendChild(S),w=S.style,w.position="absolute",w.left="0",w.transformOrigin="top left",this.container=C,this.context=T}!this.containerReused&&y&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=y)},f.prototype.clipUnrotated=function(m,x,y){var v=jb(y),C=iK(y),T=tK(y),S=eK(y);Zf(x.coordinateToPixelTransform,v),Zf(x.coordinateToPixelTransform,C),Zf(x.coordinateToPixelTransform,T),Zf(x.coordinateToPixelTransform,S);var w=this.inversePixelTransform;Zf(w,v),Zf(w,C),Zf(w,T),Zf(w,S),m.save(),m.beginPath(),m.moveTo(Math.round(v[0]),Math.round(v[1])),m.lineTo(Math.round(C[0]),Math.round(C[1])),m.lineTo(Math.round(T[0]),Math.round(T[1])),m.lineTo(Math.round(S[0]),Math.round(S[1])),m.clip()},f.prototype.dispatchRenderEvent_=function(m,x,y){var v=this.getLayer();if(v.hasListener(m)){var C=new aSt(m,this.inversePixelTransform,y,x);v.dispatchEvent(C)}},f.prototype.preRender=function(m,x){this.frameState=x,this.dispatchRenderEvent_(Oee.PRERENDER,m,x)},f.prototype.postRender=function(m,x){this.dispatchRenderEvent_(Oee.POSTRENDER,m,x)},f.prototype.getRenderTransform=function(m,x,y,v,C,T,S){var w=C/2,E=T/2,L=v/x,I=-L,R=-m[0]+S,P=-m[1];return d2(this.tempTransform,w,E,L,I,-y,R,P)},f.prototype.getDataAtPixel=function(m,x,y){var v=Zf(this.inversePixelTransform,m.slice()),C=this.context,T=this.getLayer(),S=T.getExtent();if(S){var w=Zf(x.pixelToCoordinateTransform,m.slice());if(!IR(S,w))return null}var E=Math.round(v[0]),L=Math.round(v[1]),I=this.pixelContext_;if(!I){var R=document.createElement("canvas");R.width=1,R.height=1,I=R.getContext("2d"),this.pixelContext_=I}I.clearRect(0,0,1,1);var P;try{I.drawImage(C.canvas,E,L,1,1,0,0,1,1),P=I.getImageData(0,0,1,1).data}catch(A){return A.name==="SecurityError"?(this.pixelContext_=null,new Uint8Array):P}return P[3]===0?null:P},f.prototype.disposeInternal=function(){delete this.frameState,o.prototype.disposeInternal.call(this)},f}(oSt),sSt=yor;we();we();we();var _or=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),vor=function(o){_or(f,o);function f(m,x,y,v){var C=o.call(this)||this;return C.extent=m,C.pixelRatio_=y,C.resolution=x,C.state=v,C}return f.prototype.changed=function(){this.dispatchEvent(wd.CHANGE)},f.prototype.getExtent=function(){return this.extent},f.prototype.getImage=function(){return Us()},f.prototype.getPixelRatio=function(){return this.pixelRatio_},f.prototype.getResolution=function(){return this.resolution},f.prototype.getState=function(){return this.state},f.prototype.load=function(){Us()},f}(PR),lSt=vor;var bor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),BDr=function(o){bor(f,o);function f(m,x,y,v,C,T){var S=o.call(this,m,x,y,bh.IDLE)||this;return S.src_=v,S.image_=new Image,C!==null&&(S.image_.crossOrigin=C),S.unlisten_=null,S.state=bh.IDLE,S.imageLoadFunction_=T,S}return f.prototype.getImage=function(){return this.image_},f.prototype.handleImageError_=function(){this.state=bh.ERROR,this.unlistenImage_(),this.changed()},f.prototype.handleImageLoad_=function(){this.resolution===void 0&&(this.resolution=Fy(this.extent)/this.image_.height),this.state=bh.LOADED,this.unlistenImage_(),this.changed()},f.prototype.load=function(){(this.state==bh.IDLE||this.state==bh.ERROR)&&(this.state=bh.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=Uee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.setImage=function(m){this.image_=m,this.resolution=Fy(this.extent)/this.image_.height},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(lSt);function Uee(o,f,m){var x=o,y=!0,v=!1,C=!1,T=[rK(x,wd.LOAD,function(){C=!0,v||f()})];return x.src&&z1t?(v=!0,x.decode().then(function(){y&&f()}).catch(function(S){y&&(C?f():m())})):T.push(rK(x,wd.ERROR,m)),function(){y=!1,T.forEach(Dy)}}var Cor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Tor=function(o){Cor(f,o);function f(m,x,y,v,C,T){var S=o.call(this,m,x,T)||this;return S.crossOrigin_=v,S.src_=y,S.key=y,S.image_=new Image,v!==null&&(S.image_.crossOrigin=v),S.unlisten_=null,S.tileLoadFunction_=C,S}return f.prototype.getImage=function(){return this.image_},f.prototype.setImage=function(m){this.image_=m,this.state=Qo.LOADED,this.unlistenImage_(),this.changed()},f.prototype.handleImageError_=function(){this.state=Qo.ERROR,this.unlistenImage_(),this.image_=Sor(),this.changed()},f.prototype.handleImageLoad_=function(){var m=this.image_;m.naturalWidth&&m.naturalHeight?this.state=Qo.LOADED:this.state=Qo.EMPTY,this.unlistenImage_(),this.changed()},f.prototype.load=function(){this.state==Qo.ERROR&&(this.state=Qo.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Qo.IDLE&&(this.state=Qo.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Uee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(WD);function Sor(){var o=Wf(1,1);return o.fillStyle="rgba(0,0,0,0)",o.fillRect(0,0,1,1),o.canvas}var uSt=Tor;we();we();var cSt=.5;we();var wor=10,hSt=.25,Eor=function(){function o(f,m,x,y,v,C){this.sourceProj_=f,this.targetProj_=m;var T={},S=dX(this.targetProj_,this.sourceProj_);this.transformInv_=function(D){var N=D[0]+"/"+D[1];return T[N]||(T[N]=S(D)),T[N]},this.maxSourceExtent_=y,this.errorThresholdSquared_=v*v,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!y&&!!this.sourceProj_.getExtent()&&af(y)==af(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?af(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?af(this.targetProj_.getExtent()):null;var w=jb(x),E=iK(x),L=tK(x),I=eK(x),R=this.transformInv_(w),P=this.transformInv_(E),A=this.transformInv_(L),M=this.transformInv_(I),V=wor+(C?Math.max(0,Math.ceil(o1t(bee(x)/(C*C*256*256)))):0);if(this.addQuad_(w,E,L,I,R,P,A,M,V),this.wrapsXInSource_){var G=1/0;this.triangles_.forEach(function(D,N,k){G=Math.min(G,D.source[0][0],D.source[1][0],D.source[2][0])}),this.triangles_.forEach(function(D){if(Math.max(D.source[0][0],D.source[1][0],D.source[2][0])-G>this.sourceWorldWidth_/2){var N=[[D.source[0][0],D.source[0][1]],[D.source[1][0],D.source[1][1]],[D.source[2][0],D.source[2][1]]];N[0][0]-G>this.sourceWorldWidth_/2&&(N[0][0]-=this.sourceWorldWidth_),N[1][0]-G>this.sourceWorldWidth_/2&&(N[1][0]-=this.sourceWorldWidth_),N[2][0]-G>this.sourceWorldWidth_/2&&(N[2][0]-=this.sourceWorldWidth_);var k=Math.min(N[0][0],N[1][0],N[2][0]),U=Math.max(N[0][0],N[1][0],N[2][0]);U-k<this.sourceWorldWidth_/2&&(D.source=N)}}.bind(this))}T={}}return o.prototype.addTriangle_=function(f,m,x,y,v,C){this.triangles_.push({source:[y,v,C],target:[f,m,x]})},o.prototype.addQuad_=function(f,m,x,y,v,C,T,S,w){var E=_ee([v,C,T,S]),L=this.sourceWorldWidth_?af(E)/this.sourceWorldWidth_:null,I=this.sourceWorldWidth_,R=this.sourceProj_.canWrapX()&&L>.5&&L<1,P=!1;if(w>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var A=_ee([f,m,x,y]),M=af(A)/this.targetWorldWidth_;P=M>hSt||P}!R&&this.sourceProj_.isGlobal()&&L&&(P=L>hSt||P)}if(!(!P&&this.maxSourceExtent_&&isFinite(E[0])&&isFinite(E[1])&&isFinite(E[2])&&isFinite(E[3])&&!Ed(E,this.maxSourceExtent_))){var V=0;if(!P&&(!isFinite(v[0])||!isFinite(v[1])||!isFinite(C[0])||!isFinite(C[1])||!isFinite(T[0])||!isFinite(T[1])||!isFinite(S[0])||!isFinite(S[1]))){if(w>0)P=!0;else if(V=(!isFinite(v[0])||!isFinite(v[1])?8:0)+(!isFinite(C[0])||!isFinite(C[1])?4:0)+(!isFinite(T[0])||!isFinite(T[1])?2:0)+(!isFinite(S[0])||!isFinite(S[1])?1:0),V!=1&&V!=2&&V!=4&&V!=8)return}if(w>0){if(!P){var G=[(f[0]+x[0])/2,(f[1]+x[1])/2],D=this.transformInv_(G),N=void 0;if(R){var k=(QY(v[0],I)+QY(T[0],I))/2;N=k-QY(D[0],I)}else N=(v[0]+T[0])/2-D[0];var U=(v[1]+T[1])/2-D[1],B=N*N+U*U;P=B>this.errorThresholdSquared_}if(P){if(Math.abs(f[0]-x[0])<=Math.abs(f[1]-x[1])){var Y=[(m[0]+x[0])/2,(m[1]+x[1])/2],J=this.transformInv_(Y),K=[(y[0]+f[0])/2,(y[1]+f[1])/2],z=this.transformInv_(K);this.addQuad_(f,m,Y,K,v,C,J,z,w-1),this.addQuad_(K,Y,x,y,z,J,T,S,w-1)}else{var j=[(f[0]+m[0])/2,(f[1]+m[1])/2],q=this.transformInv_(j),O=[(x[0]+y[0])/2,(x[1]+y[1])/2],te=this.transformInv_(O);this.addQuad_(f,j,O,y,v,q,te,S,w-1),this.addQuad_(j,m,x,O,q,C,T,te,w-1)}return}}if(R){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}(V&11)==0&&this.addTriangle_(f,x,y,v,T,S),(V&14)==0&&this.addTriangle_(f,x,m,v,T,C),V&&((V&13)==0&&this.addTriangle_(m,y,f,C,S,v),(V&7)==0&&this.addTriangle_(m,y,x,C,S,T))}},o.prototype.calculateSourceExtent=function(){var f=Zg();return this.triangles_.forEach(function(m,x,y){var v=m.source;cX(f,v[0]),cX(f,v[1]),cX(f,v[2])}),f},o.prototype.getTriangles=function(){return this.triangles_},o}(),dSt=Eor;we();we();var Bee={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},pSt={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0};var xOe,yOe=[];function fSt(o,f,m,x,y){o.beginPath(),o.moveTo(0,0),o.lineTo(f,m),o.lineTo(x,y),o.closePath(),o.save(),o.clip(),o.fillRect(0,0,Math.max(f,x)+1,Math.max(m,y)),o.restore()}function gOe(o,f){return Math.abs(o[f*4]-210)>2||Math.abs(o[f*4+3]-.75*255)>2}function Lor(){if(xOe===void 0){var o=document.createElement("canvas").getContext("2d");o.globalCompositeOperation="lighter",o.fillStyle="rgba(210, 0, 0, 0.75)",fSt(o,4,5,4,0),fSt(o,4,5,0,5);var f=o.getImageData(0,0,3,3).data;xOe=gOe(f,0)||gOe(f,4)||gOe(f,8)}return xOe}function mSt(o,f,m,x){var y=_fe(m,f,o),v=W9e(f,x,m),C=f.getMetersPerUnit();C!==void 0&&(v*=C);var T=o.getMetersPerUnit();T!==void 0&&(v/=T);var S=o.getExtent();if(!S||IR(S,y)){var w=W9e(o,v,y)/v;isFinite(w)&&w>0&&(v/=w)}return v}function xSt(o,f,m,x){var y=zV(m),v=mSt(o,f,y,x);return(!isFinite(v)||v<=0)&&hfe(m,function(C){return v=mSt(o,f,C,x),isFinite(v)&&v>0}),v}function gSt(o,f,m,x,y,v,C,T,S,w,E,L){var I=Wf(Math.round(m*o),Math.round(m*f),yOe);if(L||ox(I,Bee),S.length===0)return I.canvas;I.scale(m,m);function R(N){return Math.round(N*m)/m}I.globalCompositeOperation="lighter";var P=Zg();S.forEach(function(N,k,U){c1t(P,N.extent)});var A=af(P),M=Fy(P),V=Wf(Math.round(m*A/x),Math.round(m*M/x));L||ox(V,Bee);var G=m/x;S.forEach(function(N,k,U){var B=N.extent[0]-P[0],Y=-(N.extent[3]-P[3]),J=af(N.extent),K=Fy(N.extent);N.image.width>0&&N.image.height>0&&V.drawImage(N.image,w,w,N.image.width-2*w,N.image.height-2*w,B*G,Y*G,J*G,K*G)});var D=jb(C);return T.getTriangles().forEach(function(N,k,U){var B=N.source,Y=N.target,J=B[0][0],K=B[0][1],z=B[1][0],j=B[1][1],q=B[2][0],O=B[2][1],te=R((Y[0][0]-D[0])/v),ie=R(-(Y[0][1]-D[1])/v),re=R((Y[1][0]-D[0])/v),ee=R(-(Y[1][1]-D[1])/v),ae=R((Y[2][0]-D[0])/v),oe=R(-(Y[2][1]-D[1])/v),ce=J,pe=K;J=0,K=0,z-=ce,j-=pe,q-=ce,O-=pe;var ue=[[z,j,0,0,re-te],[q,O,0,0,ae-te],[0,0,z,j,ee-ie],[0,0,q,O,oe-ie]],he=s1t(ue);if(!!he){if(I.save(),I.beginPath(),Lor()||!L){I.moveTo(re,ee);for(var fe=4,de=te-re,Ce=ie-ee,Se=0;Se<fe;Se++)I.lineTo(re+R((Se+1)*de/fe),ee+R(Se*Ce/(fe-1))),Se!=fe-1&&I.lineTo(re+R((Se+1)*de/fe),ee+R((Se+1)*Ce/(fe-1)));I.lineTo(ae,oe)}else I.moveTo(re,ee),I.lineTo(te,ie),I.lineTo(ae,oe);I.clip(),I.transform(he[0],he[2],he[1],he[3],te,ie),I.translate(P[0]-ce,P[3]-pe),I.scale(x/m,-x/m),I.drawImage(V.canvas,0,0),I.restore()}}),E&&(I.save(),I.globalCompositeOperation="source-over",I.strokeStyle="black",I.lineWidth=1,T.getTriangles().forEach(function(N,k,U){var B=N.target,Y=(B[0][0]-D[0])/v,J=-(B[0][1]-D[1])/v,K=(B[1][0]-D[0])/v,z=-(B[1][1]-D[1])/v,j=(B[2][0]-D[0])/v,q=-(B[2][1]-D[1])/v;I.beginPath(),I.moveTo(K,z),I.lineTo(Y,J),I.lineTo(j,q),I.closePath(),I.stroke()}),I.restore()),I.canvas}var Por=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Ior=function(o){Por(f,o);function f(m,x,y,v,C,T,S,w,E,L,I,R){var P=o.call(this,C,Qo.IDLE,{interpolate:!!R})||this;P.renderEdges_=I!==void 0?I:!1,P.pixelRatio_=S,P.gutter_=w,P.canvas_=null,P.sourceTileGrid_=x,P.targetTileGrid_=v,P.wrappedTileCoord_=T||C,P.sourceTiles_=[],P.sourcesListenerKeys_=null,P.sourceZ_=0;var A=v.getTileCoordExtent(P.wrappedTileCoord_),M=P.targetTileGrid_.getExtent(),V=P.sourceTileGrid_.getExtent(),G=M?RR(A,M):A;if(bee(G)===0)return P.state=Qo.EMPTY,P;var D=m.getExtent();D&&(V?V=RR(V,D):V=D);var N=v.getResolution(P.wrappedTileCoord_[0]),k=xSt(m,y,G,N);if(!isFinite(k)||k<=0)return P.state=Qo.EMPTY,P;var U=L!==void 0?L:cSt;if(P.triangulation_=new dSt(m,y,G,V,k*U,N),P.triangulation_.getTriangles().length===0)return P.state=Qo.EMPTY,P;P.sourceZ_=x.getZForResolution(k);var B=P.triangulation_.calculateSourceExtent();if(V&&(m.canWrapX()?(B[1]=Mv(B[1],V[1],V[3]),B[3]=Mv(B[3],V[1],V[3])):B=RR(B,V)),!bee(B))P.state=Qo.EMPTY;else{for(var Y=x.getTileRangeForExtentAndZ(B,P.sourceZ_),J=Y.minX;J<=Y.maxX;J++)for(var K=Y.minY;K<=Y.maxY;K++){var z=E(P.sourceZ_,J,K,S);z&&P.sourceTiles_.push(z)}P.sourceTiles_.length===0&&(P.state=Qo.EMPTY)}return P}return f.prototype.getImage=function(){return this.canvas_},f.prototype.reproject_=function(){var m=[];if(this.sourceTiles_.forEach(function(E,L,I){E&&E.getState()==Qo.LOADED&&m.push({extent:this.sourceTileGrid_.getTileCoordExtent(E.tileCoord),image:E.getImage()})}.bind(this)),this.sourceTiles_.length=0,m.length===0)this.state=Qo.ERROR;else{var x=this.wrappedTileCoord_[0],y=this.targetTileGrid_.getTileSize(x),v=typeof y=="number"?y:y[0],C=typeof y=="number"?y:y[1],T=this.targetTileGrid_.getResolution(x),S=this.sourceTileGrid_.getResolution(this.sourceZ_),w=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=gSt(v,C,this.pixelRatio_,S,this.sourceTileGrid_.getExtent(),T,w,this.triangulation_,m,this.gutter_,this.renderEdges_,this.interpolate),this.state=Qo.LOADED}this.changed()},f.prototype.load=function(){if(this.state==Qo.IDLE){this.state=Qo.LOADING,this.changed();var m=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(x,y,v){var C=x.getState();if(C==Qo.IDLE||C==Qo.LOADING){m++;var T=Vv(x,wd.CHANGE,function(S){var w=x.getState();(w==Qo.LOADED||w==Qo.ERROR||w==Qo.EMPTY)&&(Dy(T),m--,m===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(T)}}.bind(this)),m===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(x,y,v){var C=x.getState();C==Qo.IDLE&&x.load()})}},f.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Dy),this.sourcesListenerKeys_=null},f.prototype.release=function(){this.canvas_&&(Tfe(this.canvas_.getContext("2d")),yOe.push(this.canvas_),this.canvas_=null),o.prototype.release.call(this)},f}(WD),ySt=Ior;var Ror=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Aor=function(o){Ror(f,o);function f(m){var x=o.call(this,m)||this;return x.extentChanged=!0,x.renderedExtent_=null,x.renderedPixelRatio,x.renderedProjection=null,x.renderedRevision,x.renderedTiles=[],x.newTiles_=!1,x.tmpExtent=Zg(),x.tmpTileRange_=new nfe(0,0,0,0),x}return f.prototype.isDrawableTile=function(m){var x=this.getLayer(),y=m.getState(),v=x.getUseInterimTilesOnError();return y==Qo.LOADED||y==Qo.EMPTY||y==Qo.ERROR&&!v},f.prototype.getTile=function(m,x,y,v){var C=v.pixelRatio,T=v.viewState.projection,S=this.getLayer(),w=S.getSource(),E=w.getTile(m,x,y,C,T);return E.getState()==Qo.ERROR&&(S.getUseInterimTilesOnError()?S.getPreload()>0&&(this.newTiles_=!0):E.setState(Qo.LOADED)),this.isDrawableTile(E)||(E=E.getInterimTile()),E},f.prototype.getData=function(m){var x=this.frameState;if(!x)return null;var y=this.getLayer(),v=Zf(x.pixelToCoordinateTransform,m.slice()),C=y.getExtent();if(C&&!IR(C,v))return null;for(var T=x.pixelRatio,S=x.viewState.projection,w=x.viewState,E=y.getRenderSource(),L=E.getTileGridForProjection(w.projection),I=E.getTilePixelRatio(x.pixelRatio),R=L.getZForResolution(w.resolution);R>=L.getMinZoom();--R){var P=L.getTileCoordForCoordAndZ(v,R),A=E.getTile(R,P[1],P[2],T,S);if(!(A instanceof uSt||A instanceof ySt))return null;if(A.getState()===Qo.LOADED){var M=L.getOrigin(R),V=sf(L.getTileSize(R)),G=L.getResolution(R),D=Math.floor(I*((v[0]-M[0])/G-P[1]*V[0])),N=Math.floor(I*((M[1]-v[1])/G-P[2]*V[1])),k=Math.round(I*E.getGutterForProjection(w.projection));return this.getImageData(A.getImage(),D+k,N+k)}}return null},f.prototype.loadedTileCallback=function(m,x,y){return this.isDrawableTile(y)?o.prototype.loadedTileCallback.call(this,m,x,y):!1},f.prototype.prepareFrame=function(m){return!!this.getLayer().getSource()},f.prototype.renderFrame=function(m,x){var y=m.layerStatesArray[m.layerIndex],v=m.viewState,C=v.projection,T=v.resolution,S=v.center,w=v.rotation,E=m.pixelRatio,L=this.getLayer(),I=L.getSource(),R=I.getRevision(),P=I.getTileGridForProjection(C),A=P.getZForResolution(T,I.zDirection),M=P.getResolution(A),V=m.extent,G=m.viewState.resolution,D=I.getTilePixelRatio(E),N=Math.round(af(V)/G*E),k=Math.round(Fy(V)/G*E),U=y.extent&&vfe(y.extent,C);U&&(V=RR(V,vfe(y.extent,C)));var B=M*N/2/D,Y=M*k/2/D,J=[S[0]-B,S[1]-Y,S[0]+B,S[1]+Y],K=P.getTileRangeForExtentAndZ(V,A),z={};z[A]={};var j=this.createLoadedTileFinder(I,C,z),q=this.tmpExtent,O=this.tmpTileRange_;this.newTiles_=!1;for(var te=w?R9e(v.center,G,w,m.size):void 0,ie=K.minX;ie<=K.maxX;++ie)for(var re=K.minY;re<=K.maxY;++re)if(!(w&&!P.tileCoordIntersectsViewport([A,ie,re],te))){var ee=this.getTile(A,ie,re,m);if(this.isDrawableTile(ee)){var ae=mu(this);if(ee.getState()==Qo.LOADED){z[A][ee.tileCoord.toString()]=ee;var oe=ee.inTransition(ae);oe&&y.opacity!==1&&(ee.endTransition(ae),oe=!1),!this.newTiles_&&(oe||this.renderedTiles.indexOf(ee)===-1)&&(this.newTiles_=!0)}if(ee.getAlpha(ae,m.time)===1)continue}var ce=P.getTileCoordChildTileRange(ee.tileCoord,O,q),pe=!1;ce&&(pe=j(A+1,ce)),pe||P.forEachTileCoordParentTileRange(ee.tileCoord,j,O,q)}var ue=M/T*E/D;d2(this.pixelTransform,m.size[0]/2,m.size[1]/2,1/E,1/E,w,-N/2,-k/2);var he=rTt(this.pixelTransform);this.useContainer(x,he,this.getBackground(m));var fe=this.context,de=fe.canvas;iTt(this.inversePixelTransform,this.pixelTransform),d2(this.tempTransform,N/2,k/2,ue,ue,0,-N/2,-k/2),de.width!=N||de.height!=k?(de.width=N,de.height=k):this.containerReused||fe.clearRect(0,0,N,k),U&&this.clipUnrotated(fe,m,U),I.getInterpolate()||ox(fe,Bee),this.preRender(fe,m),this.renderedTiles.length=0;var Ce=Object.keys(z).map(Number);Ce.sort(DL);var Se,Le,Ve;y.opacity===1&&(!this.containerReused||I.getOpaque(m.viewState.projection))?Ce=Ce.reverse():(Se=[],Le=[]);for(var Oe=Ce.length-1;Oe>=0;--Oe){var $e=Ce[Oe],at=I.getTilePixelSize($e,E,C),dt=P.getResolution($e),gt=dt/M,Et=at[0]*gt*ue,et=at[1]*gt*ue,yt=P.getTileCoordForCoordAndZ(jb(J),$e),Rt=P.getTileCoordExtent(yt),Vt=Zf(this.tempTransform,[D*(Rt[0]-J[0])/M,D*(J[3]-Rt[3])/M]),_t=D*I.getGutterForProjection(C),se=z[$e];for(var ve in se){var ee=se[ve],je=ee.tileCoord,Ft=yt[1]-je[1],kt=Math.round(Vt[0]-(Ft-1)*Et),bt=yt[2]-je[2],lt=Math.round(Vt[1]-(bt-1)*et),ie=Math.round(Vt[0]-Ft*Et),re=Math.round(Vt[1]-bt*et),ot=kt-ie,tt=lt-re,ze=A===$e,oe=ze&&ee.getAlpha(mu(this),m.time)!==1,ct=!1;if(!oe)if(Se){Ve=[ie,re,ie+ot,re,ie+ot,re+tt,ie,re+tt];for(var Wt=0,Tt=Se.length;Wt<Tt;++Wt)if(A!==$e&&$e<Le[Wt]){var Ht=Se[Wt];Ed([ie,re,ie+ot,re+tt],[Ht[0],Ht[3],Ht[4],Ht[7]])&&(ct||(fe.save(),ct=!0),fe.beginPath(),fe.moveTo(Ve[0],Ve[1]),fe.lineTo(Ve[2],Ve[3]),fe.lineTo(Ve[4],Ve[5]),fe.lineTo(Ve[6],Ve[7]),fe.moveTo(Ht[6],Ht[7]),fe.lineTo(Ht[4],Ht[5]),fe.lineTo(Ht[2],Ht[3]),fe.lineTo(Ht[0],Ht[1]),fe.clip())}Se.push(Ve),Le.push($e)}else fe.clearRect(ie,re,ot,tt);this.drawTileImage(ee,m,ie,re,ot,tt,_t,ze),Se&&!oe?(ct&&fe.restore(),this.renderedTiles.unshift(ee)):this.renderedTiles.push(ee),this.updateUsedTiles(m.usedTiles,I,ee)}}return this.renderedRevision=R,this.renderedResolution=M,this.extentChanged=!this.renderedExtent_||!OD(this.renderedExtent_,J),this.renderedExtent_=J,this.renderedPixelRatio=E,this.renderedProjection=C,this.manageTilePyramid(m,I,P,E,C,V,A,L.getPreload()),this.scheduleExpireCache(m,I),this.postRender(fe,m),y.extent&&fe.restore(),ox(fe,pSt),he!==de.style.transform&&(de.style.transform=he),this.container},f.prototype.drawTileImage=function(m,x,y,v,C,T,S,w){var E=this.getTileImage(m);if(!!E){var L=mu(this),I=x.layerStatesArray[x.layerIndex],R=I.opacity*(w?m.getAlpha(L,x.time):1),P=R!==this.context.globalAlpha;P&&(this.context.save(),this.context.globalAlpha=R),this.context.drawImage(E,S,S,E.width-2*S,E.height-2*S,y,v,C,T),P&&this.context.restore(),R!==I.opacity?x.animate=!0:w&&m.endTransition(L)}},f.prototype.getImage=function(){var m=this.context;return m?m.canvas:null},f.prototype.getTileImage=function(m){return m.getImage()},f.prototype.scheduleExpireCache=function(m,x){if(x.canExpireCache()){var y=function(v,C,T){var S=mu(v);S in T.usedTiles&&v.expireCache(T.viewState.projection,T.usedTiles[S])}.bind(null,x);m.postRenderFunctions.push(y)}},f.prototype.updateUsedTiles=function(m,x,y){var v=mu(x);v in m||(m[v]={}),m[v][y.getKey()]=!0},f.prototype.manageTilePyramid=function(m,x,y,v,C,T,S,w,E){var L=mu(x);L in m.wantedTiles||(m.wantedTiles[L]={});var I=m.wantedTiles[L],R=m.tileQueue,P=y.getMinZoom(),A=m.viewState.rotation,M=A?R9e(m.viewState.center,m.viewState.resolution,A,m.size):void 0,V=0,G,D,N,k,U,B;for(B=P;B<=S;++B)for(D=y.getTileRangeForExtentAndZ(T,B,D),N=y.getResolution(B),k=D.minX;k<=D.maxX;++k)for(U=D.minY;U<=D.maxY;++U)A&&!y.tileCoordIntersectsViewport([B,k,U],M)||(S-B<=w?(++V,G=x.getTile(B,k,U,v,C),G.getState()==Qo.IDLE&&(I[G.getKey()]=!0,R.isKeyQueued(G.getKey())||R.enqueue([G,L,y.getTileCoordCenter(G.tileCoord),N])),E!==void 0&&E(G)):x.useTile(B,k,U,C));x.updateCacheSize(V,C)},f}(sSt),_St=Aor;we();var FR={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"};we();var vX={ANIMATING:0,INTERACTING:1};we();we();var Mor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Vor=function(o){Mor(f,o);function f(m,x,y,v,C,T,S){var w=o.call(this)||this;return w.context_=m,w.pixelRatio_=x,w.extent_=y,w.transform_=v,w.viewRotation_=C,w.squaredTolerance_=T,w.userTransform_=S,w.contextFillState_=null,w.contextStrokeState_=null,w.contextTextState_=null,w.fillState_=null,w.strokeState_=null,w.image_=null,w.imageAnchorX_=0,w.imageAnchorY_=0,w.imageHeight_=0,w.imageOpacity_=0,w.imageOriginX_=0,w.imageOriginY_=0,w.imageRotateWithView_=!1,w.imageRotation_=0,w.imageScale_=[0,0],w.imageWidth_=0,w.text_="",w.textOffsetX_=0,w.textOffsetY_=0,w.textRotateWithView_=!1,w.textRotation_=0,w.textScale_=[0,0],w.textFillState_=null,w.textStrokeState_=null,w.textState_=null,w.pixelCoordinates_=[],w.tmpLocalTransform_=Ny(),w}return f.prototype.drawImages_=function(m,x,y,v){if(!!this.image_){var C=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_),T=this.context_,S=this.tmpLocalTransform_,w=T.globalAlpha;this.imageOpacity_!=1&&(T.globalAlpha=w*this.imageOpacity_);var E=this.imageRotation_;this.imageRotateWithView_&&(E+=this.viewRotation_);for(var L=0,I=C.length;L<I;L+=2){var R=C[L]-this.imageAnchorX_,P=C[L+1]-this.imageAnchorY_;if(E!==0||this.imageScale_[0]!=1||this.imageScale_[1]!=1){var A=R+this.imageAnchorX_,M=P+this.imageAnchorY_;d2(S,A,M,1,1,E,-A,-M),T.setTransform.apply(T,S),T.translate(A,M),T.scale(this.imageScale_[0],this.imageScale_[1]),T.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),T.setTransform(1,0,0,1,0,0)}else T.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,R,P,this.imageWidth_,this.imageHeight_)}this.imageOpacity_!=1&&(T.globalAlpha=w)}},f.prototype.drawText_=function(m,x,y,v){if(!(!this.textState_||this.text_==="")){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var C=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_),T=this.context_,S=this.textRotation_;for(this.textRotateWithView_&&(S+=this.viewRotation_);x<y;x+=v){var w=C[x]+this.textOffsetX_,E=C[x+1]+this.textOffsetY_;if(S!==0||this.textScale_[0]!=1||this.textScale_[1]!=1){var L=d2(this.tmpLocalTransform_,w,E,1,1,S,-w,-E);T.setTransform.apply(T,L),T.translate(w,E),T.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&T.strokeText(this.text_,0,0),this.textFillState_&&T.fillText(this.text_,0,0),T.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&T.strokeText(this.text_,w,E),this.textFillState_&&T.fillText(this.text_,w,E)}}},f.prototype.moveToLineTo_=function(m,x,y,v,C){var T=this.context_,S=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_);T.moveTo(S[0],S[1]);var w=S.length;C&&(w-=2);for(var E=2;E<w;E+=2)T.lineTo(S[E],S[E+1]);return C&&T.closePath(),y},f.prototype.drawRings_=function(m,x,y,v){for(var C=0,T=y.length;C<T;++C)x=this.moveToLineTo_(m,x,y[C],v,!0);return x},f.prototype.drawCircle=function(m){if(!!Ed(this.extent_,m.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=uTt(m,this.transform_,this.pixelCoordinates_),y=x[2]-x[0],v=x[3]-x[1],C=Math.sqrt(y*y+v*v),T=this.context_;T.beginPath(),T.arc(x[0],x[1],C,0,2*Math.PI),this.fillState_&&T.fill(),this.strokeState_&&T.stroke()}this.text_!==""&&this.drawText_(m.getCenter(),0,2,2)}},f.prototype.setStyle=function(m){this.setFillStrokeStyle(m.getFill(),m.getStroke()),this.setImageStyle(m.getImage()),this.setTextStyle(m.getText())},f.prototype.setTransform=function(m){this.transform_=m},f.prototype.drawGeometry=function(m){var x=m.getType();switch(x){case"Point":this.drawPoint(m);break;case"LineString":this.drawLineString(m);break;case"Polygon":this.drawPolygon(m);break;case"MultiPoint":this.drawMultiPoint(m);break;case"MultiLineString":this.drawMultiLineString(m);break;case"MultiPolygon":this.drawMultiPolygon(m);break;case"GeometryCollection":this.drawGeometryCollection(m);break;case"Circle":this.drawCircle(m);break;default:}},f.prototype.drawFeature=function(m,x){var y=x.getGeometryFunction()(m);!y||!Ed(this.extent_,y.getExtent())||(this.setStyle(x),this.drawGeometry(y))},f.prototype.drawGeometryCollection=function(m){for(var x=m.getGeometriesArray(),y=0,v=x.length;y<v;++y)this.drawGeometry(x[y])},f.prototype.drawPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),y=m.getStride();this.image_&&this.drawImages_(x,0,x.length,y),this.text_!==""&&this.drawText_(x,0,x.length,y)},f.prototype.drawMultiPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),y=m.getStride();this.image_&&this.drawImages_(x,0,x.length,y),this.text_!==""&&this.drawText_(x,0,x.length,y)},f.prototype.drawLineString=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(this.extent_,m.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var x=this.context_,y=m.getFlatCoordinates();x.beginPath(),this.moveToLineTo_(y,0,y.length,m.getStride(),!1),x.stroke()}if(this.text_!==""){var v=m.getFlatMidpoint();this.drawText_(v,0,2,2)}}},f.prototype.drawMultiLineString=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getExtent();if(!!Ed(this.extent_,x)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var y=this.context_,v=m.getFlatCoordinates(),C=0,T=m.getEnds(),S=m.getStride();y.beginPath();for(var w=0,E=T.length;w<E;++w)C=this.moveToLineTo_(v,C,T[w],S,!1);y.stroke()}if(this.text_!==""){var L=m.getFlatMidpoints();this.drawText_(L,0,L.length,2)}}},f.prototype.drawPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(this.extent_,m.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=this.context_;x.beginPath(),this.drawRings_(m.getOrientedFlatCoordinates(),0,m.getEnds(),m.getStride()),this.fillState_&&x.fill(),this.strokeState_&&x.stroke()}if(this.text_!==""){var y=m.getFlatInteriorPoint();this.drawText_(y,0,2,2)}}},f.prototype.drawMultiPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(this.extent_,m.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=this.context_,y=m.getOrientedFlatCoordinates(),v=0,C=m.getEndss(),T=m.getStride();x.beginPath();for(var S=0,w=C.length;S<w;++S){var E=C[S];v=this.drawRings_(y,v,E,T)}this.fillState_&&x.fill(),this.strokeState_&&x.stroke()}if(this.text_!==""){var L=m.getFlatInteriorPoints();this.drawText_(L,0,L.length,2)}}},f.prototype.setContextFillState_=function(m){var x=this.context_,y=this.contextFillState_;y?y.fillStyle!=m.fillStyle&&(y.fillStyle=m.fillStyle,x.fillStyle=m.fillStyle):(x.fillStyle=m.fillStyle,this.contextFillState_={fillStyle:m.fillStyle})},f.prototype.setContextStrokeState_=function(m){var x=this.context_,y=this.contextStrokeState_;y?(y.lineCap!=m.lineCap&&(y.lineCap=m.lineCap,x.lineCap=m.lineCap),x.setLineDash&&(LR(y.lineDash,m.lineDash)||x.setLineDash(y.lineDash=m.lineDash),y.lineDashOffset!=m.lineDashOffset&&(y.lineDashOffset=m.lineDashOffset,x.lineDashOffset=m.lineDashOffset)),y.lineJoin!=m.lineJoin&&(y.lineJoin=m.lineJoin,x.lineJoin=m.lineJoin),y.lineWidth!=m.lineWidth&&(y.lineWidth=m.lineWidth,x.lineWidth=m.lineWidth),y.miterLimit!=m.miterLimit&&(y.miterLimit=m.miterLimit,x.miterLimit=m.miterLimit),y.strokeStyle!=m.strokeStyle&&(y.strokeStyle=m.strokeStyle,x.strokeStyle=m.strokeStyle)):(x.lineCap=m.lineCap,x.setLineDash&&(x.setLineDash(m.lineDash),x.lineDashOffset=m.lineDashOffset),x.lineJoin=m.lineJoin,x.lineWidth=m.lineWidth,x.miterLimit=m.miterLimit,x.strokeStyle=m.strokeStyle,this.contextStrokeState_={lineCap:m.lineCap,lineDash:m.lineDash,lineDashOffset:m.lineDashOffset,lineJoin:m.lineJoin,lineWidth:m.lineWidth,miterLimit:m.miterLimit,strokeStyle:m.strokeStyle})},f.prototype.setContextTextState_=function(m){var x=this.context_,y=this.contextTextState_,v=m.textAlign?m.textAlign:jD;y?(y.font!=m.font&&(y.font=m.font,x.font=m.font),y.textAlign!=v&&(y.textAlign=v,x.textAlign=v),y.textBaseline!=m.textBaseline&&(y.textBaseline=m.textBaseline,x.textBaseline=m.textBaseline)):(x.font=m.font,x.textAlign=v,x.textBaseline=m.textBaseline,this.contextTextState_={font:m.font,textAlign:v,textBaseline:m.textBaseline})},f.prototype.setFillStrokeStyle=function(m,x){var y=this;if(!m)this.fillState_=null;else{var v=m.getColor();this.fillState_={fillStyle:$b(v||eC)}}if(!x)this.strokeState_=null;else{var C=x.getColor(),T=x.getLineCap(),S=x.getLineDash(),w=x.getLineDashOffset(),E=x.getLineJoin(),L=x.getWidth(),I=x.getMiterLimit(),R=S||KV;this.strokeState_={lineCap:T!==void 0?T:gX,lineDash:this.pixelRatio_===1?R:R.map(function(P){return P*y.pixelRatio_}),lineDashOffset:(w||JV)*this.pixelRatio_,lineJoin:E!==void 0?E:MR,lineWidth:(L!==void 0?L:$V)*this.pixelRatio_,miterLimit:I!==void 0?I:jV,strokeStyle:$b(C||QV)}}},f.prototype.setImageStyle=function(m){var x;if(!m||!(x=m.getSize())){this.image_=null;return}var y=m.getAnchor(),v=m.getOrigin();this.image_=m.getImage(this.pixelRatio_),this.imageAnchorX_=y[0]*this.pixelRatio_,this.imageAnchorY_=y[1]*this.pixelRatio_,this.imageHeight_=x[1]*this.pixelRatio_,this.imageOpacity_=m.getOpacity(),this.imageOriginX_=v[0],this.imageOriginY_=v[1],this.imageRotateWithView_=m.getRotateWithView(),this.imageRotation_=m.getRotation(),this.imageScale_=m.getScaleArray(),this.imageWidth_=x[0]*this.pixelRatio_},f.prototype.setTextStyle=function(m){if(!m)this.text_="";else{var x=m.getFill();if(!x)this.textFillState_=null;else{var y=x.getColor();this.textFillState_={fillStyle:$b(y||eC)}}var v=m.getStroke();if(!v)this.textStrokeState_=null;else{var C=v.getColor(),T=v.getLineCap(),S=v.getLineDash(),w=v.getLineDashOffset(),E=v.getLineJoin(),L=v.getWidth(),I=v.getMiterLimit();this.textStrokeState_={lineCap:T!==void 0?T:gX,lineDash:S||KV,lineDashOffset:w||JV,lineJoin:E!==void 0?E:MR,lineWidth:L!==void 0?L:$V,miterLimit:I!==void 0?I:jV,strokeStyle:$b(C||QV)}}var R=m.getFont(),P=m.getOffsetX(),A=m.getOffsetY(),M=m.getRotateWithView(),V=m.getRotation(),G=m.getScaleArray(),D=m.getText(),N=m.getTextAlign(),k=m.getTextBaseline();this.textState_={font:R!==void 0?R:Nfe,textAlign:N!==void 0?N:jD,textBaseline:k!==void 0?k:yX},this.text_=D!==void 0?Array.isArray(D)?D.reduce(function(U,B,Y){return U+=Y%2?" ":B},""):D:"",this.textOffsetX_=P!==void 0?this.pixelRatio_*P:0,this.textOffsetY_=A!==void 0?this.pixelRatio_*A:0,this.textRotateWithView_=M!==void 0?M:!1,this.textRotation_=V!==void 0?V:0,this.textScale_=[this.pixelRatio_*G[0],this.pixelRatio_*G[1]]}},f}(Zfe),vSt=Vor;we();var DR={FRACTION:"fraction",PIXELS:"pixels"};we();we();we();var J1={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};we();we();var Gor=function(){function o(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return o.prototype.clear=function(){this.cache_={},this.cacheSize_=0},o.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},o.prototype.expire=function(){if(this.canExpireCache()){var f=0;for(var m in this.cache_){var x=this.cache_[m];(f++&3)===0&&!x.hasListener()&&(delete this.cache_[m],--this.cacheSize_)}}},o.prototype.get=function(f,m,x){var y=bSt(f,m,x);return y in this.cache_?this.cache_[y]:null},o.prototype.set=function(f,m,x,y){var v=bSt(f,m,x);this.cache_[v]=y,++this.cacheSize_},o.prototype.setSize=function(f){this.maxCacheSize_=f,this.expire()},o}();function bSt(o,f,m){var x=m?Ffe(m):"null";return f+":"+o+":"+x}var _Oe=new Gor;var For=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Hee=null,Dor=function(o){For(f,o);function f(m,x,y,v,C,T){var S=o.call(this)||this;return S.hitDetectionImage_=null,S.image_=m||new Image,v!==null&&(S.image_.crossOrigin=v),S.canvas_={},S.color_=T,S.unlisten_=null,S.imageState_=C,S.size_=y,S.src_=x,S.tainted_,S}return f.prototype.isTainted_=function(){if(this.tainted_===void 0&&this.imageState_===bh.LOADED){Hee||(Hee=Wf(1,1)),Hee.drawImage(this.image_,0,0);try{Hee.getImageData(0,0,1,1),this.tainted_=!1}catch{Hee=null,this.tainted_=!0}}return this.tainted_===!0},f.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(wd.CHANGE)},f.prototype.handleImageError_=function(){this.imageState_=bh.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},f.prototype.handleImageLoad_=function(){this.imageState_=bh.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},f.prototype.getImage=function(m){return this.replaceColor_(m),this.canvas_[m]?this.canvas_[m]:this.image_},f.prototype.getPixelRatio=function(m){return this.replaceColor_(m),this.canvas_[m]?m:1},f.prototype.getImageState=function(){return this.imageState_},f.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var m=this.size_[0],x=this.size_[1],y=Wf(m,x);y.fillRect(0,0,m,x),this.hitDetectionImage_=y.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},f.prototype.getSize=function(){return this.size_},f.prototype.getSrc=function(){return this.src_},f.prototype.load=function(){if(this.imageState_==bh.IDLE){this.imageState_=bh.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=Uee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},f.prototype.replaceColor_=function(m){if(!(!this.color_||this.canvas_[m]||this.imageState_!==bh.LOADED)){var x=document.createElement("canvas");this.canvas_[m]=x,x.width=Math.ceil(this.image_.width*m),x.height=Math.ceil(this.image_.height*m);var y=x.getContext("2d");if(y.scale(m,m),y.drawImage(this.image_,0,0),y.globalCompositeOperation="multiply",y.globalCompositeOperation==="multiply"||this.isTainted_())y.fillStyle=Ffe(this.color_),y.fillRect(0,0,x.width/m,x.height/m),y.globalCompositeOperation="destination-in",y.drawImage(this.image_,0,0);else{for(var v=y.getImageData(0,0,x.width,x.height),C=v.data,T=this.color_[0]/255,S=this.color_[1]/255,w=this.color_[2]/255,E=this.color_[3],L=0,I=C.length;L<I;L+=4)C[L]*=T,C[L+1]*=S,C[L+2]*=w,C[L+3]*=E;y.putImageData(v,0,0)}}},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(PR);function CSt(o,f,m,x,y,v){var C=_Oe.get(f,x,v);return C||(C=new Dor(o,f,m,x,y,v),_Oe.set(f,x,v,C)),C}var Nor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Wor=function(o){Nor(f,o);function f(m){var x=this,y=m||{},v=y.opacity!==void 0?y.opacity:1,C=y.rotation!==void 0?y.rotation:0,T=y.scale!==void 0?y.scale:1,S=y.rotateWithView!==void 0?y.rotateWithView:!1;x=o.call(this,{opacity:v,rotation:C,scale:T,displacement:y.displacement!==void 0?y.displacement:[0,0],rotateWithView:S,declutterMode:y.declutterMode})||this,x.anchor_=y.anchor!==void 0?y.anchor:[.5,.5],x.normalizedAnchor_=null,x.anchorOrigin_=y.anchorOrigin!==void 0?y.anchorOrigin:J1.TOP_LEFT,x.anchorXUnits_=y.anchorXUnits!==void 0?y.anchorXUnits:DR.FRACTION,x.anchorYUnits_=y.anchorYUnits!==void 0?y.anchorYUnits:DR.FRACTION,x.crossOrigin_=y.crossOrigin!==void 0?y.crossOrigin:null;var w=y.img!==void 0?y.img:null;x.imgSize_=y.imgSize;var E=y.src;Su(!(E!==void 0&&w),4),Su(!w||w&&x.imgSize_,5),(E===void 0||E.length===0)&&w&&(E=w.src||mu(w)),Su(E!==void 0&&E.length>0,6);var L=y.src!==void 0?bh.IDLE:bh.LOADED;return x.color_=y.color!==void 0?xX(y.color):null,x.iconImage_=CSt(w,E,x.imgSize_!==void 0?x.imgSize_:null,x.crossOrigin_,L,x.color_),x.offset_=y.offset!==void 0?y.offset:[0,0],x.offsetOrigin_=y.offsetOrigin!==void 0?y.offsetOrigin:J1.TOP_LEFT,x.origin_=null,x.size_=y.size!==void 0?y.size:null,x}return f.prototype.clone=function(){var m=this.getScale();return new f({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(m)?m.slice():m,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},f.prototype.getAnchor=function(){var m=this.normalizedAnchor_;if(!m){m=this.anchor_;var x=this.getSize();if(this.anchorXUnits_==DR.FRACTION||this.anchorYUnits_==DR.FRACTION){if(!x)return null;m=this.anchor_.slice(),this.anchorXUnits_==DR.FRACTION&&(m[0]*=x[0]),this.anchorYUnits_==DR.FRACTION&&(m[1]*=x[1])}if(this.anchorOrigin_!=J1.TOP_LEFT){if(!x)return null;m===this.anchor_&&(m=this.anchor_.slice()),(this.anchorOrigin_==J1.TOP_RIGHT||this.anchorOrigin_==J1.BOTTOM_RIGHT)&&(m[0]=-m[0]+x[0]),(this.anchorOrigin_==J1.BOTTOM_LEFT||this.anchorOrigin_==J1.BOTTOM_RIGHT)&&(m[1]=-m[1]+x[1])}this.normalizedAnchor_=m}var y=this.getDisplacement();return[m[0]-y[0],m[1]+y[1]]},f.prototype.setAnchor=function(m){this.anchor_=m,this.normalizedAnchor_=null},f.prototype.getColor=function(){return this.color_},f.prototype.getImage=function(m){return this.iconImage_.getImage(m)},f.prototype.getPixelRatio=function(m){return this.iconImage_.getPixelRatio(m)},f.prototype.getImageSize=function(){return this.iconImage_.getSize()},f.prototype.getImageState=function(){return this.iconImage_.getImageState()},f.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},f.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var m=this.offset_;if(this.offsetOrigin_!=J1.TOP_LEFT){var x=this.getSize(),y=this.iconImage_.getSize();if(!x||!y)return null;m=m.slice(),(this.offsetOrigin_==J1.TOP_RIGHT||this.offsetOrigin_==J1.BOTTOM_RIGHT)&&(m[0]=y[0]-x[0]-m[0]),(this.offsetOrigin_==J1.BOTTOM_LEFT||this.offsetOrigin_==J1.BOTTOM_RIGHT)&&(m[1]=y[1]-x[1]-m[1])}return this.origin_=m,this.origin_},f.prototype.getSrc=function(){return this.iconImage_.getSrc()},f.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},f.prototype.listenImageChange=function(m){this.iconImage_.addEventListener(wd.CHANGE,m)},f.prototype.load=function(){this.iconImage_.load()},f.prototype.unlistenImageChange=function(m){this.iconImage_.removeEventListener(wd.CHANGE,m)},f}(Gfe),vOe=Wor;var r3=.5;function TSt(o,f,m,x,y,v,C){var T=o[0]*r3,S=o[1]*r3,w=Wf(T,S);w.imageSmoothingEnabled=!1;for(var E=w.canvas,L=new vSt(w,r3,y,null,C),I=m.length,R=Math.floor((256*256*256-1)/I),P={},A=1;A<=I;++A){var M=m[A-1],V=M.getStyleFunction()||x;if(!!x){var G=V(M,v);if(!!G){Array.isArray(G)||(G=[G]);for(var D=A*R,N="#"+("000000"+D.toString(16)).slice(-6),k=0,U=G.length;k<U;++k){var B=G[k],Y=B.getGeometryFunction()(M);if(!(!Y||!Ed(y,Y.getExtent()))){var J=B.clone(),K=J.getFill();K&&K.setColor(N);var z=J.getStroke();z&&(z.setColor(N),z.setLineDash(null)),J.setText(void 0);var j=B.getImage();if(j&&j.getOpacity()!==0){var q=j.getImageSize();if(!q)continue;var O=Wf(q[0],q[1],void 0,{alpha:!1}),te=O.canvas;O.fillStyle=N,O.fillRect(0,0,te.width,te.height),J.setImage(new vOe({img:te,imgSize:q,anchor:j.getAnchor(),anchorXUnits:DR.PIXELS,anchorYUnits:DR.PIXELS,offset:j.getOrigin(),opacity:1,size:j.getSize(),scale:j.getScale(),rotation:j.getRotation(),rotateWithView:j.getRotateWithView()}))}var ie=J.getZIndex()||0,re=P[ie];re||(re={},P[ie]=re,re.Polygon=[],re.Circle=[],re.LineString=[],re.Point=[]),re[Y.getType().replace("Multi","")].push(Y,J)}}}}}for(var ee=Object.keys(P).map(Number).sort(DL),A=0,ae=ee.length;A<ae;++A){var re=P[ee[A]];for(var oe in re)for(var ce=re[oe],k=0,U=ce.length;k<U;k+=2){L.setStyle(ce[k+1]);for(var pe=0,ue=f.length;pe<ue;++pe)L.setTransform(f[pe]),L.drawGeometry(ce[k])}}return w.getImageData(0,0,E.width,E.height)}function SSt(o,f,m){var x=[];if(m){var y=Math.floor(Math.round(o[0])*r3),v=Math.floor(Math.round(o[1])*r3),C=(Mv(y,0,m.width-1)+Mv(v,0,m.height-1)*m.width)*4,T=m.data[C],S=m.data[C+1],w=m.data[C+2],E=w+256*(S+256*T),L=Math.floor((256*256*256-1)/f.length);E&&E%L===0&&x.push(f[E/L-1])}return x}we();var Zor=.5,wSt={Point:Yor,LineString:Bor,Polygon:Jor,MultiPoint:Kor,MultiLineString:Hor,MultiPolygon:zor,GeometryCollection:Uor,Circle:Xor};function ESt(o,f){var m=Oor(o,f);return m*m}function Oor(o,f){return Zor*o/f}function Xor(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(v||C){var T=o.getBuilder(m.getZIndex(),"Circle");T.setFillStrokeStyle(v,C),T.drawCircle(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}function bOe(o,f,m,x,y,v,C){var T=!1,S=m.getImage();if(S){var w=S.getImageState();w==bh.LOADED||w==bh.ERROR?S.unlistenImageChange(y):(w==bh.IDLE&&S.load(),S.listenImageChange(y),T=!0)}return kor(o,f,m,x,v,C),T}function kor(o,f,m,x,y,v){var C=m.getGeometryFunction()(f);if(!!C){var T=C.simplifyTransformed(x,y),S=m.getRenderer();if(S)LSt(o,T,m,f);else{var w=wSt[T.getType()];w(o,T,m,f,v)}}}function LSt(o,f,m,x){if(f.getType()=="GeometryCollection"){for(var y=f.getGeometries(),v=0,C=y.length;v<C;++v)LSt(o,y[v],m,x);return}var T=o.getBuilder(m.getZIndex(),"Default");T.drawCustom(f,x,m.getRenderer(),m.getHitDetectionRenderer())}function Uor(o,f,m,x,y){var v=f.getGeometriesArray(),C,T;for(C=0,T=v.length;C<T;++C){var S=wSt[v[C].getType()];S(o,v[C],m,x,y)}}function Bor(o,f,m,x,y){var v=m.getStroke();if(v){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,v),C.drawLineString(f,x)}var T=m.getText();if(T&&T.getText()){var S=(y||o).getBuilder(m.getZIndex(),"Text");S.setTextStyle(T),S.drawText(f,x)}}function Hor(o,f,m,x,y){var v=m.getStroke();if(v){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,v),C.drawMultiLineString(f,x)}var T=m.getText();if(T&&T.getText()){var S=(y||o).getBuilder(m.getZIndex(),"Text");S.setTextStyle(T),S.drawText(f,x)}}function zor(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(C||v){var T=o.getBuilder(m.getZIndex(),"Polygon");T.setFillStrokeStyle(v,C),T.drawMultiPolygon(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}function Yor(o,f,m,x,y){var v=m.getImage(),C=m.getText(),T;if(v){if(v.getImageState()!=bh.LOADED)return;var S=o;if(y){var w=v.getDeclutterMode();if(w!=="none")if(S=y,w==="obstacle"){var E=o.getBuilder(m.getZIndex(),"Image");E.setImageStyle(v,T),E.drawPoint(f,x)}else C&&C.getText()&&(T={})}var L=S.getBuilder(m.getZIndex(),"Image");L.setImageStyle(v,T),L.drawPoint(f,x)}if(C&&C.getText()){var I=o;y&&(I=y);var R=I.getBuilder(m.getZIndex(),"Text");R.setTextStyle(C,T),R.drawText(f,x)}}function Kor(o,f,m,x,y){var v=m.getImage(),C=m.getText(),T;if(v){if(v.getImageState()!=bh.LOADED)return;var S=o;if(y){var w=v.getDeclutterMode();if(w!=="none")if(S=y,w==="obstacle"){var E=o.getBuilder(m.getZIndex(),"Image");E.setImageStyle(v,T),E.drawMultiPoint(f,x)}else C&&C.getText()&&(T={})}var L=S.getBuilder(m.getZIndex(),"Image");L.setImageStyle(v,T),L.drawMultiPoint(f,x)}if(C&&C.getText()){var I=o;y&&(I=y);var R=I.getBuilder(m.getZIndex(),"Text");R.setTextStyle(C,T),R.drawText(f,x)}}function Jor(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(v||C){var T=o.getBuilder(m.getZIndex(),"Polygon");T.setFillStrokeStyle(v,C),T.drawPolygon(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}var jor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Qor={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},qor={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},$or=function(o){jor(f,o);function f(m){var x=o.call(this,m)||this;return x.boundHandleStyleImageChange_=x.handleStyleImageChange_.bind(x),x.renderedLayerRevision_,x.renderedPixelToCoordinateTransform_=null,x.renderedRotation_,x.tmpTransform_=Ny(),x}return f.prototype.prepareTile=function(m,x,y){var v,C=m.getState();return(C===Qo.LOADED||C===Qo.ERROR)&&(this.updateExecutorGroup_(m,x,y),this.tileImageNeedsRender_(m)&&(v=!0)),v},f.prototype.getTile=function(m,x,y,v){var C=v.pixelRatio,T=v.viewState,S=T.resolution,w=T.projection,E=this.getLayer(),L=E.getSource().getTile(m,x,y,C,w),I=v.viewHints,R=!(I[vX.ANIMATING]||I[vX.INTERACTING]);(R||!L.wantedResolution)&&(L.wantedResolution=S);var P=this.prepareTile(L,C,w);return P&&(R||Date.now()-v.time<8)&&E.getRenderMode()!==FR.VECTOR&&this.renderTileImage_(L,v),o.prototype.getTile.call(this,m,x,y,v)},f.prototype.isDrawableTile=function(m){var x=this.getLayer();return o.prototype.isDrawableTile.call(this,m)&&(x.getRenderMode()===FR.VECTOR?mu(x)in m.executorGroups:m.hasContext(x))},f.prototype.getTileImage=function(m){return m.getImage(this.getLayer())},f.prototype.prepareFrame=function(m){var x=this.getLayer().getRevision();return this.renderedLayerRevision_!==x&&(this.renderedLayerRevision_=x,this.renderedTiles.length=0),o.prototype.prepareFrame.call(this,m)},f.prototype.updateExecutorGroup_=function(m,x,y){var v=this.getLayer(),C=v.getRevision(),T=v.getRenderOrder()||null,S=m.wantedResolution,w=m.getReplayState(v);if(!(!w.dirty&&w.renderedResolution===S&&w.renderedRevision==C&&w.renderedRenderOrder==T)){var E=v.getSource(),L=v.getDeclutter(),I=E.getTileGrid(),R=E.getTileGridForProjection(y),P=R.getTileCoordExtent(m.wrappedTileCoord),A=E.getSourceTiles(x,y,m),M=mu(v);delete m.hitDetectionImageData[M],m.executorGroups[M]=[],L&&(m.declutterExecutorGroups[M]=[]),w.dirty=!1;for(var V=function(k,U){var B=A[k];if(B.getState()!=Qo.LOADED)return"continue";var Y=B.tileCoord,J=I.getTileCoordExtent(Y),K=RR(P,J),z=ZL(K,v.getRenderBuffer()*S,G.tmpExtent),j=OD(J,K)?null:z,q=new dOe(0,z,S,x),O=L?new dOe(0,K,S,x):void 0,te=ESt(S,x),ie=function(fe){var de,Ce=fe.getStyleFunction()||v.getStyleFunction();if(Ce&&(de=Ce(fe,S)),de){var Se=this.renderFeature(fe,te,de,q,O);w.dirty=w.dirty||Se}},re=B.getFeatures();T&&T!==w.renderedRenderOrder&&re.sort(T);for(var ee=0,ae=re.length;ee<ae;++ee){var oe=re[ee];(!j||Ed(j,oe.getGeometry().getExtent()))&&ie.call(G,oe)}var ce=q.finish(),pe=v.getRenderMode()!==FR.VECTOR&&L&&A.length===1?null:K,ue=new mOe(pe,S,x,E.getOverlaps(),ce,v.getRenderBuffer());if(m.executorGroups[M].push(ue),O){var he=new mOe(null,S,x,E.getOverlaps(),O.finish(),v.getRenderBuffer());m.declutterExecutorGroups[M].push(he)}},G=this,D=0,N=A.length;D<N;++D)V(D,N);w.renderedRevision=C,w.renderedRenderOrder=T,w.renderedResolution=S}},f.prototype.forEachFeatureAtCoordinate=function(m,x,y,v,C){var T=x.viewState.resolution,S=x.viewState.rotation;y=y??0;var w=this.getLayer(),E=w.getSource(),L=E.getTileGridForProjection(x.viewState.projection),I=_ee([m]);ZL(I,T*y,I);for(var R={},P=function(N,k,U){var B=N.getId();B===void 0&&(B=mu(N));var Y=R[B];if(Y){if(Y!==!0&&U<Y.distanceSq){if(U===0)return R[B]=!0,C.splice(C.lastIndexOf(Y),1),v(N,w,k);Y.geometry=k,Y.distanceSq=U}}else{if(U===0)return R[B]=!0,v(N,w,k);C.push(R[B]={feature:N,layer:w,geometry:k,distanceSq:U,callback:v})}},A=this.renderedTiles,M,V=function(N,k){var U=A[N],B=L.getTileCoordExtent(U.wrappedTileCoord);if(!Ed(B,I))return"continue";var Y=mu(w),J=[U.executorGroups[Y]],K=U.declutterExecutorGroups[Y];K&&J.push(K),J.some(function(z){for(var j=z===K?x.declutterTree.all().map(function(ie){return ie.value}):null,q=0,O=z.length;q<O;++q){var te=z[q];if(M=te.forEachFeatureAtCoordinate(m,T,S,y,P,j),M)return!0}})},G=0,D=A.length;!M&&G<D;++G)V(G,D);return M},f.prototype.getFeatures=function(m){return new Promise(function(x,y){for(var v=this.getLayer(),C=mu(v),T=v.getSource(),S=this.renderedProjection,w=S.getExtent(),E=this.renderedResolution,L=T.getTileGridForProjection(S),I=Zf(this.renderedPixelToCoordinateTransform_,m.slice()),R=L.getTileCoordForCoordAndResolution(I,E),P,A=0,M=this.renderedTiles.length;A<M;++A)if(R.toString()===this.renderedTiles[A].tileCoord.toString()){if(P=this.renderedTiles[A],P.getState()===Qo.LOADED){var V=L.getTileCoordExtent(P.tileCoord);T.getWrapX()&&S.canWrapX()&&!qY(w,V)&&I1t(I,S);break}P=void 0}if(!P||P.loadingSourceTiles>0){x([]);return}var G=L.getTileCoordExtent(P.wrappedTileCoord),D=jb(G),N=[(I[0]-D[0])/E,(D[1]-I[1])/E],k=P.getSourceTiles().reduce(function(K,z){return K.concat(z.getFeatures())},[]),U=P.hitDetectionImageData[C];if(!U&&!this.animatingOrInteracting_){var B=sf(L.getTileSize(L.getZForResolution(E,T.zDirection))),Y=this.renderedRotation_,J=[this.getRenderTransform(L.getTileCoordCenter(P.wrappedTileCoord),E,0,r3,B[0]*r3,B[1]*r3,0)];U=TSt(B,J,k,v.getStyleFunction(),L.getTileCoordExtent(P.wrappedTileCoord),P.getReplayState(v).renderedResolution,Y),P.hitDetectionImageData[C]=U}x(SSt(N,k,U))}.bind(this))},f.prototype.handleFontsChanged=function(){var m=this.getLayer();m.getVisible()&&this.renderedLayerRevision_!==void 0&&m.changed()},f.prototype.handleStyleImageChange_=function(m){this.renderIfReadyAndVisible()},f.prototype.renderDeclutter=function(m){var x=this.context,y=x.globalAlpha;x.globalAlpha=this.getLayer().getOpacity();for(var v=m.viewHints,C=!(v[vX.ANIMATING]||v[vX.INTERACTING]),T=this.renderedTiles,S=0,w=T.length;S<w;++S){var E=T[S],L=E.declutterExecutorGroups[mu(this.getLayer())];if(L)for(var I=L.length-1;I>=0;--I)L[I].execute(this.context,1,this.getTileRenderTransform(E,m),m.viewState.rotation,C,void 0,m.declutterTree)}x.globalAlpha=y},f.prototype.getTileRenderTransform=function(m,x){var y=x.pixelRatio,v=x.viewState,C=v.center,T=v.resolution,S=v.rotation,w=x.size,E=Math.round(w[0]*y),L=Math.round(w[1]*y),I=this.getLayer().getSource(),R=I.getTileGridForProjection(x.viewState.projection),P=m.tileCoord,A=R.getTileCoordExtent(m.wrappedTileCoord),M=R.getTileCoordExtent(P,this.tmpExtent)[0]-A[0],V=Sfe(Lee(this.inversePixelTransform.slice(),1/y,1/y),this.getRenderTransform(C,T,S,y,E,L,M));return V},f.prototype.renderFrame=function(m,x){var y=m.viewHints,v=!(y[vX.ANIMATING]||y[vX.INTERACTING]);o.prototype.renderFrame.call(this,m,x),this.renderedPixelToCoordinateTransform_=m.pixelToCoordinateTransform.slice(),this.renderedRotation_=m.viewState.rotation;var C=this.getLayer(),T=C.getRenderMode(),S=this.context,w=S.globalAlpha;S.globalAlpha=C.getOpacity();for(var E=qor[T],L=m.viewState,I=L.rotation,R=C.getSource(),P=R.getTileGridForProjection(L.projection),A=P.getZForResolution(L.resolution,R.zDirection),M=this.renderedTiles,V=[],G=[],D=!0,N=M.length-1;N>=0;--N){var k=M[N];D=D&&!k.getReplayState(C).dirty;var U=k.executorGroups[mu(C)].filter(function(re){return re.hasExecutors(E)});if(U.length!==0){var B=this.getTileRenderTransform(k,m),Y=k.tileCoord[0],J=!1,K=U[0].getClipCoords(B);if(K){for(var z=0,j=V.length;z<j;++z)if(A!==Y&&Y<G[z]){var q=V[z];Ed([K[0],K[3],K[4],K[7]],[q[0],q[3],q[4],q[7]])&&(J||(S.save(),J=!0),S.beginPath(),S.moveTo(K[0],K[1]),S.lineTo(K[2],K[3]),S.lineTo(K[4],K[5]),S.lineTo(K[6],K[7]),S.moveTo(q[6],q[7]),S.lineTo(q[4],q[5]),S.lineTo(q[2],q[3]),S.lineTo(q[0],q[1]),S.clip())}V.push(K),G.push(Y)}for(var O=0,te=U.length;O<te;++O){var ie=U[O];ie.execute(S,1,B,I,v,E)}J&&S.restore()}}return S.globalAlpha=w,this.ready=D,this.container},f.prototype.renderFeature=function(m,x,y,v,C){if(!y)return!1;var T=!1;if(Array.isArray(y))for(var S=0,w=y.length;S<w;++S)T=bOe(v,m,y[S],x,this.boundHandleStyleImageChange_,void 0,C)||T;else T=bOe(v,m,y,x,this.boundHandleStyleImageChange_,void 0,C);return T},f.prototype.tileImageNeedsRender_=function(m){var x=this.getLayer();if(x.getRenderMode()===FR.VECTOR)return!1;var y=m.getReplayState(x),v=x.getRevision(),C=m.wantedResolution;return y.renderedTileResolution!==C||y.renderedTileRevision!==v},f.prototype.renderTileImage_=function(m,x){var y=this.getLayer(),v=m.getReplayState(y),C=y.getRevision(),T=m.executorGroups[mu(y)];v.renderedTileRevision=C;var S=m.wrappedTileCoord,w=S[0],E=y.getSource(),L=x.pixelRatio,I=x.viewState,R=I.projection,P=E.getTileGridForProjection(R),A=P.getResolution(m.tileCoord[0]),M=x.pixelRatio/m.wantedResolution*A,V=P.getResolution(w),G=m.getContext(y);L=Math.round(Math.max(L,M/L));var D=E.getTilePixelSize(w,L,R);G.canvas.width=D[0],G.canvas.height=D[1];var N=L/M;if(N!==1){var k=k9e(this.tmpTransform_);Lee(k,N,N),G.setTransform.apply(G,k)}var U=P.getTileCoordExtent(S,this.tmpExtent),B=M/V,Y=k9e(this.tmpTransform_);Lee(Y,B,-B),tTt(Y,-U[0],-U[3]);for(var J=0,K=T.length;J<K;++J){var z=T[J];z.execute(G,N,Y,0,!0,Qor[y.getRenderMode()])}v.renderedTileResolution=m.wantedResolution},f}(_St),PSt=$or;we();var zee={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};var ear=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),tar=function(o){ear(f,o);function f(m){var x=this,y=m||{},v=ox({},y);delete v.preload,delete v.useInterimTilesOnError,x=o.call(this,v)||this,x.on,x.once,x.un,y.renderMode===FR.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),y.renderMode=void 0);var C=y.renderMode||FR.HYBRID;return Su(C==FR.HYBRID||C==FR.VECTOR,28),x.renderMode_=C,x.setPreload(y.preload?y.preload:0),x.setUseInterimTilesOnError(y.useInterimTilesOnError!==void 0?y.useInterimTilesOnError:!0),x.getBackground,x.setBackground,x}return f.prototype.createRenderer=function(){return new PSt(this)},f.prototype.getFeatures=function(m){return o.prototype.getFeatures.call(this,m)},f.prototype.getRenderMode=function(){return this.renderMode_},f.prototype.getPreload=function(){return this.get(zee.PRELOAD)},f.prototype.getUseInterimTilesOnError=function(){return this.get(zee.USE_INTERIM_TILES_ON_ERROR)},f.prototype.setPreload=function(m){this.set(zee.PRELOAD,m)},f.prototype.setUseInterimTilesOnError=function(m){this.set(zee.USE_INTERIM_TILES_ON_ERROR,m)},f}(jTt),ISt=tar;we();we();we();var $D={ADD:"add",REMOVE:"remove"};var ASt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),RSt={LENGTH:"length"},Ofe=function(o){ASt(f,o);function f(m,x,y){var v=o.call(this,m)||this;return v.element=x,v.index=y,v}return f}(hw);var iar=function(o){ASt(f,o);function f(m,x){var y=o.call(this)||this;y.on,y.once,y.un;var v=x||{};if(y.unique_=!!v.unique,y.array_=m||[],y.unique_)for(var C=0,T=y.array_.length;C<T;++C)y.assertUnique_(y.array_[C],C);return y.updateLength_(),y}return f.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},f.prototype.extend=function(m){for(var x=0,y=m.length;x<y;++x)this.push(m[x]);return this},f.prototype.forEach=function(m){for(var x=this.array_,y=0,v=x.length;y<v;++y)m(x[y],y,x)},f.prototype.getArray=function(){return this.array_},f.prototype.item=function(m){return this.array_[m]},f.prototype.getLength=function(){return this.get(RSt.LENGTH)},f.prototype.insertAt=function(m,x){this.unique_&&this.assertUnique_(x),this.array_.splice(m,0,x),this.updateLength_(),this.dispatchEvent(new Ofe($D.ADD,x,m))},f.prototype.pop=function(){return this.removeAt(this.getLength()-1)},f.prototype.push=function(m){this.unique_&&this.assertUnique_(m);var x=this.getLength();return this.insertAt(x,m),this.getLength()},f.prototype.remove=function(m){for(var x=this.array_,y=0,v=x.length;y<v;++y)if(x[y]===m)return this.removeAt(y)},f.prototype.removeAt=function(m){var x=this.array_[m];return this.array_.splice(m,1),this.updateLength_(),this.dispatchEvent(new Ofe($D.REMOVE,x,m)),x},f.prototype.setAt=function(m,x){var y=this.getLength();if(m<y){this.unique_&&this.assertUnique_(x,m);var v=this.array_[m];this.array_[m]=x,this.dispatchEvent(new Ofe($D.REMOVE,v,m)),this.dispatchEvent(new Ofe($D.ADD,x,m))}else{for(var C=y;C<m;++C)this.insertAt(C,void 0);this.insertAt(m,x)}},f.prototype.updateLength_=function(){this.set(RSt.LENGTH,this.array_.length)},f.prototype.assertUnique_=function(m,x){for(var y=0,v=this.array_.length;y<v;++y)if(this.array_[y]===m&&y!==x)throw new tfe(58)},f}(fw),MSt=iar;we();var VSt=x5(uOe(),1);var rar=function(){function o(f){this.rbush_=new VSt.default(f),this.items_={}}return o.prototype.insert=function(f,m){var x={minX:f[0],minY:f[1],maxX:f[2],maxY:f[3],value:m};this.rbush_.insert(x),this.items_[mu(m)]=x},o.prototype.load=function(f,m){for(var x=new Array(m.length),y=0,v=m.length;y<v;y++){var C=f[y],T=m[y],S={minX:C[0],minY:C[1],maxX:C[2],maxY:C[3],value:T};x[y]=S,this.items_[mu(T)]=S}this.rbush_.load(x)},o.prototype.remove=function(f){var m=mu(f),x=this.items_[m];return delete this.items_[m],this.rbush_.remove(x)!==null},o.prototype.update=function(f,m){var x=this.items_[mu(m)],y=[x.minX,x.minY,x.maxX,x.maxY];OD(y,f)||(this.remove(m),this.insert(f,m))},o.prototype.getAll=function(){var f=this.rbush_.all();return f.map(function(m){return m.value})},o.prototype.getInExtent=function(f){var m={minX:f[0],minY:f[1],maxX:f[2],maxY:f[3]},x=this.rbush_.search(m);return x.map(function(y){return y.value})},o.prototype.forEach=function(f){return this.forEach_(this.getAll(),f)},o.prototype.forEachInExtent=function(f,m){return this.forEach_(this.getInExtent(f),m)},o.prototype.forEach_=function(f,m){for(var x,y=0,v=f.length;y<v;y++)if(x=m(f[y]),x)return x;return x},o.prototype.isEmpty=function(){return NL(this.items_)},o.prototype.clear=function(){this.rbush_.clear(),this.items_={}},o.prototype.getExtent=function(f){var m=this.rbush_.toJSON();return K1(m.minX,m.minY,m.maxX,m.maxY,f)},o.prototype.concat=function(f){this.rbush_.load(f.rbush_.all());for(var m in f.items_)this.items_[m]=f.items_[m]},o}(),COe=rar;we();var gw={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};we();function GSt(o,f){return[[-1/0,-1/0,1/0,1/0]]}var FSt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),eN=function(o){FSt(f,o);function f(m,x,y){var v=o.call(this,m)||this;return v.feature=x,v.features=y,v}return f}(hw);var nar=function(o){FSt(f,o);function f(m){var x=this,y=m||{};x=o.call(this,{attributions:y.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:y.wrapX!==void 0?y.wrapX:!0})||this,x.on,x.once,x.un,x.loader_=lX,x.format_=y.format,x.overlaps_=y.overlaps===void 0?!0:y.overlaps,x.url_=y.url,y.loader!==void 0?x.loader_=y.loader:x.url_!==void 0&&(Su(x.format_,7),x.loader_=X9e(x.url_,x.format_)),x.strategy_=y.strategy!==void 0?y.strategy:GSt;var v=y.useSpatialIndex!==void 0?y.useSpatialIndex:!0;x.featuresRtree_=v?new COe:null,x.loadedExtentsRtree_=new COe,x.loadingExtentsCount_=0,x.nullGeometryFeatures_={},x.idIndex_={},x.uidIndex_={},x.featureChangeKeys_={},x.featuresCollection_=null;var C,T;return Array.isArray(y.features)?T=y.features:y.features&&(C=y.features,T=C.getArray()),!v&&C===void 0&&(C=new MSt(T)),T!==void 0&&x.addFeaturesInternal(T),C!==void 0&&x.bindFeaturesCollection_(C),x}return f.prototype.addFeature=function(m){this.addFeatureInternal(m),this.changed()},f.prototype.addFeatureInternal=function(m){var x=mu(m);if(!this.addToIndex_(x,m)){this.featuresCollection_&&this.featuresCollection_.remove(m);return}this.setupChangeEvents_(x,m);var y=m.getGeometry();if(y){var v=y.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(v,m)}else this.nullGeometryFeatures_[x]=m;this.dispatchEvent(new eN(gw.ADDFEATURE,m))},f.prototype.setupChangeEvents_=function(m,x){this.featureChangeKeys_[m]=[Vv(x,wd.CHANGE,this.handleFeatureChange_,this),Vv(x,ffe.PROPERTYCHANGE,this.handleFeatureChange_,this)]},f.prototype.addToIndex_=function(m,x){var y=!0,v=x.getId();return v!==void 0&&(v.toString()in this.idIndex_?y=!1:this.idIndex_[v.toString()]=x),y&&(Su(!(m in this.uidIndex_),30),this.uidIndex_[m]=x),y},f.prototype.addFeatures=function(m){this.addFeaturesInternal(m),this.changed()},f.prototype.addFeaturesInternal=function(m){for(var x=[],y=[],v=[],C=0,T=m.length;C<T;C++){var S=m[C],w=mu(S);this.addToIndex_(w,S)&&y.push(S)}for(var C=0,E=y.length;C<E;C++){var S=y[C],w=mu(S);this.setupChangeEvents_(w,S);var L=S.getGeometry();if(L){var I=L.getExtent();x.push(I),v.push(S)}else this.nullGeometryFeatures_[w]=S}if(this.featuresRtree_&&this.featuresRtree_.load(x,v),this.hasListener(gw.ADDFEATURE))for(var C=0,R=y.length;C<R;C++)this.dispatchEvent(new eN(gw.ADDFEATURE,y[C]))},f.prototype.bindFeaturesCollection_=function(m){var x=!1;this.addEventListener(gw.ADDFEATURE,function(y){x||(x=!0,m.push(y.feature),x=!1)}),this.addEventListener(gw.REMOVEFEATURE,function(y){x||(x=!0,m.remove(y.feature),x=!1)}),m.addEventListener($D.ADD,function(y){x||(x=!0,this.addFeature(y.element),x=!1)}.bind(this)),m.addEventListener($D.REMOVE,function(y){x||(x=!0,this.removeFeature(y.element),x=!1)}.bind(this)),this.featuresCollection_=m},f.prototype.clear=function(m){if(m){for(var x in this.featureChangeKeys_){var y=this.featureChangeKeys_[x];y.forEach(Dy)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var v=function(S){this.removeFeatureInternal(S)}.bind(this);this.featuresRtree_.forEach(v);for(var C in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[C])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var T=new eN(gw.CLEAR);this.dispatchEvent(T),this.changed()},f.prototype.forEachFeature=function(m){if(this.featuresRtree_)return this.featuresRtree_.forEach(m);this.featuresCollection_&&this.featuresCollection_.forEach(m)},f.prototype.forEachFeatureAtCoordinateDirect=function(m,x){var y=[m[0],m[1],m[0],m[1]];return this.forEachFeatureInExtent(y,function(v){var C=v.getGeometry();if(C.intersectsCoordinate(m))return x(v)})},f.prototype.forEachFeatureInExtent=function(m,x){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(m,x);this.featuresCollection_&&this.featuresCollection_.forEach(x)},f.prototype.forEachFeatureIntersectingExtent=function(m,x){return this.forEachFeatureInExtent(m,function(y){var v=y.getGeometry();if(v.intersectsExtent(m)){var C=x(y);if(C)return C}})},f.prototype.getFeaturesCollection=function(){return this.featuresCollection_},f.prototype.getFeatures=function(){var m;return this.featuresCollection_?m=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(m=this.featuresRtree_.getAll(),NL(this.nullGeometryFeatures_)||Gy(m,JCt(this.nullGeometryFeatures_))),m},f.prototype.getFeaturesAtCoordinate=function(m){var x=[];return this.forEachFeatureAtCoordinateDirect(m,function(y){x.push(y)}),x},f.prototype.getFeaturesInExtent=function(m,x){var y=this;if(this.featuresRtree_){var v=x&&x.canWrapX()&&this.getWrapX();if(!v)return this.featuresRtree_.getInExtent(m);var C=m1t(m,x);return[].concat.apply([],C.map(function(T){return y.featuresRtree_.getInExtent(T)}))}else return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},f.prototype.getClosestFeatureToCoordinate=function(m,x){var y=m[0],v=m[1],C=null,T=[NaN,NaN],S=1/0,w=[-1/0,-1/0,1/0,1/0],E=x||YCt;return this.featuresRtree_.forEachInExtent(w,function(L){if(E(L)){var I=L.getGeometry(),R=S;if(S=I.closestPointXY(y,v,T,S),S<R){C=L;var P=Math.sqrt(S);w[0]=y-P,w[1]=v-P,w[2]=y+P,w[3]=v+P}}}),C},f.prototype.getExtent=function(m){return this.featuresRtree_.getExtent(m)},f.prototype.getFeatureById=function(m){var x=this.idIndex_[m.toString()];return x!==void 0?x:null},f.prototype.getFeatureByUid=function(m){var x=this.uidIndex_[m];return x!==void 0?x:null},f.prototype.getFormat=function(){return this.format_},f.prototype.getOverlaps=function(){return this.overlaps_},f.prototype.getUrl=function(){return this.url_},f.prototype.handleFeatureChange_=function(m){var x=m.target,y=mu(x),v=x.getGeometry();if(!v)y in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(x),this.nullGeometryFeatures_[y]=x);else{var C=v.getExtent();y in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[y],this.featuresRtree_&&this.featuresRtree_.insert(C,x)):this.featuresRtree_&&this.featuresRtree_.update(C,x)}var T=x.getId();if(T!==void 0){var S=T.toString();this.idIndex_[S]!==x&&(this.removeFromIdIndex_(x),this.idIndex_[S]=x)}else this.removeFromIdIndex_(x),this.uidIndex_[y]=x;this.changed(),this.dispatchEvent(new eN(gw.CHANGEFEATURE,x))},f.prototype.hasFeature=function(m){var x=m.getId();return x!==void 0?x in this.idIndex_:mu(m)in this.uidIndex_},f.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&NL(this.nullGeometryFeatures_):this.featuresCollection_?this.featuresCollection_.getLength()===0:!0},f.prototype.loadFeatures=function(m,x,y){for(var v=this.loadedExtentsRtree_,C=this.strategy_(m,x,y),T=function(L,I){var R=C[L],P=v.forEachInExtent(R,function(A){return qY(A.extent,R)});P||(++S.loadingExtentsCount_,S.dispatchEvent(new eN(gw.FEATURESLOADSTART)),S.loader_.call(S,R,x,y,function(A){--this.loadingExtentsCount_,this.dispatchEvent(new eN(gw.FEATURESLOADEND,void 0,A))}.bind(S),function(){--this.loadingExtentsCount_,this.dispatchEvent(new eN(gw.FEATURESLOADERROR))}.bind(S)),v.insert(R,{extent:R.slice()}))},S=this,w=0,E=C.length;w<E;++w)T(w,E);this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0},f.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),o.prototype.refresh.call(this)},f.prototype.removeLoadedExtent=function(m){var x=this.loadedExtentsRtree_,y;x.forEachInExtent(m,function(v){if(OD(v.extent,m))return y=v,!0}),y&&x.remove(y)},f.prototype.removeFeature=function(m){if(!!m){var x=mu(m);x in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[x]:this.featuresRtree_&&this.featuresRtree_.remove(m);var y=this.removeFeatureInternal(m);y&&this.changed()}},f.prototype.removeFeatureInternal=function(m){var x=mu(m),y=this.featureChangeKeys_[x];if(!!y){y.forEach(Dy),delete this.featureChangeKeys_[x];var v=m.getId();return v!==void 0&&delete this.idIndex_[v.toString()],delete this.uidIndex_[x],this.dispatchEvent(new eN(gw.REMOVEFEATURE,m)),m}},f.prototype.removeFromIdIndex_=function(m){var x=!1;for(var y in this.idIndex_)if(this.idIndex_[y]===m){delete this.idIndex_[y],x=!0;break}return x},f.prototype.setLoader=function(m){this.loader_=m},f.prototype.setUrl=function(m){Su(this.format_,7),this.url_=m,this.setLoader(X9e(m,this.format_))},f}(bfe),DSt=nar;var oar={toDegrees:P9e,toFeature:ITt,transform:_fe,VectorSource:DSt},Xfe=class extends gm{constructor(f,m){super(f),this._primitive=null,this._parameter=null,this._wModels=[],this._instance=[],this.instanceId=new Map,this._parameter=m}async addToMap(){let f=this._parameter,m=f.sourceType??"wmts",x=null;if(m==="wmts")x=new wV(f);else if(m==="mapbox")x=new bO(f);else if(m==="arcgis")x=await d1.fromUrl(f.url,f);else if(m==="wms")x=new CO(f);else if(m==="multi")x=new Wz(f);else if(m==="single")x=await V1.fromUrl(f.url,f);else if(m==="tms"){let v=f.west??void 0,C=f.south??void 0,T=f.east??void 0,S=f.north??void 0;F(v)&&F(C)&&F(T)&&F(S)&&(f.rectangle=new vi(be.toRadians(v),be.toRadians(C),be.toRadians(T),be.toRadians(S))),F(f.fileExtension)&&f.fileExtension==="json"&&(f.callback=this.processGeoJson()),x=await _L.fromUrl(f.url,f)}else if(m==="baidu")x=new Nz(f);else if(m==="gaode"||m==="geovis"||m==="qqmap")x=new Hb(f);else if(m==="mapworld")x=new wV(f);else if(m==="osm")x=new ME(f);else if(m==="bingmap")x=await vO.fromUrl(f.url,f);else if(m==="mvt"){if(F(f.coreMap)||(f.coreMap=this._earthCtrl.coreMap),f.mvtConfig){let v=this.getVectorTileLayer(f.mvtConfig),C=f.projection?f.projection:"EPSG:3857";f.vectorTileLayer=v,f.projection=V1t(C)}x=new Zz(f,oar)}x!==null&&(this._primitive=this._earthCtrl.imageryLayers.addImageryProvider(x,f.zIndex),this._primitive._layerIndex=f.zIndex),m==="ion"&&(this._primitive=Up.fromProviderAsync(WG.fromAssetId(f.assetId),f),this._earthCtrl.imageryLayers.add(this._primitive),this._primitive._layerIndex=f.zIndex);let y=f.groupName||this._earthCtrl.language.GROUP_NWE_IMAGERY_LAYER;f.addTree&&(f.addTree=void 0,f.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(y,{id:f.id||this._earthCtrl.factory.createUUID(),name:f.name||m,sourceType:"ImageryProvider",item:this._primitive,feature:f,checked:this._primitive.show}))}getVectorTileLayer(f){let m=f.url?f.url:"",x=f.tileSize?f.tileSize:256,y=f.fillColor?f.fillColor:"rgba(68,197,19,0.5)",v=f.strokeColor?f.strokeColor:"rgba(0,31,255,1)",C=f.strokeWidth?f.strokeWidth:1,T=f.textColor?f.textColor:"#000",S=f.textStrokeColor?f.textStrokeColor:"#ff7d00",w=f.selectColor?f.selectColor:"#ff0000",E=f.selectGe_Id?f.selectGe_Id:[],L=f.geId?f.geId:"",I=new J1t({format:new ATt,tileSize:x,url:m}),R=function(A,M){let V=new BTt({fill:new _X({color:y}),stroke:new Zee({color:v,width:C}),text:new HTt({font:"80px Arial",textBaseline:"middle",text:A.get("name")||A.get("id")||"",fill:new _X({color:T}),stroke:new Zee({color:S,width:3})})});return E.includes(A.get(L))&&V.getFill().setColor(w),V};return new ISt({source:I,style:R})}checkWModels(f){return F(this._wModels[f])}removeInstance(f,m){let y=this._wModels[f];if(F(y)){let v=y.geometryInstances;if(F(v))for(let C=0;C<v.length;C++)v[C].id}}removeWModels(f){if(F(this._parameter.retain)&&this._parameter.retain)return;let m=this,x=m._wModels[f];if(F(x)){for(let y=0;y<m._instance[f].length;y++)m.instanceId.has(m._instance[f][y])&&m.instanceId.delete(m._instance[f][y]);m._instance[f]=[],m._wModels[f]=void 0}}convertCoordinates(f){let m=[];for(let x=0;x<f.length;x++){let y=f[x];for(let v=0;v<y.length;v++)Array.prototype.push.apply(m,y[v])}return m}processGeoJson(){let f=this,m=f._parameter.modelHeightKey??"\u5C42\u9AD8",x=f._parameter.modelColor??Xe.BLUE;function y(C){f.removeWModels(C)}function v(C,T){if(!F(T)||f.checkWModels(T))return;let S=[],w=yo.fromColor(x);f._instance[T]||(f._instance[T]=[]);let E;for(let L=0;L<C.features.length;L++){let I=C.features[L];if(I.geometry.type==="Polygon"){let R=I.id;if(!f.instanceId.has(R)){let P=f.convertCoordinates(I.geometry.coordinates),A=Z.fromDegreesArray(P);E=I.properties[m],F(E)||(E=0),S.push(new Wn({geometry:new Uu({polygonHierarchy:new Zn(A),extrudedHeight:E}),id:R,releaseGeometryInstances:!1,attributes:{color:w}})),f.instanceId.set(R,T),f._instance[T].push(R)}}else if(I.geometry.type==="MultiPolygon"){let R=I.geometry.coordinates;for(let P=0;P<R.length;P++){let A=I.id+L;if(!f.instanceId.has(A)){let M=R[P],V=f.convertCoordinates(M),G=Z.fromDegreesArray(V);E=I.properties[m],F(E)||(E=0),S.push(new Wn({geometry:new Uu({polygonHierarchy:new Zn(G),extrudedHeight:E}),id:A,releaseGeometryInstances:!1,attributes:{color:w}})),f.instanceId.set(A,T),f._instance[T].push(A)}}}else console.info(I.geometry.type)}if(S.length>0){let L=f._earthCtrl.primitives.add(new ta({geometryInstances:S,allowPicking:!1,appearance:new ga({flat:!1,faceForward:!1,translucent:!1})}));f._wModels[T]=L}}return{callback:v,removePrimitive:y}}removeFromMap(){this._primitive!==null&&this._earthCtrl.imageryLayers.remove(this._primitive)}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([f._primitive.imageryProvider.readyPromise]).then(function(y){let v=As.export(f);console.log("imageobj",v),m(v)})})}async flyTo(f={}){let m=f;function x(y,v){let T=Math.PI*6378137,S=y/T*180,w=180/Math.PI*(2*Math.atan(Math.exp(v/T*Math.PI))-Math.PI/2);return{lon:S,lat:w}}if(this._parameter.sourceType==="wms"){let y=await this._primitive.imageryProvider.capabilitiesRes;if(!y.length)return;if(y[0]<180&&y[0]>-180)m.destination=f.destination??vi.fromDegrees(y[0],y[1],y[2],y[3]);else{let v=x(y[0],y[1]),C=x(y[2],y[3]);m.destination=f.destination??vi.fromDegrees(v.lon,v.lat,C.lon,C.lat)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(Xfe.prototype,{parameter:{get:function(){return this._parameter}},show:{get:function(){return this._primitive!==null?this._primitive.show:!1},set:function(o){this._primitive!==null&&(this._primitive.show=o),console.info(o);let f=this;for(let m=0;m<f._wModels.length;m++){let x=f._wModels[m],y=f.mEarthCtrl.entities.getById(x);y.show=o}}},sourceType:{get:function(){return this._parameter!==null?this._parameter.sourceType:!1}},dataUrl:{get:function(){return this._parameter!==null?this._parameter.url:!1}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}},imagery:{get:function(){return this._primitive}}});var TOe=Xfe;we();we();var aar=function(o,f,m,x){let y=m,v=x;var C=f.west,T=f.east,S=f.south,w=f.north,E=T-C,L=w-S,I=o.longitude*180/Math.PI,R=o.latitude*180/Math.PI;return o.normalizedLongitude=(I-C)/E*m,o.normalizedLatitude=(R-S)/L*x,o},sar=function(o,f,m,x){var y=[],v=o[0].longitude!==void 0;return o.forEach(function(C){var T=[],S=v?C:tN.scene.globe.ellipsoid.cartesianToCartographic(C);S=aar(S,f,m,x),T.push(S.normalizedLongitude),T.push(S.normalizedLatitude),y.push(T)}),y},lar=function(o,f,m){var x=32,y=f.west*be.DEGREES_PER_RADIAN,v=f.east*be.DEGREES_PER_RADIAN,C=f.south*be.DEGREES_PER_RADIAN,T=f.north*be.DEGREES_PER_RADIAN,S=new vi(y,C,v,T),w=sar(o,S,x,x),E=uar(w,"#FF0000",x,x);return E},uar=function(o,f,m,x,y){if(y===void 0){var y=document.createElement("canvas");y.width=m,y.height=x}var v=y.getContext("2d");if(!(o.length<=0)){v.moveTo(o[0][0],o[0][1]);for(var C=0;C<o.length;C++)v.lineTo(o[C][0],o[C][1]);return f!=null&&f!=null&&(v.fillStyle=f,v.fill()),y}};function NR(o,f){return Math.floor(Math.random()*(f-o+1))+o}function car(){return globalThis.GEOWORLD_BASE_URL+"Workers/ParseElevationWorker.js"}function har(o,f){var m=fp();return NR=lar(o.vertices,f,o.heights[0]),NR.timeStamp=o.timeStamp,NR.mtHeight=o.heights,NR.mtType=o.mtType,NR.fromKML=o.fromKML,NR.rect=o.rectangle,NR.level=o.level,m.resolve(NR),m.promise}function dar(o,f){return Math.floor(Math.random()*(f-o+1))+o}function par(o,f){var m=fp(),x=[];return o.forEach(function(y){x.push(har(y,f))}),Promise.all(x).then(function(y){var v=y[0].lenght,C=function(w,E){return E.timeStamp-w.timeStamp};if(y.length===1)m.resolve(y[0]);else{var T=y.sort(C),S=T.shift();T.forEach(function(w){S.forEach(function(E,L){E===NR&&w[L]!==NR&&(S[L]=w[L])})}),m.resolve(S)}}),m.promise}var tN,NSt=!1;function zd(o,f){if(tN=o,!F(f))throw new wt("options is required.");this._errorEvent=new Tr,this._modelFloorMasks={},this._credit=f.credit,typeof this._credit=="string"&&(this._credit=new Oa(this._credit)),f.heightMapWidth=f.heightMapWidth??32,f.heightMapHeight=f.heightMapHeight??32,this._options=f,this.readyPromise=Promise.resolve(!0),this._subdomains=f.subdomains,f.firstRequestUrl=f.url.replace("{s}",this.sTag(0,0,0)),this._firstRequest=f.firstRequestUrl+"?request=GetMap&Version=1.3.0&Service=WMS&CRS=EPSG:4326&bbox=-90,-180,90,180&height=32&width=32&optimizedOnly=0&v=1&layers="+f.layerName+"&Styles=&Format=image/mpt";var m=this,x=f.pngOnly;f.maxTerrainLevel!==void 0&&isNaN(f.maxTerrainLevel)&&(f.maxTerrainLevel=void 0),this._maxTerrainLevel=f.maxTerrainLevel??30,x?m.setFormatMPT(!1):function(){var v=new XMLHttpRequest;v.open("GET",f.cacheUrl?f.cacheUrl+"/0/0/0.mpt":m._firstRequest,!1),v.onload=function(){var C=new DOMParser,T=C.parseFromString(v.responseText,"text/xml"),S=F(T.childNodes)&&T.childNodes.length>0;m.setFormatMPT(!S)},v.onerror=function(){m.setFormatMPT(!1)},v.send()}(),f.cacheUrl&&(this.isCache=!0,this.cacheLevel=f.cacheLevel||16,this._cacheUrl=f.cacheUrl+"/{z}/{x}/{y}.mpt");let y=this._maxTerrainLevel;this._availability={computeMaximumLevelAtPosition:function(v){return Math.min(y,16)}},this._urlTemplate=f.url+"?request=GetMap&Version=1.3.0&Service=WMS&v=1&CRS=EPSG:4326&bbox={south},{west},{north},{east}&height={height}&width={width}&optimizedOnly={optimizedOnly}&layers="+f.layerName+"&Styles=&Format=image/"+this._format,this._allElevationLayers=null,this._tilingScheme=new _h,this._levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f.heightMapWidth*4,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._workerPool=new ew({workerPath:car()},Vi),this._pendingRequests=0,this._requestGridSize=8,this._requestsCache={},this._requestsCacheKeys=[],this.errorEvent.addEventListener(function(v){},this)}zd._geometricErrorFactor=2;Object.defineProperties(zd.prototype,{errorEvent:{get:function(){return this._errorEvent}},availability:{get:function(){return this._availability}},credit:{get:function(){return this._credit}},hasVertexNormals:{get:function(){return!1}},tilingScheme:{get:function(){return this._tilingScheme}},ready:{get:function(){return!0}},hasWaterMask:{get:function(){return!1}},heightMapHeight:{get:function(){return this._options.heightMapHeight}},heightMapWidth:{get:function(){return this._options.heightMapWidth}},pendingRequests:{get:function(){return this._pendingRequests}}});zd.prototype.setFormatMPT=function(o){if(!(o&&this.pngOnly)){var f=this._format;this._format=o?"mpt":"png",f!==this._format&&(this._isMPT=o,this._urlTemplate!==void 0&&(this._urlTemplate=this._urlTemplate.replace("image/"+f,"image/"+this._format)))}};zd.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)*zd._geometricErrorFactor};zd.prototype.createKeyFromTile=function(o,f,m){return o+"_"+f+"_"+m};zd.prototype.getTileDataAvailable=function(o,f,m){var x=Math.min(this._maxTerrainLevel,25);return this._isMPT?!0:m<x};zd.prototype.requestFactorForLevel=function(o){var f=Math.log(this._requestGridSize)/Math.log(2);return f=Math.min(f,o),Math.pow(2,f)};zd.prototype.getRequestBaseTerrainUrl=function(o,f,m,x){return this.getRequestUrl(o,f,m,x)};zd.prototype.getRequestElevationLayer=function(o,f,m){return this.getRequestUrl(o,f,m,!1,!0)};zd.prototype.getRequestUrl=function(T,S,w,x,y){var v=w,C=x!=null?this.requestFactorForLevel(w):1,T=x!=null?(T-T%C)/C:T,S=x!=null?(S-S%C)/C:S,w=x!=null?w-Math.log(C)/Math.log(2):w;if(this.isCache&&w!==0&&w<=this.cacheLevel)return this._cacheUrl.replace("{x}",T).replace("{y}",S).replace("{z}",w);var E=this.tilingScheme.tileXYToNativeRectangle(T,S,w),L=this.heightMapWidth*C===256&&x?1:0;y&&(L=0);var I=this._urlTemplate.replace("{south}",E.south).replace("{north}",E.north).replace("{west}",E.west).replace("{east}",E.east).replace("{optimizedOnly}",L).replace("{width}",this.heightMapWidth*C).replace("{height}",this.heightMapHeight*C).replace("{s}",this.sTag(T,S,w));return I+"&level="+w+"&origLevel="+v};zd.prototype.isT_Inside_E=function(o,f){return o.west>=f.west*be.DEGREES_PER_RADIAN&&o.east<=f.east*be.DEGREES_PER_RADIAN&&o.south>=f.south*be.DEGREES_PER_RADIAN&&o.north<=f.north*be.DEGREES_PER_RADIAN};zd.prototype.isT_Intersects_E=function(o,f){var m=o.west*be.RADIANS_PER_DEGREE,x=o.east*be.RADIANS_PER_DEGREE,y=o.south*be.RADIANS_PER_DEGREE,v=o.north*be.RADIANS_PER_DEGREE,C=new vi(m,y,x,v),T=vi.intersection(C,f,new vi);return T};zd.prototype.sTag=function(o,f,m){if(this._subdomains==null)return"";var x=(o+f+m)%this._subdomains.length;return this._subdomains[x]};zd.prototype.refreshElevationLayer=function(o){if(o.rectangle&&tN.scene.globe._surface._levelZeroTiles!==void 0){var f=this.findDirectParent(o.rectangle,!0);f.freeResources()}};zd.prototype.findDirectParent=function(o,f){var m=function(v,C,T){var S=T?4.1:2.1;if(v._rectangle.width<=C.width*S&&vi.contains(v._rectangle,vi.center(C)))return v;for(var w=v.children.length,E=0;E<w;E++){var L=v.children[E];if(vi.contains(L._rectangle,vi.center(C)))return m(L,C,T)}return null};if(o.width==Math.PI)return null;for(var x=0;x<tN.scene.globe._surface._levelZeroTiles.length;x++){var y=m(tN.scene.globe._surface._levelZeroTiles[x],o,f);if(y)return y}return null};zd.prototype.isTileAvailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new vi),y=this.findDirectParent(x);if(y&&y.data&&y.data.terrainData){if(!(y.data.terrainData._childTileMask>0))return!1;for(var v=y.children.length,C=0;C<v;C++){var T=y.children[C];if(vi.equals(T._rectangle,x))return y.data.terrainData._childTileMask&1<<C}}return!0};zd.prototype.markTileAsUnavailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new vi),y=this.findDirectParent(x);y&&y.data&&y.data.terrainData&&y.data.terrainData._childTileMask>0&&y.children.some(function(v,C){if(vi.equals(v._rectangle,x)){switch(C){case 0:y.data.terrainData._childTileMask&=-5;break;case 1:y.data.terrainData._childTileMask&=-9;break;case 2:y.data.terrainData._childTileMask&=-2;break;case 3:y.data.terrainData._childTileMask&=-3;break;default:}return!0}return!1})};zd.prototype.requestBaseTerrainTileGeometry=function(o,f,m,x){return this.requestTileGeometryBuffers(o,f,m,x)};zd.prototype.requestElevationLayerTileGeometry=function(o,f,m,x,y){return this.requestTileGeometryBuffers(o,f,m,x,y)};zd.prototype.requestTileGeometryBuffers=function(o,f,m,x,y){var v=this,C=15,T={};T.requestedRectangle=this.tilingScheme.tileXYToNativeRectangle(o,f,m),T.layer=y;var I,S,w,E,L=fp(),I=this.requestTileHeightBuffer(o,f,m,x,void 0,y);return I===void 0?void 0:(S=this.requestTileHeightBuffer(o+1,f,m,x,!0,y),w=this.requestTileHeightBuffer(o,f+1,m,x,!0,y),E=this.requestTileHeightBuffer(o+1,f+1,m,x,!0,y),Promise.all([I,S,w,E]).then(function(R){if(NSt==0){if(R[0].myReject!=null&&R[0].myReject){L.reject();return}for(var P=v.heightMapWidth+1,A=v.heightMapHeight+1,M=new Float32Array(P*A),V=R[0].isFloor,G=0;G<P;G++)for(var D=0;D<A;D++){var N=G,k=D,U=0;D===P-1&&(k=0,U=1,V&&(U=0,k=P-2)),G===A-1&&(N=0,U=2);var B=G*P+D,Y=N*v.heightMapWidth+k;R[U]!==null&&(R[U].myReject==null||!R[U].myReject)&&(M[B]=R[U][Y])}(R[3].myReject==null||!R[3].myReject)&&(M[P*A-1]=R[3][0]);var J=v.arrayToHeightmapTerrainData(M,P,A,C);T.buffer=J,L.resolve(T)}else{var J=v.arrayToHeightmapTerrainData(R[0],v.heightMapWidth,v.heightMapHeight);T.buffer=J,L.resolve(T)}}).catch(function(){L.reject()}),L.promise)};zd.prototype.requestTileGeometry=function(o,f,m,x){var y=this,v=[],C=y.tilingScheme.tileXYToNativeRectangle(o,f,m);this._allElevationLayers!=null&&this._allElevationLayers.length>0&&m>7?this._allElevationLayers.forEach(function(S,w){var E=w.show;if(E){var L=w.rectangle;y.isT_Inside_E(C,L)?(y.setFormatMPT(!1),v.push(y.requestElevationLayerTileGeometry(o,f,m,x,w))):y.isT_Intersects_E(C,L)!=null?(y.setFormatMPT(!1),v.push(y.requestElevationLayerTileGeometry(o,f,m,x,w)),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x))):(y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x)))}else y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x))}):(y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x)));var T=fp();return Promise.all(v).then(function(S){if(S.length===1)S.layer!==void 0&&console.log("missing scale and offset"),T.resolve(S[0].buffer);else if(S.length>1){var w=S.filter(function(P){return P.layer!==void 0}),E=S.filter(function(P){return P.layer===void 0});if(w.length===0)T.resolve(S[0].buffer);else{var L=w[w.length-1],I=E[E.length-1],R={tolerance:L.layer.nullTolerance,nullValueNumber:L.layer.nullValueNumber,verticesX:L.layer.polygonVerticesX,verticesY:L.layer.polygonVerticesY,scale:L.layer.scale??1,offset:L.layer.offset??0};T.resolve(y.mergeBuffers(I.buffer,L.buffer,R,I.requestedRectangle))}}else T.reject()}).catch(function(){T.reject()}),T.promise};zd.prototype.mergeBuffers=function(o,f,m,x){var y,v,C,T,S,w=33,E=33,L=x.west,I=x.north,R=x.east,P=x.south,A=x.width/w,M=x.height/E,V=m.scale,G=m.offset,D=m.nullValueNumber,N=m.tolerance,k=D!==void 0&&N!==void 0;if(k)var U=m.nullValueNumber??0,B=Number(m.tolerance)??0;var Y=new Float32Array(w*E);for(y=0,S=I;y<E;y++,S+=M)for(v=0,T=L;v<w;v++,T+=A)C=y*w+v,k?Y[C]=!f._buffer[C]||f._buffer[C]>=U-B&&f._buffer[C]<=U+B?o._buffer[C]:f._buffer[C]*V+G:Y[C]=f._buffer[C]?f._buffer[C]*V+G:o._buffer[C];return this.arrayToHeightmapTerrainData(Y,w,E,15)};zd.prototype.requestTileHeightBuffer=function(o,f,m,x,y,v){var C=this;if(!isNaN(o+f+m)){(!F(x)||x===!1)&&(x=new hm({defer:!0}));var T=x.defer==0;y=T??!1;var S=fp();if(NSt==0){var w;if(v!==void 0)v.getUrlFromSTag=function(j,q,O){return v.subdomains===void 0?v.url:v.subdomains[0]+"/SG"},w=this.getRequestElevationLayer(o,f,m).replace(this._options.url,v.getUrlFromSTag(o,f,m)+"/Elevation").replace(this._options.layerName,v.name),v.format==="mpt"&&(w=w.replace("image/png","image/mpt"));else{w=this.getRequestBaseTerrainUrl(o,f,m,T||y);var E=tN.terrainProvider.tilingScheme.tileXYToRectangle(o,f,m),L=tN.terrainProvider._modifyTerrainObjects,I=fp();if(L!==void 0){var R=[];if(L.forEach(function(j){j.show&&vi.intersection(E,j.rectangle,new vi)!=null&&R.push(j)}),R.length>0)if(R.length===1&&R[0].modelFloorBestLevel&&m>R[0].modelFloorBestLevel)I.resolve("NoMerge");else{var P=par(R,E,m);Promise.resolve(P).then(function(j){I.resolve(j)}).catch(function(j){console.log(j)})}else I.resolve("NoMerge")}else I.resolve("NoMerge");var A=fp(),M=[].filter(function(j){return j._selectedTiles.length>0});if(M.length===1&&M[0].level&&m>M[0].level)A.resolve("NoFloor");else{var V=!1,G=32,D=65535;M.forEach(function(j){if(j.ready&&j.show&&j.rootFloorRectangle!==void 0&&vi.intersection(E,j.rootFloorRectangle)!==void 0){for(var q=new Uint16Array(G*G),O=E.west,te=E.south,ie=(E.east-E.west)/32,re=(E.north-E.south)/32,ee,ae=0;ae<G;ae++)for(var oe=0;oe<G;oe++){var ce=O+ie*oe+ie/2,pe=E.north-re*ae-re/2,ue=new Gt(ce,pe);ee=D;var he=j.getHRMTFP(j,ue,!0);he!=null&&he.content&&he.content._model&&he.content._model.floor&&(ee=he.content._model.floor.getHeight(ue.longitude,ue.latitude)),ee!==D&&(ee+=1.5),q[ae*G+oe]=ee}V=!0,A.resolve(q)}}),V||A.resolve("NoFloor")}var N=tN.scene.globe.ellipsoid}if(this._requestsCache.hasOwnProperty(w)===!1){if(this._requestsCache[w]={},this._requestsCacheKeys.push(w),this._requestsCacheKeys.length>100){for(var k=0;k<50;k++)delete this._requestsCache[this._requestsCacheKeys[k]];this._requestsCacheKeys.splice(0,50)}}else{var U=this._requestsCacheKeys.indexOf(w);this._requestsCacheKeys.splice(U,1),this._requestsCacheKeys.push(w)}var B=this._requestsCache[w];if(B.dataLoaded===void 0&&(T?B.dataLoaded=Mr.fetchArrayBuffer(w):B.dataLoaded=Mr.fetchArrayBuffer(w),!F(B.dataLoaded)))return;var Y=this;this._pendingRequests++,Promise.resolve(B.dataLoaded).then(function(j){B.workerFinished===void 0&&(B.workerFinished=Y._workerPool.queueWorkItem({buffer:j,isElevation:v!==void 0,level:m})),Promise.all([B.workerFinished,I.promise,A.promise]).then(function(q){var O=q[1]!==void 0&&q[1]!=="NoMerge",te=q[2]!==void 0&&q[2]!=="NoFloor";if(q[0].rejected){for(var ie=Y.heightMapWidth*Y.heightMapHeight,re=new Int16Array(ie),ee=0,ae=0;ae<ie;ae++)re[ae]=300;return m>2&&(re.myReject=!0),S.resolve(re),S.promise}var oe=Y.extractTileHeightBuffer(q[0].buffer,o,f,m);if(Y._pendingRequests--,O)for(var ae=0;ae<32;ae++)for(var ce=0;ce<32;ce++){var pe=ae*32+ce;oe[pe]=q[1].mtHeight[0]}if(te){for(var ae=0;ae<32;ae++)for(var ce=0;ce<32;ce++){var pe=ae*32+ce;oe[pe]=q[2][pe]===65535||q[2][pe]>10500?oe[pe]:q[2][pe]}oe.isFloor=!0}S.resolve(oe)}).catch(function(){for(var q=Y.heightMapWidth*Y.heightMapHeight,O=new Int16Array(q),te=0,ie=0;ie<q;ie++)O[ie]=300;return m>2&&(O.myReject=!0),S.resolve(O),S.promise})}).catch(function(){Y._pendingRequests--,S.reject()})}else{for(var J=this.heightMapWidth*this.heightMapHeight,K=new Int16Array(J),z=dar(0,1500),k=0;k<J;k++)K[k]=z;S.resolve(K)}return S.promise}};zd.prototype.extractTileHeightBuffer=function(o,f,m,x){try{for(var y=this.requestFactorForLevel(x),v=f%y,C=m%y,T=new Float32Array(this.heightMapWidth*this.heightMapHeight),S=1e6,w=-1e5,E=0;E<this.heightMapHeight;E++)for(var L=0;L<this.heightMapWidth;L++){var I=E+C*this.heightMapHeight,R=L+v*this.heightMapWidth,P=E*this.heightMapWidth+L,A=I*this.heightMapWidth*y+R;o[A]>w&&(w=o[A]),o[A]<S&&(S=o[A]),T[P]=o[A]}}catch(M){console.log(M.message)}return T};zd.prototype.arrayToHeightmapTerrainData=function(o,f,m,x){F(o)===!1&&(o=new Int16Array(f*m));var y={buffer:o,width:f,height:m,childTileMask:x};return new yL(y)};var WSt=zd;var kfe=class extends gm{constructor(f,m){super(f),this._earthCtrl=f,this._primitive=null,this._parameter=m}async addToMap(f){let m=this._parameter;f||(f=m.requestVertexNormals??!1);let x=null,y=m.sourceType??"ctb";try{if(y!=="ude"){if(y==="ctb")x=await N4.fromUrl(m.url,m);else if(y==="multi")x=new ace(this._earthCtrl);else if(y==="sgs")f&&(Ty.hasVertexNormals=!0),x=new WSt(this._earthCtrl.coreMap,m);else if(y==="arcgis")x=await fde.fromUrl(m.url,m);else if(y==="mapworld"){let C=m.cesium;C.GeoTerrainProvider||new ex(!1).addJs(document.body,`${window.SmartEarthRootUrl}Workers/cesiumTdt.js`);let T=[],S=m.subdomains;for(let w=0;w<S.length;w++){let E=`${m.url.replace("{s}",S[w])}mapservice/swdx?T=elv_c&tk=3ec79cf7a9dcc6bb18411a5414b148cb`;T.push(E)}x=new C.GeoTerrainProvider({urls:T})}}x!==null&&(this._primitive=x,this._coreMap.terrainProvider=x);let v=m.groupName||this._earthCtrl.language.GROUP_NWE_TERRAIN_LAYER;m.addTree&&(m.addTree=void 0,m.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(v,{id:m.id||this._earthCtrl.factory.createUUID(),name:m.name||y,sourceType:"TerrainProvider",item:this,feature:m,checked:this._primitive.show}))}catch(v){console.error(v)}}removeFromMap(){this._primitive!==null&&(this._coreMap.terrainProvider=new IS)}setVisibility(f){f?this._coreMap.terrainProvider=this._primitive:this.removeFromMap()}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([this._primitive.readyPromise]).then(function(y){let v=As.export(f);console.log("terraobj",v),m(v)})})}flyTo(f={}){let m=f;m.orientation=f.orientation??{heading:be.toRadians(0),pitch:be.toRadians(-60),roll:be.toRadians(0)};function x(y,v){let T=Math.PI*6378137,S=y/T*180,w=180/Math.PI*(2*Math.atan(Math.exp(v/T*Math.PI))-Math.PI/2);return{lon:S,lat:w}}if(this._parameter.sourceType==="ctb"||this._parameter.sourceType==="arcgis"){if(this._primitive._tilingScheme.bounds[0]<180&&this._primitive._tilingScheme.bounds[0]>-180){let y=this._primitive._tilingScheme.bounds,v=(y[0]+y[2])/2,C=(y[1]+y[3])/2,T=f.height||1e4;m.destination=f.destination??Z.fromDegrees(v,C,T)}else{let y=this._primitive._tilingScheme.bounds,v=x(y[0],y[1]),C=x(y[2],y[3]),T=(v.lon+C.lon)/2,S=(v.lat+C.lat)/2,w=f.height||1e4;m.destination=f.destination??Z.fromDegrees(T,S,w)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(kfe.prototype,{parameter:{get:function(){return this._parameter}},show:{get:function(){return this._primitive!==null?this._primitive.show:!1},set:function(o){this._primitive!==null&&(this._primitive.show=o)}},sourceType:{get:function(){return this._parameter!==null?this._parameter.sourceType:!1}},dataUrl:{get:function(){return this._parameter!==null?this._parameter.url:!1}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}}});var SOe=kfe;we();var Ufe=class extends gm{constructor(f,m){super(f),this._earthCtrl=f,this._parameter=m}async addToMap(){let f=this._parameter,m=null;try{f.sourceType==="b3dm"||f.sourceType==="3DTiles"?(m=await _0.fromUrl(f.url,f),F(f.transform)&&this.transform(f.transform,m)):f.sourceType==="osgb"?m=await _0.fromUrl(f.url,f):f.sourceType==="i3s"?m=await gR.fromUrl(f.url,f):f.sourceType==="s3m"?(F(f.context)||(f.context=this._earthCtrl.viewer.scene.context),m=new tpe(f),await m.readyPromise):(f.sourceType==="ude_block"||f.sourceType==="ude_model")&&(f.skipLevelOfDetail=!0,m=await _0.fromUrl(f.url,f)),this._primitive=this._coreMap.scene.primitives.add(m),f.success&&typeof f.success=="function"&&f.success(m),f.addTree&&this._earthCtrl.factory.layerTree.addTreeData("s3m\u6A21\u578B",{id:f.id||this._earthCtrl.factory.createUUID(),name:f.name,sourceType:"s3m",item:this._primitive,feature:f,checked:this._primitive.show})}catch(x){f.failed&&typeof f.failed=="function"&&f.failed(x)}return this}removeFromMap(){F(this._primitive)&&this._coreMap.scene.primitives.remove(this._primitive)}toJSON(){let f=this;return new Promise(function(m,x){Promise.all([f._primitive]).then(function(y){let v=As.export(f);console.log("modellayerobj",v),m(v)})})}transform(f,m){let x=m._primitive,y=Ut.fromRotationX(be.toRadians(f.pitch)),v=Ut.fromRotationY(be.toRadians(f.roll)),C=Ut.fromRotationZ(be.toRadians(f.heading)),T=Ee.fromRotationTranslation(y),S=Ee.fromRotationTranslation(v),w=Ee.fromRotationTranslation(C),E=Z.fromDegrees(f.lon,f.lat,f.alt),L=_r.eastNorthUpToFixedFrame(E);Ee.multiply(L,T,L),Ee.multiply(L,S,L),Ee.multiply(L,w,L),x._root.transform=L}setHeight(f){if(f=Number(f),!isNaN(f)&&this._primitive!==void 0&&this._primitive.boundingSphere!==void 0){let m=this._primitive.boundingSphere.center,x=Gt.fromCartesian(m),y=Z.fromRadians(x.longitude,x.latitude,0),v=Z.fromRadians(x.longitude,x.latitude,f),C=Z.subtract(v,y,new Z);this._primitive.modelMatrix=Ee.fromTranslation(C)}}};Object.defineProperties(Ufe.prototype,{parameter:{get:function(){return this._parameter}},readyPromise:{get:function(){return this._primitive.readyPromise}},show:{get:function(){return F(this._primitive)?this._primitive.show:!1},set:function(o){F(this._primitive)&&(this._primitive.show=o)}},sourceType:{get:function(){return F(this._parameter)?this._parameter.sourceType:!1}},dataUrl:{get:function(){return F(this._parameter)?this._parameter.url:!1}},boundingSphere:{get:function(){return F(this._primitive)&&this._primitive.boundingSphere?this._primitive.boundingSphere:null}},modelMatrix:{get:function(){return F(this._primitive)?this._primitive.modelMatrix:!1},set:function(o){F(this._primitive)&&(this._primitive.modelMatrix=o)}},name:{get:function(){return F(this._parameter)?this._parameter.name:!1},set:function(o){F(this._parameter)&&(this._parameter.name=o)}}});var wOe=Ufe;we();var Bfe=class extends gm{constructor(f,m){super(f),this._rtti="FeatureLayer",this._primitive=null,this._parameter=m}finalize(){}addToMap(){let f=this._parameter;this._primitive=new Kue(this._earthCtrl,f);let m=f.groupName||"FeatureData";f.addTree&&(f.addTree=void 0,f.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(m,{id:f.id||this._earthCtrl.factory.createUUID(),name:f.name||f.sourceType,sourceType:"FeatureDataProvider",item:this._primitive,feature:f,checked:this._primitive.show}))}updateStyle(f){if(!this._primitive)return;let m=this._primitive.entities.values;for(let x=0;x<m.length;x++){let y=m[x];for(let v=0;v<y.propertyNames.length;v++){let C=y.propertyNames[v];if(!!y[C]){typeof f.near<"u"&&typeof f.far<"u"&&(y[C].distanceDisplayCondition=new So(f.near,f.far));for(let T in f)if(Object.hasOwnProperty.call(f,T)){let S=f[T];y[C][T]&&(y[C][T]=S)}if(f.pointHeight){let T=Gt.fromCartesian(y.position._value),S=Math.toDegrees(T.longitude),w=Math.toDegrees(T.latitude);y.position=Z.fromDegrees(S,w,f.pointheight)}}}}}removeFromMap(){this._primitive!==null&&this._primitive.destory()}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([f._primitive]).then(function(y){let v=As.export(f);console.log("fireObj",v),m(v)})})}};Object.defineProperties(Bfe.prototype,{entities:{get:function(){return this._primitive.entities}},dataSource:{get:function(){return this._primitive.dataSource}},parameter:{get:function(){return this._parameter}},show:{get:function(){return this._primitive!==null?this._primitive.show:!1},set:function(o){this._primitive!==null&&(this._primitive.show=o)}},sourceType:{get:function(){return this._parameter!==null?this._parameter.sourceType:!1}},dataUrl:{get:function(){return this._parameter!==null?this._parameter.url:!1}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}}});var EOe=Bfe;we();function Hfe(o){this._earthCtrl=o,this._path="",this._layerWork=null}Object.defineProperties(Hfe.prototype,{});Hfe.prototype.addToMap=function(o){F(this._layerWork)?this._layerWork.updateOverlay(o):this._layerWork=new Sde(this._earthCtrl.coreMap,o)};Hfe.prototype.removeFromMap=function(){this._layerWork.dispose()};var LOe=Hfe;we();var far={IMAGERYPROVIDERS:"imageryProviders",TERRAINPROVIDERS:"terrainProviders",MODELLAYERS:"modelLayers",FEATURELAYERS:"featureLayers",USERSCENE:"userScene"},Ms=Object.freeze(far);we();var zfe=class extends gm{constructor(f,m){super(f),this._parameter=m,this._parameter.type=m.type??"water",this._parameter.version=m.version??"1.3.0",this._parameter.baseWaterColor=m.color??Xe.fromCssColorString("#0374ff"),this._parameter.waterFrequency=m.waterFrequency??3e3,this._parameter.animationSpeed=m.animationSpeed??.01,this._parameter.amplitude=m.amplitude??5e3}addToMap(){let f=this._parameter;this._primitive=new Gz(this._earthCtrl,f),this._primitive&&(this._parameter.color=this._primitive.baseWaterColor,this._parameter.params=this._primitive._params)}removeFromMap(){this._primitive!==null&&this._primitive.destory()}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([f._primitive]).then(function(y){let v=As.export(f);console.log("waterObj",v),m(v)})})}};Object.defineProperties(zfe.prototype,{type:{get:function(){return this._primitive.type}},version:{get:function(){return this._primitive._version}},params:{get:function(){return this._primitive._params},set:function(o){this._primitive!==null&&(this._primitive._params=o)}},show:{get:function(){return this._parameter!==null?this._parameter.show:!1},set:function(o){if(this._primitive!==null&&this._primitive._primitive&&this._primitive._primitive.length!==0){for(let f=0;f<this._primitive._primitive.length;f++)this._primitive._primitive[f].show=o;this._parameter.show=o}}},url:{get:function(){return this._primitive!==null?this._primitive.url:!1},set:function(o){this._primitive!==null&&(this._primitive.url=o)}},color:{get:function(){return this._primitive!==null?this._primitive.baseWaterColor:!1},set:function(o){this._primitive!==null&&(this._primitive.baseWaterColor=o)}},waterFrequency:{get:function(){return this._primitive!==null?this._primitive.waterFrequency:!1},set:function(o){this._primitive!==null&&(this._primitive.waterFrequency=o)}},animationSpeed:{get:function(){return this._primitive!==null?this._primitive.animationSpeed:!1},set:function(o){this._primitive!==null&&(this._primitive.animationSpeed=o)}},amplitude:{get:function(){return this._primitive!==null?this._primitive.amplitude:!1},set:function(o){this._primitive!==null&&(this._primitive.amplitude=o)}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}}});var POe=zfe;we();var IOe=class extends gm{constructor(f,m){super(f),this._parameter=m,this._viewer=f.coreMap,this._cesium=Vi}addToMap(){let f=this._parameter,m,x;F(f.div)?(m=document.getElementById(f.div),x=f.div):(m=document.createElement("div"),m.id="Hawkeye",m.style.position="absolute",m.style.width="15%",m.style.height="20%",m.style.bottom="20px",m.style.right="0",m.style.pointerEvents="none",this._viewer.container.appendChild(m),x="Hawkeye"),f.style&&(f.style.width&&(m.style.width=f.style.width),f.style.height&&(m.style.height=f.style.height),f.style.bottom&&(m.style.bottom=f.style.bottom),f.style.right&&(m.style.right=f.style.right),f.style.top&&(m.style.top=f.style.top,m.style.bottom="unset"),f.style.left&&(m.style.left=f.style.left,m.style.right="unset"));let y;f.url?y=new this._cesium.SingleTileImageryProvider({url:f.url}):f.imageryProvider?y=f.imageryProvider:y=new _L({url:"http://103.25.37.71:4020/gisserver/tmsserver/earth_tms"});let v=new A4(x,{baseLayer:Up.fromProviderAsync(y),baseLayerPicker:!1,shadows:!1,shouldAnimate:!1,animation:!1,scene3DOnly:!0,fullscreenButton:!1,geocoder:!1,homeButton:!1,infoBox:!1,selectionIndicator:!1,timeline:!1,navigationHelpButton:!1,contextOptions:{requestWebgl2:!0,licenseServer:window.licenseServer}});v._innerCreditContainer.style.display="none",v.scene.screenSpaceCameraController.enableRotate=!1,v.scene.screenSpaceCameraController.enableZoom=!1,v.scene.screenSpaceCameraController.enableTilt=!1;let C=this;function T(){let S=C._viewer.camera.position,w=Gt.fromCartesian(S);v.camera.setView({destination:Gt.toCartesian(w),orientation:{heading:C._viewer.camera.heading,pitch:C._viewer.camera.pitch,roll:C._viewer.camera.roll}})}return C._viewer.scene.preRender.addEventListener(T),this.close=function(){C._viewer.scene.preRender.removeEventListener(T),v.destroy(),m.remove(),C.close=void 0},this}removeFromMap(){this.close&&this.close()}},ROe=IOe;we();var ZSt=new zt;function mar(o,f,m){let x=o.length,y,v,C;if(m){y=zr.LUMINANCE,v=un.FLOAT,C=new Float32Array(x);for(let T=0;T<x;T++)C[T]=o[T]}else{y=zr.RGBA,v=un.UNSIGNED_BYTE,C=new Uint8Array(x*4);for(let T=0;T<x;T++)zt.packFloat(o[T],ZSt),zt.pack(ZSt,C,T*4)}return new Rn.create({context:f,pixelFormat:y,pixelDatatype:v,source:{width:x,height:1,arrayBufferView:C},flipY:!1,sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})})}var Yfe=[];function xar(o,f,m,x){Ee.toArray(Ee.IDENTITY,Yfe);let y=new Co({fabric:{type:"spotMaterial",source:`
`){ie+=te,te=0,j=I*k+z*R,++ee;continue}var ue=P[oe+1]||S.font;ue!==ae&&(y&&q.push("font",ue),x&&O.push("font",ue),ae=ue),te=Math.max(te,D[re]);var he=[pe,j+z*G[re]+I*(G[re]-N[ee]),.5*(R+te)+ie];j+=G[re],y&&q.push("strokeText",he),x&&O.push("fillText",he),++re}return Array.prototype.push.apply(U,q),Array.prototype.push.apply(U,O),this.labels_[v]=J,J},o.prototype.replayTextBackground_=function(f,m,x,y,v,C,T){f.beginPath(),f.moveTo.apply(f,m),f.lineTo.apply(f,x),f.lineTo.apply(f,y),f.lineTo.apply(f,v),f.lineTo.apply(f,m),C&&(this.alignFill_=C[2],this.fill_(f)),T&&(this.setStrokeStyle_(f,T),f.stroke())},o.prototype.calculateImageOrLabelDimensions_=function(f,m,x,y,v,C,T,S,w,E,L,I,R,P,A,M){T*=I[0],S*=I[1];var V=x-T,G=y-S,D=v+w>f?f-w:v,N=C+E>m?m-E:C,k=P[3]+D*I[0]+P[1],U=P[0]+N*I[1]+P[2],B=V-P[3],Y=G-P[0];(A||L!==0)&&(QD[0]=B,qD[0]=B,QD[1]=Y,t3[1]=Y,t3[0]=B+k,i3[0]=t3[0],i3[1]=Y+U,qD[1]=i3[1]);var J;return L!==0?(J=d2(Ny(),x,y,1,1,L,-x,-y),Zf(J,QD),Zf(J,t3),Zf(J,i3),Zf(J,qD),K1(Math.min(QD[0],t3[0],i3[0],qD[0]),Math.min(QD[1],t3[1],i3[1],qD[1]),Math.max(QD[0],t3[0],i3[0],qD[0]),Math.max(QD[1],t3[1],i3[1],qD[1]),dK)):K1(Math.min(B,B+k),Math.min(Y,Y+U),Math.max(B,B+k),Math.max(Y,Y+U),dK),R&&(V=Math.round(V),G=Math.round(G)),{drawImageX:V,drawImageY:G,drawImageW:D,drawImageH:N,originX:w,originY:E,declutterBox:{minX:dK[0],minY:dK[1],maxX:dK[2],maxY:dK[3],value:M},canvasTransform:J,scale:I}},o.prototype.replayImageOrLabel_=function(f,m,x,y,v,C,T){var S=!!(C||T),w=y.declutterBox,E=f.canvas,L=T?T[2]*y.scale[0]/2:0,I=w.minX-L<=E.width/m&&w.maxX+L>=0&&w.minY-L<=E.height/m&&w.maxY+L>=0;return I&&(S&&this.replayTextBackground_(f,QD,t3,i3,qD,C,T),NTt(f,y.canvasTransform,v,x,y.originX,y.originY,y.drawImageW,y.drawImageH,y.drawImageX,y.drawImageY,y.scale)),!0},o.prototype.fill_=function(f){if(this.alignFill_){var m=Zf(this.renderedTransform_,[0,0]),x=512*this.pixelRatio;f.save(),f.translate(m[0]%x,m[1]%x),f.rotate(this.viewRotation_)}f.fill(),this.alignFill_&&f.restore()},o.prototype.setStrokeStyle_=function(f,m){f.strokeStyle=m[1],f.lineWidth=m[2],f.lineCap=m[3],f.lineJoin=m[4],f.miterLimit=m[5],f.setLineDash&&(f.lineDashOffset=m[7],f.setLineDash(m[6]))},o.prototype.drawLabelWithPointPlacement_=function(f,m,x,y){var v=this.textStates[m],C=this.createLabel(f,m,y,x),T=this.strokeStates[x],S=this.pixelRatio,w=rSt(Array.isArray(f)?f[0]:f,v.textAlign||jD),E=hK[v.textBaseline||yX],L=T&&T.lineWidth?T.lineWidth:0,I=C.width/S-2*v.scale[0],R=w*I+2*(.5-w)*L,P=E*C.height/S+2*(.5-E)*L;return{label:C,anchorX:R,anchorY:P}},o.prototype.execute_=function(f,m,x,y,v,C,T,S){var w;this.pixelCoordinates_&&LR(x,this.renderedTransform_)?w=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),w=Qb(this.coordinates,0,this.coordinates.length,2,x,this.pixelCoordinates_),eTt(this.renderedTransform_,x));for(var E=0,L=y.length,I=0,R,P,A,M,V,G,D,N,k,U,B,Y,J=0,K=0,z=null,j=null,q=this.coordinateCache_,O=this.viewRotation_,te=Math.round(Math.atan2(-x[1],x[0])*1e12)/1e12,ie={context:f,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:O},re=this.instructions!=y||this.overlaps?0:200,ee,ae,oe,ce;E<L;){var pe=y[E],ue=pe[0];switch(ue){case Es.BEGIN_GEOMETRY:ee=pe[1],ce=pe[3],ee.getGeometry()?T!==void 0&&!Ed(T,ce.getExtent())?E=pe[2]+1:++E:E=pe[2];break;case Es.BEGIN_PATH:J>re&&(this.fill_(f),J=0),K>re&&(f.stroke(),K=0),!J&&!K&&(f.beginPath(),M=NaN,V=NaN),++E;break;case Es.CIRCLE:I=pe[1];var he=w[I],fe=w[I+1],de=w[I+2],Ce=w[I+3],Se=de-he,Le=Ce-fe,Ve=Math.sqrt(Se*Se+Le*Le);f.moveTo(he+Ve,fe),f.arc(he,fe,Ve,0,2*Math.PI,!0),++E;break;case Es.CLOSE_PATH:f.closePath(),++E;break;case Es.CUSTOM:I=pe[1],R=pe[2];var Oe=pe[3],$e=pe[4],at=pe.length==6?pe[5]:void 0;ie.geometry=Oe,ie.feature=ee,E in q||(q[E]=[]);var dt=q[E];at?at(w,I,R,2,dt):(dt[0]=w[I],dt[1]=w[I+1],dt.length=2),$e(dt,ie),++E;break;case Es.DRAW_IMAGE:I=pe[1],R=pe[2],N=pe[3],P=pe[4],A=pe[5];var gt=pe[6],Et=pe[7],et=pe[8],yt=pe[9],Rt=pe[10],Vt=pe[11],_t=pe[12],se=pe[13],ve=pe[14],je=pe[15];if(!N&&pe.length>=20){k=pe[19],U=pe[20],B=pe[21],Y=pe[22];var Ft=this.drawLabelWithPointPlacement_(k,U,B,Y);N=Ft.label,pe[3]=N;var kt=pe[23];P=(Ft.anchorX-kt)*this.pixelRatio,pe[4]=P;var bt=pe[24];A=(Ft.anchorY-bt)*this.pixelRatio,pe[5]=A,gt=N.height,pe[6]=gt,se=N.width,pe[13]=se}var lt=void 0;pe.length>25&&(lt=pe[25]);var ot=void 0,tt=void 0,ze=void 0;pe.length>17?(ot=pe[16],tt=pe[17],ze=pe[18]):(ot=qV,tt=!1,ze=!1),Rt&&te?Vt+=O:!Rt&&!te&&(Vt-=O);for(var ct=0;I<R;I+=2)if(!(lt&&lt[ct++]<se/this.pixelRatio)){var Wt=this.calculateImageOrLabelDimensions_(N.width,N.height,w[I],w[I+1],se,gt,P,A,et,yt,Vt,_t,v,ot,tt||ze,ee),Tt=[f,m,N,Wt,Et,tt?z:null,ze?j:null];if(S){if(ve==="none")continue;if(ve==="obstacle"){S.insert(Wt.declutterBox);continue}else{var Ht=void 0,Ci=void 0;if(je){var Yt=R-I;if(!je[Yt]){je[Yt]=Tt;continue}if(Ht=je[Yt],delete je[Yt],Ci=iSt(Ht),S.collides(Ci))continue}if(S.collides(Wt.declutterBox))continue;Ht&&(S.insert(Ci),this.replayImageOrLabel_.apply(this,Ht)),S.insert(Wt.declutterBox)}}this.replayImageOrLabel_.apply(this,Tt)}++E;break;case Es.DRAW_CHARS:var li=pe[1],Ne=pe[2],Ze=pe[3],De=pe[4];Y=pe[5];var He=pe[6],Ue=pe[7],ft=pe[8];B=pe[9];var St=pe[10];k=pe[11],U=pe[12];var Be=[pe[13],pe[13]],st=this.textStates[U],At=st.font,Mt=[st.scale[0]*Ue,st.scale[1]*Ue],It=void 0;At in this.widths_?It=this.widths_[At]:(It={},this.widths_[At]=It);var ui=Lfe(w,li,Ne,2),Ai=Math.abs(Mt[0])*oOe(At,k,It);if(De||Ai<=ui){var wi=this.textStates[U].textAlign,zi=(ui-Ai)*hK[wi],Ri=tSt(w,li,Ne,2,k,zi,He,Math.abs(Mt[0]),oOe,At,It,te?0:this.viewRotation_);e:if(Ri){var Ot=[],Kt=void 0,ri=void 0,ii=void 0,ci=void 0,Gi=void 0;if(B)for(Kt=0,ri=Ri.length;Kt<ri;++Kt){Gi=Ri[Kt],ii=Gi[4],ci=this.createLabel(ii,U,"",B),P=Gi[2]+(Mt[0]<0?-St:St),A=Ze*ci.height+(.5-Ze)*2*St*Mt[1]/Mt[0]-ft;var Wt=this.calculateImageOrLabelDimensions_(ci.width,ci.height,Gi[0],Gi[1],ci.width,ci.height,P,A,0,0,Gi[3],Be,!1,qV,!1,ee);if(S&&S.collides(Wt.declutterBox))break e;Ot.push([f,m,ci,Wt,1,null,null])}if(Y)for(Kt=0,ri=Ri.length;Kt<ri;++Kt){Gi=Ri[Kt],ii=Gi[4],ci=this.createLabel(ii,U,Y,""),P=Gi[2],A=Ze*ci.height-ft;var Wt=this.calculateImageOrLabelDimensions_(ci.width,ci.height,Gi[0],Gi[1],ci.width,ci.height,P,A,0,0,Gi[3],Be,!1,qV,!1,ee);if(S&&S.collides(Wt.declutterBox))break e;Ot.push([f,m,ci,Wt,1,null,null])}S&&S.load(Ot.map(iSt));for(var Ki=0,ar=Ot.length;Ki<ar;++Ki)this.replayImageOrLabel_.apply(this,Ot[Ki])}}++E;break;case Es.END_GEOMETRY:if(C!==void 0){ee=pe[1];var Ir=C(ee,ce);if(Ir)return Ir}++E;break;case Es.FILL:re?J++:this.fill_(f),++E;break;case Es.MOVE_TO_LINE_TO:for(I=pe[1],R=pe[2],ae=w[I],oe=w[I+1],G=ae+.5|0,D=oe+.5|0,(G!==M||D!==V)&&(f.moveTo(ae,oe),M=G,V=D),I+=2;I<R;I+=2)ae=w[I],oe=w[I+1],G=ae+.5|0,D=oe+.5|0,(I==R-2||G!==M||D!==V)&&(f.lineTo(ae,oe),M=G,V=D);++E;break;case Es.SET_FILL_STYLE:z=pe,this.alignFill_=pe[2],J&&(this.fill_(f),J=0,K&&(f.stroke(),K=0)),f.fillStyle=pe[1],++E;break;case Es.SET_STROKE_STYLE:j=pe,K&&(f.stroke(),K=0),this.setStrokeStyle_(f,pe),++E;break;case Es.STROKE:re?K++:f.stroke(),++E;break;default:++E;break}}J&&this.fill_(f),K&&f.stroke()},o.prototype.execute=function(f,m,x,y,v,C){this.viewRotation_=y,this.execute_(f,m,x,this.instructions,v,void 0,void 0,C)},o.prototype.executeHitDetection=function(f,m,x,y,v){return this.viewRotation_=x,this.execute_(f,1,m,this.hitDetectionInstructions,!0,y,v)},o}(),nSt=lor;var pOe=["Polygon","Circle","LineString","Image","Text","Default"],uor=function(){function o(f,m,x,y,v,C){this.maxExtent_=f,this.overlaps_=y,this.pixelRatio_=x,this.resolution_=m,this.renderBuffer_=C,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Ny(),this.createExecutors_(v)}return o.prototype.clip=function(f,m){var x=this.getClipCoords(m);f.beginPath(),f.moveTo(x[0],x[1]),f.lineTo(x[2],x[3]),f.lineTo(x[4],x[5]),f.lineTo(x[6],x[7]),f.clip()},o.prototype.createExecutors_=function(f){for(var m in f){var x=this.executorsByZIndex_[m];x===void 0&&(x={},this.executorsByZIndex_[m]=x);var y=f[m];for(var v in y){var C=y[v];x[v]=new nSt(this.resolution_,this.pixelRatio_,this.overlaps_,C)}}},o.prototype.hasExecutors=function(f){for(var m in this.executorsByZIndex_)for(var x=this.executorsByZIndex_[m],y=0,v=f.length;y<v;++y)if(f[y]in x)return!0;return!1},o.prototype.forEachFeatureAtCoordinate=function(f,m,x,y,v,C){y=Math.round(y);var T=y*2+1,S=d2(this.hitDetectionTransform_,y+.5,y+.5,1/m,-1/m,-x,-f[0],-f[1]),w=!this.hitDetectionContext_;w&&(this.hitDetectionContext_=Wf(T,T));var E=this.hitDetectionContext_;E.canvas.width!==T||E.canvas.height!==T?(E.canvas.width=T,E.canvas.height=T):w||E.clearRect(0,0,T,T);var L;this.renderBuffer_!==void 0&&(L=Zg(),cX(L,f),ZL(L,m*(this.renderBuffer_+y),L));var I=cor(y),R;function P(U,B){for(var Y=E.getImageData(0,0,T,T).data,J=0,K=I.length;J<K;J++)if(Y[I[J]]>0){if(!C||R!=="Image"&&R!=="Text"||C.indexOf(U)!==-1){var z=(I[J]-3)/4,j=y-z%T,q=y-(z/T|0),O=v(U,B,j*j+q*q);if(O)return O}E.clearRect(0,0,T,T);break}}var A=Object.keys(this.executorsByZIndex_).map(Number);A.sort(DL);var M,V,G,D,N;for(M=A.length-1;M>=0;--M){var k=A[M].toString();for(G=this.executorsByZIndex_[k],V=pOe.length-1;V>=0;--V)if(R=pOe[V],D=G[R],D!==void 0&&(N=D.executeHitDetection(E,S,x,P,L),N))return N}},o.prototype.getClipCoords=function(f){var m=this.maxExtent_;if(!m)return null;var x=m[0],y=m[1],v=m[2],C=m[3],T=[x,y,x,C,v,C,v,y];return Qb(T,0,8,2,f,T),T},o.prototype.isEmpty=function(){return NL(this.executorsByZIndex_)},o.prototype.execute=function(f,m,x,y,v,C,T){var S=Object.keys(this.executorsByZIndex_).map(Number);S.sort(DL),this.maxExtent_&&(f.save(),this.clip(f,x));var w=C||pOe,E,L,I,R,P,A;for(T&&S.reverse(),E=0,L=S.length;E<L;++E){var M=S[E].toString();for(P=this.executorsByZIndex_[M],I=0,R=w.length;I<R;++I){var V=w[I];A=P[V],A!==void 0&&A.execute(f,m,x,y,v,T)}}this.maxExtent_&&f.restore()},o}(),fOe={};function cor(o){if(fOe[o]!==void 0)return fOe[o];for(var f=o*2+1,m=o*o,x=new Array(m+1),y=0;y<=o;++y)for(var v=0;v<=o;++v){var C=y*y+v*v;if(C>m)break;var T=x[C];T||(T=[],x[C]=T),T.push(((o+y)*f+(o+v))*4+3),y>0&&T.push(((o-y)*f+(o+v))*4+3),v>0&&(T.push(((o+y)*f+(o-v))*4+3),y>0&&T.push(((o-y)*f+(o-v))*4+3))}for(var S=[],y=0,w=x.length;y<w;++y)x[y]&&S.push.apply(S,x[y]);return fOe[o]=S,S}var mOe=uor;we();we();we();var hor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),dor=function(o){hor(f,o);function f(m){var x=o.call(this)||this;return x.ready=!0,x.boundHandleImageChange_=x.handleImageChange_.bind(x),x.layer_=m,x.declutterExecutorGroup=null,x}return f.prototype.getFeatures=function(m){return Us()},f.prototype.getData=function(m){return null},f.prototype.prepareFrame=function(m){return Us()},f.prototype.renderFrame=function(m,x){return Us()},f.prototype.loadedTileCallback=function(m,x,y){m[x]||(m[x]={}),m[x][y.tileCoord.toString()]=y},f.prototype.createLoadedTileFinder=function(m,x,y){return function(v,C){var T=this.loadedTileCallback.bind(this,y,v);return m.forEachLoadedTile(x,v,C,T)}.bind(this)},f.prototype.forEachFeatureAtCoordinate=function(m,x,y,v,C){},f.prototype.getDataAtPixel=function(m,x,y){return null},f.prototype.getLayer=function(){return this.layer_},f.prototype.handleFontsChanged=function(){},f.prototype.handleImageChange_=function(m){var x=m.target;x.getState()===bh.LOADED&&this.renderIfReadyAndVisible()},f.prototype.loadImage=function(m){var x=m.getState();return x!=bh.LOADED&&x!=bh.ERROR&&m.addEventListener(wd.CHANGE,this.boundHandleImageChange_),x==bh.IDLE&&(m.load(),x=m.getState()),x==bh.LOADED},f.prototype.renderIfReadyAndVisible=function(){var m=this.getLayer();m&&m.getVisible()&&m.getSourceState()==="ready"&&m.changed()},f.prototype.disposeInternal=function(){delete this.layer_,o.prototype.disposeInternal.call(this)},f}(xfe),oSt=dor;we();var por=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),mor=function(o){por(f,o);function f(m,x,y,v){var C=o.call(this,m)||this;return C.inversePixelTransform=x,C.frameState=y,C.context=v,C}return f}(hw),aSt=mor;var xor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}();var pK=null;function gor(){var o=document.createElement("canvas");o.width=1,o.height=1,pK=o.getContext("2d")}var yor=function(o){xor(f,o);function f(m){var x=o.call(this,m)||this;return x.container=null,x.renderedResolution,x.tempTransform=Ny(),x.pixelTransform=Ny(),x.inversePixelTransform=Ny(),x.context=null,x.containerReused=!1,x.pixelContext_=null,x.frameState=null,x}return f.prototype.getImageData=function(m,x,y){pK||gor(),pK.clearRect(0,0,1,1);var v;try{pK.drawImage(m,x,y,1,1,0,0,1,1),v=pK.getImageData(0,0,1,1).data}catch{return pK=null,null}return v},f.prototype.getBackground=function(m){var x=this.getLayer(),y=x.getBackground();return typeof y=="function"&&(y=y(m.viewState.resolution)),y||void 0},f.prototype.useContainer=function(m,x,y){var v=this.getLayer().getClassName(),C,T;if(m&&m.className===v&&(!y||m&&m.style.backgroundColor&&LR(xX(m.style.backgroundColor),xX(y)))){var S=m.firstElementChild;S instanceof HTMLCanvasElement&&(T=S.getContext("2d"))}if(T&&T.canvas.style.transform===x?(this.container=m,this.context=T,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){C=document.createElement("div"),C.className=v;var w=C.style;w.position="absolute",w.width="100%",w.height="100%",T=Wf();var S=T.canvas;C.appendChild(S),w=S.style,w.position="absolute",w.left="0",w.transformOrigin="top left",this.container=C,this.context=T}!this.containerReused&&y&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=y)},f.prototype.clipUnrotated=function(m,x,y){var v=jb(y),C=iK(y),T=tK(y),S=eK(y);Zf(x.coordinateToPixelTransform,v),Zf(x.coordinateToPixelTransform,C),Zf(x.coordinateToPixelTransform,T),Zf(x.coordinateToPixelTransform,S);var w=this.inversePixelTransform;Zf(w,v),Zf(w,C),Zf(w,T),Zf(w,S),m.save(),m.beginPath(),m.moveTo(Math.round(v[0]),Math.round(v[1])),m.lineTo(Math.round(C[0]),Math.round(C[1])),m.lineTo(Math.round(T[0]),Math.round(T[1])),m.lineTo(Math.round(S[0]),Math.round(S[1])),m.clip()},f.prototype.dispatchRenderEvent_=function(m,x,y){var v=this.getLayer();if(v.hasListener(m)){var C=new aSt(m,this.inversePixelTransform,y,x);v.dispatchEvent(C)}},f.prototype.preRender=function(m,x){this.frameState=x,this.dispatchRenderEvent_(Oee.PRERENDER,m,x)},f.prototype.postRender=function(m,x){this.dispatchRenderEvent_(Oee.POSTRENDER,m,x)},f.prototype.getRenderTransform=function(m,x,y,v,C,T,S){var w=C/2,E=T/2,L=v/x,I=-L,R=-m[0]+S,P=-m[1];return d2(this.tempTransform,w,E,L,I,-y,R,P)},f.prototype.getDataAtPixel=function(m,x,y){var v=Zf(this.inversePixelTransform,m.slice()),C=this.context,T=this.getLayer(),S=T.getExtent();if(S){var w=Zf(x.pixelToCoordinateTransform,m.slice());if(!IR(S,w))return null}var E=Math.round(v[0]),L=Math.round(v[1]),I=this.pixelContext_;if(!I){var R=document.createElement("canvas");R.width=1,R.height=1,I=R.getContext("2d"),this.pixelContext_=I}I.clearRect(0,0,1,1);var P;try{I.drawImage(C.canvas,E,L,1,1,0,0,1,1),P=I.getImageData(0,0,1,1).data}catch(A){return A.name==="SecurityError"?(this.pixelContext_=null,new Uint8Array):P}return P[3]===0?null:P},f.prototype.disposeInternal=function(){delete this.frameState,o.prototype.disposeInternal.call(this)},f}(oSt),sSt=yor;we();we();we();var _or=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),vor=function(o){_or(f,o);function f(m,x,y,v){var C=o.call(this)||this;return C.extent=m,C.pixelRatio_=y,C.resolution=x,C.state=v,C}return f.prototype.changed=function(){this.dispatchEvent(wd.CHANGE)},f.prototype.getExtent=function(){return this.extent},f.prototype.getImage=function(){return Us()},f.prototype.getPixelRatio=function(){return this.pixelRatio_},f.prototype.getResolution=function(){return this.resolution},f.prototype.getState=function(){return this.state},f.prototype.load=function(){Us()},f}(PR),lSt=vor;var bor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),BDr=function(o){bor(f,o);function f(m,x,y,v,C,T){var S=o.call(this,m,x,y,bh.IDLE)||this;return S.src_=v,S.image_=new Image,C!==null&&(S.image_.crossOrigin=C),S.unlisten_=null,S.state=bh.IDLE,S.imageLoadFunction_=T,S}return f.prototype.getImage=function(){return this.image_},f.prototype.handleImageError_=function(){this.state=bh.ERROR,this.unlistenImage_(),this.changed()},f.prototype.handleImageLoad_=function(){this.resolution===void 0&&(this.resolution=Fy(this.extent)/this.image_.height),this.state=bh.LOADED,this.unlistenImage_(),this.changed()},f.prototype.load=function(){(this.state==bh.IDLE||this.state==bh.ERROR)&&(this.state=bh.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=Uee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.setImage=function(m){this.image_=m,this.resolution=Fy(this.extent)/this.image_.height},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(lSt);function Uee(o,f,m){var x=o,y=!0,v=!1,C=!1,T=[rK(x,wd.LOAD,function(){C=!0,v||f()})];return x.src&&z1t?(v=!0,x.decode().then(function(){y&&f()}).catch(function(S){y&&(C?f():m())})):T.push(rK(x,wd.ERROR,m)),function(){y=!1,T.forEach(Dy)}}var Cor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Tor=function(o){Cor(f,o);function f(m,x,y,v,C,T){var S=o.call(this,m,x,T)||this;return S.crossOrigin_=v,S.src_=y,S.key=y,S.image_=new Image,v!==null&&(S.image_.crossOrigin=v),S.unlisten_=null,S.tileLoadFunction_=C,S}return f.prototype.getImage=function(){return this.image_},f.prototype.setImage=function(m){this.image_=m,this.state=Qo.LOADED,this.unlistenImage_(),this.changed()},f.prototype.handleImageError_=function(){this.state=Qo.ERROR,this.unlistenImage_(),this.image_=Sor(),this.changed()},f.prototype.handleImageLoad_=function(){var m=this.image_;m.naturalWidth&&m.naturalHeight?this.state=Qo.LOADED:this.state=Qo.EMPTY,this.unlistenImage_(),this.changed()},f.prototype.load=function(){this.state==Qo.ERROR&&(this.state=Qo.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Qo.IDLE&&(this.state=Qo.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Uee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(WD);function Sor(){var o=Wf(1,1);return o.fillStyle="rgba(0,0,0,0)",o.fillRect(0,0,1,1),o.canvas}var uSt=Tor;we();we();var cSt=.5;we();var wor=10,hSt=.25,Eor=function(){function o(f,m,x,y,v,C){this.sourceProj_=f,this.targetProj_=m;var T={},S=dX(this.targetProj_,this.sourceProj_);this.transformInv_=function(D){var N=D[0]+"/"+D[1];return T[N]||(T[N]=S(D)),T[N]},this.maxSourceExtent_=y,this.errorThresholdSquared_=v*v,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!y&&!!this.sourceProj_.getExtent()&&af(y)==af(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?af(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?af(this.targetProj_.getExtent()):null;var w=jb(x),E=iK(x),L=tK(x),I=eK(x),R=this.transformInv_(w),P=this.transformInv_(E),A=this.transformInv_(L),M=this.transformInv_(I),V=wor+(C?Math.max(0,Math.ceil(o1t(bee(x)/(C*C*256*256)))):0);if(this.addQuad_(w,E,L,I,R,P,A,M,V),this.wrapsXInSource_){var G=1/0;this.triangles_.forEach(function(D,N,k){G=Math.min(G,D.source[0][0],D.source[1][0],D.source[2][0])}),this.triangles_.forEach(function(D){if(Math.max(D.source[0][0],D.source[1][0],D.source[2][0])-G>this.sourceWorldWidth_/2){var N=[[D.source[0][0],D.source[0][1]],[D.source[1][0],D.source[1][1]],[D.source[2][0],D.source[2][1]]];N[0][0]-G>this.sourceWorldWidth_/2&&(N[0][0]-=this.sourceWorldWidth_),N[1][0]-G>this.sourceWorldWidth_/2&&(N[1][0]-=this.sourceWorldWidth_),N[2][0]-G>this.sourceWorldWidth_/2&&(N[2][0]-=this.sourceWorldWidth_);var k=Math.min(N[0][0],N[1][0],N[2][0]),U=Math.max(N[0][0],N[1][0],N[2][0]);U-k<this.sourceWorldWidth_/2&&(D.source=N)}}.bind(this))}T={}}return o.prototype.addTriangle_=function(f,m,x,y,v,C){this.triangles_.push({source:[y,v,C],target:[f,m,x]})},o.prototype.addQuad_=function(f,m,x,y,v,C,T,S,w){var E=_ee([v,C,T,S]),L=this.sourceWorldWidth_?af(E)/this.sourceWorldWidth_:null,I=this.sourceWorldWidth_,R=this.sourceProj_.canWrapX()&&L>.5&&L<1,P=!1;if(w>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var A=_ee([f,m,x,y]),M=af(A)/this.targetWorldWidth_;P=M>hSt||P}!R&&this.sourceProj_.isGlobal()&&L&&(P=L>hSt||P)}if(!(!P&&this.maxSourceExtent_&&isFinite(E[0])&&isFinite(E[1])&&isFinite(E[2])&&isFinite(E[3])&&!Ed(E,this.maxSourceExtent_))){var V=0;if(!P&&(!isFinite(v[0])||!isFinite(v[1])||!isFinite(C[0])||!isFinite(C[1])||!isFinite(T[0])||!isFinite(T[1])||!isFinite(S[0])||!isFinite(S[1]))){if(w>0)P=!0;else if(V=(!isFinite(v[0])||!isFinite(v[1])?8:0)+(!isFinite(C[0])||!isFinite(C[1])?4:0)+(!isFinite(T[0])||!isFinite(T[1])?2:0)+(!isFinite(S[0])||!isFinite(S[1])?1:0),V!=1&&V!=2&&V!=4&&V!=8)return}if(w>0){if(!P){var G=[(f[0]+x[0])/2,(f[1]+x[1])/2],D=this.transformInv_(G),N=void 0;if(R){var k=(QY(v[0],I)+QY(T[0],I))/2;N=k-QY(D[0],I)}else N=(v[0]+T[0])/2-D[0];var U=(v[1]+T[1])/2-D[1],B=N*N+U*U;P=B>this.errorThresholdSquared_}if(P){if(Math.abs(f[0]-x[0])<=Math.abs(f[1]-x[1])){var Y=[(m[0]+x[0])/2,(m[1]+x[1])/2],J=this.transformInv_(Y),K=[(y[0]+f[0])/2,(y[1]+f[1])/2],z=this.transformInv_(K);this.addQuad_(f,m,Y,K,v,C,J,z,w-1),this.addQuad_(K,Y,x,y,z,J,T,S,w-1)}else{var j=[(f[0]+m[0])/2,(f[1]+m[1])/2],q=this.transformInv_(j),O=[(x[0]+y[0])/2,(x[1]+y[1])/2],te=this.transformInv_(O);this.addQuad_(f,j,O,y,v,q,te,S,w-1),this.addQuad_(j,m,x,O,q,C,T,te,w-1)}return}}if(R){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}(V&11)==0&&this.addTriangle_(f,x,y,v,T,S),(V&14)==0&&this.addTriangle_(f,x,m,v,T,C),V&&((V&13)==0&&this.addTriangle_(m,y,f,C,S,v),(V&7)==0&&this.addTriangle_(m,y,x,C,S,T))}},o.prototype.calculateSourceExtent=function(){var f=Zg();return this.triangles_.forEach(function(m,x,y){var v=m.source;cX(f,v[0]),cX(f,v[1]),cX(f,v[2])}),f},o.prototype.getTriangles=function(){return this.triangles_},o}(),dSt=Eor;we();we();var Bee={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},pSt={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0};var xOe,yOe=[];function fSt(o,f,m,x,y){o.beginPath(),o.moveTo(0,0),o.lineTo(f,m),o.lineTo(x,y),o.closePath(),o.save(),o.clip(),o.fillRect(0,0,Math.max(f,x)+1,Math.max(m,y)),o.restore()}function gOe(o,f){return Math.abs(o[f*4]-210)>2||Math.abs(o[f*4+3]-.75*255)>2}function Lor(){if(xOe===void 0){var o=document.createElement("canvas").getContext("2d");o.globalCompositeOperation="lighter",o.fillStyle="rgba(210, 0, 0, 0.75)",fSt(o,4,5,4,0),fSt(o,4,5,0,5);var f=o.getImageData(0,0,3,3).data;xOe=gOe(f,0)||gOe(f,4)||gOe(f,8)}return xOe}function mSt(o,f,m,x){var y=_fe(m,f,o),v=W9e(f,x,m),C=f.getMetersPerUnit();C!==void 0&&(v*=C);var T=o.getMetersPerUnit();T!==void 0&&(v/=T);var S=o.getExtent();if(!S||IR(S,y)){var w=W9e(o,v,y)/v;isFinite(w)&&w>0&&(v/=w)}return v}function xSt(o,f,m,x){var y=zV(m),v=mSt(o,f,y,x);return(!isFinite(v)||v<=0)&&hfe(m,function(C){return v=mSt(o,f,C,x),isFinite(v)&&v>0}),v}function gSt(o,f,m,x,y,v,C,T,S,w,E,L){var I=Wf(Math.round(m*o),Math.round(m*f),yOe);if(L||ox(I,Bee),S.length===0)return I.canvas;I.scale(m,m);function R(N){return Math.round(N*m)/m}I.globalCompositeOperation="lighter";var P=Zg();S.forEach(function(N,k,U){c1t(P,N.extent)});var A=af(P),M=Fy(P),V=Wf(Math.round(m*A/x),Math.round(m*M/x));L||ox(V,Bee);var G=m/x;S.forEach(function(N,k,U){var B=N.extent[0]-P[0],Y=-(N.extent[3]-P[3]),J=af(N.extent),K=Fy(N.extent);N.image.width>0&&N.image.height>0&&V.drawImage(N.image,w,w,N.image.width-2*w,N.image.height-2*w,B*G,Y*G,J*G,K*G)});var D=jb(C);return T.getTriangles().forEach(function(N,k,U){var B=N.source,Y=N.target,J=B[0][0],K=B[0][1],z=B[1][0],j=B[1][1],q=B[2][0],O=B[2][1],te=R((Y[0][0]-D[0])/v),ie=R(-(Y[0][1]-D[1])/v),re=R((Y[1][0]-D[0])/v),ee=R(-(Y[1][1]-D[1])/v),ae=R((Y[2][0]-D[0])/v),oe=R(-(Y[2][1]-D[1])/v),ce=J,pe=K;J=0,K=0,z-=ce,j-=pe,q-=ce,O-=pe;var ue=[[z,j,0,0,re-te],[q,O,0,0,ae-te],[0,0,z,j,ee-ie],[0,0,q,O,oe-ie]],he=s1t(ue);if(!!he){if(I.save(),I.beginPath(),Lor()||!L){I.moveTo(re,ee);for(var fe=4,de=te-re,Ce=ie-ee,Se=0;Se<fe;Se++)I.lineTo(re+R((Se+1)*de/fe),ee+R(Se*Ce/(fe-1))),Se!=fe-1&&I.lineTo(re+R((Se+1)*de/fe),ee+R((Se+1)*Ce/(fe-1)));I.lineTo(ae,oe)}else I.moveTo(re,ee),I.lineTo(te,ie),I.lineTo(ae,oe);I.clip(),I.transform(he[0],he[2],he[1],he[3],te,ie),I.translate(P[0]-ce,P[3]-pe),I.scale(x/m,-x/m),I.drawImage(V.canvas,0,0),I.restore()}}),E&&(I.save(),I.globalCompositeOperation="source-over",I.strokeStyle="black",I.lineWidth=1,T.getTriangles().forEach(function(N,k,U){var B=N.target,Y=(B[0][0]-D[0])/v,J=-(B[0][1]-D[1])/v,K=(B[1][0]-D[0])/v,z=-(B[1][1]-D[1])/v,j=(B[2][0]-D[0])/v,q=-(B[2][1]-D[1])/v;I.beginPath(),I.moveTo(K,z),I.lineTo(Y,J),I.lineTo(j,q),I.closePath(),I.stroke()}),I.restore()),I.canvas}var Por=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Ior=function(o){Por(f,o);function f(m,x,y,v,C,T,S,w,E,L,I,R){var P=o.call(this,C,Qo.IDLE,{interpolate:!!R})||this;P.renderEdges_=I!==void 0?I:!1,P.pixelRatio_=S,P.gutter_=w,P.canvas_=null,P.sourceTileGrid_=x,P.targetTileGrid_=v,P.wrappedTileCoord_=T||C,P.sourceTiles_=[],P.sourcesListenerKeys_=null,P.sourceZ_=0;var A=v.getTileCoordExtent(P.wrappedTileCoord_),M=P.targetTileGrid_.getExtent(),V=P.sourceTileGrid_.getExtent(),G=M?RR(A,M):A;if(bee(G)===0)return P.state=Qo.EMPTY,P;var D=m.getExtent();D&&(V?V=RR(V,D):V=D);var N=v.getResolution(P.wrappedTileCoord_[0]),k=xSt(m,y,G,N);if(!isFinite(k)||k<=0)return P.state=Qo.EMPTY,P;var U=L!==void 0?L:cSt;if(P.triangulation_=new dSt(m,y,G,V,k*U,N),P.triangulation_.getTriangles().length===0)return P.state=Qo.EMPTY,P;P.sourceZ_=x.getZForResolution(k);var B=P.triangulation_.calculateSourceExtent();if(V&&(m.canWrapX()?(B[1]=Mv(B[1],V[1],V[3]),B[3]=Mv(B[3],V[1],V[3])):B=RR(B,V)),!bee(B))P.state=Qo.EMPTY;else{for(var Y=x.getTileRangeForExtentAndZ(B,P.sourceZ_),J=Y.minX;J<=Y.maxX;J++)for(var K=Y.minY;K<=Y.maxY;K++){var z=E(P.sourceZ_,J,K,S);z&&P.sourceTiles_.push(z)}P.sourceTiles_.length===0&&(P.state=Qo.EMPTY)}return P}return f.prototype.getImage=function(){return this.canvas_},f.prototype.reproject_=function(){var m=[];if(this.sourceTiles_.forEach(function(E,L,I){E&&E.getState()==Qo.LOADED&&m.push({extent:this.sourceTileGrid_.getTileCoordExtent(E.tileCoord),image:E.getImage()})}.bind(this)),this.sourceTiles_.length=0,m.length===0)this.state=Qo.ERROR;else{var x=this.wrappedTileCoord_[0],y=this.targetTileGrid_.getTileSize(x),v=typeof y=="number"?y:y[0],C=typeof y=="number"?y:y[1],T=this.targetTileGrid_.getResolution(x),S=this.sourceTileGrid_.getResolution(this.sourceZ_),w=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=gSt(v,C,this.pixelRatio_,S,this.sourceTileGrid_.getExtent(),T,w,this.triangulation_,m,this.gutter_,this.renderEdges_,this.interpolate),this.state=Qo.LOADED}this.changed()},f.prototype.load=function(){if(this.state==Qo.IDLE){this.state=Qo.LOADING,this.changed();var m=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(x,y,v){var C=x.getState();if(C==Qo.IDLE||C==Qo.LOADING){m++;var T=Vv(x,wd.CHANGE,function(S){var w=x.getState();(w==Qo.LOADED||w==Qo.ERROR||w==Qo.EMPTY)&&(Dy(T),m--,m===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(T)}}.bind(this)),m===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(x,y,v){var C=x.getState();C==Qo.IDLE&&x.load()})}},f.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Dy),this.sourcesListenerKeys_=null},f.prototype.release=function(){this.canvas_&&(Tfe(this.canvas_.getContext("2d")),yOe.push(this.canvas_),this.canvas_=null),o.prototype.release.call(this)},f}(WD),ySt=Ior;var Ror=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Aor=function(o){Ror(f,o);function f(m){var x=o.call(this,m)||this;return x.extentChanged=!0,x.renderedExtent_=null,x.renderedPixelRatio,x.renderedProjection=null,x.renderedRevision,x.renderedTiles=[],x.newTiles_=!1,x.tmpExtent=Zg(),x.tmpTileRange_=new nfe(0,0,0,0),x}return f.prototype.isDrawableTile=function(m){var x=this.getLayer(),y=m.getState(),v=x.getUseInterimTilesOnError();return y==Qo.LOADED||y==Qo.EMPTY||y==Qo.ERROR&&!v},f.prototype.getTile=function(m,x,y,v){var C=v.pixelRatio,T=v.viewState.projection,S=this.getLayer(),w=S.getSource(),E=w.getTile(m,x,y,C,T);return E.getState()==Qo.ERROR&&(S.getUseInterimTilesOnError()?S.getPreload()>0&&(this.newTiles_=!0):E.setState(Qo.LOADED)),this.isDrawableTile(E)||(E=E.getInterimTile()),E},f.prototype.getData=function(m){var x=this.frameState;if(!x)return null;var y=this.getLayer(),v=Zf(x.pixelToCoordinateTransform,m.slice()),C=y.getExtent();if(C&&!IR(C,v))return null;for(var T=x.pixelRatio,S=x.viewState.projection,w=x.viewState,E=y.getRenderSource(),L=E.getTileGridForProjection(w.projection),I=E.getTilePixelRatio(x.pixelRatio),R=L.getZForResolution(w.resolution);R>=L.getMinZoom();--R){var P=L.getTileCoordForCoordAndZ(v,R),A=E.getTile(R,P[1],P[2],T,S);if(!(A instanceof uSt||A instanceof ySt))return null;if(A.getState()===Qo.LOADED){var M=L.getOrigin(R),V=sf(L.getTileSize(R)),G=L.getResolution(R),D=Math.floor(I*((v[0]-M[0])/G-P[1]*V[0])),N=Math.floor(I*((M[1]-v[1])/G-P[2]*V[1])),k=Math.round(I*E.getGutterForProjection(w.projection));return this.getImageData(A.getImage(),D+k,N+k)}}return null},f.prototype.loadedTileCallback=function(m,x,y){return this.isDrawableTile(y)?o.prototype.loadedTileCallback.call(this,m,x,y):!1},f.prototype.prepareFrame=function(m){return!!this.getLayer().getSource()},f.prototype.renderFrame=function(m,x){var y=m.layerStatesArray[m.layerIndex],v=m.viewState,C=v.projection,T=v.resolution,S=v.center,w=v.rotation,E=m.pixelRatio,L=this.getLayer(),I=L.getSource(),R=I.getRevision(),P=I.getTileGridForProjection(C),A=P.getZForResolution(T,I.zDirection),M=P.getResolution(A),V=m.extent,G=m.viewState.resolution,D=I.getTilePixelRatio(E),N=Math.round(af(V)/G*E),k=Math.round(Fy(V)/G*E),U=y.extent&&vfe(y.extent,C);U&&(V=RR(V,vfe(y.extent,C)));var B=M*N/2/D,Y=M*k/2/D,J=[S[0]-B,S[1]-Y,S[0]+B,S[1]+Y],K=P.getTileRangeForExtentAndZ(V,A),z={};z[A]={};var j=this.createLoadedTileFinder(I,C,z),q=this.tmpExtent,O=this.tmpTileRange_;this.newTiles_=!1;for(var te=w?R9e(v.center,G,w,m.size):void 0,ie=K.minX;ie<=K.maxX;++ie)for(var re=K.minY;re<=K.maxY;++re)if(!(w&&!P.tileCoordIntersectsViewport([A,ie,re],te))){var ee=this.getTile(A,ie,re,m);if(this.isDrawableTile(ee)){var ae=mu(this);if(ee.getState()==Qo.LOADED){z[A][ee.tileCoord.toString()]=ee;var oe=ee.inTransition(ae);oe&&y.opacity!==1&&(ee.endTransition(ae),oe=!1),!this.newTiles_&&(oe||this.renderedTiles.indexOf(ee)===-1)&&(this.newTiles_=!0)}if(ee.getAlpha(ae,m.time)===1)continue}var ce=P.getTileCoordChildTileRange(ee.tileCoord,O,q),pe=!1;ce&&(pe=j(A+1,ce)),pe||P.forEachTileCoordParentTileRange(ee.tileCoord,j,O,q)}var ue=M/T*E/D;d2(this.pixelTransform,m.size[0]/2,m.size[1]/2,1/E,1/E,w,-N/2,-k/2);var he=rTt(this.pixelTransform);this.useContainer(x,he,this.getBackground(m));var fe=this.context,de=fe.canvas;iTt(this.inversePixelTransform,this.pixelTransform),d2(this.tempTransform,N/2,k/2,ue,ue,0,-N/2,-k/2),de.width!=N||de.height!=k?(de.width=N,de.height=k):this.containerReused||fe.clearRect(0,0,N,k),U&&this.clipUnrotated(fe,m,U),I.getInterpolate()||ox(fe,Bee),this.preRender(fe,m),this.renderedTiles.length=0;var Ce=Object.keys(z).map(Number);Ce.sort(DL);var Se,Le,Ve;y.opacity===1&&(!this.containerReused||I.getOpaque(m.viewState.projection))?Ce=Ce.reverse():(Se=[],Le=[]);for(var Oe=Ce.length-1;Oe>=0;--Oe){var $e=Ce[Oe],at=I.getTilePixelSize($e,E,C),dt=P.getResolution($e),gt=dt/M,Et=at[0]*gt*ue,et=at[1]*gt*ue,yt=P.getTileCoordForCoordAndZ(jb(J),$e),Rt=P.getTileCoordExtent(yt),Vt=Zf(this.tempTransform,[D*(Rt[0]-J[0])/M,D*(J[3]-Rt[3])/M]),_t=D*I.getGutterForProjection(C),se=z[$e];for(var ve in se){var ee=se[ve],je=ee.tileCoord,Ft=yt[1]-je[1],kt=Math.round(Vt[0]-(Ft-1)*Et),bt=yt[2]-je[2],lt=Math.round(Vt[1]-(bt-1)*et),ie=Math.round(Vt[0]-Ft*Et),re=Math.round(Vt[1]-bt*et),ot=kt-ie,tt=lt-re,ze=A===$e,oe=ze&&ee.getAlpha(mu(this),m.time)!==1,ct=!1;if(!oe)if(Se){Ve=[ie,re,ie+ot,re,ie+ot,re+tt,ie,re+tt];for(var Wt=0,Tt=Se.length;Wt<Tt;++Wt)if(A!==$e&&$e<Le[Wt]){var Ht=Se[Wt];Ed([ie,re,ie+ot,re+tt],[Ht[0],Ht[3],Ht[4],Ht[7]])&&(ct||(fe.save(),ct=!0),fe.beginPath(),fe.moveTo(Ve[0],Ve[1]),fe.lineTo(Ve[2],Ve[3]),fe.lineTo(Ve[4],Ve[5]),fe.lineTo(Ve[6],Ve[7]),fe.moveTo(Ht[6],Ht[7]),fe.lineTo(Ht[4],Ht[5]),fe.lineTo(Ht[2],Ht[3]),fe.lineTo(Ht[0],Ht[1]),fe.clip())}Se.push(Ve),Le.push($e)}else fe.clearRect(ie,re,ot,tt);this.drawTileImage(ee,m,ie,re,ot,tt,_t,ze),Se&&!oe?(ct&&fe.restore(),this.renderedTiles.unshift(ee)):this.renderedTiles.push(ee),this.updateUsedTiles(m.usedTiles,I,ee)}}return this.renderedRevision=R,this.renderedResolution=M,this.extentChanged=!this.renderedExtent_||!OD(this.renderedExtent_,J),this.renderedExtent_=J,this.renderedPixelRatio=E,this.renderedProjection=C,this.manageTilePyramid(m,I,P,E,C,V,A,L.getPreload()),this.scheduleExpireCache(m,I),this.postRender(fe,m),y.extent&&fe.restore(),ox(fe,pSt),he!==de.style.transform&&(de.style.transform=he),this.container},f.prototype.drawTileImage=function(m,x,y,v,C,T,S,w){var E=this.getTileImage(m);if(!!E){var L=mu(this),I=x.layerStatesArray[x.layerIndex],R=I.opacity*(w?m.getAlpha(L,x.time):1),P=R!==this.context.globalAlpha;P&&(this.context.save(),this.context.globalAlpha=R),this.context.drawImage(E,S,S,E.width-2*S,E.height-2*S,y,v,C,T),P&&this.context.restore(),R!==I.opacity?x.animate=!0:w&&m.endTransition(L)}},f.prototype.getImage=function(){var m=this.context;return m?m.canvas:null},f.prototype.getTileImage=function(m){return m.getImage()},f.prototype.scheduleExpireCache=function(m,x){if(x.canExpireCache()){var y=function(v,C,T){var S=mu(v);S in T.usedTiles&&v.expireCache(T.viewState.projection,T.usedTiles[S])}.bind(null,x);m.postRenderFunctions.push(y)}},f.prototype.updateUsedTiles=function(m,x,y){var v=mu(x);v in m||(m[v]={}),m[v][y.getKey()]=!0},f.prototype.manageTilePyramid=function(m,x,y,v,C,T,S,w,E){var L=mu(x);L in m.wantedTiles||(m.wantedTiles[L]={});var I=m.wantedTiles[L],R=m.tileQueue,P=y.getMinZoom(),A=m.viewState.rotation,M=A?R9e(m.viewState.center,m.viewState.resolution,A,m.size):void 0,V=0,G,D,N,k,U,B;for(B=P;B<=S;++B)for(D=y.getTileRangeForExtentAndZ(T,B,D),N=y.getResolution(B),k=D.minX;k<=D.maxX;++k)for(U=D.minY;U<=D.maxY;++U)A&&!y.tileCoordIntersectsViewport([B,k,U],M)||(S-B<=w?(++V,G=x.getTile(B,k,U,v,C),G.getState()==Qo.IDLE&&(I[G.getKey()]=!0,R.isKeyQueued(G.getKey())||R.enqueue([G,L,y.getTileCoordCenter(G.tileCoord),N])),E!==void 0&&E(G)):x.useTile(B,k,U,C));x.updateCacheSize(V,C)},f}(sSt),_St=Aor;we();var FR={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"};we();var vX={ANIMATING:0,INTERACTING:1};we();we();var Mor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Vor=function(o){Mor(f,o);function f(m,x,y,v,C,T,S){var w=o.call(this)||this;return w.context_=m,w.pixelRatio_=x,w.extent_=y,w.transform_=v,w.viewRotation_=C,w.squaredTolerance_=T,w.userTransform_=S,w.contextFillState_=null,w.contextStrokeState_=null,w.contextTextState_=null,w.fillState_=null,w.strokeState_=null,w.image_=null,w.imageAnchorX_=0,w.imageAnchorY_=0,w.imageHeight_=0,w.imageOpacity_=0,w.imageOriginX_=0,w.imageOriginY_=0,w.imageRotateWithView_=!1,w.imageRotation_=0,w.imageScale_=[0,0],w.imageWidth_=0,w.text_="",w.textOffsetX_=0,w.textOffsetY_=0,w.textRotateWithView_=!1,w.textRotation_=0,w.textScale_=[0,0],w.textFillState_=null,w.textStrokeState_=null,w.textState_=null,w.pixelCoordinates_=[],w.tmpLocalTransform_=Ny(),w}return f.prototype.drawImages_=function(m,x,y,v){if(!!this.image_){var C=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_),T=this.context_,S=this.tmpLocalTransform_,w=T.globalAlpha;this.imageOpacity_!=1&&(T.globalAlpha=w*this.imageOpacity_);var E=this.imageRotation_;this.imageRotateWithView_&&(E+=this.viewRotation_);for(var L=0,I=C.length;L<I;L+=2){var R=C[L]-this.imageAnchorX_,P=C[L+1]-this.imageAnchorY_;if(E!==0||this.imageScale_[0]!=1||this.imageScale_[1]!=1){var A=R+this.imageAnchorX_,M=P+this.imageAnchorY_;d2(S,A,M,1,1,E,-A,-M),T.setTransform.apply(T,S),T.translate(A,M),T.scale(this.imageScale_[0],this.imageScale_[1]),T.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),T.setTransform(1,0,0,1,0,0)}else T.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,R,P,this.imageWidth_,this.imageHeight_)}this.imageOpacity_!=1&&(T.globalAlpha=w)}},f.prototype.drawText_=function(m,x,y,v){if(!(!this.textState_||this.text_==="")){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var C=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_),T=this.context_,S=this.textRotation_;for(this.textRotateWithView_&&(S+=this.viewRotation_);x<y;x+=v){var w=C[x]+this.textOffsetX_,E=C[x+1]+this.textOffsetY_;if(S!==0||this.textScale_[0]!=1||this.textScale_[1]!=1){var L=d2(this.tmpLocalTransform_,w,E,1,1,S,-w,-E);T.setTransform.apply(T,L),T.translate(w,E),T.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&T.strokeText(this.text_,0,0),this.textFillState_&&T.fillText(this.text_,0,0),T.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&T.strokeText(this.text_,w,E),this.textFillState_&&T.fillText(this.text_,w,E)}}},f.prototype.moveToLineTo_=function(m,x,y,v,C){var T=this.context_,S=Qb(m,x,y,v,this.transform_,this.pixelCoordinates_);T.moveTo(S[0],S[1]);var w=S.length;C&&(w-=2);for(var E=2;E<w;E+=2)T.lineTo(S[E],S[E+1]);return C&&T.closePath(),y},f.prototype.drawRings_=function(m,x,y,v){for(var C=0,T=y.length;C<T;++C)x=this.moveToLineTo_(m,x,y[C],v,!0);return x},f.prototype.drawCircle=function(m){if(!!Ed(this.extent_,m.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=uTt(m,this.transform_,this.pixelCoordinates_),y=x[2]-x[0],v=x[3]-x[1],C=Math.sqrt(y*y+v*v),T=this.context_;T.beginPath(),T.arc(x[0],x[1],C,0,2*Math.PI),this.fillState_&&T.fill(),this.strokeState_&&T.stroke()}this.text_!==""&&this.drawText_(m.getCenter(),0,2,2)}},f.prototype.setStyle=function(m){this.setFillStrokeStyle(m.getFill(),m.getStroke()),this.setImageStyle(m.getImage()),this.setTextStyle(m.getText())},f.prototype.setTransform=function(m){this.transform_=m},f.prototype.drawGeometry=function(m){var x=m.getType();switch(x){case"Point":this.drawPoint(m);break;case"LineString":this.drawLineString(m);break;case"Polygon":this.drawPolygon(m);break;case"MultiPoint":this.drawMultiPoint(m);break;case"MultiLineString":this.drawMultiLineString(m);break;case"MultiPolygon":this.drawMultiPolygon(m);break;case"GeometryCollection":this.drawGeometryCollection(m);break;case"Circle":this.drawCircle(m);break;default:}},f.prototype.drawFeature=function(m,x){var y=x.getGeometryFunction()(m);!y||!Ed(this.extent_,y.getExtent())||(this.setStyle(x),this.drawGeometry(y))},f.prototype.drawGeometryCollection=function(m){for(var x=m.getGeometriesArray(),y=0,v=x.length;y<v;++y)this.drawGeometry(x[y])},f.prototype.drawPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),y=m.getStride();this.image_&&this.drawImages_(x,0,x.length,y),this.text_!==""&&this.drawText_(x,0,x.length,y)},f.prototype.drawMultiPoint=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getFlatCoordinates(),y=m.getStride();this.image_&&this.drawImages_(x,0,x.length,y),this.text_!==""&&this.drawText_(x,0,x.length,y)},f.prototype.drawLineString=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(this.extent_,m.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var x=this.context_,y=m.getFlatCoordinates();x.beginPath(),this.moveToLineTo_(y,0,y.length,m.getStride(),!1),x.stroke()}if(this.text_!==""){var v=m.getFlatMidpoint();this.drawText_(v,0,2,2)}}},f.prototype.drawMultiLineString=function(m){this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var x=m.getExtent();if(!!Ed(this.extent_,x)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var y=this.context_,v=m.getFlatCoordinates(),C=0,T=m.getEnds(),S=m.getStride();y.beginPath();for(var w=0,E=T.length;w<E;++w)C=this.moveToLineTo_(v,C,T[w],S,!1);y.stroke()}if(this.text_!==""){var L=m.getFlatMidpoints();this.drawText_(L,0,L.length,2)}}},f.prototype.drawPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(this.extent_,m.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=this.context_;x.beginPath(),this.drawRings_(m.getOrientedFlatCoordinates(),0,m.getEnds(),m.getStride()),this.fillState_&&x.fill(),this.strokeState_&&x.stroke()}if(this.text_!==""){var y=m.getFlatInteriorPoint();this.drawText_(y,0,2,2)}}},f.prototype.drawMultiPolygon=function(m){if(this.squaredTolerance_&&(m=m.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Ed(this.extent_,m.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var x=this.context_,y=m.getOrientedFlatCoordinates(),v=0,C=m.getEndss(),T=m.getStride();x.beginPath();for(var S=0,w=C.length;S<w;++S){var E=C[S];v=this.drawRings_(y,v,E,T)}this.fillState_&&x.fill(),this.strokeState_&&x.stroke()}if(this.text_!==""){var L=m.getFlatInteriorPoints();this.drawText_(L,0,L.length,2)}}},f.prototype.setContextFillState_=function(m){var x=this.context_,y=this.contextFillState_;y?y.fillStyle!=m.fillStyle&&(y.fillStyle=m.fillStyle,x.fillStyle=m.fillStyle):(x.fillStyle=m.fillStyle,this.contextFillState_={fillStyle:m.fillStyle})},f.prototype.setContextStrokeState_=function(m){var x=this.context_,y=this.contextStrokeState_;y?(y.lineCap!=m.lineCap&&(y.lineCap=m.lineCap,x.lineCap=m.lineCap),x.setLineDash&&(LR(y.lineDash,m.lineDash)||x.setLineDash(y.lineDash=m.lineDash),y.lineDashOffset!=m.lineDashOffset&&(y.lineDashOffset=m.lineDashOffset,x.lineDashOffset=m.lineDashOffset)),y.lineJoin!=m.lineJoin&&(y.lineJoin=m.lineJoin,x.lineJoin=m.lineJoin),y.lineWidth!=m.lineWidth&&(y.lineWidth=m.lineWidth,x.lineWidth=m.lineWidth),y.miterLimit!=m.miterLimit&&(y.miterLimit=m.miterLimit,x.miterLimit=m.miterLimit),y.strokeStyle!=m.strokeStyle&&(y.strokeStyle=m.strokeStyle,x.strokeStyle=m.strokeStyle)):(x.lineCap=m.lineCap,x.setLineDash&&(x.setLineDash(m.lineDash),x.lineDashOffset=m.lineDashOffset),x.lineJoin=m.lineJoin,x.lineWidth=m.lineWidth,x.miterLimit=m.miterLimit,x.strokeStyle=m.strokeStyle,this.contextStrokeState_={lineCap:m.lineCap,lineDash:m.lineDash,lineDashOffset:m.lineDashOffset,lineJoin:m.lineJoin,lineWidth:m.lineWidth,miterLimit:m.miterLimit,strokeStyle:m.strokeStyle})},f.prototype.setContextTextState_=function(m){var x=this.context_,y=this.contextTextState_,v=m.textAlign?m.textAlign:jD;y?(y.font!=m.font&&(y.font=m.font,x.font=m.font),y.textAlign!=v&&(y.textAlign=v,x.textAlign=v),y.textBaseline!=m.textBaseline&&(y.textBaseline=m.textBaseline,x.textBaseline=m.textBaseline)):(x.font=m.font,x.textAlign=v,x.textBaseline=m.textBaseline,this.contextTextState_={font:m.font,textAlign:v,textBaseline:m.textBaseline})},f.prototype.setFillStrokeStyle=function(m,x){var y=this;if(!m)this.fillState_=null;else{var v=m.getColor();this.fillState_={fillStyle:$b(v||eC)}}if(!x)this.strokeState_=null;else{var C=x.getColor(),T=x.getLineCap(),S=x.getLineDash(),w=x.getLineDashOffset(),E=x.getLineJoin(),L=x.getWidth(),I=x.getMiterLimit(),R=S||KV;this.strokeState_={lineCap:T!==void 0?T:gX,lineDash:this.pixelRatio_===1?R:R.map(function(P){return P*y.pixelRatio_}),lineDashOffset:(w||JV)*this.pixelRatio_,lineJoin:E!==void 0?E:MR,lineWidth:(L!==void 0?L:$V)*this.pixelRatio_,miterLimit:I!==void 0?I:jV,strokeStyle:$b(C||QV)}}},f.prototype.setImageStyle=function(m){var x;if(!m||!(x=m.getSize())){this.image_=null;return}var y=m.getAnchor(),v=m.getOrigin();this.image_=m.getImage(this.pixelRatio_),this.imageAnchorX_=y[0]*this.pixelRatio_,this.imageAnchorY_=y[1]*this.pixelRatio_,this.imageHeight_=x[1]*this.pixelRatio_,this.imageOpacity_=m.getOpacity(),this.imageOriginX_=v[0],this.imageOriginY_=v[1],this.imageRotateWithView_=m.getRotateWithView(),this.imageRotation_=m.getRotation(),this.imageScale_=m.getScaleArray(),this.imageWidth_=x[0]*this.pixelRatio_},f.prototype.setTextStyle=function(m){if(!m)this.text_="";else{var x=m.getFill();if(!x)this.textFillState_=null;else{var y=x.getColor();this.textFillState_={fillStyle:$b(y||eC)}}var v=m.getStroke();if(!v)this.textStrokeState_=null;else{var C=v.getColor(),T=v.getLineCap(),S=v.getLineDash(),w=v.getLineDashOffset(),E=v.getLineJoin(),L=v.getWidth(),I=v.getMiterLimit();this.textStrokeState_={lineCap:T!==void 0?T:gX,lineDash:S||KV,lineDashOffset:w||JV,lineJoin:E!==void 0?E:MR,lineWidth:L!==void 0?L:$V,miterLimit:I!==void 0?I:jV,strokeStyle:$b(C||QV)}}var R=m.getFont(),P=m.getOffsetX(),A=m.getOffsetY(),M=m.getRotateWithView(),V=m.getRotation(),G=m.getScaleArray(),D=m.getText(),N=m.getTextAlign(),k=m.getTextBaseline();this.textState_={font:R!==void 0?R:Nfe,textAlign:N!==void 0?N:jD,textBaseline:k!==void 0?k:yX},this.text_=D!==void 0?Array.isArray(D)?D.reduce(function(U,B,Y){return U+=Y%2?" ":B},""):D:"",this.textOffsetX_=P!==void 0?this.pixelRatio_*P:0,this.textOffsetY_=A!==void 0?this.pixelRatio_*A:0,this.textRotateWithView_=M!==void 0?M:!1,this.textRotation_=V!==void 0?V:0,this.textScale_=[this.pixelRatio_*G[0],this.pixelRatio_*G[1]]}},f}(Zfe),vSt=Vor;we();var DR={FRACTION:"fraction",PIXELS:"pixels"};we();we();we();var J1={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};we();we();var Gor=function(){function o(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return o.prototype.clear=function(){this.cache_={},this.cacheSize_=0},o.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},o.prototype.expire=function(){if(this.canExpireCache()){var f=0;for(var m in this.cache_){var x=this.cache_[m];(f++&3)===0&&!x.hasListener()&&(delete this.cache_[m],--this.cacheSize_)}}},o.prototype.get=function(f,m,x){var y=bSt(f,m,x);return y in this.cache_?this.cache_[y]:null},o.prototype.set=function(f,m,x,y){var v=bSt(f,m,x);this.cache_[v]=y,++this.cacheSize_},o.prototype.setSize=function(f){this.maxCacheSize_=f,this.expire()},o}();function bSt(o,f,m){var x=m?Ffe(m):"null";return f+":"+o+":"+x}var _Oe=new Gor;var For=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Hee=null,Dor=function(o){For(f,o);function f(m,x,y,v,C,T){var S=o.call(this)||this;return S.hitDetectionImage_=null,S.image_=m||new Image,v!==null&&(S.image_.crossOrigin=v),S.canvas_={},S.color_=T,S.unlisten_=null,S.imageState_=C,S.size_=y,S.src_=x,S.tainted_,S}return f.prototype.isTainted_=function(){if(this.tainted_===void 0&&this.imageState_===bh.LOADED){Hee||(Hee=Wf(1,1)),Hee.drawImage(this.image_,0,0);try{Hee.getImageData(0,0,1,1),this.tainted_=!1}catch{Hee=null,this.tainted_=!0}}return this.tainted_===!0},f.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(wd.CHANGE)},f.prototype.handleImageError_=function(){this.imageState_=bh.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},f.prototype.handleImageLoad_=function(){this.imageState_=bh.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},f.prototype.getImage=function(m){return this.replaceColor_(m),this.canvas_[m]?this.canvas_[m]:this.image_},f.prototype.getPixelRatio=function(m){return this.replaceColor_(m),this.canvas_[m]?m:1},f.prototype.getImageState=function(){return this.imageState_},f.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var m=this.size_[0],x=this.size_[1],y=Wf(m,x);y.fillRect(0,0,m,x),this.hitDetectionImage_=y.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},f.prototype.getSize=function(){return this.size_},f.prototype.getSrc=function(){return this.src_},f.prototype.load=function(){if(this.imageState_==bh.IDLE){this.imageState_=bh.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=Uee(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},f.prototype.replaceColor_=function(m){if(!(!this.color_||this.canvas_[m]||this.imageState_!==bh.LOADED)){var x=document.createElement("canvas");this.canvas_[m]=x,x.width=Math.ceil(this.image_.width*m),x.height=Math.ceil(this.image_.height*m);var y=x.getContext("2d");if(y.scale(m,m),y.drawImage(this.image_,0,0),y.globalCompositeOperation="multiply",y.globalCompositeOperation==="multiply"||this.isTainted_())y.fillStyle=Ffe(this.color_),y.fillRect(0,0,x.width/m,x.height/m),y.globalCompositeOperation="destination-in",y.drawImage(this.image_,0,0);else{for(var v=y.getImageData(0,0,x.width,x.height),C=v.data,T=this.color_[0]/255,S=this.color_[1]/255,w=this.color_[2]/255,E=this.color_[3],L=0,I=C.length;L<I;L+=4)C[L]*=T,C[L+1]*=S,C[L+2]*=w,C[L+3]*=E;y.putImageData(v,0,0)}}},f.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},f}(PR);function CSt(o,f,m,x,y,v){var C=_Oe.get(f,x,v);return C||(C=new Dor(o,f,m,x,y,v),_Oe.set(f,x,v,C)),C}var Nor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Wor=function(o){Nor(f,o);function f(m){var x=this,y=m||{},v=y.opacity!==void 0?y.opacity:1,C=y.rotation!==void 0?y.rotation:0,T=y.scale!==void 0?y.scale:1,S=y.rotateWithView!==void 0?y.rotateWithView:!1;x=o.call(this,{opacity:v,rotation:C,scale:T,displacement:y.displacement!==void 0?y.displacement:[0,0],rotateWithView:S,declutterMode:y.declutterMode})||this,x.anchor_=y.anchor!==void 0?y.anchor:[.5,.5],x.normalizedAnchor_=null,x.anchorOrigin_=y.anchorOrigin!==void 0?y.anchorOrigin:J1.TOP_LEFT,x.anchorXUnits_=y.anchorXUnits!==void 0?y.anchorXUnits:DR.FRACTION,x.anchorYUnits_=y.anchorYUnits!==void 0?y.anchorYUnits:DR.FRACTION,x.crossOrigin_=y.crossOrigin!==void 0?y.crossOrigin:null;var w=y.img!==void 0?y.img:null;x.imgSize_=y.imgSize;var E=y.src;Su(!(E!==void 0&&w),4),Su(!w||w&&x.imgSize_,5),(E===void 0||E.length===0)&&w&&(E=w.src||mu(w)),Su(E!==void 0&&E.length>0,6);var L=y.src!==void 0?bh.IDLE:bh.LOADED;return x.color_=y.color!==void 0?xX(y.color):null,x.iconImage_=CSt(w,E,x.imgSize_!==void 0?x.imgSize_:null,x.crossOrigin_,L,x.color_),x.offset_=y.offset!==void 0?y.offset:[0,0],x.offsetOrigin_=y.offsetOrigin!==void 0?y.offsetOrigin:J1.TOP_LEFT,x.origin_=null,x.size_=y.size!==void 0?y.size:null,x}return f.prototype.clone=function(){var m=this.getScale();return new f({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(m)?m.slice():m,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},f.prototype.getAnchor=function(){var m=this.normalizedAnchor_;if(!m){m=this.anchor_;var x=this.getSize();if(this.anchorXUnits_==DR.FRACTION||this.anchorYUnits_==DR.FRACTION){if(!x)return null;m=this.anchor_.slice(),this.anchorXUnits_==DR.FRACTION&&(m[0]*=x[0]),this.anchorYUnits_==DR.FRACTION&&(m[1]*=x[1])}if(this.anchorOrigin_!=J1.TOP_LEFT){if(!x)return null;m===this.anchor_&&(m=this.anchor_.slice()),(this.anchorOrigin_==J1.TOP_RIGHT||this.anchorOrigin_==J1.BOTTOM_RIGHT)&&(m[0]=-m[0]+x[0]),(this.anchorOrigin_==J1.BOTTOM_LEFT||this.anchorOrigin_==J1.BOTTOM_RIGHT)&&(m[1]=-m[1]+x[1])}this.normalizedAnchor_=m}var y=this.getDisplacement();return[m[0]-y[0],m[1]+y[1]]},f.prototype.setAnchor=function(m){this.anchor_=m,this.normalizedAnchor_=null},f.prototype.getColor=function(){return this.color_},f.prototype.getImage=function(m){return this.iconImage_.getImage(m)},f.prototype.getPixelRatio=function(m){return this.iconImage_.getPixelRatio(m)},f.prototype.getImageSize=function(){return this.iconImage_.getSize()},f.prototype.getImageState=function(){return this.iconImage_.getImageState()},f.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},f.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var m=this.offset_;if(this.offsetOrigin_!=J1.TOP_LEFT){var x=this.getSize(),y=this.iconImage_.getSize();if(!x||!y)return null;m=m.slice(),(this.offsetOrigin_==J1.TOP_RIGHT||this.offsetOrigin_==J1.BOTTOM_RIGHT)&&(m[0]=y[0]-x[0]-m[0]),(this.offsetOrigin_==J1.BOTTOM_LEFT||this.offsetOrigin_==J1.BOTTOM_RIGHT)&&(m[1]=y[1]-x[1]-m[1])}return this.origin_=m,this.origin_},f.prototype.getSrc=function(){return this.iconImage_.getSrc()},f.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},f.prototype.listenImageChange=function(m){this.iconImage_.addEventListener(wd.CHANGE,m)},f.prototype.load=function(){this.iconImage_.load()},f.prototype.unlistenImageChange=function(m){this.iconImage_.removeEventListener(wd.CHANGE,m)},f}(Gfe),vOe=Wor;var r3=.5;function TSt(o,f,m,x,y,v,C){var T=o[0]*r3,S=o[1]*r3,w=Wf(T,S);w.imageSmoothingEnabled=!1;for(var E=w.canvas,L=new vSt(w,r3,y,null,C),I=m.length,R=Math.floor((256*256*256-1)/I),P={},A=1;A<=I;++A){var M=m[A-1],V=M.getStyleFunction()||x;if(!!x){var G=V(M,v);if(!!G){Array.isArray(G)||(G=[G]);for(var D=A*R,N="#"+("000000"+D.toString(16)).slice(-6),k=0,U=G.length;k<U;++k){var B=G[k],Y=B.getGeometryFunction()(M);if(!(!Y||!Ed(y,Y.getExtent()))){var J=B.clone(),K=J.getFill();K&&K.setColor(N);var z=J.getStroke();z&&(z.setColor(N),z.setLineDash(null)),J.setText(void 0);var j=B.getImage();if(j&&j.getOpacity()!==0){var q=j.getImageSize();if(!q)continue;var O=Wf(q[0],q[1],void 0,{alpha:!1}),te=O.canvas;O.fillStyle=N,O.fillRect(0,0,te.width,te.height),J.setImage(new vOe({img:te,imgSize:q,anchor:j.getAnchor(),anchorXUnits:DR.PIXELS,anchorYUnits:DR.PIXELS,offset:j.getOrigin(),opacity:1,size:j.getSize(),scale:j.getScale(),rotation:j.getRotation(),rotateWithView:j.getRotateWithView()}))}var ie=J.getZIndex()||0,re=P[ie];re||(re={},P[ie]=re,re.Polygon=[],re.Circle=[],re.LineString=[],re.Point=[]),re[Y.getType().replace("Multi","")].push(Y,J)}}}}}for(var ee=Object.keys(P).map(Number).sort(DL),A=0,ae=ee.length;A<ae;++A){var re=P[ee[A]];for(var oe in re)for(var ce=re[oe],k=0,U=ce.length;k<U;k+=2){L.setStyle(ce[k+1]);for(var pe=0,ue=f.length;pe<ue;++pe)L.setTransform(f[pe]),L.drawGeometry(ce[k])}}return w.getImageData(0,0,E.width,E.height)}function SSt(o,f,m){var x=[];if(m){var y=Math.floor(Math.round(o[0])*r3),v=Math.floor(Math.round(o[1])*r3),C=(Mv(y,0,m.width-1)+Mv(v,0,m.height-1)*m.width)*4,T=m.data[C],S=m.data[C+1],w=m.data[C+2],E=w+256*(S+256*T),L=Math.floor((256*256*256-1)/f.length);E&&E%L===0&&x.push(f[E/L-1])}return x}we();var Zor=.5,wSt={Point:Yor,LineString:Bor,Polygon:Jor,MultiPoint:Kor,MultiLineString:Hor,MultiPolygon:zor,GeometryCollection:Uor,Circle:Xor};function ESt(o,f){var m=Oor(o,f);return m*m}function Oor(o,f){return Zor*o/f}function Xor(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(v||C){var T=o.getBuilder(m.getZIndex(),"Circle");T.setFillStrokeStyle(v,C),T.drawCircle(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}function bOe(o,f,m,x,y,v,C){var T=!1,S=m.getImage();if(S){var w=S.getImageState();w==bh.LOADED||w==bh.ERROR?S.unlistenImageChange(y):(w==bh.IDLE&&S.load(),S.listenImageChange(y),T=!0)}return kor(o,f,m,x,v,C),T}function kor(o,f,m,x,y,v){var C=m.getGeometryFunction()(f);if(!!C){var T=C.simplifyTransformed(x,y),S=m.getRenderer();if(S)LSt(o,T,m,f);else{var w=wSt[T.getType()];w(o,T,m,f,v)}}}function LSt(o,f,m,x){if(f.getType()=="GeometryCollection"){for(var y=f.getGeometries(),v=0,C=y.length;v<C;++v)LSt(o,y[v],m,x);return}var T=o.getBuilder(m.getZIndex(),"Default");T.drawCustom(f,x,m.getRenderer(),m.getHitDetectionRenderer())}function Uor(o,f,m,x,y){var v=f.getGeometriesArray(),C,T;for(C=0,T=v.length;C<T;++C){var S=wSt[v[C].getType()];S(o,v[C],m,x,y)}}function Bor(o,f,m,x,y){var v=m.getStroke();if(v){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,v),C.drawLineString(f,x)}var T=m.getText();if(T&&T.getText()){var S=(y||o).getBuilder(m.getZIndex(),"Text");S.setTextStyle(T),S.drawText(f,x)}}function Hor(o,f,m,x,y){var v=m.getStroke();if(v){var C=o.getBuilder(m.getZIndex(),"LineString");C.setFillStrokeStyle(null,v),C.drawMultiLineString(f,x)}var T=m.getText();if(T&&T.getText()){var S=(y||o).getBuilder(m.getZIndex(),"Text");S.setTextStyle(T),S.drawText(f,x)}}function zor(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(C||v){var T=o.getBuilder(m.getZIndex(),"Polygon");T.setFillStrokeStyle(v,C),T.drawMultiPolygon(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}function Yor(o,f,m,x,y){var v=m.getImage(),C=m.getText(),T;if(v){if(v.getImageState()!=bh.LOADED)return;var S=o;if(y){var w=v.getDeclutterMode();if(w!=="none")if(S=y,w==="obstacle"){var E=o.getBuilder(m.getZIndex(),"Image");E.setImageStyle(v,T),E.drawPoint(f,x)}else C&&C.getText()&&(T={})}var L=S.getBuilder(m.getZIndex(),"Image");L.setImageStyle(v,T),L.drawPoint(f,x)}if(C&&C.getText()){var I=o;y&&(I=y);var R=I.getBuilder(m.getZIndex(),"Text");R.setTextStyle(C,T),R.drawText(f,x)}}function Kor(o,f,m,x,y){var v=m.getImage(),C=m.getText(),T;if(v){if(v.getImageState()!=bh.LOADED)return;var S=o;if(y){var w=v.getDeclutterMode();if(w!=="none")if(S=y,w==="obstacle"){var E=o.getBuilder(m.getZIndex(),"Image");E.setImageStyle(v,T),E.drawMultiPoint(f,x)}else C&&C.getText()&&(T={})}var L=S.getBuilder(m.getZIndex(),"Image");L.setImageStyle(v,T),L.drawMultiPoint(f,x)}if(C&&C.getText()){var I=o;y&&(I=y);var R=I.getBuilder(m.getZIndex(),"Text");R.setTextStyle(C,T),R.drawText(f,x)}}function Jor(o,f,m,x,y){var v=m.getFill(),C=m.getStroke();if(v||C){var T=o.getBuilder(m.getZIndex(),"Polygon");T.setFillStrokeStyle(v,C),T.drawPolygon(f,x)}var S=m.getText();if(S&&S.getText()){var w=(y||o).getBuilder(m.getZIndex(),"Text");w.setTextStyle(S),w.drawText(f,x)}}var jor=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),Qor={image:["Polygon","Circle","LineString","Image","Text"],hybrid:["Polygon","LineString"],vector:[]},qor={hybrid:["Image","Text","Default"],vector:["Polygon","Circle","LineString","Image","Text","Default"]},$or=function(o){jor(f,o);function f(m){var x=o.call(this,m)||this;return x.boundHandleStyleImageChange_=x.handleStyleImageChange_.bind(x),x.renderedLayerRevision_,x.renderedPixelToCoordinateTransform_=null,x.renderedRotation_,x.tmpTransform_=Ny(),x}return f.prototype.prepareTile=function(m,x,y){var v,C=m.getState();return(C===Qo.LOADED||C===Qo.ERROR)&&(this.updateExecutorGroup_(m,x,y),this.tileImageNeedsRender_(m)&&(v=!0)),v},f.prototype.getTile=function(m,x,y,v){var C=v.pixelRatio,T=v.viewState,S=T.resolution,w=T.projection,E=this.getLayer(),L=E.getSource().getTile(m,x,y,C,w),I=v.viewHints,R=!(I[vX.ANIMATING]||I[vX.INTERACTING]);(R||!L.wantedResolution)&&(L.wantedResolution=S);var P=this.prepareTile(L,C,w);return P&&(R||Date.now()-v.time<8)&&E.getRenderMode()!==FR.VECTOR&&this.renderTileImage_(L,v),o.prototype.getTile.call(this,m,x,y,v)},f.prototype.isDrawableTile=function(m){var x=this.getLayer();return o.prototype.isDrawableTile.call(this,m)&&(x.getRenderMode()===FR.VECTOR?mu(x)in m.executorGroups:m.hasContext(x))},f.prototype.getTileImage=function(m){return m.getImage(this.getLayer())},f.prototype.prepareFrame=function(m){var x=this.getLayer().getRevision();return this.renderedLayerRevision_!==x&&(this.renderedLayerRevision_=x,this.renderedTiles.length=0),o.prototype.prepareFrame.call(this,m)},f.prototype.updateExecutorGroup_=function(m,x,y){var v=this.getLayer(),C=v.getRevision(),T=v.getRenderOrder()||null,S=m.wantedResolution,w=m.getReplayState(v);if(!(!w.dirty&&w.renderedResolution===S&&w.renderedRevision==C&&w.renderedRenderOrder==T)){var E=v.getSource(),L=v.getDeclutter(),I=E.getTileGrid(),R=E.getTileGridForProjection(y),P=R.getTileCoordExtent(m.wrappedTileCoord),A=E.getSourceTiles(x,y,m),M=mu(v);delete m.hitDetectionImageData[M],m.executorGroups[M]=[],L&&(m.declutterExecutorGroups[M]=[]),w.dirty=!1;for(var V=function(k,U){var B=A[k];if(B.getState()!=Qo.LOADED)return"continue";var Y=B.tileCoord,J=I.getTileCoordExtent(Y),K=RR(P,J),z=ZL(K,v.getRenderBuffer()*S,G.tmpExtent),j=OD(J,K)?null:z,q=new dOe(0,z,S,x),O=L?new dOe(0,K,S,x):void 0,te=ESt(S,x),ie=function(fe){var de,Ce=fe.getStyleFunction()||v.getStyleFunction();if(Ce&&(de=Ce(fe,S)),de){var Se=this.renderFeature(fe,te,de,q,O);w.dirty=w.dirty||Se}},re=B.getFeatures();T&&T!==w.renderedRenderOrder&&re.sort(T);for(var ee=0,ae=re.length;ee<ae;++ee){var oe=re[ee];(!j||Ed(j,oe.getGeometry().getExtent()))&&ie.call(G,oe)}var ce=q.finish(),pe=v.getRenderMode()!==FR.VECTOR&&L&&A.length===1?null:K,ue=new mOe(pe,S,x,E.getOverlaps(),ce,v.getRenderBuffer());if(m.executorGroups[M].push(ue),O){var he=new mOe(null,S,x,E.getOverlaps(),O.finish(),v.getRenderBuffer());m.declutterExecutorGroups[M].push(he)}},G=this,D=0,N=A.length;D<N;++D)V(D,N);w.renderedRevision=C,w.renderedRenderOrder=T,w.renderedResolution=S}},f.prototype.forEachFeatureAtCoordinate=function(m,x,y,v,C){var T=x.viewState.resolution,S=x.viewState.rotation;y=y??0;var w=this.getLayer(),E=w.getSource(),L=E.getTileGridForProjection(x.viewState.projection),I=_ee([m]);ZL(I,T*y,I);for(var R={},P=function(N,k,U){var B=N.getId();B===void 0&&(B=mu(N));var Y=R[B];if(Y){if(Y!==!0&&U<Y.distanceSq){if(U===0)return R[B]=!0,C.splice(C.lastIndexOf(Y),1),v(N,w,k);Y.geometry=k,Y.distanceSq=U}}else{if(U===0)return R[B]=!0,v(N,w,k);C.push(R[B]={feature:N,layer:w,geometry:k,distanceSq:U,callback:v})}},A=this.renderedTiles,M,V=function(N,k){var U=A[N],B=L.getTileCoordExtent(U.wrappedTileCoord);if(!Ed(B,I))return"continue";var Y=mu(w),J=[U.executorGroups[Y]],K=U.declutterExecutorGroups[Y];K&&J.push(K),J.some(function(z){for(var j=z===K?x.declutterTree.all().map(function(ie){return ie.value}):null,q=0,O=z.length;q<O;++q){var te=z[q];if(M=te.forEachFeatureAtCoordinate(m,T,S,y,P,j),M)return!0}})},G=0,D=A.length;!M&&G<D;++G)V(G,D);return M},f.prototype.getFeatures=function(m){return new Promise(function(x,y){for(var v=this.getLayer(),C=mu(v),T=v.getSource(),S=this.renderedProjection,w=S.getExtent(),E=this.renderedResolution,L=T.getTileGridForProjection(S),I=Zf(this.renderedPixelToCoordinateTransform_,m.slice()),R=L.getTileCoordForCoordAndResolution(I,E),P,A=0,M=this.renderedTiles.length;A<M;++A)if(R.toString()===this.renderedTiles[A].tileCoord.toString()){if(P=this.renderedTiles[A],P.getState()===Qo.LOADED){var V=L.getTileCoordExtent(P.tileCoord);T.getWrapX()&&S.canWrapX()&&!qY(w,V)&&I1t(I,S);break}P=void 0}if(!P||P.loadingSourceTiles>0){x([]);return}var G=L.getTileCoordExtent(P.wrappedTileCoord),D=jb(G),N=[(I[0]-D[0])/E,(D[1]-I[1])/E],k=P.getSourceTiles().reduce(function(K,z){return K.concat(z.getFeatures())},[]),U=P.hitDetectionImageData[C];if(!U&&!this.animatingOrInteracting_){var B=sf(L.getTileSize(L.getZForResolution(E,T.zDirection))),Y=this.renderedRotation_,J=[this.getRenderTransform(L.getTileCoordCenter(P.wrappedTileCoord),E,0,r3,B[0]*r3,B[1]*r3,0)];U=TSt(B,J,k,v.getStyleFunction(),L.getTileCoordExtent(P.wrappedTileCoord),P.getReplayState(v).renderedResolution,Y),P.hitDetectionImageData[C]=U}x(SSt(N,k,U))}.bind(this))},f.prototype.handleFontsChanged=function(){var m=this.getLayer();m.getVisible()&&this.renderedLayerRevision_!==void 0&&m.changed()},f.prototype.handleStyleImageChange_=function(m){this.renderIfReadyAndVisible()},f.prototype.renderDeclutter=function(m){var x=this.context,y=x.globalAlpha;x.globalAlpha=this.getLayer().getOpacity();for(var v=m.viewHints,C=!(v[vX.ANIMATING]||v[vX.INTERACTING]),T=this.renderedTiles,S=0,w=T.length;S<w;++S){var E=T[S],L=E.declutterExecutorGroups[mu(this.getLayer())];if(L)for(var I=L.length-1;I>=0;--I)L[I].execute(this.context,1,this.getTileRenderTransform(E,m),m.viewState.rotation,C,void 0,m.declutterTree)}x.globalAlpha=y},f.prototype.getTileRenderTransform=function(m,x){var y=x.pixelRatio,v=x.viewState,C=v.center,T=v.resolution,S=v.rotation,w=x.size,E=Math.round(w[0]*y),L=Math.round(w[1]*y),I=this.getLayer().getSource(),R=I.getTileGridForProjection(x.viewState.projection),P=m.tileCoord,A=R.getTileCoordExtent(m.wrappedTileCoord),M=R.getTileCoordExtent(P,this.tmpExtent)[0]-A[0],V=Sfe(Lee(this.inversePixelTransform.slice(),1/y,1/y),this.getRenderTransform(C,T,S,y,E,L,M));return V},f.prototype.renderFrame=function(m,x){var y=m.viewHints,v=!(y[vX.ANIMATING]||y[vX.INTERACTING]);o.prototype.renderFrame.call(this,m,x),this.renderedPixelToCoordinateTransform_=m.pixelToCoordinateTransform.slice(),this.renderedRotation_=m.viewState.rotation;var C=this.getLayer(),T=C.getRenderMode(),S=this.context,w=S.globalAlpha;S.globalAlpha=C.getOpacity();for(var E=qor[T],L=m.viewState,I=L.rotation,R=C.getSource(),P=R.getTileGridForProjection(L.projection),A=P.getZForResolution(L.resolution,R.zDirection),M=this.renderedTiles,V=[],G=[],D=!0,N=M.length-1;N>=0;--N){var k=M[N];D=D&&!k.getReplayState(C).dirty;var U=k.executorGroups[mu(C)].filter(function(re){return re.hasExecutors(E)});if(U.length!==0){var B=this.getTileRenderTransform(k,m),Y=k.tileCoord[0],J=!1,K=U[0].getClipCoords(B);if(K){for(var z=0,j=V.length;z<j;++z)if(A!==Y&&Y<G[z]){var q=V[z];Ed([K[0],K[3],K[4],K[7]],[q[0],q[3],q[4],q[7]])&&(J||(S.save(),J=!0),S.beginPath(),S.moveTo(K[0],K[1]),S.lineTo(K[2],K[3]),S.lineTo(K[4],K[5]),S.lineTo(K[6],K[7]),S.moveTo(q[6],q[7]),S.lineTo(q[4],q[5]),S.lineTo(q[2],q[3]),S.lineTo(q[0],q[1]),S.clip())}V.push(K),G.push(Y)}for(var O=0,te=U.length;O<te;++O){var ie=U[O];ie.execute(S,1,B,I,v,E)}J&&S.restore()}}return S.globalAlpha=w,this.ready=D,this.container},f.prototype.renderFeature=function(m,x,y,v,C){if(!y)return!1;var T=!1;if(Array.isArray(y))for(var S=0,w=y.length;S<w;++S)T=bOe(v,m,y[S],x,this.boundHandleStyleImageChange_,void 0,C)||T;else T=bOe(v,m,y,x,this.boundHandleStyleImageChange_,void 0,C);return T},f.prototype.tileImageNeedsRender_=function(m){var x=this.getLayer();if(x.getRenderMode()===FR.VECTOR)return!1;var y=m.getReplayState(x),v=x.getRevision(),C=m.wantedResolution;return y.renderedTileResolution!==C||y.renderedTileRevision!==v},f.prototype.renderTileImage_=function(m,x){var y=this.getLayer(),v=m.getReplayState(y),C=y.getRevision(),T=m.executorGroups[mu(y)];v.renderedTileRevision=C;var S=m.wrappedTileCoord,w=S[0],E=y.getSource(),L=x.pixelRatio,I=x.viewState,R=I.projection,P=E.getTileGridForProjection(R),A=P.getResolution(m.tileCoord[0]),M=x.pixelRatio/m.wantedResolution*A,V=P.getResolution(w),G=m.getContext(y);L=Math.round(Math.max(L,M/L));var D=E.getTilePixelSize(w,L,R);G.canvas.width=D[0],G.canvas.height=D[1];var N=L/M;if(N!==1){var k=k9e(this.tmpTransform_);Lee(k,N,N),G.setTransform.apply(G,k)}var U=P.getTileCoordExtent(S,this.tmpExtent),B=M/V,Y=k9e(this.tmpTransform_);Lee(Y,B,-B),tTt(Y,-U[0],-U[3]);for(var J=0,K=T.length;J<K;++J){var z=T[J];z.execute(G,N,Y,0,!0,Qor[y.getRenderMode()])}v.renderedTileResolution=m.wantedResolution},f}(_St),PSt=$or;we();var zee={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};var ear=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),tar=function(o){ear(f,o);function f(m){var x=this,y=m||{},v=ox({},y);delete v.preload,delete v.useInterimTilesOnError,x=o.call(this,v)||this,x.on,x.once,x.un,y.renderMode===FR.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),y.renderMode=void 0);var C=y.renderMode||FR.HYBRID;return Su(C==FR.HYBRID||C==FR.VECTOR,28),x.renderMode_=C,x.setPreload(y.preload?y.preload:0),x.setUseInterimTilesOnError(y.useInterimTilesOnError!==void 0?y.useInterimTilesOnError:!0),x.getBackground,x.setBackground,x}return f.prototype.createRenderer=function(){return new PSt(this)},f.prototype.getFeatures=function(m){return o.prototype.getFeatures.call(this,m)},f.prototype.getRenderMode=function(){return this.renderMode_},f.prototype.getPreload=function(){return this.get(zee.PRELOAD)},f.prototype.getUseInterimTilesOnError=function(){return this.get(zee.USE_INTERIM_TILES_ON_ERROR)},f.prototype.setPreload=function(m){this.set(zee.PRELOAD,m)},f.prototype.setUseInterimTilesOnError=function(m){this.set(zee.USE_INTERIM_TILES_ON_ERROR,m)},f}(jTt),ISt=tar;we();we();we();var $D={ADD:"add",REMOVE:"remove"};var ASt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),RSt={LENGTH:"length"},Ofe=function(o){ASt(f,o);function f(m,x,y){var v=o.call(this,m)||this;return v.element=x,v.index=y,v}return f}(hw);var iar=function(o){ASt(f,o);function f(m,x){var y=o.call(this)||this;y.on,y.once,y.un;var v=x||{};if(y.unique_=!!v.unique,y.array_=m||[],y.unique_)for(var C=0,T=y.array_.length;C<T;++C)y.assertUnique_(y.array_[C],C);return y.updateLength_(),y}return f.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},f.prototype.extend=function(m){for(var x=0,y=m.length;x<y;++x)this.push(m[x]);return this},f.prototype.forEach=function(m){for(var x=this.array_,y=0,v=x.length;y<v;++y)m(x[y],y,x)},f.prototype.getArray=function(){return this.array_},f.prototype.item=function(m){return this.array_[m]},f.prototype.getLength=function(){return this.get(RSt.LENGTH)},f.prototype.insertAt=function(m,x){this.unique_&&this.assertUnique_(x),this.array_.splice(m,0,x),this.updateLength_(),this.dispatchEvent(new Ofe($D.ADD,x,m))},f.prototype.pop=function(){return this.removeAt(this.getLength()-1)},f.prototype.push=function(m){this.unique_&&this.assertUnique_(m);var x=this.getLength();return this.insertAt(x,m),this.getLength()},f.prototype.remove=function(m){for(var x=this.array_,y=0,v=x.length;y<v;++y)if(x[y]===m)return this.removeAt(y)},f.prototype.removeAt=function(m){var x=this.array_[m];return this.array_.splice(m,1),this.updateLength_(),this.dispatchEvent(new Ofe($D.REMOVE,x,m)),x},f.prototype.setAt=function(m,x){var y=this.getLength();if(m<y){this.unique_&&this.assertUnique_(x,m);var v=this.array_[m];this.array_[m]=x,this.dispatchEvent(new Ofe($D.REMOVE,v,m)),this.dispatchEvent(new Ofe($D.ADD,x,m))}else{for(var C=y;C<m;++C)this.insertAt(C,void 0);this.insertAt(m,x)}},f.prototype.updateLength_=function(){this.set(RSt.LENGTH,this.array_.length)},f.prototype.assertUnique_=function(m,x){for(var y=0,v=this.array_.length;y<v;++y)if(this.array_[y]===m&&y!==x)throw new tfe(58)},f}(fw),MSt=iar;we();var VSt=x5(uOe(),1);var rar=function(){function o(f){this.rbush_=new VSt.default(f),this.items_={}}return o.prototype.insert=function(f,m){var x={minX:f[0],minY:f[1],maxX:f[2],maxY:f[3],value:m};this.rbush_.insert(x),this.items_[mu(m)]=x},o.prototype.load=function(f,m){for(var x=new Array(m.length),y=0,v=m.length;y<v;y++){var C=f[y],T=m[y],S={minX:C[0],minY:C[1],maxX:C[2],maxY:C[3],value:T};x[y]=S,this.items_[mu(T)]=S}this.rbush_.load(x)},o.prototype.remove=function(f){var m=mu(f),x=this.items_[m];return delete this.items_[m],this.rbush_.remove(x)!==null},o.prototype.update=function(f,m){var x=this.items_[mu(m)],y=[x.minX,x.minY,x.maxX,x.maxY];OD(y,f)||(this.remove(m),this.insert(f,m))},o.prototype.getAll=function(){var f=this.rbush_.all();return f.map(function(m){return m.value})},o.prototype.getInExtent=function(f){var m={minX:f[0],minY:f[1],maxX:f[2],maxY:f[3]},x=this.rbush_.search(m);return x.map(function(y){return y.value})},o.prototype.forEach=function(f){return this.forEach_(this.getAll(),f)},o.prototype.forEachInExtent=function(f,m){return this.forEach_(this.getInExtent(f),m)},o.prototype.forEach_=function(f,m){for(var x,y=0,v=f.length;y<v;y++)if(x=m(f[y]),x)return x;return x},o.prototype.isEmpty=function(){return NL(this.items_)},o.prototype.clear=function(){this.rbush_.clear(),this.items_={}},o.prototype.getExtent=function(f){var m=this.rbush_.toJSON();return K1(m.minX,m.minY,m.maxX,m.maxY,f)},o.prototype.concat=function(f){this.rbush_.load(f.rbush_.all());for(var m in f.items_)this.items_[m]=f.items_[m]},o}(),COe=rar;we();var gw={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};we();function GSt(o,f){return[[-1/0,-1/0,1/0,1/0]]}var FSt=function(){var o=function(f,m){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(x[v]=y[v])},o(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");o(f,m);function x(){this.constructor=f}f.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}}(),eN=function(o){FSt(f,o);function f(m,x,y){var v=o.call(this,m)||this;return v.feature=x,v.features=y,v}return f}(hw);var nar=function(o){FSt(f,o);function f(m){var x=this,y=m||{};x=o.call(this,{attributions:y.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:y.wrapX!==void 0?y.wrapX:!0})||this,x.on,x.once,x.un,x.loader_=lX,x.format_=y.format,x.overlaps_=y.overlaps===void 0?!0:y.overlaps,x.url_=y.url,y.loader!==void 0?x.loader_=y.loader:x.url_!==void 0&&(Su(x.format_,7),x.loader_=X9e(x.url_,x.format_)),x.strategy_=y.strategy!==void 0?y.strategy:GSt;var v=y.useSpatialIndex!==void 0?y.useSpatialIndex:!0;x.featuresRtree_=v?new COe:null,x.loadedExtentsRtree_=new COe,x.loadingExtentsCount_=0,x.nullGeometryFeatures_={},x.idIndex_={},x.uidIndex_={},x.featureChangeKeys_={},x.featuresCollection_=null;var C,T;return Array.isArray(y.features)?T=y.features:y.features&&(C=y.features,T=C.getArray()),!v&&C===void 0&&(C=new MSt(T)),T!==void 0&&x.addFeaturesInternal(T),C!==void 0&&x.bindFeaturesCollection_(C),x}return f.prototype.addFeature=function(m){this.addFeatureInternal(m),this.changed()},f.prototype.addFeatureInternal=function(m){var x=mu(m);if(!this.addToIndex_(x,m)){this.featuresCollection_&&this.featuresCollection_.remove(m);return}this.setupChangeEvents_(x,m);var y=m.getGeometry();if(y){var v=y.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(v,m)}else this.nullGeometryFeatures_[x]=m;this.dispatchEvent(new eN(gw.ADDFEATURE,m))},f.prototype.setupChangeEvents_=function(m,x){this.featureChangeKeys_[m]=[Vv(x,wd.CHANGE,this.handleFeatureChange_,this),Vv(x,ffe.PROPERTYCHANGE,this.handleFeatureChange_,this)]},f.prototype.addToIndex_=function(m,x){var y=!0,v=x.getId();return v!==void 0&&(v.toString()in this.idIndex_?y=!1:this.idIndex_[v.toString()]=x),y&&(Su(!(m in this.uidIndex_),30),this.uidIndex_[m]=x),y},f.prototype.addFeatures=function(m){this.addFeaturesInternal(m),this.changed()},f.prototype.addFeaturesInternal=function(m){for(var x=[],y=[],v=[],C=0,T=m.length;C<T;C++){var S=m[C],w=mu(S);this.addToIndex_(w,S)&&y.push(S)}for(var C=0,E=y.length;C<E;C++){var S=y[C],w=mu(S);this.setupChangeEvents_(w,S);var L=S.getGeometry();if(L){var I=L.getExtent();x.push(I),v.push(S)}else this.nullGeometryFeatures_[w]=S}if(this.featuresRtree_&&this.featuresRtree_.load(x,v),this.hasListener(gw.ADDFEATURE))for(var C=0,R=y.length;C<R;C++)this.dispatchEvent(new eN(gw.ADDFEATURE,y[C]))},f.prototype.bindFeaturesCollection_=function(m){var x=!1;this.addEventListener(gw.ADDFEATURE,function(y){x||(x=!0,m.push(y.feature),x=!1)}),this.addEventListener(gw.REMOVEFEATURE,function(y){x||(x=!0,m.remove(y.feature),x=!1)}),m.addEventListener($D.ADD,function(y){x||(x=!0,this.addFeature(y.element),x=!1)}.bind(this)),m.addEventListener($D.REMOVE,function(y){x||(x=!0,this.removeFeature(y.element),x=!1)}.bind(this)),this.featuresCollection_=m},f.prototype.clear=function(m){if(m){for(var x in this.featureChangeKeys_){var y=this.featureChangeKeys_[x];y.forEach(Dy)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var v=function(S){this.removeFeatureInternal(S)}.bind(this);this.featuresRtree_.forEach(v);for(var C in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[C])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var T=new eN(gw.CLEAR);this.dispatchEvent(T),this.changed()},f.prototype.forEachFeature=function(m){if(this.featuresRtree_)return this.featuresRtree_.forEach(m);this.featuresCollection_&&this.featuresCollection_.forEach(m)},f.prototype.forEachFeatureAtCoordinateDirect=function(m,x){var y=[m[0],m[1],m[0],m[1]];return this.forEachFeatureInExtent(y,function(v){var C=v.getGeometry();if(C.intersectsCoordinate(m))return x(v)})},f.prototype.forEachFeatureInExtent=function(m,x){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(m,x);this.featuresCollection_&&this.featuresCollection_.forEach(x)},f.prototype.forEachFeatureIntersectingExtent=function(m,x){return this.forEachFeatureInExtent(m,function(y){var v=y.getGeometry();if(v.intersectsExtent(m)){var C=x(y);if(C)return C}})},f.prototype.getFeaturesCollection=function(){return this.featuresCollection_},f.prototype.getFeatures=function(){var m;return this.featuresCollection_?m=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(m=this.featuresRtree_.getAll(),NL(this.nullGeometryFeatures_)||Gy(m,JCt(this.nullGeometryFeatures_))),m},f.prototype.getFeaturesAtCoordinate=function(m){var x=[];return this.forEachFeatureAtCoordinateDirect(m,function(y){x.push(y)}),x},f.prototype.getFeaturesInExtent=function(m,x){var y=this;if(this.featuresRtree_){var v=x&&x.canWrapX()&&this.getWrapX();if(!v)return this.featuresRtree_.getInExtent(m);var C=m1t(m,x);return[].concat.apply([],C.map(function(T){return y.featuresRtree_.getInExtent(T)}))}else return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},f.prototype.getClosestFeatureToCoordinate=function(m,x){var y=m[0],v=m[1],C=null,T=[NaN,NaN],S=1/0,w=[-1/0,-1/0,1/0,1/0],E=x||YCt;return this.featuresRtree_.forEachInExtent(w,function(L){if(E(L)){var I=L.getGeometry(),R=S;if(S=I.closestPointXY(y,v,T,S),S<R){C=L;var P=Math.sqrt(S);w[0]=y-P,w[1]=v-P,w[2]=y+P,w[3]=v+P}}}),C},f.prototype.getExtent=function(m){return this.featuresRtree_.getExtent(m)},f.prototype.getFeatureById=function(m){var x=this.idIndex_[m.toString()];return x!==void 0?x:null},f.prototype.getFeatureByUid=function(m){var x=this.uidIndex_[m];return x!==void 0?x:null},f.prototype.getFormat=function(){return this.format_},f.prototype.getOverlaps=function(){return this.overlaps_},f.prototype.getUrl=function(){return this.url_},f.prototype.handleFeatureChange_=function(m){var x=m.target,y=mu(x),v=x.getGeometry();if(!v)y in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(x),this.nullGeometryFeatures_[y]=x);else{var C=v.getExtent();y in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[y],this.featuresRtree_&&this.featuresRtree_.insert(C,x)):this.featuresRtree_&&this.featuresRtree_.update(C,x)}var T=x.getId();if(T!==void 0){var S=T.toString();this.idIndex_[S]!==x&&(this.removeFromIdIndex_(x),this.idIndex_[S]=x)}else this.removeFromIdIndex_(x),this.uidIndex_[y]=x;this.changed(),this.dispatchEvent(new eN(gw.CHANGEFEATURE,x))},f.prototype.hasFeature=function(m){var x=m.getId();return x!==void 0?x in this.idIndex_:mu(m)in this.uidIndex_},f.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&NL(this.nullGeometryFeatures_):this.featuresCollection_?this.featuresCollection_.getLength()===0:!0},f.prototype.loadFeatures=function(m,x,y){for(var v=this.loadedExtentsRtree_,C=this.strategy_(m,x,y),T=function(L,I){var R=C[L],P=v.forEachInExtent(R,function(A){return qY(A.extent,R)});P||(++S.loadingExtentsCount_,S.dispatchEvent(new eN(gw.FEATURESLOADSTART)),S.loader_.call(S,R,x,y,function(A){--this.loadingExtentsCount_,this.dispatchEvent(new eN(gw.FEATURESLOADEND,void 0,A))}.bind(S),function(){--this.loadingExtentsCount_,this.dispatchEvent(new eN(gw.FEATURESLOADERROR))}.bind(S)),v.insert(R,{extent:R.slice()}))},S=this,w=0,E=C.length;w<E;++w)T(w,E);this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0},f.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),o.prototype.refresh.call(this)},f.prototype.removeLoadedExtent=function(m){var x=this.loadedExtentsRtree_,y;x.forEachInExtent(m,function(v){if(OD(v.extent,m))return y=v,!0}),y&&x.remove(y)},f.prototype.removeFeature=function(m){if(!!m){var x=mu(m);x in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[x]:this.featuresRtree_&&this.featuresRtree_.remove(m);var y=this.removeFeatureInternal(m);y&&this.changed()}},f.prototype.removeFeatureInternal=function(m){var x=mu(m),y=this.featureChangeKeys_[x];if(!!y){y.forEach(Dy),delete this.featureChangeKeys_[x];var v=m.getId();return v!==void 0&&delete this.idIndex_[v.toString()],delete this.uidIndex_[x],this.dispatchEvent(new eN(gw.REMOVEFEATURE,m)),m}},f.prototype.removeFromIdIndex_=function(m){var x=!1;for(var y in this.idIndex_)if(this.idIndex_[y]===m){delete this.idIndex_[y],x=!0;break}return x},f.prototype.setLoader=function(m){this.loader_=m},f.prototype.setUrl=function(m){Su(this.format_,7),this.url_=m,this.setLoader(X9e(m,this.format_))},f}(bfe),DSt=nar;var oar={toDegrees:P9e,toFeature:ITt,transform:_fe,VectorSource:DSt},Xfe=class extends gm{constructor(f,m){super(f),this._primitive=null,this._parameter=null,this._wModels=[],this._instance=[],this.instanceId=new Map,this._parameter=m}async addToMap(){let f=this._parameter,m=f.sourceType??"wmts",x=null;if(m==="wmts")x=new wV(f);else if(m==="mapbox")x=new bO(f);else if(m==="arcgis")x=await d1.fromUrl(f.url,f);else if(m==="wms")x=new CO(f);else if(m==="multi")x=new Wz(f);else if(m==="single")x=await V1.fromUrl(f.url,f);else if(m==="tms"){let v=f.west??void 0,C=f.south??void 0,T=f.east??void 0,S=f.north??void 0;F(v)&&F(C)&&F(T)&&F(S)&&(f.rectangle=new vi(be.toRadians(v),be.toRadians(C),be.toRadians(T),be.toRadians(S))),F(f.fileExtension)&&f.fileExtension==="json"&&(f.callback=this.processGeoJson()),x=await _L.fromUrl(f.url,f)}else if(m==="baidu")x=new Nz(f);else if(m==="gaode"||m==="geovis"||m==="qqmap")x=new Hb(f);else if(m==="mapworld")x=new wV(f);else if(m==="osm")x=new ME(f);else if(m==="bingmap")x=await vO.fromUrl(f.url,f);else if(m==="mvt"){if(F(f.coreMap)||(f.coreMap=this._earthCtrl.coreMap),f.mvtConfig){let v=this.getVectorTileLayer(f.mvtConfig),C=f.projection?f.projection:"EPSG:3857";f.vectorTileLayer=v,f.projection=V1t(C)}x=new Zz(f,oar)}x!==null&&(this._primitive=this._earthCtrl.imageryLayers.addImageryProvider(x,f.zIndex),this._primitive._layerIndex=f.zIndex),m==="ion"&&(this._primitive=Up.fromProviderAsync(WG.fromAssetId(f.assetId),f),this._earthCtrl.imageryLayers.add(this._primitive),this._primitive._layerIndex=f.zIndex);let y=f.groupName||this._earthCtrl.language.GROUP_NWE_IMAGERY_LAYER;f.addTree&&(f.addTree=void 0,f.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(y,{id:f.id||this._earthCtrl.factory.createUUID(),name:f.name||m,sourceType:"ImageryProvider",item:this._primitive,feature:f,checked:this._primitive.show}))}getVectorTileLayer(f){let m=f.url?f.url:"",x=f.tileSize?f.tileSize:256,y=f.fillColor?f.fillColor:"rgba(68,197,19,0.5)",v=f.strokeColor?f.strokeColor:"rgba(0,31,255,1)",C=f.strokeWidth?f.strokeWidth:1,T=f.textColor?f.textColor:"#000",S=f.textStrokeColor?f.textStrokeColor:"#ff7d00",w=f.selectColor?f.selectColor:"#ff0000",E=f.selectGe_Id?f.selectGe_Id:[],L=f.geId?f.geId:"",I=new J1t({format:new ATt,tileSize:x,url:m}),R=function(A,M){let V=new BTt({fill:new _X({color:y}),stroke:new Zee({color:v,width:C}),text:new HTt({font:"80px Arial",textBaseline:"middle",text:A.get("name")||A.get("id")||"",fill:new _X({color:T}),stroke:new Zee({color:S,width:3})})});return E.includes(A.get(L))&&V.getFill().setColor(w),V};return new ISt({source:I,style:R})}checkWModels(f){return F(this._wModels[f])}removeInstance(f,m){let y=this._wModels[f];if(F(y)){let v=y.geometryInstances;if(F(v))for(let C=0;C<v.length;C++)v[C].id}}removeWModels(f){if(F(this._parameter.retain)&&this._parameter.retain)return;let m=this,x=m._wModels[f];if(F(x)){for(let y=0;y<m._instance[f].length;y++)m.instanceId.has(m._instance[f][y])&&m.instanceId.delete(m._instance[f][y]);m._instance[f]=[],m._wModels[f]=void 0}}convertCoordinates(f){let m=[];for(let x=0;x<f.length;x++){let y=f[x];for(let v=0;v<y.length;v++)Array.prototype.push.apply(m,y[v])}return m}processGeoJson(){let f=this,m=f._parameter.modelHeightKey??"\u5C42\u9AD8",x=f._parameter.modelColor??Xe.BLUE;function y(C){f.removeWModels(C)}function v(C,T){if(!F(T)||f.checkWModels(T))return;let S=[],w=yo.fromColor(x);f._instance[T]||(f._instance[T]=[]);let E;for(let L=0;L<C.features.length;L++){let I=C.features[L];if(I.geometry.type==="Polygon"){let R=I.id;if(!f.instanceId.has(R)){let P=f.convertCoordinates(I.geometry.coordinates),A=Z.fromDegreesArray(P);E=I.properties[m],F(E)||(E=0),S.push(new Wn({geometry:new Uu({polygonHierarchy:new Zn(A),extrudedHeight:E}),id:R,releaseGeometryInstances:!1,attributes:{color:w}})),f.instanceId.set(R,T),f._instance[T].push(R)}}else if(I.geometry.type==="MultiPolygon"){let R=I.geometry.coordinates;for(let P=0;P<R.length;P++){let A=I.id+L;if(!f.instanceId.has(A)){let M=R[P],V=f.convertCoordinates(M),G=Z.fromDegreesArray(V);E=I.properties[m],F(E)||(E=0),S.push(new Wn({geometry:new Uu({polygonHierarchy:new Zn(G),extrudedHeight:E}),id:A,releaseGeometryInstances:!1,attributes:{color:w}})),f.instanceId.set(A,T),f._instance[T].push(A)}}}else console.info(I.geometry.type)}if(S.length>0){let L=f._earthCtrl.primitives.add(new ta({geometryInstances:S,allowPicking:!1,appearance:new ga({flat:!1,faceForward:!1,translucent:!1})}));f._wModels[T]=L}}return{callback:v,removePrimitive:y}}removeFromMap(){this._primitive!==null&&this._earthCtrl.imageryLayers.remove(this._primitive)}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([f._primitive.imageryProvider.readyPromise]).then(function(y){let v=As.export(f);console.log("imageobj",v),m(v)})})}async flyTo(f={}){let m=f;function x(y,v){let T=Math.PI*6378137,S=y/T*180,w=180/Math.PI*(2*Math.atan(Math.exp(v/T*Math.PI))-Math.PI/2);return{lon:S,lat:w}}if(this._parameter.sourceType==="wms"){let y=await this._primitive.imageryProvider.capabilitiesRes;if(!y.length)return;if(y[0]<180&&y[0]>-180)m.destination=f.destination??vi.fromDegrees(y[0],y[1],y[2],y[3]);else{let v=x(y[0],y[1]),C=x(y[2],y[3]);m.destination=f.destination??vi.fromDegrees(v.lon,v.lat,C.lon,C.lat)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(Xfe.prototype,{parameter:{get:function(){return this._parameter}},show:{get:function(){return this._primitive!==null?this._primitive.show:!1},set:function(o){this._primitive!==null&&(this._primitive.show=o),console.info(o);let f=this;for(let m=0;m<f._wModels.length;m++){let x=f._wModels[m],y=f.mEarthCtrl.entities.getById(x);y.show=o}}},sourceType:{get:function(){return this._parameter!==null?this._parameter.sourceType:!1}},dataUrl:{get:function(){return this._parameter!==null?this._parameter.url:!1}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}},imagery:{get:function(){return this._primitive}}});var TOe=Xfe;we();we();var aar=function(o,f,m,x){let y=m,v=x;var C=f.west,T=f.east,S=f.south,w=f.north,E=T-C,L=w-S,I=o.longitude*180/Math.PI,R=o.latitude*180/Math.PI;return o.normalizedLongitude=(I-C)/E*m,o.normalizedLatitude=(R-S)/L*x,o},sar=function(o,f,m,x){var y=[],v=o[0].longitude!==void 0;return o.forEach(function(C){var T=[],S=v?C:tN.scene.globe.ellipsoid.cartesianToCartographic(C);S=aar(S,f,m,x),T.push(S.normalizedLongitude),T.push(S.normalizedLatitude),y.push(T)}),y},lar=function(o,f,m){var x=32,y=f.west*be.DEGREES_PER_RADIAN,v=f.east*be.DEGREES_PER_RADIAN,C=f.south*be.DEGREES_PER_RADIAN,T=f.north*be.DEGREES_PER_RADIAN,S=new vi(y,C,v,T),w=sar(o,S,x,x),E=uar(w,"#FF0000",x,x);return E},uar=function(o,f,m,x,y){if(y===void 0){var y=document.createElement("canvas");y.width=m,y.height=x}var v=y.getContext("2d");if(!(o.length<=0)){v.moveTo(o[0][0],o[0][1]);for(var C=0;C<o.length;C++)v.lineTo(o[C][0],o[C][1]);return f!=null&&f!=null&&(v.fillStyle=f,v.fill()),y}};function NR(o,f){return Math.floor(Math.random()*(f-o+1))+o}function car(){return globalThis.GEOWORLD_BASE_URL+"Workers/ParseElevationWorker.js"}function har(o,f){var m=fp();return NR=lar(o.vertices,f,o.heights[0]),NR.timeStamp=o.timeStamp,NR.mtHeight=o.heights,NR.mtType=o.mtType,NR.fromKML=o.fromKML,NR.rect=o.rectangle,NR.level=o.level,m.resolve(NR),m.promise}function dar(o,f){return Math.floor(Math.random()*(f-o+1))+o}function par(o,f){var m=fp(),x=[];return o.forEach(function(y){x.push(har(y,f))}),Promise.all(x).then(function(y){var v=y[0].lenght,C=function(w,E){return E.timeStamp-w.timeStamp};if(y.length===1)m.resolve(y[0]);else{var T=y.sort(C),S=T.shift();T.forEach(function(w){S.forEach(function(E,L){E===NR&&w[L]!==NR&&(S[L]=w[L])})}),m.resolve(S)}}),m.promise}var tN,NSt=!1;function zd(o,f){if(tN=o,!F(f))throw new wt("options is required.");this._errorEvent=new Tr,this._modelFloorMasks={},this._credit=f.credit,typeof this._credit=="string"&&(this._credit=new Oa(this._credit)),f.heightMapWidth=f.heightMapWidth??32,f.heightMapHeight=f.heightMapHeight??32,this._options=f,this.readyPromise=Promise.resolve(!0),this._subdomains=f.subdomains,f.firstRequestUrl=f.url.replace("{s}",this.sTag(0,0,0)),this._firstRequest=f.firstRequestUrl+"?request=GetMap&Version=1.3.0&Service=WMS&CRS=EPSG:4326&bbox=-90,-180,90,180&height=32&width=32&optimizedOnly=0&v=1&layers="+f.layerName+"&Styles=&Format=image/mpt";var m=this,x=f.pngOnly;f.maxTerrainLevel!==void 0&&isNaN(f.maxTerrainLevel)&&(f.maxTerrainLevel=void 0),this._maxTerrainLevel=f.maxTerrainLevel??30,x?m.setFormatMPT(!1):function(){var v=new XMLHttpRequest;v.open("GET",f.cacheUrl?f.cacheUrl+"/0/0/0.mpt":m._firstRequest,!1),v.onload=function(){var C=new DOMParser,T=C.parseFromString(v.responseText,"text/xml"),S=F(T.childNodes)&&T.childNodes.length>0;m.setFormatMPT(!S)},v.onerror=function(){m.setFormatMPT(!1)},v.send()}(),f.cacheUrl&&(this.isCache=!0,this.cacheLevel=f.cacheLevel||16,this._cacheUrl=f.cacheUrl+"/{z}/{x}/{y}.mpt");let y=this._maxTerrainLevel;this._availability={computeMaximumLevelAtPosition:function(v){return Math.min(y,16)}},this._urlTemplate=f.url+"?request=GetMap&Version=1.3.0&Service=WMS&v=1&CRS=EPSG:4326&bbox={south},{west},{north},{east}&height={height}&width={width}&optimizedOnly={optimizedOnly}&layers="+f.layerName+"&Styles=&Format=image/"+this._format,this._allElevationLayers=null,this._tilingScheme=new _h,this._levelZeroMaximumGeometricError=H_.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,f.heightMapWidth*4,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._workerPool=new ew({workerPath:car()},Vi),this._pendingRequests=0,this._requestGridSize=8,this._requestsCache={},this._requestsCacheKeys=[],this.errorEvent.addEventListener(function(v){},this)}zd._geometricErrorFactor=2;Object.defineProperties(zd.prototype,{errorEvent:{get:function(){return this._errorEvent}},availability:{get:function(){return this._availability}},credit:{get:function(){return this._credit}},hasVertexNormals:{get:function(){return!1}},tilingScheme:{get:function(){return this._tilingScheme}},ready:{get:function(){return!0}},hasWaterMask:{get:function(){return!1}},heightMapHeight:{get:function(){return this._options.heightMapHeight}},heightMapWidth:{get:function(){return this._options.heightMapWidth}},pendingRequests:{get:function(){return this._pendingRequests}}});zd.prototype.setFormatMPT=function(o){if(!(o&&this.pngOnly)){var f=this._format;this._format=o?"mpt":"png",f!==this._format&&(this._isMPT=o,this._urlTemplate!==void 0&&(this._urlTemplate=this._urlTemplate.replace("image/"+f,"image/"+this._format)))}};zd.prototype.getLevelMaximumGeometricError=function(o){return this._levelZeroMaximumGeometricError/(1<<o)*zd._geometricErrorFactor};zd.prototype.createKeyFromTile=function(o,f,m){return o+"_"+f+"_"+m};zd.prototype.getTileDataAvailable=function(o,f,m){var x=Math.min(this._maxTerrainLevel,25);return this._isMPT?!0:m<x};zd.prototype.requestFactorForLevel=function(o){var f=Math.log(this._requestGridSize)/Math.log(2);return f=Math.min(f,o),Math.pow(2,f)};zd.prototype.getRequestBaseTerrainUrl=function(o,f,m,x){return this.getRequestUrl(o,f,m,x)};zd.prototype.getRequestElevationLayer=function(o,f,m){return this.getRequestUrl(o,f,m,!1,!0)};zd.prototype.getRequestUrl=function(T,S,w,x,y){var v=w,C=x!=null?this.requestFactorForLevel(w):1,T=x!=null?(T-T%C)/C:T,S=x!=null?(S-S%C)/C:S,w=x!=null?w-Math.log(C)/Math.log(2):w;if(this.isCache&&w!==0&&w<=this.cacheLevel)return this._cacheUrl.replace("{x}",T).replace("{y}",S).replace("{z}",w);var E=this.tilingScheme.tileXYToNativeRectangle(T,S,w),L=this.heightMapWidth*C===256&&x?1:0;y&&(L=0);var I=this._urlTemplate.replace("{south}",E.south).replace("{north}",E.north).replace("{west}",E.west).replace("{east}",E.east).replace("{optimizedOnly}",L).replace("{width}",this.heightMapWidth*C).replace("{height}",this.heightMapHeight*C).replace("{s}",this.sTag(T,S,w));return I+"&level="+w+"&origLevel="+v};zd.prototype.isT_Inside_E=function(o,f){return o.west>=f.west*be.DEGREES_PER_RADIAN&&o.east<=f.east*be.DEGREES_PER_RADIAN&&o.south>=f.south*be.DEGREES_PER_RADIAN&&o.north<=f.north*be.DEGREES_PER_RADIAN};zd.prototype.isT_Intersects_E=function(o,f){var m=o.west*be.RADIANS_PER_DEGREE,x=o.east*be.RADIANS_PER_DEGREE,y=o.south*be.RADIANS_PER_DEGREE,v=o.north*be.RADIANS_PER_DEGREE,C=new vi(m,y,x,v),T=vi.intersection(C,f,new vi);return T};zd.prototype.sTag=function(o,f,m){if(this._subdomains==null)return"";var x=(o+f+m)%this._subdomains.length;return this._subdomains[x]};zd.prototype.refreshElevationLayer=function(o){if(o.rectangle&&tN.scene.globe._surface._levelZeroTiles!==void 0){var f=this.findDirectParent(o.rectangle,!0);f.freeResources()}};zd.prototype.findDirectParent=function(o,f){var m=function(v,C,T){var S=T?4.1:2.1;if(v._rectangle.width<=C.width*S&&vi.contains(v._rectangle,vi.center(C)))return v;for(var w=v.children.length,E=0;E<w;E++){var L=v.children[E];if(vi.contains(L._rectangle,vi.center(C)))return m(L,C,T)}return null};if(o.width==Math.PI)return null;for(var x=0;x<tN.scene.globe._surface._levelZeroTiles.length;x++){var y=m(tN.scene.globe._surface._levelZeroTiles[x],o,f);if(y)return y}return null};zd.prototype.isTileAvailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new vi),y=this.findDirectParent(x);if(y&&y.data&&y.data.terrainData){if(!(y.data.terrainData._childTileMask>0))return!1;for(var v=y.children.length,C=0;C<v;C++){var T=y.children[C];if(vi.equals(T._rectangle,x))return y.data.terrainData._childTileMask&1<<C}}return!0};zd.prototype.markTileAsUnavailable=function(o,f,m){var x=this._tilingScheme.tileXYToRectangle(o,f,m,new vi),y=this.findDirectParent(x);y&&y.data&&y.data.terrainData&&y.data.terrainData._childTileMask>0&&y.children.some(function(v,C){if(vi.equals(v._rectangle,x)){switch(C){case 0:y.data.terrainData._childTileMask&=-5;break;case 1:y.data.terrainData._childTileMask&=-9;break;case 2:y.data.terrainData._childTileMask&=-2;break;case 3:y.data.terrainData._childTileMask&=-3;break;default:}return!0}return!1})};zd.prototype.requestBaseTerrainTileGeometry=function(o,f,m,x){return this.requestTileGeometryBuffers(o,f,m,x)};zd.prototype.requestElevationLayerTileGeometry=function(o,f,m,x,y){return this.requestTileGeometryBuffers(o,f,m,x,y)};zd.prototype.requestTileGeometryBuffers=function(o,f,m,x,y){var v=this,C=15,T={};T.requestedRectangle=this.tilingScheme.tileXYToNativeRectangle(o,f,m),T.layer=y;var I,S,w,E,L=fp(),I=this.requestTileHeightBuffer(o,f,m,x,void 0,y);return I===void 0?void 0:(S=this.requestTileHeightBuffer(o+1,f,m,x,!0,y),w=this.requestTileHeightBuffer(o,f+1,m,x,!0,y),E=this.requestTileHeightBuffer(o+1,f+1,m,x,!0,y),Promise.all([I,S,w,E]).then(function(R){if(NSt==0){if(R[0].myReject!=null&&R[0].myReject){L.reject();return}for(var P=v.heightMapWidth+1,A=v.heightMapHeight+1,M=new Float32Array(P*A),V=R[0].isFloor,G=0;G<P;G++)for(var D=0;D<A;D++){var N=G,k=D,U=0;D===P-1&&(k=0,U=1,V&&(U=0,k=P-2)),G===A-1&&(N=0,U=2);var B=G*P+D,Y=N*v.heightMapWidth+k;R[U]!==null&&(R[U].myReject==null||!R[U].myReject)&&(M[B]=R[U][Y])}(R[3].myReject==null||!R[3].myReject)&&(M[P*A-1]=R[3][0]);var J=v.arrayToHeightmapTerrainData(M,P,A,C);T.buffer=J,L.resolve(T)}else{var J=v.arrayToHeightmapTerrainData(R[0],v.heightMapWidth,v.heightMapHeight);T.buffer=J,L.resolve(T)}}).catch(function(){L.reject()}),L.promise)};zd.prototype.requestTileGeometry=function(o,f,m,x){var y=this,v=[],C=y.tilingScheme.tileXYToNativeRectangle(o,f,m);this._allElevationLayers!=null&&this._allElevationLayers.length>0&&m>7?this._allElevationLayers.forEach(function(S,w){var E=w.show;if(E){var L=w.rectangle;y.isT_Inside_E(C,L)?(y.setFormatMPT(!1),v.push(y.requestElevationLayerTileGeometry(o,f,m,x,w))):y.isT_Intersects_E(C,L)!=null?(y.setFormatMPT(!1),v.push(y.requestElevationLayerTileGeometry(o,f,m,x,w)),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x))):(y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x)))}else y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x))}):(y.setFormatMPT(!0),v.push(y.requestBaseTerrainTileGeometry(o,f,m,x)));var T=fp();return Promise.all(v).then(function(S){if(S.length===1)S.layer!==void 0&&console.log("missing scale and offset"),T.resolve(S[0].buffer);else if(S.length>1){var w=S.filter(function(P){return P.layer!==void 0}),E=S.filter(function(P){return P.layer===void 0});if(w.length===0)T.resolve(S[0].buffer);else{var L=w[w.length-1],I=E[E.length-1],R={tolerance:L.layer.nullTolerance,nullValueNumber:L.layer.nullValueNumber,verticesX:L.layer.polygonVerticesX,verticesY:L.layer.polygonVerticesY,scale:L.layer.scale??1,offset:L.layer.offset??0};T.resolve(y.mergeBuffers(I.buffer,L.buffer,R,I.requestedRectangle))}}else T.reject()}).catch(function(){T.reject()}),T.promise};zd.prototype.mergeBuffers=function(o,f,m,x){var y,v,C,T,S,w=33,E=33,L=x.west,I=x.north,R=x.east,P=x.south,A=x.width/w,M=x.height/E,V=m.scale,G=m.offset,D=m.nullValueNumber,N=m.tolerance,k=D!==void 0&&N!==void 0;if(k)var U=m.nullValueNumber??0,B=Number(m.tolerance)??0;var Y=new Float32Array(w*E);for(y=0,S=I;y<E;y++,S+=M)for(v=0,T=L;v<w;v++,T+=A)C=y*w+v,k?Y[C]=!f._buffer[C]||f._buffer[C]>=U-B&&f._buffer[C]<=U+B?o._buffer[C]:f._buffer[C]*V+G:Y[C]=f._buffer[C]?f._buffer[C]*V+G:o._buffer[C];return this.arrayToHeightmapTerrainData(Y,w,E,15)};zd.prototype.requestTileHeightBuffer=function(o,f,m,x,y,v){var C=this;if(!isNaN(o+f+m)){(!F(x)||x===!1)&&(x=new hm({defer:!0}));var T=x.defer==0;y=T??!1;var S=fp();if(NSt==0){var w;if(v!==void 0)v.getUrlFromSTag=function(j,q,O){return v.subdomains===void 0?v.url:v.subdomains[0]+"/SG"},w=this.getRequestElevationLayer(o,f,m).replace(this._options.url,v.getUrlFromSTag(o,f,m)+"/Elevation").replace(this._options.layerName,v.name),v.format==="mpt"&&(w=w.replace("image/png","image/mpt"));else{w=this.getRequestBaseTerrainUrl(o,f,m,T||y);var E=tN.terrainProvider.tilingScheme.tileXYToRectangle(o,f,m),L=tN.terrainProvider._modifyTerrainObjects,I=fp();if(L!==void 0){var R=[];if(L.forEach(function(j){j.show&&vi.intersection(E,j.rectangle,new vi)!=null&&R.push(j)}),R.length>0)if(R.length===1&&R[0].modelFloorBestLevel&&m>R[0].modelFloorBestLevel)I.resolve("NoMerge");else{var P=par(R,E,m);Promise.resolve(P).then(function(j){I.resolve(j)}).catch(function(j){console.log(j)})}else I.resolve("NoMerge")}else I.resolve("NoMerge");var A=fp(),M=[].filter(function(j){return j._selectedTiles.length>0});if(M.length===1&&M[0].level&&m>M[0].level)A.resolve("NoFloor");else{var V=!1,G=32,D=65535;M.forEach(function(j){if(j.ready&&j.show&&j.rootFloorRectangle!==void 0&&vi.intersection(E,j.rootFloorRectangle)!==void 0){for(var q=new Uint16Array(G*G),O=E.west,te=E.south,ie=(E.east-E.west)/32,re=(E.north-E.south)/32,ee,ae=0;ae<G;ae++)for(var oe=0;oe<G;oe++){var ce=O+ie*oe+ie/2,pe=E.north-re*ae-re/2,ue=new Gt(ce,pe);ee=D;var he=j.getHRMTFP(j,ue,!0);he!=null&&he.content&&he.content._model&&he.content._model.floor&&(ee=he.content._model.floor.getHeight(ue.longitude,ue.latitude)),ee!==D&&(ee+=1.5),q[ae*G+oe]=ee}V=!0,A.resolve(q)}}),V||A.resolve("NoFloor")}var N=tN.scene.globe.ellipsoid}if(this._requestsCache.hasOwnProperty(w)===!1){if(this._requestsCache[w]={},this._requestsCacheKeys.push(w),this._requestsCacheKeys.length>100){for(var k=0;k<50;k++)delete this._requestsCache[this._requestsCacheKeys[k]];this._requestsCacheKeys.splice(0,50)}}else{var U=this._requestsCacheKeys.indexOf(w);this._requestsCacheKeys.splice(U,1),this._requestsCacheKeys.push(w)}var B=this._requestsCache[w];if(B.dataLoaded===void 0&&(T?B.dataLoaded=Mr.fetchArrayBuffer(w):B.dataLoaded=Mr.fetchArrayBuffer(w),!F(B.dataLoaded)))return;var Y=this;this._pendingRequests++,Promise.resolve(B.dataLoaded).then(function(j){B.workerFinished===void 0&&(B.workerFinished=Y._workerPool.queueWorkItem({buffer:j,isElevation:v!==void 0,level:m})),Promise.all([B.workerFinished,I.promise,A.promise]).then(function(q){var O=q[1]!==void 0&&q[1]!=="NoMerge",te=q[2]!==void 0&&q[2]!=="NoFloor";if(q[0].rejected){for(var ie=Y.heightMapWidth*Y.heightMapHeight,re=new Int16Array(ie),ee=0,ae=0;ae<ie;ae++)re[ae]=300;return m>2&&(re.myReject=!0),S.resolve(re),S.promise}var oe=Y.extractTileHeightBuffer(q[0].buffer,o,f,m);if(Y._pendingRequests--,O)for(var ae=0;ae<32;ae++)for(var ce=0;ce<32;ce++){var pe=ae*32+ce;oe[pe]=q[1].mtHeight[0]}if(te){for(var ae=0;ae<32;ae++)for(var ce=0;ce<32;ce++){var pe=ae*32+ce;oe[pe]=q[2][pe]===65535||q[2][pe]>10500?oe[pe]:q[2][pe]}oe.isFloor=!0}S.resolve(oe)}).catch(function(){for(var q=Y.heightMapWidth*Y.heightMapHeight,O=new Int16Array(q),te=0,ie=0;ie<q;ie++)O[ie]=300;return m>2&&(O.myReject=!0),S.resolve(O),S.promise})}).catch(function(){Y._pendingRequests--,S.reject()})}else{for(var J=this.heightMapWidth*this.heightMapHeight,K=new Int16Array(J),z=dar(0,1500),k=0;k<J;k++)K[k]=z;S.resolve(K)}return S.promise}};zd.prototype.extractTileHeightBuffer=function(o,f,m,x){try{for(var y=this.requestFactorForLevel(x),v=f%y,C=m%y,T=new Float32Array(this.heightMapWidth*this.heightMapHeight),S=1e6,w=-1e5,E=0;E<this.heightMapHeight;E++)for(var L=0;L<this.heightMapWidth;L++){var I=E+C*this.heightMapHeight,R=L+v*this.heightMapWidth,P=E*this.heightMapWidth+L,A=I*this.heightMapWidth*y+R;o[A]>w&&(w=o[A]),o[A]<S&&(S=o[A]),T[P]=o[A]}}catch(M){console.log(M.message)}return T};zd.prototype.arrayToHeightmapTerrainData=function(o,f,m,x){F(o)===!1&&(o=new Int16Array(f*m));var y={buffer:o,width:f,height:m,childTileMask:x};return new yL(y)};var WSt=zd;var kfe=class extends gm{constructor(f,m){super(f),this._earthCtrl=f,this._primitive=null,this._parameter=m}async addToMap(f){let m=this._parameter;f||(f=m.requestVertexNormals??!1);let x=null,y=m.sourceType??"ctb";try{if(y!=="ude"){if(y==="ctb")x=await N4.fromUrl(m.url,m);else if(y==="multi")x=new ace(this._earthCtrl);else if(y==="sgs")f&&(Ty.hasVertexNormals=!0),x=new WSt(this._earthCtrl.coreMap,m);else if(y==="arcgis")x=await fde.fromUrl(m.url,m);else if(y==="mapworld"){let C=m.cesium;C.GeoTerrainProvider||new ex(!1).addJs(document.body,`${window.SmartEarthRootUrl}Workers/cesiumTdt.js`);let T=[],S=m.subdomains;for(let w=0;w<S.length;w++){let E=`${m.url.replace("{s}",S[w])}mapservice/swdx?T=elv_c&tk=3ec79cf7a9dcc6bb18411a5414b148cb`;T.push(E)}x=new C.GeoTerrainProvider({urls:T})}}x!==null&&(this._primitive=x,this._coreMap.terrainProvider=x);let v=m.groupName||this._earthCtrl.language.GROUP_NWE_TERRAIN_LAYER;m.addTree&&(m.addTree=void 0,m.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(v,{id:m.id||this._earthCtrl.factory.createUUID(),name:m.name||y,sourceType:"TerrainProvider",item:this,feature:m,checked:this._primitive.show}))}catch(v){console.error(v)}}removeFromMap(){this._primitive!==null&&(this._coreMap.terrainProvider=new IS)}setVisibility(f){f?this._coreMap.terrainProvider=this._primitive:this.removeFromMap()}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([this._primitive.readyPromise]).then(function(y){let v=As.export(f);console.log("terraobj",v),m(v)})})}flyTo(f={}){let m=f;m.orientation=f.orientation??{heading:be.toRadians(0),pitch:be.toRadians(-60),roll:be.toRadians(0)};function x(y,v){let T=Math.PI*6378137,S=y/T*180,w=180/Math.PI*(2*Math.atan(Math.exp(v/T*Math.PI))-Math.PI/2);return{lon:S,lat:w}}if(this._parameter.sourceType==="ctb"||this._parameter.sourceType==="arcgis"){if(this._primitive._tilingScheme.bounds[0]<180&&this._primitive._tilingScheme.bounds[0]>-180){let y=this._primitive._tilingScheme.bounds,v=(y[0]+y[2])/2,C=(y[1]+y[3])/2,T=f.height||1e4;m.destination=f.destination??Z.fromDegrees(v,C,T)}else{let y=this._primitive._tilingScheme.bounds,v=x(y[0],y[1]),C=x(y[2],y[3]),T=(v.lon+C.lon)/2,S=(v.lat+C.lat)/2,w=f.height||1e4;m.destination=f.destination??Z.fromDegrees(T,S,w)}this._coreMap.camera.flyTo(m)}}};Object.defineProperties(kfe.prototype,{parameter:{get:function(){return this._parameter}},show:{get:function(){return this._primitive!==null?this._primitive.show:!1},set:function(o){this._primitive!==null&&(this._primitive.show=o)}},sourceType:{get:function(){return this._parameter!==null?this._parameter.sourceType:!1}},dataUrl:{get:function(){return this._parameter!==null?this._parameter.url:!1}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}}});var SOe=kfe;we();var Ufe=class extends gm{constructor(f,m){super(f),this._earthCtrl=f,this._parameter=m}async addToMap(){let f=this._parameter,m=null;try{f.sourceType==="b3dm"||f.sourceType==="3DTiles"?(m=await _0.fromUrl(f.url,f),F(f.transform)&&this.transform(f.transform,m)):f.sourceType==="osgb"?m=await _0.fromUrl(f.url,f):f.sourceType==="i3s"?m=await gR.fromUrl(f.url,f):f.sourceType==="s3m"?(F(f.context)||(f.context=this._earthCtrl.viewer.scene.context),m=new tpe(f),await m.readyPromise):(f.sourceType==="ude_block"||f.sourceType==="ude_model")&&(f.skipLevelOfDetail=!0,m=await _0.fromUrl(f.url,f)),this._primitive=this._coreMap.scene.primitives.add(m),f.success&&typeof f.success=="function"&&f.success(m),f.addTree&&this._earthCtrl.factory.layerTree.addTreeData("s3m\u6A21\u578B",{id:f.id||this._earthCtrl.factory.createUUID(),name:f.name,sourceType:"s3m",item:this._primitive,feature:f,checked:this._primitive.show})}catch(x){f.failed&&typeof f.failed=="function"&&f.failed(x)}return this}removeFromMap(){F(this._primitive)&&this._coreMap.scene.primitives.remove(this._primitive)}toJSON(){let f=this;return new Promise(function(m,x){Promise.all([f._primitive]).then(function(y){let v=As.export(f);console.log("modellayerobj",v),m(v)})})}transform(f,m){let x=m._primitive,y=Ut.fromRotationX(be.toRadians(f.pitch)),v=Ut.fromRotationY(be.toRadians(f.roll)),C=Ut.fromRotationZ(be.toRadians(f.heading)),T=Ee.fromRotationTranslation(y),S=Ee.fromRotationTranslation(v),w=Ee.fromRotationTranslation(C),E=Z.fromDegrees(f.lon,f.lat,f.alt),L=_r.eastNorthUpToFixedFrame(E);Ee.multiply(L,T,L),Ee.multiply(L,S,L),Ee.multiply(L,w,L),x._root.transform=L}setHeight(f){if(f=Number(f),!isNaN(f)&&this._primitive!==void 0&&this._primitive.boundingSphere!==void 0){let m=this._primitive.boundingSphere.center,x=Gt.fromCartesian(m),y=Z.fromRadians(x.longitude,x.latitude,0),v=Z.fromRadians(x.longitude,x.latitude,f),C=Z.subtract(v,y,new Z);this._primitive.modelMatrix=Ee.fromTranslation(C)}}};Object.defineProperties(Ufe.prototype,{parameter:{get:function(){return this._parameter}},readyPromise:{get:function(){return this._primitive.readyPromise}},show:{get:function(){return F(this._primitive)?this._primitive.show:!1},set:function(o){F(this._primitive)&&(this._primitive.show=o)}},sourceType:{get:function(){return F(this._parameter)?this._parameter.sourceType:!1}},dataUrl:{get:function(){return F(this._parameter)?this._parameter.url:!1}},boundingSphere:{get:function(){return F(this._primitive)&&this._primitive.boundingSphere?this._primitive.boundingSphere:null}},modelMatrix:{get:function(){return F(this._primitive)?this._primitive.modelMatrix:!1},set:function(o){F(this._primitive)&&(this._primitive.modelMatrix=o)}},name:{get:function(){return F(this._parameter)?this._parameter.name:!1},set:function(o){F(this._parameter)&&(this._parameter.name=o)}}});var wOe=Ufe;we();var Bfe=class extends gm{constructor(f,m){super(f),this._rtti="FeatureLayer",this._primitive=null,this._parameter=m}finalize(){}addToMap(){let f=this._parameter;this._primitive=new Kue(this._earthCtrl,f);let m=f.groupName||"FeatureData";f.addTree&&(f.addTree=void 0,f.groupName=void 0,this._earthCtrl.factory.layerTree.addTreeData(m,{id:f.id||this._earthCtrl.factory.createUUID(),name:f.name||f.sourceType,sourceType:"FeatureDataProvider",item:this._primitive,feature:f,checked:this._primitive.show}))}updateStyle(f){if(!this._primitive)return;let m=this._primitive.entities.values;for(let x=0;x<m.length;x++){let y=m[x];for(let v=0;v<y.propertyNames.length;v++){let C=y.propertyNames[v];if(!!y[C]){typeof f.near<"u"&&typeof f.far<"u"&&(y[C].distanceDisplayCondition=new So(f.near,f.far));for(let T in f)if(Object.hasOwnProperty.call(f,T)){let S=f[T];y[C][T]&&(y[C][T]=S)}if(f.pointHeight){let T=Gt.fromCartesian(y.position._value),S=Math.toDegrees(T.longitude),w=Math.toDegrees(T.latitude);y.position=Z.fromDegrees(S,w,f.pointheight)}}}}}removeFromMap(){this._primitive!==null&&this._primitive.destory()}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([f._primitive]).then(function(y){let v=As.export(f);console.log("fireObj",v),m(v)})})}};Object.defineProperties(Bfe.prototype,{entities:{get:function(){return this._primitive.entities}},dataSource:{get:function(){return this._primitive.dataSource}},parameter:{get:function(){return this._parameter}},show:{get:function(){return this._primitive!==null?this._primitive.show:!1},set:function(o){this._primitive!==null&&(this._primitive.show=o)}},sourceType:{get:function(){return this._parameter!==null?this._parameter.sourceType:!1}},dataUrl:{get:function(){return this._parameter!==null?this._parameter.url:!1}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}}});var EOe=Bfe;we();function Hfe(o){this._earthCtrl=o,this._path="",this._layerWork=null}Object.defineProperties(Hfe.prototype,{});Hfe.prototype.addToMap=function(o){F(this._layerWork)?this._layerWork.updateOverlay(o):this._layerWork=new Pde(this._earthCtrl.coreMap,o)};Hfe.prototype.removeFromMap=function(){this._layerWork.dispose()};var LOe=Hfe;we();var far={IMAGERYPROVIDERS:"imageryProviders",TERRAINPROVIDERS:"terrainProviders",MODELLAYERS:"modelLayers",FEATURELAYERS:"featureLayers",USERSCENE:"userScene"},Ms=Object.freeze(far);we();var zfe=class extends gm{constructor(f,m){super(f),this._parameter=m,this._parameter.type=m.type??"water",this._parameter.version=m.version??"1.3.0",this._parameter.baseWaterColor=m.color??Xe.fromCssColorString("#0374ff"),this._parameter.waterFrequency=m.waterFrequency??3e3,this._parameter.animationSpeed=m.animationSpeed??.01,this._parameter.amplitude=m.amplitude??5e3}addToMap(){let f=this._parameter;this._primitive=new Gz(this._earthCtrl,f),this._primitive&&(this._parameter.color=this._primitive.baseWaterColor,this._parameter.params=this._primitive._params)}removeFromMap(){this._primitive!==null&&this._primitive.destory()}toJSON(){let f=this;return new Promise(function(m,x){(void 0).all([f._primitive]).then(function(y){let v=As.export(f);console.log("waterObj",v),m(v)})})}};Object.defineProperties(zfe.prototype,{type:{get:function(){return this._primitive.type}},version:{get:function(){return this._primitive._version}},params:{get:function(){return this._primitive._params},set:function(o){this._primitive!==null&&(this._primitive._params=o)}},show:{get:function(){return this._parameter!==null?this._parameter.show:!1},set:function(o){if(this._primitive!==null&&this._primitive._primitive&&this._primitive._primitive.length!==0){for(let f=0;f<this._primitive._primitive.length;f++)this._primitive._primitive[f].show=o;this._parameter.show=o}}},url:{get:function(){return this._primitive!==null?this._primitive.url:!1},set:function(o){this._primitive!==null&&(this._primitive.url=o)}},color:{get:function(){return this._primitive!==null?this._primitive.baseWaterColor:!1},set:function(o){this._primitive!==null&&(this._primitive.baseWaterColor=o)}},waterFrequency:{get:function(){return this._primitive!==null?this._primitive.waterFrequency:!1},set:function(o){this._primitive!==null&&(this._primitive.waterFrequency=o)}},animationSpeed:{get:function(){return this._primitive!==null?this._primitive.animationSpeed:!1},set:function(o){this._primitive!==null&&(this._primitive.animationSpeed=o)}},amplitude:{get:function(){return this._primitive!==null?this._primitive.amplitude:!1},set:function(o){this._primitive!==null&&(this._primitive.amplitude=o)}},name:{get:function(){return this._parameter!==null?this._parameter.name:!1},set:function(o){this._parameter!==null&&(this._parameter.name=o)}}});var POe=zfe;we();var IOe=class extends gm{constructor(f,m){super(f),this._parameter=m,this._viewer=f.coreMap,this._cesium=Vi}addToMap(){let f=this._parameter,m,x;F(f.div)?(m=document.getElementById(f.div),x=f.div):(m=document.createElement("div"),m.id="Hawkeye",m.style.position="absolute",m.style.width="15%",m.style.height="20%",m.style.bottom="20px",m.style.right="0",m.style.pointerEvents="none",this._viewer.container.appendChild(m),x="Hawkeye"),f.style&&(f.style.width&&(m.style.width=f.style.width),f.style.height&&(m.style.height=f.style.height),f.style.bottom&&(m.style.bottom=f.style.bottom),f.style.right&&(m.style.right=f.style.right),f.style.top&&(m.style.top=f.style.top,m.style.bottom="unset"),f.style.left&&(m.style.left=f.style.left,m.style.right="unset"));let y;f.url?y=new this._cesium.SingleTileImageryProvider({url:f.url}):f.imageryProvider?y=f.imageryProvider:y=new _L({url:"http://103.25.37.71:4020/gisserver/tmsserver/earth_tms"});let v=new A4(x,{baseLayer:Up.fromProviderAsync(y),baseLayerPicker:!1,shadows:!1,shouldAnimate:!1,animation:!1,scene3DOnly:!0,fullscreenButton:!1,geocoder:!1,homeButton:!1,infoBox:!1,selectionIndicator:!1,timeline:!1,navigationHelpButton:!1,contextOptions:{requestWebgl2:!0,licenseServer:window.licenseServer}});v._innerCreditContainer.style.display="none",v.scene.screenSpaceCameraController.enableRotate=!1,v.scene.screenSpaceCameraController.enableZoom=!1,v.scene.screenSpaceCameraController.enableTilt=!1;let C=this;function T(){let S=C._viewer.camera.position,w=Gt.fromCartesian(S);v.camera.setView({destination:Gt.toCartesian(w),orientation:{heading:C._viewer.camera.heading,pitch:C._viewer.camera.pitch,roll:C._viewer.camera.roll}})}return C._viewer.scene.preRender.addEventListener(T),this.close=function(){C._viewer.scene.preRender.removeEventListener(T),v.destroy(),m.remove(),C.close=void 0},this}removeFromMap(){this.close&&this.close()}},ROe=IOe;we();var ZSt=new zt;function mar(o,f,m){let x=o.length,y,v,C;if(m){y=zr.LUMINANCE,v=un.FLOAT,C=new Float32Array(x);for(let T=0;T<x;T++)C[T]=o[T]}else{y=zr.RGBA,v=un.UNSIGNED_BYTE,C=new Uint8Array(x*4);for(let T=0;T<x;T++)zt.packFloat(o[T],ZSt),zt.pack(ZSt,C,T*4)}return new Rn.create({context:f,pixelFormat:y,pixelDatatype:v,source:{width:x,height:1,arrayBufferView:C},flipY:!1,sampler:new Yo({wrapS:Xn.CLAMP_TO_EDGE,wrapT:Xn.CLAMP_TO_EDGE,minificationFilter:Ho.NEAREST,magnificationFilter:Xs.NEAREST})})}var Yfe=[];function xar(o,f,m,x){Ee.toArray(Ee.IDENTITY,Yfe);let y=new Co({fabric:{type:"spotMaterial",source:`
            # define Spot_Texture_Width ${f.length}
            ${m?"#define use_texture_float":""}
            float getPointComponent(int idx, float invTexSize)
@@ -33711,7 +33794,7 @@
\r
}\r
\r
`};class gt{constructor(se,ve){var je=o;this[je(1081)]=1,this[je(491)]=[.3,.8,.3,.5],this.outlineColor=[1,1,1,.8],this.alpha_Uniform_DataView=new Float32Array(16),this[je(1033)]=new Uint32Array(this[je(1020)].buffer),this[je(1031)]=se,this[je(702)]=ve,this[je(1099)]=ve[je(1099)],this[je(525)]=this.device[je(690)]({size:4*this[je(1020)][je(800)],usage:GPUBufferUsage[je(844)]|GPUBufferUsage[je(526)]}),this[je(1020)].set(this.overlayColor),this.alpha_Uniform_DataView[je(895)](this[je(1014)],4),this[je(1099)][je(704)].writeBuffer(this.alpha_Uniform_VmBuffer,0,this[je(1020)]),this[je(1017)]=this[je(1099)][je(656)]({size:[this[je(702)][je(504)][je(1088)].width,this[je(702)].context[je(1088)][je(864)],1],format:je(637),usage:GPUTextureUsage.COPY_SRC|GPUTextureUsage[je(736)]|GPUTextureUsage[je(467)]|GPUTextureUsage[je(1013)]}),this[je(813)]=this.device[je(656)]({size:[this[je(702)][je(504)][je(1088)].width,this[je(702)][je(504)].canvas[je(864)],1],format:je(435),usage:GPUTextureUsage[je(448)]|GPUTextureUsage[je(736)]|GPUTextureUsage[je(467)]});let Ft=this[je(1099)][je(648)]({entries:[{binding:0,visibility:GPUShaderStage[je(539)],buffer:{type:je(1053)}},{binding:1,visibility:GPUShaderStage.VERTEX,buffer:{type:"read-only-storage"}},{binding:2,visibility:GPUShaderStage.VERTEX,buffer:{type:je(629)}},{binding:3,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}},{binding:4,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}},{binding:5,visibility:GPUShaderStage[je(539)],buffer:{type:je(1053)}},{binding:6,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}}]}),kt=(this.alpha_BingGroup=this[je(1099)][je(866)]({layout:Ft,entries:[{binding:0,resource:{buffer:this[je(702)][je(1068)]}},{binding:1,resource:{buffer:this[je(702)][je(680)]}},{binding:2,resource:{buffer:this.renderEngine[je(666)]}},{binding:3,resource:{buffer:this.renderEngine[je(1092)]}},{binding:4,resource:{buffer:this[je(702)][je(580)]}},{binding:5,resource:{buffer:this[je(525)]}},{binding:6,resource:{buffer:this.renderEngine.operateVmBuffer}}]}),this[je(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[je(539)]|GPUShaderStage[je(625)],buffer:{type:je(629)}}]})),bt=(this[je(933)]=this[je(1099)][je(866)]({layout:kt,entries:[{binding:0,resource:{buffer:this.renderEngine[je(688)]}}]}),this.device[je(917)]({bindGroupLayouts:this[je(702)].multiDrawIndirect?[Ft]:[Ft,kt]})),lt=at[je(1022)];this[je(702)][je(1035)]?lt=lt[je(926)](je(904),""):(lt=lt[je(926)](je(929),je(1009)),lt+=je(1093)),se=this[je(1099)][je(720)]({code:q[je(1022)]+lt}),this[je(955)]=this[je(1099)][je(950)]({layout:bt,vertex:{module:se,entryPoint:"vert_main",buffers:[],constants:{}},fragment:{module:se,entryPoint:je(1048),targets:[{format:this[je(1017)][je(980)]}],constants:{}},primitive:{topology:je(1062),frontFace:"ccw",cullMode:je(590)},depthStencil:{format:this[je(813)][je(980)],depthCompare:je(753),depthWriteEnabled:!0}}),this[je(1028)]={colorAttachments:[{view:this[je(1017)][je(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:je(971),storeOp:je(600)}],depthStencilAttachment:{view:this[je(813)][je(1045)](),depthClearValue:0,depthLoadOp:je(971),depthStoreOp:je(600),depthReadOnly:!1}},this[je(702)][je(1035)]||((ve=this.device[je(968)]({colorFormats:[this[je(1017)].format],depthStencilFormat:this.alpha_depth_Texture[je(980)]}))[je(689)](0,this.alpha_BingGroup),ve[je(501)](this[je(955)]),ve[je(689)](1,this[je(933)]),ve.drawIndirect(this.renderEngine[je(812)],0),this.alpha_RenderBundle=ve[je(1091)]()),this[je(546)]()}[o(991)](se){var ve=o,je=se.beginRenderPass(this[ve(1028)]);this.renderEngine[ve(1035)]?(je[ve(689)](0,this.alpha_BingGroup),je[ve(501)](this[ve(955)]),je.multiDrawIndirect(this[ve(688)],0,393216,this[ve(812)],0)):je.executeBundles([this[ve(1083)]]),je[ve(482)](),this[ve(585)](se)}EdgeMergeIntend(){var se=o;this.edgeMerge_color_Texture=this[se(1099)][se(656)]({size:[this.renderEngine.context.canvas[se(412)],this[se(702)].context[se(1088)].height,1],format:"rgba8unorm",usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(1013)]|GPUTextureUsage[se(467)]});var ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],sampler:{type:se(447)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(893)][se(980)],access:"read-only"}},{binding:3,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(893)][se(980)],access:se(633)}},{binding:4,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this.edgeMerge_color_Texture.format,access:se(714)}}]});this[se(924)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(525)]}},{binding:1,resource:this[se(702)][se(636)]},{binding:2,resource:this.renderEngine[se(502)][se(1045)]()},{binding:3,resource:this.alpha_color_Texture.createView()},{binding:4,resource:this.edgeMerge_color_Texture[se(1045)]()}]}),this.edgeMergeComputePipeline=this[se(1099)][se(1101)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),compute:{module:this.device[se(720)]({code:dt[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(585)](se){var ve=o,je=se[ve(911)]();je[ve(689)](0,this[ve(924)]),je.setPipeline(this.edgeMergeComputePipeline),je[ve(624)](this[ve(702)][ve(752)],this[ve(702)][ve(899)]),je[ve(482)](),se.copyTextureToTexture({texture:this[ve(893)]},{texture:this.renderEngine[ve(502)]},{width:this.edgeMerge_color_Texture[ve(412)],height:this[ve(893)][ve(864)]})}}let Et={code:o(664)};class et{constructor(se,ve){var je=o;this[je(1081)]=1,this.overlayColor=[.3,.8,.3,.5],this.outlineColor=[1,1,1,.8],this[je(1020)]=new Float32Array(16),this.alpha_Uniform_DataViewU32=new Uint32Array(this[je(1020)].buffer),this[je(1031)]=se,this[je(702)]=ve,this[je(1099)]=ve.device,this[je(525)]=this.device.createBuffer({size:4*this[je(1020)].length,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[je(526)]}),this[je(1020)].set(this.overlayColor),this[je(1020)][je(895)](this[je(1014)],4),this[je(1099)][je(704)][je(1039)](this.alpha_Uniform_VmBuffer,0,this[je(1020)]),this.alpha_color_Texture=this.device[je(656)]({size:[this[je(702)][je(504)][je(1088)][je(412)],this[je(702)][je(504)][je(1088)][je(864)],1],format:je(637),usage:GPUTextureUsage.COPY_SRC|GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage[je(467)]|GPUTextureUsage[je(1013)]}),this[je(813)]=this[je(1099)][je(656)]({size:[this[je(702)][je(504)][je(1088)].width,this[je(702)][je(504)].canvas[je(864)],1],format:"depth32float",usage:GPUTextureUsage[je(448)]|GPUTextureUsage[je(736)]|GPUTextureUsage.TEXTURE_BINDING}),se=this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[je(539)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}},{binding:2,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}},{binding:3,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}},{binding:4,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}},{binding:5,visibility:GPUShaderStage.VERTEX,buffer:{type:je(1053)}}]}),this[je(1054)]=this[je(1099)][je(866)]({layout:se,entries:[{binding:0,resource:{buffer:this.renderEngine[je(1068)]}},{binding:1,resource:{buffer:this[je(702)].modelVmBuffer}},{binding:2,resource:{buffer:this[je(702)][je(666)]}},{binding:3,resource:{buffer:this[je(702)].meshVmBuffer}},{binding:4,resource:{buffer:this[je(702)].meshLodVmBuffer}},{binding:5,resource:{buffer:this[je(525)]}}]}),ve=this[je(1099)][je(917)]({bindGroupLayouts:[se]}),se=this[je(1099)][je(720)]({code:q[je(1022)]+Et.code}),this.alpha_Pipeline=this[je(1099)][je(950)]({layout:ve,vertex:{module:se,entryPoint:je(744),buffers:[],constants:{}},fragment:{module:se,entryPoint:je(1048),targets:[{format:this[je(1017)].format}],constants:{}},primitive:{topology:je(956),frontFace:je(905),cullMode:"back"},depthStencil:{format:this[je(813)][je(980)],depthCompare:je(753),depthWriteEnabled:!0}}),this[je(1028)]={colorAttachments:[{view:this.alpha_color_Texture[je(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:je(971),storeOp:je(600)}],depthStencilAttachment:{view:this[je(813)][je(1045)](),depthClearValue:0,depthLoadOp:"clear",depthStoreOp:"store",depthReadOnly:!1}}}[o(991)](se){var ve=o;this[ve(1031)].instancesCount!==0&&((se=se[ve(675)](this[ve(1028)]))[ve(689)](0,this[ve(1054)]),se.setPipeline(this[ve(955)]),se.draw(8*this[ve(1031)][ve(1069)]),se[ve(482)]())}}class yt{constructor(se){var ve=o;this.fig=se,this[ve(778)]=0,this[ve(700)]=0,this[ve(1035)]=!1,this[ve(710)]=!0,this.readTemp_noLocking=!0,this[ve(1e3)]=!0,this[ve(983)]=!0,this[ve(837)]=!0,this[ve(425)]=1,this[ve(628)]=2,this[ve(767)]=3,this.vm_target_meshLod=4,this[ve(934)]=5,this[ve(561)]=6,this[ve(903)]=7,this[ve(1025)]=32,this[ve(804)]=new Float32Array(9),this[ve(795)]=20,this.spaceTotalCount=0,this[ve(598)]=10,this[ve(775)]=1e6,this[ve(858)]=new ArrayBuffer(64),this[ve(653)]=new Uint32Array([10,0,0,0]),this[ve(786)]=1e5,this[ve(915)]=Math.ceil(this.lightBodiesAssociateCount/1024),this[ve(764)]=1e6,this[ve(540)]=4096,this[ve(944)]=new Float32Array(128),this[ve(697)]=new Uint32Array(this[ve(944)][ve(877)]),this[ve(819)]=128,this[ve(1047)]=32,this[ve(881)]=this[ve(819)]-(this.blur_filterSize-1),this.blur_batch=[4,4],this[ve(630)]=0,this[ve(518)]=new Float32Array(4),this[ve(541)]=new Float32Array(128),this.volumeRender_Uniform_DataView=new Float32Array(128),this[ve(667)]=new Float32Array(128),this[ve(719)]=new Uint32Array(this[ve(667)].buffer),this.renderToCanvas_Uniform_DataView=new Float32Array([1,1,.1]),this[ve(681)]=new Uint32Array([27,0,0,0]),this.lastPickPositionValue=D[ve(807)](),this[ve(872)]=!0,this.allow_read_renderMaterial=!0,this[ve(954)]=!1,navigator[ve(437)].requestAdapter({powerPreference:"high-performance"}).then(je=>{var Ft=ve;if(je!==null){this[Ft(947)]=je;var kt,bt=Array[Ft(1050)](je[Ft(840)]||[]),lt={};for(kt in je[Ft(608)])lt[kt]=je[Ft(608)][kt];je[Ft(935)]({requiredFeatures:bt,requiredLimits:lt})[Ft(442)](ze=>{var tt=Ft;this[tt(1099)]=ze,this[tt(778)]=ze.limits.maxTextureDimension1D,this[tt(1019)]=tt(637),this.context=this[tt(1031)][tt(1088)][tt(678)]("webgpu"),this[tt(504)][tt(750)]({device:this[tt(1099)],format:this[tt(1019)],alphaMode:tt(493),toneMapping:{mode:tt(422)}}),this.fig[tt(515)]&&(this[tt(506)]=this[tt(1031)][tt(515)][tt(678)](tt(986)),this[tt(506)][tt(750)]({device:this[tt(1099)],format:this.presentationFormat,alphaMode:"premultiplied",toneMapping:{mode:tt(422)}})),this[tt(700)]=this[tt(504)].canvas[tt(864)]*this[tt(504)].canvas[tt(412)],globalThis.__ser_isDev__&&((ze=document.createElement(tt(1088))).style=tt(558),document[tt(455)].appendChild(ze),this[tt(797)]=ze[tt(678)](tt(986)),this[tt(797)][tt(1088)].width=300,this.context1[tt(1088)].height=300,this.context1[tt(750)]({device:this[tt(1099)],format:this[tt(1019)],alphaMode:tt(493)}),(ze=document[tt(602)](tt(1088)))[tt(887)]="position: absolute;top: 0;right: 0;z-index: 1;border: 1px solid white;pointer-events: none;",document[tt(455)][tt(621)](ze),this[tt(733)]=ze[tt(678)](tt(986)),this.context2.canvas[tt(412)]=this[tt(504)][tt(1088)][tt(412)]/5,this[tt(733)][tt(1088)][tt(864)]=this[tt(504)][tt(1088)].height/5,this.context2.configure({device:this.device,format:this[tt(1019)],alphaMode:tt(493)}),(ze=document[tt(602)](tt(1088)))[tt(887)]="position: absolute;bottom: 0;right: 0;z-index: 1;border: 1px solid white;pointer-events: none;",document.body[tt(621)](ze),this.context3=ze[tt(678)](tt(986)),this[tt(976)][tt(1088)][tt(412)]=this[tt(504)].canvas[tt(412)]/5,this[tt(976)].canvas[tt(864)]=this[tt(504)][tt(1088)].height/5,this[tt(976)].configure({device:this[tt(1099)],format:this[tt(1019)],alphaMode:tt(493)}),(ze=document.createElement(tt(1088))).style=tt(716),document[tt(455)][tt(621)](ze),this[tt(657)]=ze[tt(678)]("webgpu"),this[tt(657)][tt(1088)][tt(412)]=this[tt(504)][tt(1088)].width/5,this.context4[tt(1088)][tt(864)]=this.context[tt(1088)][tt(864)]/5,this[tt(657)][tt(750)]({device:this[tt(1099)],format:this.presentationFormat,alphaMode:tt(493)}));var ze=this[tt(1099)].createCommandEncoder(),ct=ze[tt(675)]({colorAttachments:[null]});this[tt(1035)]=!!ct.multiDrawIndirect,ct.end(),ze[tt(1091)](),this[tt(900)](),this[tt(510)](),this[tt(1031)][tt(661)]()})}})}[o(900)](){var se=o;this[se(854)]=this.device[se(741)]({magFilter:"nearest",minFilter:se(919)}),this[se(636)]=this.device[se(741)]({magFilter:se(865),minFilter:se(865)}),this.samplerDepth=this[se(1099)].createSampler({compare:se(753),minFilter:se(865),magFilter:se(865)}),this[se(962)]=this[se(1099)][se(656)]({size:[this.maxTextureSize,this.maxTextureSize,1],format:se(618),usage:GPUTextureUsage[se(467)]|GPUTextureUsage[se(526)]}),this[se(978)]=this.device[se(656)]({size:[this.maxTextureSize,this[se(778)],1],format:"bc7-rgba-unorm",usage:GPUTextureUsage[se(467)]|GPUTextureUsage.COPY_DST}),this[se(777)]=this[se(1099)].createTexture({size:[this[se(778)],this[se(778)],1],format:se(618),usage:GPUTextureUsage[se(467)]|GPUTextureUsage.COPY_DST}),this[se(459)]=this[se(1099)].createBuffer({size:52428800,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this[se(959)]=this[se(1099)][se(690)]({size:52428800,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this.readPickId_VmBuffer=this.device.createBuffer({size:4,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this[se(774)]=this.device[se(690)]({size:16,usage:GPUBufferUsage[se(683)]|GPUBufferUsage.COPY_DST}),this.zeroVmBuffer=this.device[se(690)]({size:52428800,usage:GPUBufferUsage[se(448)]}),this.scene_VmBuffer=this.device[se(690)]({size:this[se(1031)][se(735)][se(829)],usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]}),this[se(449)]=this[se(1099)][se(690)]({size:336,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]}),this[se(873)]=this[se(1099)][se(690)]({size:this[se(1031)][se(547)].byteLength,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(522)]|GPUBufferUsage[se(448)]}),this[se(883)]=this[se(1099)][se(825)]({type:se(931),count:10}),this[se(692)]=this[se(1099)][se(690)]({size:10*BigUint64Array.BYTES_PER_ELEMENT,usage:GPUBufferUsage[se(415)]|GPUBufferUsage[se(448)]}),this[se(627)]=this[se(1099)][se(690)]({size:10*BigUint64Array[se(730)],usage:GPUBufferUsage[se(526)]|GPUBufferUsage[se(683)]}),this[se(556)]=this[se(1099)][se(690)]({size:6291456,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this.renderMaterial_read_VmBuffer=this.device[se(690)]({size:6291456,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this.modelVmBuffer=this[se(1099)].createBuffer({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST}),this[se(666)]=this[se(1099)][se(690)]({size:134217728,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(580)]=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage.STORAGE|GPUBufferUsage[se(526)]}),this.meshVmBuffer=this[se(1099)][se(690)]({size:524288e3,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_SRC|GPUBufferUsage.COPY_DST}),this.copyVmBuffer=this.device[se(690)]({size:8388608,usage:GPUBufferUsage[se(448)]|GPUBufferUsage[se(526)]}),this[se(792)]=this[se(1099)].createBuffer({size:8388608,usage:GPUBufferUsage.STORAGE|GPUBufferUsage[se(526)]}),this[se(1105)]=this.device[se(656)]({size:[this.context.canvas.width,this[se(504)][se(1088)].height,1],format:se(1018),usage:GPUTextureUsage[se(526)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage[se(1013)]}),this[se(571)]=this.device[se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)].canvas.height,1],format:se(1018),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(695)]=this.device[se(690)]({size:24,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage.COPY_SRC})}[o(510)](){var se=o;this[se(619)](),this[se(831)](),this.MakeCommandIntend(),this[se(909)](),this[se(411)](),this[se(480)](),this.LightBodiesAssociateIntend(),this[se(612)](),this.LightBodiesBounceOneIntend(),this[se(818)](),this[se(882)](),this[se(488)](),this[se(1106)](),this[se(822)](),this[se(1032)](),this[se(451)](),this[se(1031)].cesiumWidget&&this.RenderToCanvasIntend(),this.selectRender=new gt(this[se(1031)],this),this[se(869)]=new et(this.fig,this),globalThis.__ser_isDev__&&this[se(1010)]()}[o(560)](se){var ve=o,je=performance.now();switch(se.target){case this[ve(425)]:if(se[ve(1016)]&&se[ve(563)])this[ve(680)][ve(605)],se[ve(1016)],se.buf[ve(829)],this[ve(1099)][ve(704)][ve(1039)](this[ve(680)],se[ve(1016)],se[ve(563)]);else if(se[ve(413)])for(var Ft in se[ve(413)])this[ve(1099)].queue[ve(1039)](this.modelVmBuffer,~~Ft,se[ve(413)][Ft]);else se[ve(1089)]&&this[ve(1099)].queue[ve(1039)](this[ve(680)],se[ve(1016)],new ArrayBuffer(se[ve(1089)]));break;case this[ve(628)]:this.instanceVmBuffer[ve(605)],se.vmOffset,se[ve(563)].byteLength,this[ve(1099)][ve(704)][ve(1039)](this.instanceVmBuffer,se[ve(1016)],se[ve(563)]);break;case this[ve(767)]:this[ve(1092)][ve(605)],se[ve(1016)],se[ve(563)].byteLength,this[ve(1099)].queue.writeBuffer(this.meshVmBuffer,se[ve(1016)],se[ve(563)]);break;case this[ve(419)]:this[ve(580)][ve(605)],se[ve(1016)],se[ve(563)][ve(829)],this[ve(1099)][ve(704)][ve(1039)](this[ve(580)],se.vmOffset,se[ve(563)]);break;case this.vm_target_meshLod_up:this.updateMeshOffset_VmBuffer[ve(605)],se[ve(563)][ve(829)],this.device[ve(704)][ve(1039)](this[ve(711)],0,se.buf);var kt=this[ve(1099)][ve(981)]();this[ve(421)](kt,se[ve(815)]),this[ve(1099)][ve(704)][ve(635)]([kt[ve(1091)]()]);break;case this[ve(561)]:this[ve(1099)][ve(704)].writeTexture({texture:this[ve(962)],origin:se[ve(534)]},se.albedo_buf,se[ve(743)],se.size),se[ve(671)]&&this[ve(1099)].queue[ve(458)]({texture:this.normal_Texture,origin:se.origin},se[ve(671)],se[ve(743)],se[ve(605)]),se[ve(423)]&&this[ve(1099)][ve(704)][ve(458)]({texture:this[ve(777)],origin:se[ve(534)]},se[ve(423)],se[ve(743)],se[ve(605)]);break;case this[ve(903)]:this[ve(792)].size,se[ve(1016)],se.buf[ve(829)],this.device[ve(704)][ve(1039)](this.operateVmBuffer,se[ve(1016)],se[ve(563)])}je<performance[ve(495)]()-5&&console.log(ve(927),performance.now()-je,se[ve(723)])}OrganizeMeshVmData(se){var ve=o,je,Ft=this[ve(1099)][ve(981)]();for(je of se[ve(937)])this[ve(711)][ve(605)],je[ve(563)][ve(829)],this.device[ve(704)][ve(1039)](this[ve(711)],0,je[ve(563)]),this[ve(421)](Ft,je[ve(815)]);for(let bt=0;bt<se[ve(652)][ve(800)];bt+=3){let lt=se[ve(652)][bt],ot=se[ve(652)][bt+1],tt=se.copyList[bt+2];for(;;){if(!(tt>this[ve(647)][ve(605)])){Ft.copyBufferToBuffer(this[ve(1092)],ot,this[ve(647)],0,tt),Ft.copyBufferToBuffer(this.copyVmBuffer,0,this.meshVmBuffer,lt,tt);break}var kt=this[ve(647)][ve(605)];Ft[ve(913)](this[ve(1092)],ot,this[ve(647)],0,kt),Ft.copyBufferToBuffer(this[ve(647)],0,this[ve(1092)],lt,kt),ot+=kt,lt+=kt,tt-=kt}}this[ve(1099)][ve(704)].submit([Ft[ve(1091)]()])}[o(619)](){var se=o;this[se(701)]=this[se(1099)][se(690)]({size:10*Math.ceil(262144)*4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(1107)]=this[se(701)].size/4-100,this[se(1099)][se(704)][se(1039)](this.lightBodiesSpace_VmBuffer,0,new Uint32Array([10*this.lightBodiesSize,this[se(795)]<<1,2*this[se(795)]<<1,3*this[se(795)]<<1,4*this[se(795)]<<1,5*this[se(795)]<<1,6*this.lightBodiesSize<<1,7*this[se(795)]<<1,8*this.lightBodiesSize<<1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0])),this[se(907)]=this[se(1099)].createBuffer({size:8388608,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(975)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]}),this[se(551)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(448)]|GPUBufferUsage[se(724)]}),this[se(1099)][se(704)][se(1039)](this[se(551)],0,new Uint32Array([1e4,1,1,0])),this[se(604)]=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(1002)]=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]})}[o(831)](){var se=o;this[se(985)]=this[se(1099)][se(690)]({size:this[se(556)].size-4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(448)]}),this[se(788)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage.COPY_SRC});var ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:2,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:4,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:5,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:6,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}}]}),ve=(this[se(960)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:1,resource:{buffer:this[se(788)]}},{binding:2,resource:{buffer:this[se(985)]}},{binding:3,resource:{buffer:this[se(666)]}},{binding:4,resource:{buffer:this.meshVmBuffer}},{binding:5,resource:{buffer:this[se(680)]}},{binding:6,resource:{buffer:this[se(580)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this[se(1097)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this.device[se(720)]({code:q.code+k[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)][se(963)],instanceItemVmSize:this.instanceItemVmSize}}})}[o(1117)](se){var ve=o;se=se[ve(911)](),se[ve(501)](this[ve(1097)]),se.setBindGroup(0,this[ve(960)]),se[ve(624)](Math.ceil(this[ve(1031)].instancesCount/this[ve(1099)][ve(608)][ve(963)])),se.end()}[o(749)](){var se=o;this[se(812)]=this[se(1099)][se(690)]({size:32,usage:GPUBufferUsage.INDIRECT|GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST}),this[se(688)]=this.device[se(690)]({size:6291456,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(724)]}),this[se(920)]=this.device[se(690)]({size:this.renderMaterial_read_VmBuffer.size,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_SRC});var ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:5,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:6,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:8,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:9,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ve=(this[se(544)]=this[se(1099)].createBindGroup({layout:ve,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:2,resource:{buffer:this[se(666)]}},{binding:3,resource:{buffer:this[se(1092)]}},{binding:4,resource:{buffer:this[se(680)]}},{binding:5,resource:{buffer:this[se(812)]}},{binding:6,resource:{buffer:this.renderIndex_VmBuffer}},{binding:8,resource:{buffer:this.renderMaterial_VmBuffer}},{binding:9,resource:{buffer:this.meshLodVmBuffer}}]}),this.device[se(917)]({bindGroupLayouts:[ve]})),ve=(this[se(668)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)].createShaderModule({code:q[se(1022)]+U.code}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)][se(963)],maxRenderInstance:2*this.maxRenderInstance,multiDrawIndirect:this[se(1035)]?1:0,instanceItemVmSize:this[se(1025)]}}}),this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:5,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:6,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:7,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:8,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:9,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}));this[se(734)]=this.device[se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(688)]}},{binding:1,resource:{buffer:this.lightBodiesSpace_VmBuffer}},{binding:2,resource:{buffer:this.indirect_render_VmBuffer}},{binding:3,resource:{buffer:this[se(920)]}},{binding:4,resource:{buffer:this[se(666)]}},{binding:5,resource:{buffer:this[se(1068)]}},{binding:6,resource:{buffer:this[se(604)]}},{binding:7,resource:{buffer:this[se(551)]}},{binding:8,resource:{buffer:this.readMesh_atomic_VmBuffer}},{binding:9,resource:{buffer:this[se(873)]}}]}),this[se(565)]=this[se(1099)].createComputePipeline({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),compute:{module:this[se(1099)].createShaderModule({code:q[se(1022)]+B[se(1022)]+O[se(1022)]}),entryPoint:se(817),constants:{multiDrawIndirect:this.multiDrawIndirect?1:0}}})}[o(462)](se){var ve=o;this.fig[ve(1069)]!==1&&(se.copyBufferToBuffer(this[ve(1056)],0,this[ve(812)],0,this[ve(812)][ve(605)]),(se=se.beginComputePass()).setPipeline(this[ve(668)]),se[ve(689)](0,this.MakeCommandComputeBingGroup),se[ve(624)](Math.ceil(this[ve(1031)][ve(1069)]/this[ve(1099)][ve(608)][ve(963)])),se.setPipeline(this[ve(565)]),se.setBindGroup(0,this[ve(734)]),se.dispatchWorkgroups(1),se[ve(482)]())}[o(612)](){var se=o;this.updateMeshOffset_VmBuffer=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST});var ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:"read-only-storage"}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ve=(this[se(1041)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this.updateMeshOffset_VmBuffer}},{binding:1,resource:{buffer:this[se(580)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this.updateMeshOffsetComputePipeline=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:K[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)].maxComputeInvocationsPerWorkgroup}}})}[o(421)](se,ve){var je=o;se=se[je(911)]({timestampWrites:{querySet:this[je(883)],beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}}),se[je(501)](this.updateMeshOffsetComputePipeline),se.setBindGroup(0,this.updateMeshOffsetComputeBingGroup),se[je(624)](Math[je(552)](ve/this[je(1099)][je(608)][je(963)])),se[je(482)]()}[o(488)](){var se=o;this[se(912)]=new Uint32Array(this[se(858)]),this[se(912)][0]=1,this[se(846)]=new Float32Array(this.readMesh_Uniform_dataBuffer),this[se(502)]=this[se(1099)][se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)][se(1088)][se(864)],1],format:this.presentationFormat,usage:GPUTextureUsage.COPY_SRC|GPUTextureUsage.COPY_DST|GPUTextureUsage[se(467)]|GPUTextureUsage[se(1013)]});var je=2147483647,ve=-2147483648,je=(this[se(1099)][se(704)][se(1039)](this.readMesh_atomic_VmBuffer,0,new Int32Array([je,je,je,ve,ve,ve])),this[se(443)]=this.device.createBuffer({size:64,usage:GPUBufferUsage[se(844)]|GPUBufferUsage.COPY_DST}),this[se(498)]=16,this[se(752)]=Math.ceil(this[se(1102)][se(412)]/this[se(498)]),this[se(899)]=Math[se(552)](this[se(1102)][se(864)]/this[se(498)]),this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:"uniform"}},{binding:3,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this.meshRenderPositionTexture[se(980)],access:se(633)}},{binding:4,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(632)][se(980)],access:se(633)}},{binding:5,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(793)][se(980)],access:se(633)}},{binding:6,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:7,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:8,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:9,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this[se(502)][se(980)],access:se(714)}},{binding:10,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:11,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this[se(1105)][se(980)],access:"read-only"}},{binding:12,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(500)].format,access:se(633)}},{binding:13,visibility:GPUShaderStage[se(528)],sampler:{type:se(967)}},{binding:14,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(649),viewDimension:"2d-array"}},{binding:15,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}));this.readMeshComputeBingGroup=this[se(1099)][se(866)]({layout:je,entries:[{binding:0,resource:{buffer:this[se(443)]}},{binding:1,resource:{buffer:this.lightInfo_VmBuffer}},{binding:2,resource:{buffer:this[se(1068)]}},{binding:3,resource:this[se(1102)][se(1045)]()},{binding:4,resource:this[se(632)][se(1045)]()},{binding:5,resource:this.meshRenderInstancePtrTexture[se(1045)]()},{binding:6,resource:{buffer:this[se(666)]}},{binding:7,resource:{buffer:this.lightBodiesSpace_VmBuffer}},{binding:8,resource:{buffer:this[se(604)]}},{binding:9,resource:this[se(502)][se(1045)]()},{binding:10,resource:{buffer:this[se(569)]}},{binding:11,resource:this[se(1105)][se(1045)]()},{binding:12,resource:this[se(500)][se(1045)]()},{binding:13,resource:this[se(875)]},{binding:14,resource:this.renderShadowDepthView1},{binding:15,resource:{buffer:this.readMesh_atomic_VmBuffer}}]}),this[se(492)]=this[se(1099)][se(1101)]({label:se(492),layout:this.device[se(917)]({bindGroupLayouts:[je]}),compute:{module:this[se(1099)].createShaderModule({code:q.code+z.code+ae[se(1022)]+O[se(1022)]+oe.code}),entryPoint:se(817),constants:{spaceUnit:this.spaceUnit}}})}[o(725)](se){var ve=o;this[ve(1099)].queue[ve(1039)](this[ve(443)],0,this[ve(858)]),se=se.beginComputePass({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ve(501)](this[ve(492)]),se.setBindGroup(0,this.readMeshComputeBingGroup),se.dispatchWorkgroups(this[ve(752)],this[ve(899)]),se[ve(482)]()}[o(769)](){var se=o;this[se(906)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]}),this[se(1099)][se(704)].writeBuffer(this[se(906)],0,this[se(653)]);var ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]});this.lightBodiesAssociate_ComputeBingGroup=this.device[se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(906)]}},{binding:1,resource:{buffer:this[se(701)]}}]}),this[se(779)]=this[se(1099)][se(1101)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),compute:{module:this[se(1099)][se(720)]({code:ie.code+oe[se(1022)]}),entryPoint:se(817),constants:{lightBodiesSize:this[se(795)],spaceTotalCount:this[se(1107)]}}})}LightBodiesAssociate(se){var ve=o;this[ve(653)][0]+=this[ve(786)],this[ve(653)][0]*this.lightBodiesSize>this[ve(1107)]&&(this[ve(653)][0]=10),this[ve(1099)][ve(704)][ve(1039)](this[ve(906)],0,this[ve(653)]),se=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:6,endOfPassWriteIndex:7}}),se[ve(689)](0,this[ve(998)]),se.setPipeline(this[ve(779)]),se.dispatchWorkgroups(this[ve(915)]),se.end()}[o(823)](){var se=o,ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ve=(this[se(1015)]=this.device[se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(975)]}},{binding:1,resource:{buffer:this[se(873)]}},{binding:2,resource:{buffer:this[se(701)]}},{binding:3,resource:{buffer:this[se(604)]}},{binding:4,resource:{buffer:this[se(1002)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this[se(676)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:O.code+te.code+oe.code}),entryPoint:"main",constants:{}}}),this[se(1040)]=this[se(1099)].createComputePipeline({layout:ve,compute:{module:this[se(1099)].createShaderModule({code:O.code+re[se(1022)]+oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(718)](se){var ve=o,je=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:2,endOfPassWriteIndex:3}});je[ve(689)](0,this[ve(1015)]),je.setPipeline(this[ve(676)]),je[ve(624)](Math[ve(552)](this[ve(764)]/128)),je.end(),this.LightBodiesRemoveDuplicatesIndirect(se)}[o(818)](){var se=o,ve=this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ve=(this.LightBodiesRemoveDuplicatesComputeBingGroup=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(701)]}},{binding:1,resource:{buffer:this[se(604)]}},{binding:2,resource:{buffer:this.lightBodiesBounceTwo_VmBuffer}}]}),this.device[se(917)]({bindGroupLayouts:[ve]}));this.LightBodiesRemoveDuplicatesComputePipeline=this[se(1099)][se(1101)]({layout:ve,compute:{module:this.device[se(720)]({code:ee[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(694)](se){var ve=o;se=se[ve(911)](),se.setBindGroup(0,this[ve(713)]),se.setPipeline(this[ve(1055)]),se.dispatchWorkgroupsIndirect(this[ve(551)],0),se.end()}LightBodiesRemoveDuplicatesIndirectIntend(){var se=o,ve=this[se(1099)][se(648)]({entries:[{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ve=(this[se(1078)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:2,resource:{buffer:this[se(1002)]}},{binding:3,resource:{buffer:this[se(551)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this[se(1077)]=this.device[se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:se(433)}),entryPoint:"main",constants:{lightBodiesBounceCount:this[se(764)]}}})}LightBodiesRemoveDuplicatesIndirect(se){var ve=o;se=se[ve(911)](),se[ve(689)](0,this[ve(1078)]),se[ve(501)](this[ve(1077)]),se.dispatchWorkgroups(1),se[ve(482)]()}MeshRenderIntend(){var se=o;this[se(717)]=this[se(1099)].createBuffer({size:16,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(448)]}),this[se(762)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(526)]|GPUBufferUsage.COPY_SRC}),this[se(1099)][se(704)][se(1039)](this[se(762)],0,new Uint32Array([2,0,0,0])),this[se(472)]=this.device[se(656)]({size:[this[se(504)][se(1088)].width,this[se(504)][se(1088)][se(864)],1],format:se(435),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]}),this[se(1102)]=this[se(1099)][se(656)]({size:[this[se(504)].canvas.width,this.context[se(1088)][se(864)],1],format:se(1018),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(631)]=this[se(1099)][se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)][se(1088)][se(864)],1],format:se(1018),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(632)]=this.device[se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)].canvas[se(864)],1],format:"rgba32uint",usage:GPUTextureUsage[se(448)]|GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage[se(467)]|GPUTextureUsage[se(1013)]}),this[se(793)]=this.device[se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)][se(1088)][se(864)],1],format:se(958),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(569)]=this[se(1099)][se(690)]({size:this.context[se(1088)][se(412)]*this[se(504)][se(1088)][se(864)]*4*2,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage.COPY_SRC});let ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT,buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:"read-only-storage"}},{binding:2,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}},{binding:3,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}},{binding:4,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:5,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}},{binding:6,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:7,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:8,visibility:GPUShaderStage[se(625)],texture:{sampleType:"float",viewDimension:"2d"}},{binding:9,visibility:GPUShaderStage[se(625)],buffer:{type:"storage"}},{binding:10,visibility:GPUShaderStage[se(625)],buffer:{type:se(742)}},{binding:11,visibility:GPUShaderStage.FRAGMENT,buffer:{type:se(742)}},{binding:12,visibility:GPUShaderStage.FRAGMENT,buffer:{type:se(742)}},{binding:13,visibility:GPUShaderStage[se(539)],buffer:{type:"read-only-storage"}},{binding:14,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}}]}),je=(this[se(789)]=this.device[se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:1,resource:{buffer:this[se(680)]}},{binding:2,resource:{buffer:this[se(666)]}},{binding:3,resource:{buffer:this.meshVmBuffer}},{binding:4,resource:this.samplerNearest},{binding:5,resource:{buffer:this[se(449)]}},{binding:6,resource:this.albedo_Texture[se(1045)]()},{binding:7,resource:this[se(978)].createView()},{binding:8,resource:this[se(777)][se(1045)]()},{binding:9,resource:{buffer:this.lightBodiesSpace_VmBuffer}},{binding:10,resource:{buffer:this.lightBodiesSpaceAdd_VmBuffer}},{binding:11,resource:{buffer:this[se(717)]}},{binding:12,resource:{buffer:this[se(569)]}},{binding:13,resource:{buffer:this[se(580)]}},{binding:14,resource:{buffer:this[se(792)]}}]}),this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage.VERTEX|GPUShaderStage[se(625)],buffer:{type:"read-only-storage"}}]})),Ft=(this.meshRenderBindGroup_renderIndex=this[se(1099)][se(866)]({layout:je,entries:[{binding:0,resource:{buffer:this[se(688)]}}]}),this[se(1099)].createPipelineLayout({bindGroupLayouts:this[se(1035)]?[ve]:[ve,je]})),kt=Y[se(1022)];this.multiDrawIndirect?kt=kt[se(926)]("@group(1) @binding(0) var<storage,read> renderIndex: array<u32>;",""):(kt=kt[se(926)]("let ri = vec2<u32>(input.instanceIndex,input.vertexIndex);",se(1009)),kt+=se(1093));var bt=this[se(1099)][se(720)]({code:q[se(1022)]+kt});this.meshRenderPipeline=this[se(1099)][se(950)]({layout:Ft,vertex:{module:bt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:bt,entryPoint:se(1048),targets:[{format:this[se(1102)][se(980)]},{format:this[se(632)][se(980)]},{format:this[se(793)][se(980)]},{format:this.meshRender_prev_SSP_Texture[se(980)]}],constants:{spaceTotalCount:this[se(1107)],spaceUnit:this[se(598)]}},primitive:{topology:"triangle-list",frontFace:se(905),cullMode:se(590)},depthStencil:{format:this[se(472)][se(980)],depthCompare:se(753),depthWriteEnabled:!0}}),this[se(974)]={colorAttachments:[{view:this[se(1102)][se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)},{view:this[se(632)][se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)},{view:this.meshRenderInstancePtrTexture[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)},{view:this[se(631)][se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}],depthStencilAttachment:{view:this.meshRenderDepthTexture[se(1045)](),depthClearValue:0,depthLoadOp:"clear",depthStoreOp:se(600),depthReadOnly:!1},timestampWrites:{querySet:this[se(883)],beginningOfPassWriteIndex:4,endOfPassWriteIndex:5}},this[se(1035)]||((bt=this[se(1099)][se(968)]({colorFormats:[this.meshRenderPositionTexture.format,this[se(632)][se(980)],this[se(793)][se(980)],this[se(631)][se(980)]],depthStencilFormat:this[se(472)][se(980)]})).setBindGroup(0,this[se(789)]),bt[se(501)](this[se(1087)]),bt[se(689)](1,this[se(481)]),bt[se(1044)](this[se(812)],0),this[se(874)]=bt.finish())}[o(939)](se){var ve=o;se[ve(913)](this.meshRenderAtomic_InitData_VmBuffer,0,this[ve(717)],0,16),se[ve(913)](this[ve(1056)],0,this[ve(907)],0,this[ve(907)].size),se=se[ve(675)](this[ve(974)]),this[ve(1035)]?(se.setBindGroup(0,this[ve(789)]),se[ve(501)](this[ve(1087)]),se[ve(1035)](this[ve(688)],0,393216,this.indirect_render_VmBuffer,0)):se[ve(834)]([this[ve(874)]]),se[ve(482)]()}[o(411)](){var se=o;this[se(500)]=this[se(1099)][se(656)]({size:[this[se(540)],this[se(540)],1],format:se(958),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.STORAGE_BINDING}),this.renderShadowDepthTexture=this[se(1099)].createTexture({size:[this[se(540)],this[se(540)],1],usage:GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)],format:se(435)}),this[se(707)]=this.renderShadowDepthTexture[se(1045)]({dimension:se(429),baseArrayLayer:0,arrayLayerCount:1});let ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:se(629)}},{binding:3,visibility:GPUShaderStage.VERTEX,buffer:{type:se(629)}},{binding:4,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}},{binding:5,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}}]}),je=(this[se(414)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:1,resource:{buffer:this[se(873)]}},{binding:2,resource:{buffer:this[se(680)]}},{binding:3,resource:{buffer:this.instanceVmBuffer}},{binding:4,resource:{buffer:this[se(1092)]}},{binding:5,resource:{buffer:this[se(580)]}}]}),this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(539)]|GPUShaderStage.FRAGMENT,buffer:{type:se(629)}}]})),Ft=(this.renderShadowBindGroup_renderIndex=this[se(1099)][se(866)]({layout:je,entries:[{binding:0,resource:{buffer:this[se(688)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:this[se(1035)]?[ve]:[ve,je]})),kt=J[se(1022)];this[se(1035)]?kt=kt[se(926)](se(904),""):(kt=kt[se(926)](se(929),se(1009)),kt+=se(1093));var bt=this[se(1099)][se(720)]({code:q[se(1022)]+kt+O.code});this[se(1104)]=this[se(1099)].createRenderPipeline({label:se(1104),layout:Ft,vertex:{module:bt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:bt,entryPoint:"frag_main",targets:[{format:this[se(500)][se(980)]}],constants:{}},primitive:{topology:se(1062),frontFace:se(905),cullMode:se(590)},depthStencil:{format:this[se(559)][se(980)],depthCompare:se(753),depthWriteEnabled:!0}}),this.renderShadowRenderPassDescriptor={colorAttachments:[{view:this.renderShadowInstancePtrTexture.createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}],depthStencilAttachment:{view:this.renderShadowDepthView1,depthClearValue:0,depthLoadOp:se(971),depthStoreOp:"store",depthReadOnly:!1}},this[se(1035)]||((bt=this[se(1099)][se(968)]({colorFormats:[this[se(500)][se(980)]],depthStencilFormat:this[se(559)][se(980)]}))[se(689)](0,this[se(414)]),bt[se(501)](this.renderShadowPipeline),bt[se(689)](1,this.renderShadowBindGroup_renderIndex),bt[se(1044)](this[se(812)],0),this[se(496)]=bt[se(1091)]())}[o(537)](se){var ve=o;this.renderShadowRenderPassDescriptor[ve(1052)][ve(703)]=this[ve(707)],se=se[ve(675)](this[ve(1049)]),this[ve(1035)]?(se.setBindGroup(0,this[ve(414)]),se.setPipeline(this.renderShadowPipeline),se[ve(1035)](this[ve(688)],0,393216,this[ve(812)],0)):se[ve(834)]([this[ve(496)]]),se[ve(482)]()}[o(480)](){var se=o;this.dynamicSpaceIndirect_VmBuffer=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(526)]|GPUBufferUsage[se(724)]}),this[se(1099)][se(704)][se(1039)](this[se(596)],0,new Uint32Array([1,1,1,0]));var ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}}]}),ve=(this[se(691)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(907)]}},{binding:1,resource:{buffer:this[se(701)]}}]}),this.device[se(917)]({bindGroupLayouts:[ve]}));this[se(1007)]=this.device.createComputePipeline({layout:ve,compute:{module:this[se(1099)][se(720)]({code:j[se(1022)]}),entryPoint:se(817),constants:{spaceTotalCount:this[se(1107)],lightBodiesSize:this.lightBodiesSize}}})}DynamicSpace(se){var ve=o;se[ve(913)](this[ve(907)],4,this[ve(596)],0,4),se=se[ve(911)](),se[ve(689)](0,this.dynamicSpaceComputeBingGroup),se[ve(501)](this.dynamicSpaceComputePipeline),se[ve(538)](this.dynamicSpaceIndirect_VmBuffer,0),se[ve(482)]()}[o(1106)](){var se=o;this[se(620)]=this[se(1099)][se(690)]({size:4*this[se(944)].length,usage:GPUBufferUsage[se(844)]|GPUBufferUsage.COPY_DST}),this.device[se(704)][se(1039)](this[se(620)],0,this.ssrReflections_Uniform_DataView);var ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(631)][se(980)],access:se(633)}},{binding:3,visibility:GPUShaderStage[se(528)],storageTexture:{format:this.meshRender_packData_Texture[se(980)],access:"read-only"}},{binding:4,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(649)}},{binding:5,visibility:GPUShaderStage[se(528)],sampler:{type:se(447)}},{binding:6,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:7,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:8,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(571)][se(980)],access:"write-only"}}]});this[se(961)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(620)]}},{binding:2,resource:this[se(631)][se(1045)]()},{binding:3,resource:this[se(632)].createView()},{binding:4,resource:this[se(472)][se(1045)]()},{binding:5,resource:this[se(636)]},{binding:6,resource:this.finalColor_Texture[se(1045)]()},{binding:7,resource:this[se(1105)].createView()},{binding:8,resource:this.ssr_color_accumulated_Texture[se(1045)]()}]}),this[se(1095)]=this[se(1099)].createComputePipeline({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),compute:{module:this.device.createShaderModule({code:ae[se(1022)]+Se.code}),entryPoint:se(817),constants:{}}})}[o(428)](se){var ve=o;this[ve(944)][ve(895)](this[ve(1031)][ve(1008)]),this[ve(944)][ve(895)](this.fig[ve(838)],16),this[ve(944)][ve(895)](this[ve(1031)][ve(640)],32),this[ve(944)][ve(895)](this[ve(1031)][ve(1024)],48),this.ssrReflections_Uniform_DataView[64]=this.fig[ve(509)][ve(1108)],this.ssrReflections_Uniform_DataView[65]=this[ve(1031)].cameraParameter.far,this[ve(944)][66]=5,this[ve(944)][67]=2e3,this.ssrReflections_Uniform_DataView[68]=.5,this[ve(944)][69]=.2,this[ve(944)][70]=.95,this.ssrReflections_Uniform_DataView[71]=20,this[ve(944)][72]=1,this.ssrReflections_Uniform_DataView[73]=.9,this[ve(697)][74]=4294967295*Math.random(),this[ve(697)][75]=4294967295*Math[ve(1080)](),this.ssrReflections_Uniform_DataViewU32[76]=4294967295*Math[ve(1080)](),this[ve(1099)].queue[ve(1039)](this.ssrReflections_Uniform_VmBuffer,0,this.ssrReflections_Uniform_DataView);var je=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}});je[ve(689)](0,this[ve(961)]),je[ve(501)](this.ssrReflectionsComputePipeline),je.dispatchWorkgroups(this[ve(752)],this[ve(899)]),je.end(),se[ve(603)]({texture:this.ssr_color_accumulated_Texture},{texture:this.ssr_color_Texture},{width:this[ve(1105)][ve(412)],height:this.ssr_color_Texture[ve(864)]})}ImageBlurIntend(){var se=o;this[se(891)]=this[se(1099)].createComputePipeline({layout:se(772),compute:{module:this.device[se(720)]({code:ce.code})}});var ve,je,Ft=this[se(1099)][se(656)]({size:{width:this[se(504)].canvas.width,height:this.context[se(1088)].height},format:this[se(1019)],usage:GPUTextureUsage.COPY_DST|GPUTextureUsage[se(1013)]|GPUTextureUsage[se(467)]}),kt=Ft,bt=(ve=this[se(1099)].createBuffer({size:4,mappedAtCreation:!0,usage:GPUBufferUsage[se(844)]}),new Uint32Array(ve.getMappedRange())[0]=0,ve[se(484)](),je=this[se(1099)].createBuffer({size:4,mappedAtCreation:!0,usage:GPUBufferUsage.UNIFORM}),new Uint32Array(je[se(827)]())[0]=1,je[se(484)](),this[se(1099)].createBuffer({size:8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage[se(844)]}));this[se(1099)][se(704)][se(1039)](bt,0,new Uint32Array([this[se(630)],this[se(881)]])),this.blur_computeConstants_ComputeBingGroup=this[se(1099)][se(866)]({layout:this[se(891)][se(763)](0),entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:{buffer:bt}}]}),this[se(591)]=this.device.createBindGroup({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:kt[se(1045)]()},{binding:2,resource:Ft[se(1045)]()},{binding:3,resource:{buffer:ve}}]}),this[se(418)]=this[se(1099)][se(866)]({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:Ft[se(1045)]()},{binding:2,resource:kt.createView()},{binding:3,resource:{buffer:je}}]})}[o(529)](se){var ve=o;if(0<this[ve(630)]){var je=se[ve(911)]();je.setPipeline(this.blurComputePipeline),je[ve(689)](0,this[ve(1027)]);for(let Ft=0;Ft<this[ve(630)];++Ft)je[ve(689)](1,this[ve(591)]),je[ve(624)](Math[ve(552)](this[ve(504)][ve(1088)][ve(412)]/this.blur_blockDim),Math[ve(552)](this[ve(504)].canvas[ve(864)]/this[ve(533)][1])),je[ve(689)](1,this[ve(418)]),je[ve(624)](Math[ve(552)](this[ve(504)][ve(1088)][ve(412)]/this.blur_blockDim),Math[ve(552)](this[ve(504)][ve(1088)].height/this[ve(533)][1]));je[ve(482)]()}}[o(1032)](){var se=o;this[se(982)]=this[se(1099)][se(690)]({size:4*this[se(518)][se(800)],usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]});var ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.FRAGMENT,sampler:{type:"filtering"}},{binding:1,visibility:GPUShaderStage.FRAGMENT,sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:4,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:5,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(445),viewDimension:"2d"}},{binding:6,visibility:GPUShaderStage[se(625)],texture:{sampleType:"uint",viewDimension:"2d"}},{binding:7,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}}]}),je=(this[se(851)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:this.samplerLinear},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(502)][se(1045)]()},{binding:4,resource:this[se(966)][se(1045)]()},{binding:5,resource:this[se(632)].createView()},{binding:6,resource:this[se(793)][se(1045)]()},{binding:7,resource:{buffer:this[se(982)]}}]}),this[se(1099)].createShaderModule({code:pe.code}));this[se(841)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),vertex:{module:je,entryPoint:se(744),buffers:[]},fragment:{module:je,entryPoint:se(1048),targets:[{format:this.presentationFormat}]},primitive:{topology:se(1062),frontFace:se(905),cullMode:se(590)}}),this[se(791)]={colorAttachments:[{view:this[se(504)][se(696)]()[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}]}}[o(686)](se){var ve=o;!this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(995)]||this[ve(1031)][ve(835)][ve(953)].mouse.downLeftX==this.fig[ve(835)][ve(953)].mouse[ve(507)]&&this.fig[ve(835)].status[ve(450)][ve(679)]==this[ve(1031)][ve(835)][ve(953)][ve(450)].clientY?this[ve(518)][ve(895)]([0,0,0,0]):this[ve(518)][ve(895)]([(this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(507)]-this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(715)])/this.finalColor_Texture[ve(412)],(this[ve(1031)][ve(835)].status[ve(450)][ve(783)]-this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(679)])/this[ve(502)][ve(864)],1]),this[ve(1099)][ve(704)][ve(1039)](this[ve(982)],0,this[ve(518)]),this[ve(791)][ve(566)][0][ve(703)]=this.context[ve(696)]()[ve(1045)](),se=se[ve(675)](this[ve(791)]),se.setPipeline(this.finalDisplayPipeline),se[ve(689)](0,this[ve(851)]),se[ve(729)](6),se[ve(482)]()}[o(822)](){var se=o;this.edgeStrength_finalColor_Texture=this[se(1099)].createTexture({dimension:"2d",size:[this.finalColor_Texture[se(412)],this[se(502)][se(864)],1],format:this.presentationFormat,usage:GPUTextureUsage[se(526)]|GPUTextureUsage[se(1013)]|GPUTextureUsage[se(467)]}),this.edgeStrength_Uniform_VmBuffer=this[se(1099)][se(690)]({size:4*this.edgeStrength_Uniform_DataView[se(800)],usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]});var ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(966)][se(980)],access:se(714)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(632)][se(980)],access:se(633)}}]});this.edgeStrengthComputeBingGroup=this[se(1099)].createBindGroup({layout:ve,entries:[{binding:0,resource:{buffer:this[se(426)]}},{binding:1,resource:this.edgeStrength_finalColor_Texture.createView()},{binding:2,resource:this[se(632)][se(1045)]()}]}),this[se(862)]=this[se(1099)][se(1101)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),compute:{module:this[se(1099)].createShaderModule({code:q.code+Oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(444)](se){var ve=o;se=se[ve(911)](),se[ve(501)](this[ve(862)]),se[ve(689)](0,this[ve(996)]),se.dispatchWorkgroups(this[ve(752)],this[ve(899)]),se[ve(482)]()}[o(1001)](){var se=o;this[se(876)]=this[se(1099)][se(656)]({dimension:"2d",size:[3600,1800,50],format:se(833),usage:GPUTextureUsage[se(526)]|GPUTextureUsage[se(467)]}),fetch(se(936))[se(442)](Ft=>{var kt=se;Ft[kt(871)]()[kt(442)](bt=>{var lt=kt;bt=new Float32Array(bt),this[lt(1099)][lt(704)].writeTexture({texture:this.volumeRender_3dData_Texture},bt,{bytesPerRow:7200,rowsPerImage:1800},[3600,1800,50])})});var ve=this[se(1099)][se(741)]({magFilter:se(865),minFilter:se(865),mipmapFilter:"linear",maxAnisotropy:1}),je=(this[se(856)]=this[se(1099)][se(690)]({size:4*this[se(543)][se(800)],usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]}),this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(502)][se(980)],access:se(714)}},{binding:3,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(1029),viewDimension:se(429)}},{binding:4,visibility:GPUShaderStage[se(528)],sampler:{type:se(447)}}]}));this[se(582)]=this[se(1099)][se(866)]({layout:je,entries:[{binding:0,resource:{buffer:this.volumeRender_Uniform_VmBuffer}},{binding:1,resource:{buffer:this[se(1068)]}},{binding:2,resource:this[se(502)][se(1045)]()},{binding:3,resource:this[se(876)].createView()},{binding:4,resource:ve}]}),this[se(615)]=this[se(1099)][se(1101)]({layout:this.device[se(917)]({bindGroupLayouts:[je]}),compute:{module:this[se(1099)].createShaderModule({code:Le[se(1022)]+q[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(440)](se){var ve=o;this[ve(543)][ve(895)](this[ve(1031)][ve(640)]),this.volumeRender_Uniform_DataView[ve(895)](this[ve(1031)][ve(587)],16),this[ve(1099)].queue[ve(1039)](this[ve(856)],0,this.volumeRender_Uniform_DataView),se=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se.setPipeline(this[ve(615)]),se[ve(689)](0,this.volumeRenderComputeBingGroup),se[ve(624)](this.readMesh_dispatchWorkgroupsX,this[ve(899)]),se[ve(482)]()}[o(889)](){var se=o;this.streamRender_Uniform_DataView[se(895)]([3600,1800,50],38),this[se(945)]=this[se(1099)][se(690)]({size:1296e6,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]}),fetch(se(1073)).then(je=>{var Ft=se;je[Ft(871)]()[Ft(442)](kt=>{var bt=Ft;this[bt(945)].size,kt[bt(829)],this[bt(1099)][bt(704)][bt(1039)](this[bt(945)],0,kt)})}),this.streamRender_Uniform_VmBuffer=this[se(1099)].createBuffer({size:4*this[se(667)].length,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]}),this[se(946)]=this.device[se(690)]({size:this[se(793)].width*this[se(793)][se(864)]*4*4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]}),this[se(780)]=this[se(1099)].createBuffer({size:this[se(793)].width*this[se(793)][se(864)]*4*4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]});var ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:"read-only-storage"}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:5,visibility:GPUShaderStage[se(528)],storageTexture:{format:this.finalColor_Texture[se(980)],access:se(714)}}]});this[se(494)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(843)]}},{binding:1,resource:{buffer:this.scene_VmBuffer}},{binding:2,resource:{buffer:this.streamRender_3dData_VmBuffer}},{binding:3,resource:{buffer:this[se(946)]}},{binding:4,resource:{buffer:this[se(780)]}},{binding:5,resource:this[se(502)].createView()}]}),this[se(570)]=this[se(1099)].createComputePipeline({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),compute:{module:this[se(1099)][se(720)]({code:Ve.code+q.code+ae[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(949)](se){var ve=o;this.streamRender_Uniform_DataView.set(this.fig.projectToPixelMatrix),this[ve(667)][ve(895)](this[ve(1031)].viewMatrix,16),this[ve(667)][ve(895)]([.4,5,.95],32),this[ve(719)][ve(895)]([4294967295*Math.random(),4294967295*Math[ve(1080)](),4294967295*Math[ve(1080)]()],35),this[ve(1099)][ve(704)].writeBuffer(this[ve(843)],0,this.streamRender_Uniform_DataView),se=se[ve(911)]({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ve(501)](this[ve(570)]),se[ve(689)](0,this[ve(494)]),se[ve(624)](this[ve(752)],this[ve(899)]),se[ve(482)]()}[o(1010)](){var se=o,ve=this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:"filtering"}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:"depth",viewDimension:se(429)}}]}),je=(this[se(957)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(707)]}]}),this[se(1099)][se(720)]({code:ue[se(1022)]})),ve=(this[se(852)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),vertex:{module:je,entryPoint:se(744),buffers:[]},fragment:{module:je,entryPoint:se(1048),targets:[{format:this[se(1019)]}]},primitive:{topology:se(1062),frontFace:se(905),cullMode:"back"}}),this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:"filtering"}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}}]})),je=(this[se(727)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this.samplerNearest},{binding:2,resource:this.finalColor_Texture[se(1045)]()}]}),this[se(1099)][se(720)]({code:he[se(1022)]})),ve=(this[se(916)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),vertex:{module:je,entryPoint:se(744),buffers:[]},fragment:{module:je,entryPoint:se(1048),targets:[{format:this.presentationFormat}]},primitive:{topology:se(1062),frontFace:"ccw",cullMode:"back"}}),this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:"non-filtering"}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}}]})),je=(this[se(830)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(486)][se(1017)].createView()}]}),this[se(1099)].createShaderModule({code:fe[se(1022)]})),ve=(this[se(641)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),vertex:{module:je,entryPoint:se(744),buffers:[]},fragment:{module:je,entryPoint:"frag_main",targets:[{format:this[se(1019)]}]},primitive:{topology:"triangle-list",frontFace:se(905),cullMode:se(590)}}),this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}}]})),je=(this.renderDebugTest4BindGroup=this.device[se(866)]({layout:ve,entries:[{binding:0,resource:this.samplerLinear},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(869)].alpha_color_Texture.createView()}]}),this[se(1099)][se(720)]({code:de[se(1022)]}));this.renderDebugTest4Pipeline=this[se(1099)].createRenderPipeline({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),vertex:{module:je,entryPoint:se(744),buffers:[]},fragment:{module:je,entryPoint:se(1048),targets:[{format:this[se(1019)]}]},primitive:{topology:"triangle-list",frontFace:"ccw",cullMode:se(590)}}),this[se(430)]={colorAttachments:[{view:this.context1[se(696)]().createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}]}}RenderDebugTest(se){var ve=o;this.renderDebugTestRenderPassDescriptor[ve(566)][0].view=this.context1[ve(696)]()[ve(1045)]();var je=se[ve(675)](this[ve(430)]),je=(je[ve(501)](this[ve(852)]),je[ve(689)](0,this.renderDebugTest1BindGroup),je[ve(729)](6),je[ve(482)](),this[ve(430)][ve(566)][0][ve(703)]=this[ve(733)][ve(696)]().createView(),se.beginRenderPass(this[ve(430)])),je=(je[ve(501)](this[ve(916)]),je.setBindGroup(0,this[ve(727)]),je[ve(729)](6),je[ve(482)](),this[ve(430)][ve(566)][0][ve(703)]=this.context3[ve(696)]()[ve(1045)](),se[ve(675)](this.renderDebugTestRenderPassDescriptor)),je=(je[ve(501)](this[ve(641)]),je.setBindGroup(0,this.renderDebugTest3BindGroup),je.draw(6),je[ve(482)](),this[ve(430)].colorAttachments[0][ve(703)]=this[ve(657)][ve(696)]()[ve(1045)](),se.beginRenderPass(this[ve(430)]));je[ve(501)](this[ve(989)]),je[ve(689)](0,this.renderDebugTest4BindGroup),je[ve(729)](6),je.end()}RenderToCanvasIntend(){var se=o;this[se(659)]=this[se(1099)][se(690)]({size:12,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]});var ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:"non-filtering"}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:3,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:4,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}},{binding:5,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}}]}),ve=(this[se(928)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this[se(854)]},{binding:2,resource:this.finalColor_Texture[se(1045)]()},{binding:3,resource:this[se(1102)][se(1045)]()},{binding:4,resource:{buffer:this[se(659)]}},{binding:5,resource:{buffer:this[se(1068)]}}]}),this.device[se(917)]({bindGroupLayouts:[ve]})),je=this[se(1099)][se(720)]({code:q[se(1022)]+$e.code});this[se(805)]=this[se(1099)].createRenderPipeline({label:se(781),layout:ve,vertex:{module:je,entryPoint:"vert_main",buffers:[]},fragment:{module:je,entryPoint:se(1048),targets:[{format:this.presentationFormat},{format:this[se(1019)]}],constants:{canvasSizeWidth:this[se(472)][se(412)],canvasSizeHeight:this[se(472)][se(864)]}},primitive:{topology:se(1062),frontFace:"ccw",cullMode:"back"}}),this[se(660)]={label:se(1098),colorAttachments:[{view:this[se(504)].getCurrentTexture()[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:"store"},{view:this[se(506)].getCurrentTexture()[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:"store"}]}}RenderToCanvas(se){var ve=o;this[ve(1004)][0]=this[ve(1031)][ve(672)][ve(859)].frameState.useLogDepth?1:0,this[ve(1004)][1]=this[ve(1031)][ve(672)].scene.context[ve(420)][ve(1003)].x,this[ve(1004)][2]=this.fig[ve(672)][ve(859)][ve(504)][ve(420)][ve(794)],this[ve(1099)][ve(704)][ve(1039)](this[ve(659)],0,this[ve(1004)]),this[ve(660)][ve(566)][0][ve(703)]=this[ve(504)][ve(696)]()[ve(1045)](),this.renderToCanvasRenderPassDescriptor.colorAttachments[1].view=this[ve(506)][ve(696)]()[ve(1045)](),se=se.beginRenderPass(this[ve(660)]),se.setPipeline(this.renderToCanvasPipeline),se[ve(689)](0,this[ve(928)]),se.draw(6),se[ve(482)]()}[o(451)](){var se=o;this[se(888)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(844)]|GPUBufferUsage.COPY_DST}),this.voxelRender_Indirect_VmBuffer=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(724)]}),this[se(1099)][se(704)][se(1039)](this[se(951)],0,new Uint32Array([this.spaceTotalCount/10-200,1,100,0]));var je=this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)]|GPUShaderStage[se(539)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(625)]|GPUShaderStage[se(539)],buffer:{type:"uniform"}},{binding:2,visibility:GPUShaderStage[se(625)]|GPUShaderStage.VERTEX,buffer:{type:se(629)}}]}),je=(this[se(684)]=this.device.createBindGroup({layout:je,entries:[{binding:0,resource:{buffer:this.voxelRender_Uniform_VmBuffer}},{binding:1,resource:{buffer:this.scene_VmBuffer}},{binding:2,resource:{buffer:this[se(701)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[je]})),ve=this[se(1099)][se(720)]({code:q[se(1022)]+Ce[se(1022)]}),je={layout:je,vertex:{module:ve,entryPoint:"vert_main",buffers:[],constants:{spaceUnit:this[se(598)],lightBodiesSize:this[se(795)]}},fragment:{module:ve,entryPoint:se(1048),targets:[{format:this[se(1019)]}]},primitive:{topology:"point-list",frontFace:se(905),cullMode:se(863)}};this[se(588)]=this[se(1099)][se(950)](je),this[se(1051)]={colorAttachments:[{view:this[se(504)][se(696)]().createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}]}}[o(814)](se){var ve=o;this[ve(1099)][ve(704)][ve(1039)](this[ve(888)],0,this[ve(681)]),this[ve(1051)].colorAttachments[0].view=this.context[ve(696)]()[ve(1045)](),se=se.beginRenderPass(this[ve(1051)]),se.setPipeline(this.voxelRenderPipeline),se.setBindGroup(0,this[ve(684)]),se[ve(1044)](this[ve(951)],0),se[ve(482)]()}[o(806)](se,ve){return new Promise((je,Ft)=>{var kt=wh,bt;this[kt(983)]?(this[kt(983)]=!1,(bt=this.device[kt(981)]())[kt(809)]({texture:this[kt(793)],mipLevel:0,origin:{x:se,y:ve},aspect:kt(768)},{buffer:this[kt(497)],offset:0,bytesPerRow:256*Math[kt(552)](4*this[kt(793)][kt(412)]/256),rowsPerImage:1},{width:1,height:1}),this.device.queue.submit([bt[kt(1091)]()]),this[kt(497)][kt(705)](GPUMapMode[kt(470)]).then(()=>{var lt=kt,ot=this[lt(497)][lt(827)](0,4),ot=new Uint32Array(ot)[0];this[lt(497)].unmap(),this.readPickId_noLocking=!0,je(ot)})):Ft()})}[o(669)](se,ve){let je=(Ft,kt)=>{var bt=wh,lt=this[bt(1099)][bt(981)]();lt[bt(809)]({texture:this[bt(1102)],mipLevel:0,origin:{x:se,y:ve},aspect:bt(768)},{buffer:this.readPickPosition_VmBuffer,offset:0,bytesPerRow:256*Math[bt(552)](4*this[bt(1102)][bt(412)]*4/256),rowsPerImage:1},{width:1,height:1}),this.device[bt(704)][bt(635)]([lt[bt(1091)]()]),this.readPickPosition_VmBuffer[bt(705)](GPUMapMode[bt(470)])[bt(442)](()=>{var ot=bt,tt=this[ot(774)][ot(827)](0,16),tt=Array[ot(1050)](new Float32Array(tt));this[ot(774)][ot(484)](),this.readPickPosition_noLocking=!0,tt[3]!=0&&D[ot(987)](tt,this[ot(1031)][ot(910)],this[ot(979)]),Ft(this.lastPickPositionValue)})};return new Promise((Ft,kt)=>{var bt=wh;this[bt(837)]?(this[bt(837)]=!1,je(Ft)):setTimeout(()=>{je(Ft)},10)})}[o(771)](){var se=o,ve;this[se(872)]&&this.fig.directData_Heartbeat&&(this[se(872)]=!1,this[se(1031)][se(606)]=!1,(ve=this.device[se(981)]())[se(913)](this[se(1056)],0,this[se(788)],0,4),this[se(1117)](ve),ve[se(913)](this.instancesArea_atomicData_VmBuffer,0,this[se(556)],0,4),ve[se(913)](this[se(985)],0,this[se(556)],4,this[se(985)][se(605)]),this.device.queue[se(635)]([ve[se(1091)]()]),this.pendingRequest_mesh_read_VmBuffer[se(705)](GPUMapMode.READ)[se(442)](()=>{var je=se,Ft=this[je(556)][je(827)](0,this[je(556)].size)[je(712)](0);this.fig[je(1067)].postMessage({msgType:je(1071),buf:Ft},[Ft]),this[je(556)].unmap(),this[je(872)]=!0,setTimeout(()=>{this.need_read_renderMaterial=!0},500)}))}[o(756)](){var se=o,ve=this[se(1099)][se(981)]();ve.copyBufferToBuffer(this.zeroVmBuffer,0,this.meshRender_transparentColorData_VmBuffer,0,this[se(569)][se(605)]),this[se(1099)][se(704)][se(635)]([ve[se(1091)]()])}[o(991)](){var se=o;this[se(771)]();var ve=this[se(1099)][se(981)]();this[se(462)](ve),this[se(939)](ve),this[se(537)](ve),this[se(1031)].gi&&this[se(824)](ve),ve.copyBufferToBuffer(this[se(1056)],0,this[se(604)],0,this[se(604)][se(605)]),this[se(725)](ve),this[se(965)]&&this[se(1031)].kj&&ve[se(913)](this[se(946)],0,this[se(459)],0,128),this[se(1e3)]&&this[se(1031)][se(642)]&&ve[se(913)](this.lightInfo_VmBuffer,32,this.readTemp_VmBuffer2,0,64),this[se(808)]&&this[se(954)]&&ve[se(913)](this[se(920)],0,this.renderMaterial_read_VmBuffer,0,this[se(920)][se(605)]),this[se(486)].Render(ve),this[se(869)][se(991)](ve),globalThis[se(589)]&&this[se(973)](ve),this.fig[se(672)]?this[se(465)](ve):this[se(686)](ve),this[se(1031)].ksh&&this[se(814)](ve),this[se(710)]&&this.fig.xn&&(ve[se(803)](this[se(883)],0,10,this[se(692)],0),ve.copyBufferToBuffer(this[se(692)],0,this.timestampQueryResultBuffer,0,this.timestampQueryResultBuffer.size)),this[se(1099)][se(704)][se(635)]([ve[se(1091)]()]),this[se(808)]&&this.need_read_renderMaterial&&(this[se(808)]=!1,this[se(954)]=!1,this[se(1066)].mapAsync(GPUMapMode[se(470)])[se(442)](()=>{var je=se,Ft=this[je(1066)][je(827)](0,this[je(920)][je(605)]).slice(0);this[je(1066)][je(484)](),this[je(1031)][je(1067)][je(564)]({msgType:je(1115),buf:Ft},[Ft]),this.allow_read_renderMaterial=!0})),this[se(965)]&&this[se(1031)].kj&&(this[se(1031)].kj=!1,this[se(965)]=!1,this.readTemp_VmBuffer[se(705)](GPUMapMode[se(470)])[se(442)](()=>{var je=se,Ft=this[je(459)][je(827)](0,128),Ft=new Float32Array(Ft);console[je(826)](Ft),this[je(459)][je(484)](),this[je(965)]=!0})),this[se(1e3)]&&this[se(1031)][se(642)]&&(this.readTemp_noLocking2=!1,this[se(959)].mapAsync(GPUMapMode[se(470)]).then(()=>{var je=se,Ft=this[je(959)][je(827)](0,10485760),Ft=(new Uint32Array(Ft),new Float32Array(Ft));console[je(826)](Ft),this.readTemp_VmBuffer2[je(484)](),this[je(1e3)]=!0})),this[se(710)]&&this[se(1031)].xn&&(this[se(710)]=!1,this[se(627)][se(705)](GPUMapMode[se(470)])[se(442)](()=>{var je=se,Ft=new BigUint64Array(this[je(627)][je(827)]());console[je(826)](je(421),(Number(Ft[1]-Ft[0])/1e3/1e3)[je(942)](2),je(646),(Number(Ft[3]-Ft[2])/1e3/1e3)[je(942)](2),"    MeshRender",(Number(Ft[5]-Ft[4])/1e3/1e3)[je(942)](2),je(990),(Number(Ft[7]-Ft[6])/1e3/1e3)[je(942)](2),je(1065),(Number(Ft[9]-Ft[8])/1e3/1e3)[je(942)](2)),this[je(627)][je(484)](),this[je(710)]=!0}))}}class Rt{get[o(1046)](){var se=o;return this[se(845)]}set[o(1046)](se){var ve=o;this[ve(845)]=D[ve(760)](se)}get[o(723)](){return this._target}set[o(723)](se){var ve=o;this[ve(562)]=D[ve(760)](se)}get[o(796)](){var se=o,ve=D[se(665)](0,0,-1);return D[se(802)](ve,this[se(1116)])}constructor(se,ve){var je=o;if(this[je(845)]=D[je(807)](0,0,0),this[je(562)]=D[je(807)](1,1,1),this[je(1116)]=V[je(626)](),this.worldMatrix=M[je(626)](),this[je(948)]=.2,this.zoomSpeed=3,this[je(476)]=.1,this[je(953)]={keyboard:{forward:!1,backward:!1,left:!1,right:!1,up:!1,down:!1,leftRoll:!1,rightRoll:!1,leftHeading:!1,rightHeading:!1,upPitch:!1,downPitch:!1,controlLeft:!1,shiftLeft:!1,speedUp:!1,speedDown:!1},mouse:{movementX:0,movementY:0,scroll:0,left:!1,right:!1,wheel:!1,button:0,downLeftX:0,downLeftY:0,upLeftX:0,upLeftY:0,downRightX:0,downRightY:0,upRightX:0,upRightY:0,clientX:0,clientY:0},downLeft_position:D[je(807)](),upLeft_position:D[je(807)]()},se){let Ft=(bt,lt)=>{var ot=je;switch(bt[ot(1022)]){case"KeyW":this.status[ot(521)][ot(848)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(816):this[ot(953)].keyboard[ot(1057)]=lt,bt[ot(1096)](),bt.stopPropagation();break;case ot(1090):this[ot(953)][ot(521)].left=lt,bt[ot(1096)](),bt.stopPropagation();break;case"KeyD":this[ot(953)][ot(521)][ot(1034)]=lt,bt.preventDefault(),bt[ot(517)]();break;case ot(755):this[ot(953)][ot(521)].up=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(855):this.status[ot(521)].down=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(901):this[ot(953)][ot(521)][ot(1058)]=lt,bt.preventDefault(),bt.stopPropagation();break;case"KeyO":this[ot(953)][ot(521)][ot(693)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(446):case ot(1023):this[ot(953)][ot(521)][ot(427)]=lt,bt.preventDefault(),bt[ot(517)]();break;case"KeyK":case ot(594):this[ot(953)][ot(521)][ot(1061)]=lt,bt[ot(1096)](),bt.stopPropagation();break;case ot(1086):case ot(532):this[ot(953)][ot(521)][ot(773)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(434):case ot(519):this[ot(953)][ot(521)][ot(861)]=lt,bt.preventDefault(),bt.stopPropagation();break;case"ControlLeft":this[ot(953)].keyboard[ot(511)]=lt;break;case ot(970):this.status[ot(521)][ot(478)]=lt;break;case"KeyC":this[ot(953)][ot(521)][ot(651)]=lt;break;case ot(464):this.status.keyboard[ot(1030)]=lt}},kt=(window[je(801)](je(499),bt=>Ft(bt,!0)),window[je(801)]("keyup",bt=>Ft(bt,!1)),se[je(801)]("contextmenu",function(bt){var lt=je;bt[lt(1096)]()}),(bt,lt)=>{var ot=je;switch(this.status[ot(450)][ot(988)]=bt[ot(988)],bt.button){case 0:(this[ot(953)][ot(450)][ot(995)]=lt)?(this[ot(953)][ot(450)][ot(715)]=bt.clientX,this[ot(953)][ot(450)][ot(679)]=bt.clientY,ve[ot(577)](bt[ot(507)],bt[ot(783)])[ot(442)](tt=>{var ze=ot,ct;this[ze(953)][ze(416)]=D[ze(807)](tt[0],tt[1],tt[2]),tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&this.status.keyboard[ze(511)]&&(tt=this[ze(953)][ze(416)],ct=D.subtract(this.position,tt),D.normalize(ct,ct),ct=D.add(tt,D[ze(708)](ct,20)),this.setTargetAndPosition(tt,ct))})):(this.status[ot(450)][ot(424)]=bt.clientX,this.status[ot(450)][ot(880)]=bt.clientY,ve[ot(577)](bt[ot(507)],bt.clientY).then(tt=>{var ze=ot;this[ze(953)][ze(436)]=D[ze(807)](tt[0],tt[1],tt[2]),this[ze(953)].downLeft_position[0]!=0&&this[ze(953)][ze(416)][1]!=0&&this[ze(953)][ze(416)][2]!=0&&this[ze(953)].upLeft_position[0]!=0&&this[ze(953)][ze(436)][1]!=0&&this[ze(953)].upLeft_position[2]!=0&&(D[ze(601)](this[ze(845)],D[ze(601)](this[ze(953)].upLeft_position,this[ze(953)].downLeft_position),this[ze(845)]),this.computeMatrix())}));break;case 1:this[ot(953)][ot(450)][ot(460)]=lt;break;case 2:(this.status[ot(450)].right=lt)?(this[ot(953)][ot(450)].downRightX=bt.clientX,this[ot(953)][ot(450)][ot(524)]=bt[ot(783)],ve[ot(577)](bt[ot(507)],bt[ot(783)])[ot(442)](tt=>{var ze=ot;tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&(this[ze(723)]=D.create(tt[0],tt[1],tt[2]))})):(this[ot(953)][ot(450)].upRightX=bt[ot(507)],this[ot(953)][ot(450)][ot(798)]=bt[ot(783)])}});se[je(887)][je(595)]=je(536),se[je(801)](je(1006),bt=>kt(bt,!0)),se.addEventListener(je(994),bt=>kt(bt,!1)),se[je(801)](je(972),bt=>{var lt=je;this[lt(953)][lt(450)][lt(507)]=bt.clientX,this[lt(953)].mouse[lt(783)]=bt[lt(783)],(this[lt(953)][lt(450)][lt(995)]||this[lt(953)][lt(450)].right)&&(this[lt(953)][lt(450)][lt(884)]-=bt[lt(884)],this[lt(953)][lt(450)][lt(757)]-=bt[lt(757)])}),se[je(801)](je(460),bt=>{var lt=je;this[lt(953)][lt(450)].scroll+=Math[lt(469)](bt.deltaY),bt[lt(1096)](),bt[lt(517)]()},{passive:!1})}}[o(1079)](kt,bt,je=D.create(0,1,0)){var Ft=o;D[Ft(760)](kt,this[Ft(562)]),D[Ft(760)](bt,this[Ft(845)]);var bt=D.normalize(D[Ft(601)](bt,kt)),kt=D[Ft(665)](0,0,1),kt=(this[Ft(1116)]=V.rotationTo(kt,bt),D[Ft(802)](D[Ft(665)](0,1,0),this[Ft(1116)])),bt=D[Ft(542)](kt,je);1e-7<D.length(bt)&&(kt=Math[Ft(785)](D.dot(kt,je)),je=V.fromAxisAngle(D[Ft(1085)](bt),kt),this[Ft(1116)]=V[Ft(645)](je,this[Ft(1116)])),this[Ft(568)]()}update(se){var ve=o,je,Ft=D[ve(802)](D[ve(665)](1,0,0),this.orientation),kt=D[ve(802)](D[ve(665)](0,1,0),this[ve(1116)]),bt=D[ve(802)](D[ve(665)](0,0,1),this[ve(1116)]);this[ve(953)][ve(450)][ve(884)]===0&&this[ve(953)][ve(450)][ve(757)]===0||(this[ve(953)].mouse[ve(988)]===2?(je=this[ve(953)].mouse.movementX*this[ve(948)]*se,se=this[ve(953)][ve(450)][ve(757)]*this.rotationSpeed*se,se=V.fromAxisAngle(Ft,se),je=V[ve(997)](kt,je),se=V[ve(645)](se,je),je=D[ve(601)](this._position,this[ve(562)]),je=D.transformQuat(je,se),D.add(this[ve(562)],je,this[ve(845)]),this[ve(1116)]=V[ve(645)](se,this[ve(1116)])):this[ve(953)].mouse[ve(988)]),this.status[ve(450)][ve(576)]!==0&&(je=this.status[ve(450)][ve(576)]*this[ve(670)],D[ve(987)](this[ve(845)],D[ve(708)](bt,je),this[ve(845)])),this[ve(953)][ve(521)].up&&D[ve(987)](this[ve(845)],D[ve(708)](kt,this[ve(953)][ve(521)].shiftLeft?4*this[ve(476)]:this[ve(476)]),this[ve(845)]),this[ve(953)].keyboard[ve(1064)]&&D.add(this[ve(845)],D.scale(kt,-(this[ve(953)][ve(521)][ve(478)]?4*this[ve(476)]:this[ve(476)])),this._position),this[ve(953)][ve(521)][ve(995)]&&D[ve(987)](this._position,D[ve(708)](Ft,-(this.status.keyboard[ve(478)]?4*this[ve(476)]:this[ve(476)])),this[ve(845)]),this[ve(953)][ve(521)][ve(1034)]&&D[ve(987)](this[ve(845)],D[ve(708)](Ft,this[ve(953)].keyboard[ve(478)]?4*this[ve(476)]:this[ve(476)]),this[ve(845)]),this[ve(953)].keyboard[ve(848)]&&D.add(this._position,D[ve(708)](bt,-(this[ve(953)][ve(521)][ve(478)]?4*this[ve(476)]:this[ve(476)])),this[ve(845)]),this.status[ve(521)][ve(1057)]&&D[ve(987)](this[ve(845)],D[ve(708)](bt,this[ve(953)][ve(521)].shiftLeft?4*this.keyboardSpeed:this[ve(476)]),this[ve(845)]),this[ve(953)][ve(521)][ve(1058)]&&(se=V[ve(997)](bt,-.01),this[ve(1116)]=V.multiply(se,this[ve(1116)])),this[ve(953)][ve(521)][ve(693)]&&(je=V[ve(997)](bt,.01),this.orientation=V.multiply(je,this.orientation)),this[ve(953)][ve(521)][ve(773)]&&(se=V[ve(997)](kt,.01),this.orientation=V[ve(645)](se,this[ve(1116)])),this.status[ve(521)].rightHeading&&(bt=V[ve(997)](kt,-.01),this[ve(1116)]=V[ve(645)](bt,this[ve(1116)])),this[ve(953)][ve(521)][ve(427)]&&(je=V[ve(997)](Ft,.01),this.orientation=V[ve(645)](je,this[ve(1116)])),this.status[ve(521)][ve(1061)]&&(se=V[ve(997)](Ft,-.01),this[ve(1116)]=V[ve(645)](se,this[ve(1116)])),this.status.keyboard[ve(651)]&&(this[ve(476)]-=.01*this[ve(476)],this.keyboardSpeed<.01)&&(this[ve(476)]=.01),this[ve(953)][ve(521)].speedUp&&(this.keyboardSpeed*=1.01),this[ve(568)](),this.status[ve(450)][ve(884)]=0,this.status[ve(450)][ve(757)]=0,this.status[ve(450)][ve(576)]=0}[o(568)](){var se=o;M[se(1094)](this[se(1116)],this[se(761)]),this[se(761)][12]=this[se(845)][0],this[se(761)][13]=this[se(845)][1],this[se(761)][14]=this._position[2]}}globalThis.__ser_isDev__=!1;class Vt{constructor(se){var ve=o;if(this[ve(1114)]=M,this[ve(930)]=N,this[ve(923)]=D,this[ve(754)]=G,this[ve(520)]=V,this[ve(677)]=1,this.dataCallBack={},this.modelData={},this[ve(606)]=!0,this.spaceIndex_Heartbeat=!0,this.xn=!1,this[ve(654)]=!1,this.kj=!1,this.kj2=!1,this.gi=!1,this[ve(922)]={type:1,direction:D[ve(1085)](D.create(-.378604181697245,.8191225954117374,.4309258025313624)),color:D[ve(807)](1,1,1)},this[ve(509)]={fov:2*Math.PI/5,aspect:1,near:.1,far:1e3},this[ve(1069)]=0,this[ve(910)]=D.create(),this.OnInitialized=()=>{},this[ve(886)]=(kt,bt)=>{},this[ve(573)]=kt=>{},this[ve(984)]="",this[ve(1005)]="",this[ve(737)]=Date[ve(495)](),this[ve(553)]=0,this.tempRL=!0,this[ve(479)]=!1,this[ve(745)]=new Float64Array(84),console[ve(826)]("ser_V20250613"),se&&se[ve(1074)]&&se[ve(993)]){if(this[ve(993)]=se[ve(993)],this[ve(672)]=se[ve(1074)],se.Widget.scene.ser)return void console[ve(505)](ve(1059));this.cesiumWidget[ve(859)][ve(555)]=this}this.cesiumWidget?(this[ve(1088)]=new OffscreenCanvas(this[ve(672)][ve(859)][ve(1088)].width,this[ve(672)].scene.canvas[ve(864)]),this.depthCanvas=new OffscreenCanvas(this[ve(672)][ve(859)].canvas[ve(412)],this[ve(672)][ve(859)][ve(1088)][ve(864)]),this[ve(835)]=new Rt(null,this)):(this[ve(1088)]=document[ve(602)](ve(1088)),this.canvas[ve(412)]=1920,this[ve(1088)][ve(864)]=970,document[ve(455)].appendChild(this[ve(1088)]),this[ve(835)]=new Rt(this[ve(1088)],this),this.camera[ve(1079)](D[ve(807)](0,0,0),D[ve(807)](0,100,0),D[ve(807)](0,1,0))),this[ve(1084)]=[],this[ve(735)]=new ArrayBuffer(512),this[ve(439)]=new Float32Array(this[ve(735)]),this[ve(952)]=new Uint32Array(this.scene_dataBuffer),this[ve(547)]=new ArrayBuffer(96),this[ve(1075)]=new Float32Array(this[ve(547)]),this.lightInfo_dataViewF32[0]=this[ve(922)][ve(468)],this[ve(1075)][ve(895)](this.lightInfo.direction,1),this[ve(1075)].set(this[ve(922)][ve(431)],4),this[ve(1008)]=M[ve(626)](),this[ve(587)]=M[ve(626)](),this[ve(838)]=M.identity(),this[ve(640)]=M[ve(626)](),this.projectionViewMatrix=M[ve(626)](),this[ve(1024)]=M[ve(626)]();let je=!1,Ft=(kt,bt)=>{var lt=ve;switch(kt[lt(1022)]){case lt(650):je=bt,kt[lt(1096)](),kt[lt(517)]();break;case lt(638):bt||(this[lt(479)]=!this[lt(479)])}};window[ve(801)](ve(499),kt=>Ft(kt,!0)),window[ve(801)](ve(575),kt=>Ft(kt,!1)),this[ve(702)]=new yt(this),se=new v(new URL(f.p+f.u(671),f.b)),this[ve(1067)]=se[ve(759)](),this[ve(1067)][ve(801)](ve(622),kt=>{var bt=ve;if(kt[bt(836)])switch(kt[bt(836)][bt(999)]){case bt(925):this[bt(925)][kt.data.cbId]?(kt[bt(836)][bt(832)](bt(914))?this.dataCallBack[kt[bt(836)][bt(941)]].resolve(kt[bt(836)][bt(914)]):kt[bt(836)][bt(832)](bt(593))&&this[bt(925)][kt.data[bt(941)]][bt(593)](kt[bt(836)][bt(593)]),delete this.dataCallBack[kt[bt(836)][bt(941)]]):globalThis[bt(564)](kt.data);break;case bt(617):for(var lt in kt[bt(836)][bt(512)])this.modelData[bt(832)](lt)?Object[bt(726)](this.modelData[lt],kt[bt(836)].modelData[lt]):this[bt(512)][lt]=kt[bt(836)][bt(512)][lt];this[bt(432)](),this.OnModelServer(kt.data[bt(512)],kt[bt(836)][bt(1109)]);break;case bt(573):this[bt(573)](kt[bt(836)][bt(839)]);break;case bt(560):if(kt[bt(836)].targets)for(var ot of kt.data.targets)this[bt(702)].UpVmData(ot);else this.renderEngine[bt(560)](kt[bt(836)]);break;case bt(992):this[bt(702)][bt(908)](kt[bt(836)]);break;case bt(771):this[bt(702)].VisibleTreeUpdate();break;case bt(699):this[bt(1069)]=kt[bt(836)][bt(1069)];break;case bt(581):this[bt(606)]=!0;break;case bt(847):this[bt(1036)]=!0}})}[o(661)](){var se=o;this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(873)],0,this.lightInfo_dataBuffer,0,32),this[se(509)][se(787)]=this.canvas.width/this[se(1088)][se(864)],this[se(842)](),this[se(1067)].postMessage({msgType:se(661),maxTextureSize:this.renderEngine[se(778)],maxPixel:this[se(702)][se(700)],meshVmMaxOffset:this[se(702)].meshVmBuffer[se(605)]/4}),this[se(531)](),this[se(672)]?this[se(765)]():this[se(545)]()}[o(611)](se){var ve=o;se[ve(592)]("/")!==se[ve(800)]-1&&(se+="/");var je=this[ve(1084)][ve(800)];for(let Ft=0;Ft<this[ve(1084)][ve(800)];Ft++)if(this.serverList[Ft]===se)return Ft;return this.serverList[ve(918)](se),this[ve(1067)][ve(564)]({msgType:ve(1103),serverUrl:se,serverId:je}),je}[o(545)](){let se=()=>{var ve=wh;this[ve(991)](),requestAnimationFrame(se)};requestAnimationFrame(se)}[o(842)](){var se=o;this.cesiumWidget?(ve=this[se(672)][se(859)][se(504)].uniformState,this[se(1005)]=ve[se(747)][se(770)](),this.projectionMatrix=M.frustumReverseZ(ve[se(685)].z,ve._frustumPlanes.w,ve[se(685)].y,ve[se(685)].x,ve._currentFrustum.x,ve[se(490)].y)):this[se(838)]=M[se(1113)](this.cameraParameter.fov,this[se(509)].aspect,this[se(509)][se(1108)],this.cameraParameter[se(475)]),this[se(640)]=M[se(584)](this.projectionMatrix);var ve=M.setTranslation(M.scale(M.identity(),D.create(.5,.5,1)),D[se(807)](.5,.5,0)),ve=M[se(645)](ve,this[se(838)]);this[se(1024)]=M[se(645)]([this[se(1088)].width,0,0,0,0,this[se(1088)].height,0,0,0,0,1,0,0,0,0,1],ve)}[o(991)](){var se=o,ve,je;this[se(672)]?(je=this[se(672)][se(859)][se(504)][se(420)],this[se(835)][se(761)]=je[se(483)],this[se(835)][se(845)][0]=je[se(483)][12],this[se(835)][se(845)][1]=je[se(483)][13],this[se(835)][se(845)][2]=je._inverseView[14],je[se(747)][se(770)]()!==this[se(1005)]&&(this[se(984)]="",this[se(842)]())):(ve=((je=Date[se(495)]())-this[se(737)])/1e3,this[se(737)]=je,this[se(835)].update(ve)),this.oldCameraData===this[se(835)][se(761)][se(770)]()&&this.instancesCount!==0||(this[se(984)]=this[se(835)][se(761)].toString(),je=D[se(601)]([this[se(835)][se(761)][12],this[se(835)][se(761)][13],this[se(835)][se(761)][14]],this[se(910)]),(1e4<Math.abs(je[0])||1e4<Math[se(811)](je[1])||1e4<Math[se(811)](je[2]))&&(this[se(910)][0]=this[se(835)][se(761)][12],this.accuracyOffset[1]=this[se(835)][se(761)][13],this[se(910)][2]=this[se(835)].worldMatrix[14],this.scene_dataViewF32[120]=this[se(910)][0],this[se(439)][121]=this[se(910)][1],this.scene_dataViewF32[122]=this[se(910)][2],this[se(432)]()),(ve=Array.from(this.camera[se(761)]))[12]-=this[se(910)][0],ve[13]-=this[se(910)][1],ve[14]-=this[se(910)][2],M[se(760)](ve,this[se(587)]),this[se(1008)]=M[se(584)](ve),M[se(645)](this.projectionMatrix,this.viewMatrix,this[se(574)]),this[se(706)]=M[se(584)](this[se(574)]),this[se(672)]&&(je=M[se(645)](this[se(672)][se(859)][se(504)].uniformState._projection,this[se(1008)]),this[se(439)][se(895)](je)),this[se(439)].set(this[se(1008)],16),this[se(439)][se(895)](this[se(574)],32),this[se(439)][se(895)](this[se(640)],72),this[se(439)].set(this[se(587)],88),this[se(439)][se(895)](this[se(706)],104),this[se(677)]++,1073741820<this[se(677)]&&(this[se(677)]=1),this[se(952)][48]=this.cameraId,this[se(439)][49]=ve[12],this.scene_dataViewF32[50]=ve[13],this[se(439)][51]=ve[14],this[se(439)][52]=this.canvas.width,this[se(439)][53]=this[se(1088)][se(864)],this[se(439)][54]=1,this.scene_dataViewF32[55]=0,this[se(702)].device[se(704)].writeBuffer(this[se(702)][se(1068)],0,this[se(735)]),this[se(1036)]&&(this[se(1036)]=!1,this.ddWorker[se(564)]({msgType:"CameraChange",viewMatrix:M.inverse(this[se(835)].worldMatrix),projectionMatrix:this[se(838)],cameraWorldPosition:this[se(835)].position,cameraId:this[se(677)]})),this[se(702)][se(756)]()),this[se(702)].Render(),this.scene_dataViewF32.set(this[se(574)],56),this[se(952)][55]++,1073741820<this[se(952)][73]&&(this[se(952)][55]=1),this.renderEngine.device.queue.writeBuffer(this[se(702)][se(1068)],224,this[se(735)],224),this[se(479)]&&(this[se(897)]?(this[se(1075)][1]+=.005,this[se(1075)][2]+=.005,this[se(1075)][3]-=.005,.35<this.lightInfo_dataViewF32[1]&&.92<this[se(1075)][2]&&this[se(1075)][3]<-.14&&(this.tempRL=!this[se(897)])):(this[se(1075)][1]-=.005,this.lightInfo_dataViewF32[2]-=.005,this.lightInfo_dataViewF32[3]+=.005,this.lightInfo_dataViewF32[1]<-.76&&this[se(1075)][2]<-.09&&.63<this.lightInfo_dataViewF32[3]&&(this[se(897)]=!this[se(897)])),this.renderEngine[se(1099)][se(704)][se(1039)](this[se(702)][se(873)],0,this[se(547)],0,32))}[o(586)](se){var ve=o,je,Ft;this[ve(512)][se]&&(je=this[ve(512)][se],Ft=new Uint32Array([1]),this[ve(702)][ve(1099)][ve(704)][ve(1039)](this[ve(702)][ve(680)],4*(je[ve(1016)]+17),Ft),this[ve(1067)][ve(564)]({msgType:ve(892),modelId:se,status:1}))}HideModel(se){var ve=o,je,Ft;this[ve(512)][se]&&(je=this[ve(512)][se],Ft=new Uint32Array([0]),this[ve(702)][ve(1099)][ve(704)][ve(1039)](this[ve(702)][ve(680)],4*(je[ve(1016)]+17),Ft),this[ve(1067)].postMessage({msgType:ve(892),modelId:se,status:0}))}PickId(se,ve){var je=o;return this[je(702)][je(806)](se,ve).then(Ft=>new Promise((kt,bt)=>{var lt=je,ot=Date[lt(495)]();this[lt(925)][ot]={resolve:tt=>{kt(tt)},reject:tt=>{bt()}},this[lt(1067)][lt(564)]({msgType:lt(616),instancePtr:Ft,cbId:ot})}))}[o(527)](se,ve){var je=o;return this.renderEngine[je(806)](se,ve)}[o(577)](se,ve){var je=o;return this[je(702)].PickPosition(se,ve)}[o(766)](se,ve){var je=o,Ft;this[je(512)][se]&&((Ft=this[je(512)][se])[je(503)]=Array[je(1050)](ve),(ve=Array.from(ve))[12]-=this.accuracyOffset[0],ve[13]-=this[je(910)][1],ve[14]-=this[je(910)][2],ve=new Float32Array(ve),this.renderEngine.device.queue[je(1039)](this[je(702)][je(680)],4*Ft[je(1016)],ve),this.ddWorker[je(564)]({msgType:je(766),modelId:se,modelMatrixArr:Ft[je(503)]}))}[o(432)](){var se=o;for(var ve in this.modelData){var je,ve=this[se(512)][ve];ve[se(1016)]&&((je=Array.from(ve.transform))[12]-=this[se(910)][0],je[13]-=this[se(910)][1],je[14]-=this[se(910)][2],je=new Float32Array(je),this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(680)],4*ve[se(1016)],je))}this[se(868)](),this.UpdateExplodeAccuracyOffset()}CreateMaterial(se){return new Promise((ve,je)=>{var Ft=wh,kt=Date[Ft(495)]();this[Ft(925)][kt]={resolve:ve,reject:je},this[Ft(1067)].postMessage({msgType:Ft(634),color:se,cbId:kt})})}[o(898)](se,ve,je,Ft){var kt=o;this[kt(1067)][kt(564)]({msgType:kt(898),modelId:se,materialId:ve,color:je,overlay:Ft})}GetMaterial(se,ve){return new Promise((je,Ft)=>{var kt=wh,bt=Date.now();this[kt(925)][bt]={resolve:lt=>{je(lt)},reject:lt=>{Ft()}},this[kt(1067)][kt(564)]({msgType:kt(879),modelId:se,materialId:ve,cbId:bt})})}SetInstanceMaterialByInstancePtr(se,ve){var je=o;this.renderEngine[je(1099)].queue[je(1039)](this.renderEngine.instanceVmBuffer,4*(se+23),new Uint32Array([ve]))}[o(513)](se,ve){var je=o;this.renderEngine[je(1099)].queue[je(1039)](this[je(702)][je(666)],4*(se+22),new Uint32Array([ve]))}SetInstanceMaterial(se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(810),materialPtr:se,idBuffer:ve.buffer},[ve[je(877)]])}SetInstanceStatus(se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(969),status:se,idBuffer:ve[je(877)]},[ve.buffer])}[o(896)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(896),transform:se,idBuffer:ve[je(877)]},[ve[je(877)]])}[o(477)](se){var ve=o;se=new Uint32Array(se),this[ve(1067)][ve(564)]({msgType:ve(477),idBuffer:se.buffer},[se[ve(877)]])}[o(878)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(878),materialPtr:se,idBuffer:ve[je(877)]},[ve.buffer])}[o(1070)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:"SetInstanceStatusByComponentIds",status:se,idBuffer:ve.buffer},[ve.buffer])}[o(746)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(746),transform:se,idBuffer:ve[je(877)]},[ve[je(877)]])}CancelInstanceTransformByComponentIds(se){var ve=o;se=new Uint32Array(se),this[ve(1067)].postMessage({msgType:ve(739),idBuffer:se[ve(877)]},[se.buffer])}SetInstanceMaterialByExtendedPropertiesId(se,ve){var je=o;this.ddWorker.postMessage({msgType:je(597),materialPtr:se,extendedPropertiesIds:ve})}[o(662)](se,ve){var je=o;this.ddWorker[je(564)]({msgType:"SetInstanceStatusByExtendedPropertiesId",status:se,extendedPropertiesIds:ve})}[o(609)](se,ve){var je=o;this[je(1067)][je(564)]({msgType:je(609),transform:se,extendedPropertiesIds:ve})}[o(977)](se){var ve=o;this[ve(1067)][ve(564)]({msgType:ve(977),extendedPropertiesIds:se})}[o(776)](se,ve,je,Ft){return new Promise((kt,bt)=>{var lt=wh,ot=Date[lt(495)]();this[lt(925)][ot]={resolve:kt,reject:bt},this[lt(1067)][lt(564)]({msgType:lt(776),x1:se,y1:ve,x2:je,y2:Ft,width:this[lt(1088)].width,height:this[lt(1088)][lt(864)],cbId:ot})})}[o(1012)](se,ve,je){var Ft=o;if(se===void 0)this.clipPlane[0]=0;else{this[Ft(516)]=se,this[Ft(745)][0]=je[Ft(800)]/4*(ve?-1:1),this[Ft(745)].set(je,4);for(let bt=1;bt<=Math[Ft(811)](this[Ft(745)][0]);bt+=1){var kt=D[Ft(1085)]([this.clipPlane[4*bt],this[Ft(745)][4*bt+1],this[Ft(745)][4*bt+2]]);this[Ft(745)][4*bt]=kt[0],this[Ft(745)][4*bt+1]=kt[1],this[Ft(745)][4*bt+2]=kt[2]}}this[Ft(868)]()}[o(868)](){var se=o,ve=new Float32Array(84);if(this.clipPlane[0]!==0){var je=Array.from(this[se(516)]),Ft=(je[12]-=this[se(910)][0],je[13]-=this[se(910)][1],je[14]-=this.accuracyOffset[2],M[se(584)](je,je));for(let Wt=1;Wt<=Math[se(811)](this[se(745)][0]);Wt++){var ct=this[se(745)][4*Wt],kt=this.clipPlane[4*Wt+1],bt=this[se(745)][4*Wt+2],lt=this[se(745)][4*Wt+3],ot=ct*Ft[0]+kt*Ft[1]+bt*Ft[2]+lt*Ft[3],tt=ct*Ft[4]+kt*Ft[5]+bt*Ft[6]+lt*Ft[7],ze=ct*Ft[8]+kt*Ft[9]+bt*Ft[10]+lt*Ft[11],ct=ct*Ft[12]+kt*Ft[13]+bt*Ft[14]+lt*Ft[15];ve[4*Wt]=ot,ve[4*Wt+1]=tt,ve[4*Wt+2]=ze,ve[4*Wt+3]=ct}ve[0]=this[se(745)][0]}else ve[0]=0;this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(449)],0,ve)}SetExplode(se,ve,je,Ft,kt){var bt=o;se===void 0||Number.isNaN(se)||(this[bt(702)][bt(804)][0]=se),ve===void 0||Number[bt(1021)](ve)||(this[bt(702)][bt(804)][1]=ve),je===void 0||Number.isNaN(je)||(this[bt(702)].explodeParam[2]=je),Ft&&3<=Ft.length&&(this[bt(702)][bt(804)][3]=Ft[0],this.renderEngine[bt(804)][4]=Ft[1],this.renderEngine.explodeParam[5]=Ft[2]),kt&&3<=kt.length&&(se=D[bt(1085)](kt),this[bt(702)][bt(804)][6]=se[0],this[bt(702)][bt(804)][7]=se[1],this[bt(702)][bt(804)][8]=se[2]),this.UpdateExplodeAccuracyOffset()}[o(1112)](){var se=o,ve=new Float32Array(this[se(702)][se(804)]);ve[3]-=this.accuracyOffset[0],ve[4]-=this.accuracyOffset[1],ve[5]-=this[se(910)][2],this[se(702)][se(1099)][se(704)].writeBuffer(this.renderEngine[se(792)],0,ve)}[o(765)](){var se=o;let ve=this[se(672)][se(859)];if(!ve.initFine){ve[se(456)]=!0;let je={sources:[se(722)],defines:[]},Ft=new this[se(993)].ShaderSource({sources:[se(644)],defines:[]}),kt=new this[se(993)][se(860)](je),bt=ve.context[se(867)].getShaderProgram({vertexShaderSource:Ft,fragmentShaderSource:kt}),lt=new this.Cesium[se(673)]({context:ve.context,attributes:[]}),ot=(lt[se(1037)]=6,this[se(993)][se(1110)][se(639)]({depthTest:{enabled:!0,func:this[se(993)].WebGLConstants[se(1060)]}})),tt=new this.Cesium[se(613)]({wrapS:this[se(993)][se(1082)][se(784)],wrapT:this.Cesium[se(1082)][se(784)],minificationFilter:this[se(993)].TextureMinificationFilter[se(857)],magnificationFilter:this[se(993)][se(514)][se(857)]}),ze={bimColorTexture:()=>(this[se(991)](),ve[se(1100)]?ve.serColorTexture[se(453)]({source:ve[se(555)][se(1088)],skipColorSpaceConversion:!0}):ve.serColorTexture=new this.Cesium[se(1038)]({context:ve[se(504)],source:ve.ser[se(1088)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ve[se(1100)]),bimDepthTexture:()=>(ve.serDepthTexture?ve.serDepthTexture[se(453)]({source:ve.ser[se(515)],skipColorSpaceConversion:!0}):ve[se(890)]=new this[se(993)][se(1038)]({context:ve[se(504)],source:ve[se(555)][se(515)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ve[se(890)])},ct=new this[se(993)][se(828)]({x:0,y:0,z:0},6379137),Wt=new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)].Pass.OPAQUE,boundingVolume:ct});Wt.derivedCommands[se(487)]={command:new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct}),shaderProgramId:bt.id},Wt[se(674)][se(487)][se(885)][se(674)]={depth:{command:new this[se(993)][se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct}),shaderProgramId:bt.id,depthOnlyCommand:new this[se(993)][se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct})}},Wt.derivedCommands[se(649)]={shaderProgramId:bt.id,depthOnlyCommand:new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct})},Wt.fine=!0,ve.primitives[se(987)]({fine:!0,isDestroyed:()=>!1,update:()=>{ve.frameState.commandList.push(Wt)}})}}}return m}};function wh(o,f){var m=mge();return wh=function(x,y){x=x-411;var v=m[x];return v},wh(o,f)}typeof exports=="object"&&nie(698)==typeof module?module.exports=fge():nie(728)==typeof define&&define[nie(567)]?define([],fge):nie(698)==typeof exports?exports[nie(555)]=fge():Imr.ser=fge();function C2(o){this._earthCtrl=o,this._viewer=o.viewer,this._fig=null,this.serverAddress=""}C2.prototype.create=async function(){let o=this;return this._fig=new ser.serMain({Cesium:Vi,Widget:o._viewer}),await new Promise(f=>{o._fig.OnInitialized=()=>{f(o)}})};C2.prototype.setModelTransform=function(o,f){let m=Ee.toArray(_r.eastNorthUpToFixedFrame(Z.fromDegrees(f.lon,f.lat,f.height)));if(f.roll){let x=be.toRadians(f.roll??0),y=Ee.fromRotationTranslation(Ut.fromRotationZ(x));Ee.multiply(m,y,m)}this._fig.SetModelTransform(o,m)};C2.prototype.showModel=function(o){this._fig.ShowModel(o)};C2.prototype.hideModel=function(o){this._fig.HideModel(o)};C2.prototype.destroy=function(){this._fig.Destroy()};C2.prototype.addModelServer=async function(o){return this._fig.AddServer(o),await new Promise(f=>{this._fig.OnModelServer=(m,x)=>{this.modelList=m,f({modelList:m,serverId:x})}})};C2.prototype.getModelBoundingSphere=function(o){let f=this.modelList[o],m=Ee.multiplyByPoint(f.transform,Z.fromArray(f.box),{}),x=Ee.multiplyByPoint(f.transform,Z.fromArray(f.box,3),{});return Ei.fromPoints([m,x],new Ei)};C2.prototype.clickSem=function(o){let f=this,m=0;f._viewer.screenSpaceEventHandler.setInputAction(function(y){m!==0&&(f._fig.SetInstanceStatusByInstancePtr(m,1),m=0),f._fig.PickId(y.position.x,y.position.y).then(v=>{v&&(m=v.instancePtr,f._fig.SetInstanceStatusByInstancePtr(v.instancePtr,2)),o&&o(v)})},Si.LEFT_CLICK)};C2.prototype.unSelect=function(o){o!==0&&this._fig.SetInstanceStatusByInstancePtr(o,1)};C2.prototype.pickWorldPosition=function(o,f,m){this._fig.PickWorldPosition(o,f).then(x=>{m&&m(x)})};C2.prototype.semModeClipping=function(o){let f=this;return new kxe(f._earthCtrl,f._fig,o)};C2.prototype.setMaterialColor=function(o,f,m,x){this._fig.SetMaterialColor(o,f,[m.red,m.green,m.blue,m.alpha],x)};C2.prototype.choice=function(o){return o=o??{},o.bim=o.ser??this._fig,new Uxe(o,this._earthCtrl,Vi)};C2.prototype.setExplode=function(o,f,m,x,y){this._fig.SetExplode(o,f,m,x,y)};C2.prototype.showComponent=function(o){o.showComponentArr.length>0&&this._fig.SetInstanceStatus(o.status,o.showComponentArr)};var MMt=C2;var Rmr=function(o){if(!o.extensionsUsed||!o.extensionsRequired)return;let f=o.extensionsUsed.indexOf("KHR_technique_webgl"),m=o.extensionsRequired.indexOf("KHR_technique_webgl");if(f!==-1){o.extensionsRequired.splice(m,1,"KHR_techniques_webgl"),o.extensionsUsed.splice(f,1,"KHR_techniques_webgl"),o.extensions=o.extensions||{},o.extensions.KHR_techniques_webgl={},o.extensions.KHR_techniques_webgl.programs=o.programs,o.extensions.KHR_techniques_webgl.shaders=o.shaders,o.extensions.KHR_techniques_webgl.techniques=o.techniques;let x=o.extensions.KHR_techniques_webgl.techniques;o.materials.forEach(function(y,v){o.materials[v].extensions.KHR_technique_webgl.values=o.materials[v].values,o.materials[v].extensions.KHR_techniques_webgl=o.materials[v].extensions.KHR_technique_webgl;let C=o.materials[v].extensions.KHR_techniques_webgl;for(let T in C.values){let S=x[C.technique].uniforms;for(let w in S)if(S[w]===T){C.values[w]=C.values[T],delete C.values[T];break}}}),x.forEach(function(y){for(let v in y.attributes){let C=y.attributes[v];y.attributes[v]=y.parameters[C]}for(let v in y.uniforms){let C=y.uniforms[v];y.uniforms[v]=y.parameters[C]}})}},gge=typeof window<"u"?window:typeof self<"u"?self:{},xge=setTimeout(()=>{xge=void 0,gge.logSmartEarth&&gge.logSmartEarth()},1e4);function VMt(o,f){ia.supportsImageRenderingPixelated()&&(o.viewer.resolutionScale=f?window.devicePixelRatio:1),o.viewer.scene.fxaa=f,o.viewer.scene.postProcessStages.fxaa.enabled=f}function id(o,f={},m,x,y){this._core=new Yb(this),this._cesium=Vi,xge&&(clearTimeout(xge),xge=void 0,f.VERSION!==!1&&gge.logSmartEarth&&gge.logSmartEarth()),this.G=65535,m=m??si.EMPTY_OBJECT,F(f.StaticFileBaseUrl)?globalThis.GEOWORLD_BASE_URL=f.StaticFileBaseUrl:globalThis.GEOWORLD_BASE_URL="./CimSDK/",globalThis.CESIUM_BASE_URL=globalThis.GEOWORLD_BASE_URL,globalThis.SmartEarthRootUrl=globalThis.GEOWORLD_BASE_URL,this.LayuiPromise=$vt();let v=f.language??vp.ZH_CN;this.i18n=new PMt(v),f.toolbar=f.toolbar??!1,f.baseLayerPicker=f.baseLayerPicker??!1,f.shadows=!1,f.skyAtmosphere=new zq,f.terrainShadows=cl.ENABLED,f.animation=f.animation??!0,f.shouldAnimate=!0,f.fullscreenButton=f.fullscreenButton??!1,f.geocoder=f.geocoder??!1,f.homeButton=!1,f.infoBox=!1,f.selectionIndicator=!1,f.timeline=f.timeline??!1,f.defaultImagery=f.defaultImagery??!0,f.printLogo=f.printLogo??!0,f.printLog=f.printLog??f.printLogo,f.infoBar=f.infoBar??!0,f.navigationHelpButton=!1,f.imageryProviderViewModels=[],f.terrainProviderViewModels=[];let{webgl:C={}}=f.contextOptions||{},{alpha:T=!1}=C;f.contextOptions={webgl:{alpha:T,preserveDrawingBuffer:!0},failIfMajorPerformanceCaveat:!1,ellipsoidCoordinates:f.ellipsoidCoordinates},f.navigation=!0,f.disableRightClickMenu=!0,typeof f=="string"?f.baseLayer=new Up(new V1({url:f})):(f.url&&(f.baseLayer=new Up(new V1({url:f.url}))),this._core.extend(f,f,!0));let S=F(f.baseLayer),w;if(f.baseLayerPicker){S=!0;let R=this.getAllImageryView();if(f.basemaps)f.basemaps.forEach(P=>{f.imageryProviderViewModels.push(R[P])});else for(let P in R)f.imageryProviderViewModels.push(R[P])}else!f.imageryProvider&&!f.baseLayer?(w=Up.fromProviderAsync(V1.fromUrl(`${globalThis.GEOWORLD_BASE_URL}Workers/image/earth.jpg`)),f.baseLayer=w):(S=!0,f.imageryProvider&&(f.baseLayer=Up.fromProviderAsync(f.imageryProvider)));let E={destination:Z.fromDegrees(f.x?f.x:93.53987,f.y?f.y:24.77445,f.z?f.z:257935006e-1),orientation:{heading:be.toRadians(f.heading??0),pitch:be.toRadians(f.pitch??-90),roll:be.toRadians(f.roll??0)},duration:f.duration||1};if(f.removeGlobe&&(f.skyBox=!1,f.skyAtmosphere=!1,f.contextOptions={failIfMajorPerformanceCaveat:!1,webgl:{alpha:!0,preserveDrawingBuffer:!0}}),this._Viewer=new n0e(o,f),this._tree=x,this._Viewer.scene.globe.baseColor=Xe.WHITE,this._Viewer.shadowMap.size=2048,this._Viewer._cesiumWidget._creditContainer.style.display="none",this._Viewer.terrainShadows=cl.ENABLED,this._AttachEvent=void 0,this._DetachEvent=void 0,this._Analysis=void 0,this._Navigate=void 0,this._Creator=void 0,this._Command=void 0,this._ProjectTree=void 0,this._Coordinate=void 0,this._VectorTileProvider=void 0,this._simulate=void 0,this.toolbar=f.toolbar,f.removeGlobe){this._Viewer.imageryLayers.removeAll(),this._Viewer.shadows=!1,this._Viewer.scene.fog.enabled=!1,this._Viewer.scene.globe.show=!1;let R="rgba(0,0,0,0)";this._Viewer.scene.backgroundColor=Xe.fromCssColorString(R),this._Viewer.scene.light=new k4({direction:new Z(1,-.9,-.9)}),f.backgroundImage&&(this._Viewer.container.style.backgroundImage=`url(${f.backgroundImage})`)}else this._Viewer.scene.globe.depthTestAgainstTerrain=!0;if(f.defaultImagery&&!S&&window.navigator.onLine&&this.judgeOnline().then(async R=>{R&&(await this._factory.createImageryLayer({enablePickFeatures:!1,sourceType:"arcgis",url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",zIndex:0}),this._Viewer.imageryLayers.lowerToBottom(w))}).catch(R=>{console.warn("The current network cannot be connected, so we will not load the online Imagery")}),this.coreMap=this._Viewer,this.coreMap.language=this.language,this._environment=new n9e(this),this._camera=new bZe(this),this._measure=new YZe(this),this._shapeTool=new yCt(this),this._editTool=new QZe(this),this._factory=new T3(this),this._tools=new XWe(this),this._edit=new Ake(this),this._analysis=new iUe(this),this._userScene=new rke(this,m),this._view=new zRt(this),this._bim=new jRt(this),this._ser=new MMt(this),this._MilitaryPlotting=new lUe(this),this._atmosphere=new ibt(this),this._simulate=new AMt(this),f.infoBar&&(this._infoBar=new bIt(this)),f.maxViewHeight&&(this._Viewer.scene.screenSpaceCameraController.maximumZoomDistance=f.maxViewHeight),f.minViewHeight||f.maxViewPitch){this.minViewHeight=f.minViewHeight,this.maxViewPitch=f.maxViewPitch&&be.toRadians(f.maxViewPitch);let R=0,P=this._Viewer.scene,A=!1;if(this.maxViewPitch){let M=new Lr(this._Viewer.scene.canvas);M.setInputAction(()=>{A=!0},Si.MIDDLE_DOWN),M.setInputAction(()=>{A=!1},Si.MIDDLE_UP),M.setInputAction(()=>{A=!0},Si.RIGHT_DOWN),M.setInputAction(()=>{A=!1},Si.RIGHT_UP)}this._Viewer.scene.preRender.addEventListener(()=>{let M=this._Viewer.camera;if(!(!M||!M.positionCartographic)){if(this.maxViewPitch){let V=M.pitch;A&&V>this.maxViewPitch?(V=this.maxViewPitch,M.setView({destination:this.oldPosition||M.position.clone(),orientation:{heading:M.heading,pitch:V,roll:0}})):this.oldPosition=M.position.clone()}if(this.minViewHeight){R=P.globe.getHeight(M.positionCartographic)||R;let G,D,N=M.positionCartographic.height-R;this._Viewer.scene.globe.translucency.enabled||this._Analysis&&(this._Analysis._UndergroundMode&&this._Analysis._UndergroundMode.isUndergroundMode||this._Analysis._StreetView&&this._Analysis._StreetView.isStreetView)?(G=M.positionCartographic.height<-200,D=-200):(G=N<this.minViewHeight,D=R+this.minViewHeight);let k=M.pitch<0?M.pitch:0;G?M.setView({destination:this.oldPosition||Z.fromRadians(M.positionCartographic.longitude,M.positionCartographic.latitude,D),orientation:{heading:M.heading,pitch:k,roll:0}}):this.oldPosition=M.position.clone()}}})}let L={};Ts.DEFAULT_VIEW_RECTANGLE=vi.fromDegrees(79,0,130,60),f.navigationOption=f.navigationOption??si.EMPTY_OBJECT,L.defaultResetView=f.navigationOption.defaultResetView??Gt.fromCartesian(E.destination),L.enableCompass=f.navigationOption.enableCompass??!0,L.enableZoomControls=f.navigationOption.enableZoomControls??!0,L.enableDistanceLegend=f.navigationOption.enableDistanceLegend??!0,L.enableCompassOuterRing=f.navigationOption.enableCompassOuterRing??!0,this._Viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(this._cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this._Viewer.extend(this._cesium.viewerCesiumNavigationMixin,L),this.camera.setView(E),y&&typeof y=="function"&&y(),CIt.parse(this,m),f.mouseDownView&&this.mouseDownView(!0),f.printLog&&this.addLogo(),Object.defineProperties(Ay.prototype,{_cachedGltf:{configurable:!0,set:function(R){this._vtxf_cachedGltf=R,this._vtxf_cachedGltf&&this._vtxf_cachedGltf._gltf&&Rmr(this._vtxf_cachedGltf._gltf)},get:function(){return this._vtxf_cachedGltf}}}),f.disableRightClickMenu&&(document.oncontextmenu=function(){return!1});let I=function(R){if(R.cesiumWidget._supportsImageRenderingPixelated&&window&&window.devicePixelRatio){let A=window.devicePixelRatio;for(;A>=2;)A/=2;R.resolutionScale=A}};G1.prototype.getRenderedBestLevelInfo=function(){let R=this.getRenderedLevelInfo(),P=0;for(let A in R)P<Number(A)&&(P=Number(A));return{bestLevel:P,count:R[P]}},G1.prototype.getRenderedLevelInfo=function(){let R=[];return this._tilesToRender.forEach(function(P){R[P.level]===void 0&&(R[P.level]=0,R[P.level]++)}),R},VMt(this,!0)}Object.defineProperties(id.prototype,{environment:{get:function(){return this._environment}},entities:{get:function(){return this._Viewer.dataSourceDisplay.defaultDataSource.entities}},enableAA:{set:function(o){VMt(this,o)}},primitives:{get:function(){return this.coreMap.scene.primitives}},imageryLayers:{get:function(){return this.coreMap.imageryLayers}},view:{get:function(){return this._view}},terrainProvider:{get:function(){return this.coreMap.terrainProvider}},dataSources:{get:function(){return this._Viewer.dataSources}},camera:{get:function(){return this._camera}},showFPS:{get:function(){return this.viewer.scene.debugShowFramesPerSecond},set:function(o){this.viewer.scene.debugShowFramesPerSecond=o}},depthTerrain:{get:function(){return this.viewer.scene.globe.depthTestAgainstTerrain},set:function(o){this.viewer.scene.globe.depthTestAgainstTerrain=o}},measure:{get:function(){return this._measure}},shapeTool:{get:function(){return this._shapeTool}},editTool:{get:function(){return this._editTool}},edit:{get:function(){return this._edit}},analysis:{get:function(){return this._analysis}},factory:{get:function(){return this._factory}},userScene:{get:function(){return this._userScene}},tools:{get:function(){return this._tools}},hdr:{get:function(){return this.coreMap.scene.highDynamicRange},set:function(o){this.coreMap.scene.highDynamicRange=o}},sunGlowFactor:{set:function(o){this.coreMap.scene.sun.glowFactor=o},get:function(){return this.coreMap.scene.sun.glowFactor}},shadows:{get:function(){return this.coreMap.scene.shadowMap.enabled},set:function(o){this.coreMap.scene.shadowMap.enabled=o}},terrainShadows:{get:function(){return this.coreMap.scene.globe.shadows},set:function(o){this.coreMap.scene.globe.shadows=o}},shadowMap:{get:function(){return this.coreMap.scene.shadowMap}},shadowMapList:{get:function(){return this.coreMap.scene.shadowMapList}},textureProjectionMapList:{get:function(){return this.coreMap.scene.textureProjectionMapList}},viewShedMapList:{get:function(){return this.coreMap.scene.viewShedMapList}},clock:{get:function(){return this._Viewer.clock}},clockViewModel:{get:function(){return this._Viewer.clockViewModel}},sunShaftEnabled:{get:function(){return this.coreMap.scene.sunShaftEnabled},set:function(o){this.coreMap.scene.sunShaftEnabled=o}},MilitaryPlotting:{get:function(){return this._MilitaryPlotting}},core:{get:function(){return this._Core||(this._Core=new Yb(this)),this._Core}},Analysis:{get:function(){return this._Analysis||(this._Analysis=new BIt(this._Viewer,Vi)),this._Analysis}},Creator:{get:function(){return this._Creator||(this._Creator=new dge(this._Viewer,Vi)),this._Creator}},projectTree:{get:function(){return this._ProjectTree||(this._ProjectTree=new EMt(this._Viewer,Vi,this._tree)),this._ProjectTree}},tree:{get:function(){return this._tree}},viewer:{get:function(){return this._Viewer}},toolbar:{get:function(){return this._Viewer._toolbar.style.display==="block"},set:function(o){this._Viewer._toolbar.style.display=o?"block":"none"}},wireframe:{get:function(){return this._Viewer.scene.globe._surface.tileProvider._debug.wireframe},set:function(o){this._Viewer.scene.globe._surface.tileProvider._debug.wireframe=o}},tileCoordinates:{get:function(){return this._Viewer.cesiumInspector.viewModel.tileCoordinates},set:function(o){this._Viewer.cesiumInspector.viewModel.tileCoordinates=o}},bim:{get:function(){if(!this._bim)throw new wt(`${this.language.BIM_UNSUPPORTED_MSG}`);return this._bim}},ser:{get:function(){if(!this._ser)throw new wt(`${this.language.BIM_UNSUPPORTED_MSG}`);return this._ser}},maxProjectionCount:{get:function(){return this.coreMap.scene.maxProjectionCount},set:function(o){this.coreMap.scene.maxProjectionCount=o}},atmosphere:{get:function(){return this._atmosphere}},simulate:{get:function(){return this._simulate}},language:{get:function(){return this.i18n.language}}});id.prototype.brightness=function(o){let f=o.enable??!0,m=o.brightness??1,x=this.coreMap.scene.postProcessStages;this.coreMap.scene.brightness=this.coreMap.scene.brightness||x.add($2.createBrightnessStage()),this.coreMap.scene.brightness.enabled=f,this.coreMap.scene.brightness.uniforms.brightness=Number(m)};id.prototype.judgeOnline=function(){let o=document.createElement("img"),f=new Promise((x,y)=>{let v=setTimeout(()=>{o&&(o.src="",o.remove(),o=null),clearTimeout(v),y("Timeout")},5e3)}),m=new Promise((x,y)=>{o.crossOrigin="anonymous",o.src=`https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/2/2/0?time=${new Date().getTime()}`,o.onload=()=>(o&&(o.src="",o.remove(),o=null),x(!0),!0),o.onerror=()=>(o&&(o.src="",o.remove(),o=null),x(!1),!0)});return Promise.race([m,f])};id.prototype.addLogo=function(){let o=this;queueMicrotask(()=>{let f=`
`};class gt{constructor(se,ve){var je=o;this[je(1081)]=1,this[je(491)]=[.3,.8,.3,.5],this.outlineColor=[1,1,1,.8],this.alpha_Uniform_DataView=new Float32Array(16),this[je(1033)]=new Uint32Array(this[je(1020)].buffer),this[je(1031)]=se,this[je(702)]=ve,this[je(1099)]=ve[je(1099)],this[je(525)]=this.device[je(690)]({size:4*this[je(1020)][je(800)],usage:GPUBufferUsage[je(844)]|GPUBufferUsage[je(526)]}),this[je(1020)].set(this.overlayColor),this.alpha_Uniform_DataView[je(895)](this[je(1014)],4),this[je(1099)][je(704)].writeBuffer(this.alpha_Uniform_VmBuffer,0,this[je(1020)]),this[je(1017)]=this[je(1099)][je(656)]({size:[this[je(702)][je(504)][je(1088)].width,this[je(702)].context[je(1088)][je(864)],1],format:je(637),usage:GPUTextureUsage.COPY_SRC|GPUTextureUsage[je(736)]|GPUTextureUsage[je(467)]|GPUTextureUsage[je(1013)]}),this[je(813)]=this.device[je(656)]({size:[this[je(702)][je(504)][je(1088)].width,this[je(702)][je(504)].canvas[je(864)],1],format:je(435),usage:GPUTextureUsage[je(448)]|GPUTextureUsage[je(736)]|GPUTextureUsage[je(467)]});let Ft=this[je(1099)][je(648)]({entries:[{binding:0,visibility:GPUShaderStage[je(539)],buffer:{type:je(1053)}},{binding:1,visibility:GPUShaderStage.VERTEX,buffer:{type:"read-only-storage"}},{binding:2,visibility:GPUShaderStage.VERTEX,buffer:{type:je(629)}},{binding:3,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}},{binding:4,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}},{binding:5,visibility:GPUShaderStage[je(539)],buffer:{type:je(1053)}},{binding:6,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}}]}),kt=(this.alpha_BingGroup=this[je(1099)][je(866)]({layout:Ft,entries:[{binding:0,resource:{buffer:this[je(702)][je(1068)]}},{binding:1,resource:{buffer:this[je(702)][je(680)]}},{binding:2,resource:{buffer:this.renderEngine[je(666)]}},{binding:3,resource:{buffer:this.renderEngine[je(1092)]}},{binding:4,resource:{buffer:this[je(702)][je(580)]}},{binding:5,resource:{buffer:this[je(525)]}},{binding:6,resource:{buffer:this.renderEngine.operateVmBuffer}}]}),this[je(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[je(539)]|GPUShaderStage[je(625)],buffer:{type:je(629)}}]})),bt=(this[je(933)]=this[je(1099)][je(866)]({layout:kt,entries:[{binding:0,resource:{buffer:this.renderEngine[je(688)]}}]}),this.device[je(917)]({bindGroupLayouts:this[je(702)].multiDrawIndirect?[Ft]:[Ft,kt]})),lt=at[je(1022)];this[je(702)][je(1035)]?lt=lt[je(926)](je(904),""):(lt=lt[je(926)](je(929),je(1009)),lt+=je(1093)),se=this[je(1099)][je(720)]({code:q[je(1022)]+lt}),this[je(955)]=this[je(1099)][je(950)]({layout:bt,vertex:{module:se,entryPoint:"vert_main",buffers:[],constants:{}},fragment:{module:se,entryPoint:je(1048),targets:[{format:this[je(1017)][je(980)]}],constants:{}},primitive:{topology:je(1062),frontFace:"ccw",cullMode:je(590)},depthStencil:{format:this[je(813)][je(980)],depthCompare:je(753),depthWriteEnabled:!0}}),this[je(1028)]={colorAttachments:[{view:this[je(1017)][je(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:je(971),storeOp:je(600)}],depthStencilAttachment:{view:this[je(813)][je(1045)](),depthClearValue:0,depthLoadOp:je(971),depthStoreOp:je(600),depthReadOnly:!1}},this[je(702)][je(1035)]||((ve=this.device[je(968)]({colorFormats:[this[je(1017)].format],depthStencilFormat:this.alpha_depth_Texture[je(980)]}))[je(689)](0,this.alpha_BingGroup),ve[je(501)](this[je(955)]),ve[je(689)](1,this[je(933)]),ve.drawIndirect(this.renderEngine[je(812)],0),this.alpha_RenderBundle=ve[je(1091)]()),this[je(546)]()}[o(991)](se){var ve=o,je=se.beginRenderPass(this[ve(1028)]);this.renderEngine[ve(1035)]?(je[ve(689)](0,this.alpha_BingGroup),je[ve(501)](this[ve(955)]),je.multiDrawIndirect(this[ve(688)],0,393216,this[ve(812)],0)):je.executeBundles([this[ve(1083)]]),je[ve(482)](),this[ve(585)](se)}EdgeMergeIntend(){var se=o;this.edgeMerge_color_Texture=this[se(1099)][se(656)]({size:[this.renderEngine.context.canvas[se(412)],this[se(702)].context[se(1088)].height,1],format:"rgba8unorm",usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(1013)]|GPUTextureUsage[se(467)]});var ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],sampler:{type:se(447)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(893)][se(980)],access:"read-only"}},{binding:3,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(893)][se(980)],access:se(633)}},{binding:4,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this.edgeMerge_color_Texture.format,access:se(714)}}]});this[se(924)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(525)]}},{binding:1,resource:this[se(702)][se(636)]},{binding:2,resource:this.renderEngine[se(502)][se(1045)]()},{binding:3,resource:this.alpha_color_Texture.createView()},{binding:4,resource:this.edgeMerge_color_Texture[se(1045)]()}]}),this.edgeMergeComputePipeline=this[se(1099)][se(1101)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),compute:{module:this.device[se(720)]({code:dt[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(585)](se){var ve=o,je=se[ve(911)]();je[ve(689)](0,this[ve(924)]),je.setPipeline(this.edgeMergeComputePipeline),je[ve(624)](this[ve(702)][ve(752)],this[ve(702)][ve(899)]),je[ve(482)](),se.copyTextureToTexture({texture:this[ve(893)]},{texture:this.renderEngine[ve(502)]},{width:this.edgeMerge_color_Texture[ve(412)],height:this[ve(893)][ve(864)]})}}let Et={code:o(664)};class et{constructor(se,ve){var je=o;this[je(1081)]=1,this.overlayColor=[.3,.8,.3,.5],this.outlineColor=[1,1,1,.8],this[je(1020)]=new Float32Array(16),this.alpha_Uniform_DataViewU32=new Uint32Array(this[je(1020)].buffer),this[je(1031)]=se,this[je(702)]=ve,this[je(1099)]=ve.device,this[je(525)]=this.device.createBuffer({size:4*this[je(1020)].length,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[je(526)]}),this[je(1020)].set(this.overlayColor),this[je(1020)][je(895)](this[je(1014)],4),this[je(1099)][je(704)][je(1039)](this.alpha_Uniform_VmBuffer,0,this[je(1020)]),this.alpha_color_Texture=this.device[je(656)]({size:[this[je(702)][je(504)][je(1088)][je(412)],this[je(702)][je(504)][je(1088)][je(864)],1],format:je(637),usage:GPUTextureUsage.COPY_SRC|GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage[je(467)]|GPUTextureUsage[je(1013)]}),this[je(813)]=this[je(1099)][je(656)]({size:[this[je(702)][je(504)][je(1088)].width,this[je(702)][je(504)].canvas[je(864)],1],format:"depth32float",usage:GPUTextureUsage[je(448)]|GPUTextureUsage[je(736)]|GPUTextureUsage.TEXTURE_BINDING}),se=this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[je(539)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}},{binding:2,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}},{binding:3,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}},{binding:4,visibility:GPUShaderStage[je(539)],buffer:{type:je(629)}},{binding:5,visibility:GPUShaderStage.VERTEX,buffer:{type:je(1053)}}]}),this[je(1054)]=this[je(1099)][je(866)]({layout:se,entries:[{binding:0,resource:{buffer:this.renderEngine[je(1068)]}},{binding:1,resource:{buffer:this[je(702)].modelVmBuffer}},{binding:2,resource:{buffer:this[je(702)][je(666)]}},{binding:3,resource:{buffer:this[je(702)].meshVmBuffer}},{binding:4,resource:{buffer:this[je(702)].meshLodVmBuffer}},{binding:5,resource:{buffer:this[je(525)]}}]}),ve=this[je(1099)][je(917)]({bindGroupLayouts:[se]}),se=this[je(1099)][je(720)]({code:q[je(1022)]+Et.code}),this.alpha_Pipeline=this[je(1099)][je(950)]({layout:ve,vertex:{module:se,entryPoint:je(744),buffers:[],constants:{}},fragment:{module:se,entryPoint:je(1048),targets:[{format:this[je(1017)].format}],constants:{}},primitive:{topology:je(956),frontFace:je(905),cullMode:"back"},depthStencil:{format:this[je(813)][je(980)],depthCompare:je(753),depthWriteEnabled:!0}}),this[je(1028)]={colorAttachments:[{view:this.alpha_color_Texture[je(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:je(971),storeOp:je(600)}],depthStencilAttachment:{view:this[je(813)][je(1045)](),depthClearValue:0,depthLoadOp:"clear",depthStoreOp:"store",depthReadOnly:!1}}}[o(991)](se){var ve=o;this[ve(1031)].instancesCount!==0&&((se=se[ve(675)](this[ve(1028)]))[ve(689)](0,this[ve(1054)]),se.setPipeline(this[ve(955)]),se.draw(8*this[ve(1031)][ve(1069)]),se[ve(482)]())}}class yt{constructor(se){var ve=o;this.fig=se,this[ve(778)]=0,this[ve(700)]=0,this[ve(1035)]=!1,this[ve(710)]=!0,this.readTemp_noLocking=!0,this[ve(1e3)]=!0,this[ve(983)]=!0,this[ve(837)]=!0,this[ve(425)]=1,this[ve(628)]=2,this[ve(767)]=3,this.vm_target_meshLod=4,this[ve(934)]=5,this[ve(561)]=6,this[ve(903)]=7,this[ve(1025)]=32,this[ve(804)]=new Float32Array(9),this[ve(795)]=20,this.spaceTotalCount=0,this[ve(598)]=10,this[ve(775)]=1e6,this[ve(858)]=new ArrayBuffer(64),this[ve(653)]=new Uint32Array([10,0,0,0]),this[ve(786)]=1e5,this[ve(915)]=Math.ceil(this.lightBodiesAssociateCount/1024),this[ve(764)]=1e6,this[ve(540)]=4096,this[ve(944)]=new Float32Array(128),this[ve(697)]=new Uint32Array(this[ve(944)][ve(877)]),this[ve(819)]=128,this[ve(1047)]=32,this[ve(881)]=this[ve(819)]-(this.blur_filterSize-1),this.blur_batch=[4,4],this[ve(630)]=0,this[ve(518)]=new Float32Array(4),this[ve(541)]=new Float32Array(128),this.volumeRender_Uniform_DataView=new Float32Array(128),this[ve(667)]=new Float32Array(128),this[ve(719)]=new Uint32Array(this[ve(667)].buffer),this.renderToCanvas_Uniform_DataView=new Float32Array([1,1,.1]),this[ve(681)]=new Uint32Array([27,0,0,0]),this.lastPickPositionValue=D[ve(807)](),this[ve(872)]=!0,this.allow_read_renderMaterial=!0,this[ve(954)]=!1,navigator[ve(437)].requestAdapter({powerPreference:"high-performance"}).then(je=>{var Ft=ve;if(je!==null){this[Ft(947)]=je;var kt,bt=Array[Ft(1050)](je[Ft(840)]||[]),lt={};for(kt in je[Ft(608)])lt[kt]=je[Ft(608)][kt];je[Ft(935)]({requiredFeatures:bt,requiredLimits:lt})[Ft(442)](ze=>{var tt=Ft;this[tt(1099)]=ze,this[tt(778)]=ze.limits.maxTextureDimension1D,this[tt(1019)]=tt(637),this.context=this[tt(1031)][tt(1088)][tt(678)]("webgpu"),this[tt(504)][tt(750)]({device:this[tt(1099)],format:this[tt(1019)],alphaMode:tt(493),toneMapping:{mode:tt(422)}}),this.fig[tt(515)]&&(this[tt(506)]=this[tt(1031)][tt(515)][tt(678)](tt(986)),this[tt(506)][tt(750)]({device:this[tt(1099)],format:this.presentationFormat,alphaMode:"premultiplied",toneMapping:{mode:tt(422)}})),this[tt(700)]=this[tt(504)].canvas[tt(864)]*this[tt(504)].canvas[tt(412)],globalThis.__ser_isDev__&&((ze=document.createElement(tt(1088))).style=tt(558),document[tt(455)].appendChild(ze),this[tt(797)]=ze[tt(678)](tt(986)),this[tt(797)][tt(1088)].width=300,this.context1[tt(1088)].height=300,this.context1[tt(750)]({device:this[tt(1099)],format:this[tt(1019)],alphaMode:tt(493)}),(ze=document[tt(602)](tt(1088)))[tt(887)]="position: absolute;top: 0;right: 0;z-index: 1;border: 1px solid white;pointer-events: none;",document[tt(455)][tt(621)](ze),this[tt(733)]=ze[tt(678)](tt(986)),this.context2.canvas[tt(412)]=this[tt(504)][tt(1088)][tt(412)]/5,this[tt(733)][tt(1088)][tt(864)]=this[tt(504)][tt(1088)].height/5,this.context2.configure({device:this.device,format:this[tt(1019)],alphaMode:tt(493)}),(ze=document[tt(602)](tt(1088)))[tt(887)]="position: absolute;bottom: 0;right: 0;z-index: 1;border: 1px solid white;pointer-events: none;",document.body[tt(621)](ze),this.context3=ze[tt(678)](tt(986)),this[tt(976)][tt(1088)][tt(412)]=this[tt(504)].canvas[tt(412)]/5,this[tt(976)].canvas[tt(864)]=this[tt(504)][tt(1088)].height/5,this[tt(976)].configure({device:this[tt(1099)],format:this[tt(1019)],alphaMode:tt(493)}),(ze=document.createElement(tt(1088))).style=tt(716),document[tt(455)][tt(621)](ze),this[tt(657)]=ze[tt(678)]("webgpu"),this[tt(657)][tt(1088)][tt(412)]=this[tt(504)][tt(1088)].width/5,this.context4[tt(1088)][tt(864)]=this.context[tt(1088)][tt(864)]/5,this[tt(657)][tt(750)]({device:this[tt(1099)],format:this.presentationFormat,alphaMode:tt(493)}));var ze=this[tt(1099)].createCommandEncoder(),ct=ze[tt(675)]({colorAttachments:[null]});this[tt(1035)]=!!ct.multiDrawIndirect,ct.end(),ze[tt(1091)](),this[tt(900)](),this[tt(510)](),this[tt(1031)][tt(661)]()})}})}[o(900)](){var se=o;this[se(854)]=this.device[se(741)]({magFilter:"nearest",minFilter:se(919)}),this[se(636)]=this.device[se(741)]({magFilter:se(865),minFilter:se(865)}),this.samplerDepth=this[se(1099)].createSampler({compare:se(753),minFilter:se(865),magFilter:se(865)}),this[se(962)]=this[se(1099)][se(656)]({size:[this.maxTextureSize,this.maxTextureSize,1],format:se(618),usage:GPUTextureUsage[se(467)]|GPUTextureUsage[se(526)]}),this[se(978)]=this.device[se(656)]({size:[this.maxTextureSize,this[se(778)],1],format:"bc7-rgba-unorm",usage:GPUTextureUsage[se(467)]|GPUTextureUsage.COPY_DST}),this[se(777)]=this[se(1099)].createTexture({size:[this[se(778)],this[se(778)],1],format:se(618),usage:GPUTextureUsage[se(467)]|GPUTextureUsage.COPY_DST}),this[se(459)]=this[se(1099)].createBuffer({size:52428800,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this[se(959)]=this[se(1099)][se(690)]({size:52428800,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this.readPickId_VmBuffer=this.device.createBuffer({size:4,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this[se(774)]=this.device[se(690)]({size:16,usage:GPUBufferUsage[se(683)]|GPUBufferUsage.COPY_DST}),this.zeroVmBuffer=this.device[se(690)]({size:52428800,usage:GPUBufferUsage[se(448)]}),this.scene_VmBuffer=this.device[se(690)]({size:this[se(1031)][se(735)][se(829)],usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]}),this[se(449)]=this[se(1099)][se(690)]({size:336,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]}),this[se(873)]=this[se(1099)][se(690)]({size:this[se(1031)][se(547)].byteLength,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(522)]|GPUBufferUsage[se(448)]}),this[se(883)]=this[se(1099)][se(825)]({type:se(931),count:10}),this[se(692)]=this[se(1099)][se(690)]({size:10*BigUint64Array.BYTES_PER_ELEMENT,usage:GPUBufferUsage[se(415)]|GPUBufferUsage[se(448)]}),this[se(627)]=this[se(1099)][se(690)]({size:10*BigUint64Array[se(730)],usage:GPUBufferUsage[se(526)]|GPUBufferUsage[se(683)]}),this[se(556)]=this[se(1099)][se(690)]({size:6291456,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this.renderMaterial_read_VmBuffer=this.device[se(690)]({size:6291456,usage:GPUBufferUsage[se(683)]|GPUBufferUsage[se(526)]}),this.modelVmBuffer=this[se(1099)].createBuffer({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST}),this[se(666)]=this[se(1099)][se(690)]({size:134217728,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(580)]=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage.STORAGE|GPUBufferUsage[se(526)]}),this.meshVmBuffer=this[se(1099)][se(690)]({size:524288e3,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_SRC|GPUBufferUsage.COPY_DST}),this.copyVmBuffer=this.device[se(690)]({size:8388608,usage:GPUBufferUsage[se(448)]|GPUBufferUsage[se(526)]}),this[se(792)]=this[se(1099)].createBuffer({size:8388608,usage:GPUBufferUsage.STORAGE|GPUBufferUsage[se(526)]}),this[se(1105)]=this.device[se(656)]({size:[this.context.canvas.width,this[se(504)][se(1088)].height,1],format:se(1018),usage:GPUTextureUsage[se(526)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage[se(1013)]}),this[se(571)]=this.device[se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)].canvas.height,1],format:se(1018),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(695)]=this.device[se(690)]({size:24,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage.COPY_SRC})}[o(510)](){var se=o;this[se(619)](),this[se(831)](),this.MakeCommandIntend(),this[se(909)](),this[se(411)](),this[se(480)](),this.LightBodiesAssociateIntend(),this[se(612)](),this.LightBodiesBounceOneIntend(),this[se(818)](),this[se(882)](),this[se(488)](),this[se(1106)](),this[se(822)](),this[se(1032)](),this[se(451)](),this[se(1031)].cesiumWidget&&this.RenderToCanvasIntend(),this.selectRender=new gt(this[se(1031)],this),this[se(869)]=new et(this.fig,this),globalThis.__ser_isDev__&&this[se(1010)]()}[o(560)](se){var ve=o,je=performance.now();switch(se.target){case this[ve(425)]:if(se[ve(1016)]&&se[ve(563)])this[ve(680)][ve(605)],se[ve(1016)],se.buf[ve(829)],this[ve(1099)][ve(704)][ve(1039)](this[ve(680)],se[ve(1016)],se[ve(563)]);else if(se[ve(413)])for(var Ft in se[ve(413)])this[ve(1099)].queue[ve(1039)](this.modelVmBuffer,~~Ft,se[ve(413)][Ft]);else se[ve(1089)]&&this[ve(1099)].queue[ve(1039)](this[ve(680)],se[ve(1016)],new ArrayBuffer(se[ve(1089)]));break;case this[ve(628)]:this.instanceVmBuffer[ve(605)],se.vmOffset,se[ve(563)].byteLength,this[ve(1099)][ve(704)][ve(1039)](this.instanceVmBuffer,se[ve(1016)],se[ve(563)]);break;case this[ve(767)]:this[ve(1092)][ve(605)],se[ve(1016)],se[ve(563)].byteLength,this[ve(1099)].queue.writeBuffer(this.meshVmBuffer,se[ve(1016)],se[ve(563)]);break;case this[ve(419)]:this[ve(580)][ve(605)],se[ve(1016)],se[ve(563)][ve(829)],this[ve(1099)][ve(704)][ve(1039)](this[ve(580)],se.vmOffset,se[ve(563)]);break;case this.vm_target_meshLod_up:this.updateMeshOffset_VmBuffer[ve(605)],se[ve(563)][ve(829)],this.device[ve(704)][ve(1039)](this[ve(711)],0,se.buf);var kt=this[ve(1099)][ve(981)]();this[ve(421)](kt,se[ve(815)]),this[ve(1099)][ve(704)][ve(635)]([kt[ve(1091)]()]);break;case this[ve(561)]:this[ve(1099)][ve(704)].writeTexture({texture:this[ve(962)],origin:se[ve(534)]},se.albedo_buf,se[ve(743)],se.size),se[ve(671)]&&this[ve(1099)].queue[ve(458)]({texture:this.normal_Texture,origin:se.origin},se[ve(671)],se[ve(743)],se[ve(605)]),se[ve(423)]&&this[ve(1099)][ve(704)][ve(458)]({texture:this[ve(777)],origin:se[ve(534)]},se[ve(423)],se[ve(743)],se[ve(605)]);break;case this[ve(903)]:this[ve(792)].size,se[ve(1016)],se.buf[ve(829)],this.device[ve(704)][ve(1039)](this.operateVmBuffer,se[ve(1016)],se[ve(563)])}je<performance[ve(495)]()-5&&console.log(ve(927),performance.now()-je,se[ve(723)])}OrganizeMeshVmData(se){var ve=o,je,Ft=this[ve(1099)][ve(981)]();for(je of se[ve(937)])this[ve(711)][ve(605)],je[ve(563)][ve(829)],this.device[ve(704)][ve(1039)](this[ve(711)],0,je[ve(563)]),this[ve(421)](Ft,je[ve(815)]);for(let bt=0;bt<se[ve(652)][ve(800)];bt+=3){let lt=se[ve(652)][bt],ot=se[ve(652)][bt+1],tt=se.copyList[bt+2];for(;;){if(!(tt>this[ve(647)][ve(605)])){Ft.copyBufferToBuffer(this[ve(1092)],ot,this[ve(647)],0,tt),Ft.copyBufferToBuffer(this.copyVmBuffer,0,this.meshVmBuffer,lt,tt);break}var kt=this[ve(647)][ve(605)];Ft[ve(913)](this[ve(1092)],ot,this[ve(647)],0,kt),Ft.copyBufferToBuffer(this[ve(647)],0,this[ve(1092)],lt,kt),ot+=kt,lt+=kt,tt-=kt}}this[ve(1099)][ve(704)].submit([Ft[ve(1091)]()])}[o(619)](){var se=o;this[se(701)]=this[se(1099)][se(690)]({size:10*Math.ceil(262144)*4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(1107)]=this[se(701)].size/4-100,this[se(1099)][se(704)][se(1039)](this.lightBodiesSpace_VmBuffer,0,new Uint32Array([10*this.lightBodiesSize,this[se(795)]<<1,2*this[se(795)]<<1,3*this[se(795)]<<1,4*this[se(795)]<<1,5*this[se(795)]<<1,6*this.lightBodiesSize<<1,7*this[se(795)]<<1,8*this.lightBodiesSize<<1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0])),this[se(907)]=this[se(1099)].createBuffer({size:8388608,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(975)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]}),this[se(551)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(448)]|GPUBufferUsage[se(724)]}),this[se(1099)][se(704)][se(1039)](this[se(551)],0,new Uint32Array([1e4,1,1,0])),this[se(604)]=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]}),this[se(1002)]=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage[se(448)]})}[o(831)](){var se=o;this[se(985)]=this[se(1099)][se(690)]({size:this[se(556)].size-4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(448)]}),this[se(788)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]|GPUBufferUsage.COPY_SRC});var ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:2,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:4,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:5,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:6,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}}]}),ve=(this[se(960)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:1,resource:{buffer:this[se(788)]}},{binding:2,resource:{buffer:this[se(985)]}},{binding:3,resource:{buffer:this[se(666)]}},{binding:4,resource:{buffer:this.meshVmBuffer}},{binding:5,resource:{buffer:this[se(680)]}},{binding:6,resource:{buffer:this[se(580)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this[se(1097)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this.device[se(720)]({code:q.code+k[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)][se(963)],instanceItemVmSize:this.instanceItemVmSize}}})}[o(1117)](se){var ve=o;se=se[ve(911)](),se[ve(501)](this[ve(1097)]),se.setBindGroup(0,this[ve(960)]),se[ve(624)](Math.ceil(this[ve(1031)].instancesCount/this[ve(1099)][ve(608)][ve(963)])),se.end()}[o(749)](){var se=o;this[se(812)]=this[se(1099)][se(690)]({size:32,usage:GPUBufferUsage.INDIRECT|GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST}),this[se(688)]=this.device[se(690)]({size:6291456,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(724)]}),this[se(920)]=this.device[se(690)]({size:this.renderMaterial_read_VmBuffer.size,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_SRC});var ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:5,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:6,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:8,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:9,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ve=(this[se(544)]=this[se(1099)].createBindGroup({layout:ve,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:2,resource:{buffer:this[se(666)]}},{binding:3,resource:{buffer:this[se(1092)]}},{binding:4,resource:{buffer:this[se(680)]}},{binding:5,resource:{buffer:this[se(812)]}},{binding:6,resource:{buffer:this.renderIndex_VmBuffer}},{binding:8,resource:{buffer:this.renderMaterial_VmBuffer}},{binding:9,resource:{buffer:this.meshLodVmBuffer}}]}),this.device[se(917)]({bindGroupLayouts:[ve]})),ve=(this[se(668)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)].createShaderModule({code:q[se(1022)]+U.code}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)][se(963)],maxRenderInstance:2*this.maxRenderInstance,multiDrawIndirect:this[se(1035)]?1:0,instanceItemVmSize:this[se(1025)]}}}),this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:5,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:6,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:7,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:8,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:9,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}));this[se(734)]=this.device[se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(688)]}},{binding:1,resource:{buffer:this.lightBodiesSpace_VmBuffer}},{binding:2,resource:{buffer:this.indirect_render_VmBuffer}},{binding:3,resource:{buffer:this[se(920)]}},{binding:4,resource:{buffer:this[se(666)]}},{binding:5,resource:{buffer:this[se(1068)]}},{binding:6,resource:{buffer:this[se(604)]}},{binding:7,resource:{buffer:this[se(551)]}},{binding:8,resource:{buffer:this.readMesh_atomic_VmBuffer}},{binding:9,resource:{buffer:this[se(873)]}}]}),this[se(565)]=this[se(1099)].createComputePipeline({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),compute:{module:this[se(1099)].createShaderModule({code:q[se(1022)]+B[se(1022)]+O[se(1022)]}),entryPoint:se(817),constants:{multiDrawIndirect:this.multiDrawIndirect?1:0}}})}[o(462)](se){var ve=o;this.fig[ve(1069)]!==1&&(se.copyBufferToBuffer(this[ve(1056)],0,this[ve(812)],0,this[ve(812)][ve(605)]),(se=se.beginComputePass()).setPipeline(this[ve(668)]),se[ve(689)](0,this.MakeCommandComputeBingGroup),se[ve(624)](Math.ceil(this[ve(1031)][ve(1069)]/this[ve(1099)][ve(608)][ve(963)])),se.setPipeline(this[ve(565)]),se.setBindGroup(0,this[ve(734)]),se.dispatchWorkgroups(1),se[ve(482)]())}[o(612)](){var se=o;this.updateMeshOffset_VmBuffer=this[se(1099)][se(690)]({size:10485760,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST});var ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:"read-only-storage"}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ve=(this[se(1041)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this.updateMeshOffset_VmBuffer}},{binding:1,resource:{buffer:this[se(580)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this.updateMeshOffsetComputePipeline=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:K[se(1022)]}),entryPoint:se(817),constants:{perWorkgroup:this[se(1099)][se(608)].maxComputeInvocationsPerWorkgroup}}})}[o(421)](se,ve){var je=o;se=se[je(911)]({timestampWrites:{querySet:this[je(883)],beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}}),se[je(501)](this.updateMeshOffsetComputePipeline),se.setBindGroup(0,this.updateMeshOffsetComputeBingGroup),se[je(624)](Math[je(552)](ve/this[je(1099)][je(608)][je(963)])),se[je(482)]()}[o(488)](){var se=o;this[se(912)]=new Uint32Array(this[se(858)]),this[se(912)][0]=1,this[se(846)]=new Float32Array(this.readMesh_Uniform_dataBuffer),this[se(502)]=this[se(1099)][se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)][se(1088)][se(864)],1],format:this.presentationFormat,usage:GPUTextureUsage.COPY_SRC|GPUTextureUsage.COPY_DST|GPUTextureUsage[se(467)]|GPUTextureUsage[se(1013)]});var je=2147483647,ve=-2147483648,je=(this[se(1099)][se(704)][se(1039)](this.readMesh_atomic_VmBuffer,0,new Int32Array([je,je,je,ve,ve,ve])),this[se(443)]=this.device.createBuffer({size:64,usage:GPUBufferUsage[se(844)]|GPUBufferUsage.COPY_DST}),this[se(498)]=16,this[se(752)]=Math.ceil(this[se(1102)][se(412)]/this[se(498)]),this[se(899)]=Math[se(552)](this[se(1102)][se(864)]/this[se(498)]),this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:"uniform"}},{binding:3,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this.meshRenderPositionTexture[se(980)],access:se(633)}},{binding:4,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(632)][se(980)],access:se(633)}},{binding:5,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(793)][se(980)],access:se(633)}},{binding:6,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:7,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:8,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:9,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this[se(502)][se(980)],access:se(714)}},{binding:10,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:11,visibility:GPUShaderStage.COMPUTE,storageTexture:{format:this[se(1105)][se(980)],access:"read-only"}},{binding:12,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(500)].format,access:se(633)}},{binding:13,visibility:GPUShaderStage[se(528)],sampler:{type:se(967)}},{binding:14,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(649),viewDimension:"2d-array"}},{binding:15,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}));this.readMeshComputeBingGroup=this[se(1099)][se(866)]({layout:je,entries:[{binding:0,resource:{buffer:this[se(443)]}},{binding:1,resource:{buffer:this.lightInfo_VmBuffer}},{binding:2,resource:{buffer:this[se(1068)]}},{binding:3,resource:this[se(1102)][se(1045)]()},{binding:4,resource:this[se(632)][se(1045)]()},{binding:5,resource:this.meshRenderInstancePtrTexture[se(1045)]()},{binding:6,resource:{buffer:this[se(666)]}},{binding:7,resource:{buffer:this.lightBodiesSpace_VmBuffer}},{binding:8,resource:{buffer:this[se(604)]}},{binding:9,resource:this[se(502)][se(1045)]()},{binding:10,resource:{buffer:this[se(569)]}},{binding:11,resource:this[se(1105)][se(1045)]()},{binding:12,resource:this[se(500)][se(1045)]()},{binding:13,resource:this[se(875)]},{binding:14,resource:this.renderShadowDepthView1},{binding:15,resource:{buffer:this.readMesh_atomic_VmBuffer}}]}),this[se(492)]=this[se(1099)][se(1101)]({label:se(492),layout:this.device[se(917)]({bindGroupLayouts:[je]}),compute:{module:this[se(1099)].createShaderModule({code:q.code+z.code+ae[se(1022)]+O[se(1022)]+oe.code}),entryPoint:se(817),constants:{spaceUnit:this.spaceUnit}}})}[o(725)](se){var ve=o;this[ve(1099)].queue[ve(1039)](this[ve(443)],0,this[ve(858)]),se=se.beginComputePass({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ve(501)](this[ve(492)]),se.setBindGroup(0,this.readMeshComputeBingGroup),se.dispatchWorkgroups(this[ve(752)],this[ve(899)]),se[ve(482)]()}[o(769)](){var se=o;this[se(906)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]}),this[se(1099)][se(704)].writeBuffer(this[se(906)],0,this[se(653)]);var ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]});this.lightBodiesAssociate_ComputeBingGroup=this.device[se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(906)]}},{binding:1,resource:{buffer:this[se(701)]}}]}),this[se(779)]=this[se(1099)][se(1101)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),compute:{module:this[se(1099)][se(720)]({code:ie.code+oe[se(1022)]}),entryPoint:se(817),constants:{lightBodiesSize:this[se(795)],spaceTotalCount:this[se(1107)]}}})}LightBodiesAssociate(se){var ve=o;this[ve(653)][0]+=this[ve(786)],this[ve(653)][0]*this.lightBodiesSize>this[ve(1107)]&&(this[ve(653)][0]=10),this[ve(1099)][ve(704)][ve(1039)](this[ve(906)],0,this[ve(653)]),se=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:6,endOfPassWriteIndex:7}}),se[ve(689)](0,this[ve(998)]),se.setPipeline(this[ve(779)]),se.dispatchWorkgroups(this[ve(915)]),se.end()}[o(823)](){var se=o,ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ve=(this[se(1015)]=this.device[se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(975)]}},{binding:1,resource:{buffer:this[se(873)]}},{binding:2,resource:{buffer:this[se(701)]}},{binding:3,resource:{buffer:this[se(604)]}},{binding:4,resource:{buffer:this[se(1002)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this[se(676)]=this[se(1099)][se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:O.code+te.code+oe.code}),entryPoint:"main",constants:{}}}),this[se(1040)]=this[se(1099)].createComputePipeline({layout:ve,compute:{module:this[se(1099)].createShaderModule({code:O.code+re[se(1022)]+oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(718)](se){var ve=o,je=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:2,endOfPassWriteIndex:3}});je[ve(689)](0,this[ve(1015)]),je.setPipeline(this[ve(676)]),je[ve(624)](Math[ve(552)](this[ve(764)]/128)),je.end(),this.LightBodiesRemoveDuplicatesIndirect(se)}[o(818)](){var se=o,ve=this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ve=(this.LightBodiesRemoveDuplicatesComputeBingGroup=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(701)]}},{binding:1,resource:{buffer:this[se(604)]}},{binding:2,resource:{buffer:this.lightBodiesBounceTwo_VmBuffer}}]}),this.device[se(917)]({bindGroupLayouts:[ve]}));this.LightBodiesRemoveDuplicatesComputePipeline=this[se(1099)][se(1101)]({layout:ve,compute:{module:this.device[se(720)]({code:ee[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(694)](se){var ve=o;se=se[ve(911)](),se.setBindGroup(0,this[ve(713)]),se.setPipeline(this[ve(1055)]),se.dispatchWorkgroupsIndirect(this[ve(551)],0),se.end()}LightBodiesRemoveDuplicatesIndirectIntend(){var se=o,ve=this[se(1099)][se(648)]({entries:[{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}}]}),ve=(this[se(1078)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:2,resource:{buffer:this[se(1002)]}},{binding:3,resource:{buffer:this[se(551)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[ve]}));this[se(1077)]=this.device[se(1101)]({layout:ve,compute:{module:this[se(1099)][se(720)]({code:se(433)}),entryPoint:"main",constants:{lightBodiesBounceCount:this[se(764)]}}})}LightBodiesRemoveDuplicatesIndirect(se){var ve=o;se=se[ve(911)](),se[ve(689)](0,this[ve(1078)]),se[ve(501)](this[ve(1077)]),se.dispatchWorkgroups(1),se[ve(482)]()}MeshRenderIntend(){var se=o;this[se(717)]=this[se(1099)].createBuffer({size:16,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(448)]}),this[se(762)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(526)]|GPUBufferUsage.COPY_SRC}),this[se(1099)][se(704)][se(1039)](this[se(762)],0,new Uint32Array([2,0,0,0])),this[se(472)]=this.device[se(656)]({size:[this[se(504)][se(1088)].width,this[se(504)][se(1088)][se(864)],1],format:se(435),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]}),this[se(1102)]=this[se(1099)][se(656)]({size:[this[se(504)].canvas.width,this.context[se(1088)][se(864)],1],format:se(1018),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(631)]=this[se(1099)][se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)][se(1088)][se(864)],1],format:se(1018),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(632)]=this.device[se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)].canvas[se(864)],1],format:"rgba32uint",usage:GPUTextureUsage[se(448)]|GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage[se(467)]|GPUTextureUsage[se(1013)]}),this[se(793)]=this.device[se(656)]({size:[this[se(504)][se(1088)][se(412)],this[se(504)][se(1088)][se(864)],1],format:se(958),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)]|GPUTextureUsage.STORAGE_BINDING}),this[se(569)]=this[se(1099)][se(690)]({size:this.context[se(1088)][se(412)]*this[se(504)][se(1088)][se(864)]*4*2,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage.COPY_SRC});let ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT,buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:"read-only-storage"}},{binding:2,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}},{binding:3,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}},{binding:4,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:5,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}},{binding:6,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:7,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:8,visibility:GPUShaderStage[se(625)],texture:{sampleType:"float",viewDimension:"2d"}},{binding:9,visibility:GPUShaderStage[se(625)],buffer:{type:"storage"}},{binding:10,visibility:GPUShaderStage[se(625)],buffer:{type:se(742)}},{binding:11,visibility:GPUShaderStage.FRAGMENT,buffer:{type:se(742)}},{binding:12,visibility:GPUShaderStage.FRAGMENT,buffer:{type:se(742)}},{binding:13,visibility:GPUShaderStage[se(539)],buffer:{type:"read-only-storage"}},{binding:14,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}}]}),je=(this[se(789)]=this.device[se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:1,resource:{buffer:this[se(680)]}},{binding:2,resource:{buffer:this[se(666)]}},{binding:3,resource:{buffer:this.meshVmBuffer}},{binding:4,resource:this.samplerNearest},{binding:5,resource:{buffer:this[se(449)]}},{binding:6,resource:this.albedo_Texture[se(1045)]()},{binding:7,resource:this[se(978)].createView()},{binding:8,resource:this[se(777)][se(1045)]()},{binding:9,resource:{buffer:this.lightBodiesSpace_VmBuffer}},{binding:10,resource:{buffer:this.lightBodiesSpaceAdd_VmBuffer}},{binding:11,resource:{buffer:this[se(717)]}},{binding:12,resource:{buffer:this[se(569)]}},{binding:13,resource:{buffer:this[se(580)]}},{binding:14,resource:{buffer:this[se(792)]}}]}),this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage.VERTEX|GPUShaderStage[se(625)],buffer:{type:"read-only-storage"}}]})),Ft=(this.meshRenderBindGroup_renderIndex=this[se(1099)][se(866)]({layout:je,entries:[{binding:0,resource:{buffer:this[se(688)]}}]}),this[se(1099)].createPipelineLayout({bindGroupLayouts:this[se(1035)]?[ve]:[ve,je]})),kt=Y[se(1022)];this.multiDrawIndirect?kt=kt[se(926)]("@group(1) @binding(0) var<storage,read> renderIndex: array<u32>;",""):(kt=kt[se(926)]("let ri = vec2<u32>(input.instanceIndex,input.vertexIndex);",se(1009)),kt+=se(1093));var bt=this[se(1099)][se(720)]({code:q[se(1022)]+kt});this.meshRenderPipeline=this[se(1099)][se(950)]({layout:Ft,vertex:{module:bt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:bt,entryPoint:se(1048),targets:[{format:this[se(1102)][se(980)]},{format:this[se(632)][se(980)]},{format:this[se(793)][se(980)]},{format:this.meshRender_prev_SSP_Texture[se(980)]}],constants:{spaceTotalCount:this[se(1107)],spaceUnit:this[se(598)]}},primitive:{topology:"triangle-list",frontFace:se(905),cullMode:se(590)},depthStencil:{format:this[se(472)][se(980)],depthCompare:se(753),depthWriteEnabled:!0}}),this[se(974)]={colorAttachments:[{view:this[se(1102)][se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)},{view:this[se(632)][se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)},{view:this.meshRenderInstancePtrTexture[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)},{view:this[se(631)][se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}],depthStencilAttachment:{view:this.meshRenderDepthTexture[se(1045)](),depthClearValue:0,depthLoadOp:"clear",depthStoreOp:se(600),depthReadOnly:!1},timestampWrites:{querySet:this[se(883)],beginningOfPassWriteIndex:4,endOfPassWriteIndex:5}},this[se(1035)]||((bt=this[se(1099)][se(968)]({colorFormats:[this.meshRenderPositionTexture.format,this[se(632)][se(980)],this[se(793)][se(980)],this[se(631)][se(980)]],depthStencilFormat:this[se(472)][se(980)]})).setBindGroup(0,this[se(789)]),bt[se(501)](this[se(1087)]),bt[se(689)](1,this[se(481)]),bt[se(1044)](this[se(812)],0),this[se(874)]=bt.finish())}[o(939)](se){var ve=o;se[ve(913)](this.meshRenderAtomic_InitData_VmBuffer,0,this[ve(717)],0,16),se[ve(913)](this[ve(1056)],0,this[ve(907)],0,this[ve(907)].size),se=se[ve(675)](this[ve(974)]),this[ve(1035)]?(se.setBindGroup(0,this[ve(789)]),se[ve(501)](this[ve(1087)]),se[ve(1035)](this[ve(688)],0,393216,this.indirect_render_VmBuffer,0)):se[ve(834)]([this[ve(874)]]),se[ve(482)]()}[o(411)](){var se=o;this[se(500)]=this[se(1099)][se(656)]({size:[this[se(540)],this[se(540)],1],format:se(958),usage:GPUTextureUsage[se(448)]|GPUTextureUsage[se(736)]|GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.STORAGE_BINDING}),this.renderShadowDepthTexture=this[se(1099)].createTexture({size:[this[se(540)],this[se(540)],1],usage:GPUTextureUsage[se(736)]|GPUTextureUsage[se(467)],format:se(435)}),this[se(707)]=this.renderShadowDepthTexture[se(1045)]({dimension:se(429),baseArrayLayer:0,arrayLayerCount:1});let ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(539)]|GPUShaderStage[se(625)],buffer:{type:se(629)}},{binding:3,visibility:GPUShaderStage.VERTEX,buffer:{type:se(629)}},{binding:4,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}},{binding:5,visibility:GPUShaderStage[se(539)],buffer:{type:se(629)}}]}),je=(this[se(414)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(1068)]}},{binding:1,resource:{buffer:this[se(873)]}},{binding:2,resource:{buffer:this[se(680)]}},{binding:3,resource:{buffer:this.instanceVmBuffer}},{binding:4,resource:{buffer:this[se(1092)]}},{binding:5,resource:{buffer:this[se(580)]}}]}),this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(539)]|GPUShaderStage.FRAGMENT,buffer:{type:se(629)}}]})),Ft=(this.renderShadowBindGroup_renderIndex=this[se(1099)][se(866)]({layout:je,entries:[{binding:0,resource:{buffer:this[se(688)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:this[se(1035)]?[ve]:[ve,je]})),kt=J[se(1022)];this[se(1035)]?kt=kt[se(926)](se(904),""):(kt=kt[se(926)](se(929),se(1009)),kt+=se(1093));var bt=this[se(1099)][se(720)]({code:q[se(1022)]+kt+O.code});this[se(1104)]=this[se(1099)].createRenderPipeline({label:se(1104),layout:Ft,vertex:{module:bt,entryPoint:se(744),buffers:[],constants:{}},fragment:{module:bt,entryPoint:"frag_main",targets:[{format:this[se(500)][se(980)]}],constants:{}},primitive:{topology:se(1062),frontFace:se(905),cullMode:se(590)},depthStencil:{format:this[se(559)][se(980)],depthCompare:se(753),depthWriteEnabled:!0}}),this.renderShadowRenderPassDescriptor={colorAttachments:[{view:this.renderShadowInstancePtrTexture.createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}],depthStencilAttachment:{view:this.renderShadowDepthView1,depthClearValue:0,depthLoadOp:se(971),depthStoreOp:"store",depthReadOnly:!1}},this[se(1035)]||((bt=this[se(1099)][se(968)]({colorFormats:[this[se(500)][se(980)]],depthStencilFormat:this[se(559)][se(980)]}))[se(689)](0,this[se(414)]),bt[se(501)](this.renderShadowPipeline),bt[se(689)](1,this.renderShadowBindGroup_renderIndex),bt[se(1044)](this[se(812)],0),this[se(496)]=bt[se(1091)]())}[o(537)](se){var ve=o;this.renderShadowRenderPassDescriptor[ve(1052)][ve(703)]=this[ve(707)],se=se[ve(675)](this[ve(1049)]),this[ve(1035)]?(se.setBindGroup(0,this[ve(414)]),se.setPipeline(this.renderShadowPipeline),se[ve(1035)](this[ve(688)],0,393216,this[ve(812)],0)):se[ve(834)]([this[ve(496)]]),se[ve(482)]()}[o(480)](){var se=o;this.dynamicSpaceIndirect_VmBuffer=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(526)]|GPUBufferUsage[se(724)]}),this[se(1099)][se(704)][se(1039)](this[se(596)],0,new Uint32Array([1,1,1,0]));var ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(742)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(742)}}]}),ve=(this[se(691)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(907)]}},{binding:1,resource:{buffer:this[se(701)]}}]}),this.device[se(917)]({bindGroupLayouts:[ve]}));this[se(1007)]=this.device.createComputePipeline({layout:ve,compute:{module:this[se(1099)][se(720)]({code:j[se(1022)]}),entryPoint:se(817),constants:{spaceTotalCount:this[se(1107)],lightBodiesSize:this.lightBodiesSize}}})}DynamicSpace(se){var ve=o;se[ve(913)](this[ve(907)],4,this[ve(596)],0,4),se=se[ve(911)](),se[ve(689)](0,this.dynamicSpaceComputeBingGroup),se[ve(501)](this.dynamicSpaceComputePipeline),se[ve(538)](this.dynamicSpaceIndirect_VmBuffer,0),se[ve(482)]()}[o(1106)](){var se=o;this[se(620)]=this[se(1099)][se(690)]({size:4*this[se(944)].length,usage:GPUBufferUsage[se(844)]|GPUBufferUsage.COPY_DST}),this.device[se(704)][se(1039)](this[se(620)],0,this.ssrReflections_Uniform_DataView);var ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(631)][se(980)],access:se(633)}},{binding:3,visibility:GPUShaderStage[se(528)],storageTexture:{format:this.meshRender_packData_Texture[se(980)],access:"read-only"}},{binding:4,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(649)}},{binding:5,visibility:GPUShaderStage[se(528)],sampler:{type:se(447)}},{binding:6,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:7,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:8,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(571)][se(980)],access:"write-only"}}]});this[se(961)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(620)]}},{binding:2,resource:this[se(631)][se(1045)]()},{binding:3,resource:this[se(632)].createView()},{binding:4,resource:this[se(472)][se(1045)]()},{binding:5,resource:this[se(636)]},{binding:6,resource:this.finalColor_Texture[se(1045)]()},{binding:7,resource:this[se(1105)].createView()},{binding:8,resource:this.ssr_color_accumulated_Texture[se(1045)]()}]}),this[se(1095)]=this[se(1099)].createComputePipeline({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),compute:{module:this.device.createShaderModule({code:ae[se(1022)]+Se.code}),entryPoint:se(817),constants:{}}})}[o(428)](se){var ve=o;this[ve(944)][ve(895)](this[ve(1031)][ve(1008)]),this[ve(944)][ve(895)](this.fig[ve(838)],16),this[ve(944)][ve(895)](this[ve(1031)][ve(640)],32),this[ve(944)][ve(895)](this[ve(1031)][ve(1024)],48),this.ssrReflections_Uniform_DataView[64]=this.fig[ve(509)][ve(1108)],this.ssrReflections_Uniform_DataView[65]=this[ve(1031)].cameraParameter.far,this[ve(944)][66]=5,this[ve(944)][67]=2e3,this.ssrReflections_Uniform_DataView[68]=.5,this[ve(944)][69]=.2,this[ve(944)][70]=.95,this.ssrReflections_Uniform_DataView[71]=20,this[ve(944)][72]=1,this.ssrReflections_Uniform_DataView[73]=.9,this[ve(697)][74]=4294967295*Math.random(),this[ve(697)][75]=4294967295*Math[ve(1080)](),this.ssrReflections_Uniform_DataViewU32[76]=4294967295*Math[ve(1080)](),this[ve(1099)].queue[ve(1039)](this.ssrReflections_Uniform_VmBuffer,0,this.ssrReflections_Uniform_DataView);var je=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}});je[ve(689)](0,this[ve(961)]),je[ve(501)](this.ssrReflectionsComputePipeline),je.dispatchWorkgroups(this[ve(752)],this[ve(899)]),je.end(),se[ve(603)]({texture:this.ssr_color_accumulated_Texture},{texture:this.ssr_color_Texture},{width:this[ve(1105)][ve(412)],height:this.ssr_color_Texture[ve(864)]})}ImageBlurIntend(){var se=o;this[se(891)]=this[se(1099)].createComputePipeline({layout:se(772),compute:{module:this.device[se(720)]({code:ce.code})}});var ve,je,Ft=this[se(1099)][se(656)]({size:{width:this[se(504)].canvas.width,height:this.context[se(1088)].height},format:this[se(1019)],usage:GPUTextureUsage.COPY_DST|GPUTextureUsage[se(1013)]|GPUTextureUsage[se(467)]}),kt=Ft,bt=(ve=this[se(1099)].createBuffer({size:4,mappedAtCreation:!0,usage:GPUBufferUsage[se(844)]}),new Uint32Array(ve.getMappedRange())[0]=0,ve[se(484)](),je=this[se(1099)].createBuffer({size:4,mappedAtCreation:!0,usage:GPUBufferUsage.UNIFORM}),new Uint32Array(je[se(827)]())[0]=1,je[se(484)](),this[se(1099)].createBuffer({size:8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage[se(844)]}));this[se(1099)][se(704)][se(1039)](bt,0,new Uint32Array([this[se(630)],this[se(881)]])),this.blur_computeConstants_ComputeBingGroup=this[se(1099)][se(866)]({layout:this[se(891)][se(763)](0),entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:{buffer:bt}}]}),this[se(591)]=this.device.createBindGroup({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:kt[se(1045)]()},{binding:2,resource:Ft[se(1045)]()},{binding:3,resource:{buffer:ve}}]}),this[se(418)]=this[se(1099)][se(866)]({layout:this.blurComputePipeline[se(763)](1),entries:[{binding:1,resource:Ft[se(1045)]()},{binding:2,resource:kt.createView()},{binding:3,resource:{buffer:je}}]})}[o(529)](se){var ve=o;if(0<this[ve(630)]){var je=se[ve(911)]();je.setPipeline(this.blurComputePipeline),je[ve(689)](0,this[ve(1027)]);for(let Ft=0;Ft<this[ve(630)];++Ft)je[ve(689)](1,this[ve(591)]),je[ve(624)](Math[ve(552)](this[ve(504)][ve(1088)][ve(412)]/this.blur_blockDim),Math[ve(552)](this[ve(504)].canvas[ve(864)]/this[ve(533)][1])),je[ve(689)](1,this[ve(418)]),je[ve(624)](Math[ve(552)](this[ve(504)][ve(1088)][ve(412)]/this.blur_blockDim),Math[ve(552)](this[ve(504)][ve(1088)].height/this[ve(533)][1]));je[ve(482)]()}}[o(1032)](){var se=o;this[se(982)]=this[se(1099)][se(690)]({size:4*this[se(518)][se(800)],usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]});var ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage.FRAGMENT,sampler:{type:"filtering"}},{binding:1,visibility:GPUShaderStage.FRAGMENT,sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:4,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:5,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(445),viewDimension:"2d"}},{binding:6,visibility:GPUShaderStage[se(625)],texture:{sampleType:"uint",viewDimension:"2d"}},{binding:7,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}}]}),je=(this[se(851)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:this.samplerLinear},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(502)][se(1045)]()},{binding:4,resource:this[se(966)][se(1045)]()},{binding:5,resource:this[se(632)].createView()},{binding:6,resource:this[se(793)][se(1045)]()},{binding:7,resource:{buffer:this[se(982)]}}]}),this[se(1099)].createShaderModule({code:pe.code}));this[se(841)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),vertex:{module:je,entryPoint:se(744),buffers:[]},fragment:{module:je,entryPoint:se(1048),targets:[{format:this.presentationFormat}]},primitive:{topology:se(1062),frontFace:se(905),cullMode:se(590)}}),this[se(791)]={colorAttachments:[{view:this[se(504)][se(696)]()[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}]}}[o(686)](se){var ve=o;!this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(995)]||this[ve(1031)][ve(835)][ve(953)].mouse.downLeftX==this.fig[ve(835)][ve(953)].mouse[ve(507)]&&this.fig[ve(835)].status[ve(450)][ve(679)]==this[ve(1031)][ve(835)][ve(953)][ve(450)].clientY?this[ve(518)][ve(895)]([0,0,0,0]):this[ve(518)][ve(895)]([(this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(507)]-this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(715)])/this.finalColor_Texture[ve(412)],(this[ve(1031)][ve(835)].status[ve(450)][ve(783)]-this[ve(1031)][ve(835)][ve(953)][ve(450)][ve(679)])/this[ve(502)][ve(864)],1]),this[ve(1099)][ve(704)][ve(1039)](this[ve(982)],0,this[ve(518)]),this[ve(791)][ve(566)][0][ve(703)]=this.context[ve(696)]()[ve(1045)](),se=se[ve(675)](this[ve(791)]),se.setPipeline(this.finalDisplayPipeline),se[ve(689)](0,this[ve(851)]),se[ve(729)](6),se[ve(482)]()}[o(822)](){var se=o;this.edgeStrength_finalColor_Texture=this[se(1099)].createTexture({dimension:"2d",size:[this.finalColor_Texture[se(412)],this[se(502)][se(864)],1],format:this.presentationFormat,usage:GPUTextureUsage[se(526)]|GPUTextureUsage[se(1013)]|GPUTextureUsage[se(467)]}),this.edgeStrength_Uniform_VmBuffer=this[se(1099)][se(690)]({size:4*this.edgeStrength_Uniform_DataView[se(800)],usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]});var ve=this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(966)][se(980)],access:se(714)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(632)][se(980)],access:se(633)}}]});this.edgeStrengthComputeBingGroup=this[se(1099)].createBindGroup({layout:ve,entries:[{binding:0,resource:{buffer:this[se(426)]}},{binding:1,resource:this.edgeStrength_finalColor_Texture.createView()},{binding:2,resource:this[se(632)][se(1045)]()}]}),this[se(862)]=this[se(1099)][se(1101)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),compute:{module:this[se(1099)].createShaderModule({code:q.code+Oe[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(444)](se){var ve=o;se=se[ve(911)](),se[ve(501)](this[ve(862)]),se[ve(689)](0,this[ve(996)]),se.dispatchWorkgroups(this[ve(752)],this[ve(899)]),se[ve(482)]()}[o(1001)](){var se=o;this[se(876)]=this[se(1099)][se(656)]({dimension:"2d",size:[3600,1800,50],format:se(833),usage:GPUTextureUsage[se(526)]|GPUTextureUsage[se(467)]}),fetch(se(936))[se(442)](Ft=>{var kt=se;Ft[kt(871)]()[kt(442)](bt=>{var lt=kt;bt=new Float32Array(bt),this[lt(1099)][lt(704)].writeTexture({texture:this.volumeRender_3dData_Texture},bt,{bytesPerRow:7200,rowsPerImage:1800},[3600,1800,50])})});var ve=this[se(1099)][se(741)]({magFilter:se(865),minFilter:se(865),mipmapFilter:"linear",maxAnisotropy:1}),je=(this[se(856)]=this[se(1099)][se(690)]({size:4*this[se(543)][se(800)],usage:GPUBufferUsage.UNIFORM|GPUBufferUsage[se(526)]}),this.device[se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],storageTexture:{format:this[se(502)][se(980)],access:se(714)}},{binding:3,visibility:GPUShaderStage[se(528)],texture:{sampleType:se(1029),viewDimension:se(429)}},{binding:4,visibility:GPUShaderStage[se(528)],sampler:{type:se(447)}}]}));this[se(582)]=this[se(1099)][se(866)]({layout:je,entries:[{binding:0,resource:{buffer:this.volumeRender_Uniform_VmBuffer}},{binding:1,resource:{buffer:this[se(1068)]}},{binding:2,resource:this[se(502)][se(1045)]()},{binding:3,resource:this[se(876)].createView()},{binding:4,resource:ve}]}),this[se(615)]=this[se(1099)][se(1101)]({layout:this.device[se(917)]({bindGroupLayouts:[je]}),compute:{module:this[se(1099)].createShaderModule({code:Le[se(1022)]+q[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(440)](se){var ve=o;this[ve(543)][ve(895)](this[ve(1031)][ve(640)]),this.volumeRender_Uniform_DataView[ve(895)](this[ve(1031)][ve(587)],16),this[ve(1099)].queue[ve(1039)](this[ve(856)],0,this.volumeRender_Uniform_DataView),se=se[ve(911)]({timestampWrites:{querySet:this[ve(883)],beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se.setPipeline(this[ve(615)]),se[ve(689)](0,this.volumeRenderComputeBingGroup),se[ve(624)](this.readMesh_dispatchWorkgroupsX,this[ve(899)]),se[ve(482)]()}[o(889)](){var se=o;this.streamRender_Uniform_DataView[se(895)]([3600,1800,50],38),this[se(945)]=this[se(1099)][se(690)]({size:1296e6,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]}),fetch(se(1073)).then(je=>{var Ft=se;je[Ft(871)]()[Ft(442)](kt=>{var bt=Ft;this[bt(945)].size,kt[bt(829)],this[bt(1099)][bt(704)][bt(1039)](this[bt(945)],0,kt)})}),this.streamRender_Uniform_VmBuffer=this[se(1099)].createBuffer({size:4*this[se(667)].length,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]}),this[se(946)]=this.device[se(690)]({size:this[se(793)].width*this[se(793)][se(864)]*4*4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]}),this[se(780)]=this[se(1099)].createBuffer({size:this[se(793)].width*this[se(793)][se(864)]*4*4,usage:GPUBufferUsage[se(522)]|GPUBufferUsage[se(526)]});var ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(528)],buffer:{type:se(1053)}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:se(1053)}},{binding:2,visibility:GPUShaderStage[se(528)],buffer:{type:"read-only-storage"}},{binding:3,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:4,visibility:GPUShaderStage[se(528)],buffer:{type:"storage"}},{binding:5,visibility:GPUShaderStage[se(528)],storageTexture:{format:this.finalColor_Texture[se(980)],access:se(714)}}]});this[se(494)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:{buffer:this[se(843)]}},{binding:1,resource:{buffer:this.scene_VmBuffer}},{binding:2,resource:{buffer:this.streamRender_3dData_VmBuffer}},{binding:3,resource:{buffer:this[se(946)]}},{binding:4,resource:{buffer:this[se(780)]}},{binding:5,resource:this[se(502)].createView()}]}),this[se(570)]=this[se(1099)].createComputePipeline({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),compute:{module:this[se(1099)][se(720)]({code:Ve.code+q.code+ae[se(1022)]}),entryPoint:se(817),constants:{}}})}[o(949)](se){var ve=o;this.streamRender_Uniform_DataView.set(this.fig.projectToPixelMatrix),this[ve(667)][ve(895)](this[ve(1031)].viewMatrix,16),this[ve(667)][ve(895)]([.4,5,.95],32),this[ve(719)][ve(895)]([4294967295*Math.random(),4294967295*Math[ve(1080)](),4294967295*Math[ve(1080)]()],35),this[ve(1099)][ve(704)].writeBuffer(this[ve(843)],0,this.streamRender_Uniform_DataView),se=se[ve(911)]({timestampWrites:{querySet:this.querySet,beginningOfPassWriteIndex:8,endOfPassWriteIndex:9}}),se[ve(501)](this[ve(570)]),se[ve(689)](0,this[ve(494)]),se[ve(624)](this[ve(752)],this[ve(899)]),se[ve(482)]()}[o(1010)](){var se=o,ve=this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:"filtering"}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:"depth",viewDimension:se(429)}}]}),je=(this[se(957)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(707)]}]}),this[se(1099)][se(720)]({code:ue[se(1022)]})),ve=(this[se(852)]=this[se(1099)][se(950)]({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),vertex:{module:je,entryPoint:se(744),buffers:[]},fragment:{module:je,entryPoint:se(1048),targets:[{format:this[se(1019)]}]},primitive:{topology:se(1062),frontFace:se(905),cullMode:"back"}}),this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:"filtering"}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}}]})),je=(this[se(727)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this.samplerNearest},{binding:2,resource:this.finalColor_Texture[se(1045)]()}]}),this[se(1099)][se(720)]({code:he[se(1022)]})),ve=(this[se(916)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),vertex:{module:je,entryPoint:se(744),buffers:[]},fragment:{module:je,entryPoint:se(1048),targets:[{format:this.presentationFormat}]},primitive:{topology:se(1062),frontFace:"ccw",cullMode:"back"}}),this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:"non-filtering"}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}}]})),je=(this[se(830)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(486)][se(1017)].createView()}]}),this[se(1099)].createShaderModule({code:fe[se(1022)]})),ve=(this[se(641)]=this[se(1099)][se(950)]({layout:this[se(1099)][se(917)]({bindGroupLayouts:[ve]}),vertex:{module:je,entryPoint:se(744),buffers:[]},fragment:{module:je,entryPoint:"frag_main",targets:[{format:this[se(1019)]}]},primitive:{topology:"triangle-list",frontFace:se(905),cullMode:se(590)}}),this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:se(1111)}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}}]})),je=(this.renderDebugTest4BindGroup=this.device[se(866)]({layout:ve,entries:[{binding:0,resource:this.samplerLinear},{binding:1,resource:this[se(854)]},{binding:2,resource:this[se(869)].alpha_color_Texture.createView()}]}),this[se(1099)][se(720)]({code:de[se(1022)]}));this.renderDebugTest4Pipeline=this[se(1099)].createRenderPipeline({layout:this.device[se(917)]({bindGroupLayouts:[ve]}),vertex:{module:je,entryPoint:se(744),buffers:[]},fragment:{module:je,entryPoint:se(1048),targets:[{format:this[se(1019)]}]},primitive:{topology:"triangle-list",frontFace:"ccw",cullMode:se(590)}}),this[se(430)]={colorAttachments:[{view:this.context1[se(696)]().createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}]}}RenderDebugTest(se){var ve=o;this.renderDebugTestRenderPassDescriptor[ve(566)][0].view=this.context1[ve(696)]()[ve(1045)]();var je=se[ve(675)](this[ve(430)]),je=(je[ve(501)](this[ve(852)]),je[ve(689)](0,this.renderDebugTest1BindGroup),je[ve(729)](6),je[ve(482)](),this[ve(430)][ve(566)][0][ve(703)]=this[ve(733)][ve(696)]().createView(),se.beginRenderPass(this[ve(430)])),je=(je[ve(501)](this[ve(916)]),je.setBindGroup(0,this[ve(727)]),je[ve(729)](6),je[ve(482)](),this[ve(430)][ve(566)][0][ve(703)]=this.context3[ve(696)]()[ve(1045)](),se[ve(675)](this.renderDebugTestRenderPassDescriptor)),je=(je[ve(501)](this[ve(641)]),je.setBindGroup(0,this.renderDebugTest3BindGroup),je.draw(6),je[ve(482)](),this[ve(430)].colorAttachments[0][ve(703)]=this[ve(657)][ve(696)]()[ve(1045)](),se.beginRenderPass(this[ve(430)]));je[ve(501)](this[ve(989)]),je[ve(689)](0,this.renderDebugTest4BindGroup),je[ve(729)](6),je.end()}RenderToCanvasIntend(){var se=o;this[se(659)]=this[se(1099)][se(690)]({size:12,usage:GPUBufferUsage[se(844)]|GPUBufferUsage[se(526)]});var ve=this[se(1099)][se(648)]({entries:[{binding:0,visibility:GPUShaderStage[se(625)],sampler:{type:se(447)}},{binding:1,visibility:GPUShaderStage[se(625)],sampler:{type:"non-filtering"}},{binding:2,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:3,visibility:GPUShaderStage[se(625)],texture:{sampleType:se(1029),viewDimension:"2d"}},{binding:4,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}},{binding:5,visibility:GPUShaderStage[se(625)],buffer:{type:se(1053)}}]}),ve=(this[se(928)]=this[se(1099)][se(866)]({layout:ve,entries:[{binding:0,resource:this[se(636)]},{binding:1,resource:this[se(854)]},{binding:2,resource:this.finalColor_Texture[se(1045)]()},{binding:3,resource:this[se(1102)][se(1045)]()},{binding:4,resource:{buffer:this[se(659)]}},{binding:5,resource:{buffer:this[se(1068)]}}]}),this.device[se(917)]({bindGroupLayouts:[ve]})),je=this[se(1099)][se(720)]({code:q[se(1022)]+$e.code});this[se(805)]=this[se(1099)].createRenderPipeline({label:se(781),layout:ve,vertex:{module:je,entryPoint:"vert_main",buffers:[]},fragment:{module:je,entryPoint:se(1048),targets:[{format:this.presentationFormat},{format:this[se(1019)]}],constants:{canvasSizeWidth:this[se(472)][se(412)],canvasSizeHeight:this[se(472)][se(864)]}},primitive:{topology:se(1062),frontFace:"ccw",cullMode:"back"}}),this[se(660)]={label:se(1098),colorAttachments:[{view:this[se(504)].getCurrentTexture()[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:"store"},{view:this[se(506)].getCurrentTexture()[se(1045)](),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:"store"}]}}RenderToCanvas(se){var ve=o;this[ve(1004)][0]=this[ve(1031)][ve(672)][ve(859)].frameState.useLogDepth?1:0,this[ve(1004)][1]=this[ve(1031)][ve(672)].scene.context[ve(420)][ve(1003)].x,this[ve(1004)][2]=this.fig[ve(672)][ve(859)][ve(504)][ve(420)][ve(794)],this[ve(1099)][ve(704)][ve(1039)](this[ve(659)],0,this[ve(1004)]),this[ve(660)][ve(566)][0][ve(703)]=this[ve(504)][ve(696)]()[ve(1045)](),this.renderToCanvasRenderPassDescriptor.colorAttachments[1].view=this[ve(506)][ve(696)]()[ve(1045)](),se=se.beginRenderPass(this[ve(660)]),se.setPipeline(this.renderToCanvasPipeline),se[ve(689)](0,this[ve(928)]),se.draw(6),se[ve(482)]()}[o(451)](){var se=o;this[se(888)]=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(844)]|GPUBufferUsage.COPY_DST}),this.voxelRender_Indirect_VmBuffer=this[se(1099)][se(690)]({size:16,usage:GPUBufferUsage[se(522)]|GPUBufferUsage.COPY_DST|GPUBufferUsage[se(724)]}),this[se(1099)][se(704)][se(1039)](this[se(951)],0,new Uint32Array([this.spaceTotalCount/10-200,1,100,0]));var je=this[se(1099)].createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage[se(625)]|GPUShaderStage[se(539)],buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage[se(625)]|GPUShaderStage[se(539)],buffer:{type:"uniform"}},{binding:2,visibility:GPUShaderStage[se(625)]|GPUShaderStage.VERTEX,buffer:{type:se(629)}}]}),je=(this[se(684)]=this.device.createBindGroup({layout:je,entries:[{binding:0,resource:{buffer:this.voxelRender_Uniform_VmBuffer}},{binding:1,resource:{buffer:this.scene_VmBuffer}},{binding:2,resource:{buffer:this[se(701)]}}]}),this[se(1099)][se(917)]({bindGroupLayouts:[je]})),ve=this[se(1099)][se(720)]({code:q[se(1022)]+Ce[se(1022)]}),je={layout:je,vertex:{module:ve,entryPoint:"vert_main",buffers:[],constants:{spaceUnit:this[se(598)],lightBodiesSize:this[se(795)]}},fragment:{module:ve,entryPoint:se(1048),targets:[{format:this[se(1019)]}]},primitive:{topology:"point-list",frontFace:se(905),cullMode:se(863)}};this[se(588)]=this[se(1099)][se(950)](je),this[se(1051)]={colorAttachments:[{view:this[se(504)][se(696)]().createView(),clearValue:{r:0,g:0,b:0,a:0},loadOp:se(971),storeOp:se(600)}]}}[o(814)](se){var ve=o;this[ve(1099)][ve(704)][ve(1039)](this[ve(888)],0,this[ve(681)]),this[ve(1051)].colorAttachments[0].view=this.context[ve(696)]()[ve(1045)](),se=se.beginRenderPass(this[ve(1051)]),se.setPipeline(this.voxelRenderPipeline),se.setBindGroup(0,this[ve(684)]),se[ve(1044)](this[ve(951)],0),se[ve(482)]()}[o(806)](se,ve){return new Promise((je,Ft)=>{var kt=wh,bt;this[kt(983)]?(this[kt(983)]=!1,(bt=this.device[kt(981)]())[kt(809)]({texture:this[kt(793)],mipLevel:0,origin:{x:se,y:ve},aspect:kt(768)},{buffer:this[kt(497)],offset:0,bytesPerRow:256*Math[kt(552)](4*this[kt(793)][kt(412)]/256),rowsPerImage:1},{width:1,height:1}),this.device.queue.submit([bt[kt(1091)]()]),this[kt(497)][kt(705)](GPUMapMode[kt(470)]).then(()=>{var lt=kt,ot=this[lt(497)][lt(827)](0,4),ot=new Uint32Array(ot)[0];this[lt(497)].unmap(),this.readPickId_noLocking=!0,je(ot)})):Ft()})}[o(669)](se,ve){let je=(Ft,kt)=>{var bt=wh,lt=this[bt(1099)][bt(981)]();lt[bt(809)]({texture:this[bt(1102)],mipLevel:0,origin:{x:se,y:ve},aspect:bt(768)},{buffer:this.readPickPosition_VmBuffer,offset:0,bytesPerRow:256*Math[bt(552)](4*this[bt(1102)][bt(412)]*4/256),rowsPerImage:1},{width:1,height:1}),this.device[bt(704)][bt(635)]([lt[bt(1091)]()]),this.readPickPosition_VmBuffer[bt(705)](GPUMapMode[bt(470)])[bt(442)](()=>{var ot=bt,tt=this[ot(774)][ot(827)](0,16),tt=Array[ot(1050)](new Float32Array(tt));this[ot(774)][ot(484)](),this.readPickPosition_noLocking=!0,tt[3]!=0&&D[ot(987)](tt,this[ot(1031)][ot(910)],this[ot(979)]),Ft(this.lastPickPositionValue)})};return new Promise((Ft,kt)=>{var bt=wh;this[bt(837)]?(this[bt(837)]=!1,je(Ft)):setTimeout(()=>{je(Ft)},10)})}[o(771)](){var se=o,ve;this[se(872)]&&this.fig.directData_Heartbeat&&(this[se(872)]=!1,this[se(1031)][se(606)]=!1,(ve=this.device[se(981)]())[se(913)](this[se(1056)],0,this[se(788)],0,4),this[se(1117)](ve),ve[se(913)](this.instancesArea_atomicData_VmBuffer,0,this[se(556)],0,4),ve[se(913)](this[se(985)],0,this[se(556)],4,this[se(985)][se(605)]),this.device.queue[se(635)]([ve[se(1091)]()]),this.pendingRequest_mesh_read_VmBuffer[se(705)](GPUMapMode.READ)[se(442)](()=>{var je=se,Ft=this[je(556)][je(827)](0,this[je(556)].size)[je(712)](0);this.fig[je(1067)].postMessage({msgType:je(1071),buf:Ft},[Ft]),this[je(556)].unmap(),this[je(872)]=!0,setTimeout(()=>{this.need_read_renderMaterial=!0},500)}))}[o(756)](){var se=o,ve=this[se(1099)][se(981)]();ve.copyBufferToBuffer(this.zeroVmBuffer,0,this.meshRender_transparentColorData_VmBuffer,0,this[se(569)][se(605)]),this[se(1099)][se(704)][se(635)]([ve[se(1091)]()])}[o(991)](){var se=o;this[se(771)]();var ve=this[se(1099)][se(981)]();this[se(462)](ve),this[se(939)](ve),this[se(537)](ve),this[se(1031)].gi&&this[se(824)](ve),ve.copyBufferToBuffer(this[se(1056)],0,this[se(604)],0,this[se(604)][se(605)]),this[se(725)](ve),this[se(965)]&&this[se(1031)].kj&&ve[se(913)](this[se(946)],0,this[se(459)],0,128),this[se(1e3)]&&this[se(1031)][se(642)]&&ve[se(913)](this.lightInfo_VmBuffer,32,this.readTemp_VmBuffer2,0,64),this[se(808)]&&this[se(954)]&&ve[se(913)](this[se(920)],0,this.renderMaterial_read_VmBuffer,0,this[se(920)][se(605)]),this[se(486)].Render(ve),this[se(869)][se(991)](ve),globalThis[se(589)]&&this[se(973)](ve),this.fig[se(672)]?this[se(465)](ve):this[se(686)](ve),this[se(1031)].ksh&&this[se(814)](ve),this[se(710)]&&this.fig.xn&&(ve[se(803)](this[se(883)],0,10,this[se(692)],0),ve.copyBufferToBuffer(this[se(692)],0,this.timestampQueryResultBuffer,0,this.timestampQueryResultBuffer.size)),this[se(1099)][se(704)][se(635)]([ve[se(1091)]()]),this[se(808)]&&this.need_read_renderMaterial&&(this[se(808)]=!1,this[se(954)]=!1,this[se(1066)].mapAsync(GPUMapMode[se(470)])[se(442)](()=>{var je=se,Ft=this[je(1066)][je(827)](0,this[je(920)][je(605)]).slice(0);this[je(1066)][je(484)](),this[je(1031)][je(1067)][je(564)]({msgType:je(1115),buf:Ft},[Ft]),this.allow_read_renderMaterial=!0})),this[se(965)]&&this[se(1031)].kj&&(this[se(1031)].kj=!1,this[se(965)]=!1,this.readTemp_VmBuffer[se(705)](GPUMapMode[se(470)])[se(442)](()=>{var je=se,Ft=this[je(459)][je(827)](0,128),Ft=new Float32Array(Ft);console[je(826)](Ft),this[je(459)][je(484)](),this[je(965)]=!0})),this[se(1e3)]&&this[se(1031)][se(642)]&&(this.readTemp_noLocking2=!1,this[se(959)].mapAsync(GPUMapMode[se(470)]).then(()=>{var je=se,Ft=this[je(959)][je(827)](0,10485760),Ft=(new Uint32Array(Ft),new Float32Array(Ft));console[je(826)](Ft),this.readTemp_VmBuffer2[je(484)](),this[je(1e3)]=!0})),this[se(710)]&&this[se(1031)].xn&&(this[se(710)]=!1,this[se(627)][se(705)](GPUMapMode[se(470)])[se(442)](()=>{var je=se,Ft=new BigUint64Array(this[je(627)][je(827)]());console[je(826)](je(421),(Number(Ft[1]-Ft[0])/1e3/1e3)[je(942)](2),je(646),(Number(Ft[3]-Ft[2])/1e3/1e3)[je(942)](2),"    MeshRender",(Number(Ft[5]-Ft[4])/1e3/1e3)[je(942)](2),je(990),(Number(Ft[7]-Ft[6])/1e3/1e3)[je(942)](2),je(1065),(Number(Ft[9]-Ft[8])/1e3/1e3)[je(942)](2)),this[je(627)][je(484)](),this[je(710)]=!0}))}}class Rt{get[o(1046)](){var se=o;return this[se(845)]}set[o(1046)](se){var ve=o;this[ve(845)]=D[ve(760)](se)}get[o(723)](){return this._target}set[o(723)](se){var ve=o;this[ve(562)]=D[ve(760)](se)}get[o(796)](){var se=o,ve=D[se(665)](0,0,-1);return D[se(802)](ve,this[se(1116)])}constructor(se,ve){var je=o;if(this[je(845)]=D[je(807)](0,0,0),this[je(562)]=D[je(807)](1,1,1),this[je(1116)]=V[je(626)](),this.worldMatrix=M[je(626)](),this[je(948)]=.2,this.zoomSpeed=3,this[je(476)]=.1,this[je(953)]={keyboard:{forward:!1,backward:!1,left:!1,right:!1,up:!1,down:!1,leftRoll:!1,rightRoll:!1,leftHeading:!1,rightHeading:!1,upPitch:!1,downPitch:!1,controlLeft:!1,shiftLeft:!1,speedUp:!1,speedDown:!1},mouse:{movementX:0,movementY:0,scroll:0,left:!1,right:!1,wheel:!1,button:0,downLeftX:0,downLeftY:0,upLeftX:0,upLeftY:0,downRightX:0,downRightY:0,upRightX:0,upRightY:0,clientX:0,clientY:0},downLeft_position:D[je(807)](),upLeft_position:D[je(807)]()},se){let Ft=(bt,lt)=>{var ot=je;switch(bt[ot(1022)]){case"KeyW":this.status[ot(521)][ot(848)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(816):this[ot(953)].keyboard[ot(1057)]=lt,bt[ot(1096)](),bt.stopPropagation();break;case ot(1090):this[ot(953)][ot(521)].left=lt,bt[ot(1096)](),bt.stopPropagation();break;case"KeyD":this[ot(953)][ot(521)][ot(1034)]=lt,bt.preventDefault(),bt[ot(517)]();break;case ot(755):this[ot(953)][ot(521)].up=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(855):this.status[ot(521)].down=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(901):this[ot(953)][ot(521)][ot(1058)]=lt,bt.preventDefault(),bt.stopPropagation();break;case"KeyO":this[ot(953)][ot(521)][ot(693)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(446):case ot(1023):this[ot(953)][ot(521)][ot(427)]=lt,bt.preventDefault(),bt[ot(517)]();break;case"KeyK":case ot(594):this[ot(953)][ot(521)][ot(1061)]=lt,bt[ot(1096)](),bt.stopPropagation();break;case ot(1086):case ot(532):this[ot(953)][ot(521)][ot(773)]=lt,bt[ot(1096)](),bt[ot(517)]();break;case ot(434):case ot(519):this[ot(953)][ot(521)][ot(861)]=lt,bt.preventDefault(),bt.stopPropagation();break;case"ControlLeft":this[ot(953)].keyboard[ot(511)]=lt;break;case ot(970):this.status[ot(521)][ot(478)]=lt;break;case"KeyC":this[ot(953)][ot(521)][ot(651)]=lt;break;case ot(464):this.status.keyboard[ot(1030)]=lt}},kt=(window[je(801)](je(499),bt=>Ft(bt,!0)),window[je(801)]("keyup",bt=>Ft(bt,!1)),se[je(801)]("contextmenu",function(bt){var lt=je;bt[lt(1096)]()}),(bt,lt)=>{var ot=je;switch(this.status[ot(450)][ot(988)]=bt[ot(988)],bt.button){case 0:(this[ot(953)][ot(450)][ot(995)]=lt)?(this[ot(953)][ot(450)][ot(715)]=bt.clientX,this[ot(953)][ot(450)][ot(679)]=bt.clientY,ve[ot(577)](bt[ot(507)],bt[ot(783)])[ot(442)](tt=>{var ze=ot,ct;this[ze(953)][ze(416)]=D[ze(807)](tt[0],tt[1],tt[2]),tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&this.status.keyboard[ze(511)]&&(tt=this[ze(953)][ze(416)],ct=D.subtract(this.position,tt),D.normalize(ct,ct),ct=D.add(tt,D[ze(708)](ct,20)),this.setTargetAndPosition(tt,ct))})):(this.status[ot(450)][ot(424)]=bt.clientX,this.status[ot(450)][ot(880)]=bt.clientY,ve[ot(577)](bt[ot(507)],bt.clientY).then(tt=>{var ze=ot;this[ze(953)][ze(436)]=D[ze(807)](tt[0],tt[1],tt[2]),this[ze(953)].downLeft_position[0]!=0&&this[ze(953)][ze(416)][1]!=0&&this[ze(953)][ze(416)][2]!=0&&this[ze(953)].upLeft_position[0]!=0&&this[ze(953)][ze(436)][1]!=0&&this[ze(953)].upLeft_position[2]!=0&&(D[ze(601)](this[ze(845)],D[ze(601)](this[ze(953)].upLeft_position,this[ze(953)].downLeft_position),this[ze(845)]),this.computeMatrix())}));break;case 1:this[ot(953)][ot(450)][ot(460)]=lt;break;case 2:(this.status[ot(450)].right=lt)?(this[ot(953)][ot(450)].downRightX=bt.clientX,this[ot(953)][ot(450)][ot(524)]=bt[ot(783)],ve[ot(577)](bt[ot(507)],bt[ot(783)])[ot(442)](tt=>{var ze=ot;tt[0]!=0&&tt[1]!=0&&tt[2]!=0&&(this[ze(723)]=D.create(tt[0],tt[1],tt[2]))})):(this[ot(953)][ot(450)].upRightX=bt[ot(507)],this[ot(953)][ot(450)][ot(798)]=bt[ot(783)])}});se[je(887)][je(595)]=je(536),se[je(801)](je(1006),bt=>kt(bt,!0)),se.addEventListener(je(994),bt=>kt(bt,!1)),se[je(801)](je(972),bt=>{var lt=je;this[lt(953)][lt(450)][lt(507)]=bt.clientX,this[lt(953)].mouse[lt(783)]=bt[lt(783)],(this[lt(953)][lt(450)][lt(995)]||this[lt(953)][lt(450)].right)&&(this[lt(953)][lt(450)][lt(884)]-=bt[lt(884)],this[lt(953)][lt(450)][lt(757)]-=bt[lt(757)])}),se[je(801)](je(460),bt=>{var lt=je;this[lt(953)][lt(450)].scroll+=Math[lt(469)](bt.deltaY),bt[lt(1096)](),bt[lt(517)]()},{passive:!1})}}[o(1079)](kt,bt,je=D.create(0,1,0)){var Ft=o;D[Ft(760)](kt,this[Ft(562)]),D[Ft(760)](bt,this[Ft(845)]);var bt=D.normalize(D[Ft(601)](bt,kt)),kt=D[Ft(665)](0,0,1),kt=(this[Ft(1116)]=V.rotationTo(kt,bt),D[Ft(802)](D[Ft(665)](0,1,0),this[Ft(1116)])),bt=D[Ft(542)](kt,je);1e-7<D.length(bt)&&(kt=Math[Ft(785)](D.dot(kt,je)),je=V.fromAxisAngle(D[Ft(1085)](bt),kt),this[Ft(1116)]=V[Ft(645)](je,this[Ft(1116)])),this[Ft(568)]()}update(se){var ve=o,je,Ft=D[ve(802)](D[ve(665)](1,0,0),this.orientation),kt=D[ve(802)](D[ve(665)](0,1,0),this[ve(1116)]),bt=D[ve(802)](D[ve(665)](0,0,1),this[ve(1116)]);this[ve(953)][ve(450)][ve(884)]===0&&this[ve(953)][ve(450)][ve(757)]===0||(this[ve(953)].mouse[ve(988)]===2?(je=this[ve(953)].mouse.movementX*this[ve(948)]*se,se=this[ve(953)][ve(450)][ve(757)]*this.rotationSpeed*se,se=V.fromAxisAngle(Ft,se),je=V[ve(997)](kt,je),se=V[ve(645)](se,je),je=D[ve(601)](this._position,this[ve(562)]),je=D.transformQuat(je,se),D.add(this[ve(562)],je,this[ve(845)]),this[ve(1116)]=V[ve(645)](se,this[ve(1116)])):this[ve(953)].mouse[ve(988)]),this.status[ve(450)][ve(576)]!==0&&(je=this.status[ve(450)][ve(576)]*this[ve(670)],D[ve(987)](this[ve(845)],D[ve(708)](bt,je),this[ve(845)])),this[ve(953)][ve(521)].up&&D[ve(987)](this[ve(845)],D[ve(708)](kt,this[ve(953)][ve(521)].shiftLeft?4*this[ve(476)]:this[ve(476)]),this[ve(845)]),this[ve(953)].keyboard[ve(1064)]&&D.add(this[ve(845)],D.scale(kt,-(this[ve(953)][ve(521)][ve(478)]?4*this[ve(476)]:this[ve(476)])),this._position),this[ve(953)][ve(521)][ve(995)]&&D[ve(987)](this._position,D[ve(708)](Ft,-(this.status.keyboard[ve(478)]?4*this[ve(476)]:this[ve(476)])),this[ve(845)]),this[ve(953)][ve(521)][ve(1034)]&&D[ve(987)](this[ve(845)],D[ve(708)](Ft,this[ve(953)].keyboard[ve(478)]?4*this[ve(476)]:this[ve(476)]),this[ve(845)]),this[ve(953)].keyboard[ve(848)]&&D.add(this._position,D[ve(708)](bt,-(this[ve(953)][ve(521)][ve(478)]?4*this[ve(476)]:this[ve(476)])),this[ve(845)]),this.status[ve(521)][ve(1057)]&&D[ve(987)](this[ve(845)],D[ve(708)](bt,this[ve(953)][ve(521)].shiftLeft?4*this.keyboardSpeed:this[ve(476)]),this[ve(845)]),this[ve(953)][ve(521)][ve(1058)]&&(se=V[ve(997)](bt,-.01),this[ve(1116)]=V.multiply(se,this[ve(1116)])),this[ve(953)][ve(521)][ve(693)]&&(je=V[ve(997)](bt,.01),this.orientation=V.multiply(je,this.orientation)),this[ve(953)][ve(521)][ve(773)]&&(se=V[ve(997)](kt,.01),this.orientation=V[ve(645)](se,this[ve(1116)])),this.status[ve(521)].rightHeading&&(bt=V[ve(997)](kt,-.01),this[ve(1116)]=V[ve(645)](bt,this[ve(1116)])),this[ve(953)][ve(521)][ve(427)]&&(je=V[ve(997)](Ft,.01),this.orientation=V[ve(645)](je,this[ve(1116)])),this.status[ve(521)][ve(1061)]&&(se=V[ve(997)](Ft,-.01),this[ve(1116)]=V[ve(645)](se,this[ve(1116)])),this.status.keyboard[ve(651)]&&(this[ve(476)]-=.01*this[ve(476)],this.keyboardSpeed<.01)&&(this[ve(476)]=.01),this[ve(953)][ve(521)].speedUp&&(this.keyboardSpeed*=1.01),this[ve(568)](),this.status[ve(450)][ve(884)]=0,this.status[ve(450)][ve(757)]=0,this.status[ve(450)][ve(576)]=0}[o(568)](){var se=o;M[se(1094)](this[se(1116)],this[se(761)]),this[se(761)][12]=this[se(845)][0],this[se(761)][13]=this[se(845)][1],this[se(761)][14]=this._position[2]}}globalThis.__ser_isDev__=!1;class Vt{constructor(se){var ve=o;if(this[ve(1114)]=M,this[ve(930)]=N,this[ve(923)]=D,this[ve(754)]=G,this[ve(520)]=V,this[ve(677)]=1,this.dataCallBack={},this.modelData={},this[ve(606)]=!0,this.spaceIndex_Heartbeat=!0,this.xn=!1,this[ve(654)]=!1,this.kj=!1,this.kj2=!1,this.gi=!1,this[ve(922)]={type:1,direction:D[ve(1085)](D.create(-.378604181697245,.8191225954117374,.4309258025313624)),color:D[ve(807)](1,1,1)},this[ve(509)]={fov:2*Math.PI/5,aspect:1,near:.1,far:1e3},this[ve(1069)]=0,this[ve(910)]=D.create(),this.OnInitialized=()=>{},this[ve(886)]=(kt,bt)=>{},this[ve(573)]=kt=>{},this[ve(984)]="",this[ve(1005)]="",this[ve(737)]=Date[ve(495)](),this[ve(553)]=0,this.tempRL=!0,this[ve(479)]=!1,this[ve(745)]=new Float64Array(84),console[ve(826)]("ser_V20250613"),se&&se[ve(1074)]&&se[ve(993)]){if(this[ve(993)]=se[ve(993)],this[ve(672)]=se[ve(1074)],se.Widget.scene.ser)return void console[ve(505)](ve(1059));this.cesiumWidget[ve(859)][ve(555)]=this}this.cesiumWidget?(this[ve(1088)]=new OffscreenCanvas(this[ve(672)][ve(859)][ve(1088)].width,this[ve(672)].scene.canvas[ve(864)]),this.depthCanvas=new OffscreenCanvas(this[ve(672)][ve(859)].canvas[ve(412)],this[ve(672)][ve(859)][ve(1088)][ve(864)]),this[ve(835)]=new Rt(null,this)):(this[ve(1088)]=document[ve(602)](ve(1088)),this.canvas[ve(412)]=1920,this[ve(1088)][ve(864)]=970,document[ve(455)].appendChild(this[ve(1088)]),this[ve(835)]=new Rt(this[ve(1088)],this),this.camera[ve(1079)](D[ve(807)](0,0,0),D[ve(807)](0,100,0),D[ve(807)](0,1,0))),this[ve(1084)]=[],this[ve(735)]=new ArrayBuffer(512),this[ve(439)]=new Float32Array(this[ve(735)]),this[ve(952)]=new Uint32Array(this.scene_dataBuffer),this[ve(547)]=new ArrayBuffer(96),this[ve(1075)]=new Float32Array(this[ve(547)]),this.lightInfo_dataViewF32[0]=this[ve(922)][ve(468)],this[ve(1075)][ve(895)](this.lightInfo.direction,1),this[ve(1075)].set(this[ve(922)][ve(431)],4),this[ve(1008)]=M[ve(626)](),this[ve(587)]=M[ve(626)](),this[ve(838)]=M.identity(),this[ve(640)]=M[ve(626)](),this.projectionViewMatrix=M[ve(626)](),this[ve(1024)]=M[ve(626)]();let je=!1,Ft=(kt,bt)=>{var lt=ve;switch(kt[lt(1022)]){case lt(650):je=bt,kt[lt(1096)](),kt[lt(517)]();break;case lt(638):bt||(this[lt(479)]=!this[lt(479)])}};window[ve(801)](ve(499),kt=>Ft(kt,!0)),window[ve(801)](ve(575),kt=>Ft(kt,!1)),this[ve(702)]=new yt(this),se=new v(new URL(f.p+f.u(671),f.b)),this[ve(1067)]=se[ve(759)](),this[ve(1067)][ve(801)](ve(622),kt=>{var bt=ve;if(kt[bt(836)])switch(kt[bt(836)][bt(999)]){case bt(925):this[bt(925)][kt.data.cbId]?(kt[bt(836)][bt(832)](bt(914))?this.dataCallBack[kt[bt(836)][bt(941)]].resolve(kt[bt(836)][bt(914)]):kt[bt(836)][bt(832)](bt(593))&&this[bt(925)][kt.data[bt(941)]][bt(593)](kt[bt(836)][bt(593)]),delete this.dataCallBack[kt[bt(836)][bt(941)]]):globalThis[bt(564)](kt.data);break;case bt(617):for(var lt in kt[bt(836)][bt(512)])this.modelData[bt(832)](lt)?Object[bt(726)](this.modelData[lt],kt[bt(836)].modelData[lt]):this[bt(512)][lt]=kt[bt(836)][bt(512)][lt];this[bt(432)](),this.OnModelServer(kt.data[bt(512)],kt[bt(836)][bt(1109)]);break;case bt(573):this[bt(573)](kt[bt(836)][bt(839)]);break;case bt(560):if(kt[bt(836)].targets)for(var ot of kt.data.targets)this[bt(702)].UpVmData(ot);else this.renderEngine[bt(560)](kt[bt(836)]);break;case bt(992):this[bt(702)][bt(908)](kt[bt(836)]);break;case bt(771):this[bt(702)].VisibleTreeUpdate();break;case bt(699):this[bt(1069)]=kt[bt(836)][bt(1069)];break;case bt(581):this[bt(606)]=!0;break;case bt(847):this[bt(1036)]=!0}})}[o(661)](){var se=o;this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(873)],0,this.lightInfo_dataBuffer,0,32),this[se(509)][se(787)]=this.canvas.width/this[se(1088)][se(864)],this[se(842)](),this[se(1067)].postMessage({msgType:se(661),maxTextureSize:this.renderEngine[se(778)],maxPixel:this[se(702)][se(700)],meshVmMaxOffset:this[se(702)].meshVmBuffer[se(605)]/4}),this[se(531)](),this[se(672)]?this[se(765)]():this[se(545)]()}[o(611)](se){var ve=o;se[ve(592)]("/")!==se[ve(800)]-1&&(se+="/");var je=this[ve(1084)][ve(800)];for(let Ft=0;Ft<this[ve(1084)][ve(800)];Ft++)if(this.serverList[Ft]===se)return Ft;return this.serverList[ve(918)](se),this[ve(1067)][ve(564)]({msgType:ve(1103),serverUrl:se,serverId:je}),je}[o(545)](){let se=()=>{var ve=wh;this[ve(991)](),requestAnimationFrame(se)};requestAnimationFrame(se)}[o(842)](){var se=o;this.cesiumWidget?(ve=this[se(672)][se(859)][se(504)].uniformState,this[se(1005)]=ve[se(747)][se(770)](),this.projectionMatrix=M.frustumReverseZ(ve[se(685)].z,ve._frustumPlanes.w,ve[se(685)].y,ve[se(685)].x,ve._currentFrustum.x,ve[se(490)].y)):this[se(838)]=M[se(1113)](this.cameraParameter.fov,this[se(509)].aspect,this[se(509)][se(1108)],this.cameraParameter[se(475)]),this[se(640)]=M[se(584)](this.projectionMatrix);var ve=M.setTranslation(M.scale(M.identity(),D.create(.5,.5,1)),D[se(807)](.5,.5,0)),ve=M[se(645)](ve,this[se(838)]);this[se(1024)]=M[se(645)]([this[se(1088)].width,0,0,0,0,this[se(1088)].height,0,0,0,0,1,0,0,0,0,1],ve)}[o(991)](){var se=o,ve,je;this[se(672)]?(je=this[se(672)][se(859)][se(504)][se(420)],this[se(835)][se(761)]=je[se(483)],this[se(835)][se(845)][0]=je[se(483)][12],this[se(835)][se(845)][1]=je[se(483)][13],this[se(835)][se(845)][2]=je._inverseView[14],je[se(747)][se(770)]()!==this[se(1005)]&&(this[se(984)]="",this[se(842)]())):(ve=((je=Date[se(495)]())-this[se(737)])/1e3,this[se(737)]=je,this[se(835)].update(ve)),this.oldCameraData===this[se(835)][se(761)][se(770)]()&&this.instancesCount!==0||(this[se(984)]=this[se(835)][se(761)].toString(),je=D[se(601)]([this[se(835)][se(761)][12],this[se(835)][se(761)][13],this[se(835)][se(761)][14]],this[se(910)]),(1e4<Math.abs(je[0])||1e4<Math[se(811)](je[1])||1e4<Math[se(811)](je[2]))&&(this[se(910)][0]=this[se(835)][se(761)][12],this.accuracyOffset[1]=this[se(835)][se(761)][13],this[se(910)][2]=this[se(835)].worldMatrix[14],this.scene_dataViewF32[120]=this[se(910)][0],this[se(439)][121]=this[se(910)][1],this.scene_dataViewF32[122]=this[se(910)][2],this[se(432)]()),(ve=Array.from(this.camera[se(761)]))[12]-=this[se(910)][0],ve[13]-=this[se(910)][1],ve[14]-=this[se(910)][2],M[se(760)](ve,this[se(587)]),this[se(1008)]=M[se(584)](ve),M[se(645)](this.projectionMatrix,this.viewMatrix,this[se(574)]),this[se(706)]=M[se(584)](this[se(574)]),this[se(672)]&&(je=M[se(645)](this[se(672)][se(859)][se(504)].uniformState._projection,this[se(1008)]),this[se(439)][se(895)](je)),this[se(439)].set(this[se(1008)],16),this[se(439)][se(895)](this[se(574)],32),this[se(439)][se(895)](this[se(640)],72),this[se(439)].set(this[se(587)],88),this[se(439)][se(895)](this[se(706)],104),this[se(677)]++,1073741820<this[se(677)]&&(this[se(677)]=1),this[se(952)][48]=this.cameraId,this[se(439)][49]=ve[12],this.scene_dataViewF32[50]=ve[13],this[se(439)][51]=ve[14],this[se(439)][52]=this.canvas.width,this[se(439)][53]=this[se(1088)][se(864)],this[se(439)][54]=1,this.scene_dataViewF32[55]=0,this[se(702)].device[se(704)].writeBuffer(this[se(702)][se(1068)],0,this[se(735)]),this[se(1036)]&&(this[se(1036)]=!1,this.ddWorker[se(564)]({msgType:"CameraChange",viewMatrix:M.inverse(this[se(835)].worldMatrix),projectionMatrix:this[se(838)],cameraWorldPosition:this[se(835)].position,cameraId:this[se(677)]})),this[se(702)][se(756)]()),this[se(702)].Render(),this.scene_dataViewF32.set(this[se(574)],56),this[se(952)][55]++,1073741820<this[se(952)][73]&&(this[se(952)][55]=1),this.renderEngine.device.queue.writeBuffer(this[se(702)][se(1068)],224,this[se(735)],224),this[se(479)]&&(this[se(897)]?(this[se(1075)][1]+=.005,this[se(1075)][2]+=.005,this[se(1075)][3]-=.005,.35<this.lightInfo_dataViewF32[1]&&.92<this[se(1075)][2]&&this[se(1075)][3]<-.14&&(this.tempRL=!this[se(897)])):(this[se(1075)][1]-=.005,this.lightInfo_dataViewF32[2]-=.005,this.lightInfo_dataViewF32[3]+=.005,this.lightInfo_dataViewF32[1]<-.76&&this[se(1075)][2]<-.09&&.63<this.lightInfo_dataViewF32[3]&&(this[se(897)]=!this[se(897)])),this.renderEngine[se(1099)][se(704)][se(1039)](this[se(702)][se(873)],0,this[se(547)],0,32))}[o(586)](se){var ve=o,je,Ft;this[ve(512)][se]&&(je=this[ve(512)][se],Ft=new Uint32Array([1]),this[ve(702)][ve(1099)][ve(704)][ve(1039)](this[ve(702)][ve(680)],4*(je[ve(1016)]+17),Ft),this[ve(1067)][ve(564)]({msgType:ve(892),modelId:se,status:1}))}HideModel(se){var ve=o,je,Ft;this[ve(512)][se]&&(je=this[ve(512)][se],Ft=new Uint32Array([0]),this[ve(702)][ve(1099)][ve(704)][ve(1039)](this[ve(702)][ve(680)],4*(je[ve(1016)]+17),Ft),this[ve(1067)].postMessage({msgType:ve(892),modelId:se,status:0}))}PickId(se,ve){var je=o;return this[je(702)][je(806)](se,ve).then(Ft=>new Promise((kt,bt)=>{var lt=je,ot=Date[lt(495)]();this[lt(925)][ot]={resolve:tt=>{kt(tt)},reject:tt=>{bt()}},this[lt(1067)][lt(564)]({msgType:lt(616),instancePtr:Ft,cbId:ot})}))}[o(527)](se,ve){var je=o;return this.renderEngine[je(806)](se,ve)}[o(577)](se,ve){var je=o;return this[je(702)].PickPosition(se,ve)}[o(766)](se,ve){var je=o,Ft;this[je(512)][se]&&((Ft=this[je(512)][se])[je(503)]=Array[je(1050)](ve),(ve=Array.from(ve))[12]-=this.accuracyOffset[0],ve[13]-=this[je(910)][1],ve[14]-=this[je(910)][2],ve=new Float32Array(ve),this.renderEngine.device.queue[je(1039)](this[je(702)][je(680)],4*Ft[je(1016)],ve),this.ddWorker[je(564)]({msgType:je(766),modelId:se,modelMatrixArr:Ft[je(503)]}))}[o(432)](){var se=o;for(var ve in this.modelData){var je,ve=this[se(512)][ve];ve[se(1016)]&&((je=Array.from(ve.transform))[12]-=this[se(910)][0],je[13]-=this[se(910)][1],je[14]-=this[se(910)][2],je=new Float32Array(je),this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(680)],4*ve[se(1016)],je))}this[se(868)](),this.UpdateExplodeAccuracyOffset()}CreateMaterial(se){return new Promise((ve,je)=>{var Ft=wh,kt=Date[Ft(495)]();this[Ft(925)][kt]={resolve:ve,reject:je},this[Ft(1067)].postMessage({msgType:Ft(634),color:se,cbId:kt})})}[o(898)](se,ve,je,Ft){var kt=o;this[kt(1067)][kt(564)]({msgType:kt(898),modelId:se,materialId:ve,color:je,overlay:Ft})}GetMaterial(se,ve){return new Promise((je,Ft)=>{var kt=wh,bt=Date.now();this[kt(925)][bt]={resolve:lt=>{je(lt)},reject:lt=>{Ft()}},this[kt(1067)][kt(564)]({msgType:kt(879),modelId:se,materialId:ve,cbId:bt})})}SetInstanceMaterialByInstancePtr(se,ve){var je=o;this.renderEngine[je(1099)].queue[je(1039)](this.renderEngine.instanceVmBuffer,4*(se+23),new Uint32Array([ve]))}[o(513)](se,ve){var je=o;this.renderEngine[je(1099)].queue[je(1039)](this[je(702)][je(666)],4*(se+22),new Uint32Array([ve]))}SetInstanceMaterial(se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(810),materialPtr:se,idBuffer:ve.buffer},[ve[je(877)]])}SetInstanceStatus(se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(969),status:se,idBuffer:ve[je(877)]},[ve.buffer])}[o(896)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(896),transform:se,idBuffer:ve[je(877)]},[ve[je(877)]])}[o(477)](se){var ve=o;se=new Uint32Array(se),this[ve(1067)][ve(564)]({msgType:ve(477),idBuffer:se.buffer},[se[ve(877)]])}[o(878)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(878),materialPtr:se,idBuffer:ve[je(877)]},[ve.buffer])}[o(1070)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:"SetInstanceStatusByComponentIds",status:se,idBuffer:ve.buffer},[ve.buffer])}[o(746)](se,ve){var je=o;ve=new Uint32Array(ve),this[je(1067)][je(564)]({msgType:je(746),transform:se,idBuffer:ve[je(877)]},[ve[je(877)]])}CancelInstanceTransformByComponentIds(se){var ve=o;se=new Uint32Array(se),this[ve(1067)].postMessage({msgType:ve(739),idBuffer:se[ve(877)]},[se.buffer])}SetInstanceMaterialByExtendedPropertiesId(se,ve){var je=o;this.ddWorker.postMessage({msgType:je(597),materialPtr:se,extendedPropertiesIds:ve})}[o(662)](se,ve){var je=o;this.ddWorker[je(564)]({msgType:"SetInstanceStatusByExtendedPropertiesId",status:se,extendedPropertiesIds:ve})}[o(609)](se,ve){var je=o;this[je(1067)][je(564)]({msgType:je(609),transform:se,extendedPropertiesIds:ve})}[o(977)](se){var ve=o;this[ve(1067)][ve(564)]({msgType:ve(977),extendedPropertiesIds:se})}[o(776)](se,ve,je,Ft){return new Promise((kt,bt)=>{var lt=wh,ot=Date[lt(495)]();this[lt(925)][ot]={resolve:kt,reject:bt},this[lt(1067)][lt(564)]({msgType:lt(776),x1:se,y1:ve,x2:je,y2:Ft,width:this[lt(1088)].width,height:this[lt(1088)][lt(864)],cbId:ot})})}[o(1012)](se,ve,je){var Ft=o;if(se===void 0)this.clipPlane[0]=0;else{this[Ft(516)]=se,this[Ft(745)][0]=je[Ft(800)]/4*(ve?-1:1),this[Ft(745)].set(je,4);for(let bt=1;bt<=Math[Ft(811)](this[Ft(745)][0]);bt+=1){var kt=D[Ft(1085)]([this.clipPlane[4*bt],this[Ft(745)][4*bt+1],this[Ft(745)][4*bt+2]]);this[Ft(745)][4*bt]=kt[0],this[Ft(745)][4*bt+1]=kt[1],this[Ft(745)][4*bt+2]=kt[2]}}this[Ft(868)]()}[o(868)](){var se=o,ve=new Float32Array(84);if(this.clipPlane[0]!==0){var je=Array.from(this[se(516)]),Ft=(je[12]-=this[se(910)][0],je[13]-=this[se(910)][1],je[14]-=this.accuracyOffset[2],M[se(584)](je,je));for(let Wt=1;Wt<=Math[se(811)](this[se(745)][0]);Wt++){var ct=this[se(745)][4*Wt],kt=this.clipPlane[4*Wt+1],bt=this[se(745)][4*Wt+2],lt=this[se(745)][4*Wt+3],ot=ct*Ft[0]+kt*Ft[1]+bt*Ft[2]+lt*Ft[3],tt=ct*Ft[4]+kt*Ft[5]+bt*Ft[6]+lt*Ft[7],ze=ct*Ft[8]+kt*Ft[9]+bt*Ft[10]+lt*Ft[11],ct=ct*Ft[12]+kt*Ft[13]+bt*Ft[14]+lt*Ft[15];ve[4*Wt]=ot,ve[4*Wt+1]=tt,ve[4*Wt+2]=ze,ve[4*Wt+3]=ct}ve[0]=this[se(745)][0]}else ve[0]=0;this[se(702)][se(1099)][se(704)][se(1039)](this[se(702)][se(449)],0,ve)}SetExplode(se,ve,je,Ft,kt){var bt=o;se===void 0||Number.isNaN(se)||(this[bt(702)][bt(804)][0]=se),ve===void 0||Number[bt(1021)](ve)||(this[bt(702)][bt(804)][1]=ve),je===void 0||Number.isNaN(je)||(this[bt(702)].explodeParam[2]=je),Ft&&3<=Ft.length&&(this[bt(702)][bt(804)][3]=Ft[0],this.renderEngine[bt(804)][4]=Ft[1],this.renderEngine.explodeParam[5]=Ft[2]),kt&&3<=kt.length&&(se=D[bt(1085)](kt),this[bt(702)][bt(804)][6]=se[0],this[bt(702)][bt(804)][7]=se[1],this[bt(702)][bt(804)][8]=se[2]),this.UpdateExplodeAccuracyOffset()}[o(1112)](){var se=o,ve=new Float32Array(this[se(702)][se(804)]);ve[3]-=this.accuracyOffset[0],ve[4]-=this.accuracyOffset[1],ve[5]-=this[se(910)][2],this[se(702)][se(1099)][se(704)].writeBuffer(this.renderEngine[se(792)],0,ve)}[o(765)](){var se=o;let ve=this[se(672)][se(859)];if(!ve.initFine){ve[se(456)]=!0;let je={sources:[se(722)],defines:[]},Ft=new this[se(993)].ShaderSource({sources:[se(644)],defines:[]}),kt=new this[se(993)][se(860)](je),bt=ve.context[se(867)].getShaderProgram({vertexShaderSource:Ft,fragmentShaderSource:kt}),lt=new this.Cesium[se(673)]({context:ve.context,attributes:[]}),ot=(lt[se(1037)]=6,this[se(993)][se(1110)][se(639)]({depthTest:{enabled:!0,func:this[se(993)].WebGLConstants[se(1060)]}})),tt=new this.Cesium[se(613)]({wrapS:this[se(993)][se(1082)][se(784)],wrapT:this.Cesium[se(1082)][se(784)],minificationFilter:this[se(993)].TextureMinificationFilter[se(857)],magnificationFilter:this[se(993)][se(514)][se(857)]}),ze={bimColorTexture:()=>(this[se(991)](),ve[se(1100)]?ve.serColorTexture[se(453)]({source:ve[se(555)][se(1088)],skipColorSpaceConversion:!0}):ve.serColorTexture=new this.Cesium[se(1038)]({context:ve[se(504)],source:ve.ser[se(1088)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ve[se(1100)]),bimDepthTexture:()=>(ve.serDepthTexture?ve.serDepthTexture[se(453)]({source:ve.ser[se(515)],skipColorSpaceConversion:!0}):ve[se(890)]=new this[se(993)][se(1038)]({context:ve[se(504)],source:ve[se(555)][se(515)],skipColorSpaceConversion:!0,flipY:!1,preMultiplyAlpha:!0,sampler:tt}),ve[se(890)])},ct=new this[se(993)][se(828)]({x:0,y:0,z:0},6379137),Wt=new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)].Pass.OPAQUE,boundingVolume:ct});Wt.derivedCommands[se(487)]={command:new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct}),shaderProgramId:bt.id},Wt[se(674)][se(487)][se(885)][se(674)]={depth:{command:new this[se(993)][se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct}),shaderProgramId:bt.id,depthOnlyCommand:new this[se(993)][se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct})}},Wt.derivedCommands[se(649)]={shaderProgramId:bt.id,depthOnlyCommand:new this.Cesium[se(579)]({shaderProgram:bt,uniformMap:ze,renderState:ot,vertexArray:lt,pass:this[se(993)][se(417)][se(623)],boundingVolume:ct})},Wt.fine=!0,ve.primitives[se(987)]({fine:!0,isDestroyed:()=>!1,update:()=>{ve.frameState.commandList.push(Wt)}})}}}return m}};function wh(o,f){var m=mge();return wh=function(x,y){x=x-411;var v=m[x];return v},wh(o,f)}typeof exports=="object"&&nie(698)==typeof module?module.exports=fge():nie(728)==typeof define&&define[nie(567)]?define([],fge):nie(698)==typeof exports?exports[nie(555)]=fge():Imr.ser=fge();function C2(o){this._earthCtrl=o,this._viewer=o.viewer,this._fig=null,this.serverAddress=""}C2.prototype.create=async function(){let o=this;return this._fig=new ser.serMain({Cesium:Vi,Widget:o._viewer}),await new Promise(f=>{o._fig.OnInitialized=()=>{f(o)}})};C2.prototype.setModelTransform=function(o,f){let m=Ee.toArray(_r.eastNorthUpToFixedFrame(Z.fromDegrees(f.lon,f.lat,f.height)));if(f.roll){let x=be.toRadians(f.roll??0),y=Ee.fromRotationTranslation(Ut.fromRotationZ(x));Ee.multiply(m,y,m)}this._fig.SetModelTransform(o,m)};C2.prototype.showModel=function(o){this._fig.ShowModel(o)};C2.prototype.hideModel=function(o){this._fig.HideModel(o)};C2.prototype.destroy=function(){this._fig.Destroy()};C2.prototype.addModelServer=async function(o){return this._fig.AddServer(o),await new Promise(f=>{this._fig.OnModelServer=(m,x)=>{this.modelList=m,f({modelList:m,serverId:x})}})};C2.prototype.getModelBoundingSphere=function(o){let f=this.modelList[o],m=Ee.multiplyByPoint(f.transform,Z.fromArray(f.box),{}),x=Ee.multiplyByPoint(f.transform,Z.fromArray(f.box,3),{});return Ei.fromPoints([m,x],new Ei)};C2.prototype.clickSem=function(o){let f=this,m=0;f._viewer.screenSpaceEventHandler.setInputAction(function(y){m!==0&&(f._fig.SetInstanceStatusByInstancePtr(m,1),m=0),f._fig.PickId(y.position.x,y.position.y).then(v=>{v&&(m=v.instancePtr,f._fig.SetInstanceStatusByInstancePtr(v.instancePtr,2)),o&&o(v)})},Si.LEFT_CLICK)};C2.prototype.unSelect=function(o){o!==0&&this._fig.SetInstanceStatusByInstancePtr(o,1)};C2.prototype.pickWorldPosition=function(o,f,m){this._fig.PickWorldPosition(o,f).then(x=>{m&&m(x)})};C2.prototype.semModeClipping=function(o){let f=this;return new kxe(f._earthCtrl,f._fig,o)};C2.prototype.setMaterialColor=function(o,f,m,x){this._fig.SetMaterialColor(o,f,[m.red,m.green,m.blue,m.alpha],x)};C2.prototype.choice=function(o){return o=o??{},o.bim=o.ser??this._fig,new Uxe(o,this._earthCtrl,Vi)};C2.prototype.setExplode=function(o,f,m,x,y){this._fig.SetExplode(o,f,m,x,y)};C2.prototype.showComponent=function(o){o.showComponentArr.length>0&&this._fig.SetInstanceStatus(o.status,o.showComponentArr)};var MMt=C2;var Rmr=function(o){if(!o.extensionsUsed||!o.extensionsRequired)return;let f=o.extensionsUsed.indexOf("KHR_technique_webgl"),m=o.extensionsRequired.indexOf("KHR_technique_webgl");if(f!==-1){o.extensionsRequired.splice(m,1,"KHR_techniques_webgl"),o.extensionsUsed.splice(f,1,"KHR_techniques_webgl"),o.extensions=o.extensions||{},o.extensions.KHR_techniques_webgl={},o.extensions.KHR_techniques_webgl.programs=o.programs,o.extensions.KHR_techniques_webgl.shaders=o.shaders,o.extensions.KHR_techniques_webgl.techniques=o.techniques;let x=o.extensions.KHR_techniques_webgl.techniques;o.materials.forEach(function(y,v){o.materials[v].extensions.KHR_technique_webgl.values=o.materials[v].values,o.materials[v].extensions.KHR_techniques_webgl=o.materials[v].extensions.KHR_technique_webgl;let C=o.materials[v].extensions.KHR_techniques_webgl;for(let T in C.values){let S=x[C.technique].uniforms;for(let w in S)if(S[w]===T){C.values[w]=C.values[T],delete C.values[T];break}}}),x.forEach(function(y){for(let v in y.attributes){let C=y.attributes[v];y.attributes[v]=y.parameters[C]}for(let v in y.uniforms){let C=y.uniforms[v];y.uniforms[v]=y.parameters[C]}})}},gge=typeof window<"u"?window:typeof self<"u"?self:{},xge=setTimeout(()=>{xge=void 0,gge.logSmartEarth&&gge.logSmartEarth()},1e4);function VMt(o,f){ia.supportsImageRenderingPixelated()&&(o.viewer.resolutionScale=f?window.devicePixelRatio:1),o.viewer.scene.fxaa=f,o.viewer.scene.postProcessStages.fxaa.enabled=f}function id(o,f={},m,x,y){this._core=new Yb(this),this._cesium=Vi,xge&&(clearTimeout(xge),xge=void 0,f.VERSION!==!1&&gge.logSmartEarth&&gge.logSmartEarth()),this.G=65535,m=m??si.EMPTY_OBJECT,F(f.StaticFileBaseUrl)?globalThis.GEOWORLD_BASE_URL=f.StaticFileBaseUrl:globalThis.GEOWORLD_BASE_URL="./CimSDK/",globalThis.CESIUM_BASE_URL=globalThis.GEOWORLD_BASE_URL,globalThis.SmartEarthRootUrl=globalThis.GEOWORLD_BASE_URL,this.LayuiPromise=$vt();let v=f.language??vp.ZH_CN;this.i18n=new PMt(v),f.toolbar=f.toolbar??!1,f.baseLayerPicker=f.baseLayerPicker??!1,f.shadows=!1,f.skyAtmosphere=new zq,f.terrainShadows=cl.ENABLED,f.animation=f.animation??!0,f.shouldAnimate=!0,f.fullscreenButton=f.fullscreenButton??!1,f.geocoder=f.geocoder??!1,f.homeButton=!1,f.infoBox=!1,f.selectionIndicator=!1,f.timeline=f.timeline??!1,f.defaultImagery=f.defaultImagery??!0,f.printLogo=f.printLogo??!0,f.printLog=f.printLog??f.printLogo,f.infoBar=f.infoBar??!0,f.navigationHelpButton=!1,f.imageryProviderViewModels=[],f.terrainProviderViewModels=[];let{webgl:C={}}=f.contextOptions||{},{alpha:T=!1}=C;f.contextOptions={webgl:{alpha:T,preserveDrawingBuffer:!0},failIfMajorPerformanceCaveat:!1,ellipsoidCoordinates:f.ellipsoidCoordinates},f.navigation=!0,f.disableRightClickMenu=!0,typeof f=="string"?f.baseLayer=new Up(new V1({url:f})):(f.url&&(f.baseLayer=new Up(new V1({url:f.url}))),this._core.extend(f,f,!0));let S=F(f.baseLayer),w;if(f.baseLayerPicker){S=!0;let R=this.getAllImageryView();if(f.basemaps)f.basemaps.forEach(P=>{f.imageryProviderViewModels.push(R[P])});else for(let P in R)f.imageryProviderViewModels.push(R[P])}else!f.imageryProvider&&!f.baseLayer?(w=Up.fromProviderAsync(V1.fromUrl(`${globalThis.GEOWORLD_BASE_URL}Workers/image/earth.jpg`)),f.baseLayer=w):(S=!0,f.imageryProvider&&(f.baseLayer=Up.fromProviderAsync(f.imageryProvider)));let E={destination:Z.fromDegrees(f.x?f.x:93.53987,f.y?f.y:24.77445,f.z?f.z:257935006e-1),orientation:{heading:be.toRadians(f.heading??0),pitch:be.toRadians(f.pitch??-90),roll:be.toRadians(f.roll??0)},duration:f.duration||1};if(f.removeGlobe&&(f.skyBox=!1,f.skyAtmosphere=!1,f.contextOptions={failIfMajorPerformanceCaveat:!1,webgl:{alpha:!0,preserveDrawingBuffer:!0}}),this._Viewer=new r0e(o,f),this._tree=x,this._Viewer.scene.globe.baseColor=Xe.WHITE,this._Viewer.shadowMap.size=2048,this._Viewer._cesiumWidget._creditContainer.style.display="none",this._Viewer.terrainShadows=cl.ENABLED,this._AttachEvent=void 0,this._DetachEvent=void 0,this._Analysis=void 0,this._Navigate=void 0,this._Creator=void 0,this._Command=void 0,this._ProjectTree=void 0,this._Coordinate=void 0,this._VectorTileProvider=void 0,this._simulate=void 0,this.toolbar=f.toolbar,f.removeGlobe){this._Viewer.imageryLayers.removeAll(),this._Viewer.shadows=!1,this._Viewer.scene.fog.enabled=!1,this._Viewer.scene.globe.show=!1;let R="rgba(0,0,0,0)";this._Viewer.scene.backgroundColor=Xe.fromCssColorString(R),this._Viewer.scene.light=new k4({direction:new Z(1,-.9,-.9)}),f.backgroundImage&&(this._Viewer.container.style.backgroundImage=`url(${f.backgroundImage})`)}else this._Viewer.scene.globe.depthTestAgainstTerrain=!0;if(f.defaultImagery&&!S&&window.navigator.onLine&&this.judgeOnline().then(async R=>{R&&(await this._factory.createImageryLayer({enablePickFeatures:!1,sourceType:"arcgis",url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",zIndex:0}),this._Viewer.imageryLayers.lowerToBottom(w))}).catch(R=>{console.warn("The current network cannot be connected, so we will not load the online Imagery")}),this.coreMap=this._Viewer,this.coreMap.language=this.language,this._environment=new n9e(this),this._camera=new bZe(this),this._measure=new YZe(this),this._shapeTool=new yCt(this),this._editTool=new QZe(this),this._factory=new T3(this),this._tools=new XWe(this),this._edit=new Ake(this),this._analysis=new iUe(this),this._userScene=new rke(this,m),this._view=new zRt(this),this._bim=new jRt(this),this._ser=new MMt(this),this._MilitaryPlotting=new lUe(this),this._atmosphere=new ibt(this),this._simulate=new AMt(this),f.infoBar&&(this._infoBar=new bIt(this)),f.maxViewHeight&&(this._Viewer.scene.screenSpaceCameraController.maximumZoomDistance=f.maxViewHeight),f.minViewHeight||f.maxViewPitch){this.minViewHeight=f.minViewHeight,this.maxViewPitch=f.maxViewPitch&&be.toRadians(f.maxViewPitch);let R=0,P=this._Viewer.scene,A=!1;if(this.maxViewPitch){let M=new Lr(this._Viewer.scene.canvas);M.setInputAction(()=>{A=!0},Si.MIDDLE_DOWN),M.setInputAction(()=>{A=!1},Si.MIDDLE_UP),M.setInputAction(()=>{A=!0},Si.RIGHT_DOWN),M.setInputAction(()=>{A=!1},Si.RIGHT_UP)}this._Viewer.scene.preRender.addEventListener(()=>{let M=this._Viewer.camera;if(!(!M||!M.positionCartographic)){if(this.maxViewPitch){let V=M.pitch;A&&V>this.maxViewPitch?(V=this.maxViewPitch,M.setView({destination:this.oldPosition||M.position.clone(),orientation:{heading:M.heading,pitch:V,roll:0}})):this.oldPosition=M.position.clone()}if(this.minViewHeight){R=P.globe.getHeight(M.positionCartographic)||R;let G,D,N=M.positionCartographic.height-R;this._Viewer.scene.globe.translucency.enabled||this._Analysis&&(this._Analysis._UndergroundMode&&this._Analysis._UndergroundMode.isUndergroundMode||this._Analysis._StreetView&&this._Analysis._StreetView.isStreetView)?(G=M.positionCartographic.height<-200,D=-200):(G=N<this.minViewHeight,D=R+this.minViewHeight);let k=M.pitch<0?M.pitch:0;G?M.setView({destination:this.oldPosition||Z.fromRadians(M.positionCartographic.longitude,M.positionCartographic.latitude,D),orientation:{heading:M.heading,pitch:k,roll:0}}):this.oldPosition=M.position.clone()}}})}let L={};Ts.DEFAULT_VIEW_RECTANGLE=vi.fromDegrees(79,0,130,60),f.navigationOption=f.navigationOption??si.EMPTY_OBJECT,L.defaultResetView=f.navigationOption.defaultResetView??Gt.fromCartesian(E.destination),L.enableCompass=f.navigationOption.enableCompass??!0,L.enableZoomControls=f.navigationOption.enableZoomControls??!0,L.enableDistanceLegend=f.navigationOption.enableDistanceLegend??!0,L.enableCompassOuterRing=f.navigationOption.enableCompassOuterRing??!0,this._Viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(this._cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this._Viewer.extend(this._cesium.viewerCesiumNavigationMixin,L),this.camera.setView(E),y&&typeof y=="function"&&y(),CIt.parse(this,m),f.mouseDownView&&this.mouseDownView(!0),f.printLog&&this.addLogo(),Object.defineProperties(Ay.prototype,{_cachedGltf:{configurable:!0,set:function(R){this._vtxf_cachedGltf=R,this._vtxf_cachedGltf&&this._vtxf_cachedGltf._gltf&&Rmr(this._vtxf_cachedGltf._gltf)},get:function(){return this._vtxf_cachedGltf}}}),f.disableRightClickMenu&&(document.oncontextmenu=function(){return!1});let I=function(R){if(R.cesiumWidget._supportsImageRenderingPixelated&&window&&window.devicePixelRatio){let A=window.devicePixelRatio;for(;A>=2;)A/=2;R.resolutionScale=A}};G1.prototype.getRenderedBestLevelInfo=function(){let R=this.getRenderedLevelInfo(),P=0;for(let A in R)P<Number(A)&&(P=Number(A));return{bestLevel:P,count:R[P]}},G1.prototype.getRenderedLevelInfo=function(){let R=[];return this._tilesToRender.forEach(function(P){R[P.level]===void 0&&(R[P.level]=0,R[P.level]++)}),R},VMt(this,!0)}Object.defineProperties(id.prototype,{environment:{get:function(){return this._environment}},entities:{get:function(){return this._Viewer.dataSourceDisplay.defaultDataSource.entities}},enableAA:{set:function(o){VMt(this,o)}},primitives:{get:function(){return this.coreMap.scene.primitives}},imageryLayers:{get:function(){return this.coreMap.imageryLayers}},view:{get:function(){return this._view}},terrainProvider:{get:function(){return this.coreMap.terrainProvider}},dataSources:{get:function(){return this._Viewer.dataSources}},camera:{get:function(){return this._camera}},showFPS:{get:function(){return this.viewer.scene.debugShowFramesPerSecond},set:function(o){this.viewer.scene.debugShowFramesPerSecond=o}},depthTerrain:{get:function(){return this.viewer.scene.globe.depthTestAgainstTerrain},set:function(o){this.viewer.scene.globe.depthTestAgainstTerrain=o}},measure:{get:function(){return this._measure}},shapeTool:{get:function(){return this._shapeTool}},editTool:{get:function(){return this._editTool}},edit:{get:function(){return this._edit}},analysis:{get:function(){return this._analysis}},factory:{get:function(){return this._factory}},userScene:{get:function(){return this._userScene}},tools:{get:function(){return this._tools}},hdr:{get:function(){return this.coreMap.scene.highDynamicRange},set:function(o){this.coreMap.scene.highDynamicRange=o}},sunGlowFactor:{set:function(o){this.coreMap.scene.sun.glowFactor=o},get:function(){return this.coreMap.scene.sun.glowFactor}},shadows:{get:function(){return this.coreMap.scene.shadowMap.enabled},set:function(o){this.coreMap.scene.shadowMap.enabled=o}},terrainShadows:{get:function(){return this.coreMap.scene.globe.shadows},set:function(o){this.coreMap.scene.globe.shadows=o}},shadowMap:{get:function(){return this.coreMap.scene.shadowMap}},shadowMapList:{get:function(){return this.coreMap.scene.shadowMapList}},textureProjectionMapList:{get:function(){return this.coreMap.scene.textureProjectionMapList}},viewShedMapList:{get:function(){return this.coreMap.scene.viewShedMapList}},clock:{get:function(){return this._Viewer.clock}},clockViewModel:{get:function(){return this._Viewer.clockViewModel}},sunShaftEnabled:{get:function(){return this.coreMap.scene.sunShaftEnabled},set:function(o){this.coreMap.scene.sunShaftEnabled=o}},MilitaryPlotting:{get:function(){return this._MilitaryPlotting}},core:{get:function(){return this._Core||(this._Core=new Yb(this)),this._Core}},Analysis:{get:function(){return this._Analysis||(this._Analysis=new BIt(this._Viewer,Vi)),this._Analysis}},Creator:{get:function(){return this._Creator||(this._Creator=new dge(this._Viewer,Vi)),this._Creator}},projectTree:{get:function(){return this._ProjectTree||(this._ProjectTree=new EMt(this._Viewer,Vi,this._tree)),this._ProjectTree}},tree:{get:function(){return this._tree}},viewer:{get:function(){return this._Viewer}},toolbar:{get:function(){return this._Viewer._toolbar.style.display==="block"},set:function(o){this._Viewer._toolbar.style.display=o?"block":"none"}},wireframe:{get:function(){return this._Viewer.scene.globe._surface.tileProvider._debug.wireframe},set:function(o){this._Viewer.scene.globe._surface.tileProvider._debug.wireframe=o}},tileCoordinates:{get:function(){return this._Viewer.cesiumInspector.viewModel.tileCoordinates},set:function(o){this._Viewer.cesiumInspector.viewModel.tileCoordinates=o}},bim:{get:function(){if(!this._bim)throw new wt(`${this.language.BIM_UNSUPPORTED_MSG}`);return this._bim}},ser:{get:function(){if(!this._ser)throw new wt(`${this.language.BIM_UNSUPPORTED_MSG}`);return this._ser}},maxProjectionCount:{get:function(){return this.coreMap.scene.maxProjectionCount},set:function(o){this.coreMap.scene.maxProjectionCount=o}},atmosphere:{get:function(){return this._atmosphere}},simulate:{get:function(){return this._simulate}},language:{get:function(){return this.i18n.language}}});id.prototype.brightness=function(o){let f=o.enable??!0,m=o.brightness??1,x=this.coreMap.scene.postProcessStages;this.coreMap.scene.brightness=this.coreMap.scene.brightness||x.add($2.createBrightnessStage()),this.coreMap.scene.brightness.enabled=f,this.coreMap.scene.brightness.uniforms.brightness=Number(m)};id.prototype.judgeOnline=function(){let o=document.createElement("img"),f=new Promise((x,y)=>{let v=setTimeout(()=>{o&&(o.src="",o.remove(),o=null),clearTimeout(v),y("Timeout")},5e3)}),m=new Promise((x,y)=>{o.crossOrigin="anonymous",o.src=`https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/2/2/0?time=${new Date().getTime()}`,o.onload=()=>(o&&(o.src="",o.remove(),o=null),x(!0),!0),o.onerror=()=>(o&&(o.src="",o.remove(),o=null),x(!1),!0)});return Promise.race([m,f])};id.prototype.addLogo=function(){let o=this;queueMicrotask(()=>{let f=`
    uniform sampler2D colorTexture;
    uniform sampler2D logoTexture;
    uniform vec2 logoSize;